1)return s(u[0])}else{var o=n.name;D[o]=n,e=o}return!r&&e&&(Y=e),e||!r&&Y},f=function(s,n){if(U(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new A(t)},a=Q;a.l=W,a.i=U,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var A=function(){function s(t){this.$L=W(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[E]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(B);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==z},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t){const w=j.__vccOpts||j;for(const[g,C]of J)w[g]=C;return w};export{nt as _,et as d};
diff --git a/dist/static/bigtitle-Czau_E1q.png b/dist/static/bigtitle-Czau_E1q.png
new file mode 100644
index 0000000..8544c11
Binary files /dev/null and b/dist/static/bigtitle-Czau_E1q.png differ
diff --git a/dist/static/bmap_offline_api_v3.0_min.js b/dist/static/bmap_offline_api_v3.0_min.js
new file mode 100644
index 0000000..5749325
--- /dev/null
+++ b/dist/static/bmap_offline_api_v3.0_min.js
@@ -0,0 +1,10917 @@
+window.TILE_VERSION = {
+ ditu: {
+ normal: {
+ version: '088',
+ updateDate: '20180829',
+ },
+ satellite: {
+ version: '009',
+ updateDate: '20180829',
+ },
+ normalTraffic: {
+ version: '081',
+ updateDate: '20180829',
+ },
+ satelliteTraffic: {
+ version: '083',
+ updateDate: '20180829',
+ },
+ mapJS: {
+ version: '104',
+ updateDate: '20180829',
+ },
+ satelliteStreet: {
+ version: '083',
+ updateDate: '20180829',
+ },
+ panoClick: {
+ version: '1033',
+ updateDate: '20180816',
+ },
+ panoUdt: {
+ version: '20180816',
+ updateDate: '20180816',
+ },
+ panoSwfAPI: {
+ version: '20150123',
+ updateDate: '20150123',
+ },
+ panoSwfPlace: {
+ version: '20141112',
+ updateDate: '20141112',
+ },
+ earthVector: {
+ version: '001',
+ updateDate: '20180829',
+ },
+ },
+ webapp: {
+ high_normal: {
+ version: '001',
+ updateDate: '20180829',
+ },
+ lower_normal: {
+ version: '002',
+ updateDate: '20180829',
+ },
+ },
+ api_for_mobile: {
+ vector: {
+ version: '002',
+ updateDate: '20180829',
+ },
+ vectorIcon: {
+ version: '002',
+ updateDate: '20180829',
+ },
+ },
+}
+window.BMAP_AUTHENTIC_KEY = ''
+;(function () {
+ function aa(a) {
+ throw a
+ }
+ var l = void 0,
+ q = !0,
+ s = null,
+ t = !1
+ function u() {
+ return function () {}
+ }
+ function ba(a) {
+ return function (b) {
+ this[a] = b
+ }
+ }
+ function w(a) {
+ return function () {
+ return this[a]
+ }
+ }
+ function ca(a) {
+ return function () {
+ return a
+ }
+ }
+ var da,
+ ea = []
+ function ga(a) {
+ return function () {
+ return ea[a].apply(this, arguments)
+ }
+ }
+ function ha(a, b) {
+ return (ea[a] = b)
+ }
+ var ia,
+ z = (ia = z || {
+ version: '1.3.4',
+ })
+ z.aa = '$BAIDU$'
+ window[z.aa] = window[z.aa] || {}
+ z.object = z.object || {}
+ z.extend = z.object.extend = function (a, b) {
+ for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c])
+ return a
+ }
+ z.D = z.D || {}
+ z.D.$ = function (a) {
+ return 'string' == typeof a || a instanceof String
+ ? document.getElementById(a)
+ : a && a.nodeName && (1 == a.nodeType || 9 == a.nodeType)
+ ? a
+ : s
+ }
+ z.$ = z.Fc = z.D.$
+ z.D.U = function (a) {
+ a = z.D.$(a)
+ if (a === s) return a
+ a.style.display = 'none'
+ return a
+ }
+ z.U = z.D.U
+ z.lang = z.lang || {}
+ z.lang.wg = function (a) {
+ return '[object String]' == Object.prototype.toString.call(a)
+ }
+ z.wg = z.lang.wg
+ z.D.Oj = function (a) {
+ return z.lang.wg(a) ? document.getElementById(a) : a
+ }
+ z.Oj = z.D.Oj
+ z.D.getElementsByClassName = function (a, b) {
+ var c
+ if (a.getElementsByClassName) c = a.getElementsByClassName(b)
+ else {
+ var e = a
+ e == s && (e = document)
+ c = []
+ var e = e.getElementsByTagName('*'),
+ f = e.length,
+ g = RegExp('(^|\\s)' + b + '(\\s|$)'),
+ i,
+ k
+ for (k = i = 0; i < f; i++) g.test(e[i].className) && ((c[k] = e[i]), k++)
+ }
+ return c
+ }
+ z.getElementsByClassName = z.D.getElementsByClassName
+ z.D.contains = function (a, b) {
+ var c = z.D.Oj,
+ a = c(a),
+ b = c(b)
+ return a.contains
+ ? a != b && a.contains(b)
+ : !!(a.compareDocumentPosition(b) & 16)
+ }
+ z.ca = z.ca || {}
+ ;/msie (\d+\.\d)/i.test(navigator.userAgent) &&
+ (z.ca.ia = z.ia = document.documentMode || +RegExp.$1)
+ var ja = {
+ cellpadding: 'cellPadding',
+ cellspacing: 'cellSpacing',
+ colspan: 'colSpan',
+ rowspan: 'rowSpan',
+ valign: 'vAlign',
+ usemap: 'useMap',
+ frameborder: 'frameBorder',
+ }
+ 8 > z.ca.ia
+ ? ((ja['for'] = 'htmlFor'), (ja['class'] = 'className'))
+ : ((ja.htmlFor = 'for'), (ja.className = 'class'))
+ z.D.RG = ja
+ z.D.BF = function (a, b, c) {
+ a = z.D.$(a)
+ if (a === s) return a
+ if ('style' == b) a.style.cssText = c
+ else {
+ b = z.D.RG[b] || b
+ a.setAttribute(b, c)
+ }
+ return a
+ }
+ z.BF = z.D.BF
+ z.D.CF = function (a, b) {
+ a = z.D.$(a)
+ if (a === s) return a
+ for (var c in b) z.D.BF(a, c, b[c])
+ return a
+ }
+ z.CF = z.D.CF
+ z.Wk = z.Wk || {}
+ ;(function () {
+ var a = RegExp('(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)', 'g')
+ z.Wk.trim = function (b) {
+ return ('' + b).replace(a, '')
+ }
+ })()
+ z.trim = z.Wk.trim
+ z.Wk.Wo = function (a, b) {
+ var a = '' + a,
+ c = Array.prototype.slice.call(arguments, 1),
+ e = Object.prototype.toString
+ if (c.length) {
+ c =
+ c.length == 1
+ ? b !== s && /\[object Array\]|\[object Object\]/.test(e.call(b))
+ ? b
+ : c
+ : c
+ return a.replace(/#\{(.+?)\}/g, function (a, b) {
+ var i = c[b]
+ '[object Function]' == e.call(i) && (i = i(b))
+ return 'undefined' == typeof i ? '' : i
+ })
+ }
+ return a
+ }
+ z.Wo = z.Wk.Wo
+ z.D.Pb = function (a, b) {
+ a = z.D.$(a)
+ if (a === s) return a
+ for (
+ var c = a.className.split(/\s+/),
+ e = b.split(/\s+/),
+ f,
+ g = e.length,
+ i,
+ k = 0;
+ k < g;
+ ++k
+ ) {
+ i = 0
+ for (f = c.length; i < f; ++i)
+ if (c[i] == e[k]) {
+ c.splice(i, 1)
+ break
+ }
+ }
+ a.className = c.join(' ')
+ return a
+ }
+ z.Pb = z.D.Pb
+ z.D.Vx = function (a, b, c) {
+ a = z.D.$(a)
+ if (a === s) return a
+ var e
+ if (a.insertAdjacentHTML) a.insertAdjacentHTML(b, c)
+ else {
+ e = a.ownerDocument.createRange()
+ b = b.toUpperCase()
+ if (b == 'AFTERBEGIN' || b == 'BEFOREEND') {
+ e.selectNodeContents(a)
+ e.collapse(b == 'AFTERBEGIN')
+ } else {
+ b = b == 'BEFOREBEGIN'
+ e[b ? 'setStartBefore' : 'setEndAfter'](a)
+ e.collapse(b)
+ }
+ e.insertNode(e.createContextualFragment(c))
+ }
+ return a
+ }
+ z.Vx = z.D.Vx
+ z.D.show = function (a) {
+ a = z.D.$(a)
+ if (a === s) return a
+ a.style.display = ''
+ return a
+ }
+ z.show = z.D.show
+ z.D.QD = function (a) {
+ a = z.D.$(a)
+ return a === s ? a : a.nodeType == 9 ? a : a.ownerDocument || a.document
+ }
+ z.D.Ua = function (a, b) {
+ a = z.D.$(a)
+ if (a === s) return a
+ for (
+ var c = b.split(/\s+/),
+ e = a.className,
+ f = ' ' + e + ' ',
+ g = 0,
+ i = c.length;
+ g < i;
+ g++
+ )
+ f.indexOf(' ' + c[g] + ' ') < 0 && (e = e + (' ' + c[g]))
+ a.className = e
+ return a
+ }
+ z.Ua = z.D.Ua
+ z.D.PB = z.D.PB || {}
+ z.D.Ol = z.D.Ol || []
+ z.D.Ol.filter = function (a, b, c) {
+ for (var e = 0, f = z.D.Ol, g; (g = f[e]); e++) if ((g = g[c])) b = g(a, b)
+ return b
+ }
+ z.Wk.RO = function (a) {
+ return a.indexOf('-') < 0 && a.indexOf('_') < 0
+ ? a
+ : a.replace(/[-_][^-_]/g, function (a) {
+ return a.charAt(1).toUpperCase()
+ })
+ }
+ z.D.m0 = function (a) {
+ z.D.it(a, 'expand') ? z.D.Pb(a, 'expand') : z.D.Ua(a, 'expand')
+ }
+ z.D.it = function (a) {
+ if (arguments.length <= 0 || typeof a === 'function') return this
+ if (this.size() <= 0) return t
+ var a = a.replace(/^\s+/g, '').replace(/\s+$/g, '').replace(/\s+/g, ' '),
+ b = a.split(' '),
+ c
+ z.forEach(this, function (a) {
+ for (var a = a.className, f = 0; f < b.length; f++)
+ if (!~(' ' + a + ' ').indexOf(' ' + b[f] + ' ')) {
+ c = t
+ return
+ }
+ c !== t && (c = q)
+ })
+ return c
+ }
+ z.D.oj = function (a, b) {
+ var c = z.D,
+ a = c.$(a)
+ if (a === s) return a
+ var b = z.Wk.RO(b),
+ e = a.style[b]
+ if (!e)
+ var f = c.PB[b],
+ e = a.currentStyle || (z.ca.ia ? a.style : getComputedStyle(a, s)),
+ e = f && f.get ? f.get(a, e) : e[f || b]
+ if ((f = c.Ol)) e = f.filter(b, e, 'get')
+ return e
+ }
+ z.oj = z.D.oj
+ ;/opera\/(\d+\.\d)/i.test(navigator.userAgent) && (z.ca.opera = +RegExp.$1)
+ z.ca.HM = /webkit/i.test(navigator.userAgent)
+ z.ca.VY =
+ /gecko/i.test(navigator.userAgent) &&
+ !/like gecko/i.test(navigator.userAgent)
+ z.ca.DE = 'CSS1Compat' == document.compatMode
+ z.D.ga = function (a) {
+ a = z.D.$(a)
+ if (a === s) return a
+ var b = z.D.QD(a),
+ c = z.ca,
+ e = z.D.oj
+ c.VY > 0 && b.getBoxObjectFor && e(a, 'position')
+ var f = {
+ left: 0,
+ top: 0,
+ },
+ g
+ if (a == (c.ia && !c.DE ? b.body : b.documentElement)) return f
+ if (a.getBoundingClientRect) {
+ a = a.getBoundingClientRect()
+ f.left =
+ Math.floor(a.left) +
+ Math.max(b.documentElement.scrollLeft, b.body.scrollLeft)
+ f.top =
+ Math.floor(a.top) +
+ Math.max(b.documentElement.scrollTop, b.body.scrollTop)
+ f.left = f.left - b.documentElement.clientLeft
+ f.top = f.top - b.documentElement.clientTop
+ a = b.body
+ b = parseInt(e(a, 'borderLeftWidth'))
+ e = parseInt(e(a, 'borderTopWidth'))
+ if (c.ia && !c.DE) {
+ f.left = f.left - (isNaN(b) ? 2 : b)
+ f.top = f.top - (isNaN(e) ? 2 : e)
+ }
+ } else {
+ g = a
+ do {
+ f.left = f.left + g.offsetLeft
+ f.top = f.top + g.offsetTop
+ if (c.HM > 0 && e(g, 'position') == 'fixed') {
+ f.left = f.left + b.body.scrollLeft
+ f.top = f.top + b.body.scrollTop
+ break
+ }
+ g = g.offsetParent
+ } while (g && g != a)
+ if (c.opera > 0 || (c.HM > 0 && e(a, 'position') == 'absolute'))
+ f.top = f.top - b.body.offsetTop
+ for (g = a.offsetParent; g && g != b.body; ) {
+ f.left = f.left - g.scrollLeft
+ if (!c.opera || g.tagName != 'TR') f.top = f.top - g.scrollTop
+ g = g.offsetParent
+ }
+ }
+ return f
+ }
+ ;/firefox\/(\d+\.\d)/i.test(navigator.userAgent) && (z.ca.Te = +RegExp.$1)
+ ;/BIDUBrowser/i.test(navigator.userAgent) && (z.ca.n2 = q)
+ var ka = navigator.userAgent
+ ;/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(ka) &&
+ !/chrome/i.test(ka) &&
+ (z.ca.Iy = +(RegExp.$1 || RegExp.$2))
+ ;/chrome\/(\d+\.\d)/i.test(navigator.userAgent) && (z.ca.Qw = +RegExp.$1)
+ z.mc = z.mc || {}
+ z.mc.Fb = function (a, b) {
+ var c,
+ e,
+ f = a.length
+ if ('function' == typeof b)
+ for (e = 0; e < f; e++) {
+ c = a[e]
+ c = b.call(a, c, e)
+ if (c === t) break
+ }
+ return a
+ }
+ z.Fb = z.mc.Fb
+ z.lang.aa = function () {
+ return 'TANGRAM__' + (window[z.aa]._counter++).toString(36)
+ }
+ window[z.aa]._counter = window[z.aa]._counter || 1
+ window[z.aa]._instances = window[z.aa]._instances || {}
+ z.lang.wt = function (a) {
+ return '[object Function]' == Object.prototype.toString.call(a)
+ }
+ z.lang.Ca = function (a) {
+ this.aa = a || z.lang.aa()
+ window[z.aa]._instances[this.aa] = this
+ }
+ window[z.aa]._instances = window[z.aa]._instances || {}
+ z.lang.Ca.prototype.ci = ga(0)
+ z.lang.Ca.prototype.toString = function () {
+ return '[object ' + (this.UQ || 'Object') + ']'
+ }
+ z.lang.Ju = function (a, b) {
+ this.type = a
+ this.returnValue = q
+ this.target = b || s
+ this.currentTarget = s
+ }
+ z.lang.Ca.prototype.addEventListener = function (a, b, c) {
+ if (z.lang.wt(b)) {
+ !b.fl && (b.fl = {})
+ !this.Ci && (this.Ci = {})
+ var e = this.Ci,
+ f
+ if (typeof c == 'string' && c) {
+ ;/[^\w\-]/.test(c) && aa('nonstandard key:' + c)
+ f = b.Nx = c
+ }
+ a.indexOf('on') != 0 && (a = 'on' + a)
+ typeof e[a] != 'object' && (e[a] = {})
+ typeof b.fl[a] != 'object' && (b.fl[a] = {})
+ f = f || z.lang.aa()
+ b.fl[a].Nx = f
+ e[a][f] = b
+ }
+ }
+ z.lang.Ca.prototype.removeEventListener = function (a, b) {
+ a.indexOf('on') != 0 && (a = 'on' + a)
+ if (z.lang.wt(b)) {
+ if (!b.fl || !b.fl[a]) return
+ b = b.fl[a].Nx
+ } else if (!z.lang.wg(b)) return
+ !this.Ci && (this.Ci = {})
+ var c = this.Ci
+ c[a] && c[a][b] && delete c[a][b]
+ }
+ z.lang.Ca.prototype.dispatchEvent = function (a, b) {
+ z.lang.wg(a) && (a = new z.lang.Ju(a))
+ !this.Ci && (this.Ci = {})
+ var b = b || {},
+ c
+ for (c in b) a[c] = b[c]
+ var e = this.Ci,
+ f = a.type
+ a.target = a.target || this
+ a.currentTarget = this
+ f.indexOf('on') != 0 && (f = 'on' + f)
+ z.lang.wt(this[f]) && this[f].apply(this, arguments)
+ if (typeof e[f] == 'object') for (c in e[f]) e[f][c].apply(this, arguments)
+ return a.returnValue
+ }
+ z.lang.ta = function (a, b, c) {
+ var e,
+ f,
+ g = a.prototype
+ f = new Function()
+ f.prototype = b.prototype
+ f = a.prototype = new f()
+ for (e in g) f[e] = g[e]
+ a.prototype.constructor = a
+ a.b0 = b.prototype
+ if ('string' == typeof c) f.UQ = c
+ }
+ z.ta = z.lang.ta
+ z.lang.Nc = function (a) {
+ return window[z.aa]._instances[a] || s
+ }
+ z.platform = z.platform || {}
+ z.platform.AM = /macintosh/i.test(navigator.userAgent)
+ z.platform.h4 = /MicroMessenger/i.test(navigator.userAgent)
+ z.platform.IM = /windows/i.test(navigator.userAgent)
+ z.platform.cZ = /x11/i.test(navigator.userAgent)
+ z.platform.Jm = /android/i.test(navigator.userAgent)
+ ;/android (\d+\.\d)/i.test(navigator.userAgent) &&
+ (z.platform.dK = z.dK = RegExp.$1)
+ z.platform.XY = /ipad/i.test(navigator.userAgent)
+ z.platform.zE = /iphone/i.test(navigator.userAgent)
+ function la(a, b) {
+ a.domEvent = b = window.event || b
+ a.clientX = b.clientX || b.pageX
+ a.clientY = b.clientY || b.pageY
+ a.offsetX = b.offsetX || b.layerX
+ a.offsetY = b.offsetY || b.layerY
+ a.screenX = b.screenX
+ a.screenY = b.screenY
+ a.ctrlKey = b.ctrlKey || b.metaKey
+ a.shiftKey = b.shiftKey
+ a.altKey = b.altKey
+ if (b.touches) {
+ a.touches = []
+ for (var c = 0; c < b.touches.length; c++)
+ a.touches.push({
+ clientX: b.touches[c].clientX,
+ clientY: b.touches[c].clientY,
+ screenX: b.touches[c].screenX,
+ screenY: b.touches[c].screenY,
+ pageX: b.touches[c].pageX,
+ pageY: b.touches[c].pageY,
+ target: b.touches[c].target,
+ identifier: b.touches[c].identifier,
+ })
+ }
+ if (b.changedTouches) {
+ a.changedTouches = []
+ for (c = 0; c < b.changedTouches.length; c++)
+ a.changedTouches.push({
+ clientX: b.changedTouches[c].clientX,
+ clientY: b.changedTouches[c].clientY,
+ screenX: b.changedTouches[c].screenX,
+ screenY: b.changedTouches[c].screenY,
+ pageX: b.changedTouches[c].pageX,
+ pageY: b.changedTouches[c].pageY,
+ target: b.changedTouches[c].target,
+ identifier: b.changedTouches[c].identifier,
+ })
+ }
+ if (b.targetTouches) {
+ a.targetTouches = []
+ for (c = 0; c < b.targetTouches.length; c++)
+ a.targetTouches.push({
+ clientX: b.targetTouches[c].clientX,
+ clientY: b.targetTouches[c].clientY,
+ screenX: b.targetTouches[c].screenX,
+ screenY: b.targetTouches[c].screenY,
+ pageX: b.targetTouches[c].pageX,
+ pageY: b.targetTouches[c].pageY,
+ target: b.targetTouches[c].target,
+ identifier: b.targetTouches[c].identifier,
+ })
+ }
+ a.rotation = b.rotation
+ a.scale = b.scale
+ return a
+ }
+ z.lang.hx = function (a) {
+ var b = window[z.aa]
+ b.eT && delete b.eT[a]
+ }
+ z.event = {}
+ z.M = z.event.M = function (a, b, c) {
+ if (!(a = z.$(a))) return a
+ b = b.replace(/^on/, '')
+ a.addEventListener
+ ? a.addEventListener(b, c, t)
+ : a.attachEvent && a.attachEvent('on' + b, c)
+ return a
+ }
+ z.ed = z.event.ed = function (a, b, c) {
+ if (!(a = z.$(a))) return a
+ b = b.replace(/^on/, '')
+ a.removeEventListener
+ ? a.removeEventListener(b, c, t)
+ : a.detachEvent && a.detachEvent('on' + b, c)
+ return a
+ }
+ z.D.it = function (a, b) {
+ if (!a || !a.className || typeof a.className != 'string') return t
+ var c = -1
+ try {
+ c =
+ a.className == b ||
+ a.className.search(RegExp('(\\s|^)' + b + '(\\s|$)'))
+ } catch (e) {
+ return t
+ }
+ return c > -1
+ }
+ z.iL = (function () {
+ function a(a) {
+ document.addEventListener &&
+ ((this.element = a),
+ (this.lL = this.Dk ? 'touchstart' : 'mousedown'),
+ (this.xD = this.Dk ? 'touchmove' : 'mousemove'),
+ (this.wD = this.Dk ? 'touchend' : 'mouseup'),
+ (this.oh = t),
+ (this.mu = this.lu = 0),
+ this.element.addEventListener(this.lL, this, t),
+ ia.M(this.element, 'mousedown', u()),
+ this.handleEvent(s))
+ }
+ a.prototype = {
+ Dk: 'ontouchstart' in window || 'createTouch' in document,
+ start: function (a) {
+ ma(a)
+ this.oh = t
+ this.lu = this.Dk ? a.touches[0].clientX : a.clientX
+ this.mu = this.Dk ? a.touches[0].clientY : a.clientY
+ this.element.addEventListener(this.xD, this, t)
+ this.element.addEventListener(this.wD, this, t)
+ },
+ move: function (a) {
+ na(a)
+ var c = this.Dk ? a.touches[0].clientY : a.clientY
+ if (
+ 10 <
+ Math.abs((this.Dk ? a.touches[0].clientX : a.clientX) - this.lu) ||
+ 10 < Math.abs(c - this.mu)
+ )
+ this.oh = q
+ },
+ end: function (a) {
+ na(a)
+ this.oh ||
+ ((a = document.createEvent('Event')),
+ a.initEvent('tap', t, q),
+ this.element.dispatchEvent(a))
+ this.element.removeEventListener(this.xD, this, t)
+ this.element.removeEventListener(this.wD, this, t)
+ },
+ handleEvent: function (a) {
+ if (a)
+ switch (a.type) {
+ case this.lL:
+ this.start(a)
+ break
+ case this.xD:
+ this.move(a)
+ break
+ case this.wD:
+ this.end(a)
+ }
+ },
+ }
+ return function (b) {
+ return new a(b)
+ }
+ })()
+ var B = window.BMap || {}
+ B.version = '3.0'
+ B.gV = 0.34 > Math.random()
+ 0 <= B.version.indexOf('#') && (B.version = '3.0')
+ B.Fr = []
+ B.Ye = function (a) {
+ this.Fr.push(a)
+ }
+ B.ur = []
+ B.Tm = function (a) {
+ this.ur.push(a)
+ }
+ B.vV = B.apiLoad || u()
+ B.Q0 =
+ B.verify ||
+ function () {
+ B.version &&
+ B.version >= 1.5 &&
+ oa(B.Wc + '?qt=verify&ak=' + qa, function (a) {
+ if (a && a.error !== 0) {
+ if (typeof map !== 'undefined') {
+ map.La().innerHTML = ''
+ map.Ci = {}
+ }
+ B = s
+ var b =
+ '\u767e\u5ea6\u672a\u6388\u6743\u4f7f\u7528\u5730\u56feAPI\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u60a8\u63d0\u4f9b\u7684\u5bc6\u94a5\u4e0d\u662f\u6709\u6548\u7684\u767e\u5ea6LBS\u5f00\u653e\u5e73\u53f0\u5bc6\u94a5\uff0c\u6216\u6b64\u5bc6\u94a5\u672a\u5bf9\u672c\u5e94\u7528\u7684\u767e\u5ea6\u5730\u56feJavaScriptAPI\u6388\u6743\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u5982\u4e0b\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u7684\u5bc6\u94a5\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002'
+ switch (a.error) {
+ case 101:
+ b =
+ '\u5f00\u53d1\u8005\u7981\u7528\u4e86\u8be5ak\u7684jsapi\u670d\u52a1\u6743\u9650\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u5982\u4e0b\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u7684\u5bc6\u94a5\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002'
+ break
+ case 102:
+ b =
+ '\u5f00\u53d1\u8005Referer\u4e0d\u6b63\u786e\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u5982\u4e0b\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u7684\u5bc6\u94a5\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002'
+ }
+ alert(b)
+ }
+ })
+ }
+ var qa = window.BMAP_AUTHENTIC_KEY
+ window.BMAP_AUTHENTIC_KEY = s
+ var ra = window.BMap_loadScriptTime,
+ sa = new Date().getTime(),
+ ta = s,
+ ua = q,
+ va = 5042,
+ xa = 5002,
+ ya = 5003,
+ za = 'load_mapclick',
+ Aa = 5038,
+ Ba = 5041,
+ Ca = 5047,
+ Da = 5036,
+ Ea = 5039,
+ Fa = 5037,
+ Ga = 5040,
+ Ha = 5011,
+ Ia = 7e3
+ var Ja = 0
+ function Ka(a, b) {
+ if ((a = z.$(a))) {
+ var c = this
+ z.lang.Ca.call(c)
+ b = b || {}
+ c.K = {
+ tC: 200,
+ Wb: q,
+ px: t,
+ nD: q,
+ To: q,
+ Uo: b.enableWheelZoom || t,
+ gL: q,
+ pD: q,
+ Ns: q,
+ nx: q,
+ tD: q,
+ Ro: b.enable3DBuilding || t,
+ Ic: 25,
+ b1: 240,
+ iV: 450,
+ Vb: G.Vb,
+ Hd: G.Hd,
+ Yx: !!b.Yx,
+ gc: Math.round(b.minZoom) || 1,
+ Yb: Math.round(b.maxZoom) || 19,
+ Hb: b.mapType || La,
+ e5: t,
+ cL: b.drawer || Ja,
+ ox: q,
+ lx: 500,
+ aX: b.enableHighResolution !== t,
+ fj: b.enableMapClick !== t,
+ devicePixelRatio: b.devicePixelRatio || window.devicePixelRatio || 1,
+ fG: 99,
+ ye: b.mapStyle || s,
+ jZ: b.logoControl === t ? t : q,
+ DV: [],
+ Kw: b.beforeClickIcon || s,
+ Ms: t,
+ qN: q,
+ }
+ c.K.ye && (this.LY(c.K.ye.controls), this.sM(c.K.ye.geotableId))
+ c.K.ye && c.K.ye.styleId && c.O3(c.K.ye.styleId)
+ c.K.fm = {
+ dark: {
+ backColor: '#2D2D2D',
+ textColor: '#bfbfbf',
+ iconUrl: 'dicons',
+ },
+ normal: {
+ backColor: '#F3F1EC',
+ textColor: '#c61b1b',
+ iconUrl: 'icons',
+ },
+ light: {
+ backColor: '#EBF8FC',
+ textColor: '#017fb4',
+ iconUrl: 'licons',
+ },
+ }
+ b.enableAutoResize && (c.K.nx = b.enableAutoResize)
+ b.enableStreetEntrance === t && (c.K.tD = b.enableStreetEntrance)
+ b.enableDeepZoom === t && (c.K.gL = b.enableDeepZoom)
+ var e = c.K.DV
+ if (H())
+ for (var f = 0, g = e.length; f < g; f++)
+ if (z.ca[e[f]]) {
+ c.K.devicePixelRatio = 1
+ break
+ }
+ e = -1 < navigator.userAgent.toLowerCase().indexOf('android')
+ f = -1 < navigator.userAgent.toLowerCase().indexOf('mqqbrowser')
+ if (
+ -1 < navigator.userAgent.toLowerCase().indexOf('UCBrowser') ||
+ (e && f)
+ )
+ c.K.fG = 99
+ c.Wa = a
+ c.IB(a)
+ a.unselectable = 'on'
+ a.innerHTML = ''
+ a.appendChild(c.va())
+ b.size && this.Ce(b.size)
+ e = c.cb()
+ c.width = e.width
+ c.height = e.height
+ c.offsetX = 0
+ c.offsetY = 0
+ c.platform = a.firstChild
+ c.ze = c.platform.firstChild
+ c.ze.style.width = c.width + 'px'
+ c.ze.style.height = c.height + 'px'
+ c.Yd = {}
+ c.re = new J(0, 0)
+ c.fc = new J(0, 0)
+ c.Oa = 3
+ c.Oc = 0
+ c.LC = s
+ c.KC = s
+ c.Ub = ''
+ c.Rw = ''
+ c.Jh = {}
+ c.Jh.custom = {}
+ c.Sa = 0
+ b.useWebGL === t && Na(t)
+ c.P = new Oa(a, {
+ of: 'api',
+ jT: q,
+ })
+ c.P.U()
+ c.P.GF(c)
+ b = b || {}
+ e = c.Hb = c.K.Hb
+ c.cd = e.wm()
+ e === Qa && Ra(xa)
+ e === Sa && Ra(ya)
+ e = c.K
+ e.hP = Math.round(b.minZoom)
+ e.gP = Math.round(b.maxZoom)
+ c.bv()
+ c.R = {
+ Jc: t,
+ nc: 0,
+ Bt: 0,
+ MM: 0,
+ l4: 0,
+ lC: t,
+ pF: -1,
+ Qe: [],
+ }
+ c.platform.style.cursor = c.K.Vb
+ for (f = 0; f < B.Fr.length; f++) B.Fr[f](c)
+ c.R.pF = f
+ c.ba()
+ K.load('map', function () {
+ c.ib()
+ })
+ c.K.fj &&
+ (setTimeout(function () {
+ Ra(za)
+ }, 1e3),
+ K.load(
+ 'mapclick',
+ function () {
+ window.MPC_Mgr = window.MPC_Mgr || {}
+ window.MPC_Mgr[c.aa] = new Ta(c)
+ },
+ q
+ ))
+ Ua() &&
+ K.load('oppc', function () {
+ c.Dz()
+ })
+ H() &&
+ K.load('opmb', function () {
+ c.Dz()
+ })
+ a = s
+ c.WB = []
+ }
+ }
+ z.lang.ta(Ka, z.lang.Ca, 'Map')
+ z.extend(Ka.prototype, {
+ va: function () {
+ var a = L('div'),
+ b = a.style
+ b.overflow = 'visible'
+ b.position = 'absolute'
+ b.zIndex = '0'
+ b.top = b.left = '0px'
+ var b = L('div', {
+ class: 'BMap_mask',
+ }),
+ c = b.style
+ c.position = 'absolute'
+ c.top = c.left = '0px'
+ c.zIndex = '9'
+ c.overflow = 'hidden'
+ c.WebkitUserSelect = 'none'
+ a.appendChild(b)
+ return a
+ },
+ IB: function (a) {
+ var b = a.style
+ b.overflow = 'hidden'
+ 'absolute' !== Va(a).position &&
+ ((b.position = 'relative'), (b.zIndex = 0))
+ b.backgroundColor = '#F3F1EC'
+ b.color = '#000'
+ b.textAlign = 'left'
+ },
+ ba: function () {
+ var a = this
+ a.as = function () {
+ var b = a.cb()
+ if (a.width !== b.width || a.height !== b.height) {
+ var c = new O(a.width, a.height),
+ e = new P('onbeforeresize')
+ e.size = c
+ a.dispatchEvent(e)
+ a.ik((b.width - a.width) / 2, (b.height - a.height) / 2)
+ a.ze.style.width = (a.width = b.width) + 'px'
+ a.ze.style.height = (a.height = b.height) + 'px'
+ c = new P('onresize')
+ c.size = b
+ a.dispatchEvent(c)
+ }
+ }
+ a.K.nx && (a.R.es = setInterval(a.as, 80))
+ },
+ ik: function (a, b, c, e) {
+ var f = this.oa().dc(this.fa()),
+ g = this.cd,
+ i = q
+ c && J.yM(c) && ((this.re = new J(c.lng, c.lat)), (i = t))
+ if ((c = c && e ? g.vj(c, this.Ub) : this.fc))
+ if (
+ ((this.fc = new J(c.lng + a * f, c.lat - b * f)),
+ (a = g.nh(this.fc, this.Ub)) && i)
+ )
+ this.re = a
+ },
+ Gg: function (a, b) {
+ if (
+ Wa(a) &&
+ (this.bv(),
+ this.dispatchEvent(new P('onzoomstart')),
+ (a = this.Yn(a).zoom),
+ a !== this.Oa)
+ ) {
+ this.Oc = this.Oa
+ this.Oa = a
+ var c
+ b ? (c = b) : this.hh() && (c = this.hh().ga())
+ c &&
+ ((c = this.$b(c, this.Oc)),
+ this.ik(
+ this.width / 2 - c.x,
+ this.height / 2 - c.y,
+ this.xb(c, this.Oc),
+ q
+ ))
+ this.dispatchEvent(new P('onzoomstartcode'))
+ }
+ },
+ Qc: function (a) {
+ this.Gg(a)
+ },
+ kG: function (a) {
+ this.Gg(this.Oa + 1, a)
+ },
+ lG: function (a) {
+ this.Gg(this.Oa - 1, a)
+ },
+ qi: function (a) {
+ a instanceof J &&
+ ((this.fc = this.cd.vj(a, this.Ub)),
+ (this.re = J.yM(a)
+ ? new J(a.lng, a.lat)
+ : this.cd.nh(this.fc, this.Ub)))
+ },
+ Ag: function (a, b) {
+ a = Math.round(a) || 0
+ b = Math.round(b) || 0
+ this.ik(-a, -b)
+ },
+ Aw: function (a) {
+ a &&
+ Xa(a.He) &&
+ (a.He(this), this.dispatchEvent(new P('onaddcontrol', a)))
+ },
+ VN: function (a) {
+ a &&
+ Xa(a.remove) &&
+ (a.remove(), this.dispatchEvent(new P('onremovecontrol', a)))
+ },
+ yo: function (a) {
+ a &&
+ Xa(a.na) &&
+ (a.na(this), this.dispatchEvent(new P('onaddcontextmenu', a)))
+ },
+ Cp: function (a) {
+ a &&
+ Xa(a.remove) &&
+ (this.dispatchEvent(new P('onremovecontextmenu', a)), a.remove())
+ },
+ Ga: function (a) {
+ a &&
+ Xa(a.He) &&
+ (a.He(this), this.dispatchEvent(new P('onaddoverlay', a)))
+ },
+ Qb: function (a) {
+ a &&
+ Xa(a.remove) &&
+ (a.remove(), this.dispatchEvent(new P('onremoveoverlay', a)))
+ },
+ yK: function () {
+ this.dispatchEvent(new P('onclearoverlays'))
+ },
+ Oe: function (a) {
+ a && this.dispatchEvent(new P('onaddtilelayer', a))
+ },
+ Yf: function (a) {
+ a && this.dispatchEvent(new P('onremovetilelayer', a))
+ },
+ Dg: function (a) {
+ if (this.Hb !== a) {
+ var b = new P('onsetmaptype')
+ b.V4 = this.Hb
+ this.Hb = this.K.Hb = a
+ this.cd = this.Hb.wm()
+ this.ik(0, 0, this.Ka(), q)
+ this.bv()
+ var c = this.Yn(this.fa()).zoom
+ this.Gg(c)
+ this.dispatchEvent(b)
+ b = new P('onmaptypechange')
+ b.Oa = c
+ b.Hb = a
+ this.dispatchEvent(b)
+ ;(a === Ya || a === Sa) && Ra(ya)
+ }
+ },
+ Zf: function (a) {
+ var b = this
+ if (a instanceof J)
+ b.qi(a, {
+ noAnimation: q,
+ })
+ else if ($a(a))
+ if (b.Hb === Qa) {
+ var c = G.pC[a]
+ c && ((pt = c.k), b.Zf(pt))
+ } else {
+ var e = this.WH()
+ e.JF(function (c) {
+ 0 === e.xm() &&
+ 2 === e.Ia.result.type &&
+ (b.Zf(c.Ak(0).point), Qa.wk(a) && b.DF(a))
+ })
+ e.search(a, {
+ log: 'center',
+ })
+ }
+ },
+ Fd: function (a, b) {
+ '[object Undefined]' !== Object.prototype.toString.call(b) &&
+ (b = parseInt(b))
+ B.Fn('cus.fire', 'time', {
+ z_loadscripttime: sa - ra,
+ })
+ var c = this
+ if ($a(a))
+ if (c.Hb === Qa) {
+ var e = G.pC[a]
+ e && ((pt = e.k), c.Fd(pt, b))
+ } else {
+ var f = c.WH()
+ f.JF(function (e) {
+ if (
+ 0 === f.xm() &&
+ (2 === f.Ia.result.type || 11 === f.Ia.result.type)
+ ) {
+ var e = e.Ak(0).point,
+ g = b || ab.tx(f.Ia.content.level, c)
+ c.Fd(e, g)
+ Qa.wk(a) && c.DF(a)
+ }
+ })
+ f.search(a, {
+ log: 'center',
+ })
+ }
+ else if (a instanceof J && b) {
+ b = c.Yn(b).zoom
+ c.Oc = c.Oa || b
+ c.Oa = b
+ e = c.re
+ c.re = new J(a.lng, a.lat)
+ c.fc = c.cd.vj(c.re, c.Ub)
+ c.LC = c.LC || c.Oa
+ c.KC = c.KC || c.re
+ var g = new P('onload'),
+ i = new P('onloadcode')
+ g.point = new J(a.lng, a.lat)
+ g.pixel = c.$b(c.re, c.Oa)
+ g.zoom = b
+ c.loaded || ((c.loaded = q), c.dispatchEvent(g), ta || (ta = bb()))
+ c.dispatchEvent(i)
+ g = new P('onmoveend')
+ g.mv = 'centerAndZoom'
+ e.pb(c.re) || c.dispatchEvent(g)
+ c.dispatchEvent(new P('onmoveend'))
+ c.Oc !== c.Oa &&
+ ((e = new P('onzoomend')),
+ (e.mv = 'centerAndZoom'),
+ c.dispatchEvent(e))
+ c.K.Ro && c.Ro()
+ }
+ },
+ WH: function () {
+ this.R.YM || (this.R.YM = new cb(1))
+ return this.R.YM
+ },
+ reset: function () {
+ this.Fd(this.KC, this.LC, q)
+ },
+ enableDragging: function () {
+ this.K.Wb = q
+ },
+ disableDragging: function () {
+ this.K.Wb = t
+ },
+ enableInertialDragging: function () {
+ this.K.ox = q
+ },
+ disableInertialDragging: function () {
+ this.K.ox = t
+ },
+ enableScrollWheelZoom: function () {
+ this.K.Uo = q
+ },
+ disableScrollWheelZoom: function () {
+ this.K.Uo = t
+ },
+ enableContinuousZoom: function () {
+ this.K.To = q
+ },
+ disableContinuousZoom: function () {
+ this.K.To = t
+ },
+ enableDoubleClickZoom: function () {
+ this.K.nD = q
+ },
+ disableDoubleClickZoom: function () {
+ this.K.nD = t
+ },
+ enableKeyboard: function () {
+ this.K.px = q
+ },
+ disableKeyboard: function () {
+ this.K.px = t
+ },
+ enablePinchToZoom: function () {
+ this.K.Ns = q
+ },
+ disablePinchToZoom: function () {
+ this.K.Ns = t
+ },
+ enableAutoResize: function () {
+ this.K.nx = q
+ this.as()
+ this.R.es || (this.R.es = setInterval(this.as, 80))
+ },
+ disableAutoResize: function () {
+ this.K.nx = t
+ this.R.es && (clearInterval(this.R.es), (this.R.es = s))
+ },
+ Ro: function () {
+ this.K.Ro = q
+ this.Nn ||
+ ((this.Nn = new db({
+ pL: q,
+ })),
+ this.Oe(this.Nn))
+ },
+ KW: function () {
+ this.K.Ro = t
+ this.Nn && (this.Yf(this.Nn), (this.Nn = s), delete this.Nn)
+ },
+ cb: function () {
+ return this.xs && this.xs instanceof O
+ ? new O(this.xs.width, this.xs.height)
+ : new O(this.Wa.clientWidth, this.Wa.clientHeight)
+ },
+ Ce: function (a) {
+ a && a instanceof O
+ ? ((this.xs = a),
+ (this.Wa.style.width = a.width + 'px'),
+ (this.Wa.style.height = a.height + 'px'))
+ : (this.xs = s)
+ },
+ Ka: w('re'),
+ fa: w('Oa'),
+ ZV: function () {
+ this.as()
+ },
+ Yn: function (a) {
+ var b = this.K.gc,
+ c = this.K.Yb,
+ e = t,
+ a = Math.round(a)
+ a < b && ((e = q), (a = b))
+ a > c && ((e = q), (a = c))
+ return {
+ zoom: a,
+ yD: e,
+ }
+ },
+ La: w('Wa'),
+ $b: function (a, b) {
+ b = b || this.fa()
+ return this.cd.$b(a, b, this.fc, this.cb(), this.Ub)
+ },
+ xb: function (a, b) {
+ b = b || this.fa()
+ return this.cd.xb(a, b, this.fc, this.cb(), this.Ub)
+ },
+ Xe: function (a, b) {
+ if (a) {
+ var c = this.$b(new J(a.lng, a.lat), b)
+ c.x -= this.offsetX
+ c.y -= this.offsetY
+ return c
+ }
+ },
+ JN: function (a, b) {
+ if (a) {
+ var c = new Q(a.x, a.y)
+ c.x += this.offsetX
+ c.y += this.offsetY
+ return this.xb(c, b)
+ }
+ },
+ pointToPixelFor3D: function (a, b) {
+ var c = map.Ub
+ this.Hb === Qa && c && eb.EK(a, this, b)
+ },
+ P4: function (a, b) {
+ var c = map.Ub
+ this.Hb === Qa && c && eb.DK(a, this, b)
+ },
+ Q4: function (a, b) {
+ var c = this,
+ e = map.Ub
+ c.Hb === Qa &&
+ e &&
+ eb.EK(a, c, function (a) {
+ a.x -= c.offsetX
+ a.y -= c.offsetY
+ b && b(a)
+ })
+ },
+ L4: function (a, b) {
+ var c = map.Ub
+ this.Hb === Qa &&
+ c &&
+ ((a.x += this.offsetX), (a.y += this.offsetY), eb.DK(a, this, b))
+ },
+ ve: function (a) {
+ if (!this.Xx()) return new fb()
+ var b = a || {},
+ a = b.margins || [0, 0, 0, 0],
+ c = b.zoom || s,
+ b = this.xb(
+ {
+ x: a[3],
+ y: this.height - a[2],
+ },
+ c
+ ),
+ a = this.xb(
+ {
+ x: this.width - a[1],
+ y: a[0],
+ },
+ c
+ )
+ return new fb(b, a)
+ },
+ Xx: function () {
+ return !!this.loaded
+ },
+ nS: function (a, b) {
+ for (
+ var c = this.oa(),
+ e = b.margins || [10, 10, 10, 10],
+ f = b.zoomFactor || 0,
+ g = e[1] + e[3],
+ e = e[0] + e[2],
+ i = c.bp(),
+ k = (c = c.sm());
+ k >= i;
+ k--
+ ) {
+ var m = this.oa().dc(k)
+ if (a.YF().lng / m < this.width - g && a.YF().lat / m < this.height - e)
+ break
+ }
+ k += f
+ k < i && (k = i)
+ k > c && (k = c)
+ return k
+ },
+ ht: function (a, b) {
+ var c = {
+ center: this.Ka(),
+ zoom: this.fa(),
+ }
+ if (
+ !a ||
+ (!a instanceof fb && 0 === a.length) ||
+ (a instanceof fb && a.tj())
+ )
+ return c
+ var e = []
+ a instanceof fb ? (e.push(a.Rf()), e.push(a.Ve())) : (e = a.slice(0))
+ for (var b = b || {}, f = [], g = 0, i = e.length; g < i; g++)
+ f.push(this.cd.vj(e[g], this.Ub))
+ e = new fb()
+ for (g = f.length - 1; 0 <= g; g--) e.extend(f[g])
+ if (e.tj()) return c
+ c = e.Ka()
+ f = this.nS(e, b)
+ b.margins &&
+ ((e = b.margins),
+ (g = (e[1] - e[3]) / 2),
+ (e = (e[0] - e[2]) / 2),
+ (i = this.oa().dc(f)),
+ b.offset && ((g = b.offset.width), (e = b.offset.height)),
+ (c.lng += i * g),
+ (c.lat += i * e))
+ c = this.cd.nh(c, this.Ub)
+ return {
+ center: c,
+ zoom: f,
+ }
+ },
+ yh: function (a, b) {
+ var c
+ c = a && a.center ? a : this.ht(a, b)
+ var b = b || {},
+ e = b.delay || 200
+ if (c.zoom === this.Oa && b.enableAnimation !== t) {
+ var f = this
+ setTimeout(function () {
+ f.qi(c.center, {
+ duration: 210,
+ })
+ }, e)
+ } else this.Fd(c.center, c.zoom)
+ },
+ Tf: w('Yd'),
+ hh: function () {
+ return this.R.qb && this.R.qb.Xa() ? this.R.qb : s
+ },
+ getDistance: function (a, b) {
+ if (a && b) {
+ if (a.pb(b)) return 0
+ var c = 0,
+ c = S.$o(a, b)
+ if (c === s || c === l) c = 0
+ return c
+ }
+ },
+ Hx: function () {
+ var a = [],
+ b = this.ya,
+ c = this.Ee
+ if (b) for (var e in b) b[e] instanceof gb && a.push(b[e])
+ if (c) {
+ e = 0
+ for (b = c.length; e < b; e++) a.push(c[e])
+ }
+ return a
+ },
+ oa: w('Hb'),
+ Dz: function () {
+ for (var a = this.R.pF; a < B.Fr.length; a++) B.Fr[a](this)
+ this.R.pF = a
+ },
+ DF: function (a) {
+ //修改 setCurrentCity
+ //i_setCurrentCity(this, a);
+ this.Ub = Qa.wk(a)
+ this.Rw = Qa.BL(this.Ub)
+ this.Hb === Qa && this.cd instanceof hb && (this.cd.$i = this.Ub)
+ },
+ setDefaultCursor: function (a) {
+ this.K.Vb = a
+ this.platform && (this.platform.style.cursor = this.K.Vb)
+ },
+ getDefaultCursor: function () {
+ return this.K.Vb
+ },
+ setDraggingCursor: function (a) {
+ this.K.Hd = a
+ },
+ getDraggingCursor: function () {
+ return this.K.Hd
+ },
+ Sx: function () {
+ return this.K.aX && 1.5 <= this.K.devicePixelRatio
+ },
+ Cw: function (a, b) {
+ b ? this.Jh[b] || (this.Jh[b] = {}) : (b = 'custom')
+ a.tag = b
+ a instanceof ib && ((this.Jh[b][a.aa] = a), a.na(this))
+ var c = this
+ K.load(
+ 'hotspot',
+ function () {
+ c.Dz()
+ },
+ q
+ )
+ },
+ VZ: function (a, b) {
+ b || (b = 'custom')
+ this.Jh[b][a.aa] && delete this.Jh[b][a.aa]
+ },
+ dm: function (a) {
+ a || (a = 'custom')
+ this.Jh[a] = {}
+ },
+ bv: function () {
+ var a = this.Hb.bp(),
+ b = this.Hb.sm(),
+ c = this.K
+ c.gc = c.hP || a
+ c.Yb = c.gP || b
+ c.gc < a && (c.gc = a)
+ c.Yb > b && (c.Yb = b)
+ },
+ setMinZoom: function (a) {
+ a = Math.round(a)
+ a > this.K.Yb && (a = this.K.Yb)
+ this.K.hP = a
+ this.HJ()
+ },
+ setMaxZoom: function (a) {
+ a = Math.round(a)
+ a < this.K.gc && (a = this.K.gc)
+ this.K.gP = a
+ this.HJ()
+ },
+ HJ: function () {
+ this.bv()
+ var a = this.K
+ this.Oa < a.gc ? this.Qc(a.gc) : this.Oa > a.Yb && this.Qc(a.Yb)
+ var b = new P('onzoomspanchange')
+ b.gc = a.gc
+ b.Yb = a.Yb
+ this.dispatchEvent(b)
+ },
+ Q3: w('WB'),
+ getKey: function () {
+ return qa
+ },
+ Zt: function (a) {
+ var b = this
+ window.MPC_Mgr && window.MPC_Mgr[b.aa] && window.MPC_Mgr[b.aa].close()
+ b.K.fj = t
+ B.Fn('cus.fire', 'count', 'z_setmapstylecount')
+ if (a) {
+ b = this
+ a.styleJson && (a.styleStr = b.Z_(a.styleJson))
+ H() && z.ca.Iy
+ ? setTimeout(function () {
+ b.K.ye = a
+ b.dispatchEvent(new P('onsetcustomstyles', a))
+ }, 50)
+ : ((this.K.ye = a),
+ this.dispatchEvent(new P('onsetcustomstyles', a)),
+ this.sM(b.K.ye.geotableId))
+ var c = {
+ style: a.style,
+ }
+ a.features && 0 < a.features.length && (c.features = q)
+ a.styleJson && 0 < a.styleJson.length && (c.styleJson = q)
+ Ra(5050, c)
+ a.style &&
+ (c = b.K.fm[a.style]
+ ? b.K.fm[a.style].backColor
+ : b.K.fm.normal.backColor) &&
+ (this.La().style.backgroundColor = c)
+ }
+ },
+ LY: function (a) {
+ this.controls ||
+ (this.controls = {
+ navigationControl: new jb(),
+ scaleControl: new kb(),
+ overviewMapControl: new lb(),
+ mapTypeControl: new mb(),
+ })
+ var b = this,
+ c
+ for (c in this.controls) b.VN(b.controls[c])
+ a = a || []
+ z.mc.Fb(a, function (a) {
+ b.Aw(b.controls[a])
+ })
+ },
+ sM: function (a) {
+ a
+ ? (this.vs && this.vs.Cf === a) ||
+ (this.Yf(this.vs),
+ (this.vs = new nb({
+ geotableId: a,
+ })),
+ this.Oe(this.vs))
+ : this.Yf(this.vs)
+ },
+ Sb: function () {
+ var a = this.fa() >= this.K.fG && this.oa() === La && 18 >= this.fa(),
+ b = t
+ try {
+ document.createElement('canvas').getContext('2d'), (b = q)
+ } catch (c) {
+ b = t
+ }
+ return a && b
+ },
+ getCurrentCity: function () {
+ return {
+ name: this.$g,
+ code: this.fs,
+ }
+ },
+ tm: function () {
+ this.P.co()
+ return this.P
+ },
+ PY: function (a) {
+ B.alog('cus.fire', 'count', 'z_loadindoormapcount')
+ La.setMaxZoom(a.maxZoom || 19)
+ var b = new P('oninitindoorlayer')
+ b.vf = a
+ this.dispatchEvent(b)
+ this.K.Ms = t
+ },
+ D_: function (a) {
+ this.K.qN = a
+ this.Va.Jb.parentElement.style.display = a ? 'block' : 'none'
+ },
+ setPanorama: function (a) {
+ this.P = a
+ this.P.GF(this)
+ },
+ Z_: function (a) {
+ for (
+ var b = {
+ featureType: 't',
+ elementType: 'e',
+ visibility: 'v',
+ color: 'c',
+ lightness: 'l',
+ saturation: 's',
+ weight: 'w',
+ zoom: 'z',
+ hue: 'h',
+ },
+ c = {
+ all: 'all',
+ geometry: 'g',
+ 'geometry.fill': 'g.f',
+ 'geometry.stroke': 'g.s',
+ labels: 'l',
+ 'labels.text.fill': 'l.t.f',
+ 'labels.text.stroke': 'l.t.s',
+ 'lables.text': 'l.t',
+ 'labels.icon': 'l.i',
+ },
+ e = [],
+ f = 0,
+ g;
+ (g = a[f]);
+ f++
+ ) {
+ var i = g.stylers
+ delete g.stylers
+ z.extend(g, i)
+ var i = [],
+ k
+ for (k in b)
+ if (g[k])
+ if ('elementType' === k) i.push(b[k] + ':' + c[g[k]])
+ else {
+ switch (g[k]) {
+ case 'poilabel':
+ g[k] = 'poi'
+ break
+ case 'districtlabel':
+ g[k] = 'label'
+ }
+ i.push(b[k] + ':' + g[k])
+ }
+ 2 < i.length && e.push(i.join('|'))
+ }
+ return e.join(',')
+ },
+ })
+ function Ra(a, b) {
+ if (a) {
+ var b = b || {},
+ c = '',
+ e
+ for (e in b) c = c + '&' + e + '=' + encodeURIComponent(b[e])
+ var f = function (a) {
+ a &&
+ ((ob = q),
+ setTimeout(function () {
+ pb.src = B.Wc + 'images/blank.gif?' + a.src
+ }, 50))
+ },
+ g = function () {
+ var a = qb.shift()
+ a && f(a)
+ }
+ e = (1e8 * Math.random()).toFixed(0)
+ ob
+ ? qb.push({
+ src:
+ 'product=jsapi&sub_product=jsapi&v=' +
+ B.version +
+ '&sub_product_v=' +
+ B.version +
+ '&t=' +
+ e +
+ '&code=' +
+ a +
+ '&da_src=' +
+ a +
+ c,
+ })
+ : f({
+ src:
+ 'product=jsapi&sub_product=jsapi&v=' +
+ B.version +
+ '&sub_product_v=' +
+ B.version +
+ '&t=' +
+ e +
+ '&code=' +
+ a +
+ '&da_src=' +
+ a +
+ c,
+ })
+ rb ||
+ (z.M(pb, 'load', function () {
+ ob = t
+ g()
+ }),
+ z.M(pb, 'error', function () {
+ ob = t
+ g()
+ }),
+ (rb = q))
+ }
+ }
+ var ob,
+ rb,
+ qb = [],
+ pb = new Image()
+ Ra(5e3, {
+ device_pixel_ratio: window.devicePixelRatio,
+ platform: navigator.platform,
+ })
+ B.mM = {
+ TILE_BASE_URLS: [
+ 'gss0.bdstatic.com/5bwHcj7lABFU8t_jkk_Z1zRvfdw6buu',
+ 'gss0.bdstatic.com/5bwHcj7lABFV8t_jkk_Z1zRvfdw6buu',
+ 'gss0.bdstatic.com/5bwHcj7lABFS8t_jkk_Z1zRvfdw6buu',
+ 'gss0.bdstatic.com/5bwHcj7lABFT8t_jkk_Z1zRvfdw6buu',
+ 'gss0.bdstatic.com/5bwHcj7lABFY8t_jkk_Z1zRvfdw6buu',
+ ],
+ TILE_ONLINE_URLS: [
+ 'gss0.bdstatic.com/8bo_dTSlR1gBo1vgoIiO_jowehsv',
+ 'gss0.bdstatic.com/8bo_dTSlRMgBo1vgoIiO_jowehsv',
+ 'gss0.bdstatic.com/8bo_dTSlRcgBo1vgoIiO_jowehsv',
+ 'gss0.bdstatic.com/8bo_dTSlRsgBo1vgoIiO_jowehsv',
+ 'gss0.bdstatic.com/8bo_dTSlQ1gBo1vgoIiO_jowehsv',
+ ],
+ TIlE_PERSPECT_URLS: [
+ 'gss0.bdstatic.com/-OR1cTe9KgQFm2e88IuM_a',
+ 'gss0.bdstatic.com/-ON1cTe9KgQFm2e88IuM_a',
+ 'gss0.bdstatic.com/-OZ1cTe9KgQFm2e88IuM_a',
+ 'gss0.bdstatic.com/-OV1cTe9KgQFm2e88IuM_a',
+ ],
+ geolocControl: 'gsp0.baidu.com/8LkJsjOpB1gCo2Kml5_Y_D3',
+ TILES_YUN_HOST: [
+ 'gsp0.baidu.com/-eR1bSahKgkFkRGko9WTAnF6hhy',
+ 'gsp0.baidu.com/-eN1bSahKgkFkRGko9WTAnF6hhy',
+ 'gsp0.baidu.com/-eZ1bSahKgkFkRGko9WTAnF6hhy',
+ 'gsp0.baidu.com/-eV1bSahKgkFkRGko9WTAnF6hhy',
+ ],
+ traffic: 'gsp0.baidu.com/7_AZsjOpB1gCo2Kml5_Y_DAcsMJiwa',
+ iw_pano: 'gss0.bdstatic.com/5LUZemba_QUU8t7mm9GUKT-xh_',
+ message: 'gsp0.baidu.com/7vo0bSba2gU2pMbgoY3K',
+ baidumap: 'gsp0.baidu.com/80MWsjip0QIZ8tyhnq',
+ wuxian: 'gsp0.baidu.com/6a1OdTeaKgQFm2e88IuM_a',
+ pano: [
+ 'gss0.bdstatic.com/5LUZemba_QUU8t7mm9GUKT-xh_',
+ 'gss0.bdstatic.com/5LUZemfa_QUU8t7mm9GUKT-xh_',
+ 'gss0.bdstatic.com/5LUZemja_QUU8t7mm9GUKT-xh_',
+ ],
+ main_domain_nocdn: {
+ baidu: 'gsp0.baidu.com/9_Q4sjOpB1gCo2Kml5_Y_D3',
+ other: 'api.map.baidu.com',
+ },
+ main_domain_cdn: {
+ baidu: [
+ 'gss0.bdstatic.com/9_Q4vHSd2RZ3otebn9fN2DJv',
+ 'gss0.baidu.com/9_Q4vXSd2RZ3otebn9fN2DJv',
+ 'gss0.bdstatic.com/9_Q4vnSd2RZ3otebn9fN2DJv',
+ ],
+ other: ['api.map.baidu.com'],
+ webmap: ['gss0.baidu.com/6b1IcTe9R1gBo1vgoIiO_jowehsv'],
+ },
+ map_click: 'gsp0.baidu.com/80MWbzKh2wt3n2qy8IqW0jdnxx1xbK',
+ vector_traffic: 'gss0.bdstatic.com/8aZ1cTe9KgQIm2_p8IuM_a',
+ }
+ B.DY = {
+ TILE_BASE_URLS: [
+ 'shangetu0.map.bdimg.com',
+ 'shangetu1.map.bdimg.com',
+ 'shangetu2.map.bdimg.com',
+ 'shangetu3.map.bdimg.com',
+ 'shangetu4.map.bdimg.com',
+ ],
+ TILE_ONLINE_URLS: [
+ 'online0.map.bdimg.com',
+ 'online1.map.bdimg.com',
+ 'online2.map.bdimg.com',
+ 'online3.map.bdimg.com',
+ 'online4.map.bdimg.com',
+ ],
+ TIlE_PERSPECT_URLS: [
+ 'd0.map.baidu.com',
+ 'd1.map.baidu.com',
+ 'd2.map.baidu.com',
+ 'd3.map.baidu.com',
+ ],
+ geolocControl: 'loc.map.baidu.com',
+ TILES_YUN_HOST: [
+ 'g0.api.map.baidu.com',
+ 'g1.api.map.baidu.com',
+ 'g2.api.map.baidu.com',
+ 'g3.api.map.baidu.com',
+ ],
+ traffic: 'its.map.baidu.com:8002',
+ iw_pano: 'pcsv0.map.bdimg.com',
+ message: 'j.map.baidu.com',
+ baidumap: 'map.baidu.com',
+ wuxian: 'wuxian.baidu.com',
+ pano: ['pcsv0.map.bdimg.com', 'pcsv1.map.bdimg.com', 'pcsv2.map.bdimg.com'],
+ main_domain_nocdn: {
+ baidu: 'api.map.baidu.com',
+ },
+ main_domain_cdn: {
+ baidu: ['api0.map.bdimg.com', 'api1.map.bdimg.com', 'api2.map.bdimg.com'],
+ webmap: ['webmap0.map.bdimg.com'],
+ },
+ map_click: 'mapclick.map.baidu.com',
+ vector_traffic: 'or.map.bdimg.com',
+ }
+ B.F0 = {
+ 0: {
+ proto: 'http://',
+ domain: B.DY,
+ },
+ 1: {
+ proto: 'https://',
+ domain: B.mM,
+ },
+ 2: {
+ proto: 'https://',
+ domain: B.mM,
+ },
+ }
+ window.BMAP_PROTOCOL &&
+ 'https' === window.BMAP_PROTOCOL &&
+ (window.HOST_TYPE = 2)
+ B.xu = window.HOST_TYPE || '0'
+ B.url = B.F0[B.xu]
+ B.vp = B.url.proto + B.url.domain.baidumap + '/'
+ //B.vp =bmapcfg.home; //修改,本地工具资源引用(离线路径)
+ B.Wc =
+ B.url.proto +
+ ('2' == B.xu
+ ? B.url.domain.main_domain_nocdn.other
+ : B.url.domain.main_domain_nocdn.baidu) +
+ '/'
+ //B.Wc =bmapcfg.home; //修改,本地工具资源引用(离线路径)
+ //B.ka=B.url.proto+("2"==B.xu?B.url.domain.main_domain_cdn.other[0]:B.url.domain.main_domain_cdn.baidu[0])+"/";
+ B.ka = bmapcfg.home //修改,本地工具资源引用(离线路径)
+ console.log(bmapcfg.home, '=============')
+ B.Yi = B.url.proto + B.url.domain.main_domain_cdn.webmap[0] + '/'
+ //B.Yi =bmapcfg.home; //修改,本地工具资源引用(离线路径)
+ B.vg = function (a, b) {
+ var c,
+ e,
+ b = b || ''
+ switch (a) {
+ case 'main_domain_nocdn':
+ c = B.Wc + b
+ break
+ case 'main_domain_cdn':
+ c = B.ka + b
+ break
+ default:
+ ;(e = B.url.domain[a]),
+ '[object Array]' == Object.prototype.toString.call(e)
+ ? ((c = []),
+ z.mc.Fb(e, function (a, e) {
+ c[e] = B.url.proto + a + '/' + b
+ }))
+ : (c = B.url.proto + B.url.domain[a] + '/' + b)
+ }
+ return c
+ }
+ function tb(a) {
+ var b = {
+ duration: 1e3,
+ Ic: 30,
+ No: 0,
+ kc: ub.UM,
+ Kt: u(),
+ }
+ this.dg = []
+ if (a) for (var c in a) b[c] = a[c]
+ this.j = b
+ if (Wa(b.No)) {
+ var e = this
+ setTimeout(function () {
+ e.start()
+ }, b.No)
+ } else b.No != vb && this.start()
+ }
+ var vb = 'INFINITE'
+ tb.prototype.start = function () {
+ this.Uu = bb()
+ this.gA = this.Uu + this.j.duration
+ wb(this)
+ }
+ tb.prototype.add = function (a) {
+ this.dg.push(a)
+ }
+ function wb(a) {
+ var b = bb()
+ b >= a.gA
+ ? (Xa(a.j.va) && a.j.va(a.j.kc(1)),
+ Xa(a.j.finish) && a.j.finish(),
+ 0 < a.dg.length &&
+ ((b = a.dg[0]), (b.dg = [].concat(a.dg.slice(1))), b.start()))
+ : ((a.Jy = a.j.kc((b - a.Uu) / a.j.duration)),
+ Xa(a.j.va) && a.j.va(a.Jy),
+ a.TF ||
+ (a.Yr = setTimeout(function () {
+ wb(a)
+ }, 1e3 / a.j.Ic)))
+ }
+ tb.prototype.stop = function (a) {
+ this.TF = q
+ for (var b = 0; b < this.dg.length; b++) this.dg[b].stop(), (this.dg[b] = s)
+ this.dg.length = 0
+ this.Yr && (clearTimeout(this.Yr), (this.Yr = s))
+ this.j.Kt(this.Jy)
+ a && ((this.gA = this.Uu), wb(this))
+ }
+ tb.prototype.cancel = ga(1)
+ var ub = {
+ UM: function (a) {
+ return a
+ },
+ reverse: function (a) {
+ return 1 - a
+ },
+ iD: function (a) {
+ return a * a
+ },
+ hD: function (a) {
+ return Math.pow(a, 3)
+ },
+ Ks: function (a) {
+ return -(a * (a - 2))
+ },
+ eL: function (a) {
+ return Math.pow(a - 1, 3) + 1
+ },
+ dL: function (a) {
+ return 0.5 > a ? 2 * a * a : -2 * (a - 2) * a - 1
+ },
+ R2: function (a) {
+ return 0.5 > a ? 4 * Math.pow(a, 3) : 4 * Math.pow(a - 1, 3) + 1
+ },
+ S2: function (a) {
+ return (1 - Math.cos(Math.PI * a)) / 2
+ },
+ }
+ ub['ease-in'] = ub.iD
+ ub['ease-out'] = ub.Ks
+ var G = {
+ oG: 34,
+ pG: 21,
+ qG: new O(21, 32),
+ wP: new O(10, 32),
+ vP: new O(24, 36),
+ uP: new O(12, 36),
+ mG: new O(13, 1),
+ qa: B.ka + 'images/',
+ a4: 'http://api0.map.bdimg.com/images/',
+ nG: B.ka + 'images/markers_new.png',
+ sP: 24,
+ tP: 73,
+ pC: {
+ '\u5317\u4eac': {
+ yy: 'bj',
+ k: new J(116.403874, 39.914889),
+ },
+ '\u4e0a\u6d77': {
+ yy: 'sh',
+ k: new J(121.487899, 31.249162),
+ },
+ '\u6df1\u5733': {
+ yy: 'sz',
+ k: new J(114.025974, 22.546054),
+ },
+ '\u5e7f\u5dde': {
+ yy: 'gz',
+ k: new J(113.30765, 23.120049),
+ },
+ },
+ fontFamily: 'arial,sans-serif',
+ }
+ z.ca.Te
+ ? (z.extend(G, {
+ TK: 'url(' + G.qa + 'ruler.cur),crosshair',
+ Vb: '-moz-grab',
+ Hd: '-moz-grabbing',
+ }),
+ z.platform.IM && (G.fontFamily = 'arial,simsun,sans-serif'))
+ : z.ca.Qw || z.ca.Iy
+ ? z.extend(G, {
+ TK: 'url(' + G.qa + 'ruler.cur) 2 6,crosshair',
+ Vb: 'url(' + G.qa + 'openhand.cur) 8 8,default',
+ Hd: 'url(' + G.qa + 'closedhand.cur) 8 8,move',
+ })
+ : z.extend(G, {
+ TK: 'url(' + G.qa + 'ruler.cur),crosshair',
+ Vb: 'url(' + G.qa + 'openhand.cur),default',
+ Hd: 'url(' + G.qa + 'closedhand.cur),move',
+ })
+ function xb(a, b) {
+ var c = a.style
+ c.left = b[0] + 'px'
+ c.top = b[1] + 'px'
+ }
+ function yb(a) {
+ 0 < z.ca.ia ? (a.unselectable = 'on') : (a.style.MozUserSelect = 'none')
+ }
+ function zb(a) {
+ return a && a.parentNode && 11 !== a.parentNode.nodeType
+ }
+ function Ab(a, b) {
+ z.D.Vx(a, 'beforeEnd', b)
+ return a.lastChild
+ }
+ function Bb(a) {
+ for (
+ var b = {
+ left: 0,
+ top: 0,
+ };
+ a && a.offsetParent;
+
+ )
+ (b.left += a.offsetLeft), (b.top += a.offsetTop), (a = a.offsetParent)
+ return b
+ }
+ function ma(a) {
+ a = window.event || a
+ a.stopPropagation ? a.stopPropagation() : (a.cancelBubble = q)
+ }
+ function Cb(a) {
+ a = window.event || a
+ a.preventDefault ? a.preventDefault() : (a.returnValue = t)
+ return t
+ }
+ function na(a) {
+ ma(a)
+ return Cb(a)
+ }
+ function Eb() {
+ var a = document.documentElement,
+ b = document.body
+ return a && (a.scrollTop || a.scrollLeft)
+ ? [a.scrollTop, a.scrollLeft]
+ : b
+ ? [b.scrollTop, b.scrollLeft]
+ : [0, 0]
+ }
+ function Fb(a, b) {
+ if (a && b)
+ return Math.round(
+ Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2))
+ )
+ }
+ function Gb(a, b) {
+ var c = [],
+ b =
+ b ||
+ function (a) {
+ return a
+ },
+ e
+ for (e in a) c.push(e + '=' + b(a[e]))
+ return c.join('&')
+ }
+ function L(a, b, c) {
+ var e = document.createElement(a)
+ c && (e = document.createElementNS(c, a))
+ return z.D.CF(e, b || {})
+ }
+ function Va(a) {
+ if (a.currentStyle) return a.currentStyle
+ if (a.ownerDocument && a.ownerDocument.defaultView)
+ return a.ownerDocument.defaultView.getComputedStyle(a, s)
+ }
+ function Xa(a) {
+ return 'function' === typeof a
+ }
+ function Wa(a) {
+ return 'number' === typeof a
+ }
+ function $a(a) {
+ return 'string' == typeof a
+ }
+ function Hb(a) {
+ return 'undefined' != typeof a
+ }
+ function Ib(a) {
+ return 'object' == typeof a
+ }
+ var Jb = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='
+ function Kb(a) {
+ for (var b = '', c = 0; c < a.length; c++) {
+ var e = a.charCodeAt(c) << 1,
+ f = (e = e.toString(2))
+ 8 > e.length && ((f = '00000000' + e), (f = f.substr(e.length, 8)))
+ b += f
+ }
+ a = 5 - (b.length % 5)
+ e = []
+ for (c = 0; c < a; c++) e[c] = '0'
+ b = e.join('') + b
+ f = []
+ for (c = 0; c < b.length / 5; c++)
+ (e = b.substr(5 * c, 5)), f.push(String.fromCharCode(parseInt(e, 2) + 50))
+ return f.join('') + a.toString()
+ }
+ function Lb(a) {
+ var b = '',
+ c,
+ e,
+ f = '',
+ g,
+ i = '',
+ k = 0
+ g = /[^A-Za-z0-9\+\/\=]/g
+ if (!a || g.exec(a)) return a
+ a = a.replace(/[^A-Za-z0-9\+\/\=]/g, '')
+ do
+ (c = Jb.indexOf(a.charAt(k++))),
+ (e = Jb.indexOf(a.charAt(k++))),
+ (g = Jb.indexOf(a.charAt(k++))),
+ (i = Jb.indexOf(a.charAt(k++))),
+ (c = (c << 2) | (e >> 4)),
+ (e = ((e & 15) << 4) | (g >> 2)),
+ (f = ((g & 3) << 6) | i),
+ (b += String.fromCharCode(c)),
+ 64 != g && (b += String.fromCharCode(e)),
+ 64 != i && (b += String.fromCharCode(f))
+ while (k < a.length)
+ return b
+ }
+ var P = z.lang.Ju
+ function H() {
+ return !(!z.platform.zE && !z.platform.XY && !z.platform.Jm)
+ }
+ function Ua() {
+ return !(!z.platform.IM && !z.platform.AM && !z.platform.cZ)
+ }
+ function bb() {
+ return new Date().getTime()
+ }
+ function Mb() {
+ var a = document.body.appendChild(L('div'))
+ a.innerHTML = ''
+ var b = a.firstChild
+ if (!b.style) return t
+ b.style.behavior = 'url(#default#VML)'
+ b = b ? 'object' === typeof b.adj : q
+ a.parentNode.removeChild(a)
+ return b
+ }
+ function Nb() {
+ return !!document.implementation.hasFeature(
+ 'http://www.w3.org/TR/SVG11/feature#Shape',
+ '1.1'
+ )
+ }
+ function Ob() {
+ return !!L('canvas').getContext
+ }
+ function Pb(a) {
+ return (a * Math.PI) / 180
+ }
+ B.iZ = (function () {
+ var a = q,
+ b = q,
+ c = q,
+ e = q,
+ f = 0,
+ g = 0,
+ i = 0,
+ k = 0
+ return {
+ eR: function () {
+ f += 1
+ a &&
+ ((a = t),
+ setTimeout(function () {
+ Ra(5054, {
+ pic: f,
+ })
+ a = q
+ f = 0
+ }, 1e4))
+ },
+ v1: function () {
+ g += 1
+ b &&
+ ((b = t),
+ setTimeout(function () {
+ Ra(5055, {
+ move: g,
+ })
+ b = q
+ g = 0
+ }, 1e4))
+ },
+ x1: function () {
+ i += 1
+ c &&
+ ((c = t),
+ setTimeout(function () {
+ Ra(5056, {
+ zoom: i,
+ })
+ c = q
+ i = 0
+ }, 1e4))
+ },
+ w1: function (a) {
+ k += a
+ e &&
+ ((e = t),
+ setTimeout(function () {
+ Ra(5057, {
+ tile: k,
+ })
+ e = q
+ k = 0
+ }, 5e3))
+ },
+ }
+ })()
+ B.iq = {
+ DG: '#83a1ff',
+ kq: '#808080',
+ }
+ function Qb(a, b, c) {
+ b.Om || ((b.Om = []), (b.handle = {}))
+ b.Om.push({
+ filter: c,
+ nm: a,
+ })
+ b.addEventListener ||
+ (b.addEventListener = function (a, c) {
+ b.attachEvent('on' + a, c)
+ })
+ b.handle.click ||
+ (b.addEventListener(
+ 'click',
+ function (a) {
+ for (var c = a.target || a.srcElement; c != b; ) {
+ Rb(b.Om, function (b, i) {
+ RegExp(i.filter).test(c.getAttribute('filter')) &&
+ i.nm.call(c, a, c.getAttribute('filter'))
+ })
+ c = c.parentNode
+ }
+ },
+ t
+ ),
+ (b.handle.click = q))
+ }
+ function Rb(a, b) {
+ for (var c = 0, e = a.length; c < e; c++) b(c, a[c])
+ }
+ void (function (a, b, c) {
+ void (function (a, b, c) {
+ function i(a) {
+ if (!a.Mo) {
+ for (var c = q, e = [], g = a.ZZ, k = 0; g && k < g.length; k++) {
+ var m = g[k],
+ n = (pa[m] = pa[m] || {})
+ if (n.Mo || n == a) e.push(n.Nc)
+ else {
+ c = t
+ if (
+ !n.DW &&
+ ((m = (Ma.get('alias') || {})[m] || m + '.js'), !R[m])
+ ) {
+ R[m] = q
+ var o = b.createElement('script'),
+ p = b.getElementsByTagName('script')[0]
+ o.async = q
+ o.src = m
+ p.parentNode.insertBefore(o, p)
+ }
+ n.bz = n.bz || {}
+ n.bz[a.name] = a
+ }
+ }
+ if (c) {
+ a.Mo = q
+ a.KK && (a.Nc = a.KK.apply(a, e))
+ for (var v in a.bz) i(a.bz[v])
+ }
+ }
+ }
+ function k(a) {
+ return (a || new Date()) - F
+ }
+ function m(a, b, c) {
+ if (a) {
+ 'string' == typeof a && ((c = b), (b = a), (a = M))
+ try {
+ a == M
+ ? ((N[b] = N[b] || []), N[b].unshift(c))
+ : a.addEventListener
+ ? a.addEventListener(b, c, t)
+ : a.attachEvent && a.attachEvent('on' + b, c)
+ } catch (e) {}
+ }
+ }
+ function n(a, b, c) {
+ if (a) {
+ 'string' == typeof a && ((c = b), (b = a), (a = M))
+ try {
+ if (a == M) {
+ var e = N[b]
+ if (e) for (var f = e.length; f--; ) e[f] === c && e.splice(f, 1)
+ } else
+ a.removeEventListener
+ ? a.removeEventListener(b, c, t)
+ : a.detachEvent && a.detachEvent('on' + b, c)
+ } catch (g) {}
+ }
+ }
+ function o(a) {
+ var b = N[a],
+ c = 0
+ if (b) {
+ for (var e = [], f = arguments, g = 1; g < f.length; g++) e.push(f[g])
+ for (g = b.length; g--; ) b[g].apply(this, e) && c++
+ return c
+ }
+ }
+ function p(a, b) {
+ if (a && b) {
+ var c = new Image(1, 1),
+ e = [],
+ f = 'img_' + +new Date(),
+ g
+ for (g in b) b[g] && e.push(g + '=' + encodeURIComponent(b[g]))
+ M[f] = c
+ c.onload = c.onerror = function () {
+ M[f] = c = c.onload = c.onerror = s
+ delete M[f]
+ }
+ c.src = a + '?' + e.join('&')
+ }
+ }
+ function v() {
+ var a = arguments,
+ b = a[0]
+ if (this.JK || /^(on|un|set|get|create)$/.test(b)) {
+ for (var b = y.prototype[b], c = [], e = 1, f = a.length; e < f; e++)
+ c.push(a[e])
+ 'function' == typeof b && b.apply(this, c)
+ } else this.iK.push(a)
+ }
+ function x(a, b) {
+ var c = {},
+ e
+ for (e in a) a.hasOwnProperty(e) && (c[e] = a[e])
+ for (e in b) b.hasOwnProperty(e) && (c[e] = b[e])
+ return c
+ }
+ function y(a) {
+ this.name = a
+ this.Ps = {
+ protocolParameter: {
+ postUrl: s,
+ protocolParameter: s,
+ },
+ }
+ this.iK = []
+ this.alog = M
+ }
+ function A(a) {
+ a = a || 'default'
+ if ('*' == a) {
+ var a = [],
+ b
+ for (b in fa) a.push(fa[b])
+ return a
+ }
+ ;(b = fa[a]) || (b = fa[a] = new y(a))
+ return b
+ }
+ var E = c.alog
+ if (!E || !E.Mo) {
+ var C = b.all && a.attachEvent,
+ F = (E && E.IE) || +new Date(),
+ D =
+ a.o4 ||
+ (+new Date()).toString(36) +
+ Math.random().toString(36).substr(2, 3),
+ I = 0,
+ R = {},
+ M = function (a) {
+ var b = arguments,
+ c,
+ e,
+ f,
+ g
+ if ('define' == a || 'require' == a) {
+ for (e = 1; e < b.length; e++)
+ switch (typeof b[e]) {
+ case 'string':
+ c = b[e]
+ break
+ case 'object':
+ f = b[e]
+ break
+ case 'function':
+ g = b[e]
+ }
+ 'require' == a && (c && !f && (f = [c]), (c = s))
+ c = !c ? '#' + I++ : c
+ e = pa[c] = pa[c] || {}
+ e.Mo ||
+ ((e.name = c),
+ (e.ZZ = f),
+ (e.KK = g),
+ 'define' == a && (e.DW = q),
+ i(e))
+ } else
+ 'function' == typeof a
+ ? a(M)
+ : ('' + a).replace(
+ /^(?:([\w$_]+)\.)?(\w+)$/,
+ function (a, c, e) {
+ b[0] = e
+ v.apply(M.bG(c), b)
+ }
+ )
+ },
+ N = {},
+ fa = {},
+ pa = {
+ i2: {
+ name: 'alog',
+ Mo: q,
+ Nc: M,
+ },
+ }
+ y.prototype.start = y.prototype.create = function (a) {
+ if (!this.JK) {
+ 'object' == typeof a && this.set(a)
+ this.JK = new Date()
+ for (this.Qs('create', this); (a = this.iK.shift()); )
+ v.apply(this, a)
+ }
+ }
+ y.prototype.send = function (a, b) {
+ var c = x(
+ {
+ ts: k().toString(36),
+ t: a,
+ sid: D,
+ },
+ this.Ps
+ )
+ if ('object' == typeof b) c = x(c, b)
+ else {
+ var e = arguments
+ switch (a) {
+ case 'pageview':
+ e[1] && (c.page = e[1])
+ e[2] && (c.title = e[2])
+ break
+ case 'event':
+ e[1] && (c.eventCategory = e[1])
+ e[2] && (c.eventAction = e[2])
+ e[3] && (c.eventLabel = e[3])
+ e[4] && (c.eventValue = e[4])
+ break
+ case 'timing':
+ e[1] && (c.timingCategory = e[1])
+ e[2] && (c.timingVar = e[2])
+ e[3] && (c.timingValue = e[3])
+ e[4] && (c.timingLabel = e[4])
+ break
+ case 'exception':
+ e[1] && (c.exDescription = e[1])
+ e[2] && (c.exFatal = e[2])
+ break
+ default:
+ return
+ }
+ }
+ this.Qs('send', c)
+ var f
+ if ((e = this.Ps.protocolParameter)) {
+ var g = {}
+ for (f in c) e[f] !== s && (g[e[f] || f] = c[f])
+ f = g
+ } else f = c
+ p(this.Ps.postUrl, f)
+ }
+ y.prototype.set = function (a, b) {
+ if ('string' == typeof a)
+ 'protocolParameter' == a &&
+ (b = x(
+ {
+ postUrl: s,
+ protocolParameter: s,
+ },
+ b
+ )),
+ (this.Ps[a] = b)
+ else if ('object' == typeof a) for (var c in a) this.set(c, a[c])
+ }
+ y.prototype.get = function (a, b) {
+ var c = this.Ps[a]
+ 'function' == typeof b && b(c)
+ return c
+ }
+ y.prototype.Qs = function (a, b) {
+ return M.Qs(this.name + '.' + a, b)
+ }
+ y.prototype.M = function (a, b) {
+ M.M(this.name + '.' + a, b)
+ }
+ y.prototype.ed = function (a, b) {
+ M.ed(this.name + '.' + a, b)
+ }
+ M.name = 'alog'
+ M.BO = D
+ M.Mo = q
+ M.timestamp = k
+ M.ed = n
+ M.M = m
+ M.Qs = o
+ M.bG = A
+ M('init')
+ var wa = y.prototype
+ T(wa, {
+ start: wa.start,
+ create: wa.create,
+ send: wa.send,
+ set: wa.set,
+ get: wa.get,
+ on: wa.M,
+ un: wa.ed,
+ fire: wa.Qs,
+ })
+ var Ma = A()
+ Ma.set('protocolParameter', {
+ h2: s,
+ })
+ if (E) {
+ wa = [].concat(E.wb || [], E.Wm || [])
+ E.wb = E.Wm = s
+ for (var sb in M) M.hasOwnProperty(sb) && (E[sb] = M[sb])
+ M.wb = M.Wm = {
+ push: function (a) {
+ M.apply(M, a)
+ },
+ }
+ for (E = 0; E < wa.length; E++) M.apply(M, wa[E])
+ }
+ c.alog = M
+ C &&
+ m(b, 'mouseup', function (a) {
+ a = a.target || a.srcElement
+ 1 == a.nodeType && /^ajavascript:/i.test(a.tagName + a.href)
+ })
+ var Za = t
+ a.onerror = function (a, b, e, f) {
+ var i = q
+ !b && /^script error/i.test(a) && (Za ? (i = t) : (Za = q))
+ i &&
+ c.alog('exception.send', 'exception', {
+ Ht: a,
+ HE: b,
+ Dt: e,
+ hs: f,
+ })
+ return t
+ }
+ c.alog('exception.on', 'catch', function (a) {
+ c.alog('exception.send', 'exception', {
+ Ht: a.Ht,
+ HE: a.path,
+ Dt: a.Dt,
+ method: a.method,
+ rL: 'catch',
+ })
+ })
+ }
+ })(a, b, c)
+ void (function (a, b, c) {
+ var i = '18_3'
+ H() && (i = '18_4')
+ var k = 'http://static.tieba.baidu.com'
+ 'https:' === a.location.protocol &&
+ (k = 'https://gsp0.baidu.com/5aAHeD3nKhI2p27j8IqW0jdnxx1xbK')
+ var m = Math.random,
+ k = k + '/tb/pms/img/st.gif',
+ n = {
+ wh: '0.1',
+ },
+ o = {
+ wh: '0.1',
+ },
+ p = {
+ wh: '0.1',
+ },
+ v = {
+ wh: '0',
+ }
+ if (n && n.wh && m() < n.wh) {
+ var x = c.alog.bG('monkey'),
+ y,
+ n = a.screen,
+ A = b.referrer
+ x.set('ver', 5)
+ x.set('pid', 241)
+ n && x.set('px', n.width + '*' + n.height)
+ x.set('ref', A)
+ c.alog('monkey.on', 'create', function () {
+ y = c.alog.timestamp
+ x.set('protocolParameter', {
+ reports: s,
+ })
+ })
+ c.alog('monkey.on', 'send', function (a) {
+ 'pageview' == a.t && (a.cmd = 'open')
+ a.now && ((a.ts = y(a.now).toString(36)), (a.now = ''))
+ })
+ c.alog('monkey.create', {
+ page: i,
+ pid: '241',
+ p: '18',
+ dv: 6,
+ postUrl: k,
+ reports: {
+ refer: 1,
+ },
+ })
+ c.alog('monkey.send', 'pageview', {
+ now: +new Date(),
+ })
+ }
+ if (o && o.wh && m() < o.wh) {
+ var E = t
+ a.onerror = function (a, b, e, f) {
+ var i = q
+ !b && /^script error/i.test(a) && (E ? (i = t) : (E = q))
+ i &&
+ c.alog('exception.send', 'exception', {
+ Ht: a,
+ HE: b,
+ Dt: e,
+ hs: f,
+ })
+ return t
+ }
+ c.alog('exception.on', 'catch', function (a) {
+ c.alog('exception.send', 'exception', {
+ Ht: a.Ht,
+ HE: a.path,
+ Dt: a.Dt,
+ method: a.method,
+ rL: 'catch',
+ })
+ })
+ c.alog('exception.create', {
+ postUrl: k,
+ dv: 7,
+ page: i,
+ pid: '170',
+ p: '18',
+ })
+ }
+ p &&
+ p.wh &&
+ m() < p.wh &&
+ (c.alog('cus.on', 'time', function (a) {
+ var b = {},
+ e = t,
+ f
+ if ('[object Object]' === a.toString()) {
+ for (var i in a)
+ 'page' == i
+ ? (b.page = a[i])
+ : ((f = parseInt(a[i])),
+ 0 < f && /^z_/.test(i) && ((e = q), (b[i] = f)))
+ e && c.alog('cus.send', 'time', b)
+ }
+ }),
+ c.alog('cus.on', 'count', function (a) {
+ var b = {},
+ e = t
+ 'string' === typeof a && (a = [a])
+ if (a instanceof Array)
+ for (var f = 0; f < a.length; f++)
+ /^z_/.test(a[f])
+ ? ((e = q), (b[a[f]] = 1))
+ : /^page:/.test(a[f]) && (b.page = a[f].substring(5))
+ e && c.alog('cus.send', 'count', b)
+ }),
+ c.alog('cus.create', {
+ dv: 3,
+ postUrl: k,
+ page: i,
+ p: '18',
+ }))
+ if (v && v.wh && m() < v.wh) {
+ var C = ['Moz', 'O', 'ms', 'Webkit'],
+ F = ['-webkit-', '-moz-', '-o-', '-ms-'],
+ D = function () {
+ return typeof b.createElement !== 'function'
+ ? b.createElement(arguments[0])
+ : b.createElement.apply(b, arguments)
+ },
+ I = D('dpFeatureTest').style,
+ R = function (a) {
+ return M(a, l, l)
+ },
+ M = function (a, b, c) {
+ var e = a.charAt(0).toUpperCase() + a.slice(1),
+ f = (a + ' ' + C.join(e + ' ') + e).split(' ')
+ if (typeof b === 'string' || typeof b === 'undefined')
+ return N(f, b)
+ f = (a + ' ' + C.join(e + ' ') + e).split(' ')
+ a: {
+ var a = f,
+ g
+ for (g in a)
+ if (a[g] in b) {
+ if (c === t) {
+ b = a[g]
+ break a
+ }
+ g = b[a[g]]
+ b = typeof g === 'function' ? fnBind(g, c || b) : g
+ break a
+ }
+ b = t
+ }
+ return b
+ },
+ N = function (a, b) {
+ var c, e, f
+ e = a.length
+ for (c = 0; c < e; c++) {
+ f = a[c]
+ ~('' + f).indexOf('-') && (f = fa(f))
+ if (I[f] !== l) return b == 'pfx' ? f : q
+ }
+ return t
+ },
+ fa = function (a) {
+ return a
+ .replace(/([a-z])-([a-z])/g, function (a, b, c) {
+ return b + c.toUpperCase()
+ })
+ .replace(/^-/, '')
+ },
+ pa = function (a, b, c) {
+ if (a.indexOf('@') === 0) return atRule(a)
+ a.indexOf('-') != -1 && (a = fa(a))
+ return !b ? M(a, 'pfx') : M(a, b, c)
+ },
+ wa = function () {
+ var a = D('canvas')
+ return !(!a.getContext || !a.getContext('2d'))
+ },
+ Ma = function () {
+ var a = D('div')
+ return 'draggable' in a || ('ondragstart' in a && 'ondrop' in a)
+ },
+ sb = function () {
+ try {
+ localStorage.setItem('localStorage', 'localStorage')
+ localStorage.removeItem('localStorage')
+ return q
+ } catch (a) {
+ return t
+ }
+ },
+ Za = function () {
+ return 'content' in b.createElement('template')
+ },
+ Pa = function () {
+ return 'createShadowRoot' in b.createElement('a')
+ },
+ oi = function () {
+ return 'registerElement' in b
+ },
+ pi = function () {
+ return 'import' in b.createElement('link')
+ },
+ qi = function () {
+ return 'getItems' in b
+ },
+ ri = function () {
+ return 'EventSource' in window
+ },
+ re = function (a, b) {
+ var c = new Image()
+ c.onload = function () {
+ b(a, c.width > 0 && c.height > 0)
+ }
+ c.onerror = function () {
+ b(a, t)
+ }
+ c.src =
+ 'data:image/webp;base64,' +
+ {
+ r4: 'UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA',
+ q4: 'UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==',
+ alpha:
+ 'UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==',
+ kk: 'UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA',
+ }[a]
+ },
+ se = function (a, b) {
+ return (Tb.ei['WebP-' + a] = b)
+ },
+ si = function () {
+ return 'openDatabase' in a
+ },
+ ti = function () {
+ return 'performance' in a && 'timing' in a.performance
+ },
+ ui = function () {
+ return 'performance' in a && 'mark' in a.performance
+ },
+ vi = function () {
+ return !(
+ !Array.prototype ||
+ !Array.prototype.every ||
+ !Array.prototype.filter ||
+ !Array.prototype.forEach ||
+ !Array.prototype.indexOf ||
+ !Array.prototype.lastIndexOf ||
+ !Array.prototype.map ||
+ !Array.prototype.some ||
+ !Array.prototype.reduce ||
+ !Array.prototype.reduceRight ||
+ !Array.isArray
+ )
+ },
+ wi = function () {
+ return (
+ 'Promise' in a &&
+ 'cast' in a.lq &&
+ 'resolve' in a.lq &&
+ 'reject' in a.lq &&
+ 'all' in a.lq &&
+ 'race' in a.lq &&
+ (function () {
+ var b
+ new a.lq(function (a) {
+ b = a
+ })
+ return typeof b === 'function'
+ })()
+ )
+ },
+ xi = function () {
+ var b = !!a.i1,
+ c = a.XMLHttpRequest && 'withCredentials' in new XMLHttpRequest()
+ return !!a.l1 && b && c
+ },
+ yi = function () {
+ return 'geolocation' in navigator
+ },
+ zi = function () {
+ var b = D('canvas'),
+ c =
+ 'probablySupportsContext' in b
+ ? 'probablySupportsContext'
+ : 'supportsContext'
+ return c in b
+ ? b[c]('webgl') || b[c]('experimental-webgl')
+ : 'WebGLRenderingContext' in a
+ },
+ Ai = function () {
+ return (
+ !!b.createElementNS &&
+ !!b.createElementNS('http://www.w3.org/2000/svg', 'svg').A2
+ )
+ },
+ Bi = function () {
+ return !!a.s1
+ },
+ Ci = function () {
+ return 'WebSocket' in a && a.p1.f1 === 2
+ },
+ Di = function () {
+ return !!b.createElement('video').canPlayType
+ },
+ Ei = function () {
+ return !!b.createElement('audio').canPlayType
+ },
+ Fi = function () {
+ return !!(a.history && 'pushState' in a.history)
+ },
+ Gi = function () {
+ return !(!a.g1 || !a.h1)
+ },
+ Hi = function () {
+ return 'postMessage' in window
+ },
+ Ii = function () {
+ return (
+ !!a.webkitNotifications ||
+ ('Notification' in a &&
+ 'permission' in a.PP &&
+ 'requestPermission' in a.PP)
+ )
+ },
+ Ji = function () {
+ for (
+ var b = ['webkit', 'moz', 'o', 'ms'],
+ c = a.requestAnimationFrame,
+ f = 0;
+ f < b.length && !c;
+ ++f
+ )
+ c = a[b[f] + 'RequestAnimationFrame']
+ return !!c
+ },
+ Ki = function () {
+ return 'JSON' in a && 'parse' in JSON && 'stringify' in JSON
+ },
+ Li = function () {
+ return !(
+ !pa('exitFullscreen', b, t) && !pa('cancelFullScreen', b, t)
+ )
+ },
+ Mi = function () {
+ return !!pa('Intl', a)
+ },
+ Ni = function () {
+ return R('flexBasis')
+ },
+ Oi = function () {
+ return !!R('perspective')
+ },
+ Pi = function () {
+ return R('shapeOutside')
+ },
+ Qi = function () {
+ var a = D('div')
+ a.style.cssText = F.join('filter:blur(2px); ')
+ return (
+ !!a.style.length && (b.documentMode === l || b.documentMode > 9)
+ )
+ },
+ Ri = function () {
+ return (
+ 'XMLHttpRequest' in a && 'withCredentials' in new XMLHttpRequest()
+ )
+ },
+ Si = function () {
+ return D('progress').max !== l
+ },
+ Ti = function () {
+ return D('meter').max !== l
+ },
+ Ui = function () {
+ return 'sendBeacon' in navigator
+ },
+ Vi = function () {
+ return R('borderRadius')
+ },
+ Wi = function () {
+ return R('boxShadow')
+ },
+ Xi = function () {
+ var a = D('div').style
+ a.cssText = F.join('opacity:.55;')
+ return /^0.55$/.test(a.opacity)
+ },
+ Yi = function () {
+ return N(['textShadow'], l)
+ },
+ Zi = function () {
+ return R('animationName')
+ },
+ $i = function () {
+ return R('transition')
+ },
+ aj = function () {
+ return (
+ navigator.userAgent.indexOf('Android 2.') === -1 && R('transform')
+ )
+ },
+ Tb = {
+ ei: {},
+ pa: function (a, b, c) {
+ this.ei[a] = b.apply(this, [].slice.call(arguments, 2))
+ },
+ Ed: function (a, b) {
+ a.apply(this, [].slice.call(arguments, 1))
+ },
+ f_: function () {
+ this.pa('bdrs', Vi)
+ this.pa('bxsd', Wi)
+ this.pa('opat', Xi)
+ this.pa('txsd', Yi)
+ this.pa('anim', Zi)
+ this.pa('trsi', $i)
+ this.pa('trfm', aj)
+ this.pa('flex', Ni)
+ this.pa('3dtr', Oi)
+ this.pa('shpe', Pi)
+ this.pa('fltr', Qi)
+ this.pa('cavs', wa)
+ this.pa('dgdp', Ma)
+ this.pa('locs', sb)
+ this.pa('wctem', Za)
+ this.pa('wcsdd', Pa)
+ this.pa('wccse', oi)
+ this.pa('wchti', pi)
+ this.Ed(re, 'lossy', se)
+ this.Ed(re, 'lossless', se)
+ this.Ed(re, 'alpha', se)
+ this.Ed(re, 'animation', se)
+ this.pa('wsql', si)
+ this.pa('natm', ti)
+ this.pa('ustm', ui)
+ this.pa('arra', vi)
+ this.pa('prms', wi)
+ this.pa('xhr2', xi)
+ this.pa('wbgl', zi)
+ this.pa('geol', yi)
+ this.pa('svg', Ai)
+ this.pa('work', Bi)
+ this.pa('wbsk', Ci)
+ this.pa('vido', Di)
+ this.pa('audo', Ei)
+ this.pa('hsty', Fi)
+ this.pa('file', Gi)
+ this.pa('psmg', Hi)
+ this.pa('wknf', Ii)
+ this.pa('rqaf', Ji)
+ this.pa('json', Ki)
+ this.pa('flsc', Li)
+ this.pa('i18n', Mi)
+ this.pa('cors', Ri)
+ this.pa('prog', Si)
+ this.pa('metr', Ti)
+ this.pa('becn', Ui)
+ this.pa('mcrd', qi)
+ this.pa('esrc', ri)
+ },
+ },
+ x = c.alog.bG('feature')
+ x.M('commit', function () {
+ Tb.f_()
+ var a = setInterval(function () {
+ if (
+ 'WebP-lossy' in Tb.ei &&
+ 'WebP-lossless' in Tb.ei &&
+ 'WebP-alpha' in Tb.ei &&
+ 'WebP-animation' in Tb.ei
+ ) {
+ for (var b in Tb.ei) Tb.ei[b] = Tb.ei[b] ? 'y' : 'n'
+ x.send('feature', Tb.ei)
+ clearInterval(a)
+ }
+ }, 500)
+ })
+ c.alog('feature.create', {
+ P2: 4,
+ R4: k,
+ page: i,
+ wb: '18',
+ })
+ c.alog('feature.fire', 'commit')
+ }
+ })(a, b, c)
+ })(window, document, B)
+ B.Fn = B.alog || u()
+ B.alog('cus.fire', 'count', 'z_loadscriptcount')
+ 'https:' === location.protocol && B.alog('cus.fire', 'count', 'z_httpscount')
+ function Sb(a) {
+ var b = window.TILE_VERSION,
+ c = '20170927'
+ b &&
+ b.ditu &&
+ ((b = b.ditu), b[a] && b[a].updateDate && (c = b[a].updateDate))
+ return c
+ }
+ function oa(a, b) {
+ if (/^http/.test(a)) return //修改 屏蔽ak验证,若调用外部资源直接返回
+
+ if (b) {
+ var c = (1e5 * Math.random()).toFixed(0)
+ B._rd['_cbk' + c] = function (a) {
+ b && b(a)
+ delete B._rd['_cbk' + c]
+ }
+ a += '&callback=BMap._rd._cbk' + c
+ }
+ var e = L('script', {
+ type: 'text/javascript',
+ })
+ e.charset = 'utf-8'
+ e.src = a
+ e.addEventListener
+ ? e.addEventListener(
+ 'load',
+ function (a) {
+ a = a.target
+ a.parentNode.removeChild(a)
+ },
+ t
+ )
+ : e.attachEvent &&
+ e.attachEvent('onreadystatechange', function () {
+ var a = window.event.srcElement
+ a &&
+ ('loaded' == a.readyState || 'complete' == a.readyState) &&
+ a.parentNode.removeChild(a)
+ })
+ setTimeout(function () {
+ document.getElementsByTagName('head')[0].appendChild(e)
+ e = s
+ }, 1)
+ }
+ var Ub = {
+ //修改,这里是所有的模块,用到时自动加载(在线),离线的话要先下载下来放到本地,如http://api0.map.bdimg.com/getmodules?v=3.0&mod=模块1,模块2
+ //模块命名格式是map_dbwcej,直接拼接起来
+ map: 'dbwcej',
+ common: 'wkrfcz',
+ style: 'fkofpc',
+ tile: 'ok3b3m',
+ vectordrawlib: '4pdipq',
+ newvectordrawlib: 'wbnuee',
+ groundoverlay: 'ekozhc',
+ pointcollection: 'feabuc',
+ marker: '00uyqy',
+ symbol: 'cq3a5n',
+ canvablepath: 'dia5aw',
+ vmlcontext: 'phwtog',
+ markeranimation: 'rfnmxu',
+ poly: 'r52vuo',
+ draw: 'jb4osz',
+ drawbysvg: 'vxyn51',
+ drawbyvml: 'whxmqq',
+ drawbycanvas: 'ufwkvb',
+ infowindow: 'wtflsn',
+ oppc: '10riq5',
+ opmb: '2c1ejz',
+ menu: '152mop',
+ control: 'hlzh1t',
+ navictrl: 'h32mnb',
+ geoctrl: 'xprajs',
+ copyrightctrl: 'gmc2ps',
+ citylistcontrol: 'ms3ahy',
+ scommon: 'oadc3d',
+ local: 'k0pcpi',
+ route: 'v4yyam',
+ othersearch: 'pwg4ey',
+ mapclick: 'e40viw',
+ buslinesearch: 'vxmb31',
+ hotspot: 'vuwxs4',
+ autocomplete: 'punr3o',
+ coordtrans: 'lmf5kv',
+ coordtransutils: 'd33qf1',
+ convertor: 'd0ze2w',
+ clayer: '0hwrfx',
+ pservice: 'j5tlrp',
+ pcommon: 'yqek4k',
+ panorama: 'jbqj24',
+ panoramaflash: 'dm4xq2',
+ vector: '2hrruc',
+ }
+ z.Wy = (function () {
+ function a(a) {
+ return e && !!c[b + a + '_' + Ub[a]]
+ }
+ var b = 'BMap_',
+ c = window.localStorage,
+ e = 'localStorage' in window && c !== s && c !== l
+ return {
+ ZY: e,
+ set: function (a, g) {
+ if (e) {
+ for (var i = b + a + '_', k = c.length, m; k--; )
+ (m = c.key(k)), -1 < m.indexOf(i) && c.removeItem(m)
+ try {
+ c.setItem(b + a + '_' + Ub[a], g)
+ } catch (n) {
+ c.clear()
+ }
+ }
+ },
+ get: function (f) {
+ return e && a(f) ? c.getItem(b + f + '_' + Ub[f]) : t
+ },
+ uK: a,
+ }
+ })()
+ function K() {}
+ z.object.extend(K, {
+ Cj: {
+ EG: -1,
+ cQ: 0,
+ cq: 1,
+ },
+ GL: function () {
+ var a = 'canvablepath',
+ b = B.gV ? 'newvectordrawlib' : 'vectordrawlib'
+ if (!H() || !Ob()) Nb() || (Mb() ? (a = 'vmlcontext') : Ob())
+ return {
+ tile: [b, 'style'],
+ control: [],
+ marker: ['symbol'],
+ symbol: ['canvablepath', 'common'],
+ canvablepath: 'canvablepath' === a ? [] : [a],
+ vmlcontext: [],
+ style: [],
+ poly: ['marker', 'drawbycanvas', 'drawbysvg', 'drawbyvml'],
+ drawbysvg: ['draw'],
+ drawbyvml: ['draw'],
+ drawbycanvas: ['draw'],
+ infowindow: ['common', 'marker'],
+ menu: [],
+ oppc: [],
+ opmb: [],
+ scommon: [],
+ local: ['scommon'],
+ route: ['scommon'],
+ othersearch: ['scommon'],
+ autocomplete: ['scommon'],
+ citylistcontrol: ['autocomplete'],
+ mapclick: ['scommon'],
+ buslinesearch: ['route'],
+ hotspot: [],
+ coordtransutils: ['coordtrans'],
+ convertor: [],
+ clayer: ['tile'],
+ pservice: [],
+ pcommon: ['style', 'pservice'],
+ panorama: ['pcommon'],
+ panoramaflash: ['pcommon'],
+ }
+ },
+ U4: {},
+ wG: {
+ tQ: B.ka + 'getmodules?v=3.0',
+ WU: 5e3,
+ },
+ MC: t,
+ Rd: {
+ xl: {},
+ Hn: [],
+ cw: [],
+ },
+ load: function (a, b, c) {
+ var e = this.kb(a)
+ if (e.Me == this.Cj.cq) c && b()
+ else {
+ if (e.Me == this.Cj.EG) {
+ this.AK(a)
+ this.SN(a)
+ var f = this
+ f.MC == t &&
+ ((f.MC = q),
+ setTimeout(function () {
+ for (var a = [], b = 0, c = f.Rd.Hn.length; b < c; b++) {
+ var e = f.Rd.Hn[b],
+ n = ''
+ ia.Wy.uK(e)
+ ? (n = ia.Wy.get(e))
+ : ((n = ''), a.push(e + '_' + Ub[e]))
+ f.Rd.cw.push({
+ jN: e,
+ ZE: n,
+ })
+ }
+ f.MC = t
+ f.Rd.Hn.length = 0
+ //0 == a.length ? f.kL() : oa(f.wG.tQ + "&mod=" + a.join(","))
+ // 修改 加载本地模块文件,在 modules 目录下
+ console.log(a) //打印所需模块
+ if (a.length > 0) {
+ for (i = 0; i < a.length; i++) {
+ mf = bmapcfg.home + 'modules/' + a[i] + '.js'
+ oa(mf)
+ // console.log('加载模块文件:' + mf) //IE error
+ }
+ } else {
+ f.kL()
+ }
+ //就到这
+ }, 1))
+ e.Me = this.Cj.cQ
+ }
+ e.Yu.push(b)
+ }
+ },
+ AK: function (a) {
+ if (a && this.GL()[a])
+ for (var a = this.GL()[a], b = 0; b < a.length; b++)
+ this.AK(a[b]), this.Rd.xl[a[b]] || this.SN(a[b])
+ },
+ SN: function (a) {
+ for (var b = 0; b < this.Rd.Hn.length; b++) if (this.Rd.Hn[b] == a) return
+ this.Rd.Hn.push(a)
+ },
+ e_: function (a, b) {
+ var c = this.kb(a)
+ try {
+ eval(b)
+ } catch (e) {
+ return
+ }
+ c.Me = this.Cj.cq
+ for (var f = 0, g = c.Yu.length; f < g; f++) c.Yu[f]()
+ c.Yu.length = 0
+ },
+ uK: function (a, b) {
+ var c = this
+ c.timeout = setTimeout(function () {
+ c.Rd.xl[a].Me != c.Cj.cq
+ ? (c.remove(a), c.load(a, b))
+ : clearTimeout(c.timeout)
+ }, c.wG.WU)
+ },
+ kb: function (a) {
+ this.Rd.xl[a] ||
+ ((this.Rd.xl[a] = {}),
+ (this.Rd.xl[a].Me = this.Cj.EG),
+ (this.Rd.xl[a].Yu = []))
+ return this.Rd.xl[a]
+ },
+ remove: function (a) {
+ delete this.kb(a)
+ },
+ WV: function (a, b) {
+ for (var c = this.Rd.cw, e = q, f = 0, g = c.length; f < g; f++)
+ '' == c[f].ZE && (c[f].jN == a ? (c[f].ZE = b) : (e = t))
+ e && this.kL()
+ },
+ kL: function () {
+ for (var a = this.Rd.cw, b = 0, c = a.length; b < c; b++)
+ this.e_(a[b].jN, a[b].ZE)
+ this.Rd.cw.length = 0
+ },
+ })
+ function Q(a, b) {
+ this.x = a || 0
+ this.y = b || 0
+ this.x = this.x
+ this.y = this.y
+ }
+ Q.prototype.pb = function (a) {
+ return a && a.x == this.x && a.y == this.y
+ }
+ function O(a, b) {
+ this.width = a || 0
+ this.height = b || 0
+ }
+ O.prototype.pb = function (a) {
+ return a && this.width == a.width && this.height == a.height
+ }
+ function ib(a, b) {
+ a &&
+ ((this.Lb = a),
+ (this.aa = 'spot' + ib.aa++),
+ (b = b || {}),
+ (this.Wg = b.text || ''),
+ (this.Jv = b.offsets ? b.offsets.slice(0) : [5, 5, 5, 5]),
+ (this.JJ = b.userData || s),
+ (this.Lh = b.minZoom || s),
+ (this.Hf = b.maxZoom || s))
+ }
+ ib.aa = 0
+ z.extend(ib.prototype, {
+ na: function (a) {
+ this.Lh == s && (this.Lh = a.K.gc)
+ this.Hf == s && (this.Hf = a.K.Yb)
+ },
+ sa: function (a) {
+ a instanceof J && (this.Lb = a)
+ },
+ ga: w('Lb'),
+ cu: ba('Wg'),
+ eE: w('Wg'),
+ setUserData: ba('JJ'),
+ getUserData: w('JJ'),
+ })
+ function Vb() {
+ this.B = s
+ this.Mb = 'control'
+ this.Qa = this.nK = q
+ }
+ z.lang.ta(Vb, z.lang.Ca, 'Control')
+ z.extend(Vb.prototype, {
+ initialize: function (a) {
+ this.B = a
+ if (this.C) return a.Wa.appendChild(this.C), this.C
+ },
+ He: function (a) {
+ !this.C &&
+ this.initialize &&
+ Xa(this.initialize) &&
+ (this.C = this.initialize(a))
+ this.j = this.j || {
+ Cg: t,
+ }
+ this.IB()
+ this.Nr()
+ this.C && (this.C.mr = this)
+ },
+ IB: function () {
+ var a = this.C
+ if (a) {
+ var b = a.style
+ b.position = 'absolute'
+ b.zIndex = this.Hz || '10'
+ b.MozUserSelect = 'none'
+ b.WebkitTextSizeAdjust = 'none'
+ this.j.Cg || z.D.Ua(a, 'BMap_noprint')
+ H() || z.M(a, 'contextmenu', na)
+ }
+ },
+ remove: function () {
+ this.B = s
+ this.C &&
+ (this.C.parentNode && this.C.parentNode.removeChild(this.C),
+ (this.C = this.C.mr = s))
+ },
+ Aa: function () {
+ this.C = Ab(this.B.Wa, "")
+ this.Qa == t && z.D.U(this.C)
+ return this.C
+ },
+ Nr: function () {
+ this.uc(this.j.anchor)
+ },
+ uc: function (a) {
+ if (this.j2 || !Wa(a) || isNaN(a) || a < Wb || 3 < a)
+ a = this.defaultAnchor
+ this.j = this.j || {
+ Cg: t,
+ }
+ this.j.za = this.j.za || this.defaultOffset
+ var b = this.j.anchor
+ this.j.anchor = a
+ if (this.C) {
+ var c = this.C,
+ e = this.j.za.width,
+ f = this.j.za.height
+ c.style.left = c.style.top = c.style.right = c.style.bottom = 'auto'
+ switch (a) {
+ case Wb:
+ c.style.top = f + 'px'
+ c.style.left = e + 'px'
+ break
+ case Xb:
+ c.style.top = f + 'px'
+ c.style.right = e + 'px'
+ break
+ case Yb:
+ c.style.bottom = f + 'px'
+ c.style.left = e + 'px'
+ break
+ case 3:
+ ;(c.style.bottom = f + 'px'), (c.style.right = e + 'px')
+ }
+ c = ['TL', 'TR', 'BL', 'BR']
+ z.D.Pb(this.C, 'anchor' + c[b])
+ z.D.Ua(this.C, 'anchor' + c[a])
+ }
+ },
+ HD: function () {
+ return this.j.anchor
+ },
+ getContainer: w('C'),
+ Ze: function (a) {
+ a instanceof O &&
+ ((this.j = this.j || {
+ Cg: t,
+ }),
+ (this.j.za = new O(a.width, a.height)),
+ this.C && this.uc(this.j.anchor))
+ },
+ Sf: function () {
+ return this.j.za
+ },
+ Jd: w('C'),
+ show: function () {
+ this.Qa != q && ((this.Qa = q), this.C && z.D.show(this.C))
+ },
+ U: function () {
+ this.Qa != t && ((this.Qa = t), this.C && z.D.U(this.C))
+ },
+ isPrintable: function () {
+ return !!this.j.Cg
+ },
+ jh: function () {
+ return !this.C && !this.B ? t : !!this.Qa
+ },
+ })
+ var Wb = 0,
+ Xb = 1,
+ Yb = 2
+ function jb(a) {
+ Vb.call(this)
+ a = a || {}
+ this.j = {
+ Cg: t,
+ OF: a.showZoomInfo || q,
+ anchor: a.anchor,
+ za: a.offset,
+ type: a.type,
+ $W: a.enableGeolocation || t,
+ }
+ this.defaultAnchor = H() ? 3 : Wb
+ this.defaultOffset = new O(10, 10)
+ this.uc(a.anchor)
+ this.hn(a.type)
+ this.De()
+ }
+ z.lang.ta(jb, Vb, 'NavigationControl')
+ z.extend(jb.prototype, {
+ initialize: function (a) {
+ this.B = a
+ return this.C
+ },
+ hn: function (a) {
+ this.j.type = Wa(a) && 0 <= a && 3 >= a ? a : 0
+ },
+ ip: function () {
+ return this.j.type
+ },
+ De: function () {
+ var a = this
+ K.load('navictrl', function () {
+ a.zf()
+ })
+ },
+ })
+ function Zb(a) {
+ Vb.call(this)
+ a = a || {}
+ this.j = {
+ anchor: a.anchor || Yb,
+ za: a.offset || new O(10, 30),
+ O_: a.showAddressBar !== t,
+ U2: a.enableAutoLocation || t,
+ bN: a.locationIcon || s,
+ }
+ var b = this
+ this.Hz = 1200
+ b.I0 = []
+ this.pe = []
+ K.load('geoctrl', function () {
+ ;(function e() {
+ if (0 !== b.pe.length) {
+ var a = b.pe.shift()
+ b[a.method].apply(b, a.arguments)
+ e()
+ }
+ })()
+ b.sQ()
+ })
+ Ra(Ia)
+ }
+ z.lang.ta(Zb, Vb, 'GeolocationControl')
+ z.extend(Zb.prototype, {
+ location: function () {
+ this.pe.push({
+ method: 'location',
+ arguments: arguments,
+ })
+ },
+ getAddressComponent: ca(s),
+ })
+ function $b(a) {
+ Vb.call(this)
+ a = a || {}
+ this.j = {
+ Cg: t,
+ anchor: a.anchor,
+ za: a.offset,
+ }
+ this.cc = []
+ this.defaultAnchor = Yb
+ this.defaultOffset = new O(5, 2)
+ this.uc(a.anchor)
+ this.nK = t
+ this.De()
+ }
+ z.lang.ta($b, Vb, 'CopyrightControl')
+ z.object.extend($b.prototype, {
+ initialize: function (a) {
+ this.B = a
+ return this.C
+ },
+ Bw: function (a) {
+ if (a && Wa(a.id) && !isNaN(a.id)) {
+ var b = {
+ bounds: s,
+ content: '',
+ },
+ c
+ for (c in a) b[c] = a[c]
+ if ((a = this.pm(a.id))) for (var e in b) a[e] = b[e]
+ else this.cc.push(b)
+ }
+ },
+ pm: function (a) {
+ for (var b = 0, c = this.cc.length; b < c; b++)
+ if (this.cc[b].id == a) return this.cc[b]
+ },
+ PD: w('cc'),
+ qF: function (a) {
+ for (var b = 0, c = this.cc.length; b < c; b++)
+ this.cc[b].id == a &&
+ ((r = this.cc.splice(b, 1)), b--, (c = this.cc.length))
+ },
+ De: function () {
+ var a = this
+ K.load('copyrightctrl', function () {
+ a.zf()
+ })
+ },
+ })
+ function lb(a) {
+ Vb.call(this)
+ a = a || {}
+ this.j = {
+ Cg: t,
+ size: a.size || new O(150, 150),
+ padding: 5,
+ Xa: a.isOpen === q ? q : t,
+ $0: 4,
+ za: a.offset,
+ anchor: a.anchor,
+ }
+ this.defaultAnchor = 3
+ this.defaultOffset = new O(0, 0)
+ this.Bq = this.Cq = 13
+ this.uc(a.anchor)
+ this.Ce(this.j.size)
+ this.De()
+ }
+ z.lang.ta(lb, Vb, 'OverviewMapControl')
+ z.extend(lb.prototype, {
+ initialize: function (a) {
+ this.B = a
+ return this.C
+ },
+ uc: function (a) {
+ Vb.prototype.uc.call(this, a)
+ },
+ se: function () {
+ this.se.mo = q
+ this.j.Xa = !this.j.Xa
+ this.C || (this.se.mo = t)
+ },
+ Ce: function (a) {
+ a instanceof O || (a = new O(150, 150))
+ a.width = 0 < a.width ? a.width : 150
+ a.height = 0 < a.height ? a.height : 150
+ this.j.size = a
+ },
+ cb: function () {
+ return this.j.size
+ },
+ Xa: function () {
+ return this.j.Xa
+ },
+ De: function () {
+ var a = this
+ K.load('control', function () {
+ a.zf()
+ })
+ },
+ })
+ function ac(a) {
+ Vb.call(this)
+ a = a || {}
+ this.defaultAnchor = Wb
+ this.TV = a.canCheckSize === t ? t : q
+ this.$i = ''
+ this.defaultOffset = new O(10, 10)
+ this.onChangeBefore = []
+ this.onChangeAfter = []
+ this.onChangeSuccess = []
+ this.j = {
+ Cg: t,
+ za: a.offset || this.defaultOffset,
+ anchor: a.anchor || this.defaultAnchor,
+ expand: !!a.expand,
+ }
+ a.onChangeBefore &&
+ Xa(a.onChangeBefore) &&
+ this.onChangeBefore.push(a.onChangeBefore)
+ a.onChangeAfter &&
+ Xa(a.onChangeAfter) &&
+ this.onChangeAfter.push(a.onChangeAfter)
+ a.onChangeSuccess &&
+ Xa(a.onChangeSuccess) &&
+ this.onChangeSuccess.push(a.onChangeSuccess)
+ this.uc(a.anchor)
+ this.De()
+ }
+ z.lang.ta(ac, Vb, 'CityListControl')
+ z.object.extend(ac.prototype, {
+ initialize: function (a) {
+ this.B = a
+ return this.C
+ },
+ De: function () {
+ var a = this
+ K.load(
+ 'citylistcontrol',
+ function () {
+ a.zf()
+ },
+ q
+ )
+ },
+ })
+ function kb(a) {
+ Vb.call(this)
+ a = a || {}
+ this.j = {
+ Cg: t,
+ color: 'black',
+ fd: 'metric',
+ za: a.offset,
+ }
+ this.defaultAnchor = Yb
+ this.defaultOffset = new O(81, 18)
+ this.uc(a.anchor)
+ this.Uh = {
+ metric: {
+ name: 'metric',
+ CK: 1,
+ rM: 1e3,
+ bP: '\u7c73',
+ cP: '\u516c\u91cc',
+ },
+ us: {
+ name: 'us',
+ CK: 3.2808,
+ rM: 5280,
+ bP: '\u82f1\u5c3a',
+ cP: '\u82f1\u91cc',
+ },
+ }
+ this.Uh[this.j.fd] || (this.j.fd = 'metric')
+ this.gJ = s
+ this.GI = {}
+ this.De()
+ }
+ z.lang.ta(kb, Vb, 'ScaleControl')
+ z.object.extend(kb.prototype, {
+ initialize: function (a) {
+ this.B = a
+ return this.C
+ },
+ Pk: function (a) {
+ this.j.color = a + ''
+ },
+ n3: function () {
+ return this.j.color
+ },
+ LF: function (a) {
+ this.j.fd = (this.Uh[a] && this.Uh[a].name) || this.j.fd
+ },
+ sY: function () {
+ return this.j.fd
+ },
+ De: function () {
+ var a = this
+ K.load('control', function () {
+ a.zf()
+ })
+ },
+ })
+ var bc = 0
+ function mb(a) {
+ Vb.call(this)
+ a = a || {}
+ this.defaultAnchor = Xb
+ this.defaultOffset = new O(10, 10)
+ this.j = {
+ Cg: t,
+ mh: [La, Ya, Sa, Qa],
+ BW: ['B_DIMENSIONAL_MAP', 'B_SATELLITE_MAP', 'B_NORMAL_MAP'],
+ type: a.type || bc,
+ za: a.offset || this.defaultOffset,
+ dX: q,
+ }
+ this.uc(a.anchor)
+ '[object Array]' == Object.prototype.toString.call(a.mapTypes) &&
+ (this.j.mh = a.mapTypes.slice(0))
+ this.De()
+ }
+ z.lang.ta(mb, Vb, 'MapTypeControl')
+ z.object.extend(mb.prototype, {
+ initialize: function (a) {
+ this.B = a
+ return this.C
+ },
+ Xy: function (a) {
+ this.B.ao = a
+ },
+ De: function () {
+ var a = this
+ K.load(
+ 'control',
+ function () {
+ a.zf()
+ },
+ q
+ )
+ },
+ })
+ function cc(a) {
+ Vb.call(this)
+ a = a || {}
+ this.j = {
+ Cg: t,
+ za: a.offset,
+ anchor: a.anchor,
+ }
+ this.Ni = t
+ this.hw = s
+ this.QI = new dc({
+ of: 'api',
+ })
+ this.RI = new ec(s, {
+ of: 'api',
+ })
+ this.defaultAnchor = Xb
+ this.defaultOffset = new O(10, 10)
+ this.uc(a.anchor)
+ this.De()
+ Ra(va)
+ }
+ z.lang.ta(cc, Vb, 'PanoramaControl')
+ z.extend(cc.prototype, {
+ initialize: function (a) {
+ this.B = a
+ return this.C
+ },
+ De: function () {
+ var a = this
+ K.load('control', function () {
+ a.zf()
+ })
+ },
+ })
+ function fc(a) {
+ z.lang.Ca.call(this)
+ this.j = {
+ Wa: s,
+ cursor: 'default',
+ }
+ this.j = z.extend(this.j, a)
+ this.Mb = 'contextmenu'
+ this.B = s
+ this.xa = []
+ this.Kf = []
+ this.Fe = []
+ this.fx = this.qs = s
+ this.Kh = t
+ var b = this
+ K.load('menu', function () {
+ b.ib()
+ })
+ }
+ z.lang.ta(fc, z.lang.Ca, 'ContextMenu')
+ z.object.extend(fc.prototype, {
+ na: function (a, b) {
+ this.B = a
+ this.Cl = b || s
+ },
+ remove: function () {
+ this.B = this.Cl = s
+ },
+ Dw: function (a) {
+ if (a && !('menuitem' != a.Mb || '' == a.Wg || 0 >= a.Vi)) {
+ for (var b = 0, c = this.xa.length; b < c; b++)
+ if (this.xa[b] === a) return
+ this.xa.push(a)
+ this.Kf.push(a)
+ }
+ },
+ removeItem: function (a) {
+ if (a && 'menuitem' == a.Mb) {
+ for (var b = 0, c = this.xa.length; b < c; b++)
+ this.xa[b] === a && (this.xa[b].remove(), this.xa.splice(b, 1), c--)
+ b = 0
+ for (c = this.Kf.length; b < c; b++)
+ this.Kf[b] === a && (this.Kf[b].remove(), this.Kf.splice(b, 1), c--)
+ }
+ },
+ bC: function () {
+ this.xa.push({
+ Mb: 'divider',
+ Lj: this.Fe.length,
+ })
+ this.Fe.push({
+ D: s,
+ })
+ },
+ sF: function (a) {
+ if (this.Fe[a]) {
+ for (var b = 0, c = this.xa.length; b < c; b++)
+ this.xa[b] &&
+ 'divider' == this.xa[b].Mb &&
+ this.xa[b].Lj == a &&
+ (this.xa.splice(b, 1), c--),
+ this.xa[b] &&
+ 'divider' == this.xa[b].Mb &&
+ this.xa[b].Lj > a &&
+ this.xa[b].Lj--
+ this.Fe.splice(a, 1)
+ }
+ },
+ Jd: w('C'),
+ show: function () {
+ this.Kh != q && (this.Kh = q)
+ },
+ U: function () {
+ this.Kh != t && (this.Kh = t)
+ },
+ t_: function (a) {
+ a && (this.j.cursor = a)
+ },
+ getItem: function (a) {
+ return this.Kf[a]
+ },
+ })
+ var gc = G.qa + 'menu_zoom_in.png',
+ hc = G.qa + 'menu_zoom_out.png'
+ function ic(a, b, c) {
+ if (a && Xa(b)) {
+ z.lang.Ca.call(this)
+ this.j = {
+ width: 100,
+ id: '',
+ Dm: '',
+ }
+ c = c || {}
+ this.j.width = 1 * c.width ? c.width : 100
+ this.j.id = c.id ? c.id : ''
+ this.j.Dm = c.iconUrl ? c.iconUrl : ''
+ this.Wg = a + ''
+ this.Kz = b
+ this.B = s
+ this.Mb = 'menuitem'
+ this.Ur = this.yv = this.C = this.Eh = s
+ this.Ih = q
+ var e = this
+ K.load('menu', function () {
+ e.ib()
+ })
+ }
+ }
+ z.lang.ta(ic, z.lang.Ca, 'MenuItem')
+ z.object.extend(ic.prototype, {
+ na: function (a, b) {
+ this.B = a
+ this.Eh = b
+ },
+ remove: function () {
+ this.B = this.Eh = s
+ },
+ cu: function (a) {
+ a && (this.Wg = a + '')
+ },
+ Rb: function (a) {
+ a && (this.j.Dm = a)
+ },
+ Jd: w('C'),
+ enable: function () {
+ this.Ih = q
+ },
+ disable: function () {
+ this.Ih = t
+ },
+ })
+ function fb(a, b) {
+ a && !b && (b = a)
+ this.Ie = this.Xd = this.Ne = this.Zd = this.Pl = this.Al = s
+ a &&
+ ((this.Pl = new J(a.lng, a.lat)),
+ (this.Al = new J(b.lng, b.lat)),
+ (this.Ne = a.lng),
+ (this.Zd = a.lat),
+ (this.Ie = b.lng),
+ (this.Xd = b.lat))
+ }
+ z.object.extend(fb.prototype, {
+ tj: function () {
+ return !this.Pl || !this.Al
+ },
+ pb: function (a) {
+ return !(a instanceof fb) || this.tj()
+ ? t
+ : this.Ve().pb(a.Ve()) && this.Rf().pb(a.Rf())
+ },
+ Ve: w('Pl'),
+ Rf: w('Al'),
+ kW: function (a) {
+ return !(a instanceof fb) || this.tj() || a.tj()
+ ? t
+ : a.Ne > this.Ne && a.Ie < this.Ie && a.Zd > this.Zd && a.Xd < this.Xd
+ },
+ Ka: function () {
+ return this.tj()
+ ? s
+ : new J((this.Ne + this.Ie) / 2, (this.Zd + this.Xd) / 2)
+ },
+ ot: function (a) {
+ if (
+ !(a instanceof fb) ||
+ Math.max(a.Ne, a.Ie) < Math.min(this.Ne, this.Ie) ||
+ Math.min(a.Ne, a.Ie) > Math.max(this.Ne, this.Ie) ||
+ Math.max(a.Zd, a.Xd) < Math.min(this.Zd, this.Xd) ||
+ Math.min(a.Zd, a.Xd) > Math.max(this.Zd, this.Xd)
+ )
+ return s
+ var b = Math.max(this.Ne, a.Ne),
+ c = Math.min(this.Ie, a.Ie),
+ e = Math.max(this.Zd, a.Zd),
+ a = Math.min(this.Xd, a.Xd)
+ return new fb(new J(b, e), new J(c, a))
+ },
+ js: function (a) {
+ return !(a instanceof J) || this.tj()
+ ? t
+ : a.lng >= this.Ne &&
+ a.lng <= this.Ie &&
+ a.lat >= this.Zd &&
+ a.lat <= this.Xd
+ },
+ extend: function (a) {
+ if (a instanceof J) {
+ var b = a.lng,
+ a = a.lat
+ this.Pl || (this.Pl = new J(0, 0))
+ this.Al || (this.Al = new J(0, 0))
+ if (!this.Ne || this.Ne > b) this.Pl.lng = this.Ne = b
+ if (!this.Ie || this.Ie < b) this.Al.lng = this.Ie = b
+ if (!this.Zd || this.Zd > a) this.Pl.lat = this.Zd = a
+ if (!this.Xd || this.Xd < a) this.Al.lat = this.Xd = a
+ }
+ },
+ YF: function () {
+ return this.tj()
+ ? new J(0, 0)
+ : new J(Math.abs(this.Ie - this.Ne), Math.abs(this.Xd - this.Zd))
+ },
+ })
+ function J(a, b) {
+ isNaN(a) && ((a = Lb(a)), (a = isNaN(a) ? 0 : a))
+ $a(a) && (a = parseFloat(a))
+ isNaN(b) && ((b = Lb(b)), (b = isNaN(b) ? 0 : b))
+ $a(b) && (b = parseFloat(b))
+ this.lng = a
+ this.lat = b
+ }
+ J.yM = function (a) {
+ return a && 180 >= a.lng && -180 <= a.lng && 74 >= a.lat && -74 <= a.lat
+ }
+ J.prototype.pb = function (a) {
+ return a && this.lat == a.lat && this.lng == a.lng
+ }
+ function jc() {}
+ jc.prototype.kh = function () {
+ aa('lngLatToPoint\u65b9\u6cd5\u672a\u5b9e\u73b0')
+ }
+ jc.prototype.xj = function () {
+ aa('pointToLngLat\u65b9\u6cd5\u672a\u5b9e\u73b0')
+ }
+ function kc() {}
+ var eb = {
+ EK: function (a, b, c) {
+ K.load(
+ 'coordtransutils',
+ function () {
+ eb.AV(a, b, c)
+ },
+ q
+ )
+ },
+ DK: function (a, b, c) {
+ K.load(
+ 'coordtransutils',
+ function () {
+ eb.zV(a, b, c)
+ },
+ q
+ )
+ },
+ }
+ function lc() {
+ this.Pa = []
+ var a = this
+ K.load('convertor', function () {
+ a.qQ()
+ })
+ }
+ z.ta(lc, z.lang.Ca, 'Convertor')
+ z.extend(lc.prototype, {
+ translate: function (a, b, c, e) {
+ this.Pa.push({
+ method: 'translate',
+ arguments: [a, b, c, e],
+ })
+ },
+ })
+ T(lc.prototype, {
+ translate: lc.prototype.translate,
+ })
+ function S() {}
+ S.prototype = new jc()
+ z.extend(S, {
+ GP: 6370996.81,
+ IG: [1.289059486e7, 8362377.87, 5591021, 3481989.83, 1678043.12, 0],
+ Nu: [75, 60, 45, 30, 15, 0],
+ MP: [
+ [
+ 1.410526172116255e-8, 8.98305509648872e-6, -1.9939833816331,
+ 200.9824383106796, -187.2403703815547, 91.6087516669843,
+ -23.38765649603339, 2.57121317296198, -0.03801003308653, 1.73379812e7,
+ ],
+ [
+ -7.435856389565537e-9, 8.983055097726239e-6, -0.78625201886289,
+ 96.32687599759846, -1.85204757529826, -59.36935905485877,
+ 47.40033549296737, -16.50741931063887, 2.28786674699375, 1.026014486e7,
+ ],
+ [
+ -3.030883460898826e-8, 8.98305509983578e-6, 0.30071316287616,
+ 59.74293618442277, 7.357984074871, -25.38371002664745,
+ 13.45380521110908, -3.29883767235584, 0.32710905363475, 6856817.37,
+ ],
+ [
+ -1.981981304930552e-8, 8.983055099779535e-6, 0.03278182852591,
+ 40.31678527705744, 0.65659298677277, -4.44255534477492,
+ 0.85341911805263, 0.12923347998204, -0.04625736007561, 4482777.06,
+ ],
+ [
+ 3.09191371068437e-9, 8.983055096812155e-6, 6.995724062e-5,
+ 23.10934304144901, -2.3663490511e-4, -0.6321817810242,
+ -0.00663494467273, 0.03430082397953, -0.00466043876332, 2555164.4,
+ ],
+ [
+ 2.890871144776878e-9, 8.983055095805407e-6, -3.068298e-8,
+ 7.47137025468032, -3.53937994e-6, -0.02145144861037, -1.234426596e-5,
+ 1.0322952773e-4, -3.23890364e-6, 826088.5,
+ ],
+ ],
+ FG: [
+ [
+ -0.0015702102444, 111320.7020616939, 1704480524535203,
+ -10338987376042340, 26112667856603880, -35149669176653700,
+ 26595700718403920, -10725012454188240, 1800819912950474, 82.5,
+ ],
+ [
+ 8.277824516172526e-4, 111320.7020463578, 6.477955746671607e8,
+ -4.082003173641316e9, 1.077490566351142e10, -1.517187553151559e10,
+ 1.205306533862167e10, -5.124939663577472e9, 9.133119359512032e8, 67.5,
+ ],
+ [
+ 0.00337398766765, 111320.7020202162, 4481351.045890365,
+ -2.339375119931662e7, 7.968221547186455e7, -1.159649932797253e8,
+ 9.723671115602145e7, -4.366194633752821e7, 8477230.501135234, 52.5,
+ ],
+ [
+ 0.00220636496208, 111320.7020209128, 51751.86112841131,
+ 3796837.749470245, 992013.7397791013, -1221952.21711287,
+ 1340652.697009075, -620943.6990984312, 144416.9293806241, 37.5,
+ ],
+ [
+ -3.441963504368392e-4, 111320.7020576856, 278.2353980772752,
+ 2485758.690035394, 6070.750963243378, 54821.18345352118,
+ 9540.606633304236, -2710.55326746645, 1405.483844121726, 22.5,
+ ],
+ [
+ -3.218135878613132e-4, 111320.7020701615, 0.00369383431289,
+ 823725.6402795718, 0.46104986909093, 2351.343141331292,
+ 1.58060784298199, 8.77738589078284, 0.37238884252424, 7.45,
+ ],
+ ],
+ t3: function (a, b) {
+ if (!a || !b) return 0
+ var c,
+ e,
+ a = this.Tb(a)
+ if (!a) return 0
+ c = this.Xk(a.lng)
+ e = this.Xk(a.lat)
+ b = this.Tb(b)
+ return !b ? 0 : this.pf(c, this.Xk(b.lng), e, this.Xk(b.lat))
+ },
+ $o: function (a, b) {
+ if (!a || !b) return 0
+ a.lng = this.WD(a.lng, -180, 180)
+ a.lat = this.aE(a.lat, -74, 74)
+ b.lng = this.WD(b.lng, -180, 180)
+ b.lat = this.aE(b.lat, -74, 74)
+ return this.pf(
+ this.Xk(a.lng),
+ this.Xk(b.lng),
+ this.Xk(a.lat),
+ this.Xk(b.lat)
+ )
+ },
+ Tb: function (a) {
+ if (a === s || a === l) return new J(0, 0)
+ var b, c
+ b = new J(Math.abs(a.lng), Math.abs(a.lat))
+ for (var e = 0; e < this.IG.length; e++)
+ if (b.lat >= this.IG[e]) {
+ c = this.MP[e]
+ break
+ }
+ a = this.FK(a, c)
+ return (a = new J(a.lng.toFixed(6), a.lat.toFixed(6)))
+ },
+ Eb: function (a) {
+ if (
+ a === s ||
+ a === l ||
+ 180 < a.lng ||
+ -180 > a.lng ||
+ 90 < a.lat ||
+ -90 > a.lat
+ )
+ return new J(0, 0)
+ var b, c
+ a.lng = this.WD(a.lng, -180, 180)
+ a.lat = this.aE(a.lat, -74, 74)
+ b = new J(a.lng, a.lat)
+ for (var e = 0; e < this.Nu.length; e++)
+ if (b.lat >= this.Nu[e]) {
+ c = this.FG[e]
+ break
+ }
+ if (!c)
+ for (e = 0; e < this.Nu.length; e++)
+ if (b.lat <= -this.Nu[e]) {
+ c = this.FG[e]
+ break
+ }
+ a = this.FK(a, c)
+ return (a = new J(a.lng.toFixed(2), a.lat.toFixed(2)))
+ },
+ FK: function (a, b) {
+ if (a && b) {
+ var c = b[0] + b[1] * Math.abs(a.lng),
+ e = Math.abs(a.lat) / b[9],
+ e =
+ b[2] +
+ b[3] * e +
+ b[4] * e * e +
+ b[5] * e * e * e +
+ b[6] * e * e * e * e +
+ b[7] * e * e * e * e * e +
+ b[8] * e * e * e * e * e * e,
+ c = c * (0 > a.lng ? -1 : 1),
+ e = e * (0 > a.lat ? -1 : 1)
+ return new J(c, e)
+ }
+ },
+ pf: function (a, b, c, e) {
+ return (
+ this.GP *
+ Math.acos(
+ Math.sin(c) * Math.sin(e) +
+ Math.cos(c) * Math.cos(e) * Math.cos(b - a)
+ )
+ )
+ },
+ Xk: function (a) {
+ return (Math.PI * a) / 180
+ },
+ B5: function (a) {
+ return (180 * a) / Math.PI
+ },
+ aE: function (a, b, c) {
+ b != s && (a = Math.max(a, b))
+ c != s && (a = Math.min(a, c))
+ return a
+ },
+ WD: function (a, b, c) {
+ for (; a > c; ) a -= c - b
+ for (; a < b; ) a += c - b
+ return a
+ },
+ })
+ z.extend(S.prototype, {
+ vj: function (a) {
+ return S.Eb(a)
+ },
+ kh: function (a) {
+ a = S.Eb(a)
+ return new Q(a.lng, a.lat)
+ },
+ nh: function (a) {
+ return S.Tb(a)
+ },
+ xj: function (a) {
+ a = new J(a.x, a.y)
+ return S.Tb(a)
+ },
+ $b: function (a, b, c, e, f) {
+ if (a)
+ return (
+ (a = this.vj(a, f)),
+ (b = this.dc(b)),
+ new Q(
+ Math.round((a.lng - c.lng) / b + e.width / 2),
+ Math.round((c.lat - a.lat) / b + e.height / 2)
+ )
+ )
+ },
+ xb: function (a, b, c, e, f) {
+ if (a)
+ return (
+ (b = this.dc(b)),
+ this.nh(
+ new J(
+ c.lng + b * (a.x - e.width / 2),
+ c.lat - b * (a.y - e.height / 2)
+ ),
+ f
+ )
+ )
+ },
+ dc: function (a) {
+ return Math.pow(2, 18 - a)
+ },
+ })
+ function hb() {
+ this.$i = 'bj'
+ }
+ hb.prototype = new S()
+ z.extend(hb.prototype, {
+ vj: function (a, b) {
+ return this.bR(b, S.Eb(a))
+ },
+ nh: function (a, b) {
+ return S.Tb(this.cR(b, a))
+ },
+ lngLatToPointFor3D: function (a, b) {
+ var c = this,
+ e = S.Eb(a)
+ K.load(
+ 'coordtrans',
+ function () {
+ var a = kc.ZD(c.$i || 'bj', e),
+ a = new Q(a.x, a.y)
+ b && b(a)
+ },
+ q
+ )
+ },
+ pointToLngLatFor3D: function (a, b) {
+ var c = this,
+ e = new J(a.x, a.y)
+ K.load(
+ 'coordtrans',
+ function () {
+ var a = kc.XD(c.$i || 'bj', e),
+ a = new J(a.lng, a.lat),
+ a = S.Tb(a)
+ b && b(a)
+ },
+ q
+ )
+ },
+ bR: function (a, b) {
+ if (K.kb('coordtrans').Me == K.Cj.cq) {
+ var c = kc.ZD(a || 'bj', b)
+ return new J(c.x, c.y)
+ }
+ K.load('coordtrans', u())
+ return new J(0, 0)
+ },
+ cR: function (a, b) {
+ if (K.kb('coordtrans').Me == K.Cj.cq) {
+ var c = kc.XD(a || 'bj', b)
+ return new J(c.lng, c.lat)
+ }
+ K.load('coordtrans', u())
+ return new J(0, 0)
+ },
+ dc: function (a) {
+ return Math.pow(2, 20 - a)
+ },
+ })
+ function mc() {
+ this.Mb = 'overlay'
+ }
+ z.lang.ta(mc, z.lang.Ca, 'Overlay')
+ mc.Ck = function (a) {
+ a *= 1
+ return !a ? 0 : (-1e5 * a) << 1
+ }
+ z.extend(mc.prototype, {
+ He: function (a) {
+ if (!this.V && Xa(this.initialize) && (this.V = this.initialize(a)))
+ this.V.style.WebkitUserSelect = 'none'
+ this.draw()
+ },
+ initialize: function () {
+ aa('initialize\u65b9\u6cd5\u672a\u5b9e\u73b0')
+ },
+ draw: function () {
+ aa('draw\u65b9\u6cd5\u672a\u5b9e\u73b0')
+ },
+ remove: function () {
+ this.V && this.V.parentNode && this.V.parentNode.removeChild(this.V)
+ this.V = s
+ this.dispatchEvent(new P('onremove'))
+ },
+ U: function () {
+ this.V && z.D.U(this.V)
+ },
+ show: function () {
+ this.V && z.D.show(this.V)
+ },
+ jh: function () {
+ return !this.V ||
+ 'none' == this.V.style.display ||
+ 'hidden' == this.V.style.visibility
+ ? t
+ : q
+ },
+ })
+ B.Ye(function (a) {
+ function b(a, b) {
+ var c = L('div'),
+ i = c.style
+ i.position = 'absolute'
+ i.top = i.left = i.width = i.height = '0'
+ i.zIndex = b
+ a.appendChild(c)
+ return c
+ }
+ var c = a.R
+ c.rd = a.rd = b(a.platform, 200)
+ a.Yd.BD = b(c.rd, 800)
+ a.Yd.RE = b(c.rd, 700)
+ a.Yd.sL = b(c.rd, 600)
+ a.Yd.KE = b(c.rd, 500)
+ a.Yd.fN = b(c.rd, 400)
+ a.Yd.gN = b(c.rd, 300)
+ a.Yd.nP = b(c.rd, 201)
+ a.Yd.Et = b(c.rd, 200)
+ })
+ function gb() {
+ z.lang.Ca.call(this)
+ mc.call(this)
+ this.map = s
+ this.Qa = q
+ this.zb = s
+ this.vH = 0
+ }
+ z.lang.ta(gb, mc, 'OverlayInternal')
+ z.extend(gb.prototype, {
+ initialize: function (a) {
+ this.map = a
+ z.lang.Ca.call(this, this.aa)
+ return s
+ },
+ Dx: w('map'),
+ draw: u(),
+ Ej: u(),
+ remove: function () {
+ this.map = s
+ z.lang.hx(this.aa)
+ mc.prototype.remove.call(this)
+ },
+ U: function () {
+ this.Qa !== t && (this.Qa = t)
+ },
+ show: function () {
+ this.Qa !== q && (this.Qa = q)
+ },
+ jh: function () {
+ return !this.V ? t : !!this.Qa
+ },
+ La: w('V'),
+ lO: function (a) {
+ var a = a || {},
+ b
+ for (b in a) this.z[b] = a[b]
+ },
+ Sp: ba('zIndex'),
+ gj: function () {
+ this.z.gj = q
+ },
+ MW: function () {
+ this.z.gj = t
+ },
+ yo: ba('lg'),
+ Cp: function () {
+ this.lg = s
+ },
+ })
+ function nc() {
+ this.map = s
+ this.ya = {}
+ this.Ee = []
+ }
+ B.Ye(function (a) {
+ var b = new nc()
+ b.map = a
+ a.ya = b.ya
+ a.Ee = b.Ee
+ a.addEventListener('load', function (a) {
+ b.draw(a)
+ })
+ a.addEventListener('moveend', function (a) {
+ b.draw(a)
+ })
+ ;(z.ca.ia && 8 > z.ca.ia) || 'BackCompat' === document.compatMode
+ ? a.addEventListener('zoomend', function (a) {
+ setTimeout(function () {
+ b.draw(a)
+ }, 20)
+ })
+ : a.addEventListener('zoomend', function (a) {
+ b.draw(a)
+ })
+ a.addEventListener('maptypechange', function (a) {
+ b.draw(a)
+ })
+ a.addEventListener('addoverlay', function (a) {
+ a = a.target
+ if (a instanceof gb) b.ya[a.aa] || (b.ya[a.aa] = a)
+ else {
+ for (var e = t, f = 0, g = b.Ee.length; f < g; f++)
+ if (b.Ee[f] === a) {
+ e = q
+ break
+ }
+ e || b.Ee.push(a)
+ }
+ })
+ a.addEventListener('removeoverlay', function (a) {
+ a = a.target
+ if (a instanceof gb) delete b.ya[a.aa]
+ else
+ for (var e = 0, f = b.Ee.length; e < f; e++)
+ if (b.Ee[e] === a) {
+ b.Ee.splice(e, 1)
+ break
+ }
+ })
+ a.addEventListener('clearoverlays', function () {
+ this.Yc()
+ for (var a in b.ya) b.ya[a].z.gj && (b.ya[a].remove(), delete b.ya[a])
+ a = 0
+ for (var e = b.Ee.length; a < e; a++)
+ b.Ee[a].enableMassClear !== t &&
+ (b.Ee[a].remove(), (b.Ee[a] = s), b.Ee.splice(a, 1), a--, e--)
+ })
+ a.addEventListener('infowindowopen', function () {
+ var a = this.zb
+ a && (z.D.U(a.Ac), z.D.U(a.ac))
+ })
+ a.addEventListener('movestart', function () {
+ this.hh() && this.hh().mJ()
+ })
+ a.addEventListener('moveend', function () {
+ this.hh() && this.hh().cJ()
+ })
+ })
+ nc.prototype.draw = function (a) {
+ if (B.hq) {
+ var b = B.hq.Ws(this.map)
+ 'canvas' === b.Mb && b.canvas && b.XQ(b.canvas.getContext('2d'))
+ }
+ for (var c in this.ya) this.ya[c].draw(a)
+ z.mc.Fb(this.Ee, function (a) {
+ a.draw()
+ })
+ this.map.R.qb && this.map.R.qb.sa()
+ B.hq && b.IF()
+ }
+ function oc(a) {
+ gb.call(this)
+ a = a || {}
+ this.z = {
+ strokeColor: a.strokeColor || '#3a6bdb',
+ rc: a.strokeWeight || 5,
+ td: a.strokeOpacity || 0.65,
+ strokeStyle: a.strokeStyle || 'solid',
+ gj: a.enableMassClear === t ? t : q,
+ zk: s,
+ um: s,
+ mf: a.enableEditing === q ? q : t,
+ kN: 5,
+ G0: t,
+ jf: a.enableClicking === t ? t : q,
+ ji: a.icons && 0 < a.icons.length ? a.icons : s,
+ }
+ 0 >= this.z.rc && (this.z.rc = 5)
+ if (0 > this.z.td || 1 < this.z.td) this.z.td = 0.65
+ if (0 > this.z.tg || 1 < this.z.tg) this.z.tg = 0.65
+ 'solid' != this.z.strokeStyle &&
+ 'dashed' != this.z.strokeStyle &&
+ (this.z.strokeStyle = 'solid')
+ this.V = s
+ this.Vu = new fb(0, 0)
+ this.gf = []
+ this.tc = []
+ this.Ra = {}
+ }
+ z.lang.ta(oc, gb, 'Graph')
+ oc.yx = function (a) {
+ var b = []
+ if (!a) return b
+ $a(a) &&
+ z.mc.Fb(a.split(';'), function (a) {
+ a = a.split(',')
+ b.push(new J(a[0], a[1]))
+ })
+ '[object Array]' == Object.prototype.toString.apply(a) &&
+ 0 < a.length &&
+ (b = a)
+ return b
+ }
+ oc.eF = [0.09, 0.005, 1.0e-4, 1.0e-5]
+ z.extend(oc.prototype, {
+ initialize: function (a) {
+ this.map = a
+ return s
+ },
+ draw: u(),
+ Mr: function (a) {
+ this.gf.length = 0
+ this.ja = oc.yx(a).slice(0)
+ this.Bh()
+ },
+ ke: function (a) {
+ this.Mr(a)
+ },
+ Bh: function () {
+ if (this.ja) {
+ var a = this
+ a.Vu = new fb()
+ z.mc.Fb(this.ja, function (b) {
+ a.Vu.extend(b)
+ })
+ }
+ },
+ Ue: w('ja'),
+ gn: function (a, b) {
+ b &&
+ this.ja[a] &&
+ ((this.gf.length = 0), (this.ja[a] = new J(b.lng, b.lat)), this.Bh())
+ },
+ setStrokeColor: function (a) {
+ this.z.strokeColor = a
+ },
+ jY: function () {
+ return this.z.strokeColor
+ },
+ Rp: function (a) {
+ 0 < a && (this.z.rc = a)
+ },
+ WL: function () {
+ return this.z.rc
+ },
+ Pp: function (a) {
+ a == l || 1 < a || 0 > a || (this.z.td = a)
+ },
+ kY: function () {
+ return this.z.td
+ },
+ Xt: function (a) {
+ 1 < a || 0 > a || (this.z.tg = a)
+ },
+ HX: function () {
+ return this.z.tg
+ },
+ Qp: function (a) {
+ ;('solid' != a && 'dashed' != a) || (this.z.strokeStyle = a)
+ },
+ VL: function () {
+ return this.z.strokeStyle
+ },
+ setFillColor: function (a) {
+ this.z.fillColor = a || ''
+ },
+ GX: function () {
+ return this.z.fillColor
+ },
+ ve: w('Vu'),
+ remove: function () {
+ this.map && this.map.removeEventListener('onmousemove', this.vv)
+ gb.prototype.remove.call(this)
+ this.gf.length = 0
+ },
+ mf: function () {
+ if (!(2 > this.ja.length)) {
+ this.z.mf = q
+ var a = this
+ K.load(
+ 'poly',
+ function () {
+ a.Ul()
+ },
+ q
+ )
+ }
+ },
+ LW: function () {
+ this.z.mf = t
+ var a = this
+ K.load(
+ 'poly',
+ function () {
+ a.nk()
+ },
+ q
+ )
+ },
+ DX: function () {
+ return this.z.mf
+ },
+ })
+ function pc(a) {
+ gb.call(this)
+ this.V = this.map = s
+ this.z = {
+ width: 0,
+ height: 0,
+ za: new O(0, 0),
+ opacity: 1,
+ background: 'transparent',
+ ey: 1,
+ SM: '#000',
+ hZ: 'solid',
+ point: s,
+ }
+ this.lO(a)
+ this.point = this.z.point
+ }
+ z.lang.ta(pc, gb, 'Division')
+ z.extend(pc.prototype, {
+ Ej: function () {
+ var a = this.z,
+ b = this.content,
+ c = ['')
+ c.push(b)
+ c.push('
')
+ this.V = Ab(this.map.Tf().RE, c.join(''))
+ },
+ initialize: function (a) {
+ this.map = a
+ this.Ej()
+ this.V &&
+ z.M(this.V, H() ? 'touchstart' : 'mousedown', function (a) {
+ ma(a)
+ })
+ return this.V
+ },
+ draw: function () {
+ var a = this.map.Xe(this.z.point)
+ this.z.za = new O(
+ -Math.round(this.z.width / 2) - Math.round(this.z.ey),
+ -Math.round(this.z.height / 2) - Math.round(this.z.ey)
+ )
+ this.V.style.left = a.x + this.z.za.width + 'px'
+ this.V.style.top = a.y + this.z.za.height + 'px'
+ },
+ ga: function () {
+ return this.z.point
+ },
+ L1: function () {
+ return this.map.$b(this.ga())
+ },
+ sa: function (a) {
+ this.z.point = a
+ this.draw()
+ },
+ u_: function (a, b) {
+ this.z.width = Math.round(a)
+ this.z.height = Math.round(b)
+ this.V &&
+ ((this.V.style.width = this.z.width + 'px'),
+ (this.V.style.height = this.z.height + 'px'),
+ this.draw())
+ },
+ })
+ function qc(a, b, c) {
+ a &&
+ b &&
+ ((this.imageUrl = a),
+ (this.size = b),
+ (a = new O(Math.floor(b.width / 2), Math.floor(b.height / 2))),
+ (c = c || {}),
+ (a = c.anchor || a),
+ (b = c.imageOffset || new O(0, 0)),
+ (this.imageSize = c.imageSize),
+ (this.anchor = a),
+ (this.imageOffset = b),
+ (this.infoWindowAnchor = c.infoWindowAnchor || this.anchor),
+ (this.printImageUrl = c.printImageUrl || ''))
+ }
+ z.extend(qc.prototype, {
+ mO: function (a) {
+ a && (this.imageUrl = a)
+ },
+ K_: function (a) {
+ a && (this.printImageUrl = a)
+ },
+ Ce: function (a) {
+ a && (this.size = new O(a.width, a.height))
+ },
+ uc: function (a) {
+ a && (this.anchor = new O(a.width, a.height))
+ },
+ Yt: function (a) {
+ a && (this.imageOffset = new O(a.width, a.height))
+ },
+ z_: function (a) {
+ a && (this.infoWindowAnchor = new O(a.width, a.height))
+ },
+ w_: function (a) {
+ a && (this.imageSize = new O(a.width, a.height))
+ },
+ toString: ca('Icon'),
+ })
+ function rc(a, b) {
+ if (a) {
+ b = b || {}
+ this.style = {
+ anchor: b.anchor || new O(0, 0),
+ fillColor: b.fillColor || '#000',
+ tg: b.fillOpacity || 0,
+ scale: b.scale || 1,
+ rotation: b.rotation || 0,
+ strokeColor: b.strokeColor || '#000',
+ td: b.strokeOpacity || 1,
+ rc: b.strokeWeight,
+ }
+ this.Mb = 'number' === typeof a ? a : 'UserDefined'
+ this.Di = this.style.anchor
+ this.rr = new O(0, 0)
+ this.anchor = s
+ this.vB = a
+ var c = this
+ K.load(
+ 'symbol',
+ function () {
+ c.Mn()
+ },
+ q
+ )
+ }
+ }
+ z.extend(rc.prototype, {
+ setPath: ba('vB'),
+ setAnchor: function (a) {
+ this.Di = this.style.anchor = a
+ },
+ setRotation: function (a) {
+ this.style.rotation = a
+ },
+ setScale: function (a) {
+ this.style.scale = a
+ },
+ setStrokeWeight: function (a) {
+ this.style.rc = a
+ },
+ setStrokeColor: function (a) {
+ a = z.is.AC(a, this.style.td)
+ this.style.strokeColor = a
+ },
+ setStrokeOpacity: function (a) {
+ this.style.td = a
+ },
+ setFillOpacity: function (a) {
+ this.style.tg = a
+ },
+ setFillColor: function (a) {
+ this.style.fillColor = a
+ },
+ })
+ function sc(a, b, c, e) {
+ a &&
+ ((this.Ov = {}),
+ (this.qL = e ? !!e : t),
+ (this.Vc = []),
+ (this.c0 = a instanceof rc ? a : s),
+ (this.WI = b === l ? q : !!(b.indexOf('%') + 1)),
+ (this.Zj = isNaN(parseFloat(b))
+ ? 1
+ : this.WI
+ ? parseFloat(b) / 100
+ : parseFloat(b)),
+ (this.XI = !!(c.indexOf('%') + 1)),
+ (this.repeat =
+ c != l ? (this.XI ? parseFloat(c) / 100 : parseFloat(c)) : 0))
+ }
+ function tc(a, b) {
+ z.lang.Ca.call(this)
+ this.content = a
+ this.map = s
+ b = b || {}
+ this.z = {
+ width: b.width || 0,
+ height: b.height || 0,
+ maxWidth: b.maxWidth || 730,
+ za: b.offset || new O(0, 0),
+ title: b.title || '',
+ SE: b.maxContent || '',
+ dh: b.enableMaximize || t,
+ Ls: b.enableAutoPan === t ? t : q,
+ lD: b.enableCloseOnClick === t ? t : q,
+ margin: b.margin || [10, 10, 40, 10],
+ vC: b.collisions || [
+ [10, 10],
+ [10, 10],
+ [10, 10],
+ [10, 10],
+ ],
+ GY: t,
+ AZ: b.onClosing || ca(q),
+ hL: t,
+ qD: b.enableParano === q ? q : t,
+ message: b.message,
+ sD: b.enableSearchTool === q ? q : t,
+ Ox: b.headerContent || '',
+ mD: b.enableContentScroll || t,
+ }
+ if (
+ 0 != this.z.width &&
+ (220 > this.z.width && (this.z.width = 220), 730 < this.z.width)
+ )
+ this.z.width = 730
+ if (
+ 0 != this.z.height &&
+ (60 > this.z.height && (this.z.height = 60), 650 < this.z.height)
+ )
+ this.z.height = 650
+ if (
+ 0 != this.z.maxWidth &&
+ (220 > this.z.maxWidth && (this.z.maxWidth = 220), 730 < this.z.maxWidth)
+ )
+ this.z.maxWidth = 730
+ this.de = t
+ this.yi = G.qa
+ this.fb = s
+ var c = this
+ K.load('infowindow', function () {
+ c.ib()
+ })
+ }
+ z.lang.ta(tc, z.lang.Ca, 'InfoWindow')
+ z.extend(tc.prototype, {
+ setWidth: function (a) {
+ ;(!a && 0 != a) ||
+ isNaN(a) ||
+ 0 > a ||
+ (0 != a && (220 > a && (a = 220), 730 < a && (a = 730)),
+ (this.z.width = a))
+ },
+ setHeight: function (a) {
+ ;(!a && 0 != a) ||
+ isNaN(a) ||
+ 0 > a ||
+ (0 != a && (60 > a && (a = 60), 650 < a && (a = 650)),
+ (this.z.height = a))
+ },
+ qO: function (a) {
+ ;(!a && 0 != a) ||
+ isNaN(a) ||
+ 0 > a ||
+ (0 != a && (220 > a && (a = 220), 730 < a && (a = 730)),
+ (this.z.maxWidth = a))
+ },
+ Ec: function (a) {
+ this.z.title = a
+ },
+ getTitle: function () {
+ return this.z.title
+ },
+ dd: ba('content'),
+ xk: w('content'),
+ $t: function (a) {
+ this.z.SE = a + ''
+ },
+ je: u(),
+ Ls: function () {
+ this.z.Ls = q
+ },
+ disableAutoPan: function () {
+ this.z.Ls = t
+ },
+ enableCloseOnClick: function () {
+ this.z.lD = q
+ },
+ disableCloseOnClick: function () {
+ this.z.lD = t
+ },
+ dh: function () {
+ this.z.dh = q
+ },
+ kx: function () {
+ this.z.dh = t
+ },
+ show: function () {
+ this.Qa = q
+ },
+ U: function () {
+ this.Qa = t
+ },
+ close: function () {
+ this.U()
+ },
+ hy: function () {
+ this.de = q
+ },
+ restore: function () {
+ this.de = t
+ },
+ jh: function () {
+ return this.Xa()
+ },
+ Xa: ca(t),
+ ga: function () {
+ if (this.fb && this.fb.ga) return this.fb.ga()
+ },
+ Sf: function () {
+ return this.z.za
+ },
+ })
+ Ka.prototype.pc = function (a, b) {
+ if (a instanceof tc && b instanceof J) {
+ var c = this.R
+ c.Nm
+ ? c.Nm.sa(b)
+ : ((c.Nm = new U(b, {
+ icon: new qc(G.qa + 'blank.gif', {
+ width: 1,
+ height: 1,
+ }),
+ offset: new O(0, 0),
+ clickable: t,
+ })),
+ (c.Nm.bS = 1))
+ this.Ga(c.Nm)
+ c.Nm.pc(a)
+ }
+ }
+ Ka.prototype.Yc = function () {
+ var a = this.R.qb || this.R.rl
+ a && a.fb && a.fb.Yc()
+ }
+ gb.prototype.pc = function (a) {
+ this.map &&
+ (this.map.Yc(),
+ (a.Qa = q),
+ (this.map.R.rl = a),
+ (a.fb = this),
+ z.lang.Ca.call(a, a.aa))
+ }
+ gb.prototype.Yc = function () {
+ this.map &&
+ this.map.R.rl &&
+ ((this.map.R.rl.Qa = t), z.lang.hx(this.map.R.rl.aa), (this.map.R.rl = s))
+ }
+ function uc(a, b) {
+ gb.call(this)
+ this.content = a
+ this.V = this.map = s
+ b = b || {}
+ this.z = {
+ width: 0,
+ za: b.offset || new O(0, 0),
+ Wp: {
+ backgroundColor: '#fff',
+ border: '1px solid #f00',
+ padding: '1px',
+ whiteSpace: 'nowrap',
+ font: '12px ' + G.fontFamily,
+ zIndex: '80',
+ MozUserSelect: 'none',
+ },
+ position: b.position || s,
+ gj: b.enableMassClear === t ? t : q,
+ jf: q,
+ }
+ 0 > this.z.width && (this.z.width = 0)
+ Hb(b.enableClicking) && (this.z.jf = b.enableClicking)
+ this.point = this.z.position
+ var c = this
+ K.load('marker', function () {
+ c.ib()
+ })
+ }
+ z.lang.ta(uc, gb, 'Label')
+ z.extend(uc.prototype, {
+ ga: function () {
+ return this.Dv ? this.Dv.ga() : this.point
+ },
+ sa: function (a) {
+ a instanceof J &&
+ !this.Ex() &&
+ (this.point = this.z.position = new J(a.lng, a.lat))
+ },
+ dd: ba('content'),
+ HF: function (a) {
+ 0 <= a && 1 >= a && (this.z.opacity = a)
+ },
+ Ze: function (a) {
+ a instanceof O && (this.z.za = new O(a.width, a.height))
+ },
+ Sf: function () {
+ return this.z.za
+ },
+ Md: function (a) {
+ a = a || {}
+ this.z.Wp = z.extend(this.z.Wp, a)
+ },
+ ti: function (a) {
+ return this.Md(a)
+ },
+ Ec: function (a) {
+ this.z.title = a || ''
+ },
+ getTitle: function () {
+ return this.z.title
+ },
+ pO: function (a) {
+ this.point = (this.Dv = a)
+ ? (this.z.position = a.ga())
+ : (this.z.position = s)
+ },
+ Ex: function () {
+ return this.Dv || s
+ },
+ xk: w('content'),
+ })
+ function vc(a, b) {
+ if (0 !== arguments.length) {
+ gb.apply(this, arguments)
+ b = b || {}
+ this.z = {
+ bb: a,
+ opacity: b.opacity || 1,
+ Gm: b.Gm || '',
+ Bs: b.displayOnMinLevel || 1,
+ gj: b.enableMassClear === t ? t : q,
+ As: b.displayOnMaxLevel || 19,
+ X_: b.stretch || t,
+ }
+ var c = this
+ K.load('groundoverlay', function () {
+ c.ib()
+ })
+ }
+ }
+ z.lang.ta(vc, gb, 'GroundOverlay')
+ z.extend(vc.prototype, {
+ setBounds: function (a) {
+ this.z.bb = a
+ },
+ getBounds: function () {
+ return this.z.bb
+ },
+ setOpacity: function (a) {
+ this.z.opacity = a
+ },
+ getOpacity: function () {
+ return this.z.opacity
+ },
+ setImageURL: function (a) {
+ this.z.Gm = a
+ },
+ getImageURL: function () {
+ return this.z.Gm
+ },
+ setDisplayOnMinLevel: function (a) {
+ this.z.Bs = a
+ },
+ getDisplayOnMinLevel: function () {
+ return this.z.Bs
+ },
+ setDisplayOnMaxLevel: function (a) {
+ this.z.As = a
+ },
+ getDisplayOnMaxLevel: function () {
+ return this.z.As
+ },
+ })
+ var wc = 3,
+ xc = 4
+ function yc() {
+ var a = document.createElement('canvas')
+ return !(!a.getContext || !a.getContext('2d'))
+ }
+ function zc(a, b) {
+ var c = this
+ yc() &&
+ (a === l && aa(Error('\u6ca1\u6709\u4f20\u5165points\u6570\u636e')),
+ '[object Array]' !== Object.prototype.toString.call(a) &&
+ aa(Error('points\u6570\u636e\u4e0d\u662f\u6570\u7ec4')),
+ (b = b || {}),
+ gb.apply(c, arguments),
+ (c.ea = {
+ ja: a,
+ }),
+ (c.z = {
+ shape: b.shape || wc,
+ size: b.size || xc,
+ color: b.color || '#fa937e',
+ gj: q,
+ }),
+ (this.sB = []),
+ (this.pe = []),
+ K.load('pointcollection', function () {
+ for (var a = 0, b; (b = c.sB[a]); a++) c[b.method].apply(c, b.arguments)
+ for (a = 0; (b = c.pe[a]); a++) c[b.method].apply(c, b.arguments)
+ }))
+ }
+ z.lang.ta(zc, gb, 'PointCollection')
+ z.extend(zc.prototype, {
+ initialize: function (a) {
+ this.sB &&
+ this.sB.push({
+ method: 'initialize',
+ arguments: arguments,
+ })
+ },
+ setPoints: function (a) {
+ this.pe &&
+ this.pe.push({
+ method: 'setPoints',
+ arguments: arguments,
+ })
+ },
+ setStyles: function (a) {
+ this.pe &&
+ this.pe.push({
+ method: 'setStyles',
+ arguments: arguments,
+ })
+ },
+ clear: function () {
+ this.pe &&
+ this.pe.push({
+ method: 'clear',
+ arguments: arguments,
+ })
+ },
+ remove: function () {
+ this.pe &&
+ this.pe.push({
+ method: 'remove',
+ arguments: arguments,
+ })
+ },
+ })
+ var Ac = new qc(G.qa + 'marker_red_sprite.png', new O(19, 25), {
+ anchor: new O(10, 25),
+ infoWindowAnchor: new O(10, 0),
+ }),
+ Bc = new qc(G.qa + 'marker_red_sprite.png', new O(20, 11), {
+ anchor: new O(6, 11),
+ imageOffset: new O(-19, -13),
+ })
+ function U(a, b) {
+ gb.call(this)
+ b = b || {}
+ this.point = a
+ this.yq = this.map = s
+ this.z = {
+ za: b.offset || new O(0, 0),
+ rj: b.icon || Ac,
+ Sk: Bc,
+ title: b.title || '',
+ label: s,
+ lK: b.baseZIndex || 0,
+ jf: q,
+ X5: t,
+ EE: t,
+ gj: b.enableMassClear === t ? t : q,
+ Wb: t,
+ UN: b.raiseOnDrag === q ? q : t,
+ aO: t,
+ Hd: b.draggingCursor || G.Hd,
+ rotation: b.rotation || 0,
+ }
+ b.icon && !b.shadow && (this.z.Sk = s)
+ b.enableDragging && (this.z.Wb = b.enableDragging)
+ Hb(b.enableClicking) && (this.z.jf = b.enableClicking)
+ var c = this
+ K.load('marker', function () {
+ c.ib()
+ })
+ }
+ U.Qu = mc.Ck(-90) + 1e6
+ U.AG = U.Qu + 1e6
+ z.lang.ta(U, gb, 'Marker')
+ z.extend(U.prototype, {
+ Rb: function (a) {
+ if (a instanceof qc || a instanceof rc) this.z.rj = a
+ },
+ ap: function () {
+ return this.z.rj
+ },
+ Oy: function (a) {
+ a instanceof qc && (this.z.Sk = a)
+ },
+ getShadow: function () {
+ return this.z.Sk
+ },
+ dn: function (a) {
+ this.z.label = a || s
+ },
+ VD: function () {
+ return this.z.label
+ },
+ Wb: function () {
+ this.z.Wb = q
+ },
+ TC: function () {
+ this.z.Wb = t
+ },
+ ga: w('point'),
+ sa: function (a) {
+ a instanceof J && (this.point = new J(a.lng, a.lat))
+ },
+ ui: function (a, b) {
+ this.z.EE = !!a
+ a && (this.XG = b || 0)
+ },
+ Ec: function (a) {
+ this.z.title = a + ''
+ },
+ getTitle: function () {
+ return this.z.title
+ },
+ Ze: function (a) {
+ a instanceof O && (this.z.za = a)
+ },
+ Sf: function () {
+ return this.z.za
+ },
+ bn: ba('yq'),
+ Op: function (a) {
+ this.z.rotation = a
+ },
+ TL: function () {
+ return this.z.rotation
+ },
+ })
+ function Cc(a) {
+ this.options = a || {}
+ this.GZ = this.options.paneName || 'labelPane'
+ this.zIndex = this.options.zIndex || 0
+ }
+ z.lang.ta(Cc, gb, 'CanvasLayer')
+ Cc.prototype.initialize = function (a) {
+ this.B = a
+ var b = (this.canvas = document.createElement('canvas')),
+ c = this.canvas.getContext('2d')
+ b.style.cssText =
+ 'position:absolute;left:0;top:0;z-index:' + this.zIndex + ';'
+ Dc(this)
+ Ec(c)
+ a.getPanes()[this.GZ].appendChild(b)
+ var e = this
+ a.addEventListener('resize', function () {
+ Dc(e)
+ e.ib()
+ })
+ return this.canvas
+ }
+ function Dc(a) {
+ var b = a.B.cb(),
+ a = a.canvas
+ a.width = b.width
+ a.height = b.height
+ a.style.width = a.width + 'px'
+ a.style.height = a.height + 'px'
+ }
+ function Ec(a) {
+ var b =
+ (window.devicePixelRatio || 1) /
+ (a.CV || a.T5 || a.x4 || a.y4 || a.B4 || a.CV || 1),
+ c = a.canvas.width,
+ e = a.canvas.height
+ a.canvas.width = c * b
+ a.canvas.height = e * b
+ a.canvas.style.width = c + 'px'
+ a.canvas.style.height = e + 'px'
+ a.scale(b, b)
+ }
+ Cc.prototype.draw = function () {
+ var a = this,
+ b = arguments
+ clearTimeout(a.j0)
+ a.j0 = setTimeout(function () {
+ a.ib.apply(a, b)
+ }, 15)
+ }
+ da = Cc.prototype
+ da.ib = function () {
+ var a = this.B
+ this.canvas.style.left = -a.offsetX + 'px'
+ this.canvas.style.top = -a.offsetY + 'px'
+ this.dispatchEvent('draw')
+ this.options.update && this.options.update.apply(this, arguments)
+ }
+ da.La = w('canvas')
+ da.show = function () {
+ this.canvas || this.B.Ga(this)
+ this.canvas.style.display = 'block'
+ }
+ da.U = function () {
+ this.canvas.style.display = 'none'
+ }
+ da.Sp = function (a) {
+ this.canvas.style.zIndex = a
+ }
+ da.Ck = w('zIndex')
+ function Fc(a, b) {
+ oc.call(this, b)
+ b = b || {}
+ this.z.tg = b.fillOpacity ? b.fillOpacity : 0.65
+ this.z.fillColor =
+ '' == b.fillColor ? '' : b.fillColor ? b.fillColor : '#fff'
+ this.ke(a)
+ var c = this
+ K.load('poly', function () {
+ c.ib()
+ })
+ }
+ z.lang.ta(Fc, oc, 'Polygon')
+ z.extend(Fc.prototype, {
+ ke: function (a, b) {
+ this.vo = oc.yx(a).slice(0)
+ var c = oc.yx(a).slice(0)
+ 1 < c.length && c.push(new J(c[0].lng, c[0].lat))
+ oc.prototype.ke.call(this, c, b)
+ },
+ gn: function (a, b) {
+ this.vo[a] &&
+ ((this.vo[a] = new J(b.lng, b.lat)),
+ (this.ja[a] = new J(b.lng, b.lat)),
+ 0 == a &&
+ !this.ja[0].pb(this.ja[this.ja.length - 1]) &&
+ (this.ja[this.ja.length - 1] = new J(b.lng, b.lat)),
+ this.Bh())
+ },
+ Ue: function () {
+ var a = this.vo
+ 0 == a.length && (a = this.ja)
+ return a
+ },
+ })
+ function Gc(a, b) {
+ oc.call(this, b)
+ this.Mr(a)
+ var c = this
+ K.load('poly', function () {
+ c.ib()
+ })
+ }
+ z.lang.ta(Gc, oc, 'Polyline')
+ function Hc(a, b, c) {
+ this.point = a
+ this.wa = Math.abs(b)
+ Fc.call(this, [], c)
+ }
+ Hc.eF = [0.01, 1.0e-4, 1.0e-5, 4.0e-6]
+ z.lang.ta(Hc, Fc, 'Circle')
+ z.extend(Hc.prototype, {
+ initialize: function (a) {
+ this.map = a
+ this.ja = this.qv(this.point, this.wa)
+ this.Bh()
+ return s
+ },
+ Ka: w('point'),
+ Zf: function (a) {
+ a && (this.point = a)
+ },
+ RL: w('wa'),
+ xf: function (a) {
+ this.wa = Math.abs(a)
+ },
+ qv: function (a, b) {
+ if (!a || !b || !this.map) return []
+ for (
+ var c = [],
+ e = b / 6378800,
+ f = (Math.PI / 180) * a.lat,
+ g = (Math.PI / 180) * a.lng,
+ i = 0;
+ 360 > i;
+ i += 9
+ ) {
+ var k = (Math.PI / 180) * i,
+ m = Math.asin(
+ Math.sin(f) * Math.cos(e) + Math.cos(f) * Math.sin(e) * Math.cos(k)
+ ),
+ k = new J(
+ (((g -
+ Math.atan2(
+ Math.sin(k) * Math.sin(e) * Math.cos(f),
+ Math.cos(e) - Math.sin(f) * Math.sin(m)
+ ) +
+ Math.PI) %
+ (2 * Math.PI)) -
+ Math.PI) *
+ (180 / Math.PI),
+ m * (180 / Math.PI)
+ )
+ c.push(k)
+ }
+ e = c[0]
+ c.push(new J(e.lng, e.lat))
+ return c
+ },
+ })
+ var Ic = {}
+ function Jc(a) {
+ this.map = a
+ this.Mm = []
+ this.$f = []
+ this.Fg = []
+ this.OV = 300
+ this.oF = 0
+ this.yg = {}
+ this.Zi = {}
+ this.ph = 0
+ this.yE = q
+ this.MK = {}
+ this.eo = this.Kj(1)
+ this.od = this.Kj(2)
+ this.Bl = this.Kj(3)
+ this.Ki = this.Kj(4)
+ a.platform.appendChild(this.eo)
+ a.platform.appendChild(this.od)
+ a.platform.appendChild(this.Bl)
+ a.platform.appendChild(this.Ki)
+ var b = 256 * Math.pow(2, 15),
+ c = 3 * b,
+ a = S.Eb(new J(180, 0)).lng,
+ c = c - a,
+ b = -3 * b,
+ e = S.Eb(new J(-180, 0)).lng
+ this.yI = a
+ this.zI = e
+ this.ZA = c + (e - b)
+ this.AI = a - e
+ }
+ B.Ye(function (a) {
+ var b = new Jc(a)
+ b.na()
+ a.Va = b
+ })
+ z.extend(Jc.prototype, {
+ na: function () {
+ var a = this,
+ b = a.map
+ b.addEventListener('loadcode', function () {
+ a.up()
+ })
+ b.addEventListener('addtilelayer', function (b) {
+ a.Oe(b)
+ })
+ b.addEventListener('removetilelayer', function (b) {
+ a.Yf(b)
+ })
+ b.addEventListener('setmaptype', function (b) {
+ a.Dg(b)
+ })
+ b.addEventListener('zoomstartcode', function (b) {
+ a.Mc(b)
+ })
+ b.addEventListener('setcustomstyles', function (b) {
+ a.Zt(b.target)
+ a.Wf(q)
+ })
+ b.addEventListener('initindoorlayer', function (b) {
+ a.tE(b)
+ })
+ },
+ up: function () {
+ var a = this
+ if (z.ca.ia)
+ try {
+ document.execCommand('BackgroundImageCache', t, q)
+ } catch (b) {}
+ this.loaded || a.Ux()
+ a.Wf()
+ this.loaded ||
+ ((this.loaded = q),
+ K.load('tile', function () {
+ a.rQ()
+ }))
+ },
+ tE: function (a) {
+ this.zu = new Kc(this)
+ this.zu.Oe(new Lc(this.map, this.zu, a.vf))
+ },
+ Ux: function () {
+ for (var a = this.map.oa().ff, b = 0; b < a.length; b++) {
+ var c = new Mc()
+ z.extend(c, a[b])
+ this.Mm.push(c)
+ c.na(this.map, this.eo)
+ }
+ this.Zt()
+ },
+ Kj: function (a) {
+ var b = L('div')
+ b.style.position = 'absolute'
+ b.style.overflow = 'visible'
+ b.style.left = b.style.top = '0'
+ b.style.zIndex = a
+ return b
+ },
+ Af: function () {
+ this.ph--
+ var a = this
+ this.yE &&
+ (this.map.dispatchEvent(new P('onfirsttileloaded')), (this.yE = t))
+ 0 == this.ph &&
+ (this.Hi && (clearTimeout(this.Hi), (this.Hi = s)),
+ (this.Hi = setTimeout(function () {
+ if (a.ph == 0) {
+ a.map.dispatchEvent(new P('ontilesloaded'))
+ a.yE = q
+ }
+ a.Hi = s
+ }, 80)))
+ },
+ fE: function (a, b) {
+ return 'TILE-' + b.aa + '-' + a[0] + '-' + a[1] + '-' + a[2]
+ },
+ Rx: function (a) {
+ var b = a.Gb
+ b && zb(b) && b.parentNode.removeChild(b)
+ delete this.yg[a.name]
+ a.loaded || (Nc(a), (a.Gb = s), (a.Pm = s))
+ },
+ pj: function (a, b, c) {
+ var e = this.map,
+ f = e.oa(),
+ g = e.Oa,
+ i = e.fc,
+ k = f.dc(g),
+ m = this.DL(),
+ n = m[0],
+ o = m[1],
+ p = m[2],
+ v = m[3],
+ x = m[4],
+ c = 'undefined' != typeof c ? c : 0,
+ f = f.$c(),
+ m = e.aa.replace(/^TANGRAM_/, '')
+ for (this.hc ? (this.hc.length = 0) : (this.hc = []); n < p; n++)
+ for (var y = o; y < v; y++) {
+ var A = n,
+ E = y
+ this.hc.push([A, E])
+ A = m + '_' + b + '_' + A + '_' + E + '_' + g
+ this.MK[A] = A
+ }
+ this.hc.sort(
+ (function (a) {
+ return function (b, c) {
+ return (
+ 0.4 * Math.abs(b[0] - a[0]) +
+ 0.6 * Math.abs(b[1] - a[1]) -
+ (0.4 * Math.abs(c[0] - a[0]) + 0.6 * Math.abs(c[1] - a[1]))
+ )
+ }
+ })([x[0] - 1, x[1] - 1])
+ )
+ i = [Math.round(-i.lng / k), Math.round(i.lat / k)]
+ n = -e.offsetY + e.height / 2
+ a.style.left = -e.offsetX + e.width / 2 + 'px'
+ a.style.top = n + 'px'
+ this.Cc ? (this.Cc.length = 0) : (this.Cc = [])
+ n = 0
+ for (e = a.childNodes.length; n < e; n++)
+ (y = a.childNodes[n]), (y.Sj = t), this.Cc.push(y)
+ if ((n = this.qh)) for (var C in n) delete n[C]
+ else this.qh = {}
+ this.Dc ? (this.Dc.length = 0) : (this.Dc = [])
+ n = 0
+ for (e = this.hc.length; n < e; n++) {
+ C = this.hc[n][0]
+ k = this.hc[n][1]
+ y = 0
+ for (o = this.Cc.length; y < o; y++)
+ if (
+ ((p = this.Cc[y]),
+ p.id == m + '_' + b + '_' + C + '_' + k + '_' + g)
+ ) {
+ p.Sj = q
+ this.qh[p.id] = p
+ break
+ }
+ }
+ n = 0
+ for (e = this.Cc.length; n < e; n++)
+ (p = this.Cc[n]), p.Sj || this.Dc.push(p)
+ this.nn = []
+ y = (f + c) * this.map.K.devicePixelRatio
+ n = 0
+ for (e = this.hc.length; n < e; n++)
+ (C = this.hc[n][0]),
+ (k = this.hc[n][1]),
+ (v = C * f + i[0] - c / 2),
+ (x = (-1 - k) * f + i[1] - c / 2),
+ (A = m + '_' + b + '_' + C + '_' + k + '_' + g),
+ (o = this.qh[A]),
+ (p = s),
+ o
+ ? ((p = o.style),
+ (p.left = v + 'px'),
+ (p.top = x + 'px'),
+ o.yd || this.nn.push([C, k, o]))
+ : (0 < this.Dc.length
+ ? ((o = this.Dc.shift()),
+ o.getContext('2d').clearRect(-c / 2, -c / 2, y, y),
+ (p = o.style))
+ : ((o = document.createElement('canvas')),
+ (p = o.style),
+ (p.position = 'absolute'),
+ (p.width = f + c + 'px'),
+ (p.height = f + c + 'px'),
+ this.Zx() && (p.WebkitTransform = 'scale(1.001)'),
+ o.setAttribute('width', y),
+ o.setAttribute('height', y),
+ a.appendChild(o)),
+ (o.id = A),
+ (p.left = v + 'px'),
+ (p.top = x + 'px'),
+ -1 < A.indexOf('bg') &&
+ ((v = '#F3F1EC'),
+ this.map.K.Eo && (v = this.map.K.Eo),
+ (p.background = v ? v : '')),
+ this.nn.push([C, k, o])),
+ (o.style.visibility = '')
+ n = 0
+ for (e = this.Dc.length; n < e; n++)
+ this.Dc[n].style.visibility = 'hidden'
+ return this.nn
+ },
+ Zx: function () {
+ return /M040/i.test(navigator.userAgent)
+ },
+ DL: function () {
+ var a = this.map,
+ b = a.oa(),
+ c = b.mE(a.Oa),
+ e = a.fc,
+ f = Math.ceil(e.lng / c),
+ g = Math.ceil(e.lat / c),
+ b = b.$c(),
+ c = [f, g, ((e.lng - f * c) / c) * b, ((e.lat - g * c) / c) * b]
+ return [
+ c[0] - Math.ceil((a.width / 2 - c[2]) / b),
+ c[1] - Math.ceil((a.height / 2 - c[3]) / b),
+ c[0] + Math.ceil((a.width / 2 + c[2]) / b),
+ c[1] + Math.ceil((a.height / 2 + c[3]) / b),
+ c,
+ ]
+ },
+ R_: function (a, b, c, e) {
+ var f = this
+ f.u2 = b
+ var g = this.map.oa(),
+ i = f.fE(a, c),
+ k = g.$c(),
+ b = [a[0] * k + b[0], (-1 - a[1]) * k + b[1]],
+ m = this.yg[i]
+ if (this.map.oa() !== Ya && this.map.oa() !== Sa) {
+ var n = this.Lw(a[0], a[2]).offsetX
+ b[0] += n
+ b.Q1 = n
+ }
+ m && m.Gb
+ ? (xb(m.Gb, b),
+ e &&
+ ((e = new Q(a[0], a[1])),
+ (g = this.map.K.ye ? this.map.K.ye.style : 'normal'),
+ (e = c.getTilesUrl(e, a[2], g)),
+ (m.loaded = t),
+ Oc(m, e)),
+ m.loaded
+ ? this.Af()
+ : Pc(m, function () {
+ f.Af()
+ }))
+ : (m = this.Zi[i]) && m.Gb
+ ? (c.Jb.insertBefore(m.Gb, c.Jb.lastChild),
+ (this.yg[i] = m),
+ xb(m.Gb, b),
+ e &&
+ ((e = new Q(a[0], a[1])),
+ (g = this.map.K.ye ? this.map.K.ye.style : 'normal'),
+ (e = c.getTilesUrl(e, a[2], g)),
+ (m.loaded = t),
+ Oc(m, e)),
+ m.loaded
+ ? this.Af()
+ : Pc(m, function () {
+ f.Af()
+ }))
+ : ((m = k * Math.pow(2, g.sm() - a[2])),
+ new J(a[0] * m, a[1] * m),
+ (e = new Q(a[0], a[1])),
+ (g = this.map.K.ye ? this.map.K.ye.style : 'normal'),
+ (e = c.getTilesUrl(e, a[2], g)),
+ (m = new Qc(this, e, b, a, c)),
+ Pc(m, function () {
+ f.Af()
+ }),
+ m.co(),
+ (this.yg[i] = m))
+ },
+ Af: function () {
+ this.ph--
+ var a = this
+ 0 == this.ph &&
+ (this.Hi && (clearTimeout(this.Hi), (this.Hi = s)),
+ (this.Hi = setTimeout(function () {
+ if (a.ph == 0) {
+ a.map.dispatchEvent(new P('ontilesloaded'))
+ if (ua) {
+ if (ra && sa && ta) {
+ var b = bb(),
+ c = a.map.cb()
+ setTimeout(function () {
+ Ra(5030, {
+ load_script_time: sa - ra,
+ load_tiles_time: b - ta,
+ map_width: c.width,
+ map_height: c.height,
+ map_size: c.width * c.height,
+ })
+ }, 1e4)
+ B.Fn('cus.fire', 'time', {
+ z_imgfirstloaded: b - ta,
+ })
+ }
+ ua = t
+ }
+ }
+ a.Hi = s
+ }, 80)))
+ },
+ fE: function (a, b) {
+ return this.map.oa() === Qa
+ ? 'TILE-' +
+ b.aa +
+ '-' +
+ this.map.Rw +
+ '-' +
+ a[0] +
+ '-' +
+ a[1] +
+ '-' +
+ a[2]
+ : 'TILE-' + b.aa + '-' + a[0] + '-' + a[1] + '-' + a[2]
+ },
+ Rx: function (a) {
+ var b = a.Gb
+ b && (Rc(b), zb(b) && b.parentNode.removeChild(b))
+ delete this.yg[a.name]
+ a.loaded || (Rc(b), Nc(a), (a.Gb = s), (a.Pm = s))
+ },
+ Lw: function (a, b) {
+ for (
+ var c = 0, e = 6 * Math.pow(2, b - 3), f = e / 2 - 1, g = -e / 2;
+ a > f;
+
+ )
+ (a -= e), (c -= this.ZA)
+ for (; a < g; ) (a += e), (c += this.ZA)
+ c = Math.round(c / Math.pow(2, 18 - b))
+ return {
+ offsetX: c,
+ hs: a,
+ }
+ },
+ QV: function (a) {
+ for (var b = a.lng; b > this.yI; ) b -= this.AI
+ for (; b < this.zI; ) b += this.AI
+ a.lng = b
+ return a
+ },
+ RV: function (a, b) {
+ for (
+ var c = 256 * Math.pow(2, 18 - b),
+ e = Math.floor(this.yI / c),
+ f = Math.floor(this.zI / c),
+ c = Math.floor(this.ZA / c),
+ g = [],
+ i = 0;
+ i < a.length;
+ i++
+ ) {
+ var k = a[i],
+ m = k[0],
+ k = k[1]
+ if (m >= e) {
+ var m = m + c,
+ n = 'id_' + m + '_' + k + '_' + b
+ a[n] || ((a[n] = q), g.push([m, k]))
+ } else
+ m <= f &&
+ ((m -= c),
+ (n = 'id_' + m + '_' + k + '_' + b),
+ a[n] || ((a[n] = q), g.push([m, k])))
+ }
+ for (i = 0; i < g.length; i++) a.push(g[i])
+ return a
+ },
+ Wf: function (a) {
+ var b = this
+ if (b.map.oa() == Qa)
+ K.load(
+ 'coordtrans',
+ function () {
+ b.map.Ub ||
+ ((b.map.Ub = Qa.wk(b.map.$g)), (b.map.Rw = Qa.BL(b.map.Ub)))
+ b.CI()
+ },
+ q
+ )
+ else {
+ if (a && a) for (var c in this.Zi) delete this.Zi[c]
+ b.CI(a)
+ }
+ },
+ CI: function (a) {
+ var b = this.Mm.concat(this.$f),
+ c = b.length,
+ e = this.map,
+ f = e.oa(),
+ g = e.fc
+ this.map.oa() !== Ya && this.map.oa() !== Sa && (g = this.QV(g))
+ for (var i = 0; i < c; i++) {
+ var k = b[i]
+ if (k.gc && e.Oa < k.gc) break
+ if (k.Jw) {
+ var m = (this.Jb = k.Jb)
+ if (a) {
+ var n = m
+ if (n && n.childNodes)
+ for (var o = n.childNodes.length, p = o - 1; 0 <= p; p--)
+ (o = n.childNodes[p]), n.removeChild(o), (o = s)
+ }
+ if (this.map.Sb()) {
+ this.od.style.display = 'block'
+ m.style.display = 'none'
+ this.map.dispatchEvent(new P('vectorchanged'), {
+ isvector: q,
+ })
+ continue
+ } else
+ (m.style.display = 'block'),
+ (this.od.style.display = 'none'),
+ this.map.dispatchEvent(new P('vectorchanged'), {
+ isvector: t,
+ })
+ }
+ if (!k.pI && !((k.pp && !this.map.Sb()) || (k.GM && this.map.Sb()))) {
+ e = this.map
+ f = e.oa()
+ m = f.wm()
+ o = e.Oa
+ g = e.fc
+ f == Qa && g.pb(new J(0, 0)) && (g = e.fc = m.vj(e.re, e.Ub))
+ var v = f.dc(o),
+ m = f.mE(o),
+ n = Math.ceil(g.lng / m),
+ x = Math.ceil(g.lat / m),
+ y = f.$c(),
+ m = [n, x, ((g.lng - n * m) / m) * y, ((g.lat - x * m) / m) * y],
+ p = m[0] - Math.ceil((e.width / 2 - m[2]) / y),
+ n = m[1] - Math.ceil((e.height / 2 - m[3]) / y),
+ x = m[0] + Math.ceil((e.width / 2 + m[2]) / y),
+ A = 0
+ f === Qa && 15 == e.fa() && (A = 1)
+ f = m[1] + Math.ceil((e.height / 2 + m[3]) / y) + A
+ this.gK = new J(g.lng, g.lat)
+ var E = this.yg,
+ y = -this.gK.lng / v,
+ A = this.gK.lat / v,
+ v = [Math.ceil(y), Math.ceil(A)],
+ g = e.fa(),
+ C
+ for (C in E) {
+ var F = E[C],
+ D = F.info
+ ;(D[2] != g ||
+ (D[2] == g &&
+ (p > D[0] || x <= D[0] || n > D[1] || f <= D[1]))) &&
+ this.Rx(F)
+ }
+ E = -e.offsetX + e.width / 2
+ F = -e.offsetY + e.height / 2
+ k.Jb &&
+ ((k.Jb.style.left = Math.ceil(y + E) - v[0] + 'px'),
+ (k.Jb.style.top = Math.ceil(A + F) - v[1] + 'px'),
+ (k.Jb.style.WebkitTransform = 'translate3d(0,0,0)'))
+ y = []
+ for (e.WB = []; p < x; p++)
+ for (A = n; A < f; A++)
+ y.push([p, A]),
+ e.WB.push({
+ x: p,
+ y: A,
+ })
+ this.map.oa() !== Ya && this.map.oa() !== Sa && (y = this.RV(y, o))
+ y.sort(
+ (function (a) {
+ return function (b, c) {
+ return (
+ 0.4 * Math.abs(b[0] - a[0]) +
+ 0.6 * Math.abs(b[1] - a[1]) -
+ (0.4 * Math.abs(c[0] - a[0]) + 0.6 * Math.abs(c[1] - a[1]))
+ )
+ }
+ })([m[0] - 1, m[1] - 1])
+ )
+ o = y.length
+ this.ph += o
+ for (p = 0; p < o; p++) this.R_([y[p][0], y[p][1], g], v, k, a)
+ }
+ }
+ },
+ Oe: function (a) {
+ var b = this,
+ c = a.target,
+ a = b.map.Sb()
+ if (c instanceof db) a && !c.Im && (c.na(this.map, this.od), (c.Im = q))
+ else if ((c.ag && this.map.Oe(c.ag), c.pp)) {
+ for (a = 0; a < b.Fg.length; a++) if (b.Fg[a] == c) return
+ K.load(
+ 'vector',
+ function () {
+ c.na(b.map, b.od)
+ b.Fg.push(c)
+ },
+ q
+ )
+ } else {
+ for (a = 0; a < b.$f.length; a++) if (b.$f[a] == c) return
+ c.na(this.map, this.Bl)
+ b.$f.push(c)
+ }
+ },
+ Yf: function (a) {
+ var a = a.target,
+ b = this.map.Sb()
+ if (a instanceof db) b && a.Im && (a.remove(), (a.Im = t))
+ else {
+ a.ag && this.map.Yf(a.ag)
+ if (a.pp)
+ for (var b = 0, c = this.Fg.length; b < c; b++)
+ a == this.Fg[b] && this.Fg.splice(b, 1)
+ else {
+ b = 0
+ for (c = this.$f.length; b < c; b++)
+ a == this.$f[b] && this.$f.splice(b, 1)
+ }
+ a.remove()
+ }
+ },
+ Dg: function () {
+ for (var a = this.Mm, b = 0, c = a.length; b < c; b++) a[b].remove()
+ delete this.Jb
+ this.Mm = []
+ this.Zi = this.yg = {}
+ this.Ux()
+ this.Wf()
+ },
+ Mc: function () {
+ var a = this
+ a.vd && z.D.U(a.vd)
+ setTimeout(function () {
+ a.Wf()
+ a.map.dispatchEvent(new P('onzoomend'))
+ }, 10)
+ },
+ L5: u(),
+ Zt: function (a) {
+ var b = this.map.oa()
+ if (!this.map.Sb() && (a ? (this.map.K.$_ = a) : (a = this.map.K.$_), a))
+ for (
+ var c = s,
+ c =
+ '2' == B.xu
+ ? [B.url.proto + B.url.domain.main_domain_cdn.other[0] + '/']
+ : [
+ B.url.proto + B.url.domain.main_domain_cdn.baidu[0] + '/',
+ B.url.proto + B.url.domain.main_domain_cdn.baidu[1] + '/',
+ B.url.proto + B.url.domain.main_domain_cdn.baidu[2] + '/',
+ ],
+ e = 0,
+ f;
+ (f = this.Mm[e]);
+ e++
+ )
+ if (f.M_ == q) {
+ b.j.Yb = 18
+ f.getTilesUrl = function (b, e) {
+ var f = b.x,
+ f = this.map.Va.Lw(f, e).hs,
+ m = b.y,
+ n = Sb('normal'),
+ o = 1
+ this.map.Sx() && (o = 2)
+ n =
+ 'customimage/tile?&x=' +
+ f +
+ '&y=' +
+ m +
+ '&z=' +
+ e +
+ '&udt=' +
+ n +
+ '&scale=' +
+ o +
+ '&ak=' +
+ qa
+ n = a.styleStr
+ ? n + ('&styles=' + encodeURIComponent(a.styleStr))
+ : n + ('&customid=' + a.style)
+ return c[Math.abs(f + m) % c.length] + n
+ }
+ break
+ }
+ },
+ })
+ function Qc(a, b, c, e, f) {
+ this.Pm = a
+ this.position = c
+ this.$u = []
+ this.name = a.fE(e, f)
+ this.info = e
+ this.GJ = f.zt()
+ e = L('img')
+ yb(e)
+ e.uL = t
+ var g = e.style,
+ a = a.map.oa()
+ g.position = 'absolute'
+ g.border = 'none'
+ g.width = a.$c() + 'px'
+ g.height = a.$c() + 'px'
+ g.left = c[0] + 'px'
+ g.top = c[1] + 'px'
+ g.maxWidth = 'none'
+ this.Gb = e
+ this.src = b
+ Sc && (this.Gb.style.opacity = 0)
+ var i = this
+ this.Gb.onload = function () {
+ B.iZ.eR()
+ i.loaded = q
+ if (i.Pm) {
+ var a = i.Pm,
+ b = a.Zi
+ if (!b[i.name]) {
+ a.oF++
+ b[i.name] = i
+ }
+ if (i.Gb && !zb(i.Gb) && f.Jb) {
+ f.Jb.appendChild(i.Gb)
+ if (z.ca.ia <= 6 && z.ca.ia > 0 && i.GJ)
+ i.Gb.style.cssText =
+ i.Gb.style.cssText +
+ (';filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' +
+ i.src +
+ '",sizingMethod=scale);')
+ }
+ var c = a.oF - a.OV,
+ e
+ for (e in b) {
+ if (c <= 0) break
+ if (!a.yg[e]) {
+ b[e].Pm = s
+ var g = b[e].Gb
+ if (g && g.parentNode) {
+ g.parentNode.removeChild(g)
+ Rc(g)
+ }
+ g = s
+ b[e].Gb = s
+ delete b[e]
+ a.oF--
+ c--
+ }
+ }
+ Sc &&
+ new tb({
+ Ic: 20,
+ duration: 200,
+ va: function (a) {
+ if (i.Gb && i.Gb.style) i.Gb.style.opacity = a * 1
+ },
+ finish: function () {
+ i.Gb && i.Gb.style && delete i.Gb.style.opacity
+ },
+ })
+ Nc(i)
+ }
+ }
+ this.Gb.onerror = function () {
+ Nc(i)
+ if (i.Pm) {
+ var a = i.Pm.map.oa()
+ if (a.j.vD) {
+ i.error = q
+ i.Gb.src = a.j.vD
+ i.Gb && !zb(i.Gb) && f.Jb.appendChild(i.Gb)
+ }
+ }
+ }
+ e = s
+ }
+ function Pc(a, b) {
+ a.$u.push(b)
+ }
+ Qc.prototype.co = function () {
+ this.Gb.src =
+ 0 < z.ca.ia && 6 >= z.ca.ia && this.GJ
+ ? G.qa + 'blank.gif'
+ : '' !== this.src && this.Gb.src == this.src
+ ? this.src + '&t = ' + Date.now()
+ : this.src
+ }
+ function Nc(a) {
+ for (var b = 0; b < a.$u.length; b++) a.$u[b]()
+ a.$u.length = 0
+ }
+ function Rc(a) {
+ if (a) {
+ a.onload = a.onerror = s
+ var b = a.attributes,
+ c,
+ e,
+ f
+ if (b) {
+ e = b.length
+ for (c = 0; c < e; c += 1) (f = b[c].name), Xa(a[f]) && (a[f] = s)
+ }
+ if ((b = a.children)) {
+ e = b.length
+ for (c = 0; c < e; c += 1) Rc(a.children[c])
+ }
+ }
+ }
+ function Oc(a, b) {
+ a.src = b
+ a.co()
+ }
+ var Sc = !z.ca.ia || 8 < z.ca.ia
+ function Mc(a) {
+ this.vf = a || {}
+ this.mW = this.vf.copyright || s
+ this.B0 = this.vf.transparentPng || t
+ this.Jw = this.vf.baseLayer || t
+ this.zIndex = this.vf.zIndex || 0
+ this.aa = Mc.SS++
+ }
+ Mc.SS = 0
+ z.lang.ta(Mc, z.lang.Ca, 'TileLayer')
+ z.extend(Mc.prototype, {
+ na: function (a, b) {
+ this.Jw && (this.zIndex = -100)
+ this.map = a
+ if (!this.Jb) {
+ var c = L('div'),
+ e = c.style
+ e.position = 'absolute'
+ e.overflow = 'visible'
+ e.zIndex = this.zIndex
+ e.left = Math.ceil(-a.offsetX + a.width / 2) + 'px'
+ e.top = Math.ceil(-a.offsetY + a.height / 2) + 'px'
+ b.appendChild(c)
+ this.Jb = c
+ }
+ },
+ remove: function () {
+ this.Jb &&
+ this.Jb.parentNode &&
+ ((this.Jb.innerHTML = ''), this.Jb.parentNode.removeChild(this.Jb))
+ delete this.Jb
+ },
+ zt: w('B0'),
+ getTilesUrl: function (a, b) {
+ if (this.map.oa() !== Ya && this.map.oa() !== Sa)
+ var c = this.map.Va.Lw(a.x, b).hs
+ var e = ''
+ this.vf.tileUrlTemplate &&
+ ((e = this.vf.tileUrlTemplate.replace(/\{X\}/, c)),
+ (e = e.replace(/\{Y\}/, a.y)),
+ (e = e.replace(/\{Z\}/, b)))
+ return e
+ },
+ pm: w('mW'),
+ oa: function () {
+ return this.Hb || La
+ },
+ })
+ function Tc(a, b) {
+ Ib(a) ? (b = a || {}) : ((b = b || {}), (b.databoxId = a))
+ this.j = {
+ OK: b.databoxId,
+ eh: b.geotableId,
+ Wm: b.q || '',
+ pu: b.tags || '',
+ filter: b.filter || '',
+ Vy: b.sortby || '',
+ Y_: b.styleId || '',
+ Vl: b.ak || qa,
+ Gw: b.age || 36e5,
+ zIndex: 11,
+ fZ: 'VectorCloudLayer',
+ Fk: b.hotspotName || 'vector_md_' + (1e5 * Math.random()).toFixed(0),
+ uV: 'LBS\u4e91\u9ebb\u70b9\u5c42',
+ }
+ this.pp = q
+ Mc.call(this, this.j)
+ this.GW = B.Wc + 'geosearch/detail/'
+ this.HW = B.Wc + 'geosearch/v2/detail/'
+ this.lp = {}
+ }
+ z.ta(Tc, Mc, 'VectorCloudLayer')
+ function Uc(a) {
+ a = a || {}
+ this.j = z.extend(a, {
+ zIndex: 1,
+ fZ: 'VectorTrafficLayer',
+ uV: '\u77e2\u91cf\u8def\u51b5\u5c42',
+ })
+ this.pp = q
+ Mc.call(this, this.j)
+ this.x0 =
+ B.url.proto +
+ B.url.domain.vector_traffic +
+ '/gvd/?qt=lgvd&styles=pl&layers=tf'
+ this.Db = {
+ 0: [2, 1354709503, 2, 2, 0, [], 0, 0],
+ 1: [2, 1354709503, 3, 2, 0, [], 0, 0],
+ 10: [2, -231722753, 2, 2, 0, [], 0, 0],
+ 11: [2, -231722753, 3, 2, 0, [], 0, 0],
+ 12: [2, -231722753, 4, 2, 0, [], 0, 0],
+ 13: [2, -231722753, 5, 2, 0, [], 0, 0],
+ 14: [2, -231722753, 6, 2, 0, [], 0, 0],
+ 15: [2, -1, 4, 0, 0, [], 0, 0],
+ 16: [2, -1, 5.5, 0, 0, [], 0, 0],
+ 17: [2, -1, 7, 0, 0, [], 0, 0],
+ 18: [2, -1, 8.5, 0, 0, [], 0, 0],
+ 19: [2, -1, 10, 0, 0, [], 0, 0],
+ 2: [2, 1354709503, 4, 2, 0, [], 0, 0],
+ 3: [2, 1354709503, 5, 2, 0, [], 0, 0],
+ 4: [2, 1354709503, 6, 2, 0, [], 0, 0],
+ 5: [2, -6350337, 2, 2, 0, [], 0, 0],
+ 6: [2, -6350337, 3, 2, 0, [], 0, 0],
+ 7: [2, -6350337, 4, 2, 0, [], 0, 0],
+ 8: [2, -6350337, 5, 2, 0, [], 0, 0],
+ 9: [2, -6350337, 6, 2, 0, [], 0, 0],
+ }
+ }
+ z.ta(Uc, Mc, 'VectorTrafficLayer')
+ function db(a) {
+ this.PV = [
+ B.url.proto + B.url.domain.TILE_ONLINE_URLS[1] + '/gvd/?',
+ B.url.proto + B.url.domain.TILE_ONLINE_URLS[2] + '/gvd/?',
+ B.url.proto + B.url.domain.TILE_ONLINE_URLS[3] + '/gvd/?',
+ B.url.proto + B.url.domain.TILE_ONLINE_URLS[4] + '/gvd/?',
+ ]
+ this.j = {
+ pL: t,
+ }
+ for (var b in a) this.j[b] = a[b]
+ this.Th = this.Fh = this.Ya = this.C = this.B = s
+ this.LM = 0
+ var c = this
+ K.load('vector', function () {
+ c.De()
+ })
+ }
+ z.extend(db.prototype, {
+ na: function (a, b) {
+ this.B = a
+ this.C = b
+ },
+ remove: function () {
+ this.C = this.B = s
+ },
+ })
+ function Vc(a) {
+ Mc.call(this, a)
+ this.j = a || {}
+ this.GM = q
+ this.ag = new Uc()
+ this.ag.$y = this
+ if (this.j.predictDate) {
+ if (1 > this.j.predictDate.weekday || 7 < this.j.predictDate.weekday)
+ this.j.predictDate = 1
+ if (0 > this.j.predictDate.hour || 23 < this.j.predictDate.hour)
+ this.j.predictDate.hour = 0
+ }
+ this.VU = B.url.proto + B.url.domain.traffic + '/traffic/'
+ }
+ Vc.prototype = new Mc()
+ Vc.prototype.na = function (a, b) {
+ Mc.prototype.na.call(this, a, b)
+ this.B = a
+ }
+ Vc.prototype.zt = ca(q)
+ Vc.prototype.getTilesUrl = function (a, b) {
+ var c = ''
+ this.j.predictDate
+ ? (c =
+ 'HistoryService?day=' +
+ (this.j.predictDate.weekday - 1) +
+ '&hour=' +
+ this.j.predictDate.hour +
+ '&t=' +
+ new Date().getTime() +
+ '&')
+ : ((c = 'TrafficTileService?time=' + new Date().getTime() + '&'),
+ (c += 'label=web2D&v=016&'))
+ var c = this.VU + c + 'level=' + b + '&x=' + a.x + '&y=' + a.y,
+ e = 1
+ this.B.Sx() && (e = 2)
+ return (c + '&scaler=' + e).replace(/-(\d+)/gi, 'M$1')
+ }
+ var Wc = [
+ B.url.proto + B.url.domain.TILES_YUN_HOST[0] + '/georender/gss',
+ B.url.proto + B.url.domain.TILES_YUN_HOST[1] + '/georender/gss',
+ B.url.proto + B.url.domain.TILES_YUN_HOST[2] + '/georender/gss',
+ B.url.proto + B.url.domain.TILES_YUN_HOST[3] + '/georender/gss',
+ ],
+ Xc =
+ B.url.proto +
+ B.url.domain.main_domain_nocdn.baidu +
+ '/style/poi/rangestyle',
+ Yc = 100
+ function nb(a, b) {
+ Mc.call(this)
+ var c = this
+ this.GM = q
+ var e = t
+ try {
+ document.createElement('canvas').getContext('2d'), (e = q)
+ } catch (f) {
+ e = t
+ }
+ e && ((this.ag = new Tc(a, b)), (this.ag.$y = this))
+ Ib(a) ? (b = a || {}) : ((c.Rn = a), (b = b || {}))
+ b.geotableId && (c.Cf = b.geotableId)
+ b.databoxId && (c.Rn = b.databoxId)
+ e = B.Wc + 'geosearch'
+ c.ub = {
+ ON: b.pointDensity || Yc,
+ BY: e + '/detail/',
+ CY: e + '/v2/detail/',
+ Gw: b.age || 36e5,
+ Wm: b.q || '',
+ i0: 'png',
+ X3: [5, 5, 5, 5],
+ eZ: {
+ backgroundColor: '#FFFFD5',
+ borderColor: '#808080',
+ },
+ Vl: b.ak || qa,
+ pu: b.tags || '',
+ filter: b.filter || '',
+ Vy: b.sortby || '',
+ Fk: b.hotspotName || 'tile_md_' + (1e5 * Math.random()).toFixed(0),
+ dG: q,
+ }
+ K.load('clayer', function () {
+ c.Sd()
+ })
+ }
+ nb.prototype = new Mc()
+ nb.prototype.na = function (a, b) {
+ Mc.prototype.na.call(this, a, b)
+ this.B = a
+ }
+ nb.prototype.getTilesUrl = function (a, b) {
+ var c = a.x,
+ e = a.y,
+ f = this.ub,
+ c =
+ Wc[Math.abs(c + e) % Wc.length] +
+ '/image?grids=' +
+ c +
+ '_' +
+ e +
+ '_' +
+ b +
+ '&q=' +
+ f.Wm +
+ '&tags=' +
+ f.pu +
+ '&filter=' +
+ f.filter +
+ '&sortby=' +
+ f.Vy +
+ '&ak=' +
+ this.ub.Vl +
+ '&age=' +
+ f.Gw +
+ '&page_size=' +
+ f.ON +
+ '&format=' +
+ f.i0
+ f.dG || ((f = (1e5 * Math.random()).toFixed(0)), (c += '&timeStamp=' + f))
+ this.Cf
+ ? (c += '&geotable_id=' + this.Cf)
+ : this.Rn && (c += '&databox_id=' + this.Rn)
+ return c
+ }
+ nb.prototype.enableUseCache = function () {
+ this.ub.dG = q
+ }
+ nb.prototype.disableUseCache = function () {
+ this.ub.dG = t
+ }
+ nb.tU = /^point\(|\)$/gi
+ nb.uU = /\s+/
+ nb.wU = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g
+ var Zc = {}
+ function $c(a, b) {
+ this.kd = a
+ this.uQ = 18
+ this.j = {
+ le: 256,
+ cd: new S(),
+ }
+ z.extend(this.j, b || {})
+ }
+ var ad = [0, 0, 0, 8, 7, 7, 6, 6, 5, 5, 4, 3, 3, 3, 2, 2, 1, 1, 0, 0, 0, 0],
+ bd = [512, 2048, 4096, 32768, 65536, 262144, 1048576, 4194304, 8388608],
+ cd = [
+ 0, 0, 0, 3, 5, 5, 7, 7, 9, 9, 10, 12, 12, 12, 15, 15, 17, 17, 19, 19, 19,
+ 19,
+ ],
+ dd = [
+ 0, 0, 0, 256, 256, 512, 256, 512, 256, 512, 256, 256, 512, 1024, 256, 512,
+ 512, 1024, 512, 1024, 2048, 4096,
+ ]
+ $c.prototype = {
+ getName: w('kd'),
+ $c: function (a) {
+ return 'na' === this.kd ? dd[a] : this.j.le
+ },
+ FL: function (a) {
+ return 'na' === this.kd ? cd[a] : a
+ },
+ wm: function () {
+ return this.j.cd
+ },
+ dc: function (a) {
+ return Math.pow(2, this.uQ - a)
+ },
+ RX: function (a) {
+ return 'na' === this.kd ? bd[ad[a]] : this.dc(a) * this.$c(a)
+ },
+ }
+ P = z.lang.Ju
+ function Lc(a, b, c) {
+ this.B = a
+ this.cV = b
+ this.Cd = b.qc
+ this.ub = {
+ h0: 'na',
+ zIndex: 0,
+ OO: c.tileUrls,
+ AO: q,
+ }
+ this.UB = ''
+ this.qT = {}
+ var c = c.urlOpts || {},
+ e
+ for (e in c)
+ c.hasOwnProperty(e) && (this.UB = this.UB + '&' + e + '=' + c[e])
+ this.GC = []
+ this.JE = 0
+ this.zM = t
+ a = this.ub.h0
+ Zc[a] ? (a = Zc[a]) : ((b = new $c(a, l)), (a = Zc[a] = b))
+ this.Wr = a
+ }
+ window.VectorIndoorTileLayer = 'VectorIndoorTileLayer'
+ da = Lc.prototype
+ da.na = function () {
+ var a = this.B,
+ b = a.Va
+ if (!this.Vh) {
+ var c = b.Kj(this.ub.zIndex)
+ c.style.WebkitTransform = 'translate3d(0px, 0px, 0)'
+ this.Vh = c
+ }
+ b.Ki.appendChild(this.Vh)
+ b.b4 = c
+ if (this.ub.AO) {
+ ed(this)
+ var e = this
+ a.addEventListener('checkvectorclick', function (a) {
+ var b
+ a: {
+ b = a.offsetX
+ var c = a.offsetY,
+ k = e.GC.N4
+ if (k)
+ for (var m = 0; m < k.length; m++)
+ for (var n = k[m], o = 0; o < n.length; o++)
+ if (
+ ((a = n[o]),
+ !a.f4 && a.EY && b > a.WE && b < a.TE && c > a.XE && c < a.UE)
+ ) {
+ b = a.EY
+ b = {
+ type: 9,
+ name: a.name,
+ uid: a.uid,
+ point: {
+ x: b.H2 + b.width / 2,
+ y: b.I2 + 6,
+ },
+ }
+ break a
+ }
+ b = s
+ }
+ b &&
+ ((a = new P('onvectorclick')),
+ (a.Y3 = b),
+ (a.of = 'base'),
+ this.dispatchEvent(a))
+ })
+ }
+ }
+ function ed(a) {
+ var b = a.B,
+ c = b.Va,
+ e = a.Cd,
+ f = b.cb(),
+ g = f.width,
+ f = f.height,
+ i = L('canvas')
+ i.style.cssText =
+ 'position: absolute;left:0;top:0;width:' +
+ g +
+ 'px;height:' +
+ f +
+ 'px;z-index:2;'
+ i.width = g * e
+ i.height = f * e
+ a.by = i
+ a.At = i.getContext('2d')
+ a.At.scale(e, e)
+ a.At.textBaseline = 'top'
+ c.Ki.appendChild(i)
+ b.ZS = i
+ }
+ da.update = function (a, b) {
+ b = b || {}
+ if (this.ub.AO && (b.Tw && this.Tw(), b.S_)) {
+ var c = this.Cd,
+ e = this.B.cb(),
+ f = e.width,
+ e = e.height,
+ g = this.by,
+ i = g.style
+ i.width = f + 'px'
+ i.height = e + 'px'
+ g.width = f * c
+ g.height = e * c
+ this.At.scale(c, c)
+ this.At.textBaseline = 'top'
+ }
+ if (b.M5) {
+ c = this.Vh
+ f = 0
+ for (e = c.childNodes.length; f < e; f++) c.childNodes[f].yd = t
+ }
+ this.NK = a
+ this.up(a)
+ }
+ da.up = function (a) {
+ this.GC = []
+ var b = this.B,
+ c = b.fa(),
+ e = b.cd.vj(b.re),
+ f = this.Wr.dc(c),
+ e = [Math.round(-e.lng / f), Math.round(e.lat / f)],
+ f = this.Wr.$c(c),
+ g = b.aa.replace(/^TANGRAM_/, ''),
+ i = this.Wr.FL(c),
+ b = this.B,
+ k = -b.offsetY + b.height / 2,
+ m = this.Vh
+ m.style.left = -b.offsetX + b.width / 2 + 'px'
+ m.style.top = k + 'px'
+ this.Cc ? (this.Cc.length = 0) : (this.Cc = [])
+ b = 0
+ for (k = m.childNodes.length; b < k; b++) {
+ var n = m.childNodes[b]
+ n.Sj = t
+ this.Cc.push(n)
+ }
+ if ((b = this.qh)) for (var o in b) delete b[o]
+ else this.qh = {}
+ this.Dc ? (this.Dc.length = 0) : (this.Dc = [])
+ b = 0
+ for (k = a.length; b < k; b++) {
+ var n = a[b][0],
+ p = a[b][1]
+ o = 0
+ for (var v = this.Cc.length; o < v; o++) {
+ var x = this.Cc[o]
+ if (x.id === g + '_' + n + '_' + p + '_' + i + '_' + c) {
+ x.Sj = q
+ this.qh[x.id] = x
+ break
+ }
+ }
+ }
+ b = 0
+ for (k = this.Cc.length; b < k; b++)
+ (x = this.Cc[b]),
+ x.Sj || ((x.Lc = s), delete x.Lc, (x.yd = t), this.Dc.push(x))
+ o = []
+ v = f * this.Cd
+ b = 0
+ for (k = a.length; b < k; b++) {
+ var n = a[b][0],
+ p = a[b][1],
+ x = n * f + e[0],
+ y = (-1 - p) * f + e[1],
+ A = g + '_' + n + '_' + p + '_' + i + '_' + c,
+ E = this.qh[A],
+ C = s
+ if (E)
+ (C = E.style),
+ (C.left = x + 'px'),
+ (C.top = y + 'px'),
+ (C.width = f + 'px'),
+ (C.height = f + 'px'),
+ E.yd
+ ? E.MO && E.MO && this.GC.push(E.MO)
+ : ((E.NR = q), (E.Lc = s), delete E.Lc, o.push([n, p, E]))
+ else {
+ if (0 < this.Dc.length) {
+ var E = this.Dc.shift(),
+ F = E.getContext('2d')
+ E.getAttribute('width') !== v && (E._scale = t)
+ E.setAttribute('width', v)
+ E.setAttribute('height', v)
+ C = E.style
+ C.width = f + 'px'
+ C.height = f + 'px'
+ F.clearRect(0, 0, v, v)
+ } else
+ (E = document.createElement('canvas')),
+ (C = E.style),
+ (C.position = 'absolute'),
+ this.ub.backgroundColor && (C.background = this.ub.backgroundColor),
+ (C.width = f + 'px'),
+ (C.height = f + 'px'),
+ E.setAttribute('width', v),
+ E.setAttribute('height', v),
+ m.appendChild(E)
+ E.id = A
+ C.left = x + 'px'
+ C.top = y + 'px'
+ o.push([n, p, E])
+ }
+ E.style.visibility = ''
+ }
+ b = 0
+ for (k = this.Dc.length; b < k; b++) this.Dc[b].style.visibility = 'hidden'
+ if (0 === o.length) fd(this)
+ else {
+ this.JE = o.length
+ this.zM = t
+ c = this.Wr.FL(this.B.fa())
+ for (e = 0; e < a.length; e++) a[e][3] = c
+ for (e = 0; e < o.length; e++)
+ (a = o[e][2]),
+ (f = o[e][0]),
+ (g = o[e][1]),
+ (o[e][3] = c),
+ (a.yd = t),
+ (a.NR = t),
+ gd(this, f, g, c, a)
+ }
+ }
+ function gd(a, b, c, e, f) {
+ var g = b + '_' + c + '_' + e,
+ i = a.qT
+ if (i[g]) {
+ if ('loading' === i[g].status) return
+ } else
+ i[g] = {
+ status: 'init',
+ bO: 0,
+ }
+ var k = a,
+ m = k.B,
+ n = [],
+ n = '0' === B.xu ? k.ub.OO.http : k.ub.OO.https,
+ o = Math.abs(b + c) % n.length,
+ p = 'x=' + b + '&y=' + c + '&z=' + e,
+ v = hd(a.cV),
+ x = v.O0,
+ v = v.C0,
+ y =
+ '_' +
+ (0 > b ? '_' : '') +
+ (0 > c ? '$' : '') +
+ parseInt(Math.abs(b) + '' + Math.abs(c) + '' + e, 10).toString(36),
+ p = p + a.UB + 'v=' + x + '&udt=' + v + '&fn=window.' + y,
+ x = n[o] + '&' + p,
+ x = n[o] + '¶m=' + window.encodeURIComponent(Kb(p))
+ window[y] = function (a) {
+ clearTimeout(i[g].Od)
+ i[g] = s
+ if (a) {
+ m.fa()
+ var n
+ a: {
+ for (n = 0; n < k.NK.length; n++) {
+ var o = k.NK[n]
+ if (o[0] === b && o[1] === c && o[3] === e) {
+ n = q
+ break a
+ }
+ }
+ n = t
+ }
+ n !== t &&
+ ((n = new P('updateindoor')),
+ (n.IndoorCanvas = []),
+ n.IndoorCanvas.push({
+ canvasDom: f,
+ data: a,
+ canvasID: f.id,
+ ratio: k.Cd,
+ }),
+ m.dispatchEvent(n),
+ k.JE--,
+ (0 === k.JE || k.zM === q) && fd(k),
+ delete window[y])
+ }
+ }
+ oa(x)
+ i[g].status = 'loading'
+ k = a
+ i[g].Od = setTimeout(function () {
+ 3 > i[g].bO
+ ? (i[g].bO++, (i[g].status = 'init'), gd(k, b, c, e, f))
+ : (i[g] = s)
+ }, 4e3)
+ }
+ function fd(a) {
+ if (a.by) {
+ var b = a.B
+ a.by.style.left = -b.offsetX + 'px'
+ a.by.style.top = -b.offsetY + 'px'
+ a = new P('updateindoorlabel')
+ a.labelCanvasDom = b.ZS
+ b.dispatchEvent(a)
+ }
+ }
+ da.Tw = function () {
+ var a = this.B.cb(),
+ b = this.Cd
+ this.At.clearRect(0, 0, a.width * b, a.height * b)
+ }
+ da.remove = function () {
+ var a = this.B.Va
+ this.Vh && a.Ki.removeChild(this.Vh)
+ }
+ function Kc(a) {
+ this.B = a.map
+ this.ff = []
+ this.Xr = {}
+ this.qc = this.B.K.devicePixelRatio
+ this.na()
+ }
+ window.VectorIndoorTileMgr = 'VectorIndoorTileMgr'
+ da = Kc.prototype
+ da.na = function () {
+ var a = this,
+ b = this.B
+ b.addEventListener('addtilelayer', function (b) {
+ a.Oe(b.target)
+ })
+ b.addEventListener('removetilelayer', function (b) {
+ a.Yf(b.target)
+ })
+ setTimeout(function () {
+ b.addEventListener('onmoveend', function (b) {
+ 'centerAndZoom' !== b.mv && a.update()
+ })
+ b.addEventListener('onzoomend', function (b) {
+ 'centerAndZoom' !== b.mv &&
+ a.update({
+ Tw: q,
+ })
+ })
+ b.addEventListener('centerandzoom', function () {
+ a.update({
+ Tw: q,
+ })
+ })
+ }, 1)
+ b.addEventListener('indoor_data_refresh', u())
+ b.addEventListener('onresize', function () {
+ a.update({
+ S_: q,
+ })
+ })
+ a.update()
+ }
+ da.Oe = function (a) {
+ if (a instanceof Lc) {
+ for (var b = 0; b < this.ff.length; b++) if (this.ff[b] === a) return
+ this.ff.push(a)
+ a.na()
+ this.B.loaded && this.update()
+ }
+ }
+ da.Yf = function (a) {
+ if (a instanceof Lc) {
+ for (var b = 0; b < this.ff.length; b++)
+ if (this.ff[b] === a) {
+ this.ff.splice(b, 1)
+ break
+ }
+ a.remove()
+ }
+ }
+ da.pj = function (a) {
+ var b = a.getName()
+ if (this.Xr[b]) return this.Xr[b]
+ var c = this.B,
+ e = c.fa(),
+ f = c.fc,
+ g = a.RX(e)
+ c.aa.replace(/^TANGRAM_/, '')
+ var i = Math.ceil(f.lng / g),
+ k = Math.ceil(f.lat / g),
+ a = a.$c(e),
+ m = [i, k, (f.lng / g - i) * a, (f.lat / g - k) * a],
+ e = m[0] - Math.ceil((c.width / 2 - m[2]) / a),
+ f = m[1] - Math.ceil((c.height / 2 - m[3]) / a),
+ g = m[0] + Math.ceil((c.width / 2 + m[2]) / a),
+ c = m[1] + Math.ceil((c.height / 2 + m[3]) / a)
+ this.hc ? (this.hc.length = 0) : (this.hc = [])
+ for (a = e; a < g; a++) for (e = f; e < c; e++) this.hc.push([a, e])
+ this.hc.sort(
+ (function (a) {
+ return function (b, c) {
+ return (
+ 0.4 * Math.abs(b[0] - a[0]) +
+ 0.6 * Math.abs(b[1] - a[1]) -
+ (0.4 * Math.abs(c[0] - a[0]) + 0.6 * Math.abs(c[1] - a[1]))
+ )
+ }
+ })([i, k])
+ )
+ this.Xr[b] = this.hc.slice(0)
+ return this.Xr[b]
+ }
+ function hd(a) {
+ if (a.gG) return a.gG
+ var b = 'undefined' !== typeof TVC ? TVC.K2.z4 : {}
+ a.gG = {
+ O0: b.version ? b.version : '001',
+ C0: b.wn ? b.wn : '20171110',
+ }
+ return a.gG
+ }
+ da.update = function (a) {
+ this.Xr = {}
+ for (var b = 0; b < this.ff.length; b++) {
+ var c = this.ff[b],
+ e = this.pj(c.Wr)
+ c.update(e, a)
+ }
+ }
+ function id(a, b, c) {
+ this.kd = a
+ this.ff = b instanceof Mc ? [b] : b.slice(0)
+ c = c || {}
+ this.j = {
+ k0: c.tips || '',
+ LE: '',
+ gc: c.minZoom || 3,
+ Yb: c.maxZoom || 18,
+ W3: c.minZoom || 3,
+ V3: c.maxZoom || 18,
+ le: 256,
+ UF: c.textColor || 'black',
+ vD: c.errorImageUrl || '',
+ bb: new fb(new J(-21364736, -16023552), new J(23855104, 19431424)),
+ cd: c.projection || new S(),
+ }
+ 1 <= this.ff.length && (this.ff[0].Jw = q)
+ z.extend(this.j, c)
+ }
+ z.extend(id.prototype, {
+ getName: w('kd'),
+ gt: function () {
+ return this.j.k0
+ },
+ B3: function () {
+ return this.j.LE
+ },
+ oY: function () {
+ return this.ff[0]
+ },
+ P3: w('ff'),
+ $c: function () {
+ return this.j.le
+ },
+ bp: function () {
+ return this.j.gc
+ },
+ sm: function () {
+ return this.j.Yb
+ },
+ setMaxZoom: function (a) {
+ this.j.Yb = a
+ },
+ zm: function () {
+ return this.j.UF
+ },
+ wm: function () {
+ return this.j.cd
+ },
+ u3: function () {
+ return this.j.vD
+ },
+ $c: function () {
+ return this.j.le
+ },
+ dc: function (a) {
+ return Math.pow(2, 18 - a)
+ },
+ mE: function (a) {
+ return this.dc(a) * this.$c()
+ },
+ })
+ var jd = [
+ B.url.proto + B.url.domain.TILE_BASE_URLS[0] + '/it/',
+ B.url.proto + B.url.domain.TILE_BASE_URLS[1] + '/it/',
+ B.url.proto + B.url.domain.TILE_BASE_URLS[2] + '/it/',
+ B.url.proto + B.url.domain.TILE_BASE_URLS[3] + '/it/',
+ B.url.proto + B.url.domain.TILE_BASE_URLS[4] + '/it/',
+ ],
+ kd = [
+ B.url.proto + B.url.domain.TILE_ONLINE_URLS[0] + '/tile/',
+ B.url.proto + B.url.domain.TILE_ONLINE_URLS[1] + '/tile/',
+ B.url.proto + B.url.domain.TILE_ONLINE_URLS[2] + '/tile/',
+ B.url.proto + B.url.domain.TILE_ONLINE_URLS[3] + '/tile/',
+ B.url.proto + B.url.domain.TILE_ONLINE_URLS[4] + '/tile/',
+ ],
+ ld = {
+ dark: 'dl',
+ light: 'll',
+ normal: 'pl',
+ },
+ md = new Mc()
+ md.M_ = q
+ md.getTilesUrl = function (a, b, c) {
+ var e = a.x,
+ a = a.y,
+ f = Sb('normal'),
+ g = 1,
+ c = ld[c]
+ //this.map.Sx() && (g = 2); //修改
+ //e = this.map.Va.Lw(e, b).hs;
+ //return (kd[Math.abs(e + a) % kd.length] + "?qt=tile&x=" + (e + "").replace(/-/gi, "M") + "&y=" + (a + "").replace(/-/gi, "M") + "&z=" + b + "&styles=" + c + "&scaler=" + g + (6 == z.ca.ia ? "&color_dep=32&colors=50" : "") + "&udt=" + f).replace(/-(\d+)/gi, "M$1")
+
+ var tdir =
+ bmapcfg.tiles_path ? (bmapcfg.tiles_path + bmapcfg.tiles_dir) : bmapcfg.tiles_dir
+
+ console.log(tdir + '/' + b + '/' + e + '/' + a + bmapcfg.imgext)
+ return tdir + '/' + b + '/' + e + '/' + a + bmapcfg.imgext // 使用本地的瓦片
+ }
+ var La = new id('\u5730\u56fe', md, {
+ tips: '\u663e\u793a\u666e\u901a\u5730\u56fe',
+ maxZoom: 19,
+ }),
+ nd = new Mc()
+ nd.NO = [
+ B.url.proto + B.url.domain.TIlE_PERSPECT_URLS[0] + '/resource/mappic/',
+ B.url.proto + B.url.domain.TIlE_PERSPECT_URLS[1] + '/resource/mappic/',
+ B.url.proto + B.url.domain.TIlE_PERSPECT_URLS[2] + '/resource/mappic/',
+ B.url.proto + B.url.domain.TIlE_PERSPECT_URLS[3] + '/resource/mappic/',
+ ]
+ nd.getTilesUrl = function (a, b) {
+ var c = a.x,
+ e = a.y,
+ f = 256 * Math.pow(2, 20 - b),
+ e = Math.round((9998336 - f * e) / f) - 1
+ /*var tdir = bmapcfg.tiles_hybrid.length > 0 ? bmapcfg.tiles_hybrid : bmapcfg.home + "tiles_hybrid";//修改 使用本地卫星的瓦片
+ tdir = tdir + "/" + b + "/" + c + "/" + e + bmapcfg.imgext; //修改 使用本地卫星的瓦片
+ return tdir;*/
+ return (url =
+ this.NO[Math.abs(c + e) % this.NO.length] +
+ this.map.Ub +
+ '/' +
+ this.map.Rw +
+ '/3/lv' +
+ (21 - b) +
+ '/' +
+ c +
+ ',' +
+ e +
+ '.jpg')
+ }
+ var Qa = new id('\u4e09\u7ef4', nd, {
+ tips: '\u663e\u793a\u4e09\u7ef4\u5730\u56fe',
+ minZoom: 15,
+ maxZoom: 20,
+ textColor: 'white',
+ projection: new hb(),
+ })
+ Qa.dc = function (a) {
+ return Math.pow(2, 20 - a)
+ }
+ Qa.wk = function (a) {
+ if (!a) return ''
+ var b = G.pC,
+ c
+ for (c in b) if (-1 < a.search(c)) return b[c].yy
+ return ''
+ }
+ Qa.BL = function (a) {
+ return {
+ bj: 2,
+ gz: 1,
+ sz: 14,
+ sh: 4,
+ }[a]
+ }
+ var od = new Mc({
+ Jw: q,
+ })
+ od.getTilesUrl = function (a, b) {
+ var c = a.x,
+ e = a.y
+ return (
+ jd[Math.abs(c + e) % jd.length] +
+ 'u=x=' +
+ c +
+ ';y=' +
+ e +
+ ';z=' +
+ b +
+ ';v=009;type=sate&fm=46&udt=' +
+ Sb('satellite')
+ ).replace(/-(\d+)/gi, 'M$1')
+ }
+ var Ya = new id('\u536b\u661f', od, {
+ tips: '\u663e\u793a\u536b\u661f\u5f71\u50cf',
+ minZoom: 1,
+ maxZoom: 19,
+ textColor: 'white',
+ }),
+ pd = new Mc({
+ transparentPng: q,
+ })
+ pd.getTilesUrl = function (a, b) {
+ var c = a.x,
+ e = a.y,
+ f = Sb('satelliteStreet')
+ return (
+ kd[Math.abs(c + e) % kd.length] +
+ '?qt=vtile&x=' +
+ (c + '').replace(/-/gi, 'M') +
+ '&y=' +
+ (e + '').replace(/-/gi, 'M') +
+ '&z=' +
+ b +
+ '&styles=sl' +
+ (6 == z.ca.ia ? '&color_dep=32&colors=50' : '') +
+ '&udt=' +
+ f
+ ).replace(/-(\d+)/gi, 'M$1')
+ }
+ var Sa = new id('\u6df7\u5408', [od, pd], {
+ tips: '\u663e\u793a\u5e26\u6709\u8857\u9053\u7684\u536b\u661f\u5f71\u50cf',
+ labelText: '\u8def\u7f51',
+ minZoom: 1,
+ maxZoom: 19,
+ textColor: 'white',
+ })
+ var qd = 1,
+ V = {}
+ window.c1 = V
+ function W(a, b) {
+ z.lang.Ca.call(this)
+ this.Ad = {}
+ this.fn(a)
+ b = b || {}
+ b.la = b.renderOptions || {}
+ this.j = {
+ la: {
+ Ma: b.la.panel || s,
+ map: b.la.map || s,
+ Zg: b.la.autoViewport || q,
+ Ut: b.la.selectFirstResult,
+ kt: b.la.highlightMode,
+ Wb: b.la.enableDragging || t,
+ },
+ py: b.onSearchComplete || u(),
+ BN: b.onMarkersSet || u(),
+ AN: b.onInfoHtmlSet || u(),
+ DN: b.onResultsHtmlSet || u(),
+ zN: b.onGetBusListComplete || u(),
+ yN: b.onGetBusLineComplete || u(),
+ wN: b.onBusListHtmlSet || u(),
+ vN: b.onBusLineHtmlSet || u(),
+ bF: b.onPolylinesSet || u(),
+ Dp: b.reqFrom || '',
+ }
+ this.j.la.Zg =
+ 'undefined' != typeof b &&
+ 'undefined' != typeof b.renderOptions &&
+ 'undefined' != typeof b.renderOptions.autoViewport
+ ? b.renderOptions.autoViewport
+ : q
+ this.j.la.Ma = z.Fc(this.j.la.Ma)
+ }
+ z.ta(W, z.lang.Ca)
+ z.extend(W.prototype, {
+ getResults: function () {
+ return this.Hc ? this.Ei : this.ha
+ },
+ enableAutoViewport: function () {
+ this.j.la.Zg = q
+ },
+ disableAutoViewport: function () {
+ this.j.la.Zg = t
+ },
+ fn: function (a) {
+ a && (this.Ad.src = a)
+ },
+ JF: function (a) {
+ this.j.py = a || u()
+ },
+ setMarkersSetCallback: function (a) {
+ this.j.BN = a || u()
+ },
+ setPolylinesSetCallback: function (a) {
+ this.j.bF = a || u()
+ },
+ setInfoHtmlSetCallback: function (a) {
+ this.j.AN = a || u()
+ },
+ setResultsHtmlSetCallback: function (a) {
+ this.j.DN = a || u()
+ },
+ xm: w('Me'),
+ })
+ var rd = {
+ KG: B.Wc,
+ ab: function (a, b, c, e, f) {
+ this.SZ(b)
+ var g = (1e5 * Math.random()).toFixed(0)
+ B._rd['_cbk' + g] = function (b) {
+ b.result && b.result.error && 202 === b.result.error
+ ? alert(
+ '\u8be5AK\u56e0\u4e3a\u6076\u610f\u884c\u4e3a\u5df2\u7ecf\u88ab\u7ba1\u7406\u5458\u5c01\u7981\uff01'
+ )
+ : ((c = c || {}), a && a(b, c), delete B._rd['_cbk' + g])
+ }
+ e = e || ''
+ b = c && c.H0 ? Gb(b, encodeURI) : Gb(b, encodeURIComponent)
+ this.KG = c && c.jL ? (c.$N ? c.$N : B.vp) : B.Wc
+ e = this.KG + e + '?' + b + '&ie=utf-8&oue=1&fromproduct=jsapi'
+ f || (e += '&res=api')
+ e = e + ('&callback=BMap._rd._cbk' + g) + ('&ak=' + qa)
+ oa(e)
+ },
+ SZ: function (a) {
+ if (a.qt) {
+ var b = ''
+ switch (a.qt) {
+ case 'bt':
+ b = 'z_qt|bt'
+ break
+ case 'nav':
+ b = 'z_qt|nav'
+ break
+ case 'walk':
+ b = 'z_qt|walk'
+ break
+ case 'bse':
+ b = 'z_qt|bse'
+ break
+ case 'nse':
+ b = 'z_qt|nse'
+ break
+ case 'drag':
+ b = 'z_qt|drag'
+ }
+ '' !== b && B.alog('cus.fire', 'count', b)
+ }
+ },
+ }
+ window.o1 = rd
+ B._rd = {}
+ var ab = {}
+ window.n1 = ab
+ ab.WN = function (a) {
+ a = a.replace(/<\/?[^>]*>/g, '')
+ return (a = a.replace(/[ | ]* /g, ' '))
+ }
+ ab.JZ = function (a) {
+ return a.replace(
+ /([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*),([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*)(,)/g,
+ '$1,$2;'
+ )
+ }
+ ab.KZ = function (a, b) {
+ return a.replace(
+ RegExp(
+ '(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);)(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);){' +
+ b +
+ '}',
+ 'ig'
+ ),
+ '$1'
+ )
+ }
+ var sd = 2,
+ td = 6,
+ ud = 8,
+ vd = 2,
+ wd = 3,
+ xd = 6,
+ yd = 0,
+ zd = 'bt',
+ Ad = 'nav',
+ Bd = 'walk',
+ Cd = 'bl',
+ Dd = 'bsl',
+ Ed = 'ride',
+ Fd = 15,
+ Gd = 18
+ B.I = window.Instance = z.lang.Nc
+ function Hd(a, b, c) {
+ z.lang.Ca.call(this)
+ if (a) {
+ this.Wa = 'object' == typeof a ? a : z.Fc(a)
+ this.page = 1
+ this.Kd = 100
+ this.hK = 'pg'
+ this.Xf = 4
+ this.qK = b
+ this.update = q
+ a = {
+ page: 1,
+ $e: 100,
+ Kd: 100,
+ Xf: 4,
+ hK: 'pg',
+ update: q,
+ }
+ c || (c = a)
+ for (var e in c) 'undefined' != typeof c[e] && (this[e] = c[e])
+ this.va()
+ }
+ }
+ z.extend(Hd.prototype, {
+ va: function () {
+ this.na()
+ },
+ na: function () {
+ this.YV()
+ this.Wa.innerHTML = this.uW()
+ },
+ YV: function () {
+ isNaN(parseInt(this.page)) && (this.page = 1)
+ isNaN(parseInt(this.Kd)) && (this.Kd = 1)
+ 1 > this.page && (this.page = 1)
+ 1 > this.Kd && (this.Kd = 1)
+ this.page > this.Kd && (this.page = this.Kd)
+ this.page = parseInt(this.page)
+ this.Kd = parseInt(this.Kd)
+ },
+ G3: function () {
+ location.search.match(RegExp('[?&]?' + this.hK + '=([^&]*)[&$]?', 'gi'))
+ this.page = RegExp.$1
+ },
+ uW: function () {
+ var a = [],
+ b = this.page - 1,
+ c = this.page + 1
+ a.push('')
+ if (!(1 > b)) {
+ if (this.page >= this.Xf) {
+ var e
+ a.push(
+ '\u9996\u9875'.replace(
+ '{temp1}',
+ "BMap.I('" + this.aa + "').toPage(1);"
+ )
+ )
+ }
+ a.push(
+ '\u4e0a\u4e00\u9875'.replace(
+ '{temp2}',
+ "BMap.I('" + this.aa + "').toPage(" + b + ');'
+ )
+ )
+ }
+ if (this.page < this.Xf)
+ (e =
+ 0 == this.page % this.Xf
+ ? this.page - this.Xf - 1
+ : this.page - (this.page % this.Xf) + 1),
+ (b = e + this.Xf - 1)
+ else {
+ e = Math.floor(this.Xf / 2)
+ var f = (this.Xf % 2) - 1,
+ b = this.Kd > this.page + e ? this.page + e : this.Kd
+ e = this.page - e - f
+ }
+ this.page > this.Kd - this.Xf &&
+ this.page >= this.Xf &&
+ ((e = this.Kd - this.Xf + 1), (b = this.Kd))
+ for (f = e; f <= b; f++)
+ 0 < f &&
+ (f == this.page
+ ? a.push('' + f + '')
+ : 1 <= f &&
+ f <= this.Kd &&
+ ((e =
+ '[' +
+ f +
+ ']'),
+ a.push(
+ e.replace(
+ '{temp3}',
+ "BMap.I('" + this.aa + "').toPage(" + f + ');'
+ )
+ )))
+ c > this.Kd ||
+ a.push(
+ '\u4e0b\u4e00\u9875'.replace(
+ '{temp4}',
+ "BMap.I('" + this.aa + "').toPage(" + c + ');'
+ )
+ )
+ a.push('
')
+ return a.join('')
+ },
+ toPage: function (a) {
+ a = a ? a : 1
+ 'function' == typeof this.qK && (this.qK(a), (this.page = a))
+ this.update && this.va()
+ },
+ })
+ function cb(a, b) {
+ W.call(this, a, b)
+ b = b || {}
+ b.renderOptions = b.renderOptions || {}
+ this.Np(b.pageCapacity)
+ 'undefined' != typeof b.renderOptions.selectFirstResult &&
+ !b.renderOptions.selectFirstResult
+ ? this.UC()
+ : this.oD()
+ this.ya = []
+ this.yf = []
+ this.mb = -1
+ this.Pa = []
+ var c = this
+ K.load(
+ 'local',
+ function () {
+ c.Nz()
+ },
+ q
+ )
+ }
+ z.ta(cb, W, 'LocalSearch')
+ cb.fq = 10
+ cb.k1 = 1
+ cb.En = 100
+ cb.zG = 2e3
+ cb.HG = 1e5
+ z.extend(cb.prototype, {
+ search: function (a, b) {
+ this.Pa.push({
+ method: 'search',
+ arguments: [a, b],
+ })
+ },
+ an: function (a, b, c) {
+ this.Pa.push({
+ method: 'searchInBounds',
+ arguments: [a, b, c],
+ })
+ },
+ Jp: function (a, b, c, e) {
+ this.Pa.push({
+ method: 'searchNearby',
+ arguments: [a, b, c, e],
+ })
+ },
+ Pe: function () {
+ delete this.Ia
+ delete this.Me
+ delete this.ha
+ delete this.ua
+ this.mb = -1
+ this.Ta()
+ this.j.la.Ma && (this.j.la.Ma.innerHTML = '')
+ },
+ Am: u(),
+ oD: function () {
+ this.j.la.Ut = q
+ },
+ UC: function () {
+ this.j.la.Ut = t
+ },
+ Np: function (a) {
+ this.j.Jk =
+ 'number' == typeof a && !isNaN(a)
+ ? 1 > a
+ ? cb.fq
+ : a > cb.En
+ ? cb.fq
+ : a
+ : cb.fq
+ },
+ qf: function () {
+ return this.j.Jk
+ },
+ toString: ca('LocalSearch'),
+ })
+ var Id = cb.prototype
+ T(Id, {
+ clearResults: Id.Pe,
+ setPageCapacity: Id.Np,
+ getPageCapacity: Id.qf,
+ gotoPage: Id.Am,
+ searchNearby: Id.Jp,
+ searchInBounds: Id.an,
+ search: Id.search,
+ enableFirstResultSelection: Id.oD,
+ disableFirstResultSelection: Id.UC,
+ })
+ function Jd(a, b) {
+ W.call(this, a, b)
+ }
+ z.ta(Jd, W, 'BaseRoute')
+ z.extend(Jd.prototype, {
+ Pe: u(),
+ })
+ function Kd(a, b) {
+ W.call(this, a, b)
+ b = b || {}
+ this.bu(b.policy)
+ this.oO(b.intercityPolicy)
+ this.xO(b.transitTypePolicy)
+ this.Np(b.pageCapacity)
+ this.Ab = zd
+ this.mq = qd
+ this.ya = []
+ this.mb = -1
+ this.j.Vn = b.enableTraffic || t
+ this.Pa = []
+ var c = this
+ K.load('route', function () {
+ c.Sd()
+ })
+ }
+ Kd.En = 100
+ Kd.HP = [0, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 1, 1]
+ Kd.IP = [0, 3, 4, 0, 0, 0, 5]
+ z.ta(Kd, Jd, 'TransitRoute')
+ z.extend(Kd.prototype, {
+ bu: function (a) {
+ this.j.ie = 0 <= a && 5 >= a ? a : 0
+ },
+ oO: function (a) {
+ this.j.Hm = 0 <= a && 2 >= a ? a : 0
+ },
+ xO: function (a) {
+ this.j.tn = 0 <= a && 2 >= a ? a : 0
+ },
+ NA: function (a, b) {
+ this.Pa.push({
+ method: '_internalSearch',
+ arguments: [a, b],
+ })
+ },
+ search: function (a, b) {
+ this.Pa.push({
+ method: 'search',
+ arguments: [a, b],
+ })
+ },
+ Np: function (a) {
+ if ('string' === typeof a && ((a = parseInt(a, 10)), isNaN(a))) {
+ this.j.Jk = Kd.En
+ return
+ }
+ this.j.Jk =
+ 'number' !== typeof a
+ ? Kd.En
+ : 1 <= a && a <= Kd.En
+ ? Math.round(a)
+ : Kd.En
+ },
+ toString: ca('TransitRoute'),
+ Z1: function (a) {
+ return a.replace(/\(.*\)/, '')
+ },
+ })
+ var Ld = Kd.prototype
+ T(Ld, {
+ _internalSearch: Ld.NA,
+ })
+ function Md(a, b) {
+ W.call(this, a, b)
+ this.ya = []
+ this.mb = -1
+ this.Pa = []
+ var c = this,
+ e = this.j.la
+ 1 !== e.kt && 2 !== e.kt && (e.kt = 1)
+ this.kv = this.j.la.Wb ? q : t
+ K.load('route', function () {
+ c.Sd()
+ })
+ this.vE && this.vE()
+ }
+ Md.WP =
+ ' \u73af\u5c9b \u65e0\u5c5e\u6027\u9053\u8def \u4e3b\u8def \u9ad8\u901f\u8fde\u63a5\u8def \u4ea4\u53c9\u70b9\u5185\u8def\u6bb5 \u8fde\u63a5\u9053\u8def \u505c\u8f66\u573a\u5185\u90e8\u9053\u8def \u670d\u52a1\u533a\u5185\u90e8\u9053\u8def \u6865 \u6b65\u884c\u8857 \u8f85\u8def \u531d\u9053 \u5168\u5c01\u95ed\u9053\u8def \u672a\u5b9a\u4e49\u4ea4\u901a\u533a\u57df POI\u8fde\u63a5\u8def \u96a7\u9053 \u6b65\u884c\u9053 \u516c\u4ea4\u4e13\u7528\u9053 \u63d0\u524d\u53f3\u8f6c\u9053'.split(
+ ' '
+ )
+ z.ta(Md, Jd, 'DWRoute')
+ z.extend(Md.prototype, {
+ search: function (a, b, c) {
+ this.Pa.push({
+ method: 'search',
+ arguments: [a, b, c],
+ })
+ },
+ })
+ function Nd(a, b) {
+ Md.call(this, a, b)
+ b = b || {}
+ this.j.Vn = b.enableTraffic || t
+ this.bu(b.policy)
+ this.Ab = Ad
+ this.mq = wd
+ }
+ z.ta(Nd, Md, 'DrivingRoute')
+ Nd.prototype.bu = function (a) {
+ this.j.ie = 0 <= a && 5 >= a ? a : 0
+ }
+ function Od(a, b) {
+ Md.call(this, a, b)
+ this.Ab = Bd
+ this.mq = vd
+ this.kv = t
+ }
+ z.ta(Od, Md, 'WalkingRoute')
+ function Pd(a, b) {
+ Md.call(this, a, b)
+ this.Ab = Ed
+ this.mq = xd
+ this.kv = t
+ }
+ z.ta(Pd, Md, 'RidingRoute')
+ function Qd(a, b) {
+ z.lang.Ca.call(this)
+ this.Vf = []
+ this.Kk = []
+ this.j = b
+ this.uj = a
+ this.map = this.j.la.map || s
+ this.hO = this.j.hO
+ this.zb = s
+ this.pk = 0
+ this.SF = ''
+ this.nf = 1
+ this.uD = ''
+ this.Ep = [0, 0, 0, 0, 0, 0, 0]
+ this.XM = []
+ this.os = [1, 1, 1, 1, 1, 1, 1]
+ this.VO = [1, 1, 1, 1, 1, 1, 1]
+ this.Fp = [0, 0, 0, 0, 0, 0, 0]
+ this.Zm = [0, 0, 0, 0, 0, 0, 0]
+ this.Ib = [
+ {
+ m: '',
+ Ed: 0,
+ vn: 0,
+ x: 0,
+ y: 0,
+ pa: -1,
+ },
+ {
+ m: '',
+ Ed: 0,
+ vn: 0,
+ x: 0,
+ y: 0,
+ pa: -1,
+ },
+ {
+ m: '',
+ Ed: 0,
+ vn: 0,
+ x: 0,
+ y: 0,
+ pa: -1,
+ },
+ {
+ m: '',
+ Ed: 0,
+ vn: 0,
+ x: 0,
+ y: 0,
+ pa: -1,
+ },
+ {
+ m: '',
+ Ed: 0,
+ vn: 0,
+ x: 0,
+ y: 0,
+ pa: -1,
+ },
+ {
+ m: '',
+ Ed: 0,
+ vn: 0,
+ x: 0,
+ y: 0,
+ pa: -1,
+ },
+ {
+ m: '',
+ Ed: 0,
+ vn: 0,
+ x: 0,
+ y: 0,
+ pa: -1,
+ },
+ ]
+ this.bi = -1
+ this.ru = []
+ this.aG = []
+ K.load('route', u())
+ }
+ z.lang.ta(Qd, z.lang.Ca, 'RouteAddr')
+ var Rd = navigator.userAgent
+ ;/ipad|iphone|ipod|iph/i.test(Rd)
+ var Sd = /android/i.test(Rd)
+ function Td(a) {
+ this.vf = a || {}
+ }
+ z.extend(Td.prototype, {
+ gO: function (a, b, c) {
+ var e = this
+ K.load('route', function () {
+ e.Sd(a, b, c)
+ })
+ },
+ })
+ function Ud(a) {
+ this.j = {}
+ z.extend(this.j, a)
+ this.Pa = []
+ var b = this
+ K.load('othersearch', function () {
+ b.Sd()
+ })
+ }
+ z.ta(Ud, z.lang.Ca, 'Geocoder')
+ z.extend(Ud.prototype, {
+ vm: function (a, b, c) {
+ this.Pa.push({
+ method: 'getPoint',
+ arguments: [a, b, c],
+ })
+ },
+ rm: function (a, b, c) {
+ this.Pa.push({
+ method: 'getLocation',
+ arguments: [a, b, c],
+ })
+ },
+ toString: ca('Geocoder'),
+ })
+ var Vd = Ud.prototype
+ T(Vd, {
+ getPoint: Vd.vm,
+ getLocation: Vd.rm,
+ })
+ function Geolocation(a) {
+ a = a || {}
+ this.K = {
+ timeout: a.timeout || 1e4,
+ maximumAge: a.maximumAge || 6e5,
+ enableHighAccuracy: a.enableHighAccuracy || t,
+ zi: a.SDKLocation || t,
+ }
+ this.pe = []
+ var b = this
+ K.load('othersearch', function () {
+ for (var a = 0, e; (e = b.pe[a]); a++) b[e.method].apply(b, e.arguments)
+ })
+ }
+ z.extend(Geolocation.prototype, {
+ getCurrentPosition: function (a, b) {
+ this.pe.push({
+ method: 'getCurrentPosition',
+ arguments: arguments,
+ })
+ },
+ getStatus: function () {
+ return sd
+ },
+ enableSDKLocation: function () {
+ H() && (this.K.zi = q)
+ },
+ disableSDKLocation: function () {
+ this.K.zi = t
+ },
+ })
+ function Wd(a) {
+ a = a || {}
+ a.la = a.renderOptions || {}
+ this.j = {
+ la: {
+ map: a.la.map || s,
+ },
+ }
+ this.Pa = []
+ var b = this
+ K.load('othersearch', function () {
+ b.Sd()
+ })
+ }
+ z.ta(Wd, z.lang.Ca, 'LocalCity')
+ z.extend(Wd.prototype, {
+ get: function (a) {
+ this.Pa.push({
+ method: 'get',
+ arguments: [a],
+ })
+ },
+ toString: ca('LocalCity'),
+ })
+ function Xd() {
+ this.Pa = []
+ var a = this
+ K.load('othersearch', function () {
+ a.Sd()
+ })
+ }
+ z.ta(Xd, z.lang.Ca, 'Boundary')
+ z.extend(Xd.prototype, {
+ get: function (a, b) {
+ this.Pa.push({
+ method: 'get',
+ arguments: [a, b],
+ })
+ },
+ toString: ca('Boundary'),
+ })
+ function Yd(a, b) {
+ W.call(this, a, b)
+ this.TP = Cd
+ this.VP = Fd
+ this.SP = Dd
+ this.UP = Gd
+ this.Pa = []
+ var c = this
+ K.load('buslinesearch', function () {
+ c.Sd()
+ })
+ }
+ Yd.zv = G.qa + 'iw_plus.gif'
+ Yd.YS = G.qa + 'iw_minus.gif'
+ Yd.RU = G.qa + 'stop_icon.png'
+ z.ta(Yd, W)
+ z.extend(Yd.prototype, {
+ getBusList: function (a) {
+ this.Pa.push({
+ method: 'getBusList',
+ arguments: [a],
+ })
+ },
+ getBusLine: function (a) {
+ this.Pa.push({
+ method: 'getBusLine',
+ arguments: [a],
+ })
+ },
+ setGetBusListCompleteCallback: function (a) {
+ this.j.zN = a || u()
+ },
+ setGetBusLineCompleteCallback: function (a) {
+ this.j.yN = a || u()
+ },
+ setBusListHtmlSetCallback: function (a) {
+ this.j.wN = a || u()
+ },
+ setBusLineHtmlSetCallback: function (a) {
+ this.j.vN = a || u()
+ },
+ setPolylinesSetCallback: function (a) {
+ this.j.bF = a || u()
+ },
+ })
+ function Zd(a) {
+ W.call(this, a)
+ a = a || {}
+ this.ub = {
+ input: a.input || s,
+ gC: a.baseDom || s,
+ types: a.types || [],
+ py: a.onSearchComplete || u(),
+ }
+ this.Ad.src = a.location || '\u5168\u56fd'
+ this.Wi = ''
+ this.pg = s
+ this.lI = ''
+ this.Mi()
+ Ra(Ha)
+ var b = this
+ K.load('autocomplete', function () {
+ b.Sd()
+ })
+ }
+ z.ta(Zd, W, 'Autocomplete')
+ z.extend(Zd.prototype, {
+ Mi: u(),
+ show: u(),
+ U: u(),
+ KF: function (a) {
+ this.ub.types = a
+ },
+ fn: function (a) {
+ this.Ad.src = a
+ },
+ search: ba('Wi'),
+ Ly: ba('lI'),
+ })
+ var Ta
+ function Oa(a, b) {
+ function c() {
+ f.j.visible
+ ? ('inter' === f.Ke && f.j.haveBreakId && f.j.indoorExitControl === q
+ ? z.D.show(f.GA)
+ : z.D.U(f.GA),
+ this.j.closeControl && this.Bf && this.B && this.B.La() === this.C
+ ? z.D.show(f.Bf)
+ : z.D.U(f.Bf),
+ this.j.forceCloseControl && z.D.show(f.Bf))
+ : (z.D.U(f.Bf), z.D.U(f.GA))
+ }
+ this.C = 'string' == typeof a ? z.$(a) : a
+ this.aa = $d++
+ this.j = {
+ enableScrollWheelZoom: q,
+ panoramaRenderer: 'flash',
+ swfSrc: B.vg('main_domain_nocdn', 'res/swf/') + 'APILoader.swf',
+ visible: q,
+ indoorExitControl: q,
+ indoorFloorControl: t,
+ linksControl: q,
+ clickOnRoad: q,
+ navigationControl: q,
+ closeControl: q,
+ indoorSceneSwitchControl: q,
+ albumsControl: t,
+ albumsControlOptions: {},
+ copyrightControlOptions: {},
+ forceCloseControl: t,
+ haveBreakId: t,
+ }
+ var b = b || {},
+ e
+ for (e in b) this.j[e] = b[e]
+ b.closeControl === q && (this.j.forceCloseControl = q)
+ b.useWebGL === t && Na(t)
+ this.Da = {
+ heading: 0,
+ pitch: 0,
+ }
+ this.bo = []
+ this.Lb = this.Za = s
+ this.dk = this.er()
+ this.ya = []
+ this.Mc = 1
+ this.Ke = this.xT = this.jl = ''
+ this.Je = {}
+ this.Of = s
+ this.Sg = []
+ this.xr = []
+ 'cvsRender' == this.dk || Na()
+ ? ((this.Vj = 90), (this.Xj = -90))
+ : 'cssRender' == this.dk && ((this.Vj = 45), (this.Xj = -45))
+ this.Br = t
+ var f = this
+ this.co = function () {
+ this.dk === 'flashRender'
+ ? K.load(
+ 'panoramaflash',
+ function () {
+ f.Mi()
+ },
+ q
+ )
+ : K.load(
+ 'panorama',
+ function () {
+ f.ib()
+ },
+ q
+ )
+ b.of == 'api' ? Ra(Da) : Ra(Ea)
+ this.co = u()
+ }
+ this.j.jT !== q &&
+ (this.co(), B.Fn('cus.fire', 'count', 'z_loadpanoramacount'))
+ this.aU(this.C)
+ this.addEventListener('id_changed', function () {
+ Ra(Ca, {
+ from: b.of,
+ })
+ })
+ this.mQ()
+ this.addEventListener('indoorexit_options_changed', c)
+ this.addEventListener('scene_type_changed', c)
+ this.addEventListener('onclose_options_changed', c)
+ this.addEventListener('onvisible_changed', c)
+ }
+ var ae = 4,
+ be = 1,
+ $d = 0
+ z.lang.ta(Oa, z.lang.Ca, 'Panorama')
+ z.extend(Oa.prototype, {
+ mQ: function () {
+ var a = this,
+ b = (this.Bf = L('div'))
+ b.className = 'pano_close'
+ b.style.cssText = 'z-index: 1201;display: none'
+ b.title = '\u9000\u51fa\u5168\u666f'
+ b.onclick = function () {
+ a.U()
+ }
+ this.C.appendChild(b)
+ var c = (this.GA = L('a'))
+ c.className = 'pano_pc_indoor_exit'
+ c.style.cssText = 'z-index: 1201;display: none'
+ c.innerHTML =
+ '\u51fa\u53e3'
+ c.title = '\u9000\u51fa\u5ba4\u5185\u666f'
+ c.onclick = function () {
+ a.Vo()
+ }
+ this.C.appendChild(c)
+ window.ActiveXObject &&
+ !document.addEventListener &&
+ ((b.style.backgroundColor = 'rgb(37,37,37)'),
+ (c.style.backgroundColor = 'rgb(37,37,37)'))
+ },
+ Vo: u(),
+ aU: function (a) {
+ var b, c
+ b = a.style
+ c = Va(a).position
+ 'absolute' != c &&
+ 'relative' != c &&
+ ((b.position = 'relative'), (b.zIndex = 0))
+ if ('absolute' === c || 'relative' === c)
+ if (((a = Va(a).zIndex), !a || 'auto' === a)) b.zIndex = 0
+ },
+ OX: w('bo'),
+ Xb: w('Za'),
+ pY: w('jw'),
+ wO: w('jw'),
+ ga: w('Lb'),
+ Ea: w('Da'),
+ fa: w('Mc'),
+ jj: w('jl'),
+ I3: function () {
+ return this.U1 || []
+ },
+ D3: w('xT'),
+ ft: w('Ke'),
+ Ny: function (a) {
+ a !== this.Ke &&
+ ((this.Ke = a), this.dispatchEvent(new P('onscene_type_changed')))
+ },
+ vc: function (a, b, c) {
+ 'object' === typeof b && ((c = b), (b = l))
+ a != this.Za &&
+ ((this.ul = this.Za),
+ (this.vl = this.Lb),
+ (this.Za = a),
+ (this.Ke = b || 'street'),
+ (this.Lb = s),
+ c && c.pov && this.Pc(c.pov))
+ },
+ sa: function (a) {
+ a.pb(this.Lb) ||
+ ((this.ul = this.Za), (this.vl = this.Lb), (this.Lb = a), (this.Za = s))
+ },
+ Pc: function (a) {
+ a &&
+ ((this.Da = a),
+ (a = this.Da.pitch),
+ a > this.Vj ? (a = this.Vj) : a < this.Xj && (a = this.Xj),
+ (this.Br = q),
+ (this.Da.pitch = a))
+ },
+ H_: function (a, b) {
+ this.Xj = 0 <= a ? 0 : a
+ this.Vj = 0 >= b ? 0 : b
+ },
+ Qc: function (a) {
+ a != this.Mc &&
+ (a > ae && (a = ae),
+ a < be && (a = be),
+ a != this.Mc && (this.Mc = a),
+ 'cssRender' === this.dk && this.Pc(this.Da))
+ },
+ GB: function () {
+ if (this.B)
+ for (var a = this.B.Hx(), b = 0; b < a.length; b++)
+ (a[b] instanceof U || a[b] instanceof uc) &&
+ a[b].point &&
+ this.ya.push(a[b])
+ },
+ GF: ba('B'),
+ au: function (a) {
+ this.Of = a || 'none'
+ },
+ Qk: function (a) {
+ for (var b in a) {
+ if ('object' == typeof a[b]) for (var c in a[b]) this.j[b][c] = a[b][c]
+ else this.j[b] = a[b]
+ a.closeControl === q && (this.j.forceCloseControl = q)
+ a.closeControl === t && (this.j.forceCloseControl = t)
+ switch (b) {
+ case 'linksControl':
+ this.dispatchEvent(new P('onlinks_visible_changed'))
+ break
+ case 'clickOnRoad':
+ this.dispatchEvent(new P('onclickonroad_changed'))
+ break
+ case 'navigationControl':
+ this.dispatchEvent(new P('onnavigation_visible_changed'))
+ break
+ case 'indoorSceneSwitchControl':
+ this.dispatchEvent(new P('onindoor_default_switch_mode_changed'))
+ break
+ case 'albumsControl':
+ this.dispatchEvent(new P('onalbums_visible_changed'))
+ break
+ case 'albumsControlOptions':
+ this.dispatchEvent(new P('onalbums_options_changed'))
+ break
+ case 'copyrightControlOptions':
+ this.dispatchEvent(new P('oncopyright_options_changed'))
+ break
+ case 'closeControl':
+ this.dispatchEvent(new P('onclose_options_changed'))
+ break
+ case 'indoorExitControl':
+ this.dispatchEvent(new P('onindoorexit_options_changed'))
+ break
+ case 'indoorFloorControl':
+ this.dispatchEvent(new P('onindoorfloor_options_changed'))
+ }
+ }
+ },
+ Ek: function () {
+ this.Dl.style.visibility = 'hidden'
+ },
+ Ry: function () {
+ this.Dl.style.visibility = 'visible'
+ },
+ cX: function () {
+ this.j.enableScrollWheelZoom = q
+ },
+ NW: function () {
+ this.j.enableScrollWheelZoom = t
+ },
+ show: function () {
+ this.j.visible = q
+ },
+ U: function () {
+ this.j.visible = t
+ },
+ er: function () {
+ return Ua() && !H() && 'javascript' != this.j.panoramaRenderer
+ ? 'flashRender'
+ : !H() && Ob()
+ ? 'cvsRender'
+ : 'cssRender'
+ },
+ Ga: function (a) {
+ this.Je[a.ld] = a
+ },
+ Qb: function (a) {
+ delete this.Je[a]
+ },
+ kE: function () {
+ return this.j.visible
+ },
+ fh: function () {
+ return new O(this.C.clientWidth, this.C.clientHeight)
+ },
+ La: w('C'),
+ yL: function () {
+ var a = B.vg('baidumap', '?'),
+ b = this.Xb()
+ if (b) {
+ var b = {
+ panotype: this.ft(),
+ heading: this.Ea().heading,
+ pitch: this.Ea().pitch,
+ pid: b,
+ panoid: b,
+ from: 'api',
+ },
+ c
+ for (c in b) a += c + '=' + b[c] + '&'
+ }
+ return a.slice(0, -1)
+ },
+ Px: function () {
+ this.Qk({
+ copyrightControlOptions: {
+ logoVisible: t,
+ },
+ })
+ },
+ NF: function () {
+ this.Qk({
+ copyrightControlOptions: {
+ logoVisible: q,
+ },
+ })
+ },
+ aC: function (a) {
+ function b(a, b) {
+ return function () {
+ a.xr.push({
+ iN: b,
+ hN: arguments,
+ })
+ }
+ }
+ for (
+ var c = a.getPanoMethodList(), e = '', f = 0, g = c.length;
+ f < g;
+ f++
+ )
+ (e = c[f]), (this[e] = b(this, e))
+ this.Sg.push(a)
+ },
+ rF: function (a) {
+ for (var b = this.Sg.length; b--; )
+ this.Sg[b] === a && this.Sg.splice(b, 1)
+ },
+ FF: u(),
+ })
+ var ce = Oa.prototype
+ T(ce, {
+ setId: ce.vc,
+ setPosition: ce.sa,
+ setPov: ce.Pc,
+ setZoom: ce.Qc,
+ setOptions: ce.Qk,
+ getId: ce.Xb,
+ getPosition: ce.ga,
+ getPov: ce.Ea,
+ getZoom: ce.fa,
+ getLinks: ce.OX,
+ getBaiduMapUrl: ce.yL,
+ hideMapLogo: ce.Px,
+ showMapLogo: ce.NF,
+ enableDoubleClickZoom: ce.W2,
+ disableDoubleClickZoom: ce.J2,
+ enableScrollWheelZoom: ce.cX,
+ disableScrollWheelZoom: ce.NW,
+ show: ce.show,
+ hide: ce.U,
+ addPlugin: ce.aC,
+ removePlugin: ce.rF,
+ getVisible: ce.kE,
+ addOverlay: ce.Ga,
+ removeOverlay: ce.Qb,
+ getSceneType: ce.ft,
+ setPanoramaPOIType: ce.au,
+ exitInter: ce.Vo,
+ setInteractiveState: ce.FF,
+ })
+ T(window, {
+ BMAP_PANORAMA_POI_HOTEL: 'hotel',
+ BMAP_PANORAMA_POI_CATERING: 'catering',
+ BMAP_PANORAMA_POI_MOVIE: 'movie',
+ BMAP_PANORAMA_POI_TRANSIT: 'transit',
+ BMAP_PANORAMA_POI_INDOOR_SCENE: 'indoor_scene',
+ BMAP_PANORAMA_POI_NONE: 'none',
+ BMAP_PANORAMA_INDOOR_SCENE: 'inter',
+ BMAP_PANORAMA_STREET_SCENE: 'street',
+ })
+ function de() {
+ z.lang.Ca.call(this)
+ this.ld = 'PanoramaOverlay_' + this.aa
+ this.P = s
+ this.Qa = q
+ }
+ z.lang.ta(de, z.lang.Ca, 'PanoramaOverlayBase')
+ z.extend(de.prototype, {
+ E3: w('ld'),
+ na: function () {
+ aa('initialize\u65b9\u6cd5\u672a\u5b9e\u73b0')
+ },
+ remove: function () {
+ aa('remove\u65b9\u6cd5\u672a\u5b9e\u73b0')
+ },
+ Nf: function () {
+ aa('_setOverlayProperty\u65b9\u6cd5\u672a\u5b9e\u73b0')
+ },
+ })
+ function ee(a, b) {
+ de.call(this)
+ var c = {
+ position: s,
+ altitude: 2,
+ displayDistance: q,
+ },
+ b = b || {},
+ e
+ for (e in b) c[e] = b[e]
+ this.Lb = c.position
+ this.Ij = a
+ this.xq = c.altitude
+ this.zR = c.displayDistance
+ this.UF = c.color
+ this.kM = c.hoverColor
+ this.backgroundColor = c.backgroundColor
+ this.jK = c.backgroundHoverColor
+ this.borderColor = c.borderColor
+ this.oK = c.borderHoverColor
+ this.fontSize = c.fontSize
+ this.padding = c.padding
+ this.pE = c.imageUrl
+ this.size = c.size
+ this.xe = c.image
+ this.width = c.width
+ this.height = c.height
+ this.HY = c.imageData
+ this.borderWidth = c.borderWidth
+ }
+ z.lang.ta(ee, de, 'PanoramaLabel')
+ z.extend(ee.prototype, {
+ j3: w('borderWidth'),
+ getImageData: w('HY'),
+ zm: w('UF'),
+ y3: w('kM'),
+ f3: w('backgroundColor'),
+ g3: w('jK'),
+ h3: w('borderColor'),
+ i3: w('oK'),
+ w3: w('fontSize'),
+ F3: w('padding'),
+ z3: w('pE'),
+ cb: w('size'),
+ zx: w('xe'),
+ sa: function (a) {
+ this.Lb = a
+ this.Nf('position', a)
+ },
+ ga: w('Lb'),
+ dd: function (a) {
+ this.Ij = a
+ this.Nf('content', a)
+ },
+ xk: w('Ij'),
+ AF: function (a) {
+ this.xq = a
+ this.Nf('altitude', a)
+ },
+ Yo: w('xq'),
+ Ea: function () {
+ var a = this.ga(),
+ b = s,
+ c = s
+ this.P && (c = this.P.ga())
+ if (a && c)
+ if (a.pb(c)) b = this.P.Ea()
+ else {
+ b = {}
+ b.heading = fe(a.lng - c.lng, a.lat - c.lat) || 0
+ var a = b,
+ c = this.Yo(),
+ e = this.Xn()
+ a.pitch = Math.round(180 * (Math.atan(c / e) / Math.PI)) || 0
+ }
+ return b
+ },
+ Xn: function () {
+ var a = 0,
+ b,
+ c
+ this.P &&
+ ((b = this.P.ga()), (c = this.ga()) && !c.pb(b) && (a = S.$o(b, c)))
+ return a
+ },
+ U: function () {
+ aa('hide\u65b9\u6cd5\u672a\u5b9e\u73b0')
+ },
+ show: function () {
+ aa('show\u65b9\u6cd5\u672a\u5b9e\u73b0')
+ },
+ Nf: u(),
+ })
+ var ge = ee.prototype
+ T(ge, {
+ setPosition: ge.sa,
+ getPosition: ge.ga,
+ setContent: ge.dd,
+ getContent: ge.xk,
+ setAltitude: ge.AF,
+ getAltitude: ge.Yo,
+ getPov: ge.Ea,
+ show: ge.show,
+ hide: ge.U,
+ })
+ function he(a, b) {
+ de.call(this)
+ var c = {
+ icon: '',
+ title: '',
+ panoInfo: s,
+ altitude: 2,
+ },
+ b = b || {},
+ e
+ for (e in b) c[e] = b[e]
+ this.Lb = a
+ this.gI = c.icon
+ this.DJ = c.title
+ this.xq = c.altitude
+ this.OT = c.panoInfo
+ this.Da = {
+ heading: 0,
+ pitch: 0,
+ }
+ }
+ z.lang.ta(he, de, 'PanoramaMarker')
+ z.extend(he.prototype, {
+ sa: function (a) {
+ this.Lb = a
+ this.Nf('position', a)
+ },
+ ga: w('Lb'),
+ Ec: function (a) {
+ this.DJ = a
+ this.Nf('title', a)
+ },
+ gp: w('DJ'),
+ Rb: function (a) {
+ this.gI = icon
+ this.Nf('icon', a)
+ },
+ ap: w('gI'),
+ AF: function (a) {
+ this.xq = a
+ this.Nf('altitude', a)
+ },
+ Yo: w('xq'),
+ $D: w('OT'),
+ Ea: function () {
+ var a = s
+ if (this.P) {
+ var a = this.P.ga(),
+ b = this.ga(),
+ a = fe(b.lng - a.lng, b.lat - a.lat)
+ isNaN(a) && (a = 0)
+ a = {
+ heading: a,
+ pitch: 0,
+ }
+ } else a = this.Da
+ return a
+ },
+ Nf: u(),
+ })
+ var ie = he.prototype
+ T(ie, {
+ setPosition: ie.sa,
+ getPosition: ie.ga,
+ setTitle: ie.Ec,
+ getTitle: ie.gp,
+ setAltitude: ie.AF,
+ getAltitude: ie.Yo,
+ getPanoInfo: ie.$D,
+ getIcon: ie.ap,
+ setIcon: ie.Rb,
+ getPov: ie.Ea,
+ })
+ function fe(a, b) {
+ var c = 0
+ if (0 !== a && 0 !== b) {
+ var c = 180 * (Math.atan(a / b) / Math.PI),
+ e = 0
+ 0 < a && 0 > b && (e = 90)
+ 0 > a && 0 > b && (e = 180)
+ 0 > a && 0 < b && (e = 270)
+ c = ((c + 90) % 90) + e
+ } else 0 === a ? (c = 0 > b ? 180 : 0) : 0 === b && (c = 0 < a ? 90 : 270)
+ return Math.round(c)
+ }
+ function Na(a) {
+ if ('boolean' === typeof je) return je
+ if (a === t || !window.WebGLRenderingContext) return (je = t)
+ if (z.platform.Jm) {
+ a = 0
+ try {
+ a = navigator.userAgent.split('Android ')[1].charAt(0)
+ } catch (b) {}
+ if (5 > a) return (je = t)
+ }
+ var a = document.createElement('canvas'),
+ c = s
+ try {
+ c = a.getContext('webgl')
+ } catch (e) {
+ je = t
+ }
+ return (je = c === s ? t : q)
+ }
+ var je
+ function ke() {
+ if ('boolean' === typeof le) return le
+ le = q
+ if (z.platform.zE) return q
+ var a = navigator.userAgent
+ return -1 < a.indexOf('Chrome') || -1 < a.indexOf('SAMSUNG-GT-I9508')
+ ? q
+ : (le = t)
+ }
+ var le
+ function ec(a, b) {
+ this.P = a || s
+ var c = this
+ c.P && c.ba()
+ K.load('pservice', function () {
+ c.SQ()
+ })
+ 'api' == (b || {}).of ? Ra(Fa) : Ra(Ga)
+ this.xd = {
+ getPanoramaById: [],
+ getPanoramaByLocation: [],
+ getVisiblePOIs: [],
+ getRecommendPanosById: [],
+ getPanoramaVersions: [],
+ checkPanoSupportByCityCode: [],
+ getPanoramaByPOIId: [],
+ getCopyrightProviders: [],
+ }
+ }
+ B.Tm(function (a) {
+ 'flashRender' !== a.er() &&
+ new ec(a, {
+ of: 'api',
+ })
+ })
+ z.extend(ec.prototype, {
+ ba: function () {
+ function a(a) {
+ if (a) {
+ if (a.id != b.jw) {
+ b.wO(a.id)
+ b.ea = a
+ ke() || b.dispatchEvent(new P('onthumbnail_complete'))
+ b.Za != s && (b.vl = b._position)
+ for (var c in a)
+ if (a.hasOwnProperty(c))
+ switch (((b['_' + c] = a[c]), c)) {
+ case 'position':
+ b.Lb = a[c]
+ break
+ case 'id':
+ b.Za = a[c]
+ break
+ case 'links':
+ b.bo = a[c]
+ break
+ case 'zoom':
+ b.Mc = a[c]
+ }
+ if (b.vl) {
+ var g = b.vl,
+ i = b._position
+ c = g.lat
+ var k = i.lat,
+ m = Pb(k - c),
+ g = Pb(i.lng - g.lng)
+ c =
+ Math.sin(m / 2) * Math.sin(m / 2) +
+ Math.cos(Pb(c)) *
+ Math.cos(Pb(k)) *
+ Math.sin(g / 2) *
+ Math.sin(g / 2)
+ b.wH = 6371e3 * 2 * Math.atan2(Math.sqrt(c), Math.sqrt(1 - c))
+ }
+ c = new P('ondataload')
+ c.data = a
+ b.dispatchEvent(c)
+ b.dispatchEvent(new P('onposition_changed'))
+ b.dispatchEvent(new P('onlinks_changed'))
+ b.dispatchEvent(new P('oncopyright_changed'), {
+ copyright: a.copyright,
+ })
+ a.bm && b.j.closeControl ? z.D.show(b.WR) : z.D.U(b.WR)
+ }
+ } else
+ (b.Za = b.ul), (b.Lb = b.vl), b.dispatchEvent(new P('onnoresult'))
+ }
+ var b = this.P,
+ c = this
+ b.addEventListener('id_changed', function () {
+ c.ep(b.Xb(), a)
+ })
+ b.addEventListener('iid_changed', function () {
+ c.Tg(ec.el + 'qt=idata&iid=' + b.CA + '&fn=', function (b) {
+ if (b && b.result && 0 == b.result.error) {
+ var b = b.content[0].interinfo,
+ f = {}
+ f.bm = b.BreakID
+ for (var g = b.Defaultfloor, i = s, k = 0; k < b.Floors.length; k++)
+ if (b.Floors[k].Floor == g) {
+ i = b.Floors[k]
+ break
+ }
+ f.id = i.StartID || i.Points[0].PID
+ c.ep(f.id, a, f)
+ }
+ })
+ })
+ b.addEventListener('position_changed_inner', function () {
+ c.kj(b.ga(), a)
+ })
+ },
+ ep: function (a, b) {
+ this.xd.getPanoramaById.push(arguments)
+ },
+ kj: function (a, b, c) {
+ this.xd.getPanoramaByLocation.push(arguments)
+ },
+ lE: function (a, b, c, e) {
+ this.xd.getVisiblePOIs.push(arguments)
+ },
+ Kx: function (a, b) {
+ this.xd.getRecommendPanosById.push(arguments)
+ },
+ Jx: function (a) {
+ this.xd.getPanoramaVersions.push(arguments)
+ },
+ nC: function (a, b) {
+ this.xd.checkPanoSupportByCityCode.push(arguments)
+ },
+ Ix: function (a, b) {
+ this.xd.getPanoramaByPOIId.push(arguments)
+ },
+ CL: function (a) {
+ this.xd.getCopyrightProviders.push(arguments)
+ },
+ })
+ var ne = ec.prototype
+ T(ne, {
+ getPanoramaById: ne.ep,
+ getPanoramaByLocation: ne.kj,
+ getPanoramaByPOIId: ne.Ix,
+ })
+ function dc(a) {
+ Mc.call(this)
+ 'api' == (a || {}).of ? Ra(Aa) : Ra(Ba)
+ }
+ dc.OG = B.vg('pano', 'tile/')
+ dc.prototype = new Mc()
+ dc.prototype.getTilesUrl = function (a, b) {
+ var c =
+ dc.OG[(a.x + a.y) % dc.OG.length] +
+ '?udt=20150114&qt=tile&styles=pl&x=' +
+ a.x +
+ '&y=' +
+ a.y +
+ '&z=' +
+ b
+ z.ca.ia && 6 >= z.ca.ia && (c += '&color_dep=32')
+ return c
+ }
+ dc.prototype.zt = ca(q)
+ oe.Wd = new S()
+ function oe() {}
+ z.extend(oe, {
+ OW: function (a, b, c) {
+ c = z.lang.Nc(c)
+ b = {
+ data: b,
+ }
+ 'position_changed' == a &&
+ (b.data = oe.Wd.xj(new Q(b.data.mercatorX, b.data.mercatorY)))
+ c.dispatchEvent(new P('on' + a), b)
+ },
+ })
+ var pe = oe
+ T(pe, {
+ dispatchFlashEvent: pe.OW,
+ })
+ var qe = {
+ KP: 50,
+ }
+ qe.Ou = B.vg('pano')[0]
+ qe.Mu = {
+ width: 220,
+ height: 60,
+ }
+ z.extend(qe, {
+ tM: function (a, b, c, e) {
+ if (!b || !c || !c.lngLat || !c.panoInstance) e()
+ else {
+ this.jo === l &&
+ (this.jo = new ec(s, {
+ of: 'api',
+ }))
+ var f = this
+ this.jo.nC(b, function (b) {
+ b
+ ? f.jo.kj(c.lngLat, qe.KP, function (b) {
+ if (b && b.id) {
+ var g = b.id,
+ m = b.rh,
+ b = b.th,
+ n = ec.Wd.kh(c.lngLat),
+ o = f.AS(n, {
+ x: m,
+ y: b,
+ }),
+ m = f.PL(g, o, 0, qe.Mu.width, qe.Mu.height)
+ a.content = f.BS(a.content, m, c.titleTip, c.beforeDomId)
+ a.addEventListener('open', function () {
+ ia.M(z.Fc('infoWndPano'), 'click', function () {
+ c.panoInstance.vc(g)
+ c.panoInstance.show()
+ c.panoInstance.Pc({
+ heading: o,
+ pitch: 0,
+ })
+ })
+ })
+ }
+ e()
+ })
+ : e()
+ })
+ }
+ },
+ BS: function (a, b, c, e) {
+ var c = c || '',
+ f
+ !e || !a.split(e)[0]
+ ? ((e = a), (a = ''))
+ : ((e = a.split(e)[0]),
+ (f = e.lastIndexOf('<')),
+ (e = a.substring(0, f)),
+ (a = a.substring(f)))
+ f = []
+ var g = qe.Mu.width,
+ i = qe.Mu.height
+ f.push(e)
+ f.push(
+ "')
+ f.push(a)
+ return f.join('')
+ },
+ AS: function (a, b) {
+ var c = 90 - (180 * Math.atan2(a.y - b.y, a.x - b.x)) / Math.PI
+ 0 > c && (c += 360)
+ return c
+ },
+ PL: function (a, b, c, e, f) {
+ var g = {
+ panoId: a,
+ panoHeading: b || 0,
+ panoPitch: c || 0,
+ width: e,
+ height: f,
+ }
+ return (
+ qe.Ou +
+ '?qt=pr3d&fovy=75&quality=80&panoid={panoId}&heading={panoHeading}&pitch={panoPitch}&width={width}&height={height}'
+ ).replace(/\{(.*?)\}/g, function (a, b) {
+ return g[b]
+ })
+ },
+ })
+ var te = document,
+ ue = Math,
+ ve = te.createElement('div').style,
+ we
+ a: {
+ for (
+ var xe = ['t', 'webkitT', 'MozT', 'msT', 'OT'],
+ ye,
+ ze = 0,
+ Ae = xe.length;
+ ze < Ae;
+ ze++
+ )
+ if (((ye = xe[ze] + 'ransform'), ye in ve)) {
+ we = xe[ze].substr(0, xe[ze].length - 1)
+ break a
+ }
+ we = t
+ }
+ var Be = we ? '-' + we.toLowerCase() + '-' : '',
+ De = Ce('transform'),
+ Ee = Ce('transitionProperty'),
+ Fe = Ce('transitionDuration'),
+ Ge = Ce('transformOrigin'),
+ He = Ce('transitionTimingFunction'),
+ Ie = Ce('transitionDelay'),
+ Sd = /android/gi.test(navigator.appVersion),
+ Je = /iphone|ipad/gi.test(navigator.appVersion),
+ Ke = /hp-tablet/gi.test(navigator.appVersion),
+ Le = Ce('perspective') in ve,
+ Me = 'ontouchstart' in window && !Ke,
+ Ne = we !== t,
+ Oe = Ce('transition') in ve,
+ Pe = 'onorientationchange' in window ? 'orientationchange' : 'resize',
+ Qe = Me ? 'touchstart' : 'mousedown',
+ Re = Me ? 'touchmove' : 'mousemove',
+ Se = Me ? 'touchend' : 'mouseup',
+ Te = Me ? 'touchcancel' : 'mouseup',
+ Ue =
+ we === t
+ ? t
+ : {
+ '': 'transitionend',
+ webkit: 'webkitTransitionEnd',
+ Moz: 'transitionend',
+ O: 'otransitionend',
+ ms: 'MSTransitionEnd',
+ }[we],
+ Ve =
+ window.requestAnimationFrame ||
+ window.webkitRequestAnimationFrame ||
+ window.mozRequestAnimationFrame ||
+ window.oRequestAnimationFrame ||
+ window.msRequestAnimationFrame ||
+ function (a) {
+ return setTimeout(a, 1)
+ },
+ We =
+ window.cancelRequestAnimationFrame ||
+ window.U5 ||
+ window.webkitCancelRequestAnimationFrame ||
+ window.mozCancelRequestAnimationFrame ||
+ window.oCancelRequestAnimationFrame ||
+ window.msCancelRequestAnimationFrame ||
+ clearTimeout,
+ Xe = Le ? ' translateZ(0)' : ''
+ function Ye(a, b) {
+ var c = this,
+ e
+ c.zn = 'object' == typeof a ? a : te.getElementById(a)
+ c.zn.style.overflow = 'hidden'
+ c.Nb = c.zn.children[0]
+ c.options = {
+ kp: q,
+ xn: q,
+ x: 0,
+ y: 0,
+ Go: q,
+ LV: t,
+ iy: q,
+ OE: q,
+ Yk: q,
+ wi: t,
+ n0: 0,
+ Pw: t,
+ Mx: q,
+ ii: q,
+ xi: q,
+ AD: Sd,
+ Qx: Je,
+ kX: Je && Le,
+ xF: '',
+ zoom: t,
+ $k: 1,
+ aq: 4,
+ QW: 2,
+ qP: 'scroll',
+ iu: t,
+ Uy: 1,
+ CN: s,
+ uN: function (a) {
+ a.preventDefault()
+ },
+ FN: s,
+ tN: s,
+ EN: s,
+ sN: s,
+ oy: s,
+ GN: s,
+ xN: s,
+ zp: s,
+ HN: s,
+ yp: s,
+ }
+ for (e in b) c.options[e] = b[e]
+ c.x = c.options.x
+ c.y = c.options.y
+ c.options.Yk = Ne && c.options.Yk
+ c.options.ii = c.options.kp && c.options.ii
+ c.options.xi = c.options.xn && c.options.xi
+ c.options.zoom = c.options.Yk && c.options.zoom
+ c.options.wi = Oe && c.options.wi
+ c.options.zoom && Sd && (Xe = '')
+ c.Nb.style[Ee] = c.options.Yk ? Be + 'transform' : 'top left'
+ c.Nb.style[Fe] = '0'
+ c.Nb.style[Ge] = '0 0'
+ c.options.wi && (c.Nb.style[He] = 'cubic-bezier(0.33,0.66,0.66,1)')
+ c.options.Yk
+ ? (c.Nb.style[De] = 'translate(' + c.x + 'px,' + c.y + 'px)' + Xe)
+ : (c.Nb.style.cssText +=
+ ';position:absolute;top:' + c.y + 'px;left:' + c.x + 'px')
+ c.options.wi && (c.options.AD = q)
+ c.refresh()
+ c.ba(Pe, window)
+ c.ba(Qe)
+ !Me &&
+ 'none' != c.options.qP &&
+ (c.ba('DOMMouseScroll'), c.ba('mousewheel'))
+ c.options.Pw &&
+ (c.XV = setInterval(function () {
+ c.PQ()
+ }, 500))
+ this.options.Mx &&
+ (Event.prototype.stopImmediatePropagation ||
+ ((document.body.removeEventListener = function (a, b, c) {
+ var e = Node.prototype.removeEventListener
+ a === 'click'
+ ? e.call(document.body, a, b.iM || b, c)
+ : e.call(document.body, a, b, c)
+ }),
+ (document.body.addEventListener = function (a, b, c) {
+ var e = Node.prototype.addEventListener
+ a === 'click'
+ ? e.call(
+ document.body,
+ a,
+ b.iM ||
+ (b.iM = function (a) {
+ a.RZ || b(a)
+ }),
+ c
+ )
+ : e.call(document.body, a, b, c)
+ })),
+ c.ba('click', document.body, q))
+ }
+ Ye.prototype = {
+ enabled: q,
+ x: 0,
+ y: 0,
+ yj: [],
+ scale: 1,
+ HC: 0,
+ IC: 0,
+ We: [],
+ wf: [],
+ fC: s,
+ cz: 0,
+ handleEvent: function (a) {
+ switch (a.type) {
+ case Qe:
+ if (!Me && 0 !== a.button) break
+ this.aw(a)
+ break
+ case Re:
+ this.zT(a)
+ break
+ case Se:
+ case Te:
+ this.lv(a)
+ break
+ case Pe:
+ this.zB()
+ break
+ case 'DOMMouseScroll':
+ case 'mousewheel':
+ this.eV(a)
+ break
+ case Ue:
+ this.$U(a)
+ break
+ case 'click':
+ this.$Q(a)
+ }
+ },
+ PQ: function () {
+ !this.oh &&
+ !this.al &&
+ !(
+ this.Yl ||
+ (this.Ky == this.Nb.offsetWidth * this.scale &&
+ this.Ip == this.Nb.offsetHeight * this.scale)
+ ) &&
+ this.refresh()
+ },
+ Sv: function (a) {
+ var b
+ this[a + 'Scrollbar']
+ ? (this[a + 'ScrollbarWrapper'] ||
+ ((b = te.createElement('div')),
+ this.options.xF
+ ? (b.className = this.options.xF + a.toUpperCase())
+ : (b.style.cssText =
+ 'position:absolute;z-index:100;' +
+ ('h' == a
+ ? 'height:7px;bottom:1px;left:2px;right:' +
+ (this.xi ? '7' : '2') +
+ 'px'
+ : 'width:7px;bottom:' +
+ (this.ii ? '7' : '2') +
+ 'px;top:2px;right:1px')),
+ (b.style.cssText +=
+ ';pointer-events:none;' +
+ Be +
+ 'transition-property:opacity;' +
+ Be +
+ 'transition-duration:' +
+ (this.options.kX ? '350ms' : '0') +
+ ';overflow:hidden;opacity:' +
+ (this.options.Qx ? '0' : '1')),
+ this.zn.appendChild(b),
+ (this[a + 'ScrollbarWrapper'] = b),
+ (b = te.createElement('div')),
+ this.options.xF ||
+ (b.style.cssText =
+ 'position:absolute;z-index:100;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);' +
+ Be +
+ 'background-clip:padding-box;' +
+ Be +
+ 'box-sizing:border-box;' +
+ ('h' == a ? 'height:100%' : 'width:100%') +
+ ';' +
+ Be +
+ 'border-radius:3px;border-radius:3px'),
+ (b.style.cssText +=
+ ';pointer-events:none;' +
+ Be +
+ 'transition-property:' +
+ Be +
+ 'transform;' +
+ Be +
+ 'transition-timing-function:cubic-bezier(0.33,0.66,0.66,1);' +
+ Be +
+ 'transition-duration:0;' +
+ Be +
+ 'transform: translate(0,0)' +
+ Xe),
+ this.options.wi &&
+ (b.style.cssText +=
+ ';' +
+ Be +
+ 'transition-timing-function:cubic-bezier(0.33,0.66,0.66,1)'),
+ this[a + 'ScrollbarWrapper'].appendChild(b),
+ (this[a + 'ScrollbarIndicator'] = b)),
+ 'h' == a
+ ? ((this.fM = this.gM.clientWidth),
+ (this.yY = ue.max(ue.round((this.fM * this.fM) / this.Ky), 8)),
+ (this.xY.style.width = this.yY + 'px'))
+ : ((this.iP = this.jP.clientHeight),
+ (this.L0 = ue.max(ue.round((this.iP * this.iP) / this.Ip), 8)),
+ (this.K0.style.height = this.L0 + 'px')),
+ this.AB(a, q))
+ : this[a + 'ScrollbarWrapper'] &&
+ (Ne && (this[a + 'ScrollbarIndicator'].style[De] = ''),
+ this[a + 'ScrollbarWrapper'].parentNode.removeChild(
+ this[a + 'ScrollbarWrapper']
+ ),
+ (this[a + 'ScrollbarWrapper'] = s),
+ (this[a + 'ScrollbarIndicator'] = s))
+ },
+ zB: function () {
+ var a = this
+ setTimeout(
+ function () {
+ a.refresh()
+ },
+ Sd ? 200 : 0
+ )
+ },
+ Ar: function (a, b) {
+ this.al ||
+ ((a = this.kp ? a : 0),
+ (b = this.xn ? b : 0),
+ this.options.Yk
+ ? (this.Nb.style[De] =
+ 'translate(' +
+ a +
+ 'px,' +
+ b +
+ 'px) scale(' +
+ this.scale +
+ ')' +
+ Xe)
+ : ((a = ue.round(a)),
+ (b = ue.round(b)),
+ (this.Nb.style.left = a + 'px'),
+ (this.Nb.style.top = b + 'px')),
+ (this.x = a),
+ (this.y = b),
+ this.AB('h'),
+ this.AB('v'))
+ },
+ AB: function (a, b) {
+ var c = 'h' == a ? this.x : this.y
+ this[a + 'Scrollbar'] &&
+ ((c *= this[a + 'ScrollbarProp']),
+ 0 > c
+ ? (this.options.AD ||
+ ((c = this[a + 'ScrollbarIndicatorSize'] + ue.round(3 * c)),
+ 8 > c && (c = 8),
+ (this[a + 'ScrollbarIndicator'].style[
+ 'h' == a ? 'width' : 'height'
+ ] = c + 'px')),
+ (c = 0))
+ : c > this[a + 'ScrollbarMaxScroll'] &&
+ (this.options.AD
+ ? (c = this[a + 'ScrollbarMaxScroll'])
+ : ((c =
+ this[a + 'ScrollbarIndicatorSize'] -
+ ue.round(3 * (c - this[a + 'ScrollbarMaxScroll']))),
+ 8 > c && (c = 8),
+ (this[a + 'ScrollbarIndicator'].style[
+ 'h' == a ? 'width' : 'height'
+ ] = c + 'px'),
+ (c =
+ this[a + 'ScrollbarMaxScroll'] +
+ (this[a + 'ScrollbarIndicatorSize'] - c)))),
+ (this[a + 'ScrollbarWrapper'].style[Ie] = '0'),
+ (this[a + 'ScrollbarWrapper'].style.opacity =
+ b && this.options.Qx ? '0' : '1'),
+ (this[a + 'ScrollbarIndicator'].style[De] =
+ 'translate(' + ('h' == a ? c + 'px,0)' : '0,' + c + 'px)') + Xe))
+ },
+ $Q: function (a) {
+ if (a.XR === q) return (this.YB = a.target), (this.sx = Date.now()), q
+ if (this.YB && this.sx) {
+ if (600 < Date.now() - this.sx) return (this.sx = this.YB = s), q
+ } else {
+ for (var b = a.target; b != this.Nb && b != document.body; )
+ b = b.parentNode
+ if (b == document.body) return q
+ }
+ for (b = a.target; 1 != b.nodeType; ) b = b.parentNode
+ b = b.tagName.toLowerCase()
+ if ('select' != b && 'input' != b && 'textarea' != b)
+ return (
+ a.stopImmediatePropagation
+ ? a.stopImmediatePropagation()
+ : (a.RZ = q),
+ a.stopPropagation(),
+ a.preventDefault(),
+ (this.sx = this.YB = s),
+ t
+ )
+ },
+ aw: function (a) {
+ var b = Me ? a.touches[0] : a,
+ c,
+ e
+ if (this.enabled) {
+ this.options.uN && this.options.uN.call(this, a)
+ ;(this.options.wi || this.options.zoom) && this.FJ(0)
+ this.al = this.Yl = this.oh = t
+ this.RC = this.QC = this.vw = this.uw = this.XC = this.WC = 0
+ this.options.zoom &&
+ Me &&
+ 1 < a.touches.length &&
+ ((e = ue.abs(a.touches[0].pageX - a.touches[1].pageX)),
+ (c = ue.abs(a.touches[0].pageY - a.touches[1].pageY)),
+ (this.p0 = ue.sqrt(e * e + c * c)),
+ (this.qy =
+ ue.abs(a.touches[0].pageX + a.touches[1].pageX - 2 * this.iG) / 2 -
+ this.x),
+ (this.ty =
+ ue.abs(a.touches[0].pageY + a.touches[1].pageY - 2 * this.jG) / 2 -
+ this.y),
+ this.options.zp && this.options.zp.call(this, a))
+ if (
+ this.options.iy &&
+ (this.options.Yk
+ ? ((c = getComputedStyle(this.Nb, s)
+ [De].replace(/[^0-9\-.,]/g, '')
+ .split(',')),
+ (e = +(c[12] || c[4])),
+ (c = +(c[13] || c[5])))
+ : ((e = +getComputedStyle(this.Nb, s).left.replace(/[^0-9-]/g, '')),
+ (c = +getComputedStyle(this.Nb, s).top.replace(/[^0-9-]/g, ''))),
+ e != this.x || c != this.y)
+ )
+ this.options.wi ? this.$d(Ue) : We(this.fC),
+ (this.yj = []),
+ this.Ar(e, c),
+ this.options.oy && this.options.oy.call(this)
+ this.ww = this.x
+ this.xw = this.y
+ this.lu = this.x
+ this.mu = this.y
+ this.rh = b.pageX
+ this.th = b.pageY
+ this.startTime = a.timeStamp || Date.now()
+ this.options.FN && this.options.FN.call(this, a)
+ this.ba(Re, window)
+ this.ba(Se, window)
+ this.ba(Te, window)
+ }
+ },
+ zT: function (a) {
+ var b = Me ? a.touches[0] : a,
+ c = b.pageX - this.rh,
+ e = b.pageY - this.th,
+ f = this.x + c,
+ g = this.y + e,
+ i = a.timeStamp || Date.now()
+ this.options.tN && this.options.tN.call(this, a)
+ if (this.options.zoom && Me && 1 < a.touches.length)
+ (f = ue.abs(a.touches[0].pageX - a.touches[1].pageX)),
+ (g = ue.abs(a.touches[0].pageY - a.touches[1].pageY)),
+ (this.o0 = ue.sqrt(f * f + g * g)),
+ (this.al = q),
+ (b = (1 / this.p0) * this.o0 * this.scale),
+ b < this.options.$k
+ ? (b = 0.5 * this.options.$k * Math.pow(2, b / this.options.$k))
+ : b > this.options.aq &&
+ (b = 2 * this.options.aq * Math.pow(0.5, this.options.aq / b)),
+ (this.rp = b / this.scale),
+ (f = this.qy - this.qy * this.rp + this.x),
+ (g = this.ty - this.ty * this.rp + this.y),
+ (this.Nb.style[De] =
+ 'translate(' + f + 'px,' + g + 'px) scale(' + b + ')' + Xe),
+ this.options.HN && this.options.HN.call(this, a)
+ else {
+ this.rh = b.pageX
+ this.th = b.pageY
+ if (0 < f || f < this.he)
+ f = this.options.Go
+ ? this.x + c / 2
+ : 0 <= f || 0 <= this.he
+ ? 0
+ : this.he
+ if (g > this.sf || g < this.qd)
+ g = this.options.Go
+ ? this.y + e / 2
+ : g >= this.sf || 0 <= this.qd
+ ? this.sf
+ : this.qd
+ this.WC += c
+ this.XC += e
+ this.uw = ue.abs(this.WC)
+ this.vw = ue.abs(this.XC)
+ ;(6 > this.uw && 6 > this.vw) ||
+ (this.options.OE &&
+ (this.uw > this.vw + 5
+ ? ((g = this.y), (e = 0))
+ : this.vw > this.uw + 5 && ((f = this.x), (c = 0))),
+ (this.oh = q),
+ this.Ar(f, g),
+ (this.QC = 0 < c ? -1 : 0 > c ? 1 : 0),
+ (this.RC = 0 < e ? -1 : 0 > e ? 1 : 0),
+ 300 < i - this.startTime &&
+ ((this.startTime = i), (this.lu = this.x), (this.mu = this.y)),
+ this.options.EN && this.options.EN.call(this, a))
+ }
+ },
+ lv: function (a) {
+ if (!(Me && 0 !== a.touches.length)) {
+ var b = this,
+ c = Me ? a.changedTouches[0] : a,
+ e,
+ f,
+ g = {
+ Ba: 0,
+ time: 0,
+ },
+ i = {
+ Ba: 0,
+ time: 0,
+ },
+ k = (a.timeStamp || Date.now()) - b.startTime
+ e = b.x
+ f = b.y
+ b.$d(Re, window)
+ b.$d(Se, window)
+ b.$d(Te, window)
+ b.options.sN && b.options.sN.call(b, a)
+ if (b.al)
+ (e = b.scale * b.rp),
+ (e = Math.max(b.options.$k, e)),
+ (e = Math.min(b.options.aq, e)),
+ (b.rp = e / b.scale),
+ (b.scale = e),
+ (b.x = b.qy - b.qy * b.rp + b.x),
+ (b.y = b.ty - b.ty * b.rp + b.y),
+ (b.Nb.style[Fe] = '200ms'),
+ (b.Nb.style[De] =
+ 'translate(' +
+ b.x +
+ 'px,' +
+ b.y +
+ 'px) scale(' +
+ b.scale +
+ ')' +
+ Xe),
+ (b.al = t),
+ b.refresh(),
+ b.options.yp && b.options.yp.call(b, a)
+ else {
+ if (b.oh) {
+ if (300 > k && b.options.iy) {
+ g = e
+ ? b.BI(
+ e - b.lu,
+ k,
+ -b.x,
+ b.Ky - b.Cu + b.x,
+ b.options.Go ? b.Cu : 0
+ )
+ : g
+ i = f
+ ? b.BI(
+ f - b.mu,
+ k,
+ -b.y,
+ 0 > b.qd ? b.Ip - b.An + b.y - b.sf : 0,
+ b.options.Go ? b.An : 0
+ )
+ : i
+ e = b.x + g.Ba
+ f = b.y + i.Ba
+ if ((0 < b.x && 0 < e) || (b.x < b.he && e < b.he))
+ g = {
+ Ba: 0,
+ time: 0,
+ }
+ if ((b.y > b.sf && f > b.sf) || (b.y < b.qd && f < b.qd))
+ i = {
+ Ba: 0,
+ time: 0,
+ }
+ }
+ g.Ba || i.Ba
+ ? ((c = ue.max(ue.max(g.time, i.time), 10)),
+ b.options.iu &&
+ ((g = e - b.ww),
+ (i = f - b.xw),
+ ue.abs(g) < b.options.Uy && ue.abs(i) < b.options.Uy
+ ? b.scrollTo(b.ww, b.xw, 200)
+ : ((g = b.vJ(e, f)),
+ (e = g.x),
+ (f = g.y),
+ (c = ue.max(g.time, c)))),
+ b.scrollTo(ue.round(e), ue.round(f), c))
+ : b.options.iu
+ ? ((g = e - b.ww),
+ (i = f - b.xw),
+ ue.abs(g) < b.options.Uy && ue.abs(i) < b.options.Uy
+ ? b.scrollTo(b.ww, b.xw, 200)
+ : ((g = b.vJ(b.x, b.y)),
+ (g.x != b.x || g.y != b.y) && b.scrollTo(g.x, g.y, g.time)))
+ : b.lo(200)
+ } else {
+ if (Me)
+ if (b.VK && b.options.zoom)
+ clearTimeout(b.VK),
+ (b.VK = s),
+ b.options.zp && b.options.zp.call(b, a),
+ b.zoom(b.rh, b.th, 1 == b.scale ? b.options.QW : 1),
+ b.options.yp &&
+ setTimeout(function () {
+ b.options.yp.call(b, a)
+ }, 200)
+ else if (this.options.Mx) {
+ for (e = c.target; 1 != e.nodeType; ) e = e.parentNode
+ f = e.tagName.toLowerCase()
+ 'select' != f && 'input' != f && 'textarea' != f
+ ? ((f = te.createEvent('MouseEvents')),
+ f.initMouseEvent(
+ 'click',
+ q,
+ q,
+ a.view,
+ 1,
+ c.screenX,
+ c.screenY,
+ c.clientX,
+ c.clientY,
+ a.ctrlKey,
+ a.altKey,
+ a.shiftKey,
+ a.metaKey,
+ 0,
+ s
+ ),
+ (f.XR = q),
+ e.dispatchEvent(f))
+ : e.focus()
+ }
+ b.lo(400)
+ }
+ b.options.GN && b.options.GN.call(b, a)
+ }
+ }
+ },
+ lo: function (a) {
+ var b = 0 <= this.x ? 0 : this.x < this.he ? this.he : this.x,
+ c =
+ this.y >= this.sf || 0 < this.qd
+ ? this.sf
+ : this.y < this.qd
+ ? this.qd
+ : this.y
+ if (b == this.x && c == this.y) {
+ if (
+ (this.oh &&
+ ((this.oh = t), this.options.oy && this.options.oy.call(this)),
+ this.ii &&
+ this.options.Qx &&
+ ('webkit' == we && (this.gM.style[Ie] = '300ms'),
+ (this.gM.style.opacity = '0')),
+ this.xi && this.options.Qx)
+ )
+ 'webkit' == we && (this.jP.style[Ie] = '300ms'),
+ (this.jP.style.opacity = '0')
+ } else this.scrollTo(b, c, a || 0)
+ },
+ eV: function (a) {
+ var b = this,
+ c,
+ e
+ if ('wheelDeltaX' in a) (c = a.wheelDeltaX / 12), (e = a.wheelDeltaY / 12)
+ else if ('wheelDelta' in a) c = e = a.wheelDelta / 12
+ else if ('detail' in a) c = e = 3 * -a.detail
+ else return
+ if ('zoom' == b.options.qP) {
+ if (
+ ((e = b.scale * Math.pow(2, (1 / 3) * (e ? e / Math.abs(e) : 0))),
+ e < b.options.$k && (e = b.options.$k),
+ e > b.options.aq && (e = b.options.aq),
+ e != b.scale)
+ )
+ !b.cz && b.options.zp && b.options.zp.call(b, a),
+ b.cz++,
+ b.zoom(a.pageX, a.pageY, e, 400),
+ setTimeout(function () {
+ b.cz--
+ !b.cz && b.options.yp && b.options.yp.call(b, a)
+ }, 400)
+ } else
+ (c = b.x + c),
+ (e = b.y + e),
+ 0 < c ? (c = 0) : c < b.he && (c = b.he),
+ e > b.sf ? (e = b.sf) : e < b.qd && (e = b.qd),
+ 0 > b.qd && b.scrollTo(c, e, 0)
+ },
+ $U: function (a) {
+ a.target == this.Nb && (this.$d(Ue), this.MB())
+ },
+ MB: function () {
+ var a = this,
+ b = a.x,
+ c = a.y,
+ e = Date.now(),
+ f,
+ g,
+ i
+ a.Yl ||
+ (a.yj.length
+ ? ((f = a.yj.shift()),
+ f.x == b && f.y == c && (f.time = 0),
+ (a.Yl = q),
+ (a.oh = q),
+ a.options.wi)
+ ? (a.FJ(f.time),
+ a.Ar(f.x, f.y),
+ (a.Yl = t),
+ f.time ? a.ba(Ue) : a.lo(0))
+ : ((i = function () {
+ var k = Date.now(),
+ m
+ if (k >= e + f.time) {
+ a.Ar(f.x, f.y)
+ a.Yl = t
+ a.options.zZ && a.options.zZ.call(a)
+ a.MB()
+ } else {
+ k = (k - e) / f.time - 1
+ g = ue.sqrt(1 - k * k)
+ k = (f.x - b) * g + b
+ m = (f.y - c) * g + c
+ a.Ar(k, m)
+ if (a.Yl) a.fC = Ve(i)
+ }
+ }),
+ i())
+ : a.lo(400))
+ },
+ FJ: function (a) {
+ a += 'ms'
+ this.Nb.style[Fe] = a
+ this.ii && (this.xY.style[Fe] = a)
+ this.xi && (this.K0.style[Fe] = a)
+ },
+ BI: function (a, b, c, e, f) {
+ var b = ue.abs(a) / b,
+ g = (b * b) / 0.0012
+ 0 < a && g > c
+ ? ((c += f / (6 / (6.0e-4 * (g / b)))), (b = (b * c) / g), (g = c))
+ : 0 > a &&
+ g > e &&
+ ((e += f / (6 / (6.0e-4 * (g / b)))), (b = (b * e) / g), (g = e))
+ return {
+ Ba: g * (0 > a ? -1 : 1),
+ time: ue.round(b / 6.0e-4),
+ }
+ },
+ Zj: function (a) {
+ for (var b = -a.offsetLeft, c = -a.offsetTop; (a = a.offsetParent); )
+ (b -= a.offsetLeft), (c -= a.offsetTop)
+ a != this.zn && ((b *= this.scale), (c *= this.scale))
+ return {
+ left: b,
+ top: c,
+ }
+ },
+ vJ: function (a, b) {
+ var c, e, f
+ f = this.We.length - 1
+ c = 0
+ for (e = this.We.length; c < e; c++)
+ if (a >= this.We[c]) {
+ f = c
+ break
+ }
+ f == this.HC && 0 < f && 0 > this.QC && f--
+ a = this.We[f]
+ e = (e = ue.abs(a - this.We[this.HC]))
+ ? 500 * (ue.abs(this.x - a) / e)
+ : 0
+ this.HC = f
+ f = this.wf.length - 1
+ for (c = 0; c < f; c++)
+ if (b >= this.wf[c]) {
+ f = c
+ break
+ }
+ f == this.IC && 0 < f && 0 > this.RC && f--
+ b = this.wf[f]
+ c = (c = ue.abs(b - this.wf[this.IC]))
+ ? 500 * (ue.abs(this.y - b) / c)
+ : 0
+ this.IC = f
+ f = ue.round(ue.max(e, c)) || 200
+ return {
+ x: a,
+ y: b,
+ time: f,
+ }
+ },
+ ba: function (a, b, c) {
+ ;(b || this.Nb).addEventListener(a, this, !!c)
+ },
+ $d: function (a, b, c) {
+ ;(b || this.Nb).removeEventListener(a, this, !!c)
+ },
+ NC: ga(2),
+ refresh: function () {
+ var a,
+ b,
+ c,
+ e = 0
+ b = 0
+ this.scale < this.options.$k && (this.scale = this.options.$k)
+ this.Cu = this.zn.clientWidth || 1
+ this.An = this.zn.clientHeight || 1
+ this.sf = -this.options.n0 || 0
+ this.Ky = ue.round(this.Nb.offsetWidth * this.scale)
+ this.Ip = ue.round((this.Nb.offsetHeight + this.sf) * this.scale)
+ this.he = this.Cu - this.Ky
+ this.qd = this.An - this.Ip + this.sf
+ this.RC = this.QC = 0
+ this.options.CN && this.options.CN.call(this)
+ this.kp = this.options.kp && 0 > this.he
+ this.xn =
+ this.options.xn && ((!this.options.LV && !this.kp) || this.Ip > this.An)
+ this.ii = this.kp && this.options.ii
+ this.xi = this.xn && this.options.xi && this.Ip > this.An
+ a = this.Zj(this.zn)
+ this.iG = -a.left
+ this.jG = -a.top
+ if ('string' == typeof this.options.iu) {
+ this.We = []
+ this.wf = []
+ c = this.Nb.querySelectorAll(this.options.iu)
+ a = 0
+ for (b = c.length; a < b; a++)
+ (e = this.Zj(c[a])),
+ (e.left += this.iG),
+ (e.top += this.jG),
+ (this.We[a] = e.left < this.he ? this.he : e.left * this.scale),
+ (this.wf[a] = e.top < this.qd ? this.qd : e.top * this.scale)
+ } else if (this.options.iu) {
+ for (this.We = []; e >= this.he; ) (this.We[b] = e), (e -= this.Cu), b++
+ this.he % this.Cu &&
+ (this.We[this.We.length] =
+ this.he - this.We[this.We.length - 1] + this.We[this.We.length - 1])
+ b = e = 0
+ for (this.wf = []; e >= this.qd; ) (this.wf[b] = e), (e -= this.An), b++
+ this.qd % this.An &&
+ (this.wf[this.wf.length] =
+ this.qd - this.wf[this.wf.length - 1] + this.wf[this.wf.length - 1])
+ }
+ this.Sv('h')
+ this.Sv('v')
+ this.al || ((this.Nb.style[Fe] = '0'), this.lo(400))
+ },
+ scrollTo: function (a, b, c, e) {
+ var f = a
+ this.stop()
+ f.length ||
+ (f = [
+ {
+ x: a,
+ y: b,
+ time: c,
+ TZ: e,
+ },
+ ])
+ a = 0
+ for (b = f.length; a < b; a++)
+ f[a].TZ && ((f[a].x = this.x - f[a].x), (f[a].y = this.y - f[a].y)),
+ this.yj.push({
+ x: f[a].x,
+ y: f[a].y,
+ time: f[a].time || 0,
+ })
+ this.MB()
+ },
+ disable: function () {
+ this.stop()
+ this.lo(0)
+ this.enabled = t
+ this.$d(Re, window)
+ this.$d(Se, window)
+ this.$d(Te, window)
+ },
+ enable: function () {
+ this.enabled = q
+ },
+ stop: function () {
+ this.options.wi ? this.$d(Ue) : We(this.fC)
+ this.yj = []
+ this.Yl = this.oh = t
+ },
+ zoom: function (a, b, c, e) {
+ var f = c / this.scale
+ this.options.Yk &&
+ ((this.al = q),
+ (e = e === l ? 200 : e),
+ (a = a - this.iG - this.x),
+ (b = b - this.jG - this.y),
+ (this.x = a - a * f + this.x),
+ (this.y = b - b * f + this.y),
+ (this.scale = c),
+ this.refresh(),
+ (this.x = 0 < this.x ? 0 : this.x < this.he ? this.he : this.x),
+ (this.y =
+ this.y > this.sf ? this.sf : this.y < this.qd ? this.qd : this.y),
+ (this.Nb.style[Fe] = e + 'ms'),
+ (this.Nb.style[De] =
+ 'translate(' + this.x + 'px,' + this.y + 'px) scale(' + c + ')' + Xe),
+ (this.al = t))
+ },
+ }
+ function Ce(a) {
+ if ('' === we) return a
+ a = a.charAt(0).toUpperCase() + a.substr(1)
+ return we + a
+ }
+ ve = s
+ function Ze(a) {
+ this.j = {
+ anchor: Yb,
+ offset: new O(0, 0),
+ maxWidth: '100%',
+ imageHeight: 80,
+ }
+ var a = a || {},
+ b
+ for (b in a) this.j[b] = a[b]
+ this.Ll = new ec(s, {
+ of: 'api',
+ })
+ this.bk = []
+ this.P = s
+ this.ig = {
+ height: this.j.imageHeight,
+ width: this.j.imageHeight * $e,
+ }
+ this.Rc = this.BB = this.bm = this.Zc = s
+ }
+ var af = [
+ 0, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 5, 5, 5, 6, 6, 7, 8, 8, 8, 9,
+ 10,
+ ],
+ bf =
+ '\u5176\u4ed6 \u6b63\u95e8 \u623f\u578b \u8bbe\u65bd \u6b63\u95e8 \u9910\u996e\u8bbe\u65bd \u5176\u4ed6\u8bbe\u65bd \u6b63\u95e8 \u8bbe\u65bd \u89c2\u5f71\u5385 \u5176\u4ed6\u8bbe\u65bd'.split(
+ ' '
+ )
+ B.Tm(function (a) {
+ var b = s
+ a.addEventListener('position_changed', function () {
+ a.j.visible &&
+ a.j.albumsControl === q &&
+ (b ? b.Ey(a.Xb()) : ((b = new Ze(a.j.albumsControlOptions)), b.na(a)))
+ })
+ a.addEventListener('albums_visible_changed', function () {
+ a.j.albumsControl === q
+ ? (b ? b.Ey(a.Xb()) : ((b = new Ze(a.j.albumsControlOptions)), b.na(a)),
+ b.show())
+ : b.U()
+ })
+ a.addEventListener('albums_options_changed', function () {
+ b && b.Qk(a.j.albumsControlOptions)
+ })
+ a.addEventListener('visible_changed', function () {
+ b &&
+ (a.kE()
+ ? a.j.albumsControl === q && (b.C.style.visibility = 'visible')
+ : (b.C.style.visibility = 'hidden'))
+ })
+ })
+ var $e = 1.8
+ H() && ($e = 1)
+ z.extend(Ze.prototype, {
+ Qk: function (a) {
+ for (var b in a) this.j[b] = a[b]
+ a = this.j.imageHeight + 'px'
+ this.uc(this.j.anchor)
+ this.C.style.width =
+ isNaN(Number(this.j.maxWidth)) === q
+ ? this.j.maxWidth
+ : this.j.maxWidth + 'px'
+ this.C.style.height = a
+ this.gk.style.height = a
+ this.Rh.style.height = a
+ this.ig = {
+ height: this.j.imageHeight,
+ width: this.j.imageHeight * $e,
+ }
+ this.fk.style.height = this.ig.height - 6 + 'px'
+ this.fk.style.width = this.ig.width - 6 + 'px'
+ this.Ey(this.P.Xb(), q)
+ },
+ na: function (a) {
+ this.P = a
+ this.ls()
+ this.yQ()
+ this.OY()
+ this.Ey(a.Xb())
+ },
+ ls: function () {
+ var a = this.j.imageHeight + 'px'
+ this.C = L('div')
+ var b = this.C.style
+ b.cssText = 'background:rgb(37,37,37);background:rgba(37,37,37,0.9);'
+ b.position = 'absolute'
+ b.zIndex = '2000'
+ b.width =
+ isNaN(Number(this.j.maxWidth)) === q
+ ? this.j.maxWidth
+ : this.j.maxWidth + 'px'
+ b.padding = '8px 0'
+ b.visibility = 'hidden'
+ b.height = a
+ this.gk = L('div')
+ b = this.gk.style
+ b.position = 'absolute'
+ b.overflow = 'hidden'
+ b.width = '100%'
+ b.height = a
+ this.Rh = L('div')
+ b = this.Rh.style
+ b.height = a
+ this.gk.appendChild(this.Rh)
+ this.C.appendChild(this.gk)
+ this.P.C.appendChild(this.C)
+ this.fk = L('div', {
+ class: 'pano_photo_item_seleted',
+ })
+ this.fk.style.height = this.ig.height - 6 + 'px'
+ this.fk.style.width = this.ig.width - 6 + 'px'
+ this.uc(this.j.anchor)
+ },
+ RH: function (a) {
+ for (var b = this.bk, c = b.length - 1; 0 <= c; c--)
+ if (b[c].panoId == a) return c
+ return -1
+ },
+ Ey: function (a, b) {
+ if (
+ b ||
+ !this.bk[this.Zc] ||
+ !(this.bk[this.Zc].panoId == a && 3 !== this.bk[this.Zc].recoType)
+ ) {
+ var c = this,
+ e = this.RH(a)
+ !b && -1 !== e && this.bk[e] && 3 !== this.bk[e].recoType
+ ? this.Mp(e)
+ : this.dY(function (a) {
+ for (
+ var b = {}, e, k, m = t, n = [], o = 0, p = a.length;
+ o < p;
+ o++
+ )
+ (e = a[o].catlog),
+ (k = a[o].floor),
+ l !== e &&
+ ('' === e && l !== k
+ ? ((m = q), b[k] || (b[k] = []), b[k].push(a[o]))
+ : (b[af[e]] || (b[af[e]] = []), b[af[e]].push(a[o])))
+ for (var v in b)
+ m
+ ? n.push({
+ data: v + 'F',
+ index: v,
+ })
+ : n.push({
+ data: bf[v],
+ index: v,
+ })
+ c.jH = b
+ c.Ji = n
+ c.Il(a)
+ 0 == a.length ? c.U() : c.show()
+ })
+ }
+ },
+ vW: function () {
+ if (!this.Gi) {
+ var a = this.SX(this.Ji),
+ b = L('div')
+ b.style.cssText = [
+ 'width:' + 134 * this.Ji.length + 'px;',
+ 'overflow:hidden;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;',
+ ].join('')
+ b.innerHTML = a
+ a = L('div')
+ a.appendChild(b)
+ a.style.cssText =
+ 'position:absolute;top:-25px;background:rgb(37,37,37);background:rgba(37,37,37,0.9);border-bottom:1px solid #4e596a;width:100%;line-height:25px;height:25px;overflow:scroll;outline:0'
+ new Ye(a, {
+ Go: t,
+ iy: q,
+ ii: t,
+ xi: t,
+ xn: t,
+ OE: q,
+ Pw: q,
+ Mx: q,
+ })
+ this.C.appendChild(a)
+ for (
+ var c = this, e = b.getElementsByTagName('span'), f = 0, g = e.length;
+ f < g;
+ f++
+ )
+ (b = e[f]),
+ z.M(b, 'click', function () {
+ if (this.getAttribute('dataindex')) {
+ c.Il(c.jH[this.getAttribute('dataindex')])
+ for (var a = 0, b = e.length; a < b; a++)
+ e[a].style.color = '#FFFFFF'
+ this.style.color = '#3383FF'
+ }
+ })
+ this.Gi = a
+ }
+ },
+ sW: function () {
+ if (this.Gi) (a = this.AL(this.Ji)), (this.OQ.innerHTML = a)
+ else {
+ var a = this.AL(this.Ji),
+ b = L('ul'),
+ c = this
+ b.style.cssText =
+ 'list-style: none;padding:0px;margin:0px;display:block;width:60px;position:absolute;top:7px'
+ b.innerHTML = a
+ z.M(b, 'click', function (a) {
+ if ((a = (a.srcElement || a.target).getAttribute('dataindex'))) {
+ c.Il(c.jH[a])
+ for (
+ var e = b.getElementsByTagName('li'), f = 0, g = e.length;
+ f < g;
+ f++
+ )
+ e[f].childNodes[0].getAttribute('dataindex') === a
+ ? z.D.Ua(e[f], 'pano_catlogLiActive')
+ : z.D.Pb(e[f], 'pano_catlogLiActive')
+ }
+ })
+ var a = L('div'),
+ e = L('a'),
+ f = L('span'),
+ g = L('a'),
+ i = L('span'),
+ k = [
+ 'background:url(' + G.qa + 'panorama/catlog_icon.png) no-repeat;',
+ 'display:block;width:10px;height:7px;margin:0 auto;',
+ ].join('')
+ f.style.cssText = k + 'background-position:-18px 0;'
+ e.style.cssText =
+ 'background:#1C1C1C;display:block;position:absolute;width:58px;'
+ i.style.cssText = k + 'background-position:0 0;'
+ g.style.cssText =
+ 'background:#1C1C1C;display:block;position:absolute;width:58px;'
+ g.style.top = this.j.imageHeight - 7 + 'px'
+ a.style.cssText = 'position:absolute;top:0px;left:0px;width:60px;'
+ e.appendChild(f)
+ g.appendChild(i)
+ z.M(e, 'mouseover', function () {
+ var a = parseInt(b.style.top, 10)
+ 7 !== a && (f.style.backgroundPosition = '-27px 0')
+ new tb({
+ Ic: 60,
+ kc: ub.Ks,
+ duration: 300,
+ va: function (c) {
+ b.style.top = a + (7 - a) * c + 'px'
+ },
+ })
+ })
+ z.M(e, 'mouseout', function () {
+ f.style.backgroundPosition = '-18px 0'
+ })
+ z.M(g, 'mouseover', function () {
+ var a = parseInt(b.style.top, 10),
+ e = c.j.imageHeight - 14
+ if (!(parseInt(b.offsetHeight, 10) < e)) {
+ var f = e - parseInt(b.offsetHeight, 10) + 7
+ f !== a && (i.style.backgroundPosition = '-9px 0')
+ new tb({
+ Ic: 60,
+ kc: ub.Ks,
+ duration: 300,
+ va: function (c) {
+ b.style.top = a + (f - a) * c + 'px'
+ },
+ })
+ }
+ })
+ z.M(g, 'mouseout', function () {
+ i.style.backgroundPosition = '0 0'
+ })
+ a.appendChild(e)
+ a.appendChild(g)
+ e = L('div')
+ e.style.cssText = [
+ 'position:absolute;z-index:2001;left:20px;',
+ 'height:' + this.j.imageHeight + 'px;',
+ 'width:62px;overflow:hidden;background:rgb(37,37,37);background:rgba(37,37,37,0.9);',
+ ].join('')
+ e.appendChild(b)
+ e.appendChild(a)
+ this.Gi = e
+ this.OQ = b
+ this.C.appendChild(e)
+ }
+ },
+ tW: function () {
+ if (this.Ji && !(0 >= this.Ji.length)) {
+ var a = L('div')
+ a.innerHTML = this.hA
+ a.style.cssText = 'position:absolute;background:#252525'
+ this.C.appendChild(a)
+ this.Os = a
+ this.Rc.jg.style.left = this.ig.width + 8 + 'px'
+ this.Gi &&
+ (this.Gi.style.left =
+ parseInt(this.Gi.style.left, 10) + this.ig.width + 8 + 'px')
+ var b = this
+ z.M(a, 'click', function () {
+ b.P.vc(b.gX)
+ })
+ }
+ },
+ Il: function (a) {
+ this.bk = a
+ this.j.showCatalog &&
+ (0 < this.Ji.length
+ ? (Ua() ? this.sW() : this.vW(), (this.Rc.offsetLeft = 60))
+ : (this.Os &&
+ (this.C.removeChild(this.Os),
+ (this.Os = s),
+ (this.Rc.jg.style.left = '0px')),
+ this.Gi && (this.C.removeChild(this.Gi), (this.Gi = s)),
+ (this.Rc.offsetLeft = 0)))
+ var b = this.LX(a)
+ Ua() &&
+ this.Ji &&
+ 0 < this.Ji.length &&
+ this.j.showExit &&
+ this.hA &&
+ ((this.Rc.offsetLeft += this.ig.width + 8),
+ this.Os ? (this.Os.innerHTML = this.hA) : this.tW())
+ this.Rh.innerHTML = b
+ this.Rh.style.width = (this.ig.width + 8) * a.length + 8 + 'px'
+ a = this.C.offsetWidth
+ b = this.Rh.offsetWidth
+ this.Rc.Vs && (b += this.Rc.Vs())
+ b < a - 2 * this.Rc.Ai - this.Rc.offsetLeft
+ ? (this.C.style.width = b + this.Rc.offsetLeft + 'px')
+ : ((this.C.style.width =
+ isNaN(Number(this.j.maxWidth)) === q
+ ? this.j.maxWidth
+ : this.j.maxWidth + 'px'),
+ b < this.C.offsetWidth - 2 * this.Rc.Ai - this.Rc.offsetLeft &&
+ (this.C.style.width = b + this.Rc.offsetLeft + 'px'))
+ this.Rc.refresh()
+ this.BB = this.Rh.children
+ this.Rh.appendChild(this.fk)
+ this.fk.style.left = '-100000px'
+ a = this.RH(this.P.Xb(), this.Y1)
+ ;-1 !== a && this.Mp(a)
+ },
+ SX: function (a) {
+ for (var b = '', c, e = 0, f = a.length; e < f; e++)
+ (c =
+ '' +
+ a[e].data +
+ '
'),
+ (b += c)
+ return b
+ },
+ AL: function (a) {
+ for (var b = '', c, e = 0, f = a.length; e < f; e++)
+ (c =
+ '' +
+ a[e].data +
+ ''),
+ (b += c)
+ return b
+ },
+ LX: function (a) {
+ for (
+ var b, c, e, f, g = [], i = this.ig.height, k = this.ig.width, m = 0;
+ m < a.length;
+ m++
+ )
+ (b = a[m]),
+ (recoType = b.recoType),
+ (e = b.panoId),
+ (f = b.name),
+ (c = b.heading),
+ (b = b.pitch),
+ (c = qe.PL(e, c, b, 198, 108)),
+ (b =
+ '
' +
+ f +
+ ''),
+ 3 === recoType
+ ? Ua()
+ ? ((this.hA = b), (this.gX = e), a.splice(m, 1), m--)
+ : ((b =
+ '
'),
+ g.push(b))
+ : g.push(b)
+ return g.join('')
+ },
+ dY: function (a) {
+ var b = this,
+ c = this.P.Xb()
+ c &&
+ this.Ll.Kx(c, function (e) {
+ b.P.Xb() === c && a(e)
+ })
+ },
+ uc: function (a) {
+ if (!Wa(a) || isNaN(a) || a < Wb || 3 < a) a = this.defaultAnchor
+ var b = this.C,
+ c = this.j.offset.width,
+ e = this.j.offset.height
+ b.style.left = b.style.top = b.style.right = b.style.bottom = 'auto'
+ switch (a) {
+ case Wb:
+ b.style.top = e + 'px'
+ b.style.left = c + 'px'
+ break
+ case Xb:
+ b.style.top = e + 'px'
+ b.style.right = c + 'px'
+ break
+ case Yb:
+ b.style.bottom = e + 'px'
+ b.style.left = c + 'px'
+ break
+ case 3:
+ ;(b.style.bottom = e + 'px'), (b.style.right = c + 'px')
+ }
+ },
+ yQ: function () {
+ this.wQ()
+ },
+ wQ: function () {
+ var a = this
+ z.M(this.C, 'touchstart', function (a) {
+ a.stopPropagation()
+ })
+ z.M(this.gk, 'click', function (b) {
+ if (
+ (b = (b.srcElement || b.target).getAttribute('data-index')) &&
+ b != a.Zc
+ )
+ a.Mp(b), a.P.vc(a.bk[b].panoId)
+ })
+ z.M(this.Rh, 'mouseover', function (b) {
+ b = (b.srcElement || b.target).getAttribute('data-index')
+ b !== s && a.BK(b, q)
+ })
+ this.P.addEventListener('size_changed', function () {
+ isNaN(Number(a.j.maxWidth)) &&
+ a.Qk({
+ maxWidth: a.j.maxWidth,
+ })
+ })
+ },
+ Mp: function (a) {
+ this.fk.style.left = this.BB[a].offsetLeft + 8 + 'px'
+ this.fk.setAttribute('data-index', this.BB[a].getAttribute('data-index'))
+ this.Zc = a
+ this.BK(a)
+ },
+ BK: function (a, b) {
+ var c = this.ig.width + 8,
+ e = 0
+ this.Rc.Vs && (e = this.Rc.Vs() / 2)
+ var f = this.gk.offsetWidth - 2 * e,
+ g = this.Rh.offsetLeft || this.Rc.x,
+ g = g - e,
+ i = -a * c
+ i > g && this.Rc.scrollTo(i + e)
+ c = i - c
+ g -= f
+ c < g && (!b || (b && 8 < i - g)) && this.Rc.scrollTo(c + f + e)
+ },
+ OY: function () {
+ this.Rc = H()
+ ? new Ye(this.gk, {
+ Go: t,
+ iy: q,
+ ii: t,
+ xi: t,
+ xn: t,
+ OE: q,
+ Pw: q,
+ Mx: q,
+ })
+ : new cf(this.gk)
+ },
+ U: function () {
+ this.C.style.visibility = 'hidden'
+ },
+ show: function () {
+ this.C.style.visibility = 'visible'
+ },
+ })
+ function cf(a) {
+ this.C = a
+ this.Vg = a.children[0]
+ this.Pr = s
+ this.Ai = 20
+ this.offsetLeft = 0
+ this.na()
+ }
+ cf.prototype = {
+ na: function () {
+ this.Vg.style.position = 'relative'
+ this.refresh()
+ this.ls()
+ this.$l()
+ },
+ refresh: function () {
+ this.ho = this.C.offsetWidth - this.Vs()
+ this.aB = -(this.Vg.offsetWidth - this.ho - this.Ai)
+ this.Ev = this.Ai + this.offsetLeft
+ this.Vg.style.left = this.Ev + 'px'
+ this.Vg.children[0] && (this.Pr = this.Vg.children[0].offsetWidth)
+ this.jg &&
+ (this.jg.children[0].style.marginTop =
+ this.Hr.children[0].style.marginTop =
+ this.jg.offsetHeight / 2 -
+ this.jg.children[0].offsetHeight / 2 +
+ 'px')
+ },
+ Vs: function () {
+ return 2 * this.Ai
+ },
+ ls: function () {
+ this.Tv = L('div')
+ this.Tv.innerHTML =
+ ''
+ this.jg = this.Tv.children[0]
+ this.Hr = this.Tv.children[1]
+ this.C.appendChild(this.Tv)
+ this.jg.children[0].style.marginTop =
+ this.Hr.children[0].style.marginTop =
+ this.jg.offsetHeight / 2 - this.jg.children[0].offsetHeight / 2 + 'px'
+ },
+ $l: function () {
+ var a = this
+ z.M(this.jg, 'click', function () {
+ a.scrollTo(a.Vg.offsetLeft + a.ho)
+ })
+ z.M(this.Hr, 'click', function () {
+ a.scrollTo(a.Vg.offsetLeft - a.ho)
+ })
+ },
+ aV: function () {
+ z.D.Pb(this.jg, 'pano_arrow_disable')
+ z.D.Pb(this.Hr, 'pano_arrow_disable')
+ var a = this.Vg.offsetLeft
+ a >= this.Ev && z.D.Ua(this.jg, 'pano_arrow_disable')
+ a - this.ho <= this.aB && z.D.Ua(this.Hr, 'pano_arrow_disable')
+ },
+ scrollTo: function (a) {
+ a =
+ a < this.Vg.offsetLeft
+ ? Math.ceil((a - this.Ai - this.ho) / this.Pr) * this.Pr +
+ this.ho +
+ this.Ai -
+ 8
+ : Math.ceil((a - this.Ai) / this.Pr) * this.Pr + this.Ai
+ a < this.aB ? (a = this.aB) : a > this.Ev && (a = this.Ev)
+ var b = this.Vg.offsetLeft,
+ c = this
+ new tb({
+ Ic: 60,
+ kc: ub.Ks,
+ duration: 300,
+ va: function (e) {
+ c.Vg.style.left = b + (a - b) * e + 'px'
+ },
+ finish: function () {
+ c.aV()
+ },
+ })
+ },
+ }
+ B.Map = Ka
+ B.Hotspot = ib
+ B.MapType = id
+ B.Point = J
+ B.Pixel = Q
+ B.Size = O
+ B.Bounds = fb
+ B.TileLayer = Mc
+ B.Projection = jc
+ B.MercatorProjection = S
+ B.PerspectiveProjection = hb
+ B.Copyright = function (a, b, c) {
+ this.id = a
+ this.bb = b
+ this.content = c
+ }
+ B.Overlay = mc
+ B.Label = uc
+ B.GroundOverlay = vc
+ B.PointCollection = zc
+ B.Marker = U
+ B.CanvasLayer = Cc
+ B.Icon = qc
+ B.IconSequence = sc
+ B.Symbol = rc
+ B.Polyline = Gc
+ B.Polygon = Fc
+ B.InfoWindow = tc
+ B.Circle = Hc
+ B.Control = Vb
+ B.NavigationControl = jb
+ B.GeolocationControl = Zb
+ B.OverviewMapControl = lb
+ B.CopyrightControl = $b
+ B.ScaleControl = kb
+ B.MapTypeControl = mb
+ B.CityListControl = ac
+ B.PanoramaControl = cc
+ B.TrafficLayer = Vc
+ B.CustomLayer = nb
+ B.ContextMenu = fc
+ B.MenuItem = ic
+ B.LocalSearch = cb
+ B.TransitRoute = Kd
+ B.DrivingRoute = Nd
+ B.WalkingRoute = Od
+ B.RidingRoute = Pd
+ B.Autocomplete = Zd
+ B.RouteSearch = Td
+ B.Geocoder = Ud
+ B.LocalCity = Wd
+ B.Geolocation = Geolocation
+ B.Convertor = lc
+ B.BusLineSearch = Yd
+ B.Boundary = Xd
+ B.VectorCloudLayer = Tc
+ B.VectorTrafficLayer = Uc
+ B.Panorama = Oa
+ B.PanoramaLabel = ee
+ B.PanoramaService = ec
+ B.PanoramaCoverageLayer = dc
+ B.PanoramaFlashInterface = oe
+ function T(a, b) {
+ for (var c in b) {
+ a[c] = b[c]
+
+ // if(c === 'BMap'){
+ // console.log("BMap", b.BMap)
+ // console.log(window.BMap)
+ // }
+ }
+ }
+ T(window, {
+ BMap: B,
+ _jsload2: function (a, b) {
+ ia.Wy.ZY && ia.Wy.set(a, b)
+ K.WV(a, b)
+ },
+ BMAP_API_VERSION: '2.0',
+ })
+ var X = Ka.prototype
+ T(X, {
+ getBounds: X.ve,
+ getCenter: X.Ka,
+ getMapType: X.oa,
+ getSize: X.cb,
+ setSize: X.Ce,
+ getViewport: X.ht,
+ getZoom: X.fa,
+ centerAndZoom: X.Fd,
+ panTo: X.qi,
+ panBy: X.Ag,
+ setCenter: X.Zf,
+ setCurrentCity: X.DF,
+ setMapType: X.Dg,
+ setViewport: X.yh,
+ setZoom: X.Qc,
+ highResolutionEnabled: X.Sx,
+ zoomTo: X.Gg,
+ zoomIn: X.kG,
+ zoomOut: X.lG,
+ addHotspot: X.Cw,
+ removeHotspot: X.VZ,
+ clearHotspots: X.dm,
+ checkResize: X.ZV,
+ addControl: X.Aw,
+ removeControl: X.VN,
+ getContainer: X.La,
+ addContextMenu: X.yo,
+ removeContextMenu: X.Cp,
+ addOverlay: X.Ga,
+ removeOverlay: X.Qb,
+ clearOverlays: X.yK,
+ openInfoWindow: X.pc,
+ closeInfoWindow: X.Yc,
+ pointToOverlayPixel: X.Xe,
+ overlayPixelToPoint: X.JN,
+ getInfoWindow: X.hh,
+ getOverlays: X.Hx,
+ getPanes: function () {
+ return {
+ floatPane: this.Yd.BD,
+ markerMouseTarget: this.Yd.RE,
+ floatShadow: this.Yd.sL,
+ labelPane: this.Yd.KE,
+ markerPane: this.Yd.fN,
+ markerShadow: this.Yd.gN,
+ mapPane: this.Yd.Et,
+ vertexPane: this.Yd.nP,
+ }
+ },
+ addTileLayer: X.Oe,
+ removeTileLayer: X.Yf,
+ pixelToPoint: X.xb,
+ pointToPixel: X.$b,
+ setFeatureStyle: X.Lp,
+ selectBaseElement: X.j5,
+ setMapStyle: X.Zt,
+ enable3DBuilding: X.Ro,
+ disable3DBuilding: X.KW,
+ getPanorama: X.tm,
+ initIndoorLayer: X.PY,
+ setNormalMapDisplay: X.D_,
+ })
+ var df = id.prototype
+ T(df, {
+ getTileLayer: df.oY,
+ getMinZoom: df.bp,
+ getMaxZoom: df.sm,
+ getProjection: df.wm,
+ getTextColor: df.zm,
+ getTips: df.gt,
+ })
+ T(window, {
+ BMAP_NORMAL_MAP: La,
+ BMAP_PERSPECTIVE_MAP: Qa,
+ BMAP_SATELLITE_MAP: Ya,
+ BMAP_HYBRID_MAP: Sa,
+ })
+ var ef = S.prototype
+ T(ef, {
+ lngLatToPoint: ef.kh,
+ pointToLngLat: ef.xj,
+ })
+ var ff = hb.prototype
+ T(ff, {
+ lngLatToPoint: ff.kh,
+ pointToLngLat: ff.xj,
+ })
+ var gf = fb.prototype
+ T(gf, {
+ equals: gf.pb,
+ containsPoint: gf.js,
+ containsBounds: gf.kW,
+ intersects: gf.ot,
+ extend: gf.extend,
+ getCenter: gf.Ka,
+ isEmpty: gf.tj,
+ getSouthWest: gf.Ve,
+ getNorthEast: gf.Rf,
+ toSpan: gf.YF,
+ })
+ var hf = mc.prototype
+ T(hf, {
+ isVisible: hf.jh,
+ show: hf.show,
+ hide: hf.U,
+ })
+ mc.getZIndex = mc.Ck
+ var jf = gb.prototype
+ T(jf, {
+ openInfoWindow: jf.pc,
+ closeInfoWindow: jf.Yc,
+ enableMassClear: jf.gj,
+ disableMassClear: jf.MW,
+ show: jf.show,
+ hide: jf.U,
+ getMap: jf.Dx,
+ addContextMenu: jf.yo,
+ removeContextMenu: jf.Cp,
+ })
+ var kf = U.prototype
+ T(kf, {
+ setIcon: kf.Rb,
+ getIcon: kf.ap,
+ setPosition: kf.sa,
+ getPosition: kf.ga,
+ setOffset: kf.Ze,
+ getOffset: kf.Sf,
+ getLabel: kf.VD,
+ setLabel: kf.dn,
+ setTitle: kf.Ec,
+ setTop: kf.ui,
+ enableDragging: kf.Wb,
+ disableDragging: kf.TC,
+ setZIndex: kf.Sp,
+ getMap: kf.Dx,
+ setAnimation: kf.bn,
+ setShadow: kf.Oy,
+ hide: kf.U,
+ setRotation: kf.Op,
+ getRotation: kf.TL,
+ })
+ T(window, {
+ BMAP_ANIMATION_DROP: 1,
+ BMAP_ANIMATION_BOUNCE: 2,
+ })
+ var lf = uc.prototype
+ T(lf, {
+ setStyle: lf.Md,
+ setStyles: lf.ti,
+ setContent: lf.dd,
+ setPosition: lf.sa,
+ getPosition: lf.ga,
+ setOffset: lf.Ze,
+ getOffset: lf.Sf,
+ setTitle: lf.Ec,
+ setZIndex: lf.Sp,
+ getMap: lf.Dx,
+ getContent: lf.xk,
+ })
+ var mf = qc.prototype
+ T(mf, {
+ setImageUrl: mf.mO,
+ setSize: mf.Ce,
+ setAnchor: mf.uc,
+ setImageOffset: mf.Yt,
+ setImageSize: mf.w_,
+ setInfoWindowAnchor: mf.z_,
+ setPrintImageUrl: mf.K_,
+ })
+ var nf = tc.prototype
+ T(nf, {
+ redraw: nf.je,
+ setTitle: nf.Ec,
+ setContent: nf.dd,
+ getContent: nf.xk,
+ getPosition: nf.ga,
+ enableMaximize: nf.dh,
+ disableMaximize: nf.kx,
+ isOpen: nf.Xa,
+ setMaxContent: nf.$t,
+ maximize: nf.hy,
+ enableAutoPan: nf.Ls,
+ })
+ var of = oc.prototype
+ T(of, {
+ getPath: of.Ue,
+ setPath: of.ke,
+ setPositionAt: of.gn,
+ getStrokeColor: of.jY,
+ setStrokeWeight: of.Rp,
+ getStrokeWeight: of.WL,
+ setStrokeOpacity: of.Pp,
+ getStrokeOpacity: of.kY,
+ setFillOpacity: of.Xt,
+ getFillOpacity: of.HX,
+ setStrokeStyle: of.Qp,
+ getStrokeStyle: of.VL,
+ getFillColor: of.GX,
+ getBounds: of.ve,
+ enableEditing: of.mf,
+ disableEditing: of.LW,
+ getEditing: of.DX,
+ })
+ var pf = Hc.prototype
+ T(pf, {
+ setCenter: pf.Zf,
+ getCenter: pf.Ka,
+ getRadius: pf.RL,
+ setRadius: pf.xf,
+ })
+ var qf = Fc.prototype
+ T(qf, {
+ getPath: qf.Ue,
+ setPath: qf.ke,
+ setPositionAt: qf.gn,
+ })
+ var rf = ib.prototype
+ T(rf, {
+ getPosition: rf.ga,
+ setPosition: rf.sa,
+ getText: rf.eE,
+ setText: rf.cu,
+ })
+ J.prototype.equals = J.prototype.pb
+ Q.prototype.equals = Q.prototype.pb
+ O.prototype.equals = O.prototype.pb
+ T(window, {
+ BMAP_ANCHOR_TOP_LEFT: Wb,
+ BMAP_ANCHOR_TOP_RIGHT: Xb,
+ BMAP_ANCHOR_BOTTOM_LEFT: Yb,
+ BMAP_ANCHOR_BOTTOM_RIGHT: 3,
+ })
+ var sf = Vb.prototype
+ T(sf, {
+ setAnchor: sf.uc,
+ getAnchor: sf.HD,
+ setOffset: sf.Ze,
+ getOffset: sf.Sf,
+ show: sf.show,
+ hide: sf.U,
+ isVisible: sf.jh,
+ toString: sf.toString,
+ })
+ var tf = jb.prototype
+ T(tf, {
+ getType: tf.ip,
+ setType: tf.hn,
+ })
+ T(window, {
+ BMAP_NAVIGATION_CONTROL_LARGE: 0,
+ BMAP_NAVIGATION_CONTROL_SMALL: 1,
+ BMAP_NAVIGATION_CONTROL_PAN: 2,
+ BMAP_NAVIGATION_CONTROL_ZOOM: 3,
+ })
+ var uf = lb.prototype
+ T(uf, {
+ changeView: uf.se,
+ setSize: uf.Ce,
+ getSize: uf.cb,
+ })
+ var vf = kb.prototype
+ T(vf, {
+ getUnit: vf.sY,
+ setUnit: vf.LF,
+ })
+ T(window, {
+ BMAP_UNIT_METRIC: 'metric',
+ BMAP_UNIT_IMPERIAL: 'us',
+ })
+ var wf = $b.prototype
+ T(wf, {
+ addCopyright: wf.Bw,
+ removeCopyright: wf.qF,
+ getCopyright: wf.pm,
+ getCopyrightCollection: wf.PD,
+ })
+ T(window, {
+ BMAP_MAPTYPE_CONTROL_HORIZONTAL: bc,
+ BMAP_MAPTYPE_CONTROL_DROPDOWN: 1,
+ BMAP_MAPTYPE_CONTROL_MAP: 2,
+ })
+ var xf = Mc.prototype
+ T(xf, {
+ getMapType: xf.oa,
+ getCopyright: xf.pm,
+ isTransparentPng: xf.zt,
+ })
+ var yf = fc.prototype
+ T(yf, {
+ addItem: yf.Dw,
+ addSeparator: yf.bC,
+ removeSeparator: yf.sF,
+ })
+ var zf = ic.prototype
+ T(zf, {
+ setText: zf.cu,
+ })
+ var Af = W.prototype
+ T(Af, {
+ getStatus: Af.xm,
+ setSearchCompleteCallback: Af.JF,
+ getPageCapacity: Af.qf,
+ setPageCapacity: Af.Np,
+ setLocation: Af.fn,
+ disableFirstResultSelection: Af.UC,
+ enableFirstResultSelection: Af.oD,
+ gotoPage: Af.Am,
+ searchNearby: Af.Jp,
+ searchInBounds: Af.an,
+ search: Af.search,
+ })
+ T(window, {
+ BMAP_STATUS_SUCCESS: 0,
+ BMAP_STATUS_CITY_LIST: 1,
+ BMAP_STATUS_UNKNOWN_LOCATION: sd,
+ BMAP_STATUS_UNKNOWN_ROUTE: 3,
+ BMAP_STATUS_INVALID_KEY: 4,
+ BMAP_STATUS_INVALID_REQUEST: 5,
+ BMAP_STATUS_PERMISSION_DENIED: td,
+ BMAP_STATUS_SERVICE_UNAVAILABLE: 7,
+ BMAP_STATUS_TIMEOUT: ud,
+ })
+ T(window, {
+ BMAP_POI_TYPE_NORMAL: 0,
+ BMAP_POI_TYPE_BUSSTOP: 1,
+ BMAP_POI_TYPE_BUSLINE: 2,
+ BMAP_POI_TYPE_SUBSTOP: 3,
+ BMAP_POI_TYPE_SUBLINE: 4,
+ })
+ T(window, {
+ BMAP_TRANSIT_POLICY_RECOMMEND: 0,
+ BMAP_TRANSIT_POLICY_LEAST_TIME: 4,
+ BMAP_TRANSIT_POLICY_LEAST_TRANSFER: 1,
+ BMAP_TRANSIT_POLICY_LEAST_WALKING: 2,
+ BMAP_TRANSIT_POLICY_AVOID_SUBWAYS: 3,
+ BMAP_TRANSIT_POLICY_FIRST_SUBWAYS: 5,
+ BMAP_LINE_TYPE_BUS: 0,
+ BMAP_LINE_TYPE_SUBWAY: 1,
+ BMAP_LINE_TYPE_FERRY: 2,
+ BMAP_LINE_TYPE_TRAIN: 3,
+ BMAP_LINE_TYPE_AIRPLANE: 4,
+ BMAP_LINE_TYPE_COACH: 5,
+ })
+ T(window, {
+ BMAP_TRANSIT_TYPE_POLICY_TRAIN: 0,
+ BMAP_TRANSIT_TYPE_POLICY_AIRPLANE: 1,
+ BMAP_TRANSIT_TYPE_POLICY_COACH: 2,
+ })
+ T(window, {
+ BMAP_INTERCITY_POLICY_LEAST_TIME: 0,
+ BMAP_INTERCITY_POLICY_EARLY_START: 1,
+ BMAP_INTERCITY_POLICY_CHEAP_PRICE: 2,
+ })
+ T(window, {
+ BMAP_TRANSIT_TYPE_IN_CITY: 0,
+ BMAP_TRANSIT_TYPE_CROSS_CITY: 1,
+ })
+ T(window, {
+ BMAP_TRANSIT_PLAN_TYPE_ROUTE: 0,
+ BMAP_TRANSIT_PLAN_TYPE_LINE: 1,
+ })
+ var Bf = Jd.prototype
+ T(Bf, {
+ clearResults: Bf.Pe,
+ })
+ Ld = Kd.prototype
+ T(Ld, {
+ setPolicy: Ld.bu,
+ toString: Ld.toString,
+ setPageCapacity: Ld.Np,
+ setIntercityPolicy: Ld.oO,
+ setTransitTypePolicy: Ld.xO,
+ })
+ T(window, {
+ BMAP_DRIVING_POLICY_DEFAULT: 0,
+ BMAP_DRIVING_POLICY_AVOID_HIGHWAYS: 3,
+ BMAP_DRIVING_POLICY_AVOID_CONGESTION: 5,
+ BMAP_DRIVING_POLICY_FIRST_HIGHWAYS: 4,
+ })
+ T(window, {
+ BMAP_MODE_DRIVING: 'driving',
+ BMAP_MODE_TRANSIT: 'transit',
+ BMAP_MODE_WALKING: 'walking',
+ BMAP_MODE_NAVIGATION: 'navigation',
+ })
+ var Cf = Td.prototype
+ T(Cf, {
+ routeCall: Cf.gO,
+ })
+ T(window, {
+ BMAP_HIGHLIGHT_STEP: 1,
+ BMAP_HIGHLIGHT_ROUTE: 2,
+ })
+ T(window, {
+ BMAP_ROUTE_TYPE_DRIVING: wd,
+ BMAP_ROUTE_TYPE_WALKING: vd,
+ BMAP_ROUTE_TYPE_RIDING: xd,
+ })
+ T(window, {
+ BMAP_ROUTE_STATUS_NORMAL: yd,
+ BMAP_ROUTE_STATUS_EMPTY: 1,
+ BMAP_ROUTE_STATUS_ADDRESS: 2,
+ })
+ var Df = Nd.prototype
+ T(Df, {
+ setPolicy: Df.bu,
+ })
+ var Ef = Zd.prototype
+ T(Ef, {
+ show: Ef.show,
+ hide: Ef.U,
+ setTypes: Ef.KF,
+ setLocation: Ef.fn,
+ search: Ef.search,
+ setInputValue: Ef.Ly,
+ })
+ T(nb.prototype, {})
+ var Ff = Xd.prototype
+ T(Ff, {
+ get: Ff.get,
+ })
+ T(dc.prototype, {})
+ T(db.prototype, {})
+ T(window, {
+ BMAP_POINT_DENSITY_HIGH: 200,
+ BMAP_POINT_DENSITY_MEDIUM: Yc,
+ BMAP_POINT_DENSITY_LOW: 50,
+ })
+ T(window, {
+ BMAP_POINT_SHAPE_STAR: 1,
+ BMAP_POINT_SHAPE_WATERDROP: 2,
+ BMAP_POINT_SHAPE_CIRCLE: wc,
+ BMAP_POINT_SHAPE_SQUARE: 4,
+ BMAP_POINT_SHAPE_RHOMBUS: 5,
+ })
+ T(window, {
+ BMAP_POINT_SIZE_TINY: 1,
+ BMAP_POINT_SIZE_SMALLER: 2,
+ BMAP_POINT_SIZE_SMALL: 3,
+ BMAP_POINT_SIZE_NORMAL: xc,
+ BMAP_POINT_SIZE_BIG: 5,
+ BMAP_POINT_SIZE_BIGGER: 6,
+ BMAP_POINT_SIZE_HUGE: 7,
+ })
+ T(window, {
+ BMap_Symbol_SHAPE_CAMERA: 11,
+ BMap_Symbol_SHAPE_WARNING: 12,
+ BMap_Symbol_SHAPE_SMILE: 13,
+ BMap_Symbol_SHAPE_CLOCK: 14,
+ BMap_Symbol_SHAPE_POINT: 9,
+ BMap_Symbol_SHAPE_PLANE: 10,
+ BMap_Symbol_SHAPE_CIRCLE: 1,
+ BMap_Symbol_SHAPE_RECTANGLE: 2,
+ BMap_Symbol_SHAPE_RHOMBUS: 3,
+ BMap_Symbol_SHAPE_STAR: 4,
+ BMap_Symbol_SHAPE_BACKWARD_CLOSED_ARROW: 5,
+ BMap_Symbol_SHAPE_FORWARD_CLOSED_ARROW: 6,
+ BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW: 7,
+ BMap_Symbol_SHAPE_FORWARD_OPEN_ARROW: 8,
+ })
+ T(window, {
+ BMAP_CONTEXT_MENU_ICON_ZOOMIN: gc,
+ BMAP_CONTEXT_MENU_ICON_ZOOMOUT: hc,
+ })
+ T(window, {
+ BMAP_SYS_DRAWER: Ja,
+ BMAP_SVG_DRAWER: 1,
+ BMAP_VML_DRAWER: 2,
+ BMAP_CANVAS_DRAWER: 3,
+ BMAP_SVG_DRAWER_FIRST: 4,
+ })
+ B.vV()
+ B.Q0()
+})()
+window.myBMap = window.BMap
+console.log(window.BMap)
\ No newline at end of file
diff --git a/dist/static/bridge-Br9liAGx.png b/dist/static/bridge-Br9liAGx.png
new file mode 100644
index 0000000..c0120f4
Binary files /dev/null and b/dist/static/bridge-Br9liAGx.png differ
diff --git a/dist/static/broadcast-BoJpSmDD.png b/dist/static/broadcast-BoJpSmDD.png
new file mode 100644
index 0000000..59002c4
Binary files /dev/null and b/dist/static/broadcast-BoJpSmDD.png differ
diff --git a/dist/static/broadcast-active-Dcq5N3fr.png b/dist/static/broadcast-active-Dcq5N3fr.png
new file mode 100644
index 0000000..6ee96d9
Binary files /dev/null and b/dist/static/broadcast-active-Dcq5N3fr.png differ
diff --git a/dist/static/content-dTnNhtX7.png b/dist/static/content-dTnNhtX7.png
new file mode 100644
index 0000000..9fc3af0
Binary files /dev/null and b/dist/static/content-dTnNhtX7.png differ
diff --git a/dist/static/demo-BS92Kc0-.png b/dist/static/demo-BS92Kc0-.png
new file mode 100644
index 0000000..0599170
Binary files /dev/null and b/dist/static/demo-BS92Kc0-.png differ
diff --git a/dist/static/eqm-DAluD6G8.png b/dist/static/eqm-DAluD6G8.png
new file mode 100644
index 0000000..e1c64fb
Binary files /dev/null and b/dist/static/eqm-DAluD6G8.png differ
diff --git a/dist/static/eqm1-D9Rlr-yV.png b/dist/static/eqm1-D9Rlr-yV.png
new file mode 100644
index 0000000..ad1eb2b
Binary files /dev/null and b/dist/static/eqm1-D9Rlr-yV.png differ
diff --git a/dist/static/eqm1_active-BsbnUT8Q.png b/dist/static/eqm1_active-BsbnUT8Q.png
new file mode 100644
index 0000000..8c0d165
Binary files /dev/null and b/dist/static/eqm1_active-BsbnUT8Q.png differ
diff --git a/dist/static/eqm2-uHkzmwtA.png b/dist/static/eqm2-uHkzmwtA.png
new file mode 100644
index 0000000..675265d
Binary files /dev/null and b/dist/static/eqm2-uHkzmwtA.png differ
diff --git a/dist/static/eqm2_active-4BqIVmol.png b/dist/static/eqm2_active-4BqIVmol.png
new file mode 100644
index 0000000..a008756
Binary files /dev/null and b/dist/static/eqm2_active-4BqIVmol.png differ
diff --git a/dist/static/eqm3-gW7kFTnx.png b/dist/static/eqm3-gW7kFTnx.png
new file mode 100644
index 0000000..0fdb502
Binary files /dev/null and b/dist/static/eqm3-gW7kFTnx.png differ
diff --git a/dist/static/eqm3_active-DYIeFMJc.png b/dist/static/eqm3_active-DYIeFMJc.png
new file mode 100644
index 0000000..4697f25
Binary files /dev/null and b/dist/static/eqm3_active-DYIeFMJc.png differ
diff --git a/dist/static/eqm4-Ctqs09JP.png b/dist/static/eqm4-Ctqs09JP.png
new file mode 100644
index 0000000..4fa40cc
Binary files /dev/null and b/dist/static/eqm4-Ctqs09JP.png differ
diff --git a/dist/static/eqm4_active-y8xq9I--.png b/dist/static/eqm4_active-y8xq9I--.png
new file mode 100644
index 0000000..cb7b0ff
Binary files /dev/null and b/dist/static/eqm4_active-y8xq9I--.png differ
diff --git a/dist/static/eqminfo-D2pGTcLH.png b/dist/static/eqminfo-D2pGTcLH.png
new file mode 100644
index 0000000..170a55e
Binary files /dev/null and b/dist/static/eqminfo-D2pGTcLH.png differ
diff --git a/dist/static/eqminfo2-qiHVkYWH.png b/dist/static/eqminfo2-qiHVkYWH.png
new file mode 100644
index 0000000..8dba465
Binary files /dev/null and b/dist/static/eqminfo2-qiHVkYWH.png differ
diff --git a/dist/static/eqmtitle-BE38FfUw.png b/dist/static/eqmtitle-BE38FfUw.png
new file mode 100644
index 0000000..5818a69
Binary files /dev/null and b/dist/static/eqmtitle-BE38FfUw.png differ
diff --git a/dist/static/fee-BJ15UZLL.png b/dist/static/fee-BJ15UZLL.png
new file mode 100644
index 0000000..41fee61
Binary files /dev/null and b/dist/static/fee-BJ15UZLL.png differ
diff --git a/dist/static/fwq-CoK8OzEG.png b/dist/static/fwq-CoK8OzEG.png
new file mode 100644
index 0000000..0374e66
Binary files /dev/null and b/dist/static/fwq-CoK8OzEG.png differ
diff --git a/dist/static/header-ADrYJ-e_.png b/dist/static/header-ADrYJ-e_.png
new file mode 100644
index 0000000..39abf1e
Binary files /dev/null and b/dist/static/header-ADrYJ-e_.png differ
diff --git a/dist/static/hub-TAxCRcRi.png b/dist/static/hub-TAxCRcRi.png
new file mode 100644
index 0000000..2f8badd
Binary files /dev/null and b/dist/static/hub-TAxCRcRi.png differ
diff --git a/dist/static/index-C8CpfsCA.js b/dist/static/index-C8CpfsCA.js
new file mode 100644
index 0000000..ef63b71
--- /dev/null
+++ b/dist/static/index-C8CpfsCA.js
@@ -0,0 +1,93 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/HomeView-CvNMK7w5.js","static/_plugin-vue_export-helper-Bq6XDxh1.js","static/HomeView-DON0rqE9.css","static/index-CAm0KP_r.js","static/index-DCuzh4Ar.css"])))=>i.map(i=>d[i]);
+(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();/**
+* @vue/shared v3.4.38
+* (c) 2018-present Yuxi (Evan) You and Vue contributors
+* @license MIT
+**//*! #__NO_SIDE_EFFECTS__ */function makeMap(r,t){const n=new Set(r.split(","));return a=>n.has(a)}const EMPTY_OBJ$1={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),isModelListener=r=>r.startsWith("onUpdate:"),extend$1=Object.assign,remove=(r,t)=>{const n=r.indexOf(t);n>-1&&r.splice(n,1)},hasOwnProperty$1=Object.prototype.hasOwnProperty,hasOwn$1=(r,t)=>hasOwnProperty$1.call(r,t),isArray$3=Array.isArray,isMap=r=>toTypeString(r)==="[object Map]",isSet=r=>toTypeString(r)==="[object Set]",isDate=r=>toTypeString(r)==="[object Date]",isFunction$1=r=>typeof r=="function",isString$1=r=>typeof r=="string",isSymbol=r=>typeof r=="symbol",isObject$4=r=>r!==null&&typeof r=="object",isPromise=r=>(isObject$4(r)||isFunction$1(r))&&isFunction$1(r.then)&&isFunction$1(r.catch),objectToString=Object.prototype.toString,toTypeString=r=>objectToString.call(r),toRawType=r=>toTypeString(r).slice(8,-1),isPlainObject$1=r=>toTypeString(r)==="[object Object]",isIntegerKey=r=>isString$1(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=r=>{const t=Object.create(null);return n=>t[n]||(t[n]=r(n))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(r=>r.replace(camelizeRE,(t,n)=>n?n.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(r=>r.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(r=>r.charAt(0).toUpperCase()+r.slice(1)),toHandlerKey=cacheStringFunction(r=>r?`on${capitalize(r)}`:""),hasChanged=(r,t)=>!Object.is(r,t),invokeArrayFns=(r,...t)=>{for(let n=0;n{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:a,value:n})},looseToNumber=r=>{const t=parseFloat(r);return isNaN(t)?r:t},toNumber=r=>{const t=isString$1(r)?Number(r):NaN;return isNaN(t)?r:t};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle$1(r){if(isArray$3(r)){const t={};for(let n=0;n{if(n){const a=n.split(propertyDelimiterRE);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function normalizeClass(r){let t="";if(isString$1(r))t=r;else if(isArray$3(r))for(let n=0;nlooseEqual(n,t))}const isRef$1=r=>!!(r&&r.__v_isRef===!0),toDisplayString=r=>isString$1(r)?r:r==null?"":isArray$3(r)||isObject$4(r)&&(r.toString===objectToString||!isFunction$1(r.toString))?isRef$1(r)?toDisplayString(r.value):JSON.stringify(r,replacer,2):String(r),replacer=(r,t)=>isRef$1(t)?replacer(r,t.value):isMap(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,o],s)=>(n[stringifySymbol(a,s)+" =>"]=o,n),{})}:isSet(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>stringifySymbol(n))}:isSymbol(t)?stringifySymbol(t):isObject$4(t)&&!isArray$3(t)&&!isPlainObject$1(t)?String(t):t,stringifySymbol=(r,t="")=>{var n;return isSymbol(r)?`Symbol(${(n=r.description)!=null?n:t})`:r};/**
+* @vue/reactivity v3.4.38
+* (c) 2018-present Yuxi (Evan) You and Vue contributors
+* @license MIT
+**/let activeEffectScope;class EffectScope{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!t&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=activeEffectScope;try{return activeEffectScope=this,t()}finally{activeEffectScope=n}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(t){if(this._active){let n,a;for(n=0,a=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),resetTracking()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=shouldTrack,n=activeEffect;try{return shouldTrack=!0,activeEffect=this,this._runnings++,preCleanupEffect(this),this.fn()}finally{postCleanupEffect(this),this._runnings--,activeEffect=n,shouldTrack=t}}stop(){this.active&&(preCleanupEffect(this),postCleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}}function triggerComputed(r){return r.value}function preCleanupEffect(r){r._trackId++,r._depsLength=0}function postCleanupEffect(r){if(r.deps.length>r._depsLength){for(let t=r._depsLength;t{const n=new Map;return n.cleanup=r,n.computed=t,n},targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");function track(r,t,n){if(shouldTrack&&activeEffect){let a=targetMap.get(r);a||targetMap.set(r,a=new Map);let o=a.get(n);o||a.set(n,o=createDep(()=>a.delete(n))),trackEffect(activeEffect,o)}}function trigger$1(r,t,n,a,o,s){const l=targetMap.get(r);if(!l)return;let u=[];if(t==="clear")u=[...l.values()];else if(n==="length"&&isArray$3(r)){const c=Number(a);l.forEach((f,d)=>{(d==="length"||!isSymbol(d)&&d>=c)&&u.push(f)})}else switch(n!==void 0&&u.push(l.get(n)),t){case"add":isArray$3(r)?isIntegerKey(n)&&u.push(l.get("length")):(u.push(l.get(ITERATE_KEY)),isMap(r)&&u.push(l.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$3(r)||(u.push(l.get(ITERATE_KEY)),isMap(r)&&u.push(l.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(r)&&u.push(l.get(ITERATE_KEY));break}pauseScheduling();for(const c of u)c&&triggerEffects(c,4);resetScheduling()}function getDepFromReactive(r,t){const n=targetMap.get(r);return n&&n.get(t)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(isSymbol)),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const r={};return["includes","indexOf","lastIndexOf"].forEach(t=>{r[t]=function(...n){const a=toRaw(this);for(let s=0,l=this.length;s{r[t]=function(...n){pauseTracking(),pauseScheduling();const a=toRaw(this)[t].apply(this,n);return resetScheduling(),resetTracking(),a}}),r}function hasOwnProperty(r){isSymbol(r)||(r=String(r));const t=toRaw(this);return track(t,"has",r),t.hasOwnProperty(r)}class BaseReactiveHandler{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,a){const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return a===(o?s?shallowReadonlyMap:readonlyMap:s?shallowReactiveMap:reactiveMap).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const l=isArray$3(t);if(!o){if(l&&hasOwn$1(arrayInstrumentations,n))return Reflect.get(arrayInstrumentations,n,a);if(n==="hasOwnProperty")return hasOwnProperty}const u=Reflect.get(t,n,a);return(isSymbol(n)?builtInSymbols.has(n):isNonTrackableKeys(n))||(o||track(t,"get",n),s)?u:isRef(u)?l&&isIntegerKey(n)?u:u.value:isObject$4(u)?o?readonly(u):reactive(u):u}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(t=!1){super(!1,t)}set(t,n,a,o){let s=t[n];if(!this._isShallow){const c=isReadonly(s);if(!isShallow(a)&&!isReadonly(a)&&(s=toRaw(s),a=toRaw(a)),!isArray$3(t)&&isRef(s)&&!isRef(a))return c?!1:(s.value=a,!0)}const l=isArray$3(t)&&isIntegerKey(n)?Number(n)r,getProto=r=>Reflect.getPrototypeOf(r);function get$1(r,t,n=!1,a=!1){r=r.__v_raw;const o=toRaw(r),s=toRaw(t);n||(hasChanged(t,s)&&track(o,"get",t),track(o,"get",s));const{has:l}=getProto(o),u=a?toShallow:n?toReadonly:toReactive;if(l.call(o,t))return u(r.get(t));if(l.call(o,s))return u(r.get(s));r!==o&&r.get(t)}function has$1(r,t=!1){const n=this.__v_raw,a=toRaw(n),o=toRaw(r);return t||(hasChanged(r,o)&&track(a,"has",r),track(a,"has",o)),r===o?n.has(r):n.has(r)||n.has(o)}function size(r,t=!1){return r=r.__v_raw,!t&&track(toRaw(r),"iterate",ITERATE_KEY),Reflect.get(r,"size",r)}function add$1(r,t=!1){!t&&!isShallow(r)&&!isReadonly(r)&&(r=toRaw(r));const n=toRaw(this);return getProto(n).has.call(n,r)||(n.add(r),trigger$1(n,"add",r,r)),this}function set$2(r,t,n=!1){!n&&!isShallow(t)&&!isReadonly(t)&&(t=toRaw(t));const a=toRaw(this),{has:o,get:s}=getProto(a);let l=o.call(a,r);l||(r=toRaw(r),l=o.call(a,r));const u=s.call(a,r);return a.set(r,t),l?hasChanged(t,u)&&trigger$1(a,"set",r,t):trigger$1(a,"add",r,t),this}function deleteEntry(r){const t=toRaw(this),{has:n,get:a}=getProto(t);let o=n.call(t,r);o||(r=toRaw(r),o=n.call(t,r)),a&&a.call(t,r);const s=t.delete(r);return o&&trigger$1(t,"delete",r,void 0),s}function clear$1(){const r=toRaw(this),t=r.size!==0,n=r.clear();return t&&trigger$1(r,"clear",void 0,void 0),n}function createForEach(r,t){return function(a,o){const s=this,l=s.__v_raw,u=toRaw(l),c=t?toShallow:r?toReadonly:toReactive;return!r&&track(u,"iterate",ITERATE_KEY),l.forEach((f,d)=>a.call(o,c(f),c(d),s))}}function createIterableMethod(r,t,n){return function(...a){const o=this.__v_raw,s=toRaw(o),l=isMap(s),u=r==="entries"||r===Symbol.iterator&&l,c=r==="keys"&&l,f=o[r](...a),d=n?toShallow:t?toReadonly:toReactive;return!t&&track(s,"iterate",c?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:v,done:M}=f.next();return M?{value:v,done:M}:{value:u?[d(v[0]),d(v[1])]:d(v),done:M}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function createInstrumentations(){const r={get(s){return get$1(this,s)},get size(){return size(this)},has:has$1,add:add$1,set:set$2,delete:deleteEntry,clear:clear$1,forEach:createForEach(!1,!1)},t={get(s){return get$1(this,s,!1,!0)},get size(){return size(this)},has:has$1,add(s){return add$1.call(this,s,!0)},set(s,l){return set$2.call(this,s,l,!0)},delete:deleteEntry,clear:clear$1,forEach:createForEach(!1,!0)},n={get(s){return get$1(this,s,!0)},get size(){return size(this,!0)},has(s){return has$1.call(this,s,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},a={get(s){return get$1(this,s,!0,!0)},get size(){return size(this,!0)},has(s){return has$1.call(this,s,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=createIterableMethod(s,!1,!1),n[s]=createIterableMethod(s,!0,!1),t[s]=createIterableMethod(s,!1,!0),a[s]=createIterableMethod(s,!0,!0)}),[r,n,t,a]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(r,t){const n=t?r?shallowReadonlyInstrumentations:shallowInstrumentations:r?readonlyInstrumentations:mutableInstrumentations;return(a,o,s)=>o==="__v_isReactive"?!r:o==="__v_isReadonly"?r:o==="__v_raw"?a:Reflect.get(hasOwn$1(n,o)&&o in a?n:a,o,s)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(r){return r.__v_skip||!Object.isExtensible(r)?0:targetTypeMap(toRawType(r))}function reactive(r){return isReadonly(r)?r:createReactiveObject(r,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(r){return createReactiveObject(r,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(r){return createReactiveObject(r,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(r){return createReactiveObject(r,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(r,t,n,a,o){if(!isObject$4(r)||r.__v_raw&&!(t&&r.__v_isReactive))return r;const s=o.get(r);if(s)return s;const l=getTargetType(r);if(l===0)return r;const u=new Proxy(r,l===2?a:n);return o.set(r,u),u}function isReactive(r){return isReadonly(r)?isReactive(r.__v_raw):!!(r&&r.__v_isReactive)}function isReadonly(r){return!!(r&&r.__v_isReadonly)}function isShallow(r){return!!(r&&r.__v_isShallow)}function isProxy(r){return r?!!r.__v_raw:!1}function toRaw(r){const t=r&&r.__v_raw;return t?toRaw(t):r}function markRaw(r){return Object.isExtensible(r)&&def(r,"__v_skip",!0),r}const toReactive=r=>isObject$4(r)?reactive(r):r,toReadonly=r=>isObject$4(r)?readonly(r):r;class ComputedRefImpl{constructor(t,n,a,o){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ReactiveEffect(()=>t(this._value),()=>triggerRefValue(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=a}get value(){const t=toRaw(this);return(!t._cacheable||t.effect.dirty)&&hasChanged(t._value,t._value=t.effect.run())&&triggerRefValue(t,4),trackRefValue(t),t.effect._dirtyLevel>=2&&triggerRefValue(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function computed$1(r,t,n=!1){let a,o;const s=isFunction$1(r);return s?(a=r,o=NOOP):(a=r.get,o=r.set),new ComputedRefImpl(a,o,s||!o,n)}function trackRefValue(r){var t;shouldTrack&&activeEffect&&(r=toRaw(r),trackEffect(activeEffect,(t=r.dep)!=null?t:r.dep=createDep(()=>r.dep=void 0,r instanceof ComputedRefImpl?r:void 0)))}function triggerRefValue(r,t=4,n,a){r=toRaw(r);const o=r.dep;o&&triggerEffects(o,t)}function isRef(r){return!!(r&&r.__v_isRef===!0)}function ref(r){return createRef(r,!1)}function shallowRef(r){return createRef(r,!0)}function createRef(r,t){return isRef(r)?r:new RefImpl(r,t)}class RefImpl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:toRaw(t),this._value=n?t:toReactive(t)}get value(){return trackRefValue(this),this._value}set value(t){const n=this.__v_isShallow||isShallow(t)||isReadonly(t);t=n?t:toRaw(t),hasChanged(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:toReactive(t),triggerRefValue(this,4))}}function unref(r){return isRef(r)?r.value:r}const shallowUnwrapHandlers={get:(r,t,n)=>unref(Reflect.get(r,t,n)),set:(r,t,n,a)=>{const o=r[t];return isRef(o)&&!isRef(n)?(o.value=n,!0):Reflect.set(r,t,n,a)}};function proxyRefs(r){return isReactive(r)?r:new Proxy(r,shallowUnwrapHandlers)}function toRefs(r){const t=isArray$3(r)?new Array(r.length):{};for(const n in r)t[n]=propertyToRef(r,n);return t}class ObjectRefImpl{constructor(t,n,a){this._object=t,this._key=n,this._defaultValue=a,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function toRef(r,t,n){return isRef(r)?r:isFunction$1(r)?new GetterRefImpl(r):isObject$4(r)&&arguments.length>1?propertyToRef(r,t,n):ref(r)}function propertyToRef(r,t,n){const a=r[t];return isRef(a)?a:new ObjectRefImpl(r,t,n)}/**
+* @vue/runtime-core v3.4.38
+* (c) 2018-present Yuxi (Evan) You and Vue contributors
+* @license MIT
+**/const stack=[];let isWarning=!1;function warn$1(r,...t){if(isWarning)return;isWarning=!0,pauseTracking();const n=stack.length?stack[stack.length-1].component:null,a=n&&n.appContext.config.warnHandler,o=getComponentTrace();if(a)callWithErrorHandling(a,n,11,[r+t.map(s=>{var l,u;return(u=(l=s.toString)==null?void 0:l.call(s))!=null?u:JSON.stringify(s)}).join(""),n&&n.proxy,o.map(({vnode:s})=>`at <${formatComponentName(n,s.type)}>`).join(`
+`),o]);else{const s=[`[Vue warn]: ${r}`,...t];o.length&&s.push(`
+`,...formatTrace(o)),console.warn(...s)}resetTracking(),isWarning=!1}function getComponentTrace(){let r=stack[stack.length-1];if(!r)return[];const t=[];for(;r;){const n=t[0];n&&n.vnode===r?n.recurseCount++:t.push({vnode:r,recurseCount:0});const a=r.component&&r.component.parent;r=a&&a.vnode}return t}function formatTrace(r){const t=[];return r.forEach((n,a)=>{t.push(...a===0?[]:[`
+`],...formatTraceEntry(n))}),t}function formatTraceEntry({vnode:r,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",a=r.component?r.component.parent==null:!1,o=` at <${formatComponentName(r.component,r.type,a)}`,s=">"+n;return r.props?[o,...formatProps(r.props),s]:[o+s]}function formatProps(r){const t=[],n=Object.keys(r);return n.slice(0,3).forEach(a=>{t.push(...formatProp(a,r[a]))}),n.length>3&&t.push(" ..."),t}function formatProp(r,t,n){return isString$1(t)?(t=JSON.stringify(t),n?t:[`${r}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${r}=${t}`]:isRef(t)?(t=formatProp(r,toRaw(t.value),!0),n?t:[`${r}=Ref<`,t,">"]):isFunction$1(t)?[`${r}=fn${t.name?`<${t.name}>`:""}`]:(t=toRaw(t),n?t:[`${r}=`,t])}function callWithErrorHandling(r,t,n,a){try{return a?r(...a):r()}catch(o){handleError(o,t,n)}}function callWithAsyncErrorHandling(r,t,n,a){if(isFunction$1(r)){const o=callWithErrorHandling(r,t,n,a);return o&&isPromise(o)&&o.catch(s=>{handleError(s,t,n)}),o}if(isArray$3(r)){const o=[];for(let s=0;s>>1,o=queue[a],s=getId$1(o);sflushIndex&&queue.splice(t,1)}function queuePostFlushCb(r){isArray$3(r)?pendingPostFlushCbs.push(...r):(!activePostFlushCbs||!activePostFlushCbs.includes(r,r.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(r),queueFlush()}function flushPreFlushCbs(r,t,n=isFlushing?flushIndex+1:0){for(;ngetId$1(n)-getId$1(a));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...t);return}for(activePostFlushCbs=t,postFlushIndex=0;postFlushIndexr.id==null?1/0:r.id,comparator=(r,t)=>{const n=getId$1(r)-getId$1(t);if(n===0){if(r.pre&&!t.pre)return-1;if(t.pre&&!r.pre)return 1}return n};function flushJobs(r){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);try{for(flushIndex=0;flushIndex{a._d&&setBlockTracking(-1);const s=setCurrentRenderingInstance(t);let l;try{l=r(...o)}finally{setCurrentRenderingInstance(s),a._d&&setBlockTracking(1)}return l};return a._n=!0,a._c=!0,a._d=!0,a}function withDirectives(r,t){if(currentRenderingInstance===null)return r;const n=getComponentPublicInstance(currentRenderingInstance),a=r.dirs||(r.dirs=[]);for(let o=0;o{r.isMounted=!0}),onBeforeUnmount(()=>{r.isUnmounting=!0}),r}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=r=>{const t=r.subTree;return t.component?recursiveGetSubtree(t.component):t},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(r,{slots:t}){const n=getCurrentInstance(),a=useTransitionState();return()=>{const o=t.default&&getTransitionRawChildren(t.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){for(const M of o)if(M.type!==Comment){s=M;break}}const l=toRaw(r),{mode:u}=l;if(a.isLeaving)return emptyPlaceholder(s);const c=getKeepAliveChild(s);if(!c)return emptyPlaceholder(s);let f=resolveTransitionHooks(c,l,a,n,M=>f=M);setTransitionHooks(c,f);const d=n.subTree,v=d&&getKeepAliveChild(d);if(v&&v.type!==Comment&&!isSameVNodeType(c,v)&&recursiveGetSubtree(n).type!==Comment){const M=resolveTransitionHooks(v,l,a,n);if(setTransitionHooks(v,M),u==="out-in"&&c.type!==Comment)return a.isLeaving=!0,M.afterLeave=()=>{a.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},emptyPlaceholder(s);u==="in-out"&&c.type!==Comment&&(M.delayLeave=(g,R,I)=>{const O=getLeavingNodesForType(a,v);O[String(v.key)]=v,g[leaveCbKey]=()=>{R(),g[leaveCbKey]=void 0,delete f.delayedLeave},f.delayedLeave=I})}return s}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(r,t){const{leavingVNodes:n}=r;let a=n.get(t.type);return a||(a=Object.create(null),n.set(t.type,a)),a}function resolveTransitionHooks(r,t,n,a,o){const{appear:s,mode:l,persisted:u=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:d,onEnterCancelled:v,onBeforeLeave:M,onLeave:g,onAfterLeave:R,onLeaveCancelled:I,onBeforeAppear:O,onAppear:N,onAfterAppear:$,onAppearCancelled:F}=t,G=String(r.key),q=getLeavingNodesForType(n,r),Y=(J,ee)=>{J&&callWithAsyncErrorHandling(J,a,9,ee)},W=(J,ee)=>{const K=ee[1];Y(J,ee),isArray$3(J)?J.every(Q=>Q.length<=1)&&K():J.length<=1&&K()},Z={mode:l,persisted:u,beforeEnter(J){let ee=c;if(!n.isMounted)if(s)ee=O||c;else return;J[leaveCbKey]&&J[leaveCbKey](!0);const K=q[G];K&&isSameVNodeType(r,K)&&K.el[leaveCbKey]&&K.el[leaveCbKey](),Y(ee,[J])},enter(J){let ee=f,K=d,Q=v;if(!n.isMounted)if(s)ee=N||f,K=$||d,Q=F||v;else return;let ie=!1;const oe=J[enterCbKey]=se=>{ie||(ie=!0,se?Y(Q,[J]):Y(K,[J]),Z.delayedLeave&&Z.delayedLeave(),J[enterCbKey]=void 0)};ee?W(ee,[J,oe]):oe()},leave(J,ee){const K=String(r.key);if(J[enterCbKey]&&J[enterCbKey](!0),n.isUnmounting)return ee();Y(M,[J]);let Q=!1;const ie=J[leaveCbKey]=oe=>{Q||(Q=!0,ee(),oe?Y(I,[J]):Y(R,[J]),J[leaveCbKey]=void 0,q[K]===r&&delete q[K])};q[K]=r,g?W(g,[J,ie]):ie()},clone(J){const ee=resolveTransitionHooks(J,t,n,a,o);return o&&o(ee),ee}};return Z}function emptyPlaceholder(r){if(isKeepAlive(r))return r=cloneVNode(r),r.children=null,r}function getKeepAliveChild(r){if(!isKeepAlive(r))return r;const{shapeFlag:t,children:n}=r;if(n){if(t&16)return n[0];if(t&32&&isFunction$1(n.default))return n.default()}}function setTransitionHooks(r,t){r.shapeFlag&6&&r.component?setTransitionHooks(r.component.subTree,t):r.shapeFlag&128?(r.ssContent.transition=t.clone(r.ssContent),r.ssFallback.transition=t.clone(r.ssFallback)):r.transition=t}function getTransitionRawChildren(r,t=!1,n){let a=[],o=0;for(let s=0;s1)for(let s=0;s!!r.type.__asyncLoader,isKeepAlive=r=>r.type.__isKeepAlive;function onActivated(r,t){registerKeepAliveHook(r,"a",t)}function onDeactivated(r,t){registerKeepAliveHook(r,"da",t)}function registerKeepAliveHook(r,t,n=currentInstance){const a=r.__wdc||(r.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return r()});if(injectHook(t,a,n),n){let o=n.parent;for(;o&&o.parent;)isKeepAlive(o.parent.vnode)&&injectToKeepAliveRoot(a,t,n,o),o=o.parent}}function injectToKeepAliveRoot(r,t,n,a){const o=injectHook(t,r,a,!0);onUnmounted(()=>{remove(a[t],o)},n)}function injectHook(r,t,n=currentInstance,a=!1){if(n){const o=n[r]||(n[r]=[]),s=t.__weh||(t.__weh=(...l)=>{pauseTracking();const u=setCurrentInstance(n),c=callWithAsyncErrorHandling(t,n,r,l);return u(),resetTracking(),c});return a?o.unshift(s):o.push(s),s}}const createHook=r=>(t,n=currentInstance)=>{(!isInSSRComponentSetup||r==="sp")&&injectHook(r,(...a)=>t(...a),n)},onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(r,t=currentInstance){injectHook("ec",r,t)}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function renderList(r,t,n,a){let o;const s=n;if(isArray$3(r)||isString$1(r)){o=new Array(r.length);for(let l=0,u=r.length;lt(l,u,void 0,s));else{const l=Object.keys(r);o=new Array(l.length);for(let u=0,c=l.length;uisVNode(t)?!(t.type===Comment||t.type===Fragment&&!ensureValidVNode(t.children)):!0)?r:null}const getPublicInstance=r=>r?isStatefulComponent(r)?getComponentPublicInstance(r):getPublicInstance(r.parent):null,publicPropertiesMap=extend$1(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>getPublicInstance(r.parent),$root:r=>getPublicInstance(r.root),$emit:r=>r.emit,$options:r=>resolveMergedOptions(r),$forceUpdate:r=>r.f||(r.f=()=>{r.effect.dirty=!0,queueJob(r.update)}),$nextTick:r=>r.n||(r.n=nextTick.bind(r.proxy)),$watch:r=>instanceWatch.bind(r)}),hasSetupBinding=(r,t)=>r!==EMPTY_OBJ$1&&!r.__isScriptSetup&&hasOwn$1(r,t),PublicInstanceProxyHandlers={get({_:r},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:a,data:o,props:s,accessCache:l,type:u,appContext:c}=r;let f;if(t[0]!=="$"){const g=l[t];if(g!==void 0)switch(g){case 1:return a[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(hasSetupBinding(a,t))return l[t]=1,a[t];if(o!==EMPTY_OBJ$1&&hasOwn$1(o,t))return l[t]=2,o[t];if((f=r.propsOptions[0])&&hasOwn$1(f,t))return l[t]=3,s[t];if(n!==EMPTY_OBJ$1&&hasOwn$1(n,t))return l[t]=4,n[t];shouldCacheAccess&&(l[t]=0)}}const d=publicPropertiesMap[t];let v,M;if(d)return t==="$attrs"&&track(r.attrs,"get",""),d(r);if((v=u.__cssModules)&&(v=v[t]))return v;if(n!==EMPTY_OBJ$1&&hasOwn$1(n,t))return l[t]=4,n[t];if(M=c.config.globalProperties,hasOwn$1(M,t))return M[t]},set({_:r},t,n){const{data:a,setupState:o,ctx:s}=r;return hasSetupBinding(o,t)?(o[t]=n,!0):a!==EMPTY_OBJ$1&&hasOwn$1(a,t)?(a[t]=n,!0):hasOwn$1(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(s[t]=n,!0)},has({_:{data:r,setupState:t,accessCache:n,ctx:a,appContext:o,propsOptions:s}},l){let u;return!!n[l]||r!==EMPTY_OBJ$1&&hasOwn$1(r,l)||hasSetupBinding(t,l)||(u=s[0])&&hasOwn$1(u,l)||hasOwn$1(a,l)||hasOwn$1(publicPropertiesMap,l)||hasOwn$1(o.config.globalProperties,l)},defineProperty(r,t,n){return n.get!=null?r._.accessCache[t]=0:hasOwn$1(n,"value")&&this.set(r,t,n.value,null),Reflect.defineProperty(r,t,n)}};function useSlots(){return getContext().slots}function getContext(){const r=getCurrentInstance();return r.setupContext||(r.setupContext=createSetupContext(r))}function normalizePropsOrEmits(r){return isArray$3(r)?r.reduce((t,n)=>(t[n]=null,t),{}):r}let shouldCacheAccess=!0;function applyOptions(r){const t=resolveMergedOptions(r),n=r.proxy,a=r.ctx;shouldCacheAccess=!1,t.beforeCreate&&callHook$1(t.beforeCreate,r,"bc");const{data:o,computed:s,methods:l,watch:u,provide:c,inject:f,created:d,beforeMount:v,mounted:M,beforeUpdate:g,updated:R,activated:I,deactivated:O,beforeDestroy:N,beforeUnmount:$,destroyed:F,unmounted:G,render:q,renderTracked:Y,renderTriggered:W,errorCaptured:Z,serverPrefetch:J,expose:ee,inheritAttrs:K,components:Q,directives:ie,filters:oe}=t;if(f&&resolveInjections(f,a,null),l)for(const ge in l){const ce=l[ge];isFunction$1(ce)&&(a[ge]=ce.bind(n))}if(o){const ge=o.call(n,n);isObject$4(ge)&&(r.data=reactive(ge))}if(shouldCacheAccess=!0,s)for(const ge in s){const ce=s[ge],ve=isFunction$1(ce)?ce.bind(n,n):isFunction$1(ce.get)?ce.get.bind(n,n):NOOP,ye=!isFunction$1(ce)&&isFunction$1(ce.set)?ce.set.bind(n):NOOP,Pe=computed({get:ve,set:ye});Object.defineProperty(a,ge,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:we=>Pe.value=we})}if(u)for(const ge in u)createWatcher(u[ge],a,n,ge);if(c){const ge=isFunction$1(c)?c.call(n):c;Reflect.ownKeys(ge).forEach(ce=>{provide(ce,ge[ce])})}d&&callHook$1(d,r,"c");function ue(ge,ce){isArray$3(ce)?ce.forEach(ve=>ge(ve.bind(n))):ce&&ge(ce.bind(n))}if(ue(onBeforeMount,v),ue(onMounted,M),ue(onBeforeUpdate,g),ue(onUpdated,R),ue(onActivated,I),ue(onDeactivated,O),ue(onErrorCaptured,Z),ue(onRenderTracked,Y),ue(onRenderTriggered,W),ue(onBeforeUnmount,$),ue(onUnmounted,G),ue(onServerPrefetch,J),isArray$3(ee))if(ee.length){const ge=r.exposed||(r.exposed={});ee.forEach(ce=>{Object.defineProperty(ge,ce,{get:()=>n[ce],set:ve=>n[ce]=ve})})}else r.exposed||(r.exposed={});q&&r.render===NOOP&&(r.render=q),K!=null&&(r.inheritAttrs=K),Q&&(r.components=Q),ie&&(r.directives=ie)}function resolveInjections(r,t,n=NOOP){isArray$3(r)&&(r=normalizeInject(r));for(const a in r){const o=r[a];let s;isObject$4(o)?"default"in o?s=inject(o.from||a,o.default,!0):s=inject(o.from||a):s=inject(o),isRef(s)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>s.value,set:l=>s.value=l}):t[a]=s}}function callHook$1(r,t,n){callWithAsyncErrorHandling(isArray$3(r)?r.map(a=>a.bind(t.proxy)):r.bind(t.proxy),t,n)}function createWatcher(r,t,n,a){const o=a.includes(".")?createPathGetter(n,a):()=>n[a];if(isString$1(r)){const s=t[r];isFunction$1(s)&&watch(o,s)}else if(isFunction$1(r))watch(o,r.bind(n));else if(isObject$4(r))if(isArray$3(r))r.forEach(s=>createWatcher(s,t,n,a));else{const s=isFunction$1(r.handler)?r.handler.bind(n):t[r.handler];isFunction$1(s)&&watch(o,s,r)}}function resolveMergedOptions(r){const t=r.type,{mixins:n,extends:a}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:l}}=r.appContext,u=s.get(t);let c;return u?c=u:!o.length&&!n&&!a?c=t:(c={},o.length&&o.forEach(f=>mergeOptions$1(c,f,l,!0)),mergeOptions$1(c,t,l)),isObject$4(t)&&s.set(t,c),c}function mergeOptions$1(r,t,n,a=!1){const{mixins:o,extends:s}=t;s&&mergeOptions$1(r,s,n,!0),o&&o.forEach(l=>mergeOptions$1(r,l,n,!0));for(const l in t)if(!(a&&l==="expose")){const u=internalOptionMergeStrats[l]||n&&n[l];r[l]=u?u(r[l],t[l]):t[l]}return r}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(r,t){return t?r?function(){return extend$1(isFunction$1(r)?r.call(this,this):r,isFunction$1(t)?t.call(this,this):t)}:t:r}function mergeInject(r,t){return mergeObjectOptions(normalizeInject(r),normalizeInject(t))}function normalizeInject(r){if(isArray$3(r)){const t={};for(let n=0;n1)return n&&isFunction$1(t)?t.call(a&&a.proxy):t}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}const internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=r=>Object.getPrototypeOf(r)===internalObjectProto;function initProps$1(r,t,n,a=!1){const o={},s=createInternalObject();r.propsDefaults=Object.create(null),setFullProps(r,t,o,s);for(const l in r.propsOptions[0])l in o||(o[l]=void 0);n?r.props=a?o:shallowReactive(o):r.type.props?r.props=o:r.props=s,r.attrs=s}function updateProps$2(r,t,n,a){const{props:o,attrs:s,vnode:{patchFlag:l}}=r,u=toRaw(o),[c]=r.propsOptions;let f=!1;if((a||l>0)&&!(l&16)){if(l&8){const d=r.vnode.dynamicProps;for(let v=0;v{c=!0;const[M,g]=normalizePropsOptions(v,t,!0);extend$1(l,M),g&&u.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),r.extends&&d(r.extends),r.mixins&&r.mixins.forEach(d)}if(!s&&!c)return isObject$4(r)&&a.set(r,EMPTY_ARR),EMPTY_ARR;if(isArray$3(s))for(let d=0;dr[0]==="_"||r==="$stable",normalizeSlotValue=r=>isArray$3(r)?r.map(normalizeVNode):[normalizeVNode(r)],normalizeSlot$1=(r,t,n)=>{if(t._n)return t;const a=withCtx((...o)=>normalizeSlotValue(t(...o)),n);return a._c=!1,a},normalizeObjectSlots=(r,t,n)=>{const a=r._ctx;for(const o in r){if(isInternalKey(o))continue;const s=r[o];if(isFunction$1(s))t[o]=normalizeSlot$1(o,s,a);else if(s!=null){const l=normalizeSlotValue(s);t[o]=()=>l}}},normalizeVNodeSlots=(r,t)=>{const n=normalizeSlotValue(t);r.slots.default=()=>n},assignSlots=(r,t,n)=>{for(const a in t)(n||a!=="_")&&(r[a]=t[a])},initSlots=(r,t,n)=>{const a=r.slots=createInternalObject();if(r.vnode.shapeFlag&32){const o=t._;o?(assignSlots(a,t,n),n&&def(a,"_",o,!0)):normalizeObjectSlots(t,a)}else t&&normalizeVNodeSlots(r,t)},updateSlots=(r,t,n)=>{const{vnode:a,slots:o}=r;let s=!0,l=EMPTY_OBJ$1;if(a.shapeFlag&32){const u=t._;u?n&&u===1?s=!1:assignSlots(o,t,n):(s=!t.$stable,normalizeObjectSlots(t,o)),l=t}else t&&(normalizeVNodeSlots(r,t),l={default:1});if(s)for(const u in o)!isInternalKey(u)&&l[u]==null&&delete o[u]};function setRef(r,t,n,a,o=!1){if(isArray$3(r)){r.forEach((M,g)=>setRef(M,t&&(isArray$3(t)?t[g]:t),n,a,o));return}if(isAsyncWrapper(a)&&!o)return;const s=a.shapeFlag&4?getComponentPublicInstance(a.component):a.el,l=o?null:s,{i:u,r:c}=r,f=t&&t.r,d=u.refs===EMPTY_OBJ$1?u.refs={}:u.refs,v=u.setupState;if(f!=null&&f!==c&&(isString$1(f)?(d[f]=null,hasOwn$1(v,f)&&(v[f]=null)):isRef(f)&&(f.value=null)),isFunction$1(c))callWithErrorHandling(c,u,12,[l,d]);else{const M=isString$1(c),g=isRef(c);if(M||g){const R=()=>{if(r.f){const I=M?hasOwn$1(v,c)?v[c]:d[c]:c.value;o?isArray$3(I)&&remove(I,s):isArray$3(I)?I.includes(s)||I.push(s):M?(d[c]=[s],hasOwn$1(v,c)&&(v[c]=d[c])):(c.value=[s],r.k&&(d[r.k]=c.value))}else M?(d[c]=l,hasOwn$1(v,c)&&(v[c]=l)):g&&(c.value=l,r.k&&(d[r.k]=l))};l?(R.id=-1,queuePostRenderEffect(R,n)):R()}}}const TeleportEndKey=Symbol("_vte"),isTeleport=r=>r.__isTeleport,isTeleportDisabled=r=>r&&(r.disabled||r.disabled===""),isTargetSVG=r=>typeof SVGElement<"u"&&r instanceof SVGElement,isTargetMathML=r=>typeof MathMLElement=="function"&&r instanceof MathMLElement,resolveTarget=(r,t)=>{const n=r&&r.to;return isString$1(n)?t?t(n):null:n},TeleportImpl={name:"Teleport",__isTeleport:!0,process(r,t,n,a,o,s,l,u,c,f){const{mc:d,pc:v,pbc:M,o:{insert:g,querySelector:R,createText:I,createComment:O}}=f,N=isTeleportDisabled(t.props);let{shapeFlag:$,children:F,dynamicChildren:G}=t;if(r==null){const q=t.el=I(""),Y=t.anchor=I("");g(q,n,a),g(Y,n,a);const W=t.target=resolveTarget(t.props,R),Z=prepareAnchor(W,t,I,g);W&&(l==="svg"||isTargetSVG(W)?l="svg":(l==="mathml"||isTargetMathML(W))&&(l="mathml"));const J=(ee,K)=>{$&16&&d(F,ee,K,o,s,l,u,c)};N?J(n,Y):W&&J(W,Z)}else{t.el=r.el,t.targetStart=r.targetStart;const q=t.anchor=r.anchor,Y=t.target=r.target,W=t.targetAnchor=r.targetAnchor,Z=isTeleportDisabled(r.props),J=Z?n:Y,ee=Z?q:W;if(l==="svg"||isTargetSVG(Y)?l="svg":(l==="mathml"||isTargetMathML(Y))&&(l="mathml"),G?(M(r.dynamicChildren,G,J,o,s,l,u),traverseStaticChildren(r,t,!0)):c||v(r,t,J,ee,o,s,l,u,!1),N)Z?t.props&&r.props&&t.props.to!==r.props.to&&(t.props.to=r.props.to):moveTeleport(t,n,q,f,1);else if((t.props&&t.props.to)!==(r.props&&r.props.to)){const K=t.target=resolveTarget(t.props,R);K&&moveTeleport(t,K,null,f,0)}else Z&&moveTeleport(t,Y,W,f,1)}updateCssVars(t)},remove(r,t,n,{um:a,o:{remove:o}},s){const{shapeFlag:l,children:u,anchor:c,targetStart:f,targetAnchor:d,target:v,props:M}=r;if(v&&(o(f),o(d)),s&&o(c),l&16){const g=s||!isTeleportDisabled(M);for(let R=0;R{if(ne===ae)return;ne&&!isSameVNodeType(ne,ae)&&(de=fe(ne),we(ne,pe,_e,!0),ne=null),ae.patchFlag===-2&&(be=!1,ae.dynamicChildren=null);const{type:me,ref:Re,shapeFlag:Oe}=ae;switch(me){case Text:O(ne,ae,le,de);break;case Comment:N(ne,ae,le,de);break;case Static:ne==null&&$(ae,le,de,Ae);break;case Fragment:Q(ne,ae,le,de,pe,_e,Ae,Ce,be);break;default:Oe&1?q(ne,ae,le,de,pe,_e,Ae,Ce,be):Oe&6?ie(ne,ae,le,de,pe,_e,Ae,Ce,be):(Oe&64||Oe&128)&&me.process(ne,ae,le,de,pe,_e,Ae,Ce,be,xe)}Re!=null&&pe&&setRef(Re,ne&&ne.ref,_e,ae||ne,!ae)},O=(ne,ae,le,de)=>{if(ne==null)a(ae.el=u(ae.children),le,de);else{const pe=ae.el=ne.el;ae.children!==ne.children&&f(pe,ae.children)}},N=(ne,ae,le,de)=>{ne==null?a(ae.el=c(ae.children||""),le,de):ae.el=ne.el},$=(ne,ae,le,de)=>{[ne.el,ne.anchor]=R(ne.children,ae,le,de,ne.el,ne.anchor)},F=({el:ne,anchor:ae},le,de)=>{let pe;for(;ne&&ne!==ae;)pe=M(ne),a(ne,le,de),ne=pe;a(ae,le,de)},G=({el:ne,anchor:ae})=>{let le;for(;ne&&ne!==ae;)le=M(ne),o(ne),ne=le;o(ae)},q=(ne,ae,le,de,pe,_e,Ae,Ce,be)=>{ae.type==="svg"?Ae="svg":ae.type==="math"&&(Ae="mathml"),ne==null?Y(ae,le,de,pe,_e,Ae,Ce,be):J(ne,ae,pe,_e,Ae,Ce,be)},Y=(ne,ae,le,de,pe,_e,Ae,Ce)=>{let be,me;const{props:Re,shapeFlag:Oe,transition:Le,dirs:Fe}=ne;if(be=ne.el=l(ne.type,_e,Re&&Re.is,Re),Oe&8?d(be,ne.children):Oe&16&&Z(ne.children,be,null,de,pe,resolveChildrenNamespace(ne,_e),Ae,Ce),Fe&&invokeDirectiveHook(ne,null,de,"created"),W(be,ne,ne.scopeId,Ae,de),Re){for(const Ye in Re)Ye!=="value"&&!isReservedProp(Ye)&&s(be,Ye,null,Re[Ye],_e,de);"value"in Re&&s(be,"value",null,Re.value,_e),(me=Re.onVnodeBeforeMount)&&invokeVNodeHook(me,de,ne)}Fe&&invokeDirectiveHook(ne,null,de,"beforeMount");const He=needTransition(pe,Le);He&&Le.beforeEnter(be),a(be,ae,le),((me=Re&&Re.onVnodeMounted)||He||Fe)&&queuePostRenderEffect(()=>{me&&invokeVNodeHook(me,de,ne),He&&Le.enter(be),Fe&&invokeDirectiveHook(ne,null,de,"mounted")},pe)},W=(ne,ae,le,de,pe)=>{if(le&&g(ne,le),de)for(let _e=0;_e{for(let me=be;me{const Ce=ae.el=ne.el;let{patchFlag:be,dynamicChildren:me,dirs:Re}=ae;be|=ne.patchFlag&16;const Oe=ne.props||EMPTY_OBJ$1,Le=ae.props||EMPTY_OBJ$1;let Fe;if(le&&toggleRecurse(le,!1),(Fe=Le.onVnodeBeforeUpdate)&&invokeVNodeHook(Fe,le,ae,ne),Re&&invokeDirectiveHook(ae,ne,le,"beforeUpdate"),le&&toggleRecurse(le,!0),(Oe.innerHTML&&Le.innerHTML==null||Oe.textContent&&Le.textContent==null)&&d(Ce,""),me?ee(ne.dynamicChildren,me,Ce,le,de,resolveChildrenNamespace(ae,pe),_e):Ae||ce(ne,ae,Ce,null,le,de,resolveChildrenNamespace(ae,pe),_e,!1),be>0){if(be&16)K(Ce,Oe,Le,le,pe);else if(be&2&&Oe.class!==Le.class&&s(Ce,"class",null,Le.class,pe),be&4&&s(Ce,"style",Oe.style,Le.style,pe),be&8){const He=ae.dynamicProps;for(let Ye=0;Ye{Fe&&invokeVNodeHook(Fe,le,ae,ne),Re&&invokeDirectiveHook(ae,ne,le,"updated")},de)},ee=(ne,ae,le,de,pe,_e,Ae)=>{for(let Ce=0;Ce{if(ae!==le){if(ae!==EMPTY_OBJ$1)for(const _e in ae)!isReservedProp(_e)&&!(_e in le)&&s(ne,_e,ae[_e],null,pe,de);for(const _e in le){if(isReservedProp(_e))continue;const Ae=le[_e],Ce=ae[_e];Ae!==Ce&&_e!=="value"&&s(ne,_e,Ce,Ae,pe,de)}"value"in le&&s(ne,"value",ae.value,le.value,pe)}},Q=(ne,ae,le,de,pe,_e,Ae,Ce,be)=>{const me=ae.el=ne?ne.el:u(""),Re=ae.anchor=ne?ne.anchor:u("");let{patchFlag:Oe,dynamicChildren:Le,slotScopeIds:Fe}=ae;Fe&&(Ce=Ce?Ce.concat(Fe):Fe),ne==null?(a(me,le,de),a(Re,le,de),Z(ae.children||[],le,Re,pe,_e,Ae,Ce,be)):Oe>0&&Oe&64&&Le&&ne.dynamicChildren?(ee(ne.dynamicChildren,Le,le,pe,_e,Ae,Ce),(ae.key!=null||pe&&ae===pe.subTree)&&traverseStaticChildren(ne,ae,!0)):ce(ne,ae,le,Re,pe,_e,Ae,Ce,be)},ie=(ne,ae,le,de,pe,_e,Ae,Ce,be)=>{ae.slotScopeIds=Ce,ne==null?ae.shapeFlag&512?pe.ctx.activate(ae,le,de,Ae,be):oe(ae,le,de,pe,_e,Ae,be):se(ne,ae,be)},oe=(ne,ae,le,de,pe,_e,Ae)=>{const Ce=ne.component=createComponentInstance(ne,de,pe);if(isKeepAlive(ne)&&(Ce.ctx.renderer=xe),setupComponent(Ce,!1,Ae),Ce.asyncDep){if(pe&&pe.registerDep(Ce,ue,Ae),!ne.el){const be=Ce.subTree=createVNode(Comment);N(null,be,ae,le)}}else ue(Ce,ne,ae,le,pe,_e,Ae)},se=(ne,ae,le)=>{const de=ae.component=ne.component;if(shouldUpdateComponent(ne,ae,le))if(de.asyncDep&&!de.asyncResolved){ge(de,ae,le);return}else de.next=ae,invalidateJob(de.update),de.effect.dirty=!0,de.update();else ae.el=ne.el,de.vnode=ae},ue=(ne,ae,le,de,pe,_e,Ae)=>{const Ce=()=>{if(ne.isMounted){let{next:Re,bu:Oe,u:Le,parent:Fe,vnode:He}=ne;{const Xe=locateNonHydratedAsyncRoot(ne);if(Xe){Re&&(Re.el=He.el,ge(ne,Re,Ae)),Xe.asyncDep.then(()=>{ne.isUnmounted||Ce()});return}}let Ye=Re,ze;toggleRecurse(ne,!1),Re?(Re.el=He.el,ge(ne,Re,Ae)):Re=He,Oe&&invokeArrayFns(Oe),(ze=Re.props&&Re.props.onVnodeBeforeUpdate)&&invokeVNodeHook(ze,Fe,Re,He),toggleRecurse(ne,!0);const We=renderComponentRoot(ne),qe=ne.subTree;ne.subTree=We,I(qe,We,v(qe.el),fe(qe),ne,pe,_e),Re.el=We.el,Ye===null&&updateHOCHostEl(ne,We.el),Le&&queuePostRenderEffect(Le,pe),(ze=Re.props&&Re.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(ze,Fe,Re,He),pe)}else{let Re;const{el:Oe,props:Le}=ae,{bm:Fe,m:He,parent:Ye}=ne,ze=isAsyncWrapper(ae);if(toggleRecurse(ne,!1),Fe&&invokeArrayFns(Fe),!ze&&(Re=Le&&Le.onVnodeBeforeMount)&&invokeVNodeHook(Re,Ye,ae),toggleRecurse(ne,!0),Oe&&De){const We=()=>{ne.subTree=renderComponentRoot(ne),De(Oe,ne.subTree,ne,pe,null)};ze?ae.type.__asyncLoader().then(()=>!ne.isUnmounted&&We()):We()}else{const We=ne.subTree=renderComponentRoot(ne);I(null,We,le,de,ne,pe,_e),ae.el=We.el}if(He&&queuePostRenderEffect(He,pe),!ze&&(Re=Le&&Le.onVnodeMounted)){const We=ae;queuePostRenderEffect(()=>invokeVNodeHook(Re,Ye,We),pe)}(ae.shapeFlag&256||Ye&&isAsyncWrapper(Ye.vnode)&&Ye.vnode.shapeFlag&256)&&ne.a&&queuePostRenderEffect(ne.a,pe),ne.isMounted=!0,ae=le=de=null}},be=ne.effect=new ReactiveEffect(Ce,NOOP,()=>queueJob(me),ne.scope),me=ne.update=()=>{be.dirty&&be.run()};me.i=ne,me.id=ne.uid,toggleRecurse(ne,!0),me()},ge=(ne,ae,le)=>{ae.component=ne;const de=ne.vnode.props;ne.vnode=ae,ne.next=null,updateProps$2(ne,ae.props,de,le),updateSlots(ne,ae.children,le),pauseTracking(),flushPreFlushCbs(ne),resetTracking()},ce=(ne,ae,le,de,pe,_e,Ae,Ce,be=!1)=>{const me=ne&&ne.children,Re=ne?ne.shapeFlag:0,Oe=ae.children,{patchFlag:Le,shapeFlag:Fe}=ae;if(Le>0){if(Le&128){ye(me,Oe,le,de,pe,_e,Ae,Ce,be);return}else if(Le&256){ve(me,Oe,le,de,pe,_e,Ae,Ce,be);return}}Fe&8?(Re&16&&Ve(me,pe,_e),Oe!==me&&d(le,Oe)):Re&16?Fe&16?ye(me,Oe,le,de,pe,_e,Ae,Ce,be):Ve(me,pe,_e,!0):(Re&8&&d(le,""),Fe&16&&Z(Oe,le,de,pe,_e,Ae,Ce,be))},ve=(ne,ae,le,de,pe,_e,Ae,Ce,be)=>{ne=ne||EMPTY_ARR,ae=ae||EMPTY_ARR;const me=ne.length,Re=ae.length,Oe=Math.min(me,Re);let Le;for(Le=0;LeRe?Ve(ne,pe,_e,!0,!1,Oe):Z(ae,le,de,pe,_e,Ae,Ce,be,Oe)},ye=(ne,ae,le,de,pe,_e,Ae,Ce,be)=>{let me=0;const Re=ae.length;let Oe=ne.length-1,Le=Re-1;for(;me<=Oe&&me<=Le;){const Fe=ne[me],He=ae[me]=be?cloneIfMounted(ae[me]):normalizeVNode(ae[me]);if(isSameVNodeType(Fe,He))I(Fe,He,le,null,pe,_e,Ae,Ce,be);else break;me++}for(;me<=Oe&&me<=Le;){const Fe=ne[Oe],He=ae[Le]=be?cloneIfMounted(ae[Le]):normalizeVNode(ae[Le]);if(isSameVNodeType(Fe,He))I(Fe,He,le,null,pe,_e,Ae,Ce,be);else break;Oe--,Le--}if(me>Oe){if(me<=Le){const Fe=Le+1,He=FeLe)for(;me<=Oe;)we(ne[me],pe,_e,!0),me++;else{const Fe=me,He=me,Ye=new Map;for(me=He;me<=Le;me++){const je=ae[me]=be?cloneIfMounted(ae[me]):normalizeVNode(ae[me]);je.key!=null&&Ye.set(je.key,me)}let ze,We=0;const qe=Le-He+1;let Xe=!1,et=0;const Ze=new Array(qe);for(me=0;me=qe){we(je,pe,_e,!0);continue}let Ke;if(je.key!=null)Ke=Ye.get(je.key);else for(ze=He;ze<=Le;ze++)if(Ze[ze-He]===0&&isSameVNodeType(je,ae[ze])){Ke=ze;break}Ke===void 0?we(je,pe,_e,!0):(Ze[Ke-He]=me+1,Ke>=et?et=Ke:Xe=!0,I(je,ae[Ke],le,null,pe,_e,Ae,Ce,be),We++)}const tt=Xe?getSequence(Ze):EMPTY_ARR;for(ze=tt.length-1,me=qe-1;me>=0;me--){const je=He+me,Ke=ae[je],it=je+1{const{el:_e,type:Ae,transition:Ce,children:be,shapeFlag:me}=ne;if(me&6){Pe(ne.component.subTree,ae,le,de);return}if(me&128){ne.suspense.move(ae,le,de);return}if(me&64){Ae.move(ne,ae,le,xe);return}if(Ae===Fragment){a(_e,ae,le);for(let Oe=0;OeCe.enter(_e),pe);else{const{leave:Oe,delayLeave:Le,afterLeave:Fe}=Ce,He=()=>a(_e,ae,le),Ye=()=>{Oe(_e,()=>{He(),Fe&&Fe()})};Le?Le(_e,He,Ye):Ye()}else a(_e,ae,le)},we=(ne,ae,le,de=!1,pe=!1)=>{const{type:_e,props:Ae,ref:Ce,children:be,dynamicChildren:me,shapeFlag:Re,patchFlag:Oe,dirs:Le,cacheIndex:Fe}=ne;if(Oe===-2&&(pe=!1),Ce!=null&&setRef(Ce,null,le,ne,!0),Fe!=null&&(ae.renderCache[Fe]=void 0),Re&256){ae.ctx.deactivate(ne);return}const He=Re&1&&Le,Ye=!isAsyncWrapper(ne);let ze;if(Ye&&(ze=Ae&&Ae.onVnodeBeforeUnmount)&&invokeVNodeHook(ze,ae,ne),Re&6)Ue(ne.component,le,de);else{if(Re&128){ne.suspense.unmount(le,de);return}He&&invokeDirectiveHook(ne,null,ae,"beforeUnmount"),Re&64?ne.type.remove(ne,ae,le,xe,de):me&&!me.hasOnce&&(_e!==Fragment||Oe>0&&Oe&64)?Ve(me,ae,le,!1,!0):(_e===Fragment&&Oe&384||!pe&&Re&16)&&Ve(be,ae,le),de&&ke(ne)}(Ye&&(ze=Ae&&Ae.onVnodeUnmounted)||He)&&queuePostRenderEffect(()=>{ze&&invokeVNodeHook(ze,ae,ne),He&&invokeDirectiveHook(ne,null,ae,"unmounted")},le)},ke=ne=>{const{type:ae,el:le,anchor:de,transition:pe}=ne;if(ae===Fragment){Be(le,de);return}if(ae===Static){G(ne);return}const _e=()=>{o(le),pe&&!pe.persisted&&pe.afterLeave&&pe.afterLeave()};if(ne.shapeFlag&1&&pe&&!pe.persisted){const{leave:Ae,delayLeave:Ce}=pe,be=()=>Ae(le,_e);Ce?Ce(ne.el,_e,be):be()}else _e()},Be=(ne,ae)=>{let le;for(;ne!==ae;)le=M(ne),o(ne),ne=le;o(ae)},Ue=(ne,ae,le)=>{const{bum:de,scope:pe,update:_e,subTree:Ae,um:Ce,m:be,a:me}=ne;invalidateMount(be),invalidateMount(me),de&&invokeArrayFns(de),pe.stop(),_e&&(_e.active=!1,we(Ae,ne,ae,le)),Ce&&queuePostRenderEffect(Ce,ae),queuePostRenderEffect(()=>{ne.isUnmounted=!0},ae),ae&&ae.pendingBranch&&!ae.isUnmounted&&ne.asyncDep&&!ne.asyncResolved&&ne.suspenseId===ae.pendingId&&(ae.deps--,ae.deps===0&&ae.resolve())},Ve=(ne,ae,le,de=!1,pe=!1,_e=0)=>{for(let Ae=_e;Ae{if(ne.shapeFlag&6)return fe(ne.component.subTree);if(ne.shapeFlag&128)return ne.suspense.next();const ae=M(ne.anchor||ne.el),le=ae&&ae[TeleportEndKey];return le?M(le):ae};let Te=!1;const Se=(ne,ae,le)=>{ne==null?ae._vnode&&we(ae._vnode,null,null,!0):I(ae._vnode||null,ne,ae,null,null,null,le),ae._vnode=ne,Te||(Te=!0,flushPreFlushCbs(),flushPostFlushCbs(),Te=!1)},xe={p:I,um:we,m:Pe,r:ke,mt:oe,mc:Z,pc:ce,pbc:ee,n:fe,o:r};let Ee,De;return{render:Se,hydrate:Ee,createApp:createAppAPI(Se,Ee)}}function resolveChildrenNamespace({type:r,props:t},n){return n==="svg"&&r==="foreignObject"||n==="mathml"&&r==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function toggleRecurse({effect:r,update:t},n){r.allowRecurse=t.allowRecurse=n}function needTransition(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function traverseStaticChildren(r,t,n=!1){const a=r.children,o=t.children;if(isArray$3(a)&&isArray$3(o))for(let s=0;s>1,r[n[u]]0&&(t[a]=n[s-1]),n[s]=a)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function locateNonHydratedAsyncRoot(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:locateNonHydratedAsyncRoot(t)}function invalidateMount(r){if(r)for(let t=0;tinject(ssrContextKey);function watchEffect(r,t){return doWatch(r,null,t)}const INITIAL_WATCHER_VALUE={};function watch(r,t,n){return doWatch(r,t,n)}function doWatch(r,t,{immediate:n,deep:a,flush:o,once:s,onTrack:l,onTrigger:u}=EMPTY_OBJ$1){if(t&&s){const Y=t;t=(...W)=>{Y(...W),q()}}const c=currentInstance,f=Y=>a===!0?Y:traverse(Y,a===!1?1:void 0);let d,v=!1,M=!1;if(isRef(r)?(d=()=>r.value,v=isShallow(r)):isReactive(r)?(d=()=>f(r),v=!0):isArray$3(r)?(M=!0,v=r.some(Y=>isReactive(Y)||isShallow(Y)),d=()=>r.map(Y=>{if(isRef(Y))return Y.value;if(isReactive(Y))return f(Y);if(isFunction$1(Y))return callWithErrorHandling(Y,c,2)})):isFunction$1(r)?t?d=()=>callWithErrorHandling(r,c,2):d=()=>(g&&g(),callWithAsyncErrorHandling(r,c,3,[R])):d=NOOP,t&&a){const Y=d;d=()=>traverse(Y())}let g,R=Y=>{g=F.onStop=()=>{callWithErrorHandling(Y,c,4),g=F.onStop=void 0}},I;if(isInSSRComponentSetup)if(R=NOOP,t?n&&callWithAsyncErrorHandling(t,c,3,[d(),M?[]:void 0,R]):d(),o==="sync"){const Y=useSSRContext();I=Y.__watcherHandles||(Y.__watcherHandles=[])}else return NOOP;let O=M?new Array(r.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const N=()=>{if(!(!F.active||!F.dirty))if(t){const Y=F.run();(a||v||(M?Y.some((W,Z)=>hasChanged(W,O[Z])):hasChanged(Y,O)))&&(g&&g(),callWithAsyncErrorHandling(t,c,3,[Y,O===INITIAL_WATCHER_VALUE?void 0:M&&O[0]===INITIAL_WATCHER_VALUE?[]:O,R]),O=Y)}else F.run()};N.allowRecurse=!!t;let $;o==="sync"?$=N:o==="post"?$=()=>queuePostRenderEffect(N,c&&c.suspense):(N.pre=!0,c&&(N.id=c.uid),$=()=>queueJob(N));const F=new ReactiveEffect(d,NOOP,$),G=getCurrentScope(),q=()=>{F.stop(),G&&remove(G.effects,F)};return t?n?N():O=F.run():o==="post"?queuePostRenderEffect(F.run.bind(F),c&&c.suspense):F.run(),I&&I.push(q),q}function instanceWatch(r,t,n){const a=this.proxy,o=isString$1(r)?r.includes(".")?createPathGetter(a,r):()=>a[r]:r.bind(a,a);let s;isFunction$1(t)?s=t:(s=t.handler,n=t);const l=setCurrentInstance(this),u=doWatch(o,s.bind(a),n);return l(),u}function createPathGetter(r,t){const n=t.split(".");return()=>{let a=r;for(let o=0;o{traverse(a,t,n)});else if(isPlainObject$1(r)){for(const a in r)traverse(r[a],t,n);for(const a of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,a)&&traverse(r[a],t,n)}return r}const getModelModifiers=(r,t)=>t==="modelValue"||t==="model-value"?r.modelModifiers:r[`${t}Modifiers`]||r[`${camelize(t)}Modifiers`]||r[`${hyphenate(t)}Modifiers`];function emit(r,t,...n){if(r.isUnmounted)return;const a=r.vnode.props||EMPTY_OBJ$1;let o=n;const s=t.startsWith("update:"),l=s&&getModelModifiers(a,t.slice(7));l&&(l.trim&&(o=n.map(d=>isString$1(d)?d.trim():d)),l.number&&(o=n.map(looseToNumber)));let u,c=a[u=toHandlerKey(t)]||a[u=toHandlerKey(camelize(t))];!c&&s&&(c=a[u=toHandlerKey(hyphenate(t))]),c&&callWithAsyncErrorHandling(c,r,6,o);const f=a[u+"Once"];if(f){if(!r.emitted)r.emitted={};else if(r.emitted[u])return;r.emitted[u]=!0,callWithAsyncErrorHandling(f,r,6,o)}}function normalizeEmitsOptions(r,t,n=!1){const a=t.emitsCache,o=a.get(r);if(o!==void 0)return o;const s=r.emits;let l={},u=!1;if(!isFunction$1(r)){const c=f=>{const d=normalizeEmitsOptions(f,t,!0);d&&(u=!0,extend$1(l,d))};!n&&t.mixins.length&&t.mixins.forEach(c),r.extends&&c(r.extends),r.mixins&&r.mixins.forEach(c)}return!s&&!u?(isObject$4(r)&&a.set(r,null),null):(isArray$3(s)?s.forEach(c=>l[c]=null):extend$1(l,s),isObject$4(r)&&a.set(r,l),l)}function isEmitListener(r,t){return!r||!isOn(t)?!1:(t=t.slice(2).replace(/Once$/,""),hasOwn$1(r,t[0].toLowerCase()+t.slice(1))||hasOwn$1(r,hyphenate(t))||hasOwn$1(r,t))}function markAttrsAccessed(){}function renderComponentRoot(r){const{type:t,vnode:n,proxy:a,withProxy:o,propsOptions:[s],slots:l,attrs:u,emit:c,render:f,renderCache:d,props:v,data:M,setupState:g,ctx:R,inheritAttrs:I}=r,O=setCurrentRenderingInstance(r);let N,$;try{if(n.shapeFlag&4){const G=o||a,q=G;N=normalizeVNode(f.call(q,G,d,v,g,M,R)),$=u}else{const G=t;N=normalizeVNode(G.length>1?G(v,{attrs:u,slots:l,emit:c}):G(v,null)),$=t.props?u:getFunctionalFallthrough(u)}}catch(G){blockStack.length=0,handleError(G,r,1),N=createVNode(Comment)}let F=N;if($&&I!==!1){const G=Object.keys($),{shapeFlag:q}=F;G.length&&q&7&&(s&&G.some(isModelListener)&&($=filterModelListeners($,s)),F=cloneVNode(F,$,!1,!0))}return n.dirs&&(F=cloneVNode(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&(F.transition=n.transition),N=F,setCurrentRenderingInstance(O),N}const getFunctionalFallthrough=r=>{let t;for(const n in r)(n==="class"||n==="style"||isOn(n))&&((t||(t={}))[n]=r[n]);return t},filterModelListeners=(r,t)=>{const n={};for(const a in r)(!isModelListener(a)||!(a.slice(9)in t))&&(n[a]=r[a]);return n};function shouldUpdateComponent(r,t,n){const{props:a,children:o,component:s}=r,{props:l,children:u,patchFlag:c}=t,f=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return a?hasPropsChanged(a,l,f):!!l;if(c&8){const d=t.dynamicProps;for(let v=0;vr.__isSuspense;function queueEffectWithSuspense(r,t){t&&t.pendingBranch?isArray$3(r)?t.effects.push(...r):t.effects.push(r):queuePostFlushCb(r)}const Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(r=!1){blockStack.push(currentBlock=r?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(r){isBlockTreeEnabled+=r,r<0&¤tBlock&&(currentBlock.hasOnce=!0)}function setupBlock(r){return r.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(r),r}function createElementBlock(r,t,n,a,o,s){return setupBlock(createBaseVNode(r,t,n,a,o,s,!0))}function createBlock(r,t,n,a,o){return setupBlock(createVNode(r,t,n,a,o,!0))}function isVNode(r){return r?r.__v_isVNode===!0:!1}function isSameVNodeType(r,t){return r.type===t.type&&r.key===t.key}const normalizeKey=({key:r})=>r??null,normalizeRef=({ref:r,ref_key:t,ref_for:n})=>(typeof r=="number"&&(r=""+r),r!=null?isString$1(r)||isRef(r)||isFunction$1(r)?{i:currentRenderingInstance,r,k:t,f:!!n}:r:null);function createBaseVNode(r,t=null,n=null,a=0,o=null,s=r===Fragment?0:1,l=!1,u=!1){const c={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&normalizeKey(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:a,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return u?(normalizeChildren(c,n),s&128&&r.normalize(c)):n&&(c.shapeFlag|=isString$1(n)?8:16),isBlockTreeEnabled>0&&!l&¤tBlock&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&¤tBlock.push(c),c}const createVNode=_createVNode;function _createVNode(r,t=null,n=null,a=0,o=null,s=!1){if((!r||r===NULL_DYNAMIC_COMPONENT)&&(r=Comment),isVNode(r)){const u=cloneVNode(r,t,!0);return n&&normalizeChildren(u,n),isBlockTreeEnabled>0&&!s&¤tBlock&&(u.shapeFlag&6?currentBlock[currentBlock.indexOf(r)]=u:currentBlock.push(u)),u.patchFlag=-2,u}if(isClassComponent(r)&&(r=r.__vccOpts),t){t=guardReactiveProps(t);let{class:u,style:c}=t;u&&!isString$1(u)&&(t.class=normalizeClass(u)),isObject$4(c)&&(isProxy(c)&&!isArray$3(c)&&(c=extend$1({},c)),t.style=normalizeStyle$1(c))}const l=isString$1(r)?1:isSuspense(r)?128:isTeleport(r)?64:isObject$4(r)?4:isFunction$1(r)?2:0;return createBaseVNode(r,t,n,a,o,l,s,!0)}function guardReactiveProps(r){return r?isProxy(r)||isInternalObject(r)?extend$1({},r):r:null}function cloneVNode(r,t,n=!1,a=!1){const{props:o,ref:s,patchFlag:l,children:u,transition:c}=r,f=t?mergeProps(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:r.type,props:f,key:f&&normalizeKey(f),ref:t&&t.ref?n&&s?isArray$3(s)?s.concat(normalizeRef(t)):[s,normalizeRef(t)]:normalizeRef(t):s,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:u,target:r.target,targetStart:r.targetStart,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:t&&r.type!==Fragment?l===-1?16:l|16:l,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:c,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&cloneVNode(r.ssContent),ssFallback:r.ssFallback&&cloneVNode(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce};return c&&a&&setTransitionHooks(d,c.clone(d)),d}function createTextVNode(r=" ",t=0){return createVNode(Text,null,r,t)}function createStaticVNode(r,t){const n=createVNode(Static,null,r);return n.staticCount=t,n}function createCommentVNode(r="",t=!1){return t?(openBlock(),createBlock(Comment,null,r)):createVNode(Comment,null,r)}function normalizeVNode(r){return r==null||typeof r=="boolean"?createVNode(Comment):isArray$3(r)?createVNode(Fragment,null,r.slice()):typeof r=="object"?cloneIfMounted(r):createVNode(Text,null,String(r))}function cloneIfMounted(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:cloneVNode(r)}function normalizeChildren(r,t){let n=0;const{shapeFlag:a}=r;if(t==null)t=null;else if(isArray$3(t))n=16;else if(typeof t=="object")if(a&65){const o=t.default;o&&(o._c&&(o._d=!1),normalizeChildren(r,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!isInternalObject(t)?t._ctx=currentRenderingInstance:o===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else isFunction$1(t)?(t={default:t,_ctx:currentRenderingInstance},n=32):(t=String(t),a&64?(n=16,t=[createTextVNode(t)]):n=8);r.children=t,r.shapeFlag|=n}function mergeProps(...r){const t={};for(let n=0;ncurrentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const r=getGlobalThis(),t=(n,a)=>{let o;return(o=r[n])||(o=r[n]=[]),o.push(a),s=>{o.length>1?o.forEach(l=>l(s)):o[0](s)}};internalSetCurrentInstance=t("__VUE_INSTANCE_SETTERS__",n=>currentInstance=n),setInSSRSetupState=t("__VUE_SSR_SETTERS__",n=>isInSSRComponentSetup=n)}const setCurrentInstance=r=>{const t=currentInstance;return internalSetCurrentInstance(r),r.scope.on(),()=>{r.scope.off(),internalSetCurrentInstance(t)}},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(r){return r.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(r,t=!1,n=!1){t&&setInSSRSetupState(t);const{props:a,children:o}=r.vnode,s=isStatefulComponent(r);initProps$1(r,a,s,t),initSlots(r,o,n);const l=s?setupStatefulComponent(r,t):void 0;return t&&setInSSRSetupState(!1),l}function setupStatefulComponent(r,t){const n=r.type;r.accessCache=Object.create(null),r.proxy=new Proxy(r.ctx,PublicInstanceProxyHandlers);const{setup:a}=n;if(a){const o=r.setupContext=a.length>1?createSetupContext(r):null,s=setCurrentInstance(r);pauseTracking();const l=callWithErrorHandling(a,r,0,[r.props,o]);if(resetTracking(),s(),isPromise(l)){if(l.then(unsetCurrentInstance,unsetCurrentInstance),t)return l.then(u=>{handleSetupResult(r,u,t)}).catch(u=>{handleError(u,r,0)});r.asyncDep=l}else handleSetupResult(r,l,t)}else finishComponentSetup(r,t)}function handleSetupResult(r,t,n){isFunction$1(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:isObject$4(t)&&(r.setupState=proxyRefs(t)),finishComponentSetup(r,n)}let compile;function finishComponentSetup(r,t,n){const a=r.type;if(!r.render){if(!t&&compile&&!a.render){const o=a.template||resolveMergedOptions(r).template;if(o){const{isCustomElement:s,compilerOptions:l}=r.appContext.config,{delimiters:u,compilerOptions:c}=a,f=extend$1(extend$1({isCustomElement:s,delimiters:u},l),c);a.render=compile(o,f)}}r.render=a.render||NOOP}{const o=setCurrentInstance(r);pauseTracking();try{applyOptions(r)}finally{resetTracking(),o()}}}const attrsProxyHandlers={get(r,t){return track(r,"get",""),r[t]}};function createSetupContext(r){const t=n=>{r.exposed=n||{}};return{attrs:new Proxy(r.attrs,attrsProxyHandlers),slots:r.slots,emit:r.emit,expose:t}}function getComponentPublicInstance(r){return r.exposed?r.exposeProxy||(r.exposeProxy=new Proxy(proxyRefs(markRaw(r.exposed)),{get(t,n){if(n in t)return t[n];if(n in publicPropertiesMap)return publicPropertiesMap[n](r)},has(t,n){return n in t||n in publicPropertiesMap}})):r.proxy}const classifyRE=/(?:^|[-_])(\w)/g,classify=r=>r.replace(classifyRE,t=>t.toUpperCase()).replace(/[-_]/g,"");function getComponentName(r,t=!0){return isFunction$1(r)?r.displayName||r.name:r.name||t&&r.__name}function formatComponentName(r,t,n=!1){let a=getComponentName(t);if(!a&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(a=o[1])}if(!a&&r&&r.parent){const o=s=>{for(const l in s)if(s[l]===t)return l};a=o(r.components||r.parent.type.components)||o(r.appContext.components)}return a?classify(a):n?"App":"Anonymous"}function isClassComponent(r){return isFunction$1(r)&&"__vccOpts"in r}const computed=(r,t)=>computed$1(r,t,isInSSRComponentSetup);function h(r,t,n){const a=arguments.length;return a===2?isObject$4(t)&&!isArray$3(t)?isVNode(t)?createVNode(r,null,[t]):createVNode(r,t):createVNode(r,null,t):(a>3?n=Array.prototype.slice.call(arguments,2):a===3&&isVNode(n)&&(n=[n]),createVNode(r,t,n))}const version="3.4.38",warn$2=NOOP;/**
+* @vue/runtime-dom v3.4.38
+* (c) 2018-present Yuxi (Evan) You and Vue contributors
+* @license MIT
+**/const svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(r,t,n)=>{t.insertBefore(r,n||null)},remove:r=>{const t=r.parentNode;t&&t.removeChild(r)},createElement:(r,t,n,a)=>{const o=t==="svg"?doc.createElementNS(svgNS,r):t==="mathml"?doc.createElementNS(mathmlNS,r):n?doc.createElement(r,{is:n}):doc.createElement(r);return r==="select"&&a&&a.multiple!=null&&o.setAttribute("multiple",a.multiple),o},createText:r=>doc.createTextNode(r),createComment:r=>doc.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>doc.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,n,a,o,s){const l=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{templateContainer.innerHTML=a==="svg"?``:a==="mathml"?``:r;const u=templateContainer.content;if(a==="svg"||a==="mathml"){const c=u.firstChild;for(;c.firstChild;)u.appendChild(c.firstChild);u.removeChild(c)}t.insertBefore(u,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),Transition=(r,{slots:t})=>h(BaseTransition,resolveTransitionProps(r),t);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Transition.props=extend$1({},BaseTransitionPropsValidators,DOMTransitionPropsValidators);const callHook=(r,t=[])=>{isArray$3(r)?r.forEach(n=>n(...t)):r&&r(...t)},hasExplicitCallback=r=>r?isArray$3(r)?r.some(t=>t.length>1):r.length>1:!1;function resolveTransitionProps(r){const t={};for(const Q in r)Q in DOMTransitionPropsValidators||(t[Q]=r[Q]);if(r.css===!1)return t;const{name:n="v",type:a,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:u=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:f=l,appearToClass:d=u,leaveFromClass:v=`${n}-leave-from`,leaveActiveClass:M=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=r,R=normalizeDuration(o),I=R&&R[0],O=R&&R[1],{onBeforeEnter:N,onEnter:$,onEnterCancelled:F,onLeave:G,onLeaveCancelled:q,onBeforeAppear:Y=N,onAppear:W=$,onAppearCancelled:Z=F}=t,J=(Q,ie,oe)=>{removeTransitionClass(Q,ie?d:u),removeTransitionClass(Q,ie?f:l),oe&&oe()},ee=(Q,ie)=>{Q._isLeaving=!1,removeTransitionClass(Q,v),removeTransitionClass(Q,g),removeTransitionClass(Q,M),ie&&ie()},K=Q=>(ie,oe)=>{const se=Q?W:$,ue=()=>J(ie,Q,oe);callHook(se,[ie,ue]),nextFrame(()=>{removeTransitionClass(ie,Q?c:s),addTransitionClass(ie,Q?d:u),hasExplicitCallback(se)||whenTransitionEnds(ie,a,I,ue)})};return extend$1(t,{onBeforeEnter(Q){callHook(N,[Q]),addTransitionClass(Q,s),addTransitionClass(Q,l)},onBeforeAppear(Q){callHook(Y,[Q]),addTransitionClass(Q,c),addTransitionClass(Q,f)},onEnter:K(!1),onAppear:K(!0),onLeave(Q,ie){Q._isLeaving=!0;const oe=()=>ee(Q,ie);addTransitionClass(Q,v),addTransitionClass(Q,M),forceReflow(),nextFrame(()=>{Q._isLeaving&&(removeTransitionClass(Q,v),addTransitionClass(Q,g),hasExplicitCallback(G)||whenTransitionEnds(Q,a,O,oe))}),callHook(G,[Q,oe])},onEnterCancelled(Q){J(Q,!1),callHook(F,[Q])},onAppearCancelled(Q){J(Q,!0),callHook(Z,[Q])},onLeaveCancelled(Q){ee(Q),callHook(q,[Q])}})}function normalizeDuration(r){if(r==null)return null;if(isObject$4(r))return[NumberOf(r.enter),NumberOf(r.leave)];{const t=NumberOf(r);return[t,t]}}function NumberOf(r){return toNumber(r)}function addTransitionClass(r,t){t.split(/\s+/).forEach(n=>n&&r.classList.add(n)),(r[vtcKey]||(r[vtcKey]=new Set)).add(t)}function removeTransitionClass(r,t){t.split(/\s+/).forEach(a=>a&&r.classList.remove(a));const n=r[vtcKey];n&&(n.delete(t),n.size||(r[vtcKey]=void 0))}function nextFrame(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let endId=0;function whenTransitionEnds(r,t,n,a){const o=r._endId=++endId,s=()=>{o===r._endId&&a()};if(n)return setTimeout(s,n);const{type:l,timeout:u,propCount:c}=getTransitionInfo(r,t);if(!l)return a();const f=l+"end";let d=0;const v=()=>{r.removeEventListener(f,M),s()},M=g=>{g.target===r&&++d>=c&&v()};setTimeout(()=>{d(n[R]||"").split(", "),o=a(`${TRANSITION}Delay`),s=a(`${TRANSITION}Duration`),l=getTimeout(o,s),u=a(`${ANIMATION}Delay`),c=a(`${ANIMATION}Duration`),f=getTimeout(u,c);let d=null,v=0,M=0;t===TRANSITION?l>0&&(d=TRANSITION,v=l,M=s.length):t===ANIMATION?f>0&&(d=ANIMATION,v=f,M=c.length):(v=Math.max(l,f),d=v>0?l>f?TRANSITION:ANIMATION:null,M=d?d===TRANSITION?s.length:c.length:0);const g=d===TRANSITION&&/\b(transform|all)(,|$)/.test(a(`${TRANSITION}Property`).toString());return{type:d,timeout:v,propCount:M,hasTransform:g}}function getTimeout(r,t){for(;r.lengthtoMs(n)+toMs(r[a])))}function toMs(r){return r==="auto"?0:Number(r.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(r,t,n){const a=r[vtcKey];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?r.removeAttribute("class"):n?r.setAttribute("class",t):r.className=t}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),vShow={beforeMount(r,{value:t},{transition:n}){r[vShowOriginalDisplay]=r.style.display==="none"?"":r.style.display,n&&t?n.beforeEnter(r):setDisplay(r,t)},mounted(r,{value:t},{transition:n}){n&&t&&n.enter(r)},updated(r,{value:t,oldValue:n},{transition:a}){!t!=!n&&(a?t?(a.beforeEnter(r),setDisplay(r,!0),a.enter(r)):a.leave(r,()=>{setDisplay(r,!1)}):setDisplay(r,t))},beforeUnmount(r,{value:t}){setDisplay(r,t)}};function setDisplay(r,t){r.style.display=t?r[vShowOriginalDisplay]:"none",r[vShowHidden]=!t}const CSS_VAR_TEXT=Symbol(""),displayRE=/(^|;)\s*display\s*:/;function patchStyle(r,t,n){const a=r.style,o=isString$1(n);let s=!1;if(n&&!o){if(t)if(isString$1(t))for(const l of t.split(";")){const u=l.slice(0,l.indexOf(":")).trim();n[u]==null&&setStyle(a,u,"")}else for(const l in t)n[l]==null&&setStyle(a,l,"");for(const l in n)l==="display"&&(s=!0),setStyle(a,l,n[l])}else if(o){if(t!==n){const l=a[CSS_VAR_TEXT];l&&(n+=";"+l),a.cssText=n,s=displayRE.test(n)}}else t&&r.removeAttribute("style");vShowOriginalDisplay in r&&(r[vShowOriginalDisplay]=s?a.display:"",r[vShowHidden]&&(a.display="none"))}const importantRE=/\s*!important$/;function setStyle(r,t,n){if(isArray$3(n))n.forEach(a=>setStyle(r,t,a));else if(n==null&&(n=""),t.startsWith("--"))r.setProperty(t,n);else{const a=autoPrefix(r,t);importantRE.test(n)?r.setProperty(hyphenate(a),n.replace(importantRE,""),"important"):r[a]=n}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(r,t){const n=prefixCache[t];if(n)return n;let a=camelize(t);if(a!=="filter"&&a in r)return prefixCache[t]=a;a=capitalize(a);for(let o=0;ocachedNow||(p.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(r,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(a,n.value),t,5,[a])};return n.value=r,n.attached=getNow(),n}function patchStopImmediatePropagation(r,t){if(isArray$3(t)){const n=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{n.call(r),r._stopped=!0},t.map(a=>o=>!o._stopped&&a&&a(o))}else return t}const isNativeOn=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,patchProp=(r,t,n,a,o,s)=>{const l=o==="svg";t==="class"?patchClass(r,a,l):t==="style"?patchStyle(r,n,a):isOn(t)?isModelListener(t)||patchEvent(r,t,n,a,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):shouldSetAsProp(r,t,a,l))?(patchDOMProp(r,t,a),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&patchAttr(r,t,a,l,s,t!=="value")):(t==="true-value"?r._trueValue=a:t==="false-value"&&(r._falseValue=a),patchAttr(r,t,a,l))};function shouldSetAsProp(r,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in r&&isNativeOn(t)&&isFunction$1(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=r.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return isNativeOn(t)&&isString$1(n)?!1:t in r}const getModelAssigner=r=>{const t=r.props["onUpdate:modelValue"]||!1;return isArray$3(t)?n=>invokeArrayFns(t,n):t},assignKey=Symbol("_assign"),vModelRadio={created(r,{value:t},n){r.checked=looseEqual(t,n.props.value),r[assignKey]=getModelAssigner(n),addEventListener$1(r,"change",()=>{r[assignKey](getValue(r))})},beforeUpdate(r,{value:t,oldValue:n},a){r[assignKey]=getModelAssigner(a),t!==n&&(r.checked=looseEqual(t,a.props.value))}},vModelSelect={deep:!0,created(r,{value:t,modifiers:{number:n}},a){const o=isSet(t);addEventListener$1(r,"change",()=>{const s=Array.prototype.filter.call(r.options,l=>l.selected).map(l=>n?looseToNumber(getValue(l)):getValue(l));r[assignKey](r.multiple?o?new Set(s):s:s[0]),r._assigning=!0,nextTick(()=>{r._assigning=!1})}),r[assignKey]=getModelAssigner(a)},mounted(r,{value:t,modifiers:{number:n}}){setSelected(r,t)},beforeUpdate(r,t,n){r[assignKey]=getModelAssigner(n)},updated(r,{value:t,modifiers:{number:n}}){r._assigning||setSelected(r,t)}};function setSelected(r,t,n){const a=r.multiple,o=isArray$3(t);if(!(a&&!o&&!isSet(t))){for(let s=0,l=r.options.length;sString(d)===String(c)):u.selected=looseIndexOf(t,c)>-1}else u.selected=t.has(c);else if(looseEqual(getValue(u),t)){r.selectedIndex!==s&&(r.selectedIndex=s);return}}!a&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function getValue(r){return"_value"in r?r._value:r.value}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,t)=>systemModifiers.some(n=>r[`${n}Key`]&&!t.includes(n))},withModifiers=(r,t)=>{const n=r._withMods||(r._withMods={}),a=t.join(".");return n[a]||(n[a]=(o,...s)=>{for(let l=0;l{const t=ensureRenderer().createApp(...r),{mount:n}=t;return t.mount=a=>{const o=normalizeContainer(a);if(!o)return;const s=t._component;!isFunction$1(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const l=n(o,!1,resolveRootNamespace(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},t};function resolveRootNamespace(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function normalizeContainer(r){return isString$1(r)?document.querySelector(r):r}var isVue2=!1;/*!
+ * pinia v2.2.2
+ * (c) 2024 Eduardo San Martin Morote
+ * @license MIT
+ */let activePinia;const setActivePinia=r=>activePinia=r,piniaSymbol=Symbol();function isPlainObject(r){return r&&typeof r=="object"&&Object.prototype.toString.call(r)==="[object Object]"&&typeof r.toJSON!="function"}var MutationType;(function(r){r.direct="direct",r.patchObject="patch object",r.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const r=effectScope(!0),t=r.run(()=>ref({}));let n=[],a=[];const o=markRaw({install(s){setActivePinia(o),o._a=s,s.provide(piniaSymbol,o),s.config.globalProperties.$pinia=o,a.forEach(l=>n.push(l)),a=[]},use(s){return!this._a&&!isVue2?a.push(s):n.push(s),this},_p:n,_a:null,_e:r,_s:new Map,state:t});return o}const noop$2=()=>{};function addSubscription(r,t,n,a=noop$2){r.push(t);const o=()=>{const s=r.indexOf(t);s>-1&&(r.splice(s,1),a())};return!n&&getCurrentScope()&&onScopeDispose(o),o}function triggerSubscriptions(r,...t){r.slice().forEach(n=>{n(...t)})}const fallbackRunWithContext=r=>r(),ACTION_MARKER=Symbol(),ACTION_NAME=Symbol();function mergeReactiveObjects(r,t){r instanceof Map&&t instanceof Map?t.forEach((n,a)=>r.set(a,n)):r instanceof Set&&t instanceof Set&&t.forEach(r.add,r);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],o=r[n];isPlainObject(o)&&isPlainObject(a)&&r.hasOwnProperty(n)&&!isRef(a)&&!isReactive(a)?r[n]=mergeReactiveObjects(o,a):r[n]=a}return r}const skipHydrateSymbol=Symbol();function shouldHydrate(r){return!isPlainObject(r)||!r.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$1}=Object;function isComputed(r){return!!(isRef(r)&&r.effect)}function createOptionsStore(r,t,n,a){const{state:o,actions:s,getters:l}=t,u=n.state.value[r];let c;function f(){u||(n.state.value[r]=o?o():{});const d=toRefs(n.state.value[r]);return assign$1(d,s,Object.keys(l||{}).reduce((v,M)=>(v[M]=markRaw(computed(()=>{setActivePinia(n);const g=n._s.get(r);return l[M].call(g,g)})),v),{}))}return c=createSetupStore(r,f,t,n,a,!0),c}function createSetupStore(r,t,n={},a,o,s){let l;const u=assign$1({actions:{}},n),c={deep:!0};let f,d,v=[],M=[],g;const R=a.state.value[r];!s&&!R&&(a.state.value[r]={}),ref({});let I;function O(Z){let J;f=d=!1,typeof Z=="function"?(Z(a.state.value[r]),J={type:MutationType.patchFunction,storeId:r,events:g}):(mergeReactiveObjects(a.state.value[r],Z),J={type:MutationType.patchObject,payload:Z,storeId:r,events:g});const ee=I=Symbol();nextTick().then(()=>{I===ee&&(f=!0)}),d=!0,triggerSubscriptions(v,J,a.state.value[r])}const N=s?function(){const{state:J}=n,ee=J?J():{};this.$patch(K=>{assign$1(K,ee)})}:noop$2;function $(){l.stop(),v=[],M=[],a._s.delete(r)}const F=(Z,J="")=>{if(ACTION_MARKER in Z)return Z[ACTION_NAME]=J,Z;const ee=function(){setActivePinia(a);const K=Array.from(arguments),Q=[],ie=[];function oe(ge){Q.push(ge)}function se(ge){ie.push(ge)}triggerSubscriptions(M,{args:K,name:ee[ACTION_NAME],store:q,after:oe,onError:se});let ue;try{ue=Z.apply(this&&this.$id===r?this:q,K)}catch(ge){throw triggerSubscriptions(ie,ge),ge}return ue instanceof Promise?ue.then(ge=>(triggerSubscriptions(Q,ge),ge)).catch(ge=>(triggerSubscriptions(ie,ge),Promise.reject(ge))):(triggerSubscriptions(Q,ue),ue)};return ee[ACTION_MARKER]=!0,ee[ACTION_NAME]=J,ee},G={_p:a,$id:r,$onAction:addSubscription.bind(null,M),$patch:O,$reset:N,$subscribe(Z,J={}){const ee=addSubscription(v,Z,J.detached,()=>K()),K=l.run(()=>watch(()=>a.state.value[r],Q=>{(J.flush==="sync"?d:f)&&Z({storeId:r,type:MutationType.direct,events:g},Q)},assign$1({},c,J)));return ee},$dispose:$},q=reactive(G);a._s.set(r,q);const W=(a._a&&a._a.runWithContext||fallbackRunWithContext)(()=>a._e.run(()=>(l=effectScope()).run(()=>t({action:F}))));for(const Z in W){const J=W[Z];if(isRef(J)&&!isComputed(J)||isReactive(J))s||(R&&shouldHydrate(J)&&(isRef(J)?J.value=R[Z]:mergeReactiveObjects(J,R[Z])),a.state.value[r][Z]=J);else if(typeof J=="function"){const ee=F(J,Z);W[Z]=ee,u.actions[Z]=J}}return assign$1(q,W),assign$1(toRaw(q),W),Object.defineProperty(q,"$state",{get:()=>a.state.value[r],set:Z=>{O(J=>{assign$1(J,Z)})}}),a._p.forEach(Z=>{assign$1(q,l.run(()=>Z({store:q,app:a._a,pinia:a,options:u})))}),R&&s&&n.hydrate&&n.hydrate(q.$state,R),f=!0,d=!0,q}function defineStore(r,t,n){let a,o;const s=typeof t=="function";a=r,o=s?n:t;function l(u,c){const f=hasInjectionContext();return u=u||(f?inject(piniaSymbol,null):null),u&&setActivePinia(u),u=activePinia,u._s.has(a)||(s?createSetupStore(a,t,o,u):createOptionsStore(a,o,u)),u._s.get(a)}return l.$id=a,l}function storeToRefs(r){{r=toRaw(r);const t={};for(const n in r){const a=r[n];(isRef(a)||isReactive(a))&&(t[n]=toRef(r,n))}return t}}/*!
+ * vue-router v4.4.3
+ * (c) 2024 Eduardo San Martin Morote
+ * @license MIT
+ */const isBrowser=typeof document<"u";function isESModule(r){return r.__esModule||r[Symbol.toStringTag]==="Module"}const assign=Object.assign;function applyToParams(r,t){const n={};for(const a in t){const o=t[a];n[a]=isArray$2(o)?o.map(r):r(o)}return n}const noop$1=()=>{},isArray$2=Array.isArray,HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(r){return encodeURI(""+r).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(r){return commonEncode(r).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(r){return commonEncode(r).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(r){return encodeQueryValue(r).replace(EQUAL_RE,"%3D")}function encodePath(r){return commonEncode(r).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(r){return r==null?"":encodePath(r).replace(SLASH_RE,"%2F")}function decode$1(r){try{return decodeURIComponent(""+r)}catch{}return""+r}const TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=r=>r.replace(TRAILING_SLASH_RE,"");function parseURL(r,t,n="/"){let a,o={},s="",l="";const u=t.indexOf("#");let c=t.indexOf("?");return u=0&&(c=-1),c>-1&&(a=t.slice(0,c),s=t.slice(c+1,u>-1?u:t.length),o=r(s)),u>-1&&(a=a||t.slice(0,u),l=t.slice(u,t.length)),a=resolveRelativePath(a??t,n),{fullPath:a+(s&&"?")+s+l,path:a,query:o,hash:decode$1(l)}}function stringifyURL(r,t){const n=t.query?r(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function stripBase(r,t){return!t||!r.toLowerCase().startsWith(t.toLowerCase())?r:r.slice(t.length)||"/"}function isSameRouteLocation(r,t,n){const a=t.matched.length-1,o=n.matched.length-1;return a>-1&&a===o&&isSameRouteRecord(t.matched[a],n.matched[o])&&isSameRouteLocationParams(t.params,n.params)&&r(t.query)===r(n.query)&&t.hash===n.hash}function isSameRouteRecord(r,t){return(r.aliasOf||r)===(t.aliasOf||t)}function isSameRouteLocationParams(r,t){if(Object.keys(r).length!==Object.keys(t).length)return!1;for(const n in r)if(!isSameRouteLocationParamsValue(r[n],t[n]))return!1;return!0}function isSameRouteLocationParamsValue(r,t){return isArray$2(r)?isEquivalentArray(r,t):isArray$2(t)?isEquivalentArray(t,r):r===t}function isEquivalentArray(r,t){return isArray$2(t)?r.length===t.length&&r.every((n,a)=>n===t[a]):r.length===1&&r[0]===t}function resolveRelativePath(r,t){if(r.startsWith("/"))return r;if(!r)return t;const n=t.split("/"),a=r.split("/"),o=a[a.length-1];(o===".."||o===".")&&a.push("");let s=n.length-1,l,u;for(l=0;l1&&s--;else break;return n.slice(0,s).join("/")+"/"+a.slice(l).join("/")}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var NavigationType;(function(r){r.pop="pop",r.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(r){r.back="back",r.forward="forward",r.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(r){if(!r)if(isBrowser){const t=document.querySelector("base");r=t&&t.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),removeTrailingSlash(r)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(r,t){return r.replace(BEFORE_HASH_RE,"#")+t}function getElementPosition(r,t){const n=document.documentElement.getBoundingClientRect(),a=r.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const computeScrollPosition=()=>({left:window.scrollX,top:window.scrollY});function scrollToPosition(r){let t;if("el"in r){const n=r.el,a=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=getElementPosition(o,r)}else t=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function getScrollKey(r,t){return(history.state?history.state.position-t:-1)+r}const scrollPositions=new Map;function saveScrollPosition(r,t){scrollPositions.set(r,t)}function getSavedScrollPosition(r){const t=scrollPositions.get(r);return scrollPositions.delete(r),t}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(r,t){const{pathname:n,search:a,hash:o}=t,s=r.indexOf("#");if(s>-1){let u=o.includes(r.slice(s))?r.slice(s).length:1,c=o.slice(u);return c[0]!=="/"&&(c="/"+c),stripBase(c,"")}return stripBase(n,r)+a+o}function useHistoryListeners(r,t,n,a){let o=[],s=[],l=null;const u=({state:M})=>{const g=createCurrentLocation(r,location),R=n.value,I=t.value;let O=0;if(M){if(n.value=g,t.value=M,l&&l===R){l=null;return}O=I?M.position-I.position:0}else a(g);o.forEach(N=>{N(n.value,R,{delta:O,type:NavigationType.pop,direction:O?O>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function c(){l=n.value}function f(M){o.push(M);const g=()=>{const R=o.indexOf(M);R>-1&&o.splice(R,1)};return s.push(g),g}function d(){const{history:M}=window;M.state&&M.replaceState(assign({},M.state,{scroll:computeScrollPosition()}),"")}function v(){for(const M of s)M();s=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:c,listen:f,destroy:v}}function buildState(r,t,n,a=!1,o=!1){return{back:r,current:t,forward:n,replaced:a,position:window.history.length,scroll:o?computeScrollPosition():null}}function useHistoryStateNavigation(r){const{history:t,location:n}=window,a={value:createCurrentLocation(r,n)},o={value:t.state};o.value||s(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(c,f,d){const v=r.indexOf("#"),M=v>-1?(n.host&&document.querySelector("base")?r:r.slice(v))+c:createBaseLocation()+r+c;try{t[d?"replaceState":"pushState"](f,"",M),o.value=f}catch(g){console.error(g),n[d?"replace":"assign"](M)}}function l(c,f){const d=assign({},t.state,buildState(o.value.back,c,o.value.forward,!0),f,{position:o.value.position});s(c,d,!0),a.value=c}function u(c,f){const d=assign({},o.value,t.state,{forward:c,scroll:computeScrollPosition()});s(d.current,d,!0);const v=assign({},buildState(a.value,c,null),{position:d.position+1},f);s(c,v,!1),a.value=c}return{location:a,state:o,push:u,replace:l}}function createWebHistory(r){r=normalizeBase(r);const t=useHistoryStateNavigation(r),n=useHistoryListeners(r,t.state,t.location,t.replace);function a(s,l=!0){l||n.pauseListeners(),history.go(s)}const o=assign({location:"",base:r,go:a,createHref:createHref.bind(null,r)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function createWebHashHistory(r){return r=location.host?r||location.pathname+location.search:"",r.includes("#")||(r+="#"),createWebHistory(r)}function isRouteLocation(r){return typeof r=="string"||r&&typeof r=="object"}function isRouteName(r){return typeof r=="string"||typeof r=="symbol"}const NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(r,t){return assign(new Error,{type:r,[NavigationFailureSymbol]:!0},t)}function isNavigationFailure(r,t){return r instanceof Error&&NavigationFailureSymbol in r&&(t==null||!!(r.type&t))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(r,t){const n=assign({},BASE_PATH_PARSER_OPTIONS,t),a=[];let o=n.start?"^":"";const s=[];for(const f of r){const d=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let v=0;vt.length?t.length===1&&t[0]===80?1:-1:0}function comparePathParserScore(r,t){let n=0;const a=r.score,o=t.score;for(;n0&&t[t.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(r){if(!r)return[[]];if(r==="/")return[[ROOT_TOKEN]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function t(g){throw new Error(`ERR (${n})/"${f}": ${g}`)}let n=0,a=n;const o=[];let s;function l(){s&&o.push(s),s=[]}let u=0,c,f="",d="";function v(){f&&(n===0?s.push({type:0,value:f}):n===1||n===2||n===3?(s.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:f,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function M(){f+=c}for(;u{l(F)}:noop$1}function l(v){if(isRouteName(v)){const M=a.get(v);M&&(a.delete(v),n.splice(n.indexOf(M),1),M.children.forEach(l),M.alias.forEach(l))}else{const M=n.indexOf(v);M>-1&&(n.splice(M,1),v.record.name&&a.delete(v.record.name),v.children.forEach(l),v.alias.forEach(l))}}function u(){return n}function c(v){const M=findInsertionIndex(v,n);n.splice(M,0,v),v.record.name&&!isAliasRecord(v)&&a.set(v.record.name,v)}function f(v,M){let g,R={},I,O;if("name"in v&&v.name){if(g=a.get(v.name),!g)throw createRouterError(1,{location:v});O=g.record.name,R=assign(paramsFromLocation(M.params,g.keys.filter(F=>!F.optional).concat(g.parent?g.parent.keys.filter(F=>F.optional):[]).map(F=>F.name)),v.params&¶msFromLocation(v.params,g.keys.map(F=>F.name))),I=g.stringify(R)}else if(v.path!=null)I=v.path,g=n.find(F=>F.re.test(I)),g&&(R=g.parse(I),O=g.record.name);else{if(g=M.name?a.get(M.name):n.find(F=>F.re.test(M.path)),!g)throw createRouterError(1,{location:v,currentLocation:M});O=g.record.name,R=assign({},M.params,v.params),I=g.stringify(R)}const N=[];let $=g;for(;$;)N.unshift($.record),$=$.parent;return{name:O,path:I,params:R,matched:N,meta:mergeMetaFields(N)}}r.forEach(v=>s(v));function d(){n.length=0,a.clear()}return{addRoute:s,resolve:f,removeRoute:l,clearRoutes:d,getRoutes:u,getRecordMatcher:o}}function paramsFromLocation(r,t){const n={};for(const a of t)a in r&&(n[a]=r[a]);return n}function normalizeRouteRecord(r){return{path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:void 0,beforeEnter:r.beforeEnter,props:normalizeRecordProps(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}}}function normalizeRecordProps(r){const t={},n=r.props||!1;if("component"in r)t.default=n;else for(const a in r.components)t[a]=typeof n=="object"?n[a]:n;return t}function isAliasRecord(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function mergeMetaFields(r){return r.reduce((t,n)=>assign(t,n.meta),{})}function mergeOptions(r,t){const n={};for(const a in r)n[a]=a in t?t[a]:r[a];return n}function findInsertionIndex(r,t){let n=0,a=t.length;for(;n!==a;){const s=n+a>>1;comparePathParserScore(r,t[s])<0?a=s:n=s+1}const o=getInsertionAncestor(r);return o&&(a=t.lastIndexOf(o,a-1)),a}function getInsertionAncestor(r){let t=r;for(;t=t.parent;)if(isMatchable(t)&&comparePathParserScore(r,t)===0)return t}function isMatchable({record:r}){return!!(r.name||r.components&&Object.keys(r.components).length||r.redirect)}function parseQuery(r){const t={};if(r===""||r==="?")return t;const a=(r[0]==="?"?r.slice(1):r).split("&");for(let o=0;os&&encodeQueryValue(s)):[a&&encodeQueryValue(a)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function normalizeQuery(r){const t={};for(const n in r){const a=r[n];a!==void 0&&(t[n]=isArray$2(a)?a.map(o=>o==null?null:""+o):a==null?a:""+a)}return t}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let r=[];function t(a){return r.push(a),()=>{const o=r.indexOf(a);o>-1&&r.splice(o,1)}}function n(){r=[]}return{add:t,list:()=>r.slice(),reset:n}}function guardToPromiseFn(r,t,n,a,o,s=l=>l()){const l=a&&(a.enterCallbacks[o]=a.enterCallbacks[o]||[]);return()=>new Promise((u,c)=>{const f=M=>{M===!1?c(createRouterError(4,{from:n,to:t})):M instanceof Error?c(M):isRouteLocation(M)?c(createRouterError(2,{from:t,to:M})):(l&&a.enterCallbacks[o]===l&&typeof M=="function"&&l.push(M),u())},d=s(()=>r.call(a&&a.instances[o],t,n,f));let v=Promise.resolve(d);r.length<3&&(v=v.then(f)),v.catch(M=>c(M))})}function extractComponentsGuards(r,t,n,a,o=s=>s()){const s=[];for(const l of r)for(const u in l.components){let c=l.components[u];if(!(t!=="beforeRouteEnter"&&!l.instances[u]))if(isRouteComponent(c)){const d=(c.__vccOpts||c)[t];d&&s.push(guardToPromiseFn(d,n,a,l,u,o))}else{let f=c();s.push(()=>f.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${u}" at "${l.path}"`));const v=isESModule(d)?d.default:d;l.components[u]=v;const g=(v.__vccOpts||v)[t];return g&&guardToPromiseFn(g,n,a,l,u,o)()}))}}return s}function isRouteComponent(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function useLink(r){const t=inject(routerKey),n=inject(routeLocationKey),a=computed(()=>{const c=unref(r.to);return t.resolve(c)}),o=computed(()=>{const{matched:c}=a.value,{length:f}=c,d=c[f-1],v=n.matched;if(!d||!v.length)return-1;const M=v.findIndex(isSameRouteRecord.bind(null,d));if(M>-1)return M;const g=getOriginalPath(c[f-2]);return f>1&&getOriginalPath(d)===g&&v[v.length-1].path!==g?v.findIndex(isSameRouteRecord.bind(null,c[f-2])):M}),s=computed(()=>o.value>-1&&includesParams(n.params,a.value.params)),l=computed(()=>o.value>-1&&o.value===n.matched.length-1&&isSameRouteLocationParams(n.params,a.value.params));function u(c={}){return guardEvent(c)?t[unref(r.replace)?"replace":"push"](unref(r.to)).catch(noop$1):Promise.resolve()}return{route:a,href:computed(()=>a.value.href),isActive:s,isExactActive:l,navigate:u}}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup(r,{slots:t}){const n=reactive(useLink(r)),{options:a}=inject(routerKey),o=computed(()=>({[getLinkClass(r.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[getLinkClass(r.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return r.custom?s:h("a",{"aria-current":n.isExactActive?r.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),RouterLink=RouterLinkImpl;function guardEvent(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const t=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return r.preventDefault&&r.preventDefault(),!0}}function includesParams(r,t){for(const n in t){const a=t[n],o=r[n];if(typeof a=="string"){if(a!==o)return!1}else if(!isArray$2(o)||o.length!==a.length||a.some((s,l)=>s!==o[l]))return!1}return!0}function getOriginalPath(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const getLinkClass=(r,t,n)=>r??t??n,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:t,slots:n}){const a=inject(routerViewLocationKey),o=computed(()=>r.route||a.value),s=inject(viewDepthKey,0),l=computed(()=>{let f=unref(s);const{matched:d}=o.value;let v;for(;(v=d[f])&&!v.components;)f++;return f}),u=computed(()=>o.value.matched[l.value]);provide(viewDepthKey,computed(()=>l.value+1)),provide(matchedRouteKey,u),provide(routerViewLocationKey,o);const c=ref();return watch(()=>[c.value,u.value,r.name],([f,d,v],[M,g,R])=>{d&&(d.instances[v]=f,g&&g!==d&&f&&f===M&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),f&&d&&(!g||!isSameRouteRecord(d,g)||!M)&&(d.enterCallbacks[v]||[]).forEach(I=>I(f))},{flush:"post"}),()=>{const f=o.value,d=r.name,v=u.value,M=v&&v.components[d];if(!M)return normalizeSlot(n.default,{Component:M,route:f});const g=v.props[d],R=g?g===!0?f.params:typeof g=="function"?g(f):g:null,O=h(M,assign({},R,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(v.instances[d]=null)},ref:c}));return normalizeSlot(n.default,{Component:O,route:f})||O}}});function normalizeSlot(r,t){if(!r)return null;const n=r(t);return n.length===1?n[0]:n}const RouterView=RouterViewImpl;function createRouter(r){const t=createRouterMatcher(r.routes,r),n=r.parseQuery||parseQuery,a=r.stringifyQuery||stringifyQuery,o=r.history,s=useCallbacks(),l=useCallbacks(),u=useCallbacks(),c=shallowRef(START_LOCATION_NORMALIZED);let f=START_LOCATION_NORMALIZED;isBrowser&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=applyToParams.bind(null,fe=>""+fe),v=applyToParams.bind(null,encodeParam),M=applyToParams.bind(null,decode$1);function g(fe,Te){let Se,xe;return isRouteName(fe)?(Se=t.getRecordMatcher(fe),xe=Te):xe=fe,t.addRoute(xe,Se)}function R(fe){const Te=t.getRecordMatcher(fe);Te&&t.removeRoute(Te)}function I(){return t.getRoutes().map(fe=>fe.record)}function O(fe){return!!t.getRecordMatcher(fe)}function N(fe,Te){if(Te=assign({},Te||c.value),typeof fe=="string"){const ae=parseURL(n,fe,Te.path),le=t.resolve({path:ae.path},Te),de=o.createHref(ae.fullPath);return assign(ae,le,{params:M(le.params),hash:decode$1(ae.hash),redirectedFrom:void 0,href:de})}let Se;if(fe.path!=null)Se=assign({},fe,{path:parseURL(n,fe.path,Te.path).path});else{const ae=assign({},fe.params);for(const le in ae)ae[le]==null&&delete ae[le];Se=assign({},fe,{params:v(ae)}),Te.params=v(Te.params)}const xe=t.resolve(Se,Te),Ee=fe.hash||"";xe.params=d(M(xe.params));const De=stringifyURL(a,assign({},fe,{hash:encodeHash(Ee),path:xe.path})),ne=o.createHref(De);return assign({fullPath:De,hash:Ee,query:a===stringifyQuery?normalizeQuery(fe.query):fe.query||{}},xe,{redirectedFrom:void 0,href:ne})}function $(fe){return typeof fe=="string"?parseURL(n,fe,c.value.path):assign({},fe)}function F(fe,Te){if(f!==fe)return createRouterError(8,{from:Te,to:fe})}function G(fe){return W(fe)}function q(fe){return G(assign($(fe),{replace:!0}))}function Y(fe){const Te=fe.matched[fe.matched.length-1];if(Te&&Te.redirect){const{redirect:Se}=Te;let xe=typeof Se=="function"?Se(fe):Se;return typeof xe=="string"&&(xe=xe.includes("?")||xe.includes("#")?xe=$(xe):{path:xe},xe.params={}),assign({query:fe.query,hash:fe.hash,params:xe.path!=null?{}:fe.params},xe)}}function W(fe,Te){const Se=f=N(fe),xe=c.value,Ee=fe.state,De=fe.force,ne=fe.replace===!0,ae=Y(Se);if(ae)return W(assign($(ae),{state:typeof ae=="object"?assign({},Ee,ae.state):Ee,force:De,replace:ne}),Te||Se);const le=Se;le.redirectedFrom=Te;let de;return!De&&isSameRouteLocation(a,xe,Se)&&(de=createRouterError(16,{to:le,from:xe}),Pe(xe,xe,!0,!1)),(de?Promise.resolve(de):ee(le,xe)).catch(pe=>isNavigationFailure(pe)?isNavigationFailure(pe,2)?pe:ye(pe):ce(pe,le,xe)).then(pe=>{if(pe){if(isNavigationFailure(pe,2))return W(assign({replace:ne},$(pe.to),{state:typeof pe.to=="object"?assign({},Ee,pe.to.state):Ee,force:De}),Te||le)}else pe=Q(le,xe,!0,ne,Ee);return K(le,xe,pe),pe})}function Z(fe,Te){const Se=F(fe,Te);return Se?Promise.reject(Se):Promise.resolve()}function J(fe){const Te=Be.values().next().value;return Te&&typeof Te.runWithContext=="function"?Te.runWithContext(fe):fe()}function ee(fe,Te){let Se;const[xe,Ee,De]=extractChangingRecords(fe,Te);Se=extractComponentsGuards(xe.reverse(),"beforeRouteLeave",fe,Te);for(const ae of xe)ae.leaveGuards.forEach(le=>{Se.push(guardToPromiseFn(le,fe,Te))});const ne=Z.bind(null,fe,Te);return Se.push(ne),Ve(Se).then(()=>{Se=[];for(const ae of s.list())Se.push(guardToPromiseFn(ae,fe,Te));return Se.push(ne),Ve(Se)}).then(()=>{Se=extractComponentsGuards(Ee,"beforeRouteUpdate",fe,Te);for(const ae of Ee)ae.updateGuards.forEach(le=>{Se.push(guardToPromiseFn(le,fe,Te))});return Se.push(ne),Ve(Se)}).then(()=>{Se=[];for(const ae of De)if(ae.beforeEnter)if(isArray$2(ae.beforeEnter))for(const le of ae.beforeEnter)Se.push(guardToPromiseFn(le,fe,Te));else Se.push(guardToPromiseFn(ae.beforeEnter,fe,Te));return Se.push(ne),Ve(Se)}).then(()=>(fe.matched.forEach(ae=>ae.enterCallbacks={}),Se=extractComponentsGuards(De,"beforeRouteEnter",fe,Te,J),Se.push(ne),Ve(Se))).then(()=>{Se=[];for(const ae of l.list())Se.push(guardToPromiseFn(ae,fe,Te));return Se.push(ne),Ve(Se)}).catch(ae=>isNavigationFailure(ae,8)?ae:Promise.reject(ae))}function K(fe,Te,Se){u.list().forEach(xe=>J(()=>xe(fe,Te,Se)))}function Q(fe,Te,Se,xe,Ee){const De=F(fe,Te);if(De)return De;const ne=Te===START_LOCATION_NORMALIZED,ae=isBrowser?history.state:{};Se&&(xe||ne?o.replace(fe.fullPath,assign({scroll:ne&&ae&&ae.scroll},Ee)):o.push(fe.fullPath,Ee)),c.value=fe,Pe(fe,Te,Se,ne),ye()}let ie;function oe(){ie||(ie=o.listen((fe,Te,Se)=>{if(!Ue.listening)return;const xe=N(fe),Ee=Y(xe);if(Ee){W(assign(Ee,{replace:!0}),xe).catch(noop$1);return}f=xe;const De=c.value;isBrowser&&saveScrollPosition(getScrollKey(De.fullPath,Se.delta),computeScrollPosition()),ee(xe,De).catch(ne=>isNavigationFailure(ne,12)?ne:isNavigationFailure(ne,2)?(W(ne.to,xe).then(ae=>{isNavigationFailure(ae,20)&&!Se.delta&&Se.type===NavigationType.pop&&o.go(-1,!1)}).catch(noop$1),Promise.reject()):(Se.delta&&o.go(-Se.delta,!1),ce(ne,xe,De))).then(ne=>{ne=ne||Q(xe,De,!1),ne&&(Se.delta&&!isNavigationFailure(ne,8)?o.go(-Se.delta,!1):Se.type===NavigationType.pop&&isNavigationFailure(ne,20)&&o.go(-1,!1)),K(xe,De,ne)}).catch(noop$1)}))}let se=useCallbacks(),ue=useCallbacks(),ge;function ce(fe,Te,Se){ye(fe);const xe=ue.list();return xe.length?xe.forEach(Ee=>Ee(fe,Te,Se)):console.error(fe),Promise.reject(fe)}function ve(){return ge&&c.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((fe,Te)=>{se.add([fe,Te])})}function ye(fe){return ge||(ge=!fe,oe(),se.list().forEach(([Te,Se])=>fe?Se(fe):Te()),se.reset()),fe}function Pe(fe,Te,Se,xe){const{scrollBehavior:Ee}=r;if(!isBrowser||!Ee)return Promise.resolve();const De=!Se&&getSavedScrollPosition(getScrollKey(fe.fullPath,0))||(xe||!Se)&&history.state&&history.state.scroll||null;return nextTick().then(()=>Ee(fe,Te,De)).then(ne=>ne&&scrollToPosition(ne)).catch(ne=>ce(ne,fe,Te))}const we=fe=>o.go(fe);let ke;const Be=new Set,Ue={currentRoute:c,listening:!0,addRoute:g,removeRoute:R,clearRoutes:t.clearRoutes,hasRoute:O,getRoutes:I,resolve:N,options:r,push:G,replace:q,go:we,back:()=>we(-1),forward:()=>we(1),beforeEach:s.add,beforeResolve:l.add,afterEach:u.add,onError:ue.add,isReady:ve,install(fe){const Te=this;fe.component("RouterLink",RouterLink),fe.component("RouterView",RouterView),fe.config.globalProperties.$router=Te,Object.defineProperty(fe.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(c)}),isBrowser&&!ke&&c.value===START_LOCATION_NORMALIZED&&(ke=!0,G(o.location).catch(Ee=>{}));const Se={};for(const Ee in START_LOCATION_NORMALIZED)Object.defineProperty(Se,Ee,{get:()=>c.value[Ee],enumerable:!0});fe.provide(routerKey,Te),fe.provide(routeLocationKey,shallowReactive(Se)),fe.provide(routerViewLocationKey,c);const xe=fe.unmount;Be.add(fe),fe.unmount=function(){Be.delete(fe),Be.size<1&&(f=START_LOCATION_NORMALIZED,ie&&ie(),ie=null,c.value=START_LOCATION_NORMALIZED,ke=!1,ge=!1),xe()}}};function Ve(fe){return fe.reduce((Te,Se)=>Te.then(()=>J(Se)),Promise.resolve())}return Ue}function extractChangingRecords(r,t){const n=[],a=[],o=[],s=Math.max(t.matched.length,r.matched.length);for(let l=0;lisSameRouteRecord(f,u))?a.push(u):n.push(u));const c=r.matched[l];c&&(t.matched.find(f=>isSameRouteRecord(f,c))||o.push(c))}return[n,a,o]}const _sfc_main=defineComponent({__name:"App",setup(r){return(t,n)=>(openBlock(),createBlock(unref(RouterView)))}}),scriptRel="modulepreload",assetsURL=function(r){return"/"+r},seen={},__vitePreload=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.all(n.map(u=>{if(u=assetsURL(u),u in seen)return;seen[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":scriptRel,c||(d.as="script",d.crossOrigin=""),d.href=u,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)return new Promise((v,M)=>{d.addEventListener("load",v),d.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${u}`)))})}))}return o.then(()=>t()).catch(s=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s})},routes=[{path:"/",redirect:"/index"},{path:"/home",name:"home",component:()=>__vitePreload(()=>import("./HomeView-CvNMK7w5.js"),__vite__mapDeps([0,1,2])),children:[{path:"/index",name:"index",component:()=>__vitePreload(()=>import("./index-CAm0KP_r.js"),__vite__mapDeps([3,1,4]))}]}],router=createRouter({history:createWebHashHistory("/"),routes});router.beforeEach((r,t,n)=>{n()});/*! *****************************************************************************
+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 extendStatics=function(r,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},extendStatics(r,t)};function __extends(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Browser=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),Env=function(){function r(){this.browser=new Browser,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),env=new Env;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(env.wxa=!0,env.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?env.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(env.node=!0,env.svgSupported=!0):detect(navigator.userAgent,env);function detect(r,t){var n=t.browser,a=r.match(/Firefox\/([\d.]+)/),o=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),s=r.match(/Edge?\/([\d.]+)/),l=/micromessenger/i.test(r);a&&(n.firefox=!0,n.version=a[1]),o&&(n.ie=!0,n.version=o[1]),s&&(n.edge=!0,n.version=s[1],n.newEdge=+s[1].split(".")[0]>18),l&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var u=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in u||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var DEFAULT_FONT_SIZE=12,DEFAULT_FONT_FAMILY="sans-serif",DEFAULT_FONT=DEFAULT_FONT_SIZE+"px "+DEFAULT_FONT_FAMILY,OFFSET=20,SCALE=100,defaultWidthMapStr="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function getTextWidthMap(r){var t={};if(typeof JSON>"u")return t;for(var n=0;n=0)u=l*n.length;else for(var c=0;c>1)%2;u.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[c]+":0",o[f]+":0",a[1-c]+":auto",o[1-f]+":auto",""].join("!important;"),r.appendChild(l),n.push(l)}return n}function preparePointerTransformer(r,t,n){for(var a=n?"invTrans":"trans",o=t[a],s=t.srcCoords,l=[],u=[],c=!0,f=0;f<4;f++){var d=r[f].getBoundingClientRect(),v=2*f,M=d.left,g=d.top;l.push(M,g),c=c&&s&&M===s[v]&&g===s[v+1],u.push(r[f].offsetLeft,r[f].offsetTop)}return c&&o?o:(t.srcCoords=l,t[a]=n?buildTransformer(u,l):buildTransformer(l,u))}function isCanvasEl(r){return r.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&","<":"<",">":">",'"':""","'":"'"};function encodeHTML(r){return r==null?"":(r+"").replace(replaceReg,function(t,n){return replaceMap[n]})}var MOUSE_EVENT_REG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_calcOut=[],firefoxNotSupportOffsetXY=env.browser.firefox&&+env.browser.version.split(".")[0]<39;function clientToLocal(r,t,n,a){return n=n||{},a?calculateZrXY(r,t,n):firefoxNotSupportOffsetXY&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):calculateZrXY(r,t,n),n}function calculateZrXY(r,t,n){if(env.domSupported&&r.getBoundingClientRect){var a=t.clientX,o=t.clientY;if(isCanvasEl(r)){var s=r.getBoundingClientRect();n.zrX=a-s.left,n.zrY=o-s.top;return}else if(transformCoordWithViewport(_calcOut,r,a,o)){n.zrX=_calcOut[0],n.zrY=_calcOut[1];return}}n.zrX=n.zrY=0}function getNativeEvent(r){return r||window.event}function normalizeEvent(r,t,n){if(t=getNativeEvent(t),t.zrX!=null)return t;var a=t.type,o=a&&a.indexOf("touch")>=0;if(o){var l=a!=="touchend"?t.targetTouches[0]:t.changedTouches[0];l&&clientToLocal(r,l,t,n)}else{clientToLocal(r,t,t,n);var s=getWheelDeltaMayPolyfill(t);t.zrDelta=s?s/120:-(t.detail||0)/3}var u=t.button;return t.which==null&&u!==void 0&&MOUSE_EVENT_REG.test(t.type)&&(t.which=u&1?1:u&2?3:u&4?2:0),t}function getWheelDeltaMayPolyfill(r){var t=r.wheelDelta;if(t)return t;var n=r.deltaX,a=r.deltaY;if(n==null||a==null)return t;var o=Math.abs(a!==0?a:n),s=a>0?-1:a<0?1:n>0?-1:1;return 3*o*s}function addEventListener(r,t,n,a){r.addEventListener(t,n,a)}function removeEventListener(r,t,n,a){r.removeEventListener(t,n,a)}var stop=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function isMiddleOrRightButtonOnMouseUpDown(r){return r.which===2||r.which===3}var GestureMgr=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,n,a){return this._doTrack(t,n,a),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,n,a){var o=t.touches;if(o){for(var s={points:[],touches:[],target:n,event:t},l=0,u=o.length;l1&&a&&a.length>1){var s=dist(a)/dist(o);!isFinite(s)&&(s=1),t.pinchScale=s;var l=center(a);return t.pinchX=l[0],t.pinchY=l[1],{type:"pinch",target:r[0].target,event:t}}}}};function create(){return[1,0,0,1,0,0]}function identity(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function copy(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function mul(r,t,n){var a=t[0]*n[0]+t[2]*n[1],o=t[1]*n[0]+t[3]*n[1],s=t[0]*n[2]+t[2]*n[3],l=t[1]*n[2]+t[3]*n[3],u=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return r[0]=a,r[1]=o,r[2]=s,r[3]=l,r[4]=u,r[5]=c,r}function translate(r,t,n){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+n[0],r[5]=t[5]+n[1],r}function rotate(r,t,n,a){a===void 0&&(a=[0,0]);var o=t[0],s=t[2],l=t[4],u=t[1],c=t[3],f=t[5],d=Math.sin(n),v=Math.cos(n);return r[0]=o*v+u*d,r[1]=-o*d+u*v,r[2]=s*v+c*d,r[3]=-s*d+v*c,r[4]=v*(l-a[0])+d*(f-a[1])+a[0],r[5]=v*(f-a[1])-d*(l-a[0])+a[1],r}function scale$1(r,t,n){var a=n[0],o=n[1];return r[0]=t[0]*a,r[1]=t[1]*o,r[2]=t[2]*a,r[3]=t[3]*o,r[4]=t[4]*a,r[5]=t[5]*o,r}function invert(r,t){var n=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=n*l-s*a;return c?(c=1/c,r[0]=l*c,r[1]=-s*c,r[2]=-a*c,r[3]=n*c,r[4]=(a*u-l*o)*c,r[5]=(s*o-n*u)*c,r):null}function clone$1(r){var t=create();return copy(t,r),t}var Point=function(){function r(t,n){this.x=t||0,this.y=n||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,n){return this.x=t,this.y=n,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var n=this.x-t.x,a=this.y-t.y;return Math.sqrt(n*n+a*a)},r.prototype.distanceSquare=function(t){var n=this.x-t.x,a=this.y-t.y;return n*n+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var n=this.x,a=this.y;return this.x=t[0]*n+t[2]*a+t[4],this.y=t[1]*n+t[3]*a+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,n,a){t.x=n,t.y=a},r.copy=function(t,n){t.x=n.x,t.y=n.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,n){return t.x*n.x+t.y*n.y},r.add=function(t,n,a){t.x=n.x+a.x,t.y=n.y+a.y},r.sub=function(t,n,a){t.x=n.x-a.x,t.y=n.y-a.y},r.scale=function(t,n,a){t.x=n.x*a,t.y=n.y*a},r.scaleAndAdd=function(t,n,a,o){t.x=n.x+a.x*o,t.y=n.y+a.y*o},r.lerp=function(t,n,a,o){var s=1-o;t.x=s*n.x+o*a.x,t.y=s*n.y+o*a.y},r}(),mathMin$7=Math.min,mathMax$7=Math.max,lt=new Point,rb=new Point,lb=new Point,rt=new Point,minTv$1=new Point,maxTv$1=new Point,BoundingRect=function(){function r(t,n,a,o){a<0&&(t=t+a,a=-a),o<0&&(n=n+o,o=-o),this.x=t,this.y=n,this.width=a,this.height=o}return r.prototype.union=function(t){var n=mathMin$7(t.x,this.x),a=mathMin$7(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$7(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$7(t.y+t.height,this.y+this.height)-a:this.height=t.height,this.x=n,this.y=a},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var n=this,a=t.width/n.width,o=t.height/n.height,s=create();return translate(s,s,[-n.x,-n.y]),scale$1(s,s,[a,o]),translate(s,s,[t.x,t.y]),s},r.prototype.intersect=function(t,n){if(!t)return!1;t instanceof r||(t=r.create(t));var a=this,o=a.x,s=a.x+a.width,l=a.y,u=a.y+a.height,c=t.x,f=t.x+t.width,d=t.y,v=t.y+t.height,M=!(sR&&(R=F,IR&&(R=G,N<$?Point.set(maxTv$1,0,-N):Point.set(maxTv$1,0,$)):F=a.x&&t<=a.x+a.width&&n>=a.y&&n<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},r.applyTransform=function(t,n,a){if(!a){t!==n&&r.copy(t,n);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var o=a[0],s=a[3],l=a[4],u=a[5];t.x=n.x*o+l,t.y=n.y*s+u,t.width=n.width*o,t.height=n.height*s,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}lt.x=lb.x=n.x,lt.y=rt.y=n.y,rb.x=rt.x=n.x+n.width,rb.y=lb.y=n.y+n.height,lt.transform(a),rt.transform(a),rb.transform(a),lb.transform(a),t.x=mathMin$7(lt.x,rb.x,lb.x,rt.x),t.y=mathMin$7(lt.y,rb.y,lb.y,rt.y);var c=mathMax$7(lt.x,rb.x,lb.x,rt.x),f=mathMax$7(lt.y,rb.y,lb.y,rt.y);t.width=c-t.x,t.height=f-t.y},r}(),SILENT="silent";function makeEventPacket(r,t,n){return{type:r,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:stopEvent}}function stopEvent(){stop(this.event)}var EmptyProxy=function(r){__extends(t,r);function t(){var n=r!==null&&r.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Eventful),HoveredResult=function(){function r(t,n){this.x=t,this.y=n}return r}(),handlerNames=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tmpRect$1=new BoundingRect(0,0,0,0),Handler=function(r){__extends(t,r);function t(n,a,o,s,l){var u=r.call(this)||this;return u._hovered=new HoveredResult(0,0),u.storage=n,u.painter=a,u.painterRoot=s,u._pointerSize=l,o=o||new EmptyProxy,u.proxy=null,u.setHandlerProxy(o),u._draggingMgr=new Draggable(u),u}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(each$9(handlerNames,function(a){n.on&&n.on(a,this[a],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var a=n.zrX,o=n.zrY,s=isOutsideBoundary(this,a,o),l=this._hovered,u=l.target;u&&!u.__zr&&(l=this.findHover(l.x,l.y),u=l.target);var c=this._hovered=s?new HoveredResult(a,o):this.findHover(a,o),f=c.target,d=this.proxy;d.setCursor&&d.setCursor(f?f.cursor:"default"),u&&f!==u&&this.dispatchToElement(l,"mouseout",n),this.dispatchToElement(c,"mousemove",n),f&&f!==u&&this.dispatchToElement(c,"mouseover",n)},t.prototype.mouseout=function(n){var a=n.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new HoveredResult(0,0)},t.prototype.dispatch=function(n,a){var o=this[n];o&&o.call(this,a)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var a=this.proxy;a.setCursor&&a.setCursor(n)},t.prototype.dispatchToElement=function(n,a,o){n=n||{};var s=n.target;if(!(s&&s.silent)){for(var l="on"+a,u=makeEventPacket(a,n,o);s&&(s[l]&&(u.cancelBubble=!!s[l].call(s,u)),s.trigger(a,u),s=s.__hostTarget?s.__hostTarget:s.parent,!u.cancelBubble););u.cancelBubble||(this.trigger(a,u),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(c){typeof c[l]=="function"&&c[l].call(c,u),c.trigger&&c.trigger(a,u)}))}},t.prototype.findHover=function(n,a,o){var s=this.storage.getDisplayList(),l=new HoveredResult(n,a);if(setHoverTarget(s,l,n,a,o),this._pointerSize&&!l.target){for(var u=[],c=this._pointerSize,f=c/2,d=new BoundingRect(n-f,a-f,c,c),v=s.length-1;v>=0;v--){var M=s[v];M!==o&&!M.ignore&&!M.ignoreCoarsePointer&&(!M.parent||!M.parent.ignoreCoarsePointer)&&(tmpRect$1.copy(M.getBoundingRect()),M.transform&&tmpRect$1.applyTransform(M.transform),tmpRect$1.intersect(d)&&u.push(M))}if(u.length)for(var g=4,R=Math.PI/12,I=Math.PI*2,O=0;O4)return;this._downPoint=null}this.dispatchToElement(s,r,t)}});function isHover(r,t,n){if(r[r.rectHover?"rectContain":"contain"](t,n)){for(var a=r,o=void 0,s=!1;a;){if(a.ignoreClip&&(s=!0),!s){var l=a.getClipPath();if(l&&!l.contain(t,n))return!1}a.silent&&(o=!0);var u=a.__hostTarget;a=u||a.parent}return o?SILENT:!0}return!1}function setHoverTarget(r,t,n,a,o){for(var s=r.length-1;s>=0;s--){var l=r[s],u=void 0;if(l!==o&&!l.ignore&&(u=isHover(l,n,a))&&(!t.topTarget&&(t.topTarget=l),u!==SILENT)){t.target=l;break}}}function isOutsideBoundary(r,t,n){var a=r.painter;return t<0||t>a.getWidth()||n<0||n>a.getHeight()}var DEFAULT_MIN_MERGE=32,DEFAULT_MIN_GALLOPING=7;function minRunLength(r){for(var t=0;r>=DEFAULT_MIN_MERGE;)t|=r&1,r>>=1;return r+t}function makeAscendingRun(r,t,n,a){var o=t+1;if(o===n)return 1;if(a(r[o++],r[t])<0){for(;o=0;)o++;return o-t}function reverseRun(r,t,n){for(n--;t>>1,o(s,r[c])<0?u=c:l=c+1;var f=a-l;switch(f){case 3:r[l+3]=r[l+2];case 2:r[l+2]=r[l+1];case 1:r[l+1]=r[l];break;default:for(;f>0;)r[l+f]=r[l+f-1],f--}r[l]=s}}function gallopLeft(r,t,n,a,o,s){var l=0,u=0,c=1;if(s(r,t[n+o])>0){for(u=a-o;c0;)l=c,c=(c<<1)+1,c<=0&&(c=u);c>u&&(c=u),l+=o,c+=o}else{for(u=o+1;cu&&(c=u);var f=l;l=o-c,c=o-f}for(l++;l>>1);s(r,t[n+d])>0?l=d+1:c=d}return c}function gallopRight(r,t,n,a,o,s){var l=0,u=0,c=1;if(s(r,t[n+o])<0){for(u=o+1;cu&&(c=u);var f=l;l=o-c,c=o-f}else{for(u=a-o;c=0;)l=c,c=(c<<1)+1,c<=0&&(c=u);c>u&&(c=u),l+=o,c+=o}for(l++;l>>1);s(r,t[n+d])<0?c=d:l=d+1}return c}function TimSort(r,t){var n=DEFAULT_MIN_GALLOPING,a,o,s=0,l=[];a=[],o=[];function u(g,R){a[s]=g,o[s]=R,s+=1}function c(){for(;s>1;){var g=s-2;if(g>=1&&o[g-1]<=o[g]+o[g+1]||g>=2&&o[g-2]<=o[g]+o[g-1])o[g-1]o[g+1])break;d(g)}}function f(){for(;s>1;){var g=s-2;g>0&&o[g-1]=DEFAULT_MIN_GALLOPING||W>=DEFAULT_MIN_GALLOPING);if(Z)break;q<0&&(q=0),q+=2}if(n=q,n<1&&(n=1),R===1){for(N=0;N=0;N--)r[Y+N]=r[q+N];r[G]=l[F];return}for(var W=n;;){var Z=0,J=0,ee=!1;do if(t(l[F],r[$])<0){if(r[G--]=r[$--],Z++,J=0,--R===0){ee=!0;break}}else if(r[G--]=l[F--],J++,Z=0,--O===1){ee=!0;break}while((Z|J)=0;N--)r[Y+N]=r[q+N];if(R===0){ee=!0;break}}if(r[G--]=l[F--],--O===1){ee=!0;break}if(J=O-gallopLeft(r[$],l,0,O,O-1,t),J!==0){for(G-=J,F-=J,O-=J,Y=G+1,q=F+1,N=0;N=DEFAULT_MIN_GALLOPING||J>=DEFAULT_MIN_GALLOPING);if(ee)break;W<0&&(W=0),W+=2}if(n=W,n<1&&(n=1),O===1){for(G-=R,$-=R,Y=G+1,q=$+1,N=R-1;N>=0;N--)r[Y+N]=r[q+N];r[G]=l[F]}else{if(O===0)throw new Error;for(q=G-(O-1),N=0;Nu&&(c=u),binaryInsertionSort(r,n,n+c,n+s,t),s=c}l.pushRun(n,s),l.mergeRuns(),o-=s,n+=s}while(o!==0);l.forceMergeRuns()}}var REDRAW_BIT=1,STYLE_CHANGED_BIT=2,SHAPE_CHANGED_BIT=4,invalidZErrorLogged=!1;function logInvalidZError(){invalidZErrorLogged||(invalidZErrorLogged=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function shapeCompareFunc(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var Storage=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=shapeCompareFunc}return r.prototype.traverse=function(t,n){for(var a=0;a0&&(d.__clipPaths=[]),isNaN(d.z)&&(logInvalidZError(),d.z=0),isNaN(d.z2)&&(logInvalidZError(),d.z2=0),isNaN(d.zlevel)&&(logInvalidZError(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=t.getDecalElement&&t.getDecalElement();v&&this._updateAndAddDisplayable(v,n,a);var M=t.getTextGuideLine();M&&this._updateAndAddDisplayable(M,n,a);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,n,a)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,a=t.length;n=0&&this._roots.splice(o,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),requestAnimationFrame$2;requestAnimationFrame$2=env.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var easingFuncs={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,n=.1,a=.4;return r===0?0:r===1?1:(!n||n<1?(n=1,t=a/4):t=a*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,n=.1,a=.4;return r===0?0:r===1?1:(!n||n<1?(n=1,t=a/4):t=a*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,n=.1,a=.4;return r===0?0:r===1?1:(!n||n<1?(n=1,t=a/4):t=a*Math.asin(1/n)/(2*Math.PI),(r*=2)<1?-.5*(n*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)):n*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-easingFuncs.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?easingFuncs.bounceIn(r*2)*.5:easingFuncs.bounceOut(r*2-1)*.5+.5}},mathPow$1=Math.pow,mathSqrt$3=Math.sqrt,EPSILON$4=1e-8,EPSILON_NUMERIC=1e-4,THREE_SQRT=mathSqrt$3(3),ONE_THIRD=1/3,_v0=create$1(),_v1=create$1(),_v2=create$1();function isAroundZero$1(r){return r>-EPSILON$4&&rEPSILON$4||r<-EPSILON$4}function cubicAt(r,t,n,a,o){var s=1-o;return s*s*(s*r+3*o*t)+o*o*(o*a+3*s*n)}function cubicDerivativeAt(r,t,n,a,o){var s=1-o;return 3*(((t-r)*s+2*(n-t)*o)*s+(a-n)*o*o)}function cubicRootAt(r,t,n,a,o,s){var l=a+3*(t-n)-r,u=3*(n-t*2+r),c=3*(t-r),f=r-o,d=u*u-3*l*c,v=u*c-9*l*f,M=c*c-3*u*f,g=0;if(isAroundZero$1(d)&&isAroundZero$1(v))if(isAroundZero$1(u))s[0]=0;else{var R=-c/u;R>=0&&R<=1&&(s[g++]=R)}else{var I=v*v-4*d*M;if(isAroundZero$1(I)){var O=v/d,R=-u/l+O,N=-O/2;R>=0&&R<=1&&(s[g++]=R),N>=0&&N<=1&&(s[g++]=N)}else if(I>0){var $=mathSqrt$3(I),F=d*u+1.5*l*(-v+$),G=d*u+1.5*l*(-v-$);F<0?F=-mathPow$1(-F,ONE_THIRD):F=mathPow$1(F,ONE_THIRD),G<0?G=-mathPow$1(-G,ONE_THIRD):G=mathPow$1(G,ONE_THIRD);var R=(-u-(F+G))/(3*l);R>=0&&R<=1&&(s[g++]=R)}else{var q=(2*d*u-3*l*v)/(2*mathSqrt$3(d*d*d)),Y=Math.acos(q)/3,W=mathSqrt$3(d),Z=Math.cos(Y),R=(-u-2*W*Z)/(3*l),N=(-u+W*(Z+THREE_SQRT*Math.sin(Y)))/(3*l),J=(-u+W*(Z-THREE_SQRT*Math.sin(Y)))/(3*l);R>=0&&R<=1&&(s[g++]=R),N>=0&&N<=1&&(s[g++]=N),J>=0&&J<=1&&(s[g++]=J)}}return g}function cubicExtrema(r,t,n,a,o){var s=6*n-12*t+6*r,l=9*t+3*a-3*r-9*n,u=3*t-3*r,c=0;if(isAroundZero$1(l)){if(isNotAroundZero$1(s)){var f=-u/s;f>=0&&f<=1&&(o[c++]=f)}}else{var d=s*s-4*l*u;if(isAroundZero$1(d))o[0]=-s/(2*l);else if(d>0){var v=mathSqrt$3(d),f=(-s+v)/(2*l),M=(-s-v)/(2*l);f>=0&&f<=1&&(o[c++]=f),M>=0&&M<=1&&(o[c++]=M)}}return c}function cubicSubdivide(r,t,n,a,o,s){var l=(t-r)*o+r,u=(n-t)*o+t,c=(a-n)*o+n,f=(u-l)*o+l,d=(c-u)*o+u,v=(d-f)*o+f;s[0]=r,s[1]=l,s[2]=f,s[3]=v,s[4]=v,s[5]=d,s[6]=c,s[7]=a}function cubicProjectPoint(r,t,n,a,o,s,l,u,c,f,d){var v,M=.005,g=1/0,R,I,O,N;_v0[0]=c,_v0[1]=f;for(var $=0;$<1;$+=.05)_v1[0]=cubicAt(r,n,o,l,$),_v1[1]=cubicAt(t,a,s,u,$),O=distSquare(_v0,_v1),O=0&&O=0&&f<=1&&(o[c++]=f)}}else{var d=l*l-4*s*u;if(isAroundZero$1(d)){var f=-l/(2*s);f>=0&&f<=1&&(o[c++]=f)}else if(d>0){var v=mathSqrt$3(d),f=(-l+v)/(2*s),M=(-l-v)/(2*s);f>=0&&f<=1&&(o[c++]=f),M>=0&&M<=1&&(o[c++]=M)}}return c}function quadraticExtremum(r,t,n){var a=r+n-2*t;return a===0?.5:(r-t)/a}function quadraticSubdivide(r,t,n,a,o){var s=(t-r)*a+r,l=(n-t)*a+t,u=(l-s)*a+s;o[0]=r,o[1]=s,o[2]=u,o[3]=u,o[4]=l,o[5]=n}function quadraticProjectPoint(r,t,n,a,o,s,l,u,c){var f,d=.005,v=1/0;_v0[0]=l,_v0[1]=u;for(var M=0;M<1;M+=.05){_v1[0]=quadraticAt(r,n,o,M),_v1[1]=quadraticAt(t,a,s,M);var g=distSquare(_v0,_v1);g=0&&g=1?1:cubicRootAt(0,a,s,1,c,u)&&cubicAt(0,o,l,1,u[0])}}}var Clip=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||noop,this.ondestroy=t.ondestroy||noop,this.onrestart=t.onrestart||noop,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var a=this._life,o=t-this._startTime-this._pausedTime,s=o/a;s<0&&(s=0),s=Math.min(s,1);var l=this.easingFunc,u=l?l(s):s;if(this.onframe(u),s===1)if(this.loop){var c=o%a;this._startTime=t-c,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=isFunction(t)?t:easingFuncs[t]||createCubicEasingFunc(t)},r}(),Entry=function(){function r(t){this.value=t}return r}(),LinkedList=function(){function r(){this._len=0}return r.prototype.insert=function(t){var n=new Entry(t);return this.insertEntry(n),n},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var n=t.prev,a=t.next;n?n.next=a:this.head=a,a?a.prev=n:this.tail=n,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),LRU=function(){function r(t){this._list=new LinkedList,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,n){var a=this._list,o=this._map,s=null;if(o[t]==null){var l=a.len(),u=this._lastRemovedEntry;if(l>=this._maxSize&&l>0){var c=a.head;a.remove(c),delete o[c.key],s=c.value,this._lastRemovedEntry=c}u?u.value=n:u=new Entry(n),u.key=t,a.insertEntry(u),o[t]=u}return s},r.prototype.get=function(t){var n=this._map[t],a=this._list;if(n!=null)return n!==a.tail&&(a.remove(n),a.insertEntry(n)),n.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),kCSSColorTable={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function clampCssByte(r){return r=Math.round(r),r<0?0:r>255?255:r}function clampCssAngle(r){return r=Math.round(r),r<0?0:r>360?360:r}function clampCssFloat(r){return r<0?0:r>1?1:r}function parseCssInt(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?clampCssByte(parseFloat(t)/100*255):clampCssByte(parseInt(t,10))}function parseCssFloat(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?clampCssFloat(parseFloat(t)/100):clampCssFloat(parseFloat(t))}function cssHueToRgb(r,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?r+(t-r)*n*6:n*2<1?t:n*3<2?r+(t-r)*(2/3-n)*6:r}function lerpNumber(r,t,n){return r+(t-r)*n}function setRgba(r,t,n,a,o){return r[0]=t,r[1]=n,r[2]=a,r[3]=o,r}function copyRgba(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var colorCache=new LRU(20),lastRemovedArr=null;function putToCache(r,t){lastRemovedArr&©Rgba(lastRemovedArr,t),lastRemovedArr=colorCache.put(r,lastRemovedArr||t.slice())}function parse(r,t){if(r){t=t||[];var n=colorCache.get(r);if(n)return copyRgba(t,n);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in kCSSColorTable)return copyRgba(t,kCSSColorTable[a]),putToCache(r,t),t;var o=a.length;if(a.charAt(0)==="#"){if(o===4||o===5){var s=parseInt(a.slice(1,4),16);if(!(s>=0&&s<=4095)){setRgba(t,0,0,0,1);return}return setRgba(t,(s&3840)>>4|(s&3840)>>8,s&240|(s&240)>>4,s&15|(s&15)<<4,o===5?parseInt(a.slice(4),16)/15:1),putToCache(r,t),t}else if(o===7||o===9){var s=parseInt(a.slice(1,7),16);if(!(s>=0&&s<=16777215)){setRgba(t,0,0,0,1);return}return setRgba(t,(s&16711680)>>16,(s&65280)>>8,s&255,o===9?parseInt(a.slice(7),16)/255:1),putToCache(r,t),t}return}var l=a.indexOf("("),u=a.indexOf(")");if(l!==-1&&u+1===o){var c=a.substr(0,l),f=a.substr(l+1,u-(l+1)).split(","),d=1;switch(c){case"rgba":if(f.length!==4)return f.length===3?setRgba(t,+f[0],+f[1],+f[2],1):setRgba(t,0,0,0,1);d=parseCssFloat(f.pop());case"rgb":if(f.length>=3)return setRgba(t,parseCssInt(f[0]),parseCssInt(f[1]),parseCssInt(f[2]),f.length===3?d:parseCssFloat(f[3])),putToCache(r,t),t;setRgba(t,0,0,0,1);return;case"hsla":if(f.length!==4){setRgba(t,0,0,0,1);return}return f[3]=parseCssFloat(f[3]),hsla2rgba(f,t),putToCache(r,t),t;case"hsl":if(f.length!==3){setRgba(t,0,0,0,1);return}return hsla2rgba(f,t),putToCache(r,t),t;default:return}}setRgba(t,0,0,0,1)}}function hsla2rgba(r,t){var n=(parseFloat(r[0])%360+360)%360/360,a=parseCssFloat(r[1]),o=parseCssFloat(r[2]),s=o<=.5?o*(a+1):o+a-o*a,l=o*2-s;return t=t||[],setRgba(t,clampCssByte(cssHueToRgb(l,s,n+1/3)*255),clampCssByte(cssHueToRgb(l,s,n)*255),clampCssByte(cssHueToRgb(l,s,n-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function rgba2hsla(r){if(r){var t=r[0]/255,n=r[1]/255,a=r[2]/255,o=Math.min(t,n,a),s=Math.max(t,n,a),l=s-o,u=(s+o)/2,c,f;if(l===0)c=0,f=0;else{u<.5?f=l/(s+o):f=l/(2-s-o);var d=((s-t)/6+l/2)/l,v=((s-n)/6+l/2)/l,M=((s-a)/6+l/2)/l;t===s?c=M-v:n===s?c=1/3+d-M:a===s&&(c=2/3+v-d),c<0&&(c+=1),c>1&&(c-=1)}var g=[c*360,f,u];return r[3]!=null&&g.push(r[3]),g}}function lift(r,t){var n=parse(r);if(n){for(var a=0;a<3;a++)t<0?n[a]=n[a]*(1-t)|0:n[a]=(255-n[a])*t+n[a]|0,n[a]>255?n[a]=255:n[a]<0&&(n[a]=0);return stringify(n,n.length===4?"rgba":"rgb")}}function fastLerp(r,t,n){if(!(!(t&&t.length)||!(r>=0&&r<=1))){n=n||[];var a=r*(t.length-1),o=Math.floor(a),s=Math.ceil(a),l=t[o],u=t[s],c=a-o;return n[0]=clampCssByte(lerpNumber(l[0],u[0],c)),n[1]=clampCssByte(lerpNumber(l[1],u[1],c)),n[2]=clampCssByte(lerpNumber(l[2],u[2],c)),n[3]=clampCssFloat(lerpNumber(l[3],u[3],c)),n}}function lerp(r,t,n){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var a=r*(t.length-1),o=Math.floor(a),s=Math.ceil(a),l=parse(t[o]),u=parse(t[s]),c=a-o,f=stringify([clampCssByte(lerpNumber(l[0],u[0],c)),clampCssByte(lerpNumber(l[1],u[1],c)),clampCssByte(lerpNumber(l[2],u[2],c)),clampCssFloat(lerpNumber(l[3],u[3],c))],"rgba");return n?{color:f,leftIndex:o,rightIndex:s,value:a}:f}}function modifyHSL(r,t,n,a){var o=parse(r);if(r)return o=rgba2hsla(o),t!=null&&(o[0]=clampCssAngle(t)),n!=null&&(o[1]=parseCssFloat(n)),a!=null&&(o[2]=parseCssFloat(a)),stringify(hsla2rgba(o),"rgba")}function modifyAlpha(r,t){var n=parse(r);if(n&&t!=null)return n[3]=clampCssFloat(t),stringify(n,"rgba")}function stringify(r,t){if(!(!r||!r.length)){var n=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+r[3]),t+"("+n+")"}}function lum(r,t){var n=parse(r);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var liftedColorCache=new LRU(100);function liftColor(r){if(isString(r)){var t=liftedColorCache.get(r);return t||(t=lift(r,-.1),liftedColorCache.put(r,t)),t}else if(isGradientObject(r)){var n=extend({},r);return n.colorStops=map$1(r.colorStops,function(a){return{offset:a.offset,color:lift(a.color,-.1)}}),n}return r}var mathRound=Math.round;function normalizeColor(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var n=parse(r);n&&(r="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}return{color:r,opacity:t??1}}var EPSILON$3=1e-4;function isAroundZero(r){return r-EPSILON$3}function round3(r){return mathRound(r*1e3)/1e3}function round4(r){return mathRound(r*1e4)/1e4}function getMatrixStr(r){return"matrix("+round3(r[0])+","+round3(r[1])+","+round3(r[2])+","+round3(r[3])+","+round4(r[4])+","+round4(r[5])+")"}var TEXT_ALIGN_TO_ANCHOR={left:"start",right:"end",center:"middle",middle:"middle"};function adjustTextY$1(r,t,n){return n==="top"?r+=t/2:n==="bottom"&&(r-=t/2),r}function hasShadow(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function getShadowKey(r){var t=r.style,n=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function isImagePattern(r){return r&&!!r.image}function isSVGPattern(r){return r&&!!r.svgElement}function isPattern(r){return isImagePattern(r)||isSVGPattern(r)}function isLinearGradient(r){return r.type==="linear"}function isRadialGradient(r){return r.type==="radial"}function isGradient(r){return r&&(r.type==="linear"||r.type==="radial")}function getIdURL(r){return"url(#"+r+")"}function getPathPrecision(r){var t=r.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function getSRTTransformString(r){var t=r.x||0,n=r.y||0,a=(r.rotation||0)*RADIAN_TO_DEGREE,o=retrieve2(r.scaleX,1),s=retrieve2(r.scaleY,1),l=r.skewX||0,u=r.skewY||0,c=[];return(t||n)&&c.push("translate("+t+"px,"+n+"px)"),a&&c.push("rotate("+a+")"),(o!==1||s!==1)&&c.push("scale("+o+","+s+")"),(l||u)&&c.push("skew("+mathRound(l*RADIAN_TO_DEGREE)+"deg, "+mathRound(u*RADIAN_TO_DEGREE)+"deg)"),c.join(" ")}var encodeBase64=function(){return env.hasGlobalWindow&&isFunction(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),arraySlice=Array.prototype.slice;function interpolateNumber$1(r,t,n){return(t-r)*n+r}function interpolate1DArray(r,t,n,a){for(var o=t.length,s=0;sa?t:r,s=Math.min(n,a),l=o[s-1]||{color:[0,0,0,0],offset:0},u=s;ul;if(u)a.length=l;else for(var c=s;c=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,n,a){this._needsSort=!0;var o=this.keyframes,s=o.length,l=!1,u=VALUE_TYPE_UNKOWN,c=n;if(isArrayLike(n)){var f=guessArrayDim(n);u=f,(f===1&&!isNumber(n[0])||f===2&&!isNumber(n[0][0]))&&(l=!0)}else if(isNumber(n)&&!eqNaN(n))u=VALUE_TYPE_NUMBER;else if(isString(n))if(!isNaN(+n))u=VALUE_TYPE_NUMBER;else{var d=parse(n);d&&(c=d,u=VALUE_TYPE_COLOR)}else if(isGradientObject(n)){var v=extend({},c);v.colorStops=map$1(n.colorStops,function(g){return{offset:g.offset,color:parse(g.color)}}),isLinearGradient(n)?u=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient(n)&&(u=VALUE_TYPE_RADIAL_GRADIENT),c=v}s===0?this.valType=u:(u!==this.valType||u===VALUE_TYPE_UNKOWN)&&(l=!0),this.discrete=this.discrete||l;var M={time:t,value:c,rawValue:n,percent:0};return a&&(M.easing=a,M.easingFunc=isFunction(a)?a:easingFuncs[a]||createCubicEasingFunc(a)),o.push(M),M},r.prototype.prepare=function(t,n){var a=this.keyframes;this._needsSort&&a.sort(function(I,O){return I.time-O.time});for(var o=this.valType,s=a.length,l=a[s-1],u=this.discrete,c=isArrayValueType(o),f=isGradientValueType(o),d=0;d=0&&!(l[d].percent<=n);d--);d=M(d,u-2)}else{for(d=v;dn);d++);d=M(d-1,u-2)}R=l[d+1],g=l[d]}if(g&&R){this._lastFr=d,this._lastFrP=n;var O=R.percent-g.percent,N=O===0?1:M((n-g.percent)/O,1);R.easingFunc&&(N=R.easingFunc(N));var $=a?this._additiveValue:f?tmpRgba:t[c];if((isArrayValueType(s)||f)&&!$&&($=this._additiveValue=[]),this.discrete)t[c]=N<1?g.rawValue:R.rawValue;else if(isArrayValueType(s))s===VALUE_TYPE_1D_ARRAY?interpolate1DArray($,g[o],R[o],N):interpolate2DArray($,g[o],R[o],N);else if(isGradientValueType(s)){var F=g[o],G=R[o],q=s===VALUE_TYPE_LINEAR_GRADIENT;t[c]={type:q?"linear":"radial",x:interpolateNumber$1(F.x,G.x,N),y:interpolateNumber$1(F.y,G.y,N),colorStops:map$1(F.colorStops,function(W,Z){var J=G.colorStops[Z];return{offset:interpolateNumber$1(W.offset,J.offset,N),color:rgba2String(interpolate1DArray([],W.color,J.color,N))}}),global:G.global},q?(t[c].x2=interpolateNumber$1(F.x2,G.x2,N),t[c].y2=interpolateNumber$1(F.y2,G.y2,N)):t[c].r=interpolateNumber$1(F.r,G.r,N)}else if(f)interpolate1DArray($,g[o],R[o],N),a||(t[c]=rgba2String($));else{var Y=interpolateNumber$1(g[o],R[o],N);a?this._additiveValue=Y:t[c]=Y}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var n=this.valType,a=this.propName,o=this._additiveValue;n===VALUE_TYPE_NUMBER?t[a]=t[a]+o:n===VALUE_TYPE_COLOR?(parse(t[a],tmpRgba),add1DArray(tmpRgba,tmpRgba,o,1),t[a]=rgba2String(tmpRgba)):n===VALUE_TYPE_1D_ARRAY?add1DArray(t[a],t[a],o,1):n===VALUE_TYPE_2D_ARRAY&&add2DArray(t[a],t[a],o,1)},r}(),Animator=function(){function r(t,n,a,o){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&o){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=o,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,n,a){return this.whenWithKeys(t,n,keys(n),a)},r.prototype.whenWithKeys=function(t,n,a,o){for(var s=this._tracks,l=0;l0&&c.addKeyframe(0,cloneValue(f),o),this._trackKeys.push(u)}c.addKeyframe(t,cloneValue(n[u]),o)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,a=0;a0)){this._started=1;for(var n=this,a=[],o=this._maxTime||0,s=0;s1){var u=l.pop();s.addKeyframe(u.time,t[o]),s.prepare(this._maxTime,s.getAdditiveTrack())}}}},r}();function getTime(){return new Date().getTime()}var Animation=function(r){__extends(t,r);function t(n){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,n=n||{},a.stage=n.stage||{},a}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var a=n.getClip();a&&this.addClip(a)},t.prototype.removeClip=function(n){if(n.animation){var a=n.prev,o=n.next;a?a.next=o:this._head=o,o?o.prev=a:this._tail=a,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var a=n.getClip();a&&this.removeClip(a),n.animation=null},t.prototype.update=function(n){for(var a=getTime()-this._pausedTime,o=a-this._time,s=this._head;s;){var l=s.next,u=s.step(a,o);u&&(s.ondestroy(),this.removeClip(s)),s=l}this._time=a,n||(this.trigger("frame",o),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function a(){n._running&&(requestAnimationFrame$2(a),!n._paused&&n.update())}requestAnimationFrame$2(a)},t.prototype.start=function(){this._running||(this._time=getTime(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=getTime(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=getTime()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var a=n.next;n.prev=n.next=n.animation=null,n=a}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,a){a=a||{},this.start();var o=new Animator(n,a.loop);return this.addAnimator(o),o},t}(Eventful),TOUCH_CLICK_DELAY=300,globalEventSupported=env.domSupported,localNativeListenerNames=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=map$1(r,function(o){var s=o.replace("mouse","pointer");return n.hasOwnProperty(s)?s:o});return{mouse:r,touch:t,pointer:a}}(),globalNativeListenerNames={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wheelEventSupported=!1;function isPointerFromTouch(r){var t=r.pointerType;return t==="pen"||t==="touch"}function setTouchTimer(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function markTouch(r){r&&(r.zrByTouch=!0)}function normalizeGlobalEvent(r,t){return normalizeEvent(r.dom,new FakeGlobalEvent(r,t),!0)}function isLocalEl(r,t){for(var n=t,a=!1;n&&n.nodeType!==9&&!(a=n.domBelongToZr||n!==t&&n===r.painterRoot);)n=n.parentNode;return a}var FakeGlobalEvent=function(){function r(t,n){this.stopPropagation=noop,this.stopImmediatePropagation=noop,this.preventDefault=noop,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return r}(),localDOMHandlers={mousedown:function(r){r=normalizeEvent(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=normalizeEvent(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=normalizeEvent(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=normalizeEvent(this.dom,r);var t=r.toElement||r.relatedTarget;isLocalEl(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){wheelEventSupported=!0,r=normalizeEvent(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){wheelEventSupported||(r=normalizeEvent(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=normalizeEvent(this.dom,r),markTouch(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),localDOMHandlers.mousemove.call(this,r),localDOMHandlers.mousedown.call(this,r)},touchmove:function(r){r=normalizeEvent(this.dom,r),markTouch(r),this.handler.processGesture(r,"change"),localDOMHandlers.mousemove.call(this,r)},touchend:function(r){r=normalizeEvent(this.dom,r),markTouch(r),this.handler.processGesture(r,"end"),localDOMHandlers.mouseup.call(this,r),+new Date-+this.__lastTouchMomentEPSILON$2||r<-EPSILON$2}var scaleTmp=[],tmpTransform=[],originTransform=create(),abs=Math.abs,Transformable=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return isNotAroundZero(this.rotation)||isNotAroundZero(this.x)||isNotAroundZero(this.y)||isNotAroundZero(this.scaleX-1)||isNotAroundZero(this.scaleY-1)||isNotAroundZero(this.skewX)||isNotAroundZero(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),a=this.transform;if(!(n||t)){a&&(mIdentity(a),this.invTransform=null);return}a=a||create(),n?this.getLocalTransform(a):mIdentity(a),t&&(n?mul(a,t,a):copy(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(scaleTmp);var a=scaleTmp[0]<0?-1:1,o=scaleTmp[1]<0?-1:1,s=((scaleTmp[0]-a)*n+a)/scaleTmp[0]||0,l=((scaleTmp[1]-o)*n+o)/scaleTmp[1]||0;t[0]*=s,t[1]*=s,t[2]*=l,t[3]*=l}this.invTransform=this.invTransform||create(),invert(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],a=t[2]*t[2]+t[3]*t[3],o=Math.atan2(t[1],t[0]),s=Math.PI/2+o-Math.atan2(t[3],t[2]);a=Math.sqrt(a)*Math.cos(s),n=Math.sqrt(n),this.skewX=s,this.skewY=0,this.rotation=-o,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||create(),mul(tmpTransform,t.invTransform,n),n=tmpTransform);var a=this.originX,o=this.originY;(a||o)&&(originTransform[4]=a,originTransform[5]=o,mul(tmpTransform,n,originTransform),tmpTransform[4]-=a,tmpTransform[5]-=o,n=tmpTransform),this.setLocalTransform(n)}},r.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,n){var a=[t,n],o=this.invTransform;return o&&applyTransform$1(a,a,o),a},r.prototype.transformCoordToGlobal=function(t,n){var a=[t,n],o=this.transform;return o&&applyTransform$1(a,a,o),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&abs(t[0]-1)>1e-10&&abs(t[3]-1)>1e-10?Math.sqrt(abs(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){copyTransform(this,t)},r.getLocalTransform=function(t,n){n=n||[];var a=t.originX||0,o=t.originY||0,s=t.scaleX,l=t.scaleY,u=t.anchorX,c=t.anchorY,f=t.rotation||0,d=t.x,v=t.y,M=t.skewX?Math.tan(t.skewX):0,g=t.skewY?Math.tan(-t.skewY):0;if(a||o||u||c){var R=a+u,I=o+c;n[4]=-R*s-M*I*l,n[5]=-I*l-g*R*s}else n[4]=n[5]=0;return n[0]=s,n[3]=l,n[1]=g*s,n[2]=M*l,f&&rotate(n,n,f),n[4]+=a+d,n[5]+=o+v,n},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),TRANSFORMABLE_PROPS=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function copyTransform(r,t){for(var n=0;n=0?parseFloat(r)/100*t:parseFloat(r):r}function calculateTextPosition(r,t,n){var a=t.position||"inside",o=t.distance!=null?t.distance:5,s=n.height,l=n.width,u=s/2,c=n.x,f=n.y,d="left",v="top";if(a instanceof Array)c+=parsePercent$1(a[0],n.width),f+=parsePercent$1(a[1],n.height),d=null,v=null;else switch(a){case"left":c-=o,f+=u,d="right",v="middle";break;case"right":c+=o+l,f+=u,v="middle";break;case"top":c+=l/2,f-=o,d="center",v="bottom";break;case"bottom":c+=l/2,f+=s+o,d="center";break;case"inside":c+=l/2,f+=u,d="center",v="middle";break;case"insideLeft":c+=o,f+=u,v="middle";break;case"insideRight":c+=l-o,f+=u,d="right",v="middle";break;case"insideTop":c+=l/2,f+=o,d="center";break;case"insideBottom":c+=l/2,f+=s-o,d="center",v="bottom";break;case"insideTopLeft":c+=o,f+=o;break;case"insideTopRight":c+=l-o,f+=o,d="right";break;case"insideBottomLeft":c+=o,f+=s-o,v="bottom";break;case"insideBottomRight":c+=l-o,f+=s-o,d="right",v="bottom";break}return r=r||{},r.x=c,r.y=f,r.align=d,r.verticalAlign=v,r}var PRESERVED_NORMAL_STATE="__zr_normal__",PRIMARY_STATES_KEYS$1=TRANSFORMABLE_PROPS.concat(["ignore"]),DEFAULT_ANIMATABLE_MAP=reduce(TRANSFORMABLE_PROPS,function(r,t){return r[t]=!0,r},{ignore:!1}),tmpTextPosCalcRes={},tmpBoundingRect=new BoundingRect(0,0,0,0),Element$1=function(){function r(t){this.id=guid(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,n,a){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var o=this.transform;o||(o=this.transform=[1,0,0,1,0,0]),o[4]+=t,o[5]+=n,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var a=this.textConfig,o=a.local,s=n.innerTransformable,l=void 0,u=void 0,c=!1;s.parent=o?this:null;var f=!1;if(s.copyTransform(n),a.position!=null){var d=tmpBoundingRect;a.layoutRect?d.copy(a.layoutRect):d.copy(this.getBoundingRect()),o||d.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,a,d):calculateTextPosition(tmpTextPosCalcRes,a,d),s.x=tmpTextPosCalcRes.x,s.y=tmpTextPosCalcRes.y,l=tmpTextPosCalcRes.align,u=tmpTextPosCalcRes.verticalAlign;var v=a.origin;if(v&&a.rotation!=null){var M=void 0,g=void 0;v==="center"?(M=d.width*.5,g=d.height*.5):(M=parsePercent$1(v[0],d.width),g=parsePercent$1(v[1],d.height)),f=!0,s.originX=-s.x+M+(o?0:d.x),s.originY=-s.y+g+(o?0:d.y)}}a.rotation!=null&&(s.rotation=a.rotation);var R=a.offset;R&&(s.x+=R[0],s.y+=R[1],f||(s.originX=-R[0],s.originY=-R[1]));var I=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,O=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),N=void 0,$=void 0,F=void 0;I&&this.canBeInsideText()?(N=a.insideFill,$=a.insideStroke,(N==null||N==="auto")&&(N=this.getInsideTextFill()),($==null||$==="auto")&&($=this.getInsideTextStroke(N),F=!0)):(N=a.outsideFill,$=a.outsideStroke,(N==null||N==="auto")&&(N=this.getOutsideFill()),($==null||$==="auto")&&($=this.getOutsideStroke(N),F=!0)),N=N||"#000",(N!==O.fill||$!==O.stroke||F!==O.autoStroke||l!==O.align||u!==O.verticalAlign)&&(c=!0,O.fill=N,O.stroke=$,O.autoStroke=F,O.align=l,O.verticalAlign=u,n.setDefaultTextStyle(O)),n.__dirty|=REDRAW_BIT,c&&n.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?LIGHT_LABEL_COLOR:DARK_LABEL_COLOR},r.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),a=typeof n=="string"&&parse(n);a||(a=[255,255,255,1]);for(var o=a[3],s=this.__zr.isDarkMode(),l=0;l<3;l++)a[l]=a[l]*o+(s?0:255)*(1-o);return a[3]=1,stringify(a,"rgba")},r.prototype.traverse=function(t,n){},r.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},extend(this.extra,n)):this[t]=n},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(isObject$3(t))for(var a=t,o=keys(a),s=0;s0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},r.prototype.clearStates=function(t){this.useState(PRESERVED_NORMAL_STATE,!1,t)},r.prototype.useState=function(t,n,a,o){var s=t===PRESERVED_NORMAL_STATE,l=this.hasState();if(!(!l&&s)){var u=this.currentStates,c=this.stateTransition;if(!(indexOf(u,t)>=0&&(n||u.length===1))){var f;if(this.stateProxy&&!s&&(f=this.stateProxy(t)),f||(f=this.states&&this.states[t]),!f&&!s){logError("State "+t+" not exists.");return}s||this.saveCurrentToNormalState(f);var d=!!(f&&f.hoverLayer||o);d&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,f,this._normalState,n,!a&&!this.__inHover&&c&&c.duration>0,c);var v=this._textContent,M=this._textGuide;return v&&v.useState(t,n,a,d),M&&M.useState(t,n,a,d),s?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),f}}},r.prototype.useStates=function(t,n,a){if(!t.length)this.clearStates();else{var o=[],s=this.currentStates,l=t.length,u=l===s.length;if(u){for(var c=0;c0,R);var I=this._textContent,O=this._textGuide;I&&I.useStates(t,n,M),O&&O.useStates(t,n,M),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!M&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT)}},r.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var a=this.currentStates.slice();a.splice(n,1),this.useStates(a)}},r.prototype.replaceState=function(t,n,a){var o=this.currentStates.slice(),s=indexOf(o,t),l=indexOf(o,n)>=0;s>=0?l?o.splice(s,1):o[s]=n:a&&!l&&o.push(n),this.useStates(o)},r.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var n={},a,o=0;o=0&&s.splice(l,1)}),this.animators.push(t),a&&a.animation.addAnimator(t),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,n){for(var a=this.animators,o=a.length,s=[],l=0;l0&&n.during&&s[0].during(function(R,I){n.during(I)});for(var M=0;M0||o.force&&!l.length){var Z=void 0,J=void 0,ee=void 0;if(u){J={},M&&(Z={});for(var G=0;G=0&&(o.splice(s,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,a){var o=indexOf(this._children,n);return o>=0&&this.replaceAt(a,o),this},t.prototype.replaceAt=function(n,a){var o=this._children,s=o[a];if(n&&n!==this&&n.parent!==this&&n!==s){o[a]=n,s.parent=null;var l=this.__zr;l&&s.removeSelfFromZr(l),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var a=this.__zr;a&&a!==n.__zr&&n.addSelfToZr(a),a&&a.refresh()},t.prototype.remove=function(n){var a=this.__zr,o=this._children,s=indexOf(o,n);return s<0?this:(o.splice(s,1),n.parent=null,a&&n.removeSelfFromZr(a),a&&a.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,a=this.__zr,o=0;o0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},r.prototype.on=function(t,n,a){return this._disposed||this.handler.on(t,n,a),this},r.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},r.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n0){if(r<=o)return l;if(r>=s)return u}else{if(r>=o)return l;if(r<=s)return u}else{if(r===o)return l;if(r===s)return u}return(r-o)/c*f+l}function parsePercent(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return isString(r)?_trim(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function round$1(r,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),ROUND_SUPPORTED_PRECISION_MAX),r=(+r).toFixed(t),n?r:+r}function asc$1(r){return r.sort(function(t,n){return t-n}),r}function getPrecision(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(r*t)/t===r)return n}return getPrecisionSafe(r)}function getPrecisionSafe(r){var t=r.toString().toLowerCase(),n=t.indexOf("e"),a=n>0?+t.slice(n+1):0,o=n>0?n:t.length,s=t.indexOf("."),l=s<0?0:o-1-s;return Math.max(0,l-a)}function getPixelPrecision(r,t){var n=Math.log,a=Math.LN10,o=Math.floor(n(r[1]-r[0])/a),s=Math.round(n(Math.abs(t[1]-t[0]))/a),l=Math.min(Math.max(-o+s,0),20);return isFinite(l)?l:20}function getPercentSeats(r,t){var n=reduce(r,function(g,R){return g+(isNaN(R)?0:R)},0);if(n===0)return[];for(var a=Math.pow(10,t),o=map$1(r,function(g){return(isNaN(g)?0:g)/n*a*100}),s=a*100,l=map$1(o,function(g){return Math.floor(g)}),u=reduce(l,function(g,R){return g+R},0),c=map$1(o,function(g,R){return g-l[R]});uf&&(f=c[v],d=v);++l[d],c[d]=0,++u}return map$1(l,function(g){return g/a})}function addSafe(r,t){var n=Math.max(getPrecision(r),getPrecision(t)),a=r+t;return n>ROUND_SUPPORTED_PRECISION_MAX?a:round$1(a,n)}var MAX_SAFE_INTEGER=9007199254740991;function remRadian(r){var t=Math.PI*2;return(r%t+t)%t}function isRadianAroundZero(r){return r>-RADIAN_EPSILON&&r=10&&t++,t}function nice(r,t){var n=quantityExponent(r),a=Math.pow(10,n),o=r/a,s;return o<1.5?s=1:o<2.5?s=2:o<4?s=3:o<7?s=5:s=10,r=s*a,n>=-20?+r.toFixed(n<0?-n:0):r}function quantile(r,t){var n=(r.length-1)*t+1,a=Math.floor(n),o=+r[a-1],s=n-a;return s?o+s*(r[a]-o):o}function reformIntervals(r){r.sort(function(c,f){return u(c,f,0)?-1:1});for(var t=-1/0,n=1,a=0;a=0||s&&indexOf(s,c)<0)){var f=a.getShallow(c,t);f!=null&&(l[r[u][0]]=f)}}return l}}var AREA_STYLE_KEY_MAP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],getAreaStyle=makeStyleMapper(AREA_STYLE_KEY_MAP),AreaStyleMixin=function(){function r(){}return r.prototype.getAreaStyle=function(t,n){return getAreaStyle(this,t,n)},r}(),globalImageCache=new LRU(50);function findExistImage(r){if(typeof r=="string"){var t=globalImageCache.get(r);return t&&t.image}else return r}function createOrUpdateImage(r,t,n,a,o){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!n)return t;var s=globalImageCache.get(r),l={hostEl:n,cb:a,cbPayload:o};return s?(t=s.image,!isImageReady(t)&&s.pending.push(l)):(t=platformApi.loadImage(r,imageOnLoad,imageOnLoad),t.__zrImageSrc=r,globalImageCache.put(r,t.__cachedImgObj={image:t,pending:[l]})),t}else return r;else return t}function imageOnLoad(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=l;c++)u-=l;var f=getWidth(n,t);return f>u&&(n="",f=0),u=r-f,o.ellipsis=n,o.ellipsisWidth=f,o.contentWidth=u,o.containerWidth=r,o}function truncateSingleLine(r,t){var n=t.containerWidth,a=t.font,o=t.contentWidth;if(!n)return"";var s=getWidth(r,a);if(s<=n)return r;for(var l=0;;l++){if(s<=o||l>=t.maxIterations){r+=t.ellipsis;break}var u=l===0?estimateLength(r,o,t.ascCharWidth,t.cnCharWidth):s>0?Math.floor(r.length*o/s):0;r=r.substr(0,u),s=getWidth(r,a)}return r===""&&(r=t.placeholder),r}function estimateLength(r,t,n,a){for(var o=0,s=0,l=r.length;sg&&f){var R=Math.floor(g/u);v=v.slice(0,R)}if(r&&s&&d!=null)for(var I=prepareTruncateOptions(d,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),O=0;Ou&&pushTokens(n,r.substring(u,f),t,l),pushTokens(n,c[2],t,l,c[1]),u=STYLE_REG.lastIndex}uo){q>0?($.tokens=$.tokens.slice(0,q),O($,G,F),n.lines=n.lines.slice(0,N+1)):n.lines=n.lines.slice(0,N);break e}var Q=W.width,ie=Q==null||Q==="auto";if(typeof Q=="string"&&Q.charAt(Q.length-1)==="%")Y.percentWidth=Q,d.push(Y),Y.contentWidth=getWidth(Y.text,ee);else{if(ie){var oe=W.backgroundColor,se=oe&&oe.image;se&&(se=findExistImage(se),isImageReady(se)&&(Y.width=Math.max(Y.width,se.width*K/se.height)))}var ue=R&&a!=null?a-G:null;ue!=null&&ue0&&R+a.accumWidth>a.width&&(d=t.split(`
+`),f=!0),a.accumWidth=R}else{var I=wrapText(t,c,a.width,a.breakAll,a.accumWidth);a.accumWidth=I.accumWidth+g,v=I.linesWidths,d=I.lines}}else d=t.split(`
+`);for(var O=0;O=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var breakCharMap=reduce(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function isWordBreakChar(r){return isAlphabeticLetter(r)?!!breakCharMap[r]:!0}function wrapText(r,t,n,a,o){for(var s=[],l=[],u="",c="",f=0,d=0,v=0;vn:o+d+g>n){d?(u||c)&&(R?(u||(u=c,c="",f=0,d=f),s.push(u),l.push(d-f),c+=M,f+=g,u="",d=f):(c&&(u+=c,c="",f=0),s.push(u),l.push(d),u=M,d=g)):R?(s.push(c),l.push(f),c=M,f=g):(s.push(M),l.push(g));continue}d+=g,R?(c+=M,f+=g):(c&&(u+=c,c="",f=0),u+=M)}return!s.length&&!u&&(u=r,c="",f=0),c&&(u+=c),u&&(s.push(u),l.push(d)),s.length===1&&(d+=o),{accumWidth:d,lines:s,linesWidths:l}}var STYLE_MAGIC_KEY="__zr_style_"+Math.round(Math.random()*10),DEFAULT_COMMON_STYLE={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},DEFAULT_COMMON_ANIMATION_PROPS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};DEFAULT_COMMON_STYLE[STYLE_MAGIC_KEY]=!0;var PRIMARY_STATES_KEYS=["z","z2","invisible"],PRIMARY_STATES_KEYS_IN_HOVER_LAYER=["invisible"],Displayable=function(r){__extends(t,r);function t(n){return r.call(this,n)||this}return t.prototype._init=function(n){for(var a=keys(n),o=0;o1e-4){u[0]=r-n,u[1]=t-a,c[0]=r+n,c[1]=t+a;return}if(start[0]=mathCos$3(o)*n+r,start[1]=mathSin$3(o)*a+t,end[0]=mathCos$3(s)*n+r,end[1]=mathSin$3(s)*a+t,f(u,start,end),d(c,start,end),o=o%PI2$7,o<0&&(o=o+PI2$7),s=s%PI2$7,s<0&&(s=s+PI2$7),o>s&&!l?s+=PI2$7:oo&&(extremity[0]=mathCos$3(g)*n+r,extremity[1]=mathSin$3(g)*a+t,f(u,extremity,u),d(c,extremity,c))}var CMD$3={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tmpOutX=[],tmpOutY=[],min=[],max=[],min2=[],max2=[],mathMin$5=Math.min,mathMax$5=Math.max,mathCos$2=Math.cos,mathSin$2=Math.sin,mathAbs$1=Math.abs,PI$4=Math.PI,PI2$6=PI$4*2,hasTypedArray=typeof Float32Array<"u",tmpAngles=[];function modPI2(r){var t=Math.round(r/PI$4*1e8)/1e8;return t%2*PI$4}function normalizeArcAngles(r,t){var n=modPI2(r[0]);n<0&&(n+=PI2$6);var a=n-r[0],o=r[1];o+=a,!t&&o-n>=PI2$6?o=n+PI2$6:t&&n-o>=PI2$6?o=n-PI2$6:!t&&n>o?o=n+(PI2$6-modPI2(n-o)):t&&n0&&(this._ux=mathAbs$1(a/devicePixelRatio/t)||0,this._uy=mathAbs$1(a/devicePixelRatio/n)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(CMD$3.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},r.prototype.lineTo=function(t,n){var a=mathAbs$1(t-this._xi),o=mathAbs$1(n-this._yi),s=a>this._ux||o>this._uy;if(this.addData(CMD$3.L,t,n),this._ctx&&s&&this._ctx.lineTo(t,n),s)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var l=a*a+o*o;l>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=l)}return this},r.prototype.bezierCurveTo=function(t,n,a,o,s,l){return this._drawPendingPt(),this.addData(CMD$3.C,t,n,a,o,s,l),this._ctx&&this._ctx.bezierCurveTo(t,n,a,o,s,l),this._xi=s,this._yi=l,this},r.prototype.quadraticCurveTo=function(t,n,a,o){return this._drawPendingPt(),this.addData(CMD$3.Q,t,n,a,o),this._ctx&&this._ctx.quadraticCurveTo(t,n,a,o),this._xi=a,this._yi=o,this},r.prototype.arc=function(t,n,a,o,s,l){this._drawPendingPt(),tmpAngles[0]=o,tmpAngles[1]=s,normalizeArcAngles(tmpAngles,l),o=tmpAngles[0],s=tmpAngles[1];var u=s-o;return this.addData(CMD$3.A,t,n,a,a,o,u,0,l?0:1),this._ctx&&this._ctx.arc(t,n,a,o,s,l),this._xi=mathCos$2(s)*a+t,this._yi=mathSin$2(s)*a+n,this},r.prototype.arcTo=function(t,n,a,o,s){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,a,o,s),this},r.prototype.rect=function(t,n,a,o){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,a,o),this.addData(CMD$3.R,t,n,a,o),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(CMD$3.Z);var t=this._ctx,n=this._x0,a=this._y0;return t&&t.closePath(),this._xi=n,this._yi=a,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&hasTypedArray&&(this.data=new Float32Array(n));for(var a=0;ad.length&&(this._expandData(),d=this.data);for(var v=0;v0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){min[0]=min[1]=min2[0]=min2[1]=Number.MAX_VALUE,max[0]=max[1]=max2[0]=max2[1]=-Number.MAX_VALUE;var t=this.data,n=0,a=0,o=0,s=0,l;for(l=0;la||mathAbs$1(F)>o||M===n-1)&&(I=Math.sqrt($*$+F*F),s=O,l=N);break}case CMD$3.C:{var G=t[M++],q=t[M++],O=t[M++],N=t[M++],Y=t[M++],W=t[M++];I=cubicLength(s,l,G,q,O,N,Y,W,10),s=Y,l=W;break}case CMD$3.Q:{var G=t[M++],q=t[M++],O=t[M++],N=t[M++];I=quadraticLength(s,l,G,q,O,N,10),s=O,l=N;break}case CMD$3.A:var Z=t[M++],J=t[M++],ee=t[M++],K=t[M++],Q=t[M++],ie=t[M++],oe=ie+Q;M+=1,R&&(u=mathCos$2(Q)*ee+Z,c=mathSin$2(Q)*K+J),I=mathMax$5(ee,K)*mathMin$5(PI2$6,Math.abs(ie)),s=mathCos$2(oe)*ee+Z,l=mathSin$2(oe)*K+J;break;case CMD$3.R:{u=s=t[M++],c=l=t[M++];var se=t[M++],ue=t[M++];I=se*2+ue*2;break}case CMD$3.Z:{var $=u-s,F=c-l;I=Math.sqrt($*$+F*F),s=u,l=c;break}}I>=0&&(f[v++]=I,d+=I)}return this._pathLen=d,d},r.prototype.rebuildPath=function(t,n){var a=this.data,o=this._ux,s=this._uy,l=this._len,u,c,f,d,v,M,g=n<1,R,I,O=0,N=0,$,F=0,G,q;if(!(g&&(this._pathSegLen||this._calculateLength(),R=this._pathSegLen,I=this._pathLen,$=n*I,!$)))e:for(var Y=0;Y0&&(t.lineTo(G,q),F=0),W){case CMD$3.M:u=f=a[Y++],c=d=a[Y++],t.moveTo(f,d);break;case CMD$3.L:{v=a[Y++],M=a[Y++];var J=mathAbs$1(v-f),ee=mathAbs$1(M-d);if(J>o||ee>s){if(g){var K=R[N++];if(O+K>$){var Q=($-O)/K;t.lineTo(f*(1-Q)+v*Q,d*(1-Q)+M*Q);break e}O+=K}t.lineTo(v,M),f=v,d=M,F=0}else{var ie=J*J+ee*ee;ie>F&&(G=v,q=M,F=ie)}break}case CMD$3.C:{var oe=a[Y++],se=a[Y++],ue=a[Y++],ge=a[Y++],ce=a[Y++],ve=a[Y++];if(g){var K=R[N++];if(O+K>$){var Q=($-O)/K;cubicSubdivide(f,oe,ue,ce,Q,tmpOutX),cubicSubdivide(d,se,ge,ve,Q,tmpOutY),t.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}O+=K}t.bezierCurveTo(oe,se,ue,ge,ce,ve),f=ce,d=ve;break}case CMD$3.Q:{var oe=a[Y++],se=a[Y++],ue=a[Y++],ge=a[Y++];if(g){var K=R[N++];if(O+K>$){var Q=($-O)/K;quadraticSubdivide(f,oe,ue,Q,tmpOutX),quadraticSubdivide(d,se,ge,Q,tmpOutY),t.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}O+=K}t.quadraticCurveTo(oe,se,ue,ge),f=ue,d=ge;break}case CMD$3.A:var ye=a[Y++],Pe=a[Y++],we=a[Y++],ke=a[Y++],Be=a[Y++],Ue=a[Y++],Ve=a[Y++],fe=!a[Y++],Te=we>ke?we:ke,Se=mathAbs$1(we-ke)>.001,xe=Be+Ue,Ee=!1;if(g){var K=R[N++];O+K>$&&(xe=Be+Ue*($-O)/K,Ee=!0),O+=K}if(Se&&t.ellipse?t.ellipse(ye,Pe,we,ke,Ve,Be,xe,fe):t.arc(ye,Pe,Te,Be,xe,fe),Ee)break e;Z&&(u=mathCos$2(Be)*we+ye,c=mathSin$2(Be)*ke+Pe),f=mathCos$2(xe)*we+ye,d=mathSin$2(xe)*ke+Pe;break;case CMD$3.R:u=f=a[Y],c=d=a[Y+1],v=a[Y++],M=a[Y++];var De=a[Y++],ne=a[Y++];if(g){var K=R[N++];if(O+K>$){var ae=$-O;t.moveTo(v,M),t.lineTo(v+mathMin$5(ae,De),M),ae-=De,ae>0&&t.lineTo(v+De,M+mathMin$5(ae,ne)),ae-=ne,ae>0&&t.lineTo(v+mathMax$5(De-ae,0),M+ne),ae-=De,ae>0&&t.lineTo(v,M+mathMax$5(ne-ae,0));break e}O+=K}t.rect(v,M,De,ne);break;case CMD$3.Z:if(g){var K=R[N++];if(O+K>$){var Q=($-O)/K;t.lineTo(f*(1-Q)+u*Q,d*(1-Q)+c*Q);break e}O+=K}t.closePath(),f=u,d=c}}},r.prototype.clone=function(){var t=new r,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},r.CMD=CMD$3,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function containStroke$4(r,t,n,a,o,s,l){if(o===0)return!1;var u=o,c=0,f=r;if(l>t+u&&l>a+u||lr+u&&s>n+u||st+v&&d>a+v&&d>s+v&&d>u+v||dr+v&&f>n+v&&f>o+v&&f>l+v||ft+f&&c>a+f&&c>s+f||cr+f&&u>n+f&&u>o+f||un||d+fo&&(o+=PI2$4);var M=Math.atan2(c,u);return M<0&&(M+=PI2$4),M>=a&&M<=o||M+PI2$4>=a&&M+PI2$4<=o}function windingLine(r,t,n,a,o,s){if(s>t&&s>a||so?u:0}var CMD$2=PathProxy.CMD,PI2$3=Math.PI*2,EPSILON$1=1e-4;function isAroundEqual$1(r,t){return Math.abs(r-t)t&&f>a&&f>s&&f>u||f1&&swapExtrema(),g=cubicAt(t,a,s,u,extrema[0]),M>1&&(R=cubicAt(t,a,s,u,extrema[1]))),M===2?Ot&&u>a&&u>s||u=0&&f<=1){for(var d=0,v=quadraticAt(t,a,s,f),M=0;Mn||u<-n)return 0;var c=Math.sqrt(n*n-u*u);roots[0]=-c,roots[1]=c;var f=Math.abs(a-o);if(f<1e-4)return 0;if(f>=PI2$3-1e-4){a=0,o=PI2$3;var d=s?1:-1;return l>=roots[0]+r&&l<=roots[1]+r?d:0}if(a>o){var v=a;a=o,o=v}a<0&&(a+=PI2$3,o+=PI2$3);for(var M=0,g=0;g<2;g++){var R=roots[g];if(R+r>l){var I=Math.atan2(u,R),d=s?1:-1;I<0&&(I=PI2$3+I),(I>=a&&I<=o||I+PI2$3>=a&&I+PI2$3<=o)&&(I>Math.PI/2&&I1&&(n||(u+=windingLine(c,f,d,v,a,o))),O&&(c=s[R],f=s[R+1],d=c,v=f),I){case CMD$2.M:d=s[R++],v=s[R++],c=d,f=v;break;case CMD$2.L:if(n){if(containStroke$4(c,f,s[R],s[R+1],t,a,o))return!0}else u+=windingLine(c,f,s[R],s[R+1],a,o)||0;c=s[R++],f=s[R++];break;case CMD$2.C:if(n){if(containStroke$3(c,f,s[R++],s[R++],s[R++],s[R++],s[R],s[R+1],t,a,o))return!0}else u+=windingCubic(c,f,s[R++],s[R++],s[R++],s[R++],s[R],s[R+1],a,o)||0;c=s[R++],f=s[R++];break;case CMD$2.Q:if(n){if(containStroke$2(c,f,s[R++],s[R++],s[R],s[R+1],t,a,o))return!0}else u+=windingQuadratic(c,f,s[R++],s[R++],s[R],s[R+1],a,o)||0;c=s[R++],f=s[R++];break;case CMD$2.A:var N=s[R++],$=s[R++],F=s[R++],G=s[R++],q=s[R++],Y=s[R++];R+=1;var W=!!(1-s[R++]);M=Math.cos(q)*F+N,g=Math.sin(q)*G+$,O?(d=M,v=g):u+=windingLine(c,f,M,g,a,o);var Z=(a-N)*G/F+N;if(n){if(containStroke$1(N,$,G,q,q+Y,W,t,Z,o))return!0}else u+=windingArc(N,$,G,q,q+Y,W,Z,o);c=Math.cos(q+Y)*F+N,f=Math.sin(q+Y)*G+$;break;case CMD$2.R:d=c=s[R++],v=f=s[R++];var J=s[R++],ee=s[R++];if(M=d+J,g=v+ee,n){if(containStroke$4(d,v,M,v,t,a,o)||containStroke$4(M,v,M,g,t,a,o)||containStroke$4(M,g,d,g,t,a,o)||containStroke$4(d,g,d,v,t,a,o))return!0}else u+=windingLine(M,v,M,g,a,o),u+=windingLine(d,g,d,v,a,o);break;case CMD$2.Z:if(n){if(containStroke$4(c,f,d,v,t,a,o))return!0}else u+=windingLine(c,f,d,v,a,o);c=d,f=v;break}}return!n&&!isAroundEqual$1(f,v)&&(u+=windingLine(c,f,d,v,a,o)||0),u!==0}function contain$2(r,t,n){return containPath(r,0,!1,t,n)}function containStroke(r,t,n,a){return containPath(r,t,!0,n,a)}var DEFAULT_PATH_STYLE=defaults({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},DEFAULT_COMMON_STYLE),DEFAULT_PATH_ANIMATION_PROPS={style:defaults({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)},pathCopyParams=TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),Path=function(r){__extends(t,r);function t(n){return r.call(this,n)||this}return t.prototype.update=function(){var n=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var o=this._decalEl=this._decalEl||new t;o.buildPath===t.prototype.buildPath&&(o.buildPath=function(c){n.buildPath(c,n.shape)}),o.silent=!0;var s=o.style;for(var l in a)s[l]!==a[l]&&(s[l]=a[l]);s.fill=a.fill?a.decal:null,s.decal=null,s.shadowColor=null,a.strokeFirst&&(s.stroke=null);for(var u=0;u.5?DARK_LABEL_COLOR:a>.2?LIGHTER_LABEL_COLOR:LIGHT_LABEL_COLOR}else if(n)return LIGHT_LABEL_COLOR}return DARK_LABEL_COLOR},t.prototype.getInsideTextStroke=function(n){var a=this.style.fill;if(isString(a)){var o=this.__zr,s=!!(o&&o.isDarkMode()),l=lum(n,0)0))},t.prototype.hasFill=function(){var n=this.style,a=n.fill;return a!=null&&a!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,a=this.style,o=!n;if(o){var s=!1;this.path||(s=!0,this.createPathProxy());var l=this.path;(s||this.__dirty&SHAPE_CHANGED_BIT)&&(l.beginPath(),this.buildPath(l,this.shape,!1),this.pathUpdated()),n=l.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var u=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||o){u.copy(n);var c=a.strokeNoScale?this.getLineScale():1,f=a.lineWidth;if(!this.hasFill()){var d=this.strokeContainThreshold;f=Math.max(f,d??4)}c>1e-10&&(u.width+=f/c,u.height+=f/c,u.x-=f/c/2,u.y-=f/c/2)}return u}return n},t.prototype.contain=function(n,a){var o=this.transformCoordToLocal(n,a),s=this.getBoundingRect(),l=this.style;if(n=o[0],a=o[1],s.contain(n,a)){var u=this.path;if(this.hasStroke()){var c=l.lineWidth,f=l.strokeNoScale?this.getLineScale():1;if(f>1e-10&&(this.hasFill()||(c=Math.max(c,this.strokeContainThreshold)),containStroke(u,c/f,n,a)))return!0}if(this.hasFill())return contain$2(u,n,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,a){n==="shape"?this.setShape(a):r.prototype.attrKV.call(this,n,a)},t.prototype.setShape=function(n,a){var o=this.shape;return o||(o=this.shape={}),typeof n=="string"?o[n]=a:extend(o,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&SHAPE_CHANGED_BIT)},t.prototype.createStyle=function(n){return createObject(DEFAULT_PATH_STYLE,n)},t.prototype._innerSaveToNormal=function(n){r.prototype._innerSaveToNormal.call(this,n);var a=this._normalState;n.shape&&!a.shape&&(a.shape=extend({},this.shape))},t.prototype._applyStateObj=function(n,a,o,s,l,u){r.prototype._applyStateObj.call(this,n,a,o,s,l,u);var c=!(a&&s),f;if(a&&a.shape?l?s?f=a.shape:(f=extend({},o.shape),extend(f,a.shape)):(f=extend({},s?this.shape:o.shape),extend(f,a.shape)):c&&(f=o.shape),f)if(l){this.shape=extend({},this.shape);for(var d={},v=keys(f),M=0;M0},t.prototype.hasFill=function(){var n=this.style,a=n.fill;return a!=null&&a!=="none"},t.prototype.createStyle=function(n){return createObject(DEFAULT_TSPAN_STYLE,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var a=n.text;a!=null?a+="":a="";var o=getBoundingRect(a,n.font,n.textAlign,n.textBaseline);if(o.x+=n.x||0,o.y+=n.y||0,this.hasStroke()){var s=n.lineWidth;o.x-=s/2,o.y-=s/2,o.width+=s,o.height+=s}this._rect=o}return this._rect},t.initDefaultProps=function(){var n=t.prototype;n.dirtyRectTolerance=10}(),t}(Displayable);TSpan.prototype.type="tspan";var DEFAULT_IMAGE_STYLE=defaults({x:0,y:0},DEFAULT_COMMON_STYLE),DEFAULT_IMAGE_ANIMATION_PROPS={style:defaults({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)};function isImageLike(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var ZRImage=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return createObject(DEFAULT_IMAGE_STYLE,n)},t.prototype._getSize=function(n){var a=this.style,o=a[n];if(o!=null)return o;var s=isImageLike(a.image)?a.image:this.__image;if(!s)return 0;var l=n==="width"?"height":"width",u=a[l];return u==null?s[n]:s[n]/s[l]*u},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return DEFAULT_IMAGE_ANIMATION_PROPS},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new BoundingRect(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Displayable);ZRImage.prototype.type="image";function buildPath$2(r,t){var n=t.x,a=t.y,o=t.width,s=t.height,l=t.r,u,c,f,d;o<0&&(n=n+o,o=-o),s<0&&(a=a+s,s=-s),typeof l=="number"?u=c=f=d=l:l instanceof Array?l.length===1?u=c=f=d=l[0]:l.length===2?(u=f=l[0],c=d=l[1]):l.length===3?(u=l[0],c=d=l[1],f=l[2]):(u=l[0],c=l[1],f=l[2],d=l[3]):u=c=f=d=0;var v;u+c>o&&(v=u+c,u*=o/v,c*=o/v),f+d>o&&(v=f+d,f*=o/v,d*=o/v),c+f>s&&(v=c+f,c*=s/v,f*=s/v),u+d>s&&(v=u+d,u*=s/v,d*=s/v),r.moveTo(n+u,a),r.lineTo(n+o-c,a),c!==0&&r.arc(n+o-c,a+c,c,-Math.PI/2,0),r.lineTo(n+o,a+s-f),f!==0&&r.arc(n+o-f,a+s-f,f,0,Math.PI/2),r.lineTo(n+d,a+s),d!==0&&r.arc(n+d,a+s-d,d,Math.PI/2,Math.PI),r.lineTo(n,a+u),u!==0&&r.arc(n+u,a+u,u,Math.PI,Math.PI*1.5)}var round=Math.round;function subPixelOptimizeLine$1(r,t,n){if(t){var a=t.x1,o=t.x2,s=t.y1,l=t.y2;r.x1=a,r.x2=o,r.y1=s,r.y2=l;var u=n&&n.lineWidth;return u&&(round(a*2)===round(o*2)&&(r.x1=r.x2=subPixelOptimize$1(a,u,!0)),round(s*2)===round(l*2)&&(r.y1=r.y2=subPixelOptimize$1(s,u,!0))),r}}function subPixelOptimizeRect$1(r,t,n){if(t){var a=t.x,o=t.y,s=t.width,l=t.height;r.x=a,r.y=o,r.width=s,r.height=l;var u=n&&n.lineWidth;return u&&(r.x=subPixelOptimize$1(a,u,!0),r.y=subPixelOptimize$1(o,u,!0),r.width=Math.max(subPixelOptimize$1(a+s,u,!1)-r.x,s===0?0:1),r.height=Math.max(subPixelOptimize$1(o+l,u,!1)-r.y,l===0?0:1)),r}}function subPixelOptimize$1(r,t,n){if(!t)return r;var a=round(r*2);return(a+round(t))%2===0?a/2:(a+(n?1:-1))/2}var RectShape=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),subPixelOptimizeOutputShape$1={},Rect=function(r){__extends(t,r);function t(n){return r.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new RectShape},t.prototype.buildPath=function(n,a){var o,s,l,u;if(this.subPixelOptimize){var c=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,a,this.style);o=c.x,s=c.y,l=c.width,u=c.height,c.r=a.r,a=c}else o=a.x,s=a.y,l=a.width,u=a.height;a.r?buildPath$2(n,a):n.rect(o,s,l,u)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Path);Rect.prototype.type="rect";var DEFAULT_RICH_TEXT_COLOR={fill:"#000"},DEFAULT_STROKE_LINE_WIDTH=2,DEFAULT_TEXT_ANIMATION_PROPS={style: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},DEFAULT_COMMON_ANIMATION_PROPS.style)},ZRText=function(r){__extends(t,r);function t(n){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=DEFAULT_RICH_TEXT_COLOR,a.attr(n),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,Q=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),ie=l.calculatedLineHeight,oe=0;oe=0&&(oe=Y[ie],oe.align==="right");)this._placeToken(oe,n,Z,N,Q,"right",F),J-=oe.width,Q-=oe.width,ie--;for(K+=(s-(K-O)-($-Q)-J)/2;ee<=ie;)oe=Y[ee],this._placeToken(oe,n,Z,N,K+oe.width/2,"center",F),K+=oe.width,ee++;N+=Z}},t.prototype._placeToken=function(n,a,o,s,l,u,c){var f=a.rich[n.styleName]||{};f.text=n.text;var d=n.verticalAlign,v=s+o/2;d==="top"?v=s+n.height/2:d==="bottom"&&(v=s+o-n.height/2);var M=!n.isLineHolder&&needDrawBackground(f);M&&this._renderBackground(f,a,u==="right"?l-n.width:u==="center"?l-n.width/2:l,v-n.height/2,n.width,n.height);var g=!!f.backgroundColor,R=n.textPadding;R&&(l=getTextXForPadding(l,u,R),v-=n.height/2-R[0]-n.innerHeight/2);var I=this._getOrCreateChild(TSpan),O=I.createStyle();I.useStyle(O);var N=this._defaultStyle,$=!1,F=0,G=getFill("fill"in f?f.fill:"fill"in a?a.fill:($=!0,N.fill)),q=getStroke("stroke"in f?f.stroke:"stroke"in a?a.stroke:!g&&!c&&(!N.autoStroke||$)?(F=DEFAULT_STROKE_LINE_WIDTH,N.stroke):null),Y=f.textShadowBlur>0||a.textShadowBlur>0;O.text=n.text,O.x=l,O.y=v,Y&&(O.shadowBlur=f.textShadowBlur||a.textShadowBlur||0,O.shadowColor=f.textShadowColor||a.textShadowColor||"transparent",O.shadowOffsetX=f.textShadowOffsetX||a.textShadowOffsetX||0,O.shadowOffsetY=f.textShadowOffsetY||a.textShadowOffsetY||0),O.textAlign=u,O.textBaseline="middle",O.font=n.font||DEFAULT_FONT,O.opacity=retrieve3(f.opacity,a.opacity,1),setSeparateFont(O,f),q&&(O.lineWidth=retrieve3(f.lineWidth,a.lineWidth,F),O.lineDash=retrieve2(f.lineDash,a.lineDash),O.lineDashOffset=a.lineDashOffset||0,O.stroke=q),G&&(O.fill=G);var W=n.contentWidth,Z=n.contentHeight;I.setBoundingRect(new BoundingRect(adjustTextX(O.x,W,O.textAlign),adjustTextY(O.y,Z,O.textBaseline),W,Z))},t.prototype._renderBackground=function(n,a,o,s,l,u){var c=n.backgroundColor,f=n.borderWidth,d=n.borderColor,v=c&&c.image,M=c&&!v,g=n.borderRadius,R=this,I,O;if(M||n.lineHeight||f&&d){I=this._getOrCreateChild(Rect),I.useStyle(I.createStyle()),I.style.fill=null;var N=I.shape;N.x=o,N.y=s,N.width=l,N.height=u,N.r=g,I.dirtyShape()}if(M){var $=I.style;$.fill=c||null,$.fillOpacity=retrieve2(n.fillOpacity,1)}else if(v){O=this._getOrCreateChild(ZRImage),O.onload=function(){R.dirtyStyle()};var F=O.style;F.image=c.image,F.x=o,F.y=s,F.width=l,F.height=u}if(f&&d){var $=I.style;$.lineWidth=f,$.stroke=d,$.strokeOpacity=retrieve2(n.strokeOpacity,1),$.lineDash=n.borderDash,$.lineDashOffset=n.borderDashOffset||0,I.strokeContainThreshold=0,I.hasFill()&&I.hasStroke()&&($.strokeFirst=!0,$.lineWidth*=2)}var G=(I||O).style;G.shadowBlur=n.shadowBlur||0,G.shadowColor=n.shadowColor||"transparent",G.shadowOffsetX=n.shadowOffsetX||0,G.shadowOffsetY=n.shadowOffsetY||0,G.opacity=retrieve3(n.opacity,a.opacity,1)},t.makeFont=function(n){var a="";return hasSeparateFont(n)&&(a=[n.fontStyle,n.fontWeight,parseFontSize(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),a&&trim(a)||n.textFont||n.font},t}(Displayable),VALID_TEXT_ALIGN={left:!0,right:1,center:1},VALID_TEXT_VERTICAL_ALIGN={top:1,bottom:1,middle:1},FONT_PARTS=["fontStyle","fontWeight","fontSize","fontFamily"];function parseFontSize(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?DEFAULT_FONT_SIZE+"px":r+"px"}function setSeparateFont(r,t){for(var n=0;n=0,s=!1;if(r instanceof Path){var l=getSavedStates(r),u=o&&l.selectFill||l.normalFill,c=o&&l.selectStroke||l.normalStroke;if(hasFillOrStroke(u)||hasFillOrStroke(c)){a=a||{};var f=a.style||{};f.fill==="inherit"?(s=!0,a=extend({},a),f=extend({},f),f.fill=u):!hasFillOrStroke(f.fill)&&hasFillOrStroke(u)?(s=!0,a=extend({},a),f=extend({},f),f.fill=liftColor(u)):!hasFillOrStroke(f.stroke)&&hasFillOrStroke(c)&&(s||(a=extend({},a),f=extend({},f)),f.stroke=liftColor(c)),a.style=f}}if(a&&a.z2==null){s||(a=extend({},a));var d=r.z2EmphasisLift;a.z2=r.z2+(d??Z2_EMPHASIS_LIFT)}return a}function createSelectDefaultState(r,t,n){if(n&&n.z2==null){n=extend({},n);var a=r.z2SelectLift;n.z2=r.z2+(a??Z2_SELECT_LIFT)}return n}function createBlurDefaultState(r,t,n){var a=indexOf(r.currentStates,t)>=0,o=r.style.opacity,s=a?null:getFromStateStyle(r,["opacity"],t,{opacity:1});n=n||{};var l=n.style||{};return l.opacity==null&&(n=extend({},n),l=extend({opacity:a?o:s.opacity*.1},l),n.style=l),n}function elementStateProxy(r,t){var n=this.states[r];if(this.style){if(r==="emphasis")return createEmphasisDefaultState(this,r,t,n);if(r==="blur")return createBlurDefaultState(this,r,n);if(r==="select")return createSelectDefaultState(this,r,n)}return n}function setDefaultStateProxy(r){r.stateProxy=elementStateProxy;var t=r.getTextContent(),n=r.getTextGuideLine();t&&(t.stateProxy=elementStateProxy),n&&(n.stateProxy=elementStateProxy)}function enterEmphasisWhenMouseOver(r,t){!shouldSilent(r,t)&&!r.__highByOuter&&traverseUpdateState(r,singleEnterEmphasis)}function leaveEmphasisWhenMouseOut(r,t){!shouldSilent(r,t)&&!r.__highByOuter&&traverseUpdateState(r,singleLeaveEmphasis)}function enterEmphasis(r,t){r.__highByOuter|=1<<(t||0),traverseUpdateState(r,singleEnterEmphasis)}function leaveEmphasis(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&traverseUpdateState(r,singleLeaveEmphasis)}function enterBlur(r){traverseUpdateState(r,singleEnterBlur)}function leaveBlur(r){traverseUpdateState(r,singleLeaveBlur)}function enterSelect(r){traverseUpdateState(r,singleEnterSelect)}function leaveSelect(r){traverseUpdateState(r,singleLeaveSelect)}function shouldSilent(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function allLeaveBlur(r){var t=r.getModel(),n=[],a=[];t.eachComponent(function(o,s){var l=getComponentStates(s),u=o==="series",c=u?r.getViewOfSeriesModel(s):r.getViewOfComponentModel(s);!u&&a.push(c),l.isBlured&&(c.group.traverse(function(f){singleLeaveBlur(f)}),u&&n.push(s)),l.isBlured=!1}),each$9(a,function(o){o&&o.toggleBlurSeries&&o.toggleBlurSeries(n,!1,t)})}function blurSeries(r,t,n,a){var o=a.getModel();n=n||"coordinateSystem";function s(f,d){for(var v=0;v0){var u={dataIndex:l,seriesIndex:n.seriesIndex};s!=null&&(u.dataType=s),t.push(u)}})}),t}function enableHoverEmphasis(r,t,n){setAsHighDownDispatcher(r,!0),traverseUpdateState(r,setDefaultStateProxy),enableHoverFocus(r,t,n)}function disableHoverEmphasis(r){setAsHighDownDispatcher(r,!1)}function toggleHoverEmphasis(r,t,n,a){a?disableHoverEmphasis(r):enableHoverEmphasis(r,t,n)}function enableHoverFocus(r,t,n){var a=getECData(r);t!=null?(a.focus=t,a.blurScope=n):a.focus&&(a.focus=null)}var OTHER_STATES=["emphasis","blur","select"],defaultStyleGetterMap={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function setStatesStylesFromModel(r,t,n,a){n=n||"itemStyle";for(var o=0;o1&&(l*=mathSqrt$1(R),u*=mathSqrt$1(R));var I=(o===s?-1:1)*mathSqrt$1((l*l*(u*u)-l*l*(g*g)-u*u*(M*M))/(l*l*(g*g)+u*u*(M*M)))||0,O=I*l*g/u,N=I*-u*M/l,$=(r+n)/2+mathCos$1(v)*O-mathSin$1(v)*N,F=(t+a)/2+mathSin$1(v)*O+mathCos$1(v)*N,G=vAngle([1,0],[(M-O)/l,(g-N)/u]),q=[(M-O)/l,(g-N)/u],Y=[(-1*M-O)/l,(-1*g-N)/u],W=vAngle(q,Y);if(vRatio(q,Y)<=-1&&(W=PI$3),vRatio(q,Y)>=1&&(W=0),W<0){var Z=Math.round(W/PI$3*1e6)/1e6;W=PI$3*2+Z%2*PI$3}d.addData(f,$,F,l,u,G,W,v,s)}var commandReg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,numberReg$1=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function createPathProxyFromString(r){var t=new PathProxy;if(!r)return t;var n=0,a=0,o=n,s=a,l,u=PathProxy.CMD,c=r.match(commandReg);if(!c)return t;for(var f=0;foe*oe+se*se&&(Z=ee,J=K),{cx:Z,cy:J,x0:-d,y0:-v,x1:Z*(o/q-1),y1:J*(o/q-1)}}function normalizeCornerRadius(r){var t;if(isArray$1(r)){var n=r.length;if(!n)return r;n===1?t=[r[0],r[0],0,0]:n===2?t=[r[0],r[0],r[1],r[1]]:n===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function buildPath$1(r,t){var n,a=mathMax$4(t.r,0),o=mathMax$4(t.r0||0,0),s=a>0,l=o>0;if(!(!s&&!l)){if(s||(a=o,o=0),o>a){var u=a;a=o,o=u}var c=t.startAngle,f=t.endAngle;if(!(isNaN(c)||isNaN(f))){var d=t.cx,v=t.cy,M=!!t.clockwise,g=mathAbs(f-c),R=g>PI2$2&&g%PI2$2;if(R>e&&(g=R),!(a>e))r.moveTo(d,v);else if(g>PI2$2-e)r.moveTo(d+a*mathCos(c),v+a*mathSin(c)),r.arc(d,v,a,c,f,!M),o>e&&(r.moveTo(d+o*mathCos(f),v+o*mathSin(f)),r.arc(d,v,o,f,c,M));else{var I=void 0,O=void 0,N=void 0,$=void 0,F=void 0,G=void 0,q=void 0,Y=void 0,W=void 0,Z=void 0,J=void 0,ee=void 0,K=void 0,Q=void 0,ie=void 0,oe=void 0,se=a*mathCos(c),ue=a*mathSin(c),ge=o*mathCos(f),ce=o*mathSin(f),ve=g>e;if(ve){var ye=t.cornerRadius;ye&&(n=normalizeCornerRadius(ye),I=n[0],O=n[1],N=n[2],$=n[3]);var Pe=mathAbs(a-o)/2;if(F=mathMin$4(Pe,N),G=mathMin$4(Pe,$),q=mathMin$4(Pe,I),Y=mathMin$4(Pe,O),J=W=mathMax$4(F,G),ee=Z=mathMax$4(q,Y),(W>e||Z>e)&&(K=a*mathCos(f),Q=a*mathSin(f),ie=o*mathCos(c),oe=o*mathSin(c),ge){var Se=mathMin$4(N,J),xe=mathMin$4($,J),Ee=computeCornerTangents(ie,oe,se,ue,a,Se,M),De=computeCornerTangents(K,Q,ge,ce,a,xe,M);r.moveTo(d+Ee.cx+Ee.x0,v+Ee.cy+Ee.y0),J0&&r.arc(d+Ee.cx,v+Ee.cy,Se,mathATan2(Ee.y0,Ee.x0),mathATan2(Ee.y1,Ee.x1),!M),r.arc(d,v,a,mathATan2(Ee.cy+Ee.y1,Ee.cx+Ee.x1),mathATan2(De.cy+De.y1,De.cx+De.x1),!M),xe>0&&r.arc(d+De.cx,v+De.cy,xe,mathATan2(De.y1,De.x1),mathATan2(De.y0,De.x0),!M))}else r.moveTo(d+se,v+ue),r.arc(d,v,a,c,f,!M);if(!(o>e)||!ve)r.lineTo(d+ge,v+ce);else if(ee>e){var Se=mathMin$4(I,ee),xe=mathMin$4(O,ee),Ee=computeCornerTangents(ge,ce,K,Q,o,-xe,M),De=computeCornerTangents(se,ue,ie,oe,o,-Se,M);r.lineTo(d+Ee.cx+Ee.x0,v+Ee.cy+Ee.y0),ee0&&r.arc(d+Ee.cx,v+Ee.cy,xe,mathATan2(Ee.y0,Ee.x0),mathATan2(Ee.y1,Ee.x1),!M),r.arc(d,v,o,mathATan2(Ee.cy+Ee.y1,Ee.cx+Ee.x1),mathATan2(De.cy+De.y1,De.cx+De.x1),M),Se>0&&r.arc(d+De.cx,v+De.cy,Se,mathATan2(De.y1,De.x1),mathATan2(De.y0,De.x0),!M))}else r.lineTo(d+ge,v+ce),r.arc(d,v,o,f,c,M)}r.closePath()}}}var SectorShape=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Sector=function(r){__extends(t,r);function t(n){return r.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new SectorShape},t.prototype.buildPath=function(n,a){buildPath$1(n,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Path);Sector.prototype.type="sector";var RingShape=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Ring=function(r){__extends(t,r);function t(n){return r.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new RingShape},t.prototype.buildPath=function(n,a){var o=a.cx,s=a.cy,l=Math.PI*2;n.moveTo(o+a.r,s),n.arc(o,s,a.r,0,l,!1),n.moveTo(o+a.r0,s),n.arc(o,s,a.r0,0,l,!0)},t}(Path);Ring.prototype.type="ring";const Ring$1=Ring;function smoothBezier(r,t,n,a){var o=[],s=[],l=[],u=[],c,f,d,v;if(a){d=[1/0,1/0],v=[-1/0,-1/0];for(var M=0,g=r.length;M=2){if(a){var s=smoothBezier(o,a,n,t.smoothConstraint);r.moveTo(o[0][0],o[0][1]);for(var l=o.length,u=0;u<(n?l:l-1);u++){var c=s[u*2],f=s[u*2+1],d=o[(u+1)%l];r.bezierCurveTo(c[0],c[1],f[0],f[1],d[0],d[1])}}else{r.moveTo(o[0][0],o[0][1]);for(var u=1,v=o.length;uextent2[1]){if(u=!1,s)return u;var d=Math.abs(extent2[0]-extent[1]),v=Math.abs(extent[0]-extent2[1]);Math.min(d,v)>o.len()&&(d0){var v=d.duration,M=d.delay,g=d.easing,R={duration:v,delay:M||0,easing:g,done:s,force:!!s||!!l,setToFinal:!f,scope:r,during:l};u?t.animateFrom(n,R):t.animateTo(n,R)}else t.stopAnimation(),!u&&t.attr(n),l&&l(1),s&&s()}function updateProps$1(r,t,n,a,o,s){animateOrSetProps("update",r,t,n,a,o,s)}function initProps(r,t,n,a,o,s){animateOrSetProps("enter",r,t,n,a,o,s)}function isElementRemoved(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(s[1])?s[0]>0?"right":"left":s[1]>0?"bottom":"top"}function isNotGroup(r){return!r.isGroup}function isPath(r){return r.shape!=null}function groupTransition(r,t,n){if(!r||!t)return;function a(l){var u={};return l.traverse(function(c){isNotGroup(c)&&c.anid&&(u[c.anid]=c)}),u}function o(l){var u={x:l.x,y:l.y,rotation:l.rotation};return isPath(l)&&(u.shape=extend({},l.shape)),u}var s=a(r);t.traverse(function(l){if(isNotGroup(l)&&l.anid){var u=s[l.anid];if(u){var c=o(l);l.attr(o(u)),updateProps$1(l,c,n,getECData(l).dataIndex)}}})}function clipPointsByRect(r,t){return map$1(r,function(n){var a=n[0];a=mathMax$3(a,t.x),a=mathMin$3(a,t.x+t.width);var o=n[1];return o=mathMax$3(o,t.y),o=mathMin$3(o,t.y+t.height),[a,o]})}function clipRectByRect(r,t){var n=mathMax$3(r.x,t.x),a=mathMin$3(r.x+r.width,t.x+t.width),o=mathMax$3(r.y,t.y),s=mathMin$3(r.y+r.height,t.y+t.height);if(a>=n&&s>=o)return{x:n,y:o,width:a-n,height:s-o}}function createIcon(r,t,n){var a=extend({rectHover:!0},t),o=a.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(o.image=r.slice(8),defaults(o,n),new ZRImage(a)):makePath(r.replace("path://",""),a,n,"center")}function linePolygonIntersect(r,t,n,a,o){for(var s=0,l=o[o.length-1];s1)return!1;var O=crossProduct2d(g,R,d,v)/M;return!(O<0||O>1)}function crossProduct2d(r,t,n,a){return r*a-n*t}function nearZero(r){return r<=1e-6&&r>=-1e-6}function setTooltipConfig(r){var t=r.itemTooltipOption,n=r.componentModel,a=r.itemName,o=isString(t)?{formatter:t}:t,s=n.mainType,l=n.componentIndex,u={componentType:s,name:a,$vars:["name"]};u[s+"Index"]=l;var c=r.formatterParamsExtra;c&&each$9(keys(c),function(d){hasOwn(u,d)||(u[d]=c[d],u.$vars.push(d))});var f=getECData(r.el);f.componentMainType=s,f.componentIndex=l,f.tooltipConfig={name:a,option:defaults({content:a,encodeHTMLContent:!0,formatterParams:u},o)}}function traverseElement(r,t){var n;r.isGroup&&(n=t(r)),n||r.traverse(t)}function traverseElements(r,t){if(r)if(isArray$1(r))for(var n=0;n=0&&u.push(c)}),u}}function inheritDefaultOption(r,t){return merge(merge({},r,!0),t,!0)}const langEN={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},langZH={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var LOCALE_ZH="ZH",LOCALE_EN="EN",DEFAULT_LOCALE=LOCALE_EN,localeStorage={},localeModels={},SYSTEM_LANG=env.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||DEFAULT_LOCALE).toUpperCase();return r.indexOf(LOCALE_ZH)>-1?LOCALE_ZH:DEFAULT_LOCALE}():DEFAULT_LOCALE;function registerLocale(r,t){r=r.toUpperCase(),localeModels[r]=new Model(t),localeStorage[r]=t}function createLocaleObject(r){if(isString(r)){var t=localeStorage[r.toUpperCase()]||{};return r===LOCALE_ZH||r===LOCALE_EN?clone$3(t):merge(clone$3(t),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}else return merge(clone$3(r),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}function getLocaleModel(r){return localeModels[r]}function getDefaultLocaleModel(){return localeModels[DEFAULT_LOCALE]}registerLocale(LOCALE_EN,langEN);registerLocale(LOCALE_ZH,langZH);var ONE_SECOND=1e3,ONE_MINUTE=ONE_SECOND*60,ONE_HOUR=ONE_MINUTE*60,ONE_DAY=ONE_HOUR*24,ONE_YEAR=ONE_DAY*365,defaultLeveledFormatter={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}"},fullDayFormatter="{yyyy}-{MM}-{dd}",fullLeveledFormatter={year:"{yyyy}",month:"{yyyy}-{MM}",day:fullDayFormatter,hour:fullDayFormatter+" "+defaultLeveledFormatter.hour,minute:fullDayFormatter+" "+defaultLeveledFormatter.minute,second:fullDayFormatter+" "+defaultLeveledFormatter.second,millisecond:defaultLeveledFormatter.none},primaryTimeUnits=["year","month","day","hour","minute","second","millisecond"],timeUnits=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pad(r,t){return r+="","0000".substr(0,t-r.length)+r}function getPrimaryTimeUnit(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function isPrimaryTimeUnit(r){return r===getPrimaryTimeUnit(r)}function getDefaultFormatPrecisionOfInterval(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function format(r,t,n,a){var o=parseDate(r),s=o[fullYearGetterName(n)](),l=o[monthGetterName(n)]()+1,u=Math.floor((l-1)/3)+1,c=o[dateGetterName(n)](),f=o["get"+(n?"UTC":"")+"Day"](),d=o[hoursGetterName(n)](),v=(d-1)%12+1,M=o[minutesGetterName(n)](),g=o[secondsGetterName(n)](),R=o[millisecondsGetterName(n)](),I=d>=12?"pm":"am",O=I.toUpperCase(),N=a instanceof Model?a:getLocaleModel(a||SYSTEM_LANG)||getDefaultLocaleModel(),$=N.getModel("time"),F=$.get("month"),G=$.get("monthAbbr"),q=$.get("dayOfWeek"),Y=$.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,I+"").replace(/{A}/g,O+"").replace(/{yyyy}/g,s+"").replace(/{yy}/g,pad(s%100+"",2)).replace(/{Q}/g,u+"").replace(/{MMMM}/g,F[l-1]).replace(/{MMM}/g,G[l-1]).replace(/{MM}/g,pad(l,2)).replace(/{M}/g,l+"").replace(/{dd}/g,pad(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,q[f]).replace(/{ee}/g,Y[f]).replace(/{e}/g,f+"").replace(/{HH}/g,pad(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,pad(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,pad(M,2)).replace(/{m}/g,M+"").replace(/{ss}/g,pad(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,pad(R,3)).replace(/{S}/g,R+"")}function leveledFormat(r,t,n,a,o){var s=null;if(isString(n))s=n;else if(isFunction(n))s=n(r.value,t,{level:r.level});else{var l=extend({},defaultLeveledFormatter);if(r.level>0)for(var u=0;u=0;--u)if(c[f]){s=c[f];break}s=s||l.none}if(isArray$1(s)){var v=r.level==null?0:r.level>=0?r.level:s.length+r.level;v=Math.min(v,s.length-1),s=s[v]}}return format(new Date(r.value),s,o,a)}function getUnitFromValue(r,t){var n=parseDate(r),a=n[monthGetterName(t)]()+1,o=n[dateGetterName(t)](),s=n[hoursGetterName(t)](),l=n[minutesGetterName(t)](),u=n[secondsGetterName(t)](),c=n[millisecondsGetterName(t)](),f=c===0,d=f&&u===0,v=d&&l===0,M=v&&s===0,g=M&&o===1,R=g&&a===1;return R?"year":g?"month":M?"day":v?"hour":d?"minute":f?"second":"millisecond"}function getUnitValue(r,t,n){var a=isNumber(r)?parseDate(r):r;switch(t=t||getUnitFromValue(r,n),t){case"year":return a[fullYearGetterName(n)]();case"half-year":return a[monthGetterName(n)]()>=6?1:0;case"quarter":return Math.floor((a[monthGetterName(n)]()+1)/4);case"month":return a[monthGetterName(n)]();case"day":return a[dateGetterName(n)]();case"half-day":return a[hoursGetterName(n)]()/24;case"hour":return a[hoursGetterName(n)]();case"minute":return a[minutesGetterName(n)]();case"second":return a[secondsGetterName(n)]();case"millisecond":return a[millisecondsGetterName(n)]()}}function fullYearGetterName(r){return r?"getUTCFullYear":"getFullYear"}function monthGetterName(r){return r?"getUTCMonth":"getMonth"}function dateGetterName(r){return r?"getUTCDate":"getDate"}function hoursGetterName(r){return r?"getUTCHours":"getHours"}function minutesGetterName(r){return r?"getUTCMinutes":"getMinutes"}function secondsGetterName(r){return r?"getUTCSeconds":"getSeconds"}function millisecondsGetterName(r){return r?"getUTCMilliseconds":"getMilliseconds"}function fullYearSetterName(r){return r?"setUTCFullYear":"setFullYear"}function monthSetterName(r){return r?"setUTCMonth":"setMonth"}function dateSetterName(r){return r?"setUTCDate":"setDate"}function hoursSetterName(r){return r?"setUTCHours":"setHours"}function minutesSetterName(r){return r?"setUTCMinutes":"setMinutes"}function secondsSetterName(r){return r?"setUTCSeconds":"setSeconds"}function millisecondsSetterName(r){return r?"setUTCMilliseconds":"setMilliseconds"}function addCommas(r){if(!isNumeric(r))return isString(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function toCamelCase(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(n,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var normalizeCssArray=normalizeCssArray$1;function makeValueReadable(r,t,n){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(d){return d&&trim(d)?d:"-"}function s(d){return!!(d!=null&&!isNaN(d)&&isFinite(d))}var l=t==="time",u=r instanceof Date;if(l||u){var c=l?parseDate(r):r;if(isNaN(+c)){if(u)return"-"}else return format(c,a,n)}if(t==="ordinal")return isStringSafe(r)?o(r):isNumber(r)&&s(r)?r+"":"-";var f=numericToNumber(r);return s(f)?addCommas(f):isStringSafe(r)?o(r):typeof r=="boolean"?r+"":"-"}var TPL_VAR_ALIAS=["a","b","c","d","e","f","g"],wrapVar=function(r,t){return"{"+r+(t??"")+"}"};function formatTpl(r,t,n){isArray$1(t)||(t=[t]);var a=t.length;if(!a)return"";for(var o=t[0].$vars||[],s=0;s':'';var l=n.markerId||"markerX";return{renderMode:s,content:"{"+l+"|} ",style:o==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function convertToColorString(r,t){return t=t||"transparent",isString(r)?r:isObject$3(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function windowOpen(r,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=r}else window.open(r,t)}var each$8=each$9,LOCATION_PARAMS=["left","right","top","bottom","width","height"],HV_NAMES=[["width","left","right"],["height","top","bottom"]];function boxLayout(r,t,n,a,o){var s=0,l=0;a==null&&(a=1/0),o==null&&(o=1/0);var u=0;t.eachChild(function(c,f){var d=c.getBoundingRect(),v=t.childAt(f+1),M=v&&v.getBoundingRect(),g,R;if(r==="horizontal"){var I=d.width+(M?-M.x+d.x:0);g=s+I,g>a||c.newline?(s=0,g=I,l+=u+n,u=d.height):u=Math.max(u,d.height)}else{var O=d.height+(M?-M.y+d.y:0);R=l+O,R>o||c.newline?(s+=u+n,l=0,R=O,u=d.width):u=Math.max(u,d.width)}c.newline||(c.x=s,c.y=l,c.markRedraw(),r==="horizontal"?s=g+n:l=R+n)})}var box=boxLayout;curry$1(boxLayout,"vertical");curry$1(boxLayout,"horizontal");function getAvailableSize(r,t,n){var a=t.width,o=t.height,s=parsePercent(r.left,a),l=parsePercent(r.top,o),u=parsePercent(r.right,a),c=parsePercent(r.bottom,o);return(isNaN(s)||isNaN(parseFloat(r.left)))&&(s=0),(isNaN(u)||isNaN(parseFloat(r.right)))&&(u=a),(isNaN(l)||isNaN(parseFloat(r.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(r.bottom)))&&(c=o),n=normalizeCssArray(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function getLayoutRect(r,t,n){n=normalizeCssArray(n||0);var a=t.width,o=t.height,s=parsePercent(r.left,a),l=parsePercent(r.top,o),u=parsePercent(r.right,a),c=parsePercent(r.bottom,o),f=parsePercent(r.width,a),d=parsePercent(r.height,o),v=n[2]+n[0],M=n[1]+n[3],g=r.aspect;switch(isNaN(f)&&(f=a-u-M-s),isNaN(d)&&(d=o-c-v-l),g!=null&&(isNaN(f)&&isNaN(d)&&(g>a/o?f=a*.8:d=o*.8),isNaN(f)&&(f=g*d),isNaN(d)&&(d=f/g)),isNaN(s)&&(s=a-u-f-M),isNaN(l)&&(l=o-c-d-v),r.left||r.right){case"center":s=a/2-f/2-n[3];break;case"right":s=a-f-M;break}switch(r.top||r.bottom){case"middle":case"center":l=o/2-d/2-n[0];break;case"bottom":l=o-d-v;break}s=s||0,l=l||0,isNaN(f)&&(f=a-M-s-(u||0)),isNaN(d)&&(d=o-v-l-(c||0));var R=new BoundingRect(s+n[3],l+n[0],f,d);return R.margin=n,R}function positionElement(r,t,n,a,o,s){var l=!o||!o.hv||o.hv[0],u=!o||!o.hv||o.hv[1],c=o&&o.boundingMode||"all";if(s=s||r,s.x=r.x,s.y=r.y,!l&&!u)return!1;var f;if(c==="raw")f=r.type==="group"?new BoundingRect(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(f=r.getBoundingRect(),r.needLocalTransform()){var d=r.getLocalTransform();f=f.clone(),f.applyTransform(d)}var v=getLayoutRect(defaults({width:f.width,height:f.height},t),n,a),M=l?v.x-f.x:0,g=u?v.y-f.y:0;return c==="raw"?(s.x=M,s.y=g):(s.x+=M,s.y+=g),s===r&&r.markRedraw(),!0}function sizeCalculable(r,t){return r[HV_NAMES[t][0]]!=null||r[HV_NAMES[t][1]]!=null&&r[HV_NAMES[t][2]]!=null}function fetchLayoutMode(r){var t=r.layoutMode||r.constructor.layoutMode;return isObject$3(t)?t:t?{type:t}:null}function mergeLayoutParam(r,t,n){var a=n&&n.ignoreSize;!isArray$1(a)&&(a=[a,a]);var o=l(HV_NAMES[0],0),s=l(HV_NAMES[1],1);f(HV_NAMES[0],r,o),f(HV_NAMES[1],r,s);function l(d,v){var M={},g=0,R={},I=0,O=2;if(each$8(d,function(F){R[F]=r[F]}),each$8(d,function(F){u(t,F)&&(M[F]=R[F]=t[F]),c(M,F)&&g++,c(R,F)&&I++}),a[v])return c(t,d[1])?R[d[2]]=null:c(t,d[2])&&(R[d[1]]=null),R;if(I===O||!g)return R;if(g>=O)return M;for(var N=0;N=0;c--)u=merge(u,o[c],!0);a.defaultOption=u}return a.defaultOption},t.prototype.getReferringComponents=function(n,a){var o=n+"Index",s=n+"Id";return queryReferringComponents(this.ecModel,n,{index:this.get(o,!0),id:this.get(s,!0)},a)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),t}(Model);mountExtend(ComponentModel,Model);enableClassManagement(ComponentModel);enableSubTypeDefaulter(ComponentModel);enableTopologicalTravel(ComponentModel,getDependencies);function getDependencies(r){var t=[];return each$9(ComponentModel.getClassesByMainType(r),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=map$1(t,function(n){return parseClassType(n).main}),r!=="dataset"&&indexOf(t,"dataset")<=0&&t.unshift("dataset"),t}var platform="";typeof navigator<"u"&&(platform=navigator.platform||"");var decalColor="rgba(0, 0, 0, 0.2)";const globalDefault={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:decalColor,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:decalColor,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:decalColor,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:decalColor,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:decalColor,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:decalColor,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:platform.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var VISUAL_DIMENSIONS=createHashMap(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),SOURCE_FORMAT_ORIGINAL="original",SOURCE_FORMAT_ARRAY_ROWS="arrayRows",SOURCE_FORMAT_OBJECT_ROWS="objectRows",SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",SOURCE_FORMAT_TYPED_ARRAY="typedArray",SOURCE_FORMAT_UNKNOWN="unknown",SERIES_LAYOUT_BY_COLUMN="column",SERIES_LAYOUT_BY_ROW="row",BE_ORDINAL={Must:1,Might:2,Not:3},innerGlobalModel=makeInner();function resetSourceDefaulter(r){innerGlobalModel(r).datasetMap=createHashMap()}function makeSeriesEncodeForAxisCoordSys(r,t,n){var a={},o=querySeriesUpstreamDatasetModel(t);if(!o||!r)return a;var s=[],l=[],u=t.ecModel,c=innerGlobalModel(u).datasetMap,f=o.uid+"_"+n.seriesLayoutBy,d,v;r=r.slice(),each$9(r,function(I,O){var N=isObject$3(I)?I:r[O]={name:I};N.type==="ordinal"&&d==null&&(d=O,v=R(N)),a[N.name]=[]});var M=c.get(f)||c.set(f,{categoryWayDim:v,valueWayDim:0});each$9(r,function(I,O){var N=I.name,$=R(I);if(d==null){var F=M.valueWayDim;g(a[N],F,$),g(l,F,$),M.valueWayDim+=$}else if(d===O)g(a[N],0,$),g(s,0,$);else{var F=M.categoryWayDim;g(a[N],F,$),g(l,F,$),M.categoryWayDim+=$}});function g(I,O,N){for(var $=0;$t)return r[a];return r[n-1]}function getFromPalette(r,t,n,a,o,s,l){s=s||r;var u=t(s),c=u.paletteIdx||0,f=u.paletteNameMap=u.paletteNameMap||{};if(f.hasOwnProperty(o))return f[o];var d=l==null||!a?n:getNearestPalette(a,l);if(d=d||n,!(!d||!d.length)){var v=d[c];return o&&(f[o]=v),u.paletteIdx=(c+1)%d.length,v}}function clearPalette(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var reCreateSeriesIndices,assertSeriesInitialized,initBase,OPTION_INNER_KEY="\0_ec_inner",OPTION_INNER_VALUE=1,GlobalModel=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(n,a,o,s,l,u){s=s||{},this.option=null,this._theme=new Model(s),this._locale=new Model(l),this._optionManager=u},t.prototype.setOption=function(n,a,o){var s=normalizeSetOptionInput(a);this._optionManager.setOption(n,o,s),this._resetOption(null,s)},t.prototype.resetOption=function(n,a){return this._resetOption(n,normalizeSetOptionInput(a))},t.prototype._resetOption=function(n,a){var o=!1,s=this._optionManager;if(!n||n==="recreate"){var l=s.mountOption(n==="recreate");!this.option||n==="recreate"?initBase(this,l):(this.restoreData(),this._mergeOption(l,a)),o=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var u=s.getTimelineOption(this);u&&(o=!0,this._mergeOption(u,a))}if(!n||n==="recreate"||n==="media"){var c=s.getMediaOption(this);c.length&&each$9(c,function(f){o=!0,this._mergeOption(f,a)},this)}return o},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,a){var o=this.option,s=this._componentsMap,l=this._componentsCount,u=[],c=createHashMap(),f=a&&a.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$9(n,function(v,M){v!=null&&(ComponentModel.hasClass(M)?M&&(u.push(M),c.set(M,!0)):o[M]=o[M]==null?clone$3(v):merge(o[M],v,!0))}),f&&f.each(function(v,M){ComponentModel.hasClass(M)&&!c.get(M)&&(u.push(M),c.set(M,!0))}),ComponentModel.topologicalTravel(u,ComponentModel.getAllClassMainTypes(),d,this);function d(v){var M=concatInternalOptions(this,v,normalizeToArray(n[v])),g=s.get(v),R=g?f&&f.get(v)?"replaceMerge":"normalMerge":"replaceAll",I=mappingToExists(g,M,R);setComponentTypeToKeyInfo(I,v,ComponentModel),o[v]=null,s.set(v,null),l.set(v,0);var O=[],N=[],$=0,F;each$9(I,function(G,q){var Y=G.existing,W=G.newOption;if(!W)Y&&(Y.mergeOption({},this),Y.optionUpdated({},!1));else{var Z=v==="series",J=ComponentModel.getClass(v,G.keyInfo.subType,!Z);if(!J)return;if(v==="tooltip"){if(F)return;F=!0}if(Y&&Y.constructor===J)Y.name=G.keyInfo.name,Y.mergeOption(W,this),Y.optionUpdated(W,!1);else{var ee=extend({componentIndex:q},G.keyInfo);Y=new J(W,this,this,ee),extend(Y,ee),G.brandNew&&(Y.__requireNewView=!0),Y.init(W,this,this),Y.optionUpdated(null,!0)}}Y?(O.push(Y.option),N.push(Y),$++):(O.push(void 0),N.push(void 0))},this),o[v]=O,s.set(v,N),l.set(v,$),v==="series"&&reCreateSeriesIndices(this)}this._seriesIndices||reCreateSeriesIndices(this)},t.prototype.getOption=function(){var n=clone$3(this.option);return each$9(n,function(a,o){if(ComponentModel.hasClass(o)){for(var s=normalizeToArray(a),l=s.length,u=!1,c=l-1;c>=0;c--)s[c]&&!isComponentIdInternal(s[c])?u=!0:(s[c]=null,!u&&l--);s.length=l,n[o]=s}}),delete n[OPTION_INNER_KEY],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,a){var o=this._componentsMap.get(n);if(o){var s=o[a||0];if(s)return s;if(a==null){for(var l=0;l=t:n==="max"?r<=t:r===t}function indicesEquals(r,t){return r.join(",")===t.join(",")}var each$7=each$9,isObject$2=isObject$3,POSSIBLE_STYLES=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function compatEC2ItemStyle(r){var t=r&&r.itemStyle;if(t)for(var n=0,a=POSSIBLE_STYLES.length;n=0;O--){var N=r[O];if(u||(R=N.data.rawIndexOf(N.stackedByDimension,g)),R>=0){var $=N.data.getByRawIndex(N.stackResultDimension,R);if(c==="all"||c==="positive"&&$>0||c==="negative"&&$<0||c==="samesign"&&M>=0&&$>0||c==="samesign"&&M<=0&&$<0){M=addSafe(M,$),I=$;break}}}return a[0]=M,a[1]=I,a})})}var SourceImpl=function(){function r(t){this.data=t.data||(t.sourceFormat===SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=t.sourceFormat||SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=t.seriesLayoutBy||SERIES_LAYOUT_BY_COLUMN,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var a=0;aI&&(I=F)}g[0]=R,g[1]=I}},o=function(){return this._data?this._data.length/this._dimSize:0};providerMethods=(t={},t[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:s},t[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:s},t[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(l){var u=this._data;each$9(l,function(c,f){for(var d=u[f]||(u[f]=[]),v=0;v<(c||[]).length;v++)d.push(c[v])})}},t[SOURCE_FORMAT_ORIGINAL]={appendData:s},t[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(l){this._data=l},clean:function(){this._offset+=this.count(),this._data=null}},t);function s(l){for(var u=0;u=0&&(I=l.interpolatedValue[O])}return I!=null?I+"":""})}},r.prototype.getRawValue=function(t,n){return retrieveRawValue(this.getData(n),t)},r.prototype.formatTooltip=function(t,n,a){},r}();function normalizeTooltipFormatResult(r){var t,n;return isObject$3(r)?r.type&&(n=r):t=r,{text:t,frag:n}}function createTask(r){return new Task(r)}var Task=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var n=this._upstream,a=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var s;this._plan&&!a&&(s=this._plan(this.context));var l=d(this._modBy),u=this._modDataCount||0,c=d(t&&t.modBy),f=t&&t.modDataCount||0;(l!==c||u!==f)&&(s="reset");function d($){return!($>=1)&&($=1),$}var v;(this._dirty||s==="reset")&&(this._dirty=!1,v=this._doReset(a)),this._modBy=c,this._modDataCount=f;var M=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,R=Math.min(M!=null?this._dueIndex+M:1/0,this._dueEnd);if(!a&&(v||g1&&a>0?u:l}};return s;function l(){return t=r?null:ct},gte:function(r,t){return r>=t}},FilterOrderComparator=function(){function r(t,n){if(!isNumber(n)){var a="";throwError(a)}this._opFn=ORDER_COMPARISON_OP_MAP[t],this._rvalFloat=numericToNumber(n)}return r.prototype.evaluate=function(t){return isNumber(t)?this._opFn(t,this._rvalFloat):this._opFn(numericToNumber(t),this._rvalFloat)},r}(),SortOrderComparator=function(){function r(t,n){var a=t==="desc";this._resultLT=a?1:-1,n==null&&(n=a?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,n){var a=isNumber(t)?t:numericToNumber(t),o=isNumber(n)?n:numericToNumber(n),s=isNaN(a),l=isNaN(o);if(s&&(a=this._incomparable),l&&(o=this._incomparable),s&&l){var u=isString(t),c=isString(n);u&&(a=c?t:0),c&&(o=u?n:0)}return ao?-this._resultLT:0},r}(),FilterEqualityComparator=function(){function r(t,n){this._rval=n,this._isEQ=t,this._rvalTypeof=typeof n,this._rvalFloat=numericToNumber(n)}return r.prototype.evaluate=function(t){var n=t===this._rval;if(!n){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(n=numericToNumber(t)===this._rvalFloat)}return this._isEQ?n:!n},r}();function createFilterComparator(r,t){return r==="eq"||r==="ne"?new FilterEqualityComparator(r==="eq",t):hasOwn(ORDER_COMPARISON_OP_MAP,r)?new FilterOrderComparator(r,t):null}var ExternalSource=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,n){},r.prototype.retrieveValueFromItem=function(t,n){},r.prototype.convertValue=function(t,n){return parseDataValue(t,n)},r}();function createExternalSource(r,t){var n=new ExternalSource,a=r.data,o=n.sourceFormat=r.sourceFormat,s=r.startIndex,l="";r.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(l);var u=[],c={},f=r.dimensionsDefine;if(f)each$9(f,function(I,O){var N=I.name,$={index:O,name:N,displayName:I.displayName};if(u.push($),N!=null){var F="";hasOwn(c,N)&&throwError(F),c[N]=$}});else for(var d=0;d65535?CtorUint32Array:CtorUint16Array}function getInitialExtent(){return[1/0,-1/0]}function cloneChunk(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function prepareStore(r,t,n,a,o){var s=dataCtors[n||"float"];if(o){var l=r[t],u=l&&l.length;if(u!==a){for(var c=new s(a),f=0;fO[1]&&(O[1]=I)}return this._rawCount=this._count=c,{start:u,end:c}},r.prototype._initDataFromProvider=function(t,n,a){for(var o=this._provider,s=this._chunks,l=this._dimensions,u=l.length,c=this._rawExtent,f=map$1(l,function($){return $.property}),d=0;dN[1]&&(N[1]=O)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=n,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,n){if(!(n>=0&&n=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,a=n[t];if(a!=null&&at)s=l-1;else return l}return-1},r.prototype.indicesOfNearest=function(t,n,a){var o=this._chunks,s=o[t],l=[];if(!s)return l;a==null&&(a=1/0);for(var u=1/0,c=-1,f=0,d=0,v=this.count();d=0&&c<0)&&(u=R,c=g,f=0),g===c&&(l[f++]=d))}return l.length=f,l},r.prototype.getIndices=function(){var t,n=this._indices;if(n){var a=n.constructor,o=this._count;if(a===Array){t=new a(o);for(var s=0;s=v&&$<=M||isNaN($))&&(c[f++]=I),I++}R=!0}else if(s===2){for(var O=g[o[0]],F=g[o[1]],G=t[o[1]][0],q=t[o[1]][1],N=0;N=v&&$<=M||isNaN($))&&(Y>=G&&Y<=q||isNaN(Y))&&(c[f++]=I),I++}R=!0}}if(!R)if(s===1)for(var N=0;N=v&&$<=M||isNaN($))&&(c[f++]=W)}else for(var N=0;Nt[ee][1])&&(Z=!1)}Z&&(c[f++]=n.getRawIndex(N))}return fN[1]&&(N[1]=O)}}}},r.prototype.lttbDownSample=function(t,n){var a=this.clone([t],!0),o=a._chunks,s=o[t],l=this.count(),u=0,c=Math.floor(1/n),f=this.getRawIndex(0),d,v,M,g=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(l/c)+2)*2,l));g[u++]=f;for(var R=1;Rd&&(d=v,M=G)}K>0&&Kd-R&&(c=d-R,u.length=c);for(var I=0;Iv[1]&&(v[1]=N),M[g++]=$}return s._count=g,s._indices=M,s._updateGetRawIdx(),s},r.prototype.each=function(t,n){if(this._count)for(var a=t.length,o=this._chunks,s=0,l=this.count();sc&&(c=v)}return l=[u,c],this._extent[t]=l,l},r.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var a=[],o=this._chunks,s=0;s=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(n,a,o,s){return parseDataValue(n[s],this._dimensions[s])}defaultDimValueGetters={arrayRows:t,objectRows:function(n,a,o,s){return parseDataValue(n[a],this._dimensions[s])},keyedColumns:t,original:function(n,a,o,s){var l=n&&(n.value==null?n:n.value);return parseDataValue(l instanceof Array?l[s]:l,this._dimensions[s])},typedArray:function(n,a,o,s){return n[s]}}}(),r}(),SourceManager=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),a=!!n.length,o,s;if(isSeries(t)){var l=t,u=void 0,c=void 0,f=void 0;if(a){var d=n[0];d.prepareSource(),f=d.getSource(),u=f.data,c=f.sourceFormat,s=[d._getVersionSign()]}else u=l.get("data",!0),c=isTypedArray(u)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,s=[];var v=this._getSourceMetaRawOption()||{},M=f&&f.metaRawOption||{},g=retrieve2(v.seriesLayoutBy,M.seriesLayoutBy)||null,R=retrieve2(v.sourceHeader,M.sourceHeader),I=retrieve2(v.dimensions,M.dimensions),O=g!==M.seriesLayoutBy||!!R!=!!M.sourceHeader||I;o=O?[createSource(u,{seriesLayoutBy:g,sourceHeader:R,dimensions:I},c)]:[]}else{var N=t;if(a){var $=this._applyTransform(n);o=$.sourceList,s=$.upstreamSignList}else{var F=N.get("source",!0);o=[createSource(F,this._getSourceMetaRawOption(),null)],s=[]}}this._setLocalSource(o,s)},r.prototype._applyTransform=function(t){var n=this._sourceHost,a=n.get("transform",!0),o=n.get("fromTransformResult",!0);if(o!=null){var s="";t.length!==1&&doThrow(s)}var l,u=[],c=[];return each$9(t,function(f){f.prepareSource();var d=f.getSource(o||0),v="";o!=null&&!d&&doThrow(v),u.push(d),c.push(f._getVersionSign())}),a?l=applyDataTransform(a,u,{datasetIndex:n.componentIndex}):o!=null&&(l=[cloneSourceShallow(u[0])]),{sourceList:l,upstreamSignList:c}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n1||n>0&&!r.noHeader;return each$9(r.blocks,function(o){var s=getBlockGapLevel(o);s>=t&&(t=s+ +(a&&(!s||isSectionFragment(o)&&!o.noHeader)))}),t}return 0}function buildSection(r,t,n,a){var o=t.noHeader,s=getGap(getBlockGapLevel(t)),l=[],u=t.blocks||[];assert(!u||isArray$1(u)),u=u||[];var c=r.orderMode;if(t.sortBlocks&&c){u=u.slice();var f={valueAsc:"asc",valueDesc:"desc"};if(hasOwn(f,c)){var d=new SortOrderComparator(f[c],null);u.sort(function(R,I){return d.evaluate(R.sortParam,I.sortParam)})}else c==="seriesDesc"&&u.reverse()}each$9(u,function(R,I){var O=t.valueFormatter,N=getBuilder(R)(O?extend(extend({},r),{valueFormatter:O}):r,R,I>0?s.html:0,a);N!=null&&l.push(N)});var v=r.renderMode==="richText"?l.join(s.richText):wrapBlockHTML(l.join(""),o?n:s.html);if(o)return v;var M=makeValueReadable(t.header,"ordinal",r.useUTC),g=getTooltipTextStyle(a,r.renderMode).nameStyle;return r.renderMode==="richText"?wrapInlineNameRichText(r,M,g)+s.richText+v:wrapBlockHTML(''+encodeHTML(M)+"
"+v,n)}function buildNameValue(r,t,n,a){var o=r.renderMode,s=t.noName,l=t.noValue,u=!t.markerType,c=t.name,f=r.useUTC,d=t.valueFormatter||r.valueFormatter||function(G){return G=isArray$1(G)?G:[G],map$1(G,function(q,Y){return makeValueReadable(q,isArray$1(g)?g[Y]:g,f)})};if(!(s&&l)){var v=u?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),M=s?"":makeValueReadable(c,"ordinal",f),g=t.valueType,R=l?[]:d(t.value,t.dataIndex),I=!u||!s,O=!u&&s,N=getTooltipTextStyle(a,o),$=N.nameStyle,F=N.valueStyle;return o==="richText"?(u?"":v)+(s?"":wrapInlineNameRichText(r,M,$))+(l?"":wrapInlineValueRichText(r,R,I,O,F)):wrapBlockHTML((u?"":v)+(s?"":wrapInlineNameHTML(M,!u,$))+(l?"":wrapInlineValueHTML(R,I,O,F)),n)}}function buildTooltipMarkup(r,t,n,a,o,s){if(r){var l=getBuilder(r),u={useUTC:o,renderMode:n,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return l(u,r,0,s)}}function getGap(r){return{html:HTML_GAPS[r],richText:RICH_TEXT_GAPS[r]}}function wrapBlockHTML(r,t){var n='',a="margin: "+t+"px 0 0";return''+r+n+"
"}function wrapInlineNameHTML(r,t,n){var a=t?"margin-left:2px":"";return''+encodeHTML(r)+""}function wrapInlineValueHTML(r,t,n,a){var o=n?"10px":"20px",s=t?"float:right;margin-left:"+o:"";return r=isArray$1(r)?r:[r],''+map$1(r,function(l){return encodeHTML(l)}).join(" ")+""}function wrapInlineNameRichText(r,t,n){return r.markupStyleCreator.wrapRichTextStyle(t,n)}function wrapInlineValueRichText(r,t,n,a,o){var s=[o],l=a?10:20;return n&&s.push({padding:[0,0,0,l],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(isArray$1(t)?t.join(" "):t,s)}function retrieveVisualColorForTooltipMarker(r,t){var n=r.getData().getItemVisual(t,"style"),a=n[r.visualDrawType];return convertToColorString(a)}function getPaddingFromTooltipModel(r,t){var n=r.get("padding");return n??(t==="richText"?[8,10]:10)}var TooltipMarkupStyleCreator=function(){function r(){this.richTextStyles={},this._nextStyleNameId=getRandomIdBase()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,n,a){var o=a==="richText"?this._generateStyleName():null,s=getTooltipMarker({color:n,type:t,renderMode:a,markerId:o});return isString(s)?s:(this.richTextStyles[o]=s.style,s.content)},r.prototype.wrapRichTextStyle=function(t,n){var a={};isArray$1(n)?each$9(n,function(s){return extend(a,s)}):extend(a,n);var o=this._generateStyleName();return this.richTextStyles[o]=a,"{"+o+"|"+t+"}"},r}();function defaultSeriesFormatTooltip(r){var t=r.series,n=r.dataIndex,a=r.multipleSeries,o=t.getData(),s=o.mapDimensionsAll("defaultedTooltip"),l=s.length,u=t.getRawValue(n),c=isArray$1(u),f=retrieveVisualColorForTooltipMarker(t,n),d,v,M,g;if(l>1||c&&!l){var R=formatTooltipArrayValue(u,t,n,s,f);d=R.inlineValues,v=R.inlineValueTypes,M=R.blocks,g=R.inlineValues[0]}else if(l){var I=o.getDimensionInfo(s[0]);g=d=retrieveRawValue(o,n,s[0]),v=I.type}else g=d=c?u[0]:u;var O=isNameSpecified(t),N=O&&t.name||"",$=o.getName(n),F=a?N:$;return createTooltipMarkup("section",{header:N,noHeader:a||!O,sortParam:g,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:f,name:F,noName:!trim(F),value:d,valueType:v,dataIndex:n})].concat(M||[])})}function formatTooltipArrayValue(r,t,n,a,o){var s=t.getData(),l=reduce(r,function(v,M,g){var R=s.getDimensionInfo(g);return v=v||R&&R.tooltip!==!1&&R.displayName!=null},!1),u=[],c=[],f=[];a.length?each$9(a,function(v){d(retrieveRawValue(s,n,v),v)}):each$9(r,d);function d(v,M){var g=s.getDimensionInfo(M);!g||g.otherDims.tooltip===!1||(l?f.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:o,name:g.displayName,value:v,valueType:g.type})):(u.push(v),c.push(g.type)))}return{inlineValues:u,inlineValueTypes:c,blocks:f}}var inner$a=makeInner();function getSelectionKey(r,t){return r.getName(t)||r.getId(t)}var SERIES_UNIVERSAL_TRANSITION_PROP="__universalTransitionEnabled",SeriesModel=function(r){__extends(t,r);function t(){var n=r!==null&&r.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,a,o){this.seriesIndex=this.componentIndex,this.dataTask=createTask({count:dataTaskCount,reset:dataTaskReset}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,o);var s=inner$a(this).sourceManager=new SourceManager(this);s.prepareSource();var l=this.getInitialData(n,o);wrapData(l,this),this.dataTask.context.data=l,inner$a(this).dataBeforeProcessed=l,autoSeriesName(this),this._initSelectedMapFromData(l)},t.prototype.mergeDefaultAndTheme=function(n,a){var o=fetchLayoutMode(this),s=o?getLayoutParams(n):{},l=this.subType;ComponentModel.hasClass(l)&&(l+="Series"),merge(n,a.getTheme().get(this.subType)),merge(n,this.getDefaultOption()),defaultEmphasis(n,"label",["show"]),this.fillDataTextStyle(n.data),o&&mergeLayoutParam(n,s,o)},t.prototype.mergeOption=function(n,a){n=merge(this.option,n,!0),this.fillDataTextStyle(n.data);var o=fetchLayoutMode(this);o&&mergeLayoutParam(this.option,n,o);var s=inner$a(this).sourceManager;s.dirty(),s.prepareSource();var l=this.getInitialData(n,a);wrapData(l,this),this.dataTask.dirty(),this.dataTask.context.data=l,inner$a(this).dataBeforeProcessed=l,autoSeriesName(this),this._initSelectedMapFromData(l)},t.prototype.fillDataTextStyle=function(n){if(n&&!isTypedArray(n))for(var a=["show"],o=0;othis.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,a,o){var s=this.ecModel,l=PaletteMixin.prototype.getColorFromPalette.call(this,n,a,o);return l||(l=s.getColorFromPalette(n,a,o)),l},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,a){this._innerSelect(this.getData(a),n)},t.prototype.unselect=function(n,a){var o=this.option.selectedMap;if(o){var s=this.option.selectedMode,l=this.getData(a);if(s==="series"||o==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var u=0;u=0&&o.push(l)}return o},t.prototype.isSelected=function(n,a){var o=this.option.selectedMap;if(!o)return!1;var s=this.getData(a);return(o==="all"||o[getSelectionKey(s,n)])&&!s.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[SERIES_UNIVERSAL_TRANSITION_PROP])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,a){var o,s,l=this.option,u=l.selectedMode,c=a.length;if(!(!u||!c)){if(u==="series")l.selectedMap="all";else if(u==="multiple"){isObject$3(l.selectedMap)||(l.selectedMap={});for(var f=l.selectedMap,d=0;d0&&this._innerSelect(n,a)}},t.registerClass=function(n){return ComponentModel.registerClass(n)},t.protoInitialize=function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),t}(ComponentModel);mixin(SeriesModel,DataFormatMixin);mixin(SeriesModel,PaletteMixin);mountExtend(SeriesModel,ComponentModel);function autoSeriesName(r){var t=r.name;isNameSpecified(r)||(r.name=getSeriesAutoName(r)||t)}function getSeriesAutoName(r){var t=r.getRawData(),n=t.mapDimensionsAll("seriesName"),a=[];return each$9(n,function(o){var s=t.getDimensionInfo(o);s.displayName&&a.push(s.displayName)}),a.join(" ")}function dataTaskCount(r){return r.model.getRawData().count()}function dataTaskReset(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),dataTaskProgress}function dataTaskProgress(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function wrapData(r,t){each$9(concatArray(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(n){r.wrapMethod(n,curry$1(onDataChange,t))})}function onDataChange(r,t){var n=getCurrentTask(r);return n&&n.setOutputEnd((t||this).count()),t}function getCurrentTask(r){var t=(r.ecModel||{}).scheduler,n=t&&t.getPipeline(r.uid);if(n){var a=n.currentTask;if(a){var o=a.agentStubMap;o&&(a=o.get(r.uid))}return a}}var ComponentView=function(){function r(){this.group=new Group$2,this.uid=getUID("viewComponent")}return r.prototype.init=function(t,n){},r.prototype.render=function(t,n,a,o){},r.prototype.dispose=function(t,n){},r.prototype.updateView=function(t,n,a,o){},r.prototype.updateLayout=function(t,n,a,o){},r.prototype.updateVisual=function(t,n,a,o){},r.prototype.toggleBlurSeries=function(t,n,a){},r.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},r}();enableClassExtend(ComponentView);enableClassManagement(ComponentView);function createRenderPlanner(){var r=makeInner();return function(t){var n=r(t),a=t.pipelineContext,o=!!n.large,s=!!n.progressiveRender,l=n.large=!!(a&&a.large),u=n.progressiveRender=!!(a&&a.progressiveRender);return(o!==l||s!==u)&&"reset"}}var inner$9=makeInner(),renderPlanner=createRenderPlanner(),ChartView=function(){function r(){this.group=new Group$2,this.uid=getUID("viewChart"),this.renderTask=createTask({plan:renderTaskPlan,reset:renderTaskReset}),this.renderTask.context={view:this}}return r.prototype.init=function(t,n){},r.prototype.render=function(t,n,a,o){},r.prototype.highlight=function(t,n,a,o){var s=t.getData(o&&o.dataType);s&&toggleHighlight(s,o,"emphasis")},r.prototype.downplay=function(t,n,a,o){var s=t.getData(o&&o.dataType);s&&toggleHighlight(s,o,"normal")},r.prototype.remove=function(t,n){this.group.removeAll()},r.prototype.dispose=function(t,n){},r.prototype.updateView=function(t,n,a,o){this.render(t,n,a,o)},r.prototype.updateLayout=function(t,n,a,o){this.render(t,n,a,o)},r.prototype.updateVisual=function(t,n,a,o){this.render(t,n,a,o)},r.prototype.eachRendered=function(t){traverseElements(this.group,t)},r.markUpdateMethod=function(t,n){inner$9(t).updateMethod=n},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function elSetState(r,t,n){r&&isHighDownDispatcher(r)&&(t==="emphasis"?enterEmphasis:leaveEmphasis)(r,n)}function toggleHighlight(r,t,n){var a=queryDataIndex(r,t),o=t&&t.highlightKey!=null?getHighlightDigit(t.highlightKey):null;a!=null?each$9(normalizeToArray(a),function(s){elSetState(r.getItemGraphicEl(s),n,o)}):r.eachItemGraphicEl(function(s){elSetState(s,n,o)})}enableClassExtend(ChartView);enableClassManagement(ChartView);function renderTaskPlan(r){return renderPlanner(r.model)}function renderTaskReset(r){var t=r.model,n=r.ecModel,a=r.api,o=r.payload,s=t.pipelineContext.progressiveRender,l=r.view,u=o&&inner$9(o).updateMethod,c=s?"incrementalPrepareRender":u&&l[u]?u:"render";return c!=="render"&&l[c](t,n,a,o),progressMethodMap[c]}var progressMethodMap={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},ORIGIN_METHOD="\0__throttleOriginMethod",RATE="\0__throttleRate",THROTTLE_TYPE="\0__throttleType";function throttle(r,t,n){var a,o=0,s=0,l=null,u,c,f,d;t=t||0;function v(){s=new Date().getTime(),l=null,r.apply(c,f||[])}var M=function(){for(var g=[],R=0;R=0?v():l=setTimeout(v,-u),o=a};return M.clear=function(){l&&(clearTimeout(l),l=null)},M.debounceNextCall=function(g){d=g},M}function createOrUpdate(r,t,n,a){var o=r[t];if(o){var s=o[ORIGIN_METHOD]||o,l=o[THROTTLE_TYPE],u=o[RATE];if(u!==n||l!==a){if(n==null||!a)return r[t]=s;o=r[t]=throttle(s,n,a==="debounce"),o[ORIGIN_METHOD]=s,o[THROTTLE_TYPE]=a,o[RATE]=n}return o}}function clear(r,t){var n=r[t];n&&n[ORIGIN_METHOD]&&(n.clear&&n.clear(),r[t]=n[ORIGIN_METHOD])}var inner$8=makeInner(),defaultStyleMappers={itemStyle:makeStyleMapper(ITEM_STYLE_KEY_MAP,!0),lineStyle:makeStyleMapper(LINE_STYLE_KEY_MAP,!0)},defaultColorKey={lineStyle:"stroke",itemStyle:"fill"};function getStyleMapper(r,t){var n=r.visualStyleMapper||defaultStyleMappers[t];return n||(console.warn("Unknown style type '"+t+"'."),defaultStyleMappers.itemStyle)}function getDefaultColorKey(r,t){var n=r.visualDrawType||defaultColorKey[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var seriesStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var n=r.getData(),a=r.visualStyleAccessPath||"itemStyle",o=r.getModel(a),s=getStyleMapper(r,a),l=s(o),u=o.getShallow("decal");u&&(n.setVisual("decal",u),u.dirty=!0);var c=getDefaultColorKey(r,a),f=l[c],d=isFunction(f)?f:null,v=l.fill==="auto"||l.stroke==="auto";if(!l[c]||d||v){var M=r.getColorFromPalette(r.name,null,t.getSeriesCount());l[c]||(l[c]=M,n.setVisual("colorFromPalette",!0)),l.fill=l.fill==="auto"||isFunction(l.fill)?M:l.fill,l.stroke=l.stroke==="auto"||isFunction(l.stroke)?M:l.stroke}if(n.setVisual("style",l),n.setVisual("drawType",c),!t.isSeriesFiltered(r)&&d)return n.setVisual("colorFromPalette",!1),{dataEach:function(g,R){var I=r.getDataParams(R),O=extend({},l);O[c]=d(I),g.setItemVisual(R,"style",O)}}}},sharedModel=new Model,dataStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var n=r.getData(),a=r.visualStyleAccessPath||"itemStyle",o=getStyleMapper(r,a),s=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(l,u){var c=l.getRawDataItem(u);if(c&&c[a]){sharedModel.option=c[a];var f=o(sharedModel),d=l.ensureUniqueItemVisual(u,"style");extend(d,f),sharedModel.option.decal&&(l.setItemVisual(u,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),s in f&&l.setItemVisual(u,"colorFromPalette",!1)}}:null}}}},dataColorPaletteTask={performRawSeries:!0,overallReset:function(r){var t=createHashMap();r.eachSeries(function(n){var a=n.getColorBy();if(!n.isColorBySeries()){var o=n.type+"-"+a,s=t.get(o);s||(s={},t.set(o,s)),inner$8(n).scope=s}}),r.eachSeries(function(n){if(!(n.isColorBySeries()||r.isSeriesFiltered(n))){var a=n.getRawData(),o={},s=n.getData(),l=inner$8(n).scope,u=n.visualStyleAccessPath||"itemStyle",c=getDefaultColorKey(n,u);s.each(function(f){var d=s.getRawIndex(f);o[d]=f}),a.each(function(f){var d=o[f],v=s.getItemVisual(d,"colorFromPalette");if(v){var M=s.ensureUniqueItemVisual(d,"style"),g=a.getName(f)||f+"",R=a.count();M[c]=n.getColorFromPalette(g,l,R)}})}})}},PI$1=Math.PI;function defaultLoading(r,t){t=t||{},defaults(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Group$2,a=new Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(a);var o=new ZRText({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),s=new Rect({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(s);var l;return t.showSpinner&&(l=new Arc({shape:{startAngle:-PI$1/2,endAngle:-PI$1/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),l.animateShape(!0).when(1e3,{endAngle:PI$1*3/2}).start("circularInOut"),l.animateShape(!0).when(1e3,{startAngle:PI$1*3/2}).delay(300).start("circularInOut"),n.add(l)),n.resize=function(){var u=o.getBoundingRect().width,c=t.showSpinner?t.spinnerRadius:0,f=(r.getWidth()-c*2-(t.showSpinner&&u?10:0)-u)/2-(t.showSpinner&&u?0:5+u/2)+(t.showSpinner?0:u/2)+(u?0:c),d=r.getHeight()/2;t.showSpinner&&l.setShape({cx:f,cy:d}),s.setShape({x:f-c,y:d-c,width:c*2,height:c*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},n.resize(),n}var Scheduler=function(){function r(t,n,a,o){this._stageTaskMap=createHashMap(),this.ecInstance=t,this.api=n,a=this._dataProcessorHandlers=a.slice(),o=this._visualHandlers=o.slice(),this._allHandlers=a.concat(o)}return r.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(a){var o=a.overallTask;o&&o.dirty()})},r.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),o=a.context,s=!n&&a.progressiveEnabled&&(!o||o.progressiveRender)&&t.__idxInPipeline>a.blockIndex,l=s?a.step:null,u=o&&o.modDataCount,c=u!=null?Math.ceil(u/l):null;return{step:l,modBy:c,modDataCount:u}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,n){var a=this._pipelineMap.get(t.uid),o=t.getData(),s=o.count(),l=a.progressiveEnabled&&n.incrementalPrepareRender&&s>=a.threshold,u=t.get("large")&&s>=t.get("largeThreshold"),c=t.get("progressiveChunkMode")==="mod"?s:null;t.pipelineContext=a.context={progressiveRender:l,modDataCount:c,large:u}},r.prototype.restorePipelines=function(t){var n=this,a=n._pipelineMap=createHashMap();t.eachSeries(function(o){var s=o.getProgressive(),l=o.uid;a.set(l,{id:l,head:null,tail:null,threshold:o.getProgressiveThreshold(),progressiveEnabled:s&&!(o.preventIncremental&&o.preventIncremental()),blockIndex:-1,step:Math.round(s||700),count:0}),n._pipe(o,o.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),a=this.api;each$9(this._allHandlers,function(o){var s=t.get(o.uid)||t.set(o.uid,{}),l="";assert(!(o.reset&&o.overallReset),l),o.reset&&this._createSeriesStageTask(o,s,n,a),o.overallReset&&this._createOverallStageTask(o,s,n,a)},this)},r.prototype.prepareView=function(t,n,a,o){var s=t.renderTask,l=s.context;l.model=n,l.ecModel=a,l.api=o,s.__block=!t.incrementalPrepareRender,this._pipe(n,s)},r.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},r.prototype.performVisualTasks=function(t,n,a){this._performStageTasks(this._visualHandlers,t,n,a)},r.prototype._performStageTasks=function(t,n,a,o){o=o||{};var s=!1,l=this;each$9(t,function(c,f){if(!(o.visualType&&o.visualType!==c.visualType)){var d=l._stageTaskMap.get(c.uid),v=d.seriesTaskMap,M=d.overallTask;if(M){var g,R=M.agentStubMap;R.each(function(O){u(o,O)&&(O.dirty(),g=!0)}),g&&M.dirty(),l.updatePayload(M,a);var I=l.getPerformArgs(M,o.block);R.each(function(O){O.perform(I)}),M.perform(I)&&(s=!0)}else v&&v.each(function(O,N){u(o,O)&&O.dirty();var $=l.getPerformArgs(O,o.block);$.skip=!c.performRawSeries&&n.isSeriesFiltered(O.context.model),l.updatePayload(O,a),O.perform($)&&(s=!0)})}});function u(c,f){return c.setDirty&&(!c.dirtyMap||c.dirtyMap.get(f.__pipeline.id))}this.unfinished=s||this.unfinished},r.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(a){n=a.dataTask.perform()||n}),this.unfinished=n||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},r.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},r.prototype._createSeriesStageTask=function(t,n,a,o){var s=this,l=n.seriesTaskMap,u=n.seriesTaskMap=createHashMap(),c=t.seriesType,f=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(d):c?a.eachRawSeriesByType(c,d):f&&f(a,o).each(d);function d(v){var M=v.uid,g=u.set(M,l&&l.get(M)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));g.context={model:v,ecModel:a,api:o,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:s},s._pipe(v,g)}},r.prototype._createOverallStageTask=function(t,n,a,o){var s=this,l=n.overallTask=n.overallTask||createTask({reset:overallTaskReset});l.context={ecModel:a,api:o,overallReset:t.overallReset,scheduler:s};var u=l.agentStubMap,c=l.agentStubMap=createHashMap(),f=t.seriesType,d=t.getTargetSeries,v=!0,M=!1,g="";assert(!t.createOnAllSeries,g),f?a.eachRawSeriesByType(f,R):d?d(a,o).each(R):(v=!1,each$9(a.getSeries(),R));function R(I){var O=I.uid,N=c.set(O,u&&u.get(O)||(M=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));N.context={model:I,overallProgress:v},N.agent=l,N.__block=v,s._pipe(I,N)}M&&l.dirty()},r.prototype._pipe=function(t,n){var a=t.uid,o=this._pipelineMap.get(a);!o.head&&(o.head=n),o.tail&&o.tail.pipe(n),o.tail=n,n.__idxInPipeline=o.count++,n.__pipeline=o},r.wrapStageHandler=function(t,n){return isFunction(t)&&(t={overallReset:t,seriesType:detectSeriseType(t)}),t.uid=getUID("stageHandler"),n&&(t.visualType=n),t},r}();function overallTaskReset(r){r.overallReset(r.ecModel,r.api,r.payload)}function stubReset(r){return r.overallProgress&&stubProgress}function stubProgress(){this.agent.dirty(),this.getDownstream().dirty()}function stubOnDirty(){this.agent&&this.agent.dirty()}function seriesTaskPlan(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function seriesTaskReset(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=normalizeToArray(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?map$1(t,function(n,a){return makeSeriesTaskProgress(a)}):singleSeriesTaskProgress}var singleSeriesTaskProgress=makeSeriesTaskProgress(0);function makeSeriesTaskProgress(r){return function(t,n){var a=n.data,o=n.resetDefines[r];if(o&&o.dataEach)for(var s=t.start;s0&&g===f.length-M.length){var R=f.slice(0,g);R!=="data"&&(n.mainType=R,n[M.toLowerCase()]=c,d=!0)}}u.hasOwnProperty(f)&&(a[f]=c,d=!0),d||(o[f]=c)})}return{cptQuery:n,dataQuery:a,otherQuery:o}},r.prototype.filter=function(t,n){var a=this.eventInfo;if(!a)return!0;var o=a.targetEl,s=a.packedEvent,l=a.model,u=a.view;if(!l||!u)return!0;var c=n.cptQuery,f=n.dataQuery;return d(c,l,"mainType")&&d(c,l,"subType")&&d(c,l,"index","componentIndex")&&d(c,l,"name")&&d(c,l,"id")&&d(f,s,"name")&&d(f,s,"dataIndex")&&d(f,s,"dataType")&&(!u.filterForExposedEvent||u.filterForExposedEvent(t,n.otherQuery,o,s));function d(v,M,g,R){return v[g]==null||M[R||g]===v[g]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),SYMBOL_PROPS_WITH_CB=["symbol","symbolSize","symbolRotate","symbolOffset"],SYMBOL_PROPS=SYMBOL_PROPS_WITH_CB.concat(["symbolKeepAspect"]),seriesSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var n=r.getData();if(r.legendIcon&&n.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},o={},s=!1,l=0;l=0&&isSafeNum(c)?c:.5;var f=r.createRadialGradient(l,u,0,l,u,c);return f}function getCanvasGradient(r,t,n){for(var a=t.type==="radial"?createRadialGradient(r,t,n):createLinearGradient(r,t,n),o=t.colorStops,s=0;s0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:isNumber(r)?[r]:isArray$1(r)?r:null}function getLineDash(r){var t=r.style,n=t.lineDash&&t.lineWidth>0&&normalizeLineDash(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(n){var o=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;o&&o!==1&&(n=map$1(n,function(s){return s/o}),a/=o)}return[n,a]}var pathProxyForDraw=new PathProxy(!0);function styleHasStroke(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function isValidStrokeFillStyle(r){return typeof r=="string"&&r!=="none"}function styleHasFill(r){var t=r.fill;return t!=null&&t!=="none"}function doFillPath(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=n}else r.fill()}function doStrokePath(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=n}else r.stroke()}function createCanvasPattern(r,t,n){var a=createOrUpdateImage(t.image,t.__image,n);if(isImageReady(a)){var o=r.createPattern(a,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&o&&o.setTransform){var s=new DOMMatrix;s.translateSelf(t.x||0,t.y||0),s.rotateSelf(0,0,(t.rotation||0)*RADIAN_TO_DEGREE),s.scaleSelf(t.scaleX||1,t.scaleY||1),o.setTransform(s)}return o}}function brushPath(r,t,n,a){var o,s=styleHasStroke(n),l=styleHasFill(n),u=n.strokePercent,c=u<1,f=!t.path;(!t.silent||c)&&f&&t.createPathProxy();var d=t.path||pathProxyForDraw,v=t.__dirty;if(!a){var M=n.fill,g=n.stroke,R=l&&!!M.colorStops,I=s&&!!g.colorStops,O=l&&!!M.image,N=s&&!!g.image,$=void 0,F=void 0,G=void 0,q=void 0,Y=void 0;(R||I)&&(Y=t.getBoundingRect()),R&&($=v?getCanvasGradient(r,M,Y):t.__canvasFillGradient,t.__canvasFillGradient=$),I&&(F=v?getCanvasGradient(r,g,Y):t.__canvasStrokeGradient,t.__canvasStrokeGradient=F),O&&(G=v||!t.__canvasFillPattern?createCanvasPattern(r,M,t):t.__canvasFillPattern,t.__canvasFillPattern=G),N&&(q=v||!t.__canvasStrokePattern?createCanvasPattern(r,g,t):t.__canvasStrokePattern,t.__canvasStrokePattern=G),R?r.fillStyle=$:O&&(G?r.fillStyle=G:l=!1),I?r.strokeStyle=F:N&&(q?r.strokeStyle=q:s=!1)}var W=t.getGlobalScale();d.setScale(W[0],W[1],t.segmentIgnoreThreshold);var Z,J;r.setLineDash&&n.lineDash&&(o=getLineDash(t),Z=o[0],J=o[1]);var ee=!0;(f||v&SHAPE_CHANGED_BIT)&&(d.setDPR(r.dpr),c?d.setContext(null):(d.setContext(r),ee=!1),d.reset(),t.buildPath(d,t.shape,a),d.toStatic(),t.pathUpdated()),ee&&d.rebuildPath(r,c?u:1),Z&&(r.setLineDash(Z),r.lineDashOffset=J),a||(n.strokeFirst?(s&&doStrokePath(r,n),l&&doFillPath(r,n)):(l&&doFillPath(r,n),s&&doStrokePath(r,n))),Z&&r.setLineDash([])}function brushImage(r,t,n){var a=t.__image=createOrUpdateImage(n.image,t.__image,t,t.onload);if(!(!a||!isImageReady(a))){var o=n.x||0,s=n.y||0,l=t.getWidth(),u=t.getHeight(),c=a.width/a.height;if(l==null&&u!=null?l=u*c:u==null&&l!=null?u=l/c:l==null&&u==null&&(l=a.width,u=a.height),n.sWidth&&n.sHeight){var f=n.sx||0,d=n.sy||0;r.drawImage(a,f,d,n.sWidth,n.sHeight,o,s,l,u)}else if(n.sx&&n.sy){var f=n.sx,d=n.sy,v=l-f,M=u-d;r.drawImage(a,f,d,v,M,o,s,l,u)}else r.drawImage(a,o,s,l,u)}}function brushText(r,t,n){var a,o=n.text;if(o!=null&&(o+=""),o){r.font=n.font||DEFAULT_FONT,r.textAlign=n.textAlign,r.textBaseline=n.textBaseline;var s=void 0,l=void 0;r.setLineDash&&n.lineDash&&(a=getLineDash(t),s=a[0],l=a[1]),s&&(r.setLineDash(s),r.lineDashOffset=l),n.strokeFirst?(styleHasStroke(n)&&r.strokeText(o,n.x,n.y),styleHasFill(n)&&r.fillText(o,n.x,n.y)):(styleHasFill(n)&&r.fillText(o,n.x,n.y),styleHasStroke(n)&&r.strokeText(o,n.x,n.y)),s&&r.setLineDash([])}}var SHADOW_NUMBER_PROPS=["shadowBlur","shadowOffsetX","shadowOffsetY"],STROKE_PROPS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bindCommonProps(r,t,n,a,o){var s=!1;if(!a&&(n=n||{},t===n))return!1;if(a||t.opacity!==n.opacity){flushPathDrawn(r,o),s=!0;var l=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(l)?DEFAULT_COMMON_STYLE.opacity:l}(a||t.blend!==n.blend)&&(s||(flushPathDrawn(r,o),s=!0),r.globalCompositeOperation=t.blend||DEFAULT_COMMON_STYLE.blend);for(var u=0;u0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,a,o){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}var s,l,u;if(isObject$3(a)&&(o=a.lazyUpdate,s=a.silent,l=a.replaceMerge,u=a.transition,a=a.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||a){var c=new OptionManager(this._api),f=this._theme,d=this._model=new GlobalModel;d.scheduler=this._scheduler,d.ssr=this._ssr,d.init(null,null,null,f,this._locale,c)}this._model.setOption(n,{replaceMerge:l},optionPreprocessorFuncs);var v={seriesTransition:u,optionChanged:!0};if(o)this[PENDING_UPDATE]={silent:s,updateParams:v},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare(this),updateMethods.update.call(this,null,v)}catch(M){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,M}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,s),triggerUpdatedEvent.call(this,s)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||env.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var a=this._zr.painter;return a.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(env.svgSupported){var n=this._zr,a=n.storage.getDisplayList();return each$9(a,function(o){o.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var a=n.excludeComponents,o=this._model,s=[],l=this;each$9(a,function(c){o.eachComponent({mainType:c},function(f){var d=l._componentsMap[f.__viewId];d.group.ignore||(s.push(d),d.group.ignore=!0)})});var u=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return each$9(s,function(c){c.group.ignore=!1}),u},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var a=n.type==="svg",o=this.group,s=Math.min,l=Math.max,u=1/0;if(connectedGroups[o]){var c=u,f=u,d=-u,v=-u,M=[],g=n&&n.pixelRatio||this.getDevicePixelRatio();each$9(instances,function(F,G){if(F.group===o){var q=a?F.getZr().painter.getSvgDom().innerHTML:F.renderToCanvas(clone$3(n)),Y=F.getDom().getBoundingClientRect();c=s(Y.left,c),f=s(Y.top,f),d=l(Y.right,d),v=l(Y.bottom,v),M.push({dom:q,left:Y.left,top:Y.top})}}),c*=g,f*=g,d*=g,v*=g;var R=d-c,I=v-f,O=platformApi.createCanvas(),N=init$1(O,{renderer:a?"svg":"canvas"});if(N.resize({width:R,height:I}),a){var $="";return each$9(M,function(F){var G=F.left-c,q=F.top-f;$+=''+F.dom+""}),N.painter.getSvgRoot().innerHTML=$,n.connectedBackgroundColor&&N.painter.setBackgroundColor(n.connectedBackgroundColor),N.refreshImmediately(),N.painter.toDataURL()}else return n.connectedBackgroundColor&&N.add(new Rect({shape:{x:0,y:0,width:R,height:I},style:{fill:n.connectedBackgroundColor}})),each$9(M,function(F){var G=new ZRImage({style:{x:F.left*g-c,y:F.top*g-f,image:F.dom}});N.add(G)}),N.refreshImmediately(),O.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,a){return doConvertPixel(this,"convertToPixel",n,a)},t.prototype.convertFromPixel=function(n,a){return doConvertPixel(this,"convertFromPixel",n,a)},t.prototype.containPixel=function(n,a){if(this._disposed){this.id;return}var o=this._model,s,l=parseFinder(o,n);return each$9(l,function(u,c){c.indexOf("Models")>=0&&each$9(u,function(f){var d=f.coordinateSystem;if(d&&d.containPoint)s=s||!!d.containPoint(a);else if(c==="seriesModels"){var v=this._chartsMap[f.__viewId];v&&v.containPoint&&(s=s||v.containPoint(a,f))}},this)},this),!!s},t.prototype.getVisual=function(n,a){var o=this._model,s=parseFinder(o,n,{defaultMainType:"series"}),l=s.seriesModel,u=l.getData(),c=s.hasOwnProperty("dataIndexInside")?s.dataIndexInside:s.hasOwnProperty("dataIndex")?u.indexOfRawIndex(s.dataIndex):null;return c!=null?getItemVisualFromData(u,c,a):getVisualFromData(u,a)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;each$9(MOUSE_EVENT_NAMES,function(a){var o=function(s){var l=n.getModel(),u=s.target,c,f=a==="globalout";if(f?c={}:u&&findEventDispatcher(u,function(R){var I=getECData(R);if(I&&I.dataIndex!=null){var O=I.dataModel||l.getSeriesByIndex(I.seriesIndex);return c=O&&O.getDataParams(I.dataIndex,I.dataType,u)||{},!0}else if(I.eventData)return c=extend({},I.eventData),!0},!0),c){var d=c.componentType,v=c.componentIndex;(d==="markLine"||d==="markPoint"||d==="markArea")&&(d="series",v=c.seriesIndex);var M=d&&v!=null&&l.getComponent(d,v),g=M&&n[M.mainType==="series"?"_chartsMap":"_componentsMap"][M.__viewId];c.event=s,c.type=a,n._$eventProcessor.eventInfo={targetEl:u,packedEvent:c,model:M,view:g},n.trigger(a,c)}};o.zrEventfulCallAtLast=!0,n._zr.on(a,o,n)}),each$9(eventActionMap,function(a,o){n._messageCenter.on(o,function(s){this.trigger(o,s)},n)}),each$9(["selectchanged"],function(a){n._messageCenter.on(a,function(o){this.trigger(a,o)},n)}),handleLegacySelectEvents(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&setAttribute(this.getDom(),DOM_ATTRIBUTE_KEY,"");var a=this,o=a._api,s=a._model;each$9(a._componentsViews,function(l){l.dispose(s,o)}),each$9(a._chartsViews,function(l){l.dispose(s,o)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete instances[a.id]},t.prototype.resize=function(n){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}this._zr.resize(n);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var o=a.resetOption("media"),s=n&&n.silent;this[PENDING_UPDATE]&&(s==null&&(s=this[PENDING_UPDATE].silent),o=!0,this[PENDING_UPDATE]=null),this[IN_MAIN_PROCESS_KEY]=!0;try{o&&prepare(this),updateMethods.update.call(this,{type:"resize",animation:extend({duration:0},n&&n.animation)})}catch(l){throw this[IN_MAIN_PROCESS_KEY]=!1,l}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,s),triggerUpdatedEvent.call(this,s)}}},t.prototype.showLoading=function(n,a){if(this._disposed){this.id;return}if(isObject$3(n)&&(a=n,n=""),n=n||"default",this.hideLoading(),!!loadingEffects[n]){var o=loadingEffects[n](this._api,a),s=this._zr;this._loadingFX=o,s.add(o)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var a=extend({},n);return a.type=eventActionMap[n.type],a},t.prototype.dispatchAction=function(n,a){if(this._disposed){this.id;return}if(isObject$3(a)||(a={silent:!!a}),!!actions[n.type]&&this._model){if(this[IN_MAIN_PROCESS_KEY]){this._pendingActions.push(n);return}var o=a.silent;doDispatchAction.call(this,n,o);var s=a.flush;s?this._zr.flush():s!==!1&&env.browser.weChat&&this._throttledZrFlush(),flushPendingActions.call(this,o),triggerUpdatedEvent.call(this,o)}},t.prototype.updateLabelLayout=function(){lifecycle.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var a=n.seriesIndex,o=this.getModel(),s=o.getSeriesByIndex(a);s.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){prepare=function(v){var M=v._scheduler;M.restorePipelines(v._model),M.prepareStageTasks(),prepareView(v,!0),prepareView(v,!1),M.plan()},prepareView=function(v,M){for(var g=v._model,R=v._scheduler,I=M?v._componentsViews:v._chartsViews,O=M?v._componentsMap:v._chartsMap,N=v._zr,$=v._api,F=0;FM.get("hoverLayerThreshold")&&!env.node&&!env.worker&&M.eachSeries(function(O){if(!O.preventUsingHoverLayer){var N=v._chartsMap[O.__viewId];N.__alive&&N.eachRendered(function($){$.states.emphasis&&($.states.emphasis.hoverLayer=!0)})}})}function l(v,M){var g=v.get("blendMode")||null;M.eachRendered(function(R){R.isGroup||(R.style.blend=g)})}function u(v,M){if(!v.preventAutoZ){var g=v.get("z")||0,R=v.get("zlevel")||0;M.eachRendered(function(I){return c(I,g,R,-1/0),!0})}}function c(v,M,g,R){var I=v.getTextContent(),O=v.getTextGuideLine(),N=v.isGroup;if(N)for(var $=v.childrenRef(),F=0;F<$.length;F++)R=Math.max(c($[F],M,g,R),R);else v.z=M,v.zlevel=g,R=Math.max(v.z2,R);if(I&&(I.z=M,I.zlevel=g,isFinite(R)&&(I.z2=R+2)),O){var G=v.textGuideLineConfig;O.z=M,O.zlevel=g,isFinite(R)&&(O.z2=R+(G&&G.showAbove?1:-1))}return R}function f(v,M){M.eachRendered(function(g){if(!isElementRemoved(g)){var R=g.getTextContent(),I=g.getTextGuideLine();g.stateTransition&&(g.stateTransition=null),R&&R.stateTransition&&(R.stateTransition=null),I&&I.stateTransition&&(I.stateTransition=null),g.hasState()?(g.prevStates=g.currentStates,g.clearStates()):g.prevStates&&(g.prevStates=null)}})}function d(v,M){var g=v.getModel("stateAnimation"),R=v.isAnimationEnabled(),I=g.get("duration"),O=I>0?{duration:I,delay:g.get("delay"),easing:g.get("easing")}:null;M.eachRendered(function(N){if(N.states&&N.states.emphasis){if(isElementRemoved(N))return;if(N instanceof Path&&savePathStates(N),N.__dirty){var $=N.prevStates;$&&N.useStates($)}if(R){N.stateTransition=O;var F=N.getTextContent(),G=N.getTextGuideLine();F&&(F.stateTransition=O),G&&(G.stateTransition=O)}N.__dirty&&o(N)}})}createExtensionAPI=function(v){return new(function(M){__extends(g,M);function g(){return M!==null&&M.apply(this,arguments)||this}return g.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},g.prototype.getComponentByElement=function(R){for(;R;){var I=R.__ecComponentInfo;if(I!=null)return v._model.getComponent(I.mainType,I.index);R=R.parent}},g.prototype.enterEmphasis=function(R,I){enterEmphasis(R,I),markStatusToUpdate(v)},g.prototype.leaveEmphasis=function(R,I){leaveEmphasis(R,I),markStatusToUpdate(v)},g.prototype.enterBlur=function(R){enterBlur(R),markStatusToUpdate(v)},g.prototype.leaveBlur=function(R){leaveBlur(R),markStatusToUpdate(v)},g.prototype.enterSelect=function(R){enterSelect(R),markStatusToUpdate(v)},g.prototype.leaveSelect=function(R){leaveSelect(R),markStatusToUpdate(v)},g.prototype.getModel=function(){return v.getModel()},g.prototype.getViewOfComponentModel=function(R){return v.getViewOfComponentModel(R)},g.prototype.getViewOfSeriesModel=function(R){return v.getViewOfSeriesModel(R)},g}(ExtensionAPI))(v)},enableConnect=function(v){function M(g,R){for(var I=0;I=0)){registeredTasks.push(n);var s=Scheduler.wrapStageHandler(n,o);s.__prio=t,s.__raw=n,r.push(s)}}function registerLoading(r,t){loadingEffects[r]=t}function registerMap$1(r,t,n){var a=getImpl("registerMap");a&&a(r,t,n)}var registerTransform=registerExternalTransform;registerVisual(PRIORITY_VISUAL_GLOBAL,seriesStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataColorPaletteTask);registerVisual(PRIORITY_VISUAL_GLOBAL,seriesSymbolTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataSymbolTask);registerVisual(PRIORITY_VISUAL_DECAL,decalVisual);registerPreprocessor(globalBackwardCompat);registerProcessor(PRIORITY_PROCESSOR_DATASTACK,dataStack);registerLoading("default",defaultLoading);registerAction({type:HIGHLIGHT_ACTION_TYPE,event:HIGHLIGHT_ACTION_TYPE,update:HIGHLIGHT_ACTION_TYPE},noop);registerAction({type:DOWNPLAY_ACTION_TYPE,event:DOWNPLAY_ACTION_TYPE,update:DOWNPLAY_ACTION_TYPE},noop);registerAction({type:SELECT_ACTION_TYPE,event:SELECT_ACTION_TYPE,update:SELECT_ACTION_TYPE},noop);registerAction({type:UNSELECT_ACTION_TYPE,event:UNSELECT_ACTION_TYPE,update:UNSELECT_ACTION_TYPE},noop);registerAction({type:TOGGLE_SELECT_ACTION_TYPE,event:TOGGLE_SELECT_ACTION_TYPE,update:TOGGLE_SELECT_ACTION_TYPE},noop);registerTheme("light",lightTheme);registerTheme("dark",theme);function dataIndexMapValueLength(r){return r==null?0:r.length||1}function defaultKeyGetter(r){return r}var DataDiffer=function(){function r(t,n,a,o,s,l){this._old=t,this._new=n,this._oldKeyGetter=a||defaultKeyGetter,this._newKeyGetter=o||defaultKeyGetter,this.context=s,this._diffModeMultiple=l==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,n=this._new,a={},o=new Array(t.length),s=new Array(n.length);this._initIndexMap(t,null,o,"_oldKeyGetter"),this._initIndexMap(n,a,s,"_newKeyGetter");for(var l=0;l1){var d=c.shift();c.length===1&&(a[u]=c[0]),this._update&&this._update(d,l)}else f===1?(a[u]=null,this._update&&this._update(c,l)):this._remove&&this._remove(l)}this._performRestAdd(s,a)},r.prototype._executeMultiple=function(){var t=this._old,n=this._new,a={},o={},s=[],l=[];this._initIndexMap(t,a,s,"_oldKeyGetter"),this._initIndexMap(n,o,l,"_newKeyGetter");for(var u=0;u1&&M===1)this._updateManyToOne&&this._updateManyToOne(d,f),o[c]=null;else if(v===1&&M>1)this._updateOneToMany&&this._updateOneToMany(d,f),o[c]=null;else if(v===1&&M===1)this._update&&this._update(d,f),o[c]=null;else if(v>1&&M>1)this._updateManyToMany&&this._updateManyToMany(d,f),o[c]=null;else if(v>1)for(var g=0;g1)for(var u=0;u30}var isObject$1=isObject$3,map=map$1,CtorInt32Array=typeof Int32Array>"u"?Array:Int32Array,ID_PREFIX="e\0\0",INDEX_NOT_FOUND=-1,TRANSFERABLE_PROPERTIES=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],CLONE_PROPERTIES=["_approximateExtent"],prepareInvertedIndex,getId,getIdNameFromStore,normalizeDimensions,transferProperties,cloneListForMapAndSample,makeIdFromName,SeriesData=function(){function r(t,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 a,o=!1;isSeriesDataSchema(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(o=!0,a=t),a=a||["x","y"];for(var s={},l=[],u={},c=!1,f={},d=0;d=n)){var a=this._store,o=a.getProvider();this._updateOrdinalMeta();var s=this._nameList,l=this._idList,u=o.getSource().sourceFormat,c=u===SOURCE_FORMAT_ORIGINAL;if(c&&!o.pure)for(var f=[],d=t;d0},r.prototype.ensureUniqueItemVisual=function(t,n){var a=this._itemVisuals,o=a[t];o||(o=a[t]={});var s=o[n];return s==null&&(s=this.getVisual(n),isArray$1(s)?s=s.slice():isObject$1(s)&&(s=extend({},s)),o[n]=s),s},r.prototype.setItemVisual=function(t,n,a){var o=this._itemVisuals[t]||{};this._itemVisuals[t]=o,isObject$1(n)?extend(o,n):o[n]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,n){isObject$1(t)?extend(this._layout,t):this._layout[t]=n},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,n,a){this._itemLayouts[t]=a?extend(this._itemLayouts[t]||{},n):n},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,n){var a=this.hostModel&&this.hostModel.seriesIndex;setCommonECData(a,this.dataType,t,n),this._graphicEls[t]=n},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,n){each$9(this._graphicEls,function(a,o){a&&t&&t.call(n,a,o)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:map(this.dimensions,this._getDimInfo,this),this.hostModel)),transferProperties(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,n){var a=this[t];isFunction(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var o=a.apply(this,arguments);return n.apply(this,[o].concat(slice(arguments)))})},r.internalField=function(){prepareInvertedIndex=function(t){var n=t._invertedIndicesMap;each$9(n,function(a,o){var s=t._dimInfos[o],l=s.ordinalMeta,u=t._store;if(l){a=n[o]=new CtorInt32Array(l.categories.length);for(var c=0;c1&&(c+="__ec__"+d),o[n]=c}}}(),r}();function prepareSeriesDataSchema(r,t){isSourceInstance(r)||(r=createSourceFromSeriesDataOption(r)),t=t||{};var n=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],o=createHashMap(),s=[],l=getDimCount(r,n,a,t.dimensionsCount),u=t.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(l),c=a===r.dimensionsDefine,f=c?ensureSourceDimNameMap(r):createDimNameMap(a),d=t.encodeDefine;!d&&t.encodeDefaulter&&(d=t.encodeDefaulter(r,l));for(var v=createHashMap(d),M=new CtorInt32Array$1(l),g=0;g0&&(a.name=o+(s-1)),s++,t.set(o,s)}}function getDimCount(r,t,n,a){var o=Math.max(r.dimensionsDetectedCount||1,t.length,n.length,a||0);return each$9(t,function(s){var l;isObject$3(s)&&(l=s.dimsDef)&&(o=Math.max(o,l.length))}),o}function genCoordDimName(r,t,n){if(n||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var CoordSysInfo=function(){function r(t){this.coordSysDims=[],this.axisMap=createHashMap(),this.categoryAxisMap=createHashMap(),this.coordSysName=t}return r}();function getCoordSysInfoBySeries(r){var t=r.get("coordinateSystem"),n=new CoordSysInfo(t),a=fetchers[t];if(a)return a(r,n,n.axisMap,n.categoryAxisMap),n}var fetchers={cartesian2d:function(r,t,n,a){var o=r.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],s=r.getReferringComponents("yAxis",SINGLE_REFERRING).models[0];t.coordSysDims=["x","y"],n.set("x",o),n.set("y",s),isCategory(o)&&(a.set("x",o),t.firstCategoryDimIndex=0),isCategory(s)&&(a.set("y",s),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,n,a){var o=r.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0];t.coordSysDims=["single"],n.set("single",o),isCategory(o)&&(a.set("single",o),t.firstCategoryDimIndex=0)},polar:function(r,t,n,a){var o=r.getReferringComponents("polar",SINGLE_REFERRING).models[0],s=o.findAxisModel("radiusAxis"),l=o.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",s),n.set("angle",l),isCategory(s)&&(a.set("radius",s),t.firstCategoryDimIndex=0),isCategory(l)&&(a.set("angle",l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,n,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,n,a){var o=r.ecModel,s=o.getComponent("parallel",r.get("parallelIndex")),l=t.coordSysDims=s.dimensions.slice();each$9(s.parallelAxisIndex,function(u,c){var f=o.getComponent("parallelAxis",u),d=l[c];n.set(d,f),isCategory(f)&&(a.set(d,f),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=c))})}};function isCategory(r){return r.get("type")==="category"}function enableDataStack(r,t,n){n=n||{};var a=n.byIndex,o=n.stackedCoordDimension,s,l,u;isLegacyDimensionsInput(t)?s=t:(l=t.schema,s=l.dimensions,u=t.store);var c=!!(r&&r.get("stack")),f,d,v,M;if(each$9(s,function($,F){isString($)&&(s[F]=$={name:$}),c&&!$.isExtraCoord&&(!a&&!f&&$.ordinalMeta&&(f=$),!d&&$.type!=="ordinal"&&$.type!=="time"&&(!o||o===$.coordDim)&&(d=$))}),d&&!a&&!f&&(a=!0),d){v="__\0ecstackresult_"+r.id,M="__\0ecstackedover_"+r.id,f&&(f.createInvertedIndices=!0);var g=d.coordDim,R=d.type,I=0;each$9(s,function($){$.coordDim===g&&I++});var O={name:v,coordDim:g,coordDimIndex:I,type:R,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:s.length},N={name:M,coordDim:M,coordDimIndex:I+1,type:R,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:s.length+1};l?(u&&(O.storeDimIndex=u.ensureCalculationDimension(M,R),N.storeDimIndex=u.ensureCalculationDimension(v,R)),l.appendCalculationDimension(O),l.appendCalculationDimension(N)):(s.push(O),s.push(N))}return{stackedDimension:d&&d.name,stackedByDimension:f&&f.name,isStackedByIndex:a,stackedOverDimension:M,stackResultDimension:v}}function isLegacyDimensionsInput(r){return!isSeriesDataSchema(r.schema)}function isDimensionStacked(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function getStackedDimension(r,t){return isDimensionStacked(r,t)?r.getCalculationInfo("stackResultDimension"):t}function getCoordSysDimDefs(r,t){var n=r.get("coordinateSystem"),a=CoordinateSystemManager.get(n),o;return t&&t.coordSysDims&&(o=map$1(t.coordSysDims,function(s){var l={name:s},u=t.axisMap.get(s);if(u){var c=u.get("type");l.type=getDimensionTypeByAxis(c)}return l})),o||(o=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),o}function injectOrdinalMeta(r,t,n){var a,o;return n&&each$9(r,function(s,l){var u=s.coordDim,c=n.categoryAxisMap.get(u);c&&(a==null&&(a=l),s.ordinalMeta=c.getOrdinalMeta(),t&&(s.createInvertedIndices=!0)),s.otherDims.itemName!=null&&(o=!0)}),!o&&a!=null&&(r[a].otherDims.itemName=0),a}function createSeriesData(r,t,n){n=n||{};var a=t.getSourceManager(),o,s=!1;r?(s=!0,o=createSourceFromSeriesDataOption(r)):(o=a.getSource(),s=o.sourceFormat===SOURCE_FORMAT_ORIGINAL);var l=getCoordSysInfoBySeries(t),u=getCoordSysDimDefs(t,l),c=n.useEncodeDefaulter,f=isFunction(c)?c:c?curry$1(makeSeriesEncodeForAxisCoordSys,u,t):null,d={coordDimensions:u,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:f,canOmitUnusedDimensions:!s},v=prepareSeriesDataSchema(o,d),M=injectOrdinalMeta(v.dimensions,n.createInvertedIndices,l),g=s?null:a.getSharedDataStore(v),R=enableDataStack(t,{schema:v,store:g}),I=new SeriesData(v,t);I.setCalculationInfo(R);var O=M!=null&&isNeedCompleteOrdinalData(o)?function(N,$,F,G){return G===M?F:this.defaultDimValueGetter(N,$,F,G)}:null;return I.hasItemOption=!1,I.initData(s?o:g,null,O),I}function isNeedCompleteOrdinalData(r){if(r.sourceFormat===SOURCE_FORMAT_ORIGINAL){var t=firstDataNotNull(r.data||[]);return!isArray$1(getDataItemValue(t))}}function firstDataNotNull(r){for(var t=0;tn[1]&&(n[1]=t[1])},r.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,n){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(n)||(a[1]=n)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();enableClassManagement(Scale);var uidBase=0,OrdinalMeta=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++uidBase}return r.createByAxisModel=function(t){var n=t.option,a=n.data,o=a&&map$1(a,getName);return new r({categories:o,needCollect:!o,deduplication:n.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var n,a=this._needCollect;if(!isString(t)&&!a)return t;if(a&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var o=this._getOrCreateMap();return n=o.get(t),n==null&&(a?(n=this.categories.length,this.categories[n]=t,o.set(t,n)):n=NaN),n},r.prototype._getOrCreateMap=function(){return this._map||(this._map=createHashMap(this.categories))},r}();function getName(r){return isObject$3(r)&&r.value!=null?r.value:r+""}function isIntervalOrLogScale(r){return r.type==="interval"||r.type==="log"}function intervalScaleNiceTicks(r,t,n,a){var o={},s=r[1]-r[0],l=o.interval=nice(s/t);n!=null&&la&&(l=o.interval=a);var u=o.intervalPrecision=getIntervalPrecision(l),c=o.niceTickExtent=[round$1(Math.ceil(r[0]/l)*l,u),round$1(Math.floor(r[1]/l)*l,u)];return fixExtent(c,r),o}function increaseInterval(r){var t=Math.pow(10,quantityExponent(r)),n=r/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,round$1(n*t)}function getIntervalPrecision(r){return getPrecision(r)+2}function clamp(r,t,n){r[t]=Math.max(Math.min(r[t],n[1]),n[0])}function fixExtent(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),clamp(r,0,t),clamp(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function contain$1(r,t){return r>=t[0]&&r<=t[1]}function normalize(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function scale(r,t){return r*(t[1]-t[0])+t[0]}var OrdinalScale=function(r){__extends(t,r);function t(n){var a=r.call(this,n)||this;a.type="ordinal";var o=a.getSetting("ordinalMeta");return o||(o=new OrdinalMeta({})),isArray$1(o)&&(o=new OrdinalMeta({categories:map$1(o,function(s){return isObject$3(s)?s.value:s})})),a._ordinalMeta=o,a._extent=a.getSetting("extent")||[0,o.categories.length-1],a}return t.prototype.parse=function(n){return n==null?NaN:isString(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),contain$1(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),normalize(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(scale(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],a=this._extent,o=a[0];o<=a[1];)n.push({value:o}),o++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=n.ordinalNumbers,o=this._ordinalNumbersByTick=[],s=this._ticksByOrdinalNumber=[],l=0,u=this._ordinalMeta.categories.length,c=Math.min(u,a.length);l=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Scale);Scale.registerClass(OrdinalScale);var roundNumber=round$1,IntervalScale=function(r){__extends(t,r);function t(){var n=r!==null&&r.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return contain$1(n,this._extent)},t.prototype.normalize=function(n){return normalize(n,this._extent)},t.prototype.scale=function(n){return scale(n,this._extent)},t.prototype.setExtent=function(n,a){var o=this._extent;isNaN(n)||(o[0]=parseFloat(n)),isNaN(a)||(o[1]=parseFloat(a))},t.prototype.unionExtent=function(n){var a=this._extent;n[0]a[1]&&(a[1]=n[1]),this.setExtent(a[0],a[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=getIntervalPrecision(n)},t.prototype.getTicks=function(n){var a=this._interval,o=this._extent,s=this._niceExtent,l=this._intervalPrecision,u=[];if(!a)return u;var c=1e4;o[0]c)return[];var d=u.length?u[u.length-1].value:s[1];return o[1]>d&&(n?u.push({value:roundNumber(d+a,l)}):u.push({value:o[1]})),u},t.prototype.getMinorTicks=function(n){for(var a=this.getTicks(!0),o=[],s=this.getExtent(),l=1;ls[0]&&g0&&(s=s===null?u:Math.min(s,u))}n[a]=s}}return n}function makeColumnLayout(r){var t=getValueAxesMinGaps(r),n=[];return each$9(r,function(a){var o=a.coordinateSystem,s=o.getBaseAxis(),l=s.getExtent(),u;if(s.type==="category")u=s.getBandWidth();else if(s.type==="value"||s.type==="time"){var c=s.dim+"_"+s.index,f=t[c],d=Math.abs(l[1]-l[0]),v=s.scale.getExtent(),M=Math.abs(v[1]-v[0]);u=f?d/M*f:d}else{var g=a.getData();u=Math.abs(l[1]-l[0])/g.count()}var R=parsePercent(a.get("barWidth"),u),I=parsePercent(a.get("barMaxWidth"),u),O=parsePercent(a.get("barMinWidth")||(isInLargeMode(a)?.5:1),u),N=a.get("barGap"),$=a.get("barCategoryGap");n.push({bandWidth:u,barWidth:R,barMaxWidth:I,barMinWidth:O,barGap:N,barCategoryGap:$,axisKey:getAxisKey(s),stackId:getSeriesStackId(a)})}),doCalBarWidthAndOffset(n)}function doCalBarWidthAndOffset(r){var t={};each$9(r,function(a,o){var s=a.axisKey,l=a.bandWidth,u=t[s]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},c=u.stacks;t[s]=u;var f=a.stackId;c[f]||u.autoWidthCount++,c[f]=c[f]||{width:0,maxWidth:0};var d=a.barWidth;d&&!c[f].width&&(c[f].width=d,d=Math.min(u.remainedWidth,d),u.remainedWidth-=d);var v=a.barMaxWidth;v&&(c[f].maxWidth=v);var M=a.barMinWidth;M&&(c[f].minWidth=M);var g=a.barGap;g!=null&&(u.gap=g);var R=a.barCategoryGap;R!=null&&(u.categoryGap=R)});var n={};return each$9(t,function(a,o){n[o]={};var s=a.stacks,l=a.bandWidth,u=a.categoryGap;if(u==null){var c=keys(s).length;u=Math.max(35-c*4,15)+"%"}var f=parsePercent(u,l),d=parsePercent(a.gap,1),v=a.remainedWidth,M=a.autoWidthCount,g=(v-f)/(M+(M-1)*d);g=Math.max(g,0),each$9(s,function(N){var $=N.maxWidth,F=N.minWidth;if(N.width){var G=N.width;$&&(G=Math.min(G,$)),F&&(G=Math.max(G,F)),N.width=G,v-=G+d*G,M--}else{var G=g;$&&$G&&(G=F),G!==g&&(N.width=G,v-=G+d*G,M--)}}),g=(v-f)/(M+(M-1)*d),g=Math.max(g,0);var R=0,I;each$9(s,function(N,$){N.width||(N.width=g),I=N,R+=N.width*(1+d)}),I&&(R-=I.width*d);var O=-R/2;each$9(s,function(N,$){n[o][$]=n[o][$]||{bandWidth:l,offset:O,width:N.width},O+=N.width*(1+d)})}),n}function retrieveColumnLayout(r,t,n){if(r&&t){var a=r[getAxisKey(t)];return a!=null&&n!=null?a[getSeriesStackId(n)]:a}}function layout$2(r,t){var n=prepareLayoutBarSeries(r,t),a=makeColumnLayout(n);each$9(n,function(o){var s=o.getData(),l=o.coordinateSystem,u=l.getBaseAxis(),c=getSeriesStackId(o),f=a[getAxisKey(u)][c],d=f.offset,v=f.width;s.setLayout({bandWidth:f.bandWidth,offset:d,size:v})})}function createProgressiveLayout(r){return{seriesType:r,plan:createRenderPlanner(),reset:function(t){if(isOnCartesian(t)){var n=t.getData(),a=t.coordinateSystem,o=a.getBaseAxis(),s=a.getOtherAxis(o),l=n.getDimensionIndex(n.mapDimension(s.dim)),u=n.getDimensionIndex(n.mapDimension(o.dim)),c=t.get("showBackground",!0),f=n.mapDimension(s.dim),d=n.getCalculationInfo("stackResultDimension"),v=isDimensionStacked(n,f)&&!!n.getCalculationInfo("stackedOnSeries"),M=s.isHorizontal(),g=getValueAxisStart(o,s),R=isInLargeMode(t),I=t.get("barMinHeight")||0,O=d&&n.getDimensionIndex(d),N=n.getLayout("size"),$=n.getLayout("offset");return{progress:function(F,G){for(var q=F.count,Y=R&&createFloat32Array(q*3),W=R&&c&&createFloat32Array(q*3),Z=R&&createFloat32Array(q),J=a.master.getRect(),ee=M?J.width:J.height,K,Q=G.getStore(),ie=0;(K=F.next())!=null;){var oe=Q.get(v?O:l,K),se=Q.get(u,K),ue=g,ge=void 0;v&&(ge=+oe-Q.get(l,K));var ce=void 0,ve=void 0,ye=void 0,Pe=void 0;if(M){var we=a.dataToPoint([oe,se]);if(v){var ke=a.dataToPoint([ge,se]);ue=ke[0]}ce=ue,ve=we[1]+$,ye=we[0]-ue,Pe=N,Math.abs(ye)0?n:1:n))}var bisect=function(r,t,n,a){for(;n>>1;r[o][1]o&&(this._approxInterval=o);var u=scaleIntervals.length,c=Math.min(bisect(scaleIntervals,this._approxInterval,0,u),u-1);this._interval=scaleIntervals[c][1],this._minLevelUnit=scaleIntervals[Math.max(c-1,0)][0]},t.prototype.parse=function(n){return isNumber(n)?n:+parseDate(n)},t.prototype.contain=function(n){return contain$1(this.parse(n),this._extent)},t.prototype.normalize=function(n){return normalize(this.parse(n),this._extent)},t.prototype.scale=function(n){return scale(n,this._extent)},t.type="time",t}(IntervalScale),scaleIntervals=[["second",ONE_SECOND],["minute",ONE_MINUTE],["hour",ONE_HOUR],["quarter-day",ONE_HOUR*6],["half-day",ONE_HOUR*12],["day",ONE_DAY*1.2],["half-week",ONE_DAY*3.5],["week",ONE_DAY*7],["month",ONE_DAY*31],["quarter",ONE_DAY*95],["half-year",ONE_YEAR/2],["year",ONE_YEAR]];function isUnitValueSame(r,t,n,a){var o=parseDate(t),s=parseDate(n),l=function(R){return getUnitValue(o,R,a)===getUnitValue(s,R,a)},u=function(){return l("year")},c=function(){return u()&&l("month")},f=function(){return c()&&l("day")},d=function(){return f()&&l("hour")},v=function(){return d()&&l("minute")},M=function(){return v()&&l("second")},g=function(){return M()&&l("millisecond")};switch(r){case"year":return u();case"month":return c();case"day":return f();case"hour":return d();case"minute":return v();case"second":return M();case"millisecond":return g()}}function getDateInterval(r,t){return r/=ONE_DAY,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function getMonthInterval(r){var t=30*ONE_DAY;return r/=t,r>6?6:r>3?3:r>2?2:1}function getHourInterval(r){return r/=ONE_HOUR,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function getMinutesAndSecondsInterval(r,t){return r/=t?ONE_MINUTE:ONE_SECOND,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function getMillisecondsInterval(r){return nice(r)}function getFirstTimestampOfUnit(r,t,n){var a=new Date(r);switch(getPrimaryTimeUnit(t)){case"year":case"month":a[monthSetterName(n)](0);case"day":a[dateSetterName(n)](1);case"hour":a[hoursSetterName(n)](0);case"minute":a[minutesSetterName(n)](0);case"second":a[secondsSetterName(n)](0),a[millisecondsSetterName(n)](0)}return a.getTime()}function getIntervalTicks(r,t,n,a){var o=1e4,s=timeUnits,l=0;function u(ee,K,Q,ie,oe,se,ue){for(var ge=new Date(K),ce=K,ve=ge[ie]();ce1&&se===0&&Q.unshift({value:Q[0].value-ce})}}for(var se=0;se=a[0]&&$<=a[1]&&v++)}var F=(a[1]-a[0])/t;if(v>F*1.5&&M>F/1.5||(f.push(O),v>F||r===s[g]))break}d=[]}}}for(var G=filter(map$1(f,function(ee){return filter(ee,function(K){return K.value>=a[0]&&K.value<=a[1]&&!K.notAdd})}),function(ee){return ee.length>0}),q=[],Y=G.length-1,g=0;g0;)s*=10;var u=[round$1(mathCeil(a[0]/s)*s),round$1(mathFloor(a[1]/s)*s)];this._interval=s,this._niceExtent=u}},t.prototype.calcNiceExtent=function(n){intervalScaleProto.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=mathLog$1(n)/mathLog$1(this.base),contain$1(n,this._extent)},t.prototype.normalize=function(n){return n=mathLog$1(n)/mathLog$1(this.base),normalize(n,this._extent)},t.prototype.scale=function(n){return n=scale(n,this._extent),mathPow(this.base,n)},t.type="log",t}(Scale),proto=LogScale.prototype;proto.getMinorTicks=intervalScaleProto.getMinorTicks;proto.getLabel=intervalScaleProto.getLabel;function fixRoundingError(r,t){return roundingErrorFix(r,getPrecision(t))}Scale.registerClass(LogScale);var ScaleRawExtentInfo=function(){function r(t,n,a){this._prepareParams(t,n,a)}return r.prototype._prepareParams=function(t,n,a){a[1]0&&c>0&&!f&&(u=0),u<0&&c<0&&!d&&(c=0));var M=this._determinedMin,g=this._determinedMax;return M!=null&&(u=M,f=!0),g!=null&&(c=g,d=!0),{min:u,max:c,minFixed:f,maxFixed:d,isBlank:v}},r.prototype.modifyDataMinMax=function(t,n){this[DATA_MIN_MAX_ATTR[t]]=n},r.prototype.setDeterminedMinMax=function(t,n){var a=DETERMINED_MIN_MAX_ATTR[t];this[a]=n},r.prototype.freeze=function(){this.frozen=!0},r}(),DETERMINED_MIN_MAX_ATTR={min:"_determinedMin",max:"_determinedMax"},DATA_MIN_MAX_ATTR={min:"_dataMin",max:"_dataMax"};function ensureScaleRawExtentInfo(r,t,n){var a=r.rawExtentInfo;return a||(a=new ScaleRawExtentInfo(r,t,n),r.rawExtentInfo=a,a)}function parseAxisModelMinMax(r,t){return t==null?null:eqNaN(t)?NaN:r.parse(t)}function getScaleExtent(r,t){var n=r.type,a=ensureScaleRawExtentInfo(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var o=a.min,s=a.max,l=t.ecModel;if(l&&n==="time"){var u=prepareLayoutBarSeries("bar",l),c=!1;if(each$9(u,function(v){c=c||v.getBaseAxis()===t.axis}),c){var f=makeColumnLayout(u),d=adjustScaleForOverflow(o,s,t,f);o=d.min,s=d.max}}return{extent:[o,s],fixMin:a.minFixed,fixMax:a.maxFixed}}function adjustScaleForOverflow(r,t,n,a){var o=n.axis.getExtent(),s=o[1]-o[0],l=retrieveColumnLayout(a,n.axis);if(l===void 0)return{min:r,max:t};var u=1/0;each$9(l,function(g){u=Math.min(g.offset,u)});var c=-1/0;each$9(l,function(g){c=Math.max(g.offset+g.width,c)}),u=Math.abs(u),c=Math.abs(c);var f=u+c,d=t-r,v=1-(u+c)/s,M=d/v-d;return t+=M*(c/f),r-=M*(u/f),{min:r,max:t}}function niceScaleExtent(r,t){var n=t,a=getScaleExtent(r,n),o=a.extent,s=n.get("splitNumber");r instanceof LogScale&&(r.base=n.get("logBase"));var l=r.type,u=n.get("interval"),c=l==="interval"||l==="time";r.setExtent(o[0],o[1]),r.calcNiceExtent({splitNumber:s,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:c?n.get("minInterval"):null,maxInterval:c?n.get("maxInterval"):null}),u!=null&&r.setInterval&&r.setInterval(u)}function createScaleByModel(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new OrdinalScale({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new TimeScale({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Scale.getClass(t)||IntervalScale)}}function ifAxisCrossZero(r){var t=r.scale.getExtent(),n=t[0],a=t[1];return!(n>0&&a>0||n<0&&a<0)}function makeLabelFormatter(r){var t=r.getLabelModel().get("formatter"),n=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(o,s){return r.scale.getFormattedLabel(o,s,a)}}(t):isString(t)?function(a){return function(o){var s=r.scale.getLabel(o),l=a.replace("{value}",s??"");return l}}(t):isFunction(t)?function(a){return function(o,s){return n!=null&&(s=o.value-n),a(getAxisRawValue(r,o),s,o.level!=null?{level:o.level}:null)}}(t):function(a){return r.scale.getLabel(a)}}function getAxisRawValue(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function estimateLabelUnionRect(r){var t=r.model,n=r.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var a,o,s=n.getExtent();n instanceof OrdinalScale?o=n.count():(a=n.getTicks(),o=a.length);var l=r.getLabelModel(),u=makeLabelFormatter(r),c,f=1;o>40&&(f=Math.ceil(o/40));for(var d=0;dr[1]&&(r[1]=o[1])})}var AxisModelCommonMixin=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),extensions=[],extensionRegisters={registerPreprocessor,registerProcessor,registerPostInit,registerPostUpdate,registerUpdateLifecycle,registerAction,registerCoordinateSystem,registerLayout,registerVisual,registerTransform,registerLoading,registerMap:registerMap$1,registerImpl,PRIORITY,ComponentModel,ComponentView,SeriesModel,ChartView,registerComponentModel:function(r){ComponentModel.registerClass(r)},registerComponentView:function(r){ComponentView.registerClass(r)},registerSeriesModel:function(r){SeriesModel.registerClass(r)},registerChartView:function(r){ChartView.registerClass(r)},registerSubTypeDefaulter:function(r,t){ComponentModel.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){registerPainter(r,t)}};function use(r){if(isArray$1(r)){each$9(r,function(t){use(t)});return}indexOf(extensions,r)>=0||(extensions.push(r),isFunction(r)&&(r={install:r}),r.install(extensionRegisters))}var EPSILON=1e-8;function isAroundEqual(r,t){return Math.abs(r-t)o&&(a=l,o=c)}if(a)return centroid(a.exterior);var f=this.getBoundingRect();return[f.x+f.width/2,f.y+f.height/2]},t.prototype.getBoundingRect=function(n){var a=this._rect;if(a&&!n)return a;var o=[1/0,1/0],s=[-1/0,-1/0],l=this.geometries;return each$9(l,function(u){u.type==="polygon"?updateBBoxFromPoints(u.exterior,o,s,n):each$9(u.points,function(c){updateBBoxFromPoints(c,o,s,n)})}),isFinite(o[0])&&isFinite(o[1])&&isFinite(s[0])&&isFinite(s[1])||(o[0]=o[1]=s[0]=s[1]=0),a=new BoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),n||(this._rect=a),a},t.prototype.contain=function(n){var a=this.getBoundingRect(),o=this.geometries;if(!a.contain(n[0],n[1]))return!1;e:for(var s=0,l=o.length;s>1^-(u&1),c=c>>1^-(c&1),u+=o,c+=s,o=u,s=c,a.push([u/n,c/n])}return a}function parseGeoJSON(r,t){return r=decode(r),map$1(filter(r.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var a=n.properties,o=n.geometry,s=[];switch(o.type){case"Polygon":var l=o.coordinates;s.push(new GeoJSONPolygonGeometry(l[0],l.slice(1)));break;case"MultiPolygon":each$9(o.coordinates,function(c){c[0]&&s.push(new GeoJSONPolygonGeometry(c[0],c.slice(1)))});break;case"LineString":s.push(new GeoJSONLineStringGeometry([o.coordinates]));break;case"MultiLineString":s.push(new GeoJSONLineStringGeometry(o.coordinates))}var u=new GeoJSONRegion(a[t||"name"],s,a.cp);return u.properties=a,u})}var inner$6=makeInner();function tickValuesToNumbers(r,t){var n=map$1(t,function(a){return r.scale.parse(a)});return r.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function createAxisLabels(r){var t=r.getLabelModel().get("customValues");if(t){var n=makeLabelFormatter(r);return{labels:tickValuesToNumbers(r,t).map(function(a){var o={value:a};return{formattedLabel:n(o),rawLabel:r.scale.getLabel(o),tickValue:a}})}}return r.type==="category"?makeCategoryLabels(r):makeRealNumberLabels(r)}function createAxisTicks(r,t){var n=r.getTickModel().get("customValues");return n?{ticks:tickValuesToNumbers(r,n)}:r.type==="category"?makeCategoryTicks(r,t):{ticks:map$1(r.scale.getTicks(),function(a){return a.value})}}function makeCategoryLabels(r){var t=r.getLabelModel(),n=makeCategoryLabelsActually(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function makeCategoryLabelsActually(r,t){var n=getListCache(r,"labels"),a=getOptionCategoryInterval(t),o=listCacheGet(n,a);if(o)return o;var s,l;return isFunction(a)?s=makeLabelsByCustomizedCategoryInterval(r,a):(l=a==="auto"?makeAutoCategoryInterval(r):a,s=makeLabelsByNumericCategoryInterval(r,l)),listCacheSet(n,a,{labels:s,labelCategoryInterval:l})}function makeCategoryTicks(r,t){var n=getListCache(r,"ticks"),a=getOptionCategoryInterval(t),o=listCacheGet(n,a);if(o)return o;var s,l;if((!t.get("show")||r.scale.isBlank())&&(s=[]),isFunction(a))s=makeLabelsByCustomizedCategoryInterval(r,a,!0);else if(a==="auto"){var u=makeCategoryLabelsActually(r,r.getLabelModel());l=u.labelCategoryInterval,s=map$1(u.labels,function(c){return c.tickValue})}else l=a,s=makeLabelsByNumericCategoryInterval(r,l,!0);return listCacheSet(n,a,{ticks:s,tickCategoryInterval:l})}function makeRealNumberLabels(r){var t=r.scale.getTicks(),n=makeLabelFormatter(r);return{labels:map$1(t,function(a,o){return{level:a.level,formattedLabel:n(a,o),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function getListCache(r,t){return inner$6(r)[t]||(inner$6(r)[t]=[])}function listCacheGet(r,t){for(var n=0;n40&&(u=Math.max(1,Math.floor(l/40)));for(var c=s[0],f=r.dataToCoord(c+1)-r.dataToCoord(c),d=Math.abs(f*Math.cos(a)),v=Math.abs(f*Math.sin(a)),M=0,g=0;c<=s[1];c+=u){var R=0,I=0,O=getBoundingRect(n({value:c}),t.font,"center","top");R=O.width*1.3,I=O.height*1.3,M=Math.max(M,R,7),g=Math.max(g,I,7)}var N=M/d,$=g/v;isNaN(N)&&(N=1/0),isNaN($)&&($=1/0);var F=Math.max(0,Math.floor(Math.min(N,$))),G=inner$6(r.model),q=r.getExtent(),Y=G.lastAutoInterval,W=G.lastTickCount;return Y!=null&&W!=null&&Math.abs(Y-F)<=1&&Math.abs(W-l)<=1&&Y>F&&G.axisExtent0===q[0]&&G.axisExtent1===q[1]?F=Y:(G.lastTickCount=l,G.lastAutoInterval=F,G.axisExtent0=q[0],G.axisExtent1=q[1]),F}function fetchAutoCategoryIntervalCalculationParams(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function makeLabelsByNumericCategoryInterval(r,t,n){var a=makeLabelFormatter(r),o=r.scale,s=o.getExtent(),l=r.getLabelModel(),u=[],c=Math.max((t||0)+1,1),f=s[0],d=o.count();f!==0&&c>1&&d/c>2&&(f=Math.round(Math.ceil(f/c)*c));var v=shouldShowAllLabels(r),M=l.get("showMinLabel")||v,g=l.get("showMaxLabel")||v;M&&f!==s[0]&&I(s[0]);for(var R=f;R<=s[1];R+=c)I(R);g&&R-c!==s[1]&&I(s[1]);function I(O){var N={value:O};u.push(n?O:{formattedLabel:a(N),rawLabel:o.getLabel(N),tickValue:O})}return u}function makeLabelsByCustomizedCategoryInterval(r,t,n){var a=r.scale,o=makeLabelFormatter(r),s=[];return each$9(a.getTicks(),function(l){var u=a.getLabel(l),c=l.value;t(l.value,u)&&s.push(n?c:{formattedLabel:o(l),rawLabel:u,tickValue:c})}),s}var NORMALIZED_EXTENT=[0,1],Axis=function(){function r(t,n,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=a||[0,0]}return r.prototype.contain=function(t){var n=this._extent,a=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return t>=a&&t<=o},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return getPixelPrecision(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,n){var a=this._extent;a[0]=t,a[1]=n},r.prototype.dataToCoord=function(t,n){var a=this._extent,o=this.scale;return t=o.normalize(t),this.onBand&&o.type==="ordinal"&&(a=a.slice(),fixExtentWithBands(a,o.count())),linearMap$2(t,NORMALIZED_EXTENT,a,n)},r.prototype.coordToData=function(t,n){var a=this._extent,o=this.scale;this.onBand&&o.type==="ordinal"&&(a=a.slice(),fixExtentWithBands(a,o.count()));var s=linearMap$2(t,a,NORMALIZED_EXTENT,n);return this.scale.scale(s)},r.prototype.pointToData=function(t,n){},r.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),a=createAxisTicks(this,n),o=a.ticks,s=map$1(o,function(u){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(u):u),tickValue:u}},this),l=n.get("alignWithLabel");return fixOnBandTicksCoords(this,s,l,t.clamp),s},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var a=this.scale.getMinorTicks(n),o=map$1(a,function(s){return map$1(s,function(l){return{coord:this.dataToCoord(l),tickValue:l}},this)},this);return o},r.prototype.getViewLabels=function(){return createAxisLabels(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),a=n[1]-n[0]+(this.onBand?1:0);a===0&&(a=1);var o=Math.abs(t[1]-t[0]);return Math.abs(o)/a},r.prototype.calculateCategoryInterval=function(){return calculateCategoryInterval(this)},r}();function fixExtentWithBands(r,t){var n=r[1]-r[0],a=t,o=n/a/2;r[0]+=o,r[1]-=o}function fixOnBandTicksCoords(r,t,n,a){var o=t.length;if(!r.onBand||n||!o)return;var s=r.getExtent(),l,u;if(o===1)t[0].coord=s[0],l=t[1]={coord:s[1]};else{var c=t[o-1].tickValue-t[0].tickValue,f=(t[o-1].coord-t[0].coord)/c;each$9(t,function(g){g.coord-=f/2});var d=r.scale.getExtent();u=1+d[1]-t[o-1].tickValue,l={coord:t[o-1].coord+f*u},t.push(l)}var v=s[0]>s[1];M(t[0].coord,s[0])&&(a?t[0].coord=s[0]:t.shift()),a&&M(s[0],t[0].coord)&&t.unshift({coord:s[0]}),M(s[1],l.coord)&&(a?l.coord=s[1]:t.pop()),a&&M(l.coord,s[1])&&t.push({coord:s[1]});function M(g,R){return g=round$1(g),R=round$1(R),v?g>R:go&&(o+=PI2$1);var g=Math.atan2(u,l);if(g<0&&(g+=PI2$1),g>=a&&g<=o||g+PI2$1>=a&&g+PI2$1<=o)return c[0]=d,c[1]=v,f-n;var R=n*Math.cos(a)+r,I=n*Math.sin(a)+t,O=n*Math.cos(o)+r,N=n*Math.sin(o)+t,$=(R-l)*(R-l)+(I-u)*(I-u),F=(O-l)*(O-l)+(N-u)*(N-u);return $0){t=t/180*Math.PI,pt0.fromArray(r[0]),pt1.fromArray(r[1]),pt2.fromArray(r[2]),Point.sub(dir,pt0,pt1),Point.sub(dir2,pt2,pt1);var n=dir.len(),a=dir2.len();if(!(n<.001||a<.001)){dir.scale(1/n),dir2.scale(1/a);var o=dir.dot(dir2),s=Math.cos(t);if(s1&&Point.copy(tmpProjPoint,pt2),tmpProjPoint.toArray(r[1])}}}}function limitSurfaceAngle(r,t,n){if(n<=180&&n>0){n=n/180*Math.PI,pt0.fromArray(r[0]),pt1.fromArray(r[1]),pt2.fromArray(r[2]),Point.sub(dir,pt1,pt0),Point.sub(dir2,pt2,pt1);var a=dir.len(),o=dir2.len();if(!(a<.001||o<.001)){dir.scale(1/a),dir2.scale(1/o);var s=dir.dot(t),l=Math.cos(n);if(s=c)Point.copy(tmpProjPoint,pt2);else{tmpProjPoint.scaleAndAdd(dir2,u/Math.tan(Math.PI/2-d));var v=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(v))return;v<0?Point.copy(tmpProjPoint,pt1):v>1&&Point.copy(tmpProjPoint,pt2)}tmpProjPoint.toArray(r[1])}}}}function setLabelLineState(r,t,n,a){var o=n==="normal",s=o?r:r.ensureState(n);s.ignore=t;var l=a.get("smooth");l&&l===!0&&(l=.3),s.shape=s.shape||{},l>0&&(s.shape.smooth=l);var u=a.getModel("lineStyle").getLineStyle();o?r.useStyle(u):s.style=u}function buildLabelLinePath(r,t){var n=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),n>0&&a.length>=3){var o=dist$1(a[0],a[1]),s=dist$1(a[1],a[2]);if(!o||!s){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var l=Math.min(o,s)*n,u=lerp$1([],a[1],a[0],l/o),c=lerp$1([],a[1],a[2],l/s),f=lerp$1([],u,c,.5);r.bezierCurveTo(u[0],u[1],u[0],u[1],f[0],f[1]),r.bezierCurveTo(c[0],c[1],c[0],c[1],a[2][0],a[2][1])}else for(var d=1;d0&&s&&q(-d/l,0,l);var I=r[0],O=r[l-1],N,$;F(),N<0&&Y(-N,.8),$<0&&Y($,.8),F(),G(N,$,1),G($,N,-1),F(),N<0&&W(-N),$<0&&W($);function F(){N=I.rect[t]-a,$=o-O.rect[t]-O.rect[n]}function G(Z,J,ee){if(Z<0){var K=Math.min(J,-Z);if(K>0){q(K*ee,0,l);var Q=K+Z;Q<0&&Y(-Q*ee,1)}else Y(-Z*ee,1)}}function q(Z,J,ee){Z!==0&&(f=!0);for(var K=J;K0)for(var Q=0;Q0;Q--){var ue=ee[Q-1]*se;q(-ue,Q,l)}}}function W(Z){var J=Z<0?-1:1;Z=Math.abs(Z);for(var ee=Math.ceil(Z/(l-1)),K=0;K0?q(ee,0,K+1):q(-ee,l-K-1,l),Z-=ee,Z<=0)return}return f}function shiftLayoutOnX(r,t,n,a){return shiftLayout(r,"x","width",t,n,a)}function shiftLayoutOnY(r,t,n,a){return shiftLayout(r,"y","height",t,n,a)}function hideOverlap(r){var t=[];r.sort(function(I,O){return O.priority-I.priority});var n=new BoundingRect(0,0,0,0);function a(I){if(!I.ignore){var O=I.ensureState("emphasis");O.ignore==null&&(O.ignore=!1)}I.ignore=!0}for(var o=0;o"u"||typeof customElements>"u")return z=!1;try{new Function("tag",`class EChartsElement extends HTMLElement {
+ __dispose = null;
+
+ disconnectedCallback() {
+ if (this.__dispose) {
+ this.__dispose();
+ this.__dispose = null;
+ }
+ }
+}
+
+if (customElements.get(tag) == null) {
+ customElements.define(tag, EChartsElement);
+}
+`)(C)}catch{return z=!1}return z=!0}(),D="ecTheme",k$1="ecInitOptions",B="ecUpdateOptions",P=/(^&?~?!?)native:/,H=defineComponent({name:"echarts",props:b(b({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},_),L),emits:{},inheritAttrs:!1,setup:function(r,t){var n=t.attrs,a=shallowRef(),o=shallowRef(),s=shallowRef(),l=shallowRef(),u=inject(D,null),c=inject(k$1,null),f=inject(B,null),d=toRefs(r),v=d.autoresize,M=d.manualUpdate,g=d.loading,R=d.loadingOptions,I=computed(function(){return l.value||r.option||null}),O=computed(function(){return r.theme||w(u,{})}),N=computed(function(){return r.initOptions||w(c,{})}),$=computed(function(){return r.updateOptions||w(f,{})}),F=computed(function(){return function(K){var Q={};for(var ie in K)j(ie)||(Q[ie]=K[ie]);return Q}(n)}),G={},q=getCurrentInstance().proxy.$listeners,Y={};function W(K){if(o.value){var Q=s.value=init(o.value,O.value,N.value);r.group&&(Q.group=r.group),Object.keys(Y).forEach(function(oe){var se=Y[oe];if(se){var ue=oe.toLowerCase();ue.charAt(0)==="~"&&(ue=ue.substring(1),se.__once__=!0);var ge=Q;if(ue.indexOf("zr:")===0&&(ge=Q.getZr(),ue=ue.substring(3)),se.__once__){delete se.__once__;var ce=se;se=function(){for(var ve=[],ye=0;ye=u)}}for(var v=this.__startIndex;v15)break}}oe.prevElClipPaths&&N.restore()};if($)if($.length===0)Z=O.__endIndex;else for(var ee=g.dpr,K=0;K<$.length;++K){var Q=$[K];N.save(),N.beginPath(),N.rect(Q.x*ee,Q.y*ee,Q.width*ee,Q.height*ee),N.clip(),J(Q),N.restore()}else N.save(),J(),N.restore();O.__drawIndex=Z,O.__drawIndex0&&t>o[0]){for(c=0;ct);c++);u=a[o[c]]}if(o.splice(c+1,0,t),a[t]=n,!n.virtual)if(u){var f=u.dom;f.nextSibling?l.insertBefore(n.dom,f.nextSibling):l.appendChild(n.dom)}else l.firstChild?l.insertBefore(n.dom,l.firstChild):l.appendChild(n.dom);n.painter||(n.painter=this)}},r.prototype.eachLayer=function(t,n){for(var a=this._zlevelList,o=0;o0?EL_AFTER_INCREMENTAL_INC:0),this._needsManuallyCompositing),d.__builtin__||logError("ZLevel "+f+" has been used by unkown layer "+d.id),d!==s&&(d.__used=!0,d.__startIndex!==c&&(d.__dirty=!0),d.__startIndex=c,d.incremental?d.__drawIndex=-1:d.__drawIndex=c,n(c),s=d),o.__dirty&REDRAW_BIT&&!o.__inHover&&(d.__dirty=!0,d.incremental&&d.__drawIndex<0&&(d.__drawIndex=c))}n(c),this.eachBuiltinLayer(function(v,M){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,each$9(this._layers,function(n){n.setUnpainted()})},r.prototype.configLayer=function(t,n){if(n){var a=this._layerConfig;a[t]?merge(a[t],n,!0):a[t]=n;for(var o=0;o-1&&(f.style.stroke=f.style.fill,f.style.fill="#fff",f.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(SeriesModel);function getDefaultLabel(r,t){var n=r.mapDimensionsAll("defaultedLabel"),a=n.length;if(a===1){var o=retrieveRawValue(r,t,n[0]);return o!=null?o+"":null}else if(a){for(var s=[],l=0;l=0&&a.push(t[s])}return a.join(" ")}var Symbol$1=function(r){__extends(t,r);function t(n,a,o,s){var l=r.call(this)||this;return l.updateData(n,a,o,s),l}return t.prototype._createSymbol=function(n,a,o,s,l){this.removeAll();var u=createSymbol(n,-1,-1,2,2,null,l);u.attr({z2:100,culling:!0,scaleX:s[0]/2,scaleY:s[1]/2}),u.drift=driftSymbol,this._symbolType=n,this.add(u)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){enterEmphasis(this.childAt(0))},t.prototype.downplay=function(){leaveEmphasis(this.childAt(0))},t.prototype.setZ=function(n,a){var o=this.childAt(0);o.zlevel=n,o.z=a},t.prototype.setDraggable=function(n,a){var o=this.childAt(0);o.draggable=n,o.cursor=!a&&n?"move":o.cursor},t.prototype.updateData=function(n,a,o,s){this.silent=!1;var l=n.getItemVisual(a,"symbol")||"circle",u=n.hostModel,c=t.getSymbolSize(n,a),f=l!==this._symbolType,d=s&&s.disableAnimation;if(f){var v=n.getItemVisual(a,"symbolKeepAspect");this._createSymbol(l,n,a,c,v)}else{var M=this.childAt(0);M.silent=!1;var g={scaleX:c[0]/2,scaleY:c[1]/2};d?M.attr(g):updateProps$1(M,g,u,a),saveOldStyle(M)}if(this._updateCommon(n,a,c,o,s),f){var M=this.childAt(0);if(!d){var g={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:M.style.opacity}};M.scaleX=M.scaleY=0,M.style.opacity=0,initProps(M,g,u,a)}}d&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,a,o,s,l){var u=this.childAt(0),c=n.hostModel,f,d,v,M,g,R,I,O,N;if(s&&(f=s.emphasisItemStyle,d=s.blurItemStyle,v=s.selectItemStyle,M=s.focus,g=s.blurScope,I=s.labelStatesModels,O=s.hoverScale,N=s.cursorStyle,R=s.emphasisDisabled),!s||n.hasItemOption){var $=s&&s.itemModel?s.itemModel:n.getItemModel(a),F=$.getModel("emphasis");f=F.getModel("itemStyle").getItemStyle(),v=$.getModel(["select","itemStyle"]).getItemStyle(),d=$.getModel(["blur","itemStyle"]).getItemStyle(),M=F.get("focus"),g=F.get("blurScope"),R=F.get("disabled"),I=getLabelStatesModels($),O=F.getShallow("scale"),N=$.getShallow("cursor")}var G=n.getItemVisual(a,"symbolRotate");u.attr("rotation",(G||0)*Math.PI/180||0);var q=normalizeSymbolOffset(n.getItemVisual(a,"symbolOffset"),o);q&&(u.x=q[0],u.y=q[1]),N&&u.attr("cursor",N);var Y=n.getItemVisual(a,"style"),W=Y.fill;if(u instanceof ZRImage){var Z=u.style;u.useStyle(extend({image:Z.image,x:Z.x,y:Z.y,width:Z.width,height:Z.height},Y))}else u.__isEmptyBrush?u.useStyle(extend({},Y)):u.useStyle(Y),u.style.decal=null,u.setColor(W,l&&l.symbolInnerColor),u.style.strokeNoScale=!0;var J=n.getItemVisual(a,"liftZ"),ee=this._z2;J!=null?ee==null&&(this._z2=u.z2,u.z2+=J):ee!=null&&(u.z2=ee,this._z2=null);var K=l&&l.useNameLabel;setLabelStyle(u,I,{labelFetcher:c,labelDataIndex:a,defaultText:Q,inheritColor:W,defaultOpacity:Y.opacity});function Q(se){return K?n.getName(se):getDefaultLabel(n,se)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var ie=u.ensureState("emphasis");ie.style=f,u.ensureState("select").style=v,u.ensureState("blur").style=d;var oe=O==null||O===!0?Math.max(1.1,3/this._sizeY):isFinite(O)&&O>0?+O:1;ie.scaleX=this._sizeX*oe,ie.scaleY=this._sizeY*oe,this.setSymbolScale(1),toggleHoverEmphasis(this,M,g,R)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,a,o){var s=this.childAt(0),l=getECData(this).dataIndex,u=o&&o.animation;if(this.silent=s.silent=!0,o&&o.fadeLabel){var c=s.getTextContent();c&&removeElement(c,{style:{opacity:0}},a,{dataIndex:l,removeOpt:u,cb:function(){s.removeTextContent()}})}else s.removeTextContent();removeElement(s,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:l,cb:n,removeOpt:u})},t.getSymbolSize=function(n,a){return normalizeSymbolSize(n.getItemVisual(a,"symbolSize"))},t}(Group$2);function driftSymbol(r,t){this.parent.drift(r,t)}function symbolNeedsDraw(r,t,n,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(n))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(n,"symbol")!=="none"}function normalizeUpdateOpt(r){return r!=null&&!isObject$3(r)&&(r={isIgnore:r}),r||{}}function makeSeriesScope(r){var t=r.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:getLabelStatesModels(t),cursorStyle:t.get("cursor")}}var SymbolDraw=function(){function r(t){this.group=new Group$2,this._SymbolCtor=t||Symbol$1}return r.prototype.updateData=function(t,n){this._progressiveEls=null,n=normalizeUpdateOpt(n);var a=this.group,o=t.hostModel,s=this._data,l=this._SymbolCtor,u=n.disableAnimation,c=makeSeriesScope(t),f={disableAnimation:u},d=n.getSymbolPoint||function(v){return t.getItemLayout(v)};s||a.removeAll(),t.diff(s).add(function(v){var M=d(v);if(symbolNeedsDraw(t,M,v,n)){var g=new l(t,v,c,f);g.setPosition(M),t.setItemGraphicEl(v,g),a.add(g)}}).update(function(v,M){var g=s.getItemGraphicEl(M),R=d(v);if(!symbolNeedsDraw(t,R,v,n)){a.remove(g);return}var I=t.getItemVisual(v,"symbol")||"circle",O=g&&g.getSymbolType&&g.getSymbolType();if(!g||O&&O!==I)a.remove(g),g=new l(t,v,c,f),g.setPosition(R);else{g.updateData(t,v,c,f);var N={x:R[0],y:R[1]};u?g.attr(N):updateProps$1(g,N,o)}a.add(g),t.setItemGraphicEl(v,g)}).remove(function(v){var M=s.getItemGraphicEl(v);M&&M.fadeOut(function(){a.remove(M)},o)}).execute(),this._getSymbolPoint=d,this._data=t},r.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(a,o){var s=t._getSymbolPoint(o);a.setPosition(s),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=makeSeriesScope(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,n,a){this._progressiveEls=[],a=normalizeUpdateOpt(a);function o(c){c.isGroup||(c.incremental=!0,c.ensureState("emphasis").hoverLayer=!0)}for(var s=t.start;s0?n=a[0]:a[1]<0&&(n=a[1]),n}function getStackedOnPoint(r,t,n,a){var o=NaN;r.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),a)),isNaN(o)&&(o=r.valueStart);var s=r.baseDataOffset,l=[];return l[s]=n.get(r.baseDim,a),l[1-s]=o,t.dataToPoint(l)}function diffData(r,t){var n=[];return t.diff(r).add(function(a){n.push({cmd:"+",idx:a})}).update(function(a,o){n.push({cmd:"=",idx:o,idx1:a})}).remove(function(a){n.push({cmd:"-",idx:a})}).execute(),n}function lineAnimationDiff(r,t,n,a,o,s,l,u){for(var c=diffData(r,t),f=[],d=[],v=[],M=[],g=[],R=[],I=[],O=prepareDataCoordInfo(o,t,l),N=r.getLayout("points")||[],$=t.getLayout("points")||[],F=0;F=o||I<0)break;if(isPointNull$1(N,$)){if(c){I+=s;continue}break}if(I===n)r[s>0?"moveTo":"lineTo"](N,$),v=N,M=$;else{var F=N-f,G=$-d;if(F*F+G*G<.5){I+=s;continue}if(l>0){for(var q=I+s,Y=t[q*2],W=t[q*2+1];Y===N&&W===$&&O=a||isPointNull$1(Y,W))g=N,R=$;else{ee=Y-f,K=W-d;var oe=N-f,se=Y-N,ue=$-d,ge=W-$,ce=void 0,ve=void 0;if(u==="x"){ce=Math.abs(oe),ve=Math.abs(se);var ye=ee>0?1:-1;g=N-ye*ce*l,R=$,Q=N+ye*ve*l,ie=$}else if(u==="y"){ce=Math.abs(ue),ve=Math.abs(ge);var Pe=K>0?1:-1;g=N,R=$-Pe*ce*l,Q=N,ie=$+Pe*ve*l}else ce=Math.sqrt(oe*oe+ue*ue),ve=Math.sqrt(se*se+ge*ge),J=ve/(ve+ce),g=N-ee*l*(1-J),R=$-K*l*(1-J),Q=N+ee*l*J,ie=$+K*l*J,Q=mathMin$2(Q,mathMax$2(Y,N)),ie=mathMin$2(ie,mathMax$2(W,$)),Q=mathMax$2(Q,mathMin$2(Y,N)),ie=mathMax$2(ie,mathMin$2(W,$)),ee=Q-N,K=ie-$,g=N-ee*ce/ve,R=$-K*ce/ve,g=mathMin$2(g,mathMax$2(f,N)),R=mathMin$2(R,mathMax$2(d,$)),g=mathMax$2(g,mathMin$2(f,N)),R=mathMax$2(R,mathMin$2(d,$)),ee=N-g,K=$-R,Q=N+ee*ve/ce,ie=$+K*ve/ce}r.bezierCurveTo(v,M,g,R,N,$),v=Q,M=ie}else r.lineTo(N,$)}f=N,d=$,I+=s}return O}var ECPolylineShape=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),ECPolyline=function(r){__extends(t,r);function t(n){var a=r.call(this,n)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ECPolylineShape},t.prototype.buildPath=function(n,a){var o=a.points,s=0,l=o.length/2;if(a.connectNulls){for(;l>0&&isPointNull$1(o[l*2-2],o[l*2-1]);l--);for(;s=0){var G=f?(R-c)*F+c:(g-u)*F+u;return f?[n,G]:[G,n]}u=g,c=R;break;case l.C:g=s[v++],R=s[v++],I=s[v++],O=s[v++],N=s[v++],$=s[v++];var q=f?cubicRootAt(u,g,I,N,n,d):cubicRootAt(c,R,O,$,n,d);if(q>0)for(var Y=0;Y=0){var G=f?cubicAt(c,R,O,$,W):cubicAt(u,g,I,N,W);return f?[n,G]:[G,n]}}u=N,c=$;break}}},t}(Path),ECPolygonShape=function(r){__extends(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(ECPolylineShape),ECPolygon=function(r){__extends(t,r);function t(n){var a=r.call(this,n)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new ECPolygonShape},t.prototype.buildPath=function(n,a){var o=a.points,s=a.stackedOnPoints,l=0,u=o.length/2,c=a.smoothMonotone;if(a.connectNulls){for(;u>0&&isPointNull$1(o[u*2-2],o[u*2-1]);u--);for(;lt){s?n.push(l(s,c,t)):o&&n.push(l(o,c,0),l(o,c,t));break}else o&&(n.push(l(o,c,0)),o=null),n.push(c),s=c}return n}function getVisualGradient(r,t,n){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var o,s,l=a.length-1;l>=0;l--){var u=r.getDimensionInfo(a[l].dimension);if(o=u&&u.coordDim,o==="x"||o==="y"){s=a[l];break}}if(s){var c=t.getAxis(o),f=map$1(s.stops,function(F){return{coord:c.toGlobalCoord(c.dataToCoord(F.value)),color:F.color}}),d=f.length,v=s.outerColors.slice();d&&f[0].coord>f[d-1].coord&&(f.reverse(),v.reverse());var M=clipColorStops(f,o==="x"?n.getWidth():n.getHeight()),g=M.length;if(!g&&d)return f[0].coord<0?v[1]?v[1]:f[d-1].color:v[0]?v[0]:f[0].color;var R=10,I=M[0].coord-R,O=M[g-1].coord+R,N=O-I;if(N<.001)return"transparent";each$9(M,function(F){F.offset=(F.coord-I)/N}),M.push({offset:g?M[g-1].offset:.5,color:v[1]||"transparent"}),M.unshift({offset:g?M[0].offset:.5,color:v[0]||"transparent"});var $=new LinearGradient(0,0,0,0,M,!0);return $[o]=I,$[o+"2"]=O,$}}}function getIsIgnoreFunc(r,t,n){var a=r.get("showAllSymbol"),o=a==="auto";if(!(a&&!o)){var s=n.getAxesByScale("ordinal")[0];if(s&&!(o&&canShowAllSymbolForCategory(s,t))){var l=t.mapDimension(s.dim),u={};return each$9(s.getViewLabels(),function(c){var f=s.scale.getRawOrdinalNumber(c.tickValue);u[f]=1}),function(c){return!u.hasOwnProperty(t.get(l,c))}}}}function canShowAllSymbolForCategory(r,t){var n=r.getExtent(),a=Math.abs(n[1]-n[0])/r.scale.count();isNaN(a)&&(a=0);for(var o=t.count(),s=Math.max(1,Math.round(o/5)),l=0;la)return!1;return!0}function isPointNull(r,t){return isNaN(r)||isNaN(t)}function getLastIndexNotNull(r){for(var t=r.length/2;t>0&&isPointNull(r[t*2-2],r[t*2-1]);t--);return t-1}function getPointAtIndex(r,t){return[r[t*2],r[t*2+1]]}function getIndexRange(r,t,n){for(var a=r.length/2,o=n==="x"?0:1,s,l,u=0,c=-1,f=0;f=t||s>=t&&l<=t){c=f;break}u=f,s=l}return{range:[u,c],t:(t-s)/(l-s)}}function anyStateShowEndLabel(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var ye=I.getState("emphasis").style;ye.lineWidth=+I.style.lineWidth+1}getECData(I).seriesIndex=n.seriesIndex,toggleHoverEmphasis(I,ge,ce,ve);var Pe=getSmooth(n.get("smooth")),we=n.get("smoothMonotone");if(I.setShape({smooth:Pe,smoothMonotone:we,connectNulls:Z}),O){var ke=c.getCalculationInfo("stackedOnSeries"),Be=0;O.useStyle(defaults(d.getAreaStyle(),{fill:ie,opacity:.7,lineJoin:"bevel",decal:c.getVisual("style").decal})),ke&&(Be=getSmooth(ke.get("smooth"))),O.setShape({smooth:Pe,stackedOnSmooth:Be,smoothMonotone:we,connectNulls:Z}),setStatesStylesFromModel(O,n,"areaStyle"),getECData(O).seriesIndex=n.seriesIndex,toggleHoverEmphasis(O,ge,ce,ve)}var Ue=function(Ve){s._changePolyState(Ve)};c.eachItemGraphicEl(function(Ve){Ve&&(Ve.onHoverStateChange=Ue)}),this._polyline.onHoverStateChange=Ue,this._data=c,this._coordSys=l,this._stackedOnPoints=Y,this._points=v,this._step=K,this._valueOrigin=G,n.get("triggerLineEvent")&&(this.packEventData(n,I),O&&this.packEventData(n,O))},t.prototype.packEventData=function(n,a){getECData(a).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,a,o,s){var l=n.getData(),u=queryDataIndex(l,s);if(this._changePolyState("emphasis"),!(u instanceof Array)&&u!=null&&u>=0){var c=l.getLayout("points"),f=l.getItemGraphicEl(u);if(!f){var d=c[u*2],v=c[u*2+1];if(isNaN(d)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(d,v))return;var M=n.get("zlevel")||0,g=n.get("z")||0;f=new Symbol$1(l,u),f.x=d,f.y=v,f.setZ(M,g);var R=f.getSymbolPath().getTextContent();R&&(R.zlevel=M,R.z=g,R.z2=this._polyline.z2+1),f.__temp=!0,l.setItemGraphicEl(u,f),f.stopSymbolAnimation(!0),this.group.add(f)}f.highlight()}else ChartView.prototype.highlight.call(this,n,a,o,s)},t.prototype.downplay=function(n,a,o,s){var l=n.getData(),u=queryDataIndex(l,s);if(this._changePolyState("normal"),u!=null&&u>=0){var c=l.getItemGraphicEl(u);c&&(c.__temp?(l.setItemGraphicEl(u,null),this.group.remove(c)):c.downplay())}else ChartView.prototype.downplay.call(this,n,a,o,s)},t.prototype._changePolyState=function(n){var a=this._polygon;setStatesFlag(this._polyline,n),a&&setStatesFlag(a,n)},t.prototype._newPolyline=function(n){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new ECPolyline({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(n,a){var o=this._polygon;return o&&this._lineGroup.remove(o),o=new ECPolygon({shape:{points:n,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(o),this._polygon=o,o},t.prototype._initSymbolLabelAnimation=function(n,a,o){var s,l,u=a.getBaseAxis(),c=u.inverse;a.type==="cartesian2d"?(s=u.isHorizontal(),l=!1):a.type==="polar"&&(s=u.dim==="angle",l=!0);var f=n.hostModel,d=f.get("animationDuration");isFunction(d)&&(d=d(null));var v=f.get("animationDelay")||0,M=isFunction(v)?v(null):v;n.eachItemGraphicEl(function(g,R){var I=g;if(I){var O=[g.x,g.y],N=void 0,$=void 0,F=void 0;if(o)if(l){var G=o,q=a.pointToCoord(O);s?(N=G.startAngle,$=G.endAngle,F=-q[1]/180*Math.PI):(N=G.r0,$=G.r,F=q[0])}else{var Y=o;s?(N=Y.x,$=Y.x+Y.width,F=g.x):(N=Y.y+Y.height,$=Y.y,F=g.y)}var W=$===N?0:(F-N)/($-N);c&&(W=1-W);var Z=isFunction(v)?v(R):d*W+M,J=I.getSymbolPath(),ee=J.getTextContent();I.attr({scaleX:0,scaleY:0}),I.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:Z}),ee&&ee.animateFrom({style:{opacity:0}},{duration:300,delay:Z}),J.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,a,o){var s=n.getModel("endLabel");if(anyStateShowEndLabel(n)){var l=n.getData(),u=this._polyline,c=l.getLayout("points");if(!c){u.removeTextContent(),this._endLabel=null;return}var f=this._endLabel;f||(f=this._endLabel=new ZRText({z2:200}),f.ignoreClip=!0,u.setTextContent(this._endLabel),u.disableLabelAnimation=!0);var d=getLastIndexNotNull(c);d>=0&&(setLabelStyle(u,getLabelStatesModels(n,"endLabel"),{inheritColor:o,labelFetcher:n,labelDataIndex:d,defaultText:function(v,M,g){return g!=null?getDefaultInterpolatedLabel(l,g):getDefaultLabel(l,v)},enableTextSetter:!0},getEndLabelStateSpecified(s,a)),u.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,a,o,s,l,u,c){var f=this._endLabel,d=this._polyline;if(f){n<1&&s.originalX==null&&(s.originalX=f.x,s.originalY=f.y);var v=o.getLayout("points"),M=o.hostModel,g=M.get("connectNulls"),R=u.get("precision"),I=u.get("distance")||0,O=c.getBaseAxis(),N=O.isHorizontal(),$=O.inverse,F=a.shape,G=$?N?F.x:F.y+F.height:N?F.x+F.width:F.y,q=(N?I:0)*($?-1:1),Y=(N?0:-I)*($?-1:1),W=N?"x":"y",Z=getIndexRange(v,G,W),J=Z.range,ee=J[1]-J[0],K=void 0;if(ee>=1){if(ee>1&&!g){var Q=getPointAtIndex(v,J[0]);f.attr({x:Q[0]+q,y:Q[1]+Y}),l&&(K=M.getRawValue(J[0]))}else{var Q=d.getPointOn(G,W);Q&&f.attr({x:Q[0]+q,y:Q[1]+Y});var ie=M.getRawValue(J[0]),oe=M.getRawValue(J[1]);l&&(K=interpolateRawValues(o,R,ie,oe,Z.t))}s.lastFrameIndex=J[0]}else{var se=n===1||s.lastFrameIndex>0?J[0]:0,Q=getPointAtIndex(v,se);l&&(K=M.getRawValue(se)),f.attr({x:Q[0]+q,y:Q[1]+Y})}if(l){var ue=labelInner(f);typeof ue.setLabelText=="function"&&ue.setLabelText(K)}}},t.prototype._doUpdateAnimation=function(n,a,o,s,l,u,c){var f=this._polyline,d=this._polygon,v=n.hostModel,M=lineAnimationDiff(this._data,n,this._stackedOnPoints,a,this._coordSys,o,this._valueOrigin),g=M.current,R=M.stackedOnCurrent,I=M.next,O=M.stackedOnNext;if(l&&(g=turnPointsIntoStep(M.current,o,l,c),R=turnPointsIntoStep(M.stackedOnCurrent,o,l,c),I=turnPointsIntoStep(M.next,o,l,c),O=turnPointsIntoStep(M.stackedOnNext,o,l,c)),getBoundingDiff(g,I)>3e3||d&&getBoundingDiff(R,O)>3e3){f.stopAnimation(),f.setShape({points:I}),d&&(d.stopAnimation(),d.setShape({points:I,stackedOnPoints:O}));return}f.shape.__points=M.current,f.shape.points=g;var N={shape:{points:I}};M.current!==g&&(N.shape.__points=M.next),f.stopAnimation(),updateProps$1(f,N,v),d&&(d.setShape({points:g,stackedOnPoints:R}),d.stopAnimation(),updateProps$1(d,{shape:{stackedOnPoints:O}},v),f.shape.points!==d.shape.points&&(d.shape.points=f.shape.points));for(var $=[],F=M.status,G=0;Gt&&(t=r[n]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,n=0;nt&&(t=s,n=o)}return isFinite(n)?n:NaN},nearest:function(r){return r[0]}},indexSampler=function(r){return Math.round(r.length/2)};function dataSample(r){return{seriesType:r,reset:function(t,n,a){var o=t.getData(),s=t.get("sampling"),l=t.coordinateSystem,u=o.count();if(u>10&&l.type==="cartesian2d"&&s){var c=l.getBaseAxis(),f=l.getOtherAxis(c),d=c.getExtent(),v=a.getDevicePixelRatio(),M=Math.abs(d[1]-d[0])*(v||1),g=Math.round(u/M);if(isFinite(g)&&g>1){s==="lttb"&&t.setData(o.lttbDownSample(o.mapDimension(f.dim),1/g));var R=void 0;isString(s)?R=samplers[s]:isFunction(s)&&(R=s),R&&t.setData(o.downSample(o.mapDimension(f.dim),1/g,R,indexSampler))}}}}}function install$i(r){r.registerChartView(LineView),r.registerSeriesModel(LineSeriesModel),r.registerLayout(pointsLayout("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,dataSample("line"))}var BaseBarSeriesModel=function(r){__extends(t,r);function t(){var n=r!==null&&r.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,a){return createSeriesData(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,a,o){var s=this.coordinateSystem;if(s&&s.clampData){var l=s.clampData(n),u=s.dataToPoint(l);if(o)each$9(s.getAxes(),function(M,g){if(M.type==="category"&&a!=null){var R=M.getTicksCoords(),I=M.getTickModel().get("alignWithLabel"),O=l[g],N=a[g]==="x1"||a[g]==="y1";if(N&&!I&&(O+=1),R.length<2)return;if(R.length===2){u[g]=M.toGlobalCoord(M.getExtent()[N?1:0]);return}for(var $=void 0,F=void 0,G=1,q=0;qO){F=(Y+$)/2;break}q===1&&(G=W-R[0].tickValue)}F==null&&($?$&&(F=R[R.length-1].coord):F=R[0].coord),u[g]=M.toGlobalCoord(F)}});else{var c=this.getData(),f=c.getLayout("offset"),d=c.getLayout("size"),v=s.getBaseAxis().isHorizontal()?0:1;u[v]+=f+d/2}return u}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(SeriesModel);SeriesModel.registerClass(BaseBarSeriesModel);var BarSeriesModel=function(r){__extends(t,r);function t(){var n=r!==null&&r.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return createSeriesData(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>n&&(n=a),n},t.prototype.brushSelector=function(n,a,o){return o.rect(a.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=inheritDefaultOption(BaseBarSeriesModel.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(BaseBarSeriesModel),SausageShape=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),SausagePath=function(r){__extends(t,r);function t(n){var a=r.call(this,n)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new SausageShape},t.prototype.buildPath=function(n,a){var o=a.cx,s=a.cy,l=Math.max(a.r0||0,0),u=Math.max(a.r,0),c=(u-l)*.5,f=l+c,d=a.startAngle,v=a.endAngle,M=a.clockwise,g=Math.PI*2,R=M?v-dMath.PI/2&&d