var vendor_446c8518dcdbf05f8a9a=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2007)}([function(t,e,n){"use strict";n.r(e),n.d(e,"guid",(function(){return g})),n.d(e,"logError",(function(){return v})),n.d(e,"clone",(function(){return m})),n.d(e,"merge",(function(){return y})),n.d(e,"mergeAll",(function(){return b})),n.d(e,"extend",(function(){return _})),n.d(e,"defaults",(function(){return x})),n.d(e,"createCanvas",(function(){return O})),n.d(e,"indexOf",(function(){return w})),n.d(e,"inherits",(function(){return S})),n.d(e,"mixin",(function(){return C})),n.d(e,"isArrayLike",(function(){return E})),n.d(e,"each",(function(){return T})),n.d(e,"map",(function(){return M})),n.d(e,"reduce",(function(){return A})),n.d(e,"filter",(function(){return j})),n.d(e,"find",(function(){return I})),n.d(e,"keys",(function(){return k})),n.d(e,"bind",(function(){return P})),n.d(e,"curry",(function(){return L})),n.d(e,"isArray",(function(){return D})),n.d(e,"isFunction",(function(){return R})),n.d(e,"isString",(function(){return N})),n.d(e,"isStringSafe",(function(){return F})),n.d(e,"isNumber",(function(){return B})),n.d(e,"isObject",(function(){return z})),n.d(e,"isBuiltInObject",(function(){return V})),n.d(e,"isTypedArray",(function(){return U})),n.d(e,"isDom",(function(){return G})),n.d(e,"isGradientObject",(function(){return H})),n.d(e,"isImagePatternObject",(function(){return W})),n.d(e,"isRegExp",(function(){return Y})),n.d(e,"eqNaN",(function(){return $})),n.d(e,"retrieve",(function(){return X})),n.d(e,"retrieve2",(function(){return q})),n.d(e,"retrieve3",(function(){return Z})),n.d(e,"slice",(function(){return K})),n.d(e,"normalizeCssArray",(function(){return Q})),n.d(e,"assert",(function(){return J})),n.d(e,"trim",(function(){return tt})),n.d(e,"setAsPrimitive",(function(){return et})),n.d(e,"isPrimitive",(function(){return nt})),n.d(e,"HashMap",(function(){return ot})),n.d(e,"createHashMap",(function(){return at})),n.d(e,"concatArray",(function(){return st})),n.d(e,"createObject",(function(){return ut})),n.d(e,"disableUserSelect",(function(){return lt})),n.d(e,"hasOwn",(function(){return ct})),n.d(e,"noop",(function(){return ht})),n.d(e,"RADIAN_TO_DEGREE",(function(){return ft}));var r=n(104),i=A(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=A(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,u=s.forEach,l=s.filter,c=s.slice,h=s.map,f=function(){}.constructor,d=f?f.prototype:null,p=2311;function g(){return p++}function v(){for(var t=[],e=0;e=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e,n,r,i,o){function a(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var s,u=r.kind,l="getter"===u?"get":"setter"===u?"set":"value",c=!e&&t?r.static?t:t.prototype:null,h=e||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,d=n.length-1;d>=0;d--){var p={};for(var g in r)p[g]="access"===g?{}:r[g];for(var g in r.access)p.access[g]=r.access[g];p.addInitializer=function(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(t||null))};var v=(0,n[d])("accessor"===u?{get:h.get,set:h.set}:h[l],p);if("accessor"===u){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(s=a(v.get))&&(h.get=s),(s=a(v.set))&&(h.set=s),(s=a(v.init))&&i.push(s)}else(s=a(v))&&("field"===u?i.push(s):h[l]=s)}c&&Object.defineProperty(c,r.name,h),f=!0}function c(t,e,n){for(var r=arguments.length>2,i=0;i0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function _(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof w?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function C(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:w(t[r](e)),done:!1}:i?i(e):e}:i}}function E(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=y(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function T(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var M=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function A(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&v(e,t,n);return M(e,t),e}function j(t){return t&&t.__esModule?t:{default:t}}function I(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function k(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function P(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}},function(t,e,n){"use strict";n.r(e);var r=n(373);n.d(e,"adjustYMetaByZero",(function(){return r.adjustYMetaByZero})),n.d(e,"transformDataToNodeLinkData",(function(){return r.transformDataToNodeLinkData})),n.d(e,"processIllegalData",(function(){return r.processIllegalData}));var i=n(697);n.d(e,"deepAssign",(function(){return i.deepAssign}));var o=n(1227);n.d(e,"getContainerSize",(function(){return o.getContainerSize}));var a=n(1228);n.d(e,"flow",(function(){return a.flow}));var s=n(1229);n.d(e,"findGeometry",(function(){return s.findGeometry})),n.d(e,"getAllElements",(function(){return s.getAllElements})),n.d(e,"getAllElementsRecursively",(function(){return s.getAllElementsRecursively})),n.d(e,"getAllGeometriesRecursively",(function(){return s.getAllGeometriesRecursively}));var u=n(414);n.d(e,"invariant",(function(){return u.invariant})),n.d(e,"LEVEL",(function(){return u.LEVEL})),n.d(e,"log",(function(){return u.log}));var l=n(573);n.d(e,"kebabCase",(function(){return l.kebabCase}));var c=n(1230);n.d(e,"transformLabel",(function(){return c.transformLabel}));var h=n(1231);n.d(e,"measureTextWidth",(function(){return h.measureTextWidth}));var f=n(316);n.d(e,"isBetween",(function(){return f.isBetween})),n.d(e,"isRealNumber",(function(){return f.isRealNumber}));var d=n(216);n.d(e,"normalPadding",(function(){return d.normalPadding})),n.d(e,"getAdjustAppendPadding",(function(){return d.getAdjustAppendPadding})),n.d(e,"resolveAllPadding",(function(){return d.resolveAllPadding}));var p=n(1232);n.d(e,"getSplinePath",(function(){return p.getSplinePath}));var g=n(353);n.d(e,"pick",(function(){return g.pick}));var v=n(556);n.d(e,"renderGaugeStatistic",(function(){return v.renderGaugeStatistic})),n.d(e,"renderStatistic",(function(){return v.renderStatistic}));var m=n(1233);n.d(e,"template",(function(){return m.template}));var y=n(102);n.d(e,"addViewAnimation",(function(){return y.addViewAnimation})),n.d(e,"findViewById",(function(){return y.findViewById})),n.d(e,"getSiblingViews",(function(){return y.getSiblingViews})),n.d(e,"getViews",(function(){return y.getViews}))},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return l})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return f})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return g})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return m})),n.d(e,"__spreadArray",(function(){return y})),n.d(e,"__await",(function(){return b})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return x})),n.d(e,"__asyncValues",(function(){return O})),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return C})),n.d(e,"__importDefault",(function(){return E})),n.d(e,"__classPrivateFieldGet",(function(){return T})),n.d(e,"__classPrivateFieldSet",(function(){return M})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof b?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function x(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:b(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function O(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var S=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&f(e,t,n);return S(e,t),e}function E(t){return t&&t.__esModule?t:{default:t}}function T(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function M(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"linearMap",(function(){return i})),n.d(e,"parsePercent",(function(){return o})),n.d(e,"round",(function(){return a})),n.d(e,"asc",(function(){return s})),n.d(e,"getPrecision",(function(){return u})),n.d(e,"getPrecisionSafe",(function(){return l})),n.d(e,"getPixelPrecision",(function(){return c})),n.d(e,"getPercentWithPrecision",(function(){return h})),n.d(e,"getPercentSeats",(function(){return f})),n.d(e,"addSafe",(function(){return d})),n.d(e,"MAX_SAFE_INTEGER",(function(){return p})),n.d(e,"remRadian",(function(){return g})),n.d(e,"isRadianAroundZero",(function(){return v})),n.d(e,"parseDate",(function(){return y})),n.d(e,"quantity",(function(){return b})),n.d(e,"quantityExponent",(function(){return _})),n.d(e,"nice",(function(){return x})),n.d(e,"quantile",(function(){return O})),n.d(e,"reformIntervals",(function(){return w})),n.d(e,"numericToNumber",(function(){return S})),n.d(e,"isNumeric",(function(){return C})),n.d(e,"getRandomIdBase",(function(){return E})),n.d(e,"getGreatestCommonDividor",(function(){return T})),n.d(e,"getLeastCommonMultiple",(function(){return M}));var r=n(0);function i(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],u=o-i,l=s-a;if(0===u)return 0===l?a:(a+s)/2;if(r)if(u>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/u*l+a}function o(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return r.isString(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function a(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function s(t){return t.sort((function(t,e){return t-e})),t}function u(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return l(t)}function l(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function c(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function h(t,e,n){return t[e]&&f(t,n)[e]||0}function f(t,e){var n=r.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var i=Math.pow(10,e),o=r.map(t,(function(t){return(isNaN(t)?0:t)/n*i*100})),a=100*i,s=r.map(o,(function(t){return Math.floor(t)})),u=r.reduce(s,(function(t,e){return t+e}),0),l=r.map(o,(function(t,e){return t-s[e]}));uc&&(c=l[f],h=f);++s[h],l[h]=0,++u}return r.map(s,(function(t){return t/i}))}function d(t,e){var n=Math.max(u(t),u(e)),r=t+e;return n>20?r:a(r,n)}var p=9007199254740991;function g(t){var e=2*Math.PI;return(t%e+e)%e}function v(t){return t>-1e-4&&t<1e-4}var m=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function y(t){if(t instanceof Date)return t;if(r.isString(t)){var e=m.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function b(t){return Math.pow(10,_(t))}function _(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function x(t,e){var n=_(t),r=Math.pow(10,n),i=t/r;return t=(e?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,n>=-20?+t.toFixed(n<0?-n:0):t}function O(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function w(t){t.sort((function(t,e){return function t(e,n,r){return e.interval[r]=0,a=!1;if(t instanceof u.default){var s=h(t),l=o&&s.selectFill||s.normalFill,c=o&&s.selectStroke||s.normalStroke;if(C(l)||C(c)){var f=(r=r||{}).style||{};"inherit"===f.fill?(a=!0,r=Object(i.extend)({},r),(f=Object(i.extend)({},f)).fill=l):!C(f.fill)&&C(l)?(a=!0,r=Object(i.extend)({},r),(f=Object(i.extend)({},f)).fill=T(l)):!C(f.stroke)&&C(c)&&(a||(r=Object(i.extend)({},r),f=Object(i.extend)({},f)),f.stroke=T(c)),r.style=f}}if(r&&null==r.z2){a||(r=Object(i.extend)({},r));var d=t.z2EmphasisLift;r.z2=t.z2+(null!=d?d:y)}return r}(this,0,e,n);if("blur"===t)return function(t,e,n){var r=Object(i.indexOf)(t.currentStates,e)>=0,o=t.style.opacity,a=r?null:function(t,e,n,r){for(var i=t.style,o={},a=0;a0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function at(t,e,n){dt(t,!0),R(t,z),lt(t,e,n)}function st(t){dt(t,!1)}function ut(t,e,n,r){r?st(t):at(t,e,n)}function lt(t,e,n){var r=Object(o.getECData)(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var ct=["emphasis","blur","select"],ht={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ft(t,e,n,r){n=n||"itemStyle";for(var i=0;iMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function K(t){return!t.isGroup}function Q(t,e,n){if(t&&e){var r,i=(r={},t.traverse((function(t){K(t)&&t.anid&&(r[t.anid]=t)})),r);e.traverse((function(t){if(K(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),Object(I.updateProps)(t,r,n,Object(j.getECData)(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=Object(A.extend)({},t.shape)),e}}function J(t,e){return Object(A.map)(t,(function(t){var n=t[0];n=k(n,e.x),n=P(n,e.x+e.width);var r=t[1];return r=k(r,e.y),[n,r=P(r,e.y+e.height)]}))}function tt(t,e){var n=k(t.x,e.x),r=P(t.x+t.width,e.x+e.width),i=k(t.y,e.y),o=P(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function et(t,e,n){var r=Object(A.extend)({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(A.defaults)(i,n),new u.default(r)):z(t.replace("path://",""),r,n,"center")}function nt(t,e,n,r,i){for(var o=0,a=i[i.length-1];o=-1e-6)return!1;var p=t-i,g=e-o,v=it(p,g,l,c)/d;if(v<0||v>1)return!1;var m=it(p,g,h,f)/d;return!(m<0||m>1)}function it(t,e,n,r){return t*r-n*e}function ot(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Object(A.isString)(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var u=t.formatterParamsExtra;u&&Object(A.each)(Object(A.keys)(u),(function(t){Object(A.hasOwn)(s,t)||(s[t]=u[t],s.$vars.push(t))}));var l=Object(j.getECData)(t.el);l.componentMainType=o,l.componentIndex=a,l.tooltipConfig={name:r,option:Object(A.defaults)({content:r,formatterParams:s},i)}}function at(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function st(t,e){if(t)if(Object(A.isArray)(t))for(var n=0;n0}n.d(e,"VIEW_LIFE_CIRCLE",(function(){return Xt.VIEW_LIFE_CIRCLE})),n.d(e,"VERSION",(function(){return r.VERSION})),n.d(e,"Chart",(function(){return r.Chart})),n.d(e,"View",(function(){return r.View})),n.d(e,"Event",(function(){return r.Event})),n.d(e,"ComponentController",(function(){return r.ComponentController})),n.d(e,"TooltipController",(function(){return r.TooltipController})),n.d(e,"Geometry",(function(){return r.Geometry})),n.d(e,"Element",(function(){return r.Element})),n.d(e,"GeometryLabel",(function(){return r.GeometryLabel})),n.d(e,"Interaction",(function(){return r.Interaction})),n.d(e,"Action",(function(){return r.Action})),n.d(e,"Facet",(function(){return r.Facet})),n.d(e,"InteractionAction",(function(){return r.InteractionAction})),n.d(e,"registerComponentController",(function(){return r.registerComponentController})),n.d(e,"registerGeometry",(function(){return r.registerGeometry})),n.d(e,"registerShape",(function(){return r.registerShape})),n.d(e,"registerShapeFactory",(function(){return r.registerShapeFactory})),n.d(e,"getShapeFactory",(function(){return r.getShapeFactory})),n.d(e,"registerGeometryLabel",(function(){return r.registerGeometryLabel})),n.d(e,"registerGeometryLabelLayout",(function(){return r.registerGeometryLabelLayout})),n.d(e,"getGeometryLabel",(function(){return r.getGeometryLabel})),n.d(e,"getGeometryLabelLayout",(function(){return r.getGeometryLabelLayout})),n.d(e,"getInteraction",(function(){return r.getInteraction})),n.d(e,"registerInteraction",(function(){return r.registerInteraction})),n.d(e,"registerAction",(function(){return r.registerAction})),n.d(e,"getActionClass",(function(){return r.getActionClass})),n.d(e,"getFacet",(function(){return r.getFacet})),n.d(e,"registerFacet",(function(){return r.registerFacet})),n.d(e,"getTheme",(function(){return r.getTheme})),n.d(e,"registerTheme",(function(){return r.registerTheme})),n.d(e,"registerEngine",(function(){return r.registerEngine})),n.d(e,"getEngine",(function(){return r.getEngine})),n.d(e,"registerAnimation",(function(){return r.registerAnimation})),n.d(e,"getAnimation",(function(){return r.getAnimation})),n.d(e,"LAYER",(function(){return r.LAYER})),n.d(e,"DIRECTION",(function(){return r.DIRECTION})),n.d(e,"Coordinate",(function(){return r.Coordinate})),n.d(e,"Scale",(function(){return r.Scale})),n.d(e,"Util",(function(){return r.Util})),Object(r.registerTheme)("dark",Object(o.createThemeByStyleSheet)(i.antvDark)),Object(r.registerEngine)("canvas",a),Object(r.registerEngine)("svg",s),Object(r.registerGeometry)("Polygon",g.default),Object(r.registerGeometry)("Interval",h.default),Object(r.registerGeometry)("Schema",v.default),Object(r.registerGeometry)("Path",d.default),Object(r.registerGeometry)("Point",p.default),Object(r.registerGeometry)("Line",f.default),Object(r.registerGeometry)("Area",u.default),Object(r.registerGeometry)("Edge",l.default),Object(r.registerGeometry)("Heatmap",c.default),Object(r.registerGeometry)("Violin",m.default),Object(r.registerGeometryLabel)("base",y.default),Object(r.registerGeometryLabel)("interval",b.default),Object(r.registerGeometryLabel)("pie",_.default),Object(r.registerGeometryLabel)("polar",x.default),Object(r.registerGeometryLabelLayout)("overlap",T.overlap),Object(r.registerGeometryLabelLayout)("distribute",O.distribute),Object(r.registerGeometryLabelLayout)("fixed-overlap",T.fixedOverlap),Object(r.registerGeometryLabelLayout)("hide-overlap",M.hideOverlap),Object(r.registerGeometryLabelLayout)("limit-in-shape",E.limitInShape),Object(r.registerGeometryLabelLayout)("limit-in-canvas",C.limitInCanvas),Object(r.registerGeometryLabelLayout)("limit-in-plot",L.limitInPlot),Object(r.registerGeometryLabelLayout)("pie-outer",w.pieOuterLabelLayout),Object(r.registerGeometryLabelLayout)("adjust-color",A.adjustColor),Object(r.registerGeometryLabelLayout)("interval-adjust-position",j.intervalAdjustPosition),Object(r.registerGeometryLabelLayout)("interval-hide-overlap",I.intervalHideOverlap),Object(r.registerGeometryLabelLayout)("point-adjust-position",k.pointAdjustPosition),Object(r.registerGeometryLabelLayout)("pie-spider",S.pieSpiderLabelLayout),Object(r.registerGeometryLabelLayout)("path-adjust-position",P.pathAdjustPosition),Object(r.registerAnimation)("fade-in",D.fadeIn),Object(r.registerAnimation)("fade-out",D.fadeOut),Object(r.registerAnimation)("grow-in-x",R.growInX),Object(r.registerAnimation)("grow-in-xy",R.growInXY),Object(r.registerAnimation)("grow-in-y",R.growInY),Object(r.registerAnimation)("scale-in-x",B.scaleInX),Object(r.registerAnimation)("scale-in-y",B.scaleInY),Object(r.registerAnimation)("wave-in",V.waveIn),Object(r.registerAnimation)("zoom-in",U.zoomIn),Object(r.registerAnimation)("zoom-out",U.zoomOut),Object(r.registerAnimation)("position-update",F.positionUpdate),Object(r.registerAnimation)("sector-path-update",z.sectorPathUpdate),Object(r.registerAnimation)("path-in",N.pathIn),Object(r.registerFacet)("rect",$.default),Object(r.registerFacet)("mirror",Y.default),Object(r.registerFacet)("list",H.default),Object(r.registerFacet)("matrix",W.default),Object(r.registerFacet)("circle",G.default),Object(r.registerFacet)("tree",X.default),Object(r.registerComponentController)("axis",Z.default),Object(r.registerComponentController)("legend",K.default),Object(r.registerComponentController)("tooltip",J.default),Object(r.registerComponentController)("annotation",q.default),Object(r.registerComponentController)("slider",Q.default),Object(r.registerComponentController)("scrollbar",tt.default),Object(r.registerAction)("tooltip",rt.default),Object(r.registerAction)("sibling-tooltip",nt.default),Object(r.registerAction)("ellipsis-text",it.default),Object(r.registerAction)("element-active",ot.default),Object(r.registerAction)("element-single-active",ut.default),Object(r.registerAction)("element-range-active",st.default),Object(r.registerAction)("element-highlight",lt.default),Object(r.registerAction)("element-highlight-by-x",ht.default),Object(r.registerAction)("element-highlight-by-color",ct.default),Object(r.registerAction)("element-single-highlight",dt.default),Object(r.registerAction)("element-range-highlight",ft.default),Object(r.registerAction)("element-sibling-highlight",ft.default,{effectSiblings:!0,effectByRecord:!0}),Object(r.registerAction)("element-selected",gt.default),Object(r.registerAction)("element-single-selected",vt.default),Object(r.registerAction)("element-range-selected",pt.default),Object(r.registerAction)("element-link-by-color",at.default),Object(r.registerAction)("active-region",et.default),Object(r.registerAction)("list-active",mt.default),Object(r.registerAction)("list-selected",bt.default),Object(r.registerAction)("list-highlight",yt.default),Object(r.registerAction)("list-unchecked",_t.default),Object(r.registerAction)("list-checked",xt.default),Object(r.registerAction)("list-focus",Ot.default),Object(r.registerAction)("list-radio",wt.default),Object(r.registerAction)("legend-item-highlight",yt.default,{componentNames:["legend"]}),Object(r.registerAction)("axis-label-highlight",yt.default,{componentNames:["axis"]}),Object(r.registerAction)("axis-description",Yt.default),Object(r.registerAction)("rect-mask",Tt.default),Object(r.registerAction)("x-rect-mask",Ct.default,{dim:"x"}),Object(r.registerAction)("y-rect-mask",Ct.default,{dim:"y"}),Object(r.registerAction)("circle-mask",St.default),Object(r.registerAction)("path-mask",Et.default),Object(r.registerAction)("smooth-path-mask",Mt.default),Object(r.registerAction)("rect-multi-mask",At.default),Object(r.registerAction)("x-rect-multi-mask",jt.default,{dim:"x"}),Object(r.registerAction)("y-rect-multi-mask",jt.default,{dim:"y"}),Object(r.registerAction)("circle-multi-mask",It.default),Object(r.registerAction)("path-multi-mask",kt.default),Object(r.registerAction)("smooth-path-multi-mask",Pt.default),Object(r.registerAction)("cursor",Lt.default),Object(r.registerAction)("data-filter",Dt.default),Object(r.registerAction)("brush",Rt.default),Object(r.registerAction)("brush-x",Rt.default,{dims:["x"]}),Object(r.registerAction)("brush-y",Rt.default,{dims:["y"]}),Object(r.registerAction)("sibling-filter",Nt.default),Object(r.registerAction)("sibling-x-filter",Nt.default,{dims:"x"}),Object(r.registerAction)("sibling-y-filter",Nt.default,{dims:"y"}),Object(r.registerAction)("element-filter",Ft.default),Object(r.registerAction)("element-sibling-filter",Bt.default),Object(r.registerAction)("element-sibling-filter-record",Bt.default,{byRecord:!0}),Object(r.registerAction)("view-drag",Vt.default),Object(r.registerAction)("view-move",Ut.default),Object(r.registerAction)("scale-translate",Gt.default),Object(r.registerAction)("scale-zoom",Ht.default),Object(r.registerAction)("reset-button",zt.default,{name:"reset-button",text:"reset"}),Object(r.registerAction)("mousewheel-scroll",Wt.default),Object(r.registerInteraction)("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Object(r.registerInteraction)("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Object(r.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Object(r.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Object(r.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Object(r.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Object(r.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Object(r.registerInteraction)("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Object(r.registerInteraction)("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Object(r.registerInteraction)("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Object(r.registerInteraction)("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Object(r.registerInteraction)("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Object(r.registerInteraction)("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:qt,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:qt,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:qt,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Object(r.registerInteraction)("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Object(r.registerInteraction)("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:qt,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:qt,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:qt,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Object(r.registerInteraction)("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:qt,action:"path-mask:start"},{trigger:"mousedown",isEnable:qt,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Object(r.registerInteraction)("brush-x-multi",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"mousedown",isEnable:qt,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(t){return!Object($t.isMultipleMask)(t)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),Object(r.registerInteraction)("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Object(r.registerInteraction)("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Object(r.registerInteraction)("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Object(r.registerInteraction)("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Object(r.registerInteraction)("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),Object(r.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Object(r.registerInteraction)("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),Object(r.registerInteraction)("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Zt(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Zt(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Object(r.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Object(r.registerInteraction)("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]})},function(t,e,n){"use strict";n.r(e);var r=n(1297);n.d(e,"AJAXError",(function(){return r.AJAXError})),n.d(e,"makeXMLHttpRequestPromise",(function(){return r.makeXMLHttpRequestPromise})),n.d(e,"getJSON",(function(){return r.getJSON})),n.d(e,"getArrayBuffer",(function(){return r.getArrayBuffer})),n.d(e,"postData",(function(){return r.postData})),n.d(e,"sameOrigin",(function(){return r.sameOrigin})),n.d(e,"getImage",(function(){return r.getImage})),n.d(e,"formatImage",(function(){return r.formatImage}));var i=n(1302);n.d(e,"anchorType",(function(){return i.anchorType})),n.d(e,"anchorTranslate",(function(){return i.anchorTranslate})),n.d(e,"applyAnchorClass",(function(){return i.applyAnchorClass}));var o=n(375);n.d(e,"isColor",(function(){return o.isColor})),n.d(e,"rgb2arr",(function(){return o.rgb2arr})),n.d(e,"decodePickingColor",(function(){return o.decodePickingColor})),n.d(e,"encodePickingColor",(function(){return o.encodePickingColor})),n.d(e,"generateColorRamp",(function(){return o.generateColorRamp})),n.d(e,"generateLinearRamp",(function(){return o.generateLinearRamp})),n.d(e,"generateCatRamp",(function(){return o.generateCatRamp})),n.d(e,"generateQuantizeRamp",(function(){return o.generateQuantizeRamp})),n.d(e,"generateCustomRamp",(function(){return o.generateCustomRamp})),n.d(e,"getDefaultDomain",(function(){return o.getDefaultDomain}));var a=n(1303);n.d(e,"getCullFace",(function(){return a.getCullFace}));var s=n(1304);n.d(e,"DOM",(function(){return s}));var u=n(1305);n.d(e,"isImageBitmap",(function(){return u.isImageBitmap})),n.d(e,"isWorker",(function(){return u.isWorker})),n.d(e,"getReferrer",(function(){return u.getReferrer})),n.d(e,"isiOS",(function(){return u.isiOS})),n.d(e,"isAndroid",(function(){return u.isAndroid})),n.d(e,"isPC",(function(){return u.isPC}));var l=n(1306);n.d(e,"bindAll",(function(){return l.bindAll})),n.d(e,"FrequencyController",(function(){return l.FrequencyController}));var c=n(130);n.d(e,"lngLatInExtent",(function(){return c.lngLatInExtent})),n.d(e,"extent",(function(){return c.extent})),n.d(e,"tranfrormCoord",(function(){return c.tranfrormCoord})),n.d(e,"lngLatToMeters",(function(){return c.lngLatToMeters})),n.d(e,"metersToLngLat",(function(){return c.metersToLngLat})),n.d(e,"longitude",(function(){return c.longitude})),n.d(e,"latitude",(function(){return c.latitude})),n.d(e,"validateLngLat",(function(){return c.validateLngLat})),n.d(e,"aProjectFlat",(function(){return c.aProjectFlat})),n.d(e,"unProjectFlat",(function(){return c.unProjectFlat})),n.d(e,"amap2Project",(function(){return c.amap2Project})),n.d(e,"amap2UnProject",(function(){return c.amap2UnProject})),n.d(e,"lnglatDistance",(function(){return c.lnglatDistance})),n.d(e,"project",(function(){return c.project})),n.d(e,"padBounds",(function(){return c.padBounds})),n.d(e,"boundsContains",(function(){return c.boundsContains})),n.d(e,"bBoxToBounds",(function(){return c.bBoxToBounds})),n.d(e,"normalize",(function(){return c.normalize})),n.d(e,"calDistance",(function(){return c.calDistance})),n.d(e,"calAngle",(function(){return c.calAngle})),n.d(e,"getAngle",(function(){return c.getAngle})),n.d(e,"flow",(function(){return c.flow})),n.d(e,"calculateCentroid",(function(){return c.calculateCentroid})),n.d(e,"calculatePointsCenterAndRadius",(function(){return c.calculatePointsCenterAndRadius})),n.d(e,"getBBoxFromPoints",(function(){return c.getBBoxFromPoints}));var h=n(643);n.d(e,"BKDRHash",(function(){return h.BKDRHash})),n.d(e,"djb2hash",(function(){return h.djb2hash})),n.d(e,"guid",(function(){return h.guid}));var f=n(1307);n.d(e,"lineAtOffset",(function(){return f.lineAtOffset})),n.d(e,"lineAtOffsetAsyc",(function(){return f.lineAtOffsetAsyc}));var d=n(1308);n.d(e,"LRUCache",(function(){return d.LRUCache}));var p=n(112);n.d(e,"isMiniScene",(function(){return p.isMiniScene})),n.d(e,"setMiniScene",(function(){return p.setMiniScene})),n.d(e,"isMiniAli",(function(){return p.isMiniAli})),n.d(e,"isWeChatMiniProgram",(function(){return p.isWeChatMiniProgram})),n.d(e,"isMini",(function(){return p.isMini})),n.d(e,"miniWindow",(function(){return p.miniWindow})),n.d(e,"$window",(function(){return p.$window})),n.d(e,"$XMLHttpRequest",(function(){return p.$XMLHttpRequest})),n.d(e,"$location",(function(){return p.$location})),n.d(e,"dispatchMouseDown",(function(){return p.dispatchMouseDown})),n.d(e,"dispatchMouseMove",(function(){return p.dispatchMouseMove})),n.d(e,"dispatchMouseUp",(function(){return p.dispatchMouseUp})),n.d(e,"dispatchPointerDown",(function(){return p.dispatchPointerDown})),n.d(e,"dispatchPointerMove",(function(){return p.dispatchPointerMove})),n.d(e,"dispatchPointerUp",(function(){return p.dispatchPointerUp})),n.d(e,"dispatchTouchStart",(function(){return p.dispatchTouchStart})),n.d(e,"dispatchTouchMove",(function(){return p.dispatchTouchMove})),n.d(e,"dispatchTouchEnd",(function(){return p.dispatchTouchEnd})),n.d(e,"dispatchMapCameraParams",(function(){return p.dispatchMapCameraParams}));var g=n(1309);n.d(e,"Satistics",(function(){return g}));var v=n(1310);n.d(e,"SourceTile",(function(){return v.SourceTile})),n.d(e,"TilesetManager",(function(){return v.TilesetManager})),n.d(e,"UpdateTileStrategy",(function(){return v.UpdateTileStrategy})),n.d(e,"LoadTileDataStatus",(function(){return v.LoadTileDataStatus})),n.d(e,"osmLonLat2TileXY",(function(){return v.osmLonLat2TileXY})),n.d(e,"osmTileXY2LonLat",(function(){return v.osmTileXY2LonLat})),n.d(e,"tileToBounds",(function(){return v.tileToBounds})),n.d(e,"getTileIndices",(function(){return v.getTileIndices})),n.d(e,"getTileWarpXY",(function(){return v.getTileWarpXY})),n.d(e,"isURLTemplate",(function(){return v.isURLTemplate})),n.d(e,"expandUrl",(function(){return v.expandUrl})),n.d(e,"getURLFromTemplate",(function(){return v.getURLFromTemplate})),n.d(e,"getWMTSURLFromTemplate",(function(){return v.getWMTSURLFromTemplate}));var m=n(1313);n.d(e,"WorkerSourceMap",(function(){return m.WorkerSourceMap})),n.d(e,"setL7WorkerSource",(function(){return m.setL7WorkerSource})),n.d(e,"executeWorkerTask",(function(){return m.executeWorkerTask}));var y=n(376);n.d(e,"LineTriangulation",(function(){return y.LineTriangulation})),n.d(e,"PointFillTriangulation",(function(){return y.PointFillTriangulation})),n.d(e,"polygonFillTriangulation",(function(){return y.polygonFillTriangulation}))},function(t,e,n){"use strict";n.r(e),n.d(e,"VERSION",(function(){return T})),n.d(e,"Util",(function(){return M}));var r=n(170);n.d(e,"Chart",(function(){return r.Chart})),n.d(e,"View",(function(){return r.View})),n.d(e,"Event",(function(){return r.Event}));var i=n(212);n.d(e,"ComponentController",(function(){return i.Controller}));var o=n(690);n.d(e,"TooltipController",(function(){return o.default}));var a=n(172);n.d(e,"Geometry",(function(){return a.default}));var s=n(467);n.d(e,"Element",(function(){return s.default}));var u=n(371);n.d(e,"GeometryLabel",(function(){return u.default}));var l=n(305);n.d(e,"Interaction",(function(){return l.Interaction})),n.d(e,"Action",(function(){return l.Action}));var c=n(409);n.d(e,"Facet",(function(){return c.Facet}));var h=n(86);n.d(e,"InteractionAction",(function(){return h.default})),n.d(e,"registerComponentController",(function(){return r.registerComponentController})),n.d(e,"registerGeometry",(function(){return r.registerGeometry}));var f=n(40);n.d(e,"registerShape",(function(){return f.registerShape})),n.d(e,"registerShapeFactory",(function(){return f.registerShapeFactory})),n.d(e,"getShapeFactory",(function(){return f.getShapeFactory}));var d=n(342);n.d(e,"registerGeometryLabel",(function(){return d.registerGeometryLabel})),n.d(e,"registerGeometryLabelLayout",(function(){return d.registerGeometryLabelLayout})),n.d(e,"getGeometryLabel",(function(){return d.getGeometryLabel})),n.d(e,"getGeometryLabelLayout",(function(){return d.getGeometryLabelLayout})),n.d(e,"getInteraction",(function(){return l.getInteraction})),n.d(e,"registerInteraction",(function(){return l.registerInteraction})),n.d(e,"registerAction",(function(){return l.registerAction})),n.d(e,"getActionClass",(function(){return l.getActionClass})),n.d(e,"getFacet",(function(){return c.getFacet})),n.d(e,"registerFacet",(function(){return c.registerFacet}));var p=n(418);n.d(e,"getTheme",(function(){return p.getTheme})),n.d(e,"registerTheme",(function(){return p.registerTheme}));var g=n(554);n.d(e,"registerEngine",(function(){return g.registerEngine})),n.d(e,"getEngine",(function(){return g.getEngine}));var v=n(466);n.d(e,"registerAnimation",(function(){return v.registerAnimation})),n.d(e,"getAnimation",(function(){return v.getAnimation}));var m=n(8);n.d(e,"LAYER",(function(){return m.LAYER})),n.d(e,"DIRECTION",(function(){return m.DIRECTION}));n(2096);var y=n(91);n.d(e,"Coordinate",(function(){return y.Coordinate})),n.d(e,"Scale",(function(){return y.Scale}));var b=n(595),_=n(336),x=n(73),O=n(195),w=n(381),S=n(24),C=n(202),E=n(691),T="4.2.10",M={getLegendItems:_.getLegendItems,translate:O.translate,rotate:O.rotate,zoom:O.zoom,transform:O.transform,getAngle:x.getAngle,getSectorPath:x.getSectorPath,polarToCartesian:x.polarToCartesian,getDelegationObject:S.getDelegationObject,getTooltipItems:w.getTooltipItems,getMappingValue:b.getMappingValue,getPath:E.getPath,getPathPoints:C.getPathPoints}},function(t,e,n){"use strict";function r(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function i(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t){return[t[0],t[1]]}function a(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function u(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function c(t){return Math.sqrt(f(t))}n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"copy",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"set",(function(){return a})),n.d(e,"add",(function(){return s})),n.d(e,"scaleAndAdd",(function(){return u})),n.d(e,"sub",(function(){return l})),n.d(e,"len",(function(){return c})),n.d(e,"length",(function(){return h})),n.d(e,"lenSquare",(function(){return f})),n.d(e,"lengthSquare",(function(){return d})),n.d(e,"mul",(function(){return p})),n.d(e,"div",(function(){return g})),n.d(e,"dot",(function(){return v})),n.d(e,"scale",(function(){return m})),n.d(e,"normalize",(function(){return y})),n.d(e,"distance",(function(){return b})),n.d(e,"dist",(function(){return _})),n.d(e,"distanceSquare",(function(){return x})),n.d(e,"distSquare",(function(){return O})),n.d(e,"negate",(function(){return w})),n.d(e,"lerp",(function(){return S})),n.d(e,"applyTransform",(function(){return C})),n.d(e,"min",(function(){return E})),n.d(e,"max",(function(){return T}));var h=c;function f(t){return t[0]*t[0]+t[1]*t[1]}var d=f;function p(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function v(t,e){return t[0]*e[0]+t[1]*e[1]}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=c(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function b(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var _=b;function x(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var O=x;function w(t,e){return t[0]=-e[0],t[1]=-e[1],t}function S(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function C(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function E(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function T(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.multiBindToService=e.getServiceIdentifierAsString=e.typeConstraint=e.namedConstraint=e.taggedConstraint=e.traverseAncerstors=e.decorate=e.id=e.MetadataReader=e.postConstruct=e.targetName=e.multiInject=e.unmanaged=e.optional=e.LazyServiceIdentifer=e.inject=e.named=e.tagged=e.injectable=e.ContainerModule=e.AsyncContainerModule=e.TargetTypeEnum=e.BindingTypeEnum=e.BindingScopeEnum=e.Container=e.METADATA_KEY=void 0;var r=n(169);e.METADATA_KEY=r;var i=n(2150);Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return i.Container}});var o=n(341);Object.defineProperty(e,"BindingScopeEnum",{enumerable:!0,get:function(){return o.BindingScopeEnum}}),Object.defineProperty(e,"BindingTypeEnum",{enumerable:!0,get:function(){return o.BindingTypeEnum}}),Object.defineProperty(e,"TargetTypeEnum",{enumerable:!0,get:function(){return o.TargetTypeEnum}});var a=n(2166);Object.defineProperty(e,"AsyncContainerModule",{enumerable:!0,get:function(){return a.AsyncContainerModule}}),Object.defineProperty(e,"ContainerModule",{enumerable:!0,get:function(){return a.ContainerModule}});var s=n(2167);Object.defineProperty(e,"injectable",{enumerable:!0,get:function(){return s.injectable}});var u=n(2168);Object.defineProperty(e,"tagged",{enumerable:!0,get:function(){return u.tagged}});var l=n(2169);Object.defineProperty(e,"named",{enumerable:!0,get:function(){return l.named}});var c=n(1293);Object.defineProperty(e,"inject",{enumerable:!0,get:function(){return c.inject}}),Object.defineProperty(e,"LazyServiceIdentifer",{enumerable:!0,get:function(){return c.LazyServiceIdentifer}});var h=n(2170);Object.defineProperty(e,"optional",{enumerable:!0,get:function(){return h.optional}});var f=n(2171);Object.defineProperty(e,"unmanaged",{enumerable:!0,get:function(){return f.unmanaged}});var d=n(2172);Object.defineProperty(e,"multiInject",{enumerable:!0,get:function(){return d.multiInject}});var p=n(2173);Object.defineProperty(e,"targetName",{enumerable:!0,get:function(){return p.targetName}});var g=n(2174);Object.defineProperty(e,"postConstruct",{enumerable:!0,get:function(){return g.postConstruct}});var v=n(1291);Object.defineProperty(e,"MetadataReader",{enumerable:!0,get:function(){return v.MetadataReader}});var m=n(407);Object.defineProperty(e,"id",{enumerable:!0,get:function(){return m.id}});var y=n(367);Object.defineProperty(e,"decorate",{enumerable:!0,get:function(){return y.decorate}});var b=n(1296);Object.defineProperty(e,"traverseAncerstors",{enumerable:!0,get:function(){return b.traverseAncerstors}}),Object.defineProperty(e,"taggedConstraint",{enumerable:!0,get:function(){return b.taggedConstraint}}),Object.defineProperty(e,"namedConstraint",{enumerable:!0,get:function(){return b.namedConstraint}}),Object.defineProperty(e,"typeConstraint",{enumerable:!0,get:function(){return b.typeConstraint}});var _=n(551);Object.defineProperty(e,"getServiceIdentifierAsString",{enumerable:!0,get:function(){return _.getServiceIdentifierAsString}});var x=n(2175);Object.defineProperty(e,"multiBindToService",{enumerable:!0,get:function(){return x.multiBindToService}})},function(t,e,n){"use strict";n.r(e),n.d(e,"EPSILON",(function(){return r})),n.d(e,"ARRAY_TYPE",(function(){return i})),n.d(e,"RANDOM",(function(){return o})),n.d(e,"setMatrixArrayType",(function(){return a})),n.d(e,"toRadian",(function(){return u})),n.d(e,"equals",(function(){return l}));var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,o=Math.random;function a(t){i=t}var s=Math.PI/180;function u(t){return t*s}function l(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},function(t,e,n){"use strict";n.r(e),n.d(e,"transitionStore",(function(){return o})),n.d(e,"getAnimationConfig",(function(){return a})),n.d(e,"updateProps",(function(){return u})),n.d(e,"initProps",(function(){return l})),n.d(e,"isElementRemoved",(function(){return c})),n.d(e,"removeElement",(function(){return h})),n.d(e,"removeElementWithFadeOut",(function(){return d})),n.d(e,"saveOldStyle",(function(){return p})),n.d(e,"getOldStyle",(function(){return g}));var r=n(0),i=n(10),o=Object(i.makeInner)();function a(t,e,n,i,o){var a;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();a=s&&s.animation}var u="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,c=void 0,h=void 0;return i?(l=Object(r.retrieve2)(i.duration,200),c=Object(r.retrieve2)(i.easing,"cubicOut"),h=0):(l=e.getShallow(u?"animationDurationUpdate":"animationDuration"),c=e.getShallow(u?"animationEasingUpdate":"animationEasing"),h=e.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(l=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(h=a.delay)),Object(r.isFunction)(h)&&(h=h(n,o)),Object(r.isFunction)(l)&&(l=l(n)),{duration:l||0,delay:h,easing:c}}return null}function s(t,e,n,i,o,s,u){var l,c=!1;Object(r.isFunction)(o)?(u=s,s=o,o=null):Object(r.isObject)(o)&&(s=o.cb,u=o.during,c=o.isFrom,l=o.removeOpt,o=o.dataIndex);var h="leave"===t;h||e.stopAnimation("leave");var f=a(t,i,o,h?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null);if(f&&f.duration>0){var d={duration:f.duration,delay:f.delay||0,easing:f.easing,done:s,force:!!s||!!u,setToFinal:!h,scope:t,during:u};c?e.animateFrom(n,d):e.animateTo(n,d)}else e.stopAnimation(),!c&&e.attr(n),u&&u(1),s&&s()}function u(t,e,n,r,i,o){s("update",t,e,n,r,i,o)}function l(t,e,n,r,i,o){s("enter",t,e,n,r,i,o)}function c(t){if(!t.__zr)return!0;for(var e=0;e0&&i>0&&(r>=e||i>=e)}function l(t,e){var n=t.getCanvasBBox();return u(t,e)?n:null}function c(t,e){return t.event.maskShapes.map((function(t){return l(t,e)})).filter((function(t){return!!t}))}function h(t,e){return u(t,e)?t.attr("path"):null}function f(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}function d(t){var e,n=t.event.target;return n&&(e=n.get("delegateObject")),e}function p(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function g(t){return t&&t.component&&t.component.isList()}function v(t){return t&&t.component&&t.component.isSlider()}function m(t){var e=t.event.target;return e&&"mask"===(null==e?void 0:e.get("name"))||y(t)}function y(t){var e;return"multi-mask"===(null===(e=t.event.target)||void 0===e?void 0:e.get("name"))}function b(t,e){var n=t.event.target;if(y(t))return function(t,e){if("path"===t.event.target.get("type")){var n=function(t,e){return t.event.maskShapes.map((function(t){return h(t,e)}))}(t,e);return n.length>0?n.flatMap((function(e){return A(t.view,e)})):null}var r=c(t,e);if(r.length>0)return r.flatMap((function(e){return T(t.view,e)}));return null}(t,e);if("path"===n.get("type")){var r=function(t,e){return h(t.event.target,e)}(t,e);if(!r)return;return A(t.view,r)}var i=s(t,e);return i?T(t.view,i):null}function _(t,e,n){if(y(t))return function(t,e,n){var r=c(t,n);if(r.length>0)return r.flatMap((function(n){return x(n,t,e)}));return null}(t,e,n);var r=s(t,n);return r?x(r,t,e):null}function x(t,e,n){var r=e.view,i=D(r,n,{x:t.x,y:t.y}),o=D(r,n,{x:t.maxX,y:t.maxY});return T(n,{minX:i.x,minY:i.y,maxX:o.x,maxY:o.y})}function O(t){var e=t.geometries,n=[];return Object(r.each)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(r.each)(t.views,(function(t){n=n.concat(O(t))})),n}function w(t,e,n){return O(t).filter((function(t){return C(t,e)===n}))}function S(t,e){var n=t.geometries,i=[];return Object(r.each)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i}function C(t,e){var n=t.getModel().data;return Object(r.isArray)(n)?n[0][e]:n[e]}function E(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=e.x&&t.y<=e.y&&t.maxY>e.y}function L(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function D(t,e,n){var r=function(t,e){return t.getCoordinate().invert(e)}(t,n);return e.getCoordinate().convert(r)}function R(t,e,n,i){var o=!1;return Object(r.each)(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return o=!0,!1})),o}function N(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(r.each)(t.views,(function(t){if(n=N(t,e))return!1})),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(507);function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Object(r.default)(t,e)}},function(t,e,n){"use strict";n.r(e);var r=n(7);n.d(e,"mat3",(function(){return r.mat3})),n.d(e,"vec2",(function(){return r.vec2})),n.d(e,"vec3",(function(){return r.vec3}));var i=n(1120);n.d(e,"ext",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(239),i=n(14);function o(t,e){if(e&&("object"===Object(r.default)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Object(i.default)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"setLabelText",(function(){return l})),n.d(e,"setLabelStyle",(function(){return h})),n.d(e,"getLabelStatesModels",(function(){return f})),n.d(e,"createTextStyle",(function(){return d})),n.d(e,"createTextConfig",(function(){return p})),n.d(e,"getFont",(function(){return b})),n.d(e,"labelInner",(function(){return _})),n.d(e,"setLabelValueAnimation",(function(){return x})),n.d(e,"animateLabelValue",(function(){return O}));var r=n(69),i=n(0),o=n(13),a=n(10),s=n(23),u={};function l(t,e){for(var n=0;n"),IRendererService:Symbol.for("IRendererService"),IShaderModuleService:Symbol.for("IShaderModuleService"),IIconService:Symbol.for("IIconService"),IFontService:Symbol.for("IFontService"),IInteractionService:Symbol.for("IInteractionService"),IPickingService:Symbol.for("IPickingService"),IControlService:Symbol.for("IControlService"),IStyleAttributeService:Symbol.for("IStyleAttributeService"),ILayer:Symbol.for("ILayer"),ILayerPlugin:Symbol.for("ILayerPlugin"),INormalPass:Symbol.for("INormalPass"),IPostProcessor:Symbol.for("IPostProcessor"),IPostProcessingPass:Symbol.for("IPostProcessingPass"),IFactoryPostProcessingPass:Symbol.for("Factory"),IFactoryNormalPass:Symbol.for("Factory"),IMultiPassRenderer:Symbol.for("IMultiPassRenderer"),SceneID:Symbol.for("SceneID"),MapConfig:Symbol.for("MapConfig")}},function(t,e,n){"use strict";n.r(e),n.d(e,"VISUAL_DIMENSIONS",(function(){return i})),n.d(e,"SOURCE_FORMAT_ORIGINAL",(function(){return o})),n.d(e,"SOURCE_FORMAT_ARRAY_ROWS",(function(){return a})),n.d(e,"SOURCE_FORMAT_OBJECT_ROWS",(function(){return s})),n.d(e,"SOURCE_FORMAT_KEYED_COLUMNS",(function(){return u})),n.d(e,"SOURCE_FORMAT_TYPED_ARRAY",(function(){return l})),n.d(e,"SOURCE_FORMAT_UNKNOWN",(function(){return c})),n.d(e,"SERIES_LAYOUT_BY_COLUMN",(function(){return h})),n.d(e,"SERIES_LAYOUT_BY_ROW",(function(){return f}));var r=n(0),i=Object(r.createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),o="original",a="arrayRows",s="objectRows",u="keyedColumns",l="typedArray",c="unknown",h="column",f="row"},function(t,e,n){"use strict";n.r(e),n.d(e,"getECData",(function(){return i})),n.d(e,"setCommonECData",(function(){return o}));var r=n(10),i=Object(r.makeInner)(),o=function(t,e,n,r){if(r){var o=i(r);o.dataIndex=n,o.dataType=e,o.seriesIndex=t,"group"===r.type&&r.traverse((function(r){var o=i(r);o.seriesIndex=t,o.dataIndex=n,o.dataType=e}))}}},function(t,e,n){var r=n(2177)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){"use strict";n.r(e),n.d(e,"LOCATION_PARAMS",(function(){return u})),n.d(e,"HV_NAMES",(function(){return l})),n.d(e,"box",(function(){return h})),n.d(e,"vbox",(function(){return f})),n.d(e,"hbox",(function(){return d})),n.d(e,"getAvailableSize",(function(){return p})),n.d(e,"getLayoutRect",(function(){return g})),n.d(e,"positionElement",(function(){return v})),n.d(e,"sizeCalculable",(function(){return m})),n.d(e,"fetchLayoutMode",(function(){return y})),n.d(e,"mergeLayoutParam",(function(){return b})),n.d(e,"getLayoutParams",(function(){return _})),n.d(e,"copyLayoutParams",(function(){return x}));var r=n(0),i=n(37),o=n(5),a=n(68),s=r.each,u=["left","right","top","bottom","width","height"],l=[["width","left","right"],["height","top","bottom"]];function c(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(u,l){var c,h,f=u.getBoundingRect(),d=e.childAt(l+1),p=d&&d.getBoundingRect();if("horizontal"===t){var g=f.width+(p?-p.x+f.x:0);(c=o+g)>r||u.newline?(o=0,c=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(p?-p.y+f.y:0);(h=a+v)>i||u.newline?(o+=s+n,a=0,h=v,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=o,u.y=a,u.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var h=c,f=r.curry(c,"vertical"),d=r.curry(c,"horizontal");function p(t,e,n){var r=e.width,i=e.height,s=Object(o.parsePercent)(t.left,r),u=Object(o.parsePercent)(t.top,i),l=Object(o.parsePercent)(t.right,r),c=Object(o.parsePercent)(t.bottom,i);return(isNaN(s)||isNaN(parseFloat(t.left)))&&(s=0),(isNaN(l)||isNaN(parseFloat(t.right)))&&(l=r),(isNaN(u)||isNaN(parseFloat(t.top)))&&(u=0),(isNaN(c)||isNaN(parseFloat(t.bottom)))&&(c=i),n=a.normalizeCssArray(n||0),{width:Math.max(l-s-n[1]-n[3],0),height:Math.max(c-u-n[0]-n[2],0)}}function g(t,e,n){n=a.normalizeCssArray(n||0);var r=e.width,s=e.height,u=Object(o.parsePercent)(t.left,r),l=Object(o.parsePercent)(t.top,s),c=Object(o.parsePercent)(t.right,r),h=Object(o.parsePercent)(t.bottom,s),f=Object(o.parsePercent)(t.width,r),d=Object(o.parsePercent)(t.height,s),p=n[2]+n[0],g=n[1]+n[3],v=t.aspect;switch(isNaN(f)&&(f=r-c-g-u),isNaN(d)&&(d=s-h-p-l),null!=v&&(isNaN(f)&&isNaN(d)&&(v>r/s?f=.8*r:d=.8*s),isNaN(f)&&(f=v*d),isNaN(d)&&(d=f/v)),isNaN(u)&&(u=r-c-f-g),isNaN(l)&&(l=s-h-d-p),t.left||t.right){case"center":u=r/2-f/2-n[3];break;case"right":u=r-f-g}switch(t.top||t.bottom){case"middle":case"center":l=s/2-d/2-n[0];break;case"bottom":l=s-d-p}u=u||0,l=l||0,isNaN(f)&&(f=r-g-u-(c||0)),isNaN(d)&&(d=s-p-l-(h||0));var m=new i.default(u+n[3],l+n[0],f,d);return m.margin=n,m}function v(t,e,n,o,a,s){var u,l=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],h=a&&a.boundingMode||"all";if((s=s||t).x=t.x,s.y=t.y,!l&&!c)return!1;if("raw"===h)u="group"===t.type?new i.default(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var f=t.getLocalTransform();(u=u.clone()).applyTransform(f)}var d=g(r.defaults({width:u.width,height:u.height},e),n,o),p=l?d.x-u.x:0,v=c?d.y-u.y:0;return"raw"===h?(s.x=p,s.y=v):(s.x+=p,s.y+=v),s===t&&t.markRedraw(),!0}function m(t,e){return null!=t[l[e][0]]||null!=t[l[e][1]]&&null!=t[l[e][2]]}function y(t){var e=t.layoutMode||t.constructor.layoutMode;return r.isObject(e)?e:e?{type:e}:null}function b(t,e,n){var i=n&&n.ignoreSize;!r.isArray(i)&&(i=[i,i]);var o=u(l[0],0),a=u(l[1],1);function u(n,r){var o={},a=0,u={},l=0;if(s(n,(function(e){u[e]=t[e]})),s(n,(function(t){c(e,t)&&(o[t]=u[t]=e[t]),h(o,t)&&a++,h(u,t)&&l++})),i[r])return h(e,n[1])?u[n[2]]=null:h(e,n[2])&&(u[n[1]]=null),u;if(2!==l&&a){if(a>=2)return o;for(var f=0;fm&&(m=O,ym&&(m=w,_=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],h=r[3],f=r[4],d=r[5];return e.x=n.x*i+f,e.y=n.y*h+d,e.width=n.width*i,e.height=n.height*h,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}s.x=l.x=n.x,s.y=c.y=n.y,u.x=c.x=n.x+n.width,u.y=l.y=n.y+n.height,s.transform(r),c.transform(r),u.transform(r),l.transform(r),e.x=o(s.x,u.x,l.x,c.x),e.y=o(s.y,u.y,l.y,c.y);var p=a(s.x,u.x,l.x,c.x),g=a(s.y,u.y,l.y,c.y);e.width=p-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}();e.default=d},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_PATH_STYLE",(function(){return f})),n.d(e,"DEFAULT_PATH_ANIMATION_PROPS",(function(){return d}));var r=n(61),i=n(103),o=n(145),a=n(927),s=n(0),u=n(75),l=n(160),c=n(105),h=n(127),f=Object(s.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},i.DEFAULT_COMMON_STYLE),d={style:Object(s.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},i.DEFAULT_COMMON_ANIMATION_PROPS.style)},p=h.TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),g=function(t){function e(e){return t.call(this,e)||this}var n;return Object(r.__extends)(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?l.DARK_LABEL_COLOR:e>.2?l.LIGHTER_LABEL_COLOR:l.LIGHT_LABEL_COLOR}if(t)return l.LIGHT_LABEL_COLOR}return l.DARK_LABEL_COLOR},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(s.isString)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Object(u.lum)(t,0)0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&c.SHAPE_CHANGED_BIT)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;s=Math.max(s,null==u?4:u)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var s=i.lineWidth,u=i.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),a.containStroke(o,s/u,t,e)))return!0}if(this.hasFill())return a.contain(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=c.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:Object(s.extend)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&c.SHAPE_CHANGED_BIT)},e.prototype.createStyle=function(t){return Object(s.createObject)(f,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(s.extend)({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var u,l=!(n&&i);if(n&&n.shape?o?i?u=n.shape:(u=Object(s.extend)({},r.shape),Object(s.extend)(u,n.shape)):(u=Object(s.extend)({},i?this.shape:r.shape),Object(s.extend)(u,n.shape)):l&&(u=r.shape),u)if(o){this.shape=Object(s.extend)({},this.shape);for(var c={},h=Object(s.keys)(u),f=0;f=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=i.indexOf(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=i.indexOf(n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n=0;u--)a=i.merge(a,n[u],!0);e.defaultOption=a}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return Object(u.queryReferringComponents)(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.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")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(o.default);Object(s.mountExtend)(h,o.default),Object(s.enableClassManagement)(h),a.enableSubTypeDefaulter(h),a.enableTopologicalTravel(h,(function(t){var e=[];i.each(h.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=i.map(e,(function(t){return Object(s.parseClassType)(t).main})),"dataset"!==t&&i.indexOf(e,"dataset")<=0&&e.unshift("dataset");return e})),e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"formatPadding",(function(){return i})),n.d(e,"clearDom",(function(){return o})),n.d(e,"hasClass",(function(){return a})),n.d(e,"regionToBBox",(function(){return s})),n.d(e,"pointsToBBox",(function(){return u})),n.d(e,"createBBox",(function(){return l})),n.d(e,"getValueByPercent",(function(){return c})),n.d(e,"getCirclePoint",(function(){return h})),n.d(e,"distance",(function(){return f})),n.d(e,"wait",(function(){return d})),n.d(e,"near",(function(){return p})),n.d(e,"intersectBBox",(function(){return g})),n.d(e,"mergeBBox",(function(){return v})),n.d(e,"getBBoxWithClip",(function(){return m})),n.d(e,"updateClip",(function(){return y})),n.d(e,"toPx",(function(){return b})),n.d(e,"getTextPoint",(function(){return _}));var r=n(1);function i(t){var e=0,n=0,i=0,o=0;return Object(r.isNumber)(t)?e=n=i=o=t:Object(r.isArray)(t)&&(e=t[0],i=Object(r.isNil)(t[1])?t[0]:t[1],o=Object(r.isNil)(t[2])?t[0]:t[2],n=Object(r.isNil)(t[3])?i:t[3]),[e,i,o,n]}function o(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])}function a(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function s(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function u(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function l(t,e,n,r){var i=t+n,o=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(o)?0:o}}function c(t,e,n){return(1-n)*t+e*n}function h(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}function f(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}var d=function(t){return new Promise((function(e){setTimeout(e,t)}))},p=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)0?Object(r.each)(c,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=m(t),n=t.applyToMatrix([e.minX,e.minY,1]),r=t.applyToMatrix([e.minX,e.maxY,1]),i=t.applyToMatrix([e.maxX,e.minY,1]),l=t.applyToMatrix([e.maxX,e.maxY,1]),c=Math.min(n[0],r[0],i[0],l[0]),h=Math.max(n[0],r[0],i[0],l[0]),f=Math.min(n[1],r[1],i[1],l[1]),d=Math.max(n[1],r[1],i[1],l[1]);ca&&(a=h),fu&&(u=d)}})):(o=0,a=0,s=0,u=0),e=l(o,s,a-o,u-s)}else e=t.getBBox();return i?g(e,i):e}function y(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}}function b(t){return t+"px"}function _(t,e,n,r){var i=r/f(t,e),o=0;return"start"===n?o=0-i:"end"===n&&(o=1+i),{x:c(t.x,e.x,o),y:c(t.y,e.y,o)}}},function(t,e,n){"use strict";function r(){return[1,0,0,1,0,0]}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(t,e){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}function a(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],u=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t}function s(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function u(t,e,n){var r=e[0],i=e[2],o=e[4],a=e[1],s=e[3],u=e[5],l=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*l,t[1]=-r*l+a*c,t[2]=i*c+s*l,t[3]=-i*l+c*s,t[4]=c*o+l*u,t[5]=c*u-l*o,t}function l(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function c(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],u=n*a-o*r;return u?(u=1/u,t[0]=a*u,t[1]=-o*u,t[2]=-r*u,t[3]=n*u,t[4]=(r*s-a*i)*u,t[5]=(o*i-n*s)*u,t):null}function h(t){var e=[1,0,0,1,0,0];return o(e,t),e}n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"identity",(function(){return i})),n.d(e,"copy",(function(){return o})),n.d(e,"mul",(function(){return a})),n.d(e,"translate",(function(){return s})),n.d(e,"rotate",(function(){return u})),n.d(e,"scale",(function(){return l})),n.d(e,"invert",(function(){return c})),n.d(e,"clone",(function(){return h}))},function(t,e,n){"use strict";n.r(e),n.d(e,"ONE_SECOND",(function(){return s})),n.d(e,"ONE_MINUTE",(function(){return u})),n.d(e,"ONE_HOUR",(function(){return l})),n.d(e,"ONE_DAY",(function(){return c})),n.d(e,"ONE_YEAR",(function(){return h})),n.d(e,"defaultLeveledFormatter",(function(){return f})),n.d(e,"fullLeveledFormatter",(function(){return d})),n.d(e,"primaryTimeUnits",(function(){return p})),n.d(e,"timeUnits",(function(){return g})),n.d(e,"pad",(function(){return v})),n.d(e,"getPrimaryTimeUnit",(function(){return m})),n.d(e,"isPrimaryTimeUnit",(function(){return y})),n.d(e,"getDefaultFormatPrecisionOfInterval",(function(){return b})),n.d(e,"format",(function(){return _})),n.d(e,"leveledFormat",(function(){return x})),n.d(e,"getUnitFromValue",(function(){return O})),n.d(e,"getUnitValue",(function(){return w})),n.d(e,"fullYearGetterName",(function(){return S})),n.d(e,"monthGetterName",(function(){return C})),n.d(e,"dateGetterName",(function(){return E})),n.d(e,"hoursGetterName",(function(){return T})),n.d(e,"minutesGetterName",(function(){return M})),n.d(e,"secondsGetterName",(function(){return A})),n.d(e,"millisecondsGetterName",(function(){return j})),n.d(e,"fullYearSetterName",(function(){return I})),n.d(e,"monthSetterName",(function(){return k})),n.d(e,"dateSetterName",(function(){return P})),n.d(e,"hoursSetterName",(function(){return L})),n.d(e,"minutesSetterName",(function(){return D})),n.d(e,"secondsSetterName",(function(){return R})),n.d(e,"millisecondsSetterName",(function(){return N}));var r=n(0),i=n(5),o=n(260),a=n(57),s=1e3,u=60*s,l=60*u,c=24*l,h=365*c,f={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},d={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+f.hour,minute:"{yyyy}-{MM}-{dd} "+f.minute,second:"{yyyy}-{MM}-{dd} "+f.second,millisecond:f.none},p=["year","month","day","hour","minute","second","millisecond"],g=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function v(t,e){return"0000".substr(0,e-(t+="").length)+t}function m(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function y(t){return t===m(t)}function b(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function _(t,e,n,r){var s=i.parseDate(t),u=s[S(n)](),l=s[C(n)]()+1,c=Math.floor((l-1)/3)+1,h=s[E(n)](),f=s["get"+(n?"UTC":"")+"Day"](),d=s[T(n)](),p=(d-1)%12+1,g=s[M(n)](),m=s[A(n)](),y=s[j(n)](),b=(r instanceof a.default?r:Object(o.getLocaleModel)(r||o.SYSTEM_LANG)||Object(o.getDefaultLocaleModel)()).getModel("time"),_=b.get("month"),x=b.get("monthAbbr"),O=b.get("dayOfWeek"),w=b.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,u+"").replace(/{yy}/g,u%100+"").replace(/{Q}/g,c+"").replace(/{MMMM}/g,_[l-1]).replace(/{MMM}/g,x[l-1]).replace(/{MM}/g,v(l,2)).replace(/{M}/g,l+"").replace(/{dd}/g,v(h,2)).replace(/{d}/g,h+"").replace(/{eeee}/g,O[f]).replace(/{ee}/g,w[f]).replace(/{e}/g,f+"").replace(/{HH}/g,v(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,v(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,v(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,v(m,2)).replace(/{s}/g,m+"").replace(/{SSS}/g,v(y,3)).replace(/{S}/g,y+"")}function x(t,e,n,i,o){var a=null;if(r.isString(n))a=n;else if(r.isFunction(n))a=n(t.value,e,{level:t.level});else{var s=r.extend({},f);if(t.level>0)for(var u=0;u=0;--u)if(l[c]){a=l[c];break}a=a||s.none}if(r.isArray(a)){var h=null==t.level?0:t.level>=0?t.level:a.length+t.level;a=a[h=Math.min(h,a.length-1)]}}return _(new Date(t.value),a,o,i)}function O(t,e){var n=i.parseDate(t),r=n[C(e)]()+1,o=n[E(e)](),a=n[T(e)](),s=n[M(e)](),u=n[A(e)](),l=0===n[j(e)](),c=l&&0===u,h=c&&0===s,f=h&&0===a,d=f&&1===o;return d&&1===r?"year":d?"month":f?"day":h?"hour":c?"minute":l?"second":"millisecond"}function w(t,e,n){var o=r.isNumber(t)?i.parseDate(t):t;switch(e=e||O(t,n)){case"year":return o[S(n)]();case"half-year":return o[C(n)]()>=6?1:0;case"quarter":return Math.floor((o[C(n)]()+1)/4);case"month":return o[C(n)]();case"day":return o[E(n)]();case"half-day":return o[T(n)]()/24;case"hour":return o[T(n)]();case"minute":return o[M(n)]();case"second":return o[A(n)]();case"millisecond":return o[j(n)]()}}function S(t){return t?"getUTCFullYear":"getFullYear"}function C(t){return t?"getUTCMonth":"getMonth"}function E(t){return t?"getUTCDate":"getDate"}function T(t){return t?"getUTCHours":"getHours"}function M(t){return t?"getUTCMinutes":"getMinutes"}function A(t){return t?"getUTCSeconds":"getSeconds"}function j(t){return t?"getUTCMilliseconds":"getMilliseconds"}function I(t){return t?"setUTCFullYear":"setFullYear"}function k(t){return t?"setUTCMonth":"setMonth"}function P(t){return t?"setUTCDate":"setDate"}function L(t){return t?"setUTCHours":"setHours"}function D(t){return t?"setUTCMinutes":"setMinutes"}function R(t){return t?"setUTCSeconds":"setSeconds"}function N(t){return t?"setUTCMilliseconds":"setMilliseconds"}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(1906),i=n(1907),o=n(823),a=n(1908);function s(t,e){return Object(r.default)(t)||Object(i.default)(t,e)||Object(o.default)(t,e)||Object(a.default)()}},function(t,e,n){"use strict";n.r(e),n.d(e,"use",(function(){return d}));var r=n(133),i=n(66),o=n(53),a=n(42),s=n(54),u=n(0),l=n(582),c=n(415),h=[],f={registerPreprocessor:r.registerPreprocessor,registerProcessor:r.registerProcessor,registerPostInit:r.registerPostInit,registerPostUpdate:r.registerPostUpdate,registerUpdateLifecycle:r.registerUpdateLifecycle,registerAction:r.registerAction,registerCoordinateSystem:r.registerCoordinateSystem,registerLayout:r.registerLayout,registerVisual:r.registerVisual,registerTransform:r.registerTransform,registerLoading:r.registerLoading,registerMap:r.registerMap,registerImpl:l.registerImpl,PRIORITY:r.PRIORITY,ComponentModel:a.default,ComponentView:i.default,SeriesModel:s.default,ChartView:o.default,registerComponentModel:function(t){a.default.registerClass(t)},registerComponentView:function(t){i.default.registerClass(t)},registerSeriesModel:function(t){s.default.registerClass(t)},registerChartView:function(t){o.default.registerClass(t)},registerSubTypeDefaulter:function(t,e){a.default.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Object(c.registerPainter)(t,e)}};function d(t){Object(u.isArray)(t)?Object(u.each)(t,(function(t){d(t)})):Object(u.indexOf)(h,t)>=0||(h.push(t),Object(u.isFunction)(t)&&(t={install:t}),t.install(f))}},function(t,e,n){"use strict";n.r(e),n.d(e,"cubicAt",(function(){return f})),n.d(e,"cubicDerivativeAt",(function(){return d})),n.d(e,"cubicRootAt",(function(){return p})),n.d(e,"cubicExtrema",(function(){return g})),n.d(e,"cubicSubdivide",(function(){return v})),n.d(e,"cubicProjectPoint",(function(){return m})),n.d(e,"cubicLength",(function(){return y})),n.d(e,"quadraticAt",(function(){return b})),n.d(e,"quadraticDerivativeAt",(function(){return _})),n.d(e,"quadraticRootAt",(function(){return x})),n.d(e,"quadraticExtremum",(function(){return O})),n.d(e,"quadraticSubdivide",(function(){return w})),n.d(e,"quadraticProjectPoint",(function(){return S})),n.d(e,"quadraticLength",(function(){return C}));var r=n(20),i=Math.pow,o=Math.sqrt,a=o(3),s=Object(r.create)(),u=Object(r.create)(),l=Object(r.create)();function c(t){return t>-1e-8&&t<1e-8}function h(t){return t>1e-8||t<-1e-8}function f(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function d(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function p(t,e,n,r,s,u){var l=r+3*(e-n)-t,h=3*(n-2*e+t),f=3*(e-t),d=t-s,p=h*h-3*l*f,g=h*f-9*l*d,v=f*f-3*h*d,m=0;if(c(p)&&c(g)){if(c(h))u[0]=0;else(M=-f/h)>=0&&M<=1&&(u[m++]=M)}else{var y=g*g-4*p*v;if(c(y)){var b=g/p,_=-b/2;(M=-h/l+b)>=0&&M<=1&&(u[m++]=M),_>=0&&_<=1&&(u[m++]=_)}else if(y>0){var x=o(y),O=p*h+1.5*l*(-g+x),w=p*h+1.5*l*(-g-x);(M=(-h-((O=O<0?-i(-O,1/3):i(O,1/3))+(w=w<0?-i(-w,1/3):i(w,1/3))))/(3*l))>=0&&M<=1&&(u[m++]=M)}else{var S=(2*p*h-3*l*g)/(2*o(p*p*p)),C=Math.acos(S)/3,E=o(p),T=Math.cos(C),M=(-h-2*E*T)/(3*l),A=(_=(-h+E*(T+a*Math.sin(C)))/(3*l),(-h+E*(T-a*Math.sin(C)))/(3*l));M>=0&&M<=1&&(u[m++]=M),_>=0&&_<=1&&(u[m++]=_),A>=0&&A<=1&&(u[m++]=A)}}return m}function g(t,e,n,r,i){var a=6*n-12*e+6*t,s=9*e+3*r-3*t-9*n,u=3*e-3*t,l=0;if(c(s)){if(h(a))(d=-u/a)>=0&&d<=1&&(i[l++]=d)}else{var f=a*a-4*s*u;if(c(f))i[0]=-a/(2*s);else if(f>0){var d,p=o(f),g=(-a-p)/(2*s);(d=(-a+p)/(2*s))>=0&&d<=1&&(i[l++]=d),g>=0&&g<=1&&(i[l++]=g)}}return l}function v(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,u=(r-n)*i+n,l=(s-a)*i+a,c=(u-s)*i+s,h=(c-l)*i+l;o[0]=t,o[1]=a,o[2]=l,o[3]=h,o[4]=h,o[5]=c,o[6]=u,o[7]=r}function m(t,e,n,i,a,c,h,d,p,g,v){var m,y,b,_,x,O=.005,w=1/0;s[0]=p,s[1]=g;for(var S=0;S<1;S+=.05)u[0]=f(t,n,a,h,S),u[1]=f(e,i,c,d,S),(_=Object(r.distSquare)(s,u))=0&&_=0&&d<=1&&(i[l++]=d)}else{var f=s*s-4*a*u;if(c(f))(d=-s/(2*a))>=0&&d<=1&&(i[l++]=d);else if(f>0){var d,p=o(f),g=(-s-p)/(2*a);(d=(-s+p)/(2*a))>=0&&d<=1&&(i[l++]=d),g>=0&&g<=1&&(i[l++]=g)}}return l}function O(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function w(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function S(t,e,n,i,a,c,h,f,d){var p,g=.005,v=1/0;s[0]=h,s[1]=f;for(var m=0;m<1;m+=.05){u[0]=b(t,n,a,m),u[1]=b(e,i,c,m),(O=Object(r.distSquare)(s,u))=0&&O18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,i),e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"warning",(function(){return u})),n.d(e,"format",(function(){return l})),n.d(e,"isEmptyValue",(function(){return c})),n.d(e,"isEmptyObject",(function(){return h})),n.d(e,"asyncMap",(function(){return d})),n.d(e,"complementError",(function(){return p})),n.d(e,"deepMerge",(function(){return g}));var r=n(435),i=n.n(r),o=n(266),a=n.n(o),s=/%[sdj%]/g,u=function(){};function l(){for(var t=arguments.length,e=Array(t),n=0;n=o)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(t){return"[Circular]"}break;default:return t}})),u=e[r];rthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=u.PaletteMixin.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(o)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[v(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[m])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,o=this.option,a=o.selectedMode,s=e.length;if(a&&s)if("series"===a)o.selectedMap="all";else if("multiple"===a){i.isObject(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return s.default.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(s.default);function b(t){var e=t.name;a.isNameSpecified(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return i.each(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}(t)||e)}function _(t){return t.model.getRawData().count()}function x(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),O}function O(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function w(t,e){i.each(i.concatArray(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,i.curry(S,e))}))}function S(t,e){var n=C(t);return n&&n.setOutputEnd((e||this).count()),e}function C(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}i.mixin(y,l.DataFormatMixin),i.mixin(y,u.PaletteMixin),Object(f.mountExtend)(y,s.default),e.default=y},function(t,e,n){"use strict";n.r(e),n.d(e,"getWidth",(function(){return s})),n.d(e,"innerGetBoundingRect",(function(){return u})),n.d(e,"getBoundingRect",(function(){return l})),n.d(e,"adjustTextX",(function(){return c})),n.d(e,"adjustTextY",(function(){return h})),n.d(e,"getLineHeight",(function(){return f})),n.d(e,"measureText",(function(){return d})),n.d(e,"parsePercent",(function(){return p})),n.d(e,"calculateTextPosition",(function(){return g}));var r=n(37),i=n(310),o=n(104),a={};function s(t,e){e=e||o.DEFAULT_FONT;var n=a[e];n||(n=a[e]=new i.default(500));var r=n.get(t);return null==r&&(r=o.platformApi.measureText(t,e).width,n.put(t,r)),r}function u(t,e,n,i){var o=s(t,e),a=f(e),u=c(0,o,n),l=h(0,a,i);return new r.default(u,l,o,a)}function l(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return u(o[0],e,n,i);for(var a=new r.default(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function g(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,u=n.x,l=n.y,c="left",h="top";if(r instanceof Array)u+=p(r[0],n.width),l+=p(r[1],n.height),c=null,h=null;else switch(r){case"left":u-=i,l+=s,c="right",h="middle";break;case"right":u+=i+a,l+=s,h="middle";break;case"top":u+=a/2,l-=i,c="center",h="bottom";break;case"bottom":u+=a/2,l+=o+i,c="center";break;case"inside":u+=a/2,l+=s,c="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=a-i,l+=s,c="right",h="middle";break;case"insideTop":u+=a/2,l+=i,c="center";break;case"insideBottom":u+=a/2,l+=o-i,c="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=a-i,l+=i,c="right";break;case"insideBottomLeft":u+=i,l+=o-i,h="bottom";break;case"insideBottomRight":u+=a-i,l+=o-i,c="right",h="bottom"}return(t=t||{}).x=u,t.y=l,t.align=c,t.verticalAlign=h,t}},function(t,e,n){"use strict";n.r(e),n.d(e,"getPixelRatio",(function(){return i})),n.d(e,"distance",(function(){return o})),n.d(e,"inBox",(function(){return a})),n.d(e,"intersectRect",(function(){return s})),n.d(e,"mergeRegion",(function(){return u})),n.d(e,"isSamePoint",(function(){return l}));var r=n(1);function i(){return window?window.devicePixelRatio:1}function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function a(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r}function s(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof b?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function x(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:b(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function O(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var S=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&f(e,t,n);return S(e,t),e}function E(t){return t&&t.__esModule?t:{default:t}}function T(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function M(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}},function(t,e,n){"use strict";function r(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"symbolBuildProxies",(function(){return y})),n.d(e,"createSymbol",(function(){return x})),n.d(e,"normalizeSymbolSize",(function(){return O})),n.d(e,"normalizeSymbolOffset",(function(){return w}));var r=n(0),i=n(38),o=n(152),a=n(74),s=n(244),u=n(16),l=n(37),c=n(55),h=n(5),f=i.default.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),d=i.default.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),p=i.default.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),u=r-o+a+s,l=Math.asin(s/a),c=Math.cos(l)*a,h=Math.sin(l),f=Math.cos(l),d=.6*a,p=.7*a;t.moveTo(n-c,u+s),t.arc(n,u,a,Math.PI-l,2*Math.PI+l),t.bezierCurveTo(n+c-h*d,u+s+f*d,n,r-p,n,r),t.bezierCurveTo(n,r-p,n-c+h*d,u+s+f*d,n-c,u+s),t.closePath()}}),g=i.default.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),v={line:o.default,rect:a.default,roundRect:a.default,square:a.default,circle:s.default,diamond:d,pin:p,arrow:g,triangle:f},m={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},y={};Object(r.each)(v,(function(t,e){y[e]=new t}));var b=i.default.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=Object(c.calculateTextPosition)(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=y[r];i||(i=y[r="rect"]),m[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function _(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function x(t,e,n,r,i,o,a){var s,c=0===t.indexOf("empty");return c&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?u.makeImage(t.slice(8),new l.default(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?u.makePath(t.slice(7),{},new l.default(e,n,r,i),a?"center":"cover"):new b({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=c,s.setColor=_,o&&s.setColor(o),s}function O(t){return Object(r.isArray)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function w(t,e){if(null!=t)return Object(r.isArray)(t)||(t=[t,t]),[Object(h.parsePercent)(t[0],e[0])||0,Object(h.parsePercent)(Object(r.retrieve2)(t[1],t[0]),e[1])||0]}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(1924),i=n(1925),o=n(823),a=n(1926);function s(t){return Object(r.default)(t)||Object(i.default)(t)||Object(o.default)(t)||Object(a.default)()}},function(t,e,n){"use strict";n.r(e),n.d(e,"wrap",(function(){return l})),n.d(e,"clamp",(function(){return c})),n.d(e,"interpolate",(function(){return h})),n.d(e,"bezier",(function(){return f})),n.d(e,"ease",(function(){return d})),n.d(e,"prefersReducedMotion",(function(){return p})),n.d(e,"pick",(function(){return g})),n.d(e,"now",(function(){return v})),n.d(e,"raf",(function(){return m})),n.d(e,"cancel",(function(){return y})),n.d(e,"renderframe",(function(){return b}));var r,i=n(18),o=n(1986),a=n.n(o);function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",l="[object Array]",c="[object Boolean]",h="[object Date]",f="[object Error]",d="[object Function]",p="[object GeneratorFunction]",g="[object Map]",v="[object Number]",m="[object Object]",y="[object RegExp]",b="[object Set]",_="[object String]",x="[object Symbol]",O="[object WeakMap]",w="[object ArrayBuffer]",S="[object DataView]",C="[object Float32Array]",E="[object Float64Array]",T="[object Int8Array]",M="[object Int16Array]",A="[object Int32Array]",j="[object Uint8Array]",I="[object Uint16Array]",k="[object Uint32Array]",P=/\b__p \+= '';/g,L=/\b(__p \+=) '' \+/g,D=/(__e\(.*?\)|\b__t\)) \+\n'';/g,R=/&(?:amp|lt|gt|quot|#39);/g,N=/[&<>"']/g,F=RegExp(R.source),B=RegExp(N.source),z=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,$=RegExp(Y.source),X=/^\s+/,q=/\s/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,K=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,J=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,ut=/^(?:0|[1-9]\d*)$/,lt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ht=/['\n\r\u2028\u2029\\]/g,ft="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",gt="["+dt+"]",vt="["+ft+"]",mt="\\d+",yt="[\\u2700-\\u27bf]",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",_t="[^\\ud800-\\udfff"+dt+mt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",xt="\\ud83c[\\udffb-\\udfff]",Ot="[^\\ud800-\\udfff]",wt="(?:\\ud83c[\\udde6-\\uddff]){2}",St="[\\ud800-\\udbff][\\udc00-\\udfff]",Ct="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Et="(?:"+bt+"|"+_t+")",Tt="(?:"+Ct+"|"+_t+")",Mt="(?:"+vt+"|"+xt+")"+"?",At="[\\ufe0e\\ufe0f]?"+Mt+("(?:\\u200d(?:"+[Ot,wt,St].join("|")+")[\\ufe0e\\ufe0f]?"+Mt+")*"),jt="(?:"+[yt,wt,St].join("|")+")"+At,It="(?:"+[Ot+vt+"?",vt,wt,St,pt].join("|")+")",kt=RegExp("['’]","g"),Pt=RegExp(vt,"g"),Lt=RegExp(xt+"(?="+xt+")|"+It+At,"g"),Dt=RegExp([Ct+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[gt,Ct,"$"].join("|")+")",Tt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[gt,Ct+Et,"$"].join("|")+")",Ct+"?"+Et+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ct+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mt,jt].join("|"),"g"),Rt=RegExp("[\\u200d\\ud800-\\udfff"+ft+"\\ufe0e\\ufe0f]"),Nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Bt=-1,zt={};zt[C]=zt[E]=zt[T]=zt[M]=zt[A]=zt[j]=zt["[object Uint8ClampedArray]"]=zt[I]=zt[k]=!0,zt[u]=zt[l]=zt[w]=zt[c]=zt[S]=zt[h]=zt[f]=zt[d]=zt[g]=zt[v]=zt[m]=zt[y]=zt[b]=zt[_]=zt[O]=!1;var Vt={};Vt[u]=Vt[l]=Vt[w]=Vt[S]=Vt[c]=Vt[h]=Vt[C]=Vt[E]=Vt[T]=Vt[M]=Vt[A]=Vt[g]=Vt[v]=Vt[m]=Vt[y]=Vt[b]=Vt[_]=Vt[x]=Vt[j]=Vt["[object Uint8ClampedArray]"]=Vt[I]=Vt[k]=!0,Vt[f]=Vt[d]=Vt[O]=!1;var Ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Gt=parseFloat,Ht=parseInt,Wt="object"==typeof t&&t&&t.Object===Object&&t,Yt="object"==typeof self&&self&&self.Object===Object&&self,$t=Wt||Yt||Function("return this")(),Xt=e&&!e.nodeType&&e,qt=Xt&&"object"==typeof r&&r&&!r.nodeType&&r,Zt=qt&&qt.exports===Xt,Kt=Zt&&Wt.process,Qt=function(){try{var t=qt&&qt.require&&qt.require("util").types;return t||Kt&&Kt.binding&&Kt.binding("util")}catch(t){}}(),Jt=Qt&&Qt.isArrayBuffer,te=Qt&&Qt.isDate,ee=Qt&&Qt.isMap,ne=Qt&&Qt.isRegExp,re=Qt&&Qt.isSet,ie=Qt&&Qt.isTypedArray;function oe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ae(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i-1}function fe(t,e,n){for(var r=-1,i=null==t?0:t.length;++r-1;);return n}function De(t,e){for(var n=t.length;n--&&xe(e,t[n],0)>-1;);return n}function Re(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var Ne=Ee({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Fe=Ee({"&":"&","<":"<",">":">",'"':""","'":"'"});function Be(t){return"\\"+Ut[t]}function ze(t){return Rt.test(t)}function Ve(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Ue(t,e){return function(n){return t(e(n))}}function Ge(t,e){for(var n=-1,r=t.length,i=0,o=[];++n",""":'"',"'":"'"});var Ze=function t(e){var n,r=(e=null==e?$t:Ze.defaults($t.Object(),e,Ze.pick($t,Ft))).Array,i=e.Date,q=e.Error,ft=e.Function,dt=e.Math,pt=e.Object,gt=e.RegExp,vt=e.String,mt=e.TypeError,yt=r.prototype,bt=ft.prototype,_t=pt.prototype,xt=e["__core-js_shared__"],Ot=bt.toString,wt=_t.hasOwnProperty,St=0,Ct=(n=/[^.]+$/.exec(xt&&xt.keys&&xt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Et=_t.toString,Tt=Ot.call(pt),Mt=$t._,At=gt("^"+Ot.call(wt).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jt=Zt?e.Buffer:void 0,It=e.Symbol,Lt=e.Uint8Array,Rt=jt?jt.allocUnsafe:void 0,Ut=Ue(pt.getPrototypeOf,pt),Wt=pt.create,Yt=_t.propertyIsEnumerable,Xt=yt.splice,qt=It?It.isConcatSpreadable:void 0,Kt=It?It.iterator:void 0,Qt=It?It.toStringTag:void 0,ye=function(){try{var t=to(pt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ee=e.clearTimeout!==$t.clearTimeout&&e.clearTimeout,Ke=i&&i.now!==$t.Date.now&&i.now,Qe=e.setTimeout!==$t.setTimeout&&e.setTimeout,Je=dt.ceil,tn=dt.floor,en=pt.getOwnPropertySymbols,nn=jt?jt.isBuffer:void 0,rn=e.isFinite,on=yt.join,an=Ue(pt.keys,pt),sn=dt.max,un=dt.min,ln=i.now,cn=e.parseInt,hn=dt.random,fn=yt.reverse,dn=to(e,"DataView"),pn=to(e,"Map"),gn=to(e,"Promise"),vn=to(e,"Set"),mn=to(e,"WeakMap"),yn=to(pt,"create"),bn=mn&&new mn,_n={},xn=Mo(dn),On=Mo(pn),wn=Mo(gn),Sn=Mo(vn),Cn=Mo(mn),En=It?It.prototype:void 0,Tn=En?En.valueOf:void 0,Mn=En?En.toString:void 0;function An(t){if(Wa(t)&&!La(t)&&!(t instanceof Pn)){if(t instanceof kn)return t;if(wt.call(t,"__wrapped__"))return Ao(t)}return new kn(t)}var jn=function(){function t(){}return function(e){if(!Ha(e))return{};if(Wt)return Wt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function In(){}function kn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Pn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ln(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Kn(t,e,n,r,i,o){var a,s=1&e,l=2&e,f=4&e;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!Ha(t))return t;var O=La(t);if(O){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&wt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!s)return yi(t,a)}else{var P=ro(t),L=P==d||P==p;if(Fa(t))return fi(t,s);if(P==m||P==u||L&&!i){if(a=l||L?{}:oo(t),!s)return l?function(t,e){return bi(t,no(t),e)}(t,function(t,e){return t&&bi(e,Os(e),t)}(a,t)):function(t,e){return bi(t,eo(t),e)}(t,$n(a,t))}else{if(!Vt[P])return i?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case w:return di(t);case c:case h:return new r(+t);case S:return function(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case C:case E:case T:case M:case A:case j:case"[object Uint8ClampedArray]":case I:case k:return pi(t,n);case g:return new r;case v:case _:return new r(t);case y:return function(t){var e=new t.constructor(t.source,rt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case b:return new r;case x:return i=t,Tn?pt(Tn.call(i)):{}}var i}(t,P,s)}}o||(o=new Fn);var D=o.get(t);if(D)return D;o.set(t,a),Za(t)?t.forEach((function(r){a.add(Kn(r,e,n,r,t,o))})):Ya(t)&&t.forEach((function(r,i){a.set(i,Kn(r,e,n,i,t,o))}));var R=O?void 0:(f?l?$i:Yi:l?Os:xs)(t);return se(R||t,(function(r,i){R&&(r=t[i=r]),Hn(a,i,Kn(r,e,n,i,t,o))})),a}function Qn(t,e,n){var r=n.length;if(null==t)return!r;for(t=pt(t);r--;){var i=n[r],o=e[i],a=t[i];if(void 0===a&&!(i in t)||!o(a))return!1}return!0}function Jn(t,e,n){if("function"!=typeof t)throw new mt(o);return xo((function(){t.apply(void 0,n)}),e)}function tr(t,e,n,r){var i=-1,o=he,a=!0,s=t.length,u=[],l=e.length;if(!s)return u;n&&(e=de(e,Ie(n))),r?(o=fe,a=!1):e.length>=200&&(o=Pe,a=!1,e=new Nn(e));t:for(;++i-1},Dn.prototype.set=function(t,e){var n=this.__data__,r=Wn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Rn.prototype.clear=function(){this.size=0,this.__data__={hash:new Ln,map:new(pn||Dn),string:new Ln}},Rn.prototype.delete=function(t){var e=Qi(this,t).delete(t);return this.size-=e?1:0,e},Rn.prototype.get=function(t){return Qi(this,t).get(t)},Rn.prototype.has=function(t){return Qi(this,t).has(t)},Rn.prototype.set=function(t,e){var n=Qi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(t){return this.__data__.has(t)},Fn.prototype.clear=function(){this.__data__=new Dn,this.size=0},Fn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Fn.prototype.get=function(t){return this.__data__.get(t)},Fn.prototype.has=function(t){return this.__data__.has(t)},Fn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Dn){var r=n.__data__;if(!pn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Rn(r)}return n.set(t,e),this.size=n.size,this};var er=Oi(lr),nr=Oi(cr,!0);function rr(t,e){var n=!0;return er(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function ir(t,e,n){for(var r=-1,i=t.length;++r0&&n(s)?e>1?ar(s,e-1,n,r,i):pe(i,s):r||(i[i.length]=s)}return i}var sr=wi(),ur=wi(!0);function lr(t,e){return t&&sr(t,e,xs)}function cr(t,e){return t&&ur(t,e,xs)}function hr(t,e){return ce(e,(function(e){return Va(t[e])}))}function fr(t,e){for(var n=0,r=(e=ui(e,t)).length;null!=t&&ne}function vr(t,e){return null!=t&&wt.call(t,e)}function mr(t,e){return null!=t&&e in pt(t)}function yr(t,e,n){for(var i=n?fe:he,o=t[0].length,a=t.length,s=a,u=r(a),l=1/0,c=[];s--;){var h=t[s];s&&e&&(h=de(h,Ie(e))),l=un(h.length,l),u[s]=!n&&(e||o>=120&&h.length>=120)?new Nn(s&&h):void 0}h=t[0];var f=-1,d=u[0];t:for(;++f=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return t.index-e.index}(t,e,n)}))}function Lr(t,e,n){for(var r=-1,i=e.length,o={};++r-1;)s!==t&&Xt.call(s,u,1),Xt.call(t,u,1);return t}function Rr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;so(i)?Xt.call(t,i,1):ti(t,i)}}return t}function Nr(t,e){return t+tn(hn()*(e-t+1))}function Fr(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=tn(e/2))&&(t+=t)}while(e);return n}function Br(t,e){return Oo(vo(t,e,$s),t+"")}function zr(t){return zn(js(t))}function Vr(t,e){var n=js(t);return Co(n,Zn(e,0,n.length))}function Ur(t,e,n,r){if(!Ha(t))return t;for(var i=-1,o=(e=ui(e,t)).length,a=o-1,s=t;null!=s&&++io?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i>>1,a=t[o];null!==a&&!Qa(a)&&(n?a<=e:a=200){var l=e?null:Fi(t);if(l)return He(l);a=!1,i=Pe,u=new Nn}else u=e?[]:s;t:for(;++r=r?t:Yr(t,e,n)}var hi=Ee||function(t){return $t.clearTimeout(t)};function fi(t,e){if(e)return t.slice();var n=t.length,r=Rt?Rt(n):new t.constructor(n);return t.copy(r),r}function di(t){var e=new t.constructor(t.byteLength);return new Lt(e).set(new Lt(t)),e}function pi(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function gi(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Qa(t),a=void 0!==e,s=null===e,u=e==e,l=Qa(e);if(!s&&!l&&!o&&t>e||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&uo(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=pt(e);++r-1?i[o?e[a]:a]:void 0}}function Mi(t){return Wi((function(e){var n=e.length,r=n,i=kn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new mt(o);if(i&&!s&&"wrapper"==qi(a))var s=new kn([],!0)}for(r=s?r:n;++r1&&b.reverse(),h&&ls))return!1;var l=o.get(t),c=o.get(e);if(l&&c)return l==e&&c==t;var h=-1,f=!0,d=2&n?new Nn:void 0;for(o.set(t,e),o.set(e,t);++h-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Z,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return se(s,(function(n){var r="_."+n[0];e&n[1]&&!he(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(K);return e?e[1].split(Q):[]}(r),n)))}function So(t){var e=0,n=0;return function(){var r=ln(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Co(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,qo(t,n)}));function na(t){var e=An(t);return e.__chain__=!0,e}function ra(t,e){return e(t)}var ia=Wi((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return qn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Pn&&so(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ra,args:[i],thisArg:void 0}),new kn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var oa=_i((function(t,e,n){wt.call(t,n)?++t[n]:Xn(t,n,1)}));var aa=Ti(Po),sa=Ti(Lo);function ua(t,e){return(La(t)?se:er)(t,Ki(e,3))}function la(t,e){return(La(t)?ue:nr)(t,Ki(e,3))}var ca=_i((function(t,e,n){wt.call(t,n)?t[n].push(e):Xn(t,n,[e])}));var ha=Br((function(t,e,n){var i=-1,o="function"==typeof e,a=Ra(t)?r(t.length):[];return er(t,(function(t){a[++i]=o?oe(e,t,n):br(t,e,n)})),a})),fa=_i((function(t,e,n){Xn(t,n,e)}));function da(t,e){return(La(t)?de:Mr)(t,Ki(e,3))}var pa=_i((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var ga=Br((function(t,e){if(null==t)return[];var n=e.length;return n>1&&uo(t,e[0],e[1])?e=[]:n>2&&uo(e[0],e[1],e[2])&&(e=[e[0]]),Pr(t,ar(e,1),[])})),va=Ke||function(){return $t.Date.now()};function ma(t,e,n){return e=n?void 0:e,zi(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ya(t,e){var n;if("function"!=typeof e)throw new mt(o);return t=is(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var ba=Br((function(t,e,n){var r=1;if(n.length){var i=Ge(n,Zi(ba));r|=32}return zi(t,r,e,n,i)})),_a=Br((function(t,e,n){var r=3;if(n.length){var i=Ge(n,Zi(_a));r|=32}return zi(e,r,t,n,i)}));function xa(t,e,n){var r,i,a,s,u,l,c=0,h=!1,f=!1,d=!0;if("function"!=typeof t)throw new mt(o);function p(e){var n=r,o=i;return r=i=void 0,c=e,s=t.apply(o,n)}function g(t){return c=t,u=xo(m,e),h?p(t):s}function v(t){var n=t-l;return void 0===l||n>=e||n<0||f&&t-c>=a}function m(){var t=va();if(v(t))return y(t);u=xo(m,function(t){var n=e-(t-l);return f?un(n,a-(t-c)):n}(t))}function y(t){return u=void 0,d&&r?p(t):(r=i=void 0,s)}function b(){var t=va(),n=v(t);if(r=arguments,i=this,l=t,n){if(void 0===u)return g(l);if(f)return hi(u),u=xo(m,e),p(l)}return void 0===u&&(u=xo(m,e)),s}return e=as(e)||0,Ha(n)&&(h=!!n.leading,a=(f="maxWait"in n)?sn(as(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==u&&hi(u),c=0,r=l=i=u=void 0},b.flush=function(){return void 0===u?s:y(va())},b}var Oa=Br((function(t,e){return Jn(t,1,e)})),wa=Br((function(t,e,n){return Jn(t,as(e)||0,n)}));function Sa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new mt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Sa.Cache||Rn),n}function Ca(t){if("function"!=typeof t)throw new mt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Sa.Cache=Rn;var Ea=li((function(t,e){var n=(e=1==e.length&&La(e[0])?de(e[0],Ie(Ki())):de(ar(e,1),Ie(Ki()))).length;return Br((function(r){for(var i=-1,o=un(r.length,n);++i=e})),Pa=_r(function(){return arguments}())?_r:function(t){return Wa(t)&&wt.call(t,"callee")&&!Yt.call(t,"callee")},La=r.isArray,Da=Jt?Ie(Jt):function(t){return Wa(t)&&pr(t)==w};function Ra(t){return null!=t&&Ga(t.length)&&!Va(t)}function Na(t){return Wa(t)&&Ra(t)}var Fa=nn||au,Ba=te?Ie(te):function(t){return Wa(t)&&pr(t)==h};function za(t){if(!Wa(t))return!1;var e=pr(t);return e==f||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Xa(t)}function Va(t){if(!Ha(t))return!1;var e=pr(t);return e==d||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ua(t){return"number"==typeof t&&t==is(t)}function Ga(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Ha(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Wa(t){return null!=t&&"object"==typeof t}var Ya=ee?Ie(ee):function(t){return Wa(t)&&ro(t)==g};function $a(t){return"number"==typeof t||Wa(t)&&pr(t)==v}function Xa(t){if(!Wa(t)||pr(t)!=m)return!1;var e=Ut(t);if(null===e)return!0;var n=wt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ot.call(n)==Tt}var qa=ne?Ie(ne):function(t){return Wa(t)&&pr(t)==y};var Za=re?Ie(re):function(t){return Wa(t)&&ro(t)==b};function Ka(t){return"string"==typeof t||!La(t)&&Wa(t)&&pr(t)==_}function Qa(t){return"symbol"==typeof t||Wa(t)&&pr(t)==x}var Ja=ie?Ie(ie):function(t){return Wa(t)&&Ga(t.length)&&!!zt[pr(t)]};var ts=Di(Tr),es=Di((function(t,e){return t<=e}));function ns(t){if(!t)return[];if(Ra(t))return Ka(t)?$e(t):yi(t);if(Kt&&t[Kt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Kt]());var e=ro(t);return(e==g?Ve:e==b?He:js)(t)}function rs(t){return t?(t=as(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function is(t){var e=rs(t),n=e%1;return e==e?n?e-n:e:0}function os(t){return t?Zn(is(t),0,4294967295):0}function as(t){if("number"==typeof t)return t;if(Qa(t))return NaN;if(Ha(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ha(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=je(t);var n=ot.test(t);return n||st.test(t)?Ht(t.slice(2),n?2:8):it.test(t)?NaN:+t}function ss(t){return bi(t,Os(t))}function us(t){return null==t?"":Qr(t)}var ls=xi((function(t,e){if(fo(e)||Ra(e))bi(e,xs(e),t);else for(var n in e)wt.call(e,n)&&Hn(t,n,e[n])})),cs=xi((function(t,e){bi(e,Os(e),t)})),hs=xi((function(t,e,n,r){bi(e,Os(e),t,r)})),fs=xi((function(t,e,n,r){bi(e,xs(e),t,r)})),ds=Wi(qn);var ps=Br((function(t,e){t=pt(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&uo(e[0],e[1],i)&&(r=1);++n1),e})),bi(t,$i(t),n),r&&(n=Kn(n,7,Gi));for(var i=e.length;i--;)ti(n,e[i]);return n}));var Es=Wi((function(t,e){return null==t?{}:function(t,e){return Lr(t,e,(function(e,n){return ms(t,n)}))}(t,e)}));function Ts(t,e){if(null==t)return{};var n=de($i(t),(function(t){return[t]}));return e=Ki(e),Lr(t,n,(function(t,n){return e(t,n[0])}))}var Ms=Bi(xs),As=Bi(Os);function js(t){return null==t?[]:ke(t,xs(t))}var Is=Ci((function(t,e,n){return e=e.toLowerCase(),t+(n?ks(e):e)}));function ks(t){return zs(us(t).toLowerCase())}function Ps(t){return(t=us(t))&&t.replace(lt,Ne).replace(Pt,"")}var Ls=Ci((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ds=Ci((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Rs=Si("toLowerCase");var Ns=Ci((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Fs=Ci((function(t,e,n){return t+(n?" ":"")+zs(e)}));var Bs=Ci((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),zs=Si("toUpperCase");function Vs(t,e,n){return t=us(t),void 0===(e=n?void 0:e)?function(t){return Nt.test(t)}(t)?function(t){return t.match(Dt)||[]}(t):function(t){return t.match(J)||[]}(t):t.match(e)||[]}var Us=Br((function(t,e){try{return oe(t,void 0,e)}catch(t){return za(t)?t:new q(t)}})),Gs=Wi((function(t,e){return se(e,(function(e){e=To(e),Xn(t,e,ba(t[e],t))})),t}));function Hs(t){return function(){return t}}var Ws=Mi(),Ys=Mi(!0);function $s(t){return t}function Xs(t){return Sr("function"==typeof t?t:Kn(t,1))}var qs=Br((function(t,e){return function(n){return br(n,t,e)}})),Zs=Br((function(t,e){return function(n){return br(t,n,e)}}));function Ks(t,e,n){var r=xs(e),i=hr(e,r);null!=n||Ha(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=hr(e,xs(e)));var o=!(Ha(n)&&"chain"in n&&!n.chain),a=Va(t);return se(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=yi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,pe([this.value()],arguments))})})),t}function Qs(){}var Js=ki(de),tu=ki(le),eu=ki(me);function nu(t){return lo(t)?Ce(To(t)):function(t){return function(e){return fr(e,t)}}(t)}var ru=Li(),iu=Li(!0);function ou(){return[]}function au(){return!1}var su=Ii((function(t,e){return t+e}),0),uu=Ni("ceil"),lu=Ii((function(t,e){return t/e}),1),cu=Ni("floor");var hu,fu=Ii((function(t,e){return t*e}),1),du=Ni("round"),pu=Ii((function(t,e){return t-e}),0);return An.after=function(t,e){if("function"!=typeof e)throw new mt(o);return t=is(t),function(){if(--t<1)return e.apply(this,arguments)}},An.ary=ma,An.assign=ls,An.assignIn=cs,An.assignInWith=hs,An.assignWith=fs,An.at=ds,An.before=ya,An.bind=ba,An.bindAll=Gs,An.bindKey=_a,An.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return La(t)?t:[t]},An.chain=na,An.chunk=function(t,e,n){e=(n?uo(t,e,n):void 0===e)?1:sn(is(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,s=r(Je(i/e));oi?0:i+n),(r=void 0===r||r>i?i:is(r))<0&&(r+=i),r=n>r?0:os(r);n>>0)?(t=us(t))&&("string"==typeof e||null!=e&&!qa(e))&&!(e=Qr(e))&&ze(t)?ci($e(t),0,n):t.split(e,n):[]},An.spread=function(t,e){if("function"!=typeof t)throw new mt(o);return e=null==e?0:sn(is(e),0),Br((function(n){var r=n[e],i=ci(n,0,e);return r&&pe(i,r),oe(t,this,i)}))},An.tail=function(t){var e=null==t?0:t.length;return e?Yr(t,1,e):[]},An.take=function(t,e,n){return t&&t.length?Yr(t,0,(e=n||void 0===e?1:is(e))<0?0:e):[]},An.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Yr(t,(e=r-(e=n||void 0===e?1:is(e)))<0?0:e,r):[]},An.takeRightWhile=function(t,e){return t&&t.length?ni(t,Ki(e,3),!1,!0):[]},An.takeWhile=function(t,e){return t&&t.length?ni(t,Ki(e,3)):[]},An.tap=function(t,e){return e(t),t},An.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new mt(o);return Ha(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),xa(t,e,{leading:r,maxWait:e,trailing:i})},An.thru=ra,An.toArray=ns,An.toPairs=Ms,An.toPairsIn=As,An.toPath=function(t){return La(t)?de(t,To):Qa(t)?[t]:yi(Eo(us(t)))},An.toPlainObject=ss,An.transform=function(t,e,n){var r=La(t),i=r||Fa(t)||Ja(t);if(e=Ki(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Ha(t)&&Va(o)?jn(Ut(t)):{}}return(i?se:lr)(t,(function(t,r,i){return e(n,t,r,i)})),n},An.unary=function(t){return ma(t,1)},An.union=Wo,An.unionBy=Yo,An.unionWith=$o,An.uniq=function(t){return t&&t.length?Jr(t):[]},An.uniqBy=function(t,e){return t&&t.length?Jr(t,Ki(e,2)):[]},An.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Jr(t,void 0,e):[]},An.unset=function(t,e){return null==t||ti(t,e)},An.unzip=Xo,An.unzipWith=qo,An.update=function(t,e,n){return null==t?t:ei(t,e,si(n))},An.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:ei(t,e,si(n),r)},An.values=js,An.valuesIn=function(t){return null==t?[]:ke(t,Os(t))},An.without=Zo,An.words=Vs,An.wrap=function(t,e){return Ta(si(e),t)},An.xor=Ko,An.xorBy=Qo,An.xorWith=Jo,An.zip=ta,An.zipObject=function(t,e){return oi(t||[],e||[],Hn)},An.zipObjectDeep=function(t,e){return oi(t||[],e||[],Ur)},An.zipWith=ea,An.entries=Ms,An.entriesIn=As,An.extend=cs,An.extendWith=hs,Ks(An,An),An.add=su,An.attempt=Us,An.camelCase=Is,An.capitalize=ks,An.ceil=uu,An.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==e&&(e=(e=as(e))==e?e:0),Zn(as(t),e,n)},An.clone=function(t){return Kn(t,4)},An.cloneDeep=function(t){return Kn(t,5)},An.cloneDeepWith=function(t,e){return Kn(t,5,e="function"==typeof e?e:void 0)},An.cloneWith=function(t,e){return Kn(t,4,e="function"==typeof e?e:void 0)},An.conformsTo=function(t,e){return null==e||Qn(t,e,xs(e))},An.deburr=Ps,An.defaultTo=function(t,e){return null==t||t!=t?e:t},An.divide=lu,An.endsWith=function(t,e,n){t=us(t),e=Qr(e);var r=t.length,i=n=void 0===n?r:Zn(is(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},An.eq=ja,An.escape=function(t){return(t=us(t))&&B.test(t)?t.replace(N,Fe):t},An.escapeRegExp=function(t){return(t=us(t))&&$.test(t)?t.replace(Y,"\\$&"):t},An.every=function(t,e,n){var r=La(t)?le:rr;return n&&uo(t,e,n)&&(e=void 0),r(t,Ki(e,3))},An.find=aa,An.findIndex=Po,An.findKey=function(t,e){return be(t,Ki(e,3),lr)},An.findLast=sa,An.findLastIndex=Lo,An.findLastKey=function(t,e){return be(t,Ki(e,3),cr)},An.floor=cu,An.forEach=ua,An.forEachRight=la,An.forIn=function(t,e){return null==t?t:sr(t,Ki(e,3),Os)},An.forInRight=function(t,e){return null==t?t:ur(t,Ki(e,3),Os)},An.forOwn=function(t,e){return t&&lr(t,Ki(e,3))},An.forOwnRight=function(t,e){return t&&cr(t,Ki(e,3))},An.get=vs,An.gt=Ia,An.gte=ka,An.has=function(t,e){return null!=t&&io(t,e,vr)},An.hasIn=ms,An.head=Ro,An.identity=$s,An.includes=function(t,e,n,r){t=Ra(t)?t:js(t),n=n&&!r?is(n):0;var i=t.length;return n<0&&(n=sn(i+n,0)),Ka(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&xe(t,e,n)>-1},An.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),xe(t,e,i)},An.inRange=function(t,e,n){return e=rs(e),void 0===n?(n=e,e=0):n=rs(n),function(t,e,n){return t>=un(e,n)&&t=-9007199254740991&&t<=9007199254740991},An.isSet=Za,An.isString=Ka,An.isSymbol=Qa,An.isTypedArray=Ja,An.isUndefined=function(t){return void 0===t},An.isWeakMap=function(t){return Wa(t)&&ro(t)==O},An.isWeakSet=function(t){return Wa(t)&&"[object WeakSet]"==pr(t)},An.join=function(t,e){return null==t?"":on.call(t,e)},An.kebabCase=Ls,An.last=zo,An.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=is(n))<0?sn(r+i,0):un(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):_e(t,we,i,!0)},An.lowerCase=Ds,An.lowerFirst=Rs,An.lt=ts,An.lte=es,An.max=function(t){return t&&t.length?ir(t,$s,gr):void 0},An.maxBy=function(t,e){return t&&t.length?ir(t,Ki(e,2),gr):void 0},An.mean=function(t){return Se(t,$s)},An.meanBy=function(t,e){return Se(t,Ki(e,2))},An.min=function(t){return t&&t.length?ir(t,$s,Tr):void 0},An.minBy=function(t,e){return t&&t.length?ir(t,Ki(e,2),Tr):void 0},An.stubArray=ou,An.stubFalse=au,An.stubObject=function(){return{}},An.stubString=function(){return""},An.stubTrue=function(){return!0},An.multiply=fu,An.nth=function(t,e){return t&&t.length?kr(t,is(e)):void 0},An.noConflict=function(){return $t._===this&&($t._=Mt),this},An.noop=Qs,An.now=va,An.pad=function(t,e,n){t=us(t);var r=(e=is(e))?Ye(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Pi(tn(i),n)+t+Pi(Je(i),n)},An.padEnd=function(t,e,n){t=us(t);var r=(e=is(e))?Ye(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=hn();return un(t+i*(e-t+Gt("1e-"+((i+"").length-1))),e)}return Nr(t,e)},An.reduce=function(t,e,n){var r=La(t)?ge:Te,i=arguments.length<3;return r(t,Ki(e,4),n,i,er)},An.reduceRight=function(t,e,n){var r=La(t)?ve:Te,i=arguments.length<3;return r(t,Ki(e,4),n,i,nr)},An.repeat=function(t,e,n){return e=(n?uo(t,e,n):void 0===e)?1:is(e),Fr(us(t),e)},An.replace=function(){var t=arguments,e=us(t[0]);return t.length<3?e:e.replace(t[1],t[2])},An.result=function(t,e,n){var r=-1,i=(e=ui(e,t)).length;for(i||(i=1,t=void 0);++r9007199254740991)return[];var n=4294967295,r=un(t,4294967295);t-=4294967295;for(var i=Ae(r,e=Ki(e));++n=o)return t;var s=n-Ye(r);if(s<1)return r;var u=a?ci(a,0,s).join(""):t.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),qa(i)){if(t.slice(s).search(i)){var l,c=u;for(i.global||(i=gt(i.source,us(rt.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var h=l.index;u=u.slice(0,void 0===h?s:h)}}else if(t.indexOf(Qr(i),s)!=s){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+r},An.unescape=function(t){return(t=us(t))&&F.test(t)?t.replace(R,qe):t},An.uniqueId=function(t){var e=++St;return us(t)+e},An.upperCase=Bs,An.upperFirst=zs,An.each=ua,An.eachRight=la,An.first=Ro,Ks(An,(hu={},lr(An,(function(t,e){wt.call(An.prototype,e)||(hu[e]=t)})),hu),{chain:!1}),An.VERSION="4.17.21",se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){An[t].placeholder=An})),se(["drop","take"],(function(t,e){Pn.prototype[t]=function(n){n=void 0===n?1:sn(is(n),0);var r=this.__filtered__&&!e?new Pn(this):this.clone();return r.__filtered__?r.__takeCount__=un(n,r.__takeCount__):r.__views__.push({size:un(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Pn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),se(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Pn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ki(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Pn.prototype[t]=function(){return this[n](1).value()[0]}})),se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Pn.prototype[t]=function(){return this.__filtered__?new Pn(this):this[n](1)}})),Pn.prototype.compact=function(){return this.filter($s)},Pn.prototype.find=function(t){return this.filter(t).head()},Pn.prototype.findLast=function(t){return this.reverse().find(t)},Pn.prototype.invokeMap=Br((function(t,e){return"function"==typeof t?new Pn(this):this.map((function(n){return br(n,t,e)}))})),Pn.prototype.reject=function(t){return this.filter(Ca(Ki(t)))},Pn.prototype.slice=function(t,e){t=is(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Pn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=is(e))<0?n.dropRight(-e):n.take(e-t)),n)},Pn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Pn.prototype.toArray=function(){return this.take(4294967295)},lr(Pn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=An[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(An.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof Pn,u=a[0],l=s||La(e),c=function(t){var e=i.apply(An,pe([t],a));return r&&h?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var h=this.__chain__,f=!!this.__actions__.length,d=o&&!h,p=s&&!f;if(!o&&l){e=p?e:new Pn(this);var g=t.apply(e,a);return g.__actions__.push({func:ra,args:[c],thisArg:void 0}),new kn(g,h)}return d&&p?t.apply(this,a):(g=this.thru(c),d?r?g.value()[0]:g.value():g)})})),se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=yt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);An.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(La(i)?i:[],t)}return this[n]((function(n){return e.apply(La(n)?n:[],t)}))}})),lr(Pn.prototype,(function(t,e){var n=An[e];if(n){var r=n.name+"";wt.call(_n,r)||(_n[r]=[]),_n[r].push({name:e,func:n})}})),_n[Ai(void 0,2).name]=[{name:"wrapper",func:void 0}],Pn.prototype.clone=function(){var t=new Pn(this.__wrapped__);return t.__actions__=yi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=yi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=yi(this.__views__),t},Pn.prototype.reverse=function(){if(this.__filtered__){var t=new Pn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Pn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=La(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},An.prototype.plant=function(t){for(var e,n=this;n instanceof In;){var r=Ao(n);r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},An.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Pn){var e=t;return this.__actions__.length&&(e=new Pn(this)),(e=e.reverse()).__actions__.push({func:ra,args:[Ho],thisArg:void 0}),new kn(e,this.__chain__)}return this.thru(Ho)},An.prototype.toJSON=An.prototype.valueOf=An.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},An.prototype.first=An.prototype.head,Kt&&(An.prototype[Kt]=function(){return this}),An}();$t._=Ze,void 0===(i=function(){return Ze}.call(e,n,e,r))||(r.exports=i)}).call(this)}).call(this,n(281),n(642)(t))},function(t,e,n){"use strict";n.r(e),n.d(e,"addCommas",(function(){return l})),n.d(e,"toCamelCase",(function(){return c})),n.d(e,"normalizeCssArray",(function(){return h})),n.d(e,"makeValueReadable",(function(){return f})),n.d(e,"formatTpl",(function(){return g})),n.d(e,"formatTplSimple",(function(){return v})),n.d(e,"getTooltipMarker",(function(){return m})),n.d(e,"formatTime",(function(){return y})),n.d(e,"capitalFirst",(function(){return b})),n.d(e,"convertToColorString",(function(){return _})),n.d(e,"windowOpen",(function(){return x}));var r=n(0),i=n(138);n.d(e,"encodeHTML",(function(){return i.encodeHTML}));var o=n(5),a=n(45),s=n(454);n.d(e,"truncateText",(function(){return s.truncateText}));var u=n(891);function l(t){if(!Object(o.isNumeric)(t))return r.isString(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function c(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}n.d(e,"getTextRect",(function(){return u.getTextRect}));var h=r.normalizeCssArray;function f(t,e,n){function i(t){return t&&r.trim(t)?t:"-"}function s(t){return!(null==t||isNaN(t)||!isFinite(t))}var u="time"===e,c=t instanceof Date;if(u||c){var h=u?Object(o.parseDate)(t):t;if(!isNaN(+h))return Object(a.format)(h,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(c)return"-"}if("ordinal"===e)return r.isStringSafe(t)?i(t):r.isNumber(t)&&s(t)?t+"":"-";var f=Object(o.numericToNumber)(t);return s(f)?l(f):r.isStringSafe(t)?i(t):"boolean"==typeof t?t+"":"-"}var d=["a","b","c","d","e","f","g"],p=function(t,e){return"{"+t+(null==e?"":e)+"}"};function g(t,e,n){r.isArray(e)||(e=[e]);var o=e.length;if(!o)return"";for(var a=e[0].$vars||[],s=0;s':'':{renderMode:s,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:""}function y(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=Object(o.parseDate)(e),i=n?"getUTC":"get",s=r[i+"FullYear"](),u=r[i+"Month"]()+1,l=r[i+"Date"](),c=r[i+"Hours"](),h=r[i+"Minutes"](),f=r[i+"Seconds"](),d=r[i+"Milliseconds"]();return t=t.replace("MM",Object(a.pad)(u,2)).replace("M",u).replace("yyyy",s).replace("yy",Object(a.pad)(s%100+"",2)).replace("dd",Object(a.pad)(l,2)).replace("d",l).replace("hh",Object(a.pad)(c,2)).replace("h",c).replace("mm",Object(a.pad)(h,2)).replace("m",h).replace("ss",Object(a.pad)(f,2)).replace("s",f).replace("SSS",Object(a.pad)(d,3))}function b(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function _(t,e){return e=e||"transparent",r.isString(t)?t:r.isObject(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function x(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_TEXT_ANIMATION_PROPS",(function(){return p})),n.d(e,"parseFontSize",(function(){return b})),n.d(e,"hasSeparateFont",(function(){return x})),n.d(e,"normalizeTextStyle",(function(){return O}));var r=n(61),i=n(454),o=n(345),a=n(0),s=n(55),u=n(111),l=n(74),c=n(37),h=n(103),f=n(104),d={fill:"#000"},p={style:Object(a.defaults)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},h.DEFAULT_COMMON_ANIMATION_PROPS.style)},g=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=d,n.attr(e),n}return Object(r.__extends)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,N=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),F=a.calculatedLineHeight,B=0;B=0&&"right"===(k=O[I]).align;)this._placeToken(k,t,S,m,j,"right",b),C-=k.width,j-=k.width,I--;for(A+=(r-(A-v)-(y-j)-C)/2;E<=I;)k=O[E],this._placeToken(k,t,S,m,A+k.width/2,"center",b),A+=k.width,E++;m+=S}},e.prototype._placeToken=function(t,e,n,r,i,u,l){var h=e.rich[t.styleName]||{};h.text=t.text;var d=t.verticalAlign,p=r+n/2;"top"===d?p=r+t.height/2:"bottom"===d&&(p=r+n-t.height/2),!t.isLineHolder&&M(h)&&this._renderBackground(h,e,"right"===u?i-t.width:"center"===u?i-t.width/2:i,p-t.height/2,t.width,t.height);var g=!!h.backgroundColor,v=t.textPadding;v&&(i=E(i,u,v),p-=t.height/2-v[0]-t.innerHeight/2);var m=this._getOrCreateChild(o.default),y=m.createStyle();m.useStyle(y);var b=this._defaultStyle,x=!1,O=0,w=C("fill"in h?h.fill:"fill"in e?e.fill:(x=!0,b.fill)),T=S("stroke"in h?h.stroke:"stroke"in e?e.stroke:g||l||b.autoStroke&&!x?null:(O=2,b.stroke)),A=h.textShadowBlur>0||e.textShadowBlur>0;y.text=t.text,y.x=i,y.y=p,A&&(y.shadowBlur=h.textShadowBlur||e.textShadowBlur||0,y.shadowColor=h.textShadowColor||e.textShadowColor||"transparent",y.shadowOffsetX=h.textShadowOffsetX||e.textShadowOffsetX||0,y.shadowOffsetY=h.textShadowOffsetY||e.textShadowOffsetY||0),y.textAlign=u,y.textBaseline="middle",y.font=t.font||f.DEFAULT_FONT,y.opacity=Object(a.retrieve3)(h.opacity,e.opacity,1),_(y,h),T&&(y.lineWidth=Object(a.retrieve3)(h.lineWidth,e.lineWidth,O),y.lineDash=Object(a.retrieve2)(h.lineDash,e.lineDash),y.lineDashOffset=e.lineDashOffset||0,y.stroke=T),w&&(y.fill=w);var j=t.contentWidth,I=t.contentHeight;m.setBoundingRect(new c.default(Object(s.adjustTextX)(y.x,j,y.textAlign),Object(s.adjustTextY)(y.y,I,y.textBaseline),j,I))},e.prototype._renderBackground=function(t,e,n,r,i,o){var s,c,h,f=t.backgroundColor,d=t.borderWidth,p=t.borderColor,g=f&&f.image,v=f&&!g,m=t.borderRadius,y=this;if(v||t.lineHeight||d&&p){(s=this._getOrCreateChild(l.default)).useStyle(s.createStyle()),s.style.fill=null;var b=s.shape;b.x=n,b.y=r,b.width=i,b.height=o,b.r=m,s.dirtyShape()}if(v)(h=s.style).fill=f||null,h.fillOpacity=Object(a.retrieve2)(t.fillOpacity,1);else if(g){(c=this._getOrCreateChild(u.default)).onload=function(){y.dirtyStyle()};var _=c.style;_.image=f.image,_.x=n,_.y=r,_.width=i,_.height=o}d&&p&&((h=s.style).lineWidth=d,h.stroke=p,h.strokeOpacity=Object(a.retrieve2)(t.strokeOpacity,1),h.lineDash=t.borderDash,h.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2));var x=(s||c).style;x.shadowBlur=t.shadowBlur||0,x.shadowColor=t.shadowColor||"transparent",x.shadowOffsetX=t.shadowOffsetX||0,x.shadowOffsetY=t.shadowOffsetY||0,x.opacity=Object(a.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return x(t)&&(e=[t.fontStyle,t.fontWeight,b(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(a.trim)(e)||t.textFont||t.font},e}(h.default),v={left:!0,right:1,center:1},m={top:1,bottom:1,middle:1},y=["fontStyle","fontWeight","fontSize","fontFamily"];function b(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?f.DEFAULT_FONT_SIZE+"px":t+"px":t}function _(t,e){for(var n=0;nt.x?t.x:e,n=nt.y?t.y:i,o=o255?255:t}function a(t){return t<0?0:t>1?1:t}function s(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100):a(parseFloat(e))}function l(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function c(t,e,n){return t+(e-t)*n}function h(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var d=new r.default(20),p=null;function g(t,e){p&&f(p,e),p=d.put(t,p||e.slice())}function v(t,e){if(t){e=e||[];var n=d.get(t);if(n)return f(e,n);var r=(t+="").replace(/ /g,"").toLowerCase();if(r in i)return f(e,i[r]),g(t,e),e;var o,a=r.length;if("#"===r.charAt(0))return 4===a||5===a?(o=parseInt(r.slice(1,4),16))>=0&&o<=4095?(h(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===a?parseInt(r.slice(4),16)/15:1),g(t,e),e):void h(e,0,0,0,1):7===a||9===a?(o=parseInt(r.slice(1,7),16))>=0&&o<=16777215?(h(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===a?parseInt(r.slice(7),16)/255:1),g(t,e),e):void h(e,0,0,0,1):void 0;var l=r.indexOf("("),c=r.indexOf(")");if(-1!==l&&c+1===a){var p=r.substr(0,l),v=r.substr(l+1,c-(l+1)).split(","),y=1;switch(p){case"rgba":if(4!==v.length)return 3===v.length?h(e,+v[0],+v[1],+v[2],1):h(e,0,0,0,1);y=u(v.pop());case"rgb":return v.length>=3?(h(e,s(v[0]),s(v[1]),s(v[2]),3===v.length?y:u(v[3])),g(t,e),e):void h(e,0,0,0,1);case"hsla":return 4!==v.length?void h(e,0,0,0,1):(v[3]=u(v[3]),m(v,e),g(t,e),e);case"hsl":return 3!==v.length?void h(e,0,0,0,1):(m(v,e),g(t,e),e);default:return}}h(e,0,0,0,1)}}function m(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=u(t[1]),i=u(t[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return h(e=e||[],o(255*l(s,a,n+1/3)),o(255*l(s,a,n)),o(255*l(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e){var n=v(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return E(n,4===n.length?"rgba":"rgb")}}function b(t){var e=v(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function _(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),s=Math.ceil(r),u=e[i],l=e[s],h=r-i;return n[0]=o(c(u[0],l[0],h)),n[1]=o(c(u[1],l[1],h)),n[2]=o(c(u[2],l[2],h)),n[3]=a(c(u[3],l[3],h)),n}}var x=_;function O(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),s=Math.ceil(r),u=v(e[i]),l=v(e[s]),h=r-i,f=E([o(c(u[0],l[0],h)),o(c(u[1],l[1],h)),o(c(u[2],l[2],h)),a(c(u[3],l[3],h))],"rgba");return n?{color:f,leftIndex:i,rightIndex:s,value:r}:f}}var w=O;function S(t,e,n,r){var i,o=v(t);if(t)return o=function(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a,l=(s+a)/2;if(0===u)e=0,n=0;else{n=l<.5?u/(s+a):u/(2-s-a);var c=((s-r)/6+u/2)/u,h=((s-i)/6+u/2)/u,f=((s-o)/6+u/2)/u;r===s?e=f-h:i===s?e=1/3+c-f:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,l];return null!=t[3]&&d.push(t[3]),d}}(o),null!=e&&(o[0]=(i=e,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(o[1]=u(n)),null!=r&&(o[2]=u(r)),E(m(o),"rgba")}function C(t,e){var n=v(t);if(n&&null!=e)return n[3]=a(e),E(n,"rgba")}function E(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function T(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function M(){return E([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"FUNNEL_PERCENT",(function(){return i})),n.d(e,"FUNNEL_MAPPING_VALUE",(function(){return o})),n.d(e,"FUNNEL_CONVERSATION",(function(){return a})),n.d(e,"FUNNEL_TOTAL_PERCENT",(function(){return s})),n.d(e,"PLOYGON_X",(function(){return u})),n.d(e,"PLOYGON_Y",(function(){return l})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var i="$$percentage$$",o="$$mappingValue$$",a="$$conversion$$",s="$$totalPercentage$$",u="$$x$$",l="$$y$$",c={appendPadding:[0,80],minSize:0,maxSize:1,meta:(r={},r[o]={min:0,max:1,nice:!1},r),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}}},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"normalizeColor",(function(){return s})),n.d(e,"isAroundZero",(function(){return u})),n.d(e,"round3",(function(){return l})),n.d(e,"round4",(function(){return c})),n.d(e,"round1",(function(){return h})),n.d(e,"getMatrixStr",(function(){return f})),n.d(e,"TEXT_ALIGN_TO_ANCHOR",(function(){return d})),n.d(e,"adjustTextY",(function(){return p})),n.d(e,"hasShadow",(function(){return g})),n.d(e,"getShadowKey",(function(){return v})),n.d(e,"getClipPathsKey",(function(){return m})),n.d(e,"isImagePattern",(function(){return y})),n.d(e,"isSVGPattern",(function(){return b})),n.d(e,"isPattern",(function(){return _})),n.d(e,"isLinearGradient",(function(){return x})),n.d(e,"isRadialGradient",(function(){return O})),n.d(e,"isGradient",(function(){return w})),n.d(e,"getIdURL",(function(){return S})),n.d(e,"getPathPrecision",(function(){return C})),n.d(e,"getSRTTransformString",(function(){return E})),n.d(e,"encodeBase64",(function(){return T}));var r=n(0),i=n(75),o=n(49),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=Object(i.parse)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function u(t){return t<1e-4&&t>-1e-4}function l(t){return a(1e3*t)/1e3}function c(t){return a(1e4*t)/1e4}function h(t){return a(10*t)/10}function f(t){return"matrix("+l(t[0])+","+l(t[1])+","+l(t[2])+","+l(t[3])+","+c(t[4])+","+c(t[5])+")"}var d={left:"start",right:"end",center:"middle",middle:"middle"};function p(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function v(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function m(t){var e=[];if(t)for(var n=0;n1||r>0&&!e.noHeader;return Object(o.each)(e.blocks,(function(e){var r=t(e);r>=n&&(n=r+ +(i&&(!r||f(e)&&!e.noHeader)))})),n}return 0}(e),{html:l[h],richText:c[h]}),v=[],b=e.blocks||[];Object(o.assert)(!b||Object(o.isArray)(b)),b=b||[];var _=t.orderMode;if(e.sortBlocks&&_){b=b.slice();var x={valueAsc:"asc",valueDesc:"desc"};if(Object(o.hasOwn)(x,_)){var O=new a.SortOrderComparator(x[_],null);b.sort((function(t,e){return O.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===_&&b.reverse()}Object(o.each)(b,(function(n,r){var i=e.valueFormatter,a=d(n)(i?Object(o.extend)(Object(o.extend)({},t),{valueFormatter:i}):t,n,r>0?g.html:0,s);null!=a&&v.push(a)}));var w="richText"===t.renderMode?v.join(g.richText):m(v.join(""),p?n:g.html);if(p)return w;var S=Object(i.makeValueReadable)(e.header,"ordinal",t.useUTC),C=u(s,t.renderMode).nameStyle;return"richText"===t.renderMode?y(t,S,C)+g.richText+w:m('
'+Object(r.encodeHTML)(S)+"
"+w,n)}function g(t,e,n,a){var s=t.renderMode,l=e.noName,c=e.noValue,h=!e.markerType,f=e.name,d=t.useUTC,p=e.valueFormatter||t.valueFormatter||function(t){return t=Object(o.isArray)(t)?t:[t],Object(o.map)(t,(function(t,e){return Object(i.makeValueReadable)(t,Object(o.isArray)(b)?b[e]:b,d)}))};if(!l||!c){var g=h?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",s),v=l?"":Object(i.makeValueReadable)(f,"ordinal",d),b=e.valueType,_=c?[]:p(e.value),x=!h||!l,O=!h&&l,w=u(a,s),S=w.nameStyle,C=w.valueStyle;return"richText"===s?(h?"":g)+(l?"":y(t,v,S))+(c?"":function(t,e,n,r,i){var a=[i],s=r?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(o.isArray)(e)?e.join(" "):e,a)}(t,_,x,O,C)):m((h?"":g)+(l?"":function(t,e,n){return''+Object(r.encodeHTML)(t)+""}(v,!h,S))+(c?"":function(t,e,n,i){var a=n?"10px":"20px",s=e?"float:right;margin-left:"+a:"";return t=Object(o.isArray)(t)?t:[t],''+Object(o.map)(t,(function(t){return Object(r.encodeHTML)(t)})).join("  ")+""}(_,x,O,C)),n)}}function v(t,e,n,r,i,o){if(t)return d(t)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function m(t,e){return'
'+t+'
'}function y(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function b(t,e){var n=t.getData().getItemVisual(e,"style")[t.visualDrawType];return Object(i.convertToColorString)(n)}function _(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var x=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Object(s.getRandomIdBase)()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,a=Object(i.getTooltipMarker)({color:e,type:t,renderMode:n,markerId:r});return Object(o.isString)(a)?a:(this.richTextStyles[r]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(o.isArray)(e)?Object(o.each)(e,(function(t){return Object(o.extend)(n,t)})):Object(o.extend)(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"getScaleExtent",(function(){return d})),n.d(e,"niceScaleExtent",(function(){return p})),n.d(e,"createScaleByModel",(function(){return g})),n.d(e,"ifAxisCrossZero",(function(){return v})),n.d(e,"makeLabelFormatter",(function(){return m})),n.d(e,"getAxisRawValue",(function(){return y})),n.d(e,"estimateLabelUnionRect",(function(){return b})),n.d(e,"getOptionCategoryInterval",(function(){return _})),n.d(e,"shouldShowAllLabels",(function(){return x})),n.d(e,"getDataDimensionsOnAxis",(function(){return O})),n.d(e,"unionAxisExtentFromData",(function(){return w}));var r=n(0),i=n(584),o=n(218),a=n(219),s=n(267),u=n(37),l=n(742),c=n(1417),h=n(141),f=n(741);function d(t,e){var n=t.type,i=Object(f.ensureScaleRawExtentInfo)(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var o=i.min,a=i.max,u=e.ecModel;if(u&&"time"===n){var l=Object(s.prepareLayoutBarSeries)("bar",u),c=!1;if(r.each(l,(function(t){c=c||t.getBaseAxis()===e.axis})),c){var h=Object(s.makeColumnLayout)(l),d=function(t,e,n,i){var o=n.axis.getExtent(),a=o[1]-o[0],u=Object(s.retrieveColumnLayout)(i,n.axis);if(void 0===u)return{min:t,max:e};var l=1/0;r.each(u,(function(t){l=Math.min(t.offset,l)}));var c=-1/0;r.each(u,(function(t){c=Math.max(t.offset+t.width,c)})),l=Math.abs(l),c=Math.abs(c);var h=l+c,f=e-t,d=f/(1-(l+c)/a)-f;return{min:t-=d*(l/h),max:e+=d*(c/h)}}(o,a,e,h);o=d.min,a=d.max}}return{extent:[o,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function p(t,e){var n=e,r=d(t,n),i=r.extent,o=n.get("splitNumber");t instanceof c.default&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),u="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:u?n.get("minInterval"):null,maxInterval:u?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function g(t,e){if(e=e||t.get("type"))switch(e){case"category":return new i.default({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new l.default({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(a.default.getClass(e)||o.default)}}function v(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function m(t){var e,n,i=t.getLabelModel().get("formatter"),o="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,r){return t.scale.getFormattedLabel(e,r,n)}):r.isString(i)?function(e){return function(n){var r=t.scale.getLabel(n);return e.replace("{value}",null!=r?r:"")}}(i):r.isFunction(i)?(e=i,function(n,r){return null!=o&&(r=n.value-o),e(y(t,n),r,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function y(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function b(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,o,a=n.getExtent();o=n instanceof i.default?n.count():(r=n.getTicks()).length;var s,l,c,h,f,d,p,g,v=t.getLabelModel(),y=m(t),b=1;o>40&&(b=Math.ceil(o/40));for(var _=0;_t[1]&&(t[1]=r[1])}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"isBetween",(function(){return o})),n.d(e,"padEnd",(function(){return a})),n.d(e,"omit",(function(){return s})),n.d(e,"uniq",(function(){return u}));var r=n(2),i=n(1);function o(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}function a(t,e,n){if(Object(i.isString)(t))return t.padEnd(e,n);if(Object(i.isArray)(t)){var r=t.length;if(r=0){var i="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];i&&l(t,i,e,n)}else{l(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&a.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function d(t,e,n,r){t.addEventListener(e,n,r)}function p(t,e,n,r){t.removeEventListener(e,n,r)}var g=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function v(t){return 2===t.which||3===t.which}},function(t,e,n){"use strict";n.r(e),n.d(e,"Event",(function(){return s}));var r=n(12),i=n(11),o=n(297),a=n.n(o),s=Object(r.default)((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(i.default)(this,t),a()(this,n),this.type=e}))},function(t,e,n){(function(t,e){ /*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var n;!function(n){!function(r){var i="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),o=a(n);function a(t,e){return function(n,r){"function"!=typeof t[n]&&Object.defineProperty(t,n,{configurable:!0,writable:!0,value:r}),e&&e(n,r)}}void 0===i.Reflect?i.Reflect=n:o=a(i.Reflect,o),function(e){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,l={create:a?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:u?function(t,e){return n.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return n.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},c=Object.getPrototypeOf(Function),h="object"==typeof t&&t.env&&"true"===t.env.REFLECT_METADATA_USE_MAP_POLYFILL,f=h||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var t={},e=[],n=function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var n=this._find(t,!0);return this._values[n]=e,this},e.prototype.delete=function(e){var n=this._find(e,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,t[n])(e);if(!x(r)&&!O(r)){if(!M(r))throw new TypeError;e=r}}return e}(t,e)}if(!E(t))throw new TypeError;if(!w(e))throw new TypeError;if(!w(r)&&!x(r)&&!O(r))throw new TypeError;return O(r)&&(r=void 0),function(t,e,n,r){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,n,r);if(!x(o)&&!O(o)){if(!w(o))throw new TypeError;r=o}}return r}(t,e,n=C(n),r)})),e("metadata",(function(t,e){return function(n,r){if(!w(n))throw new TypeError;if(!x(r)&&!function(t){switch(_(t)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;y(t,e,n,r)}})),e("defineMetadata",(function(t,e,n,r){if(!w(n))throw new TypeError;return x(r)||(r=C(r)),y(t,e,n,r)})),e("hasMetadata",(function(t,e,n){if(!w(e))throw new TypeError;return x(n)||(n=C(n)),function t(e,n,r){if(v(e,n,r))return!0;var i=k(n);return!O(i)&&t(e,i,r)}(t,e,n)})),e("hasOwnMetadata",(function(t,e,n){if(!w(e))throw new TypeError;return x(n)||(n=C(n)),v(t,e,n)})),e("getMetadata",(function(t,e,n){if(!w(e))throw new TypeError;return x(n)||(n=C(n)),function t(e,n,r){if(v(e,n,r))return m(e,n,r);var i=k(n);return O(i)?void 0:t(e,i,r)}(t,e,n)})),e("getOwnMetadata",(function(t,e,n){if(!w(e))throw new TypeError;return x(n)||(n=C(n)),m(t,e,n)})),e("getMetadataKeys",(function(t,e){if(!w(t))throw new TypeError;return x(e)||(e=C(e)),function t(e,n){var r=b(e,n),i=k(e);if(null===i)return r;var o=t(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var a=new d,s=[],u=0,l=r;u0)return!0;var i=p.get(e);return i.delete(n),i.size>0||p.delete(e),!0}))}(o)}()}(n||(n={}))}).call(this,n(445),n(281))},function(t,e,n){"use strict";n.r(e);var r=n(1),i=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(r.assign)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}();e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"distance",(function(){return i})),n.d(e,"isNumberEqual",(function(){return o})),n.d(e,"getBBoxByArray",(function(){return a})),n.d(e,"getBBoxRange",(function(){return s})),n.d(e,"piMod",(function(){return u}));var r=n(1);function i(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function o(t,e){return Math.abs(t-e)<.001}function a(t,e){var n=Object(r.min)(t),i=Object(r.min)(e);return{x:n,y:i,width:Object(r.max)(t)-n,height:Object(r.max)(e)-i}}function s(t,e,n,i){return{minX:Object(r.min)([t,n]),maxX:Object(r.max)([t,n]),minY:Object(r.min)([e,i]),maxY:Object(r.max)([e,i])}}function u(t){return(t+2*Math.PI)%(2*Math.PI)}},function(t,e,n){"use strict";n.r(e);var r=n(1111);n.d(e,"addEventListener",(function(){return r.default}));var i=n(1112);n.d(e,"createDom",(function(){return i.default}));var o=n(665);n.d(e,"getHeight",(function(){return o.default}));var a=n(1113);n.d(e,"getOuterHeight",(function(){return a.default}));var s=n(1114);n.d(e,"getOuterWidth",(function(){return s.default}));var u=n(1115);n.d(e,"getRatio",(function(){return u.default}));var l=n(161);n.d(e,"getStyle",(function(){return l.default}));var c=n(666);n.d(e,"getWidth",(function(){return c.default}));var h=n(1116);n.d(e,"modifyCSS",(function(){return h.default}))},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"gl",(function(){return r})),function(t){t[t.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",t[t.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",t[t.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_COLOR=768]="SRC_COLOR",t[t.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",t[t.SRC_ALPHA=770]="SRC_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",t[t.DST_ALPHA=772]="DST_ALPHA",t[t.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",t[t.DST_COLOR=774]="DST_COLOR",t[t.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",t[t.FUNC_ADD=32774]="FUNC_ADD",t[t.BLEND_EQUATION=32777]="BLEND_EQUATION",t[t.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",t[t.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",t[t.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",t[t.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",t[t.MAX_EXT=32776]="MAX_EXT",t[t.MIN_EXT=32775]="MIN_EXT",t[t.BLEND_DST_RGB=32968]="BLEND_DST_RGB",t[t.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",t[t.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",t[t.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",t[t.CONSTANT_COLOR=32769]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",t[t.BLEND_COLOR=32773]="BLEND_COLOR",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",t[t.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",t[t.STREAM_DRAW=35040]="STREAM_DRAW",t[t.STATIC_DRAW=35044]="STATIC_DRAW",t[t.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",t[t.BUFFER_SIZE=34660]="BUFFER_SIZE",t[t.BUFFER_USAGE=34661]="BUFFER_USAGE",t[t.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",t[t.FRONT=1028]="FRONT",t[t.BACK=1029]="BACK",t[t.FRONT_AND_BACK=1032]="FRONT_AND_BACK",t[t.CULL_FACE=2884]="CULL_FACE",t[t.BLEND=3042]="BLEND",t[t.DITHER=3024]="DITHER",t[t.STENCIL_TEST=2960]="STENCIL_TEST",t[t.DEPTH_TEST=2929]="DEPTH_TEST",t[t.SCISSOR_TEST=3089]="SCISSOR_TEST",t[t.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",t[t.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",t[t.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",t[t.NO_ERROR=0]="NO_ERROR",t[t.INVALID_ENUM=1280]="INVALID_ENUM",t[t.INVALID_VALUE=1281]="INVALID_VALUE",t[t.INVALID_OPERATION=1282]="INVALID_OPERATION",t[t.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",t[t.CW=2304]="CW",t[t.CCW=2305]="CCW",t[t.LINE_WIDTH=2849]="LINE_WIDTH",t[t.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",t[t.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",t[t.CULL_FACE_MODE=2885]="CULL_FACE_MODE",t[t.FRONT_FACE=2886]="FRONT_FACE",t[t.DEPTH_RANGE=2928]="DEPTH_RANGE",t[t.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",t[t.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",t[t.DEPTH_FUNC=2932]="DEPTH_FUNC",t[t.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",t[t.STENCIL_FUNC=2962]="STENCIL_FUNC",t[t.STENCIL_FAIL=2964]="STENCIL_FAIL",t[t.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",t[t.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",t[t.STENCIL_REF=2967]="STENCIL_REF",t[t.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",t[t.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",t[t.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",t[t.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",t[t.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",t[t.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",t[t.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",t[t.VIEWPORT=2978]="VIEWPORT",t[t.SCISSOR_BOX=3088]="SCISSOR_BOX",t[t.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",t[t.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",t[t.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",t[t.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",t[t.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",t[t.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",t[t.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",t[t.RED_BITS=3410]="RED_BITS",t[t.GREEN_BITS=3411]="GREEN_BITS",t[t.BLUE_BITS=3412]="BLUE_BITS",t[t.ALPHA_BITS=3413]="ALPHA_BITS",t[t.DEPTH_BITS=3414]="DEPTH_BITS",t[t.STENCIL_BITS=3415]="STENCIL_BITS",t[t.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",t[t.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",t[t.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",t[t.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",t[t.SAMPLES=32937]="SAMPLES",t[t.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",t[t.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",t[t.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",t[t.DONT_CARE=4352]="DONT_CARE",t[t.FASTEST=4353]="FASTEST",t[t.NICEST=4354]="NICEST",t[t.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.INT=5124]="INT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.FLOAT=5126]="FLOAT",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.ALPHA=6406]="ALPHA",t[t.RGB=6407]="RGB",t[t.RGBA=6408]="RGBA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",t[t.VERTEX_SHADER=35633]="VERTEX_SHADER",t[t.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",t[t.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",t[t.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",t[t.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",t[t.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",t[t.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",t[t.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",t[t.SHADER_TYPE=35663]="SHADER_TYPE",t[t.DELETE_STATUS=35712]="DELETE_STATUS",t[t.LINK_STATUS=35714]="LINK_STATUS",t[t.VALIDATE_STATUS=35715]="VALIDATE_STATUS",t[t.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",t[t.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",t[t.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",t[t.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",t[t.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",t[t.NEVER=512]="NEVER",t[t.LESS=513]="LESS",t[t.EQUAL=514]="EQUAL",t[t.LEQUAL=515]="LEQUAL",t[t.GREATER=516]="GREATER",t[t.NOTEQUAL=517]="NOTEQUAL",t[t.GEQUAL=518]="GEQUAL",t[t.ALWAYS=519]="ALWAYS",t[t.KEEP=7680]="KEEP",t[t.REPLACE=7681]="REPLACE",t[t.INCR=7682]="INCR",t[t.DECR=7683]="DECR",t[t.INVERT=5386]="INVERT",t[t.INCR_WRAP=34055]="INCR_WRAP",t[t.DECR_WRAP=34056]="DECR_WRAP",t[t.VENDOR=7936]="VENDOR",t[t.RENDERER=7937]="RENDERER",t[t.VERSION=7938]="VERSION",t[t.NEAREST=9728]="NEAREST",t[t.LINEAR=9729]="LINEAR",t[t.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",t[t.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",t[t.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",t[t.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",t[t.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",t[t.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",t[t.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",t[t.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE=5890]="TEXTURE",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t[t.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",t[t.TEXTURE0=33984]="TEXTURE0",t[t.TEXTURE1=33985]="TEXTURE1",t[t.TEXTURE2=33986]="TEXTURE2",t[t.TEXTURE3=33987]="TEXTURE3",t[t.TEXTURE4=33988]="TEXTURE4",t[t.TEXTURE5=33989]="TEXTURE5",t[t.TEXTURE6=33990]="TEXTURE6",t[t.TEXTURE7=33991]="TEXTURE7",t[t.TEXTURE8=33992]="TEXTURE8",t[t.TEXTURE9=33993]="TEXTURE9",t[t.TEXTURE10=33994]="TEXTURE10",t[t.TEXTURE11=33995]="TEXTURE11",t[t.TEXTURE12=33996]="TEXTURE12",t[t.TEXTURE13=33997]="TEXTURE13",t[t.TEXTURE14=33998]="TEXTURE14",t[t.TEXTURE15=33999]="TEXTURE15",t[t.TEXTURE16=34e3]="TEXTURE16",t[t.TEXTURE17=34001]="TEXTURE17",t[t.TEXTURE18=34002]="TEXTURE18",t[t.TEXTURE19=34003]="TEXTURE19",t[t.TEXTURE20=34004]="TEXTURE20",t[t.TEXTURE21=34005]="TEXTURE21",t[t.TEXTURE22=34006]="TEXTURE22",t[t.TEXTURE23=34007]="TEXTURE23",t[t.TEXTURE24=34008]="TEXTURE24",t[t.TEXTURE25=34009]="TEXTURE25",t[t.TEXTURE26=34010]="TEXTURE26",t[t.TEXTURE27=34011]="TEXTURE27",t[t.TEXTURE28=34012]="TEXTURE28",t[t.TEXTURE29=34013]="TEXTURE29",t[t.TEXTURE30=34014]="TEXTURE30",t[t.TEXTURE31=34015]="TEXTURE31",t[t.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",t[t.REPEAT=10497]="REPEAT",t[t.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t[t.FLOAT_VEC2=35664]="FLOAT_VEC2",t[t.FLOAT_VEC3=35665]="FLOAT_VEC3",t[t.FLOAT_VEC4=35666]="FLOAT_VEC4",t[t.INT_VEC2=35667]="INT_VEC2",t[t.INT_VEC3=35668]="INT_VEC3",t[t.INT_VEC4=35669]="INT_VEC4",t[t.BOOL=35670]="BOOL",t[t.BOOL_VEC2=35671]="BOOL_VEC2",t[t.BOOL_VEC3=35672]="BOOL_VEC3",t[t.BOOL_VEC4=35673]="BOOL_VEC4",t[t.FLOAT_MAT2=35674]="FLOAT_MAT2",t[t.FLOAT_MAT3=35675]="FLOAT_MAT3",t[t.FLOAT_MAT4=35676]="FLOAT_MAT4",t[t.SAMPLER_2D=35678]="SAMPLER_2D",t[t.SAMPLER_CUBE=35680]="SAMPLER_CUBE",t[t.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",t[t.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",t[t.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",t[t.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",t[t.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",t[t.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",t[t.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",t[t.COMPILE_STATUS=35713]="COMPILE_STATUS",t[t.LOW_FLOAT=36336]="LOW_FLOAT",t[t.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",t[t.HIGH_FLOAT=36338]="HIGH_FLOAT",t[t.LOW_INT=36339]="LOW_INT",t[t.MEDIUM_INT=36340]="MEDIUM_INT",t[t.HIGH_INT=36341]="HIGH_INT",t[t.FRAMEBUFFER=36160]="FRAMEBUFFER",t[t.RENDERBUFFER=36161]="RENDERBUFFER",t[t.RGBA4=32854]="RGBA4",t[t.RGB5_A1=32855]="RGB5_A1",t[t.RGB565=36194]="RGB565",t[t.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",t[t.STENCIL_INDEX=6401]="STENCIL_INDEX",t[t.STENCIL_INDEX8=36168]="STENCIL_INDEX8",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",t[t.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",t[t.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",t[t.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",t[t.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",t[t.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",t[t.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",t[t.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",t[t.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",t[t.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",t[t.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",t[t.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",t[t.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",t[t.NONE=0]="NONE",t[t.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",t[t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",t[t.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",t[t.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",t[t.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",t[t.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",t[t.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",t[t.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",t[t.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",t[t.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",t[t.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",t[t.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL"}(r||(r={}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(678),a=n(126),s=n(43),u=n(459),l=["visible","tip","delegateObject"],c=["container","group","shapesMap","isRegister","isUpdating","destroyed"],h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return Object(i.each)(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=Object(a.applyMatrix2BBox)(n,e)),e},e.prototype.on=function(t,e,n){return this.get("group").on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),Object(o.propagationDelegate)(n,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",Object(s.getBBoxWithClip)(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,i=e.component,o=Object(r.__rest)(e,["id","component"]),a=new i(Object(r.__assign)(Object(r.__assign)({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return a.init(),a.render(),this.get("isRegister")&&this.registerElement(a.get("group")),a},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=Object(a.getMatrixByTranslate)(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");Object(i.isNil)(r)&&(r=1),e.attr("opacity",0),e.animate({opacity:r},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,r){e.animate(n,r)},e.prototype.updateElements=function(t,e){var n,r=this,o=this.get("animate"),a=this.get("animateOption"),u=t.getChildren().slice(0);Object(i.each)(u,(function(t){var u=t.get("id"),h=r.getElementById(u),f=t.get("name");if(h)if(t.get("isComponent")){var d=t.get("component"),p=h.get("component"),g=Object(i.pick)(d.cfg,Object(i.difference)(Object(i.keys)(d.cfg),c));p.update(g),h.set("update_status","update")}else{var v=r.getReplaceAttrs(h,t);o&&a.update?r.updateAnimation(f,h,v,a.update):h.attr(v),t.isGroup()&&r.updateElements(t,h),Object(i.each)(l,(function(e){h.set(e,t.get(e))})),Object(s.updateClip)(h,t),n=h,h.set("update_status","update")}else{e.add(t);var m=e.getChildren();if(m.splice(m.length-1,1),n){var y=m.indexOf(n);m.splice(y+1,0,t)}else m.unshift(t);if(r.registerElement(t),t.set("update_status","add"),t.get("isComponent"))(d=t.get("component")).set("container",e);else t.isGroup()&&r.registerNewGroup(t);if(n=t,o){var b=r.get("isInit")?a.appear:a.enter;b&&r.addAnimation(f,t,b)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();Object(i.each)(e,(function(t){t.set("update_status",null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),Object(i.mix)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return Object(i.each)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();Object(i.each)(n,(function(t){e.registerElement(t),t.set("update_status","add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];Object(i.each)(e,(function(t,e){!t.get("update_status")||t.destroyed?n.push([e,t]):t.set("update_status",null)}));var r=this.get("animate"),o=this.get("animateOption");Object(i.each)(n,(function(n){var a=n[0],s=n[1];if(!s.destroyed){var u=s.get("name");if(r&&o.leave){var l=Object(i.mix)({callback:function(){t.removeElement(s)}},o.leave);t.removeAnimation(u,s,l)}else t.removeElement(s)}delete e[a]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(u.default);e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"LineAxis",(function(){return l})),n.d(e,"CircleAxis",(function(){return c})),n.d(e,"LineGrid",(function(){return h})),n.d(e,"CircleGrid",(function(){return f})),n.d(e,"CategoryLegend",(function(){return d})),n.d(e,"ContinuousLegend",(function(){return p})),n.d(e,"HtmlTooltip",(function(){return g}));var r=n(82);n.d(e,"Event",(function(){return r.Event})),n.d(e,"AbstractGroup",(function(){return r.AbstractGroup})),n.d(e,"AbstractShape",(function(){return r.AbstractShape}));var i=n(453);n.d(e,"registerAdjust",(function(){return i.registerAdjust})),n.d(e,"getAdjust",(function(){return i.getAdjust})),n.d(e,"Adjust",(function(){return i.Adjust}));var o=n(410);n.d(e,"getAttribute",(function(){return o.getAttribute})),n.d(e,"Attribute",(function(){return o.Attribute})),n.d(e,"Color",(function(){return o.Color}));var a=n(641);n.d(e,"getCoordinate",(function(){return a.getCoordinate})),n.d(e,"registerCoordinate",(function(){return a.registerCoordinate})),n.d(e,"Coordinate",(function(){return a.Coordinate}));var s=n(306);n.d(e,"getScale",(function(){return s.getScale})),n.d(e,"registerScale",(function(){return s.registerScale})),n.d(e,"Scale",(function(){return s.Scale}));var u=n(95);n.d(e,"HtmlComponent",(function(){return u.HtmlComponent})),n.d(e,"GroupComponent",(function(){return u.GroupComponent})),n.d(e,"Component",(function(){return u.Component})),n.d(e,"Crosshair",(function(){return u.Crosshair})),n.d(e,"Annotation",(function(){return u.Annotation})),n.d(e,"Slider",(function(){return u.Slider})),n.d(e,"Scrollbar",(function(){return u.Scrollbar}));var l=u.Axis.Line,c=u.Axis.Circle,h=u.Grid.Line,f=u.Grid.Circle,d=u.Legend.Category,p=u.Legend.Continuous,g=u.Tooltip.Html},function(t,e,n){"use strict";n.r(e),n.d(e,"getXDimensionLength",(function(){return a})),n.d(e,"isFullCircle",(function(){return s})),n.d(e,"getDistanceToCenter",(function(){return u})),n.d(e,"isPointInCoordinate",(function(){return l})),n.d(e,"getAngleByPoint",(function(){return c})),n.d(e,"getCoordinateClipCfg",(function(){return h})),n.d(e,"getCoordinateBBox",(function(){return f}));var r=n(73),i=n(81),o=n(124);function a(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function s(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e==2*Math.PI}return!1}function u(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function l(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,o=t.end;n=Object(i.isBetween)(e.x,r.x,o.x)&&Object(i.isBetween)(e.y,r.y,o.y)}else{var a=t.invert(e);n=Object(i.isBetween)(a.x,0,1)&&Object(i.isBetween)(a.y,0,1)}return n}function c(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function h(t,e){void 0===e&&(e=0);var n,i=t.start,o=t.end,a=t.getWidth(),s=t.getHeight();if(t.isPolar){var u=t.startAngle,l=t.endAngle,c=t.getCenter(),h=t.getRadius();return{type:"path",startState:{path:Object(r.getSectorPath)(c.x,c.y,h+e,u,u)},endState:function(t){var n=(l-u)*t+u;return{path:Object(r.getSectorPath)(c.x,c.y,h+e,u,n)}},attrs:{path:Object(r.getSectorPath)(c.x,c.y,h+e,u,l)}}}return n=t.isTransposed?{height:s+2*e}:{width:a+2*e},{type:"rect",startState:{x:i.x-e,y:o.y-e,width:t.isTransposed?a+2*e:0,height:t.isTransposed?0:s+2*e},endState:n,attrs:{x:i.x-e,y:o.y-e,width:a+2*e,height:s+2*e}}}function f(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),a=t.getHeight(),s=Math.min(n.x,r.x),u=Math.min(n.y,r.y);return o.BBox.fromRange(s-e,u-e,s+i+e,u+a+e)}},function(t,e,n){"use strict";n.r(e);var r=n(450);n.d(e,"container",(function(){return r.default})),n.d(e,"createSceneContainer",(function(){return r.createSceneContainer})),n.d(e,"createLayerContainer",(function(){return r.createLayerContainer})),n.d(e,"lazyInject",(function(){return r.lazyInject})),n.d(e,"lazyMultiInject",(function(){return r.lazyMultiInject}));var i=n(156);n.d(e,"BasePostProcessingPass",(function(){return i.default}));var o=n(31);n.d(e,"TYPES",(function(){return o.TYPES}));var a=n(1316);n.d(e,"packCircleVertex",(function(){return a.packCircleVertex}));n(1317),n(1318),n(1319);var s=n(1320);n.d(e,"CameraUniform",(function(){return s.CameraUniform}));var u=n(727);n.d(e,"PositionType",(function(){return u.PositionType}));n(1321),n(1322),n(1323);var l=n(434);n.d(e,"CoordinateSystem",(function(){return l.CoordinateSystem})),n.d(e,"CoordinateUniform",(function(){return l.CoordinateUniform}));var c=n(1324);n.d(e,"IDebugLog",(function(){return c.IDebugLog}));var h=n(151);n.d(e,"InteractionEvent",(function(){return h.InteractionEvent}));n(1325);var f=n(324);n.d(e,"BlendType",(function(){return f.BlendType})),n.d(e,"StencilType",(function(){return f.StencilType})),n.d(e,"MaskOperation",(function(){return f.MaskOperation})),n.d(e,"ILayerStage",(function(){return f.ILayerStage}));var d=n(1326);n.d(e,"ScaleTypes",(function(){return d.ScaleTypes})),n.d(e,"StyleScaleType",(function(){return d.StyleScaleType})),n.d(e,"AttributeType",(function(){return d.AttributeType}));var p=n(1327);n.d(e,"MapServiceEvent",(function(){return p.MapServiceEvent}));var g=n(89);n.d(e,"gl",(function(){return g.gl}));n(1328),n(1329),n(1330),n(1331),n(1332);var v=n(213);n.d(e,"PassType",(function(){return v.PassType}));n(1333),n(1334),n(1335),n(1336);var m=n(1337);n.d(e,"SceneEventList",(function(){return m.SceneEventList}));n(1338);var y=n(1339);n.d(e,"RasterTileType",(function(){return y.RasterTileType}))},function(t,e,n){"use strict";n.r(e),n.d(e,"SVGNS",(function(){return o})),n.d(e,"XLINKNS",(function(){return a})),n.d(e,"XMLNS",(function(){return s})),n.d(e,"XML_NAMESPACE",(function(){return u})),n.d(e,"createElement",(function(){return l})),n.d(e,"createVNode",(function(){return c})),n.d(e,"vNodeToString",(function(){return h})),n.d(e,"getCssString",(function(){return f})),n.d(e,"createBrushScope",(function(){return d})),n.d(e,"createSVGVNode",(function(){return p}));var r=n(0),i=n(138),o="http://www.w3.org/2000/svg",a="http://www.w3.org/1999/xlink",s="http://www.w3.org/2000/xmlns/",u="http://www.w3.org/XML/1998/namespace";function l(t){return document.createElementNS(o,t)}function c(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function h(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var o=e.children,a=e.tag,s=e.attrs,u=e.text;return function(t,e){var n=[];if(e)for(var r in e){var i=e[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(a,s)+("style"!==a?Object(i.encodeHTML)(u):u||"")+(o?""+n+Object(r.map)(o,(function(e){return t(e)})).join(n)+n:"")+("")}(t)}function f(t,e,n){var i=(n=n||{}).newline?"\n":"",o=" {"+i,a=i+"}",s=Object(r.map)(Object(r.keys)(t),(function(e){return e+o+Object(r.map)(Object(r.keys)(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+a})).join(i),u=Object(r.map)(Object(r.keys)(e),(function(t){return"@keyframes "+t+o+Object(r.map)(Object(r.keys)(e[t]),(function(n){return n+o+Object(r.map)(Object(r.keys)(e[t][n]),(function(r){var i=e[t][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(i)+a})).join(i)+a})).join(i);return s||u?[""].join(i):""}function d(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function p(t,e,n,r){return c("svg","root",{width:t,height:e,xmlns:o,"xmlns:xlink":a,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}},function(t,e,n){"use strict";n.r(e);var r=n(1141);n.d(e,"Annotation",(function(){return r}));var i=n(1152);n.d(e,"Axis",(function(){return i}));var o=n(1158);n.d(e,"Crosshair",(function(){return o}));var a=n(1162);n.d(e,"Grid",(function(){return a}));var s=n(1165);n.d(e,"Legend",(function(){return s}));var u=n(1168);n.d(e,"Tooltip",(function(){return u}));var l=n(459);n.d(e,"Component",(function(){return l.default}));var c=n(90);n.d(e,"GroupComponent",(function(){return c.default}));var h=n(370);n.d(e,"HtmlComponent",(function(){return h.default}));var f=n(1170);n.d(e,"Slider",(function(){return f.Slider}));var d=n(1181);n.d(e,"Scrollbar",(function(){return d.Scrollbar}));var p=n(1183);for(var g in p)["default","Component","GroupComponent","HtmlComponent","Axis","Annotation","Grid","Legend","Tooltip","Crosshair","Slider","Scrollbar","propagationDelegate","TOOLTIP_CSS_CONST"].indexOf(g)<0&&function(t){n.d(e,t,(function(){return p[t]}))}(g);var v=n(1184);for(var g in v)["default","Component","GroupComponent","HtmlComponent","Axis","Annotation","Grid","Legend","Tooltip","Crosshair","Slider","Scrollbar","propagationDelegate","TOOLTIP_CSS_CONST"].indexOf(g)<0&&function(t){n.d(e,t,(function(){return v[t]}))}(g);var m=n(678);n.d(e,"propagationDelegate",(function(){return m.propagationDelegate}));var y=n(100);n.d(e,"TOOLTIP_CSS_CONST",(function(){return y}))},function(t,e,n){"use strict";n.r(e),n.d(e,"removeFromArray",(function(){return i})),n.d(e,"isBrowser",(function(){return o})),n.d(e,"isParent",(function(){return a})),n.d(e,"isAllowCapture",(function(){return s}));var r=n(1);function i(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}n.d(e,"isNil",(function(){return r.isNil})),n.d(e,"isFunction",(function(){return r.isFunction})),n.d(e,"isString",(function(){return r.isString})),n.d(e,"isObject",(function(){return r.isObject})),n.d(e,"isArray",(function(){return r.isArray})),n.d(e,"mix",(function(){return r.mix})),n.d(e,"each",(function(){return r.each})),n.d(e,"upperFirst",(function(){return r.upperFirst}));var o="undefined"!=typeof window&&void 0!==window.document;function a(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r}function s(t){return t.cfg.visible&&t.cfg.capture}},function(t,e,n){"use strict";n.r(e),n.d(e,"earthRadius",(function(){return s})),n.d(e,"default",(function(){return u}));var r=n(239),i=n(11),o=n(12),a=n(65),s=6371008.8,u=function(){function t(e,n){if(Object(i.default)(this,t),isNaN(e)||isNaN(n))throw new Error("Invalid LngLat object: (".concat(e,", ").concat(n,")"));if(this.lng=+e,this.lat=+n,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}return Object(o.default)(t,[{key:"wrap",value:function(){return new t(Object(a.wrap)(this.lng,-180,180),this.lat)}},{key:"toArray",value:function(){return[this.lng,this.lat]}},{key:"toString",value:function(){return"LngLat(".concat(this.lng,", ").concat(this.lat,")")}},{key:"distanceTo",value:function(t){var e=Math.PI/180,n=this.lat*e,r=t.lat*e,i=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((t.lng-this.lng)*e);return s*Math.acos(Math.min(i,1))}}],[{key:"convert",value:function(e){if(e instanceof t)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new t(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"===Object(r.default)(e)&&null!==e){var n="lng"in e?e.lng:e.lon;return new t(Number(n),Number(e.lat))}throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"X_FIELD",(function(){return o})),n.d(e,"VIOLIN_Y_FIELD",(function(){return a})),n.d(e,"VIOLIN_SIZE_FIELD",(function(){return s})),n.d(e,"MIN_MAX_FIELD",(function(){return u})),n.d(e,"QUANTILE_FIELD",(function(){return l})),n.d(e,"MEDIAN_FIELD",(function(){return c})),n.d(e,"VIOLIN_VIEW_ID",(function(){return h})),n.d(e,"MIN_MAX_VIEW_ID",(function(){return f})),n.d(e,"QUANTILE_VIEW_ID",(function(){return d})),n.d(e,"MEDIAN_VIEW_ID",(function(){return p})),n.d(e,"DEFAULT_OPTIONS",(function(){return g}));var r=n(29),i=n(3),o="x",a="violinY",s="violinSize",u="minMax",l="quantile",c="median",h="violin_view",f="min_max_view",d="quantile_view",p="median_view",g=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}})},function(t,e,n){"use strict";n.r(e);var r=n(1127);n.d(e,"Quad",(function(){return r.default}));var i=n(1128);n.d(e,"Cubic",(function(){return i.default}));var o=n(1129);n.d(e,"Arc",(function(){return o.default}));var a=n(221);n.d(e,"Line",(function(){return a.default}));var s=n(1130);n.d(e,"Polygon",(function(){return s.default}));var u=n(671);n.d(e,"Polyline",(function(){return u.default}));var l=n(87);n.d(e,"Util",(function(){return l}))},function(t,e,n){"use strict";n.r(e),n.d(e,"CONTAINER_CLASS",(function(){return r})),n.d(e,"CONTAINER_CLASS_CUSTOM",(function(){return i})),n.d(e,"TITLE_CLASS",(function(){return o})),n.d(e,"LIST_CLASS",(function(){return a})),n.d(e,"LIST_ITEM_CLASS",(function(){return s})),n.d(e,"MARKER_CLASS",(function(){return u})),n.d(e,"VALUE_CLASS",(function(){return l})),n.d(e,"NAME_CLASS",(function(){return c})),n.d(e,"CROSSHAIR_X",(function(){return h})),n.d(e,"CROSSHAIR_Y",(function(){return f}));var r="g2-tooltip",i="g2-tooltip-custom",o="g2-tooltip-title",a="g2-tooltip-list",s="g2-tooltip-list-item",u="g2-tooltip-marker",l="g2-tooltip-value",c="g2-tooltip-name",h="g2-tooltip-crosshair-x",f="g2-tooltip-crosshair-y"},function(t,e,n){"use strict";n.r(e),n.d(e,"earthRadius",(function(){return r})),n.d(e,"factors",(function(){return i})),n.d(e,"unitsFactors",(function(){return o})),n.d(e,"areaFactors",(function(){return a})),n.d(e,"feature",(function(){return s})),n.d(e,"geometry",(function(){return u})),n.d(e,"point",(function(){return l})),n.d(e,"points",(function(){return c})),n.d(e,"polygon",(function(){return h})),n.d(e,"polygons",(function(){return f})),n.d(e,"lineString",(function(){return d})),n.d(e,"lineStrings",(function(){return p})),n.d(e,"featureCollection",(function(){return g})),n.d(e,"multiLineString",(function(){return v})),n.d(e,"multiPoint",(function(){return m})),n.d(e,"multiPolygon",(function(){return y})),n.d(e,"geometryCollection",(function(){return b})),n.d(e,"round",(function(){return _})),n.d(e,"radiansToLength",(function(){return x})),n.d(e,"lengthToRadians",(function(){return O})),n.d(e,"lengthToDegrees",(function(){return w})),n.d(e,"bearingToAzimuth",(function(){return S})),n.d(e,"radiansToDegrees",(function(){return C})),n.d(e,"degreesToRadians",(function(){return E})),n.d(e,"convertLength",(function(){return T})),n.d(e,"convertArea",(function(){return M})),n.d(e,"isNumber",(function(){return A})),n.d(e,"isObject",(function(){return j})),n.d(e,"validateBBox",(function(){return I})),n.d(e,"validateId",(function(){return k}));var r=6371008.8,i={centimeters:100*r,centimetres:100*r,degrees:r/111325,feet:3.28084*r,inches:39.37*r,kilometers:r/1e3,kilometres:r/1e3,meters:r,metres:r,miles:r/1609.344,millimeters:1e3*r,millimetres:1e3*r,nauticalmiles:r/1852,radians:1,yards:1.0936*r},o={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r,yards:1.0936133},a={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function s(t,e,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=e||{},r.geometry=t,r}function u(t,e,n){switch(void 0===n&&(n={}),t){case"Point":return l(e).geometry;case"LineString":return d(e).geometry;case"Polygon":return h(e).geometry;case"MultiPoint":return m(e).geometry;case"MultiLineString":return v(e).geometry;case"MultiPolygon":return y(e).geometry;default:throw new Error(t+" is invalid")}}function l(t,e,n){if(void 0===n&&(n={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!A(t[0])||!A(t[1]))throw new Error("coordinates must contain numbers");return s({type:"Point",coordinates:t},e,n)}function c(t,e,n){return void 0===n&&(n={}),g(t.map((function(t){return l(t,e)})),n)}function h(t,e,n){void 0===n&&(n={});for(var r=0,i=t;r=0))throw new Error("precision must be a positive number");var n=Math.pow(10,e||0);return Math.round(t*n)/n}function x(t,e){void 0===e&&(e="kilometers");var n=i[e];if(!n)throw new Error(e+" units is invalid");return t*n}function O(t,e){void 0===e&&(e="kilometers");var n=i[e];if(!n)throw new Error(e+" units is invalid");return t/n}function w(t,e){return C(O(t,e))}function S(t){var e=t%360;return e<0&&(e+=360),e}function C(t){return 180*(t%(2*Math.PI))/Math.PI}function E(t){return t%360*Math.PI/180}function T(t,e,n){if(void 0===e&&(e="kilometers"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("length must be a positive number");return x(O(t,e),n)}function M(t,e,n){if(void 0===e&&(e="meters"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("area must be a positive number");var r=a[e];if(!r)throw new Error("invalid original units");var i=a[n];if(!i)throw new Error("invalid final units");return t/r*i}function A(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function j(t){return!!t&&t.constructor===Object}function I(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!A(t))throw new Error("bbox must only contain numbers")}))}function k(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}},function(t,e,n){"use strict";n.r(e),n.d(e,"findViewById",(function(){return i})),n.d(e,"getViews",(function(){return o})),n.d(e,"getSiblingViews",(function(){return a})),n.d(e,"addViewAnimation",(function(){return s}));var r=n(1);function i(t,e){return t.views.find((function(t){return t.id===e}))}function o(t){var e=t.parent;return e?e.views:[]}function a(t){return o(t).filter((function(e){return e!==t}))}function s(t,e,n){void 0===n&&(n=t.geometries),"boolean"==typeof e?t.animate(e):t.animate(!0),Object(r.each)(n,(function(t){var n;n=Object(r.isFunction)(e)?e(t.type||t.shapeType,t)||!0:e,t.animate(n)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_COMMON_STYLE",(function(){return l})),n.d(e,"DEFAULT_COMMON_ANIMATION_PROPS",(function(){return c}));var r=n(61),i=n(730),o=n(37),a=n(0),s=n(105),u="__zr_style_"+Math.round(10*Math.random()),l={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},c={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};l[u]=!0;var h=["z","z2","invisible"],f=["invisible"],d=function(t){function e(e){return t.call(this,e)||this}var n;return Object(r.__extends)(e,t),e.prototype._init=function(e){for(var n=Object(a.keys)(e),r=0;r=0)h=c*t.length;else for(var f=0;f0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(r.isDate)(t)&&(t=t.getTime()),t}var u=1e3,l=60*u,c=60*l,h=24*c,f=31*h,d=365*h,p=[["HH:mm:ss",u],["HH:mm:ss",10*u],["HH:mm:ss",30*u],["HH:mm",l],["HH:mm",10*l],["HH:mm",30*l],["HH",c],["HH",6*c],["HH",12*c],["YYYY-MM-DD",h],["YYYY-MM-DD",4*h],["YYYY-WW",7*h],["YYYY-MM",f],["YYYY-MM",4*f],["YYYY-MM",6*f],["YYYY",380*h]];function g(t,e,n){var i=(e-t)/n,a=Object(o.default)((function(t){return t[1]}))(p,i)-1,s=p[a];return a<0?s=p[0]:a>=p.length&&(s=Object(r.last)(p)),s}},function(t,e,n){"use strict";n.r(e),n.d(e,"getMappingField",(function(){return a})),n.d(e,"getMappingFunction",(function(){return s})),n.d(e,"geometry",(function(){return u}));var r=n(2),i=n(1),o=n(3);function a(t,e){var n=t.type,o=t.xField,a=t.yField,s=t.colorField,u=t.shapeField,l=t.sizeField,c=t.styleField,h=t.rawFields,f=[];if(h=(Object(i.isFunction)(h)?h(n,e):h)||[],"color"===e)f=Object(r.__spreadArray)([s||o],h,!0);else if("shape"===e)f=Object(r.__spreadArray)([u||o],h,!0);else if("size"===e)f=Object(r.__spreadArray)([l||o],h,!0);else{f=Object(r.__spreadArray)([o,a,s,u,l,c],h,!0);var d=["x","y","color","shape","size","style"].indexOf(e),p=f[d];f.splice(d,1),f.unshift(p)}var g=Object(i.uniq)(f.filter((function(t){return!!t}))),v="line"===n&&[o,a].includes(g.join("*"))?"":g.join("*");return{mappingFields:g,tileMappingField:v}}function s(t,e){if(e)return function(){for(var n=[],r=0;r=0&&n.push(t)})),n}(s.originalDeps=e(a),t);s.entryCount=u.length,0===s.entryCount&&o.push(a),r.each(u,(function(t){r.indexOf(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(i,t);r.indexOf(e.successor,t)<0&&e.successor.push(a)}))})),{graph:i,noEntryList:o}}(i),u=s.graph,l=s.noEntryList,c={};for(r.each(t,(function(t){c[t]=!0}));l.length;){var h=l.pop(),f=u[h],d=!!c[h];d&&(o.call(a,h,f.originalDeps.slice()),delete c[h]),r.each(f.successor,d?g:p)}r.each(c,(function(){throw new Error("")}))}function p(t){u[t].entryCount--,0===u[t].entryCount&&l.push(t)}function g(t){c[t]=!0,p(t)}}}function l(t,e){return r.merge(r.merge({},t,!0),e,!0)}},function(t,e,n){"use strict";n.r(e),n.d(e,"ToolboxFeature",(function(){return r})),n.d(e,"registerFeature",(function(){return o})),n.d(e,"getFeature",(function(){return a}));var r=function(){},i={};function o(t,e){i[t]=e}function a(t){return i[t]}},function(t,e,n){"use strict";n.r(e),n.d(e,"LEFT_AXES_VIEW",(function(){return i})),n.d(e,"RIGHT_AXES_VIEW",(function(){return o})),n.d(e,"DEFAULT_YAXIS_CONFIG",(function(){return a})),n.d(e,"DEFAULT_LEFT_YAXIS_CONFIG",(function(){return s})),n.d(e,"DEFAULT_RIGHT_YAXIS_CONFIG",(function(){return u}));var r=n(2),i="left-axes-view",o="right-axes-view",a={nice:!0,label:{autoHide:!0,autoRotate:!1}},s=Object(r.__assign)(Object(r.__assign)({},a),{position:"left"}),u=Object(r.__assign)(Object(r.__assign)({},a),{position:"right",grid:null})},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_IMAGE_STYLE",(function(){return s})),n.d(e,"DEFAULT_IMAGE_ANIMATION_PROPS",(function(){return u}));var r=n(61),i=n(103),o=n(37),a=n(0),s=Object(a.defaults)({x:0,y:0},i.DEFAULT_COMMON_STYLE),u={style:Object(a.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i.DEFAULT_COMMON_ANIMATION_PROPS.style)};var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.createStyle=function(t){return Object(a.createObject)(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r,i=(r=e.image)&&"string"!=typeof r&&r.width&&r.height?e.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?i[t]:i[t]/i[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return u},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o.default(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(i.default);l.prototype.type="image",e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"isMiniScene",(function(){return M})),n.d(e,"setMiniScene",(function(){return A})),n.d(e,"isMiniAli",(function(){return j})),n.d(e,"isWeChatMiniProgram",(function(){return I})),n.d(e,"isMini",(function(){return k})),n.d(e,"miniWindow",(function(){return P})),n.d(e,"$window",(function(){return L})),n.d(e,"$XMLHttpRequest",(function(){return D})),n.d(e,"$location",(function(){return R}));var r=n(613),i=n(1916),o=n(614),a=n(270),s=n(824),u=n(317),l=n(508),c=n(1917),h=n(361),f=n(827),d=n(826),p=n(828),g=n(1918),v=n(829),m=n(1919),y=n(825),b=n(1920),_=n(984),x=n(440),O=n(1921),w=n(1922),S=n(1923),C=n(985),E=n(225),T=n(1298);n.d(e,"dispatchMouseDown",(function(){return T.dispatchMouseDown})),n.d(e,"dispatchMouseMove",(function(){return T.dispatchMouseMove})),n.d(e,"dispatchMouseUp",(function(){return T.dispatchMouseUp})),n.d(e,"dispatchPointerDown",(function(){return T.dispatchPointerDown})),n.d(e,"dispatchPointerMove",(function(){return T.dispatchPointerMove})),n.d(e,"dispatchPointerUp",(function(){return T.dispatchPointerUp})),n.d(e,"dispatchTouchStart",(function(){return T.dispatchTouchStart})),n.d(e,"dispatchTouchMove",(function(){return T.dispatchTouchMove})),n.d(e,"dispatchTouchEnd",(function(){return T.dispatchTouchEnd})),n.d(e,"dispatchMapCameraParams",(function(){return T.dispatchMapCameraParams}));var M=!1;function A(t){M=t}var j="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM,I="undefined"!=typeof wx&&null!==wx&&(void 0!==wx.request||void 0!==wx.miniProgram),k=(j||I)&&M,P={atob:r.atob,btoa:r.btoa,devicePixelRatio:o.default,Blob:i.Blob,document:a.$document,Element:s.Element,Event:u.Event,EventTarget:l.default,HTMLCanvasElement:c.HTMLCanvasElement,HTMLElement:h.HTMLElement,HTMLMediaElement:f.HTMLMediaElement,HTMLVideoElement:d.HTMLVideoElement,Image:p.Image,ImageData:g.ImageData,navigator:m.navigator,Node:y.Node,requestAnimationFrame:_.requestAnimationFrame,cancelAnimationFrame:_.cancelAnimationFrame,screen:x.screen,XMLHttpRequest:C.$XMLHttpRequest,performance:b.performance,URL:O.URL,WebGLRenderingContext:w.WebGLRenderingContext,WebGL2RenderingContext:S.WebGL2RenderingContext,addEventListener:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a.$document.addEventListener(t,e,n)},removeEventListener:function(t,e,n){a.$document.removeEventListener(t,e)},dispatchEvent:function(t){a.$document.dispatchEvent(t)},innerWidth:x.screen.availWidth,innerHeight:x.screen.availHeight,setTimeout:setTimeout,clearTimeout:clearTimeout,setInterval:setInterval,clearInterval:clearInterval},L=k?P:E.globalWindow,D=k?C.$XMLHttpRequest:E.globalWindow.XMLHttpRequest,R=k?v.$location:E.globalWindow.location},function(t,e,n){"use strict";n.r(e),n.d(e,"FIRST_AXES_VIEW",(function(){return r})),n.d(e,"SECOND_AXES_VIEW",(function(){return i})),n.d(e,"SERIES_FIELD_KEY",(function(){return o}));var r="first-axes-view",i="second-axes-view",o="series-field-key"},function(t,e,n){"use strict";n.r(e);var r=n(7);n.d(e,"mat3",(function(){return r.mat3})),n.d(e,"vec2",(function(){return r.vec2})),n.d(e,"vec3",(function(){return r.vec3}));var i=n(1132);n.d(e,"ext",(function(){return i}))},function(t,e,n){"use strict";n.r(e);var r=n(7);n.d(e,"mat3",(function(){return r.mat3})),n.d(e,"vec2",(function(){return r.vec2})),n.d(e,"vec3",(function(){return r.vec3}));var i=n(1173);n.d(e,"ext",(function(){return i}))},function(t,e,n){"use strict";n.r(e);var r=n(7);n.d(e,"mat3",(function(){return r.mat3})),n.d(e,"vec2",(function(){return r.vec2})),n.d(e,"vec3",(function(){return r.vec3}));var i=n(1186);n.d(e,"ext",(function(){return i}))},function(t,e,n){"use strict";n.r(e);var r=n(7);n.d(e,"mat3",(function(){return r.mat3})),n.d(e,"vec2",(function(){return r.vec2})),n.d(e,"vec3",(function(){return r.vec3}));var i=n(1201);n.d(e,"ext",(function(){return i}))},function(t,e,n){"use strict";n.r(e);var r,i,o,a,s,u,l,c=n(0),h=n(57),f=n(181),d=n(183),p=n(347),g=n(513),v=n(32),m=n(10),y=n(33),b=n(148),_=n(421),x=n(357),O=c.isObject,w=c.map,S="undefined"==typeof Int32Array?Array:Int32Array,C=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],E=["_approximateExtent"],T=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;Object(x.isSeriesDataSchema)(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,u={},l=0;l=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList;if(n.getSource().sourceFormat===v.SOURCE_FORMAT_ORIGINAL&&!n.pure)for(var a=[],s=t;s0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),c.isArray(i)?i=i.slice():O(i)&&(i=c.extend({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,O(e)?c.extend(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){O(t)?c.extend(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?c.extend(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Object(y.setCommonECData)(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){c.each(this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:w(this.dimensions,this._getDimInfo,this),this.hostModel)),s(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];c.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(c.slice(arguments)))})},t.internalField=(r=function(t){var e=t._invertedIndicesMap;c.each(e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new S(o.categories.length);for(var s=0;s1&&(u+="__ec__"+c),r[e]=u}})),t}();e.default=T},function(t,e,n){"use strict";n.r(e);e.default=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e,n){"use strict";n.r(e),n.d(e,"createSVGElement",(function(){return o})),n.d(e,"createDom",(function(){return a})),n.d(e,"sortDom",(function(){return s})),n.d(e,"moveTo",(function(){return u}));var r=n(1),i=n(59);function o(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function a(t){var e=i.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=o(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(r)}return r}function s(t,e){var n=t.get("el"),i=Object(r.toArray)(n.children).sort(e),o=document.createDocumentFragment();i.forEach((function(t){o.appendChild(t)})),n.appendChild(o)}function u(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(oi&&(s=o.interval=i);var l=o.intervalPrecision=u(s);return c(o.niceTickExtent=[Object(r.round)(Math.ceil(t[0]/s)*s,l),Object(r.round)(Math.floor(t[1]/s)*s,l)],t),o}function s(t){var e=Math.pow(10,Object(r.quantityExponent)(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Object(r.round)(n*e)}function u(t){return Object(r.getPrecision)(t)+2}function l(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function c(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),l(t,0,e),l(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function h(t,e){return t>=e[0]&&t<=e[1]}function f(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function d(t,e){return t*(e[1]-e[0])+e[0]}},function(t,e,n){"use strict";n.r(e),n.d(e,"getLineAxisRelativeRegion",(function(){return s})),n.d(e,"getCircleAxisRelativeRegion",(function(){return u})),n.d(e,"getAxisRegion",(function(){return l})),n.d(e,"getAxisFactor",(function(){return c})),n.d(e,"isVertical",(function(){return h})),n.d(e,"getAxisFactorByRegion",(function(){return f})),n.d(e,"getAxisThemeCfg",(function(){return d})),n.d(e,"getAxisTitleOptions",(function(){return p})),n.d(e,"getCircleAxisCenterRadius",(function(){return g})),n.d(e,"getAxisOption",(function(){return v})),n.d(e,"getAxisDirection",(function(){return m})),n.d(e,"getAxisTitleText",(function(){return y}));var r=n(1),i=n(8),o=n(165),a=n(26);function s(t){var e,n;switch(t){case i.DIRECTION.TOP:e={x:0,y:1},n={x:1,y:1};break;case i.DIRECTION.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case i.DIRECTION.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case i.DIRECTION.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function u(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function l(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=s(e):t.isPolar&&(n=u(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}}function c(t,e){return t.isRect?t.isTransposed?[i.DIRECTION.RIGHT,i.DIRECTION.BOTTOM].includes(e)?1:-1:[i.DIRECTION.BOTTOM,i.DIRECTION.RIGHT].includes(e)?-1:1:t.isPolar&&t.x.start<0?-1:1}function h(t){var e=t.start,n=t.end;return e.x===n.x}function f(t,e){var n=t.start,r=t.end;return h(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1}function d(t,e){var n=Object(r.get)(t,["components","axis"],{});return Object(r.deepMix)({},Object(r.get)(n,["common"],{}),Object(r.deepMix)({},Object(r.get)(n,[e],{})))}function p(t,e,n){var i=Object(r.get)(t,["components","axis"],{});return Object(r.deepMix)({},Object(r.get)(i,["common","title"],{}),Object(r.deepMix)({},Object(r.get)(i,[e,"title"],{})),n)}function g(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,o=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),s=[o.x-r.x,o.y-r.y],u=[1,0],l=o.y>r.y?a.vec2.angle(s,u):-1*a.vec2.angle(s,u),c=l+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),startAngle:l,endAngle:c}}function v(t,e){return Object(r.isBoolean)(t)?!1!==t&&{}:Object(r.get)(t,[e])}function m(t,e){return Object(r.get)(t,"position",e)}function y(t,e){return Object(r.get)(e,["title","text"],Object(o.getName)(t))}},function(t,e,n){"use strict";n.r(e);var r=n(139);e.default=function(t){return Object(r.default)(t,"Function")}},function(t,e,n){"use strict";n.r(e),n.d(e,"BBox",(function(){return a})),n.d(e,"getRegionBBox",(function(){return s})),n.d(e,"toPoints",(function(){return u}));var r=n(2),i=n(1),o=n(8),a=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=t,this.y=e,this.height=r,this.width=n}return t.fromRange=function(e,n,r,i){return new t(e,n,r-e,i-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;et.minX&&this.minYt.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}(),s=function(t,e){var n=e.start,r=e.end;return new a(t.x+t.width*n.x,t.y+t.height*n.y,t.width*Math.abs(r.x-n.x),t.height*Math.abs(r.y-n.y))};function u(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}},function(t,e,n){"use strict";n.r(e),n.d(e,"parseClassType",(function(){return a})),n.d(e,"isExtendedClass",(function(){return s})),n.d(e,"enableClassExtend",(function(){return u})),n.d(e,"mountExtend",(function(){return l})),n.d(e,"enableClassCheck",(function(){return h})),n.d(e,"enableClassManagement",(function(){return p}));var r=n(4),i=n(0),o="___EC__COMPONENT__CONTAINER___";function a(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function s(t){return!(!t||!t.___EC__EXTENDED_CLASS___)}function u(t,e){t.$constructor=t,t.extend=function(t){var e,n,o=this;return n=o,i.isFunction(n)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(o):(e=function(){(t.$constructor||o).apply(this,arguments)},i.inherits(e,this)),i.extend(e.prototype,t),e.___EC__EXTENDED_CLASS___=!0,e.extend=this.extend,e.superCall=f,e.superApply=d,e.superClass=o,e}}function l(t,e){t.extend=e.extend}var c=Math.round(10*Math.random());function h(t){var e=["__\0is_clz",c++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function f(t,e){for(var n=[],r=2;r5e-5||t<-5e-5}var s=[],u=[],l=r.create(),c=Math.abs,h=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return a(this.rotation)||a(this.x)||a(this.y)||a(this.scaleX-1)||a(this.scaleY-1)||a(this.skewX)||a(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||r.create(),e?this.getLocalTransform(n):o(n),t&&(e?r.mul(n,t,n):r.copy(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&o(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(s);var n=s[0]<0?-1:1,i=s[1]<0?-1:1,o=((s[0]-n)*e+n)/s[0]||0,a=((s[1]-i)*e+i)/s[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(r.mul(u,t.invTransform,e),e=u);var n=this.originX,i=this.originY;(n||i)&&(l[4]=n,l[5]=i,r.mul(u,e,l),u[4]-=n,u[5]-=i,e=u),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&i.applyTransform(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&i.applyTransform(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){d(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,c=t.x,h=t.y,f=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var p=n+s,g=i+u;e[4]=-p*o-f*g*a,e[5]=-g*a-d*p*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=d*o,e[2]=f*a,l&&r.rotate(e,e,l),e[4]+=n+c,e[5]+=i+h,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),f=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function d(t,e){for(var n=0;n=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function o(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function a(t,e,n){Object(r.isNil)(n)&&(n=Math.max.apply(null,t));var i=n;return Object(r.each)(t,(function(t){t>0&&t1&&(i=1),i}function s(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}function u(t,e){var n=s(t),r=s(e),i=Math.pow(10,Math.max(n,r));return(t*i+e*i)/i}},function(t,e,n){"use strict";n.r(e),n.d(e,"Y_FIELD",(function(){return r})),n.d(e,"DIFF_FIELD",(function(){return i})),n.d(e,"ABSOLUTE_FIELD",(function(){return o})),n.d(e,"IS_TOTAL",(function(){return a})),n.d(e,"DEFAULT_OPTIONS",(function(){return s}));var r="$$yField$$",i="$$diffField$$",o="$$absoluteField$$",a="$$isTotal$$",s={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"lngLatInExtent",(function(){return u})),n.d(e,"extent",(function(){return l})),n.d(e,"tranfrormCoord",(function(){return c})),n.d(e,"lngLatToMeters",(function(){return h})),n.d(e,"metersToLngLat",(function(){return f})),n.d(e,"longitude",(function(){return d})),n.d(e,"latitude",(function(){return p})),n.d(e,"validateLngLat",(function(){return g})),n.d(e,"aProjectFlat",(function(){return v})),n.d(e,"unProjectFlat",(function(){return m})),n.d(e,"amap2Project",(function(){return y})),n.d(e,"amap2UnProject",(function(){return b})),n.d(e,"lnglatDistance",(function(){return _})),n.d(e,"project",(function(){return x})),n.d(e,"padBounds",(function(){return O})),n.d(e,"boundsContains",(function(){return w})),n.d(e,"bBoxToBounds",(function(){return S})),n.d(e,"normalize",(function(){return C})),n.d(e,"calDistance",(function(){return E})),n.d(e,"calAngle",(function(){return M})),n.d(e,"getAngle",(function(){return A})),n.d(e,"flow",(function(){return j})),n.d(e,"calculateCentroid",(function(){return I})),n.d(e,"calculatePointsCenterAndRadius",(function(){return k})),n.d(e,"getBBoxFromPoints",(function(){return P}));var r=n(46),i=n(1927),o=n(101),a=n(864),s=2*Math.PI*6378137/2;function u(t,e){var n=Object(r.default)(e,4),i=n[0],o=n[1],a=n[2],s=n[3];return t.lng>i&&t.lng<=a&&t.lat>o&&t.lat<=s}function l(t){var e=[1/0,1/0,-1/0,-1/0];return t.forEach((function(t){var n=t.coordinates;!function t(e,n){Array.isArray(n[0])?n.forEach((function(n){t(e,n)})):(e[0]>n[0]&&(e[0]=n[0]),e[1]>n[1]&&(e[1]=n[1]),e[2]1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{enable:!0,decimal:1},r=(t=g(t,e))[0],i=t[1],o=r*s/180,a=Math.log(Math.tan((90+i)*Math.PI/360))/(Math.PI/180);return a=a*s/180,n.enable&&(o=Number(o.toFixed(n.decimal)),a=Number(a.toFixed(n.decimal))),3===t.length?[o,a,t[2]]:[o,a]}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=t[0],r=t[1],i=n/s*180,o=r/s*180;return o=180/Math.PI*(2*Math.atan(Math.exp(o*Math.PI/180))-Math.PI/2),null!=e&&(i=Number(i.toFixed(e)),o=Number(o.toFixed(e))),3===t.length?[i,o,t[2]]:[i,o]}function d(t){if(null==t)throw new Error("lng is required");return(t>180||t<-180)&&((t%=360)>180&&(t=-360+t),t<-180&&(t=360+t),0===t&&(t=0)),t}function p(t){if(null==t)throw new Error("lat is required");return(t>90||t<-90)&&((t%=180)>90&&(t=-180+t),t<-90&&(t=180+t),0===t&&(t=0)),t}function g(t,e){if(!1===e)return t;var n=d(t[0]),r=p(t[1]);return r>85&&(r=85),r<-85&&(r=-85),3===t.length?[n,r,t[2]]:[n,r]}function v(t){var e=Math.max(Math.min(85.0511287798,t[1]),-85.0511287798),n=Math.PI/180,r=t[0]*n,i=e*n;i=Math.log(Math.tan(Math.PI/4+i/2));return r=(256<<20)*(.5/Math.PI*r+.5),i=(256<<20)*(-.5/Math.PI*i+(n=.5)),[Math.floor(r),Math.floor(i)]}function m(t){var e=.5/Math.PI,n=-.5/Math.PI,i=.5,o=Object(r.default)(t,2),a=o[0],s=o[1];return a=(a/(256<<20)-.5)/e,s=(s/(256<<20)-i)/n,s=2*(Math.atan(Math.pow(Math.E,s))-Math.PI/4),[a/(i=Math.PI/180),s/i]}function y(t,e){var n=85.0511287798,r=Math.PI/180;return e=Math.max(Math.min(n,e),-n),e*=r,[6378137*(t*=r),6378137*(e=Math.log(Math.tan(Math.PI/4+e/2)))]}function b(t,e){var n=Math.PI/180;return[t/6378137/n,2*(Math.atan(Math.exp(e/6378137))-Math.PI/4)/n]}function _(t,e,n){var r=Object(o.degreesToRadians)(e[1]-t[1]),i=Object(o.degreesToRadians)(e[0]-t[0]),a=Object(o.degreesToRadians)(t[1]),s=Object(o.degreesToRadians)(e[1]),u=Math.pow(Math.sin(r/2),2)+Math.pow(Math.sin(i/2),2)*Math.cos(a)*Math.cos(s);return Object(o.radiansToLength)(2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u)),"meters")}function x(t){var e=Math.PI/180,n=85.0511287798,r=Math.max(Math.min(n,t[1]),-n),i=Math.sin(r*e);return[6378137*t[0]*e,6378137*Math.log((1+i)/(1-i))/2]}function O(t,e){var n=Math.abs(t[1][1]-t[0][1])*e,r=Math.abs(t[1][0]-t[0][0])*e;return[[t[0][0]-r,t[0][1]-n],[t[1][0]+r,t[1][1]+n]]}function w(t,e){return t[0][0]<=e[0][0]&&t[0][1]<=e[0][1]&&t[1][0]>=e[1][0]&&t[1][1]>=e[1][1]}function S(t){return[[t[0],t[1]],[t[2],t[3]]]}function C(t){var e=E(t,[0,0]);return[t[0]/e,t[1]/e]}function E(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function T(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function M(t,e){return 180*Math.acos(function(t,e){return t[0]*e[0]+t[1]*e[1]}(t,e)/(T(t)*T(e)))/Math.PI}function A(t,e){return e[0]>0?e[1]>0?90-180*Math.atan(e[1]/e[0])/Math.PI:90+180*Math.atan(-e[1]/e[0])/Math.PI:e[1]<0?90-180*Math.atan(e[1]/e[0])/Math.PI+180:270+180*Math.atan(e[1]/-e[0])/Math.PI}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if(t&&!(t.length<2)){for(var n=0,r=[],i=0;i0){var c=r[i-1].rotation;c-l>360-c+l&&(l+=360)}r.push({start:o,end:a,dis:s,rotation:l,duration:0})}return r.map((function(t){t.duration=e*(t.dis/n)})),r}}function I(t){if(Object(a.isNumber)(t[0]))return t;if(Object(a.isNumber)(t[0][0]))throw new Error("当前数据不支持标注");if(Object(a.isNumber)(t[0][0][0])){var e=0,n=0,r=0;return t.forEach((function(t){t.forEach((function(t){e+=t[0],n+=t[1],r++}))})),[e/r,n/r,0]}throw new Error("当前数据不支持标注")}function k(t){for(var e=t[0],n=t[1],r=t[0],i=t[1],o=0,a=0,s=0,u=0;u0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),l&&h.setAttribute(u.SVG_ATTR_MAP.strokeOpacity,l),c&&h.setAttribute(u.SVG_ATTR_MAP.lineWidth,c))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(u.SVG_ATTR_MAP[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(u.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(u.SVG_ATTR_MAP[e],n);else r.setAttribute(u.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,a=r.shadowOffsetY,s=r.shadowBlur,u=r.shadowColor;(i||a||s||u)&&Object(o.setShadow)(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&Object(o.setTransform)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,o=e+r.top,a=document.elementFromPoint(i,o);return!(!a||!a.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(i.AbstractShape);e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"getTooltipMapping",(function(){return i}));var r=n(1);function i(t,e){if(!1===t)return{fields:!1};var n=Object(r.get)(t,"fields"),i=Object(r.get)(t,"formatter");return i&&!n&&(n=e),{fields:n,formatter:i}}},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return H})),n.d(e,"dependencies",(function(){return W})),n.d(e,"PRIORITY",(function(){return Y})),n.d(e,"init",(function(){return Lt})),n.d(e,"connect",(function(){return Dt})),n.d(e,"disConnect",(function(){return Rt})),n.d(e,"disconnect",(function(){return Nt})),n.d(e,"dispose",(function(){return Ft})),n.d(e,"getInstanceByDom",(function(){return Bt})),n.d(e,"getInstanceById",(function(){return zt})),n.d(e,"registerTheme",(function(){return Vt})),n.d(e,"registerPreprocessor",(function(){return Ut})),n.d(e,"registerProcessor",(function(){return Gt})),n.d(e,"registerPostInit",(function(){return Ht})),n.d(e,"registerPostUpdate",(function(){return Wt})),n.d(e,"registerUpdateLifecycle",(function(){return Yt})),n.d(e,"registerAction",(function(){return $t})),n.d(e,"registerCoordinateSystem",(function(){return Xt})),n.d(e,"getCoordinateSystemDimensions",(function(){return qt})),n.d(e,"registerLayout",(function(){return Zt})),n.d(e,"registerVisual",(function(){return Kt})),n.d(e,"registerLoading",(function(){return te})),n.d(e,"setCanvasCreator",(function(){return ee})),n.d(e,"registerMap",(function(){return ne})),n.d(e,"getMap",(function(){return re})),n.d(e,"registerTransform",(function(){return ie})),n.d(e,"dataTool",(function(){return oe}));var r=n(4),i=n(415),o=n(0),a=n(49),s=n(511),u=n(136),l=n(734),c=n(736),h=n(287),f=n(1407),d=n(926),p=n(1412),g=n(54),v=n(66),m=n(53),y=n(74),b=n(111),_=n(23),x=n(38),O=n(33),w=n(13),S=n(10),C=n(137),E=n(840),T=n(1413),M=n(928),A=n(1414),j=n(1415),I=n(125),k=n(1391),P=n(930),L=n(194),D=n(39),R=n(475),N=n(739),F=n(260),B=n(293),z=n(1410),V=n(278),U=n(104),G=n(582);n.d(e,"registerLocale",(function(){return F.registerLocale}));var H="5.4.2",W={zrender:"5.4.3"},Y={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},$="__pendingUpdate",X=/^[a-zA-Z0-9_]+$/;function q(t){return function(){for(var e=[],n=0;n0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this.__flagInMainProcess)if(this._disposed)xt(this.id);else{var r,i,a;if(Object(o.isObject)(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,a=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var s=new f.default(this._api),u=this._theme,c=this._model=new l.default;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,s)}this._model.setOption(t,{replaceMerge:i},Ct);var h={seriesTransition:a,optionChanged:!0};if(n)this[$]={silent:r,updateParams:h},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{Q(this),et.update.call(this,null,h)}catch(t){throw this[$]=null,this.__flagInMainProcess=!1,t}this._ssr||this._zr.flush(),this[$]=null,this.__flagInMainProcess=!1,ot.call(this,r),at.call(this,r)}}},e.prototype.setTheme=function(){Object(D.deprecateLog)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||a.default.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(a.default.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(o.each)(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,r=[],i=this;Object(o.each)(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(o.each)(r,(function(t){t.group.ignore=!1})),a}xt(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,a=Math.max;if(jt[n]){var s=1/0,u=1/0,l=-1/0,c=-1/0,h=[],f=t&&t.pixelRatio||this.getDevicePixelRatio();Object(o.each)(At,(function(i,f){if(i.group===n){var d=e?i.getZr().painter.getSvgDom().innerHTML:i.renderToCanvas(Object(o.clone)(t)),p=i.getDom().getBoundingClientRect();s=r(p.left,s),u=r(p.top,u),l=a(p.right,l),c=a(p.bottom,c),h.push({dom:d,left:p.left,top:p.top})}}));var d=(l*=f)-(s*=f),p=(c*=f)-(u*=f),g=U.platformApi.createCanvas(),v=i.init(g,{renderer:e?"svg":"canvas"});if(v.resize({width:d,height:p}),e){var m="";return Object(o.each)(h,(function(t){var e=t.left-s,n=t.top-u;m+=''+t.dom+""})),v.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new y.default({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),Object(o.each)(h,(function(t){var e=new b.default({style:{x:t.left*f-s,y:t.top*f-u,image:t.dom}});v.add(e)})),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}xt(this.id)},e.prototype.convertToPixel=function(t,e){return nt(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return nt(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=S.parseFinder(r,t);return Object(o.each)(i,(function(t,r){r.indexOf("Models")>=0&&Object(o.each)(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}xt(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=S.parseFinder(n,t,{defaultMainType:"series"});var i=r.seriesModel.getData(),o=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?i.indexOfRawIndex(r.dataIndex):null;return null!=o?Object(L.getItemVisualFromData)(i,o,e):Object(L.getVisualFromData)(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(o.each)(_t,(function(e){var n=function(n){var r,i=t.getModel(),a=n.target;if("globalout"===e?r={}:a&&Object(B.findEventDispatcher)(a,(function(t){var e=Object(O.getECData)(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return r=Object(o.extend)({},e.eventData),!0}),!0),r){var s=r.componentType,u=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",u=r.seriesIndex);var l=s&&null!=u&&i.getComponent(s,u),c=l&&t["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:a,packedEvent:r,model:l,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(o.each)(wt,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(o.each)(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Object(R.handleLegacySelectEvents)(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?xt(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)xt(this.id);else{this._disposed=!0,this.getDom()&&S.setAttribute(this.getDom(),Pt,"");var t=this._api,e=this._model;Object(o.each)(this._componentsViews,(function(n){n.dispose(e,t)})),Object(o.each)(this._chartsViews,(function(n){n.dispose(e,t)})),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete At[this.id]}},e.prototype.resize=function(t){if(!this.__flagInMainProcess)if(this._disposed)xt(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[$]&&(null==r&&(r=this[$].silent),n=!0,this[$]=null),this.__flagInMainProcess=!0;try{n&&Q(this),et.update.call(this,{type:"resize",animation:Object(o.extend)({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,ot.call(this,r),at.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)xt(this.id);else if(Object(o.isObject)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Mt[t]){var n=Mt[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?xt(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(o.extend)({},t);return e.type=wt[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)xt(this.id);else if(Object(o.isObject)(e)||(e={silent:!!e}),Ot[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;it.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&a.default.browser.weChat&&this._throttledZrFlush(),ot.call(this,n),at.call(this,n)}},e.prototype.updateLabelLayout=function(){V.default.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)xt(this.id);else{var e=t.seriesIndex;0,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,r=0;r0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(_.isElementRemoved(t))return;if(t instanceof x.default&&Object(w.savePathStates)(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}Q=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),J(t,!0),J(t,!1),e.plan()},J=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,u=0;ue.get("hoverLayerThreshold")&&!a.default.node&&!a.default.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),V.default.trigger("series:afterupdate",e,r,l)},pt=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},gt=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse((function(t){_.isElementRemoved(t)||e(t)})),t.__needsUpdateStatus=!1)},ft=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Object(w.enterEmphasis)(e,n),pt(t)},n.prototype.leaveEmphasis=function(e,n){Object(w.leaveEmphasis)(e,n),pt(t)},n.prototype.enterBlur=function(e){Object(w.enterBlur)(e),pt(t)},n.prototype.leaveBlur=function(e){Object(w.leaveBlur)(e),pt(t)},n.prototype.enterSelect=function(e){Object(w.enterSelect)(e),pt(t)},n.prototype.leaveSelect=function(e){Object(w.leaveSelect)(e),pt(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(c.default))(t)},dt=function(t){function e(t,e){for(var n=0;n=0)){Qt.push(n);var a=M.default.wrapStageHandler(n,i);a.__prio=e,a.__raw=n,t.push(a)}}function te(t,e){Mt[t]=e}function ee(t){Object(U.setPlatformAPI)({createCanvas:t})}function ne(t,e,n){var r=Object(G.getImpl)("registerMap");r&&r(t,e,n)}function re(t){var e=Object(G.getImpl)("getMap");return e&&e(t)}var ie=N.registerExternalTransform;Kt(2e3,E.seriesStyleTask),Kt(4500,E.dataStyleTask),Kt(4500,E.dataColorPaletteTask),Kt(2e3,P.seriesSymbolTask),Kt(4500,P.dataSymbolTask),Kt(7e3,z.default),Ut(d.default),Gt(900,p.default),te("default",T.default),$t({type:w.HIGHLIGHT_ACTION_TYPE,event:w.HIGHLIGHT_ACTION_TYPE,update:w.HIGHLIGHT_ACTION_TYPE},o.noop),$t({type:w.DOWNPLAY_ACTION_TYPE,event:w.DOWNPLAY_ACTION_TYPE,update:w.DOWNPLAY_ACTION_TYPE},o.noop),$t({type:w.SELECT_ACTION_TYPE,event:w.SELECT_ACTION_TYPE,update:w.SELECT_ACTION_TYPE},o.noop),$t({type:w.UNSELECT_ACTION_TYPE,event:w.UNSELECT_ACTION_TYPE,update:w.UNSELECT_ACTION_TYPE},o.noop),$t({type:w.TOGGLE_SELECT_ACTION_TYPE,event:w.TOGGLE_SELECT_ACTION_TYPE,update:w.TOGGLE_SELECT_ACTION_TYPE},o.noop),Vt("light",A.default),Vt("dark",j.default);var oe={}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(75),o=n(5),a=(n(39),r.each),s=r.isObject,u=function(){function t(e){var n=e.mappingMethod,i=e.type,o=this.option=r.clone(e);this.type=i,this.mappingMethod=n,this._normalizeData=y[n];var s=t.visualHandlers[i];this.applyVisual=s.applyVisual,this.getColorMapper=s.getColorMapper,this._normalizedToVisual=s._normalizedToVisual[n],"piecewise"===n?(l(o),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,r.each(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(o)):"category"===n?o.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(a(e,(function(t,e){n[t]=e})),!r.isArray(i)){var o=[];r.isObject(i)?a(i,(function(t,e){var r=n[e];o[null!=r?r:-1]=t})):o[-1]=i,i=m(t,o)}for(var s=e.length-1;s>=0;s--)null==i[s]&&(delete n[e[s]],e.pop())}(o):l(o,!0):(r.assert("linear"!==n||o.dataExtent),l(o))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return r.bind(this._normalizeData,this)},t.listVisualTypes=function(){return r.keys(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){r.isObject(t)?r.each(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var o,a=r.isArray(e)?[]:r.isObject(e)?{}:(o=!0,null);return t.eachVisual(e,(function(t,e){var r=n.call(i,t,e);o?a=r:a[e]=r})),a},t.retrieveVisuals=function(e){var n,r={};return e&&a(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(r.isArray(t))t=t.slice();else{if(!s(t))return[];var e=[];a(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,o=1/0,a=0,s=e.length;a=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n3&&void 0!==arguments[3]?arguments[3]:{};"passive"in r&&d?t.addEventListener(e,n,r):t.addEventListener(e,n,r.capture)},s.removeEventListener=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"passive"in r&&d?t.removeEventListener(e,n,r):t.removeEventListener(e,n,r.capture)};var g=function t(e){e.preventDefault(),e.stopPropagation(),r.$window.removeEventListener("click",t,!0)};s.suppressClick=function(){r.isMini||(r.$window.addEventListener("click",g,!0),setTimeout((function(){r.$window.removeEventListener("click",g,!0)}),0))},s.mousePos=function(t,e){if(r.isMini)return new i.default(e.clientX-t.left-0,e.clientY-t.top-0);var n=t.getBoundingClientRect();return new i.default(e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop)},s.touchPos=function(t,e){if(r.isMini){var n,a=[],s=o(e);try{for(s.s();!(n=s.n()).done;){var u=n.value;a.push(new i.default(u.clientX-t.left,u.clientY-t.top))}}catch(t){s.e(t)}finally{s.f()}return a}var l,c=t.getBoundingClientRect(),h=[],f=o(e);try{for(f.s();!(l=f.n()).done;){var d=l.value;h.push(new i.default(d.clientX-c.left-t.clientLeft,d.clientY-c.top-t.clientTop))}}catch(t){f.e(t)}finally{f.f()}return h},s.mouseButton=function(t){return r.isMini&&void 0!==r.$window.InstallTrigger&&2===t.button&&t.ctrlKey&&r.$window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:t.button},s.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)}},function(t,e,n){"use strict";n.r(e);var r=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a=0?h():c=setTimeout(h,-i),u=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(t){s=t},f}function a(t,e,n,a){var s=t[e];if(s){var u=s[r]||s,l=s["\0__throttleType"];if(s[i]!==n||l!==a){if(null==n||!a)return t[e]=u;(s=t[e]=o(u,n,"debounce"===a))[r]=u,s["\0__throttleType"]=a,s[i]=n}return s}}function s(t,e){var n=t[e];n&&n[r]&&(n.clear&&n.clear(),t[e]=n[r])}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformLocalCoord",(function(){return a})),n.d(e,"transformCoordWithViewport",(function(){return s})),n.d(e,"isCanvasEl",(function(){return u})),n.d(e,"encodeHTML",(function(){return h}));var r=n(49),i=n(925),o=[];function a(t,e,n,r,i){return s(o,e,r,i,!0)&&s(t,n,o[0],o[1])}function s(t,e,n,o,a){if(e.getBoundingClientRect&&r.default.domSupported&&!u(e)){var s=e.___zrEVENTSAVED||(e.___zrEVENTSAVED={}),l=function(t,e,n){for(var r=n?"invTrans":"trans",o=e[r],a=e.srcCoords,s=[],u=[],l=!0,c=0;c<4;c++){var h=t[c].getBoundingClientRect(),f=2*c,d=h.left,p=h.top;s.push(d,p),l=l&&a&&d===a[f]&&p===a[f+1],u.push(t[c].offsetLeft,t[c].offsetTop)}return l&&o?o:(e.srcCoords=s,e[r]=n?Object(i.buildTransformer)(u,s):Object(i.buildTransformer)(s,u))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,u=o%2,l=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[u]+":0",i[l]+":0",r[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,s),s,a);if(l)return l(t,n,o),!0}return!1}function u(t){return"CANVAS"===t.nodeName.toUpperCase()}var l=/([&<>"'])/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(t){return null==t?"":(t+"").replace(l,(function(t,e){return c[e]}))}},function(t,e,n){"use strict";n.r(e);var r={}.toString;e.default=function(t,e){return r.call(t)==="[object "+e+"]"}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(82),o=n(56),a=n(144),s=n(284),u=n(468),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return u.default},e.prototype.onCanvasChange=function(t){Object(a.refreshElement)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=Object(i.getBBoxMethod)(t)(this),r=e/2,o=n.x-r,a=n.y-r,s=n.x+n.width+r,u=n.y+n.height+r;return{x:o,minX:o,y:a,minY:a,width:n.width+e,height:n.height+e,maxX:s,maxY:u}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(a.applyAttrsToContext)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var r=this.getCanvasBBox();if(!Object(o.intersectRect)(e,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Object(a.applyAttrsToContext)(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=Object(o.intersectRect)(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isFill()&&(Object(o.isNil)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(Object(o.isNil)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(i.AbstractShape);e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"enableDataStack",(function(){return o})),n.d(e,"isDimensionStacked",(function(){return a})),n.d(e,"getStackedDimension",(function(){return s}));var r=n(0),i=n(357);function o(t,e,n){var o,a,s,u=(n=n||{}).byIndex,l=n.stackedCoordDimension;!function(t){return!Object(i.isSeriesDataSchema)(t.schema)}(e)?(a=e.schema,o=a.dimensions,s=e.store):o=e;var c,h,f,d,p=!(!t||!t.get("stack"));if(Object(r.each)(o,(function(t,e){Object(r.isString)(t)&&(o[e]=t={name:t}),p&&!t.isExtraCoord&&(u||c||!t.ordinalMeta||(c=t),h||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(h=t))})),!h||u||c||(u=!0),h){f="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var g=h.coordDim,v=h.type,m=0;Object(r.each)(o,(function(t){t.coordDim===g&&m++}));var y={name:f,coordDim:g,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},b={name:d,coordDim:d,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(d,v),b.storeDimIndex=s.ensureCalculationDimension(f,v)),a.appendCalculationDimension(y),a.appendCalculationDimension(b)):(o.push(y),o.push(b))}return{stackedDimension:h&&h.name,stackedByDimension:c&&c.name,isStackedByIndex:u,stackedOverDimension:d,stackResultDimension:f}}function a(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function s(t,e){return a(t,e)?t.getCalculationInfo("stackResultDimension"):e}},function(t,e,n){"use strict";n.r(e),n.d(e,"AXIS_META_CONFIG_KEYS",(function(){return r}));var r=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"]},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"copy",(function(){return a})),n.d(e,"fromValues",(function(){return s})),n.d(e,"set",(function(){return u})),n.d(e,"identity",(function(){return l})),n.d(e,"transpose",(function(){return c})),n.d(e,"invert",(function(){return h})),n.d(e,"adjoint",(function(){return f})),n.d(e,"determinant",(function(){return d})),n.d(e,"multiply",(function(){return p})),n.d(e,"translate",(function(){return g})),n.d(e,"scale",(function(){return v})),n.d(e,"rotate",(function(){return m})),n.d(e,"rotateX",(function(){return y})),n.d(e,"rotateY",(function(){return b})),n.d(e,"rotateZ",(function(){return _})),n.d(e,"fromTranslation",(function(){return x})),n.d(e,"fromScaling",(function(){return O})),n.d(e,"fromRotation",(function(){return w})),n.d(e,"fromXRotation",(function(){return S})),n.d(e,"fromYRotation",(function(){return C})),n.d(e,"fromZRotation",(function(){return E})),n.d(e,"fromRotationTranslation",(function(){return T})),n.d(e,"fromQuat2",(function(){return M})),n.d(e,"getTranslation",(function(){return A})),n.d(e,"getScaling",(function(){return j})),n.d(e,"getRotation",(function(){return I})),n.d(e,"fromRotationTranslationScale",(function(){return k})),n.d(e,"fromRotationTranslationScaleOrigin",(function(){return P})),n.d(e,"fromQuat",(function(){return L})),n.d(e,"frustum",(function(){return D})),n.d(e,"perspectiveNO",(function(){return R})),n.d(e,"perspective",(function(){return N})),n.d(e,"perspectiveZO",(function(){return F})),n.d(e,"perspectiveFromFieldOfView",(function(){return B})),n.d(e,"orthoNO",(function(){return z})),n.d(e,"ortho",(function(){return V})),n.d(e,"orthoZO",(function(){return U})),n.d(e,"lookAt",(function(){return G})),n.d(e,"targetTo",(function(){return H})),n.d(e,"str",(function(){return W})),n.d(e,"frob",(function(){return Y})),n.d(e,"add",(function(){return $})),n.d(e,"subtract",(function(){return X})),n.d(e,"multiplyScalar",(function(){return q})),n.d(e,"multiplyScalarAndAdd",(function(){return Z})),n.d(e,"exactEquals",(function(){return K})),n.d(e,"equals",(function(){return Q})),n.d(e,"mul",(function(){return J})),n.d(e,"sub",(function(){return tt}));var r=n(22);function i(){var t=new r.ARRAY_TYPE(16);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function o(t){var e=new r.ARRAY_TYPE(16);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[6]=t[6],e[7]=t[7],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}function a(t,e){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}function s(t,e,n,i,o,a,s,u,l,c,h,f,d,p,g,v){var m=new r.ARRAY_TYPE(16);return m[0]=t,m[1]=e,m[2]=n,m[3]=i,m[4]=o,m[5]=a,m[6]=s,m[7]=u,m[8]=l,m[9]=c,m[10]=h,m[11]=f,m[12]=d,m[13]=p,m[14]=g,m[15]=v,m}function u(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=l,t[9]=c,t[10]=h,t[11]=f,t[12]=d,t[13]=p,t[14]=g,t[15]=v,t}function l(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function c(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function h(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*s-r*a,b=n*u-i*a,_=n*l-o*a,x=r*u-i*s,O=r*l-o*s,w=i*l-o*u,S=c*g-h*p,C=c*v-f*p,E=c*m-d*p,T=h*v-f*g,M=h*m-d*g,A=f*m-d*v,j=y*A-b*M+_*T+x*E-O*C+w*S;return j?(j=1/j,t[0]=(s*A-u*M+l*T)*j,t[1]=(i*M-r*A-o*T)*j,t[2]=(g*w-v*O+m*x)*j,t[3]=(f*O-h*w-d*x)*j,t[4]=(u*E-a*A-l*C)*j,t[5]=(n*A-i*E+o*C)*j,t[6]=(v*_-p*w-m*b)*j,t[7]=(c*w-f*_+d*b)*j,t[8]=(a*M-s*E+l*S)*j,t[9]=(r*E-n*M-o*S)*j,t[10]=(p*O-g*_+m*y)*j,t[11]=(h*_-c*O-d*y)*j,t[12]=(s*C-a*T-u*S)*j,t[13]=(n*T-r*C+i*S)*j,t[14]=(g*b-p*x-v*y)*j,t[15]=(c*x-h*b+f*y)*j,t):null}function f(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],g=e[13],v=e[14],m=e[15];return t[0]=s*(f*m-d*v)-h*(u*m-l*v)+g*(u*d-l*f),t[1]=-(r*(f*m-d*v)-h*(i*m-o*v)+g*(i*d-o*f)),t[2]=r*(u*m-l*v)-s*(i*m-o*v)+g*(i*l-o*u),t[3]=-(r*(u*d-l*f)-s*(i*d-o*f)+h*(i*l-o*u)),t[4]=-(a*(f*m-d*v)-c*(u*m-l*v)+p*(u*d-l*f)),t[5]=n*(f*m-d*v)-c*(i*m-o*v)+p*(i*d-o*f),t[6]=-(n*(u*m-l*v)-a*(i*m-o*v)+p*(i*l-o*u)),t[7]=n*(u*d-l*f)-a*(i*d-o*f)+c*(i*l-o*u),t[8]=a*(h*m-d*g)-c*(s*m-l*g)+p*(s*d-l*h),t[9]=-(n*(h*m-d*g)-c*(r*m-o*g)+p*(r*d-o*h)),t[10]=n*(s*m-l*g)-a*(r*m-o*g)+p*(r*l-o*s),t[11]=-(n*(s*d-l*h)-a*(r*d-o*h)+c*(r*l-o*s)),t[12]=-(a*(h*v-f*g)-c*(s*v-u*g)+p*(s*f-u*h)),t[13]=n*(h*v-f*g)-c*(r*v-i*g)+p*(r*f-i*h),t[14]=-(n*(s*v-u*g)-a*(r*v-i*g)+p*(r*u-i*s)),t[15]=n*(s*f-u*h)-a*(r*f-i*h)+c*(r*u-i*s),t}function d(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],l=t[8],c=t[9],h=t[10],f=t[11],d=t[12],p=t[13],g=t[14],v=t[15];return(e*a-n*o)*(h*v-f*g)-(e*s-r*o)*(c*v-f*p)+(e*u-i*o)*(c*g-h*p)+(n*s-r*a)*(l*v-f*d)-(n*u-i*a)*(l*g-h*d)+(r*u-i*s)*(l*p-c*d)}function p(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],b=n[0],_=n[1],x=n[2],O=n[3];return t[0]=b*r+_*s+x*h+O*g,t[1]=b*i+_*u+x*f+O*v,t[2]=b*o+_*l+x*d+O*m,t[3]=b*a+_*c+x*p+O*y,b=n[4],_=n[5],x=n[6],O=n[7],t[4]=b*r+_*s+x*h+O*g,t[5]=b*i+_*u+x*f+O*v,t[6]=b*o+_*l+x*d+O*m,t[7]=b*a+_*c+x*p+O*y,b=n[8],_=n[9],x=n[10],O=n[11],t[8]=b*r+_*s+x*h+O*g,t[9]=b*i+_*u+x*f+O*v,t[10]=b*o+_*l+x*d+O*m,t[11]=b*a+_*c+x*p+O*y,b=n[12],_=n[13],x=n[14],O=n[15],t[12]=b*r+_*s+x*h+O*g,t[13]=b*i+_*u+x*f+O*v,t[14]=b*o+_*l+x*d+O*m,t[15]=b*a+_*c+x*p+O*y,t}function g(t,e,n){var r,i,o,a,s,u,l,c,h,f,d,p,g=n[0],v=n[1],m=n[2];return e===t?(t[12]=e[0]*g+e[4]*v+e[8]*m+e[12],t[13]=e[1]*g+e[5]*v+e[9]*m+e[13],t[14]=e[2]*g+e[6]*v+e[10]*m+e[14],t[15]=e[3]*g+e[7]*v+e[11]*m+e[15]):(r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=l,t[7]=c,t[8]=h,t[9]=f,t[10]=d,t[11]=p,t[12]=r*g+s*v+h*m+e[12],t[13]=i*g+u*v+f*m+e[13],t[14]=o*g+l*v+d*m+e[14],t[15]=a*g+c*v+p*m+e[15]),t}function v(t,e,n){var r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function m(t,e,n,i){var o,a,s,u,l,c,h,f,d,p,g,v,m,y,b,_,x,O,w,S,C,E,T,M,A=i[0],j=i[1],I=i[2],k=Math.hypot(A,j,I);return k0?(n[0]=2*(u*s+h*i+l*a-c*o)/f,n[1]=2*(l*s+h*o+c*i-u*a)/f,n[2]=2*(c*s+h*a+u*o-l*i)/f):(n[0]=2*(u*s+h*i+l*a-c*o),n[1]=2*(l*s+h*o+c*i-u*a),n[2]=2*(c*s+h*a+u*o-l*i)),T(t,e,n),t}function A(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function j(t,e){var n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],u=e[8],l=e[9],c=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(o,a,s),t[2]=Math.hypot(u,l,c),t}function I(t,e){var n=new r.ARRAY_TYPE(3);j(n,e);var i=1/n[0],o=1/n[1],a=1/n[2],s=e[0]*i,u=e[1]*o,l=e[2]*a,c=e[4]*i,h=e[5]*o,f=e[6]*a,d=e[8]*i,p=e[9]*o,g=e[10]*a,v=s+h+g,m=0;return v>0?(m=2*Math.sqrt(v+1),t[3]=.25*m,t[0]=(f-p)/m,t[1]=(d-l)/m,t[2]=(u-c)/m):s>h&&s>g?(m=2*Math.sqrt(1+s-h-g),t[3]=(f-p)/m,t[0]=.25*m,t[1]=(u+c)/m,t[2]=(d+l)/m):h>g?(m=2*Math.sqrt(1+h-s-g),t[3]=(d-l)/m,t[0]=(u+c)/m,t[1]=.25*m,t[2]=(f+p)/m):(m=2*Math.sqrt(1+g-s-h),t[3]=(u-c)/m,t[0]=(d+l)/m,t[1]=(f+p)/m,t[2]=.25*m),t}function k(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3],u=i+i,l=o+o,c=a+a,h=i*u,f=i*l,d=i*c,p=o*l,g=o*c,v=a*c,m=s*u,y=s*l,b=s*c,_=r[0],x=r[1],O=r[2];return t[0]=(1-(p+v))*_,t[1]=(f+b)*_,t[2]=(d-y)*_,t[3]=0,t[4]=(f-b)*x,t[5]=(1-(h+v))*x,t[6]=(g+m)*x,t[7]=0,t[8]=(d+y)*O,t[9]=(g-m)*O,t[10]=(1-(h+p))*O,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function P(t,e,n,r,i){var o=e[0],a=e[1],s=e[2],u=e[3],l=o+o,c=a+a,h=s+s,f=o*l,d=o*c,p=o*h,g=a*c,v=a*h,m=s*h,y=u*l,b=u*c,_=u*h,x=r[0],O=r[1],w=r[2],S=i[0],C=i[1],E=i[2],T=(1-(g+m))*x,M=(d+_)*x,A=(p-b)*x,j=(d-_)*O,I=(1-(f+m))*O,k=(v+y)*O,P=(p+b)*w,L=(v-y)*w,D=(1-(f+g))*w;return t[0]=T,t[1]=M,t[2]=A,t[3]=0,t[4]=j,t[5]=I,t[6]=k,t[7]=0,t[8]=P,t[9]=L,t[10]=D,t[11]=0,t[12]=n[0]+S-(T*S+j*C+P*E),t[13]=n[1]+C-(M*S+I*C+L*E),t[14]=n[2]+E-(A*S+k*C+D*E),t[15]=1,t}function L(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,l=n*a,c=r*a,h=r*s,f=i*a,d=i*s,p=i*u,g=o*a,v=o*s,m=o*u;return t[0]=1-h-p,t[1]=c+m,t[2]=f-v,t[3]=0,t[4]=c-m,t[5]=1-l-p,t[6]=d+g,t[7]=0,t[8]=f+v,t[9]=d-g,t[10]=1-l-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function D(t,e,n,r,i,o,a){var s=1/(n-e),u=1/(i-r),l=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(a+o)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*l,t[15]=0,t}function R(t,e,n,r,i){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t}var N=R;function F(t,e,n,r,i){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=i*o,t[14]=i*r*o):(t[10]=-1,t[14]=-r),t}function B(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(a+s),l=2/(i+o);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(a-s)*u*.5,t[9]=(i-o)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function z(t,e,n,r,i,o,a){var s=1/(e-n),u=1/(r-i),l=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(a+o)*l,t[15]=1,t}var V=z;function U(t,e,n,r,i,o,a){var s=1/(e-n),u=1/(r-i),l=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=o*l,t[15]=1,t}function G(t,e,n,i){var o,a,s,u,c,h,f,d,p,g,v=e[0],m=e[1],y=e[2],b=i[0],_=i[1],x=i[2],O=n[0],w=n[1],S=n[2];return Math.abs(v-O)0&&(c*=d=1/Math.sqrt(d),h*=d,f*=d);var p=u*f-l*h,g=l*c-s*f,v=s*h-u*c;return(d=p*p+g*g+v*v)>0&&(p*=d=1/Math.sqrt(d),g*=d,v*=d),t[0]=p,t[1]=g,t[2]=v,t[3]=0,t[4]=h*v-f*g,t[5]=f*p-c*v,t[6]=c*g-h*p,t[7]=0,t[8]=c,t[9]=h,t[10]=f,t[11]=0,t[12]=i,t[13]=o,t[14]=a,t[15]=1,t}function W(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function Y(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function $(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function X(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function q(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function Z(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function K(t,e){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]}function Q(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=t[9],d=t[10],p=t[11],g=t[12],v=t[13],m=t[14],y=t[15],b=e[0],_=e[1],x=e[2],O=e[3],w=e[4],S=e[5],C=e[6],E=e[7],T=e[8],M=e[9],A=e[10],j=e[11],I=e[12],k=e[13],P=e[14],L=e[15];return Math.abs(n-b)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(i-_)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(o-x)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(a-O)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(O))&&Math.abs(s-w)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(u-S)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(l-C)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(C))&&Math.abs(c-E)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(h-T)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(f-M)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(d-A)<=r.EPSILON*Math.max(1,Math.abs(d),Math.abs(A))&&Math.abs(p-j)<=r.EPSILON*Math.max(1,Math.abs(p),Math.abs(j))&&Math.abs(g-I)<=r.EPSILON*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(v-k)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(k))&&Math.abs(m-P)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(P))&&Math.abs(y-L)<=r.EPSILON*Math.max(1,Math.abs(y),Math.abs(L))}var J=p,tt=X},function(t,e,n){"use strict";n.r(e),n.d(e,"applyAttrsToContext",(function(){return l})),n.d(e,"drawChildren",(function(){return c})),n.d(e,"checkRefresh",(function(){return h})),n.d(e,"checkChildrenRefresh",(function(){return f})),n.d(e,"clearChanged",(function(){return d})),n.d(e,"drawPath",(function(){return v})),n.d(e,"refreshElement",(function(){return m})),n.d(e,"getRefreshRegion",(function(){return y})),n.d(e,"getMergedRegion",(function(){return b})),n.d(e,"mergeView",(function(){return _}));var r=n(1),i=n(780),o=n(570),a=n(56),s=n(188),u={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function l(t,e){var n=e.attr();for(var o in n){var a=n[o],s=u[o]?u[o]:o;"matrix"===s&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):"lineDash"===s&&t.setLineDash?Object(r.isArray)(a)&&t.setLineDash(a):("strokeStyle"===s||"fillStyle"===s?a=Object(i.parseStyle)(t,e,a):"globalAlpha"===s&&(a*=t.globalAlpha),t[s]=a)}}function c(t,e,n){for(var r=0;rO?x:O,M=x>O?1:x/O,A=x>O?O/x:1;e.translate(b,_),e.rotate(C),e.scale(M,A),e.arc(0,0,T,w,S,1-E),e.scale(1/M,1/A),e.rotate(-C),e.translate(-b,-_)}break;case"Z":e.closePath()}if("Z"===p)l=c;else{var j=d.length;l=[d[j-2],d[j-1]]}}}}function m(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function y(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),i=t.getCanvasBBox(),o=i&&!(!i.width||!i.height);r&&o?e=Object(a.mergeRegion)(n,i):r?e=n:o&&(e=i)}return e}function b(t){if(!t.length)return null;var e=[],n=[],i=[],o=[];return Object(r.each)(t,(function(t){var r=y(t);r&&(e.push(r.minX),n.push(r.minY),i.push(r.maxX),o.push(r.maxY))})),{minX:Object(r.min)(e),minY:Object(r.min)(n),maxX:Object(r.max)(i),maxY:Object(r.max)(o)}}function _(t,e){return t&&e&&Object(a.intersectRect)(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},function(t,e,n){"use strict";n.r(e),n.d(e,"normalizeArcAngles",(function(){return C}));var r=n(20),i=n(37),o=n(160),a=n(243),s=n(48),u={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},l=[],c=[],h=[],f=[],d=[],p=[],g=Math.min,v=Math.max,m=Math.cos,y=Math.sin,b=Math.abs,_=Math.PI,x=2*_,O="undefined"!=typeof Float32Array,w=[];function S(t){return Math.round(t/_*1e8)/1e8%2*_}function C(t,e){var n=S(t[0]);n<0&&(n+=x);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=x?i=n+x:e&&n-i>=x?i=n-x:!e&&n>i?i=n+(x-S(n-i)):e&&n0&&(this._ux=b(n/o.devicePixelRatio/t)||0,this._uy=b(n/o.devicePixelRatio/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(u.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=b(t-this._xi),r=b(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(u.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(u.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(u.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),w[0]=r,w[1]=i,C(w,o),r=w[0];var a=(i=w[1])-r;return this.addData(u.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=m(i)*n+t,this._yi=y(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(u.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(u.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!O||(this.data=new Float32Array(e));for(var n=0;nl.length&&(this._expandData(),l=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){h[0]=h[1]=d[0]=d[1]=Number.MAX_VALUE,f[0]=f[1]=p[0]=p[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,s=0,l=0;for(t=0;tn||b(S)>r||d===e-1)&&(O=Math.sqrt(N*N+S*S),i=w,o=T);break;case u.C:var C=t[d++],E=t[d++],T=(w=t[d++],t[d++]),M=t[d++],A=t[d++];O=Object(s.cubicLength)(i,o,C,E,w,T,M,A,10),i=M,o=A;break;case u.Q:C=t[d++],E=t[d++],w=t[d++],T=t[d++];O=Object(s.quadraticLength)(i,o,C,E,w,T,10),i=w,o=T;break;case u.A:var j=t[d++],I=t[d++],k=t[d++],P=t[d++],L=t[d++],D=t[d++],R=D+L;d+=1;t[d++];_&&(a=m(L)*k+j,l=y(L)*P+I),O=v(k,P)*g(x,Math.abs(D)),i=m(R)*k+j,o=y(R)*P+I;break;case u.R:a=i=t[d++],l=o=t[d++],O=2*t[d++]+2*t[d++];break;case u.Z:var N=a-i;S=l-o;O=Math.sqrt(N*N+S*S),i=a,o=l}O>=0&&(c[f++]=O,h+=O)}return this._pathLen=h,h},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,h,f,d,p,_,x=this.data,O=this._ux,w=this._uy,S=this._len,C=e<1,E=0,T=0,M=0;if(!C||(this._pathSegLen||this._calculateLength(),f=this._pathSegLen,d=e*this._pathLen))t:for(var A=0;A0&&(t.lineTo(p,_),M=0),j){case u.M:n=i=x[A++],r=o=x[A++],t.moveTo(i,o);break;case u.L:a=x[A++],h=x[A++];var k=b(a-i),P=b(h-o);if(k>O||P>w){if(C){if(E+(rt=f[T++])>d){var L=(d-E)/rt;t.lineTo(i*(1-L)+a*L,o*(1-L)+h*L);break t}E+=rt}t.lineTo(a,h),i=a,o=h,M=0}else{var D=k*k+P*P;D>M&&(p=a,_=h,M=D)}break;case u.C:var R=x[A++],N=x[A++],F=x[A++],B=x[A++],z=x[A++],V=x[A++];if(C){if(E+(rt=f[T++])>d){L=(d-E)/rt;Object(s.cubicSubdivide)(i,R,F,z,L,l),Object(s.cubicSubdivide)(o,N,B,V,L,c),t.bezierCurveTo(l[1],c[1],l[2],c[2],l[3],c[3]);break t}E+=rt}t.bezierCurveTo(R,N,F,B,z,V),i=z,o=V;break;case u.Q:R=x[A++],N=x[A++],F=x[A++],B=x[A++];if(C){if(E+(rt=f[T++])>d){L=(d-E)/rt;Object(s.quadraticSubdivide)(i,R,F,L,l),Object(s.quadraticSubdivide)(o,N,B,L,c),t.quadraticCurveTo(l[1],c[1],l[2],c[2]);break t}E+=rt}t.quadraticCurveTo(R,N,F,B),i=F,o=B;break;case u.A:var U=x[A++],G=x[A++],H=x[A++],W=x[A++],Y=x[A++],$=x[A++],X=x[A++],q=!x[A++],Z=H>W?H:W,K=b(H-W)>.001,Q=Y+$,J=!1;if(C)E+(rt=f[T++])>d&&(Q=Y+$*(d-E)/rt,J=!0),E+=rt;if(K&&t.ellipse?t.ellipse(U,G,H,W,X,Y,Q,q):t.arc(U,G,Z,Y,Q,q),J)break t;I&&(n=m(Y)*H+U,r=y(Y)*W+G),i=m(Q)*H+U,o=y(Q)*W+G;break;case u.R:n=i=x[A],r=o=x[A+1],a=x[A++],h=x[A++];var tt=x[A++],et=x[A++];if(C){if(E+(rt=f[T++])>d){var nt=d-E;t.moveTo(a,h),t.lineTo(a+g(nt,tt),h),(nt-=tt)>0&&t.lineTo(a+tt,h+g(nt,et)),(nt-=et)>0&&t.lineTo(a+v(tt-nt,0),h+et),(nt-=tt)>0&&t.lineTo(a,h+v(et-nt,0));break t}E+=rt}t.rect(a,h,tt,et);break;case u.Z:if(C){var rt;if(E+(rt=f[T++])>d){L=(d-E)/rt;t.lineTo(i*(1-L)+n*L,o*(1-L)+r*L);break t}E+=rt}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=u,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();e.default=E},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function s(t,e,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||t,o),u=i?i+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function u(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),l.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)r.call(t,e)&&n.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},l.prototype.listeners=function(t){var e=i?i+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r=0){var i=n.getData().tree.root,o=t.targetNode;if(r.isString(o)&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var a=t.targetNodeId;if(null!=a&&(o=i.getNodeById(a)))return{node:o}}}function o(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function a(t,e){var n=o(t);return r.indexOf(n,e)>=0}function s(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_ANIMATE_CFG",(function(){return s})),n.d(e,"getDefaultAnimateCfg",(function(){return c})),n.d(e,"doAnimate",(function(){return h})),n.d(e,"doGroupAppearAnimate",(function(){return f}));var r=n(2),i=n(1),o=n(8),a=n(466),s={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},u={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},l={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function c(t,e,n){var r=u[t];return r&&(Object(i.isFunction)(r)&&(r=r(e)),r=Object(i.deepMix)({},s,r),n)?r[n]:r}function h(t,e,n){var r=Object(i.get)(t.get("origin"),"data",o.FIELD_ORIGIN),s=e.animation,u=function(t,e){return{delay:Object(i.isFunction)(t.delay)?t.delay(e):t.delay,easing:Object(i.isFunction)(t.easing)?t.easing(e):t.easing,duration:Object(i.isFunction)(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}(e,r);if(s){var l=Object(a.getAnimation)(s);l&&l(t,u,n)}else t.animate(n.toAttrs,u)}function f(t,e,n,o,u){if(l[n]){var c=l[n](o),h=Object(a.getAnimation)(Object(i.get)(c,"animation",""));if(h){var f=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},s.appear),c),e);t.stopAnimate(),h(t,f,{coordinate:o,minYPoint:u,toAttrs:null})}}}},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"InteractionEvent",(function(){return r})),function(t){t.Hover="hover",t.Click="click",t.Select="select",t.Active="active",t.Drag="drag"}(r||(r={}))},function(t,e,n){"use strict";n.r(e),n.d(e,"LineShape",(function(){return s}));var r=n(61),i=n(38),o=n(388),a={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},u=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,r,i,s;if(this.subPixelOptimize){var u=Object(o.subPixelOptimizeLine)(a,e,this.style);n=u.x1,r=u.y1,i=u.x2,s=u.y2}else n=e.x1,r=e.y1,i=e.x2,s=e.y2;var l=e.percent;0!==l&&(t.moveTo(n,r),l<1&&(i=n*(1-l)+i*l,s=r*(1-l)+s*l),t.lineTo(i,s))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(i.default);u.prototype.type="line",e.default=u},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"RANGE_VALUE",(function(){return i})),n.d(e,"RANGE_TYPE",(function(){return o})),n.d(e,"PERCENT",(function(){return a})),n.d(e,"DEFAULT_COLOR",(function(){return s})),n.d(e,"INDICATEOR_VIEW_ID",(function(){return u})),n.d(e,"RANGE_VIEW_ID",(function(){return l})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var i="range",o="type",a="percent",s="#f0f0f0",u="indicator-view",l="range-view",c={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(r={},r[i]={sync:"v"},r[a]={sync:"v",tickCount:5,tickInterval:.2},r),animation:!1}},function(t,e,n){"use strict";n.r(e),n.d(e,"parentNode",(function(){return s})),n.d(e,"style",(function(){return u})),n.d(e,"clientRegion",(function(){return l})),n.d(e,"offsetRegion",(function(){return c})),n.d(e,"scrollRegion",(function(){return h})),n.d(e,"classList",(function(){return f}));var r=n(440),i=r.screen.availWidth,o=r.screen.availHeight,a={style:[]};function s(t,e){var n,r;"parentNode"in t||(n=0===e?function(){return null}:1===e?function(){return a}:function(){return null},Object.defineProperty(t,"parentNode",{enumerable:!0,get:n}));"parentElement"in t||(r=0===e?function(){return null}:1===e?function(){return a}:function(){return null},Object.defineProperty(t,"parentElement",{enumerable:!0,get:r}))}function u(t){t.style=t.style||{},Object.assign(t.style,{top:"0px",left:"0px",width:i+"px",height:o+"px",margin:"0px",padding:"0px"})}function l(t){"clientLeft"in t||(t.clientLeft=0,t.clientTop=0),"clientWidth"in t||(t.clientWidth=i,t.clientHeight=o),"getBoundingClientRect"in t||(t.getBoundingClientRect=function(){return{x:0,y:0,top:0,left:0,width:this.clientWidth,height:this.clientHeight,right:this.clientWidth,bottom:this.clientHeight}})}function c(t){"offsetLeft"in t||(t.offsetLeft=0,t.offsetTop=0),"offsetWidth"in t||(t.offsetWidth=i,t.offsetHeight=o)}function h(t){"scrollLeft"in t||(t.scrollLeft=0,t.scrollTop=0),"scrollWidth"in t||(t.scrollWidth=i,t.scrollHeight=o)}function f(t){var e=function(){return!0};t.classList=[],t.classList.add=e,t.classList.remove=e,t.classList.contains=e,t.classList.toggle=e}},function(t,e,n){"use strict";function r(t){return document.createTextNode(t)}function i(t){return document.createComment(t)}function o(t,e,n){t.insertBefore(e,n)}function a(t,e){t.removeChild(e)}function s(t,e){t.appendChild(e)}function u(t){return t.parentNode}function l(t){return t.nextSibling}function c(t){return t.tagName}function h(t,e){t.textContent=e}function f(t){return t.textContent}function d(t){return 1===t.nodeType}function p(t){return 3===t.nodeType}function g(t){return 8===t.nodeType}n.r(e),n.d(e,"createTextNode",(function(){return r})),n.d(e,"createComment",(function(){return i})),n.d(e,"insertBefore",(function(){return o})),n.d(e,"removeChild",(function(){return a})),n.d(e,"appendChild",(function(){return s})),n.d(e,"parentNode",(function(){return u})),n.d(e,"nextSibling",(function(){return l})),n.d(e,"tagName",(function(){return c})),n.d(e,"setTextContent",(function(){return h})),n.d(e,"getTextContent",(function(){return f})),n.d(e,"isElement",(function(){return d})),n.d(e,"isText",(function(){return p})),n.d(e,"isComment",(function(){return g}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return b}));var r,i,o,a,s,u=n(30),l=n(62),c=n(11),h=n(12),f=n(6),d=n(60),p=(n(233),n(21)),g=n(67),v=(n(85),n(89)),m=n(31),y=n(213),b=(r=Object(p.injectable)(),i=Object(p.inject)(m.TYPES.IShaderModuleService),r((a=function(){function t(){Object(c.default)(this,t),Object(l.default)(this,"shaderModuleService",s,this),Object(f.default)(this,"rendererService",void 0),Object(f.default)(this,"config",void 0),Object(f.default)(this,"quad","attribute vec2 a_Position;\n\nvarying vec2 v_UV;\n\nvoid main() {\n v_UV = 0.5 * (a_Position + 1.0);\n gl_Position = vec4(a_Position, 0., 1.);\n}"),Object(f.default)(this,"enabled",!0),Object(f.default)(this,"renderToScreen",!1),Object(f.default)(this,"model",void 0),Object(f.default)(this,"name",void 0),Object(f.default)(this,"optionsToUpdate",{})}return Object(h.default)(t,[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(t){this.name=t}},{key:"getType",value:function(){return y.PassType.PostProcessing}},{key:"init",value:function(t,e){this.config=e,this.rendererService=t.getContainer().get(m.TYPES.IRendererService),this.shaderModuleService=t.getContainer().get(m.TYPES.IShaderModuleService);var n=this.rendererService,r=n.createAttribute,i=n.createBuffer,o=n.createModel,a=this.setupShaders(),s=a.vs,l=a.fs,c=a.uniforms;this.model=o({vs:s,fs:l,attributes:{a_Position:r({buffer:i({data:[-4,-4,4,-4,0,4],type:v.gl.FLOAT}),size:2})},uniforms:Object(u.default)(Object(u.default)({u_Texture:null},c),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:"copy"===this.getName()}})}},{key:"render",value:function(t,e){var n=this,r=t.multiPassRenderer.getPostProcessor(),i=this.rendererService,o=i.useFramebuffer,a=i.getViewportSize,s=i.clear,l=a(),c=l.width,h=l.height;o(this.renderToScreen?null:r.getWriteFBO(),(function(){s({framebuffer:r.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var t=Object(u.default)({u_BloomFinal:0,u_Texture:r.getReadFBO(),u_ViewportSize:[c,h]},n.convertOptionsToUniforms(n.optionsToUpdate));e&&(t.u_BloomFinal=1,t.u_Texture2=e),n.model.draw({uniforms:t})}))}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(t){this.enabled=t}},{key:"setRenderToScreen",value:function(t){this.renderToScreen=t}},{key:"updateOptions",value:function(t){this.optionsToUpdate=Object(u.default)(Object(u.default)({},this.optionsToUpdate),t)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(t){var e={};return Object.keys(t).forEach((function(n){Object(g.isNil)(t[n])||(e["u_".concat(Object(g.upperFirst)(Object(g.camelCase)(n)))]=t[n])})),e}}]),t}(),s=Object(d.default)(a.prototype,"shaderModuleService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=a))||o)},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(118),o=n(251),a=n(347),s=n(10),u=n(287),l=n(1416),c=n(148),h=n(141),f=n(147),d=n(32);e.default=function(t,e,n){n=n||{};var p,g=e.getSourceManager(),v=!1;t?(v=!0,p=Object(c.createSourceFromSeriesDataOption)(t)):v=(p=g.getSource()).sourceFormat===d.SOURCE_FORMAT_ORIGINAL;var m=Object(l.getCoordSysInfoBySeries)(e),y=function(t,e){var n,i=t.get("coordinateSystem"),o=u.default.get(i);return e&&e.coordSysDims&&(n=r.map(e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=Object(a.getDimensionTypeByAxis)(i)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}(e,m),b=n.useEncodeDefaulter,_=r.isFunction(b)?b:b?r.curry(f.makeSeriesEncodeForAxisCoordSys,y,e):null,x={coordDimensions:y,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:_,canOmitUnusedDimensions:!v},O=Object(o.default)(p,x),w=function(t,e,n){var i,o;return n&&r.each(t,(function(t,r){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=r),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(o=!0)})),o||null==i||(t[i].otherDims.itemName=0),i}(O.dimensions,n.createInvertedIndices,m),S=v?null:g.getSharedDataStore(O),C=Object(h.enableDataStack)(e,{schema:O,store:S}),E=new i.default(O,e);E.setCalculationInfo(C);var T=null!=w&&function(t){if(t.sourceFormat===d.SOURCE_FORMAT_ORIGINAL){var e=function(t){var e=0;for(;e=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Object(i.getPixelPrecision)(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&u(n=n.slice(),r.count()),Object(i.linearMap)(t,a,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&u(n=n.slice(),r.count());var o=Object(i.linearMap)(t,n,a,e);return this.scale.scale(o)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=Object(o.createAxisTicks)(this,e).ticks,a=Object(r.map)(n,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,o){var a=e.length;if(!t.onBand||n||!a)return;var s,u,l=t.getExtent();if(1===a)e[0].coord=l[0],s=e[1]={coord:l[0]};else{var c=e[a-1].tickValue-e[0].tickValue,h=(e[a-1].coord-e[0].coord)/c;Object(r.each)(e,(function(t){t.coord-=h/2}));var f=t.scale.getExtent();u=1+f[1]-e[a-1].tickValue,s={coord:e[a-1].coord+h*u},e.push(s)}var d=l[0]>l[1];p(e[0].coord,l[0])&&(o?e[0].coord=l[0]:e.shift());o&&p(l[0],e[0].coord)&&e.unshift({coord:l[0]});p(l[1],s.coord)&&(o?s.coord=l[1]:e.pop());o&&p(s.coord,l[1])&&e.push({coord:l[1]});function p(t,e){return t=Object(i.round)(t),e=Object(i.round)(e),d?t>e:t0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return Object(r.map)(e,(function(t){return Object(r.map)(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return Object(o.createAxisLabels)(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return Object(o.calculateCategoryInterval)(this)},t}();function u(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"parseDataValue",(function(){return a})),n.d(e,"getRawValueParser",(function(){return u})),n.d(e,"SortOrderComparator",(function(){return h})),n.d(e,"createFilterComparator",(function(){return d}));var r=n(5),i=n(0),o=n(39);function a(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(i.isNumber)(t)||null==t||"-"===t||(t=+Object(r.parseDate)(t)),null==t||""===t?NaN:+t)}var s=Object(i.createHashMap)({number:function(t){return parseFloat(t)},time:function(t){return+Object(r.parseDate)(t)},trim:function(t){return Object(i.isString)(t)?Object(i.trim)(t):t}});function u(t){return s.get(t)}var l={lt:function(t,e){return te},gte:function(t,e){return t>=e}},c=function(){function t(t,e){if(!Object(i.isNumber)(e)){0,Object(o.throwError)("")}this._opFn=l[t],this._rvalFloat=Object(r.numericToNumber)(e)}return t.prototype.evaluate=function(t){return Object(i.isNumber)(t)?this._opFn(t,this._rvalFloat):this._opFn(Object(r.numericToNumber)(t),this._rvalFloat)},t}(),h=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(i.isNumber)(t)?t:Object(r.numericToNumber)(t),o=Object(i.isNumber)(e)?e:Object(r.numericToNumber)(e),a=isNaN(n),s=isNaN(o);if(a&&(n=this._incomparable),s&&(o=this._incomparable),a&&s){var u=Object(i.isString)(t),l=Object(i.isString)(e);u&&(n=l?t:0),l&&(o=u?e:0)}return no?-this._resultLT:0},t}(),f=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Object(r.numericToNumber)(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Object(r.numericToNumber)(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function d(t,e){return"eq"===t||"ne"===t?new f("eq"===t,e):Object(i.hasOwn)(l,t)?new c(t,e):null}},function(t,e,n){"use strict";n.r(e),n.d(e,"debugMode",(function(){return i})),n.d(e,"devicePixelRatio",(function(){return o})),n.d(e,"DARK_MODE_THRESHOLD",(function(){return a})),n.d(e,"DARK_LABEL_COLOR",(function(){return s})),n.d(e,"LIGHT_LABEL_COLOR",(function(){return u})),n.d(e,"LIGHTER_LABEL_COLOR",(function(){return l}));var r=1;n(49).default.hasGlobalWindow&&(r=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var i=0,o=r,a=.4,s="#333",u="#ccc",l="#eee"},function(t,e,n){"use strict";function r(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{r=void 0===r?n:r}return r}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";var r,i;n.r(e),n.d(e,"UpdateTileStrategy",(function(){return r})),n.d(e,"LoadTileDataStatus",(function(){return i})),function(t){t.Realtime="realtime",t.Overlap="overlap",t.Replace="replace"}(r||(r={})),function(t){t.Loading="Loading",t.Loaded="Loaded",t.Failure="Failure",t.Cancelled="Cancelled"}(i||(i={}))},function(t,e,n){"use strict";n.r(e),n.d(e,"buildElStyle",(function(){return h})),n.d(e,"buildLabelElOption",(function(){return f})),n.d(e,"getValueLabel",(function(){return d})),n.d(e,"getTransformedPosition",(function(){return p})),n.d(e,"buildCartesianSingleLabelElOption",(function(){return g})),n.d(e,"makeLineShape",(function(){return v})),n.d(e,"makeRectShape",(function(){return m})),n.d(e,"makeSectorShape",(function(){return y}));var r=n(0),i=n(16),o=n(55),a=n(68),s=n(44),u=n(80),l=n(182),c=n(28);function h(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle()).fill=null:"shadow"===n&&((e=r.getAreaStyle()).stroke=null),e}function f(t,e,n,r,i){var s=d(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),u=n.getModel("label"),l=a.normalizeCssArray(u.get("padding")||0),h=u.getFont(),f=o.getBoundingRect(s,h),p=i.position,g=f.width+l[1]+l[3],v=f.height+l[0]+l[2],m=i.align;"right"===m&&(p[0]-=g),"center"===m&&(p[0]-=g/2);var y=i.verticalAlign;"bottom"===y&&(p[1]-=v),"middle"===y&&(p[1]-=v/2),function(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(p,g,v,r);var b=u.get("backgroundColor");b&&"auto"!==b||(b=e.get(["axisLine","lineStyle","color"])),t.label={x:p[0],y:p[1],style:Object(c.createTextStyle)(u,{text:s,font:h,fill:u.getTextColor(),padding:l,backgroundColor:b}),z2:10}}function d(t,e,n,i,o){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:o.precision}),s=o.formatter;if(s){var l={value:u.getAxisRawValue(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};r.each(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&l.seriesData.push(i)})),r.isString(s)?a=s.replace("{value}",a):r.isFunction(s)&&(a=s(l))}return a}function p(t,e,n){var r=s.create();return s.rotate(r,r,n.rotation),s.translate(r,r,n.position),i.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function g(t,e,n,r,i,o){var a=l.default.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),f(e,r,i,o,{position:p(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function v(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function m(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function y(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}},function(t,e,n){"use strict";n.r(e);var r=n(139);e.default=function(t){return Object(r.default)(t,"String")}},function(t,e,n){"use strict";n.r(e),n.d(e,"inferScaleType",(function(){return l})),n.d(e,"createScaleByField",(function(){return c})),n.d(e,"syncScale",(function(){return h})),n.d(e,"getName",(function(){return f})),n.d(e,"getDefaultCategoryScaleRange",(function(){return d})),n.d(e,"getMaxScale",(function(){return p}));var r=n(2),i=n(1),o=n(8),a=n(91),s=n(92),u=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function l(t,e,n,r){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&o.GROUP_ATTRS.includes(n)&&["interval"].includes(r)||t.isCategory?"cat":t.type}function c(t,e,n){var o=e||[];if(Object(i.isNumber)(t)||Object(i.isNil)(Object(i.firstValue)(o,t))&&Object(i.isEmpty)(n))return new(Object(a.getScale)("identity"))({field:t.toString(),values:[t]});var s=Object(i.valuesOfKey)(o,t),l=Object(i.get)(n,"type",function(t){var e="linear";return u.test(t)?e="timeCat":Object(i.isString)(t)&&(e="cat"),e}(s[0]));return new(Object(a.getScale)(l))(Object(r.__assign)({field:t,values:s},n))}function h(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}}function f(t){return t.alias||t.field}function d(t,e,n){var r,o=t.values.length;if(1===o)r=[.5,1];else{var a=0;r=Object(s.isFullCircle)(e)?e.isTransposed?[(a=1/o*Object(i.get)(n,"widthRatio.multiplePie",1/1.3))/2,1-a/2]:[0,1-1/o]:[a=1/o/2,1-a]}return r}function p(t){var e=t.values.filter((function(t){return!Object(i.isNil)(t)&&!isNaN(t)}));return Math.max.apply(Math,Object(r.__spreadArray)(Object(r.__spreadArray)([],Object(r.__read)(e),!1),[Object(i.isNil)(t.max)?-1/0:t.max],!1))}},function(t,e,n){"use strict";n.r(e),n.d(e,"DATA_ZOOM_AXIS_DIMENSIONS",(function(){return i})),n.d(e,"isCoordSupported",(function(){return a})),n.d(e,"getAxisMainType",(function(){return s})),n.d(e,"getAxisIndexPropName",(function(){return u})),n.d(e,"getAxisIdPropName",(function(){return l})),n.d(e,"findEffectedDataZooms",(function(){return c})),n.d(e,"collectReferCoordSysModelInfo",(function(){return h}));var r=n(0),i=["x","y","radius","angle","single"],o=["cartesian2d","polar","singleAxis"];function a(t){var e=t.get("coordinateSystem");return Object(r.indexOf)(o,e)>=0}function s(t){return t+"Axis"}function u(t){return t+"AxisIndex"}function l(t){return t+"AxisId"}function c(t,e){var n,i=Object(r.createHashMap)(),o=[],a=Object(r.createHashMap)();t.eachComponent({mainType:"dataZoom",query:e},(function(t){a.get(t.uid)||u(t)}));do{n=!1,t.eachComponent("dataZoom",s)}while(n);function s(t){!a.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}(t)&&(u(t),n=!0)}function u(t){a.set(t.uid,!0),o.push(t),t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return o}function h(t){var e=t.ecModel,n={infoList:[],infoMap:Object(r.createHashMap)()};return t.eachTargetAxis((function(t,r){var i=e.getComponent(s(t),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,u=n.infoMap.get(a);u||(u={model:o,axisModels:[]},n.infoList.push(u),n.infoMap.set(a,u)),u.axisModels.push(i)}}})),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"fromValues",(function(){return a})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return u})),n.d(e,"add",(function(){return l})),n.d(e,"subtract",(function(){return c})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return f})),n.d(e,"ceil",(function(){return d})),n.d(e,"floor",(function(){return p})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return v})),n.d(e,"round",(function(){return m})),n.d(e,"scale",(function(){return y})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return _})),n.d(e,"squaredDistance",(function(){return x})),n.d(e,"length",(function(){return O})),n.d(e,"squaredLength",(function(){return w})),n.d(e,"negate",(function(){return S})),n.d(e,"inverse",(function(){return C})),n.d(e,"normalize",(function(){return E})),n.d(e,"dot",(function(){return T})),n.d(e,"cross",(function(){return M})),n.d(e,"lerp",(function(){return A})),n.d(e,"random",(function(){return j})),n.d(e,"transformMat4",(function(){return I})),n.d(e,"transformQuat",(function(){return k})),n.d(e,"zero",(function(){return P})),n.d(e,"str",(function(){return L})),n.d(e,"exactEquals",(function(){return D})),n.d(e,"equals",(function(){return R})),n.d(e,"sub",(function(){return F})),n.d(e,"mul",(function(){return B})),n.d(e,"div",(function(){return z})),n.d(e,"dist",(function(){return V})),n.d(e,"sqrDist",(function(){return U})),n.d(e,"len",(function(){return G})),n.d(e,"sqrLen",(function(){return H})),n.d(e,"forEach",(function(){return W}));var r=n(22);function i(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function o(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function a(t,e,n,i){var o=new r.ARRAY_TYPE(4);return o[0]=t,o[1]=e,o[2]=n,o[3]=i,o}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function u(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t}function p(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function b(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t}function _(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return Math.hypot(n,r,i,o)}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return n*n+r*r+i*i+o*o}function O(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function w(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function S(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}function C(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}function E(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o;return a>0&&(a=1/Math.sqrt(a)),t[0]=n*a,t[1]=r*a,t[2]=i*a,t[3]=o*a,t}function T(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function M(t,e,n,r){var i=n[0]*r[1]-n[1]*r[0],o=n[0]*r[2]-n[2]*r[0],a=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],u=n[1]*r[3]-n[3]*r[1],l=n[2]*r[3]-n[3]*r[2],c=e[0],h=e[1],f=e[2],d=e[3];return t[0]=h*l-f*u+d*s,t[1]=-c*l+f*a-d*o,t[2]=c*u-h*a+d*i,t[3]=-c*s+h*o-f*i,t}function A(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t[3]=s+r*(n[3]-s),t}function j(t,e){var n,i,o,a,s,u;e=e||1;do{s=(n=2*r.RANDOM()-1)*n+(i=2*r.RANDOM()-1)*i}while(s>=1);do{u=(o=2*r.RANDOM()-1)*o+(a=2*r.RANDOM()-1)*a}while(u>=1);var l=Math.sqrt((1-s)/u);return t[0]=e*n,t[1]=e*i,t[2]=e*o*l,t[3]=e*a*l,t}function I(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,t}function k(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2],l=n[3],c=l*r+s*o-u*i,h=l*i+u*r-a*o,f=l*o+a*i-s*r,d=-a*r-s*i-u*o;return t[0]=c*l+d*-a+h*-u-f*-s,t[1]=h*l+d*-s+f*-a-c*-u,t[2]=f*l+d*-u+c*-s-h*-a,t[3]=e[3],t}function P(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}function L(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function D(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function R(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=e[0],u=e[1],l=e[2],c=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(a-c)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(c))}var N,F=c,B=h,z=f,V=_,U=x,G=O,H=w,W=(N=i(),function(t,e,n,r,i,o){var a,s;for(e||(e=4),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if(Object(a.isNil)(e)||Object(a.isObject)(e))Object(a.isObject)(e)&&Object(a.isEqual)(Object.keys(e),["values"])?Object(a.set)(this.attributeOption,t,{fields:e.values}):Object(a.set)(this.attributeOption,t,e);else{var r={};Object(a.isNumber)(e)?r.values=[e]:r.fields=Object(v.parseFields)(e),n&&(Object(a.isFunction)(n)?r.callback=n:r.values=n),Object(a.set)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,i=this.theme,s=this.shapeType;this.groupScales=[];var u={},c=function(c){if(n.hasOwnProperty(c)){var h=n[c];if(!h)return{value:void 0};var f=Object(r.__assign)({},h),d=f.callback,p=f.values,g=f.fields,v=(void 0===g?[]:g).map((function(e){var n=t.scales[e];!u[e]&&l.GROUP_ATTRS.includes(c)&&("cat"===Object(y.inferScaleType)(n,Object(a.get)(t.scaleDefs,e),c,t.type)&&(t.groupScales.push(n),u[e]=!0));return n}));f.scales=v,"position"!==c&&1===v.length&&"identity"===v[0].type?f.values=v[0].values:d||p||("size"===c?f.values=i.sizes:"shape"===c?f.values=i.shapes[s]||[]:"color"===c&&(v.length?f.values=v[0].values.length<=10?i.colors10:i.colors20:f.values=i.colors10));var m=Object(o.getAttribute)(c);e[c]=new m(f)}};for(var h in n){var f=c(h);if("object"==typeof f)return f.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var i=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),o=this.groupData(t),a=[],s=0,u=o.length;so&&(o=c)}var h=this.scaleDefs,f={};it.max&&!Object(a.get)(h,[r,"max"])&&(f.max=o),t.change(f)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n1)for(var f=0;f=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}},function(t,e,n){"use strict";n.r(e),n.d(e,"getFactTitleConfig",(function(){return i})),n.d(e,"getAnglePoint",(function(){return o}));var r=n(8);function i(t){return[r.DIRECTION.TOP,r.DIRECTION.BOTTOM].includes(t)?{offsetX:0,offsetY:t===r.DIRECTION.TOP?-8:8,style:{textAlign:"center",textBaseline:t===r.DIRECTION.TOP?"bottom":"top"}}:[r.DIRECTION.LEFT,r.DIRECTION.RIGHT].includes(t)?{offsetX:t===r.DIRECTION.LEFT?-8:8,offsetY:0,style:{textAlign:t===r.DIRECTION.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function o(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"PolygonShape",(function(){return a}));var r=n(61),i=n(38),o=n(737),a=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.buildPath(t,e,!0)},e}(i.default);s.prototype.type="polygon",e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"X_FIELD",(function(){return o})),n.d(e,"Y_FIELD",(function(){return a})),n.d(e,"DEFAULT_TOOLTIP_OPTIONS",(function(){return s})),n.d(e,"DEFAULT_OPTIONS",(function(){return u}));var r=n(2),i=n(1),o="x",a="y",s={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return"".concat(Object(i.get)(e,[0,"data","y"],0))},containerTpl:'
',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},u={appendPadding:2,tooltip:Object(r.__assign)({},s),animation:{}}},function(t,e,n){"use strict";n.r(e),n.d(e,"dataTransform",(function(){return c})),n.d(e,"getAxisInfo",(function(){return h})),n.d(e,"dataFilter",(function(){return f})),n.d(e,"zoneFilter",(function(){return d})),n.d(e,"createMarkerDimValueGetter",(function(){return p})),n.d(e,"numCalculate",(function(){return g}));var r=n(5),i=n(141),o=n(0),a=n(159);function s(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function u(t,e,n,o,a,s){var u=[],l=Object(i.isDimensionStacked)(e,o)?e.getCalculationInfo("stackResultDimension"):o,c=g(e,l,t),h=e.indicesOfNearest(l,c)[0];u[a]=e.get(n,h),u[s]=e.get(l,h);var f=e.get(o,h),d=r.getPrecision(e.get(o,h));return(d=Math.min(d,20))>=0&&(u[s]=+u[s].toFixed(d)),[u,f]}var l={min:Object(o.curry)(u,"min"),max:Object(o.curry)(u,"max"),average:Object(o.curry)(u,"average"),median:Object(o.curry)(u,"median")};function c(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,i=r&&r.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!Object(o.isArray)(e.coord)&&Object(o.isArray)(i)){var a=h(e,n,r,t);if((e=Object(o.clone)(e)).type&&l[e.type]&&a.baseAxis&&a.valueAxis){var s=Object(o.indexOf)(i,a.baseAxis.dim),u=Object(o.indexOf)(i,a.valueAxis.dim),c=l[e.type](n,a.baseDataDim,a.valueDataDim,s,u);e.coord=c[0],e.value=c[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Object(o.isArray)(i))for(var f=e.coord,d=0;d<2;d++)l[f[d]]&&(f[d]=g(n,n.mapDimension(i[d]),f[d]));else e.coord=[];return e}}function h(t,e,n,r){var i={};return null!=t.valueIndex||null!=t.valueDim?(i.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function f(t,e){return!(t&&t.containData&&e.coord&&!s(e))||t.containData(e.coord)}function d(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!s(e)&&!s(n))||t.containZone(e.coord,n.coord)}function p(t,e){return t?function(t,n,r,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Object(a.parseDataValue)(o,e[i])}:function(t,n,r,i){return Object(a.parseDataValue)(t.value,e[i])}}function g(t,e,n){if("average"===n){var r=0,i=0;return t.each(e,(function(t,e){isNaN(t)||(r+=t,i++)})),r/i}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}},function(t,e,n){"use strict";n.r(e),n.d(e,"intersectionArea",(function(){return r})),n.d(e,"containedInCircles",(function(){return i})),n.d(e,"circleArea",(function(){return o})),n.d(e,"distance",(function(){return a})),n.d(e,"circleOverlap",(function(){return s})),n.d(e,"circleCircleIntersection",(function(){return u})),n.d(e,"getCenter",(function(){return l}));function r(t,e){var n,r=function(t){for(var e=[],n=0;n1){var d=l(s);for(n=0;n-1){var _=t[v.parentIndex[b]],x=Math.atan2(v.x-_.x,v.y-_.y),O=Math.atan2(g.x-_.x,g.y-_.y),w=O-x;w<0&&(w+=2*Math.PI);var S=O-w/2,C=a(m,{x:_.x+_.radius*Math.sin(S),y:_.y+_.radius*Math.cos(S)});C>2*_.radius&&(C=2*_.radius),(null===y||y.width>C)&&(y={circle:_,width:C,p1:v,p2:g})}null!==y&&(f.push(y),c+=o(y.circle.radius,y.width),g=v)}}else{var E=t[0];for(n=1;nMath.abs(E.radius-t[n].radius)){T=!0;break}T?c=h=0:(c=E.radius*E.radius*Math.PI,f.push({circle:E,p1:{x:E.x,y:E.y+E.radius},p2:{x:E.x-1e-10,y:E.y+E.radius},width:2*E.radius}))}return h/=2,e&&(e.area=c+h,e.arcArea=c,e.polygonArea=h,e.arcs=f,e.innerPoints=s,e.intersectionPoints=r),c+h}function i(t,e){for(var n=0;ne[n].radius+1e-10)return!1;return!0}function o(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function a(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function s(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=e-(n*n-t*t+e*e)/(2*n);return o(t,t-(n*n-e*e+t*t)/(2*n))+o(e,r)}function u(t,e){var n=a(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var o=(r*r-i*i+n*n)/(2*n),s=Math.sqrt(r*r-o*o),u=t.x+o*(e.x-t.x)/n,l=t.y+o*(e.y-t.y)/n,c=-(e.y-t.y)*(s/n),h=-(e.x-t.x)*(s/n);return[{x:u+c,y:l-h},{x:u-c,y:l+h}]}function l(t){for(var e={x:0,y:0},n=0;n1){var c=u.shift();1===u.length&&(n[s]=u[0]),this._update&&this._update(c,a)}else 1===l?(n[s]=null,this._update&&this._update(u,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var s=0;s1&&1===f)this._updateManyToOne&&this._updateManyToOne(c,l),i[u]=null;else if(1===h&&f>1)this._updateOneToMany&&this._updateOneToMany(c,l),i[u]=null;else if(1===h&&1===f)this._update&&this._update(c,l),i[u]=null;else if(h>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,l),i[u]=null;else if(h>1)for(var d=0;d1)for(var s=0;s0?"top":"bottom",r="center"):Object(h.isRadianAroundZero)(o-m)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),b={axisLine:function(t,e,n,i){var s=e.get(["axisLine","show"]);if("auto"===s&&t.handleAutoShown&&(s=t.handleAutoShown("axisLine")),s){var u=e.axis.getExtent(),l=i.transform,c=[u[0],0],h=[u[1],0],d=c[0]>h[0];l&&(Object(p.applyTransform)(c,c,l),Object(p.applyTransform)(h,h,l));var g=Object(r.extend)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),v=new o.default({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:g,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});a.subPixelOptimizeLine(v.shape,v.style.lineWidth),v.anid="line",n.add(v);var m=e.get(["axisLine","symbol"]);if(null!=m){var y=e.get(["axisLine","symbolSize"]);Object(r.isString)(m)&&(m=[m,m]),(Object(r.isString)(y)||Object(r.isNumber)(y))&&(y=[y,y]);var b=Object(f.normalizeSymbolOffset)(e.get(["axisLine","symbolOffset"])||0,y),_=y[0],x=y[1];Object(r.each)([{rotate:t.rotation+Math.PI/2,offset:b[0],r:0},{rotate:t.rotation-Math.PI/2,offset:b[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],(function(e,r){if("none"!==m[r]&&null!=m[r]){var i=Object(f.createSymbol)(m[r],-_/2,-x/2,_,x,g.stroke,!0),o=e.r+e.offset,a=d?h:c;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,i){var o=function(t,e,n,i){var o=n.axis,a=n.getModel("axisTick"),s=a.get("show");"auto"===s&&i.handleAutoShown&&(s=i.handleAutoShown("axisTick"));if(!s||o.scale.isBlank())return;for(var u=a.getModel("lineStyle"),l=i.tickDirection*a.get("length"),c=w(o.getTicksCoords(),e.transform,l,Object(r.defaults)(u.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;hb[1]?-1:1,x=["start"===d?b[0]-_*v:"end"===d?b[1]+_*v:(b[0]+b[1])/2,O(d)?t.labelOffset+p*v:0],w=e.get("nameRotate");null!=w&&(w=w*m/180),O(d)?c=y.innerTextLayout(t.rotation,null!=w?w:t.rotation,p):(c=function(t,e,n,r){var i,o,a=Object(h.remRadian)(n-t),s=r[0]>r[1],u="start"===e&&!s||"start"!==e&&s;Object(h.isRadianAroundZero)(a-m/2)?(o=u?"bottom":"top",i="center"):Object(h.isRadianAroundZero)(a-1.5*m)?(o=u?"top":"bottom",i="center"):(o="middle",i=a<1.5*m&&a>m/2?u?"left":"right":u?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,d,w||0,b),null!=(f=t.axisNameAvailableWidth)&&(f=Math.abs(f/Math.sin(c.rotation)),!isFinite(f)&&(f=null)));var S=g.getFont(),C=e.get("nameTruncate",!0)||{},E=C.ellipsis,T=Object(r.retrieve)(t.nameTruncateMaxWidth,C.maxWidth,f),M=new s.default({x:x[0],y:x[1],rotation:c.rotation,silent:y.isLabelSilent(e),style:Object(l.createTextStyle)(g,{text:o,font:S,overflow:"truncate",width:T,ellipsis:E,fill:g.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:g.get("align")||c.textAlign,verticalAlign:g.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(a.setTooltipConfig({el:M,componentModel:e,itemName:o}),M.__fullText=o,M.anid="name",e.get("triggerEvent")){var A=y.makeAxisEventDataBase(e);A.targetType="axisName",A.name=o,Object(u.getECData)(M).eventData=A}i.add(M),M.updateTransform(),n.add(M),M.decomposeTransform()}}};function _(t){t&&(t.ignore=!0)}function x(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=d.identity([]);return d.rotate(i,i,-t.rotation),n.applyTransform(d.mul([],i,t.getLocalTransform())),r.applyTransform(d.mul([],i,e.getLocalTransform())),n.intersect(r)}}function O(t){return"middle"===t||"center"===t}function w(t,e,n,r,i){for(var s=[],u=[],l=[],c=0;cl&&(l=d)}s[0]=u,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e=s[c]?1:0,d=h>Math.PI?1:0,p=n.convert(u),g=Object(a.getDistanceToCenter)(n,p);if(g>=.5)if(h===2*Math.PI){var v={x:(u.x+s.x)/2,y:(u.y+s.y)/2},m=n.convert(v);l.push(["A",g,g,0,d,f,m.x,m.y]),l.push(["A",g,g,0,d,f,p.x,p.y])}else l.push(["A",g,g,0,d,f,p.x,p.y]);return l}(n,r,t)):l.push(s(o,t));break;case"a":l.push(u(o,t));break;case"z":default:l.push(o)}})),function(t){Object(o.each)(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(l),l}},function(t,e,n){"use strict";n.r(e),n.d(e,"findLabelTextShape",(function(){return o})),n.d(e,"getLabelBackgroundInfo",(function(){return a})),n.d(e,"getOverlapArea",(function(){return s})),n.d(e,"checkShapeOverlap",(function(){return u}));var r=n(1),i=n(195);function o(t){return t.find((function(t){return"text"===t.get("type")}))}function a(t,e,n){void 0===n&&(n=[0,0,0,0]);var o=t&&t.getChildren()[0];if(o){var a=o.clone();(null==e?void 0:e.rotate)&&Object(i.rotate)(a,-e.rotate);var s=a.getCanvasBBox(),u=s.x,l=s.y,c=s.width,h=s.height;a.destroy();var f=n;return Object(r.isNil)(f)?f=[2,2,2,2]:Object(r.isNumber)(f)&&(f=new Array(4).fill(f)),{x:u-f[3],y:l-f[0],width:c+f[1]+f[3],height:h+f[0]+f[2],rotation:(null==e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}}function s(t,e,n){return void 0===n&&(n=0),Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n))*Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n))}function u(t,e){var n=t.getBBox();return Object(r.some)(e,(function(t){var e=t.getBBox();return s(n,e,2)>0}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"SectorShape",(function(){return a}));var r=n(61),i=n(38),o=n(1408),a=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},s=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.buildPath(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(i.default);s.prototype.type="sector",e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"PolylineShape",(function(){return a}));var r=n(61),i=n(38),o=n(737),a=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.buildPath(t,e,!1)},e}(i.default);s.prototype.type="polyline",e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"getShortenOffset",(function(){return h})),n.d(e,"addStartArrow",(function(){return f})),n.d(e,"addEndArrow",(function(){return d}));var r=n(2),i=n(284),o=Math.sin,a=Math.cos,s=Math.atan2,u=Math.PI;function l(t,e,n,r,l,c,h){var f=e.stroke,d=e.lineWidth,p=s(r-c,n-l),g=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*a(u/6)+","+10*o(u/6)+" L0,0 L"+10*a(u/6)+",-"+10*o(u/6),stroke:f,lineWidth:d}});g.translate(l,c),g.rotateAtPoint(l,c,p),t.set(h?"startArrowShape":"endArrowShape",g)}function c(t,e,n,u,l,c,h){var f=e.startArrow,d=e.endArrow,p=e.stroke,g=e.lineWidth,v=h?f:d,m=v.d,y=v.fill,b=v.stroke,_=v.lineWidth,x=Object(r.__rest)(v,["d","fill","stroke","lineWidth"]),O=s(u-c,n-l);m&&(l-=a(O)*m,c-=o(O)*m);var w=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:Object(r.__assign)(Object(r.__assign)({},x),{stroke:b||p,lineWidth:_||g,fill:y})});w.translate(l,c),w.rotateAtPoint(l,c,O),t.set(h?"startArrowShape":"endArrowShape",w)}function h(t,e,n,r,i){var u=s(r-e,n-t);return{dx:a(u)*i,dy:o(u)*i}}function f(t,e,n,r,i,o){"object"==typeof e.startArrow?c(t,e,n,r,i,o,!0):e.startArrow?l(t,e,n,r,i,o,!0):t.set("startArrowShape",null)}function d(t,e,n,r,i,o){"object"==typeof e.endArrow?c(t,e,n,r,i,o,!1):e.endArrow?l(t,e,n,r,i,o,!1):t.set("startArrowShape",null)}},function(t,e,n){"use strict";n.r(e),n.d(e,"ID_FIELD",(function(){return r})),n.d(e,"PATH_FIELD",(function(){return i})),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r="id",i="path",o={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(t){return{name:t.id,value:t.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]}},function(t,e,n){"use strict";n.r(e),n.d(e,"Y_FIELD",(function(){return o})),n.d(e,"TREND_FIELD",(function(){return a})),n.d(e,"TREND_UP",(function(){return s})),n.d(e,"TREND_DOWN",(function(){return u})),n.d(e,"DEFAULT_TOOLTIP_OPTIONS",(function(){return l})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var r=n(29),i=n(3),o="$$stock-range$$",a="trend",s="up",u="down",l={showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(t,e,n){var r;if("x"===t){var i=n[0];r=i?i.title:e}else r=e;return{position:"y"===t?"start":"end",content:r,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}},c=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{tooltip:l,interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"})},function(t,e,n){"use strict";n.r(e),n.d(e,"X_FIELD",(function(){return r})),n.d(e,"Y_FIELD",(function(){return i})),n.d(e,"COLOR_FIELD",(function(){return o})),n.d(e,"NODES_VIEW_ID",(function(){return a})),n.d(e,"EDGES_VIEW_ID",(function(){return s}));var r="x",i="y",o="name",a="nodes",s="edges"},function(t,e,n){"use strict";n.r(e);e.default=function(t){return null==t}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(1960);function i(){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=Object(r.default)(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}},function(t,e,n){"use strict";function r(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function i(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function o(t,e,n,r){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break;default:0}}n.r(e),n.d(e,"getItemVisualFromData",(function(){return r})),n.d(e,"getVisualFromData",(function(){return i})),n.d(e,"setItemVisualFromData",(function(){return o}))},function(t,e,n){"use strict";n.r(e),n.d(e,"transform",(function(){return r})),n.d(e,"translate",(function(){return i})),n.d(e,"getRotateMatrix",(function(){return o})),n.d(e,"rotate",(function(){return a})),n.d(e,"getIdentityMatrix",(function(){return s})),n.d(e,"zoom",(function(){return u}));var r=n(26).ext.transform;function i(t,e,n){var i=r(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)}function o(t,e){var n=t.attr(),i=n.x,o=n.y;return r(t.getMatrix(),[["t",-i,-o],["r",e],["t",i,o]])}function a(t,e){var n=o(t,e);t.setMatrix(n)}function s(){return[1,0,0,0,1,0,0,0,1]}function u(t,e){var n=t.getBBox(),i=(n.minX+n.maxX)/2,o=(n.minY+n.maxY)/2;t.applyToMatrix([i,o,1]);var a=r(t.getMatrix(),[["t",-i,-o],["s",e,e],["t",i,o]]);t.setMatrix(a)}},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"length",(function(){return a})),n.d(e,"fromValues",(function(){return s})),n.d(e,"copy",(function(){return u})),n.d(e,"set",(function(){return l})),n.d(e,"add",(function(){return c})),n.d(e,"subtract",(function(){return h})),n.d(e,"multiply",(function(){return f})),n.d(e,"divide",(function(){return d})),n.d(e,"ceil",(function(){return p})),n.d(e,"floor",(function(){return g})),n.d(e,"min",(function(){return v})),n.d(e,"max",(function(){return m})),n.d(e,"round",(function(){return y})),n.d(e,"scale",(function(){return b})),n.d(e,"scaleAndAdd",(function(){return _})),n.d(e,"distance",(function(){return x})),n.d(e,"squaredDistance",(function(){return O})),n.d(e,"squaredLength",(function(){return w})),n.d(e,"negate",(function(){return S})),n.d(e,"inverse",(function(){return C})),n.d(e,"normalize",(function(){return E})),n.d(e,"dot",(function(){return T})),n.d(e,"cross",(function(){return M})),n.d(e,"lerp",(function(){return A})),n.d(e,"hermite",(function(){return j})),n.d(e,"bezier",(function(){return I})),n.d(e,"random",(function(){return k})),n.d(e,"transformMat4",(function(){return P})),n.d(e,"transformMat3",(function(){return L})),n.d(e,"transformQuat",(function(){return D})),n.d(e,"rotateX",(function(){return R})),n.d(e,"rotateY",(function(){return N})),n.d(e,"rotateZ",(function(){return F})),n.d(e,"angle",(function(){return B})),n.d(e,"zero",(function(){return z})),n.d(e,"str",(function(){return V})),n.d(e,"exactEquals",(function(){return U})),n.d(e,"equals",(function(){return G})),n.d(e,"sub",(function(){return W})),n.d(e,"mul",(function(){return Y})),n.d(e,"div",(function(){return $})),n.d(e,"dist",(function(){return X})),n.d(e,"sqrDist",(function(){return q})),n.d(e,"len",(function(){return Z})),n.d(e,"sqrLen",(function(){return K})),n.d(e,"forEach",(function(){return Q}));var r=n(22);function i(){var t=new r.ARRAY_TYPE(3);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=new r.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function s(t,e,n){var i=new r.ARRAY_TYPE(3);return i[0]=t,i[1]=e,i[2]=n,i}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function l(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function c(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function d(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function v(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function _(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function O(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function w(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function S(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function C(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function E(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function T(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function M(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2];return t[0]=i*u-o*s,t[1]=o*a-r*u,t[2]=r*s-i*a,t}function A(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function j(t,e,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,u=a*(o-2)+o,l=a*(o-1),c=a*(3-2*o);return t[0]=e[0]*s+n[0]*u+r[0]*l+i[0]*c,t[1]=e[1]*s+n[1]*u+r[1]*l+i[1]*c,t[2]=e[2]*s+n[2]*u+r[2]*l+i[2]*c,t}function I(t,e,n,r,i,o){var a=1-o,s=a*a,u=o*o,l=s*a,c=3*o*s,h=3*u*a,f=u*o;return t[0]=e[0]*l+n[0]*c+r[0]*h+i[0]*f,t[1]=e[1]*l+n[1]*c+r[1]*h+i[1]*f,t[2]=e[2]*l+n[2]*c+r[2]*h+i[2]*f,t}function k(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI,i=2*r.RANDOM()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t}function P(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t}function L(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function D(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],u=e[1],l=e[2],c=i*l-o*u,h=o*s-r*l,f=r*u-i*s,d=i*f-o*h,p=o*c-r*f,g=r*h-i*c,v=2*a;return c*=v,h*=v,f*=v,d*=2,p*=2,g*=2,t[0]=s+c+d,t[1]=u+h+p,t[2]=l+f+g,t}function R(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function N(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function F(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function B(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],u=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+a*a+s*s),l=u&&T(t,e)/u;return Math.acos(Math.min(Math.max(l,-1),1))}function z(t){return t[0]=0,t[1]=0,t[2]=0,t}function V(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function U(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function G(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],s=e[1],u=e[2];return Math.abs(n-a)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-u)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(u))}var H,W=h,Y=f,$=d,X=x,q=O,Z=a,K=w,Q=(H=i(),function(t,e,n,r,i,o){var a,s;for(e||(e=3),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;ae&&(r=e-(n=n?e/(1+r/n):0)),o+a>e&&(a=e-(o=o?e/(1+a/o):0)),[n||0,r||0,o||0,a||0]}function l(t,e,n){var a=[];if(n.isRect){var s=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},l=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},c=Object(i.get)(t,["background","style","radius"]);if(c){var h=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,f=n.isTransposed?n.getWidth():n.getHeight(),d=Object(r.__read)(u(c,Math.min(h,f)),4),p=d[0],g=d[1],v=d[2],m=d[3],y=n.isTransposed&&n.isReflect("y"),b=y?0:1,_=function(t){return y?-t:t};a.push(["M",s.x,l.y+_(p)]),0!==p&&a.push(["A",p,p,0,0,b,s.x+p,l.y]),a.push(["L",l.x-g,l.y]),0!==g&&a.push(["A",g,g,0,0,b,l.x,l.y+_(g)]),a.push(["L",l.x,s.y-_(v)]),0!==v&&a.push(["A",v,v,0,0,b,l.x-v,s.y]),a.push(["L",s.x+m,s.y]),0!==m&&a.push(["A",m,m,0,0,b,s.x,s.y-_(m)])}else a.push(["M",s.x,s.y]),a.push(["L",l.x,s.y]),a.push(["L",l.x,l.y]),a.push(["L",s.x,l.y]),a.push(["L",s.x,s.y]);a.push(["z"])}if(n.isPolar){var x=n.getCenter(),O=Object(o.getAngle)(t,n),w=O.startAngle,S=O.endAngle;if("theta"===n.type||n.isTransposed){var C=function(t){return Math.pow(t,2)};p=Math.sqrt(C(x.x-e[0].x)+C(x.y-e[0].y)),g=Math.sqrt(C(x.x-e[2].x)+C(x.y-e[2].y));a=Object(o.getSectorPath)(x.x,x.y,p,n.startAngle,n.endAngle,g)}else a=Object(o.getSectorPath)(x.x,x.y,n.getRadius(),w,S)}return a}function c(t,e,n){var r=n.getWidth(),i=n.getHeight(),o="rect"===n.type,a=[],u=(t[2].x-t[1].x)/2,l=n.isTransposed?u*i/r:u*r/i;return"round"===e?(o?(a.push(["M",t[0].x,t[0].y+l]),a.push(["L",t[1].x,t[1].y-l]),a.push(["A",u,u,0,0,1,t[2].x,t[2].y-l]),a.push(["L",t[3].x,t[3].y+l]),a.push(["A",u,u,0,0,1,t[0].x,t[0].y+l])):(a.push(["M",t[0].x,t[0].y]),a.push(["L",t[1].x,t[1].y]),a.push(["A",u,u,0,0,1,t[2].x,t[2].y]),a.push(["L",t[3].x,t[3].y]),a.push(["A",u,u,0,0,1,t[0].x,t[0].y])),a.push(["z"])):a=s(t),a}function h(t,e,n){var r=[];return Object(i.isNil)(e)?n?r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),r}function f(t,e){return[e,t]}function d(t,e,n){var i,o,a,s,l,c,h,d=Object(r.__read)(Object(r.__spreadArray)([],Object(r.__read)(t),!1),4),p=d[0],g=d[1],v=d[2],m=d[3],y=Object(r.__read)("number"==typeof n?Array(4).fill(n):n,4),b=y[0],_=y[1],x=y[2],O=y[3];e.isTransposed&&(g=(i=Object(r.__read)(f(g,m),2))[0],m=i[1]),e.isReflect("y")&&(p=(o=Object(r.__read)(f(p,g),2))[0],g=o[1],v=(a=Object(r.__read)(f(v,m),2))[0],m=a[1]),e.isReflect("x")&&(p=(s=Object(r.__read)(f(p,m),2))[0],m=s[1],g=(l=Object(r.__read)(f(g,v),2))[0],v=l[1]);var w=[],S=function(t){return Math.abs(t)};return b=(c=Object(r.__read)(u([b,_,x,O],Math.min(S(m.x-p.x),S(g.y-p.y))).map((function(t){return S(t)})),4))[0],_=c[1],x=c[2],O=c[3],e.isTransposed&&(b=(h=Object(r.__read)([O,b,_,x],4))[0],_=h[1],x=h[2],O=h[3]),p.y=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function x(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function O(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function w(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function C(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";n.r(e);var r=n(1360);n.d(e,"MapMouseEvent",(function(){return r.default}));var i=n(1361);n.d(e,"MapTouchEvent",(function(){return i.default}));var o=n(1362);n.d(e,"MapWheelEvent",(function(){return o.default}))},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n(0),o=n(49),a=n(346),s=n(42),u=n(10),l=n(79);function c(t){Object(u.defaultEmphasis)(t,"label",["show"])}var h=Object(u.makeInner)(),f=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(o.default.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,r){var o=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),a=h(t)[o];n&&n.data?(a?a._mergeOption(n,e,!0):(r&&c(n),i.each(n.data,(function(t){t instanceof Array?(c(t[0]),c(t[1])):c(t)})),a=this.createMarkerModelFromSeries(n,this,e),i.extend(a,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),a.__hostSeries=t),h(t)[o]=a):h(t)[o]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return Object(l.createTooltipMarkup)("section",{header:this.name,blocks:[Object(l.createTooltipMarkup)("nameValue",{name:o,value:i,noName:!o,noValue:null==i})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return h(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(s.default);i.mixin(f,a.DataFormatMixin.prototype),e.default=f},function(t,e,n){"use strict";n.r(e),n.d(e,"getPathPoints",(function(){return s})),n.d(e,"getViolinPath",(function(){return u})),n.d(e,"getSmoothViolinPath",(function(){return l}));var r=n(1),i=n(184);function o(t){return!t&&(null==t||isNaN(t))}function a(t){if(Object(r.isArray)(t))return o(t[1].y);var e=t.y;return Object(r.isArray)(e)?o(e[0]):o(e)}function s(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var r=[],i=0,o=t.length;i0&&n=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||c(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function x(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var O=/-(\w)/g,w=x((function(t){return t.replace(O,(function(t,e){return e?e.toUpperCase():""}))})),S=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,E=x((function(t){return t.replace(C,"-$1").toLowerCase()}));var T=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function M(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function A(t,e){for(var n in e)t[n]=e[n];return t}function j(t){for(var e={},n=0;n0,K=X&&X.indexOf("edge/")>0,Q=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===$),J=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\/(\d+)/)),tt={}.watch,et=!1;if(W)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){et=!0}}),window.addEventListener("test-passive",null,nt)}catch(t){}var rt=function(){return void 0===G&&(G=!W&&!Y&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),G},it=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ot(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,st="undefined"!=typeof Symbol&&ot(Symbol)&&"undefined"!=typeof Reflect&&ot(Reflect.ownKeys);at="undefined"!=typeof Set&&ot(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ut=I,lt=0,ct=function(){this.id=lt++,this.subs=[]};ct.prototype.addSub=function(t){this.subs.push(t)},ct.prototype.removeSub=function(t){y(this.subs,t)},ct.prototype.depend=function(){ct.target&&ct.target.addDep(this)},ct.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===E(t)){var u=Vt(String,i.type);(u<0||s0&&(ce((u=t(u,(n||"")+"_"+r))[0])&&ce(c)&&(h[l]=mt(c.text+u[0].text),u.shift()),h.push.apply(h,u)):s(u)?ce(c)?h[l]=mt(c.text+u):""!==u&&h.push(mt(u)):ce(u)&&ce(c)?h[l]=mt(c.text+u.text):(a(e._isVList)&&o(u.tag)&&i(u.key)&&o(n)&&(u.key="__vlist"+n+"_"+r+"__"),h.push(u)));return h}(t):void 0}function ce(t){return o(t)&&o(t.text)&&!1===t.isComment}function he(t,e){if(t){for(var n=Object.create(null),r=st?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var u in i={},t)t[u]&&"$"!==u[0]&&(i[u]=ge(e,u,t[u]))}else i={};for(var l in e)l in i||(i[l]=ve(e,l));return t&&Object.isExtensible(t)&&(t._normalized=i),V(i,"$stable",a),V(i,"$key",s),V(i,"$hasNormal",o),i}function ge(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:le(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function ve(t,e){return function(){return t[e]}}function me(t,e){var n,r,i,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;rdocument.createEvent("Event").timeStamp&&(un=function(){return ln.now()})}function cn(){var t,e;for(sn=un(),on=!0,tn.sort((function(t,e){return t.id-e.id})),an=0;anan&&tn[n].id>t.id;)n--;tn.splice(n+1,0,t)}else tn.push(t);rn||(rn=!0,ee(cn))}}(this)},fn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Ut(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},fn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},fn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var dn={enumerable:!0,configurable:!0,get:I,set:I};function pn(t,e,n){dn.get=function(){return this[e][n]},dn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,dn)}function gn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&wt(!1);var o=function(o){i.push(o);var a=Ft(o,e,n,t);Et(r,o,a),o in t||pn(t,"_props",o)};for(var a in e)o(a);wt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?I:T(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;c(e=t._data="function"==typeof e?function(t,e){ft();try{return t.call(e,e)}catch(t){return Ut(t,e,"data()"),{}}finally{dt()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&_(r,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&pn(t,"_data",o))}var a;Ct(e,!0)}(t):Ct(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=rt();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new fn(t,a||I,I,vn)),i in t||mn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==tt&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function Tn(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Cn(a.componentOptions);s&&!e(s)&&Mn(n,o,r,i)}}}function Mn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=xn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Rt(On(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Xe(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=fe(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return Be(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Be(t,e,n,r,i,!0)};var o=n&&n.data;Et(t,"$attrs",o&&o.attrs||r,null,!0),Et(t,"$listeners",e._parentListeners||r,null,!0)}(e),Je(e,"beforeCreate"),function(t){var e=he(t.$options.inject,t);e&&(wt(!1),Object.keys(e).forEach((function(n){Et(t,n,e[n])})),wt(!0))}(e),gn(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),Je(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(wn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Tt,t.prototype.$delete=Mt,t.prototype.$watch=function(t,e,n){if(c(e))return _n(this,t,e,n);(n=n||{}).user=!0;var r=new fn(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(t){Ut(t,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(wn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i1?M(n):n;for(var r=M(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;oparseInt(this.max)&&Mn(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return B}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:A,mergeOptions:Rt,defineReactive:Et},t.set=Tt,t.delete=Mt,t.nextTick=ee,t.observable=function(t){return Ct(t),t},t.options=Object.create(null),N.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,A(t.options.components,jn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=M(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Rt(this.options,t),this}}(t),Sn(t),function(t){N.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&c(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(wn),Object.defineProperty(wn.prototype,"$isServer",{get:rt}),Object.defineProperty(wn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wn,"FunctionalRenderContext",{value:ke}),wn.version="2.6.10";var In=v("style,class"),kn=v("input,textarea,option,select,progress"),Pn=v("contenteditable,draggable,spellcheck"),Ln=v("events,caret,typing,plaintext-only"),Dn=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Rn="http://www.w3.org/1999/xlink",Nn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Fn=function(t){return Nn(t)?t.slice(6,t.length):""},Bn=function(t){return null==t||!1===t};function zn(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Vn(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Vn(e,n.data));return function(t,e){if(o(t)||o(e))return Un(t,Gn(e));return""}(e.staticClass,e.class)}function Vn(t,e){return{staticClass:Un(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Un(t,e){return t?e?t+" "+e:t:e||""}function Gn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r-1?fr(t,e,n):Dn(e)?Bn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Pn(e)?t.setAttribute(e,function(t,e){return Bn(e)||"false"===e?"false":"contenteditable"===t&&Ln(e)?e:"true"}(e,n)):Nn(e)?Bn(n)?t.removeAttributeNS(Rn,Fn(e)):t.setAttributeNS(Rn,e,n):fr(t,e,n)}function fr(t,e,n){if(Bn(n))t.removeAttribute(e);else{if(q&&!Z&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var dr={create:cr,update:cr};function pr(t,e){var n=e.elm,r=e.data,a=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=zn(e),u=n._transitionClasses;o(u)&&(s=Un(s,Gn(u))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var gr,vr={create:pr,update:pr};function mr(t,e,n){var r=gr;return function i(){var o=e.apply(null,arguments);null!==o&&_r(t,i,n,r)}}var yr=$t&&!(J&&Number(J[1])<=53);function br(t,e,n,r){if(yr){var i=sn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}gr.addEventListener(t,e,et?{capture:n,passive:r}:n)}function _r(t,e,n,r){(r||gr).removeEventListener(t,e._wrapper||e,n)}function xr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};gr=e.elm,function(t){if(o(t.__r)){var e=q?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),ae(n,r,br,_r,mr,e.context),gr=void 0}}var Or,wr={create:xr,update:xr};function Sr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,a=e.elm,s=t.data.domProps||{},u=e.data.domProps||{};for(n in o(u.__ob__)&&(u=e.data.domProps=A({},u)),s)n in u||(a[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var l=i(r)?"":String(r);Cr(a,l)&&(a.value=l)}else if("innerHTML"===n&&Yn(a.tagName)&&i(a.innerHTML)){(Or=Or||document.createElement("div")).innerHTML=""+r+"";for(var c=Or.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;c.firstChild;)a.appendChild(c.firstChild)}else if(r!==s[n])try{a[n]=r}catch(t){}}}}function Cr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return g(n)!==g(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Er={create:Sr,update:Sr},Tr=x((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Mr(t){var e=Ar(t.style);return t.staticStyle?A(t.staticStyle,e):e}function Ar(t){return Array.isArray(t)?j(t):"string"==typeof t?Tr(t):t}var jr,Ir=/^--/,kr=/\s*!important$/,Pr=function(t,e,n){if(Ir.test(e))t.style.setProperty(e,n);else if(kr.test(n))t.style.setProperty(E(e),n.replace(kr,""),"important");else{var r=Dr(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(Fr).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function zr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Fr).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Vr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&A(e,Ur(t.name||"v")),A(e,t),e}return"string"==typeof t?Ur(t):void 0}}var Ur=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Gr=W&&!Z,Hr="transition",Wr="transitionend",Yr="animation",$r="animationend";Gr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Hr="WebkitTransition",Wr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Yr="WebkitAnimation",$r="webkitAnimationEnd"));var Xr=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function qr(t){Xr((function(){Xr(t)}))}function Zr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Br(t,e))}function Kr(t,e){t._transitionClasses&&y(t._transitionClasses,e),zr(t,e)}function Qr(t,e,n){var r=ti(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s="transition"===i?Wr:$r,u=0,l=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++u>=a&&l()};setTimeout((function(){u0&&(n="transition",c=a,h=o.length):"animation"===e?l>0&&(n="animation",c=l,h=u.length):h=(n=(c=Math.max(a,l))>0?a>l?"transition":"animation":null)?"transition"===n?o.length:u.length:0,{type:n,timeout:c,propCount:h,hasTransform:"transition"===n&&Jr.test(r[Hr+"Property"])}}function ei(t,e){for(;t.length1}function si(t,e){!0!==e.data.show&&ri(e)}var ui=function(t){var e,n,r={},u=t.modules,l=t.nodeOps;for(e=0;ep?b(t,i(n[m+1])?null:n[m+1].elm,n,d,m,r):d>m&&x(0,e,f,p)}(f,v,m,n,c):o(m)?(o(t.text)&&l.setTextContent(f,""),b(f,null,m,0,m.length-1,n)):o(v)?x(0,v,0,v.length-1):o(t.text)&&l.setTextContent(f,""):t.text!==e.text&&l.setTextContent(f,e.text),o(p)&&o(d=p.hook)&&o(d=d.postpatch)&&d(t,e)}}}function C(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(L(di(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function fi(t,e){return e.every((function(e){return!L(e,t)}))}function di(t){return"_value"in t?t._value:t.value}function pi(t){t.target.composing=!0}function gi(t){t.target.composing&&(t.target.composing=!1,vi(t.target,"input"))}function vi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function mi(t){return!t.componentInstance||t.data&&t.data.transition?t:mi(t.componentInstance._vnode)}var yi={model:li,show:{bind:function(t,e,n){var r=e.value,i=(n=mi(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,ri(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=mi(n)).data&&n.data.transition?(n.data.show=!0,r?ri(n,(function(){t.style.display=t.__vOriginalDisplay})):ii(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},bi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function _i(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?_i(He(e.children)):t}function xi(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[w(o)]=i[o];return e}function Oi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var wi=function(t){return t.tag||Ge(t)},Si=function(t){return"show"===t.name},Ci={name:"transition",props:bi,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(wi)).length){0;var r=this.mode;0;var i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=_i(i);if(!o)return i;if(this._leaving)return Oi(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var u=(o.data||(o.data={})).transition=xi(this),l=this._vnode,c=_i(l);if(o.data.directives&&o.data.directives.some(Si)&&(o.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,c)&&!Ge(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=A({},u);if("out-in"===r)return this._leaving=!0,se(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Oi(t,i);if("in-out"===r){if(Ge(o))return l;var f,d=function(){f()};se(u,"afterEnter",d),se(u,"enterCancelled",d),se(h,"delayLeave",(function(t){f=t}))}}return i}}},Ei=A({tag:String,moveClass:String},bi);function Ti(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Mi(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ai(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Ei.mode;var ji={Transition:Ci,TransitionGroup:{props:Ei,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Ze(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=xi(this),s=0;s-1?Xn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Xn[t]=/HTMLUnknownElement/.test(e.toString())},A(wn.options.directives,yi),A(wn.options.components,ji),wn.prototype.__patch__=W?ui:I,wn.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=vt),Je(t,"beforeMount"),r=function(){t._update(t._render(),n)},new fn(t,r,I,{before:function(){t._isMounted&&!t._isDestroyed&&Je(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Je(t,"mounted")),t}(this,t=t&&W?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},W&&setTimeout((function(){B.devtools&&it&&it.emit("init",wn)}),0),e.default=wn}.call(this,n(281),n(995).setImmediate)},function(t,e,n){"use strict";n.r(e);var r=n(1),i=function(t,e){return Object(r.isString)(e)?e:t.invert(t.scale(e))},o=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n0&&(n=n.map((function(t,n){return e.forEach((function(r,i){t+=e[i][n]})),t}))),n}},function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"web worker helper assertion failed.")}n.r(e),n.d(e,"assert",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n(5),o=n(68),a=n(219),s=n(121),u=i.round,l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return Object(r.__extends)(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return s.contain(t,this._extent)},e.prototype.normalize=function(t){return s.normalize(t,this._extent)},e.prototype.scale=function(t){return s.scale(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=s.getIntervalPrecision(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;n[0]1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(t?o.push({value:u(s+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;ir[0]&&he[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();r.enableClassManagement(i),e.default=i},function(t,e,n){"use strict";function r(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],h=t[8],f=e[0],d=e[1],p=e[2],g=e[3],v=e[4],m=e[5],y=e[6],b=e[7],_=e[8];return n[0]=f*r+d*a+p*l,n[1]=f*i+d*s+p*c,n[2]=f*o+d*u+p*h,n[3]=g*r+v*a+m*l,n[4]=g*i+v*s+m*c,n[5]=g*o+v*u+m*h,n[6]=y*r+b*a+_*l,n[7]=y*i+b*s+_*c,n[8]=y*o+b*u+_*h,n}function i(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n}function o(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],l=t[7],c=t[8],h=c*a-s*l,f=-c*o+s*u,d=l*o-a*u,p=n*h+r*f+i*d;return p?(p=1/p,e[0]=h*p,e[1]=(-c*r+i*l)*p,e[2]=(s*r-i*a)*p,e[3]=f*p,e[4]=(c*n-i*u)*p,e[5]=(-s*n+i*o)*p,e[6]=d*p,e[7]=(-l*n+r*u)*p,e[8]=(a*n-r*o)*p,e):null}n.r(e),n.d(e,"multiplyMatrix",(function(){return r})),n.d(e,"multiplyVec2",(function(){return i})),n.d(e,"invert",(function(){return o}))},function(t,e,n){"use strict";n.r(e);var r=n(87),i=n(264);e.default={box:function(t,e,n,i){return Object(r.getBBoxByArray)([t,n],[e,i])},length:function(t,e,n,i){return Object(r.distance)(t,e,n,i)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,i,o,a){var s=(n-t)*(o-t)+(i-e)*(a-e);return s<0?Object(r.distance)(t,e,o,a):s>(n-t)*(n-t)+(i-e)*(i-e)?Object(r.distance)(n,i,o,a):this.pointToLine(t,e,n,i,o,a)},pointToLine:function(t,e,n,r,o,a){var s=[n-t,r-e];if(i.exactEquals(s,[0,0]))return Math.sqrt((o-t)*(o-t)+(a-e)*(a-e));var u=[-s[1],s[0]];i.normalize(u,u);var l=[o-t,a-e];return Math.abs(i.dot(l,u))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}}},function(t,e,n){"use strict";n.r(e);var r=Array.isArray;e.default=r},function(t,e,n){"use strict";function r(t){return isFinite(t)}function i(t,e,n){var i=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,s=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),i=r(i)?i:0,o=r(o)?o:1,a=r(a)?a:0,s=r(s)?s:0,t.createLinearGradient(i,a,o,s)}function o(t,e,n){var i=n.width,o=n.height,a=Math.min(i,o),s=null==e.x?.5:e.x,u=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(s=s*i+n.x,u=u*o+n.y,l*=a),s=r(s)?s:.5,u=r(u)?u:.5,l=l>=0&&r(l)?l:.5,t.createRadialGradient(s,u,0,s,u,l)}function a(t,e,n){for(var r="radial"===e.type?o(t,e,n):i(t,e,n),a=e.colorStops,s=0;si&&(i+=d);var g=Math.atan2(u,a);if(g<0&&(g+=d),g>=r&&g<=i||g+d>=r&&g+d<=i)return l[0]=h,l[1]=f,c-n;var v=n*Math.cos(r)+t,m=n*Math.sin(r)+e,y=n*Math.cos(i)+t,b=n*Math.sin(i)+e,_=(v-a)*(v-a)+(m-u)*(m-u),x=(y-a)*(y-a)+(b-u)*(b-u);return _0){e=e/180*Math.PI,w.fromArray(t[0]),S.fromArray(t[1]),C.fromArray(t[2]),r.default.sub(E,w,S),r.default.sub(T,C,S);var n=E.len(),i=T.len();if(!(n<.001||i<.001)){E.scale(1/n),T.scale(1/i);var o=E.dot(T);if(Math.cos(e)1&&r.default.copy(j,C),j.toArray(t[1])}}}}function k(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,w.fromArray(t[0]),S.fromArray(t[1]),C.fromArray(t[2]),r.default.sub(E,S,w),r.default.sub(T,C,S);var i=E.len(),o=T.len();if(!(i<.001||o<.001))if(E.scale(1/i),T.scale(1/o),E.dot(e)=s)r.default.copy(j,C);else{j.scaleAndAdd(T,a/Math.tan(Math.PI/2-u));var l=C.x!==S.x?(j.x-S.x)/(C.x-S.x):(j.y-S.y)/(C.y-S.y);if(isNaN(l))return;l<0?r.default.copy(j,S):l>1&&r.default.copy(j,C)}j.toArray(t[1])}}}function P(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function L(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=h.dist(r[0],r[1]),o=h.dist(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=h.lerp([],r[1],r[0],a/i),u=h.lerp([],r[1],r[2],a/o),l=h.lerp([],s,u,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),t.bezierCurveTo(u[0],u[1],u[0],u[1],r[2][0],r[2][1])}else for(var c=1;c0&&(u.during=l?Object(i.bind)(x,{el:e,userDuring:l}):null,u.setToFinal=!0,u.scope=t),Object(i.extend)(u,n[a]),u}function g(t,e,n,o){var s=(o=o||{}).dataIndex,g=o.isInit,m=o.clearStyle,b=n.isAnimationEnabled(),_=d(t),x=e.style;_.userDuring=e.during;var S={},C={};if(function(t,e,n){for(var r=0;r=0)){var p=t.getAnimationStyleProps(),g=p?p.style:null;if(g){!a&&(a=o.style={});var v=Object(i.keys)(n);for(h=0;h0&&t.animateFrom(E,T)}else!function(t,e,n,r,i){if(i){var o=p("update",t,e,r,n);o.duration>0&&t.animateFrom(i,o)}}(t,e,s||0,n,S);v(t,e),x?t.dirty():t.markRedraw()}function v(t,e){for(var n=d(t).leaveToProps,r=0;r=0){!s&&(s=o[t]={});var p=Object(i.keys)(u);for(f=0;f2&&void 0!==arguments[2]?arguments[2]:0;Object(r.default)(this,t),this.x=+e,this.y=+n,this.z=+i}return Object(i.default)(t,[{key:"toLngLat",value:function(){return new o.default(h(this.x),f(this.y))}},{key:"toAltitude",value:function(){return d(this.z,this.y)}},{key:"meterInMercatorCoordinateUnits",value:function(){return 1/a*p(f(this.y))}}],[{key:"fromLngLat",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=o.default.convert(e);return new t(u(r.lng),l(r.lat),c(n,r.lat))}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"STYLE_VISUAL_TYPE",(function(){return s})),n.d(e,"NON_STYLE_VISUAL_PROPS",(function(){return u})),n.d(e,"customInnerStore",(function(){return l}));var r=n(4),i=n(157),o=n(10),a=n(54),s={color:"fill",borderColor:"stroke"},u={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},l=Object(o.makeInner)(),c=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return Object(i.default)(null,this)},e.prototype.getDataParams=function(e,n,r){var i=t.prototype.getDataParams.call(this,e,n);return r&&(i.info=l(r).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(a.default);e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"zoomToScale",(function(){return d})),n.d(e,"scaleToZoom",(function(){return p})),n.d(e,"lngLatToWorld",(function(){return g})),n.d(e,"worldToLngLat",(function(){return v})),n.d(e,"getMeterZoom",(function(){return m})),n.d(e,"getDistanceScales",(function(){return y})),n.d(e,"addMetersToLngLat",(function(){return b})),n.d(e,"getViewMatrix",(function(){return _})),n.d(e,"getProjectionParameters",(function(){return x})),n.d(e,"getProjectionMatrix",(function(){return O})),n.d(e,"worldToPixels",(function(){return w})),n.d(e,"pixelsToWorld",(function(){return S}));var r=n(46),i=n(303),o=n(143),a=n(264),s=n(196),u=n(338),l=Math.PI,c=l/4,h=l/180,f=180/l;function d(t){return Math.pow(2,t)}function p(t){return Math.log2(t)}function g(t,e){var n=Object(r.default)(t,2),i=n[0],o=n[1];Object(u.default)(Number.isFinite(i)&&Number.isFinite(e)),Object(u.default)(Number.isFinite(o)&&o>=-90&&o<=90,"invalid latitude");var a=o*h;return[(e*=512)*(i*h+l)/(2*l),e*(l-Math.log(Math.tan(c+.5*a)))/(2*l)]}function v(t,e){var n=Object(r.default)(t,2),i=n[0],o=n[1],a=i/(e*=512)*(2*l)-l,s=2*(Math.atan(Math.exp(l-o/e*(2*l)))-c);return[a*f,s*f]}function m(t){var e=t.latitude;return Object(u.default)(Number.isFinite(e)),p(4003e4*Math.cos(e*h))-9}function y(t){var e=t.latitude,n=t.longitude,r=t.zoom,i=t.scale,o=t.highPrecision,a=void 0!==o&&o;i=void 0!==i?i:d(r),Object(u.default)(Number.isFinite(e)&&Number.isFinite(n)&&Number.isFinite(i));var s={},l=512*i,c=Math.cos(e*h),f=l/360,p=f/c,g=l/4003e4/c;if(s.pixelsPerMeter=[g,-g,g],s.metersPerPixel=[1/g,-1/g,1/g],s.pixelsPerDegree=[f,-p,g],s.degreesPerPixel=[1/f,-1/p,1/g],a){var v=h*Math.tan(e*h)/c,m=f*v/2,y=l/4003e4*v,b=y/p*g;s.pixelsPerDegree2=[0,-m,y],s.pixelsPerMeter2=[b,0,b]}return s}function b(t,e){var n=Object(r.default)(t,3),i=n[0],o=n[1],a=n[2],s=Object(r.default)(e,3),u=s[0],l=s[1],c=s[2],h=y({longitude:i,latitude:o,scale:1,highPrecision:!0}),f=h.pixelsPerMeter,d=h.pixelsPerMeter2,p=g(t,1);p[0]+=u*(f[0]+d[0]*l),p[1]+=l*(f[1]+d[1]*l);var m=v(p,1),b=(a||0)+(c||0);return Number.isFinite(a)||Number.isFinite(c)?[m[0],m[1],b]:m}function _(t){var e=t.height,n=t.pitch,r=t.bearing,a=t.altitude,u=t.center,l=void 0===u?null:u,c=t.flipY,f=void 0!==c&&c,d=Object(i.createMat4)();return o.translate(d,d,[0,0,-a]),o.scale(d,d,[1,1,1/e]),o.rotateX(d,d,-n*h),o.rotateZ(d,d,r*h),f&&o.scale(d,d,[1,-1,1]),l&&o.translate(d,d,s.negate([],l)),d}function x(t){var e=t.width,n=t.height,r=t.altitude,i=void 0===r?1.5:r,o=t.pitch,a=void 0===o?0:o,s=t.nearZMultiplier,u=void 0===s?1:s,l=t.farZMultiplier,c=void 0===l?1:l,f=a*h,d=Math.atan(.5/i),p=Math.sin(d)*i/Math.sin(Math.PI/2-f-d),g=Math.cos(Math.PI/2-f)*p+i;return{fov:2*Math.atan(n/2/i),aspect:e/n,focalDistance:i,near:u,far:g*c}}function O(t){var e=t.width,n=t.height,r=t.pitch,i=x({width:e,height:n,altitude:t.altitude,pitch:r,nearZMultiplier:t.nearZMultiplier,farZMultiplier:t.farZMultiplier}),a=i.fov,s=i.aspect,u=i.near,l=i.far;return o.perspective([],a,s,u,l)}function w(t,e){var n=Object(r.default)(t,3),o=n[0],a=n[1],s=n[2],l=void 0===s?0:s;return Object(u.default)(Number.isFinite(o)&&Number.isFinite(a)&&Number.isFinite(l)),Object(i.transformVector)(e,[o,a,l,1])}function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=Object(r.default)(t,3),s=o[0],l=o[1],c=o[2];if(Object(u.default)(Number.isFinite(s)&&Number.isFinite(l),"invalid pixel coordinate"),Number.isFinite(c)){var h=Object(i.transformVector)(e,[s,l,c,1]);return h}var f=Object(i.transformVector)(e,[s,l,0,1]),d=Object(i.transformVector)(e,[s,l,1,1]),p=f[2],g=d[2],v=p===g?0:((n||0)-p)/(g-p);return a.lerp([],f,d,v)}},function(t,e,n){"use strict";var r=n(996),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function l(t){return"[object Function]"===i.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n= than the number of constructor arguments of its base class."},e.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",e.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",e.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",e.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",e.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";e.POST_CONSTRUCT_ERROR=function(){for(var t=[],e=0;e=0||o&&r.indexOf(o,u)<0)){var l=n.getShallow(u,e);null!=l&&(a[t[s][0]]=l)}}return a}}},function(t,e,n){"use strict";function r(t,e,n,r,a,s){t=t||0;var u=n[1]-n[0];if(null!=a&&(a=o(a,[0,u])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===r){var l=Math.abs(e[1]-e[0]);l=o(l,[0,u]),a=s=o(l,[a,s]),r=0}e[0]=o(e[0],n),e[1]=o(e[1],n);var c=i(e,r);e[r]+=t;var h,f=a||0,d=n.slice();return c.sign<0?d[0]+=f:d[1]-=f,e[r]=o(e[r],d),h=i(e,r),null!=a&&(h.sign!==c.sign||h.spans&&(e[1-r]=e[r]+h.sign*s),e}function i(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function o(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"percent",(function(){return a})),n.d(e,"getDeepPercent",(function(){return s})),n.d(e,"getDataWhetherPercentage",(function(){return u}));var r=n(2),i=n(1),o=n(316);function a(t,e,n,a){var s=Object(i.reduce)(t,(function(t,r){var i=r[n],a=t.has(i)?t.get(i):0,s=r[e];return a=Object(o.isRealNumber)(s)?a+s:a,t.set(i,a),t}),new Map);return Object(i.map)(t,(function(t){var i,u=t[e],l=t[n],c=Object(o.isRealNumber)(u)&&0!==s.get(l)?u/s.get(l):0;return Object(r.__assign)(Object(r.__assign)({},t),((i={})[a]=c,i))}))}function s(t,e,n,a){var s=Object(i.reduce)(t,(function(t,r){var a=Object(i.reduce)(n,(function(t,e){return"".concat(t).concat(r[e])}),""),s=t.has(a)?t.get(a):0,u=r[e];return s=Object(o.isRealNumber)(u)?s+u:s,t.set(a,s),t}),new Map);return Object(i.map)(t,(function(t){var u,l=t[e],c=Object(i.reduce)(n,(function(e,n){return"".concat(e).concat(t[n])}),""),h=Object(o.isRealNumber)(l)&&0!==s.get(c)?l/s.get(c):0;return Object(r.__assign)(Object(r.__assign)({},t),((u={})[a]=h,u))}))}function u(t,e,n,r,i){return i?a(t,e,n,r):t}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTinyData",(function(){return i}));var r=n(1);function i(t){return Object(r.map)(t||[],(function(t,e){return{x:"".concat(e),y:t}}))}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"getDefaultLabel",(function(){return o})),n.d(e,"getDefaultInterpolatedLabel",(function(){return a}));var r=n(183),i=n(0);function o(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var o=Object(r.retrieveRawValue)(t,e,n[0]);return null!=o?o+"":null}if(i){for(var a=[],s=0;s=0&&r.push(e[a])}return r.join(" ")}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=/rgba?\(([\s.,0-9]+)\)/,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,u=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function l(t){return"#"+f(t[0])+f(t[1])+f(t[2])}var c,h=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},f=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},d=function(t){if("#"===t[0]&&7===t.length)return t;var e;c||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),c=e),c.style.color=t;var n=document.defaultView.getComputedStyle(c,"").getPropertyValue("color");return n=l(i.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.default={rgb2arr:h,gradient:function(t){var e=Object(r.isString)(t)?t.split("-"):t,n=Object(r.map)(e,(function(t){return h(-1===t.indexOf("#")?d(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),o=r*n-i,a=t[i],s=i===r?a:t[i+1];return l([u(a,s,o,0),u(a,s,o,1),u(a,s,o,2)])}(n,t)}},toRGB:Object(r.memoize)(d),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(u=o.exec(t))[1]+90;n=u[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var u;e="radial-gradient(",n=(u=a.exec(t))[4]}var l=n.match(s);return Object(r.each)(l,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==l.length-1&&(e+=", ")})),e+=")"}return t}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getMaxLabelWidth",(function(){return o})),n.d(e,"getLabelLength",(function(){return a})),n.d(e,"testLabel",(function(){return s})),n.d(e,"ellipsisLabel",(function(){return u}));var r=n(1),i=n(957);function o(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return Object(r.isNil)(e)?"":""+e})),n=0,i=0,o=0;o=19968&&u<=40869?2:1}a>n&&(n=a,i=o)}return t[i].getBBox().width}(t);var e=0;return Object(r.each)(t,(function(t){var n=t.getBBox().width;e=0?Object(i.ellipsisString)(u,p,o):"…")&&(e.attr("text",g),d=!0)}return d?e.set("tip",u):e.set("tip",null),d}},function(t,e,n){"use strict";n.r(e),n.d(e,"fromPoints",(function(){return d})),n.d(e,"fromLine",(function(){return p})),n.d(e,"fromCubic",(function(){return m})),n.d(e,"fromQuadratic",(function(){return y})),n.d(e,"fromArc",(function(){return b}));var r=n(20),i=n(48),o=Math.min,a=Math.max,s=Math.sin,u=Math.cos,l=2*Math.PI,c=r.create(),h=r.create(),f=r.create();function d(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],s=r[0],u=r[1],l=r[1],c=1;c1e-4)return p[0]=t-n,p[1]=e-i,g[0]=t+n,void(g[1]=e+i);if(c[0]=u(o)*n+t,c[1]=s(o)*i+e,h[0]=u(a)*n+t,h[1]=s(a)*i+e,v(p,c,h),m(g,c,h),(o%=l)<0&&(o+=l),(a%=l)<0&&(a+=l),o>a&&!d?a+=l:oo&&(f[0]=u(_)*n+t,f[1]=s(_)*i+e,v(p,f,p),m(g,f,g))}},function(t,e,n){"use strict";n.r(e),n.d(e,"CircleShape",(function(){return o}));var r=n(61),i=n(38),o=function(){this.cx=0,this.cy=0,this.r=0},a=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(i.default);a.prototype.type="circle",e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"registerCanvas",(function(){return s})),n.d(e,"registerCanvas2D",(function(){return u})),n.d(e,"getCanvas",(function(){return l})),n.d(e,"getCanvas2D",(function(){return c}));var r=n(614),i=n(154),o={},a={};function s(t,e){(o=t).id=e,"tagName"in o||(o.tagName="CANVAS"),o.type="canvas",i.parentNode(o),i.style(o),i.classList(o),i.clientRegion(o),i.offsetRegion(o),o.focus=function(){},o.blur=function(){}}function u(t,e){"tagName"in(a={width:1024,height:1024,clientWidth:1024/r.default,clientHeight:1024/r.default,id:e,type:"canvas"})||(a.tagName="CANVAS"),i.parentNode(a),i.style(a),i.classList(a),i.clientRegion(a),i.offsetRegion(a),a.getContext=function(e){if("2d"===e)return t},a.focus=function(){},a.blur=function(){}}function l(){return o}function c(){return a}},function(t,e,n){"use strict";function r(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,r=e.scaleX;return((e.getZoom()-1)*n+1)/r}function i(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}n.r(e),n.d(e,"getNodeGlobalScale",(function(){return r})),n.d(e,"getSymbolSize",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"register",(function(){return i})),n.d(e,"getMethod",(function(){return o}));var r=new Map;function i(t,e){r.set(t,e)}function o(t){return r.get(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getScale",(function(){return o})),n.d(e,"registerScale",(function(){return a}));var r=n(307);n.d(e,"Scale",(function(){return r.default}));var i={};function o(t){return i[t]}function a(t,e){if(o(t))throw new Error("type '"+t+"' existed.");i[t]=e}},function(t,e,n){"use strict";n.r(e),n.d(e,"init",(function(){return i})),n.d(e,"firstWalk",(function(){return o})),n.d(e,"secondWalk",(function(){return a})),n.d(e,"separation",(function(){return s})),n.d(e,"radialCoordinate",(function(){return u})),n.d(e,"getViewRect",(function(){return l}));var r=n(35);function i(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,i=[e];n=i.pop();)if(r=n.children,n.isExpand&&r.length)for(var o=r.length-1;o>=0;o--){var a=r[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}function o(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,i=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){!function(t){var e=t.children,n=e.length,r=0,i=0;for(;--n>=0;){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=function(t,e,n,r){if(e){for(var i=t,o=t,a=o.parentNode.children[0],s=e,u=i.hierNode.modifier,l=o.hierNode.modifier,p=a.hierNode.modifier,g=s.hierNode.modifier;s=c(s),o=h(o),s&&o;){i=c(i),a=h(a),i.hierNode.ancestor=t;var v=s.hierNode.prelim+g-o.hierNode.prelim-l+r(s,o);v>0&&(d(f(s,t,n),t,v),l+=v,u+=v),g+=s.hierNode.modifier,l+=o.hierNode.modifier,u+=i.hierNode.modifier,p+=a.hierNode.modifier}s&&!c(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=g-u),o&&!h(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=l-p,n=t)}return n}(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function a(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function s(t){return arguments.length?t:p}function u(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function l(t,e){return r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function c(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function h(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function f(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function d(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function p(t,e){return t.parentNode===e.parentNode?1:2}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(391),o=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r,o=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=o}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,o=this.yField,a=n.indexOf(e),s=n.length;return!o&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===a?0:a-1],i=n[a===s-1?s-1:a+1],0!==a?r+=(e-r)/2:r-=(i-e)/2,a!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);r.each(t,(function(t,e){r.each(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.each(t,(function(t){void 0===t[e]&&(t[e]=i.DEFAULT_Y)})),r.groupBy(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,o=r.assign({},this.dimValuesMap),a=[];if(e&&this.isAdjust("x")&&a.push(e),n&&this.isAdjust("y")&&a.push(n),a.forEach((function(e){o&&o[e]||(o[e]=r.valuesOfKey(t,e).sort((function(t,e){return t-e})))})),!n&&this.isAdjust("y")){o.y=[i.DEFAULT_Y,1]}return o},t}();e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"createDimensions",(function(){return h})),n.d(e,"default",(function(){return f}));var r=n(32),i=n(513),o=n(0),a=n(148),s=n(421),u=n(10),l=n(147),c=n(357);function h(t,e){return f(t,e).dimensions}function f(t,e){Object(a.isSourceInstance)(t)||(t=Object(a.createSourceFromSeriesDataOption)(t));var n=(e=e||{}).coordDimensions||[],h=e.dimensionsDefine||t.dimensionsDefine||[],f=Object(o.createHashMap)(),p=[],g=function(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Object(o.each)(e,(function(t){var e;Object(o.isObject)(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}(t,n,h,e.dimensionsCount),v=e.canOmitUnusedDimensions&&Object(c.shouldOmitUnusedDimensions)(g),m=h===t.dimensionsDefine,y=m?Object(c.ensureSourceDimNameMap)(t):Object(c.createDimNameMap)(h),b=e.encodeDefine;!b&&e.encodeDefaulter&&(b=e.encodeDefaulter(t,g));for(var _=Object(o.createHashMap)(b),x=new s.CtorInt32Array(g),O=0;O0&&(r.name=i+(a-1)),a++,e.set(i,a)}}(p),new c.SeriesDataSchema({source:t,dimensions:p,fullDimensionCount:g,dimensionOmitted:v})}function d(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}},function(t,e,n){"use strict";n.r(e);var r=n(78),i=n(368);e.default=function(t,e){if(t)if(Object(r.default)(t))for(var n=0,o=t.length;n-1?"ZH":"EN";function h(t,e){t=t.toUpperCase(),l[t]=new r.default(e),u[t]=e}function f(t){if(Object(s.isString)(t)){var e=u[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?Object(s.clone)(e):Object(s.merge)(Object(s.clone)(e),Object(s.clone)(u.EN),!1)}return Object(s.merge)(Object(s.clone)(t),Object(s.clone)(u.EN),!1)}function d(t){return l[t]}function p(){return l.EN}h("EN",o.default),h("ZH",a.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"createFromString",(function(){return x})),n.d(e,"extendFromString",(function(){return O})),n.d(e,"mergePath",(function(){return w})),n.d(e,"clonePath",(function(){return S}));var r=n(61),i=n(38),o=n(145),a=n(929),s=n(0),u=Math.sqrt,l=Math.sin,c=Math.cos,h=Math.PI;function f(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function d(t,e){return(t[0]*e[0]+t[1]*e[1])/(f(t)*f(e))}function p(t,e){return(t[0]*e[1]1&&(a*=u(_),s*=u(_));var x=(i===o?-1:1)*u((a*a*(s*s)-a*a*(b*b)-s*s*(y*y))/(a*a*(b*b)+s*s*(y*y)))||0,O=x*a*b/s,w=x*-s*y/a,S=(t+n)/2+c(m)*O-l(m)*w,C=(e+r)/2+l(m)*O+c(m)*w,E=p([1,0],[(y-O)/a,(b-w)/s]),T=[(y-O)/a,(b-w)/s],M=[(-1*y-O)/a,(-1*b-w)/s],A=p(T,M);if(d(T,M)<=-1&&(A=h),d(T,M)>=1&&(A=0),A<0){var j=Math.round(A/h*1e6)/1e6;A=2*h+j%2*h}v.addData(g,S,C,a,s,E,A,m,o)}var v=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,m=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.applyTransform=function(t){},e}(i.default);function b(t){return null!=t.setData}function _(t,e){var n=function(t){var e=new o.default;if(!t)return e;var n,r=0,i=0,a=r,s=i,u=o.default.CMD,l=t.match(v);if(!l)return e;for(var c=0;c0))}function v(t){return"string"==typeof t&&"none"!==t}function m(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function b(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function _(t,e,n){var r=Object(o.createOrUpdateImage)(e.image,e.__image,n);if(Object(o.isImageReady)(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*c.RADIAN_TO_DEGREE),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}var x=["shadowBlur","shadowOffsetX","shadowOffsetY"],O=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function w(t,e,n,i,o){var a=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){E(t,o),a=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?r.DEFAULT_COMMON_STYLE.opacity:s}(i||e.blend!==n.blend)&&(a||(E(t,o),a=!0),t.globalCompositeOperation=e.blend||r.DEFAULT_COMMON_STYLE.blend);for(var u=0;u0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function T(t,e){return t[0]*e[0]+t[1]*e[1]}function M(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function A(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function j(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function I(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function k(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function P(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function L(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function D(t,e,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),s=Math.cos(r);return t[0]=i*s-o*a+n[0],t[1]=i*a+o*s+n[1],t}function R(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o),s=a&&(n*i+r*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function N(t){return t[0]=0,t[1]=0,t}function F(t){return"vec2("+t[0]+", "+t[1]+")"}function B(t,e){return t[0]===e[0]&&t[1]===e[1]}function z(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))}var V,U=O,G=c,H=h,W=f,Y=_,$=x,X=w,q=(V=i(),function(t,e,n,r,i,o){var a,s;for(e||(e=2),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a0&&(a=null===a?u:Math.min(a,u))}n[i]=a}}return n}(t),n=[];return Object(r.each)(t,(function(t){var r,o=t.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=e[s],h=Math.abs(a[1]-a[0]),f=o.scale.getExtent(),d=Math.abs(f[1]-f[0]);r=c?h/d*c:h}else{var p=t.getData();r=Math.abs(a[1]-a[0])/p.count()}var g=Object(i.parsePercent)(t.get("barWidth"),r),v=Object(i.parsePercent)(t.get("barMaxWidth"),r),m=Object(i.parsePercent)(t.get("barMinWidth")||(y(t)?.5:1),r),b=t.get("barGap"),_=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:g,barMaxWidth:v,barMinWidth:m,barGap:b,barCategoryGap:_,axisKey:l(o),stackId:u(t)})})),d(n)}function d(t){var e={};Object(r.each)(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var u=t.barWidth;u&&!a[s].width&&(a[s].width=u,u=Math.min(o.remainedWidth,u),o.remainedWidth-=u);var l=t.barMaxWidth;l&&(a[s].maxWidth=l);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var f=t.barCategoryGap;null!=f&&(o.categoryGap=f)}));var n={};return Object(r.each)(e,(function(t,e){n[e]={};var o=t.stacks,a=t.bandWidth,s=t.categoryGap;if(null==s){var u=Object(r.keys)(o).length;s=Math.max(35-4*u,15)+"%"}var l=Object(i.parsePercent)(s,a),c=Object(i.parsePercent)(t.gap,1),h=t.remainedWidth,f=t.autoWidthCount,d=(h-l)/(f+(f-1)*c);d=Math.max(d,0),Object(r.each)(o,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,h-=r+c*r,f--}else{var r=d;e&&er&&(r=n),r!==d&&(t.width=r,h-=r+c*r,f--)}})),d=(h-l)/(f+(f-1)*c),d=Math.max(d,0);var p,g=0;Object(r.each)(o,(function(t,e){t.width||(t.width=d),p=t,g+=t.width*(1+c)})),p&&(g-=p.width*c);var v=-g/2;Object(r.each)(o,(function(t,r){n[e][r]=n[e][r]||{bandWidth:a,offset:v,width:t.width},v+=t.width*(1+c)}))})),n}function p(t,e,n){if(t&&e){var r=t[l(e)];return null!=r&&null!=n?r[u(n)]:r}}function g(t,e){var n=h(t,e),i=f(n);Object(r.each)(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=u(t),o=i[l(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function v(t){return{seriesType:t,plan:Object(a.default)(),reset:function(t){if(m(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=e.getDimensionIndex(e.mapDimension(i.dim)),u=e.getDimensionIndex(e.mapDimension(r.dim)),l=t.get("showBackground",!0),c=e.mapDimension(i.dim),h=e.getCalculationInfo("stackResultDimension"),f=Object(o.isDimensionStacked)(e,c)&&!!e.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),p=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,i),g=y(t),v=t.get("barMinHeight")||0,b=h&&e.getDimensionIndex(h),_=e.getLayout("size"),x=e.getLayout("offset");return{progress:function(t,e){for(var r,i=t.count,o=g&&Object(s.createFloat32Array)(3*i),c=g&&l&&Object(s.createFloat32Array)(3*i),h=g&&Object(s.createFloat32Array)(i),m=n.master.getRect(),y=d?m.width:m.height,O=e.getStore(),w=0;null!=(r=t.next());){var S=O.get(f?b:a,r),C=O.get(u,r),E=p,T=void 0;f&&(T=+S-O.get(a,r));var M=void 0,A=void 0,j=void 0,I=void 0;if(d){var k=n.dataToPoint([S,C]);if(f)E=n.dataToPoint([T,C])[0];M=E,A=k[1]+x,j=k[0]-E,I=_,Math.abs(j)=u-f&&a<=l+f&&s>=c-f&&s<=h+f&&r.Line.pointToLine(t,e,n,i,a,s)<=o/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"$document",(function(){return m}));var r=n(11),i=n(12),o=n(25),a=n(27),s=n(15),u=n(317),l=n(361),c=n(826),h=n(828),f=n(829);function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var p=function(t){Object(o.default)(n,t);var e=d(n);function n(){return Object(r.default)(this,n),e.call(this,"body",0)}return Object(i.default)(n,[{key:"addEventListener",value:function(t,e){}},{key:"removeEventListener",value:function(t,e,n){}},{key:"dispatchEvent",value:function(t){}}]),n}(l.HTMLElement),g=function(t){Object(o.default)(n,t);var e=d(n);function n(){return Object(r.default)(this,n),e.call(this,"html",0)}return Object(i.default)(n,[{key:"addEventListener",value:function(t,e){}},{key:"removeEventListener",value:function(t,e){}},{key:"dispatchEvent",value:function(t){}}]),n}(l.HTMLElement),v={},m={readyState:"complete",visibilityState:"visible",hidden:!1,fullscreen:!0,scripts:[],style:{},location:f.$location,ontouchstart:null,ontouchmove:null,ontouchend:null,onvisibilitychange:null,parentNode:null,parentElement:null,head:null,body:null,documentElement:{style:[]},createElement:function(t){return"canvas"===(t=t.toLowerCase())?my.createOffscreenCanvas(1024,128,"2d"):"img"===t?new h.Image:"video"===t?new c.HTMLVideoElement:new l.HTMLElement(t)},createElementNS:function(t,e){return this.createElement(e)},createTextNode:function(t){return t},getElementById:function(t){return null},getElementsByTagName:function(t){return t=t.toLowerCase(),[]},getElementsByTagNameNS:function(t,e){return this.getElementsByTagName(e)},getElementsByName:function(t){return[]},querySelector:function(t){return null},querySelectorAll:function(t){return[]},addEventListener:function(t,e,n){v[t]||(v[t]=[]),v[t].push(e)},removeEventListener:function(t,e){var n=v[t];if(n&&n.length>0)for(var r=n.length;r--;r>0)if(n[r]===e){n.splice(r,1);break}},dispatchEvent:function(t){var e=t.type,n=v[e];if(n)for(var r=0;rr.EPSILON?(t[0]=e[0]/i,t[1]=e[1]/i,t[2]=e[2]/i):(t[0]=1,t[1]=0,t[2]=0),n}function h(t,e){var n=z(t,e);return Math.acos(2*n*n-1)}function f(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1],l=n[2],c=n[3];return t[0]=r*c+a*s+i*l-o*u,t[1]=i*c+a*u+o*s-r*l,t[2]=o*c+a*l+r*u-i*s,t[3]=a*c-r*s-i*u-o*l,t}function d(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+a*s,t[1]=i*u+o*s,t[2]=o*u-i*s,t[3]=a*u-r*s,t}function p(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u-o*s,t[1]=i*u+a*s,t[2]=o*u+r*s,t[3]=a*u-i*s,t}function g(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+i*s,t[1]=i*u-r*s,t[2]=o*u+a*s,t[3]=a*u-o*s,t}function v(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t}function m(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=Math.sqrt(n*n+r*r+i*i),s=Math.exp(o),u=a>0?s*Math.sin(a)/a:0;return t[0]=n*u,t[1]=r*u,t[2]=i*u,t[3]=s*Math.cos(a),t}function y(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=Math.sqrt(n*n+r*r+i*i),s=a>0?Math.atan2(a,o)/a:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+o*o),t}function b(t,e,n){return y(t,e),B(t,t,n),m(t,t),t}function _(t,e,n,i){var o,a,s,u,l,c=e[0],h=e[1],f=e[2],d=e[3],p=n[0],g=n[1],v=n[2],m=n[3];return(a=c*p+h*g+f*v+d*m)<0&&(a=-a,p=-p,g=-g,v=-v,m=-m),1-a>r.EPSILON?(o=Math.acos(a),s=Math.sin(o),u=Math.sin((1-i)*o)/s,l=Math.sin(i*o)/s):(u=1-i,l=i),t[0]=u*c+l*p,t[1]=u*h+l*g,t[2]=u*f+l*v,t[3]=u*d+l*m,t}function x(t){var e=r.RANDOM(),n=r.RANDOM(),i=r.RANDOM(),o=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=o*Math.sin(2*Math.PI*n),t[1]=o*Math.cos(2*Math.PI*n),t[2]=a*Math.sin(2*Math.PI*i),t[3]=a*Math.cos(2*Math.PI*i),t}function O(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o,s=a?1/a:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=o*s,t}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function S(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var o=(i+1)%3,a=(i+2)%3;n=Math.sqrt(e[3*i+i]-e[3*o+o]-e[3*a+a]+1),t[i]=.5*n,n=.5/n,t[3]=(e[3*o+a]-e[3*a+o])*n,t[o]=(e[3*o+i]+e[3*i+o])*n,t[a]=(e[3*a+i]+e[3*i+a])*n}return t}function C(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var o=Math.sin(e),a=Math.cos(e),s=Math.sin(n),u=Math.cos(n),l=Math.sin(r),c=Math.cos(r);return t[0]=o*u*c-a*s*l,t[1]=a*s*c+o*u*l,t[2]=a*u*l-o*s*c,t[3]=a*u*c+o*s*l,t}function E(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var T,M,A,j,I,k,P=a.clone,L=a.fromValues,D=a.copy,R=a.set,N=a.add,F=f,B=a.scale,z=a.dot,V=a.lerp,U=a.length,G=U,H=a.squaredLength,W=H,Y=a.normalize,$=a.exactEquals,X=a.equals,q=(T=o.create(),M=o.fromValues(1,0,0),A=o.fromValues(0,1,0),function(t,e,n){var r=o.dot(e,n);return r<-.999999?(o.cross(T,M,e),o.len(T)<1e-6&&o.cross(T,A,e),o.normalize(T,T),l(t,T,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(o.cross(T,e,n),t[0]=T[0],t[1]=T[1],t[2]=T[2],t[3]=1+r,Y(t,t))}),Z=(j=s(),I=s(),function(t,e,n,r,i,o){return _(j,e,i,o),_(I,n,r,o),_(t,j,I,2*o*(1-o)),t}),K=(k=i.create(),function(t,e,n,r){return k[0]=n[0],k[3]=n[1],k[6]=n[2],k[1]=r[0],k[4]=r[1],k[7]=r[2],k[2]=-e[0],k[5]=-e[1],k[8]=-e[2],Y(t,S(t,k))})},function(t,e,n){"use strict";n.r(e),n.d(e,"STATUS_UNACTIVE",(function(){return l})),n.d(e,"STATUS_ACTIVE",(function(){return c}));var r=n(2),i=n(1),o=n(24),a=n(393),s=n(498),u=n(8),l=u.ELEMENT_STATE.INACTIVE,c=u.ELEMENT_STATE.ACTIVE,h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=c,e}return Object(r.__extends)(e,t),e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;this.setHighlightBy(t,(function(t){return i.isMathItem(t,e,n)}),r)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(l)&&t.setState(l,!1),t.setState(c,!0)):t.hasState(c)||t.setState(l,!0)},e.prototype.setHighlightBy=function(t,e,n){var r=this;if(n)Object(i.each)(t,(function(t){r.setElementHighlight(t,e)}));else{var a=Object(o.getElementsByState)(this.context.view,c),s=!0;Object(i.each)(a,(function(t){if(!e(t))return s=!1,!1})),s?this.clear():Object(i.each)(t,(function(t){e(t)&&(t.hasState(c)&&t.setState(c,!1),t.setState(l,!0))}))}},e.prototype.setElementState=function(t,e){var n=this.context.view,r=Object(o.getElements)(n);this.setHighlightBy(r,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.context.view;Object(a.clearHighlight)(t)},e}(s.default);e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"BOX_RANGE",(function(){return a})),n.d(e,"BOX_RANGE_ALIAS",(function(){return s})),n.d(e,"BOX_SYNC_NAME",(function(){return u})),n.d(e,"OUTLIERS_VIEW_ID",(function(){return l})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var r,i=n(29),o=n(3),a="$$range$$",s="low-q1-median-q3-high",u="$$y_outliers$$",l="outliers_view",c=Object(o.deepAssign)({},i.Plot.getDefaultOptions(),{meta:(r={},r[a]={min:0,alias:s},r),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}})},function(t,e,n){"use strict";n.r(e);var r=n(473),i=new Map,o=function(){function t(){}return Object.defineProperty(t,"onmessage",{set:function(t){self.onmessage=function(e){if(a(e)){var n=e.data,r=n.type,i=n.payload;t(r,i)}}},enumerable:!1,configurable:!0}),t.addEventListener=function(t){var e=i.get(t);e||(e=function(e){if(a(e)){var n=e.data,r=n.type,i=n.payload;t(r,i)}}),self.addEventListener("message",e)},t.removeEventListener=function(t){var e=i.get(t);i.delete(t),self.removeEventListener("message",e)},t.postMessage=function(t,e){if(self){var n={source:"Worker thread",type:t,payload:e},i=Object(r.getTransferList)(e);self.postMessage(n,i)}},t}();function a(t){var e=t.type,n=t.data;return"message"===e&&n&&"string"==typeof n.source&&"Main thread"===n.source}e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"HISTOGRAM_X_FIELD",(function(){return o})),n.d(e,"HISTOGRAM_Y_FIELD",(function(){return a})),n.d(e,"DEFAULT_OPTIONS",(function(){return s}));var r=n(29),i=n(3),o="range",a="count",s=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},function(t,e,n){!function(t){"use strict";function e(t){for(var e=new Array(t),n=0;nl+s*a*c||h>=g)p=a;else{if(Math.abs(d)<=-u*c)return a;d*(p-f)>=0&&(p=f),f=a,g=h}return 0}a=a||1,s=s||1e-6,u=u||.1;for(var v=0;v<10;++v){if(o(i.x,1,r.x,a,e),h=i.fx=t(i.x,i.fxprime),d=n(i.fxprime,e),h>l+s*a*c||v&&h>=f)return g(p,a,f);if(Math.abs(d)<=-u*c)return a;if(d>=0)return g(a,p,h);f=h,p=a,a*=2}return a}t.bisect=function(t,e,n,r){var i=(r=r||{}).maxIterations||100,o=r.tolerance||1e-10,a=t(e),s=t(n),u=n-e;if(a*s>0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===s)return n;for(var l=0;l=0&&(e=c),Math.abs(u)=g[p-1].fx){var M=!1;if(x.fx>T.fx?(o(O,1+f,_,-f,T),O.fx=t(O),O.fx=1)break;for(v=1;ve&&o>r||oi?s:0}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"CONTAINER_CLASS",(function(){return r})),n.d(e,"CROSSHAIR_LINE",(function(){return i})),n.d(e,"CROSSHAIR_TEXT",(function(){return o}));var r="g2-crosshair",i=r+"-line",o=r+"-text"},function(t,e,n){"use strict";n.r(e),n.d(e,"X_FIELD",(function(){return i})),n.d(e,"Y_FIELD",(function(){return o})),n.d(e,"NODE_COLOR_FIELD",(function(){return a})),n.d(e,"EDGE_COLOR_FIELD",(function(){return s})),n.d(e,"DEFAULT_OPTIONS",(function(){return u}));var r=n(1),i="x",o="y",a="name",s="source",u={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){return{offsetX:(t[0]+t[1])/2>.5?-4:4,content:e}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!Object(r.get)(t,[0,"data","isNode"])},formatter:function(t){var e=t.source,n=t.target,r=t.value;return{name:"".concat(e," -> ").concat(n),value:r}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05}},function(t,e,n){"use strict";var r,i;n.r(e),n.d(e,"AxisType",(function(){return r})),n.d(e,"DualAxesGeometry",(function(){return i})),function(t){t.Left="Left",t.Right="Right"}(r||(r={})),function(t){t.Line="line",t.Column="column"}(i||(i={}))},function(t,e,n){"use strict";n.r(e),n.d(e,"findInteraction",(function(){return s})),n.d(e,"enableInteraction",(function(){return u})),n.d(e,"enableDrillInteraction",(function(){return l})),n.d(e,"resetDrillDown",(function(){return c})),n.d(e,"transformData",(function(){return h}));var r=n(2),i=n(1),o=n(382),a=n(809);function s(t,e){if(Object(i.isArray)(t))return t.find((function(t){return t.type===e}))}function u(t,e){var n=s(t,e);return n&&!1!==n.enable}function l(t){var e=t.interactions,n=t.drilldown;return Object(i.get)(n,"enabled")||u(e,"treemap-drill-down")}function c(t){var e=t.interactions["drill-down"];e&&e.context.actions.find((function(t){return"drill-down-action"===t.name})).reset()}function h(t){var e=t.data,n=t.colorField,s=t.enableDrillDown,u=t.hierarchyConfig,l=Object(a.treemap)(e,Object(r.__assign)(Object(r.__assign)({},u),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),c=[];return l.forEach((function(t){if(0===t.depth)return null;if(s&&1!==t.depth)return null;if(!s&&t.children)return null;var a=t.ancestors().map((function(t){return{data:t.data,height:t.height,value:t.value}})),l=s&&Object(i.isArray)(e.path)?a.concat(e.path.slice(1)):a,h=Object.assign({},t.data,Object(r.__assign)({x:t.x,y:t.y,depth:t.depth,value:t.value,path:l},t));if(!t.data[n]&&t.parent){var f=t.ancestors().find((function(t){return t.data[n]}));h[n]=null==f?void 0:f.data[n]}else h[n]=t.data[n];h[o.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:u,colorField:n,enableDrillDown:s},c.push(h)})),c}},function(t,e,n){"use strict";n.r(e),n.d(e,"createMat4",(function(){return i})),n.d(e,"transformVector",(function(){return o})),n.d(e,"mod",(function(){return a})),n.d(e,"lerp",(function(){return s}));var r=n(167);function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t,e){var n=r.transformMat4([],e,t);return r.scale(n,n,1/n[3]),n}function a(t,e){var n=t%e;return n<0?e+n:n}function s(t,e,n){return n*e+(1-n)*t}},function(t,e,n){"use strict";e.__esModule=!0,e.isEmpty=e.isEqual=e.arrayEquals=e.looseEqual=e.capitalize=e.kebabCase=e.autoprefixer=e.isFirefox=e.isEdge=e.isIE=e.coerceTruthyValueToArray=e.arrayFind=e.arrayFindIndex=e.escapeRegexpString=e.valueEquals=e.generateId=e.getValueByPath=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.noop=function(){},e.hasOwn=function(t,e){return u.call(t,e)},e.toObject=function(t){for(var e={},n=0;n0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var c=e.arrayFindIndex=function(t,e){for(var n=0;n!==t.length;++n)if(e(t[n]))return n;return-1},h=(e.arrayFind=function(t,e){var n=c(t,e);return-1!==n?t[n]:void 0},e.coerceTruthyValueToArray=function(t){return Array.isArray(t)?t:t?[t]:[]},e.isIE=function(){return!a.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},e.isEdge=function(){return!a.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},e.isFirefox=function(){return!a.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},e.autoprefixer=function(t){if("object"!==(void 0===t?"undefined":r(t)))return t;var e=["ms-","webkit-"];return["transform","transition","animation"].forEach((function(n){var r=t[n];n&&r&&e.forEach((function(e){t[e+n]=r}))})),t},e.kebabCase=function(t){var e=/([^-])([A-Z])/g;return t.replace(e,"$1-$2").replace(e,"$1-$2").toLowerCase()},e.capitalize=function(t){return(0,s.isString)(t)?t.charAt(0).toUpperCase()+t.slice(1):t},e.looseEqual=function(t,e){var n=(0,s.isObject)(t),r=(0,s.isObject)(e);return n&&r?JSON.stringify(t)===JSON.stringify(e):!n&&!r&&String(t)===String(e)}),f=e.arrayEquals=function(t,e){if(e=e||[],(t=t||[]).length!==e.length)return!1;for(var n=0;n=this._maxSize&&a>0){var u=n.head;n.remove(u),delete i[u.key],o=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(41),i=n(23),o=n(16),a=n(348),s=n(0),u=n(28);function l(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function c(t){return null==t||Object(s.isObject)(t)||(t={isIgnore:t}),t||{}}function h(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Object(u.getLabelStatesModels)(e),cursorStyle:e.get("cursor")}}var f=function(){function t(t){this.group=new r.default,this._SymbolCtor=t||a.default}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=c(e);var n=this.group,r=t.hostModel,o=this._data,a=this._SymbolCtor,s=e.disableAnimation,u=h(t),f={disableAnimation:s},d=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||n.removeAll(),t.diff(o).add((function(r){var i=d(r);if(l(t,i,r,e)){var o=new a(t,r,u,f);o.setPosition(i),t.setItemGraphicEl(r,o),n.add(o)}})).update((function(c,h){var p=o.getItemGraphicEl(h),g=d(c);if(l(t,g,c,e)){var v=t.getItemVisual(c,"symbol")||"circle",m=p&&p.getSymbolType&&p.getSymbolType();if(!p||m&&m!==v)n.remove(p),(p=new a(t,c,u,f)).setPosition(g);else{p.updateData(t,c,u,f);var y={x:g[0],y:g[1]};s?p.attr(y):i.updateProps(p,y,r)}n.add(p),t.setItemGraphicEl(c,p)}else n.remove(p)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=d,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=h(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=c(n);for(var i=t.start;i=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}();e.default=r},function(t,e,n){"use strict";function r(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf((function(t){for(var e=r.getName(t),i=0;i3?1.4:i>1?1.2:1.1;l(this,"zoom","zoomOnMouseWheel",t,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r);l(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(r>0?1:-1)*(u>3?.4:u>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){a.isTaken(this._zr,"globalPan")||l(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(i.default);function l(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(o.stop(r.event),c(t,e,n,r,i))}function c(t,e,n,r,i){i.isAvailableBehavior=Object(s.bind)(h,null,n,r),t.trigger(e,i)}function h(t,e,n){var r=n[t];return!t||r&&(!Object(s.isString)(r)||e.event[r+"Key"])}e.default=u},function(t,e,n){"use strict";function r(t){return"number"==typeof t&&!isNaN(t)}function i(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}n.r(e),n.d(e,"isRealNumber",(function(){return r})),n.d(e,"isBetween",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"Event",(function(){return o}));var r=n(12),i=n(11),o=Object(r.default)((function t(e,n){Object(i.default)(this,t),this.cancelBubble=!1,this.cancelable=!1,this.target=null,this.currentTarget=null,this.preventDefault=function(){},this.stopPropagation=function(){},this.type=e,this.timeStamp=Date.now()}))},function(t,e,n){"use strict";n.r(e),n.d(e,"osmLonLat2TileXY",(function(){return o})),n.d(e,"osmTileXY2LonLat",(function(){return a})),n.d(e,"tileToBounds",(function(){return s})),n.d(e,"getTileIndices",(function(){return u})),n.d(e,"getTileWarpXY",(function(){return l}));var r=n(46),i=n(402);function o(t,e,n){return[Math.floor((t+180)/360*Math.pow(2,n)),Math.floor((1-Math.log(Math.tan(e*Math.PI/180)+1/Math.cos(e*Math.PI/180))/Math.PI)/2*Math.pow(2,n))]}function a(t,e,n){var r=t/Math.pow(2,n)*360-180,i=Math.PI-2*Math.PI*e/Math.pow(2,n);return[r,180/Math.PI*Math.atan(.5*(Math.exp(i)-Math.exp(-i)))]}var s=function(t,e,n){var i=a(t,e,n),o=Object(r.default)(i,2),s=o[0],u=o[1],l=a(t+1,e+1,n),c=Object(r.default)(l,2),h=c[0];return[s,c[1],h,u]};function u(t){var e=t.zoom,n=t.latLonBounds,a=t.maxZoom,s=void 0===a?1/0:a,u=t.minZoom,l=void 0===u?0:u,c=t.zoomOffset,h=void 0===c?0:c,f=t.extent,d=void 0===f?i.DEFAULT_EXTENT:f,p=Math.ceil(e)+h;if(Number.isFinite(l)&&ps&&(p=s);for(var g=Object(r.default)(n,4),v=g[0],m=g[1],y=g[2],b=g[3],_=[Math.max(v,d[0]),Math.max(m,d[1]),Math.min(y,d[2]),Math.min(b,d[3])],x=[],O=o(_[0],_[1],p),w=Object(r.default)(O,2),S=w[0],C=w[1],E=o(_[2],_[3],p),T=Object(r.default)(E,2),M=T[0],A=T[1],j=S;j<=M;j++)for(var I=A;I<=C;I++)x.push({x:j,y:I,z:p});var k=(M+S)/2,P=(C+A)/2,L=function(t,e){return Math.abs(t-k)+Math.abs(e-P)};return x.sort((function(t,e){return L(t.x,t.y)-L(e.x,e.y)})),x}var l=function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=Math.pow(2,n),o=i-1,a=t;return r&&(a<0?a+=i:a>o&&(a%=i)),{warpX:a,warpY:e}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getDecalFromPalette",(function(){return s})),n.d(e,"PaletteMixin",(function(){return a}));var r=n(10),i=Object(r.makeInner)(),o=Object(r.makeInner)(),a=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var o=Object(r.normalizeToArray)(this.get("color",!0)),a=this.get("colorLayer",!0);return u(this,i,o,a,t,e,n)},t.prototype.clearColorPalette=function(){var t,e;(e=i)(t=this).paletteIdx=0,e(t).paletteNameMap={}},t}();function s(t,e,n,i){var a=Object(r.normalizeToArray)(t.get(["aria","decal","decals"]));return u(t,o,a,null,e,n,i)}function u(t,e,n,r,i,o,a){var s=e(o=o||t),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var c=null!=a&&r?function(t,e){for(var n=t.length,r=0;re)return t[r];return t[n-1]}(r,a):n;if((c=c||n)&&c.length){var h=c[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%c.length,h}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return l}));var r=n(4),i=n(748),o=n(35),a=n(585),s=n(1435),u=n(0);function l(t,e,n,l){Object(u.each)(s.AXIS_TYPES,(function(s,h){var f=Object(u.merge)(Object(u.merge)({},i.default[h],!0),l,!0),d=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+h,n}return Object(r.__extends)(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Object(o.fetchLayoutMode)(this),r=n?Object(o.getLayoutParams)(t):{},i=e.getTheme();Object(u.merge)(t,i.get(h+"Axis")),Object(u.merge)(t,this.getDefaultOption()),t.type=c(t),n&&Object(o.mergeLayoutParam)(t,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=a.default.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+h,n.defaultOption=f,n}(n);t.registerComponentModel(d)})),t.registerSubTypeDefaulter(e+"Axis",c)}function c(t){return t.type||(t.data?"category":"value")}},function(t,e,n){"use strict";n.r(e),n.d(e,"getShapeAttrs",(function(){return u})),n.d(e,"getConstraint",(function(){return l}));var r=n(1),i=n(202),o=n(72),a=n(184);function s(t,e,n,i,o){var s=[];if(t.length){for(var u=[],l=[],c=0,h=t.length;c0&&(c[0][0]="L")),s=s.concat(c)})),s.push(["Z"])}return s}function u(t,e,n,r,a){for(var u=Object(o.getStyle)(t,e,!e,"lineWidth"),l=t.connectNulls,c=t.isInCircle,h=t.points,f=t.showSinglePoint,d=Object(i.getPathPoints)(h,l,f),p=[],g=0,v=d.length;g=0;--o)u.push(r=i[o]=new x(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(_)}function m(t){return t.children}function y(t){return Array.isArray(t)?t[1]:null}function b(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function _(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function x(t){this.data=t,this.depth=this.height=0,this.parent=null}x.prototype=v.prototype={constructor:x,count:r.default,each:i.default,eachAfter:a.default,eachBefore:o.default,find:s.default,sum:u.default,sort:l.default,path:c.default,ancestors:h.default,descendants:f.default,leaves:d.default,links:p.default,copy:function(){return v(this).eachBefore(b)},[Symbol.iterator]:g.default}},function(t,e,n){"use strict";var r,i,o,a;n.r(e),n.d(e,"BlendType",(function(){return r})),n.d(e,"StencilType",(function(){return i})),n.d(e,"MaskOperation",(function(){return o})),n.d(e,"ILayerStage",(function(){return a})),function(t){t.normal="normal",t.additive="additive",t.subtractive="subtractive",t.min="min",t.max="max",t.none="none"}(r||(r={})),function(t){t.MULTIPLE="MULTIPLE",t.SINGLE="SINGLE"}(i||(i={})),function(t){t.AND="and",t.OR="or"}(o||(o={})),function(t){t.INIT="init",t.UPDATE="update"}(a||(a={}))},function(t,e,n){"use strict";n.r(e),n.d(e,"LEFT_BUTTON",(function(){return o})),n.d(e,"RIGHT_BUTTON",(function(){return a})),n.d(e,"BUTTONS_FLAGS",(function(){return s})),n.d(e,"buttonStillPressed",(function(){return u}));var r,i=n(6),o=0,a=2,s=(r={},Object(i.default)(r,o,1),Object(i.default)(r,a,2),r);function u(t,e){var n=s[e];return void 0===t.buttons||(t.buttons&n)!==n}},function(t,e,n){"use strict";n.r(e),n.d(e,"findExistImage",(function(){return a})),n.d(e,"createOrUpdateImage",(function(){return s})),n.d(e,"isImageReady",(function(){return l}));var r=n(310),i=n(104),o=new r.default(50);function a(t){if("string"==typeof t){var e=o.get(t);return e&&e.image}return t}function s(t,e,n,r,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=o.get(t),c={hostEl:n,cb:r,cbPayload:a};return s?!l(e=s.image)&&s.pending.push(c):((e=i.platformApi.loadImage(t,u,u)).__zrImageSrc=t,o.put(t,e.__cachedImgObj={image:e,pending:[c]})),e}return t}return e}function u(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;en&&(t=i,n=a)}if(t)return function(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s0&&o&&O(-h/a,0,a);var v,m,y=t[0],b=t[a-1];return _(),v<0&&w(-v,.8),m<0&&w(m,.8),_(),x(v,m,1),x(m,v,-1),_(),v<0&&S(-v),m<0&&S(m),l}function _(){v=y.rect[e]-r,m=i-b.rect[e]-b.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){O(r*n,0,a);var i=r+t;i<0&&w(-i*n,1)}else w(-t*n,1)}}function O(n,r,i){0!==n&&(l=!0);for(var o=r;o0)for(u=0;u0;u--){O(-(o[u-1]*h),u,a)}}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r0?O(n,0,r+1):O(-n,a-r-1,a),(t-=n)<=0)return}}function s(t,e,n,r){return a(t,"x","width",e,n,r)}function u(t,e,n,r){return a(t,"y","height",e,n,r)}function l(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new i.default(0,0,0,0);function o(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var a=0;a2&&(n.push([i].concat(s.splice(0,2))),u="l",i="m"===i?"l":"L"),"o"===u&&1===s.length&&n.push([i,s[0]]),"r"===u)n.push([i].concat(s));else for(;s.length>=e[u]&&(n.push([i].concat(s.splice(0,e[u]))),e[u]););return t})),n},u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},l=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),u=t+n*Math.cos(-i*a);o=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,c=0,h=0;"M"===t[0][0]&&(a=i=+t[0][1],c=o=+t[0][2],h++,r[0]=["M",i,o]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=void 0,p=void 0,g=h,v=t.length;g1&&(n*=O=Math.sqrt(O),r*=O);var w=n*n,S=r*r,C=(o===a?-1:1)*Math.sqrt(Math.abs((w*S-w*x*x-S*_*_)/(w*x*x+S*_*_)));p=C*n*x/r+(t+s)/2,g=C*-r*_/n+(e+u)/2,h=Math.asin(((e-g)/r).toFixed(9)),f=Math.asin(((u-g)/r).toFixed(9)),h=tf&&(h-=2*Math.PI),!a&&f>h&&(f-=2*Math.PI)}var E=f-h;if(Math.abs(E)>v){var T=f,M=s,A=u;f=h+v*(a&&f>h?1:-1),s=p+n*Math.cos(f),u=g+r*Math.sin(f),y=d(s,u,n,r,i,0,a,M,A,[f,T,p,g])}E=f-h;var j=Math.cos(h),I=Math.sin(h),k=Math.cos(f),P=Math.sin(f),L=Math.tan(E/4),D=4/3*n*L,R=4/3*r*L,N=[t,e],F=[t+D*I,e-R*j],B=[s+D*P,u-R*k],z=[s,u];if(F[0]=2*N[0]-F[0],F[1]=2*N[1]-F[1],l)return[F,B,z].concat(y);for(var V=[],U=0,G=(y=[F,B,z].concat(y).join().split(",")).length;U7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},m=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var y=0;y1?1:u<0?0:u)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,d=0;d<12;d++){var p=l*c[d]+l,g=m(p,t,n,i,a),v=m(p,e,r,o,s),y=g*g+v*v;f+=h[d]*Math.sqrt(y)}return l*f},b=function(t,e,n,r,i,o,a,s){for(var u,l,c,h,f=[],d=[[],[]],p=0;p<2;++p)if(0===p?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,c=3*n-3*t):(l=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(l)<1e-12)continue;(h=-c/l)>0&&h<1&&f.push(h)}else{var g=l*l-4*c*u,v=Math.sqrt(g);if(!(g<0)){var m=(-l+v)/(2*u);m>0&&m<1&&f.push(m);var y=(-l-v)/(2*u);y>0&&y<1&&f.push(y)}}for(var b,_=f.length,x=_;_--;)b=1-(h=f[_]),d[0][_]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*a,d[1][_]=b*b*b*e+3*b*b*h*r+3*b*h*h*o+h*h*h*s;return d[0][x]=t,d[1][x]=e,d[0][x+1]=a,d[1][x+1]=s,d[0].length=d[1].length=x+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},_=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)Math.max(i,a)||Math.max(e,r)Math.max(o,s))){var u=(t-n)*(o-s)-(e-r)*(i-a);if(u){var l=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/u,c=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/u,h=+l.toFixed(2),f=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,a).toFixed(2)||h>+Math.max(i,a).toFixed(2)||f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(o,s).toFixed(2)||f>+Math.max(o,s).toFixed(2)))return{x:l,y:c}}}},x=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},O=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=v,o},w=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:O(t,e,n,r),vb:[t,e,n,r].join(" ")}},S=function(t,e,n,i,o,a,s,u){Object(r.isArray)(t)||(t=[t,e,n,i,o,a,s,u]);var l=b.apply(null,t);return w(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},C=function(t,e,n,r,i,o,a,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),f=u*u,d=f*u,p=t+2*u*(n-t)+f*(i-2*n+t),g=e+2*u*(r-e)+f*(o-2*r+e),v=n+2*u*(i-n)+f*(a-2*i+n),m=r+2*u*(o-r)+f*(s-2*o+r);return{x:c*t+3*h*u*n+3*l*u*u*i+d*a,y:c*e+3*h*u*r+3*l*u*u*o+d*s,m:{x:p,y:g},n:{x:v,y:m},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*a,y:l*o+u*s},alpha:90-180*Math.atan2(p-v,g-m)/Math.PI}},E=function(t,e,n){if(!function(t,e){return t=w(t),e=w(e),x(e,t.x,t.y)||x(e,t.x2,t.y)||x(e,t.x,t.y2)||x(e,t.x2,t.y2)||x(t,e.x,e.y)||x(t,e.x2,e.y)||x(t,e.x,e.y2)||x(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(S(t),S(e)))return n?0:[];for(var r=~~(y.apply(0,t)/8),i=~~(y.apply(0,e)/8),o=[],a=[],s={},u=n?0:[],l=0;l=0&&O<=1&&E>=0&&E<=1&&(n?u+=1:u.push({x:b.x,y:b.y,t1:O,t2:E}))}}return u},T=function(t,e){return function(t,e,n){var r,i,o,a,s,u,l,c,h,f;t=p(t),e=p(e);for(var d=n?0:[],g=0,v=t.length;g=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},j=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a=0;u--)a=o[u].index,"add"===o[u].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=i-(r=t.length);if(r0)){t[r]=e[r];break}n=L(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=L(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=L(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,u=0;if(a>e+s&&a>r+s||at+s&&o>n+s||o1||e<0||t.length<2)return null;var n=o(t),i=n.segments,a=n.totalLength;if(0===a)return{x:t[0][0],y:t[0][1]};for(var s=0,u=null,l=0;l=s&&e<=s+d){var p=(e-s)/d;u=r.default.pointAt(h[0],h[1],f[0],f[1],p);break}s+=d}return u}function u(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=o(t),r=n.segments,i=n.totalLength,a=0,s=0,u=0;u=a&&e<=a+f){s=Math.atan2(h[1]-c[1],h[0]-c[0]);break}a+=f}return s}function l(t,e,n){for(var i=1/0,o=0;o=s.left?a.left:s.left;r.autoPadding=n.instance(a.top,a.right,a.bottom/2+5,h),i.autoPadding=n.instance(a.bottom/2+5,s.right,s.bottom,h)}if(!o(l)&&"top"===c){h=a.left>=s.left?a.left:s.left;r.autoPadding=n.instance(a.top,a.right,0,h),i.autoPadding=n.instance(0,s.right,a.top,h)}}},function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"viewport-mercator-project: assertion failed.")}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"applyMorphAnimation",(function(){return h})),n.d(e,"getPathList",(function(){return f}));var r=n(618),i=n(38),o=n(0),a=n(23),s=n(261);function u(t){return Object(o.isArray)(t[0])}function l(t,e){for(var n=[],r=t.length,i=0;i=0;i--)if(!n[i].many.length){var u=n[s].many;if(u.length<=1){if(!s)return n;s=0}o=u.length;var l=Math.ceil(o/2);n[i].many=u.slice(l,o),n[s].many=u.slice(0,l),s++}return n}var c={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r0){var d,p,g=i.getModel("universalTransition").get("delay"),v=Object.assign({setToFinal:!0},f);u(t)&&(d=t,p=e),u(e)&&(d=e,p=t);for(var m=d?d===t:t.length>e.length,y=d?l(p,d):l(m?e:t,[m?t:e]),b=0,_=0;_-1}var p=e.getStyle=l<9?function(t,e){if(!a){if(!t||!e)return null;"float"===(e=c(e))&&(e="styleFloat");try{switch(e){case"opacity":try{return t.filters.item("alpha").opacity/100}catch(t){return 1}default:return t.style[e]||t.currentStyle?t.currentStyle[e]:null}}catch(n){return t.style[e]}}}:function(t,e){if(!a){if(!t||!e)return null;"float"===(e=c(e))&&(e="cssFloat");try{var n=document.defaultView.getComputedStyle(t,"");return t.style[e]||n?n[e]:null}catch(n){return t.style[e]}}};var g=e.isScroll=function(t,e){if(!a)return p(t,null!=e?e?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto|overlay)/)};e.getScrollContainer=function(t,e){if(!a){for(var n=t;n;){if([window,document,document.documentElement].includes(n))return window;if(g(n,e))return n;n=n.parentNode}return n}},e.isInContainer=function(t,e){if(a||!t||!e)return!1;var n=t.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(e)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:e.getBoundingClientRect(),n.topr.top&&n.right>r.left&&n.left0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Object(s.createObject)(l,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Object(o.getBoundingRect)(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(i.default);c.prototype.type="tspan",e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"DataFormatMixin",(function(){return s})),n.d(e,"normalizeTooltipFormatResult",(function(){return u}));var r=n(0),i=n(183),o=n(68),a=/\{@(.+?)\}/g,s=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),u=s&&s[n.getItemVisual(t,"drawType")||"fill"],l=s&&s.stroke,c=this.mainType,h="series"===c,f=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:u,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,s,u,l){e=e||"normal";var c=this.getData(n),h=this.getDataParams(t,n);(l&&(h.value=l.interpolatedValue),null!=s&&r.isArray(h.value)&&(h.value=h.value[s]),u)||(u=c.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return r.isFunction(u)?(h.status=e,h.dimensionIndex=s,u(h)):r.isString(u)?Object(o.formatTpl)(u,h).replace(a,(function(e,n){var o=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(o-1)&&(a=+a.slice(1,o-1));var s=Object(i.retrieveRawValue)(c,t,a);if(l&&r.isArray(l.interpolatedValue)){var u=c.getDimensionIndex(a);u>=0&&(s=l.interpolatedValue[u])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return Object(i.retrieveRawValue)(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function u(t){var e,n;return r.isObject(t)?t.type&&(n=t):e=t,{text:e,frag:n}}},function(t,e,n){"use strict";n.r(e),n.d(e,"summarizeDimensions",(function(){return a})),n.d(e,"getDimensionTypeByAxis",(function(){return u}));var r=n(0),i=n(32),o=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function a(t,e){var n={},a=n.encode={},u=Object(r.createHashMap)(),l=[],c=[],h={};Object(r.each)(t.dimensions,(function(e){var n,r=t.getDimensionInfo(e),o=r.coordDim;if(o){0;var f=r.coordDimIndex;s(a,o)[f]=e,r.isExtraCoord||(u.set(o,1),"ordinal"!==(n=r.type)&&"time"!==n&&(l[0]=e),s(h,o)[f]=t.getDimensionIndex(r.name)),r.defaultTooltip&&c.push(e)}i.VISUAL_DIMENSIONS.each((function(t,e){var n=s(a,e),i=r.otherDims[e];null!=i&&!1!==i&&(n[i]=r.name)}))}));var f=[],d={};u.each((function(t,e){var n=a[e];d[e]=n[0],f=f.concat(n)})),n.dataDimsOnCoord=f,n.dataDimIndicesOnCoord=Object(r.map)(f,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=d;var p=a.label;p&&p.length&&(l=p.slice());var g=a.tooltip;return g&&g.length?c=g.slice():c.length||(c=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=c,n.userOutput=new o(h,e),n}function s(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function u(t){return"category"===t?"ordinal":"time"===t?"time":"float"}},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n(63),o=n(23),a=n(41),s=n(33),u=n(13),l=n(240),c=n(0),h=n(28),f=n(111),d=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return Object(r.__extends)(e,t),e.prototype._createSymbol=function(t,e,n,r,o){this.removeAll();var a=Object(i.createSymbol)(t,-1,-1,2,2,null,o);a.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=p,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Object(u.enterEmphasis)(this.childAt(0))},e.prototype.downplay=function(){Object(u.leaveEmphasis)(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var a=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,u=e.getSymbolSize(t,n),l=a!==this._symbolType,c=i&&i.disableAnimation;if(l){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,u,h)}else{(d=this.childAt(0)).silent=!1;var f={scaleX:u[0]/2,scaleY:u[1]/2};c?d.attr(f):o.updateProps(d,f,s,n),Object(o.saveOldStyle)(d)}if(this._updateCommon(t,n,u,r,i),l){var d=this.childAt(0);if(!c){f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,o.initProps(d,f,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,o){var a,s,d,p,g,v,m,y,b,_=this.childAt(0),x=t.hostModel;if(r&&(a=r.emphasisItemStyle,s=r.blurItemStyle,d=r.selectItemStyle,p=r.focus,g=r.blurScope,m=r.labelStatesModels,y=r.hoverScale,b=r.cursorStyle,v=r.emphasisDisabled),!r||t.hasItemOption){var O=r&&r.itemModel?r.itemModel:t.getItemModel(e),w=O.getModel("emphasis");a=w.getModel("itemStyle").getItemStyle(),d=O.getModel(["select","itemStyle"]).getItemStyle(),s=O.getModel(["blur","itemStyle"]).getItemStyle(),p=w.get("focus"),g=w.get("blurScope"),v=w.get("disabled"),m=Object(h.getLabelStatesModels)(O),y=w.getShallow("scale"),b=O.getShallow("cursor")}var S=t.getItemVisual(e,"symbolRotate");_.attr("rotation",(S||0)*Math.PI/180||0);var C=Object(i.normalizeSymbolOffset)(t.getItemVisual(e,"symbolOffset"),n);C&&(_.x=C[0],_.y=C[1]),b&&_.attr("cursor",b);var E=t.getItemVisual(e,"style"),T=E.fill;if(_ instanceof f.default){var M=_.style;_.useStyle(Object(c.extend)({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},E))}else _.__isEmptyBrush?_.useStyle(Object(c.extend)({},E)):_.useStyle(E),_.style.decal=null,_.setColor(T,o&&o.symbolInnerColor),_.style.strokeNoScale=!0;var A=t.getItemVisual(e,"liftZ"),j=this._z2;null!=A?null==j&&(this._z2=_.z2,_.z2+=A):null!=j&&(_.z2=j,this._z2=null);var I=o&&o.useNameLabel;Object(h.setLabelStyle)(_,m,{labelFetcher:x,labelDataIndex:e,defaultText:function(e){return I?t.getName(e):Object(l.getDefaultLabel)(t,e)},inheritColor:T,defaultOpacity:E.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var k=_.ensureState("emphasis");k.style=a,_.ensureState("select").style=d,_.ensureState("blur").style=s;var P=null==y||!0===y?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;k.scaleX=this._sizeX*P,k.scaleY=this._sizeY*P,this.setSymbolScale(1),Object(u.toggleHoverEmphasis)(this,p,g,v)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Object(s.getECData)(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var u=r.getTextContent();u&&o.removeElement(u,{style:{opacity:0}},e,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();o.removeElement(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:a})},e.getSymbolSize=function(t,e){return Object(i.normalizeSymbolSize)(t.getItemVisual(e,"symbolSize"))},e}(a.default);function p(t,e){this.parent.drift(t,e)}e.default=d},function(t,e,n){"use strict";n.r(e),n.d(e,"collect",(function(){return o})),n.d(e,"fixValue",(function(){return s})),n.d(e,"getAxisInfo",(function(){return u})),n.d(e,"getAxisPointerModel",(function(){return l})),n.d(e,"makeKey",(function(){return h}));var r=n(57),i=n(0);function o(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var o=e.getComponent("tooltip"),s=e.getComponent("axisPointer"),u=s.get("link",!0)||[],l=[];Object(i.each)(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var f=h(n.model),d=t.coordSysAxesInfo[f]={};t.coordSysMap[f]=n;var p=n.model.getModel("tooltip",o);if(Object(i.each)(n.getAxes(),Object(i.curry)(y,!1,null)),n.getTooltipAxes&&o&&p.get("show")){var g="axis"===p.get("trigger"),v="cross"===p.get(["axisPointer","type"]),m=n.getTooltipAxes(p.get(["axisPointer","axis"]));(g||v)&&Object(i.each)(m.baseAxes,Object(i.curry)(y,!v||"cross",g)),v&&Object(i.each)(m.otherAxes,Object(i.curry)(y,"cross",!1))}}function y(o,f,g){var v=g.model.getModel("axisPointer",s),m=v.get("show");if(m&&("auto"!==m||o||c(v))){null==f&&(f=v.get("triggerTooltip"));var y=(v=o?function(t,e,n,o,a,s){var u=e.getModel("axisPointer"),l={};Object(i.each)(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){l[t]=Object(i.clone)(u.get(t))})),l.snap="category"!==t.type&&!!s,"cross"===u.get("type")&&(l.type="line");var c=l.label||(l.label={});if(null==c.show&&(c.show=!1),"cross"===a){var h=u.get(["label","show"]);if(c.show=null==h||h,!s){var f=l.lineStyle=u.get("crossStyle");f&&Object(i.defaults)(c,f.textStyle)}}return t.model.getModel("axisPointer",new r.default(l,n,o))}(g,p,s,e,o,f):v).get("snap"),b=h(g.model),_=f||y||"category"===g.type,x=t.axesInfo[b]={key:b,axis:g,coordSys:n,axisPointerModel:v,triggerTooltip:f,involveSeries:_,snap:y,useHandle:c(v),seriesModels:[],linkGroup:null};d[b]=x,t.seriesInvolved=t.seriesInvolved||_;var O=function(t,e){for(var n=e.model,r=e.dim,i=0;i=0||t===e}function s(t){var e=u(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=c(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),ao&&(o=e);var s=o%2?o+2:o+3;a=[];for(var u=0;uthis.ne.lng&&(a=this.sw.lng>=n&&n>=this.ne.lng),i&&a}}],[{key:"convert",value:function(e){return e instanceof t?e:new t(e)}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"SeriesDataSchema",(function(){return u})),n.d(e,"isSeriesDataSchema",(function(){return l})),n.d(e,"createDimNameMap",(function(){return c})),n.d(e,"ensureSourceDimNameMap",(function(){return h})),n.d(e,"shouldOmitUnusedDimensions",(function(){return f}));var r=n(0),i=n(10),o=n(148),a=Object(i.makeInner)(),s={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},u=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=h(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(r.retrieve2)(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Object(o.shouldRetrieveDataByName)(this.source),n=!f(t),r="",i=[],a=0,u=0;a30}},function(t,e,n){"use strict";function r(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function i(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,u=o.max||1/0;a=Math.max(Math.min(u,a),s)}var l=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(l-1),i.y-=(r-i.y)*(l-1),i.scaleX*=l,i.scaleY*=l,i.dirty()}n.r(e),n.d(e,"updateViewOnPan",(function(){return r})),n.d(e,"updateViewOnZoom",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"SHAPES",(function(){return a})),n.d(e,"HOLLOW_SHAPES",(function(){return s})),n.d(e,"drawPoints",(function(){return u}));var r=n(2),i=n(265),o=n(72),a=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],s=["cross","tick","plus","hyphen","line"];function u(t,e,n,a,s){var u,l,c=Object(o.getStyle)(e,s,!s,"r"),h=t.parsePoints(e.points),f=h[0];if(e.isStack)f=h[1];else if(h.length>1){var d=n.addGroup();try{for(var p=Object(r.__values)(h),g=p.next();!g.done;g=p.next()){var v=g.value;d.addShape({type:"marker",attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},c),{symbol:i.MarkerSymbols[a]||a}),v)})}}catch(t){u={error:t}}finally{try{g&&!g.done&&(l=p.return)&&l.call(p)}finally{if(u)throw u.error}}return d}return n.addShape({type:"marker",attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},c),{symbol:i.MarkerSymbols[a]||a}),f)})}},function(t,e,n){"use strict";n.r(e);var r=n(173).default.Symbol;e.default=r},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLElement",(function(){return d}));var r=n(12),i=n(11),o=n(14),a=n(25),s=n(27),u=n(15),l=n(824),c=n(154);function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(u.default)(t);if(e){var i=Object(u.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(s.default)(this,n)}}function f(){}var d=function(t){Object(a.default)(n,t);var e=h(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0;return Object(i.default)(this,n),(t=e.call(this)).className="",t.children=[],t.focus=f,t.blur=f,t.insertBefore=f,t.appendChild=f,t.removeChild=f,t.remove=f,t.innerHTML="",t.tagName=r.toUpperCase(),c.parentNode(Object(o.default)(t),a),c.style(Object(o.default)(t)),c.classList(Object(o.default)(t)),c.clientRegion(Object(o.default)(t)),c.offsetRegion(Object(o.default)(t)),c.scrollRegion(Object(o.default)(t)),t}return Object(r.default)(n)}(l.Element)},function(t,e,n){"use strict";n.r(e),n.d(e,"contain",(function(){return o}));var r=n(298);function i(t,e){return Math.abs(t-e)<1e-8}function o(t,e,n){var o=0,a=t[0];if(!a)return!1;for(var s=1;s",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Object(s.createBBox)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(s.clearDom)(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(Object(o.isNil)(t)){t=this.createDom();var e=this.get("parent");Object(o.isString)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else Object(o.isString)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?Object(o.deepMix)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Object(s.hasClass)(e,n)){var r=t[n];Object(i.modifyCSS)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){var n=this;Object(o.each)(e,(function(e,u){var l=t.getElementsByClassName(u);Object(o.each)(l,(function(t){var o=n.get("containerClassName"),u=e;Object(s.hasClass)(t,a.CONTAINER_CLASS)&&o===a.CONTAINER_CLASS_CUSTOM&&(u=Object(r.__assign)(Object(r.__assign)({},e),{visibility:"unset",position:"unset"})),Object(i.modifyCSS)(t,u)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(i.modifyCSS)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(i.createDom)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){Object(o.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(n(459).default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(8),a=n(150),s=n(73),u=n(1673);function l(t){var e=0;return Object(i.each)(t,(function(t){e+=t})),e/t.length}var c=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],o=this.getLabelCfgs(t);return Object(i.each)(t,(function(t,a){var s=o[a];if(!s||Object(i.isNil)(t.x)||Object(i.isNil)(t.y))n.push(null);else{var u=Object(i.isArray)(s.content)?s.content:[s.content];s.content=u;var l=u.length;Object(i.each)(u,(function(o,a){if(Object(i.isNil)(o)||""===o)n.push(null);else{var u=Object(r.__assign)(Object(r.__assign)({},s),e.getLabelPoint(s,t,a));u.textAlign||(u.textAlign=e.getLabelAlign(u,a,l)),u.offset<=0&&(u.labelLine=null),n.push(u)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),Object(r.__awaiter)(this,void 0,void 0,(function(){var n,i,o;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return n=this.getLabelItems(t),i=this.getLabelsRenderer(),o=this.getGeometryShapes(),[4,i.render(n,o,e)];case 1:return r.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,o=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?Object(i.get)(o,"innerLabels",{}):Object(i.get)(o,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,o=e.theme;return"polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?Object(i.deepMix)({},n,o.innerLabels,t):Object(i.deepMix)({},n,o.labels,t)},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i=this.getCoordinate().isTransposed,o=i?"x":"y",a=i?1:-1,s={x:0,y:0};return s[o]=e>0||1===n?r*a:r*a*-1,s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),o=t.content.length;function a(e,n,r){void 0===r&&(r=!1);var o=e;return Object(i.isArray)(o)&&(o=1===t.content.length?r?l(o):o.length<=2?o[e.length-1]:l(o):o[n]),o}var u={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=Object(i.isArray)(e.shape)?e.shape[0]:e.shape,h="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var f=Object(s.getPolygonCentroid)(e.x,e.y);u.x=f[0],u.y=f[1]}else"interval"!==this.geometry.type||h?(u.x=a(e.x,n),u.y=a(e.y,n)):(u.x=a(e.x,n,!0),u.y=a(e.y,n));if(h){var d=Object(i.get)(e,"nextPoints"),p=Object(i.get)(e,"points");if(d){var g=r.convert(p[1]),v=r.convert(d[1]);u.x=(g.x+v.x)/2,u.y=(g.y+v.y)/2}else if("pyramid"===c){g=r.convert(p[1]),v=r.convert(p[2]);u.x=(g.x+v.x)/2,u.y=(g.y+v.y)/2}}t.position&&this.setLabelPosition(u,e,n,t.position);var m=this.getLabelOffsetPoint(t,n,o);return u.start={x:u.x,y:u.y},u.x+=m.x,u.y+=m.y,u.color=e.color,u},t.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.getCoordinate().isTransposed){var i=t.offset;r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),a=t[o.FIELD_ORIGIN],s=e.getElementId(t);return"line"===n||"area"===n?s+=" ".concat(a[r.field]):"path"===n&&(s+=" ".concat(a[r.field],"-").concat(a[i.field])),s},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,o=t.animateOption,s=this.geometry.coordinate,l=this.labelsRenderer;return l||(l=new u.default({container:e,layout:Object(i.get)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=l),l.region=r,l.animate=!!o&&Object(a.getDefaultAnimateCfg)("label",s),l},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,a=n.labelOption,s=n.scales,u=n.coordinate,l=a,c=l.fields,h=l.callback,f=l.cfg,d=c.map((function(t){return s[t]})),p=[];return Object(i.each)(t,(function(t,n){var a,s=t[o.FIELD_ORIGIN],l=e.getLabelText(s,d);if(h){var g=c.map((function(t){return s[t]}));if(a=h.apply(void 0,Object(r.__spreadArray)([],Object(r.__read)(g),!1)),Object(i.isNil)(a))return void p.push(null)}var v=Object(r.__assign)(Object(r.__assign)({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:s,mappingData:t,coordinate:u},f),a);Object(i.isFunction)(v.position)&&(v.position=v.position(s,t,n));var m=e.getLabelOffset(v.offset||0),y=e.getDefaultLabelCfg(m,v.position);(v=Object(i.deepMix)({},y,v)).offset=e.getLabelOffset(v.offset||0);var b=v.content;Object(i.isFunction)(b)?v.content=b(s,t,n):Object(i.isUndefined)(b)&&(v.content=l[0]),p.push(v)})),p},t.prototype.getLabelText=function(t,e){var n=[];return Object(i.each)(e,(function(e){var r=t[e.field];r=Object(i.isArray)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),Object(i.isNil)(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return Object(i.isNumber)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Object(i.each)(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(i.each)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(131);n.d(e,"Base",(function(){return r.default}));var i=n(1215);n.d(e,"Circle",(function(){return i.default}));var o=n(1216);n.d(e,"Dom",(function(){return o.default}));var a=n(1217);n.d(e,"Ellipse",(function(){return a.default}));var s=n(1218);n.d(e,"Image",(function(){return s.default}));var u=n(1219);n.d(e,"Line",(function(){return u.default}));var l=n(1220);n.d(e,"Marker",(function(){return l.default}));var c=n(1221);n.d(e,"Path",(function(){return c.default}));var h=n(1222);n.d(e,"Polygon",(function(){return h.default}));var f=n(1223);n.d(e,"Polyline",(function(){return f.default}));var d=n(1224);n.d(e,"Rect",(function(){return d.default}));var p=n(1225);n.d(e,"Text",(function(){return p.default}))},function(t,e,n){"use strict";n.r(e),n.d(e,"adjustYMetaByZero",(function(){return s})),n.d(e,"transformDataToNodeLinkData",(function(){return u})),n.d(e,"processIllegalData",(function(){return l}));var r=n(2),i=n(1),o=n(414),a=n(353);function s(t,e){if(!t)return{};var n=t.filter((function(t){var n=Object(i.get)(t,[e]);return Object(i.isNumber)(n)&&!isNaN(n)})),r=n.every((function(t){return Object(i.get)(t,[e])>=0})),o=n.every((function(t){return Object(i.get)(t,[e])<=0}));return r?{min:0}:o?{max:0}:{}}function u(t,e,n,i,o){if(void 0===o&&(o=[]),!Array.isArray(t))return{nodes:[],links:[]};var s=[],u={},l=-1;return t.forEach((function(t){var c=t[e],h=t[n],f=t[i],d=Object(a.pick)(t,o);u[c]||(u[c]=Object(r.__assign)({id:++l,name:c},d)),u[h]||(u[h]=Object(r.__assign)({id:++l,name:h},d)),s.push(Object(r.__assign)({source:u[c].id,target:u[h].id,value:f},d))})),{nodes:Object.values(u).sort((function(t,e){return t.id-e.id})),links:s}}function l(t,e){var n=Object(i.filter)(t,(function(t){var n=t[e];return null===n||"number"==typeof n&&!isNaN(n)}));return Object(o.log)(o.LEVEL.WARN,n.length===t.length,"illegal data existed in chart data."),n}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e,n,r,i){for(var o,a=t.children,s=-1,u=a.length,l=t.value&&(i-n)/t.value;++s>8&255,t+1>>8>>8&255]}function l(t){var e=i.$window.document.createElement("canvas"),n=e.getContext("2d");e.width=256,e.height=1;for(var r=null,o=n.createLinearGradient(0,0,256,1),a=t.positions[0],s=t.positions[t.positions.length-1],u=0;u0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.panTo([t,e])}},{key:"fitBounds",value:function(t,e){this.map.fitBounds(t,e)}},{key:"setMaxZoom",value:function(t){this.map.setMaxZoom(t)}},{key:"setMinZoom",value:function(t){this.map.setMinZoom(t)}},{key:"setMapStatus",value:function(t){!0===t.doubleClickZoom&&this.map.doubleClickZoom.enable(),!1===t.doubleClickZoom&&this.map.doubleClickZoom.disable(),!1===t.dragEnable&&this.map.dragPan.disable(),!0===t.dragEnable&&this.map.dragPan.enable(),!1===t.rotateEnable&&this.map.dragRotate.disable(),!0===t.dragEnable&&this.map.dragRotate.enable(),!1===t.keyboardEnable&&this.map.keyboard.disable(),!0===t.keyboardEnable&&this.map.keyboard.enable(),!1===t.zoomEnable&&this.map.scrollZoom.disable(),!0===t.zoomEnable&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(t,e){this.map.flyTo({zoom:t,center:e})}},{key:"setMapStyle",value:function(t){this.map.setStyle(this.getMapStyleValue(t))}},{key:"meterToCoord",value:function(t,e){return 1}},{key:"pixelToLngLat",value:function(t){return this.map.unproject(t)}},{key:"lngLatToPixel",value:function(t){return this.map.project(t)}},{key:"containerToLngLat",value:function(t){return this.map.unproject(t)}},{key:"lngLatToContainer",value:function(t){return this.map.project(t)}},{key:"getMapStyle",value:function(){try{var t,e=null!==(t=this.map.getStyle().sprite)&&void 0!==t?t:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(e)?null==e?void 0:e.replace(/\/\w+$/,"").replace(/sprites/,"styles"):e}catch(t){return""}}},{key:"getMapStyleConfig",value:function(){return S.MapTheme}},{key:"getMapStyleValue",value:function(t){var e;return null!==(e=this.getMapStyleConfig()[t])&&void 0!==e?e:t}},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i12&&e?this.coordinateSystemService.setCoordinateSystem(b.CoordinateSystem.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(b.CoordinateSystem.LNGLAT)}}]),t}(),c=Object(y.default)(l.prototype,"config",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=Object(y.default)(l.prototype,"configService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=Object(y.default)(l.prototype,"coordinateSystemService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=Object(y.default)(l.prototype,"eventEmitter",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=l))||u)},function(t,e,n){"use strict";n.r(e),n.d(e,"onIrrelevantElement",(function(){return i}));var r={axisPointer:1,tooltip:1,brush:1};function i(t,e,n){var i=e.getComponentByElement(t.topTarget),o=i&&i.coordinateSystem;return i&&i!==n&&!r.hasOwnProperty(i.mainType)&&o&&o.model!==n}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(r.__extends)(e,t),e.prototype.scale=function(t){if(Object(i.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(i.head)(e),r=Object(i.last)(e);nthis.max&&(this.max=r),Object(i.isNil)(this.minLimit)||(this.min=n),Object(i.isNil)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=Object(i.getRange)(this.values),e=t.min,n=t.max;Object(i.isNil)(this.min)&&(this.min=e),Object(i.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(i.filter)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(n(307).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"renderTag",(function(){return u}));var r=n(2),i=n(1),o=n(242),a=n(126),s=n(43);function u(t,e){var n=e.x,u=e.y,l=e.content,c=e.style,h=e.id,f=e.name,d=e.rotate,p=e.maxLength,g=e.autoEllipsis,v=e.isVertical,m=e.ellipsisPosition,y=e.background,b=t.addGroup({id:h+"-group",name:f+"-group",attrs:{x:n,y:u}}),_=b.addShape({type:"text",id:h,name:f,attrs:Object(r.__assign)({x:0,y:0,text:l},c)}),x=Object(s.formatPadding)(Object(i.get)(y,"padding",0));if(p&&g){var O=p-(x[1]+x[3]);Object(o.ellipsisLabel)(!v,_,O,m)}if(y){var w=Object(i.get)(y,"style",{}),S=_.getCanvasBBox(),C=S.minX,E=S.minY,T=S.width,M=S.height;b.addShape("rect",{id:h+"-bg",name:h+"-bg",attrs:Object(r.__assign)({x:C-x[3],y:E-x[0],width:T+x[1]+x[3],height:M+x[0]+x[2]},w)}).toBack()}Object(a.applyTranslate)(b,n,u),Object(a.applyRotate)(b,d,n,u)}},function(t,e,n){"use strict";n.r(e),n.d(e,"findDataByPoint",(function(){return h})),n.d(e,"getTooltipItems",(function(){return f})),n.d(e,"findItemsFromView",(function(){return g})),n.d(e,"findItemsFromViewRecurisive",(function(){return v}));var r=n(2),i=n(1),o=n(8),a=n(165);function s(t,e,n){var r=n.translate(t),o=n.translate(e);return Object(i.isNumberEqual)(r,o)}function u(t,e,n){var r=n.coordinate,a=n.getYScale(),s=a.field,u=r.invert(e),l=a.invert(u.y);return Object(i.find)(t,(function(t){var e=t[o.FIELD_ORIGIN];return e[s][0]<=l&&e[s][1]>=l}))||t[t.length-1]}var l=Object(i.memoize)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,o=0;oi&&(i=s)}return(i-r)/(n-1)}));function c(t){var e,n,s,u=function(t){var e=Object(i.values)(t.attributes);return Object(i.filter)(e,(function(t){return Object(i.contains)(o.GROUP_ATTRS,t.type)}))}(t);try{for(var l=Object(r.__values)(u),c=l.next();!c.done;c=l.next()){var h=c.value,f=h.getScale(h.type);if(f&&f.isLinear){var d=Object(i.get)(t.scaleDefs,f.field);if("cat"!==Object(a.inferScaleType)(f,d,h.type,t.type)){s=f;break}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}var p=t.getXScale(),g=t.getYScale();return s||g||p}function h(t,e,n){if(0===e.length)return null;var r=n.type,a=n.getXScale(),c=n.getYScale(),h=a.field,f=c.field,d=null;if("heatmap"===r||"point"===r){for(var p=n.coordinate.invert(t),g=a.invert(p.x),v=c.invert(p.y),m=1/0,y=0;y(1+o)/2&&(s=a),r.translate(r.invert(s))}(t,n),C=O[o.FIELD_ORIGIN][h],E=O[o.FIELD_ORIGIN][f],T=w[o.FIELD_ORIGIN][h],M=c.isLinear&&Object(i.isArray)(E);if(Object(i.isArray)(C)){for(y=0;y=S){if(!M){d=L;break}Object(i.isArray)(d)||(d=[]),d.push(L)}}Object(i.isArray)(d)&&(d=u(d,t,n))}else{var A=void 0;if(a.isLinear||"timeCat"===a.type){if((S>a.translate(T)||Sa.max||SMath.abs(a.translate(A[o.FIELD_ORIGIN][h])-S)&&(w=A)}var D=l(n.getXScale());return!d&&Math.abs(a.translate(w[o.FIELD_ORIGIN][h])-S)<=D/2&&(d=w),d}function f(t,e,n,s){var u,l;void 0===n&&(n=""),void 0===s&&(s=!1);var h,f=t[o.FIELD_ORIGIN],d=function(t,e,n){var r=e.getAttribute("position").getFields(),o=e.scales,a=Object(i.isFunction)(n)||!n?r[0]:n,s=o[a],u=s?s.getText(t[a]):t[a]||a;return Object(i.isFunction)(n)?n(u,t):u}(f,e,n),p=e.tooltipOption,g=e.theme.defaultColor,v=[];function m(e,n){if(s||!Object(i.isNil)(n)&&""!==n){var r={title:d,data:f,mappingData:t,name:e,value:n,color:t.color||g,marker:!0};v.push(r)}}if(Object(i.isObject)(p)){var y=p.fields,b=p.callback;if(b){var _=y.map((function(e){return t[o.FIELD_ORIGIN][e]})),x=b.apply(void 0,Object(r.__spreadArray)([],Object(r.__read)(_),!1)),O=Object(r.__assign)({data:t[o.FIELD_ORIGIN],mappingData:t,title:d,color:t.color||g,marker:!0},x);v.push(O)}else{var w=e.scales;try{for(var S=Object(r.__values)(y),C=S.next();!C.done;C=S.next()){var E=C.value;if(!Object(i.isNil)(f[E])){var T=w[E];m(Object(a.getName)(T),h=T.getText(f[E]))}}}catch(t){u={error:t}}finally{try{C&&!C.done&&(l=S.return)&&l.call(S)}finally{if(u)throw u.error}}}}else{var M=c(e);h=function(t,e){var n=t[e.field];return Object(i.isArray)(n)?n.map((function(t){return e.getText(t)})).join("-"):e.getText(n)}(f,M),m(function(t,e){var n,r=e.getGroupScales();if(r.length&&(n=r[0]),n){var i=n.field;return n.getText(t[i])}var o=c(e);return Object(a.getName)(o)}(f,e),h)}return v}function d(t,e,n,o){var a,s,u=o.showNil,l=[],c=t.dataArray;if(!Object(i.isEmpty)(c)){t.sort(c);try{for(var d=Object(r.__values)(c),p=d.next();!p.done;p=d.next()){var g=h(e,p.value,t);if(g){var v=t.getElementId(g),m=t.elementsMap[v];if("heatmap"===t.type||m.visible){var y=f(g,t,n,u);y.length&&l.push(y)}}}}catch(t){a={error:t}}finally{try{p&&!p.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}}return l}function p(t,e,n,r){var i=r.showNil,o=[],a=t.container.getShape(e.x,e.y);if(a&&a.get("visible")&&a.get("origin")){var s=f(a.get("origin").mappingData,t,n,i);s.length&&o.push(s)}return o}function g(t,e,n){var i,o,a=[],s=t.geometries,u=n.shared,l=n.title,c=n.reversed;try{for(var h=Object(r.__values)(s),f=h.next();!f.done;f=h.next()){var g=f.value;if(g.visible&&!1!==g.tooltipOption){var v=g.type,m=void 0;(m=["point","edge","polygon"].includes(v)?p(g,e,l,n):["area","line","path","heatmap"].includes(v)||!1!==u?d(g,e,l,n):p(g,e,l,n)).length&&(c&&m.reverse(),a.push(m))}}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}return a}function v(t,e,n){var i,o,a=g(t,e,n);try{for(var s=Object(r.__values)(t.views),u=s.next();!u.done;u=s.next()){var l=u.value;a=a.concat(g(l,e,n))}}catch(t){i={error:t}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return a}},function(t,e,n){"use strict";n.r(e),n.d(e,"PADDING_TOP",(function(){return s})),n.d(e,"BREAD_CRUMB_NAME",(function(){return u})),n.d(e,"DEFAULT_BREAD_CRUMB_CONFIG",(function(){return l})),n.d(e,"HIERARCHY_DATA_TRANSFORM_PARAMS",(function(){return c})),n.d(e,"DrillDownAction",(function(){return h}));var r=n(2),i=n(17),o=n(1),a=n(697),s=5,u="drilldown-bread-crumb",l={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},c="hierarchy-data-transform-params",h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="drill-down",e.historyCache=[],e.breadCrumbGroup=null,e.breadCrumbCfg=l,e}return Object(r.__extends)(e,t),e.prototype.click=function(){var t=Object(o.get)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),e=this.breadCrumbGroup,n=e.getBBox(),r=this.getButtonCfg().position,o={x:t.start.x,y:t.end.y-(n.height+2*s)};t.isPolar&&(o={x:0,y:0}),"bottom-left"===r&&(o={x:t.start.x,y:t.start.y});var a=i.Util.transform(null,[["t",o.x+0,o.y+n.height+s]]);e.setMatrix(a)}},e.prototype.back=function(){Object(o.size)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(t){var e=this.context.view,n=Object(o.get)(e,["interactions","drill-down","cfg","transformData"],(function(t){return t})),i=n(Object(r.__assign)({data:t.data},t[c]));e.changeData(i);for(var a=[],s=t;s;){var u=s.data;a.unshift({id:"".concat(u.name,"_").concat(s.height,"_").concat(s.depth),name:u.name,children:n(Object(r.__assign)({data:u},t[c]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(a)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=Object(o.last)(t).children;e.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(o.get)(t,["interactions","drill-down","cfg","drillDownConfig"]);return Object(a.deepAssign)(this.breadCrumbCfg,null==e?void 0:e.breadCrumb,this.cfg)},e.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},e.prototype.drawBreadCrumbGroup=function(){var t=this,e=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:u});var i=0;n.forEach((function(a,s){var l=t.breadCrumbGroup.addShape({type:"text",id:a.id,name:"".concat(u,"_").concat(a.name,"_text"),attrs:Object(r.__assign)(Object(r.__assign)({text:0!==s||Object(o.isNil)(e.rootText)?a.name:e.rootText},e.textStyle),{x:i,y:0})}),c=l.getBBox();if(i+=c.width+4,l.on("click",(function(e){var r,i=e.target.get("id");if(i!==(null===(r=Object(o.last)(n))||void 0===r?void 0:r.id)){var a=n.slice(0,n.findIndex((function(t){return t.id===i}))+1);t.backTo(a)}})),l.on("mouseenter",(function(t){var r;t.target.get("id")!==(null===(r=Object(o.last)(n))||void 0===r?void 0:r.id)?l.attr(e.activeTextStyle):l.attr({cursor:"default"})})),l.on("mouseleave",(function(){l.attr(e.textStyle)})),sr?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)r.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,l=r.length,c=!1,h=6,f=e;if(Object(o.isArrayLike)(e)){var d=function(t){return Object(o.isArrayLike)(t&&t[0])?2:1}(e);h=d,(1===d&&!Object(o.isNumber)(e[0])||2===d&&!Object(o.isNumber)(e[0][0]))&&(c=!0)}else if(Object(o.isNumber)(e)&&!Object(o.eqNaN)(e))h=0;else if(Object(o.isString)(e))if(isNaN(+e)){var p=i.parse(e);p&&(f=p,h=3)}else h=0;else if(Object(o.isGradientObject)(e)){var g=Object(o.extend)({},f);g.colorStops=Object(o.map)(e.colorStops,(function(t){return{offset:t.offset,color:i.parse(t.color)}})),Object(u.isLinearGradient)(e)?h=4:Object(u.isRadialGradient)(e)&&(h=5),f=g}0===l?this.valType=h:h===this.valType&&6!==h||(c=!0),this.discrete=this.discrete||c;var v={time:t,value:f,rawValue:e,percent:0};return n&&(v.easing=n,v.easingFunc=Object(o.isFunction)(n)?n:a.default[n]||Object(s.createCubicEasingFunc)(n)),r.push(v),v},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=b(r),u=y(r),l=0;l=0&&!(l[n].percent<=e);n--);n=v(n,f-2)}else{for(n=g;ne);n++);n=v(n-1,f-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var x=i.percent-r.percent,O=0===x?1:v((e-r.percent)/x,1);i.easingFunc&&(O=i.easingFunc(O));var w=a?this._additiveValue:p?_:t[d];if(!b(u)&&!p||w||(w=this._additiveValue=[]),this.discrete)t[d]=O<1?r.rawValue:i.rawValue;else if(b(u))1===u?h(w,r[s],i[s],O):function(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a0&&s.addKeyframe(0,v(u),r),this._trackKeys.push(a)}s.addKeyframe(t,v(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,o=0;o1){var s=a.pop();i.addKeyframe(s.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();e.default=O},function(t,e,n){"use strict";n.r(e),n.d(e,"subPixelOptimizeLine",(function(){return i})),n.d(e,"subPixelOptimizeRect",(function(){return o})),n.d(e,"subPixelOptimize",(function(){return a}));var r=Math.round;function i(t,e,n){if(e){var i=e.x1,o=e.x2,s=e.y1,u=e.y2;t.x1=i,t.x2=o,t.y1=s,t.y2=u;var l=n&&n.lineWidth;return l?(r(2*i)===r(2*o)&&(t.x1=t.x2=a(i,l,!0)),r(2*s)===r(2*u)&&(t.y1=t.y2=a(s,l,!0)),t):t}}function o(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,s=e.height;t.x=r,t.y=i,t.width=o,t.height=s;var u=n&&n.lineWidth;return u?(t.x=a(r,u,!0),t.y=a(i,u,!0),t.width=Math.max(a(r+o,u,!1)-t.x,0===o?0:1),t.height=Math.max(a(i+s,u,!1)-t.y,0===s?0:1),t):t}}function a(t,e,n){if(!e)return t;var i=r(2*t);return(i+r(e))%2==0?i/2:(i+(n?1:-1))/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"createTask",(function(){return i})),n.d(e,"Task",(function(){return o}));var r=n(0);function i(t){return new o(t)}var o=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var a,s=h(this._modBy),u=this._modDataCount||0,l=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}s===l&&u===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=this._doReset(i)),this._modBy=l,this._modDataCount=c;var f=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!i&&(a||d1&&r>0?s:a}};return o;function a(){return e=t?null:o0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(i.each)([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=t[r[0]],a=null!=t[r[1]];o&&!a?e[i]="percent":!o&&a?e[i]="value":n?e[i]=n[i]:o&&(e[i]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(Object(a.getAxisMainType)(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,r){Object(i.each)(n.indexList,(function(n){t.call(e,r,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(Object(a.getAxisMainType)(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(i.each)([["start","startValue"],["end","endValue"]],(function(r){null==t[r[0]]&&null==t[r[1]]||(e[r[0]]=n[r[0]]=t[r[0]],e[r[1]]=n[r[1]]=t[r[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(i.each)(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),r=0;r=0,a=t.fill||"#000";u(i,e);var s=null==i.textFill;return o?s&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=a),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(s&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Object(r.each)(e.rich,(function(t){u(t,t)})),i}function u(t,e){e&&(Object(r.hasOwn)(e,"fill")&&(t.textFill=e.fill),Object(r.hasOwn)(e,"stroke")&&(t.textStroke=e.fill),Object(r.hasOwn)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(r.hasOwn)(e,"font")&&(t.font=e.font),Object(r.hasOwn)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(r.hasOwn)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(r.hasOwn)(e,"fontSize")&&(t.fontSize=e.fontSize),Object(r.hasOwn)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(r.hasOwn)(e,"align")&&(t.textAlign=e.align),Object(r.hasOwn)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(r.hasOwn)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(r.hasOwn)(e,"width")&&(t.textWidth=e.width),Object(r.hasOwn)(e,"height")&&(t.textHeight=e.height),Object(r.hasOwn)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(r.hasOwn)(e,"padding")&&(t.textPadding=e.padding),Object(r.hasOwn)(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(r.hasOwn)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(r.hasOwn)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(r.hasOwn)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(r.hasOwn)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(r.hasOwn)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(r.hasOwn)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(r.hasOwn)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(r.hasOwn)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(r.hasOwn)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(r.hasOwn)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}function l(t,e){}},function(t,e,n){"use strict";n.r(e),n.d(e,"getItemAlign",(function(){return a})),n.d(e,"makeHighDownBatch",(function(){return s}));var r=n(0),i=n(35),o=[["left","right","width"],["top","bottom","height"]];function a(t,e,n){var r=t.option,a=r.align;if(null!=a&&"auto"!==a)return a;for(var s={width:e.getWidth(),height:e.getHeight()},u="horizontal"===r.orient?1:0,l=o[u],c=[0,null,10],h={},f=0;f<3;f++)h[o[1-u][f]]=c[f],h[l[f]]=2===f?n[0]:r[l[f]];var d=[["x","width",3],["y","height",0]][u],p=Object(i.getLayoutRect)(h,s,r.padding);return l[(p.margin[d[2]]||0)+p[d[0]]+.5*p[d[1]]<.5*s[d[1]]?0:1]}function s(t,e){return r.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}},function(t,e,n){"use strict";n.r(e),n.d(e,"getCPath",(function(){return i})),n.d(e,"getQPath",(function(){return o}));var r=n(1);function i(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]}function o(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return Object(r.each)(n,(function(t){i.push(t.x,t.y)})),i}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTotalValue",(function(){return o})),n.d(e,"adaptOffset",(function(){return a})),n.d(e,"isAllZero",(function(){return s}));var r=n(1),i=n(3);function o(t,e){var n=null;return Object(r.each)(t,(function(t){"number"==typeof t[e]&&(n+=t[e])})),n}function a(t,e){var n;switch(t){case"inner":return n="-30%",Object(r.isString)(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,Object(r.isString)(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function s(t,e){return Object(r.every)(Object(i.processIllegalData)(t,e),(function(t){return 0===t[e]}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformOptions",(function(){return c})),n.d(e,"meta",(function(){return f})),n.d(e,"tooltip",(function(){return y})),n.d(e,"adaptor",(function(){return b}));var r=n(2),i=n(1),o=n(792),a=n(9),s=n(36),u=n(3),l=n(855);function c(t){var e=t.data,n=void 0===e?[]:e,r=t.xField,i=t.yField;if(n.length){for(var o=!0,a=!0,s=n[0],c=void 0,h=1;hi&&(t.splice(a+1,0,f),r=!0)}return r}}function s(t,e,n,r){var i=r-t*t,o=Math.abs(i)<1e-24?0:(n-t*e)/i;return[e-o*t,o]}function u(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function a(a){var u=0,l=0,c=0,h=0,f=0,d=t?+t[0]:1/0,p=t?+t[1]:-1/0;r(a,n,o,(function(e,n){++u,l+=(e-l)/u,c+=(n-c)/u,h+=(e*n-h)/u,f+=(e*e-f)/u,t||(ep&&(p=e))}));var g=e(s(l,c,h,f),2),v=g[0],m=g[1],y=function(t){return m*t+v},b=[[d,y(d)],[p,y(p)]];return b.a=m,b.b=v,b.predict=y,b.rSquared=i(a,n,o,c,y),b}return a.domain=function(e){return arguments.length?(t=e,a):t},a.x=function(t){return arguments.length?(n=t,a):n},a.y=function(t){return arguments.length?(o=t,a):o},a}function l(t){t.sort((function(t,e){return t-e}));var e=t.length/2;return e%1==0?(t[e-1]+t[e])/2:t[Math.floor(e)]}function c(t){return(t=1-t*t*t)*t*t}function h(t,e,n){var r=t[e],i=n[0],o=n[1]+1;if(!(o>=t.length))for(;e>i&&t[o]-r<=r-t[i];)n[0]=++i,n[1]=o,++o}function f(){var t,o=function(t){return t[0]},s=function(t){return t[1]};function u(u){var l,c,h,f,d=e(n(u,o,s),4),p=d[0],g=d[1],v=d[2],m=d[3],y=p.length,b=0,_=0,x=0,O=0,w=0;for(l=0;lT&&(T=e))}));var M=x-b*b,A=b*M-_*_,j=(w*b-O*_)/A,I=(O*M-w*_)/A,k=-j*b,P=function(t){return j*(t-=v)*t+I*t+k+m},L=a(E,T,P);return L.a=j,L.b=I-2*j*v,L.c=k-I*v+j*v*v+m,L.predict=P,L.rSquared=i(u,o,s,S,P),L}return u.domain=function(e){return arguments.length?(t=e,u):t},u.x=function(t){return arguments.length?(o=t,u):o},u.y=function(t){return arguments.length?(s=t,u):s},u}t.regressionExp=function(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function u(u){var l=0,c=0,h=0,f=0,d=0,p=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(u,n,o,(function(e,n){var r=Math.log(n),i=e*n;++l,c+=(n-c)/l,f+=(i-f)/l,p+=(e*i-p)/l,h+=(n*r-h)/l,d+=(i*r-d)/l,t||(ev&&(v=e))}));var m=e(s(f/c,h/c,d/c,p/c),2),y=m[0],b=m[1];y=Math.exp(y);var _=function(t){return y*Math.exp(b*t)},x=a(g,v,_);return x.a=y,x.b=b,x.predict=_,x.rSquared=i(u,n,o,c,_),x}return u.domain=function(e){return arguments.length?(t=e,u):t},u.x=function(t){return arguments.length?(n=t,u):n},u.y=function(t){return arguments.length?(o=t,u):o},u},t.regressionLinear=u,t.regressionLoess=function(){var t=function(t){return t[0]},r=function(t){return t[1]},i=.3;function o(o){for(var a=e(n(o,t,r,!0),4),u=a[0],f=a[1],d=a[2],p=a[3],g=u.length,v=Math.max(2,~~(i*g)),m=new Float64Array(g),y=new Float64Array(g),b=new Float64Array(g).fill(1),_=-1;++_<=2;){for(var x=[0,v-1],O=0;Ou[C]-w?S:C,T=0,M=0,A=0,j=0,I=0,k=1/Math.abs(u[E]-w||1),P=S;P<=C;++P){var L=u[P],D=f[P],R=c(Math.abs(w-L)*k)*b[P],N=L*R;T+=R,M+=N,A+=D*R,j+=D*N,I+=L*N}var F=e(s(M/T,A/T,j/T,I/T),2),B=F[0],z=F[1];m[O]=B+z*w,y[O]=Math.abs(f[O]-m[O]),h(u,O+1,x)}if(2===_)break;var V=l(y);if(Math.abs(V)<1e-12)break;for(var U,G,H=0;H=1?1e-12:(G=1-U*U)*G}return function(t,e,n,r){for(var i,o=t.length,a=[],s=0,u=0,l=[];sv&&(v=e))}));var y=e(s(h,f,d,p),2),b=y[0],_=y[1],x=function(t){return _*Math.log(t)/m+b},O=a(g,v,x);return O.a=_,O.b=b,O.predict=x,O.rSquared=i(l,n,o,f,x),O}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(n=t,l):n},l.y=function(t){return arguments.length?(o=t,l):o},l.base=function(t){return arguments.length?(u=t,l):u},l},t.regressionPoly=function(){var t,o=function(t){return t[0]},s=function(t){return t[1]},l=3;function c(c){if(1===l){var h=u().x(o).y(s).domain(t)(c);return h.coefficients=[h.b,h.a],delete h.a,delete h.b,h}if(2===l){var d=f().x(o).y(s).domain(t)(c);return d.coefficients=[d.c,d.b,d.a],delete d.a,delete d.b,delete d.c,d}var p,g,v,m,y,b=e(n(c,o,s),4),_=b[0],x=b[1],O=b[2],w=b[3],S=_.length,C=[],E=[],T=l+1,M=0,A=0,j=t?+t[0]:1/0,I=t?+t[1]:-1/0;for(r(c,o,s,(function(e,n){++A,M+=(n-M)/A,t||(eI&&(I=e))})),p=0;pMath.abs(t[e][i])&&(i=n);for(r=e;r=e;r--)t[r][n]-=t[r][e]*t[e][n]/t[e][e]}for(n=a-1;n>=0;--n){for(o=0,r=n+1;r=0;--i)for(a=e[i],s=1,u[i]+=a,o=1;o<=i;++o)s*=(i+1-o)/o,u[i-o]+=a*Math.pow(n,o)*s;return u[0]+=r,u}(T,k,-O,w),L.predict=P,L.rSquared=i(c,o,s,M,P),L}return c.domain=function(e){return arguments.length?(t=e,c):t},c.x=function(t){return arguments.length?(o=t,c):o},c.y=function(t){return arguments.length?(s=t,c):s},c.order=function(t){return arguments.length?(l=t,c):l},c},t.regressionPow=function(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function u(u){var l=0,c=0,h=0,f=0,d=0,p=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(u,n,o,(function(e,n){var r=Math.log(e),i=Math.log(n);++l,c+=(r-c)/l,h+=(i-h)/l,f+=(r*i-f)/l,d+=(r*r-d)/l,p+=(n-p)/l,t||(ev&&(v=e))}));var m=e(s(c,h,f,d),2),y=m[0],b=m[1];y=Math.exp(y);var _=function(t){return y*Math.pow(t,b)},x=a(g,v,_);return x.a=y,x.b=b,x.predict=_,x.rSquared=i(u,n,o,p,_),x}return u.domain=function(e){return arguments.length?(t=e,u):t},u.x=function(t){return arguments.length?(n=t,u):n},u.y=function(t){return arguments.length?(o=t,u):o},u},t.regressionQuad=f,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){"use strict";function r(t,e,n){this.$children.forEach((function(i){i.$options.componentName===t?i.$emit.apply(i,[e].concat(n)):r.apply(i,[t,e].concat([n]))}))}e.__esModule=!0,e.default={methods:{dispatch:function(t,e,n){for(var r=this.$parent||this.$root,i=r.$options.componentName;r&&(!i||i!==t);)(r=r.$parent)&&(i=r.$options.componentName);r&&r.$emit.apply(r,[e].concat(n))},broadcast:function(t,e,n){r.call(this,t,e,n)}}}},function(t,e,n){t.exports=!n(541)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.id=void 0;var r=0;e.id=function(){return r++}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getFacet",(function(){return a})),n.d(e,"registerFacet",(function(){return s}));var r=n(1),i=n(211);n.d(e,"Facet",(function(){return i.Facet}));var o={},a=function(t){return o[Object(r.lowerCase)(t)]},s=function(t,e){o[Object(r.lowerCase)(t)]=e}},function(t,e,n){"use strict";n.r(e);var r=n(210);n.d(e,"Attribute",(function(){return r.default}));var i=n(909);n.d(e,"Color",(function(){return i.default}));var o=n(910);n.d(e,"Opacity",(function(){return o.default}));var a=n(911);n.d(e,"Position",(function(){return a.default}));var s=n(912);n.d(e,"Shape",(function(){return s.default}));var u=n(913);n.d(e,"Size",(function(){return u.default}));var l=n(392);n.d(e,"registerAttribute",(function(){return l.registerAttribute})),n.d(e,"getAttribute",(function(){return l.getAttribute}));var c=n(640);n.d(e,"Scale",(function(){return c.Scale})),Object(l.registerAttribute)("Color",i.default),Object(l.registerAttribute)("Opacity",o.default),Object(l.registerAttribute)("Position",a.default),Object(l.registerAttribute)("Shape",s.default),Object(l.registerAttribute)("Size",u.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"left",(function(){return o})),n.d(e,"right",(function(){return a})),n.d(e,"justify",(function(){return s})),n.d(e,"center",(function(){return u}));var r=n(1);function i(t){return t.target.depth}function o(t){return t.depth}function a(t,e){return e-1-t.height}function s(t,e){return t.sourceLinks.length?t.depth:e-1}function u(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Object(r.minBy)(t.sourceLinks,i)-1:0}},function(t,e,n){"use strict";n.r(e);var r=n(119);e.default=function(t,e){return!!Object(r.default)(t)&&t.indexOf(e)>-1}},function(t,e,n){"use strict";n.r(e),n.d(e,"createAction",(function(){return a})),n.d(e,"getActionClass",(function(){return s})),n.d(e,"registerAction",(function(){return u})),n.d(e,"unregisterAction",(function(){return l})),n.d(e,"createCallbackAction",(function(){return c}));var r=n(1661),i=n(1),o={};function a(t,e){var n=o[t],r=null;n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init());return r}function s(t){var e=o[t];return Object(i.get)(e,"ActionClass")}function u(t,e,n){o[t]={ActionClass:e,cfg:n}}function l(t){delete o[t]}function c(t,e){var n=new r.default(e);return n.callback=t,n.name="callback",n}},function(t,e,n){"use strict";n.r(e),n.d(e,"LEVEL",(function(){return r})),n.d(e,"invariant",(function(){return s})),n.d(e,"log",(function(){return u}));var r,i=n(2);!function(t){t.ERROR="error",t.WARN="warn",t.INFO="log"}(r||(r={}));var o="AntV/G2Plot";function a(t){for(var e=[],n=1;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e1?e*i+a(e,n)*(i-1):e}function a(t,e){return e?e-t:.14*t}function s(t,e){var n=Object(i.getOffScreenContext)(),o=0;if(Object(r.isNil)(t)||""===t)return o;if(n.save(),n.font=e,Object(r.isString)(t)&&t.includes("\n")){var a=t.split("\n");Object(r.each)(a,(function(t){var e=n.measureText(t).width;op&&(p=l),y=f*f*m,(g=Math.max(p/y,y/d))>v){f-=l;break}v=g}b.push(u={value:f,dice:c1?e:1)},n}(o)},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(30),i=n(11),o=n(12),a=n(863),s=function(){function t(){Object(i.default)(this,t)}return Object(o.default)(t,[{key:"syncWithMapCamera",value:function(t){var e=t.center,n=t.zoom,i=t.pitch,o=t.bearing,s=t.viewportHeight,u=t.viewportWidth,l=this.viewport?{width:this.viewport.width,height:this.viewport.height,longitude:this.viewport.center[0],latitude:this.viewport.center[1],zoom:this.viewport.zoom,pitch:this.viewport.pitch,bearing:this.viewport.bearing}:{};this.viewport=new a.default(Object(r.default)(Object(r.default)({},l),{},{width:u,height:s,longitude:e&&e[0],latitude:e&&e[1],zoom:n,pitch:i,bearing:o}))}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(t,e){return this.viewport.projectFlat(t,e)}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"CtorUint32Array",(function(){return s})),n.d(e,"CtorUint16Array",(function(){return u})),n.d(e,"CtorInt32Array",(function(){return l})),n.d(e,"CtorFloat64Array",(function(){return c}));var r,i=n(0),o=n(159),a=n(148),s="undefined"==typeof Uint32Array?Array:Uint32Array,u="undefined"==typeof Uint16Array?Array:Uint16Array,l="undefined"==typeof Int32Array?Array:Int32Array,c="undefined"==typeof Float64Array?Array:Float64Array,h={float:c,int:l,ordinal:Array,number:Array,time:c};function f(t){return t>65535?s:u}function d(t,e,n,r,i){var o=h[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var u=new o(r),l=0;lm[1]&&(m[1]=v)}return this._rawCount=this._count=u,{start:s,end:u}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,u=this._rawExtent,l=Object(i.map)(a,(function(t){return t.property})),c=0;cy[1]&&(y[1]=m)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks[t],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,u=0,l=this.count();u=0&&a<0)&&(o=h,a=c,s=0),c===a&&(i[s++]=u))}return i.length=s,i},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i=c&&x<=h||isNaN(x))&&(s[u++]=g),g++}p=!0}else if(2===o){v=d[r[0]];var y=d[r[1]],b=t[r[1]][0],_=t[r[1]][1];for(m=0;m=c&&x<=h||isNaN(x))&&(O>=b&&O<=_||isNaN(O))&&(s[u++]=g),g++}p=!0}}if(!p)if(1===o)for(m=0;m=c&&x<=h||isNaN(x))&&(s[u++]=w)}else for(m=0;mt[E][1])&&(S=!1)}S&&(s[u++]=e.getRawIndex(m))}return uv[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),u=0,l=Math.floor(1/e),c=this.getRawIndex(0),h=new(f(this._rawCount))(Math.min(2*(Math.ceil(s/l)+2),s));h[u++]=c;for(var d=1;dn&&(n=r,i=E)}C>0&&Cl-p&&(s=l-p,a.length=s);for(var g=0;gc[1]&&(c[1]=m),h[d++]=y}return i._count=d,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();ia&&(a=u)}return r=[o,a],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return Object(o.parseDataValue)(t[r],this._dimensions[r])}r={arrayRows:t,objectRows:function(t,e,n,r){return Object(o.parseDataValue)(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return Object(o.parseDataValue)(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}();e.default=p},function(t,e,n){"use strict";n.r(e),n.d(e,"circularLayout",(function(){return l})),n.d(e,"rotateNodeLabel",(function(){return h}));var r=n(20),i=n(246),o=n(0),a=n(351),s=Math.PI,u=[];function l(t,e,n,i){var s=t.coordinateSystem;if(!s||"view"===s.type){var u=s.getBoundingRect(),l=t.getData(),f=l.graph,d=u.width/2+u.x,p=u.height/2+u.y,g=Math.min(u.width,u.height)/2,v=l.count();if(l.setLayout({cx:d,cy:p}),v){if(n){var m=s.pointToData(i),y=m[0],b=m[1],_=[y-d,b-p];r.normalize(_,_),r.scale(_,_,g),n.setLayout([d+_[0],p+_[1]],!0),h(n,t.get(["circular","rotateLabel"]),d,p)}c[e](t,f,l,g,d,p,v),f.eachEdge((function(e,n){var i,s=o.retrieve3(e.getModel().get(["lineStyle","curveness"]),Object(a.getCurvenessForEdge)(e,t,n),0),u=r.clone(e.node1.getLayout()),l=r.clone(e.node2.getLayout()),c=(u[0]+l[0])/2,h=(u[1]+l[1])/2;+s&&(i=[d*(s*=3)+c*(1-s),p*s+h*(1-s)]),e.setLayout([u,l,i])}))}}}var c={value:function(t,e,n,r,i,o,a){var s=0,u=n.getSum("value"),l=2*Math.PI/(u||a);e.eachNode((function(t){var e=t.getValue("value"),n=l*(u?e:1)/2;s+=n,t.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,r,o,a,l){var c=0;u.length=l;var h=Object(i.getNodeGlobalScale)(t);e.eachNode((function(t){var e=Object(i.getSymbolSize)(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=h;var n=Math.asin(e/2/r);isNaN(n)&&(n=s/2),u[t.dataIndex]=n,c+=2*n}));var f=(2*s-c)/l/2,d=0;e.eachNode((function(t){var e=f+u[t.dataIndex];d+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([r*Math.cos(d)+o,r*Math.sin(d)+a]),d+=e}))}};function h(t,e,n,r){var i=t.getGraphicEl();if(i){var a=t.getModel().get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var u=t.getLayout(),l=Math.atan2(u[1]-r,u[0]-n);l<0&&(l=2*Math.PI+l);var c=u[0]l&&(a=l),o===l&&a===l)return null;var c=t.invert(o),h=t.invert(a);if(t.isCategory){var f=t.values.indexOf(c),d=t.values.indexOf(h),p=t.values.slice(f,d+1);return function(t){return p.includes(t)}}return function(t){return t>=c&&t<=h}}!function(t){t.FILTER="brush-filter-processing",t.RESET="brush-filter-reset",t.BEFORE_FILTER="brush-filter:beforefilter",t.AFTER_FILTER="brush-filter:afterfilter",t.BEFORE_RESET="brush-filter:beforereset",t.AFTER_RESET="brush-filter:afterreset"}(r||(r={}));var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return Object(i.__extends)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(Object(s.isMask)(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var i=this.context,a=i.view,l={view:a,event:i.event,dims:this.dims};a.emit(r.BEFORE_FILTER,o.Event.fromData(a,r.BEFORE_FILTER,l));var c=a.getCoordinate(),h=c.invert(e),f=c.invert(t);if(this.hasDim("x")){var d=a.getXScale(),p=u(d,"x",h,f);this.filterView(a,d.field,p)}if(this.hasDim("y")){var g=a.getYScales()[0];p=u(g,"y",h,f);this.filterView(a,g.field,p)}this.reRender(a,{source:r.FILTER}),a.emit(r.AFTER_FILTER,o.Event.fromData(a,r.AFTER_FILTER,l))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(r.BEFORE_RESET,o.Event.fromData(t,r.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:r.RESET}),t.emit(r.AFTER_RESET,o.Event.fromData(t,r.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(a.default);e.default=l},function(t,e,n){"use strict";function r(t){return null==t?null:i(t)}function i(t){if("function"!=typeof t)throw new Error;return t}n.r(e),n.d(e,"optional",(function(){return r})),n.d(e,"required",(function(){return i}))},function(t,e,n){"use strict";function r(t){t&&t.geometries[0].elements.forEach((function(t){t.shape.toFront()}))}n.r(e),n.d(e,"placeElementsOrdered",(function(){return r}))},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"CoordinateSystem",(function(){return r})),n.d(e,"CoordinateUniform",(function(){return i})),function(t){t[t.LNGLAT=1]="LNGLAT",t[t.LNGLAT_OFFSET=2]="LNGLAT_OFFSET",t[t.VECTOR_TILE=3]="VECTOR_TILE",t[t.IDENTITY=4]="IDENTITY",t[t.P20=5]="P20",t[t.P20_OFFSET=6]="P20_OFFSET",t[t.METER_OFFSET=7]="METER_OFFSET",t[t.P20_2=8]="P20_2"}(r||(r={}));var i={CoordinateSystem:"u_CoordinateSystem",ViewportCenter:"u_ViewportCenter",ViewportCenterProjection:"u_ViewportCenterProjection",PixelsPerDegree:"u_PixelsPerDegree",PixelsPerDegree2:"u_PixelsPerDegree2",PixelsPerMeter:"u_PixelsPerMeter",Mvp:"u_Mvp"}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(2055),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default||function(t){for(var e=1;eo)return!1;var c={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Object(r.distance)(c.x,c.y,s,u)<=a/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"isMiniAli",(function(){return u})),n.d(e,"screen",(function(){return f}));var r,i,o,a,s=n(225),u="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM;if(u){var l=my.getSystemInfoSync();r=l.screenWidth,i=l.screenHeight,o=l.windowWidth,a=l.windowHeight}else{var c=s.globalWindow.innerWidth,h=s.globalWindow.innerHeight;r=c,i=h,o=c,a=h}var f={width:r,height:i,availWidth:o,availHeight:a,availLeft:0,availTop:0}},function(t,e,n){"use strict";n.r(e);var r=n(1343);n.d(e,"EarthMap",(function(){return r.EarthMap}));var i=n(229);n.d(e,"mercatorXfromLng",(function(){return i.mercatorXfromLng})),n.d(e,"mercatorYfromLat",(function(){return i.mercatorYfromLat})),n.d(e,"mercatorZfromAltitude",(function(){return i.mercatorZfromAltitude})),n.d(e,"lngFromMercatorX",(function(){return i.lngFromMercatorX})),n.d(e,"latFromMercatorY",(function(){return i.latFromMercatorY})),n.d(e,"altitudeFromMercatorZ",(function(){return i.altitudeFromMercatorZ})),n.d(e,"mercatorScale",(function(){return i.mercatorScale})),n.d(e,"MercatorCoordinate",(function(){return i.MercatorCoordinate}));n(1370);var o=n(1371);n.d(e,"Map",(function(){return o.Map}))},function(t,e,n){"use strict";function r(t,e,n){for(var r,i=[t],o=[];r=i.pop();)if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s=0;o--)r.push(i[o])}}n.r(e),n.d(e,"eachAfter",(function(){return r})),n.d(e,"eachBefore",(function(){return i}))},function(t,e,n){"use strict";n.r(e);var r=n(1256);n.d(e,"sankey",(function(){return r.Sankey}));var i=n(411);n.d(e,"center",(function(){return i.center})),n.d(e,"justify",(function(){return i.justify})),n.d(e,"left",(function(){return i.left})),n.d(e,"right",(function(){return i.right}))},function(t,e,n){"use strict";n.r(e),n.d(e,"Color",(function(){return i})),n.d(e,"darker",(function(){return o})),n.d(e,"brighter",(function(){return a})),n.d(e,"default",(function(){return _})),n.d(e,"rgbConvert",(function(){return w})),n.d(e,"rgb",(function(){return S})),n.d(e,"Rgb",(function(){return C})),n.d(e,"hslConvert",(function(){return j})),n.d(e,"hsl",(function(){return I}));var r=n(532);function i(){}var o=.7,a=1/o,s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),d=new RegExp("^rgba\\("+[s,s,s,u]+"\\)$"),p=new RegExp("^rgba\\("+[l,l,l,u]+"\\)$"),g=new RegExp("^hsl\\("+[u,l,l]+"\\)$"),v=new RegExp("^hsla\\("+[u,l,l,u]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function _(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=c.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?x(e):3===n?new C(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?O(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?O(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new C(e[1],e[2],e[3],1):(e=f.exec(t))?new C(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?O(e[1],e[2],e[3],e[4]):(e=p.exec(t))?O(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?A(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?A(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?x(m[t]):"transparent"===t?new C(NaN,NaN,NaN,0):null}function x(t){return new C(t>>16&255,t>>8&255,255&t,1)}function O(t,e,n,r){return r<=0&&(t=e=n=NaN),new C(t,e,n,r)}function w(t){return t instanceof i||(t=_(t)),t?new C((t=t.rgb()).r,t.g,t.b,t.opacity):new C}function S(t,e,n,r){return 1===arguments.length?w(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function E(){return"#"+M(this.r)+M(this.g)+M(this.b)}function T(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function M(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function A(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new k(t,e,n,r)}function j(t){if(t instanceof k)return new k(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=_(t)),!t)return new k;if(t instanceof k)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-o,l=(a+o)/2;return u?(s=e===a?(n-r)/u+6*(n0&&l<1?0:s,new k(s,u,l,t.opacity)}function I(t,e,n,r){return 1===arguments.length?j(t):new k(t,e,n,null==r?1:r)}function k(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function P(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(r.default)(i,_,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return j(this).formatHsl()},formatRgb:b,toString:b}),Object(r.default)(C,S,Object(r.extend)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:T,toString:T})),Object(r.default)(k,I,Object(r.extend)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new k(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new k(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new C(P(t>=240?t-240:t+120,i,r),P(t,i,r),P(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,l=[],c=!1,h=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&d())}function d(){if(!c){var t=s(f);c=!0;for(var e=l.length;e;){for(u=l,l=[];++h1)for(var n=1;n>1^-(1&s),u=u>>1^-(1&u),i=s+=i,o=u+=o,r.push([s/n,u/n])}return r}function s(t,e){return t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var i=e.features;return r.each(i,(function(t){var e=t.geometry,i=e.encodeOffsets,s=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=a(s,i,n);break;case"Polygon":case"MultiLineString":o(s,i,n);break;case"MultiPolygon":r.each(s,(function(t,e){return o(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}(t),r.map(r.filter(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,o=t.geometry,a=[];switch(o.type){case"Polygon":var s=o.coordinates;a.push(new i.GeoJSONPolygonGeometry(s[0],s.slice(1)));break;case"MultiPolygon":r.each(o.coordinates,(function(t){t[0]&&a.push(new i.GeoJSONPolygonGeometry(t[0],t.slice(1)))}));break;case"LineString":a.push(new i.GeoJSONLineStringGeometry([o.coordinates]));break;case"MultiLineString":a.push(new i.GeoJSONLineStringGeometry(o.coordinates))}var u=new i.GeoJSONRegion(n[e||"name"],a,n.cp);return u.properties=n,u}))}},function(t,e,n){"use strict";n.r(e);var r=n(425);n.d(e,"getAdjust",(function(){return r.getAdjust})),n.d(e,"registerAdjust",(function(){return r.registerAdjust}));var i=n(250);n.d(e,"Adjust",(function(){return i.default}));var o=n(1634),a=n(1635),s=n(1636),u=n(1637),l=n(639);for(var c in l)["default","getAdjust","registerAdjust","Adjust"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return l[t]}))}(c);Object(r.registerAdjust)("Dodge",o.default),Object(r.registerAdjust)("Jitter",a.default),Object(r.registerAdjust)("Stack",s.default),Object(r.registerAdjust)("Symmetric",u.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"truncateText",(function(){return s})),n.d(e,"parsePlainText",(function(){return h})),n.d(e,"RichTextContentBlock",(function(){return p})),n.d(e,"parseRichText",(function(){return g}));var r=n(326),i=n(0),o=n(55),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=u(e,n,r,i);for(var a=0,s=o.length;a=u;c++)l-=u;var h=Object(o.getWidth)(n,e);return h>l&&(n="",h=0),l=t-h,a.ellipsis=n,a.ellipsisWidth=h,a.contentWidth=l,a.containerWidth=t,a}function l(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var a=Object(o.getWidth)(t,r);if(a<=n)return t;for(var s=0;;s++){if(a<=i||s>=e.maxIterations){t+=e.ellipsis;break}var u=0===s?c(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,u),a=Object(o.getWidth)(t,r)}return""===t&&(t=e.placeholder),t}function c(t,e,n,r){for(var i=0,o=0,a=t.length;om&&p){var y=Math.floor(m/f);n=n.slice(0,y)}if(t&&c&&null!=g)for(var _=u(g,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x=0;xd&&v(n,t.substring(d,g),e,f),v(n,u[2],e,f,u[1]),d=a.lastIndex}dc){M>0?(C.tokens=C.tokens.slice(0,M),w(C,T,E),n.lines=n.lines.slice(0,S+1)):n.lines=n.lines.slice(0,S);break t}var L=A.width,D=null==L||"auto"===L;if("string"==typeof L&&"%"===L.charAt(L.length-1))B.percentWidth=L,m.push(B),B.contentWidth=Object(o.getWidth)(B.text,k);else{if(D){var R=A.backgroundColor,N=R&&R.image;N&&(N=r.findExistImage(N),r.isImageReady(N)&&(B.width=Math.max(B.width,N.width*P/N.height)))}var F=x&&null!=l?l-T:null;null!=F&&F0&&m+r.accumWidth>r.width&&(a=e.split("\n"),p=!0),r.accumWidth=m}else{var y=b(e,h,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+v,s=y.linesWidths,a=y.lines}}else a=e.split("\n");for(var _=0;_=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!m[t]}function b(t,e,n,r,i){for(var a=[],s=[],u="",l="",c=0,h=0,f=0;fn:i+h+p>n)?h?(u||l)&&(g?(u||(u=l,l="",h=c=0),a.push(u),s.push(h-c),l+=d,u="",h=c+=p):(l&&(u+=l,l="",c=0),a.push(u),s.push(h),u=d,h=p)):g?(a.push(l),s.push(c),l=d,c=p):(a.push(d),s.push(p)):(h+=p,g?(l+=d,c+=p):(l&&(u+=l,l="",c=0),u+=d))}else l&&(u+=l,h+=c),a.push(u),s.push(h),u="",l="",c=0,h=0}return a.length||u||(u=t,l="",c=0),l&&(u+=l),u&&(a.push(u),s.push(h)),1===a.length&&(h+=i),{accumWidth:h,lines:a,linesWidths:s}}},function(t,e,n){"use strict";n.r(e),n.d(e,"EllipseShape",(function(){return o}));var r=n(61),i=n(38),o=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},a=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,u=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-u,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-u,r+o,i),t.bezierCurveTo(r+o,i+u,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+u,r-o,i),t.closePath()},e}(i.default);a.prototype.type="ellipse",e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(61),i=n(38),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return Object(r.__extends)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n1&&(n*=Math.sqrt(m),i*=Math.sqrt(m));var y=n*n*(v*v)+i*i*(g*g),b=y?Math.sqrt((n*n*(i*i)-y)/y):1;l===c&&(b*=-1),isNaN(b)&&(b=0);var _=i?b*n*v/i:0,x=n?b*-i*g/n:0,O=(h+d)/2+Math.cos(u)*_-Math.sin(u)*x,w=(f+p)/2+Math.sin(u)*_+Math.cos(u)*x,S=[(g-_)/n,(v-x)/i],C=[(-1*g-_)/n,(-1*v-x)/i],E=a([1,0],S),T=a(S,C);return o(S,C)<=-1&&(T=Math.PI),o(S,C)>=1&&(T=0),0===c&&T>0&&(T-=2*Math.PI),1===c&&T<0&&(T+=2*Math.PI),{cx:O,cy:w,rx:s(t,[d,p])?0:n,ry:s(t,[d,p])?0:i,startAngle:E,endAngle:E+T,xRotation:u,arcFlag:l,sweepFlag:c}}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(82),o=n(1),a={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg")||{};Object(o.each)(t,(function(t,r){var i=t;e.get(r)!==t&&(Object(o.isObject)(t)&&n[r]&&(i=Object(o.deepMix)({},n[r],t)),e.set(r,i))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Object(o.hasKey)(t,"visible")&&(t.visible?this.show():this.hide()),Object(o.hasKey)(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=Object(r.__assign)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),r=a[n];return Object(o.each)(r,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");Object(o.each)(e,(function(e,n){var r=t.get(n);if(Object(o.isObject)(r)){var i=Object(o.deepMix)({},e,r);t.set(n,i)}}))},e}(i.Base);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(26),o=n(1),a=n(90),s=n(126),u=n(438),l=n(51),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:l.default.lineColor}},tickLine:{style:{lineWidth:1,stroke:l.default.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:l.default.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:l.default.textColor,fontFamily:l.default.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:l.default.textColor,textBaseline:"middle",fontFamily:l.default.fontFamily,textAlign:"center"},iconStyle:{fill:l.default.descriptionIconFill,stroke:l.default.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:l.default.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){Object(o.mix)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return Object(o.each)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(o.each)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(o.filter)(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},e.prototype.getTextAnchor=function(t){var e;return Object(o.isNumberEqual)(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return Object(o.isNumberEqual)(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:Object(o.mix)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,a=r.length,s=1;return t.length>=2&&(s=t[1].value-t[0].value),Object(o.each)(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-s/2));var o=e.getSidePoint(r,a);n.push({startPoint:r,tickValue:t.value,endPoint:o,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var o=0;o0){var n=Object(o.size)(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter((function(t,e){return e%r==0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,a=r.offsetX,u=r.offsetY,l=r.rotate,c=r.formatter,h=this.getSidePoint(t.point,i),f=this.getSideVector(i,h),d=c?c(t.name,t,e):t.name,p=r.style;p=Object(o.isFunction)(p)?Object(o.get)(this.get("theme"),["label","style"],{}):p;var g=Object(o.mix)({x:h.x+a,y:h.y+u,text:d,textAlign:this.getTextAnchor(f),textBaseline:this.getTextBaseline(f)},p);return l&&(g.matrix=Object(s.getMatrixByAngle)(h,l)),g},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});Object(o.each)(n,(function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(r);var i=r.getChildren(),a=Object(o.get)(this.get("theme"),["label","style"],{}),s=this.get("label"),u=s.style,l=s.formatter;if(Object(o.isFunction)(u)){var c=i.map((function(t){return Object(o.get)(t.get("delegateObject"),"tick")}));Object(o.each)(i,(function(t,e){var n=t.get("delegateObject").tick,r=l?l(n.name,n,e):n.name,i=Object(o.mix)({},a,u(r,e,c));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,a=t.spacing,u=void 0===a?0:a,l=t.autoRotate,c=e.fontSize,h=.5;"start"===n?h=0:"end"===n&&(h=1);var f=this.getTickPoint(h),d=this.getSidePoint(f,r||u+c/2),p=Object(o.mix)({x:d.x,y:d.y,text:t.text},e),g=t.rotate,v=g;if(Object(o.isNil)(g)&&l){var m=this.getAxisVector(f);v=i.ext.angleTo(m,[1,0],!0)}if(v){var y=Object(s.getMatrixByAngle)(d,v);p.matrix=y}return p},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),r=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,r,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var i=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),o=e.getBBox(),a=o.maxX,s=o.maxY,u=o.height,l=this.get("title").iconStyle,c=u/2,h=c/6,f=a+4,d=s-u/2,p=[f+c,d-c],g=p[0],v=p[1],m=[g+c,v+c],y=m[0],b=m[1],_=[g,b+c],x=_[0],O=_[1],w=[f,v+c],S=w[0],C=w[1],E=[f+c,d-u/4],T=E[0],M=E[1],A=[T,M+h],j=A[0],I=A[1],k=[j,I+h],P=k[0],L=k[1],D=[P,L+3*c/4],R=D[0],N=D[1];this.addShape(i,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:Object(r.__assign)({path:[["M",g,v],["A",c,c,0,0,1,y,b],["A",c,c,0,0,1,x,O],["A",c,c,0,0,1,S,C],["A",c,c,0,0,1,g,v],["M",T,M],["L",j,I],["M",P,L],["L",R,N]],lineWidth:h,matrix:n},l)}),this.addShape(i,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:f,y:d-u/2,width:u,height:u,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),r=this.getElementId("label-"+t.id),i=e.findById(r);if(i){var o=Object(u.getStatesStyle)(t,"label",n);o&&i.attr(o)}var a=this.getElementId("tickline-"+t.id),s=e.findById(a);if(s){var l=Object(u.getStatesStyle)(t,"tickLine",n);l&&s.attr(l)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var s=Object(u.getStatesStyle)(t,"label",n);s&&i.attr(s)}if(a){var l=Object(u.getStatesStyle)(t,"tickLine",n);l&&a.attr(l)}}else i&&i.attr(r.style),a&&a.attr(o.style)},e}(a.default);e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(90),a=n(126),s=n(51),u=n(43),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:s.default.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:s.default.textColor,textAlign:"center",textBaseline:"middle",fontFamily:s.default.fontFamily}},textBackground:{padding:5,style:{stroke:s.default.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,o=e.autoRotate,s=e.content;if(!Object(i.isNil)(s)){var u=this.getTextPoint(),l=null;if(o){var c=this.getRotateAngle();l=Object(a.getMatrixByAngle)(u,c)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},u),{text:s,matrix:l}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:Object(r.__assign)({path:e},n)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),i=this.get("textBackground");if(i&&n){var o=n.getBBox(),a=Object(u.formatPadding)(i.padding),s=i.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Object(r.__assign)({x:o.x-a[3],y:o.y-a[0],width:o.width+a[1]+a[3],height:o.height+a[0]+a[2],matrix:n.attr("matrix")},s)}).toBack()}},e}(o.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(90),a=n(51),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:a.default.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),r=e.slice(0).reverse(),i=this.getGridPath(r,!0);return this.get("closed")?n=n.concat(i):(i[0][0]="L",(n=n.concat(i)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),r=this.get("items"),o=this.get("alternateColor"),a=null;Object(i.each)(r,(function(s,u){var l=s.id||u;if(n){var c=e.getPathStyle();c=Object(i.isFunction)(c)?c(s,u,r):c;var h=e.getElementId("line-"+l),f=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:h,attrs:Object(i.mix)({path:f},c)})}if(o&&u>0){var d=e.getElementId("region-"+l),p=u%2==0;if(Object(i.isString)(o))p&&e.drawAlternateRegion(d,t,a.points,s.points,o);else{var g=p?o[1]:o[0];e.drawAlternateRegion(d,t,a.points,s.points,g)}}a=s}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var o=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:i}})},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(90),o=n(43),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),r=this.get("maxHeight"),i=e.width,a=e.height;return n&&(i=Math.min(i,n)),r&&(a=Math.min(a,r)),Object(o.createBBox)(e.minX,e.minY,i,a)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),i=Object(o.formatPadding)(e.padding),a=Object(r.__assign)({x:0,y:0,width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:a}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),i=n.spacing,o=n.style,a=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(r.__assign)({text:a,x:e.x,y:e.y},o)}).getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+i})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=Object(o.formatPadding)(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"isSamePoint",(function(){return s})),n.d(e,"default",(function(){return u}));var r=n(1);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function a(t,e){return(t[0]*e[1]1&&(n*=Math.sqrt(m),i*=Math.sqrt(m));var y=n*n*(v*v)+i*i*(g*g),b=y?Math.sqrt((n*n*(i*i)-y)/y):1;l===c&&(b*=-1),isNaN(b)&&(b=0);var _=i?b*n*v/i:0,x=n?b*-i*g/n:0,O=(h+d)/2+Math.cos(u)*_-Math.sin(u)*x,w=(f+p)/2+Math.sin(u)*_+Math.cos(u)*x,S=[(g-_)/n,(v-x)/i],C=[(-1*g-_)/n,(-1*v-x)/i],E=a([1,0],S),T=a(S,C);return o(S,C)<=-1&&(T=Math.PI),o(S,C)>=1&&(T=0),0===c&&T>0&&(T-=2*Math.PI),1===c&&T<0&&(T+=2*Math.PI),{cx:O,cy:w,rx:s(t,[d,p])?0:n,ry:s(t,[d,p])?0:i,startAngle:E,endAngle:E+T,xRotation:u,arcFlag:l,sweepFlag:c}}},function(t,e,n){"use strict";n.r(e),n.d(e,"isSamePoint",(function(){return s})),n.d(e,"default",(function(){return u}));var r=n(1);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function a(t,e){return(t[0]*e[1]1&&(n*=Math.sqrt(m),i*=Math.sqrt(m));var y=n*n*(v*v)+i*i*(g*g),b=y?Math.sqrt((n*n*(i*i)-y)/y):1;l===c&&(b*=-1),isNaN(b)&&(b=0);var _=i?b*n*v/i:0,x=n?b*-i*g/n:0,O=(h+d)/2+Math.cos(u)*_-Math.sin(u)*x,w=(f+p)/2+Math.sin(u)*_+Math.cos(u)*x,S=[(g-_)/n,(v-x)/i],C=[(-1*g-_)/n,(-1*v-x)/i],E=a([1,0],S),T=a(S,C);return o(S,C)<=-1&&(T=Math.PI),o(S,C)>=1&&(T=0),0===c&&T>0&&(T-=2*Math.PI),1===c&&T<0&&(T+=2*Math.PI),{cx:O,cy:w,rx:s(t,[d,p])?0:n,ry:s(t,[d,p])?0:i,startAngle:E,endAngle:E+T,xRotation:u,arcFlag:l,sweepFlag:c}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getAnimation",(function(){return i})),n.d(e,"registerAnimation",(function(){return o}));var r={};function i(t){return r[t.toLowerCase()]}function o(t,e){r[t.toLowerCase()]=e}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(95),a=n(150),s=n(488),u=n(73),l=n(8),c=n(494),h=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var r=e.shapeFactory,i=e.container,o=e.offscreenGroup,a=e.elementIndex,s=e.visible,u=void 0===s||s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=o,n.visible=u,n.elementIndex=a,n}return Object(r.__extends)(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var r=this.getOffscreenGroup(),i=e.drawShape(this.shapeType,t,r);i.cfg.data=this.data,i.cfg.origin=t,i.cfg.element=this,this.syncShapeStyle(n,i,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var i=this.getAnimateCfg("leave");i?Object(a.doAnimate)(n,i,{coordinate:e.coordinate,toAttrs:Object(r.__assign)({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,r=n.states,i=n.shapeFactory,a=n.model,s=n.shape,u=n.shapeType,l=r.indexOf(t);if(e){if(l>-1)return;r.push(t),"active"!==t&&"selected"!==t||null==s||s.toFront()}else{if(-1===l)return;if(r.splice(l,1),"active"===t||"selected"===t){var c=this.geometry,h=c.sortZIndex,f=c.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;h?s.setZIndex(f):s.set("zIndex",f)}}var d=i.drawShape(u,a,this.getOffscreenGroup());r.length?this.syncShapeStyle(s,d,r,null):this.syncShapeStyle(s,d,["reset"],null),d.remove(!0);var p={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",p),Object(o.propagationDelegate)(this.shape,"statechange",p)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(i.each)(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeType,e=this.geometry,n=this.shapeFactory,r=e.stateOption,o=n.defaultShapeType,a=n.theme[t]||n.theme[o];this.statesStyle=Object(i.deepMix)({},a,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=Object(i.get)(n,[t,"style"],{}),o=r[e]||r;return Object(i.isFunction)(o)?o(this):o},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var o=n[t];return o?Object(r.__assign)(Object(r.__assign)({},o),{callback:function(){var t;Object(i.isFunction)(o.callback)&&o.callback(),null===(t=e.geometry)||void 0===t||t.emit(l.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}}):o}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var o=this.shapeFactory,s=this.container,u=this.shapeType;if(this.shape=o.drawShape(u,t,s),this.shape){this.setShapeInfo(this.shape,t);var c=this.shape.cfg.name;c?Object(i.isString)(c)&&(this.shape.cfg.name=["element",c]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var h=e?"enter":"appear",f=this.getAnimateCfg(h);f&&(null===(n=this.geometry)||void 0===n||n.emit(l.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),Object(a.doAnimate)(this.shape,f,{coordinate:o.coordinate,toAttrs:Object(r.__assign)({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,o){var s,h=this;if(void 0===n&&(n=[]),void 0===o&&(o=0),t&&e){var f=t.get("clipShape"),d=e.get("clipShape");if(this.syncShapeStyle(f,d,n,r),t.isGroup())for(var p=t.get("children"),g=e.get("children"),v=0;v1&&(n*=Math.sqrt(m),i*=Math.sqrt(m));var y=n*n*(v*v)+i*i*(g*g),b=y?Math.sqrt((n*n*(i*i)-y)/y):1;l===c&&(b*=-1),isNaN(b)&&(b=0);var _=i?b*n*v/i:0,x=n?b*-i*g/n:0,O=(h+d)/2+Math.cos(u)*_-Math.sin(u)*x,w=(f+p)/2+Math.sin(u)*_+Math.cos(u)*x,S=[(g-_)/n,(v-x)/i],C=[(-1*g-_)/n,(-1*v-x)/i],E=a([1,0],S),T=a(S,C);return o(S,C)<=-1&&(T=Math.PI),o(S,C)>=1&&(T=0),0===c&&T>0&&(T-=2*Math.PI),1===c&&T<0&&(T+=2*Math.PI),{cx:O,cy:w,rx:s(t,[d,p])?0:n,ry:s(t,[d,p])?0:i,startAngle:E,endAngle:E+T,xRotation:u,arcFlag:l,sweepFlag:c}}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(82),o=n(1),a=n(372),s=n(428),u=n(197),l=n(59),c=n(120),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=Object(c.createSVGElement)("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){Object(s.refreshElement)(this,t)},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),Object(u.setClip)(this,t),this.createPath(t),e.length&&Object(s.drawChildren)(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(o.each)(e||n,(function(t,e){l.SVG_ATTR_MAP[e]&&r.setAttribute(l.SVG_ATTR_MAP[e],t)})),Object(u.setTransform)(this)},e}(i.AbstractGroup);e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"isSamePoint",(function(){return a})),n.d(e,"default",(function(){return s}));function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function i(t,e){return r(t)*r(e)?(t[0]*e[0]+t[1]*e[1])/(r(t)*r(e)):1}function o(t,e){return(t[0]*e[1]1&&(s*=Math.sqrt(y),u*=Math.sqrt(y));var b=s*s*(m*m)+u*u*(v*v),_=b?Math.sqrt((s*s*(u*u)-b)/b):1;c===h&&(_*=-1),isNaN(_)&&(_=0);var x=u?_*s*m/u:0,O=s?_*-u*v/s:0,w=(f+p)/2+Math.cos(l)*x-Math.sin(l)*O,S=(d+g)/2+Math.sin(l)*x+Math.cos(l)*O,C=[(v-x)/s,(m-O)/u],E=[(-1*v-x)/s,(-1*m-O)/u],T=o([1,0],C),M=o(C,E);return i(C,E)<=-1&&(M=Math.PI),i(C,E)>=1&&(M=0),0===h&&M>0&&(M-=2*Math.PI),1===h&&M<0&&(M+=2*Math.PI),{cx:w,cy:S,rx:a(t,[p,g])?0:s,ry:a(t,[p,g])?0:u,startAngle:T,endAngle:T+M,xRotation:l,arcFlag:c,sweepFlag:h}}},function(t,e,n){"use strict";n.r(e);var r=n(217),i=n(1933),o=n(473),a=function(){},s=function(){function t(t){this.terminated=!1,this.loadableURL="";var e=t.name,n=t.source,i=t.url;Object(r.assert)(n||i),this.name=e,this.source=n,this.url=i,this.onMessage=a,this.onError=function(t){return console.log(t)},this.worker=this.createBrowserWorker()}return t.isSupported=function(){return"undefined"!=typeof Worker},t.prototype.destroy=function(){this.onMessage=a,this.onError=a,this.worker.terminate(),this.terminated=!0},Object.defineProperty(t.prototype,"isRunning",{get:function(){return Boolean(this.onMessage)},enumerable:!1,configurable:!0}),t.prototype.postMessage=function(t,e){e=e||Object(o.getTransferList)(t),this.worker.postMessage(t,e)},t.prototype.getErrorFromErrorEvent=function(t){var e="Failed to load ";return e+="worker "+this.name+" from "+this.url+". ",t.message&&(e+=t.message+" in "),t.lineno&&(e+=":"+t.lineno+":"+t.colno),new Error(e)},t.prototype.createBrowserWorker=function(){var t=this;this.loadableURL=Object(i.getLoadableWorkerURL)({source:this.source,url:this.url});var e=new Worker(this.loadableURL,{name:this.name});return e.onmessage=function(e){e.data?t.onMessage(e.data):t.onError(new Error("No data received"))},e.onerror=function(e){t.onError(t.getErrorFromErrorEvent(e)),t.terminated=!0},e.onmessageerror=function(e){return console.error("worker "+t.name+", message error: "+e)},e},t}();e.default=s},function(t,e,n){"use strict";function r(t,e,n){void 0===e&&(e=!0);var o=n||new Set;if(t){if(i(t))o.add(t);else if(i(t.buffer))o.add(t.buffer);else if(ArrayBuffer.isView(t));else if(e&&"object"==typeof t)for(var a in t)r(t[a],e,o)}else;return void 0===n?Array.from(o):[]}function i(t){return!!t&&(t instanceof ArrayBuffer||("undefined"!=typeof MessagePort&&t instanceof MessagePort||("undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas)))}n.r(e),n.d(e,"getTransferList",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"createCubicEasingFunc",(function(){return a}));var r=n(48),i=n(0),o=/cubic-bezier\(([0-9,\.e ]+)\)/;function a(t){var e=t&&o.exec(t);if(e){var n=e[1].split(","),a=+Object(i.trim)(n[0]),s=+Object(i.trim)(n[1]),u=+Object(i.trim)(n[2]),l=+Object(i.trim)(n[3]);if(isNaN(a+s+u+l))return;var c=[];return function(t){return t<=0?0:t>=1?1:Object(r.cubicRootAt)(0,a,u,1,t,c)&&Object(r.cubicAt)(0,s,l,1,c[0])}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"createLegacyDataSelectAction",(function(){return o})),n.d(e,"handleLegacySelectEvents",(function(){return s}));var r=n(0),i=n(10);function o(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}Object(r.each)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,o){e=Object(r.extend)({},e),o.dispatchAction(Object(r.extend)(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}function a(t,e,n,o,a){var s=t+e;n.isSilent(s)||o.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,o=t.option.selectedMap,u=a.selected,l=0;le&&(e=r.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,r=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=t.start;r0&&(y[0]=-y[0],y[1]=-y[1]);var _=m[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var x=-Math.atan2(m[1],m[0]);l[0].8?"left":c[0]<-.8?"right":"center",f=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*p+u[0],n.y=-c[1]*g+u[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",f=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=p*_+u[0],n.y=u[1]+O,h=m[0]<0?"right":"left",n.originX=-p*_,n.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=b[0],n.y=b[1]+O,h="center",n.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-p*_+l[0],n.y=l[1]+O,h=m[0]>=0?"right":"left",n.originX=p*_,n.originY=-O}n.scaleX=n.scaleY=r,n.setStyle({verticalAlign:n.__verticalAlign||f,align:n.__align||h})}}}function w(t,e){var n=t.__specifiedRotation;if(null==n){var r=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else t.attr("rotation",n)}},e}(l.default);e.default=m},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n(0),o=n(136),a=n(41),s=n(74),u=n(16),l=n(187),c=n(177),h=n(518),f=n(181),d=Math.min,p=Math.max,g=Math.pow,v={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"},y={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},b=0,_=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new a.default,n._uid="brushController_"+b++,Object(i.each)($,(function(t,e){this._handlers[e]=Object(i.bind)(t,this)}),n),n}return Object(r.__extends)(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||h.take(e,"globalPan",this._uid),Object(i.each)(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=Object(i.merge)(Object(i.clone)(y),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;h.release(t,"globalPan",this._uid),Object(i.each)(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Object(i.each)(t,(function(t){e[t.panelId]=Object(i.clone)(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Object(i.map)(t,(function(t){return Object(i.merge)(Object(i.clone)(y),t,!0)}));var e=this._covers,n=this._covers=[],r=this,o=this._creatingCover;return new f.default(e,t,(function(t,e){return a(t.__brushOption,e)}),a).add(s).update(s).remove((function(t){e[t]!==o&&r.group.remove(e[t])})).execute(),this;function a(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function s(i,a){var s=t[i];if(null!=a&&e[a]===o)n[i]=e[a];else{var u=n[i]=null!=a?(e[a].__brushOption=s,e[a]):O(r,x(r,s));C(r,u)}}},e.prototype.unmount=function(){return this.enableBrush(!1),A(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(o.default);function x(t,e){var n=q[e.brushType].createCover(t,e);return n.__brushOption=e,S(n,e),t.group.add(n),n}function O(t,e){var n=E(e);return n.endCreating&&(n.endCreating(t,e),S(e,e.__brushOption)),e}function w(t,e){var n=e.__brushOption;E(e).updateCoverShape(t,e,n.range,n)}function S(t,e){var n=e.z;null==n&&(n=1e4),t.traverse((function(t){t.z=n,t.z2=n}))}function C(t,e){E(e).updateCommon(t,e),w(t,e)}function E(t){return q[t.__brushOption.brushType]}function T(t,e,n){var r,o=t._panels;if(!o)return!0;var a=t._transform;return Object(i.each)(o,(function(t){t.isTargetByCursor(e,n,a)&&(r=t)})),r}function M(t,e){var n=t._panels;if(!n)return!0;var r=e.__brushOption.panelId;return null==r||n[r]}function A(t){var e=t._covers,n=e.length;return Object(i.each)(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function j(t,e){var n=Object(i.map)(t._covers,(function(t){var e=t.__brushOption,n=Object(i.clone)(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function I(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function k(t,e,n,r){var o=new a.default;return o.add(new s.default({name:"main",style:R(n),silent:!0,draggable:!0,cursor:"move",drift:Object(i.curry)(B,t,e,o,["n","s","w","e"]),ondragend:Object(i.curry)(j,e,{isEnd:!0})})),Object(i.each)(r,(function(n){o.add(new s.default({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(i.curry)(B,t,e,o,n),ondragend:Object(i.curry)(j,e,{isEnd:!0})}))})),o}function P(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=p(i,6),a=n[0][0],s=n[1][0],u=a-i/2,l=s-i/2,c=n[0][1],h=n[1][1],f=c-o+i/2,d=h-o+i/2,g=c-a,v=h-s,m=g+i,y=v+i;D(t,e,"main",a,s,g,v),r.transformable&&(D(t,e,"w",u,l,o,y),D(t,e,"e",f,l,o,y),D(t,e,"n",u,l,m,o),D(t,e,"s",u,d,m,o),D(t,e,"nw",u,l,o,o),D(t,e,"ne",f,l,o,o),D(t,e,"sw",u,d,o,o),D(t,e,"se",f,d,o,o))}function L(t,e){var n=e.__brushOption,r=n.transformable,o=e.childAt(0);o.useStyle(R(n)),o.attr({silent:!r,cursor:r?"move":"default"}),Object(i.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=e.childOfName(n.join("")),o=1===n.length?F(t,n[0]):function(t,e){var n=[F(t,e[0]),F(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(t,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?m[o]+"-resize":null})}))}function D(t,e,n,r,i,o,a){var s,u,l,c,h,f=e.childOfName(n);f&&f.setShape((s=U(t,e,[[r,i],[r+o,i+a]]),u=d(s[0][0],s[1][0]),l=d(s[0][1],s[1][1]),c=p(s[0][0],s[1][0]),h=p(s[0][1],s[1][1]),{x:u,y:l,width:c-u,height:h-l}))}function R(t){return Object(i.defaults)({strokeNoScale:!0},t.brushStyle)}function N(t,e,n,r){var i=[d(t,n),d(e,r)],o=[p(t,n),p(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function F(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[u.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return u.getTransform(t.group)}(t))]}function B(t,e,n,r,o,a){var s=n.__brushOption,u=t.toRectRange(s.range),l=V(e,o,a);Object(i.each)(r,(function(t){var e=v[t];u[e[0]][e[1]]+=l[e[0]]})),s.range=t.fromRectRange(N(u[0][0],u[1][0],u[0][1],u[1][1])),C(e,n),j(e,{isEnd:!1})}function z(t,e,n,r){var o=e.__brushOption.range,a=V(t,n,r);Object(i.each)(o,(function(t){t[0]+=a[0],t[1]+=a[1]})),C(t,e),j(t,{isEnd:!1})}function V(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function U(t,e,n){var r=M(t,e);return r&&!0!==r?r.clipPath(n,t._transform):Object(i.clone)(n)}function G(t){var e=t.event;e.preventDefault&&e.preventDefault()}function H(t,e,n){return t.childOfName("main").contain(e,n)}function W(t,e,n,r){var o,a=t._creatingCover,s=t._creatingPanel,u=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],o=n[1]-r[1];return g(i*i+o*o,.5)>6}(t)||a){if(s&&!a){"single"===u.brushMode&&A(t);var l=Object(i.clone)(u);l.brushType=Y(l.brushType,s),l.panelId=!0===s?null:s.panelId,a=t._creatingCover=x(t,l),t._covers.push(a)}if(a){var c=q[Y(t._brushType,s)];a.__brushOption.range=c.getCreatingRange(U(t,a,t._track)),r&&(O(t,a),c.updateCommon(t,a)),w(t,a),o={isEnd:r}}}else r&&"single"===u.brushMode&&u.removeOnClick&&T(t,e,n)&&A(t)&&(o={isEnd:r,removeOnClick:!0});return o}function Y(t,e){return"auto"===t?e.defaultBrushType:t}var $={mousedown:function(t){if(this._dragging)X(this,t);else if(!t.target||!t.target.draggable){G(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=T(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}(t,e.offsetX,e.offsetY)){var r=t._zr,i=t._covers,o=T(t,e,n);if(!t._dragging)for(var a=0;aa)return!0;if(o){var s=u.getAxisInfo(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var a=f(t).pointerEl=new o[i.type](d(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=f(t).labelEl=new a.default(d(e.label));t.add(i),m(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=f(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=f(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),m(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),a=this._handle,s=n.getModel("handle"),u=n.get("status");if(!s.get("show")||!u||"hide"===u)return a&&i.remove(a),void(this._handle=null);this._handle||(e=!0,a=this._handle=o.createIcon(s.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){l.stop(t.event)},onmousedown:p(this._onHandleDragMove,this,0,0),drift:p(this._onHandleDragMove,this),ondragend:p(this._onHandleDragEnd,this)}),i.add(a)),b(a,n,!1),a.setStyle(s.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var h=s.get("size");r.isArray(h)||(h=[h,h]),a.scaleX=h[0]/2,a.scaleY=h[1]/2,c.createOrUpdate(this,"_doDispatchAxisPointer",s.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){v(this._axisPointerModel,!e&&this._moveAnimation,this._handle,y(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(y(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(y(r)),f(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),c.clear(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function v(t,e,n,i){(function t(e,n){if(r.isObject(e)&&r.isObject(n)){var i=!0;return r.each(n,(function(n,r){i=i&&t(e[r],n)})),!!i}return e===n})(f(n).lastProp,i)||(f(n).lastProp=i,e?s.updateProps(n,i,t):(n.stopAnimation(),n.attr(i)))}function m(t,e){t[e.get(["label","show"])?"show":"hide"]()}function y(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function b(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}e.default=g},function(t,e,n){"use strict";n.r(e);var r=n(4),i=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n,r){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(n(66).default);e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(1571),i=n(1573),o=!1;function a(t){o||(o=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,r.default),Object(i.default)(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n(66),o=n(0),a=n(201),s=n(10),u=n(13),l=Object(s.makeInner)(),c=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.init=function(){this.markerGroupMap=Object(o.createHashMap)()},e.prototype.render=function(t,e,n){var r=this,i=this.markerGroupMap;i.each((function(t){l(t).keep=!1})),e.eachSeries((function(t){var i=a.default.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)})),i.each((function(t){!l(t).keep&&r.group.remove(t.group)}))},e.prototype.markKeep=function(t){l(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(o.each)(t,(function(t){var r=a.default.getMarkerModelFromSeries(t,n.type);r&&r.getData().eachItemGraphicEl((function(t){t&&(e?Object(u.enterBlur)(t):Object(u.leaveBlur)(t))}))}))},e.type="marker",e}(i.default);e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(0);function i(t,e){if(!t)return!1;for(var n=Object(r.isArray)(t)?t:[t],i=0;ithis.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],o=1;o1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(n(307).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(1);function i(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function o(t,e,n){var o=i(t,n,"floor"),a=i(e,n,"ceil");o=Object(r.fixedBase)(o,n),a=Object(r.fixedBase)(a,n);for(var s=[],u=Math.max((a-o)/(Math.pow(2,12)-1),n),l=o;l<=a;l+=u){var c=Object(r.fixedBase)(l,u);s.push(c)}return{min:o,max:a,ticks:s}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(1);function i(t,e,n){var i,o=t.minLimit,a=t.maxLimit,s=t.min,u=t.max,l=t.tickCount,c=void 0===l?5:l,h=Object(r.isNil)(o)?Object(r.isNil)(e)?s:e:o,f=Object(r.isNil)(a)?Object(r.isNil)(n)?u:n:a;if(h>f&&(f=(i=[h,f])[0],h=i[1]),c<=2)return[h,f];for(var d=(f-h)/(c-1),p=[],g=0;g1){a.sort();var m=function(t,e){var n=t.length,i=t;Object(r.isString)(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var o=i[1]-i[0],a=2;as&&(o=s)}return o}(a,o);u=(o.max-o.min)/m,a.length>u&&(u=a.length)}var y=o.range,b=1/u,_=1;(n.isPolar?_=n.isTransposed&&u>1?g:v:(o.isLinear&&(b*=y[1]-y[0]),_=p),!Object(r.isNil)(c)&&c>=0)?b=(1-(u-1)*(c/l))/u:b*=_;if(t.getAdjust("dodge")){var x=function(t,e){if(e){var n=Object(r.flatten)(t);return Object(r.valuesOfKey)(n,e).length}return t.length}(s,t.getAdjust("dodge").dodgeBy);if(!Object(r.isNil)(h)&&h>=0)b=(b-h/l*(x-1))/x;else!Object(r.isNil)(c)&&c>=0?(b*=_,b/=x):b/=x;b=b>=0?b:0}if(!Object(r.isNil)(f)&&f>=0){var O=f/l;b>O&&(b=O)}if(!Object(r.isNil)(d)&&d>=0){var w=d/l;b0&&(this.maskShapes.forEach((function(t){return t.show()})),this.emitEvent("show"))},e.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var e=this.recordPoints.length-1;this.createMask(e),this.updateShapesCapture(!1),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},e.prototype.move=function(){if(this.moving&&0!==this.maskShapes.length){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,i=this.getCurMaskShapeIndex();i>-1&&(this.recordPoints[i].forEach((function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},e.prototype.updateMask=function(t){var e=this;this.recordPoints.forEach((function(n,r){var o=Object(i.deepMix)({},e.getMaskAttrs(n),t);e.maskShapes[r].attr(o)}))},e.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},e.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(t){return t.hide()})),this.emitEvent("hide"))},e.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},e.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.preMovePoint=null},e.prototype.clear=function(){var t=this.getCurMaskShapeIndex();-1===t?(this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},e.prototype.destroy=function(){this.clear(),t.prototype.destroy.call(this)},e.prototype.getRecordPoints=function(){var t;return Object(r.__spreadArray)([],Object(r.__read)(null!==(t=this.recordPoints)&&void 0!==t?t:[]),!1)},e.prototype.recordPointStart=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint();this.recordPoints=Object(r.__spreadArray)(Object(r.__spreadArray)([],Object(r.__read)(t),!1),[[e]],!1)},e.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint(),n=t.splice(-1,1)[0]||[];n.push(e),this.recordPoints=Object(r.__spreadArray)(Object(r.__spreadArray)([],Object(r.__read)(t),!1),[n],!1)},e.prototype.recordPointClear=function(){this.recordPoints=[]},e.prototype.updateShapesCapture=function(t){this.maskShapes.forEach((function(e){return e.set("capture",t)}))},e.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex((function(e){var n=e.attrs,r=n.width,i=n.height,o=n.r;return!(0===r||0===i||0===o)&&e.isHit(t.x,t.y)}))},e}(n(86).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"conversionTag",(function(){return d})),n.d(e,"basicFunnel",(function(){return p}));var r=n(2),i=n(1),o=n(107),a=n(3),s=n(132),u=n(76),l=n(295);function c(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,o=n.yField,a=n.maxSize,s=n.minSize,u=Object(l.transformData)(i,i,{yField:o,maxSize:a,minSize:s});return e.data(u),t}function h(t){var e=t.chart,n=t.options,r=n.xField,l=n.yField,c=n.color,h=n.tooltip,f=n.label,d=n.shape,p=void 0===d?"funnel":d,g=n.funnelStyle,v=n.state,m=Object(s.getTooltipMapping)(h,[r,l]),y=m.fields,b=m.formatter;return Object(o.geometry)({chart:e,options:{type:"interval",xField:r,yField:u.FUNNEL_MAPPING_VALUE,colorField:r,tooltipFields:Object(i.isArray)(y)&&y.concat([u.FUNNEL_PERCENT,u.FUNNEL_CONVERSATION]),mapping:{shape:p,tooltip:b,color:c,style:g},label:f,state:v}}),Object(a.findGeometry)(t.chart,"interval").adjust("symmetric"),t}function f(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),t}function d(t){var e=t.options,n=t.chart,o=e.maxSize,a=Object(i.get)(n,["geometries","0","dataArray"],[]),s=Object(i.get)(n,["options","data","length"]),c=Object(i.map)(a,(function(t){return Object(i.get)(t,["0","nextPoints","0","x"])*s-.5}));return Object(l.conversionTagComponent)((function(t,e,n,i){var a=o-(o-t[u.FUNNEL_MAPPING_VALUE])/2;return Object(r.__assign)(Object(r.__assign)({},i),{start:[c[e-1]||e-.5,a],end:[c[e-1]||e-.5,a+.05]})}))(t),t}function p(t){return Object(a.flow)(c,h,f,d)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"geometry",(function(){return l})),n.d(e,"adaptor",(function(){return h}));var r=n(1),i=n(9),o=n(36),a=n(3),s=n(799),u=n(506);function l(t){var e=t.chart,n=t.options,i=n.percent,l=n.progressStyle,c=n.color,h=n.barWidthRatio;e.data(Object(u.getProgressData)(i));var f=Object(a.deepAssign)({},t,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:h,interval:{style:l,color:Object(r.isString)(c)?[c,s.DEFAULT_COLOR[1]]:c},args:{zIndexReversed:!0,sortZIndex:!0}}});return Object(o.interval)(f),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function c(t){return t.chart.coordinate("rect").transpose(),t}function h(t){return Object(a.flow)(l,Object(i.scale)({}),c,i.animation,i.theme,Object(i.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getProgressData",(function(){return o}));var r=n(1),i=n(316);function o(t){var e=Object(r.clamp)(Object(i.isRealNumber)(t)?t:0,0,1);return[{current:"".concat(e),type:"current",percent:e},{current:"".concat(e),type:"target",percent:1}]}},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(11),i=n(12);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:{},r=s.get(this);r||(r={}),r[t]||(r[t]=[]),r[t].push(e),s.set(this,r),n.capture,n.once,n.passive}},{key:"removeEventListener",value:function(t,e){var n=s.get(this);if(n){var r=n[t];if(r&&r.length>0)for(var i=r.length;i--;i>0)if(r[i]===e){r.splice(i,1);break}}}},{key:"dispatchEvent",value:function(t){var e=s.get(this)[t.type];if(e){var n,r=o(e);try{for(r.s();!(n=r.n()).done;){(0,n.value)(t)}}catch(t){r.e(t)}finally{r.f()}}}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(11),i=n(12),o=n(135),a=n(325),s=function(){function t(e){Object(r.default)(this,t),this.reset(),this.clickTolerance=e.clickTolerance||1}return Object(i.default)(t,[{key:"reset",value:function(){this.active=!1,this.moved=!1,delete this.lastPoint,delete this.eventButton}},{key:"mousedown",value:function(t,e){if(!this.lastPoint){var n=o.default.mouseButton(t);this.correctButton(t,n)&&(this.lastPoint=e,this.eventButton=n)}}},{key:"mousemoveWindow",value:function(t,e){var n=this.lastPoint;if(n)if(t.preventDefault(),Object(a.buttonStillPressed)(t,this.eventButton))this.reset();else if(this.moved||!(e.dist(n)=0;)i++;return i-e}function i(t,e,n,r,i){for(r===e&&r++;r>>1])<0?u=o:s=o+1;var l=r-s;switch(l){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;l>0;)t[s+l]=t[s+l-1],l--}t[s]=a}}function o(t,e,n,r,i,o){var a=0,s=0,u=1;if(o(t,e[n+i])>0){for(s=r-i;u0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}else{for(s=i+1;us&&(u=s);var l=a;a=i-u,u=i-l}for(a++;a>>1);o(t,e[n+c])>0?a=c+1:u=c}return u}function a(t,e,n,r,i,o){var a=0,s=0,u=1;if(o(t,e[n+i])<0){for(s=i+1;us&&(u=s);var l=a;a=i-u,u=i-l}else{for(s=r-i;u=0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}for(a++;a>>1);o(t,e[n+c])<0?u=c:a=c+1}return u}function s(t,e){var n,r,i,s=7,u=0;n=t.length;var l=[];function c(n){var c=r[n],h=i[n],f=r[n+1],d=i[n+1];i[n]=h+d,n===u-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),u--;var p=a(t[f],t,c,h,0,e);c+=p,0!==(h-=p)&&0!==(d=o(t[c+h-1],t,f,d,d-1,e))&&(h<=d?function(n,r,i,u){var c=0;for(c=0;c=7||g>=7);if(v)break;m<0&&(m=0),m+=2}if((s=m)<1&&(s=1),1===r){for(c=0;c=0;c--)t[g+c]=t[p+c];return void(t[d]=l[f])}var v=s;for(;;){var m=0,y=0,b=!1;do{if(e(l[f],t[h])<0){if(t[d--]=t[h--],m++,y=0,0==--r){b=!0;break}}else if(t[d--]=l[f--],y++,m=0,1==--u){b=!0;break}}while((m|y)=0;c--)t[g+c]=t[p+c];if(0===r){b=!0;break}}if(t[d--]=l[f--],1==--u){b=!0;break}if(0!==(y=u-o(t[h],l,0,u,u-1,e))){for(u-=y,g=(d-=y)+1,p=(f-=y)+1,c=0;c=7||y>=7);if(b)break;v<0&&(v=0),v+=2}(s=v)<1&&(s=1);if(1===u){for(g=(d-=r)+1,p=(h-=r)+1,c=r-1;c>=0;c--)t[g+c]=t[p+c];t[d]=l[f]}else{if(0===u)throw new Error;for(p=d-(u-1),c=0;c1;){var t=u-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;c(t)}},forceMergeRuns:function(){for(;u>1;){var t=u-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(a);do{if((u=r(t,n,o,e))c&&(h=c),i(t,n,n+h,n+u,e),u=h}l.pushRun(n,u),l.mergeRuns(),a-=u,n+=u}while(0!==a);l.forceMergeRuns()}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"SourceManager",(function(){return c})),n.d(e,"disableTransformOptionMerge",(function(){return h}));var r=n(0),i=n(148),o=n(32),a=n(147),s=n(739),u=n(421),l=n(183),c=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,a=this._getUpstreamSourceManagers(),s=!!a.length;if(f(n)){var u=n,l=void 0,c=void 0,h=void 0;if(s){var d=a[0];d.prepareSource(),l=(h=d.getSource()).data,c=h.sourceFormat,e=[d._getVersionSign()]}else l=u.get("data",!0),c=Object(r.isTypedArray)(l)?o.SOURCE_FORMAT_TYPED_ARRAY:o.SOURCE_FORMAT_ORIGINAL,e=[];var p=this._getSourceMetaRawOption()||{},g=h&&h.metaRawOption||{},v=Object(r.retrieve2)(p.seriesLayoutBy,g.seriesLayoutBy)||null,m=Object(r.retrieve2)(p.sourceHeader,g.sourceHeader),y=Object(r.retrieve2)(p.dimensions,g.dimensions);t=v!==g.seriesLayoutBy||!!m!=!!g.sourceHeader||y?[Object(i.createSource)(l,{seriesLayoutBy:v,sourceHeader:m,dimensions:y},c)]:[]}else{var b=n;if(s){var _=this._applyTransform(a);t=_.sourceList,e=_.upstreamSignList}else{var x=b.get("source",!0);t=[Object(i.createSource)(x,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,o=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(null!=a){1!==t.length&&d("")}var u=[],l=[];return Object(r.each)(t,(function(t){t.prepareSource();var e=t.getSource(a||0);null==a||e||d(""),u.push(e),l.push(t._getVersionSign())})),o?e=Object(s.applyDataTransform)(o,u,{datasetIndex:n.componentIndex}):null!=a&&(e=[Object(i.cloneSourceShallow)(u[0])]),{sourceList:e,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e0?n=r[0]:r[1]<0&&(n=r[1]);return n}(a,n),u=o.dim,l=a.dim,c=e.mapDimension(l),h=e.mapDimension(u),f="x"===l||"radius"===l?1:0,d=Object(i.map)(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,g=e.getCalculationInfo("stackResultDimension");return Object(r.isDimensionStacked)(e,d[0])&&(p=!0,d[0]=g),Object(r.isDimensionStacked)(e,d[1])&&(p=!0,d[1]=g),{dataDimsForPoint:d,valueStart:s,valueAxisDim:l,baseAxisDim:u,stacked:!!p,valueDim:c,baseDim:h,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function a(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n(38),o=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,u=e.startAngle,l=e.endAngle,c=e.clockwise,h=2*Math.PI,f=c?l-ua){l=(f+u)/2;break}1===h&&(c=d-r[0].tickValue)}null==l&&(u?u&&(l=r[r.length-1].coord):l=r[0].coord),o[n]=t.toGlobalCoord(l)}}));else{var s=this.getData(),u=s.getLayout("offset"),l=s.getLayout("size"),c=r.getBaseAxis().isHorizontal()?0:1;o[c]+=u+l/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(i.default);i.default.registerClass(s),e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"rectCoordAxisBuildSplitArea",(function(){return s})),n.d(e,"rectCoordAxisHandleRemove",(function(){return u}));var r=n(0),i=n(74),o=n(10),a=Object(o.makeInner)();function s(t,e,n,o){var s=n.axis;if(!s.scale.isBlank()){var u=n.getModel("splitArea"),l=u.getModel("areaStyle"),c=l.get("color"),h=o.coordinateSystem.getRect(),f=s.getTicksCoords({tickModel:u,clamp:!0});if(f.length){var d=c.length,p=a(t).splitAreaColors,g=r.createHashMap(),v=0;if(p)for(var m=0;m=0;i--){if(n[i][r])break}if(i<0){var o=t.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(e)}function u(t){var e=h(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return o(n,(function(t,n){for(var i=e.length-1;i>=0;i--)if(t=e[i][n]){r[n]=t;break}})),r}function l(t){a(t).snapshots=null}function c(t){return h(t).length}function h(t){var e=a(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n(0),o=n(763),a=n(134),s=n(294),u=n(10),l=n(5),c=n(42),h=a.default.mapVisual,f=a.default.eachVisual,d=i.isArray,p=i.each,g=l.asc,v=l.linearMap,m=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&s.replaceVisualOption(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=i.bind(t,this),this.controllerVisuals=s.createVisualMappings(this.option.controller,e,t),this.targetVisuals=s.createVisualMappings(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=u.normalizeToArray(t),e},e.prototype.eachTargetSeries=function(t,e){i.each(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&t.call(e,r)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var r,o=this.option,a=o.precision,s=this.dataBound,u=o.formatter;n=n||["<",">"],i.isArray(t)&&(t=t.slice(),r=!0);var l=e?t:r?[c(t[0]),c(t[1])]:c(t);return i.isString(u)?u.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):i.isFunction(u)?r?u(t[0],t[1]):u(t):r?t[0]===s[0]?n[0]+" "+l[1]:t[1]===s[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=t.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},r=e.target||(e.target={}),s=e.controller||(e.controller={});i.merge(r,n),i.merge(s,n);var u=this.isCategory();function l(n){d(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}l.call(this,r),l.call(this,s),function(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},p(r,(function(t,e){if(a.default.isValidType(e)){var n=o.default.get(e,"inactive",u);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),o=this.getItemSymbol()||"roundRect";p(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:u?r:[r]}),null==l.symbol&&(l.symbol=e&&i.clone(e)||(u?o:[o])),null==l.symbolSize&&(l.symbolSize=n&&i.clone(n)||(u?s[0]:[s[0],s[0]])),l.symbol=h(l.symbol,(function(t){return"none"===t?o:t}));var c=l.symbolSize;if(null!=c){var d=-1/0;f(c,(function(t){t>d&&(d=t)})),l.symbolSize=h(c,(function(t){return v(t,[0,d],[0,s[0]],!0)}))}}),this)}.call(this,s)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,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,textStyle:{color:"#333"}},e}(c.default);e.default=m},function(t,e,n){"use strict";n.r(e);var r=n(444),i=n(951),o=n(953),a=n(1620),s=n(593),u=n(1621),l=n(1619),c=n(522),h=n(523);e.default=function(t,e){var n,f=typeof e;return null==e||"boolean"===f?Object(c.default)(e):("number"===f?s.default:"string"===f?(n=Object(r.default)(e))?(e=n,i.default):l.default:e instanceof r.default?i.default:e instanceof Date?a.default:Object(h.isNumberArray)(e)?h.default:Array.isArray(e)?o.genericArray:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?u.default:s.default)(t,e)}},function(t,e,n){"use strict";n.r(e),e.default=t=>()=>t},function(t,e,n){"use strict";function r(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}n.r(e),n.d(e,"isNumberArray",(function(){return r})),e.default=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nthis.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=t.timeStamp),n.length===this.numTouches&&(this.centroid=function(t){var e,n=new o.default(0,0),r=s(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;n._add(i)}}catch(t){r.e(t)}finally{r.f()}return n.div(t.length)}(e),this.touches=Object(a.indexTouches)(n,e)))}},{key:"touchmove",value:function(t,e,n){if(!this.aborted&&this.centroid){var r=Object(a.indexTouches)(n,e);for(var i in this.touches)if(this.touches[i]){var o=this.touches[i],s=r[i];(!s||s.dist(o)>h)&&(this.aborted=!0)}}}},{key:"touchend",value:function(t,e,n){if((!this.centroid||t.timeStamp-this.startTime>c)&&(this.aborted=!0),0===n.length){var r=!this.aborted&&this.centroid;if(this.reset(),r)return r}}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"PerformanceMarkers",(function(){return s})),n.d(e,"PerformanceUtils",(function(){return u}));var r=n(18),i=null,o=[],a=r.$window.performance,s={create:"create",load:"load",fullLoad:"fullLoad"},u={mark:function(t){a.mark(t)},frame:function(t){var e=t;if(null!=i){var n=e-i;o.push(n)}i=e},clearMetrics:function(){for(var t in i=null,o=[],a.clearMeasures("loadTime"),a.clearMeasures("fullLoadTime"),s)a.clearMarks(s[t])},getPerformanceMetrics:function(){var t=a.measure("loadTime",s.create,s.load).duration,e=a.measure("fullLoadTime",s.create,s.fullLoad).duration,n=o.length,r=1/(o.reduce((function(t,e){return t+e}),0)/n/1e3),i=o.filter((function(t){return t>1e3/30})).reduce((function(t,e){return t+(e-1e3/30)/(1e3/30)}),0);return{loadTime:t,fullLoadTime:e,fps:r,percentDroppedFrames:i/(n+i)*100}}}},function(t,e,n){"use strict";function r(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}n.r(e),n.d(e,"newMessages",(function(){return r})),n.d(e,"messages",(function(){return i}));var i=r()},function(t,e,n){"use strict";n.r(e),n.d(e,"brushSVGPath",(function(){return T})),n.d(e,"brushSVGImage",(function(){return M})),n.d(e,"brushSVGTSpan",(function(){return A})),n.d(e,"brush",(function(){return j})),n.d(e,"setGradient",(function(){return I})),n.d(e,"setPattern",(function(){return k})),n.d(e,"setClipPath",(function(){return P}));var r=n(77),i=n(38),o=n(111),a=n(55),s=n(345),u=n(743),l=n(1421),c=n(94),h=n(0),f=n(326),d=n(843),p=n(69),g=n(104),v=Math.round;function m(t){return t&&Object(h.isString)(t.src)}function y(t){return t&&Object(h.isFunction)(t.toDataURL)}function b(t,e,n,i){Object(l.default)((function(o,a){var s="fill"===o||"stroke"===o;s&&Object(r.isGradient)(a)?I(e,t,o,i):s&&Object(r.isPattern)(a)?k(n,t,o,i):t[o]=a}),e,n,!1),function(t,e,n){var i=t.style;if(Object(r.hasShadow)(i)){var o=Object(r.getShadowKey)(t),a=n.shadowCache,s=a[o];if(!s){var u=t.getGlobalScale(),l=u[0],h=u[1];if(!l||!h)return;var f=i.shadowOffsetX||0,d=i.shadowOffsetY||0,p=i.shadowBlur,g=Object(r.normalizeColor)(i.shadowColor),v=g.opacity,m=g.color,y=p/2/l+" "+p/2/h;s=n.zrId+"-s"+n.shadowIdx++,n.defs[s]=Object(c.createVNode)("filter",s,{id:s,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Object(c.createVNode)("feDropShadow","",{dx:f/l,dy:d/h,stdDeviation:y,"flood-color":m,"flood-opacity":v})]),a[o]=s}e.filter=Object(r.getIdURL)(s)}}(n,t,i)}function _(t){return Object(r.isAroundZero)(t[0]-1)&&Object(r.isAroundZero)(t[1])&&Object(r.isAroundZero)(t[2])&&Object(r.isAroundZero)(t[3]-1)}function x(t,e,n){if(e&&(!function(t){return Object(r.isAroundZero)(t[4])&&Object(r.isAroundZero)(t[5])}(e)||!_(e))){var i=n?10:1e4;t.transform=_(e)?"translate("+v(e[4]*i)/i+" "+v(e[5]*i)/i+")":Object(r.getMatrixStr)(e)}}function O(t,e,n){for(var r=t.points,i=[],o=0;o1)throw new Error("quantiles must be between 0 and 1");return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}function i(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function o(t,e,n,r){for(n=n||0,r=r||t.length-1;r>n;){if(r-n>600){var a=r-n+1,s=e-n+1,u=Math.log(a),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(a-l)/a);s-a/2<0&&(c*=-1),o(t,e,Math.max(n,Math.floor(e-s*l/a+c)),Math.min(r,Math.floor(e+(a-s)*l/a+c)))}var h=t[e],f=n,d=r;for(i(t,n,e),t[r]>h&&i(t,n,r);fh;)d--}t[n]===h?i(t,n,d):i(t,++d,r),d<=e&&(n=d+1),e<=d&&(r=d-1)}}function a(t,e){var n=t.slice();if(Array.isArray(e)){!function(t,e){for(var n=[0],r=0;r=d));)if(n.x=h+o,n.y=f+u,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1]||r&&g(n,e,t[0])||r&&(c=r,!((l=n).x+l.x1>c[0].x&&l.x+l.x0c[0].y&&l.y+l.y0>5,_=t[0]>>5,x=n.x-(b<<4),O=127&x,w=32-O,S=n.y1-n.y0,C=void 0,E=(n.y+n.y0)*_+(x>>5),T=0;T>>O:0);E+=_}return delete n.sprite,!0}return!1}return T.start=function(){var a=t[0],u=t[1],l=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=2048/e;var n=t.getContext("2d",{willReadFrequently:!0});return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(E()),c=T.board?T.board:y((t[0]>>5)*t[1]),h=O.length,f=[],d=O.map((function(t,a,s){return t.text=S.call(this,t,a,s),t.font=e.call(this,t,a,s),t.style=C.call(this,t,a,s),t.weight=r.call(this,t,a,s),t.rotate=i.call(this,t,a,s),t.size=~~n.call(this,t,a,s),t.padding=o.call(this,t,a,s),t})).sort((function(t,e){return e.size-t.size})),g=-1,m=T.board?[{x:0,y:0},{x:a,y:u}]:null;return function(){var e=Date.now();for(;Date.now()-e>1,n.y=u*(s()+.5)>>1,p(l,n,d,g),n.hasText&&M(c,n,m)&&(f.push(n),m?T.hasImage||v(m,n):m=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}T._tags=f,T._bounds=m}(),T},T.createMask=function(e){var n=document.createElement("canvas"),r=t[0],i=t[1];if(r&&i){var o=r>>5,a=y((r>>5)*i);n.width=r,n.height=i;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var u=s.getImageData(0,0,r,i).data,l=0;l>5),f=l*r+c<<2,d=u[f]>=250&&u[f+1]>=250&&u[f+2]>=250?1<<31-c%32:0;a[h]|=d}T.board=a,T.hasImage=!0}},T.timeInterval=function(t){w=null==t?1/0:t},T.words=function(t){O=t},T.size=function(e){t=[+e[0],+e[1]]},T.font=function(t){e=_(t)},T.fontWeight=function(t){r=_(t)},T.rotate=function(t){i=_(t)},T.spiral=function(t){a=x[t]||t},T.fontSize=function(t){n=_(t)},T.padding=function(t){o=_(t)},T.random=function(t){s=_(t)},T}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){Object(r.isNil)(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var i=n.start()._tags;i.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var o=e.size,a=o[0],s=o[1];return i.push({text:"",value:0,x:0,y:0,opacity:0}),i.push({text:"",value:0,x:a,y:s,opacity:0}),i}var s=Math.PI/180;function u(t){return t.text}function l(){return"serif"}function c(){return"normal"}function h(t){return t.value}function f(){return 90*~~(2*Math.random())}function d(){return 1}function p(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,2048/o,2048/o);var a=0,u=0,l=0,c=n.length;for(--r;++r>5<<5,f=~~Math.max(Math.abs(v+m),Math.abs(v-m))}else h=h+31>>5<<5;if(f>l&&(l=f),a+h>=2048&&(a=0,u+=l,l=0),u+f>=2048)break;i.translate((a+(h>>1))/o,(u+(f>>1))/o),e.rotate&&i.rotate(e.rotate*s),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=h,e.height=f,e.xoff=a,e.yoff=u,e.x1=h>>1,e.y1=f>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=h}for(var b=i.getImageData(0,0,2048/o,2048/o).data,_=[];--r>=0;)if((e=n[r]).hasText){for(var x=(h=e.width)>>5,O=(f=e.y1-e.y0,0);O>5),T=b[2048*(u+C)+(a+O)<<2]?1<<31-O%32:0;_[E]|=T,w|=T}w?S=C:(e.y0++,f--,C--,u++)}e.y1=e.y0+S,e.sprite=_.slice(0,(e.y1-e.y0)*x)}}}function g(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,u=32-s,l=t.y1-t.y0,c=(t.y+t.y0)*n+(a>>5),h=0;h>>s:0))&e[c+f])return!0;c+=n}return!1}function v(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function m(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function y(t){for(var e=[],n=-1;++n\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}u="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n-1}function I(t){return t.trim().split(/\s+/g)}function k(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rn[e]})):r.sort()),r}function D(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=W(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=e.center=Y(r);e.timeStamp=v(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Z(s,u),e.distance=q(s,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y});e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=X(e.deltaX,e.deltaY);var l=$(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=g(l.x)>g(l.y)?l.x:l.y,e.scale=a?(c=a.pointers,h=r,q(h[0],h[1],U)/q(c[0],c[1],U)):1,e.rotation=a?function(t,e){return Z(e[1],e[0],U)+Z(t[1],t[0],U)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(8!=e.eventType&&(s>25||void 0===a.velocity)){var u=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,c=$(s,u,l);r=c.x,i=c.y,n=g(c.x)>g(c.y)?c.x:c.y,o=X(u,l),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var c,h;var f=t.element;A(e.srcEvent.target,f)&&(f=e.srcEvent.target);e.target=f}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function W(t){for(var e=[],n=0;n=g(e)?t<0?2:4:e<0?8:16}function q(t,e,n){n||(n=V);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function Z(t,e,n){n||(n=V);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}G.prototype={handler:function(){},init:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&M(this.element,this.evEl,this.domHandler),this.evTarget&&M(this.target,this.evTarget,this.domHandler),this.evWin&&M(N(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4};function Q(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,G.apply(this,arguments)}w(Q,G,{handler:function(t){var e=K[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var J={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},tt={2:"touch",3:"pen",4:"mouse",5:"kinect"},et="pointerdown",nt="pointermove pointerup pointercancel";function rt(){this.evEl=et,this.evWin=nt,G.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}h||!i.MSPointerEvent||i.PointerEvent||(et="MSPointerDown",nt="MSPointerMove MSPointerUp MSPointerCancel"),w(rt,G,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=J[r],o=tt[t.pointerType]||t.pointerType,a="touch"==o,s=k(e,t.pointerId,"pointerId");1&i&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&i&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var it={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ot(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,G.apply(this,arguments)}function at(t,e){var n=P(t.touches),r=P(t.changedTouches);return 12&e&&(n=L(n.concat(r),"identifier",!0)),[n,r]}w(ot,G,{handler:function(t){var e=it[t.type];if(1===e&&(this.started=!0),this.started){var n=at.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var st={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ut(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},G.apply(this,arguments)}function lt(t,e){var n=P(t.touches),r=this.targetIds;if(3&e&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=P(t.changedTouches),s=[],u=this.target;if(o=n.filter((function(t){return A(t.target,u)})),1===e)for(i=0;i-1&&r.splice(t,1)}),2500)}}function dt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+bt(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+bt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;te.threshold&&i&e.direction},attrTest:function(t){return Ot.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=_t(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),w(St,Ot,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),w(Ct,yt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distancee.time;if(this._input=t,!r||!n||12&t.eventType&&!i)this.reset();else if(1&t.eventType)this.reset(),this._timer=m((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=v(),this.manager.emit(this.options.event,this._input)))}}),w(Et,Ot,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),w(Tt,Ot,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return wt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&g(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=_t(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),w(Mt,yt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance(r=1))return r;for(;no?n=i:r=i,i=.5*(r-n)+n}return i},r.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var i=o;function o(t,e){this.x=t,this.y=e}o.prototype={clone:function(){return new o(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},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(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,n=t.y-this.y;return e*e+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),n=Math.sin(t),r=n*this.x+e*this.y;return this.x=e*this.x-n*this.y,this.y=r,this},_rotateAround:function(t,e){var n=Math.cos(t),r=Math.sin(t),i=e.y+r*(this.x-e.x)+n*(this.y-e.y);return this.x=e.x+n*(this.x-e.x)-r*(this.y-e.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(t){return t instanceof o?t:Array.isArray(t)?new o(t[0],t[1]):t};var a="undefined"!=typeof self?self:{},s=Math.pow(2,53)-1;function u(t,e,r,i){var o=new n(t,e,r,i);return function(t){return o.solve(t)}}var l=u(.25,.1,.25,1);function c(t,e,n){return Math.min(n,Math.max(e,t))}function h(t,e,n){var r=n-e,i=((t-e)%r+r)%r+e;return i===e?n:i}function f(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];for(var r=0,i=e;r>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function v(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function m(t,e){t.forEach((function(t){e[t]&&(e[t]=e[t].bind(e))}))}function y(t,e){return-1!==t.indexOf(e,t.length-e.length)}function b(t,e,n){var r={};for(var i in t)r[i]=e.call(n||this,t[i],i,t);return r}function _(t,e,n){var r={};for(var i in t)e.call(n||this,t[i],i,t)&&(r[i]=t[i]);return r}function x(t){return Array.isArray(t)?t.map(x):"object"==typeof t&&t?b(t,x):t}var O={};function w(t){O[t]||("undefined"!=typeof console&&console.warn(t),O[t]=!0)}function S(t,e,n){return(n.y-t.y)*(e.x-t.x)>(e.y-t.y)*(n.x-t.x)}function C(t){for(var e=0,n=0,r=t.length,i=r-1,o=void 0,a=void 0;n@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(t,n,r,i){var o=r||i;return e[n]=!o||o.toLowerCase(),""})),e["max-age"]){var n=parseInt(e["max-age"],10);isNaN(n)?delete e["max-age"]:e["max-age"]=n}return e}var M=null;function A(t){if(null==M){var e=t.navigator?t.navigator.userAgent:null;M=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return M}function j(t){try{var e=a[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(t){return!1}}var I,k,P,L,D=a.performance&&a.performance.now?a.performance.now.bind(a.performance):Date.now.bind(Date),R=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||a.msRequestAnimationFrame,N=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.msCancelAnimationFrame,F={now:D,frame:function(t){var e=R(t);return{cancel:function(){return N(e)}}},getImageData:function(t,e){void 0===e&&(e=0);var n=a.document.createElement("canvas"),r=n.getContext("2d");if(!r)throw new Error("failed to create canvas 2d context");return n.width=t.width,n.height=t.height,r.drawImage(t,0,0,t.width,t.height),r.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return I||(I=a.document.createElement("a")),I.href=t,I.href},hardwareConcurrency:a.navigator&&a.navigator.hardwareConcurrency||4,get devicePixelRatio(){return a.devicePixelRatio},get prefersReducedMotion(){return!!a.matchMedia&&(null==k&&(k=a.matchMedia("(prefers-reduced-motion: reduce)")),k.matches)}},B={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},z={supported:!1,testSupport:function(t){!V&&L&&(U?G(t):P=t)}},V=!1,U=!1;function G(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,L),t.isContextLost())return;z.supported=!0}catch(t){}t.deleteTexture(e),V=!0}a.document&&((L=a.document.createElement("img")).onload=function(){P&&G(P),P=null,U=!0},L.onerror=function(){V=!0,P=null},L.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var H="01",W=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function Y(t){return 0===t.indexOf("mapbox:")}W.prototype._createSkuToken=function(){var t=function(){for(var t="",e=0;e<10;e++)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",H,t].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},W.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},W.prototype.transformRequest=function(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}},W.prototype.normalizeStyleURL=function(t,e){if(!Y(t))return t;var n=Z(t);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||e)},W.prototype.normalizeGlyphsURL=function(t,e){if(!Y(t))return t;var n=Z(t);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||e)},W.prototype.normalizeSourceURL=function(t,e){if(!Y(t))return t;var n=Z(t);return n.path="/v4/"+n.authority+".json",n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||e)},W.prototype.normalizeSpriteURL=function(t,e,n,r){var i=Z(t);return Y(t)?(i.path="/styles/v1"+i.path+"/sprite"+e+n,this._makeAPIURL(i,this._customAccessToken||r)):(i.path+=""+e+n,K(i))},W.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!Y(t))return t;var n=Z(t);n.path=n.path.replace(/(\.(png|jpg)\d*)(?=$)/,(F.devicePixelRatio>=2||512===e?"@2x":"")+(z.supported?".webp":"$1")),n.path=n.path.replace(/^.+\/v4\//,"/"),n.path="/v4"+n.path;var r=this._customAccessToken||function(t){for(var e=0,n=t;e=0&&t.params.splice(i,1)}if("/"!==r.path&&(t.path=""+r.path+t.path),!B.REQUIRE_ACCESS_TOKEN)return K(t);if(!(e=e||B.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+n);if("s"===e[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+n);return t.params=t.params.filter((function(t){return-1===t.indexOf("access_token")})),t.params.push("access_token="+e),K(t)};var $=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function X(t){return $.test(t)}var q=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Z(t){var e=t.match(q);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function K(t){var e=t.params.length?"?"+t.params.join("&"):"";return t.protocol+"://"+t.authority+t.path+e}function Q(t){if(!t)return null;var e=t.split(".");if(!e||3!==e.length)return null;try{return JSON.parse(decodeURIComponent(a.atob(e[1]).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join("")))}catch(t){return null}}var J=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};J.prototype.getStorageKey=function(t){var e,n=Q(B.ACCESS_TOKEN);return e=n&&n.u?a.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number("0x"+e))}))):B.ACCESS_TOKEN||"",t?"mapbox.eventData."+t+":"+e:"mapbox.eventData:"+e},J.prototype.fetchEventData=function(){var t=j("localStorage"),e=this.getStorageKey(),n=this.getStorageKey("uuid");if(t)try{var r=a.localStorage.getItem(e);r&&(this.eventData=JSON.parse(r));var i=a.localStorage.getItem(n);i&&(this.anonId=i)}catch(t){w("Unable to read from LocalStorage")}},J.prototype.saveEventData=function(){var t=j("localStorage"),e=this.getStorageKey(),n=this.getStorageKey("uuid");if(t)try{a.localStorage.setItem(n,this.anonId),Object.keys(this.eventData).length>=1&&a.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){w("Unable to write to LocalStorage")}},J.prototype.processRequests=function(t){},J.prototype.postEvent=function(t,e,n,r){var i=this;if(B.EVENTS_URL){var o=Z(B.EVENTS_URL);o.params.push("access_token="+(r||B.ACCESS_TOKEN||""));var a={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:H,userId:this.anonId},s=e?f(a,e):a,u={url:K(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=xt(u,(function(t){i.pendingRequest=null,n(t),i.saveEventData(),i.processRequests(r)}))}},J.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var tt,et,nt=function(t){function e(){t.call(this,"map.load"),this.success={},this.skuToken=""}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.postMapLoadEvent=function(t,e,n,r){this.skuToken=n;var i=!(!r&&!B.ACCESS_TOKEN),o=Array.isArray(t)&&t.some((function(t){return Y(t)||X(t)}));B.EVENTS_URL&&i&&o&&this.queueRequest({id:e,timestamp:Date.now()},r)},e.prototype.processRequests=function(t){var e=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(),v(this.anonId)||(this.anonId=g()),this.postEvent(i,{skuToken:this.skuToken},(function(t){t||r&&(e.success[r]=!0)}),t))}},e}(J),rt=new(function(t){function e(e){t.call(this,"appUserTurnstile"),this._customAccessToken=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.postTurnstileEvent=function(t,e){B.EVENTS_URL&&B.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return Y(t)||X(t)}))&&this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var n=Q(B.ACCESS_TOKEN),r=n?n.u:B.ACCESS_TOKEN,i=r!==this.eventData.tokenU;v(this.anonId)||(this.anonId=g(),i=!0);var o=this.queue.shift();if(this.eventData.lastSuccess){var a=new Date(this.eventData.lastSuccess),s=new Date(o),u=(o-this.eventData.lastSuccess)/864e5;i=i||u>=1||u<-1||a.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(o,{"enabled.telemetry":!1},(function(t){t||(e.eventData.lastSuccess=o,e.eventData.tokenU=r)}),t)}},e}(J)),it=rt.postTurnstileEvent.bind(rt),ot=new nt,at=ot.postMapLoadEvent.bind(ot),st=500,ut=50;function lt(){a.caches&&!tt&&(tt=a.caches.open("mapbox-tiles"))}function ct(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var ht,ft=1/0;function dt(){return null==ht&&(ht=a.OffscreenCanvas&&new a.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof a.createImageBitmap),ht}var pt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(pt);var gt,vt,mt=function(t){function e(e,n,r){401===n&&X(r)&&(e+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),t.call(this,e),this.status=n,this.url=r,this.name=this.constructor.name,this.message=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},e}(Error),yt=E()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===a.location.protocol?a.parent:a).location.href},bt=function(t,e){if(!(/^file:/.test(n=t.url)||/^file:/.test(yt())&&!/^\w+:/.test(n))){if(a.fetch&&a.Request&&a.AbortController&&a.Request.prototype.hasOwnProperty("signal"))return function(t,e){var n,r=new a.AbortController,i=new a.Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,referrer:yt(),signal:r.signal}),o=!1,s=!1,u=(n=i.url).indexOf("sku=")>0&&X(n);"json"===t.type&&i.headers.set("Accept","application/json");var l=function(n,r,o){if(!s){if(n&&"SecurityError"!==n.message&&w(n),r&&o)return c(r);var l=Date.now();a.fetch(i).then((function(n){if(n.ok){var r=u?n.clone():null;return c(n,r,l)}return e(new mt(n.statusText,n.status,t.url))})).catch((function(t){20!==t.code&&e(new Error(t.message))}))}},c=function(n,r,u){("arrayBuffer"===t.type?n.arrayBuffer():"json"===t.type?n.json():n.text()).then((function(t){s||(r&&u&&function(t,e,n){if(lt(),tt){var r={status:e.status,statusText:e.statusText,headers:new a.Headers};e.headers.forEach((function(t,e){return r.headers.set(e,t)}));var i=T(e.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(t,e){if(void 0===et)try{new Response(new ReadableStream),et=!0}catch(t){et=!1}et?e(t.body):t.blob().then(e)}(e,(function(e){var n=new a.Response(e,r);lt(),tt&&tt.then((function(e){return e.put(ct(t.url),n)})).catch((function(t){return w(t.message)}))})))}}(i,r,u),o=!0,e(null,t,n.headers.get("Cache-Control"),n.headers.get("Expires")))})).catch((function(t){s||e(new Error(t.message))}))};return u?function(t,e){if(lt(),!tt)return e(null);var n=ct(t.url);tt.then((function(t){t.match(n).then((function(r){var i=function(t){if(!t)return!1;var e=new Date(t.headers.get("Expires")||0),n=T(t.headers.get("Cache-Control")||"");return e>Date.now()&&!n["no-cache"]}(r);t.delete(n),i&&t.put(n,r.clone()),e(null,r,i)})).catch(e)})).catch(e)}(i,l):l(null,null),{cancel:function(){s=!0,o||r.abort()}}}(t,e);if(E()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e,void 0,!0)}var n;return function(t,e){var n=new a.XMLHttpRequest;for(var r in n.open(t.method||"GET",t.url,!0),"arrayBuffer"===t.type&&(n.responseType="arraybuffer"),t.headers)n.setRequestHeader(r,t.headers[r]);return"json"===t.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===t.credentials,n.onerror=function(){e(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"===t.type)try{r=JSON.parse(n.response)}catch(t){return e(t)}e(null,r,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else e(new mt(n.statusText,n.status,t.url))},n.send(t.body),{cancel:function(){return n.abort()}}}(t,e)},_t=function(t,e){return bt(f(t,{type:"arrayBuffer"}),e)},xt=function(t,e){return bt(f(t,{method:"POST"}),e)},Ot="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";gt=[],vt=0;var wt=function(t,e){if(z.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),vt>=B.MAX_PARALLEL_IMAGE_REQUESTS){var n={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return gt.push(n),n}vt++;var r=!1,i=function(){if(!r)for(r=!0,vt--;gt.length&&vt0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)},Mt.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var At={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},jt=function(t,e,n,r){this.message=(t?t+": ":"")+n,r&&(this.identifier=r),null!=e&&e.__line__&&(this.line=e.__line__)};function It(t){var e=t.value;return e?[new jt(t.key,e,"constants have been deprecated as of v8")]:[]}function kt(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];for(var r=0,i=e;r":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var qt=[Nt,Ft,Bt,zt,Vt,Wt,Ut,$t(Gt),Yt];function Zt(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!Zt(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var n=0,r=qt;n255?255:t}function i(t){return r("%"===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function o(t){return(e="%"===t[t.length-1]?parseFloat(t)/100:parseFloat(t))<0?0:e>1?1:e;var e}function a(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}try{e.parseCSSColor=function(t){var e,s=t.replace(/ /g,"").toLowerCase();if(s in n)return n[s].slice();if("#"===s[0])return 4===s.length?(e=parseInt(s.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===s.length&&(e=parseInt(s.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var u=s.indexOf("("),l=s.indexOf(")");if(-1!==u&&l+1===s.length){var c=s.substr(0,u),h=s.substr(u+1,l-(u+1)).split(","),f=1;switch(c){case"rgba":if(4!==h.length)return null;f=o(h.pop());case"rgb":return 3!==h.length?null:[i(h[0]),i(h[1]),i(h[2]),f];case"hsla":if(4!==h.length)return null;f=o(h.pop());case"hsl":if(3!==h.length)return null;var d=(parseFloat(h[0])%360+360)%360/360,p=o(h[1]),g=o(h[2]),v=g<=.5?g*(p+1):g+p-g*p,m=2*g-v;return[r(255*a(m,v,d+1/3)),r(255*a(m,v,d)),r(255*a(m,v,d-1/3)),f];default:return null}}return null}}catch(t){}})).parseCSSColor,te=function(t,e,n,r){void 0===r&&(r=1),this.r=t,this.g=e,this.b=n,this.a=r};te.parse=function(t){if(t){if(t instanceof te)return t;if("string"==typeof t){var e=Jt(t);if(e)return new te(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},te.prototype.toString=function(){var t=this.toArray(),e=t[1],n=t[2],r=t[3];return"rgba("+Math.round(t[0])+","+Math.round(e)+","+Math.round(n)+","+r+")"},te.prototype.toArray=function(){var t=this.a;return 0===t?[0,0,0,0]:[255*this.r/t,255*this.g/t,255*this.b/t,t]},te.black=new te(0,0,0,1),te.white=new te(1,1,1,1),te.transparent=new te(0,0,0,0),te.red=new te(1,0,0,1);var ee=function(t,e,n){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};ee.prototype.compare=function(t,e){return this.collator.compare(t,e)},ee.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var ne=function(t,e,n,r,i){this.text=t,this.image=e,this.scale=n,this.fontStack=r,this.textColor=i},re=function(t){this.sections=t};re.fromString=function(t){return new re([new ne(t,null,null,null,null)])},re.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&&0!==t.image.name.length}))},re.factory=function(t){return t instanceof re?t:re.fromString(t)},re.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},re.prototype.serialize=function(){for(var t=["format"],e=0,n=this.sections;e=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value ["+[t,e,n,r].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof r?[t,e,n,r]:[t,e,n]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function ae(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 te)return!0;if(t instanceof ee)return!0;if(t instanceof re)return!0;if(t instanceof ie)return!0;if(Array.isArray(t)){for(var e=0,n=t;e2){var s=t[1];if("string"!=typeof s||!(s in he)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=he[s],r++}else o=Gt;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],r++}n=$t(o,a)}else n=he[i];for(var u=[];r1)&&e.push(r)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var de=function(t){this.type=Wt,this.sections=t};de.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n=t[1];if(!Array.isArray(n)&&"object"==typeof n)return e.error("First argument must be an image or text section.");for(var r=[],i=!1,o=1;o<=t.length-1;++o){var a=t[o];if(i&&"object"==typeof a&&!Array.isArray(a)){i=!1;var s=null;if(a["font-scale"]&&!(s=e.parse(a["font-scale"],1,Ft)))return null;var u=null;if(a["text-font"]&&!(u=e.parse(a["text-font"],1,$t(Bt))))return null;var l=null;if(a["text-color"]&&!(l=e.parse(a["text-color"],1,Vt)))return null;var c=r[r.length-1];c.scale=s,c.font=u,c.textColor=l}else{var h=e.parse(t[o],1,Gt);if(!h)return null;var f=h.type.kind;if("string"!==f&&"value"!==f&&"null"!==f&&"resolvedImage"!==f)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,r.push({content:h,scale:null,font:null,textColor:null})}}return new de(r)},de.prototype.evaluate=function(t){return new re(this.sections.map((function(e){var n=e.content.evaluate(t);return se(n)===Yt?new ne("",n,null,null,null):new ne(ue(n),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))},de.prototype.eachChild=function(t){for(var e=0,n=this.sections;e-1),n},pe.prototype.eachChild=function(t){t(this.input)},pe.prototype.outputDefined=function(){return!1},pe.prototype.serialize=function(){return["image",this.input.serialize()]};var ge={"to-boolean":zt,"to-color":Vt,"to-number":Ft,"to-string":Bt},ve=function(t,e){this.type=t,this.args=e};ve.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n=t[0];if(("to-boolean"===n||"to-string"===n)&&2!==t.length)return e.error("Expected one argument.");for(var r=ge[n],i=[],o=1;o4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":oe(e[0],e[1],e[2],e[3])))return new te(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new ce(n||"Could not parse color from value '"+("string"==typeof e?e:String(JSON.stringify(e)))+"'")}if("number"===this.type.kind){for(var a=null,s=0,u=this.args;s=e[2]||t[1]<=e[1]||t[3]>=e[3])}function we(t,e){var n=(180+t[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,i=Math.pow(2,e.z);return[Math.round(n*i*8192),Math.round(r*i*8192)]}function Se(t,e,n){return e[1]>t[1]!=n[1]>t[1]&&t[0]<(n[0]-e[0])*(t[1]-e[1])/(n[1]-e[1])+e[0]}function Ce(t,e){for(var n,r,i,o,a,s,u,l=!1,c=0,h=e.length;c0&&s<0||a<0&&s>0}function Me(t,e,n){for(var r=0,i=n;rn[2]){var i=.5*r,o=t[0]-n[0]>i?-r:n[0]-t[0]>i?r:0;0===o&&(o=t[0]-n[2]>i?-r:n[2]-t[0]>i?r:0),t[0]+=o}xe(e,t)}function Le(t,e,n,r){for(var i=8192*Math.pow(2,r.z),o=[8192*r.x,8192*r.y],a=[],s=0,u=t;s=0)return!1;var n=!0;return t.eachChild((function(t){n&&!Be(t,e)&&(n=!1)})),n}Re.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(ae(t[1])){var n=t[1];if("FeatureCollection"===n.type)for(var r=0;re))throw new ce("Input is not a number.");o=a-1}return 0}Ve.prototype.parse=function(t,e,n,r,i){return void 0===i&&(i={}),e?this.concat(e,n,r)._parse(t,i):this._parse(t,i)},Ve.prototype._parse=function(t,e){function n(t,e,n){return"assert"===n?new fe(e,[t]):"coerce"===n?new ve(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var r=t[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(t,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,e.typeAnnotation||"coerce");else o=n(o,a,e.typeAnnotation||"assert")}if(!(o instanceof le)&&"resolvedImage"!==o.type.kind&&function t(e){if(e instanceof ze)return t(e.boundExpression);if(e instanceof be&&"error"===e.name)return!1;if(e instanceof _e)return!1;if(e instanceof Re)return!1;var n=e instanceof ve||e instanceof fe,r=!0;return e.eachChild((function(e){r=n?r&&t(e):r&&e instanceof le})),!!r&&Ne(e)&&Be(e,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(o)){var u=new ye;try{o=new le(o.type,o.evaluate(u))}catch(t){return this.error(t.message),null}}return o}return this.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(void 0===t?"'undefined' value invalid. Use null instead.":"object"==typeof t?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof t+" instead.")},Ve.prototype.concat=function(t,e,n){var r="number"==typeof t?this.path.concat(t):this.path,i=n?this.scope.concat(n):this.scope;return new Ve(this.registry,r,e||null,i,this.errors)},Ve.prototype.error=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var r=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new Dt(r,t))},Ve.prototype.checkSubtype=function(t,e){var n=Zt(t,e);return n&&this.error(n),n};var Ge=function(t,e,n){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var r=0,i=n;r=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);var c=e.parse(s,l,i);if(!c)return null;i=i||c.type,r.push([a,c])}return new Ge(i,n,r)},Ge.prototype.evaluate=function(t){var e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return n[0].evaluate(t);var i=e.length;return r>=e[i-1]?n[i-1].evaluate(t):n[Ue(e,r)].evaluate(t)},Ge.prototype.eachChild=function(t){t(this.input);for(var e=0,n=this.outputs;e0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var We=Object.freeze({__proto__:null,number:He,color:function(t,e,n){return new te(He(t.r,e.r,n),He(t.g,e.g,n),He(t.b,e.b,n),He(t.a,e.a,n))},array:function(t,e,n){return t.map((function(t,r){return He(t,e[r],n)}))}}),Ye=6/29*3*(6/29),$e=Math.PI/180,Xe=180/Math.PI;function qe(t){return t>.008856451679035631?Math.pow(t,1/3):t/Ye+4/29}function Ze(t){return t>6/29?t*t*t:Ye*(t-4/29)}function Ke(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Qe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Je(t){var e=Qe(t.r),n=Qe(t.g),r=Qe(t.b),i=qe((.4124564*e+.3575761*n+.1804375*r)/.95047),o=qe((.2126729*e+.7151522*n+.072175*r)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-qe((.0193339*e+.119192*n+.9503041*r)/1.08883)),alpha:t.a}}function tn(t){var e=(t.l+16)/116,n=isNaN(t.a)?e:e+t.a/500,r=isNaN(t.b)?e:e-t.b/200;return e=1*Ze(e),n=.95047*Ze(n),r=1.08883*Ze(r),new te(Ke(3.2404542*n-1.5371385*e-.4985314*r),Ke(-.969266*n+1.8760108*e+.041556*r),Ke(.0556434*n-.2040259*e+1.0572252*r),t.alpha)}function en(t,e,n){var r=e-t;return t+n*(r>180||r<-180?r-360*Math.round(r/360):r)}var nn={forward:Je,reverse:tn,interpolate:function(t,e,n){return{l:He(t.l,e.l,n),a:He(t.a,e.a,n),b:He(t.b,e.b,n),alpha:He(t.alpha,e.alpha,n)}}},rn={forward:function(t){var e=Je(t),n=e.l,r=e.a,i=e.b,o=Math.atan2(i,r)*Xe;return{h:o<0?o+360:o,c:Math.sqrt(r*r+i*i),l:n,alpha:t.a}},reverse:function(t){var e=t.h*$e,n=t.c;return tn({l:t.l,a:Math.cos(e)*n,b:Math.sin(e)*n,alpha:t.alpha})},interpolate:function(t,e,n){return{h:en(t.h,e.h,n),c:He(t.c,e.c,n),l:He(t.l,e.l,n),alpha:He(t.alpha,e.alpha,n)}}},on=Object.freeze({__proto__:null,lab:nn,hcl:rn}),an=function(t,e,n,r,i){this.type=t,this.operator=e,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(var o=0,a=i;o1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(i=e.parse(i,2,Ft)))return null;var u=[],l=null;"interpolate-hcl"===n||"interpolate-lab"===n?l=Vt:e.expectedType&&"value"!==e.expectedType.kind&&(l=e.expectedType);for(var c=0;c=h)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);var g=e.parse(f,p,l);if(!g)return null;l=l||g.type,u.push([h,g])}return"number"===l.kind||"color"===l.kind||"array"===l.kind&&"number"===l.itemType.kind&&"number"==typeof l.N?new an(l,n,r,i,u):e.error("Type "+Xt(l)+" is not interpolatable.")},an.prototype.evaluate=function(t){var e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return n[0].evaluate(t);var i=e.length;if(r>=e[i-1])return n[i-1].evaluate(t);var o=Ue(e,r),a=an.interpolationFactor(this.interpolation,r,e[o],e[o+1]),s=n[o].evaluate(t),u=n[o+1].evaluate(t);return"interpolate"===this.operator?We[this.type.kind.toLowerCase()](s,u,a):"interpolate-hcl"===this.operator?rn.reverse(rn.interpolate(rn.forward(s),rn.forward(u),a)):nn.reverse(nn.interpolate(nn.forward(s),nn.forward(u),a))},an.prototype.eachChild=function(t){t(this.input);for(var e=0,n=this.outputs;e=n.length)throw new ce("Array index out of bounds: "+e+" > "+(n.length-1)+".");if(e!==Math.floor(e))throw new ce("Array index must be an integer, but found "+e+" instead.");return n[e]},cn.prototype.eachChild=function(t){t(this.index),t(this.input)},cn.prototype.outputDefined=function(){return!1},cn.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var hn=function(t,e){this.type=zt,this.needle=t,this.haystack=e};hn.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Gt),r=e.parse(t[2],2,Gt);return n&&r?Kt(n.type,[zt,Bt,Ft,Nt,Gt])?new hn(n,r):e.error("Expected first argument to be of type boolean, string, number or null, but found "+Xt(n.type)+" instead"):null},hn.prototype.evaluate=function(t){var e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!n)return!1;if(!Qt(e,["boolean","string","number","null"]))throw new ce("Expected first argument to be of type boolean, string, number or null, but found "+Xt(se(e))+" instead.");if(!Qt(n,["string","array"]))throw new ce("Expected second argument to be of type array or string, but found "+Xt(se(n))+" instead.");return n.indexOf(e)>=0},hn.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},hn.prototype.outputDefined=function(){return!0},hn.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var fn=function(t,e,n){this.type=Ft,this.needle=t,this.haystack=e,this.fromIndex=n};fn.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Gt),r=e.parse(t[2],2,Gt);if(!n||!r)return null;if(!Kt(n.type,[zt,Bt,Ft,Nt,Gt]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+Xt(n.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,Ft);return i?new fn(n,r,i):null}return new fn(n,r)},fn.prototype.evaluate=function(t){var e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!Qt(e,["boolean","string","number","null"]))throw new ce("Expected first argument to be of type boolean, string, number or null, but found "+Xt(se(e))+" instead.");if(!Qt(n,["string","array"]))throw new ce("Expected second argument to be of type array or string, but found "+Xt(se(n))+" instead.");if(this.fromIndex){var r=this.fromIndex.evaluate(t);return n.indexOf(e,r)}return n.indexOf(e)},fn.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},fn.prototype.outputDefined=function(){return!1},fn.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var dn=function(t,e,n,r,i,o){this.inputType=t,this.type=e,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o};dn.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return e.error("Expected an even number of arguments.");var n,r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var i={},o=[],a=2;aNumber.MAX_SAFE_INTEGER)return l.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof f&&Math.floor(f)!==f)return l.error("Numeric branch labels must be integer values.");if(n){if(l.checkSubtype(n,se(f)))return null}else n=se(f);if(void 0!==i[String(f)])return l.error("Branch labels must be unique.");i[String(f)]=o.length}var d=e.parse(u,a,r);if(!d)return null;r=r||d.type,o.push(d)}var p=e.parse(t[1],1,Gt);if(!p)return null;var g=e.parse(t[t.length-1],t.length-1,r);return g?"value"!==p.type.kind&&e.concat(1).checkSubtype(n,p.type)?null:new dn(n,r,p,i,o,g):null},dn.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(se(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},dn.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},dn.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},dn.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],n=[],r={},i=0,o=Object.keys(this.cases).sort();i=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Gt),r=e.parse(t[2],2,Ft);if(!n||!r)return null;if(!Kt(n.type,[$t(Gt),Bt,Gt]))return e.error("Expected first argument to be of type array or string, but found "+Xt(n.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,Ft);return i?new gn(n.type,n,r,i):null}return new gn(n.type,n,r)},gn.prototype.evaluate=function(t){var e=this.input.evaluate(t),n=this.beginIndex.evaluate(t);if(!Qt(e,["string","array"]))throw new ce("Expected first argument to be of type array or string, but found "+Xt(se(e))+" instead.");if(this.endIndex){var r=this.endIndex.evaluate(t);return e.slice(n,r)}return e.slice(n)},gn.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},gn.prototype.outputDefined=function(){return!1},gn.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var bn=yn("==",(function(t,e,n){return e===n}),mn),_n=yn("!=",(function(t,e,n){return e!==n}),(function(t,e,n,r){return!mn(0,e,n,r)})),xn=yn("<",(function(t,e,n){return e",(function(t,e,n){return e>n}),(function(t,e,n,r){return r.compare(e,n)>0})),wn=yn("<=",(function(t,e,n){return e<=n}),(function(t,e,n,r){return r.compare(e,n)<=0})),Sn=yn(">=",(function(t,e,n){return e>=n}),(function(t,e,n,r){return r.compare(e,n)>=0})),Cn=function(t,e,n,r,i){this.type=Bt,this.number=t,this.locale=e,this.currency=n,this.minFractionDigits=r,this.maxFractionDigits=i};Cn.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var n=e.parse(t[1],1,Ft);if(!n)return null;var r=t[2];if("object"!=typeof r||Array.isArray(r))return e.error("NumberFormat options argument must be an object.");var i=null;if(r.locale&&!(i=e.parse(r.locale,1,Bt)))return null;var o=null;if(r.currency&&!(o=e.parse(r.currency,1,Bt)))return null;var a=null;if(r["min-fraction-digits"]&&!(a=e.parse(r["min-fraction-digits"],1,Ft)))return null;var s=null;return r["max-fraction-digits"]&&!(s=e.parse(r["max-fraction-digits"],1,Ft))?null:new Cn(n,i,o,a,s)},Cn.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},Cn.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},Cn.prototype.outputDefined=function(){return!1},Cn.prototype.serialize=function(){var t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};var En=function(t){this.type=Ft,this.input=t};En.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?e.error("Expected argument of type string or array, but found "+Xt(n.type)+" instead."):new En(n):null},En.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new ce("Expected value to be of type string or array, but found "+Xt(se(e))+" instead.")},En.prototype.eachChild=function(t){t(this.input)},En.prototype.outputDefined=function(){return!1},En.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var Tn={"==":bn,"!=":_n,">":On,"<":xn,">=":Sn,"<=":wn,array:fe,at:cn,boolean:fe,case:pn,coalesce:un,collator:_e,format:de,image:pe,in:hn,"index-of":fn,interpolate:an,"interpolate-hcl":an,"interpolate-lab":an,length:En,let:ln,literal:le,match:dn,number:fe,"number-format":Cn,object:fe,slice:gn,step:Ge,string:fe,"to-boolean":ve,"to-color":ve,"to-number":ve,"to-string":ve,var:ze,within:Re};function Mn(t,e){var n=e[0],r=e[1],i=e[2],o=e[3];n=n.evaluate(t),r=r.evaluate(t),i=i.evaluate(t);var a=o?o.evaluate(t):1,s=oe(n,r,i,a);if(s)throw new ce(s);return new te(n/255*a,r/255*a,i/255*a,a)}function An(t,e){return t in e}function jn(t,e){var n=e[t];return void 0===n?null:n}function In(t){return{type:t}}function kn(t){return{result:"success",value:t}}function Pn(t){return{result:"error",value:t}}function Ln(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function Dn(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Rn(t){return!!t.expression&&t.expression.interpolated}function Nn(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function Fn(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function Bn(t){return t}function zn(t,e,n){return void 0!==t?t:void 0!==e?e:void 0!==n?n:void 0}function Vn(t,e,n,r,i){return zn(typeof n===i?r[n]:void 0,t.default,e.default)}function Un(t,e,n){if("number"!==Nn(n))return zn(t.default,e.default);var r=t.stops.length;if(1===r)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[r-1][0])return t.stops[r-1][1];var i=Ue(t.stops.map((function(t){return t[0]})),n);return t.stops[i][1]}function Gn(t,e,n){var r=void 0!==t.base?t.base:1;if("number"!==Nn(n))return zn(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[i-1][0])return t.stops[i-1][1];var o=Ue(t.stops.map((function(t){return t[0]})),n),a=function(t,e,n,r){var i=r-n,o=t-n;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}(n,r,t.stops[o][0],t.stops[o+1][0]),s=t.stops[o][1],u=t.stops[o+1][1],l=We[e.type]||Bn;if(t.colorSpace&&"rgb"!==t.colorSpace){var c=on[t.colorSpace];l=function(t,e){return c.reverse(c.interpolate(c.forward(t),c.forward(e),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=s.evaluate.apply(void 0,t),r=u.evaluate.apply(void 0,t);if(void 0!==n&&void 0!==r)return l(n,r,a)}}:l(s,u,a)}function Hn(t,e,n){return"color"===e.type?n=te.parse(n):"formatted"===e.type?n=re.fromString(n.toString()):"resolvedImage"===e.type?n=ie.fromString(n.toString()):Nn(n)===e.type||"enum"===e.type&&e.values[n]||(n=void 0),zn(n,t.default,e.default)}be.register(Tn,{error:[{kind:"error"},[Bt],function(t,e){throw new ce(e[0].evaluate(t))}],typeof:[Bt,[Gt],function(t,e){return Xt(se(e[0].evaluate(t)))}],"to-rgba":[$t(Ft,4),[Vt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Vt,[Ft,Ft,Ft],Mn],rgba:[Vt,[Ft,Ft,Ft,Ft],Mn],has:{type:zt,overloads:[[[Bt],function(t,e){return An(e[0].evaluate(t),t.properties())}],[[Bt,Ut],function(t,e){var n=e[1];return An(e[0].evaluate(t),n.evaluate(t))}]]},get:{type:Gt,overloads:[[[Bt],function(t,e){return jn(e[0].evaluate(t),t.properties())}],[[Bt,Ut],function(t,e){var n=e[1];return jn(e[0].evaluate(t),n.evaluate(t))}]]},"feature-state":[Gt,[Bt],function(t,e){return jn(e[0].evaluate(t),t.featureState||{})}],properties:[Ut,[],function(t){return t.properties()}],"geometry-type":[Bt,[],function(t){return t.geometryType()}],id:[Gt,[],function(t){return t.id()}],zoom:[Ft,[],function(t){return t.globals.zoom}],"heatmap-density":[Ft,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[Ft,[],function(t){return t.globals.lineProgress||0}],accumulated:[Gt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[Ft,In(Ft),function(t,e){for(var n=0,r=0,i=e;r":[zt,[Bt,Gt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&i>o}],"filter-id->":[zt,[Gt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&r>i}],"filter-<=":[zt,[Bt,Gt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&i<=o}],"filter-id-<=":[zt,[Gt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&r<=i}],"filter->=":[zt,[Bt,Gt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&i>=o}],"filter-id->=":[zt,[Gt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&r>=i}],"filter-has":[zt,[Gt],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[zt,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[zt,[$t(Bt)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[zt,[$t(Gt)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[zt,[Bt,$t(Gt)],function(t,e){var n=e[0];return e[1].value.indexOf(t.properties()[n.value])>=0}],"filter-in-large":[zt,[Bt,$t(Gt)],function(t,e){var n=e[0],r=e[1];return function(t,e,n,r){for(;n<=r;){var i=n+r>>1;if(e[i]===t)return!0;e[i]>t?r=i-1:n=i+1}return!1}(t.properties()[n.value],r.value,0,r.value.length-1)}],all:{type:zt,overloads:[[[zt,zt],function(t,e){var n=e[1];return e[0].evaluate(t)&&n.evaluate(t)}],[In(zt),function(t,e){for(var n=0,r=e;n0&&"string"==typeof t[0]&&t[0]in Tn}function $n(t,e){var n=new Ve(Tn,[],e?function(t){var e={color:Vt,string:Bt,number:Ft,enum:Bt,boolean:zt,formatted:Wt,resolvedImage:Yt};return"array"===t.type?$t(e[t.value]||Gt,t.length):e[t.type]}(e):void 0),r=n.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return r?kn(new Wn(r,e)):Pn(n.errors)}Wn.prototype.evaluateWithoutErrorHandling=function(t,e,n,r,i,o){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=n,this._evaluator.canonical=r,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this.expression.evaluate(this._evaluator)},Wn.prototype.evaluate=function(t,e,n,r,i,o){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null;try{var a=this.expression.evaluate(this._evaluator);if(null==a||"number"==typeof a&&a!=a)return this._defaultValue;if(this._enumValues&&!(a in this._enumValues))throw new ce("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(a)+" instead.");return a}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}};var Xn=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Fe(e.expression)};Xn.prototype.evaluateWithoutErrorHandling=function(t,e,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,n,r,i,o)},Xn.prototype.evaluate=function(t,e,n,r,i,o){return this._styleExpression.evaluate(t,e,n,r,i,o)};var qn=function(t,e,n,r){this.kind=t,this.zoomStops=n,this._styleExpression=e,this.isStateDependent="camera"!==t&&!Fe(e.expression),this.interpolationType=r};function Zn(t,e){if("error"===(t=$n(t,e)).result)return t;var n=t.value.expression,r=Ne(n);if(!r&&!Ln(e))return Pn([new Dt("","data expressions not supported")]);var i=Be(n,["zoom"]);if(!i&&!Dn(e))return Pn([new Dt("","zoom expressions not supported")]);var o=function t(e){var n=null;if(e instanceof ln)n=t(e.result);else if(e instanceof un)for(var r=0,i=e.args;rr.maximum?[new jt(e,n,n+" is greater than the maximum value "+r.maximum)]:[]}function er(t){var e,n,r,i=t.valueSpec,o=Pt(t.value.type),a={},s="categorical"!==o&&void 0===t.value.property,u=!s,l="array"===Nn(t.value.stops)&&"array"===Nn(t.value.stops[0])&&"object"===Nn(t.value.stops[0][0]),c=Qn({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===o)return[new jt(t.key,t.value,'identity function may not have a "stops" property')];var e=[],n=t.value;return e=e.concat(Jn({key:t.key,value:n,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:h})),"array"===Nn(n)&&0===n.length&&e.push(new jt(t.key,n,"array must have at least one stop")),e},default:function(t){return wr({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===o&&s&&c.push(new jt(t.key,t.value,'missing required property "property"')),"identity"===o||t.value.stops||c.push(new jt(t.key,t.value,'missing required property "stops"')),"exponential"===o&&t.valueSpec.expression&&!Rn(t.valueSpec)&&c.push(new jt(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(u&&!Ln(t.valueSpec)?c.push(new jt(t.key,t.value,"property functions not supported")):s&&!Dn(t.valueSpec)&&c.push(new jt(t.key,t.value,"zoom functions not supported"))),"categorical"!==o&&!l||void 0!==t.value.property||c.push(new jt(t.key,t.value,'"property" property is required')),c;function h(t){var e=[],o=t.value,s=t.key;if("array"!==Nn(o))return[new jt(s,o,"array expected, "+Nn(o)+" found")];if(2!==o.length)return[new jt(s,o,"array length 2 expected, length "+o.length+" found")];if(l){if("object"!==Nn(o[0]))return[new jt(s,o,"object expected, "+Nn(o[0])+" found")];if(void 0===o[0].zoom)return[new jt(s,o,"object stop key must have zoom")];if(void 0===o[0].value)return[new jt(s,o,"object stop key must have value")];if(r&&r>Pt(o[0].zoom))return[new jt(s,o[0].zoom,"stop zoom values must appear in ascending order")];Pt(o[0].zoom)!==r&&(r=Pt(o[0].zoom),n=void 0,a={}),e=e.concat(Qn({key:s+"[0]",value:o[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:tr,value:f}}))}else e=e.concat(f({key:s+"[0]",value:o[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},o));return Yn(Lt(o[1]))?e.concat([new jt(s+"[1]",o[1],"expressions are not allowed in function stops.")]):e.concat(wr({key:s+"[1]",value:o[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function f(t,r){var s=Nn(t.value),u=Pt(t.value),l=null!==t.value?t.value:r;if(e){if(s!==e)return[new jt(t.key,l,s+" stop domain type must match previous stop domain type "+e)]}else e=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new jt(t.key,l,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==o){var c="number expected, "+s+" found";return Ln(i)&&void 0===o&&(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new jt(t.key,l,c)]}return"categorical"!==o||"number"!==s||isFinite(u)&&Math.floor(u)===u?"categorical"!==o&&"number"===s&&void 0!==n&&u=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,n=t.slice(1);ee?1:0}function ur(t){if(!t)return!0;var e,n=t[0];return t.length<=1?"any"!==n:"=="===n?lr(t[1],t[2],"=="):"!="===n?fr(lr(t[1],t[2],"==")):"<"===n||">"===n||"<="===n||">="===n?lr(t[1],t[2],n):"any"===n?(e=t.slice(1),["any"].concat(e.map(ur))):"all"===n?["all"].concat(t.slice(1).map(ur)):"none"===n?["all"].concat(t.slice(1).map(ur).map(fr)):"in"===n?cr(t[1],t.slice(2)):"!in"===n?fr(cr(t[1],t.slice(2))):"has"===n?hr(t[1]):"!has"===n?fr(hr(t[1])):"within"!==n||t}function lr(t,e,n){switch(t){case"$type":return["filter-type-"+n,e];case"$id":return["filter-id-"+n,e];default:return["filter-"+n,t,e]}}function cr(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return typeof t!=typeof e[0]}))?["filter-in-large",t,["literal",e.sort(sr)]]:["filter-in-small",t,["literal",e]]}}function hr(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function fr(t){return["!",t]}function dr(t){return ir(Lt(t.value))?nr(kt({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function t(e){var n=e.value,r=e.key;if("array"!==Nn(n))return[new jt(r,n,"array expected, "+Nn(n)+" found")];var i,o=e.styleSpec,a=[];if(n.length<1)return[new jt(r,n,"filter array must have at least 1 element")];switch(a=a.concat(rr({key:r+"[0]",value:n[0],valueSpec:o.filter_operator,style:e.style,styleSpec:e.styleSpec})),Pt(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===Pt(n[1])&&a.push(new jt(r,n,'"$type" cannot be use with operator "'+n[0]+'"'));case"==":case"!=":3!==n.length&&a.push(new jt(r,n,'filter array for operator "'+n[0]+'" must have 3 elements'));case"in":case"!in":n.length>=2&&"string"!==(i=Nn(n[1]))&&a.push(new jt(r+"[1]",n[1],"string expected, "+i+" found"));for(var s=2;s=c[d+0]&&r>=c[d+1])?(a[f]=!0,o.push(l[f])):a[f]=!1}}},Lr.prototype._forEachCell=function(t,e,n,r,i,o,a,s){for(var u=this._convertToCellCoord(t),l=this._convertToCellCoord(e),c=this._convertToCellCoord(n),h=this._convertToCellCoord(r),f=u;f<=c;f++)for(var d=l;d<=h;d++){var p=this.d*d+f;if((!s||s(this._convertFromCellCoord(f),this._convertFromCellCoord(d),this._convertFromCellCoord(f+1),this._convertFromCellCoord(d+1)))&&i.call(this,t,e,n,r,p,o,a,s))return}},Lr.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},Lr.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},Lr.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,n=0,r=0;r=0)){var c=t[l];u[l]=Nr[s].shallow.indexOf(l)>=0?c:Ur(c,e)}t instanceof Error&&(u.message=t.message)}if(u.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==s&&(u.$name=s),u}throw new Error("can't serialize object of type "+typeof t)}function Gr(t){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||zr(t)||Vr(t)||ArrayBuffer.isView(t)||t instanceof Dr)return t;if(Array.isArray(t))return t.map(Gr);if("object"==typeof t){var e=t.$name||"Object",n=Nr[e].klass;if(!n)throw new Error("can't deserialize unregistered class "+e);if(n.deserialize)return n.deserialize(t);for(var r=Object.create(n.prototype),i=0,o=Object.keys(t);i=0?s:Gr(s)}}return r}throw new Error("can't deserialize object of type "+typeof t)}var Hr=function(){this.first=!0};Hr.prototype.update=function(t,e){var n=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=e):this.lastFloorZoom=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},"Arabic Supplement":function(t){return t>=1872&&t<=1919},"Arabic Extended-A":function(t){return t>=2208&&t<=2303},"Hangul Jamo":function(t){return t>=4352&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t>=5120&&t<=5759},Khmer:function(t){return t>=6016&&t<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t>=6320&&t<=6399},"General Punctuation":function(t){return t>=8192&&t<=8303},"Letterlike Symbols":function(t){return t>=8448&&t<=8527},"Number Forms":function(t){return t>=8528&&t<=8591},"Miscellaneous Technical":function(t){return t>=8960&&t<=9215},"Control Pictures":function(t){return t>=9216&&t<=9279},"Optical Character Recognition":function(t){return t>=9280&&t<=9311},"Enclosed Alphanumerics":function(t){return t>=9312&&t<=9471},"Geometric Shapes":function(t){return t>=9632&&t<=9727},"Miscellaneous Symbols":function(t){return t>=9728&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return t>=11008&&t<=11263},"CJK Radicals Supplement":function(t){return t>=11904&&t<=12031},"Kangxi Radicals":function(t){return t>=12032&&t<=12255},"Ideographic Description Characters":function(t){return t>=12272&&t<=12287},"CJK Symbols and Punctuation":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},"Hangul Compatibility Jamo":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},"Bopomofo Extended":function(t){return t>=12704&&t<=12735},"CJK Strokes":function(t){return t>=12736&&t<=12783},"Katakana Phonetic Extensions":function(t){return t>=12784&&t<=12799},"Enclosed CJK Letters and Months":function(t){return t>=12800&&t<=13055},"CJK Compatibility":function(t){return t>=13056&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return t>=13312&&t<=19903},"Yijing Hexagram Symbols":function(t){return t>=19904&&t<=19967},"CJK Unified Ideographs":function(t){return t>=19968&&t<=40959},"Yi Syllables":function(t){return t>=40960&&t<=42127},"Yi Radicals":function(t){return t>=42128&&t<=42191},"Hangul Jamo Extended-A":function(t){return t>=43360&&t<=43391},"Hangul Syllables":function(t){return t>=44032&&t<=55215},"Hangul Jamo Extended-B":function(t){return t>=55216&&t<=55295},"Private Use Area":function(t){return t>=57344&&t<=63743},"CJK Compatibility Ideographs":function(t){return t>=63744&&t<=64255},"Arabic Presentation Forms-A":function(t){return t>=64336&&t<=65023},"Vertical Forms":function(t){return t>=65040&&t<=65055},"CJK Compatibility Forms":function(t){return t>=65072&&t<=65103},"Small Form Variants":function(t){return t>=65104&&t<=65135},"Arabic Presentation Forms-B":function(t){return t>=65136&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return t>=65280&&t<=65519}};function Yr(t){for(var e=0,n=t;e=65097&&t<=65103)||Wr["CJK Compatibility Ideographs"](t)||Wr["CJK Compatibility"](t)||Wr["CJK Radicals Supplement"](t)||Wr["CJK Strokes"](t)||!(!Wr["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||Wr["CJK Unified Ideographs Extension A"](t)||Wr["CJK Unified Ideographs"](t)||Wr["Enclosed CJK Letters and Months"](t)||Wr["Hangul Compatibility Jamo"](t)||Wr["Hangul Jamo Extended-A"](t)||Wr["Hangul Jamo Extended-B"](t)||Wr["Hangul Jamo"](t)||Wr["Hangul Syllables"](t)||Wr.Hiragana(t)||Wr["Ideographic Description Characters"](t)||Wr.Kanbun(t)||Wr["Kangxi Radicals"](t)||Wr["Katakana Phonetic Extensions"](t)||Wr.Katakana(t)&&12540!==t||!(!Wr["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!Wr["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||Wr["Unified Canadian Aboriginal Syllabics"](t)||Wr["Unified Canadian Aboriginal Syllabics Extended"](t)||Wr["Vertical Forms"](t)||Wr["Yijing Hexagram Symbols"](t)||Wr["Yi Syllables"](t)||Wr["Yi Radicals"](t))))}function Xr(t){return!($r(t)||function(t){return!!(Wr["Latin-1 Supplement"](t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||Wr["General Punctuation"](t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||Wr["Letterlike Symbols"](t)||Wr["Number Forms"](t)||Wr["Miscellaneous Technical"](t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||Wr["Control Pictures"](t)&&9251!==t||Wr["Optical Character Recognition"](t)||Wr["Enclosed Alphanumerics"](t)||Wr["Geometric Shapes"](t)||Wr["Miscellaneous Symbols"](t)&&!(t>=9754&&t<=9759)||Wr["Miscellaneous Symbols and Arrows"](t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||Wr["CJK Symbols and Punctuation"](t)||Wr.Katakana(t)||Wr["Private Use Area"](t)||Wr["CJK Compatibility Forms"](t)||Wr["Small Form Variants"](t)||Wr["Halfwidth and Fullwidth Forms"](t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)}(t))}function qr(t){return t>=1424&&t<=2303||Wr["Arabic Presentation Forms-A"](t)||Wr["Arabic Presentation Forms-B"](t)}function Zr(t,e){return!(!e&&qr(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||Wr.Khmer(t))}function Kr(t){for(var e=0,n=t;e-1&&(Jr="error"),Qr&&Qr(t)};function ni(){ri.fire(new Et("pluginStateChange",{pluginStatus:Jr,pluginURL:ti}))}var ri=new Mt,ii=function(){return Jr},oi=function(){if("deferred"!==Jr||!ti)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Jr="loading",ni(),ti&&_t({url:ti},(function(t){t?ei(t):(Jr="loaded",ni())}))},ai={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return"loaded"===Jr||null!=ai.applyArabicShaping},isLoading:function(){return"loading"===Jr},setState:function(t){Jr=t.pluginStatus,ti=t.pluginURL},isParsed:function(){return null!=ai.applyArabicShaping&&null!=ai.processBidirectionalText&&null!=ai.processStyledBidirectionalText},getPluginURL:function(){return ti}},si=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Hr,this.transition={})};si.prototype.isSupportedScript=function(t){return function(t,e){for(var n=0,r=t;nthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*e}};var ui=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Fn(t))return new Kn(t,e);if(Yn(t)){var n=Zn(t,e);if("error"===n.result)throw new Error(n.value.map((function(t){return t.key+": "+t.message})).join(", "));return n.value}var r=t;return"string"==typeof t&&"color"===e.type&&(r=te.parse(t)),{kind:"constant",evaluate:function(){return r}}}(void 0===e?t.specification.default:e,t.specification)};ui.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},ui.prototype.possiblyEvaluate=function(t,e,n){return this.property.possiblyEvaluate(this,t,e,n)};var li=function(t){this.property=t,this.value=new ui(t,void 0)};li.prototype.transitioned=function(t,e){return new hi(this.property,this.value,e,f({},t.transition,this.transition),t.now)},li.prototype.untransitioned=function(){return new hi(this.property,this.value,null,{},0)};var ci=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};ci.prototype.getValue=function(t){return x(this._values[t].value.value)},ci.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new li(this._values[t].property)),this._values[t].value=new ui(this._values[t].property,null===e?void 0:x(e))},ci.prototype.getTransition=function(t){return x(this._values[t].transition)},ci.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new li(this._values[t].property)),this._values[t].transition=x(e)||void 0},ci.prototype.serialize=function(){for(var t={},e=0,n=Object.keys(this._values);ethis.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(r=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}(a))}return i};var fi=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};fi.prototype.possiblyEvaluate=function(t,e,n){for(var r=new gi(this._properties),i=0,o=Object.keys(this._values);ir.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:n,to:e}},e.prototype.interpolate=function(t){return t},e}(mi),bi=function(t){this.specification=t};bi.prototype.possiblyEvaluate=function(t,e,n,r){if(void 0!==t.value){if("constant"===t.expression.kind){var i=t.expression.evaluate(e,null,{},n,r);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new si(Math.floor(e.zoom-1),e)),t.expression.evaluate(new si(Math.floor(e.zoom),e)),t.expression.evaluate(new si(Math.floor(e.zoom+1),e)),e)}},bi.prototype._calculate=function(t,e,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:n,to:e}},bi.prototype.interpolate=function(t){return t};var _i=function(t){this.specification=t};_i.prototype.possiblyEvaluate=function(t,e,n,r){return!!t.expression.evaluate(e,null,{},n,r)},_i.prototype.interpolate=function(){return!1};var xi=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var n=t[e];n.specification.overridable&&this.overridableProperties.push(e);var r=this.defaultPropertyValues[e]=new ui(n,void 0),i=this.defaultTransitionablePropertyValues[e]=new li(n);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=r.possiblyEvaluate({})}};Fr("DataDrivenProperty",mi),Fr("DataConstantProperty",vi),Fr("CrossFadedDataDrivenProperty",yi),Fr("CrossFadedProperty",bi),Fr("ColorRampProperty",_i);var Oi=function(t){function e(e,n){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},"custom"!==e.type&&(this.metadata=(e=e).metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),n.layout&&(this._unevaluatedLayout=new di(n.layout)),n.paint)){for(var r in this._transitionablePaint=new ci(n.paint),e.paint)this.setPaintProperty(r,e.paint[r],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new gi(n.paint)}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,n){void 0===n&&(n={}),null!=e&&this._validate(Ir,"layers."+this.id+".layout."+t,t,e,n)||("visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)},e.prototype.getPaintProperty=function(t){return y(t,"-transition")?this._transitionablePaint.getTransition(t.slice(0,-"-transition".length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,n){if(void 0===n&&(n={}),null!=e&&this._validate(jr,"layers."+this.id+".paint."+t,t,e,n))return!1;if(y(t,"-transition"))return this._transitionablePaint.setTransition(t.slice(0,-"-transition".length),e||void 0),!1;var r=this._transitionablePaint._values[t],i="cross-faded-data-driven"===r.property.specification["property-type"],o=r.value.isDataDriven(),a=r.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var s=this._transitionablePaint._values[t].value;return s.isDataDriven()||o||i||this._handleOverridablePaintPropertyUpdate(t,a,s)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,n){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&&t=this.maxzoom)||"none"===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={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&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),_(t,(function(t,e){return!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length)}))},e.prototype._validate=function(t,e,n,r,i){return void 0===i&&(i={}),(!i||!1!==i.validate)&&kr(this,t.call(Mr,{key:e,layerType:this.type,objectKey:n,value:r,styleSpec:At,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof pi&&Ln(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1},e}(Mt),wi={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Si=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ci=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ei(t,e){void 0===e&&(e=1);var n=0,r=0;return{members:t.map((function(t){var i=wi[t.type].BYTES_PER_ELEMENT,o=n=Ti(n,Math.max(e,i)),a=t.components||1;return r=Math.max(r,i),n+=i*a,{name:t.name,type:t.type,components:a,offset:o}})),size:Ti(n,Math.max(r,e)),alignment:e}}function Ti(t,e){return Math.ceil(t/e)*e}Ci.serialize=function(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},Ci.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},Ci.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ci.prototype.clear=function(){this.length=0},Ci.prototype.resize=function(t){this.reserve(t),this.length=t},Ci.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},Ci.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Mi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var n=this.length;return this.resize(n+1),this.emplace(n,t,e)},e.prototype.emplace=function(t,e,n){var r=2*t;return this.int16[r+0]=e,this.int16[r+1]=n,t},e}(Ci);Mi.prototype.bytesPerElement=4,Fr("StructArrayLayout2i4",Mi);var Ai=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,n,r)},e.prototype.emplace=function(t,e,n,r,i){var o=4*t;return this.int16[o+0]=e,this.int16[o+1]=n,this.int16[o+2]=r,this.int16[o+3]=i,t},e}(Ci);Ai.prototype.bytesPerElement=8,Fr("StructArrayLayout4i8",Ai);var ji=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,r,i,o)},e.prototype.emplace=function(t,e,n,r,i,o,a){var s=6*t;return this.int16[s+0]=e,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,t},e}(Ci);ji.prototype.bytesPerElement=12,Fr("StructArrayLayout2i4i12",ji);var Ii=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,r,i,o)},e.prototype.emplace=function(t,e,n,r,i,o,a){var s=4*t,u=8*t;return this.int16[s+0]=e,this.int16[s+1]=n,this.uint8[u+4]=r,this.uint8[u+5]=i,this.uint8[u+6]=o,this.uint8[u+7]=a,t},e}(Ci);Ii.prototype.bytesPerElement=8,Fr("StructArrayLayout2i4ub8",Ii);var ki=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var n=this.length;return this.resize(n+1),this.emplace(n,t,e)},e.prototype.emplace=function(t,e,n){var r=2*t;return this.float32[r+0]=e,this.float32[r+1]=n,t},e}(Ci);ki.prototype.bytesPerElement=8,Fr("StructArrayLayout2f8",ki);var Pi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o,a,s,u,l){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,n,r,i,o,a,s,u,l)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,u,l,c){var h=10*t;return this.uint16[h+0]=e,this.uint16[h+1]=n,this.uint16[h+2]=r,this.uint16[h+3]=i,this.uint16[h+4]=o,this.uint16[h+5]=a,this.uint16[h+6]=s,this.uint16[h+7]=u,this.uint16[h+8]=l,this.uint16[h+9]=c,t},e}(Ci);Pi.prototype.bytesPerElement=20,Fr("StructArrayLayout10ui20",Pi);var Li=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o,a,s,u,l,c,h){var f=this.length;return this.resize(f+1),this.emplace(f,t,e,n,r,i,o,a,s,u,l,c,h)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,u,l,c,h,f){var d=12*t;return this.int16[d+0]=e,this.int16[d+1]=n,this.int16[d+2]=r,this.int16[d+3]=i,this.uint16[d+4]=o,this.uint16[d+5]=a,this.uint16[d+6]=s,this.uint16[d+7]=u,this.int16[d+8]=l,this.int16[d+9]=c,this.int16[d+10]=h,this.int16[d+11]=f,t},e}(Ci);Li.prototype.bytesPerElement=24,Fr("StructArrayLayout4i4ui4i24",Li);var Di=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var i=3*t;return this.float32[i+0]=e,this.float32[i+1]=n,this.float32[i+2]=r,t},e}(Ci);Di.prototype.bytesPerElement=12,Fr("StructArrayLayout3f12",Di);var Ri=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint32[1*t+0]=e,t},e}(Ci);Ri.prototype.bytesPerElement=4,Fr("StructArrayLayout1ul4",Ri);var Ni=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.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)},e.prototype.emplaceBack=function(t,e,n,r,i,o,a,s,u){var l=this.length;return this.resize(l+1),this.emplace(l,t,e,n,r,i,o,a,s,u)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,u,l){var c=10*t,h=5*t;return this.int16[c+0]=e,this.int16[c+1]=n,this.int16[c+2]=r,this.int16[c+3]=i,this.int16[c+4]=o,this.int16[c+5]=a,this.uint32[h+3]=s,this.uint16[c+8]=u,this.uint16[c+9]=l,t},e}(Ci);Ni.prototype.bytesPerElement=20,Fr("StructArrayLayout6i1ul2ui20",Ni);var Fi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,r,i,o)},e.prototype.emplace=function(t,e,n,r,i,o,a){var s=6*t;return this.int16[s+0]=e,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,t},e}(Ci);Fi.prototype.bytesPerElement=12,Fr("StructArrayLayout2i2i2i12",Fi);var Bi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,n,r,i)},e.prototype.emplace=function(t,e,n,r,i,o){var a=4*t,s=8*t;return this.float32[a+0]=e,this.float32[a+1]=n,this.float32[a+2]=r,this.int16[s+6]=i,this.int16[s+7]=o,t},e}(Ci);Bi.prototype.bytesPerElement=16,Fr("StructArrayLayout2f1f2i16",Bi);var zi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,n,r)},e.prototype.emplace=function(t,e,n,r,i){var o=12*t,a=3*t;return this.uint8[o+0]=e,this.uint8[o+1]=n,this.float32[a+1]=r,this.float32[a+2]=i,t},e}(Ci);zi.prototype.bytesPerElement=12,Fr("StructArrayLayout2ub2f12",zi);var Vi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=n,this.uint16[i+2]=r,t},e}(Ci);Vi.prototype.bytesPerElement=6,Fr("StructArrayLayout3ui6",Vi);var Ui=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.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)},e.prototype.emplaceBack=function(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v){var m=this.length;return this.resize(m+1),this.emplace(m,t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v,m){var y=24*t,b=12*t,_=48*t;return this.int16[y+0]=e,this.int16[y+1]=n,this.uint16[y+2]=r,this.uint16[y+3]=i,this.uint32[b+2]=o,this.uint32[b+3]=a,this.uint32[b+4]=s,this.uint16[y+10]=u,this.uint16[y+11]=l,this.uint16[y+12]=c,this.float32[b+7]=h,this.float32[b+8]=f,this.uint8[_+36]=d,this.uint8[_+37]=p,this.uint8[_+38]=g,this.uint32[b+10]=v,this.int16[y+22]=m,t},e}(Ci);Ui.prototype.bytesPerElement=48,Fr("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Ui);var Gi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.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)},e.prototype.emplaceBack=function(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v,m,y,b,_,x,O,w,S,C,E,T){var M=this.length;return this.resize(M+1),this.emplace(M,t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v,m,y,b,_,x,O,w,S,C,E,T)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v,m,y,b,_,x,O,w,S,C,E,T,M){var A=34*t,j=17*t;return this.int16[A+0]=e,this.int16[A+1]=n,this.int16[A+2]=r,this.int16[A+3]=i,this.int16[A+4]=o,this.int16[A+5]=a,this.int16[A+6]=s,this.int16[A+7]=u,this.uint16[A+8]=l,this.uint16[A+9]=c,this.uint16[A+10]=h,this.uint16[A+11]=f,this.uint16[A+12]=d,this.uint16[A+13]=p,this.uint16[A+14]=g,this.uint16[A+15]=v,this.uint16[A+16]=m,this.uint16[A+17]=y,this.uint16[A+18]=b,this.uint16[A+19]=_,this.uint16[A+20]=x,this.uint16[A+21]=O,this.uint16[A+22]=w,this.uint32[j+12]=S,this.float32[j+13]=C,this.float32[j+14]=E,this.float32[j+15]=T,this.float32[j+16]=M,t},e}(Ci);Gi.prototype.bytesPerElement=68,Fr("StructArrayLayout8i15ui1ul4f68",Gi);var Hi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.float32[1*t+0]=e,t},e}(Ci);Hi.prototype.bytesPerElement=4,Fr("StructArrayLayout1f4",Hi);var Wi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var i=3*t;return this.int16[i+0]=e,this.int16[i+1]=n,this.int16[i+2]=r,t},e}(Ci);Wi.prototype.bytesPerElement=6,Fr("StructArrayLayout3i6",Wi);var Yi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var i=4*t;return this.uint32[2*t+0]=e,this.uint16[i+2]=n,this.uint16[i+3]=r,t},e}(Ci);Yi.prototype.bytesPerElement=8,Fr("StructArrayLayout1ul2ui8",Yi);var $i=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var n=this.length;return this.resize(n+1),this.emplace(n,t,e)},e.prototype.emplace=function(t,e,n){var r=2*t;return this.uint16[r+0]=e,this.uint16[r+1]=n,t},e}(Ci);$i.prototype.bytesPerElement=4,Fr("StructArrayLayout2ui4",$i);var Xi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint16[1*t+0]=e,t},e}(Ci);Xi.prototype.bytesPerElement=2,Fr("StructArrayLayout1ui2",Xi);var qi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,n,r)},e.prototype.emplace=function(t,e,n,r,i){var o=4*t;return this.float32[o+0]=e,this.float32[o+1]=n,this.float32[o+2]=r,this.float32[o+3]=i,t},e}(Ci);qi.prototype.bytesPerElement=16,Fr("StructArrayLayout4f16",qi);var Zi=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return n.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},n.x1.get=function(){return this._structArray.int16[this._pos2+2]},n.y1.get=function(){return this._structArray.int16[this._pos2+3]},n.x2.get=function(){return this._structArray.int16[this._pos2+4]},n.y2.get=function(){return this._structArray.int16[this._pos2+5]},n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,n),e}(Si);Zi.prototype.size=20;var Ki=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new Zi(this,t)},e}(Ni);Fr("CollisionBoxArray",Ki);var Qi=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},n.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},n.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},n.segment.get=function(){return this._structArray.uint16[this._pos2+10]},n.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},n.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},n.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},n.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},n.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},n.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},n.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},n.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},n.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},n.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},n.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,n),e}(Si);Qi.prototype.size=48;var Ji=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new Qi(this,t)},e}(Ui);Fr("PlacedSymbolArray",Ji);var to=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},n.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},n.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},n.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},n.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},n.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},n.key.get=function(){return this._structArray.uint16[this._pos2+8]},n.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},n.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},n.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},n.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},n.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},n.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},n.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},n.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},n.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},n.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},n.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},n.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},n.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},n.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},n.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},n.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},n.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},n.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,n),e}(Si);to.prototype.size=68;var eo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new to(this,t)},e}(Gi);Fr("SymbolInstanceArray",eo);var no=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(Hi);Fr("GlyphOffsetArray",no);var ro=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(Wi);Fr("SymbolLineVertexArray",ro);var io=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,n),e}(Si);io.prototype.size=8;var oo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new io(this,t)},e}(Yi);Fr("FeatureIndexArray",oo);var ao=Ei([{name:"a_pos",components:2,type:"Int16"}],4).members,so=function(t){void 0===t&&(t=[]),this.segments=t};function uo(t,e){return 256*(t=c(Math.floor(t),0,255))+c(Math.floor(e),0,255)}so.prototype.prepareSegment=function(t,e,n,r){var i=this.segments[this.segments.length-1];return t>so.MAX_VERTEX_ARRAY_LENGTH&&w("Max vertices per segment is "+so.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!i||i.vertexLength+t>so.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==r)&&(i={vertexOffset:e.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(i.sortKey=r),this.segments.push(i)),i},so.prototype.get=function(){return this.segments},so.prototype.destroy=function(){for(var t=0,e=this.segments;t>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(u=0,n){case 3:u^=(255&t.charCodeAt(l+2))<<16;case 2:u^=(255&t.charCodeAt(l+1))<<8;case 1:i^=u=(65535&(u=(u=(65535&(u^=255&t.charCodeAt(l)))*a+(((u>>>16)*a&65535)<<16)&4294967295)<<15|u>>>17))*s+(((u>>>16)*s&65535)<<16)&4294967295}return i^=t.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}})),ho=e((function(t){t.exports=function(t,e){for(var n,r=t.length,i=e^r,o=0;r>=4;)n=1540483477*(65535&(n=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.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&t.charCodeAt(o+2))<<16;case 2:i^=(255&t.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&t.charCodeAt(o)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}})),fo=co,po=ho;fo.murmur3=co,fo.murmur2=po;var go=function(){this.ids=[],this.positions=[],this.indexed=!1};go.prototype.add=function(t,e,n,r){this.ids.push(mo(t)),this.positions.push(e,n,r)},go.prototype.getPositions=function(t){for(var e=mo(t),n=0,r=this.ids.length-1;n>1;this.ids[i]>=e?r=i:n=i+1}for(var o=[];this.ids[n]===e;)o.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return o},go.serialize=function(t,e){var n=new Float64Array(t.ids),r=new Uint32Array(t.positions);return function t(e,n,r,i){for(;r>1],a=r-1,s=i+1;;){do{a++}while(e[a]o);if(a>=s)break;yo(e,a,s),yo(n,3*a,3*s),yo(n,3*a+1,3*s+1),yo(n,3*a+2,3*s+2)}s-ra.x+1||ua.y+1)&&w("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return n}function Vo(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?zo(t):[]}}function Uo(t,e,n,r,i){t.emplaceBack(2*e+(r+1)/2,2*n+(i+1)/2)}var Go=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Mi,this.indexArray=new Vi,this.segments=new so,this.programConfigurations=new Do(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Ho(t,e){for(var n=0;n1){if(Xo(t,e))return!0;for(var r=0;r1?n:n.sub(e)._mult(i)._add(e))}function Qo(t,e){for(var n,r,i,o=!1,a=0;ae.y!=(i=n[u]).y>e.y&&e.x<(i.x-r.x)*(e.y-r.y)/(i.y-r.y)+r.x&&(o=!o);return o}function Jo(t,e){for(var n=!1,r=0,i=t.length-1;re.y!=a.y>e.y&&e.x<(a.x-o.x)*(e.y-o.y)/(a.y-o.y)+o.x&&(n=!n)}return n}function ta(t,e,n){var r=n[0],i=n[2];if(t.xi.x&&e.x>i.x||t.yi.y&&e.y>i.y)return!1;var o=S(t,e,n[0]);return o!==S(t,e,n[1])||o!==S(t,e,n[2])||o!==S(t,e,n[3])}function ea(t,e,n){var r=e.paint.get(t).value;return"constant"===r.kind?r.value:n.programConfigurations.get(e.id).getMaxValue(t)}function na(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ra(t,e,n,r,o){if(!e[0]&&!e[1])return t;var a=i.convert(e)._mult(o);"viewport"===n&&a._rotate(-r);for(var s=[],u=0;u=8192||c<0||c>=8192)){var h=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),f=h.vertexLength;Uo(this.layoutVertexArray,l,c,-1,-1),Uo(this.layoutVertexArray,l,c,1,-1),Uo(this.layoutVertexArray,l,c,1,1),Uo(this.layoutVertexArray,l,c,-1,1),this.indexArray.emplaceBack(f,f+1,f+2),this.indexArray.emplaceBack(f,f+3,f+2),h.vertexLength+=4,h.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{},r)},Fr("CircleBucket",Go,{omit:["layers"]});var ia=new xi({"circle-sort-key":new mi(At.layout_circle["circle-sort-key"])}),oa={paint:new xi({"circle-radius":new mi(At.paint_circle["circle-radius"]),"circle-color":new mi(At.paint_circle["circle-color"]),"circle-blur":new mi(At.paint_circle["circle-blur"]),"circle-opacity":new mi(At.paint_circle["circle-opacity"]),"circle-translate":new vi(At.paint_circle["circle-translate"]),"circle-translate-anchor":new vi(At.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new vi(At.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new vi(At.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new mi(At.paint_circle["circle-stroke-width"]),"circle-stroke-color":new mi(At.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new mi(At.paint_circle["circle-stroke-opacity"])}),layout:ia},aa="undefined"!=typeof Float32Array?Float32Array:Array;function sa(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ua(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=e[9],d=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],b=n[0],_=n[1],x=n[2],O=n[3];return t[0]=b*r+_*s+x*h+O*g,t[1]=b*i+_*u+x*f+O*v,t[2]=b*o+_*l+x*d+O*m,t[3]=b*a+_*c+x*p+O*y,t[4]=(b=n[4])*r+(_=n[5])*s+(x=n[6])*h+(O=n[7])*g,t[5]=b*i+_*u+x*f+O*v,t[6]=b*o+_*l+x*d+O*m,t[7]=b*a+_*c+x*p+O*y,t[8]=(b=n[8])*r+(_=n[9])*s+(x=n[10])*h+(O=n[11])*g,t[9]=b*i+_*u+x*f+O*v,t[10]=b*o+_*l+x*d+O*m,t[11]=b*a+_*c+x*p+O*y,t[12]=(b=n[12])*r+(_=n[13])*s+(x=n[14])*h+(O=n[15])*g,t[13]=b*i+_*u+x*f+O*v,t[14]=b*o+_*l+x*d+O*m,t[15]=b*a+_*c+x*p+O*y,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,n=arguments.length;n--;)e+=t[n]*t[n];return Math.sqrt(e)});var la,ca=ua;function ha(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,t}la=new aa(3),aa!=Float32Array&&(la[0]=0,la[1]=0,la[2]=0),function(){var t=new aa(4);aa!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var fa=(function(){var t=new aa(2);aa!=Float32Array&&(t[0]=0,t[1]=0)}(),function(t){function e(e){t.call(this,e,oa)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new Go(t)},e.prototype.queryRadius=function(t){var e=t;return ea("circle-radius",this,e)+ea("circle-stroke-width",this,e)+na(this.paint.get("circle-translate"))},e.prototype.queryIntersectsFeature=function(t,e,n,r,i,o,a,s){for(var u=ra(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,a),l=this.paint.get("circle-radius").evaluate(e,n)+this.paint.get("circle-stroke-width").evaluate(e,n),c="map"===this.paint.get("circle-pitch-alignment"),h=c?u:function(t,e){return t.map((function(t){return da(t,e)}))}(u,s),f=c?l*a:l,d=0,p=r;dt.width||i.height>t.height||n.x>t.width-i.width||n.y>t.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>e.width||i.height>e.height||r.x>e.width-i.width||r.y>e.height-i.height)throw new RangeError("out of range destination coordinates for image copy");for(var a=t.data,s=e.data,u=0;u80*n){r=o=t[0],i=a=t[1];for(var p=n;po&&(o=s),u>a&&(a=u);l=0!==(l=Math.max(o-r,a-i))?1/l:0}return Ia(f,d,n,r,i,l),d}function Aa(t,e,n,r,i){var o,a;if(i===Ja(t,e,n,r)>0)for(o=e;o=e;o-=r)a=Za(o,t[o],t[o+1],a);return a&&Ha(a,a.next)&&(Ka(a),a=a.next),a}function ja(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!Ha(r,r.next)&&0!==Ga(r.prev,r,r.next))r=r.next;else{if(Ka(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function Ia(t,e,n,r,i,o,a){if(t){!a&&o&&function(t,e,n,r){var i=t;do{null===i.z&&(i.z=Ba(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,a,s,u,l=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(a>1)}(i)}(t,r,i,o);for(var s,u,l=t;t.prev!==t.next;)if(s=t.prev,u=t.next,o?Pa(t,r,i,o):ka(t))e.push(s.i/n),e.push(t.i/n),e.push(u.i/n),Ka(t),t=u.next,l=u.next;else if((t=u)===l){a?1===a?Ia(t=La(ja(t),e,n),e,n,r,i,o,2):2===a&&Da(t,e,n,r,i,o):Ia(ja(t),e,n,r,i,o,1);break}}}function ka(t){var e=t.prev,n=t,r=t.next;if(Ga(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(Va(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Ga(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function Pa(t,e,n,r){var i=t.prev,o=t,a=t.next;if(Ga(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,u=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,l=Ba(i.x=l&&f&&f.z<=c;){if(h!==t.prev&&h!==t.next&&Va(i.x,i.y,o.x,o.y,a.x,a.y,h.x,h.y)&&Ga(h.prev,h,h.next)>=0)return!1;if(h=h.prevZ,f!==t.prev&&f!==t.next&&Va(i.x,i.y,o.x,o.y,a.x,a.y,f.x,f.y)&&Ga(f.prev,f,f.next)>=0)return!1;f=f.nextZ}for(;h&&h.z>=l;){if(h!==t.prev&&h!==t.next&&Va(i.x,i.y,o.x,o.y,a.x,a.y,h.x,h.y)&&Ga(h.prev,h,h.next)>=0)return!1;h=h.prevZ}for(;f&&f.z<=c;){if(f!==t.prev&&f!==t.next&&Va(i.x,i.y,o.x,o.y,a.x,a.y,f.x,f.y)&&Ga(f.prev,f,f.next)>=0)return!1;f=f.nextZ}return!0}function La(t,e,n){var r=t;do{var i=r.prev,o=r.next.next;!Ha(i,o)&&Wa(i,r,r.next,o)&&Xa(i,o)&&Xa(o,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(o.i/n),Ka(r),Ka(r.next),r=t=o),r=r.next}while(r!==t);return ja(r)}function Da(t,e,n,r,i,o){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&Ua(a,s)){var u=qa(a,s);return a=ja(a,a.next),u=ja(u,u.next),Ia(a,e,n,r,i,o),void Ia(u,e,n,r,i,o)}s=s.next}a=a.next}while(a!==t)}function Ra(t,e){return t.x-e.x}function Na(t,e){if(e=function(t,e){var n,r=e,i=t.x,o=t.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.x&&r.x>=c&&i!==r.x&&Va(on.x||r.x===n.x&&Fa(n,r)))&&(n=r,f=u)),r=r.next}while(r!==l);return n}(t,e)){var n=qa(e,t);ja(e,e.next),ja(n,n.next)}}function Fa(t,e){return Ga(t.prev,t,e.prev)<0&&Ga(e.next,t,t.next)<0}function Ba(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function za(t){var e=t,n=t;do{(e.x=0&&(t-a)*(r-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function Ua(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&Wa(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(Xa(t,e)&&Xa(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.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!==t);return r}(t,e)&&(Ga(t.prev,t,e.prev)||Ga(t,e.prev,e))||Ha(t,e)&&Ga(t.prev,t,t.next)>0&&Ga(e.prev,e,e.next)>0)}function Ga(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function Ha(t,e){return t.x===e.x&&t.y===e.y}function Wa(t,e,n,r){var i=$a(Ga(t,e,n)),o=$a(Ga(t,e,r)),a=$a(Ga(n,r,t)),s=$a(Ga(n,r,e));return i!==o&&a!==s||!(0!==i||!Ya(t,n,e))||!(0!==o||!Ya(t,r,e))||!(0!==a||!Ya(n,t,r))||!(0!==s||!Ya(n,e,r))}function Ya(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function $a(t){return t>0?1:t<0?-1:0}function Xa(t,e){return Ga(t.prev,t,t.next)<0?Ga(t,e,t.next)>=0&&Ga(t,t.prev,e)>=0:Ga(t,e,t.prev)<0||Ga(t,t.next,e)<0}function qa(t,e){var n=new Qa(t.i,t.x,t.y),r=new Qa(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function Za(t,e,n,r){var i=new Qa(t,e,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 Ka(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Qa(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Ja(t,e,n,r){for(var i=0,o=e,a=n-r;or;){if(i-r>600){var a=i-r+1,s=n-r+1,u=Math.log(a),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(a-l)/a)*(s-a/2<0?-1:1);t(e,n,Math.max(r,Math.floor(n-s*l/a+c)),Math.min(i,Math.floor(n+(a-s)*l/a+c)),o)}var h=e[n],f=r,d=i;for(es(e,r,n),o(e[i],h)>0&&es(e,r,i);f0;)d--}0===o(e[r],h)?es(e,r,d):es(e,++d,i),d<=n&&(r=d+1),n<=d&&(i=d-1)}}(t,e,n||0,r||t.length-1,i||ns)}function es(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function ns(t,e){return te?1:0}function rs(t,e){var n=t.length;if(n<=1)return[t];for(var r,i,o=[],a=0;a1)for(var u=0;u0&&n.holes.push(r+=t[i-1].length)}return n},Ea.default=Ta;var ss=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Mi,this.indexArray=new Vi,this.indexArray2=new $i,this.programConfigurations=new Do(t.layers,t.zoom),this.segments=new so,this.segments2=new so,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};ss.prototype.populate=function(t,e,n){this.hasPattern=os("fill",this.layers,e);for(var r=this.layers[0].layout.get("fill-sort-key"),i=[],o=0,a=t;o>3}if(o--,1===r||2===r)a+=t.readSVarint(),s+=t.readSVarint(),1===r&&(e&&u.push(e),e=[]),e.push(new i(a,s));else{if(7!==r)throw new Error("unknown command "+r);e&&e.push(e[0].clone())}}return e&&u.push(e),u},ds.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,n=1,r=0,i=0,o=0,a=1/0,s=-1/0,u=1/0,l=-1/0;t.pos>3}if(r--,1===n||2===n)(i+=t.readSVarint())s&&(s=i),(o+=t.readSVarint())l&&(l=o);else if(7!==n)throw new Error("unknown command "+n)}return[a,u,s,l]},ds.prototype.toGeoJSON=function(t,e,n){var r,i,o=this.extent*Math.pow(2,n),a=this.extent*t,s=this.extent*e,u=this.loadGeometry(),l=ds.types[this.type];function c(t){for(var e=0;e>3;e=1===r?t.readString():2===r?t.readFloat():3===r?t.readDouble():4===r?t.readVarint64():5===r?t.readVarint():6===r?t.readSVarint():7===r?t.readBoolean():null}return e}(n))}function bs(t,e,n){if(3===t){var r=new vs(n,n.readVarint()+n.pos);r.length&&(e[r.name]=r)}}ms.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new fs(this._pbf,e,this.extent,this._keys,this._values)};var _s={VectorTile:function(t,e){this.layers=t.readFields(bs,{},e)},VectorTileFeature:fs,VectorTileLayer:vs},xs=_s.VectorTileFeature.types,Os=Math.pow(2,13);function ws(t,e,n,r,i,o,a,s){t.emplaceBack(e,n,2*Math.floor(r*Os)+a,i*Os*2,o*Os*2,Math.round(s))}var Ss=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new ji,this.indexArray=new Vi,this.programConfigurations=new Do(t.layers,t.zoom),this.segments=new so,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Cs(t,e){return t.x===e.x&&(t.x<0||t.x>8192)||t.y===e.y&&(t.y<0||t.y>8192)}Ss.prototype.populate=function(t,e,n){this.features=[],this.hasPattern=os("fill-extrusion",this.layers,e);for(var r=0,i=t;r8192}))||k.every((function(t){return t.y<0}))||k.every((function(t){return t.y>8192}))))for(var g=0,v=0;v=1){var y=p[v-1];if(!Cs(m,y)){h.vertexLength+4>so.MAX_VERTEX_ARRAY_LENGTH&&(h=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var b=m.sub(y)._perp()._unit(),_=y.dist(m);g+_>32768&&(g=0),ws(this.layoutVertexArray,m.x,m.y,b.x,b.y,0,0,g),ws(this.layoutVertexArray,m.x,m.y,b.x,b.y,0,1,g),ws(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,0,g+=_),ws(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,1,g);var x=h.vertexLength;this.indexArray.emplaceBack(x,x+2,x+1),this.indexArray.emplaceBack(x+1,x+2,x+3),h.vertexLength+=4,h.primitiveLength+=2}}}}if(h.vertexLength+u>so.MAX_VERTEX_ARRAY_LENGTH&&(h=this.segments.prepareSegment(u,this.layoutVertexArray,this.indexArray)),"Polygon"===xs[t.type]){for(var O=[],w=[],S=h.vertexLength,C=0,E=s;C=2&&t[u-1].equals(t[u-2]);)u--;for(var l=0;l0;if(w&&m>l){var C=c.dist(d);if(C>2*h){var E=c.sub(c.sub(d)._mult(h/C)._round());this.updateDistance(d,E),this.addCurrentVertex(E,g,0,0,f),d=E}}var T=d&&p,M=T?n:s?"butt":r;if(T&&"round"===M&&(xi&&(M="bevel"),"bevel"===M&&(x>2&&(M="flipbevel"),x100)y=v.mult(-1);else{var A=x*g.add(v).mag()/g.sub(v).mag();y._perp()._mult(A*(S?-1:1))}this.addCurrentVertex(c,y,0,0,f),this.addCurrentVertex(c,y.mult(-1),0,0,f)}else if("bevel"===M||"fakeround"===M){var j=-Math.sqrt(x*x-1),I=S?j:0,k=S?0:j;if(d&&this.addCurrentVertex(c,g,I,k,f),"fakeround"===M)for(var P=Math.round(180*O/Math.PI/20),L=1;L2*h){var z=c.add(p.sub(c)._mult(h/B)._round());this.updateDistance(c,z),this.addCurrentVertex(z,v,0,0,f),c=z}}}}},Ds.prototype.addCurrentVertex=function(t,e,n,r,i,o){void 0===o&&(o=!1);var a=e.y*r-e.x,s=-e.y-e.x*r;this.addHalfVertex(t,e.x+e.y*n,e.y-e.x*n,o,!1,n,i),this.addHalfVertex(t,a,s,o,!0,-r,i),this.distance>Ls/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(t,e,n,r,i,o))},Ds.prototype.addHalfVertex=function(t,e,n,r,i,o,a){var s=.5*(this.lineClips?this.scaledDistance*(Ls-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((t.x<<1)+(r?1:0),(t.y<<1)+(i?1:0),Math.round(63*e)+128,Math.round(63*n)+128,1+(0===o?0:o<0?-1:1)|(63&s)<<2,s>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var u=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,u),a.primitiveLength++),i?this.e2=u:this.e1=u},Ds.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Ds.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Fr("LineBucket",Ds,{omit:["layers","patternFeatures"]});var Rs=new xi({"line-cap":new vi(At.layout_line["line-cap"]),"line-join":new mi(At.layout_line["line-join"]),"line-miter-limit":new vi(At.layout_line["line-miter-limit"]),"line-round-limit":new vi(At.layout_line["line-round-limit"]),"line-sort-key":new mi(At.layout_line["line-sort-key"])}),Ns={paint:new xi({"line-opacity":new mi(At.paint_line["line-opacity"]),"line-color":new mi(At.paint_line["line-color"]),"line-translate":new vi(At.paint_line["line-translate"]),"line-translate-anchor":new vi(At.paint_line["line-translate-anchor"]),"line-width":new mi(At.paint_line["line-width"]),"line-gap-width":new mi(At.paint_line["line-gap-width"]),"line-offset":new mi(At.paint_line["line-offset"]),"line-blur":new mi(At.paint_line["line-blur"]),"line-dasharray":new bi(At.paint_line["line-dasharray"]),"line-pattern":new yi(At.paint_line["line-pattern"]),"line-gradient":new _i(At.paint_line["line-gradient"])}),layout:Rs},Fs=new(function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(e,n){return n=new si(Math.floor(n.zoom),{now:n.now,fadeDuration:n.fadeDuration,zoomHistory:n.zoomHistory,transition:n.transition}),t.prototype.possiblyEvaluate.call(this,e,n)},e.prototype.evaluate=function(e,n,r,i){return n=f({},n,{zoom:Math.floor(n.zoom)}),t.prototype.evaluate.call(this,e,n,r,i)},e}(mi))(Ns.paint.properties["line-width"].specification);Fs.useIntegerZoom=!0;var Bs=function(t){function e(e){t.call(this,e,Ns),this.gradientVersion=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){"line-gradient"===t&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Ge,this.gradientVersion=(this.gradientVersion+1)%s)},e.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},e.prototype.recalculate=function(e,n){t.prototype.recalculate.call(this,e,n),this.paint._values["line-floorwidth"]=Fs.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)},e.prototype.createBucket=function(t){return new Ds(t)},e.prototype.queryRadius=function(t){var e=t,n=zs(ea("line-width",this,e),ea("line-gap-width",this,e)),r=ea("line-offset",this,e);return n/2+Math.abs(r)+na(this.paint.get("line-translate"))},e.prototype.queryIntersectsFeature=function(t,e,n,r,o,a,s){var u=ra(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,s),l=s/2*zs(this.paint.get("line-width").evaluate(e,n),this.paint.get("line-gap-width").evaluate(e,n)),c=this.paint.get("line-offset").evaluate(e,n);return c&&(r=function(t,e){for(var n=[],r=new i(0,0),o=0;o=3)for(var o=0;o0?e+2*t:t}var Vs=Ei([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Us=Ei([{name:"a_projected_pos",components:3,type:"Float32"}],4),Gs=(Ei([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Ei([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Hs=(Ei([{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"}]),Ei([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Ws=Ei([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Ys(t,e,n){return t.sections.forEach((function(t){t.text=function(t,e,n){var r=e.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?t=t.toLocaleUpperCase():"lowercase"===r&&(t=t.toLocaleLowerCase()),ai.applyArabicShaping&&(t=ai.applyArabicShaping(t)),t}(t.text,e,n)})),t}Ei([{name:"triangle",components:3,type:"Uint16"}]),Ei([{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"}]),Ei([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Ei([{type:"Float32",name:"offsetX"}]),Ei([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var $s={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Xs=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,c=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},qs=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;t[n+d]=255&a,d+=p,a/=256,l-=8);t[n+d-p]|=128*g},Zs=Ks;function Ks(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Ks.Varint=0,Ks.Fixed64=1,Ks.Bytes=2,Ks.Fixed32=5;var Qs="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Js(t){return t.type===Ks.Bytes?t.readVarint()+t.pos:t.pos+1}function tu(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function eu(t,e,n){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=t;i--)n.buf[i+r]=n.buf[i]}function nu(t,e){for(var n=0;n>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function du(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function pu(t,e,n){1===t&&n.readMessage(gu,e)}function gu(t,e,n){if(3===t){var r=n.readMessage(vu,{}),i=r.width,o=r.height,a=r.left,s=r.top,u=r.advance;e.push({id:r.id,bitmap:new ya({width:i+6,height:o+6},r.bitmap),metrics:{width:i,height:o,left:a,top:s,advance:u}})}}function vu(t,e,n){1===t?e.id=n.readVarint():2===t?e.bitmap=n.readBytes():3===t?e.width=n.readVarint():4===t?e.height=n.readVarint():5===t?e.left=n.readSVarint():6===t?e.top=n.readSVarint():7===t&&(e.advance=n.readVarint())}function mu(t){for(var e=0,n=0,r=0,i=t;r=0;f--){var d=a[f];if(!(h.w>d.w||h.h>d.h)){if(h.x=d.x,h.y=d.y,u=Math.max(u,h.y+h.h),s=Math.max(s,h.x+h.w),h.w===d.w&&h.h===d.h){var p=a.pop();f>3,o=this.pos;this.type=7&r,t(i,e,this),this.pos===o&&this.skip(r)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=hu(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=du(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=hu(this.buf,this.pos)+4294967296*hu(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=hu(this.buf,this.pos)+4294967296*du(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=Xs(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Xs(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,r=this.buf;return e=127&(n=r[this.pos++]),n<128?e:(e|=(127&(n=r[this.pos++]))<<7,n<128?e:(e|=(127&(n=r[this.pos++]))<<14,n<128?e:(e|=(127&(n=r[this.pos++]))<<21,n<128?e:function(t,e,n){var r,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return tu(t,r,e);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return tu(t,r,e);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return tu(t,r,e);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return tu(t,r,e);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return tu(t,r,e);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return tu(t,r,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(n=r[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&Qs?function(t,e,n){return Qs.decode(t.subarray(e,n))}(this.buf,e,t):function(t,e,n){for(var r="",i=e;i239?4:u>223?3:u>191?2:1;if(i+c>n)break;1===c?u<128&&(l=u):2===c?128==(192&(o=t[i+1]))&&(l=(31&u)<<6|63&o)<=127&&(l=null):3===c?(a=t[i+2],128==(192&(o=t[i+1]))&&128==(192&a)&&((l=(15&u)<<12|(63&o)<<6|63&a)<=2047||l>=55296&&l<=57343)&&(l=null)):4===c&&(a=t[i+2],s=t[i+3],128==(192&(o=t[i+1]))&&128==(192&a)&&128==(192&s)&&((l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||l>=1114112)&&(l=null)),null===l?(l=65533,c=1):l>65535&&(l-=65536,r+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),r+=String.fromCharCode(l),i+=c}return r}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Ks.Bytes)return t.push(this.readVarint(e));var n=Js(this);for(t=t||[];this.pos127;);else if(e===Ks.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Ks.Fixed32)this.pos+=4;else{if(e!==Ks.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e268435455||t<0?function(t,e){var n,r;if(t>=0?(n=t%4294967296|0,r=t/4294967296|0):(r=~(-t/4294967296),4294967295^(n=~(-t%4294967296))?n=n+1|0:(n=0,r=r+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,n){n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,n.buf[n.pos]=127&(t>>>=7)}(n,0,e),function(t,e){var n=(7&t)<<4;e.buf[e.pos++]|=n|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(r,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,n){for(var r,i,o=0;o55295&&r<57344){if(!i){r>56319||o+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):i=r;continue}if(r<56320){t[n++]=239,t[n++]=191,t[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(t[n++]=239,t[n++]=191,t[n++]=189,i=null);r<128?t[n++]=r:(r<2048?t[n++]=r>>6|192:(r<65536?t[n++]=r>>12|224:(t[n++]=r>>18|240,t[n++]=r>>12&63|128),t[n++]=r>>6&63|128),t[n++]=63&r|128)}return n}(this.buf,t,this.pos);var n=this.pos-e;n>=128&&eu(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),qs(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),qs(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var n=0;n=128&&eu(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,n){this.writeTag(t,Ks.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,nu,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,ru,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,au,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,iu,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,ou,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,su,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,uu,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,lu,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,cu,e)},writeBytesField:function(t,e){this.writeTag(t,Ks.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Ks.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Ks.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Ks.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Ks.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Ks.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Ks.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Ks.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Ks.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Ks.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var yu=function(t,e){var n=e.pixelRatio,r=e.version,i=e.stretchX,o=e.stretchY,a=e.content;this.paddedRect=t,this.pixelRatio=n,this.stretchX=i,this.stretchY=o,this.content=a,this.version=r},bu={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};bu.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},bu.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},bu.tlbr.get=function(){return this.tl.concat(this.br)},bu.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(yu.prototype,bu);var _u=function(t,e){var n={},r={};this.haveRenderCallbacks=[];var i=[];this.addImages(t,n,i),this.addImages(e,r,i);var o=mu(i),a=new ba({width:o.w||1,height:o.h||1});for(var s in t){var u=t[s],l=n[s].paddedRect;ba.copy(u.data,a,{x:0,y:0},{x:l.x+1,y:l.y+1},u.data)}for(var c in e){var h=e[c],f=r[c].paddedRect,d=f.x+1,p=f.y+1,g=h.data.width,v=h.data.height;ba.copy(h.data,a,{x:0,y:0},{x:d,y:p},h.data),ba.copy(h.data,a,{x:0,y:v-1},{x:d,y:p-1},{width:g,height:1}),ba.copy(h.data,a,{x:0,y:0},{x:d,y:p+v},{width:g,height:1}),ba.copy(h.data,a,{x:g-1,y:0},{x:d-1,y:p},{width:1,height:v}),ba.copy(h.data,a,{x:0,y:0},{x:d+g,y:p},{width:1,height:v})}this.image=a,this.iconPositions=n,this.patternPositions=r};_u.prototype.addImages=function(t,e,n){for(var r in t){var i=t[r],o={x:0,y:0,w:i.data.width+2,h:i.data.height+2};n.push(o),e[r]=new yu(o,i),i.hasRenderCallback&&this.haveRenderCallbacks.push(r)}},_u.prototype.patchUpdatedImages=function(t,e){for(var n in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[n],t.getImage(n),e),this.patchUpdatedImage(this.patternPositions[n],t.getImage(n),e)},_u.prototype.patchUpdatedImage=function(t,e,n){if(t&&e&&t.version!==e.version){t.version=e.version;var r=t.tl;n.update(e.data,void 0,{x:r[0],y:r[1]})}},Fr("ImagePosition",yu),Fr("ImageAtlas",_u);var xu={horizontal:1,vertical:2,horizontalOnly:3},Ou=function(){this.scale=1,this.fontStack="",this.imageName=null};Ou.forText=function(t,e){var n=new Ou;return n.scale=t||1,n.fontStack=e,n},Ou.forImage=function(t){var e=new Ou;return e.imageName=t,e};var wu=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function Su(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g){var v,m=wu.fromFeature(t,i);h===xu.vertical&&m.verticalizePunctuation();var y=ai.processBidirectionalText,b=ai.processStyledBidirectionalText;if(y&&1===m.sections.length){v=[];for(var _=0,x=y(m.toString(),Iu(m,l,o,e,r,d,p));_0&&F>C&&(C=F)}else{var B=n[T.fontStack],z=B&&B[A];if(z&&z.rect)k=z.rect,I=z.metrics;else{var V=e[T.fontStack],U=V&&V[A];if(!U)continue;I=U.metrics}j=24*(x-T.scale)}D?(t.verticalizable=!0,S.push({glyph:A,imageName:P,x:f,y:d+j,vertical:D,scale:T.scale,fontStack:T.fontStack,sectionIndex:M,metrics:I,rect:k}),f+=L*T.scale+l):(S.push({glyph:A,imageName:P,x:f,y:d+j,vertical:D,scale:T.scale,fontStack:T.fontStack,sectionIndex:M,metrics:I,rect:k}),f+=I.advance*T.scale+l)}0!==S.length&&(p=Math.max(f-l,p),Pu(S,0,S.length-1,v,C)),f=0;var G=o*x+C;w.lineOffset=Math.max(C,O),d+=G,g=Math.max(G,g),++m}else d+=o,++m}var H,W=d- -17,Y=ku(a),$=Y.horizontalAlign,X=Y.verticalAlign;(function(t,e,n,r,i,o,a,s,u){var l,c=(e-n)*i;l=o!==a?-s*r- -17:(-r*u+.5)*a;for(var h=0,f=t;h=0&&r>=t&&Cu[this.text.charCodeAt(r)];r--)n--;this.text=this.text.substring(t,n),this.sectionIndex=this.sectionIndex.slice(t,n)},wu.prototype.substring=function(t,e){var n=new wu;return n.text=this.text.substring(t,e),n.sectionIndex=this.sectionIndex.slice(t,e),n.sections=this.sections,n},wu.prototype.toString=function(){return this.text},wu.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,n){return Math.max(e,t.sections[n].scale)}),0)},wu.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(Ou.forText(t.scale,t.fontStack||e));for(var n=this.sections.length-1,r=0;r=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Cu={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Eu={};function Tu(t,e,n,r,i,o){if(e.imageName){var a=r[e.imageName];return a?a.displaySize[0]*e.scale*24/o+i:0}var s=n[e.fontStack],u=s&&s[t];return u?u.metrics.advance*e.scale+i:0}function Mu(t,e,n,r){var i=Math.pow(t-e,2);return r?t=0,h=0,f=0;f-n/2;){if(--a<0)return!1;s-=t[a].dist(o),o=t[a]}s+=t[a].dist(t[a+1]),a++;for(var u=[],l=0;sr;)l-=u.shift().angleDelta;if(l>i)return!1;a++,s+=c.dist(h)}return!0}function Vu(t){for(var e=0,n=0;nl){var p=(l-u)/d,g=He(h.x,f.x,p),v=He(h.y,f.y,p),m=new Du(g,v,f.angleTo(h),c);return m._round(),!a||zu(t,m,s,a,e)?m:void 0}u+=d}}function Wu(t,e,n,r,i,o,a,s,u){var l=Uu(r,o,a),c=Gu(r,i),h=c*a,f=0===t[0].x||t[0].x===u||0===t[0].y||t[0].y===u;return e-h=0&&x=0&&O=0&&d+c<=h){var w=new Du(x,O,b,g);w._round(),i&&!zu(e,w,a,i,o)||p.push(w)}}f+=y}return u||p.length||s||(p=t(e,f/2,r,i,o,a,s,!0,l)),p}(t,f?e/2*s%e:(c/2+2*o)*a*s%e,e,l,n,h,f,!1,u)}function Yu(t,e,n,r,o){for(var a=[],s=0;s=r&&f.x>=r||(h.x>=r?h=new i(r,h.y+(r-h.x)/(f.x-h.x)*(f.y-h.y))._round():f.x>=r&&(f=new i(r,h.y+(r-h.x)/(f.x-h.x)*(f.y-h.y))._round()),h.y>=o&&f.y>=o||(h.y>=o?h=new i(h.x+(o-h.y)/(f.y-h.y)*(f.x-h.x),o)._round():f.y>=o&&(f=new i(h.x+(o-h.y)/(f.y-h.y)*(f.x-h.x),o)._round()),l&&h.equals(l[l.length-1])||a.push(l=[h]),l.push(f)))))}return a}function $u(t,e,n,r){var o=[],a=t.image,s=a.pixelRatio,u=a.paddedRect.w-2,l=a.paddedRect.h-2,c=t.right-t.left,h=t.bottom-t.top,f=a.stretchX||[[0,u]],d=a.stretchY||[[0,l]],p=function(t,e){return t+e[1]-e[0]},g=f.reduce(p,0),v=d.reduce(p,0),m=u-g,y=l-v,b=0,_=g,x=0,O=v,w=0,S=m,C=0,E=y;if(a.content&&r){var T=a.content;b=Xu(f,0,T[0]),x=Xu(d,0,T[1]),_=Xu(f,T[0],T[2]),O=Xu(d,T[1],T[3]),w=T[0]-b,C=T[1]-x,S=T[2]-T[0]-_,E=T[3]-T[1]-O}var M=function(r,o,u,l){var f=Zu(r.stretch-b,_,c,t.left),d=Ku(r.fixed-w,S,r.stretch,g),p=Zu(o.stretch-x,O,h,t.top),m=Ku(o.fixed-C,E,o.stretch,v),y=Zu(u.stretch-b,_,c,t.left),T=Ku(u.fixed-w,S,u.stretch,g),M=Zu(l.stretch-x,O,h,t.top),A=Ku(l.fixed-C,E,l.stretch,v),j=new i(f,p),I=new i(y,p),k=new i(y,M),P=new i(f,M),L=new i(d/s,m/s),D=new i(T/s,A/s),R=e*Math.PI/180;if(R){var N=Math.sin(R),F=Math.cos(R),B=[F,-N,N,F];j._matMult(B),I._matMult(B),P._matMult(B),k._matMult(B)}var z=r.stretch+r.fixed,V=o.stretch+o.fixed;return{tl:j,tr:I,bl:P,br:k,tex:{x:a.paddedRect.x+1+z,y:a.paddedRect.y+1+V,w:u.stretch+u.fixed-z,h:l.stretch+l.fixed-V},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:L,pixelOffsetBR:D,minFontScaleX:S/s/c,minFontScaleY:E/s/h,isSDF:n}};if(r&&(a.stretchX||a.stretchY))for(var A=qu(f,m,g),j=qu(d,y,v),I=0;I0&&(p=Math.max(10,p),this.circleDiameter=p)}else{var g=a.top*s-u,v=a.bottom*s+u,m=a.left*s-u,y=a.right*s+u,b=a.collisionPadding;if(b&&(m-=b[0]*s,g-=b[1]*s,y+=b[2]*s,v+=b[3]*s),c){var _=new i(m,g),x=new i(y,g),O=new i(m,v),w=new i(y,v),S=c*Math.PI/180;_._rotate(S),x._rotate(S),O._rotate(S),w._rotate(S),m=Math.min(_.x,x.x,O.x,w.x),y=Math.max(_.x,x.x,O.x,w.x),g=Math.min(_.y,x.y,O.y,w.y),v=Math.max(_.y,x.y,O.y,w.y)}t.emplaceBack(e.x,e.y,m,g,y,v,n,r,o)}this.boxEndIndex=t.length},Ju=function(t,e){if(void 0===t&&(t=[]),void 0===e&&(e=tl),this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)};function tl(t,e){return te?1:0}function el(t,e,n){void 0===e&&(e=1),void 0===n&&(n=!1);for(var r=1/0,o=1/0,a=-1/0,s=-1/0,u=t[0],l=0;la)&&(a=c.x),(!l||c.y>s)&&(s=c.y)}var h=Math.min(a-r,s-o),f=h/2,d=new Ju([],nl);if(0===h)return new i(r,o);for(var p=r;pv.d||!v.d)&&(v=y,n&&console.log("found best %d after %d probes",Math.round(1e4*y.d)/1e4,m)),y.max-v.d<=e||(d.push(new rl(y.p.x-(f=y.h/2),y.p.y-f,f,t)),d.push(new rl(y.p.x+f,y.p.y-f,f,t)),d.push(new rl(y.p.x-f,y.p.y+f,f,t)),d.push(new rl(y.p.x+f,y.p.y+f,f,t)),m+=4)}return n&&(console.log("num probes: "+m),console.log("best distance: "+v.d)),v.p}function nl(t,e){return e.max-t.max}function rl(t,e,n,r){this.p=new i(t,e),this.h=n,this.d=function(t,e){for(var n=!1,r=1/0,i=0;it.y!=c.y>t.y&&t.x<(c.x-l.x)*(t.y-l.y)/(c.y-l.y)+l.x&&(n=!n),r=Math.min(r,Ko(t,l,c))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}Ju.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Ju.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}},Ju.prototype.peek=function(){return this.data[0]},Ju.prototype._up=function(t){for(var e=this.data,n=this.compare,r=e[t];t>0;){var i=t-1>>1,o=e[i];if(n(r,o)>=0)break;e[t]=o,t=i}e[t]=r},Ju.prototype._down=function(t){for(var e=this.data,n=this.compare,r=this.length>>1,i=e[t];t=0)break;e[t]=a,t=o}e[t]=i};var il=Number.POSITIVE_INFINITY;function ol(t,e){return e[1]!==il?function(t,e,n){var r=0,i=0;switch(e=Math.abs(e),n=Math.abs(n),t){case"top-right":case"top-left":case"top":i=n-7;break;case"bottom-right":case"bottom-left":case"bottom":i=7-n}switch(t){case"top-right":case"bottom-right":case"right":r=-e;break;case"top-left":case"bottom-left":case"left":r=e}return[r,i]}(t,e[0],e[1]):function(t,e){var n=0,r=0;e<0&&(e=0);var i=e/Math.sqrt(2);switch(t){case"top-right":case"top-left":r=i-7;break;case"bottom-right":case"bottom-left":r=7-i;break;case"bottom":r=7-e;break;case"top":r=e-7}switch(t){case"top-right":case"bottom-right":n=-i;break;case"top-left":case"bottom-left":n=i;break;case"left":n=e;break;case"right":n=-e}return[n,r]}(t,e[0])}function al(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function sl(t,e,n,r,o,a,s,u,l,c,h,f,d,p,g){var v=function(t,e,n,r,o,a,s,u){for(var l=r.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,c=[],h=0,f=e.positionedLines;h32640&&w(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):"composite"===m.kind&&((y=[128*p.compositeTextSizes[0].evaluate(s,{},g),128*p.compositeTextSizes[1].evaluate(s,{},g)])[0]>32640||y[1]>32640)&&w(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),t.addSymbols(t.text,v,y,u,a,s,c,e,l.lineStartIndex,l.lineLength,d,g);for(var b=0,_=h;b<_.length;b+=1)f[_[b]]=t.text.placedSymbolArray.length-1;return 4*v.length}function ul(t){for(var e in t)return t[e];return null}function ll(t,e,n,r){var i=t.compareText;if(e in i){for(var o=i[e],a=o.length-1;a>=0;a--)if(r.dist(o[a])0)&&("constant"!==o.value.kind||o.value.value.length>0),l="constant"!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length>0,c=i.get("symbol-sort-key");if(this.features=[],u||l){for(var h=e.iconDependencies,f=e.glyphDependencies,d=e.availableImages,p=new si(this.zoom),g=0,v=t;g=0;for(var k=0,P=S.sections;k=0;s--)o[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s>0&&(i+=e[s-1].dist(e[s]));for(var u=0;u0},ml.prototype.hasIconData=function(){return this.icon.segments.get().length>0},ml.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},ml.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},ml.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},ml.prototype.addIndicesForPlacedSymbol=function(t,e){for(var n=t.placedSymbolArray.get(e),r=n.vertexStartIndex+4*n.numGlyphs,i=n.vertexStartIndex;i1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var n=0,r=this.symbolInstanceIndexes;n=0&&r.indexOf(t)===n&&e.addIndicesForPlacedSymbol(e.text,t)})),i.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,i.verticalPlacedTextSymbolIndex),i.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,i.placedIconSymbolIndex),i.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,i.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Fr("SymbolBucket",ml,{omit:["layers","collisionBoxArray","features","compareText"]}),ml.MAX_GLYPHS=65535,ml.addDynamicAttributes=dl;var yl=new xi({"symbol-placement":new vi(At.layout_symbol["symbol-placement"]),"symbol-spacing":new vi(At.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new vi(At.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new mi(At.layout_symbol["symbol-sort-key"]),"symbol-z-order":new vi(At.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new vi(At.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new vi(At.layout_symbol["icon-ignore-placement"]),"icon-optional":new vi(At.layout_symbol["icon-optional"]),"icon-rotation-alignment":new vi(At.layout_symbol["icon-rotation-alignment"]),"icon-size":new mi(At.layout_symbol["icon-size"]),"icon-text-fit":new vi(At.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new vi(At.layout_symbol["icon-text-fit-padding"]),"icon-image":new mi(At.layout_symbol["icon-image"]),"icon-rotate":new mi(At.layout_symbol["icon-rotate"]),"icon-padding":new vi(At.layout_symbol["icon-padding"]),"icon-keep-upright":new vi(At.layout_symbol["icon-keep-upright"]),"icon-offset":new mi(At.layout_symbol["icon-offset"]),"icon-anchor":new mi(At.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new vi(At.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new vi(At.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new vi(At.layout_symbol["text-rotation-alignment"]),"text-field":new mi(At.layout_symbol["text-field"]),"text-font":new mi(At.layout_symbol["text-font"]),"text-size":new mi(At.layout_symbol["text-size"]),"text-max-width":new mi(At.layout_symbol["text-max-width"]),"text-line-height":new vi(At.layout_symbol["text-line-height"]),"text-letter-spacing":new mi(At.layout_symbol["text-letter-spacing"]),"text-justify":new mi(At.layout_symbol["text-justify"]),"text-radial-offset":new mi(At.layout_symbol["text-radial-offset"]),"text-variable-anchor":new vi(At.layout_symbol["text-variable-anchor"]),"text-anchor":new mi(At.layout_symbol["text-anchor"]),"text-max-angle":new vi(At.layout_symbol["text-max-angle"]),"text-writing-mode":new vi(At.layout_symbol["text-writing-mode"]),"text-rotate":new mi(At.layout_symbol["text-rotate"]),"text-padding":new vi(At.layout_symbol["text-padding"]),"text-keep-upright":new vi(At.layout_symbol["text-keep-upright"]),"text-transform":new mi(At.layout_symbol["text-transform"]),"text-offset":new mi(At.layout_symbol["text-offset"]),"text-allow-overlap":new vi(At.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new vi(At.layout_symbol["text-ignore-placement"]),"text-optional":new vi(At.layout_symbol["text-optional"])}),bl={paint:new xi({"icon-opacity":new mi(At.paint_symbol["icon-opacity"]),"icon-color":new mi(At.paint_symbol["icon-color"]),"icon-halo-color":new mi(At.paint_symbol["icon-halo-color"]),"icon-halo-width":new mi(At.paint_symbol["icon-halo-width"]),"icon-halo-blur":new mi(At.paint_symbol["icon-halo-blur"]),"icon-translate":new vi(At.paint_symbol["icon-translate"]),"icon-translate-anchor":new vi(At.paint_symbol["icon-translate-anchor"]),"text-opacity":new mi(At.paint_symbol["text-opacity"]),"text-color":new mi(At.paint_symbol["text-color"],{runtimeType:Vt,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),"text-halo-color":new mi(At.paint_symbol["text-halo-color"]),"text-halo-width":new mi(At.paint_symbol["text-halo-width"]),"text-halo-blur":new mi(At.paint_symbol["text-halo-blur"]),"text-translate":new vi(At.paint_symbol["text-translate"]),"text-translate-anchor":new vi(At.paint_symbol["text-translate-anchor"])}),layout:yl},_l=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Nt,this.defaultValue=t};_l.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},_l.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},_l.prototype.outputDefined=function(){return!1},_l.prototype.serialize=function(){return null},Fr("FormatSectionOverride",_l,{omit:["defaultValue"]});var xl=function(t){function e(e){t.call(this,e,bl)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.recalculate=function(e,n){if(t.prototype.recalculate.call(this,e,n),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var r=this.layout.get("text-writing-mode");if(r){for(var i=[],o=0,a=r;o",targetMapId:r,sourceMapId:o.mapId})}}},Dl.prototype.receive=function(t){var e=t.data,n=e.id;if(n&&(!e.targetMapId||this.mapId===e.targetMapId))if(""===e.type){delete this.tasks[n];var r=this.cancelCallbacks[n];delete this.cancelCallbacks[n],r&&r()}else E()||e.mustQueue?(this.tasks[n]=e,this.taskQueue.push(n),this.invoker.trigger()):this.processTask(n,e)},Dl.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),e&&this.processTask(t,e)}},Dl.prototype.processTask=function(t,e){var n=this;if(""===e.type){var r=this.callbacks[t];delete this.callbacks[t],r&&(e.error?r(Gr(e.error)):r(null,Gr(e.data)))}else{var i=!1,o=A(this.globalScope)?void 0:[],a=e.hasCallback?function(e,r){i=!0,delete n.cancelCallbacks[t],n.target.postMessage({id:t,type:"",sourceMapId:n.mapId,error:e?Ur(e):null,data:Ur(r,o)},o)}:function(t){i=!0},s=null,u=Gr(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,u,a);else if(this.parent.getWorkerSource){var l=e.type.split(".");s=this.parent.getWorkerSource(e.sourceMapId,l[0],u.source)[l[1]](u,a)}else a(new Error("Could not find function "+e.type));!i&&s&&s.cancel&&(this.cancelCallbacks[t]=s.cancel)}},Dl.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Nl=function(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Nl.prototype.setNorthEast=function(t){return this._ne=t instanceof Fl?new Fl(t.lng,t.lat):Fl.convert(t),this},Nl.prototype.setSouthWest=function(t){return this._sw=t instanceof Fl?new Fl(t.lng,t.lat):Fl.convert(t),this},Nl.prototype.extend=function(t){var e,n,r=this._sw,i=this._ne;if(t instanceof Fl)e=t,n=t;else{if(!(t instanceof Nl))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Nl.convert(t)):this.extend(Fl.convert(t)):this;if(n=t._ne,!(e=t._sw)||!n)return this}return r||i?(r.lng=Math.min(e.lng,r.lng),r.lat=Math.min(e.lat,r.lat),i.lng=Math.max(n.lng,i.lng),i.lat=Math.max(n.lat,i.lat)):(this._sw=new Fl(e.lng,e.lat),this._ne=new Fl(n.lng,n.lat)),this},Nl.prototype.getCenter=function(){return new Fl((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Nl.prototype.getSouthWest=function(){return this._sw},Nl.prototype.getNorthEast=function(){return this._ne},Nl.prototype.getNorthWest=function(){return new Fl(this.getWest(),this.getNorth())},Nl.prototype.getSouthEast=function(){return new Fl(this.getEast(),this.getSouth())},Nl.prototype.getWest=function(){return this._sw.lng},Nl.prototype.getSouth=function(){return this._sw.lat},Nl.prototype.getEast=function(){return this._ne.lng},Nl.prototype.getNorth=function(){return this._ne.lat},Nl.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Nl.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Nl.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Nl.prototype.contains=function(t){var e=Fl.convert(t),n=e.lng,r=e.lat,i=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(i=this._sw.lng>=n&&n>=this._ne.lng),this._sw.lat<=r&&r<=this._ne.lat&&i},Nl.convert=function(t){return!t||t instanceof Nl?t:new Nl(t)};var Fl=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid LngLat object: ("+t+", "+e+")");if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Fl.prototype.wrap=function(){return new Fl(h(this.lng,-180,180),this.lat)},Fl.prototype.toArray=function(){return[this.lng,this.lat]},Fl.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Fl.prototype.distanceTo=function(t){var e=Math.PI/180,n=this.lat*e,r=t.lat*e,i=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(i,1))},Fl.prototype.toBounds=function(t){void 0===t&&(t=0);var e=360*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return new Nl(new Fl(this.lng-n,this.lat-e),new Fl(this.lng+n,this.lat+e))},Fl.convert=function(t){if(t instanceof Fl)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new Fl(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new Fl(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Bl=2*Math.PI*6371008.8;function zl(t){return Bl*Math.cos(t*Math.PI/180)}function Vl(t){return(180+t)/360}function Ul(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Gl(t,e){return t/zl(e)}function Hl(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}var Wl=function(t,e,n){void 0===n&&(n=0),this.x=+t,this.y=+e,this.z=+n};Wl.fromLngLat=function(t,e){void 0===e&&(e=0);var n=Fl.convert(t);return new Wl(Vl(n.lng),Ul(n.lat),Gl(e,n.lat))},Wl.prototype.toLngLat=function(){return new Fl(360*this.x-180,Hl(this.y))},Wl.prototype.toAltitude=function(){return this.z*zl(Hl(this.y))},Wl.prototype.meterInMercatorCoordinateUnits=function(){return 1/Bl*(t=Hl(this.y),1/Math.cos(t*Math.PI/180));var t};var Yl=function(t,e,n){this.z=t,this.x=e,this.y=n,this.key=ql(0,t,t,e,n)};Yl.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},Yl.prototype.url=function(t,e){var n,r,i,o,a,s=(r=this.y,i=this.z,o=Rl(256*(n=this.x),256*(r=Math.pow(2,i)-r-1),i),a=Rl(256*(n+1),256*(r+1),i),o[0]+","+o[1]+","+a[0]+","+a[1]),u=function(t,e,n){for(var r,i="",o=t;o>0;o--)i+=(e&(r=1<this.canonical.z?new Xl(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Xl(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)},Xl.prototype.calculateScaledKey=function(t,e){var n=this.canonical.z-t;return t>this.canonical.z?ql(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):ql(this.wrap*+e,t,t,this.canonical.x>>n,this.canonical.y>>n)},Xl.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ>e&&t.canonical.y===this.canonical.y>>e},Xl.prototype.children=function(t){if(this.overscaledZ>=t)return[new Xl(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new Xl(e,this.wrap,e,n,r),new Xl(e,this.wrap,e,n+1,r),new Xl(e,this.wrap,e,n,r+1),new Xl(e,this.wrap,e,n+1,r+1)]},Xl.prototype.isLessThan=function(t){return this.wrapt.wrap)&&(this.overscaledZt.overscaledZ)&&(this.canonical.xt.canonical.x)&&this.canonical.y=this.dim+1||e<-1||e>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(e+1)*this.stride+(t+1)},Zl.prototype._unpackMapbox=function(t,e,n){return(256*t*256+256*e+n)/10-1e4},Zl.prototype._unpackTerrarium=function(t,e,n){return 256*t+e+n/256-32768},Zl.prototype.getPixels=function(){return new ba({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Zl.prototype.backfillBorder=function(t,e,n){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");var r=e*this.dim,i=e*this.dim+this.dim,o=n*this.dim,a=n*this.dim+this.dim;switch(e){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=-e*this.dim,u=-n*this.dim,l=o;l=0&&c[3]>=0&&s.insert(a,c[0],c[1],c[2],c[3])}},ec.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new _s.VectorTile(new Zs(this.rawTileData)).layers,this.sourceLayerCoder=new Kl(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},ec.prototype.query=function(t,e,n,r){var o=this;this.loadVTLayers();for(var a=t.params||{},s=8192/t.tileSize/t.scale,u=ar(a.filter),l=t.queryGeometry,c=t.queryPadding*s,h=rc(l),f=this.grid.query(h.minX-c,h.minY-c,h.maxX+c,h.maxY+c),d=rc(t.cameraQueryGeometry),p=0,g=this.grid3D.query(d.minX-c,d.minY-c,d.maxX+c,d.maxY+c,(function(e,n,r,o){return function(t,e,n,r,o){for(var a=0,s=t;a=u.x&&o>=u.y)return!0}var l=[new i(e,n),new i(e,o),new i(r,o),new i(r,n)];if(t.length>2)for(var c=0,h=l;c=0)return!0;return!1}(o,h)){var d=this.sourceLayerCoder.decode(n),p=this.vtLayers[d].feature(r);if(i.needGeometry){var g=Vo(p,!0);if(!i.filter(new si(this.tileID.overscaledZ),g,this.tileID.canonical))return}else if(!i.filter(new si(this.tileID.overscaledZ),p))return;for(var v=this.getId(p,d),m=0;mr)i=!1;else if(e)if(this.expirationTimeut&&(t.getActor().send("enforceCacheSizeLimit",st),ft=0)},t.clamp=c,t.clearTileCache=function(t){var e=a.caches.delete("mapbox-tiles");t&&e.catch(t).then((function(){return t()}))},t.clipLine=Yu,t.clone=function(t){var e=new aa(16);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[6]=t[6],e[7]=t[7],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},t.clone$1=x,t.clone$2=function(t){var e=new aa(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=Ws,t.config=B,t.create=function(){var t=new aa(16);return aa!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new aa(9);return aa!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new aa(4);return aa!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=$n,t.createLayout=Ei,t.createStyleLayer=function(t){return"custom"===t.type?new El(t):new Tl[t.type](t)},t.cross=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2];return t[0]=i*u-o*s,t[1]=o*a-r*u,t[2]=r*s-i*a,t},t.deepEqual=function t(e,n){if(Array.isArray(e)){if(!Array.isArray(n)||e.length!==n.length)return!1;for(var r=0;r0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t},t.number=He,t.offscreenCanvasSupported=dt,t.ortho=function(t,e,n,r,i,o,a){var s=1/(e-n),u=1/(r-i),l=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(a+o)*l,t[15]=1,t},t.parseGlyphPBF=function(t){return new Zs(t).readFields(pu,[])},t.pbf=Zs,t.performSymbolLayout=function(t,e,n,r,i,o,a){t.createArrays(),t.tilePixelRatio=8192/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;var s=t.layers[0].layout,u=t.layers[0]._unevaluatedLayout._values,l={};if("composite"===t.textSizeData.kind){var c=t.textSizeData,h=c.maxZoom;l.compositeTextSizes=[u["text-size"].possiblyEvaluate(new si(c.minZoom),a),u["text-size"].possiblyEvaluate(new si(h),a)]}if("composite"===t.iconSizeData.kind){var f=t.iconSizeData,d=f.maxZoom;l.compositeIconSizes=[u["icon-size"].possiblyEvaluate(new si(f.minZoom),a),u["icon-size"].possiblyEvaluate(new si(d),a)]}l.layoutTextSize=u["text-size"].possiblyEvaluate(new si(t.zoom+1),a),l.layoutIconSize=u["icon-size"].possiblyEvaluate(new si(t.zoom+1),a),l.textMaxSize=u["text-size"].possiblyEvaluate(new si(18));for(var p=24*s.get("text-line-height"),g="map"===s.get("text-rotation-alignment")&&"point"!==s.get("symbol-placement"),v=s.get("text-keep-upright"),m=s.get("text-size"),y=function(){var o=_[b],u=s.get("text-font").evaluate(o,{},a).join(","),c=m.evaluate(o,{},a),h=l.layoutTextSize.evaluate(o,{},a),f=l.layoutIconSize.evaluate(o,{},a),d={horizontal:{},vertical:void 0},y=o.text,x=[0,0];if(y){var O=y.toString(),S=24*s.get("text-letter-spacing").evaluate(o,{},a),C=function(t){for(var e=0,n=t;e=8192||h.y<0||h.y>=8192||function(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,v,m,y,b,_,x,O,S,C){var E,T,M,A,j,I=t.addToLineVertexArray(e,n),k=0,P=0,L=0,D=0,R=-1,N=-1,F={},B=fo(""),z=0,V=0;if(void 0===s._unevaluatedLayout.getValue("text-radial-offset")?(z=(E=s.layout.get("text-offset").evaluate(_,{},S).map((function(t){return 24*t})))[0],V=E[1]):(z=24*s.layout.get("text-radial-offset").evaluate(_,{},S),V=il),t.allowVerticalPlacement&&r.vertical){var U=s.layout.get("text-rotate").evaluate(_,{},S)+90;A=new Qu(u,e,l,c,h,r.vertical,f,d,p,U),a&&(j=new Qu(u,e,l,c,h,a,v,m,p,U))}if(i){var G=s.layout.get("icon-rotate").evaluate(_,{}),H="none"!==s.layout.get("icon-text-fit"),W=$u(i,G,O,H),Y=a?$u(a,G,O,H):void 0;M=new Qu(u,e,l,c,h,i,v,m,!1,G),k=4*W.length;var $=t.iconSizeData,X=null;"source"===$.kind?(X=[128*s.layout.get("icon-size").evaluate(_,{})])[0]>32640&&w(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):"composite"===$.kind&&((X=[128*x.compositeIconSizes[0].evaluate(_,{},S),128*x.compositeIconSizes[1].evaluate(_,{},S)])[0]>32640||X[1]>32640)&&w(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),t.addSymbols(t.icon,W,X,b,y,_,!1,e,I.lineStartIndex,I.lineLength,-1,S),R=t.icon.placedSymbolArray.length-1,Y&&(P=4*Y.length,t.addSymbols(t.icon,Y,X,b,y,_,xu.vertical,e,I.lineStartIndex,I.lineLength,-1,S),N=t.icon.placedSymbolArray.length-1)}for(var q in r.horizontal){var Z=r.horizontal[q];if(!T){B=fo(Z.text);var K=s.layout.get("text-rotate").evaluate(_,{},S);T=new Qu(u,e,l,c,h,Z,f,d,p,K)}var Q=1===Z.positionedLines.length;if(L+=sl(t,e,Z,o,s,p,_,g,I,r.vertical?xu.horizontal:xu.horizontalOnly,Q?Object.keys(r.horizontal):[q],F,R,x,S),Q)break}r.vertical&&(D+=sl(t,e,r.vertical,o,s,p,_,g,I,xu.vertical,["vertical"],F,N,x,S));var J=T?T.boxStartIndex:t.collisionBoxArray.length,tt=T?T.boxEndIndex:t.collisionBoxArray.length,et=A?A.boxStartIndex:t.collisionBoxArray.length,nt=A?A.boxEndIndex:t.collisionBoxArray.length,rt=M?M.boxStartIndex:t.collisionBoxArray.length,it=M?M.boxEndIndex:t.collisionBoxArray.length,ot=j?j.boxStartIndex:t.collisionBoxArray.length,at=j?j.boxEndIndex:t.collisionBoxArray.length,st=-1,ut=function(t,e){return t&&t.circleDiameter?Math.max(t.circleDiameter,e):e};st=ut(T,st),st=ut(A,st),st=ut(M,st);var lt=(st=ut(j,st))>-1?1:0;lt&&(st*=C/24),t.glyphOffsetArray.length>=ml.MAX_GLYPHS&&w("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==_.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,_.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,F.right>=0?F.right:-1,F.center>=0?F.center:-1,F.left>=0?F.left:-1,F.vertical||-1,R,N,B,J,tt,et,nt,rt,it,ot,at,l,L,D,k,P,lt,0,f,z,V,st)}(t,h,s,n,r,i,f,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,m,x,C,u,b,O,E,p,e,o,l,c,a)};if("line"===T)for(var I=0,k=Yu(e.geometry,0,0,8192,8192);I1){var z=Hu(B,S,n.vertical||g,r,24,y);z&&j(B,z)}}else if("Polygon"===e.type)for(var V=0,U=rs(e.geometry,0);V=M.maxzoom||"none"!==M.visibility&&(a(T,this.zoom,r),(g[M.id]=M.createBucket({index:c.bucketLayerIDs.length,layers:T,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:_,sourceID:this.source})).populate(x,v,this.tileID.canonical),c.bucketLayerIDs.push(T.map((function(t){return t.id}))))}}}var A=t.mapObject(v.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(A).length?o.send("getGlyphs",{uid:this.uid,stacks:A},(function(t,e){h||(h=t,f=e,k.call(u))})):f={};var j=Object.keys(v.iconDependencies);j.length?o.send("getImages",{icons:j,source:this.source,tileID:this.tileID,type:"icons"},(function(t,e){h||(h=t,d=e,k.call(u))})):d={};var I=Object.keys(v.patternDependencies);function k(){if(h)return s(h);if(f&&d&&p){var e=new i(f),n=new t.ImageAtlas(d,p);for(var o in g){var u=g[o];u instanceof t.SymbolBucket?(a(u.layers,this.zoom,r),t.performSymbolLayout(u,f,e.positions,d,n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):u.hasPattern&&(u instanceof t.LineBucket||u instanceof t.FillBucket||u instanceof t.FillExtrusionBucket)&&(a(u.layers,this.zoom,r),u.addFeatures(v,this.tileID.canonical,n.patternPositions))}this.status="done",s(null,{buckets:t.values(g).filter((function(t){return!t.isEmpty()})),featureIndex:c,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:n,glyphMap:this.returnDependencies?f:null,iconMap:this.returnDependencies?d:null,glyphPositions:this.returnDependencies?e.positions:null})}}I.length?o.send("getImages",{icons:I,source:this.source,tileID:this.tileID,type:"patterns"},(function(t,e){h||(h=t,p=e,k.call(u))})):p={},k.call(this)};var u=function(t,e,n,r){this.actor=t,this.layerIndex=e,this.availableImages=n,this.loadVectorData=r||s,this.loading={},this.loaded={}};u.prototype.loadTile=function(e,n){var r=this,i=e.uid;this.loading||(this.loading={});var a=!!(e&&e.request&&e.request.collectResourceTiming)&&new t.RequestPerformance(e.request),s=this.loading[i]=new o(e);s.abort=this.loadVectorData(e,(function(e,o){if(delete r.loading[i],e||!o)return s.status="done",r.loaded[i]=s,n(e);var u=o.rawData,l={};o.expires&&(l.expires=o.expires),o.cacheControl&&(l.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(e,r){if(e||!r)return n(e);n(null,t.extend({rawTileData:u.slice(0)},r,l,c))})),r.loaded=r.loaded||{},r.loaded[i]=s}))},u.prototype.reloadTile=function(t,e){var n=this,r=this.loaded,i=t.uid,o=this;if(r&&r[i]){var a=r[i];a.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,r){var i=a.reloadCallback;i&&(delete a.reloadCallback,a.parse(a.vectorTile,o.layerIndex,n.availableImages,o.actor,i)),e(t,r)};"parsing"===a.status?a.reloadCallback=s:"done"===a.status&&(a.vectorTile?a.parse(a.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},u.prototype.abortTile=function(t,e){var n=this.loading,r=t.uid;n&&n[r]&&n[r].abort&&(n[r].abort(),delete n[r]),e()},u.prototype.removeTile=function(t,e){var n=this.loaded,r=t.uid;n&&n[r]&&delete n[r],e()};var l=t.window.ImageBitmap,c=function(){this.loaded={}};function h(t,e){if(0!==t.length){f(t[0],e);for(var n=1;n=Math.abs(s)?n-u+s:s-u+n,n=u}n+r>=0!=!!e&&t.reverse()}c.prototype.loadTile=function(e,n){var r=e.uid,i=e.encoding,o=e.rawImageData,a=l&&o instanceof l?this.getImageData(o):o,s=new t.DEMData(r,a,i);this.loaded=this.loaded||{},this.loaded[r]=s,n(null,s)},c.prototype.getImageData=function(e){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var n=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:n.width,height:n.height},n.data)},c.prototype.removeTile=function(t){var e=this.loaded,n=t.uid;e&&e[n]&&delete e[n]};var d=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,p=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))};p.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],n=0,r=this._feature.geometry;n>31}function M(t,e){for(var n=t.loadGeometry(),r=t.type,i=0,o=0,a=n.length,s=0;s>1;!function t(e,n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,u=r-i+1,l=Math.log(s),c=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*c*(s-c)/s)*(u-s/2<0?-1:1);t(e,n,r,Math.max(i,Math.floor(r-u*c/s+h)),Math.min(o,Math.floor(r+(s-u)*c/s+h)),a)}var f=n[2*r+a],d=i,p=o;for(j(e,n,i,r),n[2*o+a]>f&&j(e,n,i,o);df;)p--}n[2*i+a]===f?j(e,n,i,p):j(e,n,++p,o),p<=r&&(i=p+1),r<=p&&(o=p-1)}}(e,n,s,i,o,a%2),t(e,n,r,i,s-1,a+1),t(e,n,r,s+1,o,a+1)}}(a,s,r,0,a.length-1,0)};D.prototype.range=function(t,e,n,r){return function(t,e,n,r,i,o,a){for(var s,u,l=[0,t.length-1,0],c=[];l.length;){var h=l.pop(),f=l.pop(),d=l.pop();if(f-d<=a)for(var p=d;p<=f;p++)u=e[2*p+1],(s=e[2*p])>=n&&s<=i&&u>=r&&u<=o&&c.push(t[p]);else{var g=Math.floor((d+f)/2);u=e[2*g+1],(s=e[2*g])>=n&&s<=i&&u>=r&&u<=o&&c.push(t[g]);var v=(h+1)%2;(0===h?n<=s:r<=u)&&(l.push(d),l.push(g-1),l.push(v)),(0===h?i>=s:o>=u)&&(l.push(g+1),l.push(f),l.push(v))}}return c}(this.ids,this.coords,t,e,n,r,this.nodeSize)},D.prototype.within=function(t,e,n){return function(t,e,n,r,i,o){for(var a=[0,t.length-1,0],s=[],u=i*i;a.length;){var l=a.pop(),c=a.pop(),h=a.pop();if(c-h<=o)for(var f=h;f<=c;f++)k(e[2*f],e[2*f+1],n,r)<=u&&s.push(t[f]);else{var d=Math.floor((h+c)/2),p=e[2*d],g=e[2*d+1];k(p,g,n,r)<=u&&s.push(t[d]);var v=(l+1)%2;(0===l?n-i<=p:r-i<=g)&&(a.push(h),a.push(d-1),a.push(v)),(0===l?n+i>=p:r+i>=g)&&(a.push(d+1),a.push(c),a.push(v))}}return s}(this.ids,this.coords,t,e,n,this.nodeSize)};var R={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},N=function(t){this.options=H(Object.create(R),t),this.trees=new Array(this.options.maxZoom+1)};function F(t,e,n,r,i){return{x:t,y:e,zoom:1/0,id:n,parentId:-1,numPoints:r,properties:i}}function B(t,e){var n=t.geometry.coordinates,r=n[1];return{x:U(n[0]),y:G(r),zoom:1/0,index:e,parentId:-1}}function z(t){return{type:"Feature",id:t.id,properties:V(t),geometry:{type:"Point",coordinates:[(r=t.x,360*(r-.5)),(e=t.y,n=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var e,n,r}function V(t){var e=t.numPoints,n=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return H(H({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:n})}function U(t){return t/360+.5}function G(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function H(t,e){for(var n in e)t[n]=e[n];return t}function W(t){return t.x}function Y(t){return t.y}function $(t,e,n,r,i,o){var a=i-n,s=o-r;if(0!==a||0!==s){var u=((t-n)*a+(e-r)*s)/(a*a+s*s);u>1?(n=i,r=o):u>0&&(n+=a*u,r+=s*u)}return(a=t-n)*a+(s=e-r)*s}function X(t,e,n,r){var i={id:void 0===t?null:t,type:e,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,n=t.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)q(t,e);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r0&&(a+=r?(i*l-u*o)/2:Math.sqrt(Math.pow(u-i,2)+Math.pow(l-o,2))),i=u,o=l}var c=e.length-3;e[2]=1,function t(e,n,r,i){for(var o,a=i,s=r-n>>1,u=r-n,l=e[n],c=e[n+1],h=e[r],f=e[r+1],d=n+3;da)o=d,a=p;else if(p===a){var g=Math.abs(d-s);gi&&(o-n>3&&t(e,n,o,i),e[o+2]=a,r-o>3&&t(e,o,r,i))}(e,0,c,n),e[c+2]=1,e.size=Math.abs(a),e.start=0,e.end=e.size}function J(t,e,n,r){for(var i=0;i1?1:n}function nt(t,e,n,r,i,o,a,s){if(r/=e,o>=(n/=e)&&a=r)return null;for(var u=[],l=0;l=n&&p=r)){var g=[];if("Point"===f||"MultiPoint"===f)rt(h,g,n,r,i);else if("LineString"===f)it(h,g,n,r,i,!1,s.lineMetrics);else if("MultiLineString"===f)at(h,g,n,r,i,!1);else if("Polygon"===f)at(h,g,n,r,i,!0);else if("MultiPolygon"===f)for(var v=0;v=n&&a<=r&&(e.push(t[o]),e.push(t[o+1]),e.push(t[o+2]))}}function it(t,e,n,r,i,o,a){for(var s,u,l=ot(t),c=0===i?ut:lt,h=t.start,f=0;fn&&(u=c(l,d,p,v,m,n),a&&(l.start=h+s*u)):y>r?b=n&&(u=c(l,d,p,v,m,n),_=!0),b>r&&y<=r&&(u=c(l,d,p,v,m,r),_=!0),!o&&_&&(a&&(l.end=h+s*u),e.push(l),l=ot(t)),a&&(h+=s)}var x=t.length-3;d=t[x],p=t[x+1],g=t[x+2],(y=0===i?d:p)>=n&&y<=r&&st(l,d,p,g),x=l.length-3,o&&x>=3&&(l[x]!==l[0]||l[x+1]!==l[1])&&st(l,l[0],l[1],l[2]),l.length&&e.push(l)}function ot(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function at(t,e,n,r,i,o){for(var a=0;aa.maxX&&(a.maxX=c),h>a.maxY&&(a.maxY=h)}return a}function gt(t,e,n,r){var i=e.geometry,o=e.type,a=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s0&&e.size<(i?a:r))n.numPoints+=e.length/3;else{for(var s=[],u=0;ua)&&(n.numSimplified++,s.push(e[u]),s.push(e[u+1])),n.numPoints++;i&&function(t,e){for(var n=0,r=0,i=t.length,o=i-2;r0===e)for(r=0,i=t.length;r24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(t,e){var n=[];if("FeatureCollection"===t.type)for(var r=0;r=r;l--){var c=+Date.now();s=this._cluster(s,l),this.trees[l]=new D(s,W,Y,o,Float32Array),n&&console.log("z%d: %d clusters in %dms",l,s.length,+Date.now()-c)}return n&&console.timeEnd("total time"),this},N.prototype.getClusters=function(t,e){var n=((t[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)n=-180,i=180;else if(n>i){var a=this.getClusters([n,r,180,o],e),s=this.getClusters([-180,r,i,o],e);return a.concat(s)}for(var u=this.trees[this._limitZoom(e)],l=[],c=0,h=u.range(U(n),G(o),U(i),G(r));ce&&(f+=g.numPoints||1)}if(f>=o){for(var v=u.x*h,m=u.y*h,y=i&&h>1?this._map(u,!0):null,b=(s<<5)+(e+1)+this.points.length,_=0,x=c;_1)for(var S=0,C=c;S>5},N.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},N.prototype._map=function(t,e){if(t.numPoints)return e?H({},t.properties):t.properties;var n=this.points[t.index].properties,r=this.options.map(n);return e&&r===n?H({},r):r},mt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},mt.prototype.splitTile=function(t,e,n,r,i,o,a){for(var s=[t,e,n,r],u=this.options,l=u.debug;s.length;){r=s.pop(),n=s.pop(),e=s.pop(),t=s.pop();var c=1<1&&console.time("creation"),f=this.tiles[h]=pt(t,e,n,r,u),this.tileCoords.push({z:e,x:n,y:r}),l)){l>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,n,r,f.numFeatures,f.numPoints,f.numSimplified),console.timeEnd("creation"));var d="z"+e;this.stats[d]=(this.stats[d]||0)+1,this.total++}if(f.source=t,i){if(e===u.maxZoom||e===i)continue;var p=1<1&&console.time("clipping");var g,v,m,y,b,_,x=.5*u.buffer/u.extent,O=.5-x,w=.5+x,S=1+x;g=v=m=y=null,b=nt(t,c,n-x,n+w,0,f.minX,f.maxX,u),_=nt(t,c,n+O,n+S,0,f.minX,f.maxX,u),t=null,b&&(g=nt(b,c,r-x,r+w,1,f.minY,f.maxY,u),v=nt(b,c,r+O,r+S,1,f.minY,f.maxY,u),b=null),_&&(m=nt(_,c,r-x,r+w,1,f.minY,f.maxY,u),y=nt(_,c,r+O,r+S,1,f.minY,f.maxY,u),_=null),l>1&&console.timeEnd("clipping"),s.push(g||[],e+1,2*n,2*r),s.push(v||[],e+1,2*n,2*r+1),s.push(m||[],e+1,2*n+1,2*r),s.push(y||[],e+1,2*n+1,2*r+1)}}},mt.prototype.getTile=function(t,e,n){var r=this.options,i=r.extent,o=r.debug;if(t<0||t>24)return null;var a=1<1&&console.log("drilling down to z%d-%d-%d",t,e,n);for(var u,l=t,c=e,h=n;!u&&l>0;)l--,c=Math.floor(c/2),h=Math.floor(h/2),u=this.tiles[yt(l,c,h)];return u&&u.source?(o>1&&console.log("found parent tile z%d-%d-%d",l,c,h),o>1&&console.time("drilling down"),this.splitTile(u.source,l,c,h,t,e,n),o>1&&console.timeEnd("drilling down"),this.tiles[s]?ft(this.tiles[s],i):null):null};var _t=function(e){function n(t,n,r,i){e.call(this,t,n,r,bt),i&&(this.loadGeoJSON=i)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.loadData=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},n.prototype._loadData=function(){var e=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 t.RequestPerformance(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 t(e,n){var r,i=e&&e.type;if("FeatureCollection"===i)for(r=0;r=0?0:e.button},n.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)};var f=function(e){function n(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.isLoaded=function(){return this.loaded},n.prototype.setLoaded=function(t){if(this.loaded!==t&&(this.loaded=t,t)){for(var e=0,n=this.requestors;e=0?1.2:1))}function m(t,e,n,r,i,o,a){for(var s=0;s65535)e(new Error("glyphs > 65535 not supported"));else if(o.ranges[s])e(null,{stack:n,id:i,glyph:a});else{var u=o.requests[s];u||(u=o.requests[s]=[],b.loadGlyphRange(n,s,r.url,r.requestManager,(function(t,e){if(e){for(var n in e)r._doesCharSupportLocalGlyph(+n)||(o.glyphs[+n]=e[+n]);o.ranges[s]=!0}for(var i=0,a=u;i1&&(s=t[++a]);var l=Math.abs(u-s.left),c=Math.abs(u-s.right),h=Math.min(l,c),f=void 0,d=i/n*(r+1);if(s.isDash){var p=r-Math.abs(d);f=Math.sqrt(h*h+p*p)}else f=r-Math.sqrt(h*h+d*d);this.data[o+u]=Math.max(0,Math.min(255,f+128))}},w.prototype.addRegularDash=function(t){for(var e=t.length-1;e>=0;--e){var n=t[e],r=t[e+1];n.zeroLength?t.splice(e,1):r&&r.isDash===n.isDash&&(r.left=n.left,t.splice(e,1))}var i=t[0],o=t[t.length-1];i.isDash===o.isDash&&(i.left=o.left-this.width,o.right=i.right+this.width);for(var a=this.width*this.nextRow,s=0,u=t[s],l=0;l1&&(u=t[++s]);var c=Math.abs(l-u.left),h=Math.abs(l-u.right),f=Math.min(c,h);this.data[a+l]=Math.max(0,Math.min(255,(u.isDash?f:-f)+128))}},w.prototype.addDash=function(e,n){var r=n?7:0,i=2*r+1;if(this.nextRow+i>this.height)return t.warnOnce("LineAtlas out of space"),null;for(var o=0,a=0;a=r&&e.x=i&&e.y0&&(u[new t.OverscaledTileID(e.overscaledZ,o,n.z,i,n.y-1).key]={backfilled:!1},u[new t.OverscaledTileID(e.overscaledZ,e.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},u[new t.OverscaledTileID(e.overscaledZ,s,n.z,a,n.y-1).key]={backfilled:!1}),n.y+10&&(r.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event("data",r))}}))},n.prototype.onAdd=function(t){this.map=t,this.load()},n.prototype.setData=function(e){var n=this;return this._data=e,this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(e){if(e)n.fire(new t.ErrorEvent(e));else{var r={dataType:"source",sourceDataType:"content"};n._collectResourceTiming&&n._resourceTiming&&n._resourceTiming.length>0&&(r.resourceTiming=n._resourceTiming,n._resourceTiming=[]),n.fire(new t.Event("data",r))}})),this},n.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this},n.prototype.getClusterChildren=function(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this},n.prototype.getClusterLeaves=function(t,e,n,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:n},r),this},n.prototype._updateWorkerData=function(e){var n=this;this._loaded=!1;var r=t.extend({},this.workerOptions),i=this._data;"string"==typeof i?(r.request=this.map._requestManager.transformRequest(t.browser.resolveURL(i),t.ResourceType.Source),r.request.collectResourceTiming=this._collectResourceTiming):r.data=JSON.stringify(i),this.actor.send(this.type+".loadData",r,(function(t,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),e(t))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.loadTile=function(e,n){var r=this,i=e.actor?"reloadTile":"loadTile";e.actor=this.actor,e.request=this.actor.send(i,{type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(function(t,o){return delete e.request,e.unloadVectorData(),e.aborted?n(null):t?n(t):(e.loadVectorData(o,r.map.painter,"reloadTile"===i),n(null))}))},n.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0},n.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.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 t.extend({},this._options,{type:this.type,data:this._data})},n.prototype.hasTransition=function(){return!1},n}(t.Evented),I=t.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),k=function(e){function n(t,n,r,i){e.call(this),this.id=t,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 e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(e,n){var r=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(i,o){r._loaded=!0,i?r.fire(new t.ErrorEvent(i)):o&&(r.image=o,e&&(r.coordinates=e),n&&n(),r._finishLoading())}))},n.prototype.loaded=function(){return this._loaded},n.prototype.updateImage=function(t){var e=this;return this.image&&t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},n.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})))},n.prototype.onAdd=function(t){this.map=t,this.load()},n.prototype.setCoordinates=function(e){var n=this;this.coordinates=e;var r=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var n=1/0,r=1/0,i=-1/0,o=-1/0,a=0,s=e;an.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+n.start(0)+" and "+n.end(0)+"-second mark."))):this.video.currentTime=e}},n.prototype.getVideo=function(){return this.video},n.prototype.onAdd=function(t){this.map||(this.map=t,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 e=this.map.painter.context,n=e.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.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 t.Texture(e,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}(k),L=function(e){function n(n,r,i,o){e.call(this,n,r,i,o),r.coordinates?Array.isArray(r.coordinates)&&4===r.coordinates.length&&!r.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return"number"!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'missing required property "coordinates"'))),r.animate&&"boolean"!=typeof r.animate&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'optional "animate" property must be a boolean value'))),r.canvas?"string"==typeof r.canvas||r.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.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 t.ErrorEvent(new t.ValidationError("sources."+n,null,'missing required property "canvas"'))),this.options=r,this.animate=void 0===r.animate||r.animate}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.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(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()},n.prototype.onRemove=function(){this.pause()},n.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!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,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.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 t=0,e=[this.canvas.width,this.canvas.height];tthis.max){var a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this},B.prototype.has=function(t){return t.wrapped().key in this.data},B.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},B.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},B.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},B.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},B.prototype.remove=function(t,e){if(!this.has(t))return this;var n=t.wrapped().key,r=void 0===e?0:this.data[n].indexOf(e),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(t){for(this.max=t;this.order.length>this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this},B.prototype.filter=function(t){var e=[];for(var n in this.data)for(var r=0,i=this.data[n];r1||(Math.abs(n)>1&&(1===Math.abs(n+i)?n+=i:1===Math.abs(n-i)&&(n-=i)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,n,r),t.neighboringTiles&&t.neighboringTiles[o]&&(t.neighboringTiles[o].backfilled=!0)))}},n.prototype.getTile=function(t){return this.getTileByID(t.key)},n.prototype.getTileByID=function(t){return this._tiles[t]},n.prototype._retainLoadedChildren=function(t,e,n,r){for(var i in this._tiles){var o=this._tiles[i];if(!(r[i]||!o.hasData()||o.tileID.overscaledZ<=e||o.tileID.overscaledZ>n)){for(var a=o.tileID;o&&o.tileID.overscaledZ>e+1;){var s=o.tileID.scaledTo(o.tileID.overscaledZ-1);(o=this._tiles[s.key])&&o.hasData()&&(a=s)}for(var u=a;u.overscaledZ>e;)if(t[(u=u.scaledTo(u.overscaledZ-1)).key]){r[a.key]=a;break}}}},n.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var n=this._loadedParentTiles[t.key];return n&&n.tileID.overscaledZ>=e?n:null}for(var r=t.overscaledZ-1;r>=e;r--){var i=t.scaledTo(r),o=this._getLoadedTile(i);if(o)return o}},n.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(t.wrapped().key)},n.prototype.updateCacheSize=function(t){var e=Math.ceil(t.width/this._source.tileSize)+1,n=Math.ceil(t.height/this._source.tileSize)+1,r=Math.floor(e*n*5),i="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(i)},n.prototype.handleWrapJump=function(t){var e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){var n={};for(var r in this._tiles){var i=this._tiles[r];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),n[i.tileID.key]=i}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var a in this._tiles)this._setTileReloadTimer(a,this._tiles[a])}},n.prototype.update=function(e){var r=this;if(this.transform=e,this._sourceLoaded&&!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(i=e.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(t){return r._source.hasTile(t)})))):i=[];var o=e.coveringZoomLevel(this._source),a=Math.max(o-n.maxOverzooming,this._source.minzoom),s=Math.max(o+n.maxUnderzooming,this._source.minzoom),u=this._updateRetainedTiles(i,o);if(kt(this._source.type)){for(var l={},c={},h=0,f=Object.keys(u);hthis._source.maxzoom){var v=p.children(this._source.maxzoom)[0],m=this.getTile(v);if(m&&m.hasData()){r[v.key]=v;continue}}else{var y=p.children(this._source.maxzoom);if(r[y[0].key]&&r[y[1].key]&&r[y[2].key]&&r[y[3].key])continue}for(var b=g.wasRequested(),_=p.overscaledZ-1;_>=o;--_){var x=p.scaledTo(_);if(i[x.key])break;if(i[x.key]=!0,!(g=this.getTile(x))&&b&&(g=this._addTile(x)),g&&(r[x.key]=x,b=g.wasRequested(),g.hasData()))break}}}return r},n.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],n=void 0,r=this._tiles[t].tileID;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){n=this._loadedParentTiles[r.key];break}e.push(r.key);var i=r.scaledTo(r.overscaledZ-1);if(n=this._getLoadedTile(i))break;r=i}for(var o=0,a=e;o0||(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},n.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},n.prototype.tilesIn=function(e,n,r){var i=this,o=[],a=this.transform;if(!a)return o;for(var s=r?a.getCameraQueryGeometry(e):e,u=e.map((function(t){return a.pointCoordinate(t)})),l=s.map((function(t){return a.pointCoordinate(t)})),c=this.getIds(),h=1/0,f=1/0,d=-1/0,p=-1/0,g=0,v=l;g=0&&m[1].y+v>=0){var y=u.map((function(t){return s.getTilePoint(t)})),b=l.map((function(t){return s.getTilePoint(t)}));o.push({tile:r,tileID:s,queryGeometry:y,cameraQueryGeometry:b,scale:g})}}},b=0;b=t.browser.now())return!0}return!1},n.prototype.setFeatureState=function(t,e,n){this._state.updateState(t=t||"_geojsonTileLayer",e,n)},n.prototype.removeFeatureState=function(t,e,n){this._state.removeFeatureState(t=t||"_geojsonTileLayer",e,n)},n.prototype.getFeatureState=function(t,e){return this._state.getState(t=t||"_geojsonTileLayer",e)},n.prototype.setDependencies=function(t,e,n){var r=this._tiles[t];r&&r.setDependencies(e,n)},n.prototype.reloadTilesForDependencies=function(t,e){for(var n in this._tiles)this._tiles[n].hasDependency(t,e)&&this._reloadTile(n,"reloading");this._cache.filter((function(n){return!n.hasDependency(t,e)}))},n}(t.Evented);function It(t,e){var n=Math.abs(2*t.wrap)-+(t.wrap<0),r=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||r-n||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function kt(t){return"raster"===t||"image"===t||"video"===t}function Pt(){return new t.window.Worker(qi.workerUrl)}jt.maxOverzooming=10,jt.maxUnderzooming=3;var Lt="mapboxgl_preloaded_worker_pool",Dt=function(){this.active={}};Dt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length0?(i-a)/s:0;return this.points[o].mult(1-u).add(this.points[n].mult(u))};var Zt=function(t,e,n){var r=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/n),this.yCellCount=Math.ceil(e/n);for(var o=0;o=-e[0]&&n<=e[0]&&r>=-e[1]&&r<=e[1]}function ne(e,n,r,i,o,a,s,u){var l=i?e.textSizeData:e.iconSizeData,c=t.evaluateSizeForZoom(l,r.transform.zoom),h=[256/r.width*2+1,256/r.height*2+1],f=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;f.clear();for(var d=e.lineVertexArray,p=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,g=r.transform.width/r.transform.height,v=!1,m=0;mMath.abs(r.x-n.x)*i?{useVertical:!0}:(e===t.WritingMode.vertical?n.yr.x)?{needsFlipping:!0}:null}function oe(e,n,r,i,o,a,s,u,l,c,h,f,d,p){var g,v=n/24,m=e.lineOffsetX*v,y=e.lineOffsetY*v;if(e.numGlyphs>1){var b=e.glyphStartIndex+e.numGlyphs,_=e.lineStartIndex,x=e.lineStartIndex+e.lineLength,O=re(v,u,m,y,r,h,f,e,l,a,d);if(!O)return{notEnoughRoom:!0};var w=Jt(O.first.point,s).point,S=Jt(O.last.point,s).point;if(i&&!r){var C=ie(e.writingMode,w,S,p);if(C)return C}g=[O.first];for(var E=e.glyphStartIndex+1;E0?j.point:ae(f,A,T,1,o),k=ie(e.writingMode,T,I,p);if(k)return k}var P=se(v*u.getoffsetX(e.glyphStartIndex),m,y,r,h,f,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,l,a,d);if(!P)return{notEnoughRoom:!0};g=[P]}for(var L=0,D=g;L0?1:-1,g=0;i&&(p*=-1,g=Math.PI),p<0&&(g+=Math.PI);for(var v=p>0?u+s:u+s+1,m=o,y=o,b=0,_=0,x=Math.abs(d),O=[];b+_<=x;){if((v+=p)=l)return null;if(y=m,O.push(m),void 0===(m=f[v])){var w=new t.Point(c.getx(v),c.gety(v)),S=Jt(w,h);if(S.signedDistanceFromCamera>0)m=f[v]=S.point;else{var C=v-p;m=ae(0===b?a:new t.Point(c.getx(C),c.gety(C)),w,y,x-b+1,h)}}b+=_,_=y.dist(m)}var E=(x-b)/_,T=m.sub(y),M=T.mult(E)._add(y);M._add(T._unit()._perp()._mult(r*p));var A=g+Math.atan2(m.y-y.y,m.x-y.x);return O.push(M),{point:M,angle:A,path:O}}Zt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Zt.prototype.insert=function(t,e,n,r,i){this._forEachCell(e,n,r,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)},Zt.prototype.insertCircle=function(t,e,n,r){this._forEachCell(e-r,n-r,e+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(n),this.circles.push(r)},Zt.prototype._insertBoxCell=function(t,e,n,r,i,o){this.boxCells[i].push(o)},Zt.prototype._insertCircleCell=function(t,e,n,r,i,o){this.circleCells[i].push(o)},Zt.prototype._query=function(t,e,n,r,i,o){if(n<0||t>this.width||r<0||e>this.height)return!i&&[];var a=[];if(t<=0&&e<=0&&this.width<=n&&this.height<=r){if(i)return!0;for(var s=0;s0:a},Zt.prototype._queryCircle=function(t,e,n,r,i){var o=t-n,a=t+n,s=e-n,u=e+n;if(a<0||o>this.width||u<0||s>this.height)return!r&&[];var l=[];return this._forEachCell(o,s,a,u,this._queryCellCircle,l,{hitTest:r,circle:{x:t,y:e,radius:n},seenUids:{box:{},circle:{}}},i),r?l.length>0:l},Zt.prototype.query=function(t,e,n,r,i){return this._query(t,e,n,r,!1,i)},Zt.prototype.hitTest=function(t,e,n,r,i){return this._query(t,e,n,r,!0,i)},Zt.prototype.hitTestCircle=function(t,e,n,r){return this._queryCircle(t,e,n,!0,r)},Zt.prototype._queryCell=function(t,e,n,r,i,o,a,s){var u=a.seenUids,l=this.boxCells[i];if(null!==l)for(var c=this.bboxes,h=0,f=l;h=c[p+0]&&r>=c[p+1]&&(!s||s(this.boxKeys[d]))){if(a.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[d],x1:c[p],y1:c[p+1],x2:c[p+2],y2:c[p+3]})}}}var g=this.circleCells[i];if(null!==g)for(var v=this.circles,m=0,y=g;ma*a+s*s},Zt.prototype._circleAndRectCollide=function(t,e,n,r,i,o,a){var s=(o-r)/2,u=Math.abs(t-(r+s));if(u>s+n)return!1;var l=(a-i)/2,c=Math.abs(e-(i+l));if(c>l+n)return!1;if(u<=s||c<=l)return!0;var h=u-s,f=c-l;return h*h+f*f<=n*n};var ue=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function le(t,e){for(var n=0;n=1;I--)j.push(M.path[I]);for(var k=1;k0){for(var R=j[0].clone(),N=j[0].clone(),F=1;F=C.x&&N.x<=E.x&&R.y>=C.y&&N.y<=E.y?[j]:N.xE.x||N.yE.y?[]:t.clipLine([j],C.x,C.y,E.x,E.y)}for(var B=0,z=D;B=this.screenRightBoundary||r<100||e>this.screenBottomBoundary},he.prototype.isInsideGrid=function(t,e,n,r){return n>=0&&t=0&&e0?(this.prevPlacement&&this.prevPlacement.variableOffsets[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID].text&&(g=this.prevPlacement.variableOffsets[h.crossTileID].anchor),this.variableOffsets[h.crossTileID]={textOffset:v,width:n,height:r,anchor:t,textBoxScale:i,prevAnchor:g},this.markUsedJustification(f,t,h,d),f.allowVerticalPlacement&&(this.markUsedOrientation(f,d,h),this.placedOrientations[h.crossTileID]=d),{shift:m,placedGlyphBoxes:y}):void 0},xe.prototype.placeLayerBucketPart=function(e,n,r){var i=this,o=e.parameters,a=o.bucket,s=o.layout,u=o.posMatrix,l=o.textLabelPlaneMatrix,c=o.labelToScreenMatrix,h=o.textPixelRatio,f=o.holdingForFade,d=o.collisionBoxArray,p=o.partiallyEvaluatedTextSize,g=o.collisionGroup,v=s.get("text-optional"),m=s.get("icon-optional"),y=s.get("text-allow-overlap"),b=s.get("icon-allow-overlap"),_="map"===s.get("text-rotation-alignment"),x="map"===s.get("text-pitch-alignment"),O="none"!==s.get("icon-text-fit"),w="viewport-y"===s.get("symbol-z-order"),S=y&&(b||!a.hasIconData()||m),C=b&&(y||!a.hasTextData()||v);!a.collisionArrays&&d&&a.deserializeCollisionBoxes(d);var E=function(e,o){if(!n[e.crossTileID])if(f)i.placements[e.crossTileID]=new ge(!1,!1,!1);else{var d,w=!1,E=!1,T=!0,M=null,A={box:null,offscreen:null},j={box:null,offscreen:null},I=null,k=null,P=0,L=0,D=0;o.textFeatureIndex?P=o.textFeatureIndex:e.useRuntimeCollisionCircles&&(P=e.featureIndex),o.verticalTextFeatureIndex&&(L=o.verticalTextFeatureIndex);var R=o.textBox;if(R){var N=function(n){var r=t.WritingMode.horizontal;if(a.allowVerticalPlacement&&!n&&i.prevPlacement){var o=i.prevPlacement.placedOrientations[e.crossTileID];o&&(i.placedOrientations[e.crossTileID]=o,i.markUsedOrientation(a,r=o,e))}return r},F=function(n,r){if(a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&o.verticalTextBox)for(var i=0,s=a.writingModes;i0&&(B=B.filter((function(t){return t!==z.anchor}))).unshift(z.anchor)}var V=function(t,n,r){for(var o=t.x2-t.x1,s=t.y2-t.y1,l=e.textBoxScale,c=O&&!b?n:null,f={box:[],offscreen:!1},d=y?2*B.length:B.length,p=0;p=B.length,e,a,r,c);if(v&&(f=v.placedGlyphBoxes)&&f.box&&f.box.length){w=!0,M=v.shift;break}}return f};F((function(){return V(R,o.iconBox,t.WritingMode.horizontal)}),(function(){var n=o.verticalTextBox;return a.allowVerticalPlacement&&!(A&&A.box&&A.box.length)&&e.numVerticalGlyphVertices>0&&n?V(n,o.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),A&&(w=A.box,T=A.offscreen);var U=N(A&&A.box);if(!w&&i.prevPlacement){var G=i.prevPlacement.variableOffsets[e.crossTileID];G&&(i.variableOffsets[e.crossTileID]=G,i.markUsedJustification(a,G.anchor,e,U))}}else{var H=function(t,n){var r=i.collisionIndex.placeCollisionBox(t,y,h,u,g.predicate);return r&&r.box&&r.box.length&&(i.markUsedOrientation(a,n,e),i.placedOrientations[e.crossTileID]=n),r};F((function(){return H(R,t.WritingMode.horizontal)}),(function(){var n=o.verticalTextBox;return a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&n?H(n,t.WritingMode.vertical):{box:null,offscreen:null}})),N(A&&A.box&&A.box.length)}}if(w=(d=A)&&d.box&&d.box.length>0,T=d&&d.offscreen,e.useRuntimeCollisionCircles){var W=a.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Y=t.evaluateSizeForFeature(a.textSizeData,p,W),$=s.get("text-padding");I=i.collisionIndex.placeCollisionCircles(y,W,a.lineVertexArray,a.glyphOffsetArray,Y,u,l,c,r,x,g.predicate,e.collisionCircleDiameter,$),w=y||I.circles.length>0&&!I.collisionDetected,T=T&&I.offscreen}if(o.iconFeatureIndex&&(D=o.iconFeatureIndex),o.iconBox){var X=function(t){var e=O&&M?_e(t,M.x,M.y,_,x,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,b,h,u,g.predicate)};E=j&&j.box&&j.box.length&&o.verticalIconBox?(k=X(o.verticalIconBox)).box.length>0:(k=X(o.iconBox)).box.length>0,T=T&&k.offscreen}var q=v||0===e.numHorizontalGlyphVertices&&0===e.numVerticalGlyphVertices,Z=m||0===e.numIconVertices;if(q||Z?Z?q||(E=E&&w):w=E&&w:E=w=E&&w,w&&d&&d.box&&i.collisionIndex.insertCollisionBox(d.box,s.get("text-ignore-placement"),a.bucketInstanceId,j&&j.box&&L?L:P,g.ID),E&&k&&i.collisionIndex.insertCollisionBox(k.box,s.get("icon-ignore-placement"),a.bucketInstanceId,D,g.ID),I&&(w&&i.collisionIndex.insertCollisionCircles(I.circles,s.get("text-ignore-placement"),a.bucketInstanceId,P,g.ID),r)){var K=a.bucketInstanceId,Q=i.collisionCircleArrays[K];void 0===Q&&(Q=i.collisionCircleArrays[K]=new ve);for(var J=0;J=0;--M){var A=T[M];E(a.symbolInstances.get(A),a.collisionArrays[A])}else for(var j=e.symbolInstanceStart;j=0&&(e.text.placedSymbolArray.get(u).crossTileID=o>=0&&u!==o?0:r.crossTileID)}},xe.prototype.markUsedOrientation=function(e,n,r){for(var i=n===t.WritingMode.horizontal||n===t.WritingMode.horizontalOnly?n:0,o=n===t.WritingMode.vertical?n:0,a=0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];a0,y=i.placedOrientations[o.crossTileID],b=y===t.WritingMode.vertical,_=y===t.WritingMode.horizontal||y===t.WritingMode.horizontalOnly;if(s>0||u>0){var x=je(v.text);p(e.text,s,b?Ie:x),p(e.text,u,_?Ie:x);var O=v.text.isHidden();[o.rightJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.leftJustifiedTextSymbolIndex].forEach((function(t){t>=0&&(e.text.placedSymbolArray.get(t).hidden=O||b?1:0)})),o.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(o.verticalPlacedTextSymbolIndex).hidden=O||_?1:0);var w=i.variableOffsets[o.crossTileID];w&&i.markUsedJustification(e,w.anchor,o,y);var S=i.placedOrientations[o.crossTileID];S&&(i.markUsedJustification(e,"left",o,S),i.markUsedOrientation(e,S,o))}if(m){var C=je(v.icon),E=!(f&&o.verticalPlacedIconSymbolIndex&&b);o.placedIconSymbolIndex>=0&&(p(e.icon,o.numIconVertices,E?C:Ie),e.icon.placedSymbolArray.get(o.placedIconSymbolIndex).hidden=v.icon.isHidden()),o.verticalPlacedIconSymbolIndex>=0&&(p(e.icon,o.numVerticalIconVertices,E?Ie:C),e.icon.placedSymbolArray.get(o.verticalPlacedIconSymbolIndex).hidden=v.icon.isHidden())}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var T=e.collisionArrays[r];if(T){var M=new t.Point(0,0);if(T.textBox||T.verticalTextBox){var A=!0;if(l){var j=i.variableOffsets[g];j?(M=be(j.anchor,j.width,j.height,j.textOffset,j.textBoxScale),c&&M._rotate(h?i.transform.angle:-i.transform.angle)):A=!1}T.textBox&&Oe(e.textCollisionBox.collisionVertexArray,v.text.placed,!A||b,M.x,M.y),T.verticalTextBox&&Oe(e.textCollisionBox.collisionVertexArray,v.text.placed,!A||_,M.x,M.y)}var I=Boolean(!_&&T.verticalIconBox);T.iconBox&&Oe(e.iconCollisionBox.collisionVertexArray,v.icon.placed,I,f?M.x:0,f?M.y:0),T.verticalIconBox&&Oe(e.iconCollisionBox.collisionVertexArray,v.icon.placed,!I,f?M.x:0,f?M.y:0)}}},v=0;vt},xe.prototype.setStale=function(){this.stale=!0};var we=Math.pow(2,25),Se=Math.pow(2,24),Ce=Math.pow(2,17),Ee=Math.pow(2,16),Te=Math.pow(2,9),Me=Math.pow(2,8),Ae=Math.pow(2,1);function je(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;var e=t.placed?1:0,n=Math.floor(127*t.opacity);return n*we+e*Se+n*Ce+e*Ee+n*Te+e*Me+n*Ae+e}var Ie=0,ke=function(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&void 0!==t.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ke.prototype.continuePlacement=function(t,e,n,r,i){for(var o=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var s=n[e[this._currentPlacementIndex]],u=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=u)&&(!s.maxzoom||s.maxzoom>u)){if(this._inProgressLayer||(this._inProgressLayer=new ke(s)),this._inProgressLayer.continuePlacement(r[s.source],this.placement,this._showCollisionBoxes,s,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Pe.prototype.commit=function(t){return this.placement.commit(t),this.placement};var Le=512/t.EXTENT/2,De=function(t,e,n){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(var r=0;rt.overscaledZ)for(var s in a){var u=a[s];u.tileID.isChildOf(t)&&u.findMatches(e.symbolInstances,t,i)}else{var l=a[t.scaledTo(Number(o)).key];l&&l.findMatches(e.symbolInstances,t,i)}}for(var c=0;c1?"@2x":"",u=t.getJSON(n.transformRequest(n.normalizeSpriteURL(e,s,".json"),t.ResourceType.SpriteJSON),(function(t,e){u=null,a||(a=t,i=e,c())})),l=t.getImage(n.transformRequest(n.normalizeSpriteURL(e,s,".png"),t.ResourceType.SpriteImage),(function(t,e){l=null,a||(a=t,o=e,c())}));function c(){if(a)r(a);else if(i&&o){var e=t.browser.getImageData(o),n={};for(var s in i){var u=i[s],l=u.width,c=u.height,h=u.x,f=u.y,d=u.sdf,p=u.pixelRatio,g=u.stretchX,v=u.stretchY,m=u.content,y=new t.RGBAImage({width:l,height:c});t.RGBAImage.copy(e,y,{x:h,y:f},{x:0,y:0},{width:l,height:c}),n[s]={data:y,pixelRatio:p,sdf:d,stretchX:g,stretchY:v,content:m}}r(null,n)}}return{cancel:function(){u&&(u.cancel(),u=null),l&&(l.cancel(),l=null)}}}(e,this.map._requestManager,(function(e,r){if(n._spriteRequest=null,e)n.fire(new t.ErrorEvent(e));else if(r)for(var i in r)n.imageManager.addImage(i,r[i]);n.imageManager.setLoaded(!0),n._availableImages=n.imageManager.listImages(),n.dispatcher.broadcast("setImages",n._availableImages),n.fire(new t.Event("data",{dataType:"style"}))}))},n.prototype._validateLayer=function(e){var n=this.sourceCaches[e.source];if(n){var r=e.sourceLayer;if(r){var i=n.getSource();("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(r))&&this.fire(new t.ErrorEvent(new Error('Source layer "'+r+'" does not exist on source "'+i.id+'" as specified by style layer "'+e.id+'"')))}}},n.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},n.prototype._serializeLayers=function(t){for(var e=[],n=0,r=t;n0)throw new Error("Unimplemented: "+i.map((function(t){return t.command})).join(", ")+".");return r.forEach((function(t){"setTransition"!==t.command&&n[t.command].apply(n,t.args)})),this.stylesheet=e,!0},n.prototype.addImage=function(e,n){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(e,n),this._afterImageUpdated(e)},n.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},n.prototype.getImage=function(t){return this.imageManager.getImage(t)},n.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(e),this._afterImageUpdated(e)},n.prototype._afterImageUpdated=function(e){this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new t.Event("data",{dataType:"style"}))},n.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},n.prototype.addSource=function(e,n,r){var i=this;if(void 0===r&&(r={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error("There is already a source with this ID");if(!n.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(n).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(t.validateStyle.source,"sources."+e,n,null,r))){this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);var o=this.sourceCaches[e]=new jt(e,n,this.dispatcher);o.style=this,o.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:o.serialize(),sourceId:e}})),o.onAdd(this.map),this._changed=!0}},n.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error("There is no source with this ID");for(var n in this._layers)if(this._layers[n].source===e)return this.fire(new t.ErrorEvent(new Error('Source "'+e+'" cannot be removed while layer "'+n+'" is using it.')));var r=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],r.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:e})),r.setEventedParent(null),r.clearTiles(),r.onRemove&&r.onRemove(this.map),this._changed=!0},n.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},n.prototype.getSource=function(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()},n.prototype.addLayer=function(e,n,r){void 0===r&&(r={}),this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id "'+i+'" already exists on this map')));else{var o;if("custom"===e.type){if(Be(this,t.validateCustomStyleLayer(e)))return;o=t.createStyleLayer(e)}else{if("object"==typeof e.source&&(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateStyle.layer,"layers."+i,e,{arrayIndex:-1},r))return;o=t.createStyleLayer(e),this._validateLayer(o),o.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[o.id]=o.serialize()}var a=n?this._order.indexOf(n):this._order.length;if(n&&-1===a)this.fire(new t.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(e,n){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==n){var r=this._order.indexOf(e);this._order.splice(r,1);var i=n?this._order.indexOf(n):this._order.length;n&&-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be moved.")))},n.prototype.removeLayer=function(e){this._checkLoaded();var n=this._layers[e];if(n){n.setEventedParent(null);var r=this._order.indexOf(e);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=n,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],n.onRemove&&n.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be removed.")))},n.prototype.getLayer=function(t){return this._layers[t]},n.prototype.hasLayer=function(t){return t in this._layers},n.prototype.setLayerZoomRange=function(e,n,r){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===n&&i.maxzoom===r||(null!=n&&(i.minzoom=n),null!=r&&(i.maxzoom=r),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot have zoom extent.")))},n.prototype.setFilter=function(e,n,r){void 0===r&&(r={}),this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.deepEqual(i.filter,n))return null==n?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(t.validateStyle.filter,"layers."+i.id+".filter",n,null,r)||(i.filter=t.clone$1(n),this._updateLayer(i)))}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be filtered.")))},n.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},n.prototype.setLayoutProperty=function(e,n,r,i){void 0===i&&(i={}),this._checkLoaded();var o=this.getLayer(e);o?t.deepEqual(o.getLayoutProperty(n),r)||(o.setLayoutProperty(n,r,i),this._updateLayer(o)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getLayoutProperty=function(e,n){var r=this.getLayer(e);if(r)return r.getLayoutProperty(n);this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style.")))},n.prototype.setPaintProperty=function(e,n,r,i){void 0===i&&(i={}),this._checkLoaded();var o=this.getLayer(e);o?t.deepEqual(o.getPaintProperty(n),r)||(o.setPaintProperty(n,r,i)&&this._updateLayer(o),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},n.prototype.setFeatureState=function(e,n){this._checkLoaded();var r=e.source,i=e.sourceLayer,o=this.sourceCaches[r];if(void 0!==o){var a=o.getSource().type;"geojson"===a&&i?this.fire(new t.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==a||i?(void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),o.setFeatureState(i,e.id,n)):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.removeFeatureState=function(e,n){this._checkLoaded();var r=e.source,i=this.sourceCaches[r];if(void 0!==i){var o=i.getSource().type,a="vector"===o?e.sourceLayer:void 0;"vector"!==o||a?n&&"string"!=typeof e.id&&"number"!=typeof e.id?this.fire(new t.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):i.removeFeatureState(a,e.id,n):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.getFeatureState=function(e){this._checkLoaded();var n=e.source,r=e.sourceLayer,i=this.sourceCaches[n];if(void 0!==i){if("vector"!==i.getSource().type||r)return void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),i.getFeatureState(r,e.id);this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},n.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},n.prototype.serialize=function(){return t.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:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},n.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&"raster"!==this.sourceCaches[t.source].getSource().type&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._changed=!0},n.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,n=function(t){return"fill-extrusion"===e._layers[t].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,u=t;s=0;d--){var p=this._order[d];if(n(p))for(var g=i.length-1;g>=0;g--){var v=i[g].feature;if(r[v.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Je=yn("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),tn=yn("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),en=yn("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),nn=yn("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),rn=yn("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),on=yn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),an=yn("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),sn=yn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),un=yn("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),ln=yn("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),cn=yn("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),hn=yn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),fn=yn("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),dn=yn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),pn=yn("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),gn=yn("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),vn=yn("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),mn=yn("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}");function yn(t,e){var n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=e.match(/attribute ([\w]+) ([\w]+)/g),i=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=o?o.concat(i):i,s={};return{fragmentSource:t=t.replace(n,(function(t,e,n,r,i){return s[i]=!0,"define"===e?"\n#ifndef HAS_UNIFORM_u_"+i+"\nvarying "+n+" "+r+" "+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n"})),vertexSource:e=e.replace(n,(function(t,e,n,r,i){var o="float"===r?"vec2":"vec4",a=i.match(/color/)?"color":o;return s[i]?"define"===e?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+n+" "+o+" a_"+i+";\nvarying "+n+" "+r+" "+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = a_"+i+";\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = unpack_mix_"+a+"(a_"+i+", u_"+i+"_t);\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"define"===e?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+n+" "+o+" a_"+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = a_"+i+";\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = unpack_mix_"+a+"(a_"+i+", u_"+i+"_t);\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n"})),staticAttributes:r,staticUniforms:a}}var bn=Object.freeze({__proto__:null,prelude:We,background:Ye,backgroundPattern:$e,circle:Xe,clippingMask:qe,heatmap:Ze,heatmapTexture:Ke,collisionBox:Qe,collisionCircle:Je,debug:tn,fill:en,fillOutline:nn,fillOutlinePattern:rn,fillPattern:on,fillExtrusion:an,fillExtrusionPattern:sn,hillshadePrepare:un,hillshade:ln,line:cn,lineGradient:hn,linePattern:fn,lineSDF:dn,raster:pn,symbolIcon:gn,symbolSDF:vn,symbolTextAndIcon:mn}),_n=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function xn(t){for(var e=[],n=0;n>16,s>>16],u_pixel_coord_lower:[65535&a,65535&s]}}On.prototype.draw=function(t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g){var v,m=t.gl;if(!this.failedToCreate){for(var y in t.program.set(this.program),t.setDepthMode(n),t.setStencilMode(r),t.setColorMode(i),t.setCullFace(o),this.fixedUniforms)this.fixedUniforms[y].set(a[y]);d&&d.setUniforms(t,this.binderUniforms,h,{zoom:f});for(var b=(v={},v[m.LINES]=2,v[m.TRIANGLES]=3,v[m.LINE_STRIP]=1,v)[e],_=0,x=c.get();_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:Gn(i.paint.get("raster-hue-rotate"))};var o,a};function Gn(t){t*=Math.PI/180;var e=Math.sin(t),n=Math.cos(t);return[(2*n+1)/3,(-Math.sqrt(3)*e-n+1)/3,(Math.sqrt(3)*e-n+1)/3]}var Hn,Wn=function(t,e,n,r,i,o,a,s,u,l){var c=i.transform;return{u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.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:+u,u_pitch_with_map:+r,u_texsize:l,u_texture:0}},Yn=function(e,n,r,i,o,a,s,u,l,c,h){var f=o.transform;return t.extend(Wn(e,n,r,i,o,a,s,u,l,c),{u_gamma_scale:i?Math.cos(f._pitch)*f.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+h})},$n=function(e,n,r,i,o,a,s,u,l,c){return t.extend(Yn(e,n,r,i,o,a,s,u,!0,l,!0),{u_texsize_icon:c,u_texture_icon:1})},Xn=function(t,e,n){return{u_matrix:t,u_opacity:e,u_color:n}},qn=function(e,n,r,i,o,a){return t.extend(function(t,e,n,r){var i=n.imageManager.getPattern(t.from.toString()),o=n.imageManager.getPattern(t.to.toString()),a=n.imageManager.getPixelSize(),s=a.width,u=a.height,l=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,n.transform.tileZoom)/l,h=c*(r.tileID.canonical.x+r.tileID.wrap*l),f=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,u],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:o.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/fe(r,1,n.transform.tileZoom),u_pixel_coord_upper:[h>>16,f>>16],u_pixel_coord_lower:[65535&h,65535&f]}}(i,a,r,o),{u_matrix:e,u_opacity:n})},Zn={fillExtrusion:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_lightpos:new t.Uniform3f(e,n.u_lightpos),u_lightintensity:new t.Uniform1f(e,n.u_lightintensity),u_lightcolor:new t.Uniform3f(e,n.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,n.u_vertical_gradient),u_opacity:new t.Uniform1f(e,n.u_opacity)}},fillExtrusionPattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_lightpos:new t.Uniform3f(e,n.u_lightpos),u_lightintensity:new t.Uniform1f(e,n.u_lightintensity),u_lightcolor:new t.Uniform3f(e,n.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,n.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,n.u_height_factor),u_image:new t.Uniform1i(e,n.u_image),u_texsize:new t.Uniform2f(e,n.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade),u_opacity:new t.Uniform1f(e,n.u_opacity)}},fill:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},fillPattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image:new t.Uniform1i(e,n.u_image),u_texsize:new t.Uniform2f(e,n.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade)}},fillOutline:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_world:new t.Uniform2f(e,n.u_world)}},fillOutlinePattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_world:new t.Uniform2f(e,n.u_world),u_image:new t.Uniform1i(e,n.u_image),u_texsize:new t.Uniform2f(e,n.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade)}},circle:function(e,n){return{u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,n.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,n.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},collisionBox:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,n.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,n.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,n.u_overscale_factor)}},collisionCircle:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,n.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,n.u_viewport_size)}},debug:function(e,n){return{u_color:new t.UniformColor(e,n.u_color),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_overlay:new t.Uniform1i(e,n.u_overlay),u_overlay_scale:new t.Uniform1f(e,n.u_overlay_scale)}},clippingMask:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},heatmap:function(e,n){return{u_extrude_scale:new t.Uniform1f(e,n.u_extrude_scale),u_intensity:new t.Uniform1f(e,n.u_intensity),u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},heatmapTexture:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_world:new t.Uniform2f(e,n.u_world),u_image:new t.Uniform1i(e,n.u_image),u_color_ramp:new t.Uniform1i(e,n.u_color_ramp),u_opacity:new t.Uniform1f(e,n.u_opacity)}},hillshade:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image:new t.Uniform1i(e,n.u_image),u_latrange:new t.Uniform2f(e,n.u_latrange),u_light:new t.Uniform2f(e,n.u_light),u_shadow:new t.UniformColor(e,n.u_shadow),u_highlight:new t.UniformColor(e,n.u_highlight),u_accent:new t.UniformColor(e,n.u_accent)}},hillshadePrepare:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image:new t.Uniform1i(e,n.u_image),u_dimension:new t.Uniform2f(e,n.u_dimension),u_zoom:new t.Uniform1f(e,n.u_zoom),u_unpack:new t.Uniform4f(e,n.u_unpack)}},line:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels)}},lineGradient:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels),u_image:new t.Uniform1i(e,n.u_image),u_image_height:new t.Uniform1f(e,n.u_image_height)}},linePattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_texsize:new t.Uniform2f(e,n.u_texsize),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_image:new t.Uniform1i(e,n.u_image),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade)}},lineSDF:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,n.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,n.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,n.u_sdfgamma),u_image:new t.Uniform1i(e,n.u_image),u_tex_y_a:new t.Uniform1f(e,n.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,n.u_tex_y_b),u_mix:new t.Uniform1f(e,n.u_mix)}},raster:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_tl_parent:new t.Uniform2f(e,n.u_tl_parent),u_scale_parent:new t.Uniform1f(e,n.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,n.u_buffer_scale),u_fade_t:new t.Uniform1f(e,n.u_fade_t),u_opacity:new t.Uniform1f(e,n.u_opacity),u_image0:new t.Uniform1i(e,n.u_image0),u_image1:new t.Uniform1i(e,n.u_image1),u_brightness_low:new t.Uniform1f(e,n.u_brightness_low),u_brightness_high:new t.Uniform1f(e,n.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,n.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,n.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,n.u_spin_weights)}},symbolIcon:function(e,n){return{u_is_size_zoom_constant:new t.Uniform1i(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,n.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,n.u_size_t),u_size:new t.Uniform1f(e,n.u_size),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,n.u_pitch),u_rotate_symbol:new t.Uniform1i(e,n.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,n.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,n.u_fade_change),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,n.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,n.u_coord_matrix),u_is_text:new t.Uniform1i(e,n.u_is_text),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_texsize:new t.Uniform2f(e,n.u_texsize),u_texture:new t.Uniform1i(e,n.u_texture)}},symbolSDF:function(e,n){return{u_is_size_zoom_constant:new t.Uniform1i(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,n.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,n.u_size_t),u_size:new t.Uniform1f(e,n.u_size),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,n.u_pitch),u_rotate_symbol:new t.Uniform1i(e,n.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,n.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,n.u_fade_change),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,n.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,n.u_coord_matrix),u_is_text:new t.Uniform1i(e,n.u_is_text),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_texsize:new t.Uniform2f(e,n.u_texsize),u_texture:new t.Uniform1i(e,n.u_texture),u_gamma_scale:new t.Uniform1f(e,n.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,n.u_is_halo)}},symbolTextAndIcon:function(e,n){return{u_is_size_zoom_constant:new t.Uniform1i(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,n.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,n.u_size_t),u_size:new t.Uniform1f(e,n.u_size),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,n.u_pitch),u_rotate_symbol:new t.Uniform1i(e,n.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,n.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,n.u_fade_change),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,n.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,n.u_coord_matrix),u_is_text:new t.Uniform1i(e,n.u_is_text),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_texsize:new t.Uniform2f(e,n.u_texsize),u_texsize_icon:new t.Uniform2f(e,n.u_texsize_icon),u_texture:new t.Uniform1i(e,n.u_texture),u_texture_icon:new t.Uniform1i(e,n.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,n.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,n.u_is_halo)}},background:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_opacity:new t.Uniform1f(e,n.u_opacity),u_color:new t.UniformColor(e,n.u_color)}},backgroundPattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_opacity:new t.Uniform1f(e,n.u_opacity),u_image:new t.Uniform1i(e,n.u_image),u_pattern_tl_a:new t.Uniform2f(e,n.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,n.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,n.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,n.u_pattern_br_b),u_texsize:new t.Uniform2f(e,n.u_texsize),u_mix:new t.Uniform1f(e,n.u_mix),u_pattern_size_a:new t.Uniform2f(e,n.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,n.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,n.u_scale_a),u_scale_b:new t.Uniform1f(e,n.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,n.u_tile_units_to_pixels)}}};function Kn(e,n,r,i,o,a,s){for(var u=e.context,l=u.gl,c=e.useProgram("collisionBox"),h=[],f=0,d=0,p=0;p0){var x=t.create(),O=y;t.mul(x,m.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(x,x,m.placementViewportMatrix),h.push({circleArray:_,circleOffset:d,transform:O,invTransform:x}),d=f+=_.length/4}b&&c.draw(u,l.LINES,Ct.disabled,Et.disabled,e.colorModeForRenderPass(),Mt.disabled,In(y,e.transform,v),r.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,null,e.transform.zoom,null,null,b.collisionVertexBuffer)}}if(s&&h.length){var w=e.useProgram("collisionCircle"),S=new t.StructArrayLayout2f1f2i16;S.resize(4*f),S._trim();for(var C=0,E=0,T=h;E=0&&(g[m.associatedIconIndex]={shiftedAnchor:S,angle:C})}else le(m.numGlyphs,d)}if(h){p.clear();for(var T=e.icon.placedSymbolArray,M=0;M0){var s=t.browser.now(),u=(s-e.timeAdded)/a,l=n?(s-n.timeAdded)/a:-1,c=r.getSource(),h=o.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),f=!n||Math.abs(n.tileID.overscaledZ-h)>Math.abs(e.tileID.overscaledZ-h),d=f&&e.refreshedUponExpiration?1:t.clamp(f?u:1-l,0,1);return e.refreshedUponExpiration&&u>=1&&(e.refreshedUponExpiration=!1),n?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}var lr=new t.Color(1,0,0,1),cr=new t.Color(0,1,0,1),hr=new t.Color(0,0,1,1),fr=new t.Color(1,0,1,1),dr=new t.Color(0,1,1,1);function pr(t,e,n,r){vr(t,0,e+n/2,t.transform.width,n,r)}function gr(t,e,n,r){vr(t,e-n/2,0,n,t.transform.height,r)}function vr(e,n,r,i,o,a){var s=e.context,u=s.gl;u.enable(u.SCISSOR_TEST),u.scissor(n*t.browser.devicePixelRatio,r*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,o*t.browser.devicePixelRatio),s.clear({color:a}),u.disable(u.SCISSOR_TEST)}function mr(e,n,r){var i=e.context,o=i.gl,a=r.posMatrix,s=e.useProgram("debug"),u=Ct.disabled,l=Et.disabled,c=e.colorModeForRenderPass();i.activeTexture.set(o.TEXTURE0),e.emptyTexture.bind(o.LINEAR,o.CLAMP_TO_EDGE),s.draw(i,o.LINE_STRIP,u,l,c,Mt.disabled,Pn(a,t.Color.red),"$debug",e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var h=n.getTileByID(r.key).latestRawTileData,f=Math.floor((h&&h.byteLength||0)/1024),d=n.getTile(r).tileSize,p=512/Math.min(d,512)*(r.overscaledZ/e.transform.zoom)*.5,g=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(g+=" => "+r.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var n=t.debugOverlayCanvas,r=t.context.gl,i=t.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,n.width,n.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(n),t.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(e,g+" "+f+"kb"),s.draw(i,o.TRIANGLES,u,l,Tt.alphaBlended,Mt.disabled,Pn(a,t.Color.transparent,p),"$debug",e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var yr={symbol:function(e,n,r,i,o){if("translucent"===e.renderPass){var a=Et.disabled,s=e.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(e,n,r,i,o,a,s){for(var u=n.transform,l="map"===o,c="map"===a,h=0,f=e;h256&&this.clearStencil(),n.setColorMode(Tt.disabled),n.setDepthMode(Ct.disabled);var i=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var o=0,a=e;o256&&this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new Et({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},br.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new Et({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},br.prototype.stencilConfigForOverlap=function(t){var e,n=this.context.gl,r=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),i=r[r.length-1].overscaledZ,o=r[0].overscaledZ-i+1;if(o>1){this.currentStencilSource=void 0,this.nextStencilID+o>256&&this.clearStencil();for(var a={},s=0;s=0;this.currentLayer--){var _=this.style._layers[i[this.currentLayer]],x=o[_.source],O=c[_.source];this._renderTileClippingMasks(_,O),this.renderLayer(this,x,_,O)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?e.pop():null},br.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),n=this.imageManager.getPattern(t.to.toString());return!e||!n},br.prototype.useProgram=function(t,e){this.cache=this.cache||{};var n=""+t+(e?e.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[n]||(this.cache[n]=new On(this.context,t,bn[t],e,Zn[t],this._showOverdrawInspector)),this.cache[n]},br.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},br.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},br.prototype.initDebugOverlayCanvas=function(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=t.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},br.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var _r=function(t,e){this.points=t,this.planes=e};_r.fromInvProjectionMatrix=function(e,n,r){var i=Math.pow(2,r),o=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(n){return t.transformMat4([],n,e)})).map((function(e){return t.scale$1([],e,1/e[3]/n*i)})),a=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var n=t.sub([],o[e[0]],o[e[1]]),r=t.sub([],o[e[2]],o[e[1]]),i=t.normalize([],t.cross([],n,r)),a=-t.dot(i,o[e[1]]);return i.concat(a)}));return new _r(o,a)};var xr=function(e,n){this.min=e,this.max=n,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};xr.prototype.quadrant=function(e){for(var n=[e%2==0,e<2],r=t.clone$2(this.min),i=t.clone$2(this.max),o=0;o=0;if(0===a)return 0;a!==n.length&&(r=!1)}if(r)return 2;for(var u=0;u<3;u++){for(var l=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;hthis.max[u]-this.min[u])return 0}return 1};var Or=function(t,e,n,r){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),isNaN(t)||t<0||isNaN(e)||e<0||isNaN(n)||n<0||isNaN(r)||r<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=e,this.left=n,this.right=r};Or.prototype.interpolate=function(e,n,r){return null!=n.top&&null!=e.top&&(this.top=t.number(e.top,n.top,r)),null!=n.bottom&&null!=e.bottom&&(this.bottom=t.number(e.bottom,n.bottom,r)),null!=n.left&&null!=e.left&&(this.left=t.number(e.left,n.left,r)),null!=n.right&&null!=e.right&&(this.right=t.number(e.right,n.right,r)),this},Or.prototype.getCenter=function(e,n){var r=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+n-this.bottom)/2,0,n);return new t.Point(r,i)},Or.prototype.equals=function(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right},Or.prototype.clone=function(){return new Or(this.top,this.bottom,this.left,this.right)},Or.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wr=function(e,n,r,i,o){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===o||o,this._minZoom=e||0,this._maxZoom=n||22,this._minPitch=null==r?0:r,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Or,this._posMatrixCache={},this._alignedPosMatrixCache={}},Sr={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wr.prototype.clone=function(){var t=new wr(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Sr.minZoom.get=function(){return this._minZoom},Sr.minZoom.set=function(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Sr.maxZoom.get=function(){return this._maxZoom},Sr.maxZoom.set=function(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Sr.minPitch.get=function(){return this._minPitch},Sr.minPitch.set=function(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Sr.maxPitch.get=function(){return this._maxPitch},Sr.maxPitch.set=function(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Sr.renderWorldCopies.get=function(){return this._renderWorldCopies},Sr.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t},Sr.worldSize.get=function(){return this.tileSize*this.scale},Sr.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Sr.size.get=function(){return new t.Point(this.width,this.height)},Sr.bearing.get=function(){return-this.angle/Math.PI*180},Sr.bearing.set=function(e){var n=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Sr.pitch.get=function(){return this._pitch/Math.PI*180},Sr.pitch.set=function(e){var n=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())},Sr.fov.get=function(){return this._fov/Math.PI*180},Sr.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Sr.zoom.get=function(){return this._zoom},Sr.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Sr.center.get=function(){return this._center},Sr.center.set=function(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Sr.padding.get=function(){return this._edgeInsets.toJSON()},Sr.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Sr.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wr.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},wr.prototype.interpolatePadding=function(t,e,n){this._unmodified=!1,this._edgeInsets.interpolate(t,e,n),this._constrain(),this._calcMatrices()},wr.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},wr.prototype.getVisibleUnwrappedCoordinates=function(e){var n=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var r=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),o=this.pointCoordinate(new t.Point(this.width,this.height)),a=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(r.x,i.x,o.x,a.x)),u=Math.floor(Math.max(r.x,i.x,o.x,a.x)),l=s-1;l<=u+1;l++)0!==l&&n.push(new t.UnwrappedTileID(l,e));return n},wr.prototype.coveringTiles=function(e){var n=this.coveringZoomLevel(e),r=n;if(void 0!==e.minzoom&&ne.maxzoom&&(n=e.maxzoom);var i=t.MercatorCoordinate.fromLngLat(this.center),o=Math.pow(2,n),a=[o*i.x,o*i.y,0],s=_r.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n),u=e.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(u=n);var l=function(t){return{aabb:new xr([t*o,0,0],[(t+1)*o,o,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},c=[],h=[],f=n,d=e.reparseOverscaled?r:n;if(this._renderWorldCopies)for(var p=1;p<=3;p++)c.push(l(-p)),c.push(l(p));for(c.push(l(0));c.length>0;){var g=c.pop(),v=g.x,m=g.y,y=g.fullyVisible;if(!y){var b=g.aabb.intersects(s);if(0===b)continue;y=2===b}var _=g.aabb.distanceX(a),x=g.aabb.distanceY(a),O=Math.max(Math.abs(_),Math.abs(x));if(g.zoom===f||O>3+(1<=u)h.push({tileID:new t.OverscaledTileID(g.zoom===f?d:g.zoom,g.wrap,g.zoom,v,m),distanceSq:t.sqrLen([a[0]-.5-v,a[1]-.5-m])});else for(var w=0;w<4;w++){var S=(v<<1)+w%2,C=(m<<1)+(w>>1);c.push({aabb:g.aabb.quadrant(w),zoom:g.zoom+1,x:S,y:C,wrap:g.wrap,fullyVisible:y})}}return h.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},wr.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Sr.unmodified.get=function(){return this._unmodified},wr.prototype.zoomScale=function(t){return Math.pow(2,t)},wr.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},wr.prototype.project=function(e){var n=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(n)*this.worldSize)},wr.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Sr.point.get=function(){return this.project(this.center)},wr.prototype.setLocationAtPoint=function(e,n){var r=this.pointCoordinate(n),i=this.pointCoordinate(this.centerPoint),o=this.locationCoordinate(e),a=new t.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())},wr.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},wr.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},wr.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},wr.prototype.coordinateLocation=function(t){return t.toLngLat()},wr.prototype.pointCoordinate=function(e){var n=[e.x,e.y,0,1],r=[e.x,e.y,1,1];t.transformMat4(n,n,this.pixelMatrixInverse),t.transformMat4(r,r,this.pixelMatrixInverse);var i=n[3],o=r[3],a=n[1]/i,s=r[1]/o,u=n[2]/i,l=r[2]/o,c=u===l?0:(0-u)/(l-u);return new t.MercatorCoordinate(t.number(n[0]/i,r[0]/o,c)/this.worldSize,t.number(a,s,c)/this.worldSize)},wr.prototype.coordinatePoint=function(e){var n=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(n,n,this.pixelMatrix),new t.Point(n[0]/n[3],n[1]/n[3])},wr.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},wr.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},wr.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wr.prototype.calculatePosMatrix=function(e,n){void 0===n&&(n=!1);var r=e.key,i=n?this._alignedPosMatrixCache:this._posMatrixCache;if(i[r])return i[r];var o=e.canonical,a=this.worldSize/this.zoomScale(o.z),s=o.x+Math.pow(2,o.z)*e.wrap,u=t.identity(new Float64Array(16));return t.translate(u,u,[s*a,o.y*a,0]),t.scale(u,u,[a/t.EXTENT,a/t.EXTENT,1]),t.multiply(u,n?this.alignedProjMatrix:this.projMatrix,u),i[r]=new Float32Array(u),i[r]},wr.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wr.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var e,n,r,i,o=-90,a=90,s=-180,u=180,l=this.size,c=this._unmodified;if(this.latRange){var h=this.latRange;o=t.mercatorYfromLat(h[1])*this.worldSize,e=(a=t.mercatorYfromLat(h[0])*this.worldSize)-oa&&(i=a-v)}if(this.lngRange){var m=d.x,y=l.x/2;m-yu&&(r=u-y)}void 0===r&&void 0===i||(this.center=this.unproject(new t.Point(void 0!==r?r:d.x,void 0!==i?i:d.y))),this._unmodified=c,this._constraining=!1}},wr.prototype._calcMatrices=function(){if(this.height){var e=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var n=Math.PI/2+this._pitch,r=this._fov*(.5+e.y/this.height),i=Math.sin(r)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-n-r,.01,Math.PI-.01)),o=this.point,a=o.x,s=o.y,u=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),l=this.height/50,c=new Float64Array(16);t.perspective(c,this._fov,this.width/this.height,l,u),c[8]=2*-e.x/this.width,c[9]=2*e.y/this.height,t.scale(c,c,[1,-1,1]),t.translate(c,c,[0,0,-this.cameraToCenterDistance]),t.rotateX(c,c,this._pitch),t.rotateZ(c,c,this.angle),t.translate(c,c,[-a,-s,0]),this.mercatorMatrix=t.scale([],c,[this.worldSize,this.worldSize,this.worldSize]),t.scale(c,c,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=c,this.invProjMatrix=t.invert([],this.projMatrix);var h=this.width%2/2,f=this.height%2/2,d=Math.cos(this.angle),p=Math.sin(this.angle),g=a-Math.round(a)+d*h+p*f,v=s-Math.round(s)+d*f+p*h,m=new Float64Array(c);if(t.translate(m,m,[g>.5?g-1:g,v>.5?v-1:v,0]),this.alignedProjMatrix=m,c=t.create(),t.scale(c,c,[this.width/2,-this.height/2,1]),t.translate(c,c,[1,-1,0]),this.labelPlaneMatrix=c,c=t.create(),t.scale(c,c,[1,-1,1]),t.translate(c,c,[-1,-1,0]),t.scale(c,c,[2/this.width,2/this.height,1]),this.glCoordMatrix=c,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(c=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=c,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wr.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),n=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(n,n,this.pixelMatrix)[3]/this.cameraToCenterDistance},wr.prototype.getCameraPoint=function(){var e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,e))},wr.prototype.getCameraQueryGeometry=function(e){var n=this.getCameraPoint();if(1===e.length)return[e[0],n];for(var r=n.x,i=n.y,o=n.x,a=n.y,s=0,u=e;s=3&&!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},Cr.prototype._updateHashUnthrottled=function(){var e=t.window.location.href.replace(/(#.+)?$/,this.getHashString());try{t.window.history.replaceState(t.window.history.state,null,e)}catch(t){}};var Er={linearity:.3,easing:t.bezier(0,0,.3,1)},Tr=t.extend({deceleration:2500,maxSpeed:1400},Er),Mr=t.extend({deceleration:20,maxSpeed:1400},Er),Ar=t.extend({deceleration:1e3,maxSpeed:360},Er),jr=t.extend({deceleration:1e3,maxSpeed:90},Er),Ir=function(t){this._map=t,this.clear()};function kr(t,e){(!t.duration||t.duration0&&n-e[0].time>160;)e.shift()},Ir.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var n={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},r=0,i=this._inertiaBuffer;r=this._clickTolerance||this._map.fire(new Lr(t.type,this._map,t))},Nr.prototype.dblclick=function(t){return this._firePreventable(new Lr(t.type,this._map,t))},Nr.prototype.mouseover=function(t){this._map.fire(new Lr(t.type,this._map,t))},Nr.prototype.mouseout=function(t){this._map.fire(new Lr(t.type,this._map,t))},Nr.prototype.touchstart=function(t){return this._firePreventable(new Dr(t.type,this._map,t))},Nr.prototype.touchmove=function(t){this._map.fire(new Dr(t.type,this._map,t))},Nr.prototype.touchend=function(t){this._map.fire(new Dr(t.type,this._map,t))},Nr.prototype.touchcancel=function(t){this._map.fire(new Dr(t.type,this._map,t))},Nr.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Nr.prototype.isEnabled=function(){return!0},Nr.prototype.isActive=function(){return!1},Nr.prototype.enable=function(){},Nr.prototype.disable=function(){};var Fr=function(t){this._map=t};Fr.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Fr.prototype.mousemove=function(t){this._map.fire(new Lr(t.type,this._map,t))},Fr.prototype.mousedown=function(){this._delayContextMenu=!0},Fr.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Lr("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Fr.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new Lr(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()},Fr.prototype.isEnabled=function(){return!0},Fr.prototype.isActive=function(){return!1},Fr.prototype.enable=function(){},Fr.prototype.disable=function(){};var Br=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function zr(t,e){for(var n={},r=0;rthis.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=e.timeStamp),r.length===this.numTouches&&(this.centroid=function(e){for(var n=new t.Point(0,0),r=0,i=e;r30)&&(this.aborted=!0)}}},Vr.prototype.touchend=function(t,e,n){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){var r=!this.aborted&&this.centroid;if(this.reset(),r)return r}};var Ur=function(t){this.singleTap=new Vr(t),this.numTaps=t.numTaps,this.reset()};Ur.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Ur.prototype.touchstart=function(t,e,n){this.singleTap.touchstart(t,e,n)},Ur.prototype.touchmove=function(t,e,n){this.singleTap.touchmove(t,e,n)},Ur.prototype.touchend=function(t,e,n){var r=this.singleTap.touchend(t,e,n);if(r){var i=t.timeStamp-this.lastTime<500,o=!this.lastTap||this.lastTap.dist(r)<30;if(i&&o||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}};var Gr=function(){this._zoomIn=new Ur({numTouches:1,numTaps:2}),this._zoomOut=new Ur({numTouches:2,numTaps:1}),this.reset()};Gr.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Gr.prototype.touchstart=function(t,e,n){this._zoomIn.touchstart(t,e,n),this._zoomOut.touchstart(t,e,n)},Gr.prototype.touchmove=function(t,e,n){this._zoomIn.touchmove(t,e,n),this._zoomOut.touchmove(t,e,n)},Gr.prototype.touchend=function(t,e,n){var r=this,i=this._zoomIn.touchend(t,e,n),o=this._zoomOut.touchend(t,e,n);return i?(this._active=!0,t.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):o?(this._active=!0,t.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(o)},{originalEvent:t})}}):void 0},Gr.prototype.touchcancel=function(){this.reset()},Gr.prototype.enable=function(){this._enabled=!0},Gr.prototype.disable=function(){this._enabled=!1,this.reset()},Gr.prototype.isEnabled=function(){return this._enabled},Gr.prototype.isActive=function(){return this._active};var Hr={0:1,2:2},Wr=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};Wr.prototype.blur=function(){this.reset()},Wr.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Wr.prototype._correctButton=function(t,e){return!1},Wr.prototype._move=function(t,e){return{}},Wr.prototype.mousedown=function(t,e){if(!this._lastPoint){var r=n.mouseButton(t);this._correctButton(t,r)&&(this._lastPoint=e,this._eventButton=r)}},Wr.prototype.mousemoveWindow=function(t,e){var n=this._lastPoint;if(n)if(t.preventDefault(),function(t,e){var n=Hr[e];return void 0===t.buttons||(t.buttons&n)!==n}(t,this._eventButton))this.reset();else if(this._moved||!(e.dist(n)0&&(this._active=!0);var i=zr(r,n),o=new t.Point(0,0),a=new t.Point(0,0),s=0;for(var u in i){var l=i[u],c=this._touches[u];c&&(o._add(l),a._add(l.sub(c)),s++,i[u]=l)}if(this._touches=i,!(sMath.abs(t.x)}var ri=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,ni(t[0].sub(t[1]))&&(this._valid=!1)},e.prototype._move=function(t,e,n){var r=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(r,i,n.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(r.y+i.y)/2*-.5}},e.prototype.gestureBeginsVertically=function(t,e,n){if(void 0!==this._valid)return this._valid;var r=t.mag()>=2,i=e.mag()>=2;if(r||i){if(!r||!i)return void 0===this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;var o=t.y>0==e.y>0;return ni(t)&&ni(e)&&o}},e}(Zr),ii={panStep:100,bearingStep:15,pitchStep:10},oi=function(){var t=ii;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep,this._rotationDisabled=!1};function ai(t){return t*(2-t)}oi.prototype.blur=function(){this.reset()},oi.prototype.reset=function(){this._active=!1},oi.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var n=0,r=0,i=0,o=0,a=0;switch(t.keyCode){case 61:case 107:case 171:case 187:n=1;break;case 189:case 109:case 173:n=-1;break;case 37:t.shiftKey?r=-1:(t.preventDefault(),o=-1);break;case 39:t.shiftKey?r=1:(t.preventDefault(),o=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),a=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),a=1);break;default:return}return this._rotationDisabled&&(r=0,i=0),{cameraAnimation:function(s){var u=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:ai,zoom:n?Math.round(u)+n*(t.shiftKey?2:1):u,bearing:s.getBearing()+r*e._bearingStep,pitch:s.getPitch()+i*e._pitchStep,offset:[-o*e._panStep,-a*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},oi.prototype.enable=function(){this._enabled=!0},oi.prototype.disable=function(){this._enabled=!1,this.reset()},oi.prototype.isEnabled=function(){return this._enabled},oi.prototype.isActive=function(){return this._active},oi.prototype.disableRotation=function(){this._rotationDisabled=!0},oi.prototype.enableRotation=function(){this._rotationDisabled=!1};var si=function(e,n){this._map=e,this._el=e.getCanvasContainer(),this._handler=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll(["_onTimeout"],this)};si.prototype.setZoomRate=function(t){this._defaultZoomRate=t},si.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},si.prototype.isEnabled=function(){return!!this._enabled},si.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},si.prototype.isZooming=function(){return!!this._zooming},si.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&"center"===t.around)},si.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},si.prototype.wheel=function(e){if(this.isEnabled()){var n=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,r=t.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,e)):this._type||(this._type=Math.abs(i*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),e.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=e,this._delta-=n,this._active||this._start(e)),e.preventDefault()}},si.prototype._onTimeout=function(t){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)},si.prototype._start=function(e){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var r=n.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(r)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},si.prototype.renderFrame=function(){var e=this;if(this._frameId&&(this._frameId=null,this.isActive())){var n=this._map.transform;if(0!==this._delta){var r="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,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,s="number"==typeof this._targetZoom?this._targetZoom:n.zoom,u=this._startZoom,l=this._easing,c=!1;if("wheel"===this._type&&u&&l){var h=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),f=l(h);a=t.number(u,s,f),h<1?this._frameId||(this._frameId=!0):c=!0}else a=s,c=!0;return this._active=!0,c&&(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!c,zoomDelta:a-n.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},si.prototype._smoothOutEasing=function(e){var n=t.ease;if(this._prevEase){var r=this._prevEase,i=(t.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=t.bezier(a,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:n},n},si.prototype.blur=function(){this.reset()},si.prototype.reset=function(){this._active=!1};var ui=function(t,e){this._clickZoom=t,this._tapZoom=e};ui.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},ui.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},ui.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},ui.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var li=function(){this.reset()};li.prototype.reset=function(){this._active=!1},li.prototype.blur=function(){this.reset()},li.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(n){n.easeTo({duration:300,zoom:n.getZoom()+(t.shiftKey?-1:1),around:n.unproject(e)},{originalEvent:t})}}},li.prototype.enable=function(){this._enabled=!0},li.prototype.disable=function(){this._enabled=!1,this.reset()},li.prototype.isEnabled=function(){return this._enabled},li.prototype.isActive=function(){return this._active};var ci=function(){this._tap=new Ur({numTouches:1,numTaps:1}),this.reset()};ci.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},ci.prototype.touchstart=function(t,e,n){this._swipePoint||(this._tapTime&&t.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=e[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(t,e,n))},ci.prototype.touchmove=function(t,e,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;var r=e[0],i=r.y-this._swipePoint.y;return this._swipePoint=r,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,n)},ci.prototype.touchend=function(t,e,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(t,e,n)&&(this._tapTime=t.timeStamp)},ci.prototype.touchcancel=function(){this.reset()},ci.prototype.enable=function(){this._enabled=!0},ci.prototype.disable=function(){this._enabled=!1,this.reset()},ci.prototype.isEnabled=function(){return this._enabled},ci.prototype.isActive=function(){return this._active};var hi=function(t,e,n){this._el=t,this._mousePan=e,this._touchPan=n};hi.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},hi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},hi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},hi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var fi=function(t,e,n){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=n};fi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},fi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},fi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},fi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var di=function(t,e,n,r){this._el=t,this._touchZoom=e,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0};di.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},di.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},di.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},di.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},di.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},di.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var pi=function(t){return t.zoom||t.drag||t.pitch||t.rotate},gi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(t.Event);function vi(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var mi=function(e,r){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ir(e),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r),t.bindAll(["handleEvent","handleWindowEvent"],this);var i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[t.window.document,"mousemove",{capture:!0}],[t.window.document,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[t.window,"blur",void 0]];for(var o=0,a=this._listeners;oo?Math.min(2,x):Math.max(.5,x),O=Math.pow(v,1-e),w=i.unproject(b.add(_.mult(e*O)).mult(g));i.setLocationAtPoint(i.renderWorldCopies?w.wrap():w,p)}r._fireMoveEvents(n)}),(function(t){r._afterEase(n,t)}),e),this},n.prototype._prepareEase=function(e,n,r){void 0===r&&(r={}),this._moving=!0,n||r.moving||this.fire(new t.Event("movestart",e)),this._zooming&&!r.zooming&&this.fire(new t.Event("zoomstart",e)),this._rotating&&!r.rotating&&this.fire(new t.Event("rotatestart",e)),this._pitching&&!r.pitching&&this.fire(new t.Event("pitchstart",e))},n.prototype._fireMoveEvents=function(e){this.fire(new t.Event("move",e)),this._zooming&&this.fire(new t.Event("zoom",e)),this._rotating&&this.fire(new t.Event("rotate",e)),this._pitching&&this.fire(new t.Event("pitch",e))},n.prototype._afterEase=function(e,n){if(!this._easeId||!n||this._easeId!==n){delete this._easeId;var r=this._zooming,i=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new t.Event("zoomend",e)),i&&this.fire(new t.Event("rotateend",e)),o&&this.fire(new t.Event("pitchend",e)),this.fire(new t.Event("moveend",e))}},n.prototype.flyTo=function(e,n){var r=this;if(!e.essential&&t.browser.prefersReducedMotion){var i=t.pick(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(i,n)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var o=this.transform,a=this.getZoom(),s=this.getBearing(),u=this.getPitch(),l=this.getPadding(),c="zoom"in e?t.clamp(+e.zoom,o.minZoom,o.maxZoom):a,h="bearing"in e?this._normalizeBearing(e.bearing,s):s,f="pitch"in e?+e.pitch:u,d="padding"in e?e.padding:o.padding,p=o.zoomScale(c-a),g=t.Point.convert(e.offset),v=o.centerPoint.add(g),m=o.pointLocation(v),y=t.LngLat.convert(e.center||m);this._normalizeCenter(y);var b=o.project(m),_=o.project(y).sub(b),x=e.curve,O=Math.max(o.width,o.height),w=O/p,S=_.mag();if("minZoom"in e){var C=t.clamp(Math.min(e.minZoom,a,c),o.minZoom,o.maxZoom),E=O/o.zoomScale(C-a);x=Math.sqrt(E/S*2)}var T=x*x;function M(t){var e=(w*w-O*O+(t?-1:1)*T*T*S*S)/(2*(t?w:O)*T*S);return Math.log(Math.sqrt(e*e+1)-e)}function A(t){return(Math.exp(t)-Math.exp(-t))/2}function j(t){return(Math.exp(t)+Math.exp(-t))/2}var I=M(0),k=function(t){return j(I)/j(I+x*t)},P=function(t){return O*((j(I)*(A(e=I+x*t)/j(e))-A(I))/T)/S;var e},L=(M(1)-I)/x;if(Math.abs(S)<1e-6||!isFinite(L)){if(Math.abs(O-w)<1e-6)return this.easeTo(e,n);var D=we.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=s!==h,this._pitching=f!==u,this._padding=!o.isPaddingEqual(d),this._prepareEase(n,!1),this._ease((function(e){var i=e*L,p=1/k(i);o.zoom=1===e?c:a+o.scaleZoom(p),r._rotating&&(o.bearing=t.number(s,h,e)),r._pitching&&(o.pitch=t.number(u,f,e)),r._padding&&(o.interpolatePadding(l,d,e),v=o.centerPoint.add(g));var m=1===e?y:o.unproject(b.add(_.mult(P(i))).mult(p));o.setLocationAtPoint(o.renderWorldCopies?m.wrap():m,v),r._fireMoveEvents(n)}),(function(){return r._afterEase(n)}),e),this},n.prototype.isEasing=function(){return!!this._easeFrameId},n.prototype.stop=function(){return this._stop()},n.prototype._stop=function(t,e){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var n=this._onEaseEnd;delete this._onEaseEnd,n.call(this,e)}if(!t){var r=this.handlers;r&&r.stop(!1)}return this},n.prototype._ease=function(e,n,r){!1===r.animate||0===r.duration?(e(1),n()):(this._easeStart=t.browser.now(),this._easeOptions=r,this._onEaseFrame=e,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},n.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},n.prototype._normalizeBearing=function(e,n){e=t.wrap(e,-180,180);var r=Math.abs(e-n);return Math.abs(e-360-n)180?-360:n<-180?360:0}},n}(t.Evented),bi=function(e){void 0===e&&(e={}),this.options=e,t.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};bi.prototype.getDefaultPosition=function(){return"bottom-right"},bi.prototype.onAdd=function(t){var e=this.options&&this.options.compact;return this._map=t,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=n.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=n.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),e&&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===e&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},bi.prototype.onRemove=function(){n.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},bi.prototype._setElementTitle=function(t,e){var n=this._map._getUIString("AttributionControl."+e);t.title=n,t.setAttribute("aria-label",n)},bi.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},bi.prototype._updateEditLink=function(){var e=this._editLink;e||(e=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||t.config.ACCESS_TOKEN}];if(e){var r=n.reduce((function(t,e,r){return e.value&&(t+=e.key+"="+e.value+(r=0)return!1;return!0}))).join(" | ");a!==this._attribHTML&&(this._attribHTML=a,t.length?(this._innerContainer.innerHTML=a,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},bi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var _i=function(){t.bindAll(["_updateLogo"],this),t.bindAll(["_updateCompact"],this)};_i.prototype.onAdd=function(t){this._map=t,this._container=n.create("div","mapboxgl-ctrl");var e=n.create("a","mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://www.mapbox.com/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},_i.prototype.onRemove=function(){n.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},_i.prototype.getDefaultPosition=function(){return"bottom-left"},_i.prototype._updateLogo=function(t){t&&"metadata"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},_i.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},_i.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth<250?e.classList.add("mapboxgl-compact"):e.classList.remove("mapboxgl-compact")}};var xi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};xi.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},xi.prototype.remove=function(t){for(var e=this._currentlyRunning,n=0,r=e?this._queue.concat(e):this._queue;ne.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=e.minPitch&&null!=e.maxPitch&&e.minPitch>e.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=e.minPitch&&e.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=e.maxPitch&&e.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var i=new wr(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(r.call(this,i,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new xi,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},Oi,e.locale),this._clickTolerance=e.clickTolerance,this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),"string"==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error("Container '"+e.container+"' not found.")}else{if(!(e.container instanceof Si))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}if(e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return n._update(!1)})),this.on("moveend",(function(){return n._update(!1)})),this.on("zoom",(function(){return n._update(!0)})),void 0!==t.window&&(t.window.addEventListener("online",this._onWindowOnline,!1),t.window.addEventListener("resize",this._onWindowResize,!1),t.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new mi(this,e),this._hash=e.hash&&new Cr("string"==typeof e.hash&&e.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&&(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&&this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&&this.addControl(new bi({customAttribution:e.customAttribution})),this.addControl(new _i,e.logoPosition),this.on("style.load",(function(){n.transform.unmodified&&n.jumpTo(n.style.stylesheet)})),this.on("data",(function(e){n._update("style"===e.dataType),n.fire(new t.Event(e.dataType+"data",e))})),this.on("dataloading",(function(e){n.fire(new t.Event(e.dataType+"dataloading",e))}))}r&&(i.__proto__=r),(i.prototype=Object.create(r&&r.prototype)).constructor=i;var o={showTileBoundaries:{configurable:!0},showPadding:{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(e,n){if(void 0===n&&(n=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var r=e.onAdd(this);this._controls.push(e);var i=this._controlPositions[n];return-1!==n.indexOf("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this},i.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var n=this._controls.indexOf(e);return n>-1&&this._controls.splice(n,1),e.onRemove(this),this},i.prototype.hasControl=function(t){return this._controls.indexOf(t)>-1},i.prototype.resize=function(e){var n=this._containerDimensions(),r=n[0],i=n[1];if(r===this.transform.width&&i===this.transform.height)return this;this._resizeCanvas(r,i),this.transform.resize(r,i),this.painter.resize(r,i);var o=!this._moving;return o&&this.fire(new t.Event("movestart",e)).fire(new t.Event("move",e)),this.fire(new t.Event("resize",e)),o&&this.fire(new t.Event("moveend",e)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},i.prototype.setMinZoom=function(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},i.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},i.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(t,e,n){var r,i=this;if("mouseenter"===t||"mouseover"===t){var o=!1;return{layer:e,listener:n,delegates:{mousemove:function(r){var a=i.getLayer(e)?i.queryRenderedFeatures(r.point,{layers:[e]}):[];a.length?o||(o=!0,n.call(i,new Lr(t,i,r.originalEvent,{features:a}))):o=!1},mouseout:function(){o=!1}}}}if("mouseleave"===t||"mouseout"===t){var a=!1;return{layer:e,listener:n,delegates:{mousemove:function(r){(i.getLayer(e)?i.queryRenderedFeatures(r.point,{layers:[e]}):[]).length?a=!0:a&&(a=!1,n.call(i,new Lr(t,i,r.originalEvent)))},mouseout:function(e){a&&(a=!1,n.call(i,new Lr(t,i,e.originalEvent)))}}}}return{layer:e,listener:n,delegates:(r={},r[t]=function(t){var r=i.getLayer(e)?i.queryRenderedFeatures(t.point,{layers:[e]}):[];r.length&&(t.features=r,n.call(i,t),delete t.features)},r)}},i.prototype.on=function(t,e,n){if(void 0===n)return r.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,n);for(var o in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(o,i.delegates[o]);return this},i.prototype.once=function(t,e,n){if(void 0===n)return r.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,n);for(var o in i.delegates)this.once(o,i.delegates[o]);return this},i.prototype.off=function(t,e,n){var i=this;return void 0===n?r.prototype.off.call(this,t,e):(this._delegatedListeners&&this._delegatedListeners[t]&&function(r){for(var o=r[t],a=0;a180;){var s=r.locationPoint(e);if(s.x>=0&&s.y>=0&&s.x<=r.width&&s.y<=r.height)break;e.lng>r.center.lng?e.lng-=360:e.lng+=360}return e}Ii.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&&this.mousePitch.mousedown(t,e),n.disableDrag()},Ii.prototype.move=function(t,e){var n=this.map,r=this.mouseRotate.mousemoveWindow(t,e);if(r&&r.bearingDelta&&n.setBearing(n.getBearing()+r.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(t,e);i&&i.pitchDelta&&n.setPitch(n.getPitch()+i.pitchDelta)}},Ii.prototype.off=function(){var t=this.element;n.removeEventListener(t,"mousedown",this.mousedown),n.removeEventListener(t,"touchstart",this.touchstart,{passive:!1}),n.removeEventListener(t,"touchmove",this.touchmove),n.removeEventListener(t,"touchend",this.touchend),n.removeEventListener(t,"touchcancel",this.reset),this.offTemp()},Ii.prototype.offTemp=function(){n.enableDrag(),n.removeEventListener(t.window,"mousemove",this.mousemove),n.removeEventListener(t.window,"mouseup",this.mouseup)},Ii.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),n.mousePos(this.element,e)),n.addEventListener(t.window,"mousemove",this.mousemove),n.addEventListener(t.window,"mouseup",this.mouseup)},Ii.prototype.mousemove=function(t){this.move(t,n.mousePos(this.element,t))},Ii.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&&this.mousePitch.mouseupWindow(t),this.offTemp()},Ii.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=n.touchPos(this.element,t.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},Ii.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=n.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},Ii.prototype.touchend=function(t){0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=n}this._isDragging&&(this._pos=e.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 t.Event("dragstart"))),this.fire(new t.Event("drag")))},r.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new t.Event("dragend")),this._state="inactive"},r.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},r.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},r.prototype.isDraggable=function(){return this._draggable},r.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},r.prototype.getRotation=function(){return this._rotation},r.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||"auto",this._update(),this},r.prototype.getRotationAlignment=function(){return this._rotationAlignment},r.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&&"auto"!==t?t:this._rotationAlignment,this._update(),this},r.prototype.getPitchAlignment=function(){return this._pitchAlignment},r}(t.Evented),Ni={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Fi=0,Bi=!1,zi=function(e){function r(n){e.call(this),this.options=t.extend({},Ni,n),t.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.onAdd=function(e){var r;return this._map=e,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),r=this._setupUI,void 0!==Di?r(Di):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:"geolocation"}).then((function(t){r(Di="denied"!==t.state)})):r(Di=!!t.window.navigator.geolocation),this._container},r.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),n.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Fi=0,Bi=!1},r.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),n=t.coords;return e&&(n.longitudee.getEast()||n.latitudee.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(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event("outofmaxbounds",e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(e),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",e)),this._finish()}},r.prototype._updateCamera=function(e){var n=new t.LngLat(e.coords.longitude,e.coords.latitude),r=e.coords.accuracy,i=this._map.getBearing(),o=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(r),o,{geolocateSource:!0})},r.prototype._updateMarker=function(e){if(e){var n=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},r.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),n=this._map.unproject([1,t]),r=e.distanceTo(n),i=Math.ceil(2*this._accuracy/r);this._circleElement.style.width=i+"px",this._circleElement.style.height=i+"px"},r.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},r.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=n,this._geolocateButton.setAttribute("aria-label",n),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===e.code&&Bi)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",e)),this._finish()}},r.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},r.prototype._setupUI=function(e){var r=this;if(this._container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this._geolocateButton=n.create("button","mapboxgl-ctrl-geolocate",this._container),n.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===e){t.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var i=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute("aria-label",i)}else{var o=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=o,this._geolocateButton.setAttribute("aria-label",o)}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 Ri(this._dotElement),this._circleElement=n.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Ri({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(function(e){e.geolocateSource||"ACTIVE_LOCK"!==r._watchState||e.originalEvent&&"resize"===e.originalEvent.type||(r._watchState="BACKGROUND",r._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),r._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),r.fire(new t.Event("trackuserlocationend")))}))},r.prototype.trigger=function(){if(!this._setup)return t.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 t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Fi--,Bi=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.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 t.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Fi>1?(e={maximumAge:6e5,timeout:0},Bi=!0):(e=this.options.positionOptions,Bi=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},r.prototype._clearWatch=function(){t.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}(t.Evented),Vi={maxWidth:100,unit:"metric"},Ui=function(e){this.options=t.extend({},Vi,e),t.bindAll(["_onMove","setUnit"],this)};function Gi(t,e,n){var r=n&&n.maxWidth||100,i=t._container.clientHeight/2,o=t.unproject([0,i]),a=t.unproject([r,i]),s=o.distanceTo(a);if(n&&"imperial"===n.unit){var u=3.2808*s;u>5280?Hi(e,r,u/5280,t._getUIString("ScaleControl.Miles")):Hi(e,r,u,t._getUIString("ScaleControl.Feet"))}else n&&"nautical"===n.unit?Hi(e,r,s/1852,t._getUIString("ScaleControl.NauticalMiles")):s>=1e3?Hi(e,r,s/1e3,t._getUIString("ScaleControl.Kilometers")):Hi(e,r,s,t._getUIString("ScaleControl.Meters"))}function Hi(t,e,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(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(a)));t.style.width=e*(s/n)+"px",t.innerHTML=s+" "+r}Ui.prototype.getDefaultPosition=function(){return"bottom-left"},Ui.prototype._onMove=function(){Gi(this._map,this._container,this.options)},Ui.prototype.onAdd=function(t){return this._map=t,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Ui.prototype.onRemove=function(){n.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ui.prototype.setUnit=function(t){this.options.unit=t,Gi(this._map,this._container,this.options)};var Wi=function(e){this._fullscreen=!1,e&&e.container&&(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce("Full screen control 'container' must be a DOM element.")),t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in t.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in t.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in t.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in t.window.document&&(this._fullscreenchange="MSFullscreenChange")};Wi.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",t.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Wi.prototype.onRemove=function(){n.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Wi.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},Wi.prototype._setupUI=function(){var e=this._fullscreenButton=n.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);n.create("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden",!0),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Wi.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.title=t},Wi.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Wi.prototype._isFullscreen=function(){return this._fullscreen},Wi.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Wi.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&&t.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 Yi={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},$i=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Xi=function(e){function r(n){e.call(this),this.options=t.extend(Object.create(Yi),n),t.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.addTo=function(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new t.Event("open")),this},r.prototype.isOpen=function(){return!!this._map},r.prototype.remove=function(){return this._content&&n.remove(this._content),this._container&&(n.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new t.Event("close")),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},r.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},r.prototype.getElement=function(){return this._container},r.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},r.prototype.setHTML=function(e){var n,r=t.window.document.createDocumentFragment(),i=t.window.document.createElement("body");for(i.innerHTML=e;n=i.firstChild;)r.appendChild(n);return this.setDOMContent(r)},r.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},r.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},r.prototype.setDOMContent=function(t){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=n.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(t),this._createCloseButton(),this._update(),this._focusFirstElement(),this},r.prototype.addClassName=function(t){this._container&&this._container.classList.add(t)},r.prototype.removeClassName=function(t){this._container&&this._container.classList.remove(t)},r.prototype.setOffset=function(t){return this.options.offset=t,this._update(),this},r.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},r.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=n.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},r.prototype._onMouseUp=function(t){this._update(t.point)},r.prototype._onMouseMove=function(t){this._update(t.point)},r.prototype._onDrag=function(t){this._update(t.point)},r.prototype._update=function(e){var r=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=n.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=n.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(t){return r._container.classList.add(t)})),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=ki(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var i=this._pos=this._trackPointer&&e?e:this._map.project(this._lngLat),o=this.options.anchor,a=function e(n){if(n){if("number"==typeof n){var r=Math.round(Math.sqrt(.5*Math.pow(n,2)));return{center:new t.Point(0,0),top:new t.Point(0,n),"top-left":new t.Point(r,r),"top-right":new t.Point(-r,r),bottom:new t.Point(0,-n),"bottom-left":new t.Point(r,-r),"bottom-right":new t.Point(-r,-r),left:new t.Point(n,0),right:new t.Point(-n,0)}}if(n instanceof t.Point||Array.isArray(n)){var i=t.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:t.Point.convert(n.center||[0,0]),top:t.Point.convert(n.top||[0,0]),"top-left":t.Point.convert(n["top-left"]||[0,0]),"top-right":t.Point.convert(n["top-right"]||[0,0]),bottom:t.Point.convert(n.bottom||[0,0]),"bottom-left":t.Point.convert(n["bottom-left"]||[0,0]),"bottom-right":t.Point.convert(n["bottom-right"]||[0,0]),left:t.Point.convert(n.left||[0,0]),right:t.Point.convert(n.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!o){var s,u=this._container.offsetWidth,l=this._container.offsetHeight;s=i.y+a.bottom.ythis._map.transform.height-l?["bottom"]:[],i.xthis._map.transform.width-u/2&&s.push("right"),o=0===s.length?"bottom":s.join("-")}var c=i.add(a[o]).round();n.setTransform(this._container,Pi[o]+" translate("+c.x+"px,"+c.y+"px)"),Li(this._container,o,"popup")}},r.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var t=this._container.querySelector($i);t&&t.focus()}},r.prototype._onClose=function(){this.remove()},r}(t.Evented),qi={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Ti,NavigationControl:ji,GeolocateControl:zi,AttributionControl:bi,ScaleControl:Ui,FullscreenControl:Wi,Popup:Xi,Marker:Ri,Style:Ge,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Ft().acquire(Lt)},clearPrewarmedResources:function(){var t=Rt;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(Lt),Rt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Dt.workerCount},set workerCount(t){Dt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:""};return qi})),n}()},function(t,e,n){"use strict";n.r(e);var r=n(1838),i=n(1839),o=n(1855),a=n(222);e.default=function(t,e){return(Object(a.default)(t)?r.default:i.default)(t,Object(o.default)(e))}},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";function r(t){return t*t}function i(t){return t*(2-t)}function o(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}n.r(e),n.d(e,"quadIn",(function(){return r})),n.d(e,"quadOut",(function(){return i})),n.d(e,"quadInOut",(function(){return o}))},function(t,e,n){"use strict";function r(t){return t*t*t}function i(t){return--t*t*t+1}function o(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.r(e),n.d(e,"cubicIn",(function(){return r})),n.d(e,"cubicOut",(function(){return i})),n.d(e,"cubicInOut",(function(){return o}))},function(t,e,n){"use strict";n.r(e),n.d(e,"polyIn",(function(){return r})),n.d(e,"polyOut",(function(){return i})),n.d(e,"polyInOut",(function(){return o}));var r=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),i=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),o=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";n.r(e),n.d(e,"sinIn",(function(){return o})),n.d(e,"sinOut",(function(){return a})),n.d(e,"sinInOut",(function(){return s}));var r=Math.PI,i=r/2;function o(t){return 1==+t?1:1-Math.cos(t*i)}function a(t){return Math.sin(t*i)}function s(t){return(1-Math.cos(r*t))/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"expIn",(function(){return i})),n.d(e,"expOut",(function(){return o})),n.d(e,"expInOut",(function(){return a}));var r=n(334);function i(t){return Object(r.tpmt)(1-+t)}function o(t){return 1-Object(r.tpmt)(t)}function a(t){return((t*=2)<=1?Object(r.tpmt)(1-t):2-Object(r.tpmt)(t-1))/2}},function(t,e,n){"use strict";function r(t){return 1-Math.sqrt(1-t*t)}function i(t){return Math.sqrt(1- --t*t)}function o(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}n.r(e),n.d(e,"circleIn",(function(){return r})),n.d(e,"circleOut",(function(){return i})),n.d(e,"circleInOut",(function(){return o}))},function(t,e,n){"use strict";n.r(e),n.d(e,"bounceIn",(function(){return i})),n.d(e,"bounceOut",(function(){return o})),n.d(e,"bounceInOut",(function(){return a}));var r=7.5625;function i(t){return 1-o(1-t)}function o(t){return(t=+t)<4/11?r*t*t:t<8/11?r*(t-=6/11)*t+3/4:t<10/11?r*(t-=9/11)*t+15/16:r*(t-=21/22)*t+63/64}function a(t){return((t*=2)<=1?1-o(1-t):o(t-1)+1)/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"backIn",(function(){return r})),n.d(e,"backOut",(function(){return i})),n.d(e,"backInOut",(function(){return o}));var r=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),i=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),o=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";n.r(e),n.d(e,"elasticIn",(function(){return o})),n.d(e,"elasticOut",(function(){return a})),n.d(e,"elasticInOut",(function(){return s}));var r=n(334),i=2*Math.PI,o=function t(e,n){var o=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function a(t){return e*Object(r.tpmt)(- --t)*Math.sin((o-t)/n)}return a.amplitude=function(e){return t(e,n*i)},a.period=function(n){return t(e,n)},a}(1,.3),a=function t(e,n){var o=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function a(t){return 1-e*Object(r.tpmt)(t=+t)*Math.sin((t+o)/n)}return a.amplitude=function(e){return t(e,n*i)},a.period=function(n){return t(e,n)},a}(1,.3),s=function t(e,n){var o=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function a(t){return((t=2*t-1)<0?e*Object(r.tpmt)(-t)*Math.sin((o-t)/n):2-e*Object(r.tpmt)(t)*Math.sin((o+t)/n))/2}return a.amplitude=function(e){return t(e,n*i)},a.period=function(n){return t(e,n)},a}(1,.3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.circularDependencyToException=e.listMetadataForTarget=e.listRegisteredBindingsForServiceIdentifier=e.getServiceIdentifierAsString=e.getFunctionName=void 0;var r=n(234);function i(t){return"function"==typeof t?t.name:"symbol"==typeof t?t.toString():t}function o(t){if(t.name)return t.name;var e=t.toString(),n=e.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+e}e.getServiceIdentifierAsString=i,e.listRegisteredBindingsForServiceIdentifier=function(t,e,n){var r="",i=n(t,e);return 0!==i.length&&(r="\nRegistered bindings:",i.forEach((function(t){var e="Object";null!==t.implementationType&&(e=o(t.implementationType)),r=r+"\n "+e,t.constraint.metaData&&(r=r+" - "+t.constraint.metaData)}))),r},e.circularDependencyToException=function t(e){e.childRequests.forEach((function(e){if(function t(e,n){return null!==e.parentRequest&&(e.parentRequest.serviceIdentifier===n||t(e.parentRequest,n))}(e,e.serviceIdentifier)){var n=function(t){return function t(e,n){void 0===n&&(n=[]);var r=i(e.serviceIdentifier);return n.push(r),null!==e.parentRequest?t(e.parentRequest,n):n}(t).reverse().join(" --\x3e ")}(e);throw new Error(r.CIRCULAR_DEPENDENCY+" "+n)}t(e)}))},e.listMetadataForTarget=function(t,e){if(e.isTagged()||e.isNamed()){var n="",r=e.getNamedTag(),i=e.getCustomTags();return null!==r&&(n+=r.toString()+"\n"),null!==i&&i.forEach((function(t){n+=t.toString()+"\n"}))," "+t+"\n "+t+" - "+n}return" "+t},e.getFunctionName=o},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";n.r(e);var r=n(61),i=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return Object(r.__extends)(e,t),e}(n(738).default);e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"getEngine",(function(){return i})),n.d(e,"registerEngine",(function(){return o}));var r={};function i(t){var e=r[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}function o(t,e){r[t]=e}},function(t,e,n){"use strict";n.r(e),n.d(e,"View",(function(){return C})),n.d(e,"registerGeometry",(function(){return E}));var r=n(2),i=n(1),o=n(8),a=n(488),s=n(409),u=n(305),l=n(418),c=n(124),h=n(92),f=n(81),d=n(381),p=n(427),g=n(165),v=n(524),m=n(569),y=n(1667),b=n(268),_=n(1668),x=n(1669),O=n(525),w=n(1670),S=n(1671),C=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=Object(m.getComponentControllerNames)(),n.scalePool=new x.ScalePool,n.layoutFunc=_.default,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var r=n.createViewEvent(t);n.doPlotEvent(r),n.emit(e,r)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var r=n.createViewEvent(t);n.emit(e,r)}};var o=e.id,a=void 0===o?Object(i.uniqueId)("view"):o,s=e.parent,u=e.canvas,c=e.backgroundGroup,h=e.middleGroup,f=e.foregroundGroup,d=e.region,p=void 0===d?{start:{x:0,y:0},end:{x:1,y:1}}:d,g=e.padding,y=e.appendPadding,b=e.theme,O=e.options,w=e.limitInPlot,S=e.syncViewPadding;return n.parent=s,n.canvas=u,n.backgroundGroup=c,n.middleGroup=h,n.foregroundGroup=f,n.region=p,n.padding=g,n.appendPadding=y,n.options=Object(r.__assign)(Object(r.__assign)({},n.options),O),n.limitInPlot=w,n.id=a,n.syncViewPadding=S,n.themeObject=Object(i.isObject)(b)?Object(i.deepMix)({},Object(l.getTheme)("default"),Object(v.createTheme)(b)):Object(l.getTheme)(b),n.init(),n}return Object(r.__extends)(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(o.VIEW_LIFE_CIRCLE.BEFORE_RENDER,b.default.fromData(this,o.VIEW_LIFE_CIRCLE.BEFORE_RENDER,e)),this.paint(t),this.emit(o.VIEW_LIFE_CIRCLE.AFTER_RENDER,b.default.fromData(this,o.VIEW_LIFE_CIRCLE.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(o.VIEW_LIFE_CIRCLE.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n"},key:"".concat(0===o?"top":"bottom","-statistic")},Object(a.pick)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},c=function(t,e,n){var o=e.statistic;[o.title,o.content].forEach((function(e){if(e){var o=Object(i.isFunction)(e.style)?e.style(n):e.style;t.annotation().html(Object(r.__assign)({position:["50%","100%"],html:function(t,a){var l=a.getCoordinate(),c=a.views[0].getCoordinate(),h=c.getCenter(),f=c.getRadius(),d=Math.max(Math.sin(c.startAngle),Math.sin(c.endAngle))*f,p=h.y+d-l.y.start-parseFloat(Object(i.get)(o,"fontSize",0)),g=l.getRadius()*l.innerRadius*2;u(t,Object(r.__assign)({width:"".concat(g,"px"),transform:"translate(-50%, ".concat(p,"px)")},s(o)));var v=a.getData();if(e.customHtml)return e.customHtml(t,a,n,v);var m=e.content;return e.formatter&&(m=e.formatter(n,v)),m?Object(i.isString)(m)?m:"".concat(m):"
"}},Object(a.pick)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"Mix",(function(){return a}));var r=n(2),i=n(29),o=n(1772),a=(n(2133),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="mix",e}return Object(r.__extends)(e,t),e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot))},function(t,e,n){"use strict";n.r(e),n.d(e,"Funnel",(function(){return l}));var r=n(2),i=n(1),o=n(29),a=n(3),s=n(794),u=n(76);n.d(e,"FUNNEL_CONVERSATION_FIELD",(function(){return u.FUNNEL_CONVERSATION}));n(602);var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return u.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=Object(a.getAllElementsRecursively)(this.chart);Object(i.each)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(a.getAllElementsRecursively)(this.chart),e=[];return Object(i.each)(t,(function(t){var n=t.getData(),r=t.getStates();Object(i.each)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.CONVERSATION_FIELD=u.FUNNEL_CONVERSATION,e.PERCENT_FIELD=u.FUNNEL_PERCENT,e.TOTAL_PERCENT_FIELD=u.FUNNEL_TOTAL_PERCENT,e}(o.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"ArcShape",(function(){return o}));var r=n(61),i=n(38),o=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,u=Math.cos(o),l=Math.sin(o);t.moveTo(u*i+n,l*i+r),t.arc(n,r,i,o,a,!s)},e}(i.default);a.prototype.type="arc",e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"parseXML",(function(){return i}));var r=n(0);function i(t){Object(r.isString)(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(675),i=n(1629);function o(t,e){void 0===e&&(e=!1);for(var n,o,s=Object(r.default)(t),u={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},l=[],c="",h=s.length,f=[],d=0;d7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function o(t,e,n){var o=!1,a=t.length;if(a<=2)return!1;for(var s=0;s0!=r(l[1]-n)>0&&r(e-(n-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(o=!o)}return o}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(r.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(n(379).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(r.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),o=Math.floor(r*(n-1));if(o>=n-1)return Object(i.last)(e);if(o<0)return Object(i.head)(e);var a=e[o],s=o/(n-1);return a+(r-s)/((o+1)/(n-1)-s)*(e[o+1]-a)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(Object(i.last)(e)!==this.max&&e.push(this.max),Object(i.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(tObject(i.last)(e))return 1;var n=0;return Object(i.each)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(n(379).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(681),i=n(1657);function o(t,e){void 0===e&&(e=!1);for(var n,o,s=Object(r.default)(t),u={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},l=[],c="",h=s.length,f=[],d=0;d7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function o(t,e,n){var o=!1,a=t.length;if(a<=2)return!1;for(var s=0;s0!=r(l[1]-n)>0&&r(e-(n-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(o=!o)}return o}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(686),i=n(1663);function o(t,e){void 0===e&&(e=!1);for(var n,o,s=Object(r.default)(t),u={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},l=[],c="",h=s.length,f=[],d=0;d7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function o(t,e,n){var o=!1,a=t.length;if(a<=2)return!1;for(var s=0;s0!=r(l[1]-n)>0&&r(e-(n-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(o=!o)}return o}},function(t,e,n){"use strict";n.r(e),n.d(e,"registerComponentController",(function(){return i})),n.d(e,"unregisterComponentController",(function(){return o})),n.d(e,"getComponentControllerNames",(function(){return a})),n.d(e,"getComponentController",(function(){return s}));var r={};function i(t,e){r[t]=e}function o(t){delete r[t]}function a(){return Object.keys(r)}function s(t){return r[t]}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(56);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function a(t,e){return(t[0]*e[1]1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var m=n*n*(g*g)+i*i*(p*p),y=m?Math.sqrt((n*n*(i*i)-m)/m):1;u===l&&(y*=-1),isNaN(y)&&(y=0);var b=i?y*n*g/i:0,_=n?y*-i*p/n:0,x=(c+f)/2+Math.cos(s)*b-Math.sin(s)*_,O=(h+d)/2+Math.sin(s)*b+Math.cos(s)*_,w=[(p-b)/n,(g-_)/i],S=[(-1*p-b)/n,(-1*g-_)/i],C=a([1,0],w),E=a(w,S);return o(w,S)<=-1&&(E=Math.PI),o(w,S)>=1&&(E=0),0===l&&E>0&&(E-=2*Math.PI),1===l&&E<0&&(E+=2*Math.PI),{cx:x,cy:O,rx:Object(r.isSamePoint)(t,[f,d])?0:n,ry:Object(r.isSamePoint)(t,[f,d])?0:i,startAngle:C,endAngle:C+E,xRotation:s,arcFlag:u,sweepFlag:l}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(694),i=n(1676);function o(t,e){void 0===e&&(e=!1);for(var n,o,s=Object(r.default)(t),u={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},l=[],c="",h=s.length,f=[],d=0;d7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function o(t,e,n){var o=!1,a=t.length;if(a<=2)return!1;for(var s=0;s0!=r(l[1]-n)>0&&r(e-(n-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(o=!o)}return o}},function(t,e,n){"use strict";function r(t){return t?t.match(/(([A-Z]{0,1}[a-z]*[^A-Z])|([A-Z]{1}))/g).map((function(t){return t.toLowerCase()})).join("-"):t}n.r(e),n.d(e,"kebabCase",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(1258);n.d(e,"cluster",(function(){return r.default}));var i=n(323);n.d(e,"hierarchy",(function(){return i.default}));var o=n(922);n.d(e,"pack",(function(){return o.default}));var a=n(716);n.d(e,"packSiblings",(function(){return a.default}));var s=n(717);n.d(e,"packEnclose",(function(){return s.default}));var u=n(923);n.d(e,"partition",(function(){return u.default}));var l=n(1259);n.d(e,"stratify",(function(){return l.default}));var c=n(1260);n.d(e,"tree",(function(){return c.default}));var h=n(924);n.d(e,"treemap",(function(){return h.default}));var f=n(1261);n.d(e,"treemapBinary",(function(){return f.default}));var d=n(309);n.d(e,"treemapDice",(function(){return d.default}));var p=n(374);n.d(e,"treemapSlice",(function(){return p.default}));var g=n(1262);n.d(e,"treemapSliceDice",(function(){return g.default}));var v=n(419);n.d(e,"treemapSquarify",(function(){return v.default}));var m=n(1263);n.d(e,"treemapResquarify",(function(){return m.default}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(720),i=n(1897);function o(t,e){void 0===e&&(e=!1);for(var n,o,s=Object(r.default)(t),u={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},l=[],c="",h=s.length,f=[],d=0;d7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function o(t,e,n){var o=!1,a=t.length;if(a<=2)return!1;for(var s=0;s0!=r(l[1]-n)>0&&r(e-(n-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(o=!o)}return o}},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return v})),n.d(e,"NullWorker",(function(){return m}));var r=n(217);n.d(e,"assert",(function(){return r.assert}));var i=n(355);n.d(e,"isWorker",(function(){return i.isWorker}));var o=n(724);n.d(e,"WorkerJob",(function(){return o.default}));var a=n(472);n.d(e,"WorkerThread",(function(){return a.default}));var s=n(578);n.d(e,"WorkerFarm",(function(){return s.default}));var u=n(725);n.d(e,"WorkerPool",(function(){return u.default}));var l=n(275);n.d(e,"WorkerBody",(function(){return l.default}));var c=n(901);n.d(e,"processOnWorker",(function(){return c.processOnWorker})),n.d(e,"canProcessOnWorker",(function(){return c.canProcessOnWorker}));var h=n(1314);n.d(e,"createWorker",(function(){return h.createWorker}));var f=n(579);n.d(e,"getWorkerURL",(function(){return f.getWorkerURL}));var d=n(473);n.d(e,"getTransferList",(function(){return d.getTransferList}));var p=n(902);n.d(e,"getLibraryUrl",(function(){return p.getLibraryUrl})),n.d(e,"loadLibrary",(function(){return p.loadLibrary}));var g=n(726);n.d(e,"AsyncQueue",(function(){return g.default}));var v="0.0.3",m={id:"null",name:"null",module:"web-worker-helper",options:{}}},function(t,e,n){"use strict";n.r(e);var r=n(725),i=n(472),o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},u=function(){function t(t){this.workerPools=new Map,this.props=o({},s),this.setProps(t),this.workerPools=new Map}return t.isSupported=function(){return i.default.isSupported()},t.getWorkerFarm=function(e){return void 0===e&&(e={}),t.workerFarm=t.workerFarm||new t({}),t.workerFarm.setProps(e),t.workerFarm},t.prototype.destroy=function(){var t,e;try{for(var n=a(this.workerPools.values()),r=n.next();!r.done;r=n.next()){r.value.destroy()}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},t.prototype.setProps=function(t){var e,n;this.props=o(o({},this.props),t);try{for(var r=a(this.workerPools.values()),i=r.next();!i.done;i=r.next()){i.value.setProps(this.getWorkerPoolProps())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.getWorkerPool=function(t){var e=t.name,n=t.source,i=t.url,o=this.workerPools.get(e);return o||((o=new r.default({name:e,source:n,url:i})).setProps(this.getWorkerPoolProps()),this.workerPools.set(e,o)),o},t.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},t}();e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"getWorkerName",(function(){return i})),n.d(e,"getWorkerURL",(function(){return o}));var r=n(217);function i(t){return""+t.name}function o(t,e){void 0===e&&(e={});var n=e[t.id]||{},i=t.name+".worker.js",o=n.workerUrl;return"test"===e._workerType&&(o=t.module+"/dist/"+i),o||(o="https://unpkg.com/"+t.module+"/dist/"+i),Object(r.assert)(o),o}},function(t,e,n){"use strict";var r;n.r(e),r=n(49).default.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},e.default=r},function(t,e,n){"use strict";n.r(e);var r=n(52),i=[0,0],o=[0,0],a=new r.default,s=new r.default,u=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new r.default;for(n=0;n<2;n++)this._axes[n]=new r.default;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,u=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,u),n[3].set(o,u),e)for(var l=0;l<4;l++)n[l].transform(e);r.default.sub(i[0],n[1],n[0]),r.default.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,a,s,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,a,s,i,-1)&&(n=!1,i)||i||r.default.copy(e,n?a:s),n},t.prototype._intersectCheckOneSide=function(t,e,n,a,s,u){for(var l=!0,c=0;c<2;c++){var h=this._axes[c];if(this._getProjMinMaxOnAxis(c,t._corners,i),this._getProjMinMaxOnAxis(c,e._corners,o),i[1]o[1]){if(l=!1,s)return l;var f=Math.abs(o[0]-i[1]),d=Math.abs(i[0]-o[1]);Math.min(f,d)>a.len()&&(f0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(r.isNumber)(t)?[t]:Object(r.isArray)(t)?t:null:null}function o(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&i(e.lineDash,e.lineWidth),o=e.lineDashOffset;if(n){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(n=Object(r.map)(n,(function(t){return t/a})),o/=a)}return[n,o]}},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n(219),o=n(585),a=n(121),s=n(0),u=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new o.default({})),Object(s.isArray)(r)&&(r=new o.default({categories:Object(s.map)(r,(function(t){return Object(s.isObject)(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return Object(r.__extends)(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(s.isString)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),a.contain(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),a.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(a.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(i.default);i.default.registerClass(u),e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(0),i=0,o=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++i}return t.createByAxisModel=function(e){var n=e.option,i=n.data,o=i&&Object(r.map)(i,a);return new t({categories:o,needCollect:!o,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(r.isString)(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(r.createHashMap)(this.categories))},t}();function a(t){return Object(r.isObject)(t)&&null!=t.value?t.value:t+""}e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"ECPolyline",(function(){return f})),n.d(e,"ECPolygon",(function(){return p}));var r=n(4),i=n(38),o=n(145),a=n(48),s=Math.min,u=Math.max;function l(t,e){return isNaN(t)||isNaN(e)}function c(t,e,n,r,i,o,a,c,h){for(var f,d,p,g,v,m,y=n,b=0;b=i||y<0)break;if(l(_,x)){if(h){y+=o;continue}break}if(y===n)t[o>0?"moveTo":"lineTo"](_,x),p=_,g=x;else{var O=_-f,w=x-d;if(O*O+w*w<.5){y+=o;continue}if(a>0){for(var S=y+o,C=e[2*S],E=e[2*S+1];C===_&&E===x&&b=r||l(C,E))v=_,m=x;else{A=C-f,j=E-d;var P=_-f,L=C-_,D=x-d,R=E-x,N=void 0,F=void 0;if("x"===c){var B=A>0?1:-1;v=_-B*(N=Math.abs(P))*a,m=x,I=_+B*(F=Math.abs(L))*a,k=x}else if("y"===c){var z=j>0?1:-1;v=_,m=x-z*(N=Math.abs(D))*a,I=_,k=x+z*(F=Math.abs(R))*a}else N=Math.sqrt(P*P+D*D),v=_-A*a*(1-(M=(F=Math.sqrt(L*L+R*R))/(F+N))),m=x-j*a*(1-M),k=x+j*a*M,I=s(I=_+A*a*M,u(C,_)),k=s(k,u(E,x)),I=u(I,s(C,_)),m=x-(j=(k=u(k,s(E,x)))-x)*N/F,v=s(v=_-(A=I-_)*N/F,u(f,_)),m=s(m,u(d,x)),I=_+(A=_-(v=u(v,s(f,_))))*F/N,k=x+(j=x-(m=u(m,s(d,x))))*F/N}t.bezierCurveTo(p,g,v,m,_,x),p=I,g=k}else t.lineTo(_,x)}f=_,d=x,y+=o}return b}var h=function(){this.smooth=0,this.smoothConstraint=!0},f=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return Object(r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new h},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0&&l(n[2*i-2],n[2*i-1]);i--);for(;r=0){var y=u?(f-r)*m+r:(h-n)*m+n;return u?[t,y]:[y,t]}n=h,r=f;break;case s.C:h=i[c++],f=i[c++],d=i[c++],p=i[c++],g=i[c++],v=i[c++];var b=u?Object(a.cubicRootAt)(n,h,d,g,t,l):Object(a.cubicRootAt)(r,f,p,v,t,l);if(b>0)for(var _=0;_=0){y=u?Object(a.cubicAt)(r,f,p,v,x):Object(a.cubicAt)(n,h,d,g,x);return u?[t,y]:[y,t]}}n=g,r=v}}},e}(i.default),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(h),p=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new d},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&l(n[2*o-2],n[2*o-1]);o--);for(;i=0)&&t(o,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var r=p[t.brushType](0,n,e);t.__rangeOffset={offset:v[t.brushType](r.values,t.range,[1,1]),xyMinMax:r.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(r.each)(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Object(r.each)(i.coordSyses,(function(r){var i=p[t.brushType](1,r,t.range,!0);n(t,i.values,r,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(r.each)(t,(function(t){var n,r,i,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var u=p[t.brushType](0,s.coordSys,t.coordRange),l=t.__rangeOffset;t.range=l?v[t.brushType](u.values,l.offset,(n=u.xyMinMax,r=l.xyMinMax,i=y(n),o=y(r),a=[i[0]/o[0],i[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):u.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(r.map)(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:o.makeRectPanelClipPath(r),isTargetByCursor:o.makeRectIsTargetByCursor(r,t,n.coordSysModel),getLinearBrushOtherExtent:o.makeLinearBrushOtherExtent(r)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&Object(r.indexOf)(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,r=c(e,t),i=0;it[1]&&t.reverse(),t}function c(t,e){return Object(a.parseFinder)(t,e,{includeMainTypes:s})}var h={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,o=t.gridModels,a=Object(r.createHashMap)(),s={},u={};(n||i||o)&&(Object(r.each)(n,(function(t){var e=t.axis.grid.model;a.set(e.id,e),s[e.id]=!0})),Object(r.each)(i,(function(t){var e=t.axis.grid.model;a.set(e.id,e),u[e.id]=!0})),Object(r.each)(o,(function(t){a.set(t.id,t),s[t.id]=!0,u[t.id]=!0})),a.each((function(t){var o=t.coordinateSystem,a=[];Object(r.each)(o.getCartesians(),(function(t,e){(Object(r.indexOf)(n,t.getAxis("x").model)>=0||Object(r.indexOf)(i,t.getAxis("y").model)>=0)&&a.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:d.grid,xAxisDeclared:s[t.id],yAxisDeclared:u[t.id]})})))},geo:function(t,e){Object(r.each)(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:d.geo})}))}},f=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],d={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(i.getTransform(t)),e}},p={lineX:Object(r.curry)(g,0),lineY:Object(r.curry)(g,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),a=[l([i[0],o[0]]),l([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:Object(r.map)(n,(function(n){var r=t?e.pointToData(n,i):e.dataToPoint(n,i);return o[0][0]=Math.min(o[0][0],r[0]),o[1][0]=Math.min(o[1][0],r[1]),o[0][1]=Math.max(o[0][1],r[0]),o[1][1]=Math.max(o[1][1],r[1]),r})),xyMinMax:o}}};function g(t,e,n,i){var o=n.getAxis(["x","y"][t]),a=l(Object(r.map)([0,1],(function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))}))),s=[];return s[t]=a,s[1-t]=[NaN,NaN],{values:a,xyMinMax:s}}var v={lineX:Object(r.curry)(m,0),lineY:Object(r.curry)(m,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(r.map)(t,(function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]}))}};function m(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function y(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n(0),o=n(57),a=n(10),s=n(42),u=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),i.isArray(e)&&i.each(e,(function(t,r){i.isString(t)&&(t={type:t}),e[r]=i.merge(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={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,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},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}},e}(s.default);e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"setViewInfoToCoordSysRecord",(function(){return l})),n.d(e,"disposeCoordSysRecordIfNeeded",(function(){return c})),n.d(e,"installDataZoomRoamProcessor",(function(){return p}));var r=n(315),i=n(137),o=n(10),a=n(0),s=n(166),u=Object(o.makeInner)();function l(t,e,n){u(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}function c(t,e){for(var n=u(t).coordSysRecordMap,r=n.keys(),i=0;in["type_"+e]&&(e=o),r=r&&i.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(s.controlType,s.opt),n.setPointerChecker(t.containsPoint),i.createOrUpdate(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else h(o,t)}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"pathToBezierCurves",(function(){return a})),n.d(e,"pathToPolygons",(function(){return u}));var r=n(48),i=n(145).default.CMD;function o(t,e){return Math.abs(t-e)<1e-5}function a(t){var e,n,r,a,s,u=t.data,l=t.len(),c=[],h=0,f=0,d=0,p=0;function g(t,n){e&&e.length>2&&c.push(e),e=[t,n]}function v(t,n,r,i){o(t,r)&&o(n,i)||e.push(t,n,r,i,r,i)}function m(t,n,r,i,o,a){var s=Math.abs(n-t),u=4*Math.tan(s/4)/3,l=nE:A2&&c.push(e),c}function s(t,e,n,i,a,u,l,c,h,f){if(o(t,n)&&o(e,i)&&o(a,l)&&o(u,c))h.push(l,c);else{var d=2/f,p=d*d,g=l-t,v=c-e,m=Math.sqrt(g*g+v*v);g/=m,v/=m;var y=n-t,b=i-e,_=a-l,x=u-c,O=y*y+b*b,w=_*_+x*x;if(O=0&&w-C*C=0)h.push(l,c);else{var E=[],T=[];Object(r.cubicSubdivide)(t,n,a,l,.5,E),Object(r.cubicSubdivide)(e,i,u,c,.5,T),s(E[0],T[0],E[1],T[1],E[2],T[2],E[3],T[3],h,f),s(E[4],T[4],E[5],T[5],E[6],T[6],E[7],T[7],h,f)}}}}function u(t,e){var n=a(t),r=[];e=e||1;for(var i=0;i200&&(c=a/10);for(var h=1/c,f=h/10,d=0;d<=c;d++){var p=d*h,g=[o.apply(null,t.concat([p])),o.apply(null,e.concat([p]))];(b=Object(r.distance)(l[0],l[1],g[0],g[1]))=0&&b1){var o=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,Object(r.__spreadArray)([e],Object(r.__read)(o),!1)).join("")}else i=t.mapping(e).join("");return i||n}},function(t,e,n){"use strict";n.r(e);var r=n(692);n.d(e,"parsePath",(function(){return r.default}));var i=n(1200);n.d(e,"catmullRom2Bezier",(function(){return i.default}));var o=n(1202);n.d(e,"fillPath",(function(){return o.default}));var a=n(1203);n.d(e,"fillPathByDiff",(function(){return a.default}));var s=n(1204);n.d(e,"formatPath",(function(){return s.default}));var u=n(1205);n.d(e,"pathIntersection",(function(){return u.default}));var l=n(1206);n.d(e,"parsePathArray",(function(){return l.default}));var c=n(695);n.d(e,"parsePathString",(function(){return c.default}));var h=n(571);n.d(e,"path2Curve",(function(){return h.default}));var f=n(694);n.d(e,"path2Absolute",(function(){return f.default}));var d=n(693);n.d(e,"reactPath",(function(){return d.default}));var p=n(469);n.d(e,"getArcParams",(function(){return p.default}));var g=n(1207);n.d(e,"path2Segments",(function(){return g.default}));var v=n(696);n.d(e,"getLineIntersect",(function(){return v.default}));var m=n(1208);n.d(e,"isPolygonsIntersect",(function(){return m.default}));var y=n(572);n.d(e,"isPointInPolygon",(function(){return y.default}))},function(t,e,n){"use strict";n.r(e),n.d(e,"getRegion",(function(){return a}));var r=n(2),i=n(1);function o(t){t.x=Object(i.clamp)(t.x,0,1),t.y=Object(i.clamp)(t.y,0,1)}function a(t,e,n,r){var a=null,s=null,u=r.invert(Object(i.head)(t)),l=r.invert(Object(i.last)(t));return n&&(o(u),o(l)),"x"===e?(a=r.convert({x:u.x,y:0}),s=r.convert({x:l.x,y:1})):(a=r.convert({x:0,y:u.y}),s=r.convert({x:1,y:l.y})),{start:a,end:s}}var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(r.__extends)(e,t),e.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return a(this.points,this.dim,this.inPlot,t)},e}(n(429).default);e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"getMaskPath",(function(){return o})),n.d(e,"getMaskAttrs",(function(){return a}));var r=n(2),i=n(24);function o(t){return Object(i.getSpline)(t,!0)}function a(t){return{path:o(t)}}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getMaskPath=function(){return o(this.points)},e.prototype.getMaskAttrs=function(){return a(this.points)},e}(n(430).default);e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"execPlotAdaptor",(function(){return F}));var r=n(1),i=n(3),o=n(702),a=n(600),s=n(703),u=n(601),l=n(704),c=n(285),h=n(558),f=n(794),d=n(705),p=n(603),g=n(706),v=n(797),m=n(707),y=n(322),b=n(708),_=n(604),x=n(709),O=n(505),w=n(710),S=n(606),C=n(711),E=n(401),T=n(712),M=n(800),A=n(713),j=n(286),I=n(714),k=n(607),P=n(715),L=n(608),D={line:y.adaptor,pie:_.adaptor,column:c.adaptor,bar:u.adaptor,area:a.adaptor,gauge:p.adaptor,"tiny-line":L.adaptor,"tiny-column":k.adaptor,"tiny-area":j.adaptor,"ring-progress":S.adaptor,progress:O.adaptor,scatter:E.adaptor,histogram:v.adaptor,funnel:f.adaptor,stock:M.adaptor},R={line:m.Line,pie:b.Pie,column:l.Column,bar:s.Bar,area:o.Area,gauge:d.Gauge,"tiny-line":P.TinyLine,"tiny-column":I.TinyColumn,"tiny-area":A.TinyArea,"ring-progress":w.RingProgress,progress:x.Progress,scatter:C.Scatter,histogram:g.Histogram,funnel:h.Funnel,stock:T.Stock},N={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function F(t,e,n){var o=R[t];o?(0,D[t])({chart:e,options:Object(i.deepAssign)({},o.getDefaultOptions(),Object(r.get)(N,t,{}),n)}):console.error("could not find ".concat(t," plot"))}},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return d}));var r=n(2),i=n(1),o=n(9),a=n(36),s=n(3),u=n(237),l=n(322);function c(t){var e=t.chart,n=t.options,o=n.data,l=n.areaStyle,c=n.areaShape,h=n.color,f=n.point,d=n.line,p=n.isPercent,g=n.xField,v=n.yField,m=n.tooltip,y=n.seriesField,b=n.startOnZero,_=null==f?void 0:f.state,x=Object(u.getDataWhetherPercentage)(o,v,g,v,p);e.data(x);var O=p?Object(r.__assign)({formatter:function(t){return{name:t[y]||t[g],value:(100*Number(t[v])).toFixed(2)+"%"}}},m):m,w=Object(s.deepAssign)({},t,{options:{area:{color:h,style:l,shape:c},point:f&&Object(r.__assign)({color:h},f),tooltip:O,label:void 0,args:{startOnZero:b}}}),S={chart:e,options:Object(s.deepAssign)({line:{size:2}},Object(i.omit)(n,["state"]),{line:d&&Object(r.__assign)({color:h},d),sizeField:y,state:null==d?void 0:d.state,tooltip:!1,label:void 0,args:{startOnZero:b}})},C=Object(s.deepAssign)({},w,{options:{tooltip:!1,state:_}});return Object(a.area)(w),Object(a.line)(S),Object(a.point)(C),t}function h(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,a=Object(s.findGeometry)(e,"area");if(i){var u=i.callback,l=Object(r.__rest)(i,["callback"]);a.label({fields:[o],callback:u,cfg:Object(r.__assign)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(s.transformLabel)(l))})}else a.label(!1);return t}function f(t){var e=t.chart,n=t.options,r=n.isStack,o=n.isPercent,a=n.seriesField;return(o||r)&&a&&Object(i.each)(e.geometries,(function(t){t.adjust("stack")})),t}function d(t){return Object(s.flow)(o.theme,Object(o.pattern)("areaStyle"),Object(o.transformations)("rect"),c,l.meta,f,l.axis,l.legend,o.tooltip,h,o.slider,Object(o.annotation)(),o.interaction,o.animation,o.limitInPlot)(t)}n.d(e,"meta",(function(){return l.meta}))},function(t,e,n){"use strict";n.r(e),n.d(e,"geometry",(function(){return h})),n.d(e,"adaptor",(function(){return f}));var r=n(2),i=n(9),o=n(3),a=n(285);function s(t){var e=t.options,n=e.xField,i=e.yField,o=e.xAxis,a=e.yAxis,s={left:"bottom",right:"top",top:"left",bottom:"right"},u=!1!==a&&Object(r.__assign)({position:s[(null==a?void 0:a.position)||"left"]},a),l=!1!==o&&Object(r.__assign)({position:s[(null==o?void 0:o.position)||"bottom"]},o);return Object(r.__assign)(Object(r.__assign)({},t),{options:Object(r.__assign)(Object(r.__assign)({},e),{xField:i,yField:n,xAxis:u,yAxis:l})})}function u(t){var e=t.options.label;return e&&!e.position&&(e.position="left",e.layout||(e.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),Object(o.deepAssign)({},t,{options:{label:e}})}function l(t){var e=t.options,n=e.seriesField,i=e.isStack,a=e.legend;return n?!1!==a&&(a=Object(r.__assign)({position:i?"top-left":"right-top"},a||{})):a=!1,Object(o.deepAssign)({},t,{options:{legend:a}})}function c(t){var e=t.options,n=[{type:"transpose"},{type:"reflectY"}].concat(e.coordinate||[]);return Object(o.deepAssign)({},t,{options:{coordinate:n}})}function h(t){var e=t.chart,n=t.options,i=n.barStyle,o=n.barWidthRatio,s=n.minBarWidth,u=n.maxBarWidth,l=n.barBackground;return Object(a.adaptor)({chart:e,options:Object(r.__assign)(Object(r.__assign)({},n),{columnStyle:i,columnWidthRatio:o,minColumnWidth:s,maxColumnWidth:u,columnBackground:l})},!0)}function f(t){return Object(o.flow)(s,u,l,i.tooltip,c,h)(t)}n.d(e,"meta",(function(){return a.meta}))},function(t,e,n){"use strict";n.r(e),n.d(e,"FUNNEL_LEGEND_FILTER",(function(){return o})),n.d(e,"interactionStart",(function(){return a}));var r=n(17),i=n(1781),o="funnel-afterrender",a={trigger:"afterrender",action:"".concat("funnel-conversion-tag",":change")};Object(r.registerAction)("funnel-conversion-tag",i.ConversionTagAction),Object(r.registerInteraction)(o,{start:[a]})},function(t,e,n){"use strict";n.r(e),n.d(e,"statistic",(function(){return d})),n.d(e,"adaptor",(function(){return v}));var r=n(2),i=n(1),o=n(9),a=n(36),s=n(142),u=n(3),l=n(153),c=n(526);function h(t){var e=t.chart,n=t.options,r=n.percent,o=n.range,h=n.radius,f=n.innerRadius,d=n.startAngle,p=n.endAngle,g=n.axis,v=n.indicator,m=n.gaugeStyle,y=n.type,b=n.meter,_=o.color,x=o.width;if(v){var O=Object(c.getIndicatorData)(r),w=e.createView({id:l.INDICATEOR_VIEW_ID});w.data(O),w.point().position("".concat(l.PERCENT,"*1")).shape(v.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:v}),w.coordinate("polar",{startAngle:d,endAngle:p,radius:f*h}),w.axis(l.PERCENT,g),w.scale(l.PERCENT,Object(u.pick)(g,s.AXIS_META_CONFIG_KEYS))}var S=Object(c.getRangeData)(r,n.range),C=e.createView({id:l.RANGE_VIEW_ID});C.data(S);var E=Object(i.isString)(_)?[_,l.DEFAULT_COLOR]:_;return Object(a.interval)({chart:C,options:{xField:"1",yField:l.RANGE_VALUE,seriesField:l.RANGE_TYPE,rawFields:[l.PERCENT],isStack:!0,interval:{color:E,style:m,shape:"meter"===y?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:x,maxColumnWidth:x}}).ext.geometry.customInfo({meter:b}),C.coordinate("polar",{innerRadius:f,radius:h,startAngle:d,endAngle:p}).transpose(),t}function f(t){var e;return Object(u.flow)(Object(o.scale)(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}})[l.PERCENT]={},e)))(t)}function d(t,e){var n=t.chart,i=t.options,o=i.statistic,a=i.percent;if(n.getController("annotation").clear(!0),o){var s=o.content,l=void 0;s&&(l=Object(u.deepAssign)({},{content:"".concat((100*a).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},s)),Object(u.renderGaugeStatistic)(n,{statistic:Object(r.__assign)(Object(r.__assign)({},o),{content:l})},{percent:a})}return e&&n.render(!0),t}function p(t){var e=t.chart,n=t.options.tooltip;return n?e.tooltip(Object(u.deepAssign)({showTitle:!1,showMarkers:!1,containerTpl:'
',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(t,e){var n=Object(i.get)(e,[0,"data",l.PERCENT],0);return"".concat((100*n).toFixed(2),"%")}},n)):e.tooltip(!1),t}function g(t){return t.chart.legend(!1),t}function v(t){return Object(u.flow)(o.theme,o.animation,h,f,p,d,o.interaction,Object(o.annotation)(),g)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformStatisticOptions",(function(){return y})),n.d(e,"pieAnnotation",(function(){return b})),n.d(e,"interaction",(function(){return x})),n.d(e,"adaptor",(function(){return O}));var r=n(2),i=n(1),o=n(9),a=n(36),s=n(107),u=n(254),l=n(290),c=n(3),h=n(798),f=n(921),d=n(400);function p(t){var e=t.chart,n=t.options,i=n.data,o=n.angleField,s=n.colorField,u=n.color,l=n.pieStyle,h=n.shape,f=Object(c.processIllegalData)(i,o);if(Object(d.isAllZero)(f,o)){f=f.map((function(t){var e;return Object(r.__assign)(Object(r.__assign)({},t),((e={}).$$percentage$$=1/f.length,e))})),e.data(f);var p=Object(c.deepAssign)({},t,{options:{xField:"1",yField:"$$percentage$$",seriesField:s,isStack:!0,interval:{color:u,shape:h,style:l},args:{zIndexReversed:!0,sortZIndex:!0}}});Object(a.interval)(p)}else{e.data(f);p=Object(c.deepAssign)({},t,{options:{xField:"1",yField:o,seriesField:s,isStack:!0,interval:{color:u,shape:h,style:l},args:{zIndexReversed:!0,sortZIndex:!0}}});Object(a.interval)(p)}return t}function g(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.colorField,a=Object(c.deepAssign)({},i);return n.scale(a,((e={})[o]={type:"cat"},e)),t}function v(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function m(t){var e=t.chart,n=t.options,o=n.label,a=n.colorField,s=n.angleField,u=e.geometries[0];if(o){var l=o.callback,h=Object(r.__rest)(o,["callback"]),f=Object(c.transformLabel)(h);if(f.content){var p=f.content;f.content=function(t,n,o){var u=t[a],l=t[s],h=e.getScaleByField(s),f=null==h?void 0:h.scale(l);return Object(i.isFunction)(p)?p(Object(r.__assign)(Object(r.__assign)({},t),{percent:f}),n,o):Object(i.isString)(p)?Object(c.template)(p,{value:l,name:u,percentage:Object(i.isNumber)(f)&&!Object(i.isNil)(l)?"".concat((100*f).toFixed(2),"%"):null}):p}}var g=f.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[f.type]:"pie-outer",v=f.layout?Object(i.isArray)(f.layout)?f.layout:[f.layout]:[];f.layout=(g?[{type:g}]:[]).concat(v),u.label({fields:a?[s,a]:[s],callback:l,cfg:Object(r.__assign)(Object(r.__assign)({},f),{offset:Object(d.adaptOffset)(f.type,f.offset),type:"pie"})})}else u.label(!1);return t}function y(t){var e=t.innerRadius,n=t.statistic,r=t.angleField,o=t.colorField,a=t.meta,s=t.locale,u=Object(l.getLocale)(s);if(e&&n){var f=Object(c.deepAssign)({},h.DEFAULT_OPTIONS.statistic,n),p=f.title,g=f.content;return!1!==p&&(p=Object(c.deepAssign)({},{formatter:function(t){var e=t?t[o]:Object(i.isNil)(p.content)?u.get(["statistic","total"]):p.content;return(Object(i.get)(a,[o,"formatter"])||function(t){return t})(e)}},p)),!1!==g&&(g=Object(c.deepAssign)({},{formatter:function(t,e){var n=t?t[r]:Object(d.getTotalValue)(e,r),o=Object(i.get)(a,[r,"formatter"])||function(t){return t};return t||Object(i.isNil)(g.content)?o(n):g.content}},g)),Object(c.deepAssign)({},{statistic:{title:p,content:g}},t)}return t}function b(t){var e=t.chart,n=y(t.options),r=n.innerRadius,i=n.statistic;return e.getController("annotation").clear(!0),Object(c.flow)(Object(o.annotation)())(t),r&&i&&Object(c.renderStatistic)(e,{statistic:i,plotType:"pie"}),t}function _(t){var e=t.chart,n=t.options,r=n.tooltip,o=n.colorField,a=n.angleField,u=n.data;if(!1===r)e.tooltip(r);else if(e.tooltip(Object(c.deepAssign)({},r,{shared:!1})),Object(d.isAllZero)(u,a)){var l=Object(i.get)(r,"fields"),h=Object(i.get)(r,"formatter");Object(i.isEmpty)(Object(i.get)(r,"fields"))&&(l=[o,a],h=h||function(t){return{name:t[o],value:Object(i.toString)(t[a])}}),e.geometries[0].tooltip(l.join("*"),Object(s.getMappingFunction)(l,h))}return t}function x(t){var e=t.chart,n=y(t.options),o=n.interactions,a=n.statistic,s=n.annotations;return Object(i.each)(o,(function(t){var n,o;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var u=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(u=[{trigger:"element:mouseenter",action:"".concat(f.PIE_STATISTIC,":change"),arg:{statistic:a,annotations:s}}]),Object(i.each)(null===(o=t.cfg)||void 0===o?void 0:o.start,(function(t){u.push(Object(r.__assign)(Object(r.__assign)({},t),{arg:{statistic:a,annotations:s}}))})),e.interaction(t.type,Object(c.deepAssign)({},t.cfg,{start:u}))}else e.interaction(t.type,t.cfg||{})})),t}function O(t){return Object(c.flow)(Object(u.pattern)("pieStyle"),p,g,o.theme,v,o.legend,_,m,o.state,b,x,o.animation)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"transform",(function(){return a}));var r=n(2),i=n(17),o=[1,0,0,0,1,0,0,0,1];function a(t,e){var n=e?Object(r.__spreadArray)([],e,!0):Object(r.__spreadArray)([],o,!0);return i.Util.transform(n,t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"statistic",(function(){return l})),n.d(e,"adaptor",(function(){return c}));var r=n(2),i=n(1),o=n(9),a=n(3),s=n(505);function u(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius;return e.coordinate("theta",{innerRadius:r,radius:i}),t}function l(t,e){var n=t.chart,o=t.options,s=o.innerRadius,u=o.statistic,l=o.percent,c=o.meta;if(n.getController("annotation").clear(!0),s&&u){var h=Object(i.get)(c,["percent","formatter"])||function(t){return"".concat((100*t).toFixed(2),"%")},f=u.content;f&&(f=Object(a.deepAssign)({},f,{content:Object(i.isNil)(f.content)?h(l):f.content})),Object(a.renderStatistic)(n,{statistic:Object(r.__assign)(Object(r.__assign)({},u),{content:f}),plotType:"ring-progress"},{percent:l})}return e&&n.render(!0),t}function c(t){return Object(a.flow)(s.geometry,Object(o.scale)({}),u,l,o.animation,o.theme,Object(o.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return c}));var r=n(9),i=n(36),o=n(3),a=n(286);n.d(e,"meta",(function(){return a.meta}));var s=n(178),u=n(238);function l(t){var e=t.chart,n=t.options,r=n.data,a=n.color,l=n.columnStyle,c=n.columnWidthRatio,h=Object(u.getTinyData)(r);e.data(h);var f=Object(o.deepAssign)({},t,{options:{xField:s.X_FIELD,yField:s.Y_FIELD,widthRatio:c,interval:{style:l,color:a}}});return Object(i.interval)(f),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function c(t){return Object(o.flow)(r.theme,Object(r.pattern)("columnStyle"),l,a.meta,r.tooltip,r.animation,Object(r.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return c}));var r=n(9),i=n(36),o=n(3),a=n(286);n.d(e,"meta",(function(){return a.meta}));var s=n(178),u=n(238);function l(t){var e=t.chart,n=t.options,r=n.data,a=n.color,l=n.lineStyle,c=n.point,h=null==c?void 0:c.state,f=Object(u.getTinyData)(r);e.data(f);var d=Object(o.deepAssign)({},t,{options:{xField:s.X_FIELD,yField:s.Y_FIELD,line:{color:a,style:l},point:c}}),p=Object(o.deepAssign)({},d,{options:{tooltip:!1,state:h}});return Object(i.line)(d),Object(i.point)(p),e.axis(!1),e.legend(!1),t}function c(t){return Object(o.flow)(l,a.meta,r.theme,r.tooltip,r.animation,Object(r.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),function(t){var r=n(173),i=n(1846),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.default.Buffer:void 0,u=(s?s.isBuffer:void 0)||i.default;e.default=u}.call(this,n(898)(t))},function(t,e,n){"use strict";n.r(e),n.d(e,"WORD_CLOUD_COLOR_FIELD",(function(){return o})),n.d(e,"DEFAULT_OPTIONS",(function(){return a}));var r=n(29),i=n(3),o="color",a=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",o],formatter:function(t){return{name:t.text,value:t.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}})},function(t,e,n){"use strict";n.r(e),n.d(e,"transform",(function(){return u})),n.d(e,"getSize",(function(){return l})),n.d(e,"processImageMask",(function(){return c})),n.d(e,"getFontSizeMapping",(function(){return h})),n.d(e,"getSingleKeyValues",(function(){return f}));var r=n(2),i=n(1),o=n(3),a=n(216),s=n(535);function u(t){var e=t.options,n=t.chart,o=n,a=o.width,u=o.height,c=o.padding,g=o.appendPadding,v=o.ele,m=e.data,y=e.imageMask,b=e.wordField,_=e.weightField,x=e.colorField,O=e.wordStyle,w=e.timeInterval,S=e.random,C=e.spiral,E=e.autoFit,T=void 0===E||E,M=e.placementStrategy;if(!m||!m.length)return[];var A,j=O.fontFamily,I=O.fontWeight,k=O.padding,P=O.fontSize,L=f(m,_),D=[(A=L,Math.min.apply(Math,A)),p(L)],R=m.map((function(t){return{text:t[b],value:t[_],color:t[x],datum:t}})),N={imageMask:y,font:j,fontSize:h(P,D),fontWeight:I,size:l({width:a,height:u,padding:c,appendPadding:g,autoFit:T,container:v}),padding:k,timeInterval:w,random:S,spiral:C,rotate:d(e)};if(Object(i.isFunction)(M)){var F=R.map((function(t,e,i){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},t),{hasText:!!t.text,font:Object(s.functor)(N.font)(t,e,i),weight:Object(s.functor)(N.fontWeight)(t,e,i),rotate:Object(s.functor)(N.rotate)(t,e,i),size:Object(s.functor)(N.fontSize)(t,e,i),style:"normal"}),M.call(n,t,e,i))}));return F.push({text:"",value:0,x:0,y:0,opacity:0}),F.push({text:"",value:0,x:N.size[0],y:N.size[1],opacity:0}),F}return Object(s.wordCloud)(R,N)}function l(t){var e=t.width,n=t.height,r=t.container,i=t.autoFit,s=t.padding,u=t.appendPadding;if(i){var l=Object(o.getContainerSize)(r);e=l.width,n=l.height}e=e||400,n=n||400;var c=function(t){var e=Object(a.normalPadding)(t.padding),n=Object(a.normalPadding)(t.appendPadding),r=e[0]+n[0],i=e[1]+n[1],o=e[2]+n[2],s=e[3]+n[3];return[r,i,o,s]}({padding:s,appendPadding:u}),h=c[0],f=c[1],d=c[2];return[e-(c[3]+f),n-(h+d)]}function c(t){return new Promise((function(e,n){if(t instanceof HTMLImageElement)e(t);else{if(Object(i.isString)(t)){var r=new Image;return r.crossOrigin="anonymous",r.src=t,r.onload=function(){e(r)},void(r.onerror=function(){Object(o.log)(o.LEVEL.ERROR,!1,"image %s load failed !!!",t),n()})}Object(o.log)(o.LEVEL.WARN,void 0===t,"The type of imageMask option must be String or HTMLImageElement."),n()}}))}function h(t,e){if(Object(i.isFunction)(t))return t;if(Object(i.isArray)(t)){var n=t[0],r=t[1];if(!e)return function(){return(r+n)/2};var o=e[0],a=e[1];return a===o?function(){return(r+n)/2}:function(t){var e=t.value;return(r-n)/(a-o)*(e-o)+n}}return function(){return t}}function f(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"==typeof t&&!isNaN(t)}))}function d(t){var e=function(t){var e=t.wordStyle.rotationSteps;e<1&&(Object(o.log)(o.LEVEL.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1);return{rotation:t.wordStyle.rotation,rotationSteps:e}}(t),n=e.rotation,r=e.rotationSteps;if(!Object(i.isArray)(n))return n;var a=n[0],s=n[1],u=1===r?0:(s-a)/(r-1);return function(){return s===a?s:Math.floor(Math.random()*r)*u}}function p(t){return Math.max.apply(Math,t)}},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n>(-2*s&6)):0)o=r.indexOf(o);return a}function a(t){for(var e,n,i,o,a="",s=0,u=(t=String(t)).length%3;s255||(i=t.charCodeAt(s++))>255||(o=t.charCodeAt(s++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");a+=r.charAt((e=n<<16|i<<8|o)>>18&63)+r.charAt(e>>12&63)+r.charAt(e>>6&63)+r.charAt(63&e)}return u?a.slice(0,u-3)+"===".substring(u):a}i.prototype=new Error,i.prototype.name="InvalidCharacterError"},function(t,e,n){"use strict";n.r(e),n.d(e,"isMiniAli",(function(){return i}));var r=n(225),i="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM;e.default=i?my.getSystemInfoSync().pixelRatio:r.globalWindow.devicePixelRatio},function(t,e,n){"use strict";function r(t,e){for(var n={},r=0;r=0}function b(t,e,n){var r="__mOriginal_"+e,i=t[r]||t[e];t[r]||(t[r]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):i.apply(this,e),a&&a.apply(this,e),t}}function _(t,e){var n="__mOriginal_"+e;t[n]&&(t[e]=t[n],t[n]=null)}function x(t,e){for(var n=0;n0)for(var S=r/n,C=-r/2;C<=r/2;C+=S){var E=Math.sin(C),T=Math.cos(C),M=0;for(O=0;O0;u/=2){var l=0,c=0;(t&u)>0&&(l=1),(e&u)>0&&(c=1),s+=u*u*(3*l^c),0===c&&(1===l&&(t=u-1-t,e=u-1-e),a=t,t=e,e=a)}return s}function C(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,a=Object(o.map)(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),u=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(u,n),r=Math.max(s,r),i=Math.max(u,i),[s,u]}));return Object(o.map)(a,(function(o,a){return{cp:o,z:S(o[0],o[1],e,n,r,i),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function E(t){return Object(l.split)(t.path,t.count)}function T(t,e,n){var r=[];!function t(e){for(var n=0;n0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var a=!1,f=e/2,d=0;dw?O:w,A=h(null,[["t",-_,-x],["r",-E],["s",1/(O>w?1:O/w),1/(O>w?w/O:1)]]);s.transformMat3(T,T,A),a=Object(c.default)(0,0,M,S,C,e,T[0],T[1])}if(a)break}}return a}},i.PathUtil)},function(t,e,n){"use strict";n.r(e),n.d(e,"getNormalizedValue",(function(){return i}));var r=n(852);function i(t,e){if(!e)return null;var n;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?Object(r.getMedian)(e.values.map((function(t,e){return e}))):Object(r.getMedian)(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:Object(r.getMean)(e.values);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t}return e.scale(n)}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformData",(function(){return u})),n.d(e,"resolvePaddingForCircle",(function(){return l}));var r=n(2),i=n(382),o=n(3),a=n(1797),s=n(216);function u(t){var e=t.data,n=t.hierarchyConfig,s=t.rawFields,u=void 0===s?[]:s,l=t.enableDrillDown,c=Object(a.pack)(e,Object(r.__assign)(Object(r.__assign)({},n),{field:"value",as:["x","y","r"]})),h=[];return c.forEach((function(t){for(var e,a=t.data.name,s=Object(r.__assign)({},t);s.depth>1;)a="".concat(null===(e=s.parent.data)||void 0===e?void 0:e.name," / ").concat(a),s=s.parent;if(l&&t.depth>2)return null;var c=Object(o.deepAssign)({},t.data,Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},Object(o.pick)(t.data,u)),{path:a}),t));c.ext=n,c[i.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:n,rawFields:u,enableDrillDown:l},h.push(c)})),h}function l(t,e,n){var r=Object(s.resolveAllPadding)([t,e]),i=r[0],o=r[1],a=r[2],u=r[3],l=n.width-(u+o),c=n.height-(i+a),h=Math.min(l,c),f=(l-h)/2,d=(c-h)/2;return{finalPadding:[i+d,o+f,a+d,u+f],finalSize:h<0?0:h}}},function(t,e,n){"use strict";function r(t,e,n,r){return[t,e,n,r,n,r]}n.r(e),n.d(e,"lineToCubic",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(1366);n.d(e,"TouchPanHandler",(function(){return r.default}));var i=n(1367);n.d(e,"TouchPitchHandler",(function(){return i.default}));var o=n(1368);n.d(e,"TouchRotateHandler",(function(){return o.default}));var a=n(1369);n.d(e,"TouchZoomHandler",(function(){return a.default}))},,function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(209),o=(r=i)&&r.__esModule?r:{default:r},a=n(1006);var s=o.default.prototype.$isServer?function(){}:n(2036),u=function(t){return t.stopPropagation()};e.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(t){this.showPopper=t,this.$emit("input",t)}},showPopper:function(t){this.disabled||(t?this.updatePopper():this.destroyPopper(),this.$emit("input",t))}},methods:{createPopper:function(){var t=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var e=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,r=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!r&&this.$slots.reference&&this.$slots.reference[0]&&(r=this.referenceElm=this.$slots.reference[0].elm),n&&r&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),e.placement=this.currentPlacement,e.offset=this.offset,e.arrowOffset=this.arrowOffset,this.popperJS=new s(r,n,e),this.popperJS.onCreate((function(e){t.$emit("created",t),t.resetTransformOrigin(),t.$nextTick(t.updatePopper)})),"function"==typeof e.onUpdate&&this.popperJS.onUpdate(e.onUpdate),this.popperJS._popper.style.zIndex=a.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",u))}},updatePopper:function(){var t=this.popperJS;t?(t.update(),t._popper&&(t._popper.style.zIndex=a.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(t){!this.popperJS||this.showPopper&&!t||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var t=this.popperJS._popper.getAttribute("x-placement").split("-")[0],e={top:"bottom",bottom:"top",left:"right",right:"left"}[t];this.popperJS._popper.style.transformOrigin="string"==typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(t)>-1?"center "+e:e+" center"}},appendArrow:function(t){var e=void 0;if(!this.appended){for(var n in this.appended=!0,t.attributes)if(/^_v-/.test(t.attributes[n].name)){e=t.attributes[n].name;break}var r=document.createElement("div");e&&r.setAttribute(e,""),r.setAttribute("x-arrow",""),r.className="popper__arrow",t.appendChild(r)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",u),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){for(var e=1,n=arguments.length;en&&(e=Math.floor(e/137)),e=131*e+t.charCodeAt(r);return e}function i(t){for(var e=5381,n=(t=t.toString()).length;n;)e=33*e^t.charCodeAt(--n);return e>>>0}function o(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}n.r(e),n.d(e,"BKDRHash",(function(){return r})),n.d(e,"djb2hash",(function(){return i})),n.d(e,"guid",(function(){return o}))},function(t,e,n){var r=n(2181),i=n(2182),o=n(2183),a=n(2184),s=n(2185);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},function(t,e,n){"use strict";function r(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(676),i=/[a-z]/;function o(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function a(t){var e=Object(r.default)(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,a=0;a=0){n=!0;break}}if(!n)return e;var u=[],l=0,c=0,h=0,f=0,d=0,p=e[0];"M"!==p[0]&&"m"!==p[0]||(h=l=+p[1],f=c=+p[2],d++,u[0]=["M",l,c]);a=d;for(var g=e.length;a2&&(n.push([r].concat(o.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===o.length&&n.push([r,o[0]]),"r"===s)n.push([r].concat(o));else for(;o.length>=e[s]&&(n.push([r].concat(o.splice(0,e[s]))),e[s]););return""})),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=function(t,e,n){return t>=e&&t<=n};function i(t,e,n,i){var o=n.x-t.x,a=n.y-t.y,s=e.x-t.x,u=e.y-t.y,l=i.x-n.x,c=i.y-n.y,h=s*c-u*l,f=null;if(h*h>.001*(s*s+u*u)*(l*l+c*c)){var d=(o*c-a*l)/h,p=(o*u-a*s)/h;r(d,0,1)&&r(p,0,1)&&(f={x:t.x+d*s,y:t.y+d*u})}return f}},function(t,e,n){"use strict";n.r(e),n.d(e,"propagationDelegate",(function(){return i}));var r=n(82);function i(t,e,n){var i=new r.Event(e,n);i.target=t,i.propagationPath.push(t),t.emitDelegation(e,i);for(var o=t.getParent();o;)o.emitDelegation(e,i),i.propagationPath.push(o),o=o.getParent()}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;e.default=function(t){var e=t||[];return Object(r.isArray)(e)?e:Object(r.isString)(e)?(e=e.match(i),Object(r.each)(e,(function(t,n){if((t=t.match(o))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},function(t,e,n){"use strict";function r(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(682),i=/[a-z]/;function o(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function a(t){var e=Object(r.default)(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,a=0;a=0){n=!0;break}}if(!n)return e;var u=[],l=0,c=0,h=0,f=0,d=0,p=e[0];"M"!==p[0]&&"m"!==p[0]||(h=l=+p[1],f=c=+p[2],d++,u[0]=["M",l,c]);a=d;for(var g=e.length;a2&&(n.push([r].concat(o.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===o.length&&n.push([r,o[0]]),"r"===s)n.push([r].concat(o));else for(;o.length>=e[s]&&(n.push([r].concat(o.splice(0,e[s]))),e[s]););return""})),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=function(t,e,n){return t>=e&&t<=n};function i(t,e,n,i){var o=n.x-t.x,a=n.y-t.y,s=e.x-t.x,u=e.y-t.y,l=i.x-n.x,c=i.y-n.y,h=s*c-u*l,f=null;if(h*h>.001*(s*s+u*u)*(l*l+c*c)){var d=(o*c-a*l)/h,p=(o*u-a*s)/h;r(d,0,1)&&r(p,0,1)&&(f={x:t.x+d*s,y:t.y+d*u})}return f}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;e.default=function(t){var e=t||[];return Object(r.isArray)(e)?e:Object(r.isString)(e)?(e=e.match(i),Object(r.each)(e,(function(t,n){if((t=t.match(o))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},function(t,e,n){"use strict";function r(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(687),i=/[a-z]/;function o(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function a(t){var e=Object(r.default)(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,a=0;a=0){n=!0;break}}if(!n)return e;var u=[],l=0,c=0,h=0,f=0,d=0,p=e[0];"M"!==p[0]&&"m"!==p[0]||(h=l=+p[1],f=c=+p[2],d++,u[0]=["M",l,c]);a=d;for(var g=e.length;a2&&(n.push([r].concat(o.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===o.length&&n.push([r,o[0]]),"r"===s)n.push([r].concat(o));else for(;o.length>=e[s]&&(n.push([r].concat(o.splice(0,e[s]))),e[s]););return""})),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=function(t,e,n){return t>=e&&t<=n};function i(t,e,n,i){var o=n.x-t.x,a=n.y-t.y,s=e.x-t.x,u=e.y-t.y,l=i.x-n.x,c=i.y-n.y,h=s*c-u*l,f=null;if(h*h>.001*(s*s+u*u)*(l*l+c*c)){var d=(o*c-a*l)/h,p=(o*u-a*s)/h;r(d,0,1)&&r(p,0,1)&&(f={x:t.x+d*s,y:t.y+d*u})}return f}},function(t,e,n){"use strict";n.r(e);var r=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}();e.default=r},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(91),a=n(92),s=n(73),u=n(381),l=n(124),c=n(212),h=n(268);var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var o=this.getTitle(n),a={x:n[0].x,y:n[0].y};e.emit("tooltip:show",h.default.fromData(e,"tooltip:show",Object(r.__assign)({items:n,title:o},t)));var s=this.getTooltipCfg(),u=s.follow,l=s.showMarkers,c=s.showCrosshairs,f=s.showContent,d=s.marker,p=this.items,g=this.title;if(Object(i.isEqual)(g,o)&&Object(i.isEqual)(p,n)?(this.tooltip&&u&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",h.default.fromData(e,"tooltip:change",Object(r.__assign)({items:n,title:o},t))),(Object(i.isFunction)(f)?f(n):f)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(i.mix)({},s,{items:this.getItemsAfterProcess(n),title:o},u?t:{})),this.tooltip.show()),l&&this.renderTooltipMarkers(n,d)),this.items=n,this.title=o,c){var v=Object(i.get)(s,["crosshairs","follow"],!1);this.renderCrosshairs(v?t:a,s)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",h.default.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this.tooltip,e=this.xCrosshair,n=this.yCrosshair,r=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),n&&n.clear(),r&&r.clear(),(null==t?void 0:t.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this.tooltip,n=this.tooltipMarkersGroup,r=this.xCrosshair,i=this.yCrosshair;t?(e&&e.show(),n&&n.show(),r&&r.show(),i&&i.show()):(e&&e.hide(),n&&n.hide(),r&&r.hide(),i&&i.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e,n,o,a,s,u,l=this.findItemsFromView(this.view,t);if(l.length){l=Object(i.flatten)(l);try{for(var c=Object(r.__values)(l),h=c.next();!h.done;h=c.next()){var f=h.value;try{for(var d=(o=void 0,Object(r.__values)(f)),p=d.next();!p.done;p=d.next()){var g=p.value,v=g.mappingData,m=v.x,y=v.y;g.x=Object(i.isArray)(m)?m[m.length-1]:m,g.y=Object(i.isArray)(y)?y[y.length-1]:y}}catch(t){o={error:t}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}if(!1===this.getTooltipCfg().shared&&l.length>1){var b=l[0],_=Math.abs(t.y-b[0].y);try{for(var x=Object(r.__values)(l),O=x.next();!O.done;O=x.next()){var w=O.value,S=Math.abs(t.y-w[0].y);S<=_&&(b=w,_=S)}}catch(t){s={error:t}}finally{try{O&&!O.done&&(u=x.return)&&u.call(x)}finally{if(s)throw s.error}}l=[b]}return function(t){for(var e=[],n=function(n){var r=t[n];Object(i.find)(e,(function(t){return t.color===r.color&&t.name===r.name&&t.value===r.value&&t.title===r.title}))||e.push(r)},r=0;r'+r+"":r}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),i=new o.HtmlTooltip(Object(r.__assign)(Object(r.__assign)({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){var n,o,s=this.getTooltipMarkersGroup(),u=this.view.getRootView(),l=u.limitInPlot;try{for(var c=Object(r.__values)(t),h=c.next();!h.done;h=c.next()){var f=h.value,d=f.x,p=f.y;if(l||(null==s?void 0:s.getClip())){var g=Object(a.getCoordinateClipCfg)(u.getCoordinate()),v=g.type,m=g.attrs;null==s||s.setClip({type:v,attrs:m})}else null==s||s.setClip(void 0);var y=this.view.getTheme(),b=Object(i.get)(y,["components","tooltip","marker"],{}),_=Object(r.__assign)(Object(r.__assign)({fill:f.color,symbol:"circle",shadowColor:f.color},Object(i.isFunction)(e)?Object(r.__assign)(Object(r.__assign)({},b),e(f)):e),{x:d,y:p});s.addShape("marker",{attrs:_})}}catch(t){n={error:t}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=Object(i.get)(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n,r,u=this.getViewWithGeometry(this.view).getCoordinate();if(u.isRect)u.isTransposed?(n={x:u.start.x,y:t.y},r={x:u.end.x,y:t.y}):(n={x:t.x,y:u.end.y},r={x:t.x,y:u.start.y});else{var l=Object(a.getAngleByPoint)(u,t),c=u.getCenter(),h=u.getRadius();r=Object(s.polarToCartesian)(c.x,c.y,h,l),n=c}var f=Object(i.deepMix)({start:n,end:r,container:this.getTooltipCrosshairsGroup()},Object(i.get)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete f.type;var d=this.xCrosshair;d?d.update(f):(d=new o.Crosshair.Line(f)).init(),d.render(),d.show(),this.xCrosshair=d},e.prototype.renderYCrosshairs=function(t,e){var n,r,s=this.getViewWithGeometry(this.view).getCoordinate();if(s.isRect){var u=void 0,l=void 0;s.isTransposed?(u={x:t.x,y:s.end.y},l={x:t.x,y:s.start.y}):(u={x:s.start.x,y:t.y},l={x:s.end.x,y:t.y}),n={start:u,end:l},r="Line"}else n={center:s.getCenter(),radius:Object(a.getDistanceToCenter)(s,t),startAngle:s.startAngle,endAngle:s.endAngle},r="Circle";delete(n=Object(i.deepMix)({container:this.getTooltipCrosshairsGroup()},n,Object(i.get)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var c=this.yCrosshair;c?s.isRect&&"circle"===c.get("type")||!s.isRect&&"line"===c.get("type")?(c=new o.Crosshair[r](n)).init():c.update(n):(c=new o.Crosshair[r](n)).init(),c.render(),c.show(),this.yCrosshair=c},e.prototype.getCrosshairsText=function(t,e,n){var r=Object(i.get)(n,["crosshairs","text"]),o=Object(i.get)(n,["crosshairs","follow"]),a=this.items;if(r){var s=this.getViewWithGeometry(this.view),u=a[0],l=s.getXScale(),c=s.getYScales()[0],h=void 0,f=void 0;if(o){var d=this.view.getCoordinate().invert(e);h=l.invert(d.x),f=c.invert(d.y)}else h=u.data[l.field],f=u.data[c.field];var p="x"===t?h:f;return Object(i.isFunction)(r)?r=r(t,p,a,e):r.content=p,{text:r}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,i;if(!1===t.getOptions().tooltip)return[];var o=this.getTooltipCfg(),a=Object(u.findItemsFromView)(t,e,o);try{for(var s=Object(r.__values)(t.views),l=s.next();!l.done;l=s.next()){var c=l.value;a=a.concat(this.findItemsFromView(c,e))}}catch(t){n={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return a},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(i.find)(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems;return(e||function(t){return t})(t)},e}(c.Controller);e.default=f},function(t,e,n){"use strict";n.r(e),n.d(e,"getPath",(function(){return h}));var r=n(1),i=n(40),o=n(202),a=n(72),s=n(184),u=n(495),l=n(778);function c(t,e,n,r,i){return 1===t.length?[["M",t[0].x,t[0].y-i.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+i.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),o=Object(s.getSplinePath)(t,!1,r)):(o=Object(s.getLinePath)(t,!1),e&&o.push(["Z"])),o);var o}function h(t,e,n,i,o,a){if(t.length){var s=t[0];return Object(r.isArray)(s.y)?function(t,e,n,i,o,a){var s=[],l=[];Object(r.each)(t,(function(t){var e=Object(u.splitPoints)(t);s.push(e[1]),l.push(e[0])}));var h=c(s,e,i,o,a),f=c(l,e,i,o,a);return n?h:h.concat(f)}(t,e,n,i,o,a):c(t,e,i,o,a)}return[]}var f=Object(i.registerShapeFactory)("line",{defaultShapeType:"line"});Object(r.each)(["line","dot","dash","smooth"],(function(t){Object(i.registerShape)("line",t,{draw:function(e,n){var r,i="smooth"===t;if(i){var s=this.coordinate,u=s.start,l=s.end;r=[[u.x,l.y],[l.x,u.y]]}var c=function(t,e,n){for(var r=t.isStack,i=t.connectNulls,s=t.isInCircle,u=t.showSinglePoint,l=Object(a.getStyle)(t,!0,!1,"lineWidth"),c=Object(o.getPathPoints)(t.points,i,u),f=[],d=0,p=c.length;d1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},function(t,e,n){"use strict";function r(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(695),i=/[a-z]/;function o(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function a(t){var e=Object(r.default)(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,a=0;a=0){n=!0;break}}if(!n)return e;var u=[],l=0,c=0,h=0,f=0,d=0,p=e[0];"M"!==p[0]&&"m"!==p[0]||(h=l=+p[1],f=c=+p[2],d++,u[0]=["M",l,c]);a=d;for(var g=e.length;a2&&(n.push([r].concat(o.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===o.length&&n.push([r,o[0]]),"r"===s)n.push([r].concat(o));else for(;o.length>=e[s]&&(n.push([r].concat(o.splice(0,e[s]))),e[s]););return""})),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=function(t,e,n){return t>=e&&t<=n};function i(t,e,n,i){var o=n.x-t.x,a=n.y-t.y,s=e.x-t.x,u=e.y-t.y,l=i.x-n.x,c=i.y-n.y,h=s*c-u*l,f=null;if(h*h>.001*(s*s+u*u)*(l*l+c*c)){var d=(o*c-a*l)/h,p=(o*u-a*s)/h;r(d,0,1)&&r(p,0,1)&&(f={x:t.x+d*s,y:t.y+d*u})}return f}},function(t,e,n){"use strict";n.r(e),n.d(e,"deepAssign",(function(){return u}));var r={}.toString,i=function(t,e){return r.call(t)==="[object "+e+"]"},o=function(t){return i(t,"Array")},a=function(t){if(!function(t){return"object"==typeof t&&null!==t}(t)||!i(t,"Object"))return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},s=function(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(Object.prototype.hasOwnProperty.call(e,i)){var u=e[i];u?a(u)?(a(t[i])||(t[i]={}),n(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=t.x-r*s-o*u,n.y=t.y-r*u+o*s):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x+r*s-o*u,n.y=e.y+r*u+o*s)):(n.x=e.x+n.r,n.y=e.y)}function a(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function s(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function u(t){this._=t,this.next=null,this.previous=null}function l(t){if(!(c=(t=Object(r.default)(t)).length))return 0;var e,n,l,c,h,f,d,p,g,v,m;if((e=t[0]).x=0,e.y=0,!(c>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(c>2))return e.r+n.r;o(n,e,l=t[2]),e=new u(e),n=new u(n),l=new u(l),e.next=l.previous=n,n.next=e.previous=l,l.next=n.previous=e;t:for(d=3;d0&&n*n>r*r+i*i}function s(t,e){for(var n=0;n1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}Object(o.default)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},function(t,e,n){"use strict";function r(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(721),i=/[a-z]/;function o(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function a(t){var e=Object(r.default)(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,a=0;a=0){n=!0;break}}if(!n)return e;var u=[],l=0,c=0,h=0,f=0,d=0,p=e[0];"M"!==p[0]&&"m"!==p[0]||(h=l=+p[1],f=c=+p[2],d++,u[0]=["M",l,c]);a=d;for(var g=e.length;a2&&(n.push([r].concat(o.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===o.length&&n.push([r,o[0]]),"r"===s)n.push([r].concat(o));else for(;o.length>=e[s]&&(n.push([r].concat(o.splice(0,e[s]))),e[s]););return""})),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=function(t,e,n){return t>=e&&t<=n};function i(t,e,n,i){var o=n.x-t.x,a=n.y-t.y,s=e.x-t.x,u=e.y-t.y,l=i.x-n.x,c=i.y-n.y,h=s*c-u*l,f=null;if(h*h>.001*(s*s+u*u)*(l*l+c*c)){var d=(o*c-a*l)/h,p=(o*u-a*s)/h;r(d,0,1)&&r(p,0,1)&&(f={x:t.x+d*s,y:t.y+d*u})}return f}},function(t,e,n){"use strict";n.r(e),n.d(e,"SourceTile",(function(){return b}));var r=n(58),i=n(46),o=n(11),a=n(12),s=n(14),u=n(25),l=n(27),c=n(15),h=n(6),f=n(34),d=n.n(f),p=n(1932),g=n(146),v=n(162),m=n(318);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(c.default)(t);if(e){var i=Object(c.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(l.default)(this,n)}}var b=function(t){Object(u.default)(l,t);var e,n=y(l);function l(t){var e;Object(o.default)(this,l),e=n.call(this),Object(h.default)(Object(s.default)(e),"tileSize",256),Object(h.default)(Object(s.default)(e),"isVisible",!1),Object(h.default)(Object(s.default)(e),"isCurrent",!1),Object(h.default)(Object(s.default)(e),"isVisibleChange",!1),Object(h.default)(Object(s.default)(e),"loadedLayers",0),Object(h.default)(Object(s.default)(e),"isLayerLoaded",!1),Object(h.default)(Object(s.default)(e),"isLoad",!1),Object(h.default)(Object(s.default)(e),"isChildLoad",!1),Object(h.default)(Object(s.default)(e),"parent",null),Object(h.default)(Object(s.default)(e),"children",[]),Object(h.default)(Object(s.default)(e),"data",null),Object(h.default)(Object(s.default)(e),"properties",{}),Object(h.default)(Object(s.default)(e),"loadDataId",0);var r=t.x,i=t.y,a=t.z,u=t.tileSize,c=t.warp,f=void 0===c||c;return e.x=r,e.y=i,e.z=a,e.warp=f||!0,e.tileSize=u,e}return Object(a.default)(l,[{key:"isLoading",get:function(){return this.loadStatus===v.LoadTileDataStatus.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===v.LoadTileDataStatus.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===v.LoadTileDataStatus.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===v.LoadTileDataStatus.Cancelled}},{key:"isDone",get:function(){return[v.LoadTileDataStatus.Loaded,v.LoadTileDataStatus.Cancelled,v.LoadTileDataStatus.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return Object(m.tileToBounds)(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var t=Object(i.default)(this.bounds,4),e=t[0],n=t[1],r=[(t[2]-e)/2,(t[3]-n)/2];return Object(p.default)(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:r,meta:"\n ".concat(this.key,"\n ")}})}},{key:"key",get:function(){return"".concat(this.x,"_").concat(this.y,"_").concat(this.z)}},{key:"layerLoad",value:function(){this.loadedLayers++,this.emit("layerLoaded")}},{key:"loadData",value:(e=Object(r.default)(d.a.mark((function t(e){var n,r,i,o,a,s,u,l,c,h,f,p,g,y,b,_,x;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.getData,r=e.onLoad,i=e.onError,this.loadDataId++,o=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=v.LoadTileDataStatus.Loading,a=null,t.prev=7,u=this.x,l=this.y,c=this.z,h=this.bounds,f=this.tileSize,p=this.warp,g=Object(m.getTileWarpXY)(u,l,c,p),y=g.warpX,b=g.warpY,_=this.abortController.signal,x={x:y,y:b,z:c,bounds:h,tileSize:f,signal:_,warp:p},t.next=14,n(x,this);case 14:a=t.sent,t.next=20;break;case 17:t.prev=17,t.t0=t.catch(7),s=t.t0;case 20:if(o===this.loadDataId){t.next=22;break}return t.abrupt("return");case 22:if(!this.isCancelled||a){t.next=24;break}return t.abrupt("return");case 24:if(!s&&a){t.next=28;break}return this.loadStatus=v.LoadTileDataStatus.Failure,i(s,this),t.abrupt("return");case 28:this.loadStatus=v.LoadTileDataStatus.Loaded,this.data=a,r(this);case 31:case"end":return t.stop()}}),t,this,[[7,17]])}))),function(t){return e.apply(this,arguments)})},{key:"reloadData",value:function(t){this.isLoading&&this.abortLoad(),this.loadData(t)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=v.LoadTileDataStatus.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),l}(g.EventEmitter)},function(t,e,n){"use strict";n.r(e);var r=n(217),i=function(){function t(t,e){var n=this;this.name=t,this.workerThread=e,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise((function(t,e){n.resolve=t,n.reject=e}))}return t.prototype.postMessage=function(t,e){this.workerThread.postMessage({source:"Main thread",type:t,payload:e})},t.prototype.done=function(t){Object(r.assert)(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(t)},t.prototype.error=function(t){Object(r.assert)(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(t)},t}();e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(355),i=n(472),o=n(724),a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]this.getMaxConcurrency()?(t.destroy(),this.count--):this.idleQueue.push(t),this.isDestroyed||this.startQueuedJob()},t.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count0){if(this._values.length>0)throw new Error("Illegal internal state");var e=this._settlers.shift();t instanceof Error?e.reject(t):e.resolve({value:t})}else this._values.push(t)},t.prototype.close=function(){for(;this._settlers.length>0;){this._settlers.shift().resolve({done:!0})}this._closed=!0},t.prototype.next=function(){var t=this;if(this._values.length>0){var e=this._values.shift();return e instanceof Error?Promise.reject(e):Promise.resolve({done:!1,value:e})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise((function(e,n){t._settlers.push({resolve:e,reject:n})}))},t}();e.default=r},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"PositionType",(function(){return r})),function(t){t.TOPRIGHT="topright",t.TOPLEFT="topleft",t.BOTTOMRIGHT="bottomright",t.BOTTOMLEFT="bottomleft",t.TOPCENTER="topcenter",t.BOTTOMCENTER="bottomcenter",t.LEFTCENTER="leftcenter",t.RIGHTCENTER="rightcenter",t.LEFTTOP="lefttop",t.RIGHTTOP="righttop",t.LEFTBOTTOM="leftbottom",t.RIGHTBOTTOM="rightbottom"}(r||(r={}))},function(t,e,n){"use strict";n.r(e);var r=n(50);e.default=function(t,e,n,i,o,a){!t.required||n.hasOwnProperty(t.field)&&!r.isEmptyValue(e,a||t.type)||i.push(r.format(o.messages.required,t.fullField))}},function(t,e,n){"use strict";n.r(e);var r={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-r.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*r.bounceIn(2*t):.5*r.bounceOut(2*t-1)+.5}};e.default=r},function(t,e,n){"use strict";n.r(e),n.d(e,"PRESERVED_NORMAL_STATE",(function(){return f}));var r=n(127),i=n(387),o=n(37),a=n(136),s=n(55),u=n(0),l=n(160),c=n(75),h=n(105),f="__zr_normal__",d=r.TRANSFORMABLE_PROPS.concat(["ignore"]),p=Object(u.reduce)(r.TRANSFORMABLE_PROPS,(function(t,e){return t[e]=!0,t}),{ignore:!1}),g={},v=new o.default(0,0,0,0),m=function(){function t(t){this.id=Object(u.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,u=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var c=v;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,c):Object(s.calculateTextPosition)(g,n,c),i.x=g.x,i.y=g.y,o=g.align,a=g.verticalAlign;var f=n.origin;if(f&&null!=n.rotation){var d=void 0,p=void 0;"center"===f?(d=.5*c.width,p=.5*c.height):(d=Object(s.parsePercent)(f[0],c.width),p=Object(s.parsePercent)(f[1],c.height)),l=!0,i.originX=-i.x+d+(r?0:c.x),i.originY=-i.y+p+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var m=n.offset;m&&(i.x+=m[0],i.y+=m[1],l||(i.originX=-m[0],i.originY=-m[1]));var y=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,x=void 0,O=void 0;y&&this.canBeInsideText()?(_=n.insideFill,x=n.insideStroke,null!=_&&"auto"!==_||(_=this.getInsideTextFill()),null!=x&&"auto"!==x||(x=this.getInsideTextStroke(_),O=!0)):(_=n.outsideFill,x=n.outsideStroke,null!=_&&"auto"!==_||(_=this.getOutsideFill()),null!=x&&"auto"!==x||(x=this.getOutsideStroke(_),O=!0)),(_=_||"#000")===b.fill&&x===b.stroke&&O===b.autoStroke&&o===b.align&&a===b.verticalAlign||(u=!0,b.fill=_,b.stroke=x,b.autoStroke=O,b.align=o,b.verticalAlign=a,e.setDefaultTextStyle(b)),e.__dirty|=h.REDRAW_BIT,u&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?l.LIGHT_LABEL_COLOR:l.DARK_LABEL_COLOR},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Object(c.parse)(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(c.stringify)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(u.extend)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Object(u.isObject)(t))for(var n=t,r=Object(u.keys)(n),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(f,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===f;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(Object(u.indexOf)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,d=this._textGuide;return c&&c.useState(t,e,n,l),d&&d.useState(t,e,n,l),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h.REDRAW_BIT),s}Object(u.logError)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s0,p);var g=this._textContent,v=this._textGuide;g&&g.useStates(t,e,f),v&&v.useStates(t,e,f),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h.REDRAW_BIT)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Object(u.indexOf)(r,t),o=Object(u.indexOf)(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o0||a.force&&!l.length){var E,T=void 0,M=void 0,A=void 0;if(c){M={},g&&(T={});for(S=0;S0&&n.during&&a[0].during((function(t,e){n.during(e)}));for(var p=0;pe+c&&l>i+c&&l>a+c||lt+c&&u>n+c&&u>o+c||u=0;a--)r[a]&&!u.isComponentIdInternal(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t["\0_ec_inner"],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i=2){if(i){var a=Object(r.default)(o,i,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var s=o.length,u=0;u<(n?s:s-1);u++){var l=a[2*u],c=a[2*u+1],h=o[(u+1)%s];t.bezierCurveTo(l[0],l[1],c[0],c[1],h[0],h[1])}}else{t.moveTo(o[0][0],o[0][1]);u=1;for(var f=o.length;u1||v&&!p){var y=function(t,e,n,a,s){var u=e.getData(),l=Object(r.reduce)(t,(function(t,e,n){var r=u.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),c=[],h=[],f=[];function d(t,e){var n=u.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(l?f.push(Object(i.createTooltipMarkup)("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:t,valueType:n.type})):(c.push(t),h.push(n.type)))}return a.length?Object(r.each)(a,(function(t){d(Object(o.retrieveRawValue)(u,n,t),t)})):Object(r.each)(t,d),{inlineValues:c,inlineValueTypes:h,blocks:f}}(g,l,c,d,m);e=y.inlineValues,n=y.inlineValueTypes,s=y.blocks,u=y.inlineValues[0]}else if(p){var b=f.getDimensionInfo(d[0]);u=e=Object(o.retrieveRawValue)(f,c,d[0]),n=b.type}else u=e=v?g[0]:g;var _=Object(a.isNameSpecified)(l),x=_&&l.name||"",O=f.getName(c),w=h?x:O;return Object(i.createTooltipMarkup)("section",{header:x,noHeader:h||!_,sortParam:u,blocks:[Object(i.createTooltipMarkup)("nameValue",{markerType:"item",markerColor:m,name:w,noName:!Object(r.trim)(w),value:e,valueType:n})].concat(s||[])})}},function(t,e,n){"use strict";n.r(e),n.d(e,"ScaleRawExtentInfo",(function(){return o})),n.d(e,"ensureScaleRawExtentInfo",(function(){return u})),n.d(e,"parseAxisModelMinMax",(function(){return l}));var r=n(0),i=n(55),o=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&u>0&&!l&&(s=0),s<0&&u<0&&!c&&(u=0));var f=this._determinedMin,d=this._determinedMax;return null!=f&&(s=f,l=!0),null!=d&&(u=d,c=!0),{min:s,max:u,minFixed:l,maxFixed:c,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[s[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[a[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),a={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function u(t,e,n){var r=t.rawExtentInfo;return r||(r=new o(t,e,n),t.rawExtentInfo=r,r)}function l(t,e){return null==e?null:Object(r.eqNaN)(e)?NaN:t.parse(e)}},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n(5),o=n(45),a=n(121),s=n(218),u=n(219),l=n(0),c=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return Object(r.__extends)(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Object(o.format)(t.value,o.fullLeveledFormatter[Object(o.getDefaultFormatPrecisionOfInterval)(Object(o.getPrimaryTimeUnit)(this._minLevelUnit))]||o.fullLeveledFormatter.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return Object(o.leveledFormat)(t,e,n,i,r)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),a=function(t,e,n,r){var a=o.timeUnits,s=0;function u(t,e,n,i,o,a,s){for(var u=new Date(e),l=e,c=u[i]();l1&&0===h&&s.unshift({value:s[0].value-_})}}for(h=0;h=r[0]&&E<=r[1]&&b++)}var T=(r[1]-r[0])/e;if(b>1.5*T&&_>T/1.5)break;if(h.push(S),b>T||t===a[x])break}y=[]}}}0;var M=Object(l.filter)(Object(l.map)(h,(function(t){return Object(l.filter)(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),A=[],j=M.length-1;for(x=0;xn&&(this._approxInterval=n);var o=h.length,a=Math.min(function(t,e,n,r){for(;n>>1;t[i][1]16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function d(t){return(t/=30*o.ONE_DAY)>6?6:t>3?3:t>2?2:1}function p(t){return(t/=o.ONE_HOUR)>12?12:t>6?6:t>3.5?4:t>2?2:1}function g(t,e){return(t/=e?o.ONE_MINUTE:o.ONE_SECOND)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function v(t){return i.nice(t,!0)}function m(t,e,n){var r=new Date(t);switch(Object(o.getPrimaryTimeUnit)(e)){case"year":case"month":r[Object(o.monthSetterName)(n)](0);case"day":r[Object(o.dateSetterName)(n)](1);case"hour":r[Object(o.hoursSetterName)(n)](0);case"minute":r[Object(o.minutesSetterName)(n)](0);case"second":r[Object(o.secondsSetterName)(n)](0),r[Object(o.millisecondsSetterName)(n)](0)}return r.getTime()}u.default.registerClass(c),e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(77),i=Math.sin,o=Math.cos,a=Math.PI,s=2*Math.PI,u=180/a,l=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){this._add("C",t,e,n,r,i,o)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._add("Q",t,e,n,r)},t.prototype.arc=function(t,e,n,r,i,o){this.ellipse(t,e,n,n,0,r,i,o)},t.prototype.ellipse=function(t,e,n,l,c,h,f,d){var p=f-h,g=!d,v=Math.abs(p),m=Object(r.isAroundZero)(v-s)||(g?p>=s:-p>=s),y=p>0?p%s:p%s+s,b=!1;b=!!m||!Object(r.isAroundZero)(v)&&y>=a==!!g;var _=t+n*o(h),x=e+l*i(h);this._start&&this._add("M",_,x);var O=Math.round(c*u);if(m){var w=1/this._p,S=(g?1:-1)*(s-w);this._add("A",n,l,O,1,+g,t+n*o(h+S),e+l*i(h+S)),w>.01&&this._add("A",n,l,O,0,+g,_,x)}else{var C=t+n*o(f),E=e+l*i(f);this._add("A",n,l,O,+b,+g,C,E)}},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,r,i,o,a,s,u){for(var l=[],c=this._p,h=1;he&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===u.type&&s){var c=u.getBaseAxis(),h=u.getOtherAxis(c),f=c.getExtent(),d=n.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(d||1),g=Math.round(l/p);if(isFinite(g)&&g>1){"lttb"===s&&t.setData(a.lttbDownSample(a.mapDimension(h.dim),1/g));var v=void 0;Object(r.isString)(s)?v=i[s]:Object(r.isFunction)(s)&&(v=s),v&&t.setData(a.downSample(a.mapDimension(h.dim),1/g,v,o))}}}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getBasicPieLayout",(function(){return l})),n.d(e,"default",(function(){return c}));var r=n(5),i=n(35),o=n(0),a=2*Math.PI,s=Math.PI/180;function u(t,e){return i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function l(t,e){var n=u(t,e),i=t.get("center"),a=t.get("radius");o.isArray(a)||(a=[0,a]);var s,l,c=Object(r.parsePercent)(n.width,e.getWidth()),h=Object(r.parsePercent)(n.height,e.getHeight()),f=Math.min(c,h),d=Object(r.parsePercent)(a[0],f/2),p=Object(r.parsePercent)(a[1],f/2),g=t.coordinateSystem;if(g){var v=g.dataToPoint(i);s=v[0]||0,l=v[1]||0}else o.isArray(i)||(i=[i,i]),s=Object(r.parsePercent)(i[0],c)+n.x,l=Object(r.parsePercent)(i[1],h)+n.y;return{cx:s,cy:l,r0:d,r:p}}function c(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),o=u(t,n),c=l(t,n),h=c.cx,f=c.cy,d=c.r,p=c.r0,g=-t.get("startAngle")*s,v=t.get("minAngle")*s,m=0;e.each(i,(function(t){!isNaN(t)&&m++}));var y=e.getSum(i),b=Math.PI/(y||m)*2,_=t.get("clockwise"),x=t.get("roseType"),O=t.get("stillShowZeroSum"),w=e.getDataExtent(i);w[0]=0;var S=a,C=0,E=g,T=_?1:-1;if(e.setLayout({viewRect:o,r:d}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:h,cy:f,r0:p,r:x?NaN:d});else{(i="area"!==x?0===y&&O?b:t*b:a/m)p[0]&&isFinite(_)&&isFinite(p[0]);)b=Object(a.increaseInterval)(b),_=p[1]-b*h;else{t.getTicks().length-1>h&&(b=Object(a.increaseInterval)(b));var O=b*h;x=Math.ceil(p[1]/b)*b,(_=Object(r.round)(x-O))<0&&p[0]>=0?(_=0,x=Object(r.round)(O)):x>0&&p[1]<=0&&(x=0,_=-Object(r.round)(O))}var w=(l[0].value-c[0].value)/f,S=(l[h].value-c[h].value)/f;u.setExtent.call(t,_+b*w,x+b*S),u.setInterval.call(t,b),(w||S)&&u.setNiceExtent.call(t,_+b,x-b)}},function(t,e,n){"use strict";n.r(e);var r=n(0),i={show:!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:"#6E7079",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:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},o=r.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},i),a=r.merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},i),s=r.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},a),u=r.defaults({logBase:10},a);e.default={category:o,value:a,time:s,log:u}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(845),o=n(35),a=n(5),s=n(203),u=n(20);function l(t,e){var n=t.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var s=this.projection;if(s){var l=r[0],c=r[1],h=i[0],f=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var d=function(t,e,n,o){for(var a=n-t,l=o-e,c=0;c<=100;c++){var h=c/100,f=s.project([t+a*h,e+l*h]);u.min(r,r,f),u.max(i,i,f)}};d(l,c,h,c),d(h,c,h,f),d(h,f,l,f),d(l,f,h,c)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else 0}var p,g,v,m=this.getBoundingRect(),y=t.get("layoutCenter"),b=t.get("layoutSize"),_=e.getWidth(),x=e.getHeight(),O=m.width/m.height*this.aspectScale,w=!1;if(y&&b&&(p=[a.parsePercent(y[0],_),a.parsePercent(y[1],x)],g=a.parsePercent(b,Math.min(_,x)),isNaN(p[0])||isNaN(p[1])||isNaN(g)||(w=!0)),w)v={},O>1?(v.width=g,v.height=g/O):(v.height=g,v.width=g*O),v.y=p[1]-v.height/2,v.x=p[0]-v.width/2;else{var S=t.getBoxLayoutParams();S.aspect=O,v=o.getLayoutRect(S,{width:_,height:x})}this.setViewRect(v.x,v.y,v.width,v.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var c=new(function(){function t(){this.dimensions=i.geo2DDimensions}return t.prototype.create=function(t,e){var n=[];function o(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,a){var s=t.get("map"),u=new i.default(s+a,s,r.extend({nameMap:t.get("nameMap")},o(t)));u.zoomLimit=t.get("scaleLimit"),n.push(u),t.coordinateSystem=u,u.model=t,u.resize=l,u.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var a={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();a[e]=a[e]||[],a[e].push(t)}})),r.each(a,(function(t,a){var s=r.map(t,(function(t){return t.get("nameMap")})),u=new i.default(a,a,r.extend({nameMap:r.mergeAll(s)},o(t[0])));u.zoomLimit=r.retrieve.apply(null,r.map(t,(function(t){return t.get("scaleLimit")}))),n.push(u),u.resize=l,u.resize(t[0],e),r.each(t,(function(t){t.coordinateSystem=u,function(t,e){r.each(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(u,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var o=(t||[]).slice(),a=r.createHashMap(),u=0;u0,g={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:f};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,r)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=r.createHashMap(),n=r.createHashMap(),i=this._regionsGroup,o=t.transformInfoRaw,a=t.mapOrGeoModel,u=t.data,f=t.geo.projection,d=f&&f.stream;function p(t,e){return e&&(t=e(t)),t&&[t[0]*o.scaleX+o.x,t[1]*o.scaleY+o.y]}function g(t){for(var e=[],n=!d&&f&&f.project,r=0;r=0)&&(f=i);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(v.setLabelStyle)(e,Object(v.getLabelStatesModels)(r),{labelFetcher:f,labelDataIndex:h,defaultText:n},d);var p=e.getTextContent();if(p&&(C(p).ignore=p.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function I(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):Object(m.getECData)(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function k(t,e,n,r,i){t.data||f.setTooltipConfig({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function P(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Object(d.toggleHoverEmphasis)(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&Object(d.enableComponentHighDownFeatures)(e,i,n),a}function L(t,e,n){var i,o=[];function a(){i=[]}function s(){i.length&&(o.push(i),i=[])}var u=e({polygonStart:a,polygonEnd:s,lineStart:a,lineEnd:s,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&u.polygonStart(),r.each(t,(function(t){u.lineStart();for(var e=0;e1;)i=i.parentNode;var o=Object(r.getDecalFromPalette)(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",o)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(0),i=n(118),o=n(1474),a=n(751),s=n(251),u=n(287),l=n(157),c=n(10);function h(t,e,n,h,f){for(var d=new o.default(h),p=0;p "+_)),m++)}var x,O=n.get("coordinateSystem");if("cartesian2d"===O||"polar"===O)x=Object(l.default)(t,n);else{var w=u.default.get(O),S=w&&w.dimensions||[];r.indexOf(S,"value")<0&&S.concat(["value"]);var C=Object(s.default)(t,{coordDimensions:S,encodeDefine:n.getEncode()}).dimensions;(x=new i.default(C,n)).initData(t)}var E=new i.default(["value"],n);return E.initData(v,g),f&&f(x,E),Object(a.default)({mainData:x,struct:d,structAttr:"graph",datas:{node:x,edge:E},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}},function(t,e,n){"use strict";n.r(e),n.d(e,"WhiskerBoxCommonMixin",(function(){return s}));var r=n(258),i=n(0),o=n(347),a=n(147),s=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,s,u=e.getComponent("xAxis",this.get("xAxisIndex")),l=e.getComponent("yAxis",this.get("yAxisIndex")),c=u.get("type"),h=l.get("type");"category"===c?(t.layout="horizontal",n=u.getOrdinalMeta(),s=!0):"category"===h?(t.layout="vertical",n=l.getOrdinalMeta(),s=!0):t.layout=t.layout||"horizontal";var f=["x","y"],d="horizontal"===t.layout?0:1,p=this._baseAxisDim=f[d],g=f[1-d],v=[u,l],m=v[d].get("type"),y=v[1-d].get("type"),b=t.data;if(b&&s){var _=[];i.each(b,(function(t,e){var n;i.isArray(t)?(n=t.slice(),t.unshift(e)):i.isArray(t.value)?((n=i.extend({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,_.push(n)})),t.data=_}var x=this.defaultValueDimensions,O=[{name:p,type:Object(o.getDimensionTypeByAxis)(m),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:Object(o.getDimensionTypeByAxis)(y),dimsDef:x.slice()}];return Object(r.default)(this,{coordDimensions:O,dimensionsCount:x.length+1,encodeDefaulter:i.curry(a.makeSeriesEncodeForAxisCoordSys,O,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}()},function(t,e,n){"use strict";n.r(e);var r=n(256),i={seriesType:"lines",plan:Object(r.default)(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,u=i.end-i.start;if(n){for(var l=0,c=i.start;c0&&(o=this._getLineLength(r)/l*1e3),o!==this._period||s!==this._loop||u!==this._roundTrip){r.stopAnimation();var h=void 0;h=a.isFunction(c)?c(n):c,r.__t>0&&(h=-o*r.__t),this._animateSymbol(r,o,h,s,u)}this._period=o,this._loop=s,this._roundTrip=u}},e.prototype._animateSymbol=function(t,e,n,r,i){if(e>0){t.__t=0;var o=this,a=t.animate("",r).when(i?2*e:e,{__t:i?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));r||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return u.dist(t.__p1,t.__cp1)+u.dist(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,r=t.__cp1,i=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=l.quadraticAt,c=l.quadraticDerivativeAt;o[0]=s(e[0],r[0],n[0],i),o[1]=s(e[1],r[1],n[1],i);var h=t.__t<1?c(e[0],r[0],n[0],i):c(n[0],r[0],e[0],1-i),f=t.__t<1?c(e[1],r[1],n[1],i):c(n[1],r[1],e[1],1-i);t.rotation=-Math.atan2(f,h)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastTe[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&g(e)}};function g(t){return new i.default(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return s}));var r=n(590),i=n(762),o=n(1595),a=n(1596);function s(t){t.registerComponentModel(r.default),t.registerComponentView(i.default),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,o.default),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),Object(a.installLegendAction)(t)}},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n(0),o=n(75),a=n(41),s=n(69),u=n(74),l=n(16),c=n(13),h=n(28),f=n(588),d=n(35),p=n(66),g=n(63),v=n(288),m=i.curry,y=i.each,b=a.default,_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return Object(r.__extends)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new b),this.group.add(this._selectorGroup=new b),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var o=t.get("align"),a=t.get("orient");o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===a?"right":"left");var s=t.get("selector",!0),u=t.get("selectorPosition",!0);!s||u&&"auto"!==u||(u="horizontal"===a?"end":"start"),this.renderInner(o,t,e,n,s,a,u);var l=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),p=d.getLayoutRect(l,c,h),g=this.layoutInner(t,o,p,r,s,u),v=d.getLayoutRect(i.defaults({width:g.width,height:g.height},l),c,h);this.group.x=v.x-g.x,this.group.y=v.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Object(f.makeBackground)(g,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,a,s,u){var l=this.getContentGroup(),c=i.createHashMap(),h=e.get("selectedMode"),f=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&f.push(t.id)})),y(e.getData(),(function(a,s){var u=a.get("name");if(!this.newlineDisabled&&(""===u||"\n"===u)){var d=new b;return d.newline=!0,void l.add(d)}var p=n.getSeriesByName(u)[0];if(!c.get(u)){if(p){var g=p.getData(),v=g.getVisual("legendLineStyle")||{},y=g.getVisual("legendIcon"),_=g.getVisual("style");this._createItem(p,u,s,a,e,t,v,_,y,h,r).on("click",m(x,u,null,r,f)).on("mouseover",m(w,p.name,null,r,f)).on("mouseout",m(S,p.name,null,r,f)),c.set(u,!0)}else n.eachRawSeries((function(n){if(!c.get(u)&&n.legendVisualProvider){var l=n.legendVisualProvider;if(!l.containName(u))return;var d=l.indexOfName(u),p=l.getItemVisual(d,"style"),g=l.getItemVisual(d,"legendIcon"),v=Object(o.parse)(p.fill);v&&0===v[3]&&(v[3]=.2,p=i.extend(i.extend({},p),{fill:Object(o.stringify)(v,"rgba")})),this._createItem(n,u,s,a,e,t,{},p,g,h,r).on("click",m(x,null,u,r,f)).on("mouseover",m(w,null,u,r,f)).on("mouseout",m(S,null,u,r,f)),c.set(u,!0)}}),this);0}}),this),a&&this._createSelector(a,e,r,s,u)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();y(t,(function(t){var r=t.type,i=new s.default({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),u=e.getModel(["emphasis","selectorLabel"]);Object(h.setLabelStyle)(i,{normal:a,emphasis:u},{defaultText:t.title}),Object(c.enableHoverEmphasis)(i)}))},e.prototype._createItem=function(t,e,n,r,o,a,f,d,p,m,_){var x=t.visualDrawType,O=o.get("itemWidth"),w=o.get("itemHeight"),S=o.isSelected(e),C=r.get("symbolRotate"),E=r.get("symbolKeepAspect"),T=r.get("icon"),M=function(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),y(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var u=e.getModel("itemStyle"),l=u.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=u.getShallow("decal");l.decal=h&&"inherit"!==h?Object(v.createOrUpdatePatternFromDecal)(h,a):r.decal,"inherit"===l.fill&&(l.fill=r[i]);"inherit"===l.stroke&&(l.stroke=r[c]);"inherit"===l.opacity&&(l.opacity=("fill"===i?r:n).opacity);s(l,r);var f=e.getModel("lineStyle"),d=f.getLineStyle();if(s(d,n),"auto"===l.fill&&(l.fill=r.fill),"auto"===l.stroke&&(l.stroke=r.fill),"auto"===d.stroke&&(d.stroke=r.fill),!o){var p=e.get("inactiveBorderWidth"),g=l[c];l.lineWidth="auto"===p?r.lineWidth>0&&g?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),d.stroke=f.get("inactiveColor"),d.lineWidth=f.get("inactiveWidth")}return{itemStyle:l,lineStyle:d}}(p=T||p||"roundRect",r,f,d,x,S,_),A=new b,j=r.getModel("textStyle");if(!i.isFunction(t.getLegendIcon)||T&&"inherit"!==T){var I="inherit"===T&&t.getData().getVisual("symbol")?"inherit"===C?t.getData().getVisual("symbolRotate"):C:0;A.add(function(t){var e=t.icon||"roundRect",n=Object(g.createSymbol)(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:O,itemHeight:w,icon:p,iconRotate:I,itemStyle:M.itemStyle,lineStyle:M.lineStyle,symbolKeepAspect:E}))}else A.add(t.getLegendIcon({itemWidth:O,itemHeight:w,icon:p,iconRotate:C,itemStyle:M.itemStyle,lineStyle:M.lineStyle,symbolKeepAspect:E}));var k="left"===a?O+5:-5,P=a,L=o.get("formatter"),D=e;i.isString(L)&&L?D=L.replace("{name}",null!=e?e:""):i.isFunction(L)&&(D=L(e));var R=r.get("inactiveColor");A.add(new s.default({style:Object(h.createTextStyle)(j,{text:D,x:k,y:w/2,fill:S?j.getTextColor():R,align:P,verticalAlign:"middle"})}));var N=new u.default({shape:A.getBoundingRect(),invisible:!0}),F=r.getModel("tooltip");return F.get("show")&&l.setTooltipConfig({el:N,componentModel:o,itemName:e,itemTooltipOption:F.option}),A.add(N),A.eachChild((function(t){t.silent=!0})),N.silent=!m,this.getContentGroup().add(A),Object(c.enableHoverEmphasis)(A),A.__legendDataIndex=n,A},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();d.box(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var u=a.getBoundingRect(),l=[-u.x,-u.y];if(s.markRedraw(),a.markRedraw(),i){d.box("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],f=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=0===p?"width":"height",v=0===p?"height":"width",m=0===p?"y":"x";"end"===o?h[p]+=u[g]+f:l[p]+=c[g]+f,h[1-p]+=u[v]/2-c[v]/2,s.x=h[0],s.y=h[1],a.x=l[0],a.y=l[1];var y={x:0,y:0};return y[g]=u[g]+f+c[g],y[v]=Math.max(u[v],c[v]),y[m]=Math.min(0,c[m]+h[1-p]),y}return a.x=l[0],a.y=l[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(p.default);function x(t,e,n,r){S(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),w(t,e,n,r)}function O(t){for(var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;r0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(r.visualMapActionInfo,r.visualMapActionHander),Object(o.each)(i.visualMapEncodingHandlers,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(a.default))}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(767),a=n(96),s={};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,o=[],s=[],u=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return u.length>0?(Object(a.each)(u,(function(t){var e=t.getBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(i.min)(o),e=Object(i.max)(o),n=Object(i.min)(s),r=Object(i.max)(s)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,o=[],s=[],u=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return u.length>0?(Object(a.each)(u,(function(t){var e=t.getCanvasBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(i.min)(o),e=Object(i.max)(o),n=Object(i.min)(s),r=Object(i.max)(s)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(a.each)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;o--){var s=t[o];if(Object(a.isAllowCapture)(s)&&(s.isGroup()?i=s.getShape(e,n,r):s.isHit(e,n)&&(i=s)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(a.removeFromArray)(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();Object(a.each)(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(a.each)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return Object(a.each)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(o.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(26),a=n(96),s=n(220),u=n(668),l=o.ext.transform,c=["zIndex","capture","visible","type"],h=["repeat"];function f(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function d(t,e){var n={},r=e.attr();return Object(i.each)(t,(function(t,e){-1!==h.indexOf(e)||Object(i.isEqual)(r[e],t)||(n[e]=t)})),n}function p(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return Object(i.each)(t,(function(t){n+rt.delay&&Object(i.each)(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var g=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return Object(i.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n0?r=p(r,O):n.addAnimator(this),r.push(O),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(i.each)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(i.each)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return Object(i.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,o=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=o[t],l=s.get("name");if(l){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(a.isParent)(s,n))return"break";Object(i.isArray)(l)?Object(i.each)(l,(function(t){r.emitDelegateEvent(s,t,e)})):u.emitDelegateEvent(s,l,e)}},u=this,l=0;l=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,u=i-1?r:null}};function u(t){for(var e=[],n=1;n3?0:(t-t%10!=10?1:0)*t%10]}},d=u({},f),p=function(t){return d=u(d,t)},g=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},v=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length0?"-":"+")+v(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+v(Math.floor(Math.abs(e)/60),2)+":"+v(Math.abs(e)%60,2)}},y=function(t){return+t-1},b=[null,"\\d\\d?"],_=[null,i],x=["isPm",i,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],O=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],w={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+i,function(t){return parseInt(t,10)}],M:["month","\\d\\d?",y],MM:["month","\\d\\d",y],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:b,dd:b,ddd:_,dddd:_,MMM:["month",i,s("monthNamesShort")],MMMM:["month",i,s("monthNames")],a:x,A:x,ZZ:O,Z:O},S={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},C=function(t){return u(S,t)},E=function(t,e,n){if(void 0===e&&(e=S.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var i=[];e=(e=S[e]||e).replace(o,(function(t,e){return i.push(e),"@@@"}));var a=u(u({},d),n);return(e=e.replace(r,(function(e){return m[e](t,a)}))).replace(/@@@/g,(function(){return i.shift()}))};function T(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=S[e]||e,t.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],s=[],l=e.replace(o,(function(t,e){return s.push(g(e)),"@@@"})),c={},h={};l=g(l).replace(r,(function(t){var e=w[t],n=e[0],r=e[1],i=e[3];if(c[n])throw new Error("Invalid format. "+n+" specified twice in format");return c[n]=!0,i&&(h[i]=!0),a.push(e),"("+r+")"})),Object.keys(h).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),l=l.replace(/@@@/g,(function(){return s.shift()}));var f=t.match(new RegExp(l,"i"));if(!f)return null;for(var p,v=u(u({},d),n),m=1;m11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return p}var M={format:E,parse:T,defaultI18n:f,setGlobalDateI18n:p,setGlobalDateMasks:C};e.default=M},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(1);function i(t){var e=t.values,n=t.tickInterval,i=t.tickCount,o=t.showLast;if(Object(r.isNumber)(n)){var a=Object(r.filter)(e,(function(t,e){return e%n==0})),s=Object(r.last)(e);return o&&Object(r.last)(a)!==s&&a.push(s),a}var u=e.length,l=t.min,c=t.max;if(Object(r.isNil)(l)&&(l=0),Object(r.isNil)(c)&&(c=e.length-1),!Object(r.isNumber)(i)||i>=u)return e.slice(l,c+1);if(i<=0||c<=0)return[];for(var h=1===i?u:Math.floor(u/(i-1)),f=[],d=l,p=0;p=c);p++)d=Math.min(l+p*h,c),p===i-1&&o?f.push(e[c]):f.push(e[d]);return f}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(363);function i(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var i=n<0?0:Math.round(n);if(0===i)return{max:e,min:t,ticks:[]};var o=(e-t)/i,a=Math.pow(10,Math.floor(Math.log10(o))),s=a;2*a-o<1.5*(o-s)&&5*a-o<2.75*(o-(s=2*a))&&10*a-o<1.5*(o-(s=5*a))&&(s=10*a);for(var u=Math.ceil(e/s),l=Math.floor(t/s),c=Math.max(u*s,e),h=Math.min(l*s,t),f=Math.floor((c-h)/s)+1,d=new Array(f),p=0;p=0&&s<.5*Math.PI?(r={x:c.minX,y:c.minY},o={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s0!=r(l[1]-n)>0&&r(e-(n-u[1])*(u[0]-l[0])/(u[1]-l[1])-u[0])<0&&(o=!o)}return o}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(269);function i(t,e,n,i,o){var a=t.length;if(a<2)return!1;for(var s=0;s0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),o=this.geometry.getYScale();return Object(i.map)(n,(function(t){if(t&&o){var e=o.scale(Object(i.get)(t.data,o.field));return Object(r.__assign)(Object(r.__assign)({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,o=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var a=t.offset*i,s=this.getPointAngle(r),u=t.labelEmit,l=this.getCirclePoint(s,a,r,u);return 0===l.r?l.content="":(l.content=o,l.angle=s,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(s,a,u):t.rotate,l.start={x:r.x,y:r.y},l},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(i.isArray)(t.x)||Object(i.isArray)(t.y)?{x:Object(i.isArray)(t.x)?t.x[e]:t.x,y:Object(i.isArray)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return Object(o.getAngleByPoint)(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var a=this.getCoordinate(),s=a.getCenter(),u=Object(o.getDistanceToCenter)(a,n);if(0===u)return Object(r.__assign)(Object(r.__assign)({},s),{r:u});var l=t;a.isTransposed&&u>e&&!i?l=t+2*Math.asin(e/(2*u)):u+=e;return{x:s.x+u*Math.cos(l),y:s.y+u*Math.sin(l),r:u}},e.prototype.getLabelRotate=function(t,e,n){var r=t+s;return n&&(r-=s),r&&(r>s?r-=Math.PI:r<-s&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return Object(i.each)(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(a.default);e.default=u},function(t,e,n){"use strict";function r(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,o=!0,a=n.minY,s=n.maxY,u=Math.abs(a-s),l=0,c=Number.MIN_VALUE,h=r.map((function(t){return t.y>l&&(l=t.y),t.yu&&(u=l-a);o;)for(h.forEach((function(t){var e=(Math.min.apply(c,t.targets)+Math.max.apply(c,t.targets))/2;t.pos=Math.min(Math.max(c,e-t.size/2),u-t.size),t.pos=Math.max(0,t.pos)})),o=!1,i=h.length;i--;)if(i>0){var f=h[i-1],d=h[i];f.pos+f.size>d.pos&&(f.size+=d.size,f.targets=f.targets.concat(d.targets),f.pos+f.size>u&&(f.pos=u-f.size),h.splice(i,1),o=!0)}i=0,h.forEach((function(t){var n=a+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}n.r(e),n.d(e,"antiCollision",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(r.__extends)(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var r=this.timeStamp,o=+new Date;if(o-r>Object(i.get)(t.view.getOptions(),"tooltip.showDelay",16)){var a=this.location,s={x:e.x,y:e.y};a&&Object(i.isEqual)(a,s)||this.showTooltip(n,s),this.timeStamp=o,this.location=s}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(n(86).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",(function(){return r}));var r,i=n(2),o=n(170),a=n(393),s=n(500);!function(t){t.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",t.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",t.BEFORE_CLEAR="element-range-highlight:beforeclear",t.AFTER_CLEAR="element-range-highlight:afterclear"}(r||(r={}));var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(i.__extends)(e,t),e.prototype.clearViewState=function(t){Object(a.clearHighlight)(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n={view:e,event:t.event,highlightElements:this.getIntersectElements()};e.emit(r.BEFORE_HIGHLIGHT,o.Event.fromData(e,r.BEFORE_HIGHLIGHT,n)),this.setState(),e.emit(r.AFTER_HIGHLIGHT,o.Event.fromData(e,r.AFTER_HIGHLIGHT,n))},e.prototype.clear=function(){var e=this.context.view;e.emit(r.BEFORE_CLEAR,o.Event.fromData(e,r.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(r.AFTER_CLEAR,o.Event.fromData(e,r.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){Object(a.setHighlightBy)(n,(function(e){return t.indexOf(e)>=0}),e)},e}(s.default);e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"getMaskAttrs",(function(){return a}));var r=n(2),i=n(1),o=n(24);function a(t){var e=Object(i.last)(t),n=0,r=0,a=0;if(t.length){var s=t[0];n=Object(o.distance)(s,e)/2,r=(e.x+s.x)/2,a=(e.y+s.y)/2}return{x:r,y:a,r:n}}var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return Object(r.__extends)(e,t),e.prototype.getMaskAttrs=function(){return a(this.points)},e}(n(502).default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(503),o=n(429),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(r.__extends)(e,t),e.prototype.getRegion=function(t){return Object(o.getRegion)(t)},e.prototype.getMaskAttrs=function(t){var e=this.getRegion(t),n=e.start,r=e.end;return Object(o.getMaskAttrs)(n,r)},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(503),o=n(430),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=o.getMaskPath,e.getMaskAttrs=o.getMaskAttrs,e}return Object(r.__extends)(e,t),e.prototype.addPoint=function(){this.resize()},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(308),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return Object(r.__extends)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(i.Action);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"brushInteraction",(function(){return s}));var r=n(1),i=n(920),o=n(3),a=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];function s(t){var e=t.options,n=e.brush,s=Object(r.filter)(e.interactions||[],(function(t){return-1===a.indexOf(t.type)}));return(null==n?void 0:n.enabled)&&(a.forEach((function(t){var e=!1;switch(n.type){case"x-rect":e=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":e=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:e=t===("highlight"===n.action?"brush-highlight":"brush")}var r={type:t,enable:e};n&&(r.cfg=Object(i.getInteractionCfg)(t,n.type,n)),s.push(r)})),"highlight"!==(null==n?void 0:n.action)&&s.push({type:"filter-action",cfg:{buttonConfig:n.button}})),Object(o.deepAssign)({},t,{options:{interactions:s}})}},function(t,e,n){"use strict";n.r(e),n.d(e,"conversionTagFormatter",(function(){return i}));var r=n(1);function i(t,e){return Object(r.isNumber)(t)&&Object(r.isNumber)(e)?0===t&&0===e?"-":t===e?"100%":0===t?"∞":"".concat((100*e/t).toFixed(2),"%"):"-"}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return m})),n.d(e,"interaction",(function(){return _})),n.d(e,"adaptor",(function(){return x}));var r=n(2),i=n(1),o=n(9),a=n(290),s=n(3),u=n(793),l=n(76),c=n(504),h=n(795),f=n(1779),d=n(1780),p=n(602);function g(t){var e,n=t.options,r=n.compareField,o=n.xField,c=n.yField,h=n.locale,f=n.funnelStyle,d=n.data,p=Object(a.getLocale)(h),g={label:r?{fields:[o,c,r,l.FUNNEL_PERCENT,l.FUNNEL_CONVERSATION],formatter:function(t){return"".concat(t[c])}}:{fields:[o,c,l.FUNNEL_PERCENT,l.FUNNEL_CONVERSATION],offset:0,position:"middle",formatter:function(t){return"".concat(t[o]," ").concat(t[c])}},tooltip:{title:o,formatter:function(t){return{name:t[o],value:t[c]}}},conversionTag:{formatter:function(t){return"".concat(p.get(["conversionTag","label"]),": ").concat(u.conversionTagFormatter.apply(void 0,t[l.FUNNEL_CONVERSATION]))}}};return(r||f)&&(e=function(t){return Object(s.deepAssign)({},r&&{lineWidth:1,stroke:"#fff"},Object(i.isFunction)(f)?f(t):f)}),Object(s.deepAssign)({options:g},t,{options:{funnelStyle:e,data:Object(i.clone)(d)}})}function v(t){var e=t.options,n=e.compareField,r=e.dynamicHeight;return e.seriesField?Object(d.facetFunnel)(t):n?Object(h.compareFunnel)(t):r?Object(f.dynamicHeightFunnel)(t):Object(c.basicFunnel)(t)}function m(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,u=n.yField;return Object(s.flow)(Object(o.scale)(((e={})[a]=r,e[u]=i,e)))(t)}function y(t){return t.chart.axis(!1),t}function b(t){var e=t.chart,n=t.options.legend;return!1===n?e.legend(!1):e.legend(n),t}function _(t){var e=t.chart,n=t.options,o=n.interactions,a=n.dynamicHeight;return Object(i.each)(o,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),a?e.removeInteraction(p.FUNNEL_LEGEND_FILTER):e.interaction(p.FUNNEL_LEGEND_FILTER,{start:[Object(r.__assign)(Object(r.__assign)({},p.interactionStart),{arg:n})]}),t}function x(t){return Object(s.flow)(g,v,m,y,o.tooltip,_,b,o.animation,o.theme,Object(o.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"compareConversionTag",(function(){return h})),n.d(e,"compareFunnel",(function(){return d}));var r=n(1),i=n(107),o=n(3),a=n(132),s=n(76),u=n(295);function l(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function c(t){var e=t.chart,n=t.options,l=n.data,c=n.xField,h=n.yField,f=n.color,d=n.compareField,p=n.isTransposed,g=n.tooltip,v=n.maxSize,m=n.minSize,y=n.label,b=n.funnelStyle,_=n.state,x=n.showFacetTitle;return e.facet("mirror",{fields:[d],transpose:!p,padding:p?0:[32,0,0,0],showTitle:x,eachView:function(t,e){var n=p?e.rowIndex:e.columnIndex;p||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var x=Object(u.transformData)(e.data,l,{yField:h,maxSize:v,minSize:m});t.data(x);var O=Object(a.getTooltipMapping)(g,[c,h,d]),w=O.fields,S=O.formatter,C=p?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};Object(i.geometry)({chart:t,options:{type:"interval",xField:c,yField:s.FUNNEL_MAPPING_VALUE,colorField:c,tooltipFields:Object(r.isArray)(w)&&w.concat([s.FUNNEL_PERCENT,s.FUNNEL_CONVERSATION]),mapping:{shape:"funnel",tooltip:S,color:f,style:b},label:!1!==y&&Object(o.deepAssign)({},C,y),state:_}})}}),t}function h(t){var e=t.chart,n=t.index,i=t.options,a=i.conversionTag,l=i.isTransposed;(Object(r.isNumber)(n)?[e]:e.views).forEach((function(t,e){var c=Object(r.get)(t,["geometries","0","dataArray"],[]),h=Object(r.get)(t,["options","data","length"]),f=Object(r.map)(c,(function(t){return Object(r.get)(t,["0","nextPoints","0","x"])*h-.5}));Object(u.conversionTagComponent)((function(t,r,i,u){var c=0===(n||e)?-1:1;return Object(o.deepAssign)({},u,{start:[f[r-1]||r-.5,t[s.FUNNEL_MAPPING_VALUE]],end:[f[r-1]||r-.5,t[s.FUNNEL_MAPPING_VALUE]+.05],text:l?{style:{textAlign:"start"}}:{offsetX:!1!==a?c*a.offsetX:0,style:{textAlign:0===(n||e)?"end":"start"}}})}))(Object(o.deepAssign)({},{chart:t,options:i}))}))}function f(t){return t.chart.once("beforepaint",(function(){return h(t)})),t}function d(t){return Object(o.flow)(l,c,f)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"binHistogram",(function(){return o}));var r=n(1);function i(t,e,n){if(1===n)return[0,e];var r=Math.floor(t/e);return[e*r,e*(r+1)]}function o(t,e,n,o,a){var s=Object(r.clone)(t);Object(r.sortBy)(s,e);var u=Object(r.valuesOfKey)(s,e),l=Object(r.getRange)(u),c=l.max-l.min,h=n;if(!n&&o&&(h=o>1?c/(o-1):l.max),!n&&!o){var f=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}(u);h=c/f}var d={},p=Object(r.groupBy)(s,a);Object(r.isEmpty)(p)?Object(r.each)(s,(function(t){var n=i(t[e],h,o),a="".concat(n[0],"-").concat(n[1]);Object(r.hasKey)(d,a)||(d[a]={range:n,count:0}),d[a].count+=1})):Object.keys(p).forEach((function(t){Object(r.each)(p[t],(function(n){var s=i(n[e],h,o),u="".concat(s[0],"-").concat(s[1]),l="".concat(u,"-").concat(t);Object(r.hasKey)(d,l)||(d[l]={range:s,count:0},d[l][a]=t),d[l].count+=1}))}));var g=[];return Object(r.each)(d,(function(t){g.push(t)})),g}},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return p}));var r=n(2),i=n(9),o=n(36),a=n(254),s=n(3),u=n(796),l=n(276);function c(t){var e=t.chart,n=t.options,r=n.data,i=n.binField,a=n.binNumber,c=n.binWidth,h=n.color,f=n.stackField,d=n.legend,p=n.columnStyle,g=Object(u.binHistogram)(r,i,c,a,f);e.data(g);var v=Object(s.deepAssign)({},t,{options:{xField:l.HISTOGRAM_X_FIELD,yField:l.HISTOGRAM_Y_FIELD,seriesField:f,isStack:!0,interval:{color:h,style:p}}});return Object(o.interval)(v),d&&f?e.legend(f,d):e.legend(!1),t}function h(t){var e,n=t.options,r=n.xAxis,o=n.yAxis;return Object(s.flow)(Object(i.scale)(((e={})[l.HISTOGRAM_X_FIELD]=r,e[l.HISTOGRAM_Y_FIELD]=o,e)))(t)}function f(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis;return!1===r?e.axis(l.HISTOGRAM_X_FIELD,!1):e.axis(l.HISTOGRAM_X_FIELD,r),!1===i?e.axis(l.HISTOGRAM_Y_FIELD,!1):e.axis(l.HISTOGRAM_Y_FIELD,i),t}function d(t){var e=t.chart,n=t.options.label,i=Object(s.findGeometry)(e,"interval");if(n){var o=n.callback,a=Object(r.__rest)(n,["callback"]);i.label({fields:[l.HISTOGRAM_Y_FIELD],callback:o,cfg:Object(s.transformLabel)(a)})}else i.label(!1);return t}function p(t){return Object(s.flow)(i.theme,Object(a.pattern)("columnStyle"),c,h,f,i.state,d,i.tooltip,i.interaction,i.animation)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r=n(29),i=n(3),o=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}})},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_COLOR",(function(){return r})),n.d(e,"DEFAULT_OPTIONS",(function(){return i}));var r=["#FAAD14","#E8EDF3"],i={percent:.2,color:r,animation:{}}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return c})),n.d(e,"axis",(function(){return h})),n.d(e,"tooltip",(function(){return f})),n.d(e,"legend",(function(){return d})),n.d(e,"adaptor",(function(){return p}));var r=n(9),i=n(36),o=n(142),a=n(3),s=n(190),u=n(801);function l(t){var e=t.chart,n=t.options,r=n.yField,o=n.data,l=n.risingFill,c=n.fallingFill,h=n.tooltip,f=n.stockStyle;e.data(Object(u.getStockData)(o,r));var d=h;return!1!==d&&(d=Object(a.deepAssign)({},{fields:r},d)),Object(i.schema)(Object(a.deepAssign)({},t,{options:{schema:{shape:"candle",color:[l,c],style:f},yField:s.Y_FIELD,seriesField:s.TREND_FIELD,rawFields:r,tooltip:d}})),t}function c(t){var e,n,r=t.chart,i=t.options,u=i.meta,l=i.xAxis,c=i.yAxis,h=i.xField,f=((e={})[h]={type:"timeCat",tickCount:6},e[s.TREND_FIELD]={values:[s.TREND_UP,s.TREND_DOWN]},e),d=Object(a.deepAssign)(f,u,((n={})[h]=Object(a.pick)(l,o.AXIS_META_CONFIG_KEYS),n[s.Y_FIELD]=Object(a.pick)(c,o.AXIS_META_CONFIG_KEYS),n));return r.scale(d),t}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(s.Y_FIELD,!1):e.axis(s.Y_FIELD,i),t}function f(t){var e=t.chart,n=t.options.tooltip;return!1!==n?e.tooltip(n):e.tooltip(!1),t}function d(t){var e=t.chart,n=t.options.legend;return n?e.legend(s.TREND_FIELD,n):!1===n&&e.legend(!1),t}function p(t){Object(a.flow)(r.theme,l,c,h,f,d,r.interaction,r.animation,Object(r.annotation)(),r.slider)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getStockData",(function(){return a}));var r=n(2),i=n(1),o=n(190);function a(t,e){return Object(i.map)(t,(function(t){var n=t&&Object(r.__assign)({},t);if(Object(i.isArray)(e)&&n){var a=e[0],s=e[1],u=e[2],l=e[3];n[o.TREND_FIELD]=n[a]<=n[s]?o.TREND_UP:o.TREND_DOWN,n[o.Y_FIELD]=[n[a],n[s],n[u],n[l]]}return n}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformData",(function(){return o}));var r=n(1),i=n(274),o=function(t,e){var n=t;if(Array.isArray(e)){var o=e[0],a=e[1],s=e[2],u=e[3],l=e[4];n=Object(r.map)(t,(function(t){return t[i.BOX_RANGE]=[t[o],t[a],t[s],t[u],t[l]],t}))}return n}},function(t,e,n){"use strict";function r(t,e,n){return t.length>1?"".concat(e,"_").concat(n):"".concat(e)}function i(t){var e=t.data,n=t.xField,i=t.measureField,o=t.rangeField,a=t.targetField,s=t.layout,u=[],l=[];e.forEach((function(t,e){var s=[t[o]].flat();s.sort((function(t,e){return t-e})),s.forEach((function(r,i){var a,l=0===i?r:s[i]-s[i-1];u.push(((a={rKey:"".concat(o,"_").concat(i)})[n]=n?t[n]:String(e),a[o]=l,a))}));var c=[t[i]].flat();c.forEach((function(o,a){var s;u.push(((s={mKey:r(c,i,a)})[n]=n?t[n]:String(e),s[i]=o,s))}));var h=[t[a]].flat();h.forEach((function(i,o){var s;u.push(((s={tKey:r(h,a,o)})[n]=n?t[n]:String(e),s[a]=i,s))})),l.push(t[o],t[i],t[a])}));var c=Math.min.apply(Math,l.flat(1/0)),h=Math.max.apply(Math,l.flat(1/0));return c=c>0?0:c,"vertical"===s&&u.reverse(),{min:c,max:h,ds:u}}n.r(e),n.d(e,"transformData",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"RAW_FIELDS",(function(){return r})),n.d(e,"DEFAULT_OPTIONS",(function(){return i}));var r=["x","y","r","name","value","path","depth"],i={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}}},function(t,e,n){"use strict";function r(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}n.r(e),n.d(e,"shuffle",(function(){return r})),e.default=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getLiquidData",(function(){return r}));function r(t){return[{percent:t,type:"liquid"}]}},function(t,e,n){"use strict";n.r(e),n.d(e,"getNodeWidthRatio",(function(){return u})),n.d(e,"getNodePaddingRatio",(function(){return l})),n.d(e,"transformToViewsData",(function(){return c}));var r=n(2),i=n(3),o=n(373),a=n(1825),s=n(1826);function u(t,e,n){return Object(i.isRealNumber)(t)?t/n:e}function l(t,e,n){return Object(i.isRealNumber)(t)?t/n:e}function c(t,e,n){var c,h=t.dataType,f=t.data,d=t.sourceField,p=t.targetField,g=t.weightField,v=t.nodeAlign,m=t.nodeSort,y=t.nodePadding,b=t.nodePaddingRatio,_=t.nodeWidth,x=t.nodeWidthRatio,O=t.nodeDepth,w=t.rawFields,S=void 0===w?[]:w;c=function(t){return"node-link"===t}(h)?f:Object(o.transformDataToNodeLinkData)(Object(a.cutoffCircle)(f,d,p),d,p,g,S);var C=Object(s.sankeyLayout)({nodeAlign:v,nodePadding:l(y,b,n),nodeWidth:u(_,x,e),nodeSort:m,nodeDepth:O},c),E=C.nodes,T=C.links;return{nodes:E.map((function(t){return Object(r.__assign)(Object(r.__assign)({},Object(i.pick)(t,Object(r.__spreadArray)(["x","y","name"],S,!0))),{isNode:!0})})),edges:T.map((function(t){return Object(r.__assign)(Object(r.__assign)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},Object(i.pick)(t,Object(r.__spreadArray)(["x","y","value"],S,!0))),{isNode:!1})}))}}},function(t,e,n){"use strict";n.r(e),e.default=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTileMethod",(function(){return l})),n.d(e,"treemap",(function(){return c}));var r=n(1),i=n(574),o=n(924),a=n(323),s=n(205),u={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(t,e){return e.value-t.value},ratio:.5*(1+Math.sqrt(5))};function l(t,e){return"treemapSquarify"===t?i[t].ratio(e):i[t]}function c(t,e){var n,i=(e=Object(r.assign)({},u,e)).as;if(!Object(r.isArray)(i)||2!==i.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=Object(s.getField)(e)}catch(t){console.warn(t)}var c=l(e.tile,e.ratio),h=function(t){return o.default().tile(c).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(a.default(t).sum((function(t){return e.ignoreParentValue&&t.children?0:t[n]})).sort(e.sort))}(t),f=i[0],d=i[1];return h.each((function(t){t[f]=[t.x0,t.x1,t.x1,t.x0],t[d]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===i.indexOf(e)&&delete t[e]}))})),Object(s.getAllNodes)(h)}},function(t,e,n){"use strict";n.r(e),function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.default=n}.call(this,n(281))},function(t,e,n){"use strict";n.r(e);var r=n(813),i=n(812);e.default=function(t){return null!=t&&Object(i.default)(t.length)&&!Object(r.default)(t)}},function(t,e,n){"use strict";n.r(e);e.default=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){"use strict";n.r(e);var r=n(292),i=n(814);e.default=function(t){if(!Object(i.default)(t))return!1;var e=Object(r.default)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){"use strict";n.r(e),e.default=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){"use strict";n.r(e);var r=n(1844),i=n(1851),o=n(811);e.default=function(t){return Object(o.default)(t)?Object(r.default)(t):Object(i.default)(t)}},function(t,e,n){"use strict";n.r(e);var r=n(1848),i=n(1847),o=n(977),a=o.default&&o.default.isTypedArray,s=a?Object(i.default)(a):r.default;e.default=s},function(t,e,n){"use strict";n.r(e),e.default=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){"use strict";n.r(e);var r=n(1872),i=n(1878),o=n(1880),a=n(1881),s=n(1882);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++ec))return!1;var f=u.get(t),d=u.get(e);if(f&&d)return f==e&&d==t;var p=-1,g=!0,v=2&n?new r.default:void 0;for(u.set(t,e),u.set(e,t);++p-1?this.childNodes.splice(e,1):null}}]),n}(n(508).default)},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLVideoElement",(function(){return l}));var r=n(12),i=n(11),o=n(25),a=n(27),s=n(15);function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var l=function(t){Object(o.default)(n,t);var e=u(n);function n(){return Object(i.default)(this,n),e.call(this,"video")}return Object(r.default)(n)}(n(827).HTMLMediaElement)},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLMediaElement",(function(){return l}));var r=n(11),i=n(12),o=n(25),a=n(27),s=n(15);function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Object(s.default)(t);if(e){var i=Object(s.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(a.default)(this,n)}}var l=function(t){Object(o.default)(n,t);var e=u(n);function n(t){return Object(r.default)(this,n),e.call(this,t)}return Object(i.default)(n,[{key:"addTextTrack",value:function(){}},{key:"captureStream",value:function(){}},{key:"fastSeek",value:function(){}},{key:"load",value:function(){}},{key:"pause",value:function(){}},{key:"play",value:function(){}}]),n}(n(361).HTMLElement)},function(t,e,n){"use strict";n.r(e),n.d(e,"Image",(function(){return s}));var r=n(12),i=n(11),o=n(245),a=n(154),s=Object(r.default)((function t(){Object(i.default)(this,t);var e=Object(o.getCanvas)(),n=e.createImage&&e.createImage()||{};return"tagName"in n||(n.tagName="IMG",n.__proto__=t.prototype),a.parentNode(n),a.classList(n),Object.assign(n,{addEventListener:function(t,e){n["on".concat(t)]=e.bind(n)},removeEventListener:function(t){n["on".concat(t)]=null}}),n}))},function(t,e,n){"use strict";n.r(e),n.d(e,"$location",(function(){return r}));var r={href:"",protocol:"",host:""}},function(t,e,n){"use strict";n.r(e),n.d(e,"buildMapping",(function(){return a})),n.d(e,"buildIconMaping",(function(){return s})),n.d(e,"nextPowOfTwo",(function(){return l}));var r=n(30);function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);no&&(p=0,d++),s[t]={x:p,y:f+30*d,width:30,height:30,advance:r},p+=30}}));var g=r+2*i;return{mapping:s,xOffset:p,yOffset:f+d*g,canvasHeight:l(f+(d+1)*g)}}function s(t,e,n){var r,o=0,a=0,s=0,c=[],h={},f=i(t);try{for(f.s();!(r=f.n()).done;){var d=r.value;if(!h[d.id]){var p=d.size;o+p+e>n&&(u(h,c,a),o=0,a=s+a+e,s=0,c=[]),c.push({icon:d,xOffset:o}),o=o+p+e,s=Math.max(s,p)}}}catch(t){f.e(t)}finally{f.f()}return c.length>0&&u(h,c,a),{mapping:h,canvasHeight:l(s+a+e)}}function u(t,e,n){var o,a=i(e);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=s.icon,l=s.xOffset;t[u.id]=Object(r.default)(Object(r.default)({},u),{},{x:l,y:n,image:u.image,width:u.width,height:u.height})}}catch(t){a.e(t)}finally{a.f()}}function l(t){return Math.pow(2,Math.ceil(Math.log2(t)))}},function(t,e,n){"use strict";n.r(e),n.d(e,"createRendererContainer",(function(){return o})),n.d(e,"isEventCrash",(function(){return a}));var r=n(18),i=0;function o(t){if(r.isMini)return null;var e=t;if("string"==typeof t&&(e=document.getElementById(t)),e){var n=document.createElement("div");return n.style.cssText+="\n position: absolute;\n z-index:2;\n height: 100%;\n width: 100%;\n pointer-events: none;\n ",n.id="l7-scene-".concat(i++),n.classList.add("l7-scene"),e.appendChild(n),n}return null}function a(t){var e,n,r=!0;return null==t||null===(e=t.target)||void 0===e||null===(n=e.path)||void 0===n||n.map((function(t){var e;null!=t&&t.classList&&(null==t||null===(e=t.classList)||void 0===e||e.forEach((function(t){"l7-marker"!==t&&"l7-popup"!==t||(r=!1)})))})),r}},function(t,e,n){"use strict";n.r(e),n.d(e,"SimpleMapCoord",(function(){return a}));var r=n(11),i=n(12),o=n(6),a=function(){function t(e){Object(r.default)(this,t),Object(o.default)(this,"size",1e4),this.size=e||1e4}return Object(i.default)(t,[{key:"setSize",value:function(t){this.size=t}},{key:"getSize",value:function(){return[this.size,this.size]}},{key:"mercatorXfromLng",value:function(t){return(180+t)/360*this.size}},{key:"mercatorYfromLat",value:function(t){return(1-(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360)*this.size}},{key:"lngFromMercatorX",value:function(t){return t/this.size*360-180}},{key:"latFromMercatorY",value:function(t){var e=180-360*(1-t/this.size);return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}},{key:"project",value:function(t){return[this.mercatorXfromLng(t[0]),this.mercatorYfromLat(t[1])]}},{key:"unproject",value:function(t){return[this.lngFromMercatorX(t[0]),this.latFromMercatorY(t[1])]}}]),t}()},function(t,e,n){"use strict";t.exports=function(){function t(t){var r=[];return t.AMapUI&&r.push(e(t.AMapUI)),t.Loca&&r.push(n(t.Loca)),Promise.all(r)}function e(t){return new Promise((function(e,n){var i=[];if(t.plugins)for(var u=0;ug?e.coordinateSystemService.setCoordinateSystem(A.CoordinateSystem.P20_OFFSET):e.coordinateSystemService.setCoordinateSystem(A.CoordinateSystem.P20),e.cameraChangedCallback(e.viewport)}}))}var e;return Object(O.default)(t,[{key:"setBgColor",value:function(t){this.bgColor=t}},{key:"addMarkerContainer",value:function(){var t=this.map.getContainer();if(null!==t){var e=t.getElementsByClassName("amap-maps")[0];this.markerContainer=j.DOM.create("div","l7-marker-container",e)}}},{key:"getMarkerContainer",value:function(){return this.markerContainer}},{key:"on",value:function(t,e){-1!==A.MapServiceEvent.indexOf(t)?this.eventEmitter.on(t,e):this.map.on(B[t]||t,e)}},{key:"off",value:function(t,e){-1!==A.MapServiceEvent.indexOf(t)?this.eventEmitter.off(t,e):this.map.off(B[t]||t,e)}},{key:"getContainer",value:function(){return this.map.getContainer()}},{key:"getMapCanvasContainer",value:function(){var t;return null===(t=this.map.getContainer())||void 0===t?void 0:t.getElementsByClassName("amap-maps")[0]}},{key:"getSize",value:function(){var t=this.map.getSize();return[t.getWidth(),t.getHeight()]}},{key:"getType",value:function(){return"amap"}},{key:"getZoom",value:function(){return this.map.getZoom()-1}},{key:"setZoom",value:function(t){return this.map.setZoom(t+1)}},{key:"getCenter",value:function(t){if(null!=t&&t.padding){var e=this.getCenter(),n=Object(D.toPaddingOptions)(t.padding),r=this.lngLatToPixel([e.lng,e.lat]),i=[(n.right-n.left)/2,(n.bottom-n.top)/2];return this.pixelToLngLat([r.x-i[0],r.y-i[1]])}var o=this.map.getCenter();return{lng:o.getLng(),lat:o.getLat()}}},{key:"setCenter",value:function(t,e){if(null!=e&&e.padding){var n=Object(D.toPaddingOptions)(e.padding),r=this.lngLatToPixel(t),i=[(n.right-n.left)/2,(n.bottom-n.top)/2],o=this.pixelToLngLat([r.x+i[0],r.y+i[1]]);this.map.setCenter([o.lng,o.lat])}else this.map.setCenter(t)}},{key:"getPitch",value:function(){return this.map.getPitch()}},{key:"getRotation",value:function(){return 360-this.map.getRotation()}},{key:"getBounds",value:function(){var t=this.map.getBounds().toBounds(),e=t.getNorthEast(),n=t.getSouthWest(),r=this.getCenter(),i=r.lng>e.getLng()||r.lng0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.map.panBy(t,e)}},{key:"fitBounds",value:function(t){this.map.setBounds(new AMap.Bounds([t[0][0],t[0][1],t[1][0],t[1][1]]))}},{key:"setZoomAndCenter",value:function(t,e){this.map.setZoomAndCenter(t+1,e)}},{key:"setMapStyle",value:function(t){this.map.setMapStyle(this.getMapStyleValue(t))}},{key:"setMapStatus",value:function(t){this.map.setStatus(t)}},{key:"getMapStyleConfig",value:function(){return N.MapTheme}},{key:"getMapStyleValue",value:function(t){return this.getMapStyleConfig()[t]||t}},{key:"getMapStyle",value:function(){return this.map.getMapStyle()}},{key:"pixelToLngLat",value:function(t){var e=this.map.pixelToLngLat(new AMap.Pixel(t[0],t[1]));return{lng:e.getLng(),lat:e.getLat()}}},{key:"lngLatToPixel",value:function(t){var e=this.map.lnglatToPixel(new AMap.LngLat(t[0],t[1]));return{x:e.getX(),y:e.getY()}}},{key:"containerToLngLat",value:function(t){var e=new AMap.Pixel(t[0],t[1]),n=this.map.containerToLngLat(e);return{lng:null==n?void 0:n.getLng(),lat:null==n?void 0:n.getLat()}}},{key:"lngLatToContainer",value:function(t){var e=new AMap.LngLat(t[0],t[1]),n=this.map.lngLatToContainer(e);return{x:n.getX(),y:n.getY()}}},{key:"lngLatToCoord",value:function(t){var e=this.map.lngLatToGeodeticCoord(t);return[e.x,-e.y]}},{key:"lngLatToMercator",value:function(t,e){return{x:0,y:0,z:0}}},{key:"getModelMatrix",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[1,1,1],i=this.viewport.projectFlat(t),o=I.mat4.create();return I.mat4.translate(o,o,I.vec3.fromValues(i[0],i[1],e)),I.mat4.scale(o,o,I.vec3.fromValues(r[0],r[1],r[2])),I.mat4.rotateX(o,o,n[0]),I.mat4.rotateY(o,o,n[1]),I.mat4.rotateZ(o,o,n[2]),o}},{key:"init",value:(e=Object(b.default)(E.a.mark((function t(){var e,n,r,i,o,a,s,u,l,c,h,f,d,p,g=this;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.config,n=e.id,r=e.style,i=void 0===r?"light":r,o=e.minZoom,a=void 0===o?0:o,s=e.maxZoom,u=void 0===s?18:s,l=e.token,c=void 0===l?"15cd8a57710d40c9b7c0e3cc120f1200":l,h=e.mapInstance,f=e.plugin,d=void 0===f?[]:f,p=Object(y.default)(e,F),t.next=3,new Promise((function(t){var e=function(){if(h)g.map=h,g.$mapContainer=g.map.getContainer(),setTimeout((function(){g.map.on("camerachange",g.handleCameraChanged),t()}),30);else{g.$mapContainer=g.creatMapContainer(n);var e=Object(m.default)({mapStyle:g.getMapStyleValue(i),zooms:[a,u],viewMode:"3D"},p);e.zoom&&(e.zoom+=1);var r=new AMap.Map(g.$mapContainer,e);r.on("camerachange",g.handleCameraChanged),r.on("camerachange",(function(){setTimeout((function(){return g.handleAfterMapChange()}))})),g.map=r,setTimeout((function(){t()}),10)}};V||h?V&&window.AMap||h?e():U.push(e):("15cd8a57710d40c9b7c0e3cc120f1200"===c&&console.warn("%c".concat(g.configService.getSceneWarninfo("MapToken"),"!"),"color: #873bf4;font-weigh:900;font-size: 16px;"),V=!0,d.push("Map3D"),M.a.load({key:c,version:"1.4.15",plugins:d}).then((function(){e(),U.length&&(U.forEach((function(t){return t()})),U=[])})).catch((function(t){throw new Error(t)})))}));case 3:this.viewport=new R.default;case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"meterToCoord",value:function(t,e){var n=AMap.GeometryUtil.distance(Object(g.default)(AMap.LngLat,Object(v.default)(t)),Object(g.default)(AMap.LngLat,Object(v.default)(e))),r=this.lngLatToCoord(t),i=Object(p.default)(r,2),o=i[0],a=i[1],s=this.lngLatToCoord(e),u=Object(p.default)(s,2),l=u[0],c=u[1];return Math.sqrt(Math.pow(o-l,2)+Math.pow(a-c,2))/n}},{key:"updateView",value:function(t){}},{key:"getOverlayContainer",value:function(){}},{key:"exportMap",value:function(t){var e,n=null===(e=this.getContainer())||void 0===e?void 0:e.getElementsByClassName("amap-layer")[0];return"jpg"===t?null==n?void 0:n.toDataURL("image/jpeg"):null==n?void 0:n.toDataURL("image/png")}},{key:"emit",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;this.stop();var n=this.transform,r=!1,i=!1,o=!1;return void 0!==t.zoom&&n.zoom!==+t.zoom&&(r=!0,n.zoom=+t.zoom),void 0!==t.center&&(n.center=f.default.convert(t.center)),void 0!==t.bearing&&n.bearing!==+t.bearing&&(i=!0,n.bearing=+t.bearing),void 0!==t.pitch&&n.pitch!==+t.pitch&&(o=!0,n.pitch=+t.pitch),void 0===t.padding||n.isPaddingEqual(t.padding)||(n.padding=t.padding),this.emit("movestart",new v.Event("movestart",e)),this.emit("move",new v.Event("move",e)),r&&(this.emit("zoomstart",new v.Event("zoomstart",e)),this.emit("zoom",new v.Event("zoom",e)),this.emit("zoomend",new v.Event("zoomend",e))),i&&(this.emit("rotatestart",new v.Event("rotatestart",e)),this.emit("rotate",new v.Event("rotate",e)),this.emit("rotateend",new v.Event("rotateend",e))),o&&(this.emit("pitchstart",new v.Event("pitchstart",e)),this.emit("pitch",new v.Event("pitch",e)),this.emit("pitchend",new v.Event("pitchend",e))),this.emit("moveend",new v.Event("moveend",e))}},{key:"easeTo",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;(!1===(e=Object(h.merge)({offset:[0,0],duration:500,easing:m.ease},e)).animate||!e.essential&&Object(m.prefersReducedMotion)())&&(e.duration=0);var r=this.transform,i=this.getZoom(),o=this.getBearing(),a=this.getPitch(),s=this.getPadding(),u=e.zoom?+e.zoom:i,l=e.bearing?this.normalizeBearing(e.bearing,o):o,c=e.pitch?+e.pitch:a,d=e.padding?e.padding:r.padding,g=p.default.convert(e.offset),v=r.centerPoint.add(g),y=r.pointLocation(v),b=f.default.convert(e.center||y);this.normalizeCenter(b);var _,x,O=r.project(y),w=r.project(b).sub(O),S=r.zoomScale(u-i);e.around&&(_=f.default.convert(e.around),x=r.locationPoint(_));var C={moving:this.moving,zooming:this.zooming,rotating:this.rotating,pitching:this.pitching};return this.zooming=this.zooming||u!==i,this.rotating=this.rotating||o!==l,this.pitching=this.pitching||c!==a,this.padding=!r.isPaddingEqual(d),this.easeId=e.easeId,this.prepareEase(n,e.noMoveStart,C),clearTimeout(this.easeEndTimeoutID),this.ease((function(e){if(t.zooming&&(r.zoom=Object(m.interpolate)(i,u,e)),t.rotating&&t.rotateEnabled&&(r.bearing=Object(m.interpolate)(o,l,e)),t.pitching&&t.pitchEnabled&&(r.pitch=Object(m.interpolate)(a,c,e)),t.padding&&(r.interpolatePadding(s,d,e),v=r.centerPoint.add(g)),_)r.setLocationAtPoint(_,x);else{var h=r.zoomScale(r.zoom-i),f=u>i?Math.min(2,S):Math.max(.5,S),p=Math.pow(f,1-e),y=r.unproject(O.add(w.mult(e*p)).mult(h));r.setLocationAtPoint(r.renderWorldCopies?y.wrap():y,v)}t.fireMoveEvents(n)}),(function(e){t.afterEase(n,e)}),e),this}},{key:"flyTo",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(!e.essential&&Object(m.prefersReducedMotion)()){var r=Object(m.pick)(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(r,n)}this.stop(),e=Object(h.merge)({offset:[0,0],speed:1.2,curve:1.42,easing:m.ease},e);var i=this.transform,o=this.getZoom(),a=this.getBearing(),s=this.getPitch(),u=this.getPadding(),l=e.zoom?Object(m.clamp)(+e.zoom,i.minZoom,i.maxZoom):o,c=e.bearing?this.normalizeBearing(e.bearing,a):a,d=e.pitch?+e.pitch:s,g="padding"in e?e.padding:i.padding,v=i.zoomScale(l-o),y=p.default.convert(e.offset),b=i.centerPoint.add(y),_=i.pointLocation(b),x=f.default.convert(e.center||_);this.normalizeCenter(x);var O=i.project(_),w=i.project(x).sub(O),S=e.curve,C=Math.max(i.width,i.height),E=C/v,T=w.mag();if("minZoom"in e){var M=Object(m.clamp)(Math.min(e.minZoom,o,l),i.minZoom,i.maxZoom),A=C/i.zoomScale(M-o);S=Math.sqrt(A/T*2)}var j=S*S;function I(t){var e=(E*E-C*C+(t?-1:1)*j*j*T*T)/(2*(t?E:C)*j*T);return Math.log(Math.sqrt(e*e+1)-e)}function k(t){return(Math.exp(t)-Math.exp(-t))/2}function P(t){return(Math.exp(t)+Math.exp(-t))/2}function L(t){return k(t)/P(t)}var D=I(0),R=function(t){return P(D)/P(D+S*t)},N=function(t){return C*((P(D)*L(D+S*t)-k(D))/j)/T},F=(I(1)-D)/S;if(Math.abs(T)<1e-6||!isFinite(F)){if(Math.abs(C-E)<1e-6)return this.easeTo(e,n);var B=Ee.maxDuration&&(e.duration=0),this.zooming=!0,this.rotating=a!==c,this.pitching=d!==s,this.padding=!i.isPaddingEqual(g),this.prepareEase(n,!1),this.ease((function(e){var r=e*F,h=1/R(r);i.zoom=1===e?l:o+i.scaleZoom(h),t.rotating&&(i.bearing=Object(m.interpolate)(a,c,e)),t.pitching&&(i.pitch=Object(m.interpolate)(s,d,e)),t.padding&&(i.interpolatePadding(u,g,e),b=i.centerPoint.add(y));var f=1===e?x:i.unproject(O.add(w.mult(N(r))).mult(h));i.setLocationAtPoint(i.renderWorldCopies?f.wrap():f,b),t.fireMoveEvents(n)}),(function(){return t.afterEase(n)}),e),this}},{key:"fitScreenCoordinates",value:function(t,e,n,r,i){return this.fitInternal(this.cameraForBoxAndBearing(this.transform.pointLocation(p.default.convert(t)),this.transform.pointLocation(p.default.convert(e)),n,r),r,i)}},{key:"stop",value:function(t,e){if(this.easeFrameId&&(this.cancelRenderFrame(this.easeFrameId),delete this.easeFrameId,delete this.onEaseFrame),this.onEaseEnd){var n=this.onEaseEnd;delete this.onEaseEnd,n.call(this,e)}return this}},{key:"normalizeBearing",value:function(t,e){t=Object(m.wrap)(t,-180,180);var n=Math.abs(t-e);return Math.abs(t-360-e)180?-360:n<-180?360:0}}},{key:"fireMoveEvents",value:function(t){this.emit("move",new v.Event("move",t)),this.zooming&&this.emit("zoom",new v.Event("zoom",t)),this.rotating&&this.emit("rotate",new v.Event("rotate",t)),this.pitching&&this.emit("rotate",new v.Event("pitch",t))}},{key:"prepareEase",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.moving=!0,e||n.moving||this.emit("movestart",new v.Event("movestart",t)),this.zooming&&!n.zooming&&this.emit("zoomstart",new v.Event("zoomstart",t)),this.rotating&&!n.rotating&&this.emit("rotatestart",new v.Event("rotatestart",t)),this.pitching&&!n.pitching&&this.emit("pitchstart",new v.Event("pitchstart",t))}},{key:"afterEase",value:function(t,e){if(!this.easeId||!e||this.easeId!==e){delete this.easeId;var n=this.zooming,r=this.rotating,i=this.pitching;this.moving=!1,this.zooming=!1,this.rotating=!1,this.pitching=!1,this.padding=!1,n&&this.emit("zoomend",new v.Event("zoomend",t)),r&&this.emit("rotateend",new v.Event("rotateend",t)),i&&this.emit("pitchend",new v.Event("pitchend",t)),this.emit("moveend",new v.Event("moveend",t))}}},{key:"ease",value:function(t,e,n){!1===n.animate||0===n.duration?(t(1),e()):(this.easeStart=Object(m.now)(),this.easeOptions=n,this.onEaseFrame=t,this.onEaseEnd=e,this.easeFrameId=this.requestRenderFrame(this.renderFrameCallback))}},{key:"cameraForBoxAndBearing",value:function(t,e,n,r){var i={top:0,bottom:0,right:0,left:0};if("number"==typeof(r=Object(h.merge)({padding:i,offset:[0,0],maxZoom:this.transform.maxZoom},r)).padding){var o=r.padding;r.padding={top:o,bottom:o,right:o,left:o}}r.padding=Object(h.merge)(i,r.padding);var a=this.transform,s=a.padding,u=a.project(f.default.convert(t)),l=a.project(f.default.convert(e)),c=u.rotate(-n*Math.PI/180),d=l.rotate(-n*Math.PI/180),g=new p.default(Math.max(c.x,d.x),Math.max(c.y,d.y)),v=new p.default(Math.min(c.x,d.x),Math.min(c.y,d.y)),m=g.sub(v),y=(a.width-(s.left+s.right+r.padding.left+r.padding.right))/m.x,b=(a.height-(s.top+s.bottom+r.padding.top+r.padding.bottom))/m.y;if(!(b<0||y<0)){var _=Math.min(a.scaleZoom(a.scale*Math.min(y,b)),r.maxZoom),x=p.default.convert(r.offset),O=(r.padding.left-r.padding.right)/2,w=(r.padding.top-r.padding.bottom)/2,S=new p.default(x.x+O,x.y+w).mult(a.scale/a.zoomScale(_));return{center:a.unproject(u.add(l).div(2).sub(S)),zoom:_,bearing:n}}}},{key:"fitInternal",value:function(t,e,n){return t?(delete(e=Object(h.merge)(t,e)).padding,e.linear?this.easeTo(e,n):this.flyTo(e,n)):this}}]),n}(c.EventEmitter)},function(t,e,n){"use strict";n.r(e);var r=n(46),i=n(11),o=n(12),a=n(6),s=n(18),u=n(67),l=n(71),c=n(135),h=n(1989),f=n(1990),d=n(1991),p=n(84),g=n(1992),v=n(1993),m=n(1994),y=n(1995),b=n(866),_=n(1996),x=n(1997),O=n(1998),w=n(1999),S=n(2e3),C=n(2001),E=n(2002),T=n(627);function M(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:0,e=this.currentlyRunning=this.queue;this.queue=[];var n,r=o(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!i.cancelled&&(i.callback(t),this.cleared))break}}catch(t){r.e(t)}finally{r.f()}this.cleared=!1,this.currentlyRunning=!1}},{key:"clear",value:function(){this.currentlyRunning&&(this.cleared=!0),this.queue=[]}}]),t}();e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(70),i=n(50);e.default=function(t,e,n,o,a){var s=t.type,u=[];if(t.required||!t.required&&o.hasOwnProperty(t.field)){if(Object(i.isEmptyValue)(e,s)&&!t.required)return n();r.default.required(t,e,o,u,a,s),Object(i.isEmptyValue)(e,s)||r.default.type(t,e,o,u,a)}n(u)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTime",(function(){return s}));var r=n(61),i=n(136),o=n(580),a=n(387);function s(){return(new Date).getTime()}var u=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return Object(r.__extends)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=s()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next;r.step(e,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Object(o.default)((function e(){t._running&&(Object(o.default)(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=s(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=s(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=s()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new a.default(t,e.loop);return this.addAnimator(n),n},e}(i.default);e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"seriesStyleTask",(function(){return p})),n.d(e,"dataStyleTask",(function(){return v})),n.d(e,"dataColorPaletteTask",(function(){return m}));var r=n(0),i=n(235),o=n(732),a=n(731),s=n(57),u=n(10),l=Object(u.makeInner)(),c={itemStyle:Object(i.default)(o.ITEM_STYLE_KEY_MAP,!0),lineStyle:Object(i.default)(a.LINE_STYLE_KEY_MAP,!0)},h={lineStyle:"stroke",itemStyle:"fill"};function f(t,e){var n=t.visualStyleMapper||c[e];return n||(console.warn("Unknown style type '"+e+"'."),c.itemStyle)}function d(t,e){var n=t.visualDrawType||h[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var p={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=t.getModel(i),a=f(t,i)(o),s=o.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var u=d(t,i),l=a[u],c=Object(r.isFunction)(l)?l:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[u]||c||h){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[u]||(a[u]=p,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(r.isFunction)(a.fill)?p:a.fill,a.stroke="auto"===a.stroke||Object(r.isFunction)(a.stroke)?p:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",u),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),o=Object(r.extend)({},a);o[u]=c(i),e.setItemVisual(n,"style",o)}}}},g=new s.default,v={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=f(t,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){g.option=n[i];var s=o(g),u=t.ensureUniqueItemVisual(e,"style");Object(r.extend)(u,s),g.option.decal&&(t.setItemVisual(e,"decal",g.option.decal),g.option.decal.dirty=!0),a in s&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},m={performRawSeries:!0,overallReset:function(t){var e=Object(r.createHashMap)();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),l(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=l(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=d(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t];if(i.getItemVisual(a,"colorFromPalette")){var u=i.ensureUniqueItemVisual(a,"style"),l=n.getName(t)||t+"",c=n.count();u[s]=e.getColorFromPalette(l,o,c)}}))}}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"createAxisLabels",(function(){return u})),n.d(e,"createAxisTicks",(function(){return l})),n.d(e,"calculateCategoryInterval",(function(){return p}));var r=n(0),i=n(55),o=n(10),a=n(80),s=Object(o.makeInner)();function u(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=c(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=Object(a.makeLabelFormatter)(t);return{labels:r.map(e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function l(t,e){return"category"===t.type?function(t,e){var n,i,o=h(t,"ticks"),s=Object(a.getOptionCategoryInterval)(e),u=f(o,s);if(u)return u;e.get("show")&&!t.scale.isBlank()||(n=[]);if(r.isFunction(s))n=v(t,s,!0);else if("auto"===s){var l=c(t,t.getLabelModel());i=l.labelCategoryInterval,n=r.map(l.labels,(function(t){return t.tickValue}))}else n=g(t,i=s,!0);return d(o,s,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:r.map(t.scale.getTicks(),(function(t){return t.value}))}}function c(t,e){var n,i,o=h(t,"labels"),u=Object(a.getOptionCategoryInterval)(e),l=f(o,u);return l||(r.isFunction(u)?n=v(t,u):(i="auto"===u?function(t){var e=s(t).autoInterval;return null!=e?e:s(t).autoInterval=t.calculateCategoryInterval()}(t):u,n=g(t,i)),d(o,u,{labels:n,labelCategoryInterval:i}))}function h(t,e){return s(t)[e]||(s(t)[e]=[])}function f(t,e){for(var n=0;n40&&(c=Math.max(1,Math.floor(l/40)));for(var h=u[0],f=t.dataToCoord(h+1)-t.dataToCoord(h),d=Math.abs(f*Math.cos(r)),p=Math.abs(f*Math.sin(r)),g=0,v=0;h<=u[1];h+=c){var m,y,b=i.getBoundingRect(n({value:h}),e.font,"center","top");m=1.3*b.width,y=1.3*b.height,g=Math.max(g,m,7),v=Math.max(v,y,7)}var _=g/d,x=v/p;isNaN(_)&&(_=1/0),isNaN(x)&&(x=1/0);var O=Math.max(0,Math.floor(Math.min(_,x))),w=s(t.model),S=t.getExtent(),C=w.lastAutoInterval,E=w.lastTickCount;return null!=C&&null!=E&&Math.abs(C-O)<=1&&Math.abs(E-l)<=1&&C>O&&w.axisExtent0===S[0]&&w.axisExtent1===S[1]?O=C:(w.lastTickCount=l,w.lastAutoInterval=O,w.axisExtent0=S[0],w.axisExtent1=S[1]),O}function g(t,e,n){var r=Object(a.makeLabelFormatter)(t),i=t.scale,o=i.getExtent(),s=t.getLabelModel(),u=[],l=Math.max((e||0)+1,1),c=o[0],h=i.count();0!==c&&l>1&&h/l>2&&(c=Math.round(Math.ceil(c/l)*l));var f=Object(a.shouldShowAllLabels)(t),d=s.get("showMinLabel")||f,p=s.get("showMaxLabel")||f;d&&c!==o[0]&&v(o[0]);for(var g=c;g<=o[1];g+=l)v(g);function v(t){var e={value:t};u.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return p&&g-l!==o[1]&&v(o[1]),u}function v(t,e,n){var i=t.scale,o=Object(a.makeLabelFormatter)(t),s=[];return r.each(i.getTicks(),(function(t){var r=i.getLabel(t),a=t.value;e(t.value,r)&&s.push(n?a:{formattedLabel:o(t),rawLabel:r,tickValue:a})})),s}},function(t,e,n){"use strict";n.r(e);var r=n(61),i=n(0),o=n(160),a=n(136),s=n(223),u=n(262),l=n(37),c=n(105),h=n(104);function f(t,e,n){var r=h.platformApi.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}var d=function(t){function e(e,n,r){var a,s=t.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,r=r||o.devicePixelRatio,"string"==typeof e?a=f(e,n,r):i.isObject(e)&&(e=(a=e).id),s.id=e,s.dom=a;var u=a.style;return u&&(i.disableUserSelect(a),a.onselectstart=function(){return!1},u.padding="0",u.margin="0",u.borderWidth="0"),s.painter=n,s.dpr=r,s}return Object(r.__extends)(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=f("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,u=new l.default(0,0,0,0);function h(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new l.default(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,r=1/0,i=0,c=0;c=a)}}for(var f=this.__startIndex;f=0&&(r=v)}}})),r){e.d=!1;var l=g(s,n);return r.replace(o,l)}}(t,e,n))y.push(M);else if(!h)return}else if(!h)return;for(var b={},_=0;_0})).length)return g(b,n)+" "+i[0]+" both"}for(var T in b){var M;(M=E(b[T]))&&y.push(M)}if(y.length){var A=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+A]={animation:y.join(",")},e.class=A}}},function(t,e,n){"use strict";n.r(e),n.d(e,"cartesian2DDimensions",(function(){return u}));var r=n(4),i=n(37),o=n(1433),a=n(44),s=n(20),u=["x","y"];function l(t){return"interval"===t.type||"time"===t.type}var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=u,e}return Object(r.__extends)(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(l(t)&&l(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),s=n[1]-n[0],u=r[1]-r[0];if(s&&u){var c=(o[0]-i[0])/s,h=(o[1]-i[1])/u,f=i[0]-n[0]*c,d=i[1]-r[0]*h,p=this._transform=[c,0,0,h,f,d];this._invTransform=Object(a.invert)([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),o=this.getArea(),a=new i.default(n[0],n[1],r[0]-n[0],r[1]-n[1]);return o.intersect(a)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Object(s.applyTransform)(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Object(s.applyTransform)(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),o=Math.max(t[0],t[1])-n,a=Math.max(e[0],e[1])-r;return new i.default(n,r,o,a)},e}(o.default);e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"geo2DDimensions",(function(){return c}));var r=n(4),i=n(0),o=n(37),a=n(350),s=n(203),u=n(10),l={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},c=["lng","lat"],h=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.dimensions=c,o.type="geo",o._nameCoordMap=i.createHashMap(),o.map=n;var a,u=r.projection,h=s.default.load(n,r.nameMap,r.nameProperty),f=s.default.getGeoResource(n),d=(o.resourceType=f?f.type:null,o.regions=h.regions),p=l[f.type];if(o._regionsMap=h.regionsMap,o.regions=h.regions,o.projection=u,u)for(var g=0;g=0?r+=g:r-=g:_>=0?r-=g:r+=g}return r}function d(t,e){var n=[],a=r.quadraticSubdivide,s=[[],[],[]],u=[[],[]],l=[];e/=2,t.eachEdge((function(t,r){var c=t.getLayout(),h=t.getVisual("fromSymbol"),d=t.getVisual("toSymbol");c.__original||(c.__original=[i.clone(c[0]),i.clone(c[1])],c[2]&&c.__original.push(i.clone(c[2])));var p=c.__original;if(null!=c[2]){if(i.copy(s[0],p[0]),i.copy(s[1],p[2]),i.copy(s[2],p[1]),h&&"none"!==h){var g=Object(o.getSymbolSize)(t.node1),v=f(s,p[0],g*e);a(s[0][0],s[1][0],s[2][0],v,n),s[0][0]=n[3],s[1][0]=n[4],a(s[0][1],s[1][1],s[2][1],v,n),s[0][1]=n[3],s[1][1]=n[4]}if(d&&"none"!==d){g=Object(o.getSymbolSize)(t.node2),v=f(s,p[1],g*e);a(s[0][0],s[1][0],s[2][0],v,n),s[1][0]=n[1],s[2][0]=n[2],a(s[0][1],s[1][1],s[2][1],v,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(u[0],p[0]),i.copy(u[1],p[1]),i.sub(l,u[1],u[0]),i.normalize(l,l),h&&"none"!==h){g=Object(o.getSymbolSize)(t.node1);i.scaleAndAdd(u[0],u[0],l,g*e)}if(d&&"none"!==d){g=Object(o.getSymbolSize)(t.node2);i.scaleAndAdd(u[1],u[1],l,-g*e)}i.copy(c[0],u[0]),i.copy(c[1],u[1])}}))}},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n(42),o=n(257),a=n(0),s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={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}}},e}(i.default);Object(a.mixin)(s,o.AxisModelCommonMixin.prototype),e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"BACKGROUND_STYLE",(function(){return r})),n.d(e,"LINE_STYLE",(function(){return i})),n.d(e,"AREA_STYLE",(function(){return o}));var r={opacity:0},i={stroke:"#C5C5C5",strokeOpacity:.85},o={fill:"#CACED4",opacity:.85}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_HANDLER_STYLE",(function(){return o})),n.d(e,"Handler",(function(){return a}));var r=n(2),i=n(90),o={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"handler",x:0,y:0,width:10,height:24,style:o})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,o=i.fill,a=i.stroke,s=i.radius,u=i.opacity,l=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:o,stroke:a,radius:s,opacity:u,cursor:l}});var c=1/3*n,h=2/3*n,f=1/4*r,d=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:f,x2:c,y2:d,stroke:a,cursor:l}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:f,x2:h,y2:d,stroke:a,cursor:l}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"growInX",(function(){return i})),n.d(e,"growInY",(function(){return o})),n.d(e,"growInXY",(function(){return a}));var r=n(851);function i(t,e,n){var i=n.coordinate,o=n.minYPoint;Object(r.doScaleAnimate)(t,e,i,o,"x")}function o(t,e,n){var i=n.coordinate,o=n.minYPoint;Object(r.doScaleAnimate)(t,e,i,o,"y")}function a(t,e,n){var i=n.coordinate,o=n.minYPoint;Object(r.doScaleAnimate)(t,e,i,o,"xy")}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformShape",(function(){return o})),n.d(e,"doScaleAnimate",(function(){return a}));var r=n(2),i=n(26);function o(t,e,n){var o,a=Object(r.__read)(e,2),s=a[0],u=a[1];return t.applyToMatrix([s,u,1]),"x"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",.01,1],["t",s,u]])),o=i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",100,1],["t",s,u]])):"y"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",1,.01],["t",s,u]])),o=i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",1,100],["t",s,u]])):"xy"===n&&(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",.01,.01],["t",s,u]])),o=i.ext.transform(t.getMatrix(),[["t",-s,-u],["s",100,100],["t",s,u]])),o}function a(t,e,n,r,i){var a,s,u=n.start,l=n.end,c=n.getWidth(),h=n.getHeight();"y"===i?(a=u.x+c/2,s=r.yu.x?r.x:u.x,s=u.y+h/2):"xy"===i&&(n.isPolar?(a=n.getCenter().x,s=n.getCenter().y):(a=(u.x+l.x)/2,s=(u.y+l.y)/2));var f=o(t,[a,s],i);t.animate({matrix:f},e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getMedian",(function(){return o})),n.d(e,"getMean",(function(){return a}));var r=n(2),i=n(1);function o(t){var e=Object(r.__spreadArray)([],Object(r.__read)(t),!1);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2}function a(t){var e=Object(i.reduce)(t,(function(t,e){return t+(isNaN(e)||!Object(i.isNumber)(e)?0:e)}),0);return 0===t.length?0:e/t.length}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(1747),a=n(215),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return Object(r.__extends)(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)Object(i.each)(r,(function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)}));else{var o=t.getItemsByState("active"),a=!0;Object(i.each)(o,(function(t){if(!e(t))return a=!1,!1})),a?this.clear():Object(i.each)(r,(function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)Object(o.clearList)(t.list);else{var e=this.getAllowComponents();Object(i.each)(e,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(a.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(431),a=n(24),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.filterView=function(t,e,n){var r=Object(a.getSilbings)(t);Object(i.each)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=Object(a.getSilbings)(t);Object(i.each)(e,(function(t){t.render(!0)}))},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"getQuadrantDefaultConfig",(function(){return u})),n.d(e,"getPath",(function(){return c})),n.d(e,"getMeta",(function(){return h})),n.d(e,"getRegressionEquation",(function(){return f}));var r=n(2),i=n(1),o=n(403),a=n(3),s={exp:o.regressionExp,linear:o.regressionLinear,loess:o.regressionLoess,log:o.regressionLog,poly:o.regressionPoly,pow:o.regressionPow,quad:o.regressionQuad};function u(t,e){return{regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-10,offsetY:-10,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:-10,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:10,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-10,offsetY:10,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]}}var l=function(t,e){var n=e.view,r=e.options,i=r.xField,o=r.yField,s=n.getScaleByField(i),u=n.getScaleByField(o),l=t.map((function(t){return n.getCoordinate().convert({x:s.scale(t[0]),y:u.scale(t[1])})}));return Object(a.getSplinePath)(l,!1)},c=function(t){var e,n=t.options,r=n.xField,o=n.yField,a=n.data,u=n.regressionLine,c=u.type,h=void 0===c?"linear":c,d=u.algorithm,p=u.equation,g=null;d?(e=Object(i.isArray)(d)?d:d(a),g=p):g=f(h,e=s[h]().x((function(t){return t[r]})).y((function(t){return t[o]}))(a));return[l(e,t),g]},h=function(t){var e,n=t.meta,o=void 0===n?{}:n,a=t.xField,s=t.yField,u=t.data,l=u[0][a],c=u[0][s],h=l>0,f=c>0;function d(t,e){var n=Object(i.get)(o,[t]);function r(t){return Object(i.get)(n,t)}var a={};return"x"===e?(Object(i.isNumber)(l)&&(Object(i.isNumber)(r("min"))||(a.min=h?0:2*l),Object(i.isNumber)(r("max"))||(a.max=h?2*l:0)),a):(Object(i.isNumber)(c)&&(Object(i.isNumber)(r("min"))||(a.min=f?0:2*c),Object(i.isNumber)(r("max"))||(a.max=f?2*c:0)),a)}return Object(r.__assign)(Object(r.__assign)({},o),((e={})[a]=Object(r.__assign)(Object(r.__assign)({},o[a]),d(a,"x")),e[s]=Object(r.__assign)(Object(r.__assign)({},o[s]),d(s,"y")),e))};function f(t,e){var n,r,i,o=function(t){return Number.isFinite(t)?(e=t,void 0===n&&(n=4),Math.round(e*Math.pow(10,n))/Math.pow(10,n)):"?";var e,n};switch(t){case"linear":return"y = ".concat(o(e.a),"x + ").concat(o(e.b),", R^2 = ").concat(o(e.rSquared));case"exp":return"y = ".concat(o(e.a),"e^(").concat(o(e.b),"x), R^2 = ").concat(o(e.rSquared));case"log":return"y = ".concat(o(e.a),"ln(x) + ").concat(o(e.b),", R^2 = ").concat(o(e.rSquared));case"quad":return"y = ".concat(o(e.a),"x^2 + ").concat(o(e.b),"x + ").concat(o(e.c),", R^2 = ").concat(o(e.rSquared));case"poly":for(var a="y = ".concat(o(null===(n=e.coefficients)||void 0===n?void 0:n[0])," + ").concat(o(null===(r=e.coefficients)||void 0===r?void 0:r[1]),"x + ").concat(o(null===(i=e.coefficients)||void 0===i?void 0:i[2]),"x^2"),s=3;s0&&void 0!==arguments[0]?arguments[0]:{},i=n.width,s=n.height,l=n.latitude,h=void 0===l?0:l,f=n.longitude,d=void 0===f?0:f,p=n.zoom,g=void 0===p?0:p,v=n.pitch,m=void 0===v?0:v,y=n.bearing,b=void 0===y?0:y,_=n.altitude,x=void 0===_?1.5:_,O=n.nearZMultiplier,w=n.farZMultiplier;Object(r.default)(this,e),i=i||1,s=s||1;var S=Object(c.zoomToScale)(g);x=Math.max(.75,x);var C=Object(c.lngLatToWorld)([d,h],S);C[2]=0;var E=Object(c.getProjectionMatrix)({width:i,height:s,pitch:m,bearing:b,altitude:x,nearZMultiplier:O||1/s,farZMultiplier:w||1.01}),T=Object(c.getViewMatrix)({height:s,center:C,pitch:m,bearing:b,altitude:x,flipY:!0});return(t=Object(o.default)(this,Object(a.default)(e).call(this,{width:i,height:s,viewMatrix:T,projectionMatrix:E}))).latitude=h,t.longitude=d,t.zoom=g,t.pitch=m,t.bearing=b,t.altitude=x,t.scale=S,t.center=C,t.pixelsPerMeter=Object(c.getDistanceScales)(Object(u.default)(Object(u.default)(t))).pixelsPerMeter[2],Object.freeze(Object(u.default)(Object(u.default)(t))),t}return Object(s.default)(e,t),Object(i.default)(e,[{key:"projectFlat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return Object(c.lngLatToWorld)(t,e)}},{key:"unprojectFlat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return Object(c.worldToLngLat)(t,e)}},{key:"getMapCenterByLngLatPosition",value:function(t){var e=t.lngLat,n=t.pos,r=Object(c.pixelsToWorld)(n,this.pixelUnprojectionMatrix),i=Object(c.lngLatToWorld)(e,this.scale),o=f.add([],i,f.negate([],r)),a=f.add([],this.center,o);return Object(c.worldToLngLat)(a,this.scale)}},{key:"getLocationAtPoint",value:function(t){var e=t.lngLat,n=t.pos;return this.getMapCenterByLngLatPosition({lngLat:e,pos:n})}},{key:"fitBounds",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.width,i=this.height,o=Object(h.default)(Object.assign({width:r,height:i,bounds:t},n)),a=o.longitude,s=o.latitude,u=o.zoom;return new e({width:r,height:i,longitude:a,latitude:s,zoom:u})}}]),e}(l.default)},function(t,e,n){"use strict";function r(t){return"number"==typeof t}n.r(e),n.d(e,"isNumber",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"updateTileStateRealtime",(function(){return r})),n.d(e,"updateTileStateOverlap",(function(){return i})),n.d(e,"updateTileStateReplace",(function(){return o}));function r(t){t.forEach((function(t){t.isCurrent&&(t.isVisible=t.isLoaded)}))}function i(t){t.forEach((function(t){t.properties.state=0})),t.forEach((function(t){t.isCurrent&&!a(t)&&s(t)})),t.forEach((function(t){t.isVisible=Boolean(2&t.properties.state)}))}function o(t){t.forEach((function(t){t.properties.state=0})),t.forEach((function(t){t.isCurrent&&a(t)})),t.slice().sort((function(t,e){return t.z-e.z})).forEach((function(t){t.isVisible=Boolean(2&t.properties.state),t.children.length&&(t.isVisible||1&t.properties.state)?t.children.forEach((function(t){t.properties.state=1})):t.isCurrent&&s(t)}))}function a(t){for(;t;){if(t.isLoaded)return t.properties.state|=2,!0;t=t.parent}return!1}function s(t){t.children.forEach((function(t){t.isLoaded?t.properties.state|=2:s(t)}))}},function(t,e,n){"use strict";n.r(e);var r=n(1363);n.d(e,"MousePanHandler",(function(){return r.default}));var i=n(1364);n.d(e,"MouseRotateHandler",(function(){return i.default}));var o=n(1365);n.d(e,"MousePitchHandler",(function(){return o.default}))},function(t,e,n){"use strict";(function(e){var r=n(232),i=n(2017),o=n(998),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(u=n(999)),u),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw o(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(a)})),t.exports=l}).call(this,n(445))},function(t,e,n){"use strict";e.__esModule=!0,e.i18n=e.use=e.t=void 0;var r=a(n(2032)),i=a(n(209)),o=a(n(2033));function a(t){return t&&t.__esModule?t:{default:t}}var s=(0,a(n(2034)).default)(i.default),u=r.default,l=!1,c=function(){var t=Object.getPrototypeOf(this||i.default).$t;if("function"==typeof t&&i.default.locale)return l||(l=!0,i.default.locale(i.default.config.lang,(0,o.default)(u,i.default.locale(i.default.config.lang)||{},{clone:!0}))),t.apply(this,arguments)},h=e.t=function(t,e){var n=c.apply(this,arguments);if(null!=n)return n;for(var r=t.split("."),i=u,o=0,a=r.length;o1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;u||(u=document.createElement("textarea"),document.body.appendChild(u));var r=h(t),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;u.setAttribute("style",s+";"+l),u.value=t.value||t.placeholder||"";var c=u.scrollHeight,f={};"border-box"===a?c+=o:"content-box"===a&&(c-=i),u.value="";var d=u.scrollHeight-i;if(null!==e){var p=d*e;"border-box"===a&&(p=p+i+o),c=Math.max(p,c),f.minHeight=p+"px"}if(null!==n){var g=d*n;"border-box"===a&&(g=g+i+o),c=Math.min(g,c)}return f.height=c+"px",u.parentNode&&u.parentNode.removeChild(u),u=null,f}var d=n(9),p=n.n(d),g=n(21),v={name:"ElInput",componentName:"ElInput",mixins:[o.a,s.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return p()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(t){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[t])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var t=this;this.$nextTick((function(){t.setNativeInputValue(),t.resizeTextarea(),t.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(t){this.focused=!1,this.$emit("blur",t),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var t=this.autosize;if("textarea"===this.type)if(t){var e=t.minRows,n=t.maxRows;this.textareaCalcStyle=f(this.$refs.textarea,e,n)}else this.textareaCalcStyle={minHeight:f(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var t=this.getInput();t&&t.value!==this.nativeInputValue&&(t.value=this.nativeInputValue)},handleFocus:function(t){this.focused=!0,this.$emit("focus",t)},handleCompositionStart:function(t){this.$emit("compositionstart",t),this.isComposing=!0},handleCompositionUpdate:function(t){this.$emit("compositionupdate",t);var e=t.target.value,n=e[e.length-1]||"";this.isComposing=!Object(g.isKorean)(n)},handleCompositionEnd:function(t){this.$emit("compositionend",t),this.isComposing&&(this.isComposing=!1,this.handleInput(t))},handleInput:function(t){this.isComposing||t.target.value!==this.nativeInputValue&&(this.$emit("input",t.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(t){this.$emit("change",t.target.value)},calcIconOffset:function(t){var e=[].slice.call(this.$el.querySelectorAll(".el-input__"+t)||[]);if(e.length){for(var n=null,r=0;r=e.length)break;i=e[r++]}else{if((r=e.next()).done)break;i=r.value}var o=i.target.__resizeListeners__||[];o.length&&o.forEach((function(t){t()}))}};e.addResizeListener=function(t,e){s||(t.__resizeListeners__||(t.__resizeListeners__=[],t.__ro__=new o.default((0,a.debounce)(16,u)),t.__ro__.observe(t)),t.__resizeListeners__.push(e))},e.removeResizeListener=function(t,e){t&&t.__resizeListeners__&&(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),t.__resizeListeners__.length||t.__ro__.disconnect())}},function(t,e){t.exports=function(t,e,n,r){var i,o=0;return"boolean"!=typeof e&&(r=n,n=e,e=void 0),function(){var a=this,s=Number(new Date)-o,u=arguments;function l(){o=Number(new Date),n.apply(a,u)}function c(){i=void 0}r&&!i&&l(),i&&clearTimeout(i),void 0===r&&s>t?l():!0!==e&&(i=setTimeout(r?c:l,void 0===r?t-s:t))}}},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=132)}({132:function(t,e,n){"use strict";n.r(e);var r=n(16),i=n(38),o=n.n(i),a=n(3),s=n(2),u={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function l(t){var e=t.move,n=t.size,r=t.bar,i={},o="translate"+r.axis+"("+e+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var c={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return u[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(t){var e=this.size,n=this.move,r=this.bar;return t("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[t("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:l({size:e,move:n,bar:r})})])},methods:{clickThumbHandler:function(t){t.ctrlKey||2===t.button||(this.startDrag(t),this[this.bar.axis]=t.currentTarget[this.bar.offset]-(t[this.bar.client]-t.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(t){var e=100*(Math.abs(t.target.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-this.$refs.thumb[this.bar.offset]/2)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=e*this.wrap[this.bar.scrollSize]/100},startDrag:function(t){t.stopImmediatePropagation(),this.cursorDown=!0,Object(s.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(s.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(t){if(!1!==this.cursorDown){var e=this[this.bar.axis];if(e){var n=100*(-1*(this.$el.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-(this.$refs.thumb[this.bar.offset]-e))/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=n*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(t){this.cursorDown=!1,this[this.bar.axis]=0,Object(s.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s.off)(document,"mouseup",this.mouseUpDocumentHandler)}},h={name:"ElScrollbar",components:{Bar:c},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(t){var e=o()(),n=this.wrapStyle;if(e){var r="-"+e+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(a.toObject)(this.wrapStyle)).marginRight=n.marginBottom=r:"string"==typeof this.wrapStyle?n+=i:n=i}var s=t(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),u=t("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",e?"":"el-scrollbar__wrap--hidden-default"]},[[s]]),l=void 0;return l=this.native?[t("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[u,t(c,{attrs:{move:this.moveX,size:this.sizeWidth}}),t(c,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],t("div",{class:"el-scrollbar"},l)},methods:{handleScroll:function(){var t=this.wrap;this.moveY=100*t.scrollTop/t.clientHeight,this.moveX=100*t.scrollLeft/t.clientWidth},update:function(){var t,e,n=this.wrap;n&&(t=100*n.clientHeight/n.scrollHeight,e=100*n.clientWidth/n.scrollWidth,this.sizeHeight=t<100?t+"%":"",this.sizeWidth=e<100?e+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(r.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(r.removeResizeListener)(this.$refs.resize,this.update)},install:function(t){t.component(h.name,h)}};e.default=h},16:function(t,e){t.exports=n(872)},2:function(t,e){t.exports=n(340)},3:function(t,e){t.exports=n(304)},38:function(t,e){t.exports=n(870)}})},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){return{methods:{focus:function(){this.$refs[t].focus()}}}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(o.default.prototype.$isServer)return;if(!e)return void(t.scrollTop=0);var n=[],r=e.offsetParent;for(;r&&t!==r&&t.contains(r);)n.push(r),r=r.offsetParent;var i=e.offsetTop+n.reduce((function(t,e){return t+e.offsetTop}),0),a=i+e.offsetHeight,s=t.scrollTop,u=s+t.clientHeight;iu&&(t.scrollTop=a-t.clientHeight)};var r,i=n(209),o=(r=i)&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";e.__esModule=!0;var r=r||{};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(t){for(var e=0;e=0;e--){var n=t.childNodes[e];if(r.Utils.attemptFocus(n)||r.Utils.focusLastDescendant(n))return!0}return!1},r.Utils.attemptFocus=function(t){if(!r.Utils.isFocusable(t))return!1;r.Utils.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(t){}return r.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===t},r.Utils.isFocusable=function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!==t.rel;case"INPUT":return"hidden"!==t.type&&"file"!==t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},r.Utils.triggerEvent=function(t,e){var n=void 0;n=/^mouse|click/.test(e)?"MouseEvents":/^key/.test(e)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a0?r:n)(t)}},function(t,e,n){var r=n(883)("keys"),i=n(637);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(539),i=n(366),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(636)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(880);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(447).f,i=n(406),o=n(449)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){e.f=n(449)},function(t,e,n){var r=n(366),i=n(539),o=n(636),a=n(889),s=n(447).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTextRect",(function(){return i}));var r=n(69);function i(t,e,n,i,o,a,s,u){return new r.default({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:a,overflow:s?"truncate":null,lineHeight:u}}).getBoundingRect()}},function(t,e,n){"use strict";n.r(e);var r=n(61),i=n(103),o=n(37),a=[],s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return Object(r.__extends)(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n0}function s(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var r=t.event,i=r.x,o=r.y,a=e.center,s=a.x,u=a.y,l=e.getRadius()*n;return Math.sqrt(Math.pow(s-i,2)+Math.pow(u-o,2))0;)c-=2*Math.PI;var h=o-t+(c=c/Math.PI/2*n)-2*t;l.push(["M",h,e]);for(var f=0,d=0;d0){var A=e.addGroup({name:"waves"}),j=A.setClip({type:"path",attrs:{path:M}});c(x.x,x.y,1-t.points[1].y,y,C,A,j,2*S,b,d)}return e.addShape("path",{name:"distance",attrs:{path:M,fill:"transparent",lineWidth:v+2*m,stroke:"transparent"===f?"#fff":f}}),e.addShape("path",{name:"wrap",attrs:Object(o.mix)(E,{path:M,fill:"transparent",lineWidth:v})}),e}})},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);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}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingOnSyntax=void 0;var r=n(900),i=function(){function t(t){this._binding=t}return t.prototype.onActivation=function(t){return this._binding.onActivation=t,new r.BindingWhenSyntax(this._binding)},t}();e.BindingOnSyntax=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingWhenSyntax=void 0;var r=n(899),i=n(1296),o=function(){function t(t){this._binding=t}return t.prototype.when=function(t){return this._binding.constraint=t,new r.BindingOnSyntax(this._binding)},t.prototype.whenTargetNamed=function(t){return this._binding.constraint=i.namedConstraint(t),new r.BindingOnSyntax(this._binding)},t.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(t){return null!==t.target&&!t.target.isNamed()&&!t.target.isTagged()},new r.BindingOnSyntax(this._binding)},t.prototype.whenTargetTagged=function(t,e){return this._binding.constraint=i.taggedConstraint(t)(e),new r.BindingOnSyntax(this._binding)},t.prototype.whenInjectedInto=function(t){return this._binding.constraint=function(e){return i.typeConstraint(t)(e.parentRequest)},new r.BindingOnSyntax(this._binding)},t.prototype.whenParentNamed=function(t){return this._binding.constraint=function(e){return i.namedConstraint(t)(e.parentRequest)},new r.BindingOnSyntax(this._binding)},t.prototype.whenParentTagged=function(t,e){return this._binding.constraint=function(n){return i.taggedConstraint(t)(e)(n.parentRequest)},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorIs=function(t){return this._binding.constraint=function(e){return i.traverseAncerstors(e,i.typeConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorIs=function(t){return this._binding.constraint=function(e){return!i.traverseAncerstors(e,i.typeConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorNamed=function(t){return this._binding.constraint=function(e){return i.traverseAncerstors(e,i.namedConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorNamed=function(t){return this._binding.constraint=function(e){return!i.traverseAncerstors(e,i.namedConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._binding.constraint=function(n){return i.traverseAncerstors(n,i.taggedConstraint(t)(e))},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorTagged=function(t,e){return this._binding.constraint=function(n){return!i.traverseAncerstors(n,i.taggedConstraint(t)(e))},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorMatches=function(t){return this._binding.constraint=function(e){return i.traverseAncerstors(e,t)},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorMatches=function(t){return this._binding.constraint=function(e){return!i.traverseAncerstors(e,t)},new r.BindingOnSyntax(this._binding)},t}();e.BindingWhenSyntax=o},function(t,e,n){"use strict";n.r(e),n.d(e,"canProcessOnWorker",(function(){return u})),n.d(e,"processOnWorker",(function(){return l}));var r=n(578),i=n(1934),o=n(579),a=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)for(l=0;lMath.abs(l),h=f([u,l],c?0:1,e),d=(c?s:l)/h.length,p=0;p1?null:new o.default(g*l+t,g*c+e)}function v(t,e,n){var r=new o.default;o.default.sub(r,n,e),r.normalize();var i=new o.default;return o.default.sub(i,t,e),i.dot(r)}function m(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function y(t){var e=t.points,n=[],a=[];Object(r.fromPoints)(e,n,a);var s=new i.default(n[0],n[1],a[0]-n[0],a[1]-n[1]),u=s.width,l=s.height,c=s.x,h=s.y,f=new o.default,d=new o.default;return u>l?(f.x=d.x=c+u/2,f.y=h,d.y=h+l):(f.y=d.y=h+l/2,f.x=c,d.x=c+u),function(t,e,n){for(var r=t.length,i=[],o=0;oi,a=f([r,i],o?0:1,e),s=o?"width":"height",u=o?"height":"width",l=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,d=0;d-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):Object(o.timeFormat)(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;Object(i.each)(e,(function(t,n){e[n]=Object(o.toTimeStamp)(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(n(491).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(128),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(r.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=Object(i.log)(n,this.max),o=this.rangeMin(),a=this.rangeMax()-o,s=this.positiveMin;if(s){if(0===t)return 0;var u=1/(r-(e=Object(i.log)(n,s/n)))*a;if(t=0?1:-1;return Math.pow(a,n)*s},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(Object(i.calBase)(r,t)-Object(i.calBase)(r,n))/(Object(i.calBase)(r,e)-Object(i.calBase)(r,n))},e}(n(379).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(106),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(r.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):Object(o.timeFormat)(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(i.isString)(n)||Object(i.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return Object(o.toTimeStamp)(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(Object(i.isNil)(e)&&Object(i.isNumber)(e)||(this.min=this.translate(this.min)),Object(i.isNil)(n)&&Object(i.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],a=1/0,s=a,u=0;Object(i.each)(t,(function(t){var e=Object(o.toTimeStamp)(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");a>e?(s=a,a=e):s>e&&(s=e),u1&&(this.minTickInterval=s-a),Object(i.isNil)(e)&&(this.min=a),Object(i.isNil)(n)&&(this.max=u)}},e}(n(563).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(r.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(n(564).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(r.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(i.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(n(307).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"getInteractionCfg",(function(){return a}));var r=n(17),i=n(1774);function o(t){return t.isInPlot()}function a(t,e,n){var r=n||{},i=r.mask,a=r.isStartEnable,s=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a||o,action:["brush:start","".concat(s,"-mask:start"),"".concat(s,"-mask:show")],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:o,action:["".concat(s,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:o,action:["brush:filter","brush:end","".concat(s,"-mask:end"),"".concat(s,"-mask:hide"),"brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:default",isEnable:function(t){return!!a&&!a(t)}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:a||function(t){return!t.isInShape("mask")},action:["".concat(s,"-mask:start"),"".concat(s,"-mask:show")],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:["".concat(s,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(s,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(s,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(s,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(s,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","".concat(s,"-mask:end"),"".concat(s,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(s,"-mask:hide")]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a||o,action:["brush-x:start","".concat(s,"-mask:start"),"".concat(s,"-mask:show")],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:o,action:["".concat(s,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:o,action:["brush-x:filter","brush-x:end","".concat(s,"-mask:end"),"".concat(s,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:a||function(t){return!t.isInShape("mask")},action:["".concat(s,"-mask:start"),"".concat(s,"-mask:show")],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:["".concat(s,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(s,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(s,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(s,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(s,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","".concat(s,"-mask:end"),"".concat(s,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(s,"-mask:hide")]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a||o,action:["brush-y:start","".concat(s,"-mask:start"),"".concat(s,"-mask:show")],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:o,action:["".concat(s,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:o,action:["brush-y:filter","brush-y:end","".concat(s,"-mask:end"),"".concat(s,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:a||function(t){return!t.isInShape("mask")},action:["".concat(s,"-mask:start"),"".concat(s,"-mask:show")],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:["".concat(s,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(s,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(s,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(s,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(s,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","".concat(s,"-mask:end"),"".concat(s,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(s,"-mask:hide")]}]};default:return{}}}Object(r.registerAction)("brush-reset-button",i.ButtonAction,{name:"brush-reset-button"}),Object(r.registerInteraction)("filter-action",{}),Object(r.registerInteraction)("brush",a("brush")),Object(r.registerInteraction)("brush-highlight",a("brush-highlight")),Object(r.registerInteraction)("brush-x",a("brush-x","x-rect")),Object(r.registerInteraction)("brush-y",a("brush-y","y-rect")),Object(r.registerInteraction)("brush-x-highlight",a("brush-x-highlight","x-rect")),Object(r.registerInteraction)("brush-y-highlight",a("brush-y-highlight","y-rect"))},function(t,e,n){"use strict";n.r(e),n.d(e,"PIE_STATISTIC",(function(){return a}));var r=n(17),i=n(1784),o=n(1785),a="pie-statistic";Object(r.registerAction)(a,o.StatisticAction),Object(r.registerInteraction)("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),Object(r.registerAction)("pie-legend",i.PieLegendAction),Object(r.registerInteraction)("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]})},function(t,e,n){"use strict";n.r(e);var r=n(716),i=n(432),o=n(208);function a(t){return Math.sqrt(t.value)}function s(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function u(t,e){return function(n){if(i=n.children){var i,o,a,s=i.length,u=t(n)*e||0;if(u)for(o=0;oe&&c>r&&c>o&&c>s||c1&&(h=void 0,h=d[0],d[0]=d[1],d[1]=h),m=u.cubicAt(e,r,o,s,d[0]),v>1&&(y=u.cubicAt(e,r,o,s,d[1]))),2===v?_e&&s>r&&s>o||s=0&&c<=1){for(var h=0,d=u.quadraticAt(e,r,o,c),p=0;pn||s<-n)return 0;var u=Math.sqrt(n*n-s*s);f[0]=-u,f[1]=u;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=h-1e-4){r=0,i=h;var c=o?1:-1;return a>=f[0]+t&&a<=f[1]+t?c:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=h,i+=h);for(var p=0,g=0;g<2;g++){var v=f[g];if(v+t>a){var m=Math.atan2(s,v);c=o?1:-1;m<0&&(m=h+m),(m>=r&&m<=i||m+h>=r&&m+h<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),p+=c)}}return p}function m(t,e,n,r,u){for(var h,f,d,m,y=t.data,b=t.len(),_=0,x=0,O=0,w=0,S=0,C=0;C1&&(n||(_+=Object(l.default)(x,O,w,S,r,u))),T&&(w=x=y[C],S=O=y[C+1]),E){case c.M:x=w=y[C++],O=S=y[C++];break;case c.L:if(n){if(i.containStroke(x,O,y[C],y[C+1],e,r,u))return!0}else _+=Object(l.default)(x,O,y[C],y[C+1],r,u)||0;x=y[C++],O=y[C++];break;case c.C:if(n){if(o.containStroke(x,O,y[C++],y[C++],y[C++],y[C++],y[C],y[C+1],e,r,u))return!0}else _+=p(x,O,y[C++],y[C++],y[C++],y[C++],y[C],y[C+1],r,u)||0;x=y[C++],O=y[C++];break;case c.Q:if(n){if(a.containStroke(x,O,y[C++],y[C++],y[C],y[C+1],e,r,u))return!0}else _+=g(x,O,y[C++],y[C++],y[C],y[C+1],r,u)||0;x=y[C++],O=y[C++];break;case c.A:var M=y[C++],A=y[C++],j=y[C++],I=y[C++],k=y[C++],P=y[C++];C+=1;var L=!!(1-y[C++]);h=Math.cos(k)*j+M,f=Math.sin(k)*I+A,T?(w=h,S=f):_+=Object(l.default)(x,O,h,f,r,u);var D=(r-M)*I/j+M;if(n){if(s.containStroke(M,A,I,k,k+P,L,e,D,u))return!0}else _+=v(M,A,I,k,k+P,L,D,u);x=Math.cos(k+P)*j+M,O=Math.sin(k+P)*I+A;break;case c.R:if(w=x=y[C++],S=O=y[C++],h=w+y[C++],f=S+y[C++],n){if(i.containStroke(w,S,h,S,e,r,u)||i.containStroke(h,S,h,f,e,r,u)||i.containStroke(h,f,w,f,e,r,u)||i.containStroke(w,f,w,S,e,r,u))return!0}else _+=Object(l.default)(h,S,h,f,r,u),_+=Object(l.default)(w,f,w,S,r,u);break;case c.Z:if(n){if(i.containStroke(x,O,w,S,e,r,u))return!0}else _+=Object(l.default)(x,O,w,S,r,u);x=w,O=S}}return n||(d=O,m=S,Math.abs(d-m)<1e-4)||(_+=Object(l.default)(x,O,w,S,r,u)||0),0!==_}function y(t,e,n){return m(t,0,!1,e,n)}function b(t,e,n,r){return m(t,e,!0,n,r)}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(389),o=n(108),a=n(734),s=n(736),u=n(10),l=function(){function t(t,e,n,i){this._stageTaskMap=Object(r.createHashMap)(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData().count(),i=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(r.createHashMap)();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(r.each)(this._allHandlers,(function(i){var o=t.get(i.uid)||t.set(i.uid,{});Object(r.assert)(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,o,e,n),i.overallReset&&this._createOverallStageTask(i,o,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var o=!1,a=this;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(r.each)(t,(function(t,r){if(!i.visualType||i.visualType===t.visualType){var u=a._stageTaskMap.get(t.uid),l=u.seriesTaskMap,c=u.overallTask;if(c){var h,f=c.agentStubMap;f.each((function(t){s(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),a.updatePayload(c,n);var d=a.getPerformArgs(c,i.block);f.each((function(t){t.perform(d)})),c.perform(d)&&(o=!0)}else l&&l.each((function(r,u){s(i,r)&&r.dirty();var l=a.getPerformArgs(r,i.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(r.context.model),a.updatePayload(r,n),r.perform(l)&&(o=!0)}))}})),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,o){var a=this,s=e.seriesTaskMap,u=e.seriesTaskMap=Object(r.createHashMap)(),l=t.seriesType,c=t.getTargetSeries;function h(e){var r=e.uid,l=u.set(r,s&&s.get(r)||Object(i.createTask)({plan:p,reset:g,count:y}));l.context={model:e,ecModel:n,api:o,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(h):l?n.eachRawSeriesByType(l,h):c&&c(n,o).each(h)},t.prototype._createOverallStageTask=function(t,e,n,o){var a=this,s=e.overallTask=e.overallTask||Object(i.createTask)({reset:c});s.context={ecModel:n,api:o,overallReset:t.overallReset,scheduler:a};var u=s.agentStubMap,l=s.agentStubMap=Object(r.createHashMap)(),f=t.seriesType,p=t.getTargetSeries,g=!0,v=!1;function m(t){var e=t.uid,n=l.set(e,u&&u.get(e)||(v=!0,Object(i.createTask)({reset:h,onDirty:d})));n.context={model:t,overallProgress:g},n.agent=s,n.__block=g,a._pipe(t,n)}Object(r.assert)(!t.createOnAllSeries,""),f?n.eachRawSeriesByType(f,m):p?p(n,o).each(m):(g=!1,Object(r.each)(n.getSeries(),m)),v&&s.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Object(r.isFunction)(t)&&(t={overallReset:t,seriesType:b(t)}),t.uid=Object(o.getUID)("stageHandler"),e&&(t.visualType=e),t},t}();function c(t){t.overallReset(t.ecModel,t.api,t.payload)}function h(t){return t.overallProgress&&f}function f(){this.agent.dirty(),this.getDownstream().dirty()}function d(){this.agent&&this.agent.dirty()}function p(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function g(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Object(u.normalizeToArray)(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(r.map)(e,(function(t,e){return m(e)})):v}var v=m(0);function m(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;ov?f(t,null==n[b+1]?null:n[b+1].elm,n,p,b):d(t,e,u,v))}(n,r,i):u(i)?(u(t.text)&&o.setTextContent(n,""),f(n,null,i,0,i.length-1)):u(r)?d(n,r,0,r.length-1):u(t.text)&&o.setTextContent(n,""):t.text!==e.text&&(u(r)&&d(n,r,0,r.length-1),o.setTextContent(n,e.text)))}function v(t,e){if(c(t,e))g(t,e);else{var n=t.elm,r=o.parentNode(n);h(e),null!==r&&(o.insertBefore(r,e.elm,o.nextSibling(n)),d(r,[t],0,0))}return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"createSectorCalculateTextPosition",(function(){return o})),n.d(e,"setSectorTextRotation",(function(){return a}));var r=n(55),i=n(0);function o(t,e){var n=(e=e||{}).isRoundCap;return function(e,i,o){var a=i.position;if(!a||a instanceof Array)return Object(r.calculateTextPosition)(e,i,o);var l=t(a),c=null!=i.distance?i.distance:5,h=this.shape,f=h.cx,d=h.cy,p=h.r,g=h.r0,v=(p+g)/2,m=h.startAngle,y=h.endAngle,b=(m+y)/2,_=n?Math.abs(p-g)/2:0,x=Math.cos,O=Math.sin,w=f+p*x(m),S=d+p*O(m),C="left",E="top";switch(l){case"startArc":w=f+(g-c)*x(b),S=d+(g-c)*O(b),C="center",E="top";break;case"insideStartArc":w=f+(g+c)*x(b),S=d+(g+c)*O(b),C="center",E="bottom";break;case"startAngle":w=f+v*x(m)+s(m,c+_,!1),S=d+v*O(m)+u(m,c+_,!1),C="right",E="middle";break;case"insideStartAngle":w=f+v*x(m)+s(m,-c+_,!1),S=d+v*O(m)+u(m,-c+_,!1),C="left",E="middle";break;case"middle":w=f+v*x(b),S=d+v*O(b),C="center",E="middle";break;case"endArc":w=f+(p+c)*x(b),S=d+(p+c)*O(b),C="center",E="bottom";break;case"insideEndArc":w=f+(p-c)*x(b),S=d+(p-c)*O(b),C="center",E="top";break;case"endAngle":w=f+v*x(y)+s(y,c+_,!0),S=d+v*O(y)+u(y,c+_,!0),C="left",E="middle";break;case"insideEndAngle":w=f+v*x(y)+s(y,-c+_,!0),S=d+v*O(y)+u(y,-c+_,!0),C="right",E="middle";break;default:return Object(r.calculateTextPosition)(e,i,o)}return(e=e||{}).x=w,e.y=S,e.align=C,e.verticalAlign=E,e}}function a(t,e,n,r){if(Object(i.isNumber)(r))t.setTextConfig({rotation:r});else if(Object(i.isArray)(e))t.setTextConfig({rotation:0});else{var o,a=t.shape,s=a.clockwise?a.startAngle:a.endAngle,u=a.clockwise?a.endAngle:a.startAngle,l=(s+u)/2,c=n(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=l;break;case"startAngle":case"insideStartAngle":o=s;break;case"endAngle":case"insideEndAngle":o=u;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-o;"middle"===c&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}function s(t,e,n){return e*Math.sin(t)*(n?-1:1)}function u(t,e,n){return e*Math.cos(t)*(n?1:-1)}},function(t,e,n){"use strict";n.r(e),n.d(e,"CartesianAxisModel",(function(){return u}));var r=n(4),i=n(0),o=n(42),a=n(257),s=n(10),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",s.SINGLE_REFERRING).models[0]},e.type="cartesian2dAxis",e}(o.default);i.mixin(u,a.AxisModelCommonMixin),e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"CartesianXAxisView",(function(){return m})),n.d(e,"CartesianYAxisView",(function(){return y}));var r=n(4),i=n(0),o=n(41),a=n(16),s=n(152),u=n(182),l=n(214),c=n(330),h=n(517),f=n(121),d=["axisLine","axisTickLabel","axisName"],p=["splitArea","splitLine","minorSplitLine"],g=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return Object(r.__extends)(e,t),e.prototype.render=function(e,n,r,s){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new o.default,this.group.add(this._axisGroup),e.get("show")){var h=e.getCoordSysModel(),g=c.layout(h,e),m=new u.default(e,i.extend({handleAutoShown:function(t){for(var n=h.coordinateSystem.getCartesians(),r=0;r=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&null!=u&&null!=l&&(h=F(c,{x:0,y:0,width:u,height:l}),!e.ignoreViewBox)){var p=r;(r=new i.default).add(p),p.scaleX=p.scaleY=h.scale,p.x=h.x,p.y=h.y}return e.ignoreRootClip||null==u||null==l||r.setClipPath(new s.default({shape:{x:0,y:0,width:u,height:l}})),{root:r,width:u,height:l,viewBoxRect:c,viewBoxTransform:h,named:o}},t.prototype._parseNode=function(t,e,n,i,o,a){var s,u=t.nodeName.toLowerCase(),l=i;if("defs"===u&&(o=!0),"text"===u&&(a=!0),"defs"===u||"switch"===u)s=e;else{if(!o){var c=r[u];if(c&&Object(p.hasOwn)(r,u)){s=c.call(this,t,e);var h=t.getAttribute("name");if(h){var f={name:h,namedFrom:null,svgNodeTagLower:u,el:s};n.push(f),"g"===u&&(l=f)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:u,el:s});e.add(s)}}var d=S[u];if(d&&Object(p.hasOwn)(S,u)){var g=d.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=g)}}if(s&&s.isGroup)for(var m=t.firstChild;m;)1===m.nodeType?this._parseNode(m,s,n,l,o,a):3===m.nodeType&&a&&this._parseText(m,s),m=m.nextSibling},t.prototype._parseText=function(t,e){var n=new m.default({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});T(e,n),A(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(r={g:function(t,e){var n=new i.default;return T(e,n),A(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new s.default;return T(e,n),A(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new a.default;return T(e,n),A(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new l.default;return T(e,n),A(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new u.default;return T(e,n),A(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=M(r));var i=new c.default({shape:{points:n||[]},silent:!0});return T(e,i),A(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=M(r));var i=new h.default({shape:{points:n||[]},silent:!0});return T(e,i),A(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new o.default;return T(e,n),A(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(r)+parseFloat(a);var s=new i.default;return T(e,s),A(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",s=new i.default;return T(e,s),A(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(a),s},path:function(t,e){var n=t.getAttribute("d")||"",r=Object(d.createFromString)(n);return T(e,r),A(t,r,this._defsUsePending,!1,!1),r.silent=!0,r}}),t}(),S={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new g.default(e,n,r,i);return C(t,o),E(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new v.default(e,n,r);return C(t,i),E(t,i),i}};function C(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function E(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};N(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function T(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(p.defaults)(e.__inheritedStyle,t.__inheritedStyle))}function M(t){for(var e=P(t),n=[],r=0;r0;o-=2){var a=r[o],s=r[o-1],u=P(a);switch(i=i||f.create(),s){case"translate":f.translate(i,i,[parseFloat(u[0]),parseFloat(u[1]||"0")]);break;case"scale":f.scale(i,i,[parseFloat(u[0]),parseFloat(u[1]||u[0])]);break;case"rotate":f.rotate(i,i,-parseFloat(u[0])*D);break;case"skewX":var l=Math.tan(parseFloat(u[0])*D);f.mul(i,[1,0,l,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(u[0])*D);f.mul(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(u[0]),i[1]=parseFloat(u[1]),i[2]=parseFloat(u[2]),i[3]=parseFloat(u[3]),i[4]=parseFloat(u[4]),i[5]=parseFloat(u[5])}}e.setLocalTransform(i)}}(t,e),N(t,a,s),r||function(t,e,n){for(var r=0;r<_.length;r++){var i=_[r];null!=(o=t.getAttribute(i))&&(e[b[i]]=o)}for(r=0;r=0;n--)s.asc(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var r=0,i=e.length;rMath.PI/2?"right":"left"):E&&"center"!==E?"left"===E?(x=o.r0+C,s>Math.PI/2&&(E="right")):"right"===E&&(x=o.r-C,s>Math.PI/2&&(E="left")):(x=a===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,E="center"),m.style.align=E,m.style.verticalAlign=y(u,"verticalAlign")||"middle",m.x=x*c+o.cx,m.y=x*h+o.cy;var T=y(u,"rotate"),M=0;"radial"===T?(M=Object(d.normalizeRadian)(-s))>Math.PI/2&&M<1.5*Math.PI&&(M+=Math.PI):"tangential"===T?(M=Math.PI/2-s)>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI):i.isNumber(T)&&(M=T*Math.PI/180),m.rotation=M})),p.dirtyStyle()},e}(s.default);e.default=p},function(t,e,n){"use strict";n.r(e),n.d(e,"polarDimensions",(function(){return o}));var r=n(1546),i=n(1547),o=["radius","angle"],a=function(){function t(t){this.dimensions=o,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new r.default,this._angleAxis=new i.default,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===t&&e.push(n),r.scale.type===t&&e.push(r),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[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(e*e+n*n);e/=s,n/=s;for(var u=Math.atan2(-n,e)/Math.PI*180,l=ua;)u+=360*l;return[s,u]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,r=e-this.cy,i=n*n+r*r-1e-4,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return s(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return s(e)===this?this.pointToData(n):null},t}();function s(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"PolarAxisModel",(function(){return u})),n.d(e,"AngleAxisModel",(function(){return l})),n.d(e,"RadiusAxisModel",(function(){return c}));var r=n(4),i=n(0),o=n(42),a=n(257),s=n(10),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",s.SINGLE_REFERRING).models[0]},e.type="polarAxis",e}(o.default);i.mixin(u,a.AxisModelCommonMixin);var l=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="angleAxis",e}(u),c=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="radiusAxis",e}(u)},function(t,e,n){"use strict";n.r(e),n.d(e,"singleDimensions",(function(){return s}));var r=n(1555),i=n(80),o=n(35),a=n(0),s=["single"],u=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=s,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var o=this.dimension,a=new r.default(o,i.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===a.type;a.onBand=s&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();Object(a.each)(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),i.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=Object(o.getLayoutRect)({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),r=n?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),r=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord=i?function(t){return t-e}:function(t){return r-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),r[i]=e.toGlobalCoord(e.dataToCoord(+t)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},t.prototype.convertToPixel=function(t,e,n){return l(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return l(e)===this?this.pointToData(n):null},t}();function l(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n(42),o=n(118),a=n(0),s=n(10),u=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],r=e.axisType,i=this._names=[];"category"===r?(t=[],Object(a.each)(n,(function(e,n){var r,o=Object(s.convertOptionIdName)(Object(s.getDataItemValue)(e),"");Object(a.isObject)(e)?(r=Object(a.clone)(e)).value=n:r=n,t.push(r),i.push(o)}))):t=n;var u={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new o.default([{name:"value",type:u}],this)).initData(t,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={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:[]},e}(i.default);e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return s}));var r=n(1601),i=n(1602),o=n(591),a=n(485);function s(t){Object(a.default)(t),t.registerComponentModel(r.default),t.registerComponentView(i.default),Object(o.installDataZoomRoamProcessor)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(1603),i=n(1604),o=n(485);function a(t){t.registerComponentModel(r.default),t.registerComponentView(i.default),Object(o.default)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(1605),i=n(1606),o=n(765);function a(t){t.registerComponentModel(r.default),t.registerComponentView(i.default),Object(o.default)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"visualMapActionInfo",(function(){return r})),n.d(e,"visualMapActionHander",(function(){return i}));var r={type:"selectDataRange",event:"dataRangeSelected",update:"update"},i=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(1609),i=n(1610),o=n(765);function a(t){t.registerComponentModel(r.default),t.registerComponentView(i.default),Object(o.default)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"isColorProp",(function(){return r})),n.d(e,"isGradientColor",(function(){return i}));var r=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},i=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"rgbBasis",(function(){return u})),n.d(e,"rgbBasisClosed",(function(){return l}));var r=n(444),i=n(768),o=n(1618),a=n(952);function s(t){return function(e){var n,i,o=e.length,a=new Array(o),s=new Array(o),u=new Array(o);for(n=0;n180||n<-180?n-360*Math.round(n/360):n):Object(r.default)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Object(r.default)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?i(t,n):Object(r.default)(isNaN(t)?e:t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"genericArray",(function(){return o}));var r=n(521),i=n(523);function o(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),s=new Array(i);for(n=0;n0&&t.charCodeAt(e)<128?1:2}function o(t,e,n){void 0===n&&(n="tail");var r=t.length,o="";if("tail"===n){for(var a=0,s=0;a0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([a,s,1]);var u=r.ext.transform(t.getMatrix(),[["t",-a,-s],["s",.01,1],["t",a,s]]);t.setMatrix(u),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-a,-s],["s",100,1],["t",a,s]])},e)}function o(t,e,n){var i=t.getBBox(),o=t.get("origin").mappingData,a=(i.minX+i.maxX)/2,s=o.points,u=s[0].y-s[1].y<=0?i.maxY:i.minY;t.applyToMatrix([a,u,1]);var l=r.ext.transform(t.getMatrix(),[["t",-a,-u],["s",1,.01],["t",a,u]]);t.setMatrix(l),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-a,-u],["s",1,100],["t",a,u]])},e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"zoomIn",(function(){return s})),n.d(e,"zoomOut",(function(){return u}));var r=n(2),i=n(26),o=n(1);function a(t,e,n){if(t.isGroup())Object(o.each)(t.getChildren(),(function(t){a(t,e,n)}));else{var s=t.getBBox(),u=(s.minX+s.maxX)/2,l=(s.minY+s.maxY)/2;if(t.applyToMatrix([u,l,1]),"zoomIn"===n){var c=i.ext.transform(t.getMatrix(),[["t",-u,-l],["s",.01,.01],["t",u,l]]);t.setMatrix(c),t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-u,-l],["s",100,100],["t",u,l]])},e)}else t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-u,-l],["s",.01,.01],["t",u,l]])},Object(r.__assign)(Object(r.__assign)({},e),{callback:function(){t.remove(!0),Object(o.isFunction)(e.callback)&&e.callback()}}))}}function s(t,e,n){a(t,e,"zoomIn")}function u(t,e,n){a(t,e,"zoomOut")}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(789),o=n(597),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(r.__extends)(e,t),e.prototype.getRegion=function(t){var e=this.context.view.getCoordinate();return Object(o.getRegion)(t,this.dim,this.inPlot,e)},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(86),a=n(24),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return Object(r.__extends)(e,t),e.prototype.filter=function(){Object(a.isMask)(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=Object(a.getMaskedElements)(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,o=e.map((function(t){return t.getModel().data})),s=Object(a.getSilbings)(t);Object(i.each)(s,(function(t){var e=Object(a.getElements)(t);Object(i.each)(e,(function(t){var e=t.getModel().data;Object(a.isInRecords)(o,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=Object(a.getSilbings)(e);Object(i.each)(n,(function(e){var n=Object(a.getSiblingMaskElements)(t.context,e,10),r=Object(a.getElements)(e);n&&Object(i.each)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=Object(a.getSilbings)(this.context.view);Object(i.each)(t,(function(t){var e=Object(a.getElements)(t);Object(i.each)(e,(function(t){t.show()}))}))},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"getElementValue",(function(){return o})),n.d(e,"clearHighlight",(function(){return a}));var r=n(1),i=n(3);function o(t,e){var n=t.getModel().data;return Object(r.isArray)(n)?n[0][e]:n[e]}function a(t){var e=Object(i.getAllElements)(t);Object(r.each)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return c})),n.d(e,"adaptor",(function(){return p}));var r=n(2),i=n(1),o=n(9),a=n(36),s=n(3),u=n(803);function l(t){var e=t.chart,n=t.options,o=n.bulletStyle,l=n.targetField,c=n.rangeField,h=n.measureField,f=n.xField,d=n.color,p=n.layout,g=n.size,v=n.label,m=Object(u.transformData)(n),y=m.min,b=m.max,_=m.ds;e.data(_);var x=Object(s.deepAssign)({},t,{options:{xField:f,yField:c,seriesField:"rKey",isStack:!0,label:Object(i.get)(v,"range"),interval:{color:Object(i.get)(d,"range"),style:Object(i.get)(o,"range"),size:Object(i.get)(g,"range")}}});Object(a.interval)(x),e.geometries[0].tooltip(!1);var O=Object(s.deepAssign)({},t,{options:{xField:f,yField:h,seriesField:"mKey",isStack:!0,label:Object(i.get)(v,"measure"),interval:{color:Object(i.get)(d,"measure"),style:Object(i.get)(o,"measure"),size:Object(i.get)(g,"measure")}}});Object(a.interval)(O);var w=Object(s.deepAssign)({},t,{options:{xField:f,yField:l,seriesField:"tKey",label:Object(i.get)(v,"target"),point:{color:Object(i.get)(d,"target"),style:Object(i.get)(o,"target"),size:Object(i.isFunction)(Object(i.get)(g,"target"))?function(t){return Object(i.get)(g,"target")(t)/2}:Object(i.get)(g,"target")/2,shape:"horizontal"===p?"line":"hyphen"}}});return Object(a.point)(w),"horizontal"===p&&e.coordinate().transpose(),Object(r.__assign)(Object(r.__assign)({},t),{ext:{data:{min:y,max:b}}})}function c(t){var e,n,r=t.options,i=t.ext,a=r.xAxis,u=r.yAxis,l=r.targetField,c=r.rangeField,h=r.measureField,f=r.xField,d=i.data;return Object(s.flow)(Object(o.scale)(((e={})[f]=a,e[h]=u,e),((n={})[h]={min:null==d?void 0:d.min,max:null==d?void 0:d.max,sync:!0},n[l]={sync:"".concat(h)},n[c]={sync:"".concat(h)},n)))(t)}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.measureField,s=n.rangeField,u=n.targetField;return e.axis("".concat(s),!1),e.axis("".concat(u),!1),!1===r?e.axis("".concat(o),!1):e.axis("".concat(o),r),!1===i?e.axis("".concat(a),!1):e.axis("".concat(a),i),t}function f(t){var e=t.chart,n=t.options.legend;return e.removeInteraction("legend-filter"),e.legend(n),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function d(t){var e=t.chart,n=t.options,o=n.label,a=n.measureField,u=n.targetField,l=n.rangeField,c=e.geometries,h=c[0],f=c[1],d=c[2];return Object(i.get)(o,"range")?h.label("".concat(l),Object(r.__assign)({layout:[{type:"limit-in-plot"}]},Object(s.transformLabel)(o.range))):h.label(!1),Object(i.get)(o,"measure")?f.label("".concat(a),Object(r.__assign)({layout:[{type:"limit-in-plot"}]},Object(s.transformLabel)(o.measure))):f.label(!1),Object(i.get)(o,"target")?d.label("".concat(u),Object(r.__assign)({layout:[{type:"limit-in-plot"}]},Object(s.transformLabel)(o.target))):d.label(!1),t}function p(t){Object(s.flow)(l,c,h,f,o.theme,d,o.tooltip,o.interaction,o.animation)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getViewLegendItems",(function(){return s}));var r=n(17),i=n(1),o=n(3),a=n(227);function s(t){var e=t.view,n=t.geometryOption,s=t.yField,u=t.legend,l=Object(i.get)(u,"marker"),c=Object(o.findGeometry)(e,Object(a.isLine)(n)?"line":"interval");if(!n.seriesField){var h=Object(i.get)(e,"options.scales.".concat(s,".alias"))||s,f=c.getAttribute("color"),d=e.getTheme().defaultColor;return f&&(d=r.Util.getMappingValue(f,h,Object(i.get)(f,["values",0],d))),[{value:s,name:h,marker:(Object(i.isFunction)(l)?l:!Object(i.isEmpty)(l)&&Object(o.deepAssign)({},{style:{stroke:d,fill:d}},l))||(Object(a.isLine)(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:d}}:{symbol:"square",style:{fill:d}}),isGeometry:!0,viewId:e.id}]}var p=c.getGroupAttributes();return Object(i.reduce)(p,(function(t,n){var i=r.Util.getLegendItems(e,c,n,e.getTheme(),l);return t.concat(i)}),[])}},function(t,e,n){"use strict";n.r(e),n.d(e,"doSliderFilter",(function(){return o}));var r=n(1),i=n(3),o=function(t,e){var n=e[0],o=e[1],a=t.getOptions().data,s=t.getXScale(),u=Object(r.size)(a);if(s&&u){var l=Object(r.valuesOfKey)(a,s.field),c=l,h=Object(r.size)(c),f=Math.floor(n*(h-1)),d=Math.floor(o*(h-1));t.filter(s.field,(function(t){var e=c.indexOf(t);return!(e>-1)||Object(i.isBetween)(e,f,d)})),t.getRootView().render(!0)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"statistic",(function(){return c})),n.d(e,"adaptor",(function(){return h}));var r=n(2),i=n(1),o=n(9),a=n(36),s=n(3),u=n(806);function l(t){var e=t.chart,n=t.options,r=n.percent,i=n.liquidStyle,o=n.radius,l=n.outline,c=n.wave,h=n.shape,f=n.shapeStyle,d=n.animation;e.scale({percent:{min:0,max:1}}),e.data(Object(u.getLiquidData)(r));var p=n.color||e.getTheme().defaultColor,g=Object(s.deepAssign)({},t,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:p,style:i,shape:"liquid-fill-gauge"}}}),v=Object(a.interval)(g).ext.geometry,m={percent:r,radius:o,outline:l,wave:c,shape:h,shapeStyle:f,background:e.getTheme().background,animation:d};return v.customInfo(m),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function c(t,e){var n=t.chart,o=t.options,a=o.statistic,u=o.percent,l=o.meta;n.getController("annotation").clear(!0);var c=Object(i.get)(l,["percent","formatter"])||function(t){return"".concat((100*t).toFixed(2),"%")},h=a.content;return h&&(h=Object(s.deepAssign)({},h,{content:Object(i.isNil)(h.content)?c(u):h.content})),Object(s.renderStatistic)(n,{statistic:Object(r.__assign)(Object(r.__assign)({},a),{content:h}),plotType:"liquid"},{percent:u}),e&&n.render(!0),t}function h(t){return Object(s.flow)(o.theme,Object(o.pattern)("liquidStyle"),l,c,Object(o.scale)({}),o.animation,o.interaction)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return c})),n.d(e,"axis",(function(){return f})),n.d(e,"adaptor",(function(){return p}));var r=n(2),i=n(9),o=n(36),a=n(254),s=n(3),u=n(973);function l(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.color,a=n.tooltip,u=n.colorField,l=n.type,c=n.xField,h=n.yField,f=n.data,d=n.shape,p=Object(s.processIllegalData)(f,h);e.data(p);var g=Object(s.deepAssign)({},t,{options:{tooltip:a,seriesField:u,interval:{style:r,color:i,shape:d||("line"===l?"line":"intervel")},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return Object(o.interval)(g),"line"===l&&Object(o.point)({chart:e,options:{xField:c,yField:h,seriesField:u,point:{shape:"circle",color:i}}}),t}function c(t){var e,n=t.options,r=n.yField,o=n.xField,a=n.data,l=n.isStack,c=n.isGroup,h=n.colorField,f=n.maxAngle,d=l&&!c&&h?Object(u.getStackedData)(a,o,r):a,p=Object(s.processIllegalData)(d,r);return Object(s.flow)(Object(i.scale)(((e={})[r]={min:0,max:Object(u.getScaleMax)(f,r,p)},e)))(t)}function h(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}).transpose(),t}function f(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis;return e.axis(r,i),t}function d(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,a=Object(s.findGeometry)(e,"interval");if(i){var u=i.callback,l=Object(r.__rest)(i,["callback"]);a.label({fields:[o],callback:u,cfg:Object(r.__assign)(Object(r.__assign)({},Object(s.transformLabel)(l)),{type:"polar"})})}else a.label(!1);return t}function p(t){return Object(s.flow)(Object(a.pattern)("barStyle"),l,c,f,h,i.interaction,i.animation,i.theme,i.tooltip,i.legend,Object(i.annotation)(),d)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getScaleMax",(function(){return i})),n.d(e,"getStackedData",(function(){return o}));var r=n(2);function i(t,e,n){var r=n.map((function(t){return t[e]})).filter((function(t){return void 0!==t})),i=r.length>0?Math.max.apply(Math,r):0,o=Math.abs(t)%360;return o?360*i/o:i}function o(t,e,n){var i=[];return t.forEach((function(t){var o=i.find((function(n){return n[e]===t[e]}));o?o[n]+=t[n]||null:i.push(Object(r.__assign)({},t))})),i}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformData",(function(){return c}));var r=n(2),i=n(1),o=n(382),a=n(3),s=n(1829),u=n(809),l=n(228);function c(t){var e=t.data,n=t.colorField,c=t.rawFields,h=t.hierarchyConfig,f=void 0===h?{}:h,d=f.activeDepth,p={partition:s.partition,treemap:u.treemap},g=t.seriesField,v=t.type||"partition",m=p[v](e,Object(r.__assign)(Object(r.__assign)({field:g||"value"},Object(i.omit)(f,["activeDepth"])),{type:"hierarchy.".concat(v),as:["x","y"]})),y=[];return m.forEach((function(t){var e,i,s,u,h,p;if(0===t.depth)return null;if(d>0&&t.depth>d)return null;for(var v=t.data.name,m=Object(r.__assign)({},t);m.depth>1;)v="".concat(null===(i=m.parent.data)||void 0===i?void 0:i.name," / ").concat(v),m=m.parent;var b=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},Object(a.pick)(t.data,Object(r.__spreadArray)(Object(r.__spreadArray)([],c||[],!0),[f.field],!1))),((e={})[l.SUNBURST_PATH_FIELD]=v,e[l.SUNBURST_ANCESTOR_FIELD]=m.data.name,e)),t);g&&(b[g]=t.data[g]||(null===(u=null===(s=t.parent)||void 0===s?void 0:s.data)||void 0===u?void 0:u[g])),n&&(b[n]=t.data[n]||(null===(p=null===(h=t.parent)||void 0===h?void 0:h.data)||void 0===p?void 0:p[n])),b.ext=f,b[o.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:f,colorField:n,rawFields:c},y.push(b)})),y}},function(t,e,n){"use strict";n.r(e),n.d(e,"VennElementSelected",(function(){return u})),n.d(e,"VennElementSingleSelected",(function(){return l}));var r=n(2),i=n(17),o=n(433),a=Object(i.getActionClass)("element-selected"),s=Object(i.getActionClass)("element-single-selected"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.syncElementsPos=function(){Object(o.placeElementsOrdered)(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(a),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.syncElementsPos=function(){Object(o.placeElementsOrdered)(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(s)},function(t,e,n){"use strict";n.r(e);var r=n(292),i=n(291);e.default=function(t){return Object(i.default)(t)&&"[object Arguments]"==Object(r.default)(t)}},function(t,e,n){"use strict";n.r(e),function(t){var r=n(810),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.default.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();e.default=s}.call(this,n(898)(t))},function(t,e,n){"use strict";n.r(e);var r=n(856),i=n(394),o=n(858),a=n(859),s=n(860),u=n(292),l=n(364),c=Object(l.default)(r.default),h=Object(l.default)(i.default),f=Object(l.default)(o.default),d=Object(l.default)(a.default),p=Object(l.default)(s.default),g=u.default;(r.default&&"[object DataView]"!=g(new r.default(new ArrayBuffer(1)))||i.default&&"[object Map]"!=g(new i.default)||o.default&&"[object Promise]"!=g(o.default.resolve())||a.default&&"[object Set]"!=g(new a.default)||s.default&&"[object WeakMap]"!=g(new s.default))&&(g=function(t){var e=Object(u.default)(t),n="[object Object]"==e?t.constructor:void 0,r=n?Object(l.default)(n):"";if(r)switch(r){case c:return"[object DataView]";case h:return"[object Map]";case f:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return e}),e.default=g},function(t,e,n){"use strict";n.r(e);var r=n(1873),i=n(1874),o=n(1875),a=n(1876),s=n(1877);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=c&&(l=s[n],c=h)}var f=Object(r.nelderMead)((function(n){return-1*o({x:n[0],y:n[1]},t,e)}),[l.x,l.y],{maxIterations:500,minErrorDelta:1e-10}).x,d={x:f[0],y:f[1]},p=!0;for(n=0;nt[n].radius){p=!1;break}for(n=0;n0&&console.log("WARNING: area "+s+" not represented on screen")}return n}function u(t,e,n){var r=[],i=t-n,o=e;return r.push("M",i,o),r.push("A",n,n,0,1,0,i+2*n,o),r.push("A",n,n,0,1,0,i,o),r.join(" ")}function l(t){var e=t.split(" ");return{x:parseFloat(e[1]),y:parseFloat(e[2]),radius:-parseFloat(e[4])}}function c(t){var e={};Object(i.intersectionArea)(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return u(r.x,r.y,r.radius)}for(var o=["\nM",n[0].p2.x,n[0].p2.y],a=0;al;o.push("\nA",l,l,0,c?1:0,1,s.p1.x,s.p1.y)}return o.join(" ")}},function(t,e,n){"use strict";n.r(e),n.d(e,"venn",(function(){return o})),n.d(e,"distanceFromIntersectArea",(function(){return a})),n.d(e,"getDistanceMatrices",(function(){return s})),n.d(e,"bestInitialLayout",(function(){return u})),n.d(e,"constrainedMDSLayout",(function(){return l})),n.d(e,"greedyLayout",(function(){return c})),n.d(e,"lossFunction",(function(){return h})),n.d(e,"disjointCluster",(function(){return d})),n.d(e,"normalizeSolution",(function(){return g})),n.d(e,"scaleSolution",(function(){return v}));var r=n(277),i=n(180);function o(t,e){(e=e||{}).maxIterations=e.maxIterations||500;var n,i=e.initialLayout||u,o=e.lossFunction||h,a=i(t=function(t){t=t.slice();var e,n,r,i,o=[],a={};for(e=0;ee?1:-1})),e=0;e=Math.min(e[r].size,e[s].size)?l=1:t.size<=1e-10&&(l=-1),o[r][s]=o[s][r]=l})),{distances:i,constraints:o}}function u(t,e){var n=c(t,e),r=e.lossFunction||h;if(t.length>=8){var i=l(t,e);r(i,t)+1e-80&&p<=h||f<0&&p>=h||(o+=2*g*g,e[2*i]+=4*g*(a-l),e[2*i+1]+=4*g*(s-c),e[2*u]+=4*g*(l-a),e[2*u+1]+=4*g*(c-s))}return o}(t,e,c,h)};for(n=0;n=Math.min(o[d].size,o[p].size)&&(f=0),s[d].push({set:p,size:c.size,weight:f}),s[p].push({set:d,size:c.size,weight:f})}var g=[];for(n in s)if(s.hasOwnProperty(n)){var v=0;for(u=0;u0){var o=t[0].x,a=t[0].y;for(r=0;r1){var s=Math.atan2(t[1].x,t[1].y)-e,u=void 0,l=void 0,c=Math.cos(s),h=Math.sin(s);for(r=0;r2){for(var f=Math.atan2(t[2].x,t[2].y)-e;f<0;)f+=2*Math.PI;for(;f>2*Math.PI;)f-=2*Math.PI;if(f>Math.PI){var d=t[1].y/(1e-10+t[1].x);for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{};t.target=t.target||n,e.call(n,t)})}},{key:"removeEventListener",value:function(t,e){this["on"+t]===e&&(this["on"+t]=null)}}]),n}(u.default);d.UNSEND=0,d.OPENED=1,d.HEADERS_RECEIVED=2,d.LOADING=3,d.DONE=4},function(t,e,n){"use strict";n.r(e),n.d(e,"arcLineAtOffset",(function(){return a}));var r=n(64),i=n(130),o=n(1929);function a(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:30,a=arguments.length>6?arguments[6]:void 0,s=n;return a&&(s=Math.round(n*(o-1))/(o-1)),l(t,e,s,r||.314,i)}function s(t,e){var n=1-e;return(t[0]*n+t[1]*e)*n+(t[1]*n+t[2]*e)*e}function u(t,e,n){var r,i,o=[e[0]-t[0],e[1]-t[1]],a=(r=o,i=[0,0],Math.sqrt(Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2))),s=Math.atan2(o[1],o[0]),u=a/2/Math.cos(n),l=s+n;return[u*Math.cos(l)+t[0],u*Math.sin(l)+t[1]]}function l(t,e,n,a,l){if(l===o.Version["GAODE2.x"]){var c=Object(i.amap2Project)(t[0],t[1]),h=Object(i.amap2Project)(e[0],e[1]),f=u(c,h,a),d=[c[0],f[0],h[0]],p=[c[1],f[1],h[1]];return[].concat(Object(r.default)(Object(i.amap2UnProject)(s(d,n),s(p,n))),[0])}var g=u(t,e,a),v=[t[0],g[0],e[0]],m=[t[1],g[1],e[1]];return[s(v,n),s(m,n),0]}},function(t,e,n){"use strict";n.r(e),n.d(e,"getLatLonBoundsBuffer",(function(){return i})),n.d(e,"isLatLonBoundsContains",(function(){return o}));var r=n(130),i=function(t,e){var n=Object(r.bBoxToBounds)(t),i=Object(r.padBounds)(n,e);return[Math.max(i[0][0],-900),Math.max(i[0][1],-85.0511287798065),Math.min(i[1][0],900),Math.min(i[1][1],85.0511287798065)]},o=function(t,e){var n=Object(r.bBoxToBounds)(t),i=Object(r.bBoxToBounds)(e);return Object(r.boundsContains)(n,i)}},function(t,e,n){"use strict";function r(t,e,n){n=n||2;var r,o,s,u,l,c,d,p=e&&e.length,v=p?e[0]*n:t.length,m=i(t,0,v,n,!0),y=[];if(!m||m.next===m.prev)return y;if(p&&(m=function(t,e,n,r){var o,a,s,u,l,c=[];for(o=0,a=e.length;o80*n){r=s=t[0],o=u=t[1];for(var b=n;bs&&(s=l),c>u&&(u=c);d=0!==(d=Math.max(s-r,u-o))?32767/d:0}return a(m,y,n,r,o,d,0),y}function i(t,e,n,r,i){var o,a;if(i===M(t,e,n,r)>0)for(o=e;o=e;o-=r)a=C(o,t[o],t[o+1],a);return a&&b(a,a.next)&&(E(a),a=a.next),a}function o(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!b(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{if(E(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function a(t,e,n,r,i,h,f){if(t){!f&&h&&function(t,e,n,r){var i=t;do{0===i.z&&(i.z=p(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,a,s,u,l=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(a>1)}(i)}(t,r,i,h);for(var d,g,v=t;t.prev!==t.next;)if(d=t.prev,g=t.next,h?u(t,r,i,h):s(t))e.push(d.i/n|0),e.push(t.i/n|0),e.push(g.i/n|0),E(t),t=g.next,v=g.next;else if((t=g)===v){f?1===f?a(t=l(o(t),e,n),e,n,r,i,h,2):2===f&&c(t,e,n,r,i,h):a(o(t),e,n,r,i,h,1);break}}}function s(t){var e=t.prev,n=t,r=t.next;if(y(e,n,r)>=0)return!1;for(var i=e.x,o=n.x,a=r.x,s=e.y,u=n.y,l=r.y,c=io?i>a?i:a:o>a?o:a,d=s>u?s>l?s:l:u>l?u:l,p=r.next;p!==e;){if(p.x>=c&&p.x<=f&&p.y>=h&&p.y<=d&&v(i,s,o,u,a,l,p.x,p.y)&&y(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function u(t,e,n,r){var i=t.prev,o=t,a=t.next;if(y(i,o,a)>=0)return!1;for(var s=i.x,u=o.x,l=a.x,c=i.y,h=o.y,f=a.y,d=su?s>l?s:l:u>l?u:l,b=c>h?c>f?c:f:h>f?h:f,_=p(d,g,e,n,r),x=p(m,b,e,n,r),O=t.prevZ,w=t.nextZ;O&&O.z>=_&&w&&w.z<=x;){if(O.x>=d&&O.x<=m&&O.y>=g&&O.y<=b&&O!==i&&O!==a&&v(s,c,u,h,l,f,O.x,O.y)&&y(O.prev,O,O.next)>=0)return!1;if(O=O.prevZ,w.x>=d&&w.x<=m&&w.y>=g&&w.y<=b&&w!==i&&w!==a&&v(s,c,u,h,l,f,w.x,w.y)&&y(w.prev,w,w.next)>=0)return!1;w=w.nextZ}for(;O&&O.z>=_;){if(O.x>=d&&O.x<=m&&O.y>=g&&O.y<=b&&O!==i&&O!==a&&v(s,c,u,h,l,f,O.x,O.y)&&y(O.prev,O,O.next)>=0)return!1;O=O.prevZ}for(;w&&w.z<=x;){if(w.x>=d&&w.x<=m&&w.y>=g&&w.y<=b&&w!==i&&w!==a&&v(s,c,u,h,l,f,w.x,w.y)&&y(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}function l(t,e,n){var r=t;do{var i=r.prev,a=r.next.next;!b(i,a)&&_(i,r,r.next,a)&&w(i,a)&&w(a,i)&&(e.push(i.i/n|0),e.push(r.i/n|0),e.push(a.i/n|0),E(r),E(r.next),r=t=a),r=r.next}while(r!==t);return o(r)}function c(t,e,n,r,i,s){var u=t;do{for(var l=u.next.next;l!==u.prev;){if(u.i!==l.i&&m(u,l)){var c=S(u,l);return u=o(u,u.next),c=o(c,c.next),a(u,e,n,r,i,s,0),void a(c,e,n,r,i,s,0)}l=l.next}u=u.next}while(u!==t)}function h(t,e){return t.x-e.x}function f(t,e){var n=function(t,e){var n,r=e,i=t.x,o=t.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&&(a=s,n=r.x=r.x&&r.x>=c&&i!==r.x&&v(on.x||r.x===n.x&&d(n,r)))&&(n=r,f=u)),r=r.next}while(r!==l);return n}(t,e);if(!n)return e;var r=S(n,t);return o(r,r.next),o(n,n.next)}function d(t,e){return y(t.prev,t,e.prev)<0&&y(e.next,t,t.next)<0}function p(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function g(t){var e=t,n=t;do{(e.x=(t-a)*(o-s)&&(t-a)*(r-s)>=(n-a)*(e-s)&&(n-a)*(o-s)>=(i-a)*(r-s)}function m(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&_(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(w(t,e)&&w(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.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!==t);return r}(t,e)&&(y(t.prev,t,e.prev)||y(t,e.prev,e))||b(t,e)&&y(t.prev,t,t.next)>0&&y(e.prev,e,e.next)>0)}function y(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function b(t,e){return t.x===e.x&&t.y===e.y}function _(t,e,n,r){var i=O(y(t,e,n)),o=O(y(t,e,r)),a=O(y(n,r,t)),s=O(y(n,r,e));return i!==o&&a!==s||(!(0!==i||!x(t,n,e))||(!(0!==o||!x(t,r,e))||(!(0!==a||!x(n,t,r))||!(0!==s||!x(n,e,r)))))}function x(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function O(t){return t>0?1:t<0?-1:0}function w(t,e){return y(t.prev,t,t.next)<0?y(t,e,t.next)>=0&&y(t,t.prev,e)>=0:y(t,e,t.prev)<0||y(t,t.next,e)<0}function S(t,e){var n=new T(t.i,t.x,t.y),r=new T(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function C(t,e,n,r){var i=new T(t,e,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 E(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function T(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function M(t,e,n,r){for(var i=0,o=e,a=n-r;o0&&(r+=t[i-1].length,n.holes.push(r))}return n}},function(t,e,n){"use strict";n.r(e),n.d(e,"registerWorkerSource",(function(){return i})),n.d(e,"getWorkerSource",(function(){return o}));var r=new Map;function i(t,e){r.set(t,e)}function o(t){return r.get(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getDistanceScales",(function(){return i}));var r=Math.PI/180;function i(t){var e=t.latitude,n=void 0===e?0:e,i=t.zoom,o=void 0===i?0:i,a=t.scale,s=t.highPrecision,u=void 0!==s&&s,l=t.flipY,c=void 0!==l&&l,h={},f=512*(a=void 0!==a?a:Math.pow(2,o)),d=Math.cos(n*r),p=f/360,g=p/d,v=f/4003e4/d;if(h.pixelsPerMeter=[v,-v,v],h.metersPerPixel=[1/v,-1/v,1/v],h.pixelsPerDegree=[p,-g,v],h.degreesPerPixel=[1/p,-1/g,1/v],u){var m=r*Math.tan(n*r)/d,y=p*m/2,b=f/4003e4*m,_=b/g*v;h.pixelsPerDegree2=[0,-y,b],h.pixelsPerMeter2=[_,0,_],c&&(h.pixelsPerDegree2[1]=-h.pixelsPerDegree2[1],h.pixelsPerMeter2[1]=-h.pixelsPerMeter2[1])}return c&&(h.pixelsPerMeter[1]=-h.pixelsPerMeter[1],h.metersPerPixel[1]=-h.metersPerPixel[1],h.pixelsPerDegree[1]=-h.pixelsPerDegree[1],h.degreesPerPixel[1]=-h.degreesPerPixel[1]),h}},function(t,e){function n(t){var e=t.target||t.srcElement;e.__resizeRAF__&&cancelAnimationFrame(e.__resizeRAF__),e.__resizeRAF__=requestAnimationFrame((function(){var n=e.__resizeTrigger__,r=n&&n.__resizeListeners__;r&&r.forEach((function(e){e.call(n,t)}))}))}var r=function(t,e){var r,i=this.document,o=i.attachEvent;if("undefined"!=typeof navigator&&(r=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/)),!t.__resizeListeners__)if(t.__resizeListeners__=[],o)t.__resizeTrigger__=t,t.attachEvent("onresize",n);else{"static"===getComputedStyle(t).position&&(t.style.position="relative");var a=t.__resizeTrigger__=i.createElement("object");a.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),a.setAttribute("class","resize-sensor"),a.setAttribute("tabindex","-1"),a.setAttribute("title",""),a.__resizeElement__=t,a.onload=function(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",n)},a.type="text/html",r&&t.appendChild(a),a.data="about:blank",r||t.appendChild(a)}t.__resizeListeners__.push(e)};t.exports="undefined"==typeof window?r:r.bind(window),t.exports.unbind=function(t,e){var r=document.attachEvent,i=t.__resizeListeners__||[];if(e){var o=i.indexOf(e);-1!==o&&i.splice(o,1)}else i=t.__resizeListeners__=[];if(!i.length){if(r)t.detachEvent("onresize",n);else if(t.__resizeTrigger__){var a=t.__resizeTrigger__.contentDocument,s=a&&a.defaultView;s&&(s.removeEventListener("resize",n),delete s.__resizeTrigger__),t.__resizeTrigger__=!t.removeChild(t.__resizeTrigger__)}delete t.__resizeListeners__}}},function(t,e,n){"use strict";function r(t){var e=0;switch(t){case"vec2":case"ivec2":e=2;break;case"vec3":case"ivec3":e=3;break;case"vec4":case"ivec4":case"mat2":e=4;break;case"mat3":e=9;break;case"mat4":e=16}return e}n.r(e),n.d(e,"getUniformLengthByType",(function(){return r})),n.d(e,"extractUniforms",(function(){return o}));var i=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\s\S]*?);/g;function o(t){var e={};return{content:t=t.replace(i,(function(t,n,i){var o=i.split(":"),a=o[0].trim(),s="";switch(o.length>1&&(s=o[1].trim()),n){case"bool":s="true"===s;break;case"float":case"int":s=Number(s);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":s=s?s.replace("[","").replace("]","").split(",").reduce((function(t,e){return t.push(Number(e.trim())),t}),[]):new Array(r(n)).fill(0)}return e[a]=s,"uniform ".concat(n," ").concat(a,";\n")})),uniforms:e}}},function(t,e,n){"use strict";n.r(e),n.d(e,"toPaddingOptions",(function(){return i}));var r=n(30);function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={top:0,right:0,bottom:0,left:0};if("number"==typeof t)return{top:t,right:t,bottom:t,left:t};if(Array.isArray(t)){if(4===t.length)return{top:t[0],right:t[1],bottom:t[2],left:t[3]};if(2===t.length)return{top:t[0],right:t[1],bottom:t[0],left:t[1]}}return Object(r.default)(Object(r.default)({},e),t)}},,function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(2008),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(281))},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r3?0:(t-t%10!=10)*t%10]}};var m={D:function(t){return t.getDay()},DD:function(t){return f(t.getDay())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDate()},dd:function(t){return f(t.getDate())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return f(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},yy:function(t){return f(String(t.getFullYear()),4).substr(2)},yyyy:function(t){return f(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return f(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return f(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return f(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return f(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return f(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return f(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+f(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},y={d:["\\d\\d?",function(t,e){t.day=e}],Do:["\\d\\d?"+s,function(t,e){t.day=parseInt(e,10)}],M:["\\d\\d?",function(t,e){t.month=e-1}],yy:["\\d\\d?",function(t,e){var n=+(""+(new Date).getFullYear()).substr(0,2);t.year=""+(e>68?n-1:n)+e}],h:["\\d\\d?",function(t,e){t.hour=e}],m:["\\d\\d?",function(t,e){t.minute=e}],s:["\\d\\d?",function(t,e){t.second=e}],yyyy:["\\d{4}",function(t,e){t.year=e}],S:["\\d",function(t,e){t.millisecond=100*e}],SS:["\\d{2}",function(t,e){t.millisecond=10*e}],SSS:["\\d{3}",function(t,e){t.millisecond=e}],D:["\\d\\d?",l],ddd:[s,l],MMM:[s,h("monthNamesShort")],MMMM:[s,h("monthNames")],a:[s,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(t,e){var n,r=(e+"").match(/([+-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};y.dd=y.d,y.dddd=y.ddd,y.DD=y.D,y.mm=y.m,y.hh=y.H=y.HH=y.h,y.MM=y.M,y.ss=y.s,y.A=y.a,o.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},o.format=function(t,e,n){var r=n||o.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");e=o.masks[e]||e||o.masks.default;var i=[];return(e=(e=e.replace(u,(function(t,e){return i.push(e),"@@@"}))).replace(a,(function(e){return e in m?m[e](t,r):e.slice(1,e.length-1)}))).replace(/@@@/g,(function(){return i.shift()}))},o.parse=function(t,e,n){var r=n||o.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=o.masks[e]||e,t.length>1e3)return null;var i={},s=[],l=[];e=e.replace(u,(function(t,e){return l.push(e),"@@@"}));var c,h=(c=e,c.replace(/[|\\{()[^$+*?.-]/g,"\\$&")).replace(a,(function(t){if(y[t]){var e=y[t];return s.push(e[1]),"("+e[0]+")"}return t}));h=h.replace(/@@@/g,(function(){return l.shift()}));var f=t.match(new RegExp(h,"i"));if(!f)return null;for(var d=1;d0?this._openTimer=setTimeout((function(){e._openTimer=null,e.doOpen(n)}),r):this.doOpen(n)},doOpen:function(t){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var e=this.$el,n=t.modal,r=t.zIndex;if(r&&(o.default.zIndex=r),n&&(this._closing&&(o.default.closeModal(this._popupId),this._closing=!1),o.default.openModal(this._popupId,o.default.nextZIndex(),this.modalAppendToBody?void 0:e,t.modalClass,t.modalFade),t.lockScroll)){this.withoutHiddenClass=!(0,s.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,s.getStyle)(document.body,"paddingRight"),10)),c=(0,a.default)();var i=document.documentElement.clientHeight0&&(i||"scroll"===u)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+c+"px"),(0,s.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(e).position&&(e.style.position="absolute"),e.style.zIndex=o.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var t=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var e=Number(this.closeDelay);e>0?this._closeTimer=setTimeout((function(){t._closeTimer=null,t.doClose()}),e):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){o.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,s.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},e.PopupManager=o.default},function(t,e,n){"use strict";e.__esModule=!0;n(304);e.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(209),o=(r=i)&&r.__esModule?r:{default:r},a=n(340);var s=[],u="@@clickoutsideContext",l=void 0,c=0;function h(t,e,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&r.target&&i.target)||t.contains(r.target)||t.contains(i.target)||t===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(i.target))||(e.expression&&t[u].methodName&&n.context[t[u].methodName]?n.context[t[u].methodName]():t[u].bindingFn&&t[u].bindingFn())}}!o.default.prototype.$isServer&&(0,a.on)(document,"mousedown",(function(t){return l=t})),!o.default.prototype.$isServer&&(0,a.on)(document,"mouseup",(function(t){s.forEach((function(e){return e[u].documentHandler(t,l)}))})),e.default={bind:function(t,e,n){s.push(t);var r=c++;t[u]={id:r,documentHandler:h(t,e,n),methodName:e.expression,bindingFn:e.value}},update:function(t,e,n){t[u].documentHandler=h(t,e,n),t[u].methodName=e.expression,t[u].bindingFn=e.value},unbind:function(t){for(var e=s.length,n=0;n-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.model=n.concat([null])):o>-1&&(t.model=n.slice(0,o).concat(n.slice(o+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",disabled:t.isDisabled,name:t.name},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}})]),t.$slots.default||t.label?n("span",{staticClass:"el-checkbox__label"},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2):t._e()])};r._withStripped=!0;var i=n(4),o={name:"ElCheckbox",mixins:[n.n(i).a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.lengththis._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[t])):(this.$emit("input",t),this.selfModel=t)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var t=this.$parent;t;){if("ElCheckboxGroup"===t.$options.componentName)return this._checkboxGroup=t,!0;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||t}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,t),this.$nextTick((function(){e.isGroup&&e.dispatch("ElCheckboxGroup","change",[e._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",t)}}},a=n(0),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file="packages/checkbox/src/checkbox.vue";var u=s.exports;u.install=function(t){t.component(u.name,u)};e.default=u},4:function(t,e){t.exports=n(404)}})},function(t,e){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,e){var i,o,a,s,u;for(a in e)if(i=t[a],o=e[a],i&&n.test(a))if("class"===a&&("string"==typeof i&&(u=i,t[a]=i={},i[u]=!0),"string"==typeof o&&(u=o,e[a]=o={},o[u]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)i[s]=r(i[s],o[s]);else if(Array.isArray(i))t[a]=i.concat(o);else if(Array.isArray(o))t[a]=[i].concat(o);else for(s in o)i[s]=o[s];else t[a]=e[a];return t}),{})}},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=130)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},130:function(t,e,n){"use strict";n.r(e);var r={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(t){return-1!==["dark","light","plain"].indexOf(t)}}},methods:{handleClose:function(t){t.stopPropagation(),this.$emit("close",t)},handleClick:function(t){this.$emit("click",t)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(t){var e=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=t("span",{class:["el-tag",e?"el-tag--"+e:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&t("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?o:t("transition",{attrs:{name:"el-zoom-in-center"}},[o])}},i=n(0),o=Object(i.a)(r,void 0,void 0,!1,null,null,null);o.options.__file="packages/tag/src/tag.vue";var a=o.exports;a.install=function(t){t.component(a.name,a)};e.default=a}})},function(t,e,n){t.exports=!n(405)&&!n(541)((function(){return 7!=Object.defineProperty(n(1014)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(540),i=n(366).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(406),i=n(448),o=n(2061)(!1),a=n(882)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(1017);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(636),i=n(878),o=n(1019),a=n(446),s=n(887),u=n(2068),l=n(888),c=n(2071),h=n(449)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,p,g,v,m){u(n,e,p);var y,b,_,x=function(t){if(!f&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",w="values"==g,S=!1,C=t.prototype,E=C[h]||C["@@iterator"]||g&&C[g],T=E||x(g),M=g?w?x("entries"):T:void 0,A="Array"==e&&C.entries||E;if(A&&(_=c(A.call(new t)))!==Object.prototype&&_.next&&(l(_,O,!0),r||"function"==typeof _[h]||a(_,h,d)),w&&E&&"values"!==E.name&&(S=!0,T=function(){return E.call(this)}),r&&!m||!f&&!S&&C[h]||a(C,h,T),s[e]=T,s[O]=d,g)if(y={values:w?T:x("values"),keys:v?T:x("keys"),entries:M},m)for(b in y)b in C||o(C,b,y[b]);else i(i.P+i.F*(f||S),e,y);return y}},function(t,e,n){t.exports=n(446)},function(t,e,n){var r=n(633),i=n(2069),o=n(884),a=n(882)("IE_PROTO"),s=function(){},u=function(){var t,e=n(1014)("iframe"),r=o.length;for(e.style.display="none",n(2070).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("