function JumpObj(t,e,i,n){function r(){t.onmouseover=function(t){c||a()}}function o(){t.onmouseover=null}function a(){var e=parseInt(t.style.top);if(c){var i=e-h*c;if(i>=-u&&i<=0)t.style.top=i+"px";else if(i<-u)c=-1;else{var n=u/2;if(n<1)return void l();u=n,c=1}}else s();setTimeout(function(){a()},200/(u+3)+3*c)}function s(){i.apply(this),t.style.top="0",c=1}function l(){n.apply(this),u=e,c=0,t.style.top="0"}var u=e=e||6;i=i||function(){},n=n||function(){};var c=0,h=1;!function(){t.style.position="relative",r()}(),this.jump=a,this.active=r,this.deactive=o}function getStyle(t,e){return t.currentStyle?t.currentStyle[e]:getComputedStyle(t,!1)[e]}function startMove(t,e,i,n){clearInterval(t.timer),t.timer=setInterval(function(){var r=0;r="opacity"==e?Math.round(100*parseFloat(getStyle(t,e))):parseInt(getStyle(t,e));var o=(i-r)/3;o=o>0?Math.ceil(o):Math.floor(o),r==i?(clearInterval(t.timer),n&&n()):"opacity"==e?(t.style.filter="alpha(opacity:"+(r+o)+")",t.style.opacity=(r+o)/100,document.getElementById("txt1").value=t.style.opacity):t.style[e]=r+o+"px "},30)}function checkform(){var t=$("#cid"),e=$("#title"),i=$("#labelname"),n=$("#labeltitle"),r=$("#word"),o=($("#tag1").val(),$("#tag2").val(),$("#tag3").val(),$("#pkeywords1").val(),$("#pkeywords2").val(),$("#pkeywords3").val(),$("#catename"));switch(""){case t.val():return swal("请选择分类"),t.focus(),!1;case e.val():return swal("请填写名称!"),e.focus(),!1;case o.val():return swal("分类名称不能为空!"),o.focus(),!1;case r.val():return swal("自定义目录不能为空!"),r.focus(),!1;case i.val():return swal("说明页名称不能为空!"),i.focus(),!1;case n.val():return swal("说明页描述不能为空!"),n.focus(),!1}}function checkFormCate(){var t=$("#catename"),e=$("#title"),i=$("#word");return""==t.val()?(swal("分类名称不能为空!"),t.focus(),!1):""==e.val()?(swal("请填写名称!"),e.focus(),!1):""!=i.val()||(swal("自定义目录不能为空!"),i.focus(),!1)}function fetch_ajax(t,e){var i=document.URL,n=$("#attr_"+t+e).val();n==t+"close"?($("#"+t+e).attr("src","xycms/images/no.gif"),$("#attr_"+t+e).val(t+"open"),$.ajax({type:"POST",url:i,data:"act=update&action="+n+"&id="+e+"&imgid="+t+"&rnd="+(new Date).toString(),dataType:"text",success:function(t){}})):($("#"+t+e).attr("src","xycms/images/yes.gif"),$("#attr_"+t+e).val(t+"close"),$.ajax({type:"POST",url:i,data:"act=update&action="+n+"&id="+e+"&imgid="+t+"&rnd="+(new Date).toString(),dataType:"text",success:function(t){}}))}function fetch_ajax_other(t,e){var i=document.URL,n=$("#attr_"+t+e).val();n==t+"close"?($("#"+t+e).attr("src","xycms/images/no.gif"),$("#attr_"+t+e).val(t+"open"),$.ajax({type:"POST",url:i,data:"act=update&action="+n+"&id="+e+"&imgid="+t+"&rnd="+(new Date).toString(),dataType:"text",success:function(t){}})):($("#"+t+e).attr("src","xycms/images/yes.gif"),$("#attr_"+t+e).val(t+"close"),$.ajax({type:"POST",url:i,data:"act=update&action="+n+"&id="+e+"&imgid="+t+"&rnd="+(new Date).toString(),dataType:"text",success:function(t){}}))}function dc(){for(var t=new Array,e=0;e '+t+sound("tip"),$(e).focus()}catch(t){}window.setTimeout(function(){dc("d"+e).innerHTML=""},n)}function sound(t){return'
'}function checkAll(t,e){for(var i=document.getElementsByName(e),n=0;nl)}function checkall(t,e,i){var i=document.getElementsByClassName(i),n=document.getElementsByClassName(t.className),r=$("#"+e).find("input[type='checkbox']").length,o=$("#"+e).find("input[type='checkbox']:checked").length;i[0].checked=!(r>o);var a=n.length,s=$(t).parents(".allareas").find("input[type='checkbox']:checked").length;t.checked?a==s&&($(t).parents(".allareas").find(".areas")[0].checked=!0):$(t).parents(".allareas").find(".areas")[0].checked=!1}function checkItems(t,e){var i=document.getElementsByClassName(e);if(t.checked){for(var n=document.getElementsByClassName(t.className),r=0;r=48&&event.keyCode<=57}function IsDigit2(){return event.keyCode>=48&&event.keyCode<=57||(event.keyCode=46)}function collapse(t,e){var i;i=document.getElementById(e),-1!=t.src.indexOf("open")?(t.src=t.src.replace("open","close"),i.style.display="none"):(t.src=t.src.replace("close","open"),i.style.display="")}function checkuserstr(t){return!!new RegExp("^([一-﨩]|[-]|_|[a-zA-Z0-9])*$").test(t)}function strlen(t){for(var e=0,i=t.split(""),n=0;ni))return e.checked=!1,swal("","最多只能选择"+i+"项","warning"),!1}if(function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function i(t){var e=!!t&&"length"in t&&t.length,i=ft.type(t);return"function"!==i&&!ft.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function n(t,e,i){if(ft.isFunction(e))return ft.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return ft.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(St.test(e))return ft.filter(e,t,i);e=ft.filter(e,t)}return ft.grep(t,function(t){return ft.inArray(t,e)>-1!==i})}function r(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}function o(t){var e={};return ft.each(t.match(It)||[],function(t,i){e[i]=!0}),e}function a(){nt.addEventListener?(nt.removeEventListener("DOMContentLoaded",s),t.removeEventListener("load",s)):(nt.detachEvent("onreadystatechange",s),t.detachEvent("onload",s))}function s(){(nt.addEventListener||"load"===t.event.type||"complete"===nt.readyState)&&(a(),ft.ready())}function l(t,e,i){if(void 0===i&&1===t.nodeType){var n="data-"+e.replace(Nt,"-$1").toLowerCase();if("string"==typeof(i=t.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:Ot.test(i)?ft.parseJSON(i):i)}catch(t){}ft.data(t,e,i)}else i=void 0}return i}function u(t){var e;for(e in t)if(("data"!==e||!ft.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function c(t,e,i,n){if(Et(t)){var r,o,a=ft.expando,s=t.nodeType,l=s?ft.cache:t,u=s?t[a]:t[a]&&aif(u&&l[u]&&(n||l[u].data)||void 0!==i||"string"!=typeof e)return u||(u=s?t[a]=it.pop()||ft.guid++:a),l[u]||(l[u]=s?{}:{toJSON:ft.noop}),"object"!=typeof e&&"function"!=typeof e||(n?l[u]=ft.extend(l[u],e):l[u].data=ft.extend(l[u].data,e)),o=l[u],n||(o.data||(o.data={}),o=o.data),void 0!==i&&(o[ft.camelCase(e)]=i),"string"==typeof e?null==(r=o[e])&&(r=o[ft.camelCase(e)]):r=o,r}}function h(t,e,i){if(Et(t)){var n,r,o=t.nodeType,a=o?ft.cache:t,s=o?t[ft.expando]:ft.expando;if(a[s]){if(e&&(n=i?a[s]:a[s].data)){ft.isArray(e)?e=e.concat(ft.map(e,ft.camelCase)):e in n?e=[e]:(e=ft.camelCase(e),e=e in n?[e]:e.split(" ")),r=e.length;for(;r--;)delete n[e[r]];if(i?!u(n):!ft.isEmptyObject(n))return}(i||(delete a[s].data,u(a[s])))&&(o?ft.cleanData([t],!0):ht.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function d(t,e,i,n){var r,o=1,a=20,s=n?function(){return n.cur()}:function(){return ft.css(t,e,"")},l=s(),u=i&&i[3]||(ft.cssNumber[e]?"":"px"),c=(ft.cssNumber[e]||"px"!==u&&+l)&&Pt.exec(ft.css(t,e));if(c&&c[3]!==u){u=u||c[3],i=i||[],c=+l||1;do{o=o||".5",c/=o,ft.style(t,e,c+u)}while(o!==(o=s()/l)&&1!==o&&--a)}return i&&(c=+c||+l||0,r=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=u,n.start=c,n.end=r)),r}function f(t){var e=$t.split("|"),i=t.createDocumentFragment();if(i.createElement)for(;e.length;)i.createElement(e.pop());return i}function p(t,e){var i,n,r=0,o=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],i=t.childNodes||t;null!=(n=i[r]);r++)!e||ft.nodeName(n,e)?o.push(n):ft.merge(o,p(n,e));return void 0===e||e&&ft.nodeName(t,e)?ft.merge([t],o):o}function g(t,e){for(var i,n=0;null!=(i=t[n]);n++)ft._data(i,"globalEval",!e||ft._data(e[n],"globalEval"))}function m(t){Bt.test(t.type)&&(t.defaultChecked=t.checked)}function v(t,e,i,n,r){for(var o,a,s,l,u,c,h,d=t.length,v=f(e),y=[],x=0;d>x;x++)if((a=t[x])||0===a)if("object"===ft.type(a))ft.merge(y,a.nodeType?[a]:a);else if(Ut.test(a)){for(l=l||v.appendChild(e.createElement("div")),u=(Ht.exec(a)||["",""])[1].toLowerCase(),h=jt[u]||jt._default,l.innerHTML=h[1]+ft.htmlPrefilter(a)+h[2],o=h[0];o--;)l=l.lastChild;if(!ht.leadingWhitespace&&Wt.test(a)&&y.push(e.createTextNode(Wt.exec(a)[0])),!ht.tbody)for(a="table"!==u||Gt.test(a)?""!==h[1]||Gt.test(a)?0:l:l.firstChild,o=a&&a.childNodes.lengtho--;)ft.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(ft.merge(y,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=v.lastChild}else y.push(e.createTextNode(a));for(l&&v.removeChild(l),ht.appendChecked||ft.grep(p(y,"input"),m),x=0;a=y[x++];)if(n&&ft.inArray(a,n)>-1)r&&r.push(a);else if(s=ft.contains(a.ownerDocument,a),l=p(v.appendChild(a),"script"),s&&g(l),i)for(o=0;a=l[o++];)Vt.test(a.type||"")&&i.push(a);return l=null,v}function y(){return!0}function x(){return!1}function _(){try{return nt.activeElement}catch(t){}}function b(t,e,i,n,r,o){var a,s;if("object"==typeof e){"string"!=typeof i&&(n=n||i,i=void 0);for(s in e)b(t,s,i,n,e[s],o);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=x;else if(!r)return t;return 1===o&&(a=r,r=function(t){return ft().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=ft.guid++)),t.each(function(){ft.event.add(this,e,r,n,i)})}function w(t,e){return ft.nodeName(t,"table")&&ft.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function S(t){return t.type=(null!==ft.find.attr(t,"type"))+"/"+t.type,t}function T(t){var e=ne.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function C(t,e){if(1===e.nodeType&&ft.hasData(t)){var i,n,r,o=ft._data(t),a=ft._data(e,o),s=o.events;if(s){delete a.handle,a.events={};for(i in s)for(n=0,r=s[i].length;r>n;n++)ft.event.add(e,i,s[i][n])}a.data&&(a.data=ft.extend({},a.data))}}function M(t,e){var i,n,r;if(1===e.nodeType){if(i=e.nodeName.toLowerCase(),!ht.noCloneEvent&&e[ft.expando]){r=ft._data(e);for(n in r.events)ft.removeEvent(e,n,r.handle);e.removeAttribute(ft.expando)}"script"===i&&e.text!==t.text?(S(e).text=t.text,T(e)):"object"===i?(e.parentNode&&(e.outerHTML=t.outerHTML),ht.html5Clone&&t.innerHTML&&!ft.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===i&&Bt.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===i?e.defaultSelected=e.selected=t.defaultSelected:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}}function D(t,e,i,n){e=ot.apply([],e);var r,o,a,s,l,u,c=0,h=t.length,d=h-1,f=e[0],g=ft.isFunction(f);if(g||h>1&&"string"==typeof f&&!ht.checkClone&&ie.test(f))return t.each(function(r){var o=t.eq(r);g&&(e[0]=f.call(this,r,o.html())),D(o,e,i,n)});if(h&&(u=v(e,t[0].ownerDocument,!1,t,n),r=u.firstChild,1===u.childNodes.length&&(u=r),r||n)){for(s=ft.map(p(u,"script"),S),a=s.length;h>c;c++)o=u,c!==d&&(o=ft.clone(o,!0,!0),a&&ft.merge(s,p(o,"script"))),i.call(t[c],o,c);if(a)for(l=s[s.length-1].ownerDocument,ft.map(s,T),c=0;a>c;c++)o=s[c],Vt.test(o.type||"")&&!ft._data(o,"globalEval")&&ft.contains(l,o)&&(o.src?ft._evalUrl&&ft._evalUrl(o.src):ft.globalEval((o.text||o.textContent||o.innerHTML||"").replace(re,"")));u=r=null}return t}function I(t,e,i){for(var n,r=e?ft.filter(e,t):t,o=0;null!=(n=r[o]);o++)i||1!==n.nodeType||ft.cleanData(p(n)),n.parentNode&&(i&&ft.contains(n.ownerDocument,n)&&g(p(n,"script")),n.parentNode.removeChild(n));return t}function A(t,e){var i=ft(e.createElement(t)).appendTo(e.body),n=ft.css(i[0],"display");return i.detach(),n}function k(t){var e=nt,i=le[t];return i||(i=A(t,e),"none"!==i&&i||(se=(se||ft("")).appendTo(e.documentElement),e=(se[0].contentWindow||se[0].contentDocument).document,e.write(),e.close(),i=A(t,e),se.detach()),le[t]=i),i}function E(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function O(t){if(t in Se)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),i=we.length;i--;)if((t=we[i]+e)in Se)return t}function N(t,e){for(var i,n,r,o=[],a=0,s=t.length;s>a;a++)n=t[a],n.style&&(o[a]=ft._data(n,"olddisplay"),i=n.style.display,e?(o[a]||"none"!==i||(n.style.display=""),""===n.style.display&&zt(n)&&(o[a]=ft._data(n,"olddisplay",k(n.nodeName)))):(r=zt(n),(i&&"none"!==i||!r)&&ft._data(n,"olddisplay",r?i:ft.css(n,"display"))));for(a=0;s>a;a++)n=t[a],n.style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?o[a]||"":"none"));return t}function L(t,e,i){var n=xe.exec(e);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):e}function P(t,e,i,n,r){for(var o=i===(n?"border":"content")?4:"width"===e?1:0,a=0;4>o;o+=2)"margin"===i&&(a+=ft.css(t,i+Rt[o],!0,r)),n?("content"===i&&(a-=ft.css(t,"padding"+Rt[o],!0,r)),"margin"!==i&&(a-=ft.css(t,"border"+Rt[o]+"Width",!0,r))):(a+=ft.css(t,"padding"+Rt[o],!0,r),"padding"!==i&&(a+=ft.css(t,"border"+Rt[o]+"Width",!0,r)));return a}function R(t,e,i){var n=!0,r="width"===e?t.offsetWidth:t.offsetHeight,o=fe(t),a=ht.boxSizing&&"border-box"===ft.css(t,"boxSizing",!1,o);if(0>=r||null==r){if(r=pe(t,e,o),(0>r||null==r)&&(r=t.style[e]),ce.test(r))return r;n=a&&(ht.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+P(t,e,i||(a?"border":"content"),n,o)+"px"}function z(t,e,i,n,r){return new z.prototype.init(t,e,i,n,r)}function F(){return t.setTimeout(function(){Te=void 0}),Te=ft.now()}function B(t,e){var i,n={height:t},r=0;for(e=e?1:0;4>r;r+=2-e)i=Rt[r],n["margin"+i]=n["padding"+i]=t;return e&&(n.opacity=n.width=t),n}function H(t,e,i){for(var n,r=($.tweeners[e]||[]).concat($.tweeners["*"]),o=0,a=r.length;a>o;o++)if(n=r[o].call(i,e,t))return n}function V(t,e,i){var n,r,o,a,s,l,u,c=this,h={},d=t.style,f=t.nodeType&&zt(t),p=ft._data(t,"fxshow");i.queue||(s=ft._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,ft.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],u=ft.css(t,"display"),"inline"===("none"===u?ft._data(t,"olddisplay")||k(t.nodeName):u)&&"none"===ft.css(t,"float")&&(ht.inlineBlockNeedsLayout&&"inline"!==k(t.nodeName)?d.zoom=1:d.display="inline-block")),i.overflow&&(d.overflow="hidden",ht.shrinkWrapBlocks()||c.always(function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]}));for(n in e)if(r=e[n],Me.exec(r)){if(delete e[n],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!p||void 0===p[n])continue;f=!0}h[n]=p&&p[n]||ft.style(t,n)}else u=void 0;if(ft.isEmptyObject(h))"inline"===("none"===u?k(t.nodeName):u)&&(d.display=u);else{p?"hidden"in p&&(f=p.hidden):p=ft._data(t,"fxshow",{}),o&&(p.hidden=!f),f?ft(t).show():c.done(function(){ft(t).hide()}),c.done(function(){var e;ft._removeData(t,"fxshow");for(e in h)ft.style(t,e,h[e])});for(n in h)a=H(f?p[n]:0,n,c),n in p||(p[n]=a.start,f&&(a.end=a.start,a.start="width"===n||"height"===n?1:0))}}function W(t,e){var i,n,r,o,a;for(i in t)if(n=ft.camelCase(i),r=e[n],o=t[i],ft.isArray(o)&&(r=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(a=ft.cssHooks[n])&&"expand"in a){o=a.expand(o),delete t[n];for(i in o)i in t||(t[i]=o[i],e[i]=r)}else e[n]=r}function $(t,e,i){var n,r,o=0,a=$.prefilters.length,s=ft.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Te||F(),i=Math.max(0,u.startTime+u.duration-e),n=i/u.duration||0,o=1-n,a=0,l=u.tweens.length;l>a;a++)u.tweens[a].run(o);return s.notifyWith(t,[u,o,i]),1>o&&l?i:(s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:ft.extend({},e),opts:ft.extend(!0,{specialEasing:{},easing:ft.easing._default},i),originalProperties:e,originalOptions:i,startTime:Te||F(),duration:i.duration,tweens:[],createTween:function(e,i){var n=ft.Tween(t,u.opts,e,i,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var i=0,n=e?u.tweens.length:0;if(r)return this;for(r=!0;n>i;i++)u.tweens[i].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),c=u.props;for(W(c,u.opts.specialEasing);a>o;o++)if(n=$.prefilters[o].call(u,t,c,u.opts))return ft.isFunction(n.stop)&&(ft._queueHooks(u.elem,u.opts.queue).stop=ft.proxy(n.stop,n)),n;return ft.map(c,H,u),ft.isFunction(u.opts.start)&&u.opts.start.call(t,u),ft.fx.timer(ft.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function j(t){return ft.attr(t,"class")||""}function U(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,o=e.toLowerCase().match(It)||[];if(ft.isFunction(i))for(;n=o[r++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function G(t,e,i,n){function r(s){var l;return o[s]=!0,ft.each(t[s]||[],function(t,s){var u=s(e,i,n);return"string"!=typeof u||a||o[u]?a?!(l=u):void 0:(e.dataTypes.unshift(u),r(u),!1)}),l}var o={},a=t===Ke;return r(e.dataTypes[0])||!o["*"]&&r("*")}function q(t,e){var i,n,r=ft.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&ft.extend(!0,t,i),t}function Y(t,e,i){for(var n,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in i)o=l[0];else{for(a in i){if(!l[0]||t.converters[a+" "+l[0]]){o=a;break}n||(n=a)}o=o||n}return o?(o!==l[0]&&l.unshift(o),i[o]):void 0}function X(t,e,i,n){var r,o,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if(s=r.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function Z(t){return t.style&&t.style.display||ft.css(t,"display")}function K(t){if(!ft.contains(t.ownerDocument||nt,t))return!0;for(;t&&1===t.nodeType;){if("none"===Z(t)||"hidden"===t.type)return!0;t=t.parentNode}return!1}function J(t,e,i,n){var r;if(ft.isArray(e))ft.each(e,function(e,r){i||ii.test(t)?n(t,r):J(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,i,n)});else if(i||"object"!==ft.type(e))n(t,e);else for(r in e)J(t+"["+r+"]",e[r],i,n)}function Q(){try{return new t.XMLHttpRequest}catch(t){}}function tt(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function et(t){return ft.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}var it=[],nt=t.document,rt=it.slice,ot=it.concat,at=it.push,st=it.indexOf,lt={},ut=lt.toString,ct=lt.hasOwnProperty,ht={},dt="1.12.4",ft=function(t,e){return new ft.fn.init(t,e)},pt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,gt=/^-ms-/,mt=/-([\da-z])/gi,vt=function(t,e){return e.toUpperCase()};ft.fn=ft.prototype={jquery:dt,constructor:ft,selector:"",length:0,toArray:function(){return rt.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:rt.call(this)},pushStack:function(t){var e=ft.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return ft.each(this,t)},map:function(t){return this.pushStack(ft.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(rt.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(0>t?e:0);return this.pushStack(i>=0&&e>i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:at,sort:it.sort,splice:it.splice},ft.extend=ft.fn.extend=function(){var t,e,i,n,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||ft.isFunction(a)||(a={}),s===l&&(a=this,s--);l>s;s++)if(null!=(r=arguments[s]))for(n in r)t=a[n],i=r[n],a!==i&&(u&&i&&(ft.isPlainObject(i)||(e=ft.isArray(i)))?(e?(e=!1,o=t&&ft.isArray(t)?t:[]):o=t&&ft.isPlainObject(t)?t:{},a[n]=ft.extend(u,o,i)):void 0!==i&&(a[n]=i));return a},ft.extend({expando:"jQuery"+(dt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ft.type(t)},isArray:Array.isArray||function(t){return"array"===ft.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){var e=t&&t.toString();return!ft.isArray(t)&&e-parseFloat(e)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==ft.type(t)||t.nodeType||ft.isWindow(t))return!1;try{if(t.constructor&&!ct.call(t,"constructor")&&!ct.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(!ht.ownFirst)for(e in t)return ct.call(t,e);for(e in t);return void 0===e||ct.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?lt[ut.call(t)]||"object":typeof t},globalEval:function(e){e&&ft.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(gt,"ms-").replace(mt,vt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,r=0;if(i(t))for(n=t.length;n>r&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(pt,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(i(Object(t))?ft.merge(n,"string"==typeof t?[t]:t):at.call(n,t)),n},inArray:function(t,e,i){var n;if(e){if(st)return st.call(e,t,i);for(n=e.length,i=i?0>i?Math.max(0,n+i):i:0;n>i;i++)if(i in e&&e[i]===t)return i}return-1},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;i>n;)t[r++]=e[n++];if(i!==i)for(;void 0!==e[n];)t[r++]=e[n++];return t.length=r,t},grep:function(t,e,i){for(var n=[],r=0,o=t.length,a=!i;o>r;r++)!e(t[r],r)!==a&&n.push(t[r]);return n},map:function(t,e,n){var r,o,a=0,s=[];if(i(t))for(r=t.length;r>a;a++)null!=(o=e(t[a],a,n))&&s.push(o);else for(a in t)null!=(o=e(t[a],a,n))&&s.push(o);return ot.apply([],s)},guid:1,proxy:function(t,e){var i,n,r;return"string"==typeof e&&(r=t[e],e=t,t=r),ft.isFunction(t)?(i=rt.call(arguments,2),n=function(){return t.apply(e||this,i.concat(rt.call(arguments)))},n.guid=t.guid=t.guid||ft.guid++,n):void 0},now:function(){return+new Date},support:ht}),"function"==typeof Symbol&&(ft.fn[Symbol.iterator]=it[Symbol.iterator]),ft.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){lt["[object "+e+"]"]=e.toLowerCase()});var yt=function(t){function e(t,e,i,n){var r,o,a,s,u,h,d,f,p=e&&e.ownerDocument,g=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==g&&9!==g&&11!==g)return i;if(!n&&((e?e.ownerDocument||e:F)!==k&&A(e),e=e||k,O)){if(11!==g&&(h=gt.exec(t)))if(r=h[1]){if(9===g){if(!(a=e.getElementById(r)))return i;if(a.id===r)return i.push(a),i}else if(p&&(a=p.getElementById(r))&&R(e,a)&&a.id===r)return i.push(a),i}else{if(h[2])return Z.apply(i,e.getElementsByTagName(t)),i;if((r=h[3])&&x.getElementsByClassName&&e.getElementsByClassName)return Z.apply(i,e.getElementsByClassName(r)),i}if(x.qsa&&!$[t+" "]&&(!N||!N.test(t))){if(1!==g)p=e,f=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(vt,"\\$&"):e.setAttribute("id",s=z),d=S(t),o=d.length,u=ct.test(s)?"#"+s:"[id='"+s+"']";o--;)d[o]=u+" "+c(d[o]);f=d.join(","),p=mt.test(t)&&l(e.parentNode)||e}if(f)try{return Z.apply(i,p.querySelectorAll(f)),i}catch(t){}finally{s===z&&e.removeAttribute("id")}}}return C(t.replace(ot,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>_.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[z]=!0,t}function r(t){var e=k.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var i=t.split("|"),n=i.length;n--;)_.attrHandle[i[n]]=e}function a(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||U)-(~t.sourceIndex||U);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function s(t){return n(function(e){return e=+e,n(function(i,n){for(var r,o=t([],i.length,e),a=o.length;a--;)i[r=o[a]]&&(i[r]=!(n[r]=i[r]))})})}function l(t){return t&&void 0!==t.getElementsByTagName&&t}function u(){}function c(t){for(var e=0,i=t.length,n="";i>e;e++)n+=t[e].value;return n}function h(t,e,i){var n=e.dir,r=i&&"parentNode"===n,o=H++;return e.first?function(e,i,o){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,o)}:function(e,i,a){var s,l,u,c=[B,o];if(a){for(;e=e[n];)if((1===e.nodeType||r)&&t(e,i,a))return!0}else for(;e=e[n];)if(1===e.nodeType||r){if(u=e[z]||(e[z]={}),l=u[e.uniqueID]||(u[e.uniqueID]={}),(s=l[n])&&s[0]===B&&s[1]===o)return c[2]=s[2];if(l[n]=c,c[2]=t(e,i,a))return!0}}}function d(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function f(t,i,n){for(var r=0,o=i.length;o>r;r++)e(t,i[r],n);return n}function p(t,e,i,n,r){for(var o,a=[],s=0,l=t.length,u=null!=e;l>s;s++)(o=t[s])&&(i&&!i(o,n,r)||(a.push(o),u&&e.push(s)));return a}function g(t,e,i,r,o,a){return r&&!r[z]&&(r=g(r)),o&&!o[z]&&(o=g(o,a)),n(function(n,a,s,l){var u,c,h,d=[],g=[],m=a.length,v=n||f(e||"*",s.nodeType?[s]:s,[]),y=!t||!n&&e?v:p(v,d,t,s,l),x=i?o||(n?t:m||r)?[]:a:y;if(i&&i(y,x,s,l),r)for(u=p(x,g),r(u,[],s,l),c=u.length;c--;)(h=u[c])&&(x[g[c]]=!(y[g[c]]=h));if(n){if(o||t){if(o){for(u=[],c=x.length;c--;)(h=x[c])&&u.push(y[c]=h);o(null,x=[],u,l)}for(c=x.length;c--;)(h=x[c])&&(u=o?J(n,h):d[c])>-1&&(n[u]=!(a[u]=h))}}else x=p(x===a?x.splice(m,x.length):x),o?o(null,a,x,l):Z.apply(a,x)})}function m(t){for(var e,i,n,r=t.length,o=_.relative[t[0].type],a=o||_.relative[" "],s=o?1:0,l=h(function(t){return t===e},a,!0),u=h(function(t){return J(e,t)>-1},a,!0),f=[function(t,i,n){var r=!o&&(n||i!==M)||((e=i).nodeType?l(t,i,n):u(t,i,n));return e=null,r}];r>s;s++)if(i=_.relative[t[s].type])f=[h(d(f),i)];else{if(i=_.filter[t[s].type].apply(null,t[s].matches),i[z]){for(n=++s;r>n&&!_.relative[t[n].type];n++);return g(s>1&&d(f),s>1&&c(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(ot,"$1"),i,n>s&&m(t.slice(s,n)),r>n&&m(t=t.slice(n)),r>n&&c(t))}f.push(i)}return d(f)}function v(t,i){var r=i.length>0,o=t.length>0,a=function(n,a,s,l,u){var c,h,d,f=0,g="0",m=n&&[],v=[],y=M,x=n||o&&_.find.TAG("*",u),b=B+=null==y?1:Math.random()||.1,w=x.length;for(u&&(M=a===k||a||u);g!==w&&null!=(c=x[g]);g++){if(o&&c){for(h=0,a||c.ownerDocument===k||(A(c),s=!O);d=t[h++];)if(d(c,a||k,s)){l.push(c);break}u&&(B=b)}r&&((c=!d&&c)&&f--,n&&m.push(c))}if(f+=g,r&&g!==f){for(h=0;d=i[h++];)d(m,v,a,s);if(n){if(f>0)for(;g--;)m[g]||v[g]||(v[g]=Y.call(l));v=p(v)}Z.apply(l,v),u&&!n&&v.length>0&&f+i.length>1&&e.uniqueSort(l)}return u&&(B=b,M=y),m};return r?n(a):a}var y,x,_,b,w,S,T,C,M,D,I,A,k,E,O,N,L,P,R,z="sizzle"+1*new Date,F=t.document,B=0,H=0,V=i(),W=i(),$=i(),j=function(t,e){return t===e&&(I=!0),0},U=1<<31,G={}.hasOwnProperty,q=[],Y=q.pop,X=q.push,Z=q.push,K=q.slice,J=function(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i;return-1},Q="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",tt="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",it="\\["+tt+"*("+et+")(?:"+tt+"*([*^$|!~]?=)"+tt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+et+"))|)"+tt+"*\\]",nt=":("+et+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",rt=new RegExp(tt+"+","g"),ot=new RegExp("^"+tt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+tt+"+$","g"),at=new RegExp("^"+tt+"*,"+tt+"*"),st=new RegExp("^"+tt+"*([>+~]|"+tt+")"+tt+"*"),lt=new RegExp("="+tt+"*([^\\]'\"]*?)"+tt+"*\\]","g"),ut=new RegExp(nt),ct=new RegExp("^"+et+"$"),ht={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+nt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+Q+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,ft=/^h\d$/i,pt=/^[^{]+\{\s*\[native \w/,gt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mt=/[+~]/,vt=/'|\\/g,yt=new RegExp("\\\\([\\da-f]{1,6}"+tt+"?|("+tt+")|.)","ig"),xt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},_t=function(){A()};try{Z.apply(q=K.call(F.childNodes),F.childNodes),q[F.childNodes.length].nodeType}catch(t){Z={apply:q.length?function(t,e){X.apply(t,K.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}x=e.support={},w=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},A=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:F;return n!==k&&9===n.nodeType&&n.documentElement?(k=n,E=k.documentElement,O=!w(k),(i=k.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",_t,!1):i.attachEvent&&i.attachEvent("onunload",_t)),x.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),x.getElementsByTagName=r(function(t){return t.appendChild(k.createComment("")), !t.getElementsByTagName("*").length}),x.getElementsByClassName=pt.test(k.getElementsByClassName),x.getById=r(function(t){return E.appendChild(t).id=z,!k.getElementsByName||!k.getElementsByName(z).length}),x.getById?(_.find.ID=function(t,e){if(void 0!==e.getElementById&&O){var i=e.getElementById(t);return i?[i]:[]}},_.filter.ID=function(t){var e=t.replace(yt,xt);return function(t){return t.getAttribute("id")===e}}):(delete _.find.ID,_.filter.ID=function(t){var e=t.replace(yt,xt);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),_.find.TAG=x.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):x.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},_.find.CLASS=x.getElementsByClassName&&function(t,e){return void 0!==e.getElementsByClassName&&O?e.getElementsByClassName(t):void 0},L=[],N=[],(x.qsa=pt.test(k.querySelectorAll))&&(r(function(t){E.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&N.push("[*^$]="+tt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||N.push("\\["+tt+"*(?:value|"+Q+")"),t.querySelectorAll("[id~="+z+"-]").length||N.push("~="),t.querySelectorAll(":checked").length||N.push(":checked"),t.querySelectorAll("a#"+z+"+*").length||N.push(".#.+[+~]")}),r(function(t){var e=k.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&N.push("name"+tt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||N.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),N.push(",.*:")})),(x.matchesSelector=pt.test(P=E.matches||E.webkitMatchesSelector||E.mozMatchesSelector||E.oMatchesSelector||E.msMatchesSelector))&&r(function(t){x.disconnectedMatch=P.call(t,"div"),P.call(t,"[s!='']:x"),L.push("!=",nt)}),N=N.length&&new RegExp(N.join("|")),L=L.length&&new RegExp(L.join("|")),e=pt.test(E.compareDocumentPosition),R=e||pt.test(E.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNodereturn t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},j=e?function(t,e){if(t===e)return I=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!x.sortDetached&&e.compareDocumentPosition(t)===i?t===k||t.ownerDocument===F&&R(F,t)?-1:e===k||e.ownerDocument===F&&R(F,e)?1:D?J(D,t)-J(D,e):0:4&i?-1:1)}:function(t,e){if(t===e)return I=!0,0;var i,n=0,r=t.parentNode,o=e.parentNode,s=[t],l=[e];if(!r||!o)return t===k?-1:e===k?1:r?-1:o?1:D?J(D,t)-J(D,e):0;if(r===o)return a(t,e);for(i=t;i=i.parentNode;)s.unshift(i);for(i=e;i=i.parentNode;)l.unshift(i);for(;s[n]===l[n];)n++;return n?a(s[n],l[n]):s[n]===F?-1:l[n]===F?1:0},k):k},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==k&&A(t),i=i.replace(lt,"='$1']"),x.matchesSelector&&O&&!$[i+" "]&&(!L||!L.test(i))&&(!N||!N.test(i)))try{var n=P.call(t,i);if(n||x.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return e(i,k,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==k&&A(t),R(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==k&&A(t);var i=_.attrHandle[e.toLowerCase()],n=i&&G.call(_.attrHandle,e.toLowerCase())?i(t,e,!O):void 0;return void 0!==n?n:x.attributes||!O?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,r=0;if(I=!x.detectDuplicates,D=!x.sortStable&&t.slice(0),t.sort(j),I){for(;e=t[r++];)e===t[r]&&(n=i.push(r));for(;n--;)t.splice(i[n],1)}return D=null,t},b=e.getText=function(t){var e,i="",n=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=b(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[n++];)i+=b(e);return i},_=e.selectors={cacheLength:50,createPseudo:n,match:ht,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(yt,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(yt,xt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return ht.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&ut.test(i)&&(e=S(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(yt,xt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=V[t+" "];return e||(e=new RegExp("(^|"+tt+")"+t+"("+tt+"|$)"))&&V(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(r){var o=e.attr(r,t);return null==o?"!="===i:!i||(o+="","="===i?o===n:"!="===i?o!==n:"^="===i?n&&0===o.indexOf(n):"*="===i?n&&o.indexOf(n)>-1:"$="===i?n&&o.slice(-n.length)===n:"~="===i?(" "+o.replace(rt," ")+" ").indexOf(n)>-1:"|="===i&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var u,c,h,d,f,p,g=o!==a?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!l&&!s,x=!1;if(m){if(o){for(;g;){for(d=e;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(d=m,h=d[z]||(d[z]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[t]||[],f=u[0]===B&&u[1],x=f&&u[2],d=f&&m.childNodes[f];d=++f&&d&&d[g]||(x=f=0)||p.pop();)if(1===d.nodeType&&++x&&d===e){c[t]=[B,f,x];break}}else if(y&&(d=e,h=d[z]||(d[z]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[t]||[],f=u[0]===B&&u[1],x=f),!1===x)for(;(d=++f&&d&&d[g]||(x=f=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++x||(y&&(h=d[z]||(d[z]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),c[t]=[B,x]),d!==e)););return(x-=r)===n||x%n==0&&x/n>=0}}},PSEUDO:function(t,i){var r,o=_.pseudos[t]||_.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[z]?o(i):o.length>1?(r=[t,t,"",i],_.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,r=o(t,i),a=r.length;a--;)n=J(t,r[a]),t[n]=!(e[n]=r[a])}):function(t){return o(t,0,r)}):o}},pseudos:{not:n(function(t){var e=[],i=[],r=T(t.replace(ot,"$1"));return r[z]?n(function(t,e,i,n){for(var o,a=r(t,null,n,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,n,o){return e[0]=t,r(e,null,o,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(yt,xt),function(e){return(e.textContent||e.innerText||b(e)).indexOf(t)>-1}}),lang:n(function(t){return ct.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(yt,xt).toLowerCase(),function(e){var i;do{if(i=O?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hashreturn i&&i.slice(1)===e.id},root:function(t){return t===E},focus:function(t){return t===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return ft.test(t.nodeName)},input:function(t){return dt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:s(function(){return[0]}),last:s(function(t,e){return[e-1]}),eq:s(function(t,e,i){return[0>i?i+e:i]}),even:s(function(t,e){for(var i=0;e>i;i+=2)t.push(i);return t}),odd:s(function(t,e){for(var i=1;e>i;i+=2)t.push(i);return t}),lt:s(function(t,e,i){for(var n=0>i?i+e:i;--n>=0;)t.push(n);return t}),gt:s(function(t,e,i){for(var n=0>i?i+e:i;++n2&&"ID"===(a=o[0]).type&&x.getById&&9===e.nodeType&&O&&_.relative[o[1].type]){if(!(e=(_.find.ID(a.matches[0].replace(yt,xt),e)||[])[0]))return i;h&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=ht.needsContext.test(t)?0:o.length;r--&&(a=o[r],!_.relative[s=a.type]);)if((u=_.find[s])&&(n=u(a.matches[0].replace(yt,xt),mt.test(o[0].type)&&l(e.parentNode)||e))){if(o.splice(r,1),!(t=n.length&&c(o)))return Z.apply(i,n),i;break}}return(h||T(t,d))(n,e,!O,i,!e||mt.test(t)&&l(e.parentNode)||e),i},x.sortStable=z.split("").sort(j).join("")===z,x.detectDuplicates=!!I,A(),x.sortDetached=r(function(t){return 1&t.compareDocumentPosition(k.createElement("div"))}),r(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,i){return i?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),x.attributes&&r(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,i){return i||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(Q,function(t,e,i){var n;return i?void 0:!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(t);ft.find=yt,ft.expr=yt.selectors,ft.expr[":"]=ft.expr.pseudos,ft.uniqueSort=ft.unique=yt.uniqueSort,ft.text=yt.getText,ft.isXMLDoc=yt.isXML,ft.contains=yt.contains;var xt=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&ft(t).is(i))break;n.push(t)}return n},_t=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},bt=ft.expr.match.needsContext,wt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,St=/^.[^:#\[\.,]*$/;ft.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?ft.find.matchesSelector(n,t)?[n]:[]:ft.find.matches(t,ft.grep(e,function(t){return 1===t.nodeType}))},ft.fn.extend({find:function(t){var e,i=[],n=this,r=n.length;if("string"!=typeof t)return this.pushStack(ft(t).filter(function(){for(e=0;r>e;e++)if(ft.contains(n[e],this))return!0}));for(e=0;r>e;e++)ft.find(t,n[e],i);return i=this.pushStack(r>1?ft.unique(i):i),i.selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(n(this,t||[],!1))},not:function(t){return this.pushStack(n(this,t||[],!0))},is:function(t){return!!n(this,"string"==typeof t&&bt.test(t)?ft(t):t||[],!1).length}});var Tt,Ct=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(ft.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||Tt,"string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:Ct.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof ft?e[0]:e,ft.merge(this,ft.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:nt,!0)),wt.test(n[1])&&ft.isPlainObject(e))for(n in e)ft.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((r=nt.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return Tt.find(t);this.length=1,this[0]=r}return this.context=nt,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ft.isFunction(t)?void 0!==i.ready?i.ready(t):t(ft):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ft.makeArray(t,this))}).prototype=ft.fn,Tt=ft(nt);var Mt=/^(?:parents|prev(?:Until|All))/,Dt={children:!0,contents:!0,next:!0,prev:!0};ft.fn.extend({has:function(t){var e,i=ft(t,this),n=i.length;return this.filter(function(){for(e=0;n>e;e++)if(ft.contains(this,i[e]))return!0})},closest:function(t,e){for(var i,n=0,r=this.length,o=[],a=bt.test(t)||"string"!=typeof t?ft(t,e||this.context):0;r>n;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(a?a.index(i)>-1:1===i.nodeType&&ft.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?ft.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?ft.inArray(this[0],ft(t)):ft.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ft.uniqueSort(ft.merge(this.get(),ft(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ft.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return xt(t,"parentNode")},parentsUntil:function(t,e,i){return xt(t,"parentNode",i)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return xt(t,"nextSibling")},prevAll:function(t){return xt(t,"previousSibling")},nextUntil:function(t,e,i){return xt(t,"nextSibling",i)},prevUntil:function(t,e,i){return xt(t,"previousSibling",i)},siblings:function(t){return _t((t.parentNode||{}).firstChild,t)},children:function(t){return _t(t.firstChild)},contents:function(t){return ft.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:ft.merge([],t.childNodes)}},function(t,e){ft.fn[t]=function(i,n){var r=ft.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=ft.filter(n,r)),this.length>1&&(Dt[t]||(r=ft.uniqueSort(r)),Mt.test(t)&&(r=r.reverse())),this.pushStack(r)}});var It=/\S+/g;ft.Callbacks=function(t){t="string"==typeof t?o(t):ft.extend({},t);var e,i,n,r,a=[],s=[],l=-1,u=function(){for(r=t.once,n=e=!0;s.length;l=-1)for(i=s.shift();++l-1;)a.splice(i,1),l>=i&&l--}),this},has:function(t){return t?ft.inArray(t,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return r=s=[],a=i="",this},disabled:function(){return!a},lock:function(){return r=!0,i||c.disable(),this},locked:function(){return!!r},fireWith:function(t,i){return r||(i=i||[],i=[t,i.slice?i.slice():i],s.push(i),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},ft.extend({Deferred:function(t){var e=[["resolve","done",ft.Callbacks("once memory"),"resolved"],["reject","fail",ft.Callbacks("once memory"),"rejected"],["notify","progress",ft.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ft.Deferred(function(i){ft.each(e,function(e,o){var a=ft.isFunction(t[e])&&t[e];r[o[1]](function(){var t=a&&a.apply(this,arguments);t&&ft.isFunction(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[o[0]+"With"](this===n?i.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ft.extend(t,n):n}},r={};return n.pipe=n.then,ft.each(e,function(t,o){var a=o[2],s=o[3];n[o[1]]=a.add,s&&a.add(function(){i=s},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?n:this,arguments),this},r[o[0]+"With"]=a.fireWith}),n.promise(r),t&&t.call(r,r),r},when:function(t){var e,i,n,r=0,o=rt.call(arguments),a=o.length,s=1!==a||t&&ft.isFunction(t.promise)?a:0,l=1===s?t:ft.Deferred(),u=function(t,i,n){return function(r){i[t]=this,n[t]=arguments.length>1?rt.call(arguments):r,n===e?l.notifyWith(i,n):--s||l.resolveWith(i,n)}};if(a>1)for(e=new Array(a),i=new Array(a),n=new Array(a);a>r;r++)o[r]&&ft.isFunction(o[r].promise)?o[r].promise().progress(u(r,i,e)).done(u(r,n,o)).fail(l.reject):--s;return s||l.resolveWith(n,o),l.promise()}});var At;ft.fn.ready=function(t){return ft.ready.promise().done(t),this},ft.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ft.readyWait++:ft.ready(!0)},ready:function(t){(!0===t?--ft.readyWait:ft.isReady)||(ft.isReady=!0,!0!==t&&--ft.readyWait>0||(At.resolveWith(nt,[ft]),ft.fn.triggerHandler&&(ft(nt).triggerHandler("ready"),ft(nt).off("ready"))))}}),ft.ready.promise=function(e){if(!At)if(At=ft.Deferred(),"complete"===nt.readyState||"loading"!==nt.readyState&&!nt.documentElement.doScroll)t.setTimeout(ft.ready);else if(nt.addEventListener)nt.addEventListener("DOMContentLoaded",s),t.addEventListener("load",s);else{nt.attachEvent("onreadystatechange",s),t.attachEvent("onload",s);var i=!1;try{i=null==t.frameElement&&nt.documentElement}catch(t){}i&&i.doScroll&&function e(){if(!ft.isReady){try{i.doScroll("left")}catch(i){return t.setTimeout(e,50)}a(),ft.ready()}}()}return At.promise(e)},ft.ready.promise();var kt;for(kt in ft(ht))break;ht.ownFirst="0"===kt,ht.inlineBlockNeedsLayout=!1,ft(function(){var t,e,i,n;(i=nt.getElementsByTagName("body")[0])&&i.style&&(e=nt.createElement("div"),n=nt.createElement("div"),n.style.cssText="position:static;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ht.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(i.style.zoom=1)),i.removeChild(n))}),function(){var t=nt.createElement("div");ht.deleteExpando=!0;try{delete t.test}catch(t){ht.deleteExpando=!1}t=null}();var Et=function(t){var e=ft.noData[(t.nodeName+" ").toLowerCase()],i=+t.nodeType||1;return(1===i||9===i)&&(!e||!0!==e&&t.getAttribute("classid")===e)},Ot=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Nt=/([A-Z])/g;ft.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?ft.cache[t[ft.expando]]:t[ft.expando])&&!u(t)},data:function(t,e,i){return c(t,e,i)},removeData:function(t,e){return h(t,e)},_data:function(t,e,i){return c(t,e,i,!0)},_removeData:function(t,e){return h(t,e,!0)}}),ft.fn.extend({data:function(t,e){var i,n,r,o=this[0],a=o&&o.attributesif(void 0===t){if(this.length&&(r=ft.data(o),1===o.nodeType&&!ft._data(o,"parsedAttrs"))){for(i=a.length;i--;)a[i]&&(n=a[i].name,0===n.indexOf("data-")&&(n=ft.camelCase(n.slice(5)),l(o,n,r[n])));ft._data(o,"parsedAttrs",!0)}return r}return"object"==typeof t?this.each(function(){ft.data(this,t)}):arguments.length>1?this.each(function(){ft.data(this,t,e)}):o?l(o,t,ft.data(o,t)):void 0},removeData:function(t){return this.each(function(){ft.removeData(this,t)})}}),ft.extend({queue:function(t,e,i){var n;return t?(e=(e||"fx")+"queue",n=ft._data(t,e),i&&(!n||ft.isArray(i)?n=ft._data(t,e,ft.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(t,e){e=e||"fx";var i=ft.queue(t,e),n=i.length,r=i.shift(),o=ft._queueHooks(t,e),a=function(){ft.dequeue(t,e)};"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete o.stop,r.call(t,a,o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return ft._data(t,i)||ft._data(t,i,{empty:ft.Callbacks("once memory").add(function(){ft._removeData(t,e+"queue"),ft._removeData(t,i)})})}}),ft.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.lengths;s++)e(t[s],i,a?n:n.call(t[s],s,e(t[s],i)));return r?t:u?e.call(t):l?e(t[0],i):o},Bt=/^(?:checkbox|radio)$/i,Ht=/<([\w:-]+)/,Vt=/^$|\/(?:java|ecma)script/i,Wt=/^\s+/,$t="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";!function(){var t=nt.createElement("div"),e=nt.createDocumentFragment(),i=nt.createElement("input");t.innerHTML="
a",ht.leadingWhitespace=3===t.firstChild.nodeType,ht.tbody=!t.getElementsByTagName("tbody").length,ht.htmlSerialize=!!t.getElementsByTagName("link").length,ht.html5Clone="<:nav>"!==nt.createElement("nav").cloneNode(!0).outerHTML,i.type="checkbox",i.checked=!0,e.appendChild(i),ht.appendChecked=i.checked,t.innerHTML="",ht.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,e.appendChild(t),i=nt.createElement("input"),i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),t.appendChild(i),ht.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,ht.noCloneEvent=!!t.addEventListener,t[ft.expando]=1,ht.attributes=!t.getAttribute(ft.expando)}();var jt={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:ht.htmlSerialize?[0,"",""]:[1,"X
","
"]};jt.optgroup=jt.option,jt.tbody=jt.tfoot=jt.colgroup=jt.caption=jt.thead,jt.th=jt.td;var Ut=/<|&#?\w+;/,Gt=/-1&&(p=f.split("."),f=p.shift(),p.sort()),a=f.indexOf(":")<0&&"on"+f,e=e[ft.expando]?e:new ft.Event(f,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:ft.makeArray(i,[e]),u=ft.event.special[f]||{},r||!u.trigger||!1!==u.trigger.apply(n,i))){if(!r&&!u.noBubble&&!ft.isWindow(n)){for(l=u.delegateType||f,Zt.test(l+f)||(s=s.parentNode);s;s=s.parentNode)d.push(s),c=s;c===(n.ownerDocument||nt)&&d.push(c.defaultView||c.parentWindow||t)}for(h=0;(s=d[h++])&&!e.isPropagationStopped();)e.type=h>1?l:u.bindType||f,o=(ft._data(s,"events")||{})[e.type]&&ft._data(s,"handle"),o&&o.apply(s,i),(o=a&&s[a])&&o.apply&&Et(s)&&(e.result=o.apply(s,i),!1===e.result&&e.preventDefault());if(e.type=f,!r&&!e.isDefaultPrevented()&&(!u._default||!1===u._default.apply(d.pop(),i))&&Et(n)&&a&&n[f]&&!ft.isWindow(n)){c=n[a],c&&(n[a]=null),ft.event.triggered=f;try{n[f]()}catch(t){}ft.event.triggered=void 0,c&&(n[a]=c)}return e.result}},dispatch:function(t){t=ft.event.fix(t);var e,i,n,r,o,a=[],s=rt.call(arguments),l=(ft._data(this,"events")||{})[t.type]||[],u=ft.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,t)){for(a=ft.event.handlers.call(this,t,l),e=0;(r=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,i=0;(o=r.handlers[i++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(n=((ft.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,r,o,a=[],s=e.delegateCount,l=t.target;if(s&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(n=[],i=0;s>i;i++)o=e[i],r=o.selector+" ",void 0===n[r]&&(n[r]=o.needsContext?ft(r,this).index(l)>-1:ft.find(r,this,null,[l]).length),n[r]&&n.push(o);n.length&&a.push({elem:l,handlers:n})}return s]","i"),te=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ee=/\s*$/g,oe=f(nt),ae=oe.appendChild(nt.createElement("div"));ft.extend({htmlPrefilter:function(t){return t.replace(te,"<$1>")},clone:function(t,e,i){var n,r,o,a,s,l=ft.contains(t.ownerDocument,t);if(ht.html5Clone||ft.isXMLDoc(t)||!Qt.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(ae.innerHTML=t.outerHTML,ae.removeChild(o=ae.firstChild)),!(ht.noCloneEvent&&ht.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ft.isXMLDoc(t)))for(n=p(o),s=p(t),a=0;null!=(r=s[a]);++a)n[a]&&M(r,n[a]);if(e)if(i)for(s=s||p(t),n=n||p(o),a=0;null!=(r=s[a]);a++)C(r,n[a]);else C(t,o);return n=p(o,"script"),n.length>0&&g(n,!l&&p(t,"script")),n=s=r=null,o},cleanData:function(t,e){for(var i,n,r,o,a=0,s=ft.expando,l=ft.cache,u=ht.attributes,c=ft.event.special;null!=(i=t[a]);a++)if((e||Et(i))&&(r=i[s],o=r&&l[r])){if(o.events)for(n in o.events)c[n]?ft.event.remove(i,n):ft.removeEvent(i,n,o.handle);l[r]&&(delete l[r],u||void 0===i.removeAttribute?i[s]=void 0:i.removeAttribute(s),it.push(r))}}}),ft.fn.extend({domManip:D,detach:function(t){return I(this,t,!0)},remove:function(t){return I(this,t)},text:function(t){return Ft(this,function(t){return void 0===t?ft.text(this):this.empty().append((this[0]&&this[0].ownerDocument||nt).createTextNode(t))},null,t,arguments.length)},append:function(){return D(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){w(this,t).appendChild(t)}})},prepend:function(){return D(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=w(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return D(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return D(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&ft.cleanData(p(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&ft.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ft.clone(this,t,e)})},html:function(t){return Ft(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(Jt,""):void 0;if("string"==typeof t&&!ee.test(t)&&(ht.htmlSerialize||!Qt.test(t))&&(ht.leadingWhitespace||!Wt.test(t))&&!jt[(Ht.exec(t)||["",""])[1].toLowerCase()]){t=ft.htmlPrefilter(t);try{for(;n>i;i++)e=this[i]||{},1===e.nodeType&&(ft.cleanData(p(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return D(this,arguments,function(e){var i=this.parentNode;ft.inArray(this,t)<0&&(ft.cleanData(p(this)),i&&i.replaceChild(e,this))},t)}}),ft.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ft.fn[t]=function(t){for(var i,n=0,r=[],o=ft(t),a=o.length-1;a>=n;n++)i=n===a?this:this.clone(!0),ft(o[n])[e](i),at.apply(r,i.get());return this.pushStack(r)}});var se,le={HTML:"block",BODY:"block"},ue=/^margin/,ce=new RegExp("^("+Lt+")(?!px)[a-z%]+$","i"),he=function(t,e,i,n){var r,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];r=i.apply(t,n||[]);for(o in e)t.style[o]=a[o];return r},de=nt.documentElement;!function(){function e(){var e,c,h=nt.documentElement;h.appendChild(l),u.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i=r=s=!1,n=a=!0,t.getComputedStyle&&(c=t.getComputedStyle(u),i="1%"!==(c||{}).top,s="2px"===(c||{}).marginLeft,r="4px"===(c||{width:"4px"}).width,u.style.marginRight="50%",n="4px"===(c||{marginRight:"4px"}).marginRight,e=u.appendChild(nt.createElement("div")),e.style.cssText=u.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",u.style.width="1px",a=!parseFloat((t.getComputedStyle(e)||{}).marginRight),u.removeChild(e)),u.style.display="none",o=0===u.getClientRects().length,o&&(u.style.display="",u.innerHTML="
t
",u.childNodes[0].style.borderCollapse="separate",e=u.getElementsByTagName("td"),e[0].style.cssText="margin:0;border:0;padding:0;display:none",(o=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",o=0===e[0].offsetHeight)),h.removeChild(l)}var i,n,r,o,a,s,l=nt.createElement("div"),u=nt.createElement("div");u.style&&(u.style.cssText="float:left;opacity:.5",ht.opacity="0.5"===u.style.opacity,ht.cssFloat=!!u.style.cssFloat,u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",ht.clearCloneStyle="content-box"===u.style.backgroundClip,l=nt.createElement("div"),l.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",u.innerHTML="",l.appendChild(u),ht.boxSizing=""===u.style.boxSizing||""===u.style.MozBoxSizing||""===u.style.WebkitBoxSizing,ft.extend(ht,{reliableHiddenOffsets:function(){return null==i&&e(),o},boxSizingReliable:function(){return null==i&&e(),r},pixelMarginRight:function(){return null==i&&e(),n},pixelPosition:function(){return null==i&&e(),i},reliableMarginRight:function(){return null==i&&e(),a},reliableMarginLeft:function(){return null==i&&e(),s}}))}();var fe,pe,ge=/^(top|right|bottom|left)$/;t.getComputedStyle?(fe=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)},pe=function(t,e,i){var n,r,o,a,s=t.style;return i=i||fe(t),a=i?i.getPropertyValue(e)||i[e]:void 0,""!==a&&void 0!==a||ft.contains(t.ownerDocument,t)||(a=ft.style(t,e)),i&&!ht.pixelMarginRight()&&ce.test(a)&&ue.test(e)&&(n=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=i.width,s.width=n,s.minWidth=r,s.maxWidth=o),void 0===a?a:a+""}):de.currentStyle&&(fe=function(t){return t.currentStyle},pe=function(t,e,i){var n,r,o,a,s=t.style;return i=i||fe(t),a=i?i[e]:void 0,null==a&&s&&s[e]&&(a=s[e]),ce.test(a)&&!ge.test(e)&&(n=s.left,r=t.runtimeStyle,o=r&&r.left,o&&(r.left=t.currentStyle.left),s.left="fontSize"===e?"1em":a,a=s.pixelLeft+"px",s.left=n,o&&(r.left=o)),void 0===a?a:a+""||"auto"});var me=/alpha\([^)]*\)/i,ve=/opacity\s*=\s*([^)]*)/i,ye=/^(none|table(?!-c[ea]).+)/,xe=new RegExp("^("+Lt+")(.*)$","i"),_e={position:"absolute",visibility:"hidden",display:"block"},be={letterSpacing:"0",fontWeight:"400"},we=["Webkit","O","Moz","ms"],Se=nt.createElement("div").style;ft.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=pe(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:ht.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=ft.camelCase(e),l=t.style;if(e=ft.cssProps[s]||(ft.cssProps[s]=O(s)||s),a=ft.cssHooks[e]||ft.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(r=a.get(t,!1,n))?r:l[e];if(o=typeof i,"string"===o&&(r=Pt.exec(i))&&r[1]&&(i=d(t,e,r),o="number"),null!=i&&i===i&&("number"===o&&(i+=r&&r[3]||(ft.cssNumber[s]?"":"px")),ht.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),!(a&&"set"in a&&void 0===(i=a.set(t,i,n)))))try{l[e]=i}catch(t){}}},css:function(t,e,i,n){var r,o,a,s=ft.camelCase(e);return e=ft.cssProps[s]||(ft.cssProps[s]=O(s)||s),a=ft.cssHooks[e]||ft.cssHooks[s],a&&"get"in a&&(o=a.get(t,!0,i)),void 0===o&&(o=pe(t,e,n)),"normal"===o&&e in be&&(o=be[e]),""===i||i?(r=parseFloat(o),!0===i||isFinite(r)?r||0:o):o}}),ft.each(["height","width"],function(t,e){ft.cssHooks[e]={get:function(t,i,n){return i?ye.test(ft.css(t,"display"))&&0===t.offsetWidth?he(t,_e,function(){return R(t,e,n)}):R(t,e,n):void 0},set:function(t,i,n){var r=n&&fe(t);return L(t,i,n?P(t,e,n,ht.boxSizing&&"border-box"===ft.css(t,"boxSizing",!1,r),r):0)}}}),ht.opacity||(ft.cssHooks.opacity={get:function(t,e){return ve.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var i=t.style,n=t.currentStyle,r=ft.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=n&&n.filter||i.filter||"";i.zoom=1,(e>=1||""===e)&&""===ft.trim(o.replace(me,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===e||n&&!n.filter)||(i.filter=me.test(o)?o.replace(me,r):o+" "+r)}}),ft.cssHooks.marginRight=E(ht.reliableMarginRight,function(t,e){return e?he(t,{display:"inline-block"},pe,[t,"marginRight"]):void 0}),ft.cssHooks.marginLeft=E(ht.reliableMarginLeft,function(t,e){return e?(parseFloat(pe(t,"marginLeft"))||(ft.contains(t.ownerDocument,t)?t.getBoundingClientRect().left-he(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}):0))+"px":void 0}),ft.each({margin:"",padding:"",border:"Width"},function(t,e){ft.cssHooks[t+e]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];4>n;n++)r[t+Rt[n]+e]=o[n]||o[n-2]||o[0];return r}},ue.test(t)||(ft.cssHooks[t+e].set=L)}),ft.fn.extend({css:function(t,e){return Ft(this,function(t,e,i){var n,r,o={},a=0;if(ft.isArray(e)){for(n=fe(t),r=e.length;r>a;a++)o[e[a]]=ft.css(t,e[a],!1,n);return o}return void 0!==i?ft.style(t,e,i):ft.css(t,e)},t,e,arguments.length>1)},show:function(){return N(this,!0)},hide:function(){return N(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){zt(this)?ft(this).show():ft(this).hide()})}}),ft.Tween=z,z.prototype={constructor:z,init:function(t,e,i,n,r,o){this.elem=t,this.prop=i,this.easing=r||ft.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(ft.cssNumber[i]?"":"px")},cur:function(){var t=z.propHooks[this.prop];return t&&t.get?t.get(this):z.propHooks._default.get(this)},run:function(t){var e,i=z.propHooks[this.prop];return this.options.duration?this.pos=e=ft.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):z.propHooks._default.set(this),this}},z.prototype.init.prototype=z.prototype,z.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=ft.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){ft.fx.step[t.prop]?ft.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ft.cssProps[t.prop]]&&!ft.cssHooks[t.prop]?t.elem[t.prop]=t.now:ft.style(t.elem,t.prop,t.now+t.unit)}}},z.propHooks.scrollTop=z.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ft.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ft.fx=z.prototype.init,ft.fx.step={};var Te,Ce,Me=/^(?:toggle|show|hide)$/,De=/queueHooks$/;ft.Animation=ft.extend($,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return d(i.elem,t,Pt.exec(e),i),i}]},tweener:function(t,e){ft.isFunction(t)?(e=t,t=["*"]):t=t.match(It);for(var i,n=0,r=t.length;r>n;n++)i=t[n],$.tweeners[i]=$.tweeners[i]||[],$.tweeners[i].unshift(e)},prefilters:[V],prefilter:function(t,e){e?$.prefilters.unshift(t):$.prefilters.push(t)}}),ft.speed=function(t,e,i){var n=t&&"object"==typeof t?ft.extend({},t):{complete:i||!i&&e||ft.isFunction(t)&&t,duration:t,easing:i&&e||e&&!ft.isFunction(e)&&e};return n.duration=ft.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in ft.fx.speeds?ft.fx.speeds[n.duration]:ft.fx.speeds._default,null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){ft.isFunction(n.old)&&n.old.call(this),n.queue&&ft.dequeue(this,n.queue)},n},ft.fn.extend({fadeTo:function(t,e,i,n){return this.filter(zt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=ft.isEmptyObject(t),o=ft.speed(e,i,n),a=function(){var e=$(this,ft.extend({},t),o);(r||ft._data(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=ft.timers,a=ft._data(this);if(r)a[r]&&a[r].stop&&n(a[r]);else for(r in a)a[r]&&a[r].stop&&De.test(r)&&n(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(i),e=!1,o.splice(r,1));!e&&i||ft.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,i=ft._data(this),n=i[t+"queue"],r=i[t+"queueHooks"],o=ft.timers,a=n?n.length:0;for(i.finish=!0,ft.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;a>e;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),ft.each(["toggle","show","hide"],function(t,e){var i=ft.fn[e];ft.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(B(e,!0),t,n,r)}}),ft.each({slideDown:B("show"),slideUp:B("hide"),slideToggle:B("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ft.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),ft.timers=[],ft.fx.tick=function(){var t,e=ft.timers,i=0;for(Te=ft.now();i
a",t=i.getElementsByTagName("a")[0],e.setAttribute("type","checkbox"),i.appendChild(e),t=i.getElementsByTagName("a")[0],t.style.cssText="top:1px",ht.getSetAttribute="t"!==i.className,ht.style=/top/.test(t.getAttribute("style")),ht.hrefNormalized="/a"===t.getAttribute("href"),ht.checkOn=!!e.value,ht.optSelected=r.selected,ht.enctype=!!nt.createElement("form").enctype,n.disabled=!0,ht.optDisabled=!r.disabled,e=nt.createElement("input"),e.setAttribute("value",""),ht.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),ht.radioValue="t"===e.value}();var Ie=/\r/g,Ae=/[\x20\t\r\n\f]+/g;ft.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=ft.isFunction(t),this.each(function(i){var r;1===this.nodeType&&(r=n?t.call(this,i,ft(this).val()):t,null==r?r="":"number"==typeof r?r+="":ft.isArray(r)&&(r=ft.map(r,function(t){return null==t?"":t+""})),(e=ft.valHooks[this.type]||ft.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=ft.valHooks[r.type]||ft.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:(i=r.value,"string"==typeof i?i.replace(Ie,""):null==i?"":i)):void 0}}),ft.extend({valHooks:{option:{get:function(t){var e=ft.find.attr(t,"value");return null!=e?e:ft.trim(ft.text(t)).replace(Ae," ")}},select:{get:function(t){for(var e,i,n=t.options,r=t.selectedIndex,o="select-one"===t.type||0>r,a=o?null:[],s=o?r+1:n.length,l=0>r?s:o?r:0;s>l;l++)if(i=n[l],(i.selected||l===r)&&(ht.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!ft.nodeName(i.parentNode,"optgroup"))){if(e=ft(i).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var i,n,r=t.options,o=ft.makeArray(e),a=r.length;a--;)if(n=r[a],ft.inArray(ft.valHooks.option.get(n),o)>-1)try{n.selected=i=!0}catch(t){n.scrollHeight}else n.selected=!1;return i||(t.selectedIndex=-1),r}}}}),ft.each(["radio","checkbox"],function(){ft.valHooks[this]={set:function(t,e){return ft.isArray(e)?t.checked=ft.inArray(ft(t).val(),e)>-1:void 0}},ht.checkOn||(ft.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ke,Ee,Oe=ft.expr.attrHandle,Ne=/^(?:checked|selected)$/i,Le=ht.getSetAttribute,Pe=ht.input;ft.fn.extend({attr:function(t,e){return Ft(this,ft.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ft.removeAttr(this,t)})}}),ft.extend({attr:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?ft.prop(t,e,i):(1===o&&ft.isXMLDoc(t)||(e=e.toLowerCase(),r=ft.attrHooks[e]||(ft.expr.match.bool.test(e)?Ee:ke)),void 0!==i?null===i?void ft.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:(n=ft.find.attr(t,e),null==n?void 0:n))},attrHooks:{type:{set:function(t,e){if(!ht.radioValue&&"radio"===e&&ft.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n,r=0,o=e&&e.match(It);if(o&&1===t.nodeType)for(;i=o[r++];)n=ft.propFix[i]||i,ft.expr.match.bool.test(i)?Pe&&Le||!Ne.test(i)?t[n]=!1:t[ft.camelCase("default-"+i)]=t[n]=!1:ft.attr(t,i,""),t.removeAttribute(Le?i:n)}}),Ee={set:function(t,e,i){return!1===e?ft.removeAttr(t,i):Pe&&Le||!Ne.test(i)?t.setAttribute(!Le&&ft.propFix[i]||i,i):t[ft.camelCase("default-"+i)]=t[i]=!0,i}},ft.each(ft.expr.match.bool.source.match(/\w+/g),function(t,e){var i=Oe[e]||ft.find.attr;Pe&&Le||!Ne.test(e)?Oe[e]=function(t,e,n){var r,o;return n||(o=Oe[e],Oe[e]=r,r=null!=i(t,e,n)?e.toLowerCase():null,Oe[e]=o),r}:Oe[e]=function(t,e,i){return i?void 0:t[ft.camelCase("default-"+e)]?e.toLowerCase():null}}),Pe&&Le||(ft.attrHooks.value={set:function(t,e,i){return ft.nodeName(t,"input")?void(t.defaultValue=e):ke&&ke.set(t,e,i)}}),Le||(ke={set:function(t,e,i){var n=t.getAttributeNode(i);return n||t.setAttributeNode(n=t.ownerDocument.createAttribute(i)),n.value=e+="","value"===i||e===t.getAttribute(i)?e:void 0}},Oe.id=Oe.name=Oe.coords=function(t,e,i){var n;return i?void 0:(n=t.getAttributeNode(e))&&""!==n.value?n.value:null},ft.valHooks.button={get:function(t,e){var i=t.getAttributeNode(e);return i&&i.specified?i.value:void 0},set:ke.set},ft.attrHooks.contenteditable={set:function(t,e,i){ke.set(t,""!==e&&e,i)}},ft.each(["width","height"],function(t,e){ft.attrHooks[e]={set:function(t,i){return""===i?(t.setAttribute(e,"auto"),i):void 0}}})),ht.style||(ft.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var Re=/^(?:input|select|textarea|button|object)$/i,ze=/^(?:a|area)$/i;ft.fn.extend({prop:function(t,e){return Ft(this,ft.prop,t,e,arguments.length>1)},removeProp:function(t){return t=ft.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(t){}})}}),ft.extend({prop:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ft.isXMLDoc(t)||(e=ft.propFix[e]||e,r=ft.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=ft.find.attr(t,"tabindex");return e?parseInt(e,10):Re.test(t.nodeName)||ze.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ht.hrefNormalized||ft.each(["href","src"],function(t,e){ft.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),ht.optSelected||(ft.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),ft.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ft.propFix[this.toLowerCase()]=this}),ht.enctype||(ft.propFix.enctype="encoding");var Fe=/[\t\r\n\f]/g;ft.fn.extend({addClass:function(t){var e,i,n,r,o,a,s,l=0;if(ft.isFunction(t))return this.each(function(e){ft(this).addClass(t.call(this,e,j(this)))});if("string"==typeof t&&t)for(e=t.match(It)||[];i=this[l++];)if(r=j(i),n=1===i.nodeType&&(" "+r+" ").replace(Fe," ")){for(a=0;o=e[a++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");s=ft.trim(n),r!==s&&ft.attr(i,"class",s)}return this},removeClass:function(t){var e,i,n,r,o,a,s,l=0;if(ft.isFunction(t))return this.each(function(e){ft(this).removeClass(t.call(this,e,j(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(It)||[];i=this[l++];)if(r=j(i),n=1===i.nodeType&&(" "+r+" ").replace(Fe," ")){for(a=0;o=e[a++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");s=ft.trim(n),r!==s&&ft.attr(i,"class",s)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):ft.isFunction(t)?this.each(function(i){ft(this).toggleClass(t.call(this,i,j(this),e),e)}):this.each(function(){var e,n,r,o;if("string"===i)for(n=0,r=ft(this),o=t.match(It)||[];e=o[n++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==i||(e=j(this),e&&ft._data(this,"__className__",e),ft.attr(this,"class",e||!1===t?"":ft._data(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+j(i)+" ").replace(Fe," ").indexOf(e)>-1)return!0;return!1}}),ft.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){ft.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),ft.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}});var Be=t.location,He=ft.now(),Ve=/\?/,We=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ft.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var i,n=null,r=ft.trim(e+"");return r&&!ft.trim(r.replace(We,function(t,e,r,o){return i&&e&&(n=0),0===n?t:(i=r||e,n+=!o-!r,"")}))?Function("return "+r)():ft.error("Invalid JSON: "+e)},ft.parseXML=function(e){var i,n;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(n=new t.DOMParser,i=n.parseFromString(e,"text/xml")):(i=new t.ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(e))}catch(t){i=void 0}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||ft.error("Invalid XML: "+e),i};var $e=/#.*$/,je=/([?&])_=[^&]*/,Ue=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ge=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qe=/^(?:GET|HEAD)$/,Ye=/^\/\//,Xe=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ze={},Ke={},Je="*/".concat("*"),Qe=Be.href,ti=Xe.exec(Qe.toLowerCase())||[];ft.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Qe,type:"GET",isLocal:Ge.test(ti[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Je,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ft.parseJSON,"text xml":ft.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?q(q(t,ft.ajaxSettings),e):q(ft.ajaxSettings,t)},ajaxPrefilter:U(Ze),ajaxTransport:U(Ke),ajax:function(e,i){function n(e,i,n,r){var o,h,y,x,b,S=i;2!==_&&(_=2,l&&t.clearTimeout(l),c=void 0,s=r||"",w.readyState=e>0?4:0,o=e>=200&&300>e||304===e,n&&(x=Y(d,w,n)),x=X(d,x,w,o),o?(d.ifModified&&(b=w.getResponseHeader("Last-Modified"),b&&(ft.lastModified[a]=b),(b=w.getResponseHeader("etag"))&&(ft.etag[a]=b)),204===e||"HEAD"===d.type?S="nocontent":304===e?S="notmodified":(S=x.state,h=x.data,y=x.error,o=!y)):(y=S,!e&&S||(S="error",0>e&&(e=0))),w.status=e,w.statusText=(i||S)+"",o?g.resolveWith(f,[h,S,w]):g.rejectWith(f,[w,S,y]),w.statusCode(v),v=void 0,u&&p.trigger(o?"ajaxSuccess":"ajaxError",[w,d,o?h:y]),m.fireWith(f,[w,S]),u&&(p.trigger("ajaxComplete",[w,d]),--ft.active||ft.event.trigger("ajaxStop")))}"object"==typeof e&&(i=e,e=void 0),i=i||{};var r,o,a,s,l,u,c,h,d=ft.ajaxSetup({},i),f=d.context||d,p=d.context&&(f.nodeType||f.jquery)?ft(f):ft.event,g=ft.Deferred(),m=ft.Callbacks("once memory"),v=d.statusCode||{},y={},x={},_=0,b="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===_){if(!h)for(h={};e=Ue.exec(s);)h[e[1].toLowerCase()]=e[2];e=h[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===_?s:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return _||(t=x[i]=x[i]||t,y[t]=e),this},overrideMimeType:function(t){return _||(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>_)for(e in t)v[e]=[v[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||b;return c&&c.abort(e),n(0,e),this}};if(g.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,d.url=((e||d.url||Qe)+"").replace($e,"").replace(Ye,ti[1]+"//"),d.type=i.method||i.type||d.method||d.type,d.dataTypes=ft.trim(d.dataType||"*").toLowerCase().match(It)||[""],null==d.crossDomain&&(r=Xe.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]===ti[1]&&r[2]===ti[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(ti[3]||("http:"===ti[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=ft.param(d.data,d.traditional)),G(Ze,d,i,w),2===_)return w;u=ft.event&&d.global,u&&0==ft.active++&&ft.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!qe.test(d.type),a=d.url,d.hasContent||(d.data&&(a=d.url+=(Ve.test(a)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=je.test(a)?a.replace(je,"$1_="+He++):a+(Ve.test(a)?"&":"?")+"_="+He++)),d.ifModified&&(ft.lastModified[a]&&w.setRequestHeader("If-Modified-Since",ft.lastModified[a]),ft.etag[a]&&w.setRequestHeader("If-None-Match",ft.etag[a])),(d.data&&d.hasContent&&!1!==d.contentType||i.contentType)&&w.setRequestHeader("Content-Type",d.contentType),w.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Je+"; q=0.01":""):d.accepts["*"]);for(o in d.headers)w.setRequestHeader(o,d.headers[o]);if(d.beforeSend&&(!1===d.beforeSend.call(f,w,d)||2===_))return w.abort();b="abort";for(o in{success:1,error:1,complete:1})w[o](d[o]);if(c=G(Ke,d,i,w)){if(w.readyState=1,u&&p.trigger("ajaxSend",[w,d]),2===_)return w;d.async&&d.timeout>0&&(l=t.setTimeout(function(){w.abort("timeout")},d.timeout));try{_=1,c.send(y,n)}catch(t){if(!(2>_))throw t;n(-1,t)}}else n(-1,"No Transport");return w},getJSON:function(t,e,i){return ft.get(t,e,i,"json")},getScript:function(t,e){return ft.get(t,void 0,e,"script")}}),ft.each(["get","post"],function(t,e){ft[e]=function(t,i,n,r){return ft.isFunction(i)&&(r=r||n,n=i,i=void 0),ft.ajax(ft.extend({url:t,type:e,dataType:r,data:i,success:n},ft.isPlainObject(t)&&t))}}),ft._evalUrl=function(t){return ft.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},ft.fn.extend({wrapAll:function(t){if(ft.isFunction(t))return this.each(function(e){ft(this).wrapAll(t.call(this,e))});if(this[0]){var e=ft(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return ft.isFunction(t)?this.each(function(e){ft(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ft(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=ft.isFunction(t);return this.each(function(i){ft(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){ft.nodeName(this,"body")||ft(this).replaceWith(this.childNodes)}).end()}}), ft.expr.filters.hidden=function(t){return ht.reliableHiddenOffsets()?t.offsetWidth<=0&&t.offsetHeight<=0&&!t.getClientRects().length:K(t)},ft.expr.filters.visible=function(t){return!ft.expr.filters.hidden(t)};var ei=/%20/g,ii=/\[\]$/,ni=/\r?\n/g,ri=/^(?:submit|button|image|reset|file)$/i,oi=/^(?:input|select|textarea|keygen)/i;ft.param=function(t,e){var i,n=[],r=function(t,e){e=ft.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ft.ajaxSettings&&ft.ajaxSettings.traditional),ft.isArray(t)||t.jquery&&!ft.isPlainObject(t))ft.each(t,function(){r(this.name,this.value)});else for(i in t)J(i,t[i],e,r);return n.join("&").replace(ei,"+")},ft.fn.extend({serialize:function(){return ft.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ft.prop(this,"elements");return t?ft.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ft(this).is(":disabled")&&oi.test(this.nodeName)&&!ri.test(t)&&(this.checked||!Bt.test(t))}).map(function(t,e){var i=ft(this).val();return null==i?null:ft.isArray(i)?ft.map(i,function(t){return{name:e.name,value:t.replace(ni,"\r\n")}}):{name:e.name,value:i.replace(ni,"\r\n")}}).get()}}),ft.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return this.isLocal?tt():nt.documentMode>8?Q():/^(get|post|head|put|delete|options)$/i.test(this.type)&&Q()||tt()}:Q;var ai=0,si={},li=ft.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in si)si[t](void 0,!0)}),ht.cors=!!li&&"withCredentials"in li,(li=ht.ajax=!!li)&&ft.ajaxTransport(function(e){if(!e.crossDomain||ht.cors){var i;return{send:function(n,r){var o,a=e.xhr(),s=++ai;if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(o in n)void 0!==n[o]&&a.setRequestHeader(o,n[o]+"");a.send(e.hasContent&&e.data||null),i=function(t,n){var o,l,u;if(i&&(n||4===a.readyState))if(delete si[s],i=void 0,a.onreadystatechange=ft.noop,n)4!==a.readyState&&a.abort();else{u={},o=a.status,"string"==typeof a.responseText&&(u.text=a.responseText);try{l=a.statusText}catch(t){l=""}o||!e.isLocal||e.crossDomain?1223===o&&(o=204):o=u.text?200:404}u&&r(o,l,u,a.getAllResponseHeaders())},e.async?4===a.readyState?t.setTimeout(i):a.onreadystatechange=si[s]=i:i()},abort:function(){i&&i(void 0,!0)}}}}),ft.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return ft.globalEval(t),t}}}),ft.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),ft.ajaxTransport("script",function(t){if(t.crossDomain){var e,i=nt.head||ft("head")[0]||nt.documentElement;return{send:function(n,r){e=nt.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,i){(i||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,i||r(200,"success"))},i.insertBefore(e,i.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var ui=[],ci=/(=)\?(?=&|$)|\?\?/;ft.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ui.pop()||ft.expando+"_"+He++;return this[t]=!0,t}}),ft.ajaxPrefilter("json jsonp",function(e,i,n){var r,o,a,s=!1!==e.jsonp&&(ci.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ci.test(e.data)&&"data");return s||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=ft.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(ci,"$1"+r):!1!==e.jsonp&&(e.url+=(Ve.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||ft.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){a=arguments},n.always(function(){void 0===o?ft(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=i.jsonpCallback,ui.push(r)),a&&ft.isFunction(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),ft.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||nt;var n=wt.exec(t),r=!i&&[];return n?[e.createElement(n[1])]:(n=v([t],e,r),r&&r.length&&ft(r).remove(),ft.merge([],n.childNodes))};var hi=ft.fn.load;ft.fn.load=function(t,e,i){if("string"!=typeof t&&hi)return hi.apply(this,arguments);var n,r,o,a=this,s=t.indexOf(" ");return s>-1&&(n=ft.trim(t.slice(s,t.length)),t=t.slice(0,s)),ft.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&ft.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(n?ft("
").append(ft.parseHTML(t)).find(n):t)}).always(i&&function(t,e){a.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},ft.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ft.fn[e]=function(t){return this.on(e,t)}}),ft.expr.filters.animated=function(t){return ft.grep(ft.timers,function(e){return t===e.elem}).length},ft.offset={setOffset:function(t,e,i){var n,r,o,a,s,l,u,c=ft.css(t,"position"),h=ft(t),d={};"static"===c&&(t.style.position="relative"),s=h.offset(),o=ft.css(t,"top"),l=ft.css(t,"left"),u=("absolute"===c||"fixed"===c)&&ft.inArray("auto",[o,l])>-1,u?(n=h.position(),a=n.top,r=n.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),ft.isFunction(e)&&(e=e.call(t,i,ft.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+r),"using"in e?e.using.call(t,d):h.css(d)}},ft.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ft.offset.setOffset(this,t,e)});var e,i,n={top:0,left:0},r=this[0],o=r&&r.ownerDocumentreturn o?(e=o.documentElement,ft.contains(e,r)?(void 0!==r.getBoundingClientRect&&(n=r.getBoundingClientRect()),i=et(o),{top:n.top+(i.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(i.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var t,e,i={top:0,left:0},n=this[0];return"fixed"===ft.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ft.nodeName(t[0],"html")||(i=t.offset()),i.top+=ft.css(t[0],"borderTopWidth",!0),i.left+=ft.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-ft.css(n,"marginTop",!0),left:e.left-i.left-ft.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&!ft.nodeName(t,"html")&&"static"===ft.css(t,"position");)t=t.offsetParent;return t||de})}}),ft.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i=/Y/.test(e);ft.fn[t]=function(n){return Ft(this,function(t,n,r){var o=et(t);return void 0===r?o?e in o?o[e]:o.document.documentElement[n]:t[n]:void(o?o.scrollTo(i?ft(o).scrollLeft():r,i?r:ft(o).scrollTop()):t[n]=r)},t,n,arguments.length,null)}}),ft.each(["top","left"],function(t,e){ft.cssHooks[e]=E(ht.pixelPosition,function(t,i){return i?(i=pe(t,e),ce.test(i)?ft(t).position()[e]+"px":i):void 0})}),ft.each({Height:"height",Width:"width"},function(t,e){ft.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){ft.fn[n]=function(n,r){var o=arguments.length&&(i||"boolean"!=typeof n),a=i||(!0===n||!0===r?"margin":"border");return Ft(this,function(e,i,n){var r;return ft.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===n?ft.css(e,i,a):ft.style(e,i,n,a)},e,o?n:void 0,o,null)}})}),ft.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),ft.fn.size=function(){return this.length},ft.fn.andSelf=ft.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ft});var di=t.jQuery,fi=t.$;return ft.noConflict=function(e){return t.$===ft&&(t.$=fi),e&&t.jQuery===ft&&(t.jQuery=di),ft},e||(t.jQuery=t.$=ft),ft}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",function(){i=!0});var r=function(){i||t(n).trigger(t.support.transition.end)};return setTimeout(r,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.alert");r||i.data("bs.alert",r=new n(this)),"string"==typeof e&&r[e].call(i)})}var i='[data-dismiss="alert"]',n=function(e){t(e).on("click",i,this.close)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function i(){a.detach().trigger("closed.bs.alert").remove()}var r=t(this),o=r.attr("data-target");o||(o=r.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var a=t("#"===o?[]:o);e&&e.preventDefault(),a.length||(a=r.closest(".alert")),a.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var r=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=r,this},t(document).on("click.bs.alert.data-api",i,n.prototype.close)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),r=n.data("bs.button"),o="object"==typeof e&&er||n.data("bs.button",r=new i(this,o)),"toggle"==e?r.toggle():e&&r.setState(e)})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="3.3.7",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",n=this.$element,r=n.is("input")?"val":"html",o=n.data();e+="Text",null==o.resetText&&n.data("resetText",n[r]()),setTimeout(t.proxy(function(){n[r](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i).prop(i,!1))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var n=t(i.target).closest(".btn");e.call(n,"toggle"),t(i.target).is('input[type="radio"], input[type="checkbox"]')||(i.preventDefault(),n.is("input,button")?n.trigger("focus"):n.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),r=n.data("bs.carousel"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e),a="string"==typeof e?e:o.slide;r||n.data("bs.carousel",r=new i(this,o)),"number"==typeof e?r.to(e):a?r[a]():o.interval&&r.pause().cycle()})}var i=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.3.7",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);if(("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap)return e;var n="prev"==t?-1:1,r=(i+n)%this.$items.length;return this.$items.eq(r)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){if(!this.sliding)return this.slide("next")},i.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},i.prototype.slide=function(e,n){var r=this.$element.find(".item.active"),o=n||this.getItemForDirection(e,r),a=this.interval,s="next"==e?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var u=o[0],c=t.Event("slide.bs.carousel",{relatedTarget:u,direction:s});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=t(this.$indicators.children()[this.getItemIndex(o)]);h&&h.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:u,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,r.addClass(s),o.addClass(s),r.one("bsTransitionEnd",function(){o.removeClass([e,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(d)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this};var r=function(i){var n,r=t(this),o=t(r.attr("data-target")||(n=r.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var a=t.extend({},o.data(),r.data()),s=r.attr("data-slide-to");s&&(a.interval=!1),e.call(o,a),s&&o.data("bs.carousel").to(s),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),function(t){"use strict";function e(e){var i,n=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(n)}function i(e){return this.each(function(){var i=t(this),r=i.data("bs.collapse"),o=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);!r&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),r||i.data("bs.collapse",r=new n(this,o)),"string"==typeof e&&r[e]()})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.3.7",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(e=r.data("bs.collapse"))&&e.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(i.call(r,"hide"),e||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[a](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(n.TRANSITION_DURATION):r.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,n){var r=t(n);this.addAriaAndCollapsedClass(e(r),r)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var r=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var r=t(this);r.attr("data-target")||n.preventDefault();var o=e(r),a=o.data("bs.collapse"),s=a?"toggle":r.data();i.call(o,s)})}(jQuery),function(t){"use strict";function e(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}function i(i){i&&3===i.which||(t(r).remove(),t(o).each(function(){var n=t(this),r=e(n),o={relatedTarget:this};r.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(r[0],i.target)||(r.trigger(i=t.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(n.attr("aria-expanded","false"),r.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}function n(e){return this.each(function(){var i=t(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new a(this)),"string"==typeof e&&n[e].call(i)})}var r=".dropdown-backdrop",o='[data-toggle="dropdown"]',a=function(e){t(e).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.7",a.prototype.toggle=function(n){var r=t(this);if(!r.is(".disabled, :disabled")){var o=e(r),a=o.hasClass("open");if(i(),!a){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",i);var s={relatedTarget:this};if(o.trigger(n=t.Event("show.bs.dropdown",s)),n.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",s))}return!1}},a.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var n=t(this);if(i.preventDefault(),i.stopPropagation(),!n.is(".disabled, :disabled")){var r=e(n),a=r.hasClass("open");if(!a&&27!=i.which||a&&27==i.which)return 27==i.which&&r.find(o).trigger("focus"),n.trigger("click");var s=r.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(i.target);38==i.which&&l>0&&l--,40==i.which&&ldocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,n){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var a=r[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},i.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue())return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var r=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(s);u&&(s=s.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this), this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),h=o[0].offsetWidth,d=o[0].offsetHeight;if(u){var f=s,p=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+d>p.bottom?"top":"top"==s&&c.top-dp.width?"left":"left"==s&&c.left-ha.top+a.height&&(r.top=a.top+a.height-l)}else{var u=e.left-o,c=e.left+o+i;ua.right&&(r.left=a.left+a.width-c)}return r},i.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},i.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},i.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var n=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),r=n.data("bs.popover"),o="object"==typeof e&&e!r&&/destroy|hide/.test(e)||(r||n.data("bs.popover",r=new i(this,o)),"string"==typeof e&&r[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.3.7",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict";function e(i,n){this.$body=t(document.body),this.$scrollElement=t(t(i).is(document.body)?window:i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var n=t(this),r=n.data("bs.scrollspy"),o="object"==typeof i&&ir||n.data("bs.scrollspy",r=new e(this,o)),"string"==typeof i&&r[i]()})}e.VERSION="3.3.7",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),r=e.data("target")||e.attr("href"),o=/^#./.test(r)&&t(r);return o&&o.length&&o.is(":visible")&&[[o[i]().top+n,r]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),r=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e=r[t]&&(void 0===r[t+1]||e .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var a=n.find("> .active"),s=r&&t.support.transition&&(a.length&&a.hasClass("fade")||!!n.find("> .fade").length);a.length&&s?a.one("bsTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o(),a.removeClass("in")};var n=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var r=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),r=n.data("bs.affix"),o="object"==typeof e&&er||n.data("bs.affix",r=new i(this,o)),"string"==typeof e&&r[e]()})}var i=function(e,n){this.options=t.extend({},i.DEFAULTS,n),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.7",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,n){var r=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=i&&"top"==this.affixed)return r=t-n&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),n=this.options.offset,r=n.top,o=n.bottom,a=Math.max(t(document).height(),t(document.body).height());"object"!=typeof n&&(o=r=n),"function"==typeof r&&(r=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var s=this.getState(a,e,r,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),u=t.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-e-o})}};var n=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),n=i.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),e.call(i,n)})})}(jQuery),function(t,e,i){"use strict";!function t(e,i,n){function r(a,s){if(!i[a]){if(!e[a]){var l="function"==typeof require&&requireif(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=i[a]={exports:{}};e[a][0].call(c.exports,function(t){var i=e[a][1][t];return r(i||t)},c,c.exports,t,e,i,n)}return i[a].exports}for(var o="function"==typeof require&&require,a=0;a=0;)i=i.replace(" "+e+" "," ");t.className=i.replace(/^\s+|\s+$/g,"")}},l=function(t){var i=e.createElement("div");return i.appendChild(e.createTextNode(t)),i.innerHTML},u=function(t){t.style.opacity="",t.style.display="block"},c=function(t){if(t&&!t.length)return u(t);for(var e=0;e0?setTimeout(n,e):t.style.display="none"});n()},v=function(i){if("function"==typeof MouseEvent){var n=new MouseEvent("click",{view:t,bubbles:!1,cancelable:!0});i.dispatchEvent(n)}else if(e.createEvent){var r=e.createEvent("MouseEvents");r.initEvent("click",!1,!1),i.dispatchEvent(r)}else e.createEventObject?i.fireEvent("onclick"):"function"==typeof i.onclick&&i.onclick()},y=function(e){"function"==typeof e.stopPropagation?(e.stopPropagation(),e.preventDefault()):t.event&&t.event.hasOwnProperty("cancelBubble")&&(t.event.cancelBubble=!0)};r.hasClass=o,r.addClass=a,r.removeClass=s,r.escapeHtml=l,r._show=u,r.show=c,r._hide=h,r.hide=d,r.isDescendant=f,r.getTopMargin=p,r.fadeIn=g,r.fadeOut=m,r.fireClick=v,r.stopEventPropagation=y},{}],5:[function(e,n,r){Object.defineProperty(r,"__esModule",{value:!0});var o=e("./handle-dom"),a=e("./handle-swal-dom"),s=function(e,n,r){var s=e||t.event,l=s.keyCode||s.which,u=r.querySelector("button.confirm"),c=r.querySelector("button.cancel"),h=r.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(l)){for(var d=s.target||s.srcElement,f=-1,p=0;p
\n \n \n \n \n
\n \n \n
\n \n \n\n
\n
\n

Title

\n

Text

\n
\n \n
\n
\n
!
\n

Not valid!

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
',e.exports=i.default},{}],8:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});var r=t("./utils"),o=t("./handle-swal-dom"),a=t("./handle-dom"),s=["error","warning","info","success","input","prompt"],l=function(t){var e=o.getModal(),n=e.querySelector("h2"),l=e.querySelector("p"),u=e.querySelector("button.cancel"),c=e.querySelector("button.confirm");if(n.innerHTML=t.html?t.title:a.escapeHtml(t.title).split("\n").join("
"),l.innerHTML=t.html?t.text:a.escapeHtml(t.text||"").split("\n").join("
"),t.text&&a.show(l),t.customClass)a.addClass(e,t.customClass),e.setAttribute("data-custom-class",t.customClass);else{var h=e.getAttribute("data-custom-class");a.removeClass(e,h),e.setAttribute("data-custom-class","")}if(a.hide(e.querySelectorAll(".sa-icon")),t.type&&!r.isIE8()){var d=function(){for(var n=!1,r=0;rn;n++)i=parseInt(t.substr(2*n,2),16),i=Math.round(Math.min(Math.max(0,i+i*e),255)).toString(16),r+=("00"+i).substr(i.length);return r};n.extend=r,n.hexToRgb=o,n.isIE8=a,n.logStr=s,n.colorLuminance=l},{}]},{},[1]),"function"==typeof define&&define.amd?define(function(){return sweetAlert}):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t,e){function i(){return new Date(Date.UTC.apply(Date,arguments))}"indexOf"in Array.prototype||(Array.prototype.indexOf=function(t,i){i===e&&(i=0),i<0&&(i+=this.length),i<0&&(i=0);for(var n=this.length;i=this.startDate&&t<=this.endDate?(this.date=t,this.setValue(),this.viewDate=this.date,this.fill()):this.element.trigger({type:"outOfRange",date:t,startDate:this.startDate,endDate:this.endDate})},setFormat:function(t){this.format=a.parseFormat(t,this.formatType);var e;this.isInput?e=this.element:this.component&&(e=this.element.find("input")),e&&e.val()&&this.setValue()},setValue:function(){var e=this.getFormattedDate();this.isInput?this.element.val(e):(this.component&&this.element.find("input").val(e),this.element.data("date",e)),this.linkField&&t("#"+this.linkField).val(this.getFormattedDate(this.linkFormat))},getFormattedDate:function(t){return t==e&&(t=this.format),a.formatDate(this.date,t,this.language,this.formatType,this.timezone)},setStartDate:function(t){this.startDate=t||-1/0,this.startDate!==-1/0&&(this.startDate=a.parseDate(this.startDate,this.format,this.language,this.formatType,this.timezone)),this.update(),this.updateNavArrows()},setEndDate:function(t){this.endDate=t||1/0,this.endDate!==1/0&&(this.endDate=a.parseDate(this.endDate,this.format,this.language,this.formatType,this.timezone)),this.update(),this.updateNavArrows()},setDatesDisabled:function(e){this.datesDisabled=e||[],t.isArray(this.datesDisabled)||(this.datesDisabled=this.datesDisabled.split(/,\s*/)),this.datesDisabled=t.map(this.datesDisabled,function(t){return a.parseDate(t,this.format,this.language,this.formatType,this.timezone).toDateString()}),this.update(),this.updateNavArrows()},setTitle:function(t,e){return this.picker.find(t).find("th:eq(1)").text(!1===this.title?e:this.title)},setDaysOfWeekDisabled:function(e){this.daysOfWeekDisabled=e||[],t.isArray(this.daysOfWeekDisabled)||(this.daysOfWeekDisabled=this.daysOfWeekDisabled.split(/,\s*/)),this.daysOfWeekDisabled=t.map(this.daysOfWeekDisabled,function(t){return parseInt(t,10)}),this.update(),this.updateNavArrows()},setMinutesDisabled:function(e){this.minutesDisabled=e||[],t.isArray(this.minutesDisabled)||(this.minutesDisabled=this.minutesDisabled.split(/,\s*/)),this.minutesDisabled=t.map(this.minutesDisabled,function(t){return parseInt(t,10)}),this.update(),this.updateNavArrows()},setHoursDisabled:function(e){this.hoursDisabled=e||[],t.isArray(this.hoursDisabled)||(this.hoursDisabled=this.hoursDisabled.split(/,\s*/)),this.hoursDisabled=t.map(this.hoursDisabled,function(t){return parseInt(t,10)}),this.update(),this.updateNavArrows()},place:function(){if(!this.isInline){if(!this.zIndex){var e=0;t("div").each(function(){var i=parseInt(t(this).css("zIndex"),10);i>e&&(e=i)}),this.zIndex=e+10}var i,n,r,o;o=this.container instanceof t?this.container.offset():t(this.container).offset(),this.component?(i=this.component.offset(),r=i.left,"bottom-left"!=this.pickerPosition&&"top-left"!=this.pickerPosition||(r+=this.component.outerWidth()-this.picker.outerWidth())):(i=this.element.offset(),r=i.left,"bottom-left"!=this.pickerPosition&&"top-left"!=this.pickerPosition||(r+=this.element.outerWidth()-this.picker.outerWidth()));var a=document.body.clientWidth||window.innerWidth;r+220>a&&(r=a-220),n="top-left"==this.pickerPosition||"top-right"==this.pickerPosition?i.top-this.picker.outerHeight():i.top+this.height,n-=o.top,r-=o.left,this.picker.css({top:n,left:r,zIndex:this.zIndex})}},update:function(){var t,e=!1;arguments&&arguments.length&&("string"==typeof arguments[0]||arguments[0]instanceof Date)?(t=arguments[0],e=!0):("string"==typeof(t=(this.isInput?this.element.val():this.element.find("input").val())||this.element.data("date")||this.initialDate)||t instanceof String)&&(t=t.replace(/^\s+|\s+$/g,"")),t||(t=new Date,e=!1),this.date=a.parseDate(t,this.format,this.language,this.formatType,this.timezone),e&&this.setValue(),this.datethis.endDate?this.viewDate=new Date(this.endDate):this.viewDate=new Date(this.date),this.fill()},fillDow:function(){for(var t=this.weekStart,e="";t'+o[this.language].daysMin[t++%7]+"";e+="",this.picker.find(".datetimepicker-days thead").append(e)},fillMonths:function(){for(var t="",e=0;e<12;)t+=''+o[this.language].monthsShort[e++]+"";this.picker.find(".datetimepicker-months td").html(t)},fill:function(){if(null!=this.date&&null!=this.viewDate){var e=new Date(this.viewDate),n=e.getUTCFullYear(),r=e.getUTCMonth(),s=e.getUTCDate(),l=e.getUTCHours(),u=e.getUTCMinutes(),c=this.startDate!==-1/0?this.startDate.getUTCFullYear():-1/0,h=this.startDate!==-1/0?this.startDate.getUTCMonth():-1/0,d=this.endDate!==1/0?this.endDate.getUTCFullYear():1/0,f=this.endDate!==1/0?this.endDate.getUTCMonth()+1:1/0,p=new i(this.date.getUTCFullYear(),this.date.getUTCMonth(),this.date.getUTCDate()).valueOf(),g=new Date;if(this.setTitle(".datetimepicker-days",o[this.language].months[r]+" "+n),"time"==this.formatViewType){var m=this.getFormattedDate();this.setTitle(".datetimepicker-hours",m),this.setTitle(".datetimepicker-minutes",m)}else this.setTitle(".datetimepicker-hours",s+" "+o[this.language].months[r]+" "+n),this.setTitle(".datetimepicker-minutes",s+" "+o[this.language].months[r]+" "+n);this.picker.find("tfoot th.today").text(o[this.language].today||o.en.today).toggle(!1!==this.todayBtn),this.picker.find("tfoot th.clear").text(o[this.language].clear||o.en.clear).toggle(!1!==this.clearBtn),this.updateNavArrows(),this.fillMonths();var v=i(n,r-1,28,0,0,0,0),y=a.getDaysInMonth(v.getUTCFullYear(),v.getUTCMonth());v.setUTCDate(y),v.setUTCDate(y-(v.getUTCDay()-this.weekStart+7)%7);var x=new Date(v);x.setUTCDate(x.getUTCDate()+42),x=x.valueOf();for(var _,b=[];v.valueOf()"),_="",v.getUTCFullYear()n||v.getUTCFullYear()==n&&v.getUTCMonth()>r)&&(_+=" new"),this.todayHighlight&&v.getUTCFullYear()==g.getFullYear()&&v.getUTCMonth()==g.getMonth()&&v.getUTCDate()==g.getDate()&&(_+=" today"),v.valueOf()==p&&(_+=" active"),(v.valueOf()+864e5<=this.startDate||v.valueOf()>this.endDate||-1!==t.inArray(v.getUTCDay(),this.daysOfWeekDisabled)||-1!==t.inArray(v.toDateString(),this.datesDisabled))&&(_+=" disabled"),b.push(''+v.getUTCDate()+""),v.getUTCDay()==this.weekEnd&&b.push(""),v.setUTCDate(v.getUTCDate()+1);this.picker.find(".datetimepicker-days tbody").empty().append(b.join("")),b=[];for(var w="",S="",T="",C=this.hoursDisabled||[],M=0;M<24;M++)if(-1===C.indexOf(M)){var D=i(n,r,s,M);_="",D.valueOf()+36e5<=this.startDate||D.valueOf()>this.endDate?_+=" disabled":l==M&&(_+=" active"),this.showMeridian&&2==o[this.language].meridiem.length?(S=M<12?o[this.language].meridiem[0]:o[this.language].meridiem[1],S!=T&&(""!=T&&b.push(""),b.push('
'+S.toUpperCase()+"")),T=S,w=M%12?M%12:12,b.push(''+w+""),23==M&&b.push("
")):(w=M+":00",b.push(''+w+""))}this.picker.find(".datetimepicker-hours td").html(b.join("")),b=[],w="",S="",T="";for(var I=this.minutesDisabled||[],M=0;M<60;M+=this.minuteStep)if(-1===I.indexOf(M)){var D=i(n,r,s,l,M,0);_="",D.valueOf()this.endDate?_+=" disabled":Math.floor(u/this.minuteStep)==Math.floor(M/this.minuteStep)&&(_+=" active"),this.showMeridian&&2==o[this.language].meridiem.length?(S=l<12?o[this.language].meridiem[0]:o[this.language].meridiem[1],S!=T&&(""!=T&&b.push(""),b.push('
'+S.toUpperCase()+"")),T=S,w=l%12?l%12:12,b.push(''+w+":"+(M<10?"0"+M:M)+""),59==M&&b.push("
")):(w=M+":00",b.push(''+l+":"+(M<10?"0"+M:M)+""))}this.picker.find(".datetimepicker-minutes td").html(b.join(""));var A=this.date.getUTCFullYear(),k=this.setTitle(".datetimepicker-months",n).end().find("span").removeClass("active");if(A==n){var E=k.length-12;k.eq(this.date.getUTCMonth()+E).addClass("active")}(nd)&&k.addClass("disabled"),n==c&&k.slice(0,h).addClass("disabled"),n==d&&k.slice(f).addClass("disabled"),b="",n=10*parseInt(n/10,10);var O=this.setTitle(".datetimepicker-years",n+"-"+(n+9)).end().find("td");n-=1;for(var M=-1;M<11;M++)b+='d?" disabled":"")+'">'+n+"",n+=1;O.html(b),this.place()}},updateNavArrows:function(){var t=new Date(this.viewDate),e=t.getUTCFullYear(),i=t.getUTCMonth(),n=t.getUTCDate(),r=t.getUTCHours();switch(this.viewMode){case 0:this.startDate!==-1/0&&e<=this.startDate.getUTCFullYear()&&i<=this.startDate.getUTCMonth()&&n<=this.startDate.getUTCDate()&&r<=this.startDate.getUTCHours()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.endDate!==1/0&&e>=this.endDate.getUTCFullYear()&&i>=this.endDate.getUTCMonth()&&n>=this.endDate.getUTCDate()&&r>=this.endDate.getUTCHours()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:this.startDate!==-1/0&&e<=this.startDate.getUTCFullYear()&&i<=this.startDate.getUTCMonth()&&n<=this.startDate.getUTCDate()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.endDate!==1/0&&e>=this.endDate.getUTCFullYear()&&i>=this.endDate.getUTCMonth()&&n>=this.endDate.getUTCDate()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 2:this.startDate!==-1/0&&e<=this.startDate.getUTCFullYear()&&i<=this.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.endDate!==1/0&&e>=this.endDate.getUTCFullYear()&&i>=this.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 3:case 4:this.startDate!==-1/0&&e<=this.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.endDate!==1/0&&e>=this.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}},mousewheel:function(e){if(e.preventDefault(),e.stopPropagation(),!this.wheelPause){this.wheelPause=!0;var i=e.originalEvent,n=i.wheelDelta,r=n>0?1:0===n?0:-1;this.wheelViewModeNavigationInverseDirection&&(r=-r),this.showMode(r),setTimeout(t.proxy(function(){this.wheelPause=!1},this),this.wheelViewModeNavigationDelay)}},click:function(e){e.stopPropagation(),e.preventDefault();var n=t(e.target).closest("span, td, th, legend");if(n.is("."+this.icontype)&&(n=t(n).parent().closest("span, td, th, legend")),1==n.length){if(n.is(".disabled"))return void this.element.trigger({type:"outOfRange",date:this.viewDate,startDate:this.startDate,endDate:this.endDate});switch(n[0].nodeName.toLowerCase()){case"th":switch(n[0].className){case"switch":this.showMode(1);break;case"prev":case"next":var r=a.modes[this.viewMode].navStep*("prev"==n[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveHour(this.viewDate,r);break;case 1:this.viewDate=this.moveDate(this.viewDate,r);break;case 2:this.viewDate=this.moveMonth(this.viewDate,r);break;case 3:case 4:this.viewDate=this.moveYear(this.viewDate,r)}this.fill(),this.element.trigger({type:n[0].className+":"+this.convertViewModeText(this.viewMode),date:this.viewDate,startDate:this.startDate,endDate:this.endDate});break;case"clear":this.reset(),this.autoclose&&this.hide();break;case"today":var o=new Date;o=i(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),0),othis.endDate&&(o=this.endDate),this.viewMode=this.startViewMode,this.showMode(0),this._setDate(o),this.fill(),this.autoclose&&this.hide()}break;case"span":if(!n.is(".disabled")){var s=this.viewDate.getUTCFullYear(),l=this.viewDate.getUTCMonth(),u=this.viewDate.getUTCDate(),c=this.viewDate.getUTCHours(),h=this.viewDate.getUTCMinutes(),d=this.viewDate.getUTCSeconds();if(n.is(".month")?(this.viewDate.setUTCDate(1),l=n.parent().find("span").index(n),u=this.viewDate.getUTCDate(),this.viewDate.setUTCMonth(l),this.element.trigger({type:"changeMonth",date:this.viewDate}),this.viewSelect>=3&&this._setDate(i(s,l,u,c,h,d,0))):n.is(".year")?(this.viewDate.setUTCDate(1),s=parseInt(n.text(),10)||0,this.viewDate.setUTCFullYear(s),this.element.trigger({type:"changeYear",date:this.viewDate}),this.viewSelect>=4&&this._setDate(i(s,l,u,c,h,d,0))):n.is(".hour")?(c=parseInt(n.text(),10)||0,(n.hasClass("hour_am")||n.hasClass("hour_pm"))&&(12==c&&n.hasClass("hour_am")?c=0:12!=c&&n.hasClass("hour_pm")&&(c+=12)),this.viewDate.setUTCHours(c),this.element.trigger({type:"changeHour",date:this.viewDate}),this.viewSelect>=1&&this._setDate(i(s,l,u,c,h,d,0))):n.is(".minute")&&(h=parseInt(n.text().substr(n.text().indexOf(":")+1),10)||0,this.viewDate.setUTCMinutes(h),this.element.trigger({type:"changeMinute",date:this.viewDate}),this.viewSelect>=0&&this._setDate(i(s,l,u,c,h,d,0))),0!=this.viewMode){var f=this.viewMode;this.showMode(-1),this.fill(),f==this.viewMode&&this.autoclose&&this.hide()}else this.fill(),this.autoclose&&this.hide()}break;case"td":if(n.is(".day")&&!n.is(".disabled")){var u=parseInt(n.text(),10)||1,s=this.viewDate.getUTCFullYear(),l=this.viewDate.getUTCMonth(),c=this.viewDate.getUTCHours(),h=this.viewDate.getUTCMinutes(),d=this.viewDate.getUTCSeconds();n.is(".old")?0===l?(l=11,s-=1):l-=1:n.is(".new")&&(11==l?(l=0,s+=1):l+=1),this.viewDate.setUTCFullYear(s),this.viewDate.setUTCMonth(l,u),this.element.trigger({type:"changeDay",date:this.viewDate}),this.viewSelect>=2&&this._setDate(i(s,l,u,c,h,d,0))}var f=this.viewMode;this.showMode(-1),this.fill(),f==this.viewMode&&this.autoclose&&this.hide()}}},_setDate:function(t,e){e&&"date"!=e||(this.date=t),e&&"view"!=e||(this.viewDate=t),this.fill(),this.setValue();var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input")),i&&(i.change(),this.autoclose),this.element.trigger({type:"changeDate",date:this.getDate()}),null==t&&(this.date=this.viewDate)},moveMinute:function(t,e){if(!e)return t;var i=new Date(t.valueOf());return i.setUTCMinutes(i.getUTCMinutes()+e*this.minuteStep),i},moveHour:function(t,e){if(!e)return t;var i=new Date(t.valueOf());return i.setUTCHours(i.getUTCHours()+e),i},moveDate:function(t,e){if(!e)return t;var i=new Date(t.valueOf());return i.setUTCDate(i.getUTCDate()+e),i},moveMonth:function(t,e){if(!e)return t;var i,n,r=new Date(t.valueOf()),o=r.getUTCDate(),a=r.getUTCMonth(),s=Math.abs(e);if(e=e>0?1:-1,1==s)n=-1==e?function(){return r.getUTCMonth()==a}:function(){return r.getUTCMonth()!=i},i=a+e,r.setUTCMonth(i),(i<0||i>11)&&(i=(i+12)%12);else{for(var l=0;l=this.startDate&&t<=this.endDate},keydown:function(t){if(this.picker.is(":not(:visible)"))return void(27==t.keyCode&&this.show());var e,i,n,r=!1;switch(t.keyCode){case 27:this.hide(),t.preventDefault();break;case 37:case 39:if(!this.keyboardNavigation)break;e=37==t.keyCode?-1:1,viewMode=this.viewMode,t.ctrlKey?viewMode+=2:t.shiftKey&&(viewMode+=1),4==viewMode?(i=this.moveYear(this.date,e),n=this.moveYear(this.viewDate,e)):3==viewMode?(i=this.moveMonth(this.date,e),n=this.moveMonth(this.viewDate,e)):2==viewMode?(i=this.moveDate(this.date,e),n=this.moveDate(this.viewDate,e)):1==viewMode?(i=this.moveHour(this.date,e),n=this.moveHour(this.viewDate,e)):0==viewMode&&(i=this.moveMinute(this.date,e),n=this.moveMinute(this.viewDate,e)),this.dateWithinRange(i)&&(this.date=i,this.viewDate=n,this.setValue(),this.update(),t.preventDefault(),r=!0);break;case 38:case 40:if(!this.keyboardNavigation)break;e=38==t.keyCode?-1:1,viewMode=this.viewMode,t.ctrlKey?viewMode+=2:t.shiftKey&&(viewMode+=1),4==viewMode?(i=this.moveYear(this.date,e),n=this.moveYear(this.viewDate,e)):3==viewMode?(i=this.moveMonth(this.date,e),n=this.moveMonth(this.viewDate,e)):2==viewMode?(i=this.moveDate(this.date,7*e),n=this.moveDate(this.viewDate,7*e)):1==viewMode?this.showMeridian?(i=this.moveHour(this.date,6*e),n=this.moveHour(this.viewDate,6*e)):(i=this.moveHour(this.date,4*e),n=this.moveHour(this.viewDate,4*e)):0==viewMode&&(i=this.moveMinute(this.date,4*e),n=this.moveMinute(this.viewDate,4*e)),this.dateWithinRange(i)&&(this.date=i,this.viewDate=n,this.setValue(),this.update(),t.preventDefault(),r=!0);break;case 13:if(0!=this.viewMode){var o=this.viewMode;this.showMode(-1),this.fill(),o==this.viewMode&&this.autoclose&&this.hide()}else this.fill(),this.autoclose&&this.hide();t.preventDefault();break;case 9:this.hide()}if(r){var a;this.isInput?a=this.element:this.component&&(a=this.element.find("input")),a&&a.change(),this.element.trigger({type:"changeDate",date:this.getDate()})}},showMode:function(t){if(t){var e=Math.max(0,Math.min(a.modes.length-1,this.viewMode+t));e>=this.minView&&e<=this.maxView&&(this.element.trigger({type:"changeMode",date:this.viewDate,oldViewMode:this.viewMode,newViewMode:e}),this.viewMode=e)}this.picker.find(">div").hide().filter(".datetimepicker-"+a.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()},reset:function(t){this._setDate(null,"date")},convertViewModeText:function(t){switch(t){case 4:return"decade";case 3:return"year";case 2:return"month";case 1:return"day";case 0:return"hour"}}};var r=t.fn.datetimepicker;t.fn.datetimepicker=function(i){var r=Array.apply(null,arguments);r.shift();var o;return this.each(function(){var a=t(this),s=a.data("datetimepicker"),l="object"==typeof i&&iif(s||a.data("datetimepicker",s=new n(this,t.extend({},t.fn.datetimepicker.defaults,l))),"string"==typeof i&&"function"==typeof s[i]&&(o=s[i].apply(s,r))!==e)return!1}),o!==e?o:this},t.fn.datetimepicker.defaults={},t.fn.datetimepicker.Constructor=n;var o=t.fn.datetimepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],today:"Today",clear:"Clear"}},a={modes:[{clsName:"minutes",navFnc:"Hours",navStep:1},{clsName:"hours",navFnc:"Date",navStep:1},{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,a.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},getDefaultFormat:function(t,e){if("standard"==t)return"input"==e?"yyyy-mm-dd hh:ii":"yyyy-mm-dd hh:ii:ss";if("php"==t)return"input"==e?"Y-m-d H:i":"Y-m-d H:i:s";throw new Error("Invalid format type.")},validParts:function(t){if("standard"==t)return/t|hh?|HH?|p|P|z|Z|ii?|ss?|dd?|DD?|mm?|MM?|yy(?:yy)?/g;if("php"==t)return/[dDjlNwzFmMnStyYaABgGhHis]/g;throw new Error("Invalid format type.")},nonpunctuation:/[^ -\/:-@\[-`{-~\t\n\rTZ]+/g,parseFormat:function(t,e){var i=t.replace(this.validParts(e),"\0").split("\0"),n=t.match(this.validParts(e));if(!i||!i.length||!n||0==n.length)throw new Error("Invalid date format.");return{separators:i,parts:n}},parseDate:function(e,r,a,s,l){if(e instanceof Date){var u=new Date(e.valueOf()-6e4*e.getTimezoneOffset());return u.setMilliseconds(0),u}if(/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(e)&&(r=this.parseFormat("yyyy-mm-dd",s)),/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(e)&&(r=this.parseFormat("yyyy-mm-dd hh:ii",s)),/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(e)&&(r=this.parseFormat("yyyy-mm-dd hh:ii:ss",s)),/^[-+]\d+[dmwy]([\s,]+[-+]\d+[dmwy])*$/.test(e)){var c,h,d=/([-+]\d+)([dmwy])/,f=e.match(/([-+]\d+)([dmwy])/g);e=new Date;for(var p=0;p',headTemplateV3:' ',contTemplate:'',footTemplate:''};a.template='
'+a.headTemplate+a.contTemplate+a.footTemplate+'
'+a.headTemplate+a.contTemplate+a.footTemplate+'
'+a.headTemplate+""+a.footTemplate+'
'+a.headTemplate+a.contTemplate+a.footTemplate+'
'+a.headTemplate+a.contTemplate+a.footTemplate+"
",a.templateV3='
'+a.headTemplateV3+a.contTemplate+a.footTemplate+'
'+a.headTemplateV3+a.contTemplate+a.footTemplate+'
'+a.headTemplateV3+""+a.footTemplate+'
'+a.headTemplateV3+a.contTemplate+a.footTemplate+'
'+a.headTemplateV3+a.contTemplate+a.footTemplate+"
",t.fn.datetimepicker.DPGlobal=a,t.fn.datetimepicker.noConflict=function(){return t.fn.datetimepicker=r,this},t(document).on("focus.datetimepicker.data-api click.datetimepicker.data-api",'[data-provide="datetimepicker"]',function(e){var i=t(this);i.data("datetimepicker")||(e.preventDefault(),i.datetimepicker("show"))}),t(function(){t('[data-provide="datetimepicker-inline"]').datetimepicker()})}),function(t){t.fn.datetimepicker.dates["zh-CN"]={days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六","星期日"],daysShort:["周日","周一","周二","周三","周四","周五","周六","周日"],daysMin:["周日","周一","周二","周三","周四","周五","周六","周日"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],today:"今天",suffix:[],meridiem:["上午","下午"]}}(jQuery),function(t){"object"==typeof module&&module.exports?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t,e){"use strict";function i(e,n){function r(){o.$el=t(e),o.$el.length?o._init(o.$el[0],n):O(e)&&(R[e]=n)}var o=this;if(!(o instanceof i))return new i(e,n);i.pending?t(window).on("validatorready",r):r()}function n(e){function i(){var e=this.options;for(var i in e)i in F&&(this[i]=e[i]);t.extend(this,{_valHook:function(){return"true"===this.element.contentEditable?"text":"val"},getValue:function(){var e=this.element;return"number"===e.type&&e.validity&&e.validity.badInput?"NaN":t(e)[this._valHook()]()},setValue:function(e){t(this.element)[this._valHook()](this.value=e)},getRangeMsg:function(t,e,i){function n(t,e){return l?t>e:t>=e}if(e){var r,o=this,a=o.messages[o._r]||"",s=e[0].split("~"),l="false"===e[1],u=s[0],c=s[1],h="rg",d=[""],f=k(t)&&+t==+t;return 2===s.length?u&&c?(f&&n(t,+u)&&n(+c,t)&&(r=!0),d=d.concat(s),h=l?"gtlt":"rg"):u&&!c?(f&&n(t,+u)&&(r=!0),d.push(u),h=l?"gt":"gte"):!u&&c&&(f&&n(+c,t)&&(r=!0),d.push(c),h=l?"lt":"lte"):(t===+u&&(r=!0),d.push(u),h="eq"),a&&(i&&a[h+i]&&(h+=i),d[0]=a[h]),r||o._rules&&(o._rules[o._i].msg=o.renderMsg.apply(null,d))}},renderMsg:function(){var t=arguments,e=t[0],i=t.length;if(e){for(;--i;)e=e.replace("{"+i+"}",t[i]);return e}}})}function n(i,n,r){this.key=i,this.validator=e,t.extend(this,r,n)}return i.prototype=e,n.prototype=new i,n}function r(t,e){if(N(t)){var i,n=e?!0===e?this:e:r.prototype;for(i in t)f(i)&&(n[i]=a(t[i]))}}function o(t,e){if(N(t)){var i,n=e?!0===e?this:e:o.prototype;for(i in t)n[i]=t[i]}}function a(e){switch(t.type(e)){case"function":return e;case"array":var i=function(){return e[0].test(this.value)||e[1]||!1};return i.msg=e[1],i;case"regexp":return function(){return e.test(this.value)}}}function s(e){var i,n,r;if(e&&e.tagName){switch(e.tagName){case"INPUT":case"SELECT":case"TEXTAREA":case"BUTTON":case"FIELDSET":i=e.form||t(e).closest("."+y);break;case"FORM":i=e;break;default:i=t(e).closest("."+y)}for(n in R)if(t(i).is(n)){r=R[n];break}return t(i).data(m)||t(i)[m](r).data(m)}}function l(t,e){var i=k(P(t,x+"-"+e));if(i&&(i=new Function("return "+i)()))return a(i)}function u(t,e,i){var n=e.msg,r=e._r;return N(n)&&(n=n[r]),O(n)||(n=P(t,_+"-"+r)||P(t,_)||(i?O(i)?i:i[r]:"")),n}function c(t){var e;return t&&(e=C.exec(t)),e&&e[0]}function h(t){return"INPUT"===t.tagName&&"checkbox"===t.type||"radio"===t.type}function d(t){return Date.parse(t.replace(/\.|\-/g,"/"))}function f(t){return/^\w+$/.test(t)}function p(t){var e="#"===t.charAt(0);return t=t.replace(/([:.{(|)}\/\[\]])/g,"\\$1"),e?t:'[name="'+t+'"]:first'}var g,m="validator",v="."+m,y="nice-"+m,x="data-rule",_="data-msg",b=/(&)?(!)?\b(\w+)(?:\[\s*(.*?\]?)\s*\]|\(\s*(.*?\)?)\s*\))?\s*(;|\|)?/g,w=/(\w+)(?:\[\s*(.*?\]?)\s*\]|\(\s*(.*?\)?)\s*\))?/,S=/(?:([^:;\(\[]*):)?(.*)/,T=/[^\x00-\xff]/g,C=/top|right|bottom|left/,M=/(?:(cors|jsonp):)?(?:(post|get):)?(.+)/i,D=/[<>'"`\\]|&#x?\d+[A-F]?;?|%3[A-F]/gim,I=t.noop,A=t.proxy,k=t.trim,E=t.isFunction,O=function(t){return"string"==typeof t},N=function(t){return t&&"[object Object]"===Object.prototype.toString.call(t)},L=document.documentMode||+(navigator.userAgent.match(/MSIE (\d+)/)&&RegExp.$1),P=function(t,i,n){return t&&t.tagName?n===e?t.getAttribute(i):void(null===n?t.removeAttribute(i):t.setAttribute(i,""+n)):null},R={},z={debug:0,theme:"default",ignore:"",focusInvalid:!0,focusCleanup:!1,stopOnError:!1,beforeSubmit:null,valid:null,invalid:null,validation:null,formClass:"n-default",validClass:"n-valid",invalidClass:"n-invalid",bindClassTo:null},F={timely:1,display:null,target:null,ignoreBlank:!1,showOk:!0,dataFilter:function(t){if(O(t)||N(t)&&("error"in t||"ok"in t))return t},msgMaker:function(e){var i;return i='<span role="alert" class="msg-wrap n-'+e.type+'">'+e.arrow,e.result?t.each(e.result,function(t,n){i+='<span class="n-'+n.type+'">'+e.icon+'<span class="n-msg">'+n.msg+"</span></span>"}):i+=e.icon+'<span class="n-msg">'+e.msg+"</span>",i+="</span>"},msgWrapper:"span",msgArrow:"",msgIcon:'<span class="n-icon"></span>',msgClass:"n-right",msgStyle:"",msgShow:null,msgHide:null},B={};return t.fn.validator=function(e){var n=this,r=arguments;return n.is(":verifiable")?n:(n.is("form")||(n=this.find("form")),n.length||(n=this),n.each(function(){var n=t(this).data(m);if(n)if(O(e)){if("_"===e.charAt(0))return;n[e].apply(n,[].slice.call(r,1))}else e&&(n._reset(!0),n._init(this,e));else new i(this,e)}),this)},t.fn.isValid=function(t,i){var n,r,o=s(this[0]),a=E(t);return!o||(a||i!==e||(i=t),o.checkOnly=!!i,r=o.options,n=o._multiValidate(this.is(":verifiable")?this:this.find(":verifiable"),function(e){e||!r.focusInvalid||o.checkOnly||o.$el.find("[aria-invalid]:first").focus(),a&&(t.length?t(e):e&&t()),o.checkOnly=!1}),a?this:n)},t.extend(t.expr.pseudos||t.expr[":"],{verifiable:function(t){var e=t.nodeName.toLowerCase();return("input"===e&&!{submit:1,button:1,reset:1,image:1}[t.type]||"select"===e||"textarea"===e||"true"===t.contentEditable)&&!t.disabled},filled:function(e){return!!k(t(e).val())}}),i.prototype={_init:function(e,i){var a,s,l,u=this;E(i)&&(i={valid:i}),i=u._opt=i||{},l=P(e,"data-"+m+"-option"),l=u._dataOpt=l&&"{"===l.charAt(0)?new Function("return "+l)():{},s=u._themeOpt=B[i.theme||l.theme||z.theme],a=u.options=t.extend({},z,F,s,u.options,i,l),u.rules=new r(a.rules,!0),u.messages=new o(a.messages,!0),u.Field=n(u),u.elements=u.elements||{},u.deferred={},u.errors={},u.fields={},u._initFields(a.fields),u.$el.data(m)||(u.$el.data(m,u).addClass(y+" "+a.formClass).on("form-submit-validate",function(t,e,i,n,r){u.vetoed=r.veto=!u.isValid,u.ajaxFormOptions=n}).on("submit"+v+" validate"+v,A(u,"_submit")).on("reset"+v,A(u,"_reset")).on("showmsg"+v,A(u,"_showmsg")).on("hidemsg"+v,A(u,"_hidemsg")).on("focusin"+v+" click"+v,":verifiable",A(u,"_focusin")).on("focusout"+v+" validate"+v,":verifiable",A(u,"_focusout")).on("keyup"+v+" input"+v+" compositionstart compositionend",":verifiable",A(u,"_focusout")).on("click"+v,":radio,:checkbox","click",A(u,"_focusout")).on("change"+v,'select,input[type="file"]',"change",A(u,"_focusout")),u._NOVALIDATE=P(e,"novalidate"),P(e,"novalidate","novalidate")),O(a.target)&&u.$el.find(a.target).addClass("msg-container")},_guessAjax:function(e){function i(e,i,n){return!!(e&&e[i]&&t.map(e[i],function(t){return~t.namespace.indexOf(n)?1:null}).length)}var n=this;if(!(n.isAjaxSubmit=!!n.options.valid)){var r=(t._data||t.data)(e,"events");n.isAjaxSubmit=i(r,"valid","form")||i(r,"submit","form-plugin")}},_initFields:function(t){function e(t,e){if(null===e||a){var i=o.elements[t];i&&o._resetElement(i,!0),delete o.fields[t]}else o.fields[t]=new o.Field(t,O(e)?{rule:e}:e,o.fields[t])}var i,n,r,o=this,a=null===t;if(a&&(t=o.fields),N(t))for(i in t)if(~i.indexOf(","))for(n=i.split(","),r=n.length;r--;)e(k(n[r]),t[i]);else e(i,t[i]);o.$el.find(":verifiable").each(function(){o._parse(this)})},_parse:function(t){var e,i,n,r=this,o=t.name,a=P(t,x);return a&&P(t,x,null),t.id&&("#"+t.id in r.fields||!o||null!==a&&(e=r.fields[o])&&a!==e.rule&&t.id!==e.key)&&(o="#"+t.id),o||(o="#"+(t.id="N"+String(Math.random()).slice(-12))),e=r.getField(o,!0),e.rule=a||e.rule,(i=P(t,"data-display"))&&(e.display=i),e.rule&&((null!==P(t,"data-must")||/\b(?:match|checked)\b/.test(e.rule))&&(e.must=!0),/\brequired\b/.test(e.rule)&&(e.required=!0),(n=P(t,"data-timely"))?e.timely=+n:e.timely>3&&P(t,"data-timely",e.timely),r._parseRule(e),e.old={}),O(e.target)&&P(t,"data-target",e.target),O(e.tip)&&P(t,"data-tip",e.tip),r.fields[o]=e},_parseRule:function(i){var n=S.exec(i.rule);n&&(i._i=0,n[1]&&(i.display=n[1]),n[2]&&(i._rules=[],n[2].replace(b,function(){var n=arguments;n[4]=n[4]||n[5],i._rules.push({and:"&"===n[1],not:"!"===n[2],or:"|"===n[6],method:n[3],params:n[4]?t.map(n[4].split(", "),k):e})})))},_multiValidate:function(i,n){var r=this,o=r.options;return r.hasError=!1,o.ignore&&(i=i.not(o.ignore)),i.each(function(){if(r._validate(this),r.hasError&&o.stopOnError)return!1}),n&&(r.validating=!0,t.when.apply(null,t.map(r.deferred,function(t){return t})).done(function(){n.call(r,!r.hasError),r.validating=!1})),t.isEmptyObject(r.deferred)?!r.hasError:e},_submit:function(i){var n=this,r=n.options,o=i.target,a="submit"===i.type&&"FORM"===o.tagName&&!i.isDefaultPrevented();i.preventDefault(),g&&~(g=!1)||n.submiting||"validate"===i.type&&n.$el[0]!==o||E(r.beforeSubmit)&&!1===r.beforeSubmit.call(n,o)||(n.isAjaxSubmit===e&&n._guessAjax(o),n._debug("log","\n<<< event: "+i.type),n._reset(),n.submiting=!0,n._multiValidate(n.$el.find(":verifiable"),function(e){var i,s=e||2===r.debug?"valid":"invalid";e||(r.focusInvalid&&n.$el.find("[aria-invalid]:first").focus(),i=t.map(n.errors,function(t){return t})),n.submiting=!1,n.isValid=e,E(r[s])&&r[s].call(n,o,i),n.$el.trigger(s+".form",[o,i]),n._debug("log",">>> "+s),e&&(n.vetoed?t(o).ajaxSubmit(n.ajaxFormOptions):a&&!n.isAjaxSubmit&&document.createElement("form").submit.call(o))}))},_reset:function(t){var e=this;e.errors={},t&&(e.reseting=!0,e.$el.find(":verifiable").each(function(){e._resetElement(this)}),delete e.reseting)},_resetElement:function(t,e){this._setClass(t,null),this.hideMsg(t)},_focusin:function(t){var e,i,n=this,r=n.options,o=t.target;n.validating||"click"===t.type&&document.activeElement===o||(r.focusCleanup&&"true"===P(o,"aria-invalid")&&(n._setClass(o,null),n.hideMsg(o)),i=P(o,"data-tip"),i?n.showMsg(o,{type:"tip",msg:i}):(P(o,x)&&n._parse(o),(e=P(o,"data-timely"))&&(8!==e&&9!==e||n._focusout(t))))},_focusout:function(e){var i,n,r,o,a,s,l,u,c,d=this,f=d.options,p=e.target,g=e.type,m="focusin"===g,v="validate"===g,y=0;if("compositionstart"===g&&(d.pauseValidate=!0),"compositionend"===g&&(d.pauseValidate=!1),!d.pauseValidate&&(n=p.name&&h(p)?d.$el.find('input[name="'+p.name+'"]').get(0):p,(r=d.getField(n))&&r.rule)){if(i=r._e,r._e=g,c=r.timely,!v){if(!c||h(p)&&"click"!==g)return;if(a=r.getValue(),r.ignoreBlank&&!a&&!m)return void d.hideMsg(p);if("focusout"===g){if("change"===i)return;if(2===c||8===c){if(o=r.old,!a||!o)return;r.isValid&&!o.showOk?d.hideMsg(p):d._makeMsg(p,r,o)}}else{if(c<2&&!e.data)return;if((s=+new Date)-(p._ts||0)<100)return;if(p._ts=s,"keyup"===g){if("input"===i)return;if(l=e.keyCode,u={8:1,9:1,16:1,32:1,46:1},9===l&&!a)return;if(l<48&&!u[l])return}m||(y=c<100?"click"===g||"SELECT"===p.tagName?0:400:c)}}f.ignore&&t(p).is(f.ignore)||(clearTimeout(r._t),y?r._t=setTimeout(function(){d._validate(p,r)},y):(v&&(r.old={}),d._validate(p,r)))}},_setClass:function(e,i){var n=t(e),r=this.options;r.bindClassTo&&(n=n.closest(r.bindClassTo)),n.removeClass(r.invalidClass+" "+r.validClass),null!==i&&n.addClass(i?r.validClass:r.invalidClass)},_showmsg:function(t,e,i){var n=this,r=t.target;n.$el.is(r)?N(e)?n.showMsg(e):"tip"===e&&n.$el.find(":verifiable[data-tip]",r).each(function(){n.showMsg(this,{type:e,msg:i})}):n.showMsg(r,{type:e,msg:i})},_hidemsg:function(e){var i=t(e.target);i.is(":verifiable")&&this.hideMsg(i)},_validatedField:function(e,i,n){var r=this,o=r.options,a=i.isValid=n.isValid=!!n.isValid,s=a?"valid":"invalid";n.key=i.key,n.ruleName=i._r,n.id=e.id,n.value=i.value,r.elements[i.key]=n.element=e,r.isValid=r.$el[0].isValid=a?r.isFormValid():a,a?n.type="ok":(r.submiting&&(r.errors[i.key]=n.msg),r.hasError=!0),i.old=n,E(i[s])&&i[s].call(r,e,n),E(o.validation)&&o.validation.call(r,e,n),t(e).attr("aria-invalid",!a||null).trigger(s+".field",[n,r]),r.$el.triggerHandler("validation",[n,r]),r.checkOnly||(r._setClass(e,n.skip||"tip"===n.type?null:a),r._makeMsg.apply(r,arguments))},_makeMsg:function(e,i,n){i.msgMaker&&(n=t.extend({},n),"focusin"===i._e&&(n.type="tip"),this[n.showOk||n.msg||"tip"===n.type?"showMsg":"hideMsg"](e,n,i))},_validatedRule:function(i,n,r,o){n=n||h.getField(i),o=o||{};var a,s,l,c,h=this,d=n._r,f=n.timely,p=9===f||8===f,g=!1;if(null===r)return h._validatedField(i,n,{isValid:!0,skip:!0}),void(n._i=0);if(r===e?l=!0:!0===r||""===r?g=!0:O(r)?a=r:N(r)?r.error?a=r.error:(a=r.ok,g=!0):g=!!r,s=n._rules[n._i],s.not&&(a=e,g="required"===d||!g),s.or)if(g)for(;n._i<n._rules.length&&n._rules[n._i].or;)n._i++;else l=!0;else s.and&&(n.isValid||(l=!0));l?g=!0:(g&&!1!==n.showOk&&(c=P(i,"data-ok"),a=null===c?O(n.ok)?n.ok:a:c,!O(a)&&O(n.showOk)&&(a=n.showOk),O(a)&&(o.showOk=g)),g&&!p||(a=(u(i,n,a||s.msg||h.messages[d])||h.messages.fallback).replace(/\{0\|?([^\}]*)\}/,function(t,e){return h._getDisplay(i,n.display)||e||h.messages[0]})),g||(n.isValid=g),o.msg=a,t(i).trigger((g?"valid":"invalid")+".rule",[d,a])),!p||l&&!s.and||(g||n._m||(n._m=a),n._v=n._v||[],n._v.push({type:g?l?"tip":"ok":"error",msg:a||s.msg})),h._debug("log"," "+n._i+": "+d+" => "+(g||a)),(g||p)&&n._i<n._rules.length-1?(n._i++,h._checkRule(i,n)):(n._i=0,p?(o.isValid=n.isValid,o.result=n._v,o.msg=n._m||"",n.value||"focusin"!==n._e||(o.type="tip")):o.isValid=g,h._validatedField(i,n,o),delete n._m,delete n._v)},_checkRule:function(i,n){var r,o,a,s=this,u=n.key,c=n._rules[n._i],h=c.method,d=c.params;s.submiting&&s.deferred[u]||(a=n.old,n._r=h,a&&!n.must&&!c.must&&c.result!==e&&a.ruleName===h&&a.id===i.id&&n.value&&a.value===n.value?r=c.result:(o=l(i,h)||s.rules[h]||I,r=o.call(n,i,d,n),o.msg&&(c.msg=o.msg)),N(r)&&E(r.then)?(s.deferred[u]=r,n.isValid=e,!s.checkOnly&&s.showMsg(i,{type:"loading",msg:s.messages.loading},n),r.then(function(r,o,a){var l,u=k(a.responseText),h=n.dataFilter;/jsonp?/.test(this.dataType)?u=r:"{"===u.charAt(0)&&(u=t.parseJSON(u)),l=h.call(this,u,n),l===e&&(l=h.call(this,u.data,n)),c.data=this.data,c.result=n.old?l:e,s._validatedRule(i,n,l)},function(t,e){s._validatedRule(i,n,s.messages[e]||e)}).always(function(){delete s.deferred[u]})):s._validatedRule(i,n,r))},_validate:function(t,e){var i=this;if(!t.disabled&&null===P(t,"novalidate")&&(e=e||i.getField(t))&&(e._rules||i._parse(t),e._rules))return i._debug("info",e.key),e.isValid=!0,e.element=t,e.value=e.getValue(),e.required||e.must||e.value||h(t)?(i._checkRule(t,e),e.isValid):(i._validatedField(t,e,{isValid:!0}),!0)},_debug:function(t,e){window.console&&this.options.debug&&console[t](e)},test:function(t,i){var n,r,o,a,s=this,l=w.exec(i);return l&&(o=l[1])in s.rules&&(a=l[2]||l[3],a=a?a.split(", "):e,r=s.getField(t,!0),r._r=o,r.value=r.getValue(),n=s.rules[o].call(r,t,a)),!0===n||n===e||null===n},_getDisplay:function(t,e){return O(e)?e:E(e)?e.call(this,t):""},_getMsgOpt:function(e,i){var n=i||this.options;return t.extend({type:"error",pos:c(n.msgClass),target:n.target,wrapper:n.msgWrapper,style:n.msgStyle,cls:n.msgClass,arrow:n.msgArrow,icon:n.msgIcon},O(e)?{msg:e}:e)},_getMsgDOM:function(i,n){var r,o,a,s,l=t(i);if(l.is(":verifiable")?(a=n.target||P(i,"data-target"),a&&(a=E(a)?a.call(this,i):"#"===a.charAt(0)?t(a):this.$el.find(a),a.length&&(a.is(":verifiable")?(l=a,i=a.get(0)):a.hasClass("msg-box")?r=a:s=a)),r||(o=h(i)&&i.name||!i.id?i.name:i.id,r=(s||this.$el).find(n.wrapper+'.msg-box[for="'+o+'"]'))):r=l,!n.hide&&!r.length)if(r=t("<"+n.wrapper+">").attr({class:"msg-box"+(n.cls?" "+n.cls:""),style:n.style||e,for:o}),s)r.appendTo(s);else if(h(i)){var u=l.parent();r.appendTo(u.is("label")?u.parent():u)}else r[n.pos&&"right"!==n.pos?"insertBefore":"insertAfter"](l);return r},showMsg:function(e,i,n){if(e){var r,o,a,s,l=this,u=l.options;if(N(e)&&!e.jquery&&!i)return void t.each(e,function(t,e){var i=l.elements[t]||l.$el.find(p(t))[0];l.showMsg(i,e)});t(e).is(":verifiable")&&(n=n||l.getField(e)),(o=(n||u).msgMaker)&&(i=l._getMsgOpt(i,n),e=(e.name&&h(e)?l.$el.find('input[name="'+e.name+'"]'):t(e)).get(0),i.msg||"error"===i.type||null!==(a=P(e,"data-"+i.type))&&(i.msg=a),O(i.msg)&&(s=l._getMsgDOM(e,i),!C.test(s[0].className)&&s.addClass(i.cls),6===L&&"bottom"===i.pos&&(s[0].style.marginTop=t(e).outerHeight()+"px"),s.html(o.call(l,i))[0].style.display="",E(r=n&&n.msgShow||u.msgShow)&&r.call(l,s,i.type)))}},hideMsg:function(e,i,n){var r,o,a=this,s=a.options;e=t(e).get(0),t(e).is(":verifiable")&&(n=n||a.getField(e))&&(n.isValid||a.reseting)&&P(e,"aria-invalid",null),i=a._getMsgOpt(i,n),i.hide=!0,o=a._getMsgDOM(e,i),o.length&&(E(r=n&&n.msgHide||s.msgHide)?r.call(a,o,i.type):(o[0].style.display="none",o[0].innerHTML=""))},getField:function(t,i){var n,r,o=this;if(O(t))n=t,t=e;else{if(P(t,x))return o._parse(t);n=t.id&&"#"+t.id in o.fields||!t.name?"#"+t.id:t.name}return((r=o.fields[n])||i&&(r=new o.Field(n)))&&(r.element=t),r},setField:function(t,e){var i={};t&&(O(t)?i[t]=e:i=t,this._initFields(i))},isFormValid:function(){var t,e,i=this.fields;for(t in i)if(e=i[t],e._rules&&(e.required||e.must||e.value)&&!e.isValid)return!1;return!0},holdSubmit:function(t){this.submiting=t===e||t},cleanUp:function(){this._reset(1)},destroy:function(){this._reset(1),this.$el.off(v).removeData(m),P(this.$el[0],"novalidate",this._NOVALIDATE)}},t(window).on("beforeunload",function(){this.focus()}),t(document).on("click",":submit",function(){var t,e=this;e.form&&((t=e.getAttributeNode("formnovalidate"))&&null!==t.nodeValue||null!==P(e,"novalidate"))&&(g=!0)}).on("focusin submit validate","form,."+y,function(e){if(null===P(this,"novalidate")){var i,n=t(this);!n.data(m)&&(i=s(this))&&(t.isEmptyObject(i.fields)?(P(this,"novalidate","novalidate"),n.off(v).removeData(m)):"focusin"===e.type?i._focusin(e):i._submit(e))}}),new o({fallback:"This field is not valid.",loading:"Validating..."}),new r({required:function(e,i){var n=this,r=k(n.value),o=!0;if(i)if(1===i.length){if(f(i[0])){if(n.rules[i[0]]&&!r&&!n.test(e,i[0]))return null}else if(!r&&!t(i[0],n.$el).length)return null}else if("not"===i[0])t.each(i.slice(1),function(){return o=r!==k(this)});else if("from"===i[0]){var a,s=n.$el.find(i[1]);return o=s.filter(function(){var t=n.getField(this);return t&&!!k(t.getValue())}).length>=(i[2]||1),o?r||(a=null):a=u(s[0],n)||!1,t(e).data("_validated_")||s.data("_validated_",1).each(function(){e!==this&&n._validate(this)}).removeData("_validated_"),a}return o&&!!r},integer:function(t,e){var i,n="0|",r="[1-9]\\d*",o=e?e[0]:"*";switch(o){case"+":i=r;break;case"-":i="-"+r;break;case"+0":i=n+r;break;case"-0":i="0|-"+r;break;default:i="0|-?"+r}return i="^(?:"+i+")$",new RegExp(i).test(this.value)||this.messages.integer&&this.messages.integer[o]},match:function(e,i){if(i){var n,r,o,a,s,l,u,c=this,h=!0,f="eq";if(1===i.length?o=i[0]:(f=i[0],o=i[1]),s=p(o),l=c.$el.find(s)[0]){if(u=c.getField(l),n=c.value,r=u.getValue(),c._match||(c.$el.on("valid.field"+v,s,function(){t(e).trigger("validate")}),c._match=u._match=1),!c.required&&""===n&&""===r)return null;if(a=i[2],a&&(/^date(time)?$/i.test(a)?(n=d(n),r=d(r)):"time"===a&&(n=+n.replace(/:/g,""),r=+r.replace(/:/g,""))),"eq"!==f&&!isNaN(+n)&&isNaN(+r))return!0;switch(f){case"lt":h=+n<+r;break;case"lte":h=+n<=+r;break;case"gte":h=+n>=+r;break;case"gt":h=+n>+r;break;case"neq":h=n!==r;break;default:h=n===r}return h||N(c.messages.match)&&c.messages.match[f].replace("{1}",c._getDisplay(l,u.display||o))}}},range:function(t,e){return this.getRangeMsg(this.value,e)},checked:function(t,e){if(h(t)){var i,n,r=this;return t.name?n=r.$el.find('input[name="'+t.name+'"]').filter(function(){var t=this;return!i&&h(t)&&(i=t),!t.disabled&&t.checked}).length:(i=t,n=i.checked),e?r.getRangeMsg(n,e):!!n||u(i,r,"")||r.messages.required||!1}},length:function(t,e){var i=this.value,n=("true"===e[1]?i.replace(T,"xx"):i).length;return this.getRangeMsg(n,e,e[1]?"_2":"")},remote:function(e,i){if(i){var n,r=this,o=M.exec(i[0]),a=r._rules[r._i],s={},l="",u=o[3],c=o[2]||"POST",h=(o[1]||"").toLowerCase();return a.must=!0,(s[e.name]=r.value,i[1]&&t.map(i.slice(1),function(t){var e,i;~t.indexOf("=")?l+="&"+t:(e=t.split(":"),t=k(e[0]),i=k(e[1])||t,s[t]=r.$el.find(p(i)).val())}),s=t.param(s)+l,!r.must&&a.data&&a.data===s)?a.result:("cors"!==h&&/^https?:/.test(u)&&!~u.indexOf(location.host)&&(n="jsonp"),t.ajax({url:u,type:c,data:s,dataType:n}))}},filter:function(t,e){var i=this.value,n=i.replace(e?new RegExp("["+e[0]+"]","gm"):D,"");n!==i&&this.setValue(n)}}),i.config=function(e,i){function n(t,e){"rules"===t?new r(e):"messages"===t?new o(e):t in F?F[t]=e:z[t]=e}N(e)?t.each(e,n):O(e)&&n(e,i)},i.setTheme=function(e,i){N(e)?t.extend(!0,B,e):O(e)&&N(i)&&(B[e]=t.extend(B[e],i))},i.load=function(e){if(e){var n,r,o,a=document,s={},l=a.scripts[0];e.replace(/([^?=&]+)=([^&#]*)/g,function(t,e,i){s[e]=i}),n=s.dir||i.dir,i.css||""===s.css||(r=a.createElement("link"),r.rel="stylesheet",r.href=i.css=n+"jquery.validator.css",l.parentNode.insertBefore(r,l)),!i.local&&~e.indexOf("local")&&""!==s.local&&(i.local=(s.local||a.documentElement.lang||"en").replace("_","-"),i.pending=1,r=a.createElement("script"),r.src=n+"local/"+i.local+".js",o="onload"in r?"onload":"onreadystatechange",r[o]=function(){r.readyState&&!/loaded|complete/.test(r.readyState)||(r=r[o]=null,delete i.pending,t(window).triggerHandler("validatorready"))},l.parentNode.insertBefore(r,l))}},function(){for(var t,e,n=document.scripts,r=n.length,o=/(.*validator(?:\.min)?.js)(\?.*(?:local|css|dir)(?:=[\w\-]*)?)?/;r--&&!e;)t=n[r],e=(t.hasAttribute?t.src:t.getAttribute("src",4)||"").match(o);e&&(i.dir=e[1].split("/").slice(0,-1).join("/")+"/",i.load(e[2]))}(),t[m]=i}),function(t){"object"==typeof module&&module.exports?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){t.validator.config({rules:{digits:[/^\d+$/,"请填写数字"],letters:[/^[a-z]+$/i,"请填写字母"],date:[/^\d{4}-\d{2}-\d{2}$/,"请填写有效的日期,格式:yyyy-mm-dd"],time:[/^([01]\d|2[0-3])(:[0-5]\d){1,2}$/,"请填写有效的时间,00:00到23:59之间"],email:[/^[\w\+\-]+(\.[\w\+\-]+)*@[a-z\d\-]+(\.[a-z\d\-]+)*\.([a-z]{2,4})$/i,"请填写有效的邮箱"],url:[/^(https?|s?ftp):\/\/\S+$/i,"请填写有效的网址"],qq:[/^[1-9]\d{4,}$/,"请填写有效的QQ号"],IDcard:[/^\d{6}(19|2\d)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)?$/,"请填写正确的身份证号码"],tel:[/^(?:(?:0\d{2,3}[\- ]?[1-9]\d{6,7})|(?:[48]00[\- ]?[1-9]\d{6}))$/,"请填写有效的电话号码"],mobile:[/^1[3-9]\d{9}$/,"请填写有效的手机号"],zipcode:[/^\d{6}$/,"请检查邮政编码格式"],chinese:[/^[\u0391-\uFFE5]+$/,"请填写中文字符"],username:[/^\w{3,12}$/,"请填写3-12位数字、字母、下划线"],password:[/^[\S]{6,16}$/,"请填写6-16位字符,不能包含空格"],accept:function(e,i){if(!i)return!0;var n=i[0],r=t(e).val();return"*"===n||new RegExp(".(?:"+n+")$","i").test(r)||this.renderMsg("只接受{1}后缀的文件",n.replace(/\|/g,","))}},messages:{0:"此处",fallback:"{0}格式不正确",loading:"正在验证...",error:"网络异常",timeout:"请求超时",required:"{0}不能为空",remote:"{0}已被使用",integer:{"*":"请填写整数","+":"请填写正整数","+0":"请填写正整数或0","-":"请填写负整数","-0":"请填写负整数或0"},match:{eq:"{0}与{1}不一致",neq:"{0}与{1}不能相同",lt:"{0}必须小于{1}",gt:"{0}必须大于{1}",lte:"{0}不能大于{1}",gte:"{0}不能小于{1}"},range:{rg:"请填写{1}到{2}的数",gte:"请填写不小于{1}的数",lte:"请填写最大{1}的数",gtlt:"请填写{1}到{2}之间的数",gt:"请填写大于{1}的数",lt:"请填写小于{1}的数"},checked:{eq:"请选择{1}项",rg:"请选择{1}到{2}项",gte:"请至少选择{1}项",lte:"请最多选择{1}项"},length:{eq:"请填写{1}个字符",rg:"请填写{1}到{2}个字符",gte:"请至少填写{1}个字符",lte:"请最多填写{1}个字符",eq_2:"",rg_2:"",gte_2:"",lte_2:""}}});var e='<span class="n-arrow"><b>◆</b><i>◆</i></span>';t.validator.setTheme({simple_right:{formClass:"n-simple",msgClass:"n-right"},simple_bottom:{formClass:"n-simple",msgClass:"n-bottom"},yellow_top:{formClass:"n-yellow",msgClass:"n-top",msgArrow:e},yellow_right:{formClass:"n-yellow",msgClass:"n-right",msgArrow:e},yellow_right_effect:{formClass:"n-yellow",msgClass:"n-right",msgArrow:e,msgShow:function(t,e){var i=t.children();i.is(":animated")||("error"===e?i.css({left:"20px",opacity:0}).delay(100).show().stop().animate({left:"-4px",opacity:1},150).animate({left:"3px"},80).animate({left:0},80):i.css({left:0,opacity:1}).fadeIn(200))},msgHide:function(t,e){t.children().stop().delay(100).show().animate({left:"20px",opacity:0},300,function(){t.hide()})}}})}),function(t,e){var i=function(){var t={};return e.apply(t,arguments),t.moxie};"function"==typeof define&&define.amd?define("moxie",[],i):"object"==typeof module&&module.exports?module.exports=i():t.moxie=i()}(this||window,function(){!function(t,e){"use strict";function i(t,e){for(var i,n=[],r=0;r<t.length;++r){if(!(i=a[t[r]]||o(t[r])))throw"module definition dependecy not found: "+t[r];n.push(i)}e.apply(null,n)}function n(t,n,r){if("string"!=typeof t)throw"invalid module definition, module id must be defined and be a string";if(n===e)throw"invalid module definition, dependencies must be specified";if(r===e)throw"invalid module definition, definition function must be specified";i(n,function(){a[t]=r.apply(null,arguments)})}function r(t){return!!a[t]}function o(e){for(var i=t,n=e.split(/[.\/]/),r=0;r<n.length;++r){if(!i[n[r]])return;i=i[n[r]]}return i}var a={};n("moxie/core/utils/Basic",[],function(){function t(t){return void 0===t?"undefined":null===t?"null":t.nodeType?"node":{}.toString.call(t).match(/\s([a-z|A-Z]+)/)[1].toLowerCase()}function e(){return s(!1,!1,arguments)}function i(){return s(!0,!1,arguments)}function n(){return s(!1,!0,arguments)}function r(){return s(!0,!0,arguments)}function o(e){switch(t(e)){case"array":return s(!1,!0,[[],e]);case"object":return s(!1,!0,[{},e]);default:return e}}function a(i){switch(t(i)){case"array":return Array.prototype.slice.call(i);case"object":return e({},i)}return i}function s(e,i,n){var r,o=n[0];return u(n,function(n,l){l>0&&u(n,function(n,l){var u=-1!==f(t(n),["array","object"]);return!!(n===r||e&&o[l]===r)||(u&&i&&(n=a(n)),void(t(o[l])===t(n)&&u?s(e,i,[o[l],n]):o[l]=n))})}),o}function l(t,e){function i(){this.constructor=t}for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.parent=e.prototype,t}function u(t,e){var i,n,r,o;if(t){try{i=t.length}catch(t){i=o}if(i===o||"number"!=typeof i){for(n in t)if(t.hasOwnProperty(n)&&!1===e(t[n],n))return}else for(r=0;i>r;r++)if(!1===e(t[r],r))return}}function c(e){var i;if(!e||"object"!==t(e))return!0;for(i in e)return!1;return!0}function h(e,i){function n(o){"function"===t(e[o])&&e[o](function(t){++o<r&&!t?n(o):i(t)})}var r=e.length;"function"!==t(i)&&(i=function(){}),e&&e.length||i(),n(0)}function d(t,e){var i=0,n=t.length,r=new Array(n);u(t,function(t,o){t(function(t){if(t)return e(t);var a=[].slice.call(arguments);a.shift(),r[o]=a,++i===n&&(r.unshift(null),e.apply(this,r))})})}function f(t,e){if(e){if(Array.prototype.indexOf)return Array.prototype.indexOf.call(e,t);for(var i=0,n=e.length;n>i;i++)if(e[i]===t)return i}return-1}function p(e,i){var n=[];"array"!==t(e)&&(e=[e]),"array"!==t(i)&&(i=[i]);for(var r in e)-1===f(e[r],i)&&n.push(e[r]);return!!n.length&&n}function g(t,e){var i=[];return u(t,function(t){-1!==f(t,e)&&i.push(t)}),i.length?i:null}function m(t){var e,i=[];for(e=0;e<t.length;e++)i[e]=t[e];return i}function v(t){return t?String.prototype.trim?String.prototype.trim.call(t):t.toString().replace(/^\s*/,"").replace(/\s*$/,""):t}function y(t){if("string"!=typeof t)return t;var e,i={t:1099511627776,g:1073741824,m:1048576,k:1024};return t=/^([0-9\.]+)([tmgk]?)$/.exec(t.toLowerCase().replace(/[^0-9\.tmkg]/g,"")),e=t[2],t=+t[1],i.hasOwnProperty(e)&&(t*=i[e]),Math.floor(t)}function x(t){var e=[].slice.call(arguments,1);return t.replace(/%([a-z])/g,function(t,i){var n=e.shift();switch(i){case"s":return n+"";case"d":return parseInt(n,10);case"f":return parseFloat(n);case"c":return"";default:return n}})}function _(t,e){var i=this;setTimeout(function(){t.call(i)},e||1)}return{guid:function(){var t=0;return function(e){var i,n=(new Date).getTime().toString(32);for(i=0;5>i;i++)n+=Math.floor(65535*Math.random()).toString(32);return(e||"o_")+n+(t++).toString(32)}}(),typeOf:t,extend:e,extendIf:i,extendImmutable:n,extendImmutableIf:r,clone:o,inherit:l,each:u,isEmptyObj:c,inSeries:h,inParallel:d,inArray:f,arrayDiff:p,arrayIntersect:g,toArray:m,trim:v,sprintf:x,parseSizeStr:y,delay:_}}),n("moxie/core/utils/Encode",[],function(){var t=function(t){return unescape(encodeURIComponent(t))},e=function(t){return decodeURIComponent(escape(t))},i=function(t,i){if("function"==typeof window.atob)return i?e(window.atob(t)):window.atob(t);var n,r,o,a,s,l,u,c,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=0,f=0,p="",g=[];if(!t)return t;t+="";do{a=h.indexOf(t.charAt(d++)),s=h.indexOf(t.charAt(d++)),l=h.indexOf(t.charAt(d++)),u=h.indexOf(t.charAt(d++)),c=a<<18|s<<12|l<<6|u,n=255&c>>16,r=255&c>>8,o=255&c,g[f++]=64==l?String.fromCharCode(n):64==u?String.fromCharCode(n,r):String.fromCharCode(n,r,o)}while(d<t.length);return p=g.join(""),i?e(p):p},n=function(e,i){if(i&&(e=t(e)),"function"==typeof window.btoa)return window.btoa(e);var n,r,o,a,s,l,u,c,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=0,f=0,p="",g=[];if(!e)return e;do{n=e.charCodeAt(d++),r=e.charCodeAt(d++),o=e.charCodeAt(d++),c=n<<16|r<<8|o,a=63&c>>18,s=63&c>>12,l=63&c>>6,u=63&c,g[f++]=h.charAt(a)+h.charAt(s)+h.charAt(l)+h.charAt(u)}while(d<e.length);p=g.join("");var m=e.length%3;return(m?p.slice(0,m-3):p)+"===".slice(m||3)};return{utf8_encode:t,utf8_decode:e,atob:i,btoa:n}}),n("moxie/core/utils/Env",["moxie/core/utils/Basic"],function(t){function i(t,e,i){var n=0,r=0,o=0,a={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},s=function(t){return t=(""+t).replace(/[_\-+]/g,"."),t=t.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,"."),t.length?t.split("."):[-8]},l=function(t){return t?isNaN(t)?a[t]||-7:parseInt(t,10):0};for(t=s(t),e=s(e),r=Math.max(t.length,e.length),n=0;r>n;n++)if(t[n]!=e[n]){if(t[n]=l(t[n]),e[n]=l(e[n]),t[n]<e[n]){o=-1;break}if(t[n]>e[n]){o=1 ;break}}if(!i)return o;switch(i){case">":case"gt":return o>0;case">=":case"ge":return o>=0;case"<=":case"le":return 0>=o;case"==":case"=":case"eq":return 0===o;case"<>":case"!=":case"ne":return 0!==o;case"":case"<":case"lt":return 0>o;default:return null}}var n=function(t){var e="function",i="object",n="name",r="version",o={has:function(t,e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())},lowerize:function(t){return t.toLowerCase()}},a={rgx:function(){for(var n,r,o,a,s,l,u,c=0,h=arguments;c<h.length;c+=2){var d=h[c],f=h[c+1];if(void 0===n){n={};for(a in f)s=f[a],typeof s===i?n[s[0]]=t:n[s]=t}for(r=o=0;r<d.length;r++)if(l=d[r].exec(this.getUA())){for(a=0;a<f.length;a++)u=l[++o],s=f[a],typeof s===i&&s.length>0?2==s.length?n[s[0]]=typeof s[1]==e?s[1].call(this,u):s[1]:3==s.length?n[s[0]]=typeof s[1]!==e||s[1].exec&&s[1].test?u?u.replace(s[1],s[2]):t:u?s[1].call(this,u,s[2]):t:4==s.length&&(n[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):t):n[s]=u||t;break}if(l)break}return n},str:function(e,n){for(var r in n)if(typeof n[r]===i&&n[r].length>0){for(var a=0;a<n[r].length;a++)if(o.has(n[r][a],e))return"?"===r?t:r}else if(o.has(n[r],e))return"?"===r?t:r;return e}},s={browser:{oldsafari:{major:{1:["/8","/1","/3"],2:"/4","?":"/"},version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",RT:"ARM"}}}},l={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[n,r],[/\s(opr)\/([\w\.]+)/i],[[n,"Opera"],r],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi)\/([\w\.-]+)/i],[n,r],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[n,"IE"],r],[/(edge)\/((\d+)?[\w\.]+)/i],[n,r],[/(yabrowser)\/([\w\.]+)/i],[[n,"Yandex"],r],[/(comodo_dragon)\/([\w\.]+)/i],[[n,/_/g," "],r],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i,/(uc\s?browser|qqbrowser)[\/\s]?([\w\.]+)/i],[n,r],[/(dolfin)\/([\w\.]+)/i],[[n,"Dolphin"],r],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[n,"Chrome"],r],[/XiaoMi\/MiuiBrowser\/([\w\.]+)/i],[r,[n,"MIUI Browser"]],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)/i],[r,[n,"Android Browser"]],[/FBAV\/([\w\.]+);/i],[r,[n,"Facebook"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[r,[n,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[r,n],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[n,[r,a.str,s.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[n,r],[/(navigator|netscape)\/([\w\.-]+)/i],[[n,"Netscape"],r],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[n,r]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[r,[n,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[n,r],[/rv\:([\w\.]+).*(gecko)/i],[r,n]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[n,r],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[n,[r,a.str,s.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[n,"Windows"],[r,a.str,s.os.windows.version]],[/\((bb)(10);/i],[[n,"BlackBerry"],r],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\os|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[n,r],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[n,"Symbian"],r],[/\((series40);/i],[n],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[n,"Firefox OS"],r],[/(nintendo|playstation)\s([wids3portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[n,r],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[n,"Chromium OS"],r],[/(sunos)\s?([\w\.]+\d)*/i],[[n,"Solaris"],r],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[n,r],[/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i],[[n,"iOS"],[r,/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[n,"Mac OS"],[r,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(haiku)\s(\w+)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[n,r]]};return function(t){var e=t||(window&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:"");this.getBrowser=function(){return a.rgx.apply(this,l.browser)},this.getEngine=function(){return a.rgx.apply(this,l.engine)},this.getOS=function(){return a.rgx.apply(this,l.os)},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS()}},this.getUA=function(){return e},this.setUA=function(t){return e=t,this},this.setUA(e)}}(),r=function(){var i={access_global_ns:function(){return!!window.moxie},define_property:!1,create_canvas:function(){var t=document.createElement("canvas"),e=!(!t.getContext||!t.getContext("2d"));return i.create_canvas=e,e},return_response_type:function(e){try{if(-1!==t.inArray(e,["","text","document"]))return!0;if(window.XMLHttpRequest){var i=new XMLHttpRequest;if(i.open("get","/"),"responseType"in i)return i.responseType=e,i.responseType===e}}catch(t){}return!1},use_blob_uri:function(){var t=window.URL;return i.use_blob_uri=t&&"createObjectURL"in t&&"revokeObjectURL"in t&&("IE"!==a.browser||a.verComp(a.version,"11.0.46",">=")),i.use_blob_uri},use_data_uri:function(){var t=new Image;return t.onload=function(){i.use_data_uri=1===t.width&&1===t.height},setTimeout(function(){t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP8AAAAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="},1),!1}(),use_data_uri_over32kb:function(){return i.use_data_uri&&("IE"!==a.browser||a.version>=9)},use_data_uri_of:function(t){return i.use_data_uri&&33e3>t||i.use_data_uri_over32kb()},use_fileinput:function(){if(navigator.userAgent.match(/(Android (1.0|1.1|1.5|1.6|2.0|2.1))|(Windows Phone (OS 7|8.0))|(XBLWP)|(ZuneWP)|(w(eb)?OSBrowser)|(webOS)|(Kindle\/(1.0|2.0|2.5|3.0))/))return!1;var t=document.createElement("input");return t.setAttribute("type","file"),i.use_fileinput=!t.disabled},use_webgl:function(){var t,n=document.createElement("canvas"),r=null;try{r=n.getContext("webgl")||n.getContext("experimental-webgl")}catch(t){}return r||(r=null),t=!!r,i.use_webgl=t,n=e,t}};return function(e){var n=[].slice.call(arguments);return n.shift(),"function"===t.typeOf(i[e])?i[e].apply(this,n):!!i[e]}}(),o=(new n).getResult(),a={can:r,uaParser:n,browser:o.browser.name,version:o.browser.version,os:o.os.name,osVersion:o.os.version,verComp:i,swf_url:"../flash/Moxie.swf",xap_url:"../silverlight/Moxie.xap",global_event_dispatcher:"moxie.core.EventTarget.instance.dispatchEvent"};return a.OS=a.os,a}),n("moxie/core/Exceptions",["moxie/core/utils/Basic"],function(t){function e(t,e){var i;for(i in t)if(t[i]===e)return i;return null}return{RuntimeError:function(){function i(t,i){this.code=t,this.name=e(n,t),this.message=this.name+(i||": RuntimeError "+this.code)}var n={NOT_INIT_ERR:1,EXCEPTION_ERR:3,NOT_SUPPORTED_ERR:9,JS_ERR:4};return t.extend(i,n),i.prototype=Error.prototype,i}(),OperationNotAllowedException:function(){function e(t){this.code=t,this.name="OperationNotAllowedException"}return t.extend(e,{NOT_ALLOWED_ERR:1}),e.prototype=Error.prototype,e}(),ImageError:function(){function i(t){this.code=t,this.name=e(n,t),this.message=this.name+": ImageError "+this.code}var n={WRONG_FORMAT:1,MAX_RESOLUTION_ERR:2,INVALID_META_ERR:3};return t.extend(i,n),i.prototype=Error.prototype,i}(),FileException:function(){function i(t){this.code=t,this.name=e(n,t),this.message=this.name+": FileException "+this.code}var n={NOT_FOUND_ERR:1,SECURITY_ERR:2,ABORT_ERR:3,NOT_READABLE_ERR:4,ENCODING_ERR:5,NO_MODIFICATION_ALLOWED_ERR:6,INVALID_STATE_ERR:7,SYNTAX_ERR:8};return t.extend(i,n),i.prototype=Error.prototype,i}(),DOMException:function(){function i(t){this.code=t,this.name=e(n,t),this.message=this.name+": DOMException "+this.code}var n={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25};return t.extend(i,n),i.prototype=Error.prototype,i}(),EventException:function(){function e(t){this.code=t,this.name="EventException"}return t.extend(e,{UNSPECIFIED_EVENT_TYPE_ERR:0}),e.prototype=Error.prototype,e}()}}),n("moxie/core/utils/Dom",["moxie/core/utils/Env"],function(t){var e=function(t){return"string"!=typeof t?t:document.getElementById(t)},i=function(t,e){return!!t.className&&new RegExp("(^|\\s+)"+e+"(\\s+|$)").test(t.className)},n=function(t,e){i(t,e)||(t.className=t.className?t.className.replace(/\s+$/,"")+" "+e:e)},r=function(t,e){if(t.className){var i=new RegExp("(^|\\s+)"+e+"(\\s+|$)");t.className=t.className.replace(i,function(t,e,i){return" "===e&&" "===i?" ":""})}},o=function(t,e){return t.currentStyle?t.currentStyle[e]:window.getComputedStyle?window.getComputedStyle(t,null)[e]:void 0},a=function(e,i){function n(t){var e,i,n=0,r=0;return t&&(i=t.getBoundingClientRect(),e="CSS1Compat"===u.compatMode?u.documentElement:u.body,n=i.left+e.scrollLeft,r=i.top+e.scrollTop),{x:n,y:r}}var r,o,a,s=0,l=0,u=document;if(e=e,i=i||u.body,e&&e.getBoundingClientRect&&"IE"===t.browser&&(!u.documentMode||u.documentMode<8))return o=n(e),a=n(i),{x:o.x-a.x,y:o.y-a.y};for(r=e;r&&r!=i&&r.nodeType;)s+=r.offsetLeft||0,l+=r.offsetTop||0,r=r.offsetParent;for(r=e.parentNode;r&&r!=i&&r.nodeType;)s-=r.scrollLeft||0,l-=r.scrollTop||0,r=r.parentNode;return{x:s,y:l}};return{get:e,hasClass:i,addClass:n,removeClass:r,getStyle:o,getPos:a,getSize:function(t){return{w:t.offsetWidth||t.clientWidth,h:t.offsetHeight||t.clientHeight}}}}),n("moxie/core/EventTarget",["moxie/core/utils/Env","moxie/core/Exceptions","moxie/core/utils/Basic"],function(t,e,i){function n(){this.uid=i.guid()}var r={};return i.extend(n.prototype,{init:function(){this.uid||(this.uid=i.guid("uid_"))},addEventListener:function(t,e,n,o){var a,s=this;return this.hasOwnProperty("uid")||(this.uid=i.guid("uid_")),t=i.trim(t),/\s/.test(t)?void i.each(t.split(/\s+/),function(t){s.addEventListener(t,e,n,o)}):(t=t.toLowerCase(),n=parseInt(n,10)||0,a=r[this.uid]&&r[this.uid][t]||[],a.push({fn:e,priority:n,scope:o||this}),r[this.uid]||(r[this.uid]={}),void(r[this.uid][t]=a))},hasEventListener:function(t){var e;return t?(t=t.toLowerCase(),e=r[this.uid]&&r[this.uid][t]):e=r[this.uid],e||!1},removeEventListener:function(t,e){var n,o,a=this;if(t=t.toLowerCase(),/\s/.test(t))return void i.each(t.split(/\s+/),function(t){a.removeEventListener(t,e)});if(n=r[this.uid]&&r[this.uid][t]){if(e){for(o=n.length-1;o>=0;o--)if(n[o].fn===e){n.splice(o,1);break}}else n=[];n.length||(delete r[this.uid][t],i.isEmptyObj(r[this.uid])&&delete r[this.uid])}},removeAllEventListeners:function(){r[this.uid]&&delete r[this.uid]},dispatchEvent:function(t){var n,o,a,s,l,u={},c=!0;if("string"!==i.typeOf(t)){if(s=t,"string"!==i.typeOf(s.type))throw new e.EventException(e.EventException.UNSPECIFIED_EVENT_TYPE_ERR);t=s.type,s.total!==l&&s.loaded!==l&&(u.total=s.total,u.loaded=s.loaded),u.async=s.async||!1}if(-1!==t.indexOf("::")?function(e){n=e[0],t=e[1]}(t.split("::")):n=this.uid,t=t.toLowerCase(),o=r[n]&&r[n][t]){o.sort(function(t,e){return e.priority-t.priority}),a=[].slice.call(arguments),a.shift(),u.type=t,a.unshift(u);var h=[];i.each(o,function(t){a[0].target=t.scope,u.async?h.push(function(e){setTimeout(function(){e(!1===t.fn.apply(t.scope,a))},1)}):h.push(function(e){e(!1===t.fn.apply(t.scope,a))})}),h.length&&i.inSeries(h,function(t){c=!t})}return c},bindOnce:function(t,e,i,n){var r=this;r.bind.call(this,t,function i(){return r.unbind(t,i),e.apply(this,arguments)},i,n)},bind:function(){this.addEventListener.apply(this,arguments)},unbind:function(){this.removeEventListener.apply(this,arguments)},unbindAll:function(){this.removeAllEventListeners.apply(this,arguments)},trigger:function(){return this.dispatchEvent.apply(this,arguments)},handleEventProps:function(t){var e=this;this.bind(t.join(" "),function(t){var e="on"+t.type.toLowerCase();"function"===i.typeOf(this[e])&&this[e].apply(this,arguments)}),i.each(t,function(t){t="on"+t.toLowerCase(t),"undefined"===i.typeOf(e[t])&&(e[t]=null)})}}),n.instance=new n,n}),n("moxie/runtime/Runtime",["moxie/core/utils/Env","moxie/core/utils/Basic","moxie/core/utils/Dom","moxie/core/EventTarget"],function(t,e,i,n){function r(t,n,o,s,l){var u,c=this,h=e.guid(n+"_"),d=l||"browser";t=t||{},a[h]=this,o=e.extend({access_binary:!1,access_image_binary:!1,display_media:!1,do_cors:!1,drag_and_drop:!1,filter_by_extension:!0,resize_image:!1,report_upload_progress:!1,return_response_headers:!1,return_response_type:!1,return_status_code:!0,send_custom_headers:!1,select_file:!1,select_folder:!1,select_multiple:!0,send_binary_string:!1,send_browser_cookies:!0,send_multipart:!0,slice_blob:!1,stream_upload:!1,summon_file_dialog:!1,upload_filesize:!0,use_http_method:!0},o),t.preferred_caps&&(d=r.getMode(s,t.preferred_caps,d)),u=function(){var t={};return{exec:function(e,i,n,r){return u[i]&&(t[e]||(t[e]={context:this,instance:new u[i]}),t[e].instance[n])?t[e].instance[n].apply(this,r):void 0},removeInstance:function(e){delete t[e]},removeAllInstances:function(){var i=this;e.each(t,function(t,n){"function"===e.typeOf(t.instance.destroy)&&t.instance.destroy.call(t.context),i.removeInstance(n)})}}}(),e.extend(this,{initialized:!1,uid:h,type:n,mode:r.getMode(s,t.required_caps,d),shimid:h+"_container",clients:0,options:t,can:function(t,i){var n=arguments[2]||o;if("string"===e.typeOf(t)&&"undefined"===e.typeOf(i)&&(t=r.parseCaps(t)),"object"===e.typeOf(t)){for(var a in t)if(!this.can(a,t[a],n))return!1;return!0}return"function"===e.typeOf(n[t])?n[t].call(this,i):i===n[t]},getShimContainer:function(){var t,n=i.get(this.shimid);return n||(t=i.get(this.options.container)||document.body,n=document.createElement("div"),n.id=this.shimid,n.className="moxie-shim moxie-shim-"+this.type,e.extend(n.style,{position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),t.appendChild(n),t=null),n},getShim:function(){return u},shimExec:function(t,e){var i=[].slice.call(arguments,2);return c.getShim().exec.call(this,this.uid,t,e,i)},exec:function(t,e){var i=[].slice.call(arguments,2);return c[t]&&c[t][e]?c[t][e].apply(this,i):c.shimExec.apply(this,arguments)},destroy:function(){if(c){var t=i.get(this.shimid);t&&t.parentNode.removeChild(t),u&&u.removeAllInstances(),this.unbindAll(),delete a[this.uid],this.uid=null,h=c=u=t=null}}}),this.mode&&t.required_caps&&!this.can(t.required_caps)&&(this.mode=!1)}var o={},a={};return r.order="html5,flash,silverlight,html4",r.getRuntime=function(t){return!!a[t]&&a[t]},r.addConstructor=function(t,e){e.prototype=n.instance,o[t]=e},r.getConstructor=function(t){return o[t]||null},r.getInfo=function(t){var e=r.getRuntime(t);return e?{uid:e.uid,type:e.type,mode:e.mode,can:function(){return e.can.apply(e,arguments)}}:null},r.parseCaps=function(t){var i={};return"string"!==e.typeOf(t)?t||{}:(e.each(t.split(","),function(t){i[t]=!0}),i)},r.can=function(t,e){var i,n,o=r.getConstructor(t);return!!o&&(i=new o({required_caps:e}),n=i.mode,i.destroy(),!!n)},r.thatCan=function(t,e){var i=(e||r.order).split(/\s*,\s*/);for(var n in i)if(r.can(i[n],t))return i[n];return null},r.getMode=function(t,i,n){var r=null;if("undefined"===e.typeOf(n)&&(n="browser"),i&&!e.isEmptyObj(t)){if(e.each(i,function(i,n){if(t.hasOwnProperty(n)){var o=t[n](i);if("string"==typeof o&&(o=[o]),r){if(!(r=e.arrayIntersect(r,o)))return r=!1}else r=o}}),r)return-1!==e.inArray(n,r)?n:r[0];if(!1===r)return!1}return n},r.getGlobalEventTarget=function(){if(/^moxie\./.test(t.global_event_dispatcher)&&!t.can("access_global_ns")){var i=e.guid("moxie_event_target_");window[i]=function(t,e){n.instance.dispatchEvent(t,e)},t.global_event_dispatcher=i}return t.global_event_dispatcher},r.capTrue=function(){return!0},r.capFalse=function(){return!1},r.capTest=function(t){return function(){return!!t}},r}),n("moxie/runtime/RuntimeClient",["moxie/core/utils/Env","moxie/core/Exceptions","moxie/core/utils/Basic","moxie/runtime/Runtime"],function(t,e,i,n){return function(){var t;i.extend(this,{connectRuntime:function(r){function o(i){var a,l;return i.length?(a=i.shift().toLowerCase(),(l=n.getConstructor(a))?(t=new l(r),t.bind("Init",function(){t.initialized=!0,setTimeout(function(){t.clients++,s.ruid=t.uid,s.trigger("RuntimeInit",t)},1)}),t.bind("Error",function(){t.destroy(),o(i)}),t.bind("Exception",function(t,i){var n=i.name+"(#"+i.code+")"+(i.message?", from: "+i.message:"");s.trigger("RuntimeError",new e.RuntimeError(e.RuntimeError.EXCEPTION_ERR,n))}),t.mode?void t.init():void t.trigger("Error")):void o(i)):(s.trigger("RuntimeError",new e.RuntimeError(e.RuntimeError.NOT_INIT_ERR)),void(t=null))}var a,s=this;if("string"===i.typeOf(r)?a=r:"string"===i.typeOf(r.ruid)&&(a=r.ruid),a){if(t=n.getRuntime(a))return s.ruid=a,t.clients++,t;throw new e.RuntimeError(e.RuntimeError.NOT_INIT_ERR)}o((r.runtime_order||n.order).split(/\s*,\s*/))},disconnectRuntime:function(){t&&--t.clients<=0&&t.destroy(),t=null},getRuntime:function(){return t&&t.uid?t:t=null},exec:function(){return t?t.exec.apply(this,arguments):null},can:function(e){return!!t&&t.can(e)}})}}),n("moxie/file/Blob",["moxie/core/utils/Basic","moxie/core/utils/Encode","moxie/runtime/RuntimeClient"],function(t,e,i){function n(o,a){function s(e,i,o){var a,s=r[this.uid];return"string"===t.typeOf(s)&&s.length?(a=new n(null,{type:o,size:i-e}),a.detach(s.substr(e,a.size)),a):null}i.call(this),o&&this.connectRuntime(o),a?"string"===t.typeOf(a)&&(a={data:a}):a={},t.extend(this,{uid:a.uid||t.guid("uid_"),ruid:o,size:a.size||0,type:a.type||"",slice:function(t,e,i){return this.isDetached()?s.apply(this,arguments):this.getRuntime().exec.call(this,"Blob","slice",this.getSource(),t,e,i)},getSource:function(){return r[this.uid]?r[this.uid]:null},detach:function(t){if(this.ruid&&(this.getRuntime().exec.call(this,"Blob","destroy"),this.disconnectRuntime(),this.ruid=null),t=t||"","data:"==t.substr(0,5)){var i=t.indexOf(";base64,");this.type=t.substring(5,i),t=e.atob(t.substring(i+8))}this.size=t.length,r[this.uid]=t},isDetached:function(){return!this.ruid&&"string"===t.typeOf(r[this.uid])},destroy:function(){this.detach(),delete r[this.uid]}}),a.data?this.detach(a.data):r[this.uid]=a}var r={};return n}),n("moxie/core/I18n",["moxie/core/utils/Basic"],function(t){var e={};return{addI18n:function(i){return t.extend(e,i)},translate:function(t){return e[t]||t},_:function(t){return this.translate(t)},sprintf:function(e){var i=[].slice.call(arguments,1);return e.replace(/%[a-z]/g,function(){var e=i.shift();return"undefined"!==t.typeOf(e)?e:""})}}}),n("moxie/core/utils/Mime",["moxie/core/utils/Basic","moxie/core/I18n"],function(t,e){var i={},n={},r=function(t){var e,r,o,a=t.split(/,/);for(e=0;e<a.length;e+=2){for(o=a[e+1].split(/ /),r=0;r<o.length;r++)i[o[r]]=a[e];n[a[e]]=o}},o=function(e,i){var n,r,o,a,s=[];for(r=0;r<e.length;r++)for(n=e[r].extensions.toLowerCase().split(/\s*,\s*/),o=0;o<n.length;o++){if("*"===n[o])return[];if(a=s[n[o]],i&&/^\w+$/.test(n[o]))s.push("."+n[o]);else if(a&&-1===t.inArray(a,s))s.push(a);else if(!a)return[]}return s},a=function(e){var i=[];return t.each(e,function(e){if("*"===(e=e.toLowerCase()))return i=[],!1;var r=e.match(/^(\w+)\/(\*|\w+)$/);r&&("*"===r[2]?t.each(n,function(t,e){new RegExp("^"+r[1]+"/").test(e)&&[].push.apply(i,n[e])}):n[e]&&[].push.apply(i,n[e]))}),i},s=function(i){var n=[],r=[];return"string"===t.typeOf(i)&&(i=t.trim(i).split(/\s*,\s*/)),r=a(i),n.push({title:e.translate("Files"),extensions:r.length?r.join(","):"*"}),n},l=function(t){var e=t&&t.match(/\.([^.]+)$/);return e?e[1].toLowerCase():""},u=function(t){return i[l(t)]||""};return r("application/msword,doc dot,application/pdf,pdf,application/pgp-signature,pgp,application/postscript,ps ai eps,application/rtf,rtf,application/vnd.ms-excel,xls xlb xlt xla,application/vnd.ms-powerpoint,ppt pps pot ppa,application/zip,zip,application/x-shockwave-flash,swf swfl,application/vnd.openxmlformats-officedocument.wordprocessingml.document,docx,application/vnd.openxmlformats-officedocument.wordprocessingml.template,dotx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,xlsx,application/vnd.openxmlformats-officedocument.presentationml.presentation,pptx,application/vnd.openxmlformats-officedocument.presentationml.template,potx,application/vnd.openxmlformats-officedocument.presentationml.slideshow,ppsx,application/x-javascript,js,application/json,json,audio/mpeg,mp3 mpga mpega mp2,audio/x-wav,wav,audio/x-m4a,m4a,audio/ogg,oga ogg,audio/aiff,aiff aif,audio/flac,flac,audio/aac,aac,audio/ac3,ac3,audio/x-ms-wma,wma,image/bmp,bmp,image/gif,gif,image/jpeg,jpg jpeg jpe,image/photoshop,psd,image/png,png,image/svg+xml,svg svgz,image/tiff,tiff tif,text/plain,asc txt text diff log,text/html,htm html xhtml,text/css,css,text/csv,csv,text/rtf,rtf,video/mpeg,mpeg mpg mpe m2v,video/quicktime,qt mov,video/mp4,mp4,video/x-m4v,m4v,video/x-flv,flv,video/x-ms-wmv,wmv,video/avi,avi,video/webm,webm,video/3gpp,3gpp 3gp,video/3gpp2,3g2,video/vnd.rn-realvideo,rv,video/ogg,ogv,video/x-matroska,mkv,application/vnd.oasis.opendocument.formula-template,otf,application/octet-stream,exe"),{mimes:i,extensions:n,addMimeType:r,extList2mimes:o,mimes2exts:a,mimes2extList:s,getFileExtension:l,getFileMime:u}}),n("moxie/file/FileInput",["moxie/core/utils/Basic","moxie/core/utils/Env","moxie/core/utils/Mime","moxie/core/utils/Dom","moxie/core/Exceptions","moxie/core/EventTarget","moxie/core/I18n","moxie/runtime/Runtime","moxie/runtime/RuntimeClient"],function(t,e,i,n,r,o,a,s,l){function u(e){var o,u,h;if(-1!==t.inArray(t.typeOf(e),["string","node"])&&(e={browse_button:e}),!(u=n.get(e.browse_button)))throw new r.DOMException(r.DOMException.NOT_FOUND_ERR);h={accept:[{title:a.translate("All Files"),extensions:"*"}],multiple:!1,required_caps:!1,container:u.parentNode||document.body},e=t.extend({},h,e),"string"==typeof e.required_caps&&(e.required_caps=s.parseCaps(e.required_caps)),"string"==typeof e.accept&&(e.accept=i.mimes2extList(e.accept)),o=n.get(e.container),o||(o=document.body),"static"===n.getStyle(o,"position")&&(o.style.position="relative"),o=u=null,l.call(this),t.extend(this,{uid:t.guid("uid_"),ruid:null,shimid:null,files:null,init:function(){var i=this;i.bind("RuntimeInit",function(r,o){i.ruid=o.uid,i.shimid=o.shimid,i.bind("Ready",function(){i.trigger("Refresh")},999),i.bind("Refresh",function(){var i,r,a,s,l;a=n.get(e.browse_button),s=n.get(o.shimid),a&&(i=n.getPos(a,n.get(e.container)),r=n.getSize(a),l=parseInt(n.getStyle(a,"z-index"),10)||0,s&&t.extend(s.style,{top:i.y+"px",left:i.x+"px",width:r.w+"px",height:r.h+"px",zIndex:l+1})),s=a=null}),o.exec.call(i,"FileInput","init",e)}),i.connectRuntime(t.extend({},e,{required_caps:{select_file:!0}}))},getOption:function(t){return e[t]},setOption:function(t,n){if(e.hasOwnProperty(t)){var o=e[t];switch(t){case"accept":"string"==typeof n&&(n=i.mimes2extList(n));break;case"container":case"required_caps":throw new r.FileException(r.FileException.NO_MODIFICATION_ALLOWED_ERR)}e[t]=n,this.exec("FileInput","setOption",t,n),this.trigger("OptionChanged",t,n,o)}},disable:function(e){this.getRuntime()&&this.exec("FileInput","disable","undefined"===t.typeOf(e)||e)},refresh:function(){this.trigger("Refresh")},destroy:function(){var e=this.getRuntime();e&&(e.exec.call(this,"FileInput","destroy"),this.disconnectRuntime()),"array"===t.typeOf(this.files)&&t.each(this.files,function(t){t.destroy()}),this.files=null,this.unbindAll()}}),this.handleEventProps(c)}var c=["ready","change","cancel","mouseenter","mouseleave","mousedown","mouseup"];return u.prototype=o.instance,u}),n("moxie/file/File",["moxie/core/utils/Basic","moxie/core/utils/Mime","moxie/file/Blob"],function(t,e,i){function n(n,r){r||(r={}),i.apply(this,arguments),this.type||(this.type=e.getFileMime(r.name));var o;if(r.name)o=r.name.replace(/\\/g,"/"),o=o.substr(o.lastIndexOf("/")+1);else if(this.type){var a=this.type.split("/")[0];o=t.guid((""!==a?a:"file")+"_"),e.extensions[this.type]&&(o+="."+e.extensions[this.type][0])}t.extend(this,{name:o||t.guid("file_"),relativePath:"",lastModifiedDate:r.lastModifiedDate||(new Date).toLocaleString()})}return n.prototype=i.prototype,n}),n("moxie/file/FileDrop",["moxie/core/I18n","moxie/core/utils/Dom","moxie/core/Exceptions","moxie/core/utils/Basic","moxie/core/utils/Env","moxie/file/File","moxie/runtime/RuntimeClient","moxie/core/EventTarget","moxie/core/utils/Mime"],function(t,e,i,n,r,o,a,s,l){function u(i){var r,o=this;"string"==typeof i&&(i={drop_zone:i}),r={accept:[{title:t.translate("All Files"),extensions:"*"}],required_caps:{drag_and_drop:!0}},i="object"==typeof i?n.extend({},r,i):r,i.container=e.get(i.drop_zone)||document.body,"static"===e.getStyle(i.container,"position")&&(i.container.style.position="relative"),"string"==typeof i.accept&&(i.accept=l.mimes2extList(i.accept)),a.call(o),n.extend(o,{uid:n.guid("uid_"),ruid:null,files:null,init:function(){o.bind("RuntimeInit",function(t,e){o.ruid=e.uid,e.exec.call(o,"FileDrop","init",i),o.dispatchEvent("ready")}),o.connectRuntime(i)},destroy:function(){var t=this.getRuntime();t&&(t.exec.call(this,"FileDrop","destroy"),this.disconnectRuntime()),this.files=null,this.unbindAll()}}),this.handleEventProps(c)}var c=["ready","dragenter","dragleave","drop","error"];return u.prototype=s.instance,u}),n("moxie/file/FileReader",["moxie/core/utils/Basic","moxie/core/utils/Encode","moxie/core/Exceptions","moxie/core/EventTarget","moxie/file/Blob","moxie/runtime/RuntimeClient"],function(t,e,i,n,r,o){function a(){function n(t,n){if(this.trigger("loadstart"),this.readyState===a.LOADING)return this.trigger("error",new i.DOMException(i.DOMException.INVALID_STATE_ERR)),void this.trigger("loadend");if(!(n instanceof r))return this.trigger("error",new i.DOMException(i.DOMException.NOT_FOUND_ERR)),void this.trigger("loadend");if(this.result=null,this.readyState=a.LOADING,n.isDetached()){var o=n.getSource();switch(t){case"readAsText":case"readAsBinaryString":this.result=o;break;case"readAsDataURL":this.result="data:"+n.type+";base64,"+e.btoa(o)}this.readyState=a.DONE,this.trigger("load"),this.trigger("loadend")}else this.connectRuntime(n.ruid),this.exec("FileReader","read",t,n)}o.call(this),t.extend(this,{uid:t.guid("uid_"),readyState:a.EMPTY,result:null,error:null,readAsBinaryString:function(t){n.call(this,"readAsBinaryString",t)},readAsDataURL:function(t){n.call(this,"readAsDataURL",t)},readAsText:function(t){n.call(this,"readAsText",t)},abort:function(){this.result=null,-1===t.inArray(this.readyState,[a.EMPTY,a.DONE])&&(this.readyState===a.LOADING&&(this.readyState=a.DONE),this.exec("FileReader","abort"),this.trigger("abort"),this.trigger("loadend"))},destroy:function(){this.abort(),this.exec("FileReader","destroy"),this.disconnectRuntime(),this.unbindAll()}}),this.handleEventProps(s),this.bind("Error",function(t,e){this.readyState=a.DONE,this.error=e},999),this.bind("Load",function(){this.readyState=a.DONE},999)}var s=["loadstart","progress","load","abort","error","loadend"];return a.EMPTY=0,a.LOADING=1,a.DONE=2,a.prototype=n.instance,a}),n("moxie/core/utils/Url",["moxie/core/utils/Basic"],function(t){var e=function(i,n){var r,o=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],a=o.length,s={http:80,https:443},l={},u=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@\/]*):?([^:@\/]*))?@)?(\[[\da-fA-F:]+\]|[^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\\?([^#]*))?(?:#(.*))?)/,c=u.exec(i||""),h=/^\/\/\w/.test(i);switch(t.typeOf(n)){case"undefined":n=e(document.location.href,!1);break;case"string":n=e(n,!1)}for(;a--;)c[a]&&(l[o[a]]=c[a]);if(r=!h&&!l.scheme,(h||r)&&(l.scheme=n.scheme),r){l.host=n.host,l.port=n.port;var d="";/^[^\/]/.test(l.path)&&(d=n.path,d=/\/[^\/]*\.[^\/]*$/.test(d)?d.replace(/\/[^\/]+$/,"/"):d.replace(/\/?$/,"/")),l.path=d+(l.path||"")}return l.port||(l.port=s[l.scheme]||80),l.port=parseInt(l.port,10),l.path||(l.path="/"),delete l.source,l};return{parseUrl:e,resolveUrl:function(t){var i={http:80,https:443},n="object"==typeof t?t:e(t);return n.scheme+"://"+n.host+(n.port!==i[n.scheme]?":"+n.port:"")+n.path+(n.query?n.query:"")},hasSameOrigin:function(t){function i(t){return[t.scheme,t.host,t.port].join("/")}return"string"==typeof t&&(t=e(t)),i(e())===i(t)}}}),n("moxie/runtime/RuntimeTarget",["moxie/core/utils/Basic","moxie/runtime/RuntimeClient","moxie/core/EventTarget"],function(t,e,i){function n(){this.uid=t.guid("uid_"),e.call(this),this.destroy=function(){this.disconnectRuntime(),this.unbindAll()}}return n.prototype=i.instance,n}),n("moxie/file/FileReaderSync",["moxie/core/utils/Basic","moxie/runtime/RuntimeClient","moxie/core/utils/Encode"],function(t,e,i){return function(){function n(t,e){if(!e.isDetached()){var n=this.connectRuntime(e.ruid).exec.call(this,"FileReaderSync","read",t,e);return this.disconnectRuntime(),n}var r=e.getSource();switch(t){case"readAsBinaryString":return r;case"readAsDataURL":return"data:"+e.type+";base64,"+i.btoa(r);case"readAsText":for(var o="",a=0,s=r.length;s>a;a++)o+=String.fromCharCode(r[a]);return o}}e.call(this),t.extend(this,{uid:t.guid("uid_"),readAsBinaryString:function(t){return n.call(this,"readAsBinaryString",t)},readAsDataURL:function(t){return n.call(this,"readAsDataURL",t)},readAsText:function(t){return n.call(this,"readAsText",t)}})}}),n("moxie/xhr/FormData",["moxie/core/Exceptions","moxie/core/utils/Basic","moxie/file/Blob"],function(t,e,i){function n(){var t,n=[];e.extend(this,{append:function(r,o){var a=this,s=e.typeOf(o);o instanceof i?t={name:r,value:o}:"array"===s?(r+="[]",e.each(o,function(t){a.append(r,t)})):"object"===s?e.each(o,function(t,e){a.append(r+"["+e+"]",t)}):"null"===s||"undefined"===s||"number"===s&&isNaN(o)?a.append(r,"false"):n.push({name:r,value:o.toString()})},hasBlob:function(){return!!this.getBlob()},getBlob:function(){return t&&t.value||null},getBlobName:function(){return t&&t.name||null},each:function(i){e.each(n,function(t){i(t.value,t.name)}),t&&i(t.value,t.name)},destroy:function(){t=null,n=[]}})}return n}),n("moxie/xhr/XMLHttpRequest",["moxie/core/utils/Basic","moxie/core/Exceptions","moxie/core/EventTarget","moxie/core/utils/Encode","moxie/core/utils/Url","moxie/runtime/Runtime","moxie/runtime/RuntimeTarget","moxie/file/Blob","moxie/file/FileReaderSync","moxie/xhr/FormData","moxie/core/utils/Env","moxie/core/utils/Mime"],function(t,e,i,n,r,o,a,s,l,u,c,h){function d(){this.uid=t.guid("uid_")}function f(){function i(t,e){ return M.hasOwnProperty(t)?1===arguments.length?c.can("define_property")?M[t]:C[t]:void(c.can("define_property")?M[t]=e:C[t]=e):void 0}function l(e){function n(){S&&(S.destroy(),S=null),s.dispatchEvent("loadend"),s=null}function r(r){S.bind("LoadStart",function(t){i("readyState",f.LOADING),s.dispatchEvent("readystatechange"),s.dispatchEvent(t),N&&s.upload.dispatchEvent(t)}),S.bind("Progress",function(t){i("readyState")!==f.LOADING&&(i("readyState",f.LOADING),s.dispatchEvent("readystatechange")),s.dispatchEvent(t)}),S.bind("UploadProgress",function(t){N&&s.upload.dispatchEvent({type:"progress",lengthComputable:!1,total:t.total,loaded:t.loaded})}),S.bind("Load",function(e){i("readyState",f.DONE),i("status",Number(r.exec.call(S,"XMLHttpRequest","getStatus")||0)),i("statusText",p[i("status")]||""),i("response",r.exec.call(S,"XMLHttpRequest","getResponse",i("responseType"))),~t.inArray(i("responseType"),["text",""])?i("responseText",i("response")):"document"===i("responseType")&&i("responseXML",i("response")),H=r.exec.call(S,"XMLHttpRequest","getAllResponseHeaders"),s.dispatchEvent("readystatechange"),i("status")>0?(N&&s.upload.dispatchEvent(e),s.dispatchEvent(e)):(P=!0,s.dispatchEvent("error")),n()}),S.bind("Abort",function(t){s.dispatchEvent(t),n()}),S.bind("Error",function(t){P=!0,i("readyState",f.DONE),s.dispatchEvent("readystatechange"),L=!0,s.dispatchEvent(t),n()}),r.exec.call(S,"XMLHttpRequest","send",{url:v,method:y,async:D,user:x,password:_,headers:I,mimeType:k,encoding:A,responseType:s.responseType,withCredentials:s.withCredentials,options:B},e)}var s=this;b=(new Date).getTime(),S=new a,"string"==typeof B.required_caps&&(B.required_caps=o.parseCaps(B.required_caps)),B.required_caps=t.extend({},B.required_caps,{return_response_type:s.responseType}),e instanceof u&&(B.required_caps.send_multipart=!0),t.isEmptyObj(I)||(B.required_caps.send_custom_headers=!0),R||(B.required_caps.do_cors=!0),B.ruid?r(S.connectRuntime(B)):(S.bind("RuntimeInit",function(t,e){r(e)}),S.bind("RuntimeError",function(t,e){s.dispatchEvent("RuntimeError",e)}),S.connectRuntime(B))}function m(){i("responseText",""),i("responseXML",null),i("response",null),i("status",0),i("statusText",""),b=w=null}var v,y,x,_,b,w,S,T,C=this,M={timeout:0,readyState:f.UNSENT,withCredentials:!1,status:0,statusText:"",responseType:"",responseXML:null,responseText:null,response:null},D=!0,I={},A=null,k=null,E=!1,O=!1,N=!1,L=!1,P=!1,R=!1,z=null,F=null,B={},H="";t.extend(this,M,{uid:t.guid("uid_"),upload:new d,open:function(o,a,s,l,u){var c;if(!o||!a)throw new e.DOMException(e.DOMException.SYNTAX_ERR);if(/[\u0100-\uffff]/.test(o)||n.utf8_encode(o)!==o)throw new e.DOMException(e.DOMException.SYNTAX_ERR);if(~t.inArray(o.toUpperCase(),["CONNECT","DELETE","GET","HEAD","OPTIONS","POST","PUT","TRACE","TRACK"])&&(y=o.toUpperCase()),~t.inArray(y,["CONNECT","TRACE","TRACK"]))throw new e.DOMException(e.DOMException.SECURITY_ERR);if(a=n.utf8_encode(a),c=r.parseUrl(a),R=r.hasSameOrigin(c),v=r.resolveUrl(a),(l||u)&&!R)throw new e.DOMException(e.DOMException.INVALID_ACCESS_ERR);if(x=l||c.user,_=u||c.pass,!1===(D=s||!0)&&(i("timeout")||i("withCredentials")||""!==i("responseType")))throw new e.DOMException(e.DOMException.INVALID_ACCESS_ERR);E=!D,O=!1,I={},m.call(this),i("readyState",f.OPENED),this.dispatchEvent("readystatechange")},setRequestHeader:function(r,o){var a=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","content-transfer-encoding","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"];if(i("readyState")!==f.OPENED||O)throw new e.DOMException(e.DOMException.INVALID_STATE_ERR);if(/[\u0100-\uffff]/.test(r)||n.utf8_encode(r)!==r)throw new e.DOMException(e.DOMException.SYNTAX_ERR);return r=t.trim(r).toLowerCase(),!~t.inArray(r,a)&&!/^(proxy\-|sec\-)/.test(r)&&(I[r]?I[r]+=", "+o:I[r]=o,!0)},hasRequestHeader:function(t){return t&&I[t.toLowerCase()]||!1},getAllResponseHeaders:function(){return H||""},getResponseHeader:function(e){return e=e.toLowerCase(),P||~t.inArray(e,["set-cookie","set-cookie2"])?null:H&&""!==H&&(T||(T={},t.each(H.split(/\r\n/),function(e){var i=e.split(/:\s+/);2===i.length&&(i[0]=t.trim(i[0]),T[i[0].toLowerCase()]={header:i[0],value:t.trim(i[1])})})),T.hasOwnProperty(e))?T[e].header+": "+T[e].value:null},overrideMimeType:function(n){var r,o;if(~t.inArray(i("readyState"),[f.LOADING,f.DONE]))throw new e.DOMException(e.DOMException.INVALID_STATE_ERR);if(n=t.trim(n.toLowerCase()),/;/.test(n)&&(r=n.match(/^([^;]+)(?:;\scharset\=)?(.*)$/))&&(n=r[1],r[2]&&(o=r[2])),!h.mimes[n])throw new e.DOMException(e.DOMException.SYNTAX_ERR);z=n,F=o},send:function(i,r){if(B="string"===t.typeOf(r)?{ruid:r}:r||{},this.readyState!==f.OPENED||O)throw new e.DOMException(e.DOMException.INVALID_STATE_ERR);if(i instanceof s)B.ruid=i.ruid,k=i.type||"application/octet-stream";else if(i instanceof u){if(i.hasBlob()){var o=i.getBlob();B.ruid=o.ruid,k=o.type||"application/octet-stream"}}else"string"==typeof i&&(A="UTF-8",k="text/plain;charset=UTF-8",i=n.utf8_encode(i));this.withCredentials||(this.withCredentials=B.required_caps&&B.required_caps.send_browser_cookies&&!R),N=!E&&this.upload.hasEventListener(),P=!1,L=!i,E||(O=!0),l.call(this,i)},abort:function(){if(P=!0,E=!1,~t.inArray(i("readyState"),[f.UNSENT,f.OPENED,f.DONE]))i("readyState",f.UNSENT);else{if(i("readyState",f.DONE),O=!1,!S)throw new e.DOMException(e.DOMException.INVALID_STATE_ERR);S.getRuntime().exec.call(S,"XMLHttpRequest","abort",L),L=!0}},destroy:function(){S&&("function"===t.typeOf(S.destroy)&&S.destroy(),S=null),this.unbindAll(),this.upload&&(this.upload.unbindAll(),this.upload=null)}}),this.handleEventProps(g.concat(["readystatechange"])),this.upload.handleEventProps(g)}var p={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"Reserved",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",426:"Upgrade Required",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",510:"Not Extended"};d.prototype=i.instance;var g=["loadstart","progress","abort","error","load","timeout","loadend"];return f.UNSENT=0,f.OPENED=1,f.HEADERS_RECEIVED=2,f.LOADING=3,f.DONE=4,f.prototype=i.instance,f}),n("moxie/runtime/Transporter",["moxie/core/utils/Basic","moxie/core/utils/Encode","moxie/runtime/RuntimeClient","moxie/core/EventTarget"],function(t,e,i,n){function r(){function n(){c=h=0,u=this.result=null}function o(e,i){var n=this;l=i,n.bind("TransportingProgress",function(e){h=e.loaded,c>h&&-1===t.inArray(n.state,[r.IDLE,r.DONE])&&a.call(n)},999),n.bind("TransportingComplete",function(){h=c,n.state=r.DONE,u=null,n.result=l.exec.call(n,"Transporter","getAsBlob",e||"")},999),n.state=r.BUSY,n.trigger("TransportingStarted"),a.call(n)}function a(){var t,i=this,n=c-h;d>n&&(d=n),t=e.btoa(u.substr(h,d)),l.exec.call(i,"Transporter","receive",t,c)}var s,l,u,c,h,d;i.call(this),t.extend(this,{uid:t.guid("uid_"),state:r.IDLE,result:null,transport:function(e,i,r){var a=this;if(r=t.extend({chunk_size:204798},r),(s=r.chunk_size%3)&&(r.chunk_size+=3-s),d=r.chunk_size,n.call(this),u=e,c=e.length,"string"===t.typeOf(r)||r.ruid)o.call(a,i,this.connectRuntime(r));else{var l=function(t,e){a.unbind("RuntimeInit",l),o.call(a,i,e)};this.bind("RuntimeInit",l),this.connectRuntime(r)}},abort:function(){var t=this;t.state=r.IDLE,l&&(l.exec.call(t,"Transporter","clear"),t.trigger("TransportingAborted")),n.call(t)},destroy:function(){this.unbindAll(),l=null,this.disconnectRuntime(),n.call(this)}})}return r.IDLE=0,r.BUSY=1,r.DONE=2,r.prototype=n.instance,r}),n("moxie/image/Image",["moxie/core/utils/Basic","moxie/core/utils/Dom","moxie/core/Exceptions","moxie/file/FileReaderSync","moxie/xhr/XMLHttpRequest","moxie/runtime/Runtime","moxie/runtime/RuntimeClient","moxie/runtime/Transporter","moxie/core/utils/Env","moxie/core/EventTarget","moxie/file/Blob","moxie/file/File","moxie/core/utils/Encode"],function(t,e,i,n,r,o,a,s,l,u,c,h,d){function f(){function n(t){try{return t||(t=this.exec("Image","getInfo")),this.size=t.size,this.width=t.width,this.height=t.height,this.type=t.type,this.meta=t.meta,""===this.name&&(this.name=t.name),!0}catch(t){return this.trigger("error",t.code),!1}}function u(e){var n=t.typeOf(e);try{if(e instanceof f){if(!e.size)throw new i.DOMException(i.DOMException.INVALID_STATE_ERR);g.apply(this,arguments)}else if(e instanceof c){if(!~t.inArray(e.type,["image/jpeg","image/png"]))throw new i.ImageError(i.ImageError.WRONG_FORMAT);m.apply(this,arguments)}else if(-1!==t.inArray(n,["blob","file"]))u.call(this,new h(null,e),arguments[1]);else if("string"===n)"data:"===e.substr(0,5)?u.call(this,new c(null,{data:e}),arguments[1]):v.apply(this,arguments);else{if("node"!==n||"img"!==e.nodeName.toLowerCase())throw new i.DOMException(i.DOMException.TYPE_MISMATCH_ERR);u.call(this,e.src,arguments[1])}}catch(t){this.trigger("error",t.code)}}function g(e,i){var n=this.connectRuntime(e.ruid);this.ruid=n.uid,n.exec.call(this,"Image","loadFromImage",e,"undefined"===t.typeOf(i)||i)}function m(e,i){function n(t){r.ruid=t.uid,t.exec.call(r,"Image","loadFromBlob",e)}var r=this;r.name=e.name||"",e.isDetached()?(this.bind("RuntimeInit",function(t,e){n(e)}),i&&"string"==typeof i.required_caps&&(i.required_caps=o.parseCaps(i.required_caps)),this.connectRuntime(t.extend({required_caps:{access_image_binary:!0,resize_image:!0}},i))):n(this.connectRuntime(e.ruid))}function v(t,e){var i,n=this;i=new r,i.open("get",t),i.responseType="blob",i.onprogress=function(t){n.trigger(t)},i.onload=function(){m.call(n,i.response,!0)},i.onerror=function(t){n.trigger(t)},i.onloadend=function(){i.destroy()},i.bind("RuntimeError",function(t,e){n.trigger("RuntimeError",e)}),i.send(null,e)}a.call(this),t.extend(this,{uid:t.guid("uid_"),ruid:null,name:"",size:0,width:0,height:0,type:"",meta:{},clone:function(){this.load.apply(this,arguments)},load:function(){u.apply(this,arguments)},resize:function(e){var n,r,o=this,a={x:0,y:0,width:o.width,height:o.height},s=t.extendIf({width:o.width,height:o.height,type:o.type||"image/jpeg",quality:90,crop:!1,fit:!0,preserveHeaders:!0,resample:"default",multipass:!0},e);try{if(!o.size)throw new i.DOMException(i.DOMException.INVALID_STATE_ERR);if(o.width>f.MAX_RESIZE_WIDTH||o.height>f.MAX_RESIZE_HEIGHT)throw new i.ImageError(i.ImageError.MAX_RESOLUTION_ERR);if(n=o.meta&&o.meta.tiff&&o.meta.tiff.Orientation||1,-1!==t.inArray(n,[5,6,7,8])){var l=s.width;s.width=s.height,s.height=l}if(s.crop){switch(r=Math.max(s.width/o.width,s.height/o.height),e.fit?(a.width=Math.min(Math.ceil(s.width/r),o.width),a.height=Math.min(Math.ceil(s.height/r),o.height),r=s.width/a.width):(a.width=Math.min(s.width,o.width),a.height=Math.min(s.height,o.height),r=1),"boolean"==typeof s.crop&&(s.crop="cc"),s.crop.toLowerCase().replace(/_/,"-")){case"rb":case"right-bottom":a.x=o.width-a.width,a.y=o.height-a.height;break;case"cb":case"center-bottom":a.x=Math.floor((o.width-a.width)/2),a.y=o.height-a.height;break;case"lb":case"left-bottom":a.x=0,a.y=o.height-a.height;break;case"lt":case"left-top":a.x=0,a.y=0;break;case"ct":case"center-top":a.x=Math.floor((o.width-a.width)/2),a.y=0;break;case"rt":case"right-top":a.x=o.width-a.width,a.y=0;break;case"rc":case"right-center":case"right-middle":a.x=o.width-a.width,a.y=Math.floor((o.height-a.height)/2);break;case"lc":case"left-center":case"left-middle":a.x=0,a.y=Math.floor((o.height-a.height)/2);break;case"cc":case"center-center":case"center-middle":default:a.x=Math.floor((o.width-a.width)/2),a.y=Math.floor((o.height-a.height)/2)}a.x=Math.max(a.x,0),a.y=Math.max(a.y,0)}else(r=Math.min(s.width/o.width,s.height/o.height))>1&&!s.fit&&(r=1);this.exec("Image","resize",a,r,s)}catch(t){o.trigger("error",t.code)}},downsize:function(e){var i,n={width:this.width,height:this.height,type:this.type||"image/jpeg",quality:90,crop:!1,fit:!1,preserveHeaders:!0,resample:"default"};i="object"==typeof e?t.extend(n,e):t.extend(n,{width:arguments[0],height:arguments[1],crop:arguments[2],preserveHeaders:arguments[3]}),this.resize(i)},crop:function(t,e,i){this.downsize(t,e,!0,i)},getAsCanvas:function(){if(!l.can("create_canvas"))throw new i.RuntimeError(i.RuntimeError.NOT_SUPPORTED_ERR);return this.exec("Image","getAsCanvas")},getAsBlob:function(t,e){if(!this.size)throw new i.DOMException(i.DOMException.INVALID_STATE_ERR);return this.exec("Image","getAsBlob",t||"image/jpeg",e||90)},getAsDataURL:function(t,e){if(!this.size)throw new i.DOMException(i.DOMException.INVALID_STATE_ERR);return this.exec("Image","getAsDataURL",t||"image/jpeg",e||90)},getAsBinaryString:function(t,e){var i=this.getAsDataURL(t,e);return d.atob(i.substring(i.indexOf("base64,")+7))},embed:function(n,r){function o(e,r){var o=this;if(l.can("create_canvas")){var c=o.getAsCanvas();if(c)return n.appendChild(c),c=null,o.destroy(),void u.trigger("embedded")}var h=o.getAsDataURL(e,r);if(!h)throw new i.ImageError(i.ImageError.WRONG_FORMAT);if(l.can("use_data_uri_of",h.length))n.innerHTML='<img src="'+h+'" width="'+o.width+'" height="'+o.height+'" alt="" />',o.destroy(),u.trigger("embedded");else{var f=new s;f.bind("TransportingComplete",function(){a=u.connectRuntime(this.result.ruid),u.bind("Embedded",function(){t.extend(a.getShimContainer().style,{top:"0px",left:"0px",width:o.width+"px",height:o.height+"px"}),a=null},999),a.exec.call(u,"ImageView","display",this.result.uid,width,height),o.destroy()}),f.transport(d.atob(h.substring(h.indexOf("base64,")+7)),e,{required_caps:{display_media:!0},runtime_order:"flash,silverlight",container:n})}}var a,u=this,c=t.extend({width:this.width,height:this.height,type:this.type||"image/jpeg",quality:90,fit:!0,resample:"nearest"},r);try{if(!(n=e.get(n)))throw new i.DOMException(i.DOMException.INVALID_NODE_TYPE_ERR);if(!this.size)throw new i.DOMException(i.DOMException.INVALID_STATE_ERR);this.width>f.MAX_RESIZE_WIDTH||(this.height,f.MAX_RESIZE_HEIGHT);var h=new f;return h.bind("Resize",function(){o.call(this,c.type,c.quality)}),h.bind("Load",function(){this.downsize(c)}),this.meta.thumb&&this.meta.thumb.width>=c.width&&this.meta.thumb.height>=c.height?h.load(this.meta.thumb.data):h.clone(this,!1),h}catch(t){this.trigger("error",t.code)}},destroy:function(){this.ruid&&(this.getRuntime().exec.call(this,"Image","destroy"),this.disconnectRuntime()),this.meta&&this.meta.thumb&&this.meta.thumb.data.destroy(),this.unbindAll()}}),this.handleEventProps(p),this.bind("Load Resize",function(){return n.call(this)},999)}var p=["progress","load","error","resize","embedded"];return f.MAX_RESIZE_WIDTH=8192,f.MAX_RESIZE_HEIGHT=8192,f.prototype=u.instance,f}),n("moxie/runtime/html5/Runtime",["moxie/core/utils/Basic","moxie/core/Exceptions","moxie/runtime/Runtime","moxie/core/utils/Env"],function(t,e,i,n){function o(e){var o=this,l=i.capTest,u=i.capTrue,c=t.extend({access_binary:l(window.FileReader||window.File&&window.File.getAsDataURL),access_image_binary:function(){return o.can("access_binary")&&!!s.Image},display_media:l((n.can("create_canvas")||n.can("use_data_uri_over32kb"))&&r("moxie/image/Image")),do_cors:l(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),drag_and_drop:l(function(){var t=document.createElement("div");return("draggable"in t||"ondragstart"in t&&"ondrop"in t)&&("IE"!==n.browser||n.verComp(n.version,9,">"))}()),filter_by_extension:l(function(){return!("Chrome"===n.browser&&n.verComp(n.version,28,"<")||"IE"===n.browser&&n.verComp(n.version,10,"<")||"Safari"===n.browser&&n.verComp(n.version,7,"<")||"Firefox"===n.browser&&n.verComp(n.version,37,"<"))}()),return_response_headers:u,return_response_type:function(t){return!("json"!==t||!window.JSON)||n.can("return_response_type",t)},return_status_code:u,report_upload_progress:l(window.XMLHttpRequest&&(new XMLHttpRequest).upload),resize_image:function(){return o.can("access_binary")&&n.can("create_canvas")},select_file:function(){return n.can("use_fileinput")&&window.File},select_folder:function(){return o.can("select_file")&&("Chrome"===n.browser&&n.verComp(n.version,21,">=")||"Firefox"===n.browser&&n.verComp(n.version,42,">="))},select_multiple:function(){return!(!o.can("select_file")||"Safari"===n.browser&&"Windows"===n.os||"iOS"===n.os&&n.verComp(n.osVersion,"7.0.0",">")&&n.verComp(n.osVersion,"8.0.0","<"))},send_binary_string:l(window.XMLHttpRequest&&((new XMLHttpRequest).sendAsBinary||window.Uint8Array&&window.ArrayBuffer)),send_custom_headers:l(window.XMLHttpRequest),send_multipart:function(){return!!(window.XMLHttpRequest&&(new XMLHttpRequest).upload&&window.FormData)||o.can("send_binary_string")},slice_blob:l(window.File&&(File.prototype.mozSlice||File.prototype.webkitSlice||File.prototype.slice)),stream_upload:function(){return o.can("slice_blob")&&o.can("send_multipart")},summon_file_dialog:function(){return o.can("select_file")&&!("Firefox"===n.browser&&n.verComp(n.version,4,"<")||"Opera"===n.browser&&n.verComp(n.version,12,"<")||"IE"===n.browser&&n.verComp(n.version,10,"<"))},upload_filesize:u,use_http_method:u},arguments[2]);i.call(this,e,arguments[1]||a,c),t.extend(this,{init:function(){this.trigger("Init")},destroy:function(t){return function(){t.call(o),t=o=null}}(this.destroy)}),t.extend(this.getShim(),s)}var a="html5",s={};return i.addConstructor(a,o),s}),n("moxie/runtime/html5/file/Blob",["moxie/runtime/html5/Runtime","moxie/file/Blob"],function(t,e){function i(){function t(t,e,i){var n;if(!window.File.prototype.slice)return(n=window.File.prototype.webkitSlice||window.File.prototype.mozSlice)?n.call(t,e,i):null;try{return t.slice(),t.slice(e,i)}catch(n){return t.slice(e,i-e)}}this.slice=function(){return new e(this.getRuntime().uid,t.apply(this,arguments))},this.destroy=function(){this.getRuntime().getShim().removeInstance(this.uid)}}return t.Blob=i}),n("moxie/core/utils/Events",["moxie/core/utils/Basic"],function(t){function e(){this.returnValue=!1}function i(){this.cancelBubble=!0}var n={},r="moxie_"+t.guid(),o=function(o,a,s,l){var u,c;a=a.toLowerCase(),o.addEventListener?(u=s,o.addEventListener(a,u,!1)):o.attachEvent&&(u=function(){var t=window.event;t.target||(t.target=t.srcElement),t.preventDefault=e,t.stopPropagation=i,s(t)},o.attachEvent("on"+a,u)),o[r]||(o[r]=t.guid()),n.hasOwnProperty(o[r])||(n[o[r]]={}),c=n[o[r]],c.hasOwnProperty(a)||(c[a]=[]),c[a].push({func:u,orig:s,key:l})},a=function(e,i,o){var a,s;if(i=i.toLowerCase(),e[r]&&n[e[r]]&&n[e[r]][i]){a=n[e[r]][i];for(var l=a.length-1;l>=0&&(a[l].orig!==o&&a[l].key!==o||(e.removeEventListener?e.removeEventListener(i,a[l].func,!1):e.detachEvent&&e.detachEvent("on"+i,a[l].func),a[l].orig=null,a[l].func=null,a.splice(l,1),o===s));l--);if(a.length||delete n[e[r]][i],t.isEmptyObj(n[e[r]])){delete n[e[r]];try{delete e[r]}catch(t){e[r]=s}}}};return{addEvent:o,removeEvent:a,removeAllEvents:function(e,i){e&&e[r]&&t.each(n[e[r]],function(t,n){a(e,n,i)})}}}),n("moxie/runtime/html5/file/FileInput",["moxie/runtime/html5/Runtime","moxie/file/File","moxie/core/utils/Basic","moxie/core/utils/Dom","moxie/core/utils/Events","moxie/core/utils/Mime","moxie/core/utils/Env"],function(t,e,i,n,r,o,a){function s(){var t,s;i.extend(this,{init:function(l){var u,c,h,d,f,p,g=this,m=g.getRuntime();t=l,h=o.extList2mimes(t.accept,m.can("filter_by_extension")),c=m.getShimContainer(),c.innerHTML='<input id="'+m.uid+'" type="file" style="font-size:999px;opacity:0;"'+(t.multiple&&m.can("select_multiple")?"multiple":"")+(t.directory&&m.can("select_folder")?"webkitdirectory directory":"")+(h?' accept="'+h.join(",")+'"':"")+" />",u=n.get(m.uid),i.extend(u.style,{position:"absolute",top:0,left:0,width:"100%",height:"100%"}),d=n.get(t.browse_button),s=n.getStyle(d,"z-index")||"auto",m.can("summon_file_dialog")&&("static"===n.getStyle(d,"position")&&(d.style.position="relative"),r.addEvent(d,"click",function(t){var e=n.get(m.uid);e&&!e.disabled&&e.click(),t.preventDefault()},g.uid),g.bind("Refresh",function(){f=parseInt(s,10)||1,n.get(t.browse_button).style.zIndex=f,this.getRuntime().getShimContainer().style.zIndex=f-1})),p=m.can("summon_file_dialog")?d:c,r.addEvent(p,"mouseover",function(){g.trigger("mouseenter")},g.uid),r.addEvent(p,"mouseout",function(){g.trigger("mouseleave")},g.uid),r.addEvent(p,"mousedown",function(){g.trigger("mousedown")},g.uid),r.addEvent(n.get(t.container),"mouseup",function(){g.trigger("mouseup")},g.uid),(m.can("summon_file_dialog")?u:d).setAttribute("tabindex",-1),u.onchange=function n(){if(g.files=[],i.each(this.files,function(i){var n="";return!(!t.directory||"."!=i.name)||(i.webkitRelativePath&&(n="/"+i.webkitRelativePath.replace(/^\//,"")),i=new e(m.uid,i),i.relativePath=n,void g.files.push(i))}),"IE"!==a.browser&&"IEMobile"!==a.browser)this.value="";else{var r=this.cloneNode(!0);this.parentNode.replaceChild(r,this),r.onchange=n}g.files.length&&g.trigger("change")},g.trigger({type:"ready",async:!0}),c=null},setOption:function(t,e){var i=this.getRuntime(),r=n.get(i.uid);switch(t){case"accept":if(e){var a=e.mimes||o.extList2mimes(e,i.can("filter_by_extension"));r.setAttribute("accept",a.join(","))}else r.removeAttribute("accept");break;case"directory":e&&i.can("select_folder")?(r.setAttribute("directory",""),r.setAttribute("webkitdirectory","")):(r.removeAttribute("directory"),r.removeAttribute("webkitdirectory"));break;case"multiple":e&&i.can("select_multiple")?r.setAttribute("multiple",""):r.removeAttribute("multiple")}},disable:function(t){var e,i=this.getRuntime();(e=n.get(i.uid))&&(e.disabled=!!t)},destroy:function(){var e=this.getRuntime(),i=e.getShim(),o=e.getShimContainer(),a=t&&n.get(t.container),l=t&&n.get(t.browse_button);a&&r.removeAllEvents(a,this.uid),l&&(r.removeAllEvents(l,this.uid),l.style.zIndex=s),o&&(r.removeAllEvents(o,this.uid),o.innerHTML=""),i.removeInstance(this.uid),t=o=a=l=i=null}})}return t.FileInput=s}),n("moxie/runtime/html5/file/FileDrop",["moxie/runtime/html5/Runtime","moxie/file/File","moxie/core/utils/Basic","moxie/core/utils/Dom","moxie/core/utils/Events","moxie/core/utils/Mime"],function(t,e,i,n,r,o){function a(){function t(t){if(!t.dataTransfer||!t.dataTransfer.types)return!1;var e=i.toArray(t.dataTransfer.types||[]);return-1!==i.inArray("Files",e)||-1!==i.inArray("public.file-url",e)||-1!==i.inArray("application/x-moz-file",e)}function a(t,i){if(l(t)){var n=new e(p,t);n.relativePath=i||"",g.push(n)}}function s(t){for(var e=[],n=0;n<t.length;n++)[].push.apply(e,t[n].extensions.split(/\s*,\s*/));return-1===i.inArray("*",e)?e:[]}function l(t){if(!m.length)return!0;var e=o.getFileExtension(t.name);return!e||-1!==i.inArray(e,m)}function u(t,e){var n=[];i.each(t,function(t){var e=t.webkitGetAsEntry();e&&(e.isFile?a(t.getAsFile(),e.fullPath):n.push(e))}),n.length?c(n,e):e()}function c(t,e){var n=[];i.each(t,function(t){n.push(function(e){h(t,e)})}),i.inSeries(n,function(){e()})}function h(t,e){t.isFile?t.file(function(i){a(i,t.fullPath),e()},function(){e()}):t.isDirectory?d(t,e):e()}function d(t,e){function i(t){r.readEntries(function(e){e.length?([].push.apply(n,e),i(t)):t()},t)}var n=[],r=t.createReader();i(function(){c(n,e)})}var f,p,g=[],m=[];i.extend(this,{init:function(e){var n,o=this;f=e,p=o.ruid,m=s(f.accept),n=f.container,r.addEvent(n,"dragover",function(e){t(e)&&(e.preventDefault(),e.dataTransfer.dropEffect="copy")},o.uid),r.addEvent(n,"drop",function(e){t(e)&&(e.preventDefault(),g=[],e.dataTransfer.items&&e.dataTransfer.items[0].webkitGetAsEntry?u(e.dataTransfer.items,function(){o.files=g,o.trigger("drop")}):(i.each(e.dataTransfer.files,function(t){a(t)}),o.files=g,o.trigger("drop")))},o.uid),r.addEvent(n,"dragenter",function(){o.trigger("dragenter")},o.uid),r.addEvent(n,"dragleave",function(){o.trigger("dragleave")},o.uid)},destroy:function(){r.removeAllEvents(f&&n.get(f.container),this.uid),p=g=m=f=null,this.getRuntime().getShim().removeInstance(this.uid)}})}return t.FileDrop=a}),n("moxie/runtime/html5/file/FileReader",["moxie/runtime/html5/Runtime","moxie/core/utils/Encode","moxie/core/utils/Basic"],function(t,e,i){function n(){function t(t){return e.atob(t.substring(t.indexOf("base64,")+7))}var n,r=!1;i.extend(this,{read:function(e,o){var a=this;a.result="",n=new window.FileReader,n.addEventListener("progress",function(t){a.trigger(t)}),n.addEventListener("load",function(e){a.result=r?t(n.result):n.result,a.trigger(e)}),n.addEventListener("error",function(t){a.trigger(t,n.error)}),n.addEventListener("loadend",function(t){n=null,a.trigger(t)}),"function"===i.typeOf(n[e])?(r=!1,n[e](o.getSource())):"readAsBinaryString"===e&&(r=!0,n.readAsDataURL(o.getSource()))},abort:function(){n&&n.abort()},destroy:function(){n=null,this.getRuntime().getShim().removeInstance(this.uid)}})}return t.FileReader=n}),n("moxie/runtime/html5/xhr/XMLHttpRequest",["moxie/runtime/html5/Runtime","moxie/core/utils/Basic","moxie/core/utils/Mime","moxie/core/utils/Url","moxie/file/File","moxie/file/Blob","moxie/xhr/FormData","moxie/core/Exceptions","moxie/core/utils/Env"],function(t,e,i,n,r,o,a,s,l){function u(){function t(t,e){var i,n,r=this;i=e.getBlob().getSource(),n=new window.FileReader,n.onload=function(){e.append(e.getBlobName(),new o(null,{type:i.type,data:n.result})),p.send.call(r,t,e)},n.readAsBinaryString(i)}function u(){return!window.XMLHttpRequest||"IE"===l.browser&&l.verComp(l.version,8,"<")?function(){for(var t=["Msxml2.XMLHTTP.6.0","Microsoft.XMLHTTP"],e=0;e<t.length;e++)try{return new ActiveXObject(t[e])}catch(t){}}():new window.XMLHttpRequest}function c(t){var e=t.responseXML,i=t.responseText;return"IE"===l.browser&&i&&e&&!e.documentElement&&/[^\/]+\/[^\+]+\+xml/.test(t.getResponseHeader("Content-Type"))&&(e=new window.ActiveXObject("Microsoft.XMLDOM"),e.async=!1,e.validateOnParse=!1,e.loadXML(i)),e&&("IE"===l.browser&&0!==e.parseError||!e.documentElement||"parsererror"===e.documentElement.tagName)?null:e}function h(t){var e="----moxieboundary"+(new Date).getTime(),i="--",n="\r\n",r="";if(!this.getRuntime().can("send_binary_string"))throw new s.RuntimeError(s.RuntimeError.NOT_SUPPORTED_ERR);return d.setRequestHeader("Content-Type","multipart/form-data; boundary="+e),t.each(function(t,a){r+=t instanceof o?i+e+n+'Content-Disposition: form-data; name="'+a+'"; filename="'+unescape(encodeURIComponent(t.name||"blob"))+'"'+n+"Content-Type: "+(t.type||"application/octet-stream")+n+n+t.getSource()+n:i+e+n+'Content-Disposition: form-data; name="'+a+'"'+n+n+unescape(encodeURIComponent(t))+n}),r+=i+e+i+n}var d,f,p=this;e.extend(this,{send:function(i,r){var s=this,c="Mozilla"===l.browser&&l.verComp(l.version,4,">=")&&l.verComp(l.version,7,"<"),p="Android Browser"===l.browser,g=!1;if(f=i.url.replace(/^.+?\/([\w\-\.]+)$/,"$1").toLowerCase(),d=u(),d.open(i.method,i.url,i.async,i.user,i.password),r instanceof o)r.isDetached()&&(g=!0),r=r.getSource();else if(r instanceof a){if(r.hasBlob())if(r.getBlob().isDetached())r=h.call(s,r),g=!0;else if((c||p)&&"blob"===e.typeOf(r.getBlob().getSource())&&window.FileReader)return void t.call(s,i,r);if(r instanceof a){var m=new window.FormData;r.each(function(t,e){t instanceof o?m.append(e,t.getSource()):m.append(e,t)}),r=m}}d.upload?(i.withCredentials&&(d.withCredentials=!0),d.addEventListener("load",function(t){s.trigger(t)}),d.addEventListener("error",function(t){s.trigger(t)}),d.addEventListener("progress",function(t){s.trigger(t)}),d.upload.addEventListener("progress",function(t){s.trigger({type:"UploadProgress",loaded:t.loaded,total:t.total})})):d.onreadystatechange=function(){switch(d.readyState){case 1:case 2:break;case 3:var t,e;try{n.hasSameOrigin(i.url)&&(t=d.getResponseHeader("Content-Length")||0),d.responseText&&(e=d.responseText.length)}catch(i){t=e=0}s.trigger({type:"progress",lengthComputable:!!t,total:parseInt(t,10),loaded:e});break;case 4:d.onreadystatechange=function(){};try{if(d.status>=200&&d.status<400){s.trigger("load");break}}catch(t){}s.trigger("error")}},e.isEmptyObj(i.headers)||e.each(i.headers,function(t,e){d.setRequestHeader(e,t)}),""!==i.responseType&&"responseType"in d&&(d.responseType="json"!==i.responseType||l.can("return_response_type","json")?i.responseType:"text"),g?d.sendAsBinary?d.sendAsBinary(r):function(){for(var t=new Uint8Array(r.length),e=0;e<r.length;e++)t[e]=255&r.charCodeAt(e);d.send(t.buffer)}():d.send(r),s.trigger("loadstart")},getStatus:function(){try{if(d)return d.status}catch(t){}return 0},getResponse:function(t){var e=this.getRuntime();try{switch(t){case"blob":var n=new r(e.uid,d.response),o=d.getResponseHeader("Content-Disposition");if(o){var a=o.match(/filename=([\'\"'])([^\1]+)\1/);a&&(f=a[2])}return n.name=f,n.type||(n.type=i.getFileMime(f)),n;case"json":return l.can("return_response_type","json")?d.response:200===d.status&&window.JSON?JSON.parse(d.responseText):null;case"document":return c(d);default:return""!==d.responseText?d.responseText:null}}catch(t){return null}},getAllResponseHeaders:function(){try{return d.getAllResponseHeaders()}catch(t){}return""},abort:function(){d&&d.abort()},destroy:function(){p=f=null,this.getRuntime().getShim().removeInstance(this.uid)}})}return t.XMLHttpRequest=u}),n("moxie/runtime/html5/utils/BinaryReader",["moxie/core/utils/Basic"],function(t){function e(t){t instanceof ArrayBuffer?i.apply(this,arguments):n.apply(this,arguments)}function i(e){var i=new DataView(e);t.extend(this,{readByteAt:function(t){return i.getUint8(t)},writeByteAt:function(t,e){i.setUint8(t,e)},SEGMENT:function(t,n,r){switch(arguments.length){case 2:return e.slice(t,t+n);case 1:return e.slice(t);case 3:if(null===r&&(r=new ArrayBuffer),r instanceof ArrayBuffer){var o=new Uint8Array(this.length()-n+r.byteLength);t>0&&o.set(new Uint8Array(e.slice(0,t)),0),o.set(new Uint8Array(r),t),o.set(new Uint8Array(e.slice(t+n)),t+r.byteLength),this.clear(),e=o.buffer,i=new DataView(e);break}default:return e}},length:function(){return e?e.byteLength:0},clear:function(){i=e=null}})}function n(e){function i(t,i,n){n=3===arguments.length?n:e.length-i-1,e=e.substr(0,i)+t+e.substr(n+i)}t.extend(this,{readByteAt:function(t){return e.charCodeAt(t)},writeByteAt:function(t,e){i(String.fromCharCode(e),t,1)},SEGMENT:function(t,n,r){switch(arguments.length){case 1:return e.substr(t);case 2:return e.substr(t,n);case 3:i(null!==r?r:"",t,n);break;default:return e}},length:function(){return e?e.length:0},clear:function(){e=null}})}return t.extend(e.prototype,{littleEndian:!1,read:function(t,e){var i,n,r;if(t+e>this.length())throw new Error("You are trying to read outside the source boundaries.");for(n=this.littleEndian?0:-8*(e-1),r=0,i=0;e>r;r++)i|=this.readByteAt(t+r)<<Math.abs(n+8*r);return i},write:function(t,e,i){var n,r;if(t>this.length())throw new Error("You are trying to write outside the source boundaries.");for(n=this.littleEndian?0:-8*(i-1),r=0;i>r;r++)this.writeByteAt(t+r,255&e>>Math.abs(n+8*r))},BYTE:function(t){return this.read(t,1)},SHORT:function(t){return this.read(t,2)},LONG:function(t){return this.read(t,4)},SLONG:function(t){var e=this.read(t,4);return e>2147483647?e-4294967296:e},CHAR:function(t){return String.fromCharCode(this.read(t,1))},STRING:function(t,e){return this.asArray("CHAR",t,e).join("")},asArray:function(t,e,i){for(var n=[],r=0;i>r;r++)n[r]=this[t](e+r);return n}}),e}), n("moxie/runtime/html5/image/JPEGHeaders",["moxie/runtime/html5/utils/BinaryReader","moxie/core/Exceptions"],function(t,e){return function i(n){var r,o,a,s=[],l=0;if(r=new t(n),65496!==r.SHORT(0))throw r.clear(),new e.ImageError(e.ImageError.WRONG_FORMAT);for(o=2;o<=r.length();)if((a=r.SHORT(o))>=65488&&65495>=a)o+=2;else{if(65498===a||65497===a)break;l=r.SHORT(o+2)+2,a>=65505&&65519>=a&&s.push({hex:a,name:"APP"+(15&a),start:o,length:l,segment:r.SEGMENT(o,l)}),o+=l}return r.clear(),{headers:s,restore:function(e){var i,n,r;for(r=new t(e),o=65504==r.SHORT(2)?4+r.SHORT(4):2,n=0,i=s.length;i>n;n++)r.SEGMENT(o,0,s[n].segment),o+=s[n].length;return e=r.SEGMENT(),r.clear(),e},strip:function(e){var n,r,o,a;for(o=new i(e),r=o.headers,o.purge(),n=new t(e),a=r.length;a--;)n.SEGMENT(r[a].start,r[a].length,"");return e=n.SEGMENT(),n.clear(),e},get:function(t){for(var e=[],i=0,n=s.length;n>i;i++)s[i].name===t.toUpperCase()&&e.push(s[i].segment);return e},set:function(t,e){var i,n,r,o=[];for("string"==typeof e?o.push(e):o=e,i=n=0,r=s.length;r>i&&(s[i].name===t.toUpperCase()&&(s[i].segment=o[n],s[i].length=o[n].length,n++),!(n>=o.length));i++);},purge:function(){this.headers=s=[]}}}}),n("moxie/runtime/html5/image/ExifParser",["moxie/core/utils/Basic","moxie/runtime/html5/utils/BinaryReader","moxie/core/Exceptions"],function(t,i,n){function r(o){function a(i,r){var o,a,s,l,u,d,f,p,g=this,m=[],v={},y={1:"BYTE",7:"UNDEFINED",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",9:"SLONG",10:"SRATIONAL"},x={BYTE:1,UNDEFINED:1,ASCII:1,SHORT:2,LONG:4,RATIONAL:8,SLONG:4,SRATIONAL:8};for(o=g.SHORT(i),a=0;o>a;a++)if(m=[],f=i+2+12*a,(s=r[g.SHORT(f)])!==e){if(l=y[g.SHORT(f+=2)],u=g.LONG(f+=2),!(d=x[l]))throw new n.ImageError(n.ImageError.INVALID_META_ERR);if(f+=4,d*u>4&&(f=g.LONG(f)+h.tiffHeader),f+d*u>=this.length())throw new n.ImageError(n.ImageError.INVALID_META_ERR);"ASCII"!==l?(m=g.asArray(l,f,u),p=1==u?m[0]:m,v[s]=c.hasOwnProperty(s)&&"object"!=typeof p?c[s][p]:p):v[s]=t.trim(g.STRING(f,u).replace(/\0$/,""))}return v}function s(t,e,i){var n,r,o,a=0;if("string"==typeof e){var s=u[t.toLowerCase()];for(var l in s)if(s[l]===e){e=l;break}}n=h[t.toLowerCase()+"IFD"],r=this.SHORT(n);for(var c=0;r>c;c++)if(o=n+12*c+2,this.SHORT(o)==e){a=o+8;break}if(!a)return!1;try{this.write(a,i,4)}catch(t){return!1}return!0}var l,u,c,h,d,f;if(i.call(this,o),u={tiff:{274:"Orientation",270:"ImageDescription",271:"Make",272:"Model",305:"Software",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer"},exif:{36864:"ExifVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",36867:"DateTimeOriginal",33434:"ExposureTime",33437:"FNumber",34855:"ISOSpeedRatings",37377:"ShutterSpeedValue",37378:"ApertureValue",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37386:"FocalLength",41986:"ExposureMode",41987:"WhiteBalance",41990:"SceneCaptureType",41988:"DigitalZoomRatio",41992:"Contrast",41993:"Saturation",41994:"Sharpness"},gps:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude"},thumb:{513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength"}},c={ColorSpace:{1:"sRGB",0:"Uncalibrated"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{1:"Daylight",2:"Fliorescent",3:"Tungsten",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 -5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},ExposureMode:{0:"Auto exposure",1:"Manual exposure",2:"Auto bracket"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},GPSLatitudeRef:{N:"North latitude",S:"South latitude"},GPSLongitudeRef:{E:"East longitude",W:"West longitude"}},h={tiffHeader:10},d=h.tiffHeader,l={clear:this.clear},t.extend(this,{read:function(){try{return r.prototype.read.apply(this,arguments)}catch(t){throw new n.ImageError(n.ImageError.INVALID_META_ERR)}},write:function(){try{return r.prototype.write.apply(this,arguments)}catch(t){throw new n.ImageError(n.ImageError.INVALID_META_ERR)}},UNDEFINED:function(){return this.BYTE.apply(this,arguments)},RATIONAL:function(t){return this.LONG(t)/this.LONG(t+4)},SRATIONAL:function(t){return this.SLONG(t)/this.SLONG(t+4)},ASCII:function(t){return this.CHAR(t)},TIFF:function(){return f||null},EXIF:function(){var e=null;if(h.exifIFD){try{e=a.call(this,h.exifIFD,u.exif)}catch(t){return null}if(e.ExifVersion&&"array"===t.typeOf(e.ExifVersion)){for(var i=0,n="";i<e.ExifVersion.length;i++)n+=String.fromCharCode(e.ExifVersion[i]);e.ExifVersion=n}}return e},GPS:function(){var e=null;if(h.gpsIFD){try{e=a.call(this,h.gpsIFD,u.gps)}catch(t){return null}e.GPSVersionID&&"array"===t.typeOf(e.GPSVersionID)&&(e.GPSVersionID=e.GPSVersionID.join("."))}return e},thumb:function(){if(h.IFD1)try{var t=a.call(this,h.IFD1,u.thumb);if("JPEGInterchangeFormat"in t)return this.SEGMENT(h.tiffHeader+t.JPEGInterchangeFormat,t.JPEGInterchangeFormatLength)}catch(t){}return null},setExif:function(t,e){return("PixelXDimension"===t||"PixelYDimension"===t)&&s.call(this,"exif",t,e)},clear:function(){l.clear(),o=u=c=f=h=l=null}}),65505!==this.SHORT(0)||"EXIF\0"!==this.STRING(4,5).toUpperCase())throw new n.ImageError(n.ImageError.INVALID_META_ERR);if(this.littleEndian=18761==this.SHORT(d),42!==this.SHORT(d+=2))throw new n.ImageError(n.ImageError.INVALID_META_ERR);h.IFD0=h.tiffHeader+this.LONG(d+=2),f=a.call(this,h.IFD0,u.tiff),"ExifIFDPointer"in f&&(h.exifIFD=h.tiffHeader+f.ExifIFDPointer,delete f.ExifIFDPointer),"GPSInfoIFDPointer"in f&&(h.gpsIFD=h.tiffHeader+f.GPSInfoIFDPointer,delete f.GPSInfoIFDPointer),t.isEmptyObj(f)&&(f=null);var p=this.LONG(h.IFD0+12*this.SHORT(h.IFD0)+2);p&&(h.IFD1=h.tiffHeader+p)}return r.prototype=i.prototype,r}),n("moxie/runtime/html5/image/JPEG",["moxie/core/utils/Basic","moxie/core/Exceptions","moxie/runtime/html5/image/JPEGHeaders","moxie/runtime/html5/utils/BinaryReader","moxie/runtime/html5/image/ExifParser"],function(t,e,i,n,r){function o(o){function a(t){var e,i,n=0;for(t||(t=l);n<=t.length();){if((e=t.SHORT(n+=2))>=65472&&65475>=e)return n+=5,{height:t.SHORT(n),width:t.SHORT(n+=2)};i=t.SHORT(n+=2),n+=i-2}return null}function s(){c&&u&&l&&(c.clear(),u.purge(),l.clear(),h=u=c=l=null)}var l,u,c,h;if(l=new n(o),65496!==l.SHORT(0))throw new e.ImageError(e.ImageError.WRONG_FORMAT);u=new i(o);try{c=new r(u.get("app1")[0])}catch(t){}h=a.call(this),t.extend(this,{type:"image/jpeg",size:l.length(),width:h&&h.width||0,height:h&&h.height||0,setExif:function(e,i){return!!c&&("object"===t.typeOf(e)?t.each(e,function(t,e){c.setExif(e,t)}):c.setExif(e,i),void u.set("app1",c.SEGMENT()))},writeHeaders:function(){return arguments.length?u.restore(arguments[0]):u.restore(o)},stripHeaders:function(t){return u.strip(t)},purge:function(){s.call(this)}}),c&&(this.meta={tiff:c.TIFF(),exif:c.EXIF(),gps:c.GPS(),thumb:function(){var t,e,i=c.thumb();return i&&(t=new n(i),e=a(t),t.clear(),e)?(e.data=i,e):null}()})}return o}),n("moxie/runtime/html5/image/PNG",["moxie/core/Exceptions","moxie/core/utils/Basic","moxie/runtime/html5/utils/BinaryReader"],function(t,e,i){function n(n){function r(){var t,e;return t=a.call(this,8),"IHDR"==t.type?(e=t.start,{width:s.LONG(e),height:s.LONG(e+=4)}):null}function o(){s&&(s.clear(),n=c=l=u=s=null)}function a(t){var e,i,n,r;return e=s.LONG(t),i=s.STRING(t+=4,4),n=t+=4,r=s.LONG(t+e),{length:e,type:i,start:n,CRC:r}}var s,l,u,c;s=new i(n),function(){var e=0,i=0,n=[35152,20039,3338,6666];for(i=0;i<n.length;i++,e+=2)if(n[i]!=s.SHORT(e))throw new t.ImageError(t.ImageError.WRONG_FORMAT)}(),c=r.call(this),e.extend(this,{type:"image/png",size:s.length(),width:c.width,height:c.height,purge:function(){o.call(this)}}),o.call(this)}return n}),n("moxie/runtime/html5/image/ImageInfo",["moxie/core/utils/Basic","moxie/core/Exceptions","moxie/runtime/html5/image/JPEG","moxie/runtime/html5/image/PNG"],function(t,e,i,n){return function(r){var o,a=[i,n];o=function(){for(var t=0;t<a.length;t++)try{return new a[t](r)}catch(t){}throw new e.ImageError(e.ImageError.WRONG_FORMAT)}(),t.extend(this,{type:"",size:0,width:0,height:0,setExif:function(){},writeHeaders:function(t){return t},stripHeaders:function(t){return t},purge:function(){r=null}}),t.extend(this,o),this.purge=function(){o.purge(),o=null}}}),n("moxie/runtime/html5/image/ResizerCanvas",[],function(){function t(i,n,r){var o=i.width>i.height?"width":"height",a=Math.round(i[o]*n),s=!1;"nearest"!==r&&(.5>n||n>2)&&(n=.5>n?.5:2,s=!0);var l=e(i,n);return s?t(l,a/l[o],r):l}function e(t,e){var i=t.width,n=t.height,r=Math.round(i*e),o=Math.round(n*e),a=document.createElement("canvas");return a.width=r,a.height=o,a.getContext("2d").drawImage(t,0,0,i,n,0,0,r,o),t=null,a}return{scale:t}}),n("moxie/runtime/html5/image/Image",["moxie/runtime/html5/Runtime","moxie/core/utils/Basic","moxie/core/Exceptions","moxie/core/utils/Encode","moxie/file/Blob","moxie/file/File","moxie/runtime/html5/image/ImageInfo","moxie/runtime/html5/image/ResizerCanvas","moxie/core/utils/Mime","moxie/core/utils/Env"],function(t,e,i,n,r,o,a,s,l){function u(){function t(){if(!y&&!m)throw new i.ImageError(i.DOMException.INVALID_STATE_ERR);return y||m}function u(){var e=t();return"canvas"==e.nodeName.toLowerCase()?e:(y=document.createElement("canvas"),y.width=e.width,y.height=e.height,y.getContext("2d").drawImage(e,0,0),y)}function c(t){return n.atob(t.substring(t.indexOf("base64,")+7))}function h(t,e){return"data:"+(e||"")+";base64,"+n.btoa(t)}function d(t){var e=this;m=new Image,m.onerror=function(){g.call(this),e.trigger("error",i.ImageError.WRONG_FORMAT)},m.onload=function(){e.trigger("load")},m.src="data:"==t.substr(0,5)?t:h(t,_.type)}function f(t,e){var n,r=this;return window.FileReader?(n=new FileReader,n.onload=function(){e.call(r,this.result)},n.onerror=function(){r.trigger("error",i.ImageError.WRONG_FORMAT)},void n.readAsDataURL(t)):e.call(this,t.getAsDataURL())}function p(t,i){var n=Math.PI/180,r=document.createElement("canvas"),o=r.getContext("2d"),a=t.width,s=t.height;switch(e.inArray(i,[5,6,7,8])>-1?(r.width=s,r.height=a):(r.width=a,r.height=s),i){case 2:o.translate(a,0),o.scale(-1,1);break;case 3:o.translate(a,s),o.rotate(180*n);break;case 4:o.translate(0,s),o.scale(1,-1);break;case 5:o.rotate(90*n),o.scale(1,-1);break;case 6:o.rotate(90*n),o.translate(0,-s);break;case 7:o.rotate(90*n),o.translate(a,-s),o.scale(-1,1);break;case 8:o.rotate(-90*n),o.translate(-a,0)}return o.drawImage(t,0,0,a,s),r}function g(){v&&(v.purge(),v=null),x=m=y=_=null,w=!1}var m,v,y,x,_,b=this,w=!1,S=!0;e.extend(this,{loadFromBlob:function(t){var e=this.getRuntime(),n=!(arguments.length>1)||arguments[1];if(!e.can("access_binary"))throw new i.RuntimeError(i.RuntimeError.NOT_SUPPORTED_ERR);return _=t,t.isDetached()?(x=t.getSource(),void d.call(this,x)):void f.call(this,t.getSource(),function(t){n&&(x=c(t)),d.call(this,t)})},loadFromImage:function(t,e){this.meta=t.meta,_=new o(null,{name:t.name,size:t.size,type:t.type}),d.call(this,e?x=t.getAsBinaryString():t.getAsDataURL())},getInfo:function(){var e,i=this.getRuntime();return!v&&x&&i.can("access_image_binary")&&(v=new a(x)),e={width:t().width||0,height:t().height||0,type:_.type||l.getFileMime(_.name),size:x&&x.length||_.size||0,name:_.name||"",meta:null},S&&(e.meta=v&&v.meta||this.meta||{},!e.meta||!e.meta.thumb||e.meta.thumb.data instanceof r||(e.meta.thumb.data=new r(null,{type:"image/jpeg",data:e.meta.thumb.data}))),e},resize:function(e,i,n){var r=document.createElement("canvas");if(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(t(),e.x,e.y,e.width,e.height,0,0,r.width,r.height),y=s.scale(r,i),!(S=n.preserveHeaders)){var o=this.meta&&this.meta.tiff&&this.meta.tiff.Orientation||1;y=p(y,o)}this.width=y.width,this.height=y.height,w=!0,this.trigger("Resize")},getAsCanvas:function(){return y||(y=u()),y.id=this.uid+"_canvas",y},getAsBlob:function(t,e){return t!==this.type?(w=!0,new o(null,{name:_.name||"",type:t,data:b.getAsDataURL(t,e)})):new o(null,{name:_.name||"",type:t,data:b.getAsBinaryString(t,e)})},getAsDataURL:function(t){var e=arguments[1]||90;if(!w)return m.src;if(u(),"image/jpeg"!==t)return y.toDataURL("image/png");try{return y.toDataURL("image/jpeg",e/100)}catch(t){return y.toDataURL("image/jpeg")}},getAsBinaryString:function(t,e){if(!w)return x||(x=c(b.getAsDataURL(t,e))),x;if("image/jpeg"!==t)x=c(b.getAsDataURL(t,e));else{var i;e||(e=90),u();try{i=y.toDataURL("image/jpeg",e/100)}catch(t){i=y.toDataURL("image/jpeg")}x=c(i),v&&(x=v.stripHeaders(x),S&&(v.meta&&v.meta.exif&&v.setExif({PixelXDimension:this.width,PixelYDimension:this.height}),x=v.writeHeaders(x)),v.purge(),v=null)}return w=!1,x},destroy:function(){b=null,g.call(this),this.getRuntime().getShim().removeInstance(this.uid)}})}return t.Image=u}),n("moxie/runtime/flash/Runtime",["moxie/core/utils/Basic","moxie/core/utils/Env","moxie/core/utils/Dom","moxie/core/Exceptions","moxie/runtime/Runtime"],function(t,e,i,n,o){function a(){var t;try{t=navigator.plugins["Shockwave Flash"],t=t.description}catch(e){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}catch(e){t="0.0"}}return t=t.match(/\d+/g),parseFloat(t[0]+"."+t[1])}function s(t){var n=i.get(t);n&&"OBJECT"==n.nodeName&&("IE"===e.browser?(n.style.display="none",function e(){4==n.readyState?l(t):setTimeout(e,10)}()):n.parentNode.removeChild(n))}function l(t){var e=i.get(t);if(e){for(var n in e)"function"==typeof e[n]&&(e[n]=null);e.parentNode.removeChild(e)}}function u(l){var u,d=this;l=t.extend({swf_url:e.swf_url},l),o.call(this,l,c,{access_binary:function(t){return t&&"browser"===d.mode},access_image_binary:function(t){return t&&"browser"===d.mode},display_media:o.capTest(r("moxie/image/Image")),do_cors:o.capTrue,drag_and_drop:!1,report_upload_progress:function(){return"client"===d.mode},resize_image:o.capTrue,return_response_headers:!1,return_response_type:function(e){return!("json"!==e||!window.JSON)||(!t.arrayDiff(e,["","text","document"])||"browser"===d.mode)},return_status_code:function(e){return"browser"===d.mode||!t.arrayDiff(e,[200,404])},select_file:o.capTrue,select_multiple:o.capTrue,send_binary_string:function(t){return t&&"browser"===d.mode},send_browser_cookies:function(t){return t&&"browser"===d.mode},send_custom_headers:function(t){return t&&"browser"===d.mode},send_multipart:o.capTrue,slice_blob:function(t){return t&&"browser"===d.mode},stream_upload:function(t){return t&&"browser"===d.mode},summon_file_dialog:!1,upload_filesize:function(e){return t.parseSizeStr(e)<=2097152||"client"===d.mode},use_http_method:function(e){return!t.arrayDiff(e,["GET","POST"])}},{access_binary:function(t){return t?"browser":"client"},access_image_binary:function(t){return t?"browser":"client"},report_upload_progress:function(t){return t?"browser":"client"},return_response_type:function(e){return t.arrayDiff(e,["","text","json","document"])?"browser":["client","browser"]},return_status_code:function(e){return t.arrayDiff(e,[200,404])?"browser":["client","browser"]},send_binary_string:function(t){return t?"browser":"client"},send_browser_cookies:function(t){return t?"browser":"client"},send_custom_headers:function(t){return t?"browser":"client"},slice_blob:function(t){return t?"browser":"client"},stream_upload:function(t){return t?"client":"browser"},upload_filesize:function(e){return t.parseSizeStr(e)>=2097152?"client":"browser"}},"client"),a()<11.3&&(this.mode=!1),t.extend(this,{getShim:function(){return i.get(this.uid)},shimExec:function(t,e){var i=[].slice.call(arguments,2);return d.getShim().exec(this.uid,t,e,i)},init:function(){var i,r,a;a=this.getShimContainer(),t.extend(a.style,{position:"absolute",top:"-8px",left:"-8px",width:"9px",height:"9px",overflow:"hidden"}),i='<object id="'+this.uid+'" type="application/x-shockwave-flash" data="'+l.swf_url+'" ',"IE"===e.browser&&(i+='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '),i+='width="100%" height="100%" style="outline:0"><param name="movie" value="'+l.swf_url+'" /><param name="flashvars" value="uid='+escape(this.uid)+"&target="+o.getGlobalEventTarget()+'" /><param name="wmode" value="transparent" /><param name="allowscriptaccess" value="always" /></object>',"IE"===e.browser?(r=document.createElement("div"),a.appendChild(r),r.outerHTML=i,r=a=null):a.innerHTML=i,u=setTimeout(function(){d&&!d.initialized&&d.trigger("Error",new n.RuntimeError(n.RuntimeError.NOT_INIT_ERR))},5e3)},destroy:function(t){return function(){s(d.uid),t.call(d),clearTimeout(u),l=u=t=d=null}}(this.destroy)},h)}var c="flash",h={};return o.addConstructor(c,u),h}),n("moxie/runtime/flash/file/Blob",["moxie/runtime/flash/Runtime","moxie/file/Blob"],function(t,e){var i={slice:function(t,i,n,r){var o=this.getRuntime();return 0>i?i=Math.max(t.size+i,0):i>0&&(i=Math.min(i,t.size)),0>n?n=Math.max(t.size+n,0):n>0&&(n=Math.min(n,t.size)),t=o.shimExec.call(this,"Blob","slice",i,n,r||""),t&&(t=new e(o.uid,t)),t}};return t.Blob=i}),n("moxie/runtime/flash/file/FileInput",["moxie/runtime/flash/Runtime","moxie/file/File","moxie/core/utils/Dom","moxie/core/utils/Basic"],function(t,e,i,n){var r={init:function(t){var r=this,o=this.getRuntime(),a=i.get(t.browse_button);a&&(a.setAttribute("tabindex",-1),a=null),this.bind("Change",function(){var t=o.shimExec.call(r,"FileInput","getFiles");r.files=[],n.each(t,function(t){r.files.push(new e(o.uid,t))})},999),this.getRuntime().shimExec.call(this,"FileInput","init",{accept:t.accept,multiple:t.multiple}),this.trigger("ready")}};return t.FileInput=r}),n("moxie/runtime/flash/file/FileReader",["moxie/runtime/flash/Runtime","moxie/core/utils/Encode"],function(t,e){function i(t,i){switch(i){case"readAsText":return e.atob(t,"utf8");case"readAsBinaryString":return e.atob(t);case"readAsDataURL":return t}return null}var n={read:function(t,e){var n=this;return n.result="","readAsDataURL"===t&&(n.result="data:"+(e.type||"")+";base64,"),n.bind("Progress",function(e,r){r&&(n.result+=i(r,t))},999),n.getRuntime().shimExec.call(this,"FileReader","readAsBase64",e.uid)}};return t.FileReader=n}),n("moxie/runtime/flash/file/FileReaderSync",["moxie/runtime/flash/Runtime","moxie/core/utils/Encode"],function(t,e){function i(t,i){switch(i){case"readAsText":return e.atob(t,"utf8");case"readAsBinaryString":return e.atob(t);case"readAsDataURL":return t}return null}var n={read:function(t,e){var n;return(n=this.getRuntime().shimExec.call(this,"FileReaderSync","readAsBase64",e.uid))?("readAsDataURL"===t&&(n="data:"+(e.type||"")+";base64,"+n),i(n,t,e.type)):null}};return t.FileReaderSync=n}),n("moxie/runtime/flash/runtime/Transporter",["moxie/runtime/flash/Runtime","moxie/file/Blob"],function(t,e){var i={getAsBlob:function(t){var i=this.getRuntime(),n=i.shimExec.call(this,"Transporter","getAsBlob",t);return n?new e(i.uid,n):null}};return t.Transporter=i}),n("moxie/runtime/flash/xhr/XMLHttpRequest",["moxie/runtime/flash/Runtime","moxie/core/utils/Basic","moxie/file/Blob","moxie/file/File","moxie/file/FileReaderSync","moxie/runtime/flash/file/FileReaderSync","moxie/xhr/FormData","moxie/runtime/Transporter","moxie/runtime/flash/runtime/Transporter"],function(t,e,i,n,r,o,a,s){var l={send:function(t,n){function r(){t.transport=c.mode,c.shimExec.call(u,"XMLHttpRequest","send",t,n)}function o(t,e){c.shimExec.call(u,"XMLHttpRequest","appendBlob",t,e.uid),n=null,r()}function l(t,e){var i=new s;i.bind("TransportingComplete",function(){e(this.result)}),i.transport(t.getSource(),t.type,{ruid:c.uid})}var u=this,c=u.getRuntime();if(e.isEmptyObj(t.headers)||e.each(t.headers,function(t,e){c.shimExec.call(u,"XMLHttpRequest","setRequestHeader",e,t.toString())}),n instanceof a){var h;if(n.each(function(t,e){t instanceof i?h=e:c.shimExec.call(u,"XMLHttpRequest","append",e,t)}),n.hasBlob()){var d=n.getBlob();d.isDetached()?l(d,function(t){d.destroy(),o(h,t)}):o(h,d)}else n=null,r()}else n instanceof i?n.isDetached()?l(n,function(t){n.destroy(),n=t.uid,r()}):(n=n.uid,r()):r()},getResponse:function(t){var i,o,a=this.getRuntime();if(o=a.shimExec.call(this,"XMLHttpRequest","getResponseAsBlob")){if(o=new n(a.uid,o),"blob"===t)return o;try{if(i=new r,~e.inArray(t,["","text"]))return i.readAsText(o);if("json"===t&&window.JSON)return JSON.parse(i.readAsText(o))}finally{o.destroy()}}return null},abort:function(){this.getRuntime().shimExec.call(this,"XMLHttpRequest","abort"),this.dispatchEvent("readystatechange"),this.dispatchEvent("abort")}};return t.XMLHttpRequest=l}),n("moxie/runtime/flash/image/Image",["moxie/runtime/flash/Runtime","moxie/core/utils/Basic","moxie/runtime/Transporter","moxie/file/Blob","moxie/file/FileReaderSync"],function(t,e,i,n,r){var o={loadFromBlob:function(t){function e(t){r.shimExec.call(n,"Image","loadFromBlob",t.uid),n=r=null}var n=this,r=n.getRuntime();if(t.isDetached()){var o=new i;o.bind("TransportingComplete",function(){e(o.result.getSource())}),o.transport(t.getSource(),t.type,{ruid:r.uid})}else e(t.getSource())},loadFromImage:function(t){return this.getRuntime().shimExec.call(this,"Image","loadFromImage",t.uid)},getInfo:function(){var t=this.getRuntime(),e=t.shimExec.call(this,"Image","getInfo");return e.meta&&e.meta.thumb&&e.meta.thumb.data&&!(t.meta.thumb.data instanceof n)&&(e.meta.thumb.data=new n(t.uid,e.meta.thumb.data)),e},getAsBlob:function(t,e){var i=this.getRuntime(),r=i.shimExec.call(this,"Image","getAsBlob",t,e);return r?new n(i.uid,r):null},getAsDataURL:function(){var t,e=this.getRuntime(),i=e.Image.getAsBlob.apply(this,arguments);return i?(t=new r,t.readAsDataURL(i)):null}};return t.Image=o}),n("moxie/runtime/silverlight/Runtime",["moxie/core/utils/Basic","moxie/core/utils/Env","moxie/core/utils/Dom","moxie/core/Exceptions","moxie/runtime/Runtime"],function(t,e,i,n,o){function a(t){var e,i,n,r,o,a=!1,s=null,l=0;try{try{s=new ActiveXObject("AgControl.AgControl"),s.IsVersionSupported(t)&&(a=!0),s=null}catch(s){var u=navigator.plugins["Silverlight Plug-In"];if(u){for(e=u.description,"1.0.30226.2"===e&&(e="2.0.30226.2"),i=e.split(".");i.length>3;)i.pop();for(;i.length<4;)i.push(0);for(n=t.split(".");n.length>4;)n.pop();do{r=parseInt(n[l],10),o=parseInt(i[l],10),l++}while(l<n.length&&r===o);o>=r&&!isNaN(r)&&(a=!0)}}}catch(t){a=!1}return a}function s(s){var c,h=this;s=t.extend({xap_url:e.xap_url},s),o.call(this,s,l,{access_binary:o.capTrue,access_image_binary:o.capTrue,display_media:o.capTest(r("moxie/image/Image")),do_cors:o.capTrue,drag_and_drop:!1,report_upload_progress:o.capTrue,resize_image:o.capTrue,return_response_headers:function(t){return t&&"client"===h.mode},return_response_type:function(t){return"json"!==t||!!window.JSON},return_status_code:function(e){return"client"===h.mode||!t.arrayDiff(e,[200,404])},select_file:o.capTrue,select_multiple:o.capTrue,send_binary_string:o.capTrue,send_browser_cookies:function(t){return t&&"browser"===h.mode},send_custom_headers:function(t){return t&&"client"===h.mode},send_multipart:o.capTrue,slice_blob:o.capTrue,stream_upload:!0,summon_file_dialog:!1,upload_filesize:o.capTrue,use_http_method:function(e){return"client"===h.mode||!t.arrayDiff(e,["GET","POST"])}},{return_response_headers:function(t){return t?"client":"browser"},return_status_code:function(e){return t.arrayDiff(e,[200,404])?"client":["client","browser"]},send_browser_cookies:function(t){return t?"browser":"client"},send_custom_headers:function(t){return t?"client":"browser"},use_http_method:function(e){return t.arrayDiff(e,["GET","POST"])?"client":["client","browser"]}}),a("2.0.31005.0")&&"Opera"!==e.browser||(this.mode=!1),t.extend(this,{getShim:function(){return i.get(this.uid).content.Moxie},shimExec:function(t,e){var i=[].slice.call(arguments,2);return h.getShim().exec(this.uid,t,e,i)},init:function(){var t;t=this.getShimContainer(),t.innerHTML='<object id="'+this.uid+'" data="data:application/x-silverlight," type="application/x-silverlight-2" width="100%" height="100%" style="outline:none;"><param name="source" value="'+s.xap_url+'"/><param name="background" value="Transparent"/><param name="windowless" value="true"/><param name="enablehtmlaccess" value="true"/><param name="initParams" value="uid='+this.uid+",target="+o.getGlobalEventTarget()+'"/></object>',c=setTimeout(function(){h&&!h.initialized&&h.trigger("Error",new n.RuntimeError(n.RuntimeError.NOT_INIT_ERR))},"Windows"!==e.OS?1e4:5e3)},destroy:function(t){return function(){t.call(h),clearTimeout(c),s=c=t=h=null}}(this.destroy)},u)}var l="silverlight",u={};return o.addConstructor(l,s),u}),n("moxie/runtime/silverlight/file/Blob",["moxie/runtime/silverlight/Runtime","moxie/core/utils/Basic","moxie/runtime/flash/file/Blob"],function(t,e,i){return t.Blob=e.extend({},i)}),n("moxie/runtime/silverlight/file/FileInput",["moxie/runtime/silverlight/Runtime","moxie/file/File","moxie/core/utils/Dom","moxie/core/utils/Basic"],function(t,e,i,n){function r(t){for(var e="",i=0;i<t.length;i++)e+=(""!==e?"|":"")+t[i].title+" | *."+t[i].extensions.replace(/,/g,";*.");return e}var o={init:function(t){var o=this,a=this.getRuntime(),s=i.get(t.browse_button);s&&(s.setAttribute("tabindex",-1),s=null),this.bind("Change",function(){var t=a.shimExec.call(o,"FileInput","getFiles");o.files=[],n.each(t,function(t){o.files.push(new e(a.uid,t))})},999),a.shimExec.call(this,"FileInput","init",r(t.accept),t.multiple),this.trigger("ready")},setOption:function(t,e){"accept"==t&&(e=r(e)),this.getRuntime().shimExec.call(this,"FileInput","setOption",t,e)}};return t.FileInput=o}),n("moxie/runtime/silverlight/file/FileDrop",["moxie/runtime/silverlight/Runtime","moxie/core/utils/Dom","moxie/core/utils/Events"],function(t,e,i){var n={init:function(){var t,n=this,r=n.getRuntime();return t=r.getShimContainer(),i.addEvent(t,"dragover",function(t){t.preventDefault(),t.stopPropagation(),t.dataTransfer.dropEffect="copy"},n.uid),i.addEvent(t,"dragenter",function(t){t.preventDefault(),e.get(r.uid).dragEnter(t)&&t.stopPropagation()},n.uid),i.addEvent(t,"drop",function(t){t.preventDefault(),e.get(r.uid).dragDrop(t)&&t.stopPropagation()},n.uid),r.shimExec.call(this,"FileDrop","init")}};return t.FileDrop=n}),n("moxie/runtime/silverlight/file/FileReader",["moxie/runtime/silverlight/Runtime","moxie/core/utils/Basic","moxie/runtime/flash/file/FileReader"],function(t,e,i){return t.FileReader=e.extend({},i)}),n("moxie/runtime/silverlight/file/FileReaderSync",["moxie/runtime/silverlight/Runtime","moxie/core/utils/Basic","moxie/runtime/flash/file/FileReaderSync"],function(t,e,i){return t.FileReaderSync=e.extend({},i)}),n("moxie/runtime/silverlight/runtime/Transporter",["moxie/runtime/silverlight/Runtime","moxie/core/utils/Basic","moxie/runtime/flash/runtime/Transporter"],function(t,e,i){return t.Transporter=e.extend({},i)}),n("moxie/runtime/silverlight/xhr/XMLHttpRequest",["moxie/runtime/silverlight/Runtime","moxie/core/utils/Basic","moxie/runtime/flash/xhr/XMLHttpRequest","moxie/runtime/silverlight/file/FileReaderSync","moxie/runtime/silverlight/runtime/Transporter"],function(t,e,i){return t.XMLHttpRequest=e.extend({},i)}),n("moxie/runtime/silverlight/image/Image",["moxie/runtime/silverlight/Runtime","moxie/core/utils/Basic","moxie/file/Blob","moxie/runtime/flash/image/Image"],function(t,e,i,n){return t.Image=e.extend({},n,{getInfo:function(){var t=this.getRuntime(),n=["tiff","exif","gps","thumb"],r={meta:{}},o=t.shimExec.call(this,"Image","getInfo");return o.meta&&(e.each(n,function(t){var e,i,n,a,s=o.meta[t];if(s&&s.keys)for(r.meta[t]={},i=0,n=s.keys.length;n>i;i++)e=s.keys[i],(a=s[e])&&(/^(\d|[1-9]\d+)$/.test(a)?a=parseInt(a,10):/^\d*\.\d+$/.test(a)&&(a=parseFloat(a)),r.meta[t][e]=a)}),r.meta&&r.meta.thumb&&r.meta.thumb.data&&!(t.meta.thumb.data instanceof i)&&(r.meta.thumb.data=new i(t.uid,r.meta.thumb.data))),r.width=parseInt(o.width,10),r.height=parseInt(o.height,10),r.size=parseInt(o.size,10),r.type=o.type,r.name=o.name,r},resize:function(t,e,i){this.getRuntime().shimExec.call(this,"Image","resize",t.x,t.y,t.width,t.height,e,i.preserveHeaders,i.resample)}})}),n("moxie/runtime/html4/Runtime",["moxie/core/utils/Basic","moxie/core/Exceptions","moxie/runtime/Runtime","moxie/core/utils/Env"],function(t,e,i,n){function o(e){var o=this,l=i.capTest,u=i.capTrue;i.call(this,e,a,{access_binary:l(window.FileReader||window.File&&File.getAsDataURL),access_image_binary:!1,display_media:l((n.can("create_canvas")||n.can("use_data_uri_over32kb"))&&r("moxie/image/Image")),do_cors:!1,drag_and_drop:!1,filter_by_extension:l(function(){return!("Chrome"===n.browser&&n.verComp(n.version,28,"<")||"IE"===n.browser&&n.verComp(n.version,10,"<")||"Safari"===n.browser&&n.verComp(n.version,7,"<")||"Firefox"===n.browser&&n.verComp(n.version,37,"<"))}()),resize_image:function(){return s.Image&&o.can("access_binary")&&n.can("create_canvas")},report_upload_progress:!1,return_response_headers:!1,return_response_type:function(e){return!("json"!==e||!window.JSON)||!!~t.inArray(e,["text","document",""])},return_status_code:function(e){return!t.arrayDiff(e,[200,404])},select_file:function(){return n.can("use_fileinput")},select_multiple:!1,send_binary_string:!1,send_custom_headers:!1,send_multipart:!0,slice_blob:!1,stream_upload:function(){return o.can("select_file")},summon_file_dialog:function(){return o.can("select_file")&&!("Firefox"===n.browser&&n.verComp(n.version,4,"<")||"Opera"===n.browser&&n.verComp(n.version,12,"<")||"IE"===n.browser&&n.verComp(n.version,10,"<"))},upload_filesize:u,use_http_method:function(e){return!t.arrayDiff(e,["GET","POST"])}}),t.extend(this,{init:function(){this.trigger("Init")},destroy:function(t){return function(){t.call(o),t=o=null}}(this.destroy)}),t.extend(this.getShim(),s)}var a="html4",s={};return i.addConstructor(a,o),s}),n("moxie/runtime/html4/file/FileInput",["moxie/runtime/html4/Runtime","moxie/file/File","moxie/core/utils/Basic","moxie/core/utils/Dom","moxie/core/utils/Events","moxie/core/utils/Mime","moxie/core/utils/Env"],function(t,e,i,n,r,o,a){function s(){function t(){var o,u,h,d,f,p,g=this,m=g.getRuntime();p=i.guid("uid_"),o=m.getShimContainer(),s&&(h=n.get(s+"_form"))&&(i.extend(h.style,{top:"100%"}),h.firstChild.setAttribute("tabindex",-1)),d=document.createElement("form"),d.setAttribute("id",p+"_form"),d.setAttribute("method","post"),d.setAttribute("enctype","multipart/form-data"),d.setAttribute("encoding","multipart/form-data"),i.extend(d.style,{overflow:"hidden",position:"absolute",top:0,left:0,width:"100%",height:"100%"}),f=document.createElement("input"),f.setAttribute("id",p),f.setAttribute("type","file"),f.setAttribute("accept",c.join(",")), m.can("summon_file_dialog")&&f.setAttribute("tabindex",-1),i.extend(f.style,{fontSize:"999px",opacity:0}),d.appendChild(f),o.appendChild(d),i.extend(f.style,{position:"absolute",top:0,left:0,width:"100%",height:"100%"}),"IE"===a.browser&&a.verComp(a.version,10,"<")&&i.extend(f.style,{filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=0)"}),f.onchange=function(){var i;this.value&&(i=this.files?this.files[0]:{name:this.value},i=new e(m.uid,i),this.onchange=function(){},t.call(g),g.files=[i],f.setAttribute("id",i.uid),d.setAttribute("id",i.uid+"_form"),g.trigger("change"),f=d=null)},m.can("summon_file_dialog")&&(u=n.get(l.browse_button),r.removeEvent(u,"click",g.uid),r.addEvent(u,"click",function(t){f&&!f.disabled&&f.click(),t.preventDefault()},g.uid)),s=p,o=h=u=null}var s,l,u,c=[];i.extend(this,{init:function(e){var i,a=this,s=a.getRuntime();l=e,c=o.extList2mimes(e.accept,s.can("filter_by_extension")),i=s.getShimContainer(),function(){var t,o,c;t=n.get(e.browse_button),u=n.getStyle(t,"z-index")||"auto",s.can("summon_file_dialog")?("static"===n.getStyle(t,"position")&&(t.style.position="relative"),a.bind("Refresh",function(){o=parseInt(u,10)||1,n.get(l.browse_button).style.zIndex=o,this.getRuntime().getShimContainer().style.zIndex=o-1})):t.setAttribute("tabindex",-1),c=s.can("summon_file_dialog")?t:i,r.addEvent(c,"mouseover",function(){a.trigger("mouseenter")},a.uid),r.addEvent(c,"mouseout",function(){a.trigger("mouseleave")},a.uid),r.addEvent(c,"mousedown",function(){a.trigger("mousedown")},a.uid),r.addEvent(n.get(e.container),"mouseup",function(){a.trigger("mouseup")},a.uid),t=null}(),t.call(this),i=null,a.trigger({type:"ready",async:!0})},setOption:function(t,e){var i,r=this.getRuntime();"accept"==t&&(c=e.mimes||o.extList2mimes(e,r.can("filter_by_extension"))),(i=n.get(s))&&i.setAttribute("accept",c.join(","))},disable:function(t){var e;(e=n.get(s))&&(e.disabled=!!t)},destroy:function(){var t=this.getRuntime(),e=t.getShim(),i=t.getShimContainer(),o=l&&n.get(l.container),a=l&&n.get(l.browse_button);o&&r.removeAllEvents(o,this.uid),a&&(r.removeAllEvents(a,this.uid),a.style.zIndex=u),i&&(r.removeAllEvents(i,this.uid),i.innerHTML=""),e.removeInstance(this.uid),s=c=l=i=o=a=e=null}})}return t.FileInput=s}),n("moxie/runtime/html4/file/FileReader",["moxie/runtime/html4/Runtime","moxie/runtime/html5/file/FileReader"],function(t,e){return t.FileReader=e}),n("moxie/runtime/html4/xhr/XMLHttpRequest",["moxie/runtime/html4/Runtime","moxie/core/utils/Basic","moxie/core/utils/Dom","moxie/core/utils/Url","moxie/core/Exceptions","moxie/core/utils/Events","moxie/file/Blob","moxie/xhr/FormData"],function(t,e,i,n,r,o,a,s){function l(){function t(t){var e,n,r,a,s=this,l=!1;if(c){if(e=c.id.replace(/_iframe$/,""),n=i.get(e+"_form")){for(r=n.getElementsByTagName("input"),a=r.length;a--;)switch(r[a].getAttribute("type")){case"hidden":r[a].parentNode.removeChild(r[a]);break;case"file":l=!0}r=[],l||n.parentNode.removeChild(n),n=null}setTimeout(function(){o.removeEvent(c,"load",s.uid),c.parentNode&&c.parentNode.removeChild(c);var e=s.getRuntime().getShimContainer();e.children.length||e.parentNode.removeChild(e),e=c=null,t()},1)}}var l,u,c;e.extend(this,{send:function(h,d){var f,p,g,m,v=this,y=v.getRuntime();if(l=u=null,d instanceof s&&d.hasBlob()){if(m=d.getBlob(),f=m.uid,g=i.get(f),!(p=i.get(f+"_form")))throw new r.DOMException(r.DOMException.NOT_FOUND_ERR)}else f=e.guid("uid_"),p=document.createElement("form"),p.setAttribute("id",f+"_form"),p.setAttribute("method",h.method),p.setAttribute("enctype","multipart/form-data"),p.setAttribute("encoding","multipart/form-data"),y.getShimContainer().appendChild(p);p.setAttribute("target",f+"_iframe"),d instanceof s&&d.each(function(t,i){if(t instanceof a)g&&g.setAttribute("name",i);else{var n=document.createElement("input");e.extend(n,{type:"hidden",name:i,value:t}),g?p.insertBefore(n,g):p.appendChild(n)}}),p.setAttribute("action",h.url),function(){var i=y.getShimContainer()||document.body,r=document.createElement("div");r.innerHTML='<iframe id="'+f+'_iframe" name="'+f+'_iframe" src="javascript:&quot;&quot;" style="display:none"></iframe>',c=r.firstChild,i.appendChild(c),o.addEvent(c,"load",function(){var i;try{i=c.contentWindow.document||c.contentDocument||window.frames[c.id].document,/^4(0[0-9]|1[0-7]|2[2346])\s/.test(i.title)?l=i.title.replace(/^(\d+).*$/,"$1"):(l=200,u=e.trim(i.body.innerHTML),v.trigger({type:"progress",loaded:u.length,total:u.length}),m&&v.trigger({type:"uploadprogress",loaded:m.size||1025,total:m.size||1025}))}catch(e){if(!n.hasSameOrigin(h.url))return void t.call(v,function(){v.trigger("error")});l=404}t.call(v,function(){v.trigger("load")})},v.uid)}(),p.submit(),v.trigger("loadstart")},getStatus:function(){return l},getResponse:function(t){if("json"===t&&"string"===e.typeOf(u)&&window.JSON)try{return JSON.parse(u.replace(/^\s*<pre[^>]*>/,"").replace(/<\/pre>\s*$/,""))}catch(t){return null}return u},abort:function(){var e=this;c&&c.contentWindow&&(c.contentWindow.stop?c.contentWindow.stop():c.contentWindow.document.execCommand?c.contentWindow.document.execCommand("Stop"):c.src="about:blank"),t.call(this,function(){e.dispatchEvent("abort")})},destroy:function(){this.getRuntime().getShim().removeInstance(this.uid)}})}return t.XMLHttpRequest=l}),n("moxie/runtime/html4/image/Image",["moxie/runtime/html4/Runtime","moxie/runtime/html5/image/Image"],function(t,e){return t.Image=e}),function(i){for(var n=0;n<i.length;n++){for(var r=t,o=i[n],s=o.split(/[.\/]/),l=0;l<s.length-1;++l)r[s[l]]===e&&(r[s[l]]={}),r=r[s[l]];r[s[s.length-1]]=a[o]}}(["moxie/core/utils/Basic","moxie/core/utils/Encode","moxie/core/utils/Env","moxie/core/Exceptions","moxie/core/utils/Dom","moxie/core/EventTarget","moxie/runtime/Runtime","moxie/runtime/RuntimeClient","moxie/file/Blob","moxie/core/I18n","moxie/core/utils/Mime","moxie/file/FileInput","moxie/file/File","moxie/file/FileDrop","moxie/file/FileReader","moxie/core/utils/Url","moxie/runtime/RuntimeTarget","moxie/xhr/FormData","moxie/xhr/XMLHttpRequest","moxie/image/Image","moxie/core/utils/Events","moxie/runtime/html5/image/ResizerCanvas"])}(this)}),function(t,e){var i=function(){var t={};return e.apply(t,arguments),t.plupload};"function"==typeof define&&define.amd?define("plupload",["./moxie"],i):"object"==typeof module&&module.exports?module.exports=i(require("./moxie")):t.plupload=i(t.moxie)}(this||window,function(t){!function(t,e,i){function n(t){function e(t,e,i){var r={chunks:"slice_blob",jpgresize:"send_binary_string",pngresize:"send_binary_string",progress:"report_upload_progress",multi_selection:"select_multiple",dragdrop:"drag_and_drop",drop_element:"drag_and_drop",headers:"send_custom_headers",urlstream_upload:"send_binary_string",canSendBinary:"send_binary",triggerDialog:"summon_file_dialog"};r[t]?n[r[t]]=e:i||(n[t]=e)}var i=t.required_features,n={};return"string"==typeof i?l.each(i.split(/\s*,\s*/),function(t){e(t,!0)}):"object"==typeof i?l.each(i,function(t,i){e(i,t)}):!0===i&&(t.chunk_size&&t.chunk_size>0&&(n.slice_blob=!0),l.isEmptyObj(t.resize)&&!1!==t.multipart||(n.send_binary_string=!0),t.http_method&&(n.use_http_method=t.http_method),l.each(t,function(t,i){e(i,!!t,!0)})),n}var r=window.setTimeout,o={},a=e.core.utils,s=e.runtime.Runtime,l={VERSION:"2.3.6",STOPPED:1,STARTED:2,QUEUED:1,UPLOADING:2,FAILED:4,DONE:5,GENERIC_ERROR:-100,HTTP_ERROR:-200,IO_ERROR:-300,SECURITY_ERROR:-400,INIT_ERROR:-500,FILE_SIZE_ERROR:-600,FILE_EXTENSION_ERROR:-601,FILE_DUPLICATE_ERROR:-602,IMAGE_FORMAT_ERROR:-700,MEMORY_ERROR:-701,IMAGE_DIMENSIONS_ERROR:-702,moxie:e,mimeTypes:a.Mime.mimes,ua:a.Env,typeOf:a.Basic.typeOf,extend:a.Basic.extend,guid:a.Basic.guid,getAll:function(t){var e,i=[];"array"!==l.typeOf(t)&&(t=[t]);for(var n=t.length;n--;)(e=l.get(t[n]))&&i.push(e);return i.length?i:null},get:a.Dom.get,each:a.Basic.each,getPos:a.Dom.getPos,getSize:a.Dom.getSize,xmlEncode:function(t){var e={"<":"lt",">":"gt","&":"amp",'"':"quot","'":"#39"},i=/[<>&\"\']/g;return t?(""+t).replace(i,function(t){return e[t]?"&"+e[t]+";":t}):t},toArray:a.Basic.toArray,inArray:a.Basic.inArray,inSeries:a.Basic.inSeries,addI18n:e.core.I18n.addI18n,translate:e.core.I18n.translate,sprintf:a.Basic.sprintf,isEmptyObj:a.Basic.isEmptyObj,hasClass:a.Dom.hasClass,addClass:a.Dom.addClass,removeClass:a.Dom.removeClass,getStyle:a.Dom.getStyle,addEvent:a.Events.addEvent,removeEvent:a.Events.removeEvent,removeAllEvents:a.Events.removeAllEvents,cleanName:function(t){var e,i;for(i=[/[\300-\306]/g,"A",/[\340-\346]/g,"a",/\307/g,"C",/\347/g,"c",/[\310-\313]/g,"E",/[\350-\353]/g,"e",/[\314-\317]/g,"I",/[\354-\357]/g,"i",/\321/g,"N",/\361/g,"n",/[\322-\330]/g,"O",/[\362-\370]/g,"o",/[\331-\334]/g,"U",/[\371-\374]/g,"u"],e=0;e<i.length;e+=2)t=t.replace(i[e],i[e+1]);return t=t.replace(/\s+/g,"_"),t=t.replace(/[^a-z0-9_\-\.]+/gi,"")},buildUrl:function(t,e){var i="";return l.each(e,function(t,e){i+=(i?"&":"")+encodeURIComponent(e)+"="+encodeURIComponent(t)}),i&&(t+=(t.indexOf("?")>0?"&":"?")+i),t},formatSize:function(t){function e(t,e){return Math.round(t*Math.pow(10,e))/Math.pow(10,e)}if(t===i||/\D/.test(t))return l.translate("N/A");var n=Math.pow(1024,4);return t>n?e(t/n,1)+" "+l.translate("tb"):t>(n/=1024)?e(t/n,1)+" "+l.translate("gb"):t>(n/=1024)?e(t/n,1)+" "+l.translate("mb"):t>1024?Math.round(t/1024)+" "+l.translate("kb"):t+" "+l.translate("b")},parseSize:a.Basic.parseSizeStr,predictRuntime:function(t,e){var i,n;return i=new l.Uploader(t),n=s.thatCan(i.getOption().required_features,e||t.runtimes),i.destroy(),n},addFileFilter:function(t,e){o[t]=e}};l.addFileFilter("mime_types",function(t,e,i){t.length&&!t.regexp.test(e.name)?(this.trigger("Error",{code:l.FILE_EXTENSION_ERROR,message:l.translate("File extension error."),file:e}),i(!1)):i(!0)}),l.addFileFilter("max_file_size",function(t,e,i){t=l.parseSize(t),void 0!==e.size&&t&&e.size>t?(this.trigger("Error",{code:l.FILE_SIZE_ERROR,message:l.translate("File size error."),file:e}),i(!1)):i(!0)}),l.addFileFilter("prevent_duplicates",function(t,e,i){if(t)for(var n=this.files.length;n--;)if(e.name===this.files[n].name&&e.size===this.files[n].size)return this.trigger("Error",{code:l.FILE_DUPLICATE_ERROR,message:l.translate("Duplicate file error."),file:e}),void i(!1);i(!0)}),l.addFileFilter("prevent_empty",function(t,e,n){t&&!e.size&&e.size!==i?(this.trigger("Error",{code:l.FILE_SIZE_ERROR,message:l.translate("File size error."),file:e}),n(!1)):n(!0)}),l.Uploader=function(t){function a(){var t,e,i=0;if(this.state==l.STARTED){for(e=0;e<A.length;e++)t||A[e].status!=l.QUEUED?i++:(t=A[e],this.trigger("BeforeUpload",t)&&(t.status=l.UPLOADING,this.trigger("UploadFile",t)));i==A.length&&(this.state!==l.STOPPED&&(this.state=l.STOPPED,this.trigger("StateChanged")),this.trigger("UploadComplete",A))}}function u(t){t.percent=t.size>0?Math.ceil(t.loaded/t.size*100):100,c()}function c(){var t,e,n,r=0;for(M.reset(),t=0;t<A.length;t++)e=A[t],e.size!==i?(M.size+=e.origSize,n=e.loaded*e.origSize/e.size,(!e.completeTimestamp||e.completeTimestamp>C)&&(r+=n),M.loaded+=n):M.size=i,e.status==l.DONE?M.uploaded++:e.status==l.FAILED?M.failed++:M.queued++;M.size===i?M.percent=A.length>0?Math.ceil(M.uploaded/A.length*100):0:(M.bytesPerSec=Math.ceil(r/((+new Date-C||1)/1e3)),M.percent=M.size>0?Math.ceil(M.loaded/M.size*100):0)}function h(){var t=E[0]||O[0];return!!t&&t.getRuntime().uid}function d(){this.bind("FilesAdded FilesRemoved",function(t){t.trigger("QueueChanged"),t.refresh()}),this.bind("CancelUpload",_),this.bind("BeforeUpload",m),this.bind("UploadFile",v),this.bind("UploadProgress",y),this.bind("StateChanged",x),this.bind("QueueChanged",c),this.bind("Error",w),this.bind("FileUploaded",b),this.bind("Destroy",S)}function f(t,i){var n=this,r=0,o=[],a={runtime_order:t.runtimes,required_caps:t.required_features,preferred_caps:k,swf_url:t.flash_swf_url,xap_url:t.silverlight_xap_url};l.each(t.runtimes.split(/\s*,\s*/),function(e){t[e]&&(a[e]=t[e])}),t.browse_button&&l.each(t.browse_button,function(i){o.push(function(o){var u=new e.file.FileInput(l.extend({},a,{accept:t.filters.mime_types,name:t.file_data_name,multiple:t.multi_selection,container:t.container,browse_button:i}));u.onready=function(){var t=s.getInfo(this.ruid);l.extend(n.features,{chunks:t.can("slice_blob"),multipart:t.can("send_multipart"),multi_selection:t.can("select_multiple")}),r++,E.push(this),o()},u.onchange=function(){n.addFile(this.files)},u.bind("mouseenter mouseleave mousedown mouseup",function(e){N||(t.browse_button_hover&&("mouseenter"===e.type?l.addClass(i,t.browse_button_hover):"mouseleave"===e.type&&l.removeClass(i,t.browse_button_hover)),t.browse_button_active&&("mousedown"===e.type?l.addClass(i,t.browse_button_active):"mouseup"===e.type&&l.removeClass(i,t.browse_button_active)))}),u.bind("mousedown",function(){n.trigger("Browse")}),u.bind("error runtimeerror",function(){u=null,o()}),u.init()})}),t.drop_element&&l.each(t.drop_element,function(t){o.push(function(i){var o=new e.file.FileDrop(l.extend({},a,{drop_zone:t}));o.onready=function(){var t=s.getInfo(this.ruid);l.extend(n.features,{chunks:t.can("slice_blob"),multipart:t.can("send_multipart"),dragdrop:t.can("drag_and_drop")}),r++,O.push(this),i()},o.ondrop=function(){n.addFile(this.files)},o.bind("error runtimeerror",function(){o=null,i()}),o.init()})}),l.inSeries(o,function(){"function"==typeof i&&i(r)})}function p(t,n,r,o){var a=new e.image.Image;try{a.onload=function(){n.width>this.width&&n.height>this.height&&n.quality===i&&n.preserve_headers&&!n.crop?(this.destroy(),o(t)):a.downsize(n.width,n.height,n.crop,n.preserve_headers)},a.onresize=function(){var e=this.getAsBlob(t.type,n.quality);this.destroy(),o(e)},a.bind("error runtimeerror",function(){this.destroy(),o(t)}),a.load(t,r)}catch(e){o(t)}}function g(t,i,r){function o(t,i,n){var r=T[t];switch(t){case"max_file_size":"max_file_size"===t&&(T.max_file_size=T.filters.max_file_size=i);break;case"chunk_size":(i=l.parseSize(i))&&(T[t]=i,T.send_file_name=!0);break;case"multipart":T[t]=i,i||(T.send_file_name=!0);break;case"http_method":T[t]="PUT"===i.toUpperCase()?"PUT":"POST";break;case"unique_names":T[t]=i,i&&(T.send_file_name=!0);break;case"filters":"array"===l.typeOf(i)&&(i={mime_types:i}),n?l.extend(T.filters,i):T.filters=i,i.mime_types&&("string"===l.typeOf(i.mime_types)&&(i.mime_types=e.core.utils.Mime.mimes2extList(i.mime_types)),i.mime_types.regexp=function(t){var e=[];return l.each(t,function(t){l.each(t.extensions.split(/,/),function(t){/^\s*\*\s*$/.test(t)?e.push("\\.*"):e.push("\\."+t.replace(new RegExp("["+"/^$.*+?|()[]{}\\".replace(/./g,"\\$&")+"]","g"),"\\$&"))})}),new RegExp("("+e.join("|")+")$","i")}(i.mime_types),T.filters.mime_types=i.mime_types);break;case"resize":T.resize=!!i&&l.extend({preserve_headers:!0,crop:!1},i);break;case"prevent_duplicates":T.prevent_duplicates=T.filters.prevent_duplicates=!!i;break;case"container":case"browse_button":case"drop_element":i="container"===t?l.get(i):l.getAll(i);case"runtimes":case"multi_selection":case"flash_swf_url":case"silverlight_xap_url":T[t]=i,n||(u=!0);break;default:T[t]=i}n||a.trigger("OptionChanged",t,i,r)}var a=this,u=!1;"object"==typeof t?l.each(t,function(t,e){o(e,t,r)}):o(t,i,r),r?(T.required_features=n(l.extend({},T)),k=n(l.extend({},T,{required_features:!0}))):u&&(a.trigger("Destroy"),f.call(a,T,function(t){t?(a.runtime=s.getInfo(h()).type,a.trigger("Init",{runtime:a.runtime}),a.trigger("PostInit")):a.trigger("Error",{code:l.INIT_ERROR,message:l.translate("Init error.")})}))}function m(t,e){if(t.settings.unique_names){var i=e.name.match(/\.([^.]+)$/),n="part";i&&(n=i[1]),e.target_name=e.id+"."+n}}function v(t,i){function n(){h-- >0?r(o,1e3):(i.loaded=f,t.trigger("Error",{code:l.HTTP_ERROR,message:l.translate("HTTP Error."),file:i,response:D.responseText,status:D.status,responseHeaders:D.getAllResponseHeaders()}))}function o(){var e,n,r={};i.status===l.UPLOADING&&t.state!==l.STOPPED&&(t.settings.send_file_name&&(r.name=i.target_name||i.name),c&&d.chunks&&s.size>c?(n=Math.min(c,s.size-f),e=s.slice(f,f+n)):(n=s.size,e=s),c&&d.chunks&&(t.settings.send_chunk_number?(r.chunk=Math.ceil(f/c),r.chunks=Math.ceil(s.size/c)):(r.offset=f,r.total=s.size)),t.trigger("BeforeChunkUpload",i,r,e,f)&&a(r,e,n))}function a(a,c,p){var m;D=new e.xhr.XMLHttpRequest,D.upload&&(D.upload.onprogress=function(e){i.loaded=Math.min(i.size,f+e.loaded),t.trigger("UploadProgress",i)}),D.onload=function(){return D.status<200||D.status>=400?void n():(h=t.settings.max_retries,p<s.size?(c.destroy(),f+=p,i.loaded=Math.min(f,s.size),t.trigger("ChunkUploaded",i,{offset:i.loaded,total:s.size,response:D.responseText,status:D.status,responseHeaders:D.getAllResponseHeaders()}),"Android Browser"===l.ua.browser&&t.trigger("UploadProgress",i)):i.loaded=i.size,c=m=null,void(!f||f>=s.size?(i.size!=i.origSize&&(s.destroy(),s=null),t.trigger("UploadProgress",i),i.status=l.DONE,i.completeTimestamp=+new Date,t.trigger("FileUploaded",i,{response:D.responseText,status:D.status,responseHeaders:D.getAllResponseHeaders()})):r(o,1)))},D.onerror=function(){n()},D.onloadend=function(){this.destroy()},t.settings.multipart&&d.multipart?(D.open(t.settings.http_method,u,!0),l.each(t.settings.headers,function(t,e){D.setRequestHeader(e,t)}),m=new e.xhr.FormData,l.each(l.extend(a,t.settings.multipart_params),function(t,e){m.append(e,t)}),m.append(t.settings.file_data_name,c),D.send(m,g)):(u=l.buildUrl(t.settings.url,l.extend(a,t.settings.multipart_params)),D.open(t.settings.http_method,u,!0),l.each(t.settings.headers,function(t,e){D.setRequestHeader(e,t)}),D.hasRequestHeader("Content-Type")||D.setRequestHeader("Content-Type","application/octet-stream"),D.send(c,g))}var s,u=t.settings.url,c=t.settings.chunk_size,h=t.settings.max_retries,d=t.features,f=0,g={runtime_order:t.settings.runtimes,required_caps:t.settings.required_features,preferred_caps:k,swf_url:t.settings.flash_swf_url,xap_url:t.settings.silverlight_xap_url};i.loaded&&(f=i.loaded=c?c*Math.floor(i.loaded/c):0),s=i.getSource(),l.isEmptyObj(t.settings.resize)||-1===l.inArray(s.type,["image/jpeg","image/png"])?o():p(s,t.settings.resize,g,function(t){s=t,i.size=t.size,o()})}function y(t,e){u(e)}function x(t){if(t.state==l.STARTED)C=+new Date;else if(t.state==l.STOPPED)for(var e=t.files.length-1;e>=0;e--)t.files[e].status==l.UPLOADING&&(t.files[e].status=l.QUEUED,c())}function _(){D&&D.abort()}function b(t){c(),r(function(){a.call(t)},1)}function w(t,e){e.code===l.INIT_ERROR?t.destroy():e.code===l.HTTP_ERROR&&(e.file.status=l.FAILED,e.file.completeTimestamp=+new Date,u(e.file),t.state==l.STARTED&&(t.trigger("CancelUpload"),r(function(){a.call(t)},1)))}function S(t){t.stop(),l.each(A,function(t){t.destroy()}),A=[],E.length&&(l.each(E,function(t){t.destroy()}),E=[]),O.length&&(l.each(O,function(t){t.destroy()}),O=[]),k={},N=!1,C=D=null,M.reset()}var T,C,M,D,I=l.guid(),A=[],k={},E=[],O=[],N=!1;T={chunk_size:0,file_data_name:"file",filters:{mime_types:[],max_file_size:0,prevent_duplicates:!1,prevent_empty:!0},flash_swf_url:"js/Moxie.swf",http_method:"POST",max_retries:0,multipart:!0,multi_selection:!0,resize:!1,runtimes:s.order,send_file_name:!0,send_chunk_number:!0,silverlight_xap_url:"js/Moxie.xap"},g.call(this,t,null,!0),M=new l.QueueProgress,l.extend(this,{id:I,uid:I,state:l.STOPPED,features:{},runtime:null,files:A,settings:T,total:M,init:function(){var t,e,i=this;return t=i.getOption("preinit"),"function"==typeof t?t(i):l.each(t,function(t,e){i.bind(e,t)}),d.call(i),l.each(["container","browse_button","drop_element"],function(t){return null===i.getOption(t)?(e={code:l.INIT_ERROR,message:l.sprintf(l.translate("%s specified, but cannot be found."),t)},!1):void 0}),e?i.trigger("Error",e):T.browse_button||T.drop_element?void f.call(i,T,function(t){var e=i.getOption("init");"function"==typeof e?e(i):l.each(e,function(t,e){i.bind(e,t)}),t?(i.runtime=s.getInfo(h()).type,i.trigger("Init",{runtime:i.runtime}),i.trigger("PostInit")):i.trigger("Error",{code:l.INIT_ERROR,message:l.translate("Init error.")})}):i.trigger("Error",{code:l.INIT_ERROR,message:l.translate("You must specify either browse_button or drop_element.")})},setOption:function(t,e){g.call(this,t,e,!this.runtime)},getOption:function(t){return t?T[t]:T},refresh:function(){E.length&&l.each(E,function(t){t.trigger("Refresh")}),this.trigger("Refresh")},start:function(){this.state!=l.STARTED&&(this.state=l.STARTED,this.trigger("StateChanged"),a.call(this))},stop:function(){this.state!=l.STOPPED&&(this.state=l.STOPPED,this.trigger("StateChanged"),this.trigger("CancelUpload"))},disableBrowse:function(){N=arguments[0]===i||arguments[0],E.length&&l.each(E,function(t){t.disable(N)}),this.trigger("DisableBrowse",N)},getFile:function(t){var e;for(e=A.length-1;e>=0;e--)if(A[e].id===t)return A[e]},addFile:function(t,i){function n(t,e){var i=[];l.each(u.settings.filters,function(e,n){o[n]&&i.push(function(i){o[n].call(u,e,t,function(t){i(!t)})})}),l.inSeries(i,e)}function a(t){var o=l.typeOf(t);if(t instanceof e.file.File){if(!t.ruid&&!t.isDetached()){if(!s)return!1;t.ruid=s,t.connectRuntime(s)}a(new l.File(t))}else t instanceof e.file.Blob?(a(t.getSource()),t.destroy()):t instanceof l.File?(i&&(t.name=i),c.push(function(e){n(t,function(i){i||(A.push(t),d.push(t),u.trigger("FileFiltered",t)),r(e,1)})})):-1!==l.inArray(o,["file","blob"])?a(new e.file.File(null,t)):"node"===o&&"filelist"===l.typeOf(t.files)?l.each(t.files,a):"array"===o&&(i=null,l.each(t,a))}var s,u=this,c=[],d=[];s=h(),a(t),c.length&&l.inSeries(c,function(){d.length&&u.trigger("FilesAdded",d)})},removeFile:function(t){for(var e="string"==typeof t?t:t.id,i=A.length-1;i>=0;i--)if(A[i].id===e)return this.splice(i,1)[0]},splice:function(t,e){var n=A.splice(t===i?0:t,e===i?A.length:e),r=!1;return this.state==l.STARTED&&(l.each(n,function(t){return t.status===l.UPLOADING?(r=!0,!1):void 0}),r&&this.stop()),this.trigger("FilesRemoved",n),l.each(n,function(t){t.destroy()}),r&&this.start(),n},dispatchEvent:function(t){var e,i;if(t=t.toLowerCase(),e=this.hasEventListener(t)){e.sort(function(t,e){return e.priority-t.priority}),i=[].slice.call(arguments),i.shift(),i.unshift(this);for(var n=0;n<e.length;n++)if(!1===e[n].fn.apply(e[n].scope,i))return!1}return!0},bind:function(t,e,i,n){l.Uploader.prototype.bind.call(this,t,e,n,i)},destroy:function(){this.trigger("Destroy"),T=M=null,this.unbindAll()}})},l.Uploader.prototype=e.core.EventTarget.instance,l.File=function(){function t(t){l.extend(this,{id:l.guid(),name:t.name||t.fileName,type:t.type||"",relativePath:t.relativePath||"",size:t.fileSize||t.size,origSize:t.fileSize||t.size,loaded:0,percent:0,status:l.QUEUED,lastModifiedDate:t.lastModifiedDate||(new Date).toLocaleString(),completeTimestamp:0,getNative:function(){var t=this.getSource().getSource();return-1!==l.inArray(l.typeOf(t),["blob","file"])?t:null},getSource:function(){return e[this.id]?e[this.id]:null},destroy:function(){var t=this.getSource();t&&(t.destroy(),delete e[this.id])}}),e[this.id]=t}var e={};return t}(),l.QueueProgress=function(){var t=this;t.size=0,t.loaded=0,t.uploaded=0,t.failed=0,t.queued=0,t.percent=0,t.bytesPerSec=0,t.reset=function(){t.size=t.loaded=t.uploaded=t.failed=t.queued=t.percent=t.bytesPerSec=0}},t.plupload=l}(this,t)}),plupload.addI18n({"N/A":"N/A",tb:"tb",gb:"gb",mb:"mb",kb:"kb",b:"b","File extension error.":"文件扩展名错误。","File size error.":"文件大小错误。","Duplicate file error.":"重复文件错误。","Init error.":"初始化错误。","HTTP Error.":"HTTP 错误。","%s specified, but cannot be found.":"%s 已指定,但是没有找到。","You must specify either browse_button or drop_element.":"您必须指定 browse_button 或者 drop_element。","Select files":"选择文件","Add files to the upload queue and click the start button.":"将文件添加到上传队列,然后点击”开始上传“按钮。",List:"列表",Thumbnails:"缩略图",Filename:"文件名",Status:"状态",Size:"大小","Drag files here.":"把文件拖到这里。","Add Files":"增加文件","Start Upload":"开始上传","Stop Upload":"停止上传","File count error.":"文件数量错误。","File: %s":"文件: %s","File: %s, size: %d, max file size: %d":"文件: %s, 大小: %d, 最大文件大小: %d","%s already present in the queue.":"%s 已经在当前队列里。","Upload element accepts only %d file(s) at a time. Extra files were stripped.":"每次只接受同时上传 %d 个文件,多余的文件将会被删除。","Image format either wrong or not supported.":"图片格式错误或者不支持。","Runtime ran out of available memory.":"运行时已消耗所有可用内存。","Resoultion out of boundaries! <b>%s</b> runtime supports images only up to %wx%hpx.":"超限。<b>%s</b> 支持最大 %wx%hpx 的图片。","Upload URL might be wrong or doesn't exist.":"上传的URL可能是错误的或不存在。",Close:"关闭","Uploaded %d/%d files":"已上传 %d/%d 个文件","%d files queued":"%d 个文件加入到队列","Error: File too large:":"错误: 文件太大:","Error: Invalid file extension:":"错误:无效的文件扩展名:"}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(e,n){var r,o,a,s=e.nodeName.toLowerCase();return"area"===s?(r=e.parentNode,o=r.name,!(!e.href||!o||"map"!==r.nodeName.toLowerCase())&&(!!(a=t("img[usemap='#"+o+"']")[0])&&i(a))):(/input|select|textarea|button|object/.test(s)?!e.disabled:"a"===s?e.href||n:n)&&i(e)}function i(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}function n(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function r(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=o(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function o(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",a)}function a(){t.datepicker._isDisabledDatepicker(v.inline?v.dpDiv.parent()[0]:v.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function s(e,i){t.extend(e,i);for(var n in i)null==i[n]&&(e[n]=i[n]);return e}function l(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.extend(t.ui,{version:"1.11.1",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({scrollParent:function(e){var i=this.css("position"),n="absolute"===i,r=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return(!n||"static"!==e.css("position"))&&r.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)},uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])},focusable:function(i){return e(i,!isNaN(t.attr(i,"tabindex")))},tabbable:function(i){var n=t.attr(i,"tabindex"),r=isNaN(n);return(r||n>=0)&&e(i,!r)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(e,i){function n(e,i,n,o){return t.each(r,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var r="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?a["inner"+i].call(this):this.each(function(){t(this).css(o,n(this,e)+"px")})},t.fn["outer"+i]=function(e,r){return"number"!=typeof e?a["outer"+i].call(this,e):this.each(function(){t(this).css(o,n(this,e,!0,r)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.fn.extend({focus:function(e){return function(i,n){return"number"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),n&&n.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var i,n,r=t(this[0]);r.length&&r[0]!==document;){if(("absolute"===(i=r.css("position"))||"relative"===i||"fixed"===i)&&(n=parseInt(r.css("zIndex"),10),!isNaN(n)&&0!==n))return n;r=r.parent()}return 0}}),t.ui.plugin={add:function(e,i,n){var r,o=t.ui[e].prototype;for(r in n)o.plugins[r]=o.plugins[r]||[],o.plugins[r].push([i,n[r]])},call:function(t,e,i,n){var r,o=t.plugins[e];if(o&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(r=0;r<o.length;r++)t.options[o[r][0]]&&o[r][1].apply(t.element,i)}};var u=0,c=Array.prototype.slice;t.cleanData=function(e){return function(i){var n,r,o;for(o=0;null!=(r=i[o]);o++)try{n=t._data(r,"events"),n&&n.remove&&t(r).triggerHandler("remove")}catch(t){}e(i)}}(t.cleanData),t.widget=function(e,i,n){var r,o,a,s,l={},u=e.split(".")[0];return e=e.split(".")[1],r=u+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][r.toLowerCase()]=function(e){return!!t.data(e,r)}, t[u]=t[u]||{},o=t[u][e],a=t[u][e]=function(t,e){if(!this._createWidget)return new a(t,e);arguments.length&&this._createWidget(t,e)},t.extend(a,o,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),s=new i,s.options=t.widget.extend({},s.options),t.each(n,function(e,n){if(!t.isFunction(n))return void(l[e]=n);l[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},r=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=r,e=n.apply(this,arguments),this._super=i,this._superApply=o,e}}()}),a.prototype=t.widget.extend(s,{widgetEventPrefix:o?s.widgetEventPrefix||e:e},l,{constructor:a,namespace:u,widgetName:e,widgetFullName:r}),o?(t.each(o._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,a,i._proto)}),delete o._childConstructors):i._childConstructors.push(a),t.widget.bridge(e,a),a},t.widget.extend=function(e){for(var i,n,r=c.call(arguments,1),o=0,a=r.length;o<a;o++)for(i in r[o])n=r[o][i],r[o].hasOwnProperty(i)&&void 0!==n&&(t.isPlainObject(n)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],n):t.widget.extend({},n):e[i]=n);return e},t.widget.bridge=function(e,i){var n=i.prototype.widgetFullName||e;t.fn[e]=function(r){var o="string"==typeof r,a=c.call(arguments,1),s=this;return r=!o&&a.length?t.widget.extend.apply(null,[r].concat(a)):r,o?this.each(function(){var i,o=t.data(this,n);return"instance"===r?(s=o,!1):o?t.isFunction(o[r])&&"_"!==r.charAt(0)?(i=o[r].apply(o,a),i!==o&&void 0!==i?(s=i&&i.jquery?s.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+r+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+r+"'")}):this.each(function(){var e=t.data(this,n);e?(e.option(r||{}),e._init&&e._init()):t.data(this,n,new i(r,this))}),s}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=u++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,r,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},n=e.split("."),e=n.shift(),n.length){for(r=a[e]=t.widget.extend({},this.options[e]),o=0;o<n.length-1;o++)r[n[o]]=r[n[o]]||{},r=r[n[o]];if(e=n.pop(),1===arguments.length)return void 0===r[e]?null:r[e];r[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!e),e&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(e,i,n){var r,o=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=r=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),t.each(n,function(n,a){function s(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||t.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+o.eventNamespace,c=l[2];c?r.delegate(c,u,s):i.bind(u,s)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var r,o,a=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(r in o)r in i||(i[r]=o[r]);return this.element.trigger(i,n),!(t.isFunction(a)&&!1===a.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,r,o){"string"==typeof r&&(r={effect:r});var a,s=r?!0===r||"number"==typeof r?i:r.effect||i:e;r=r||{},"number"==typeof r&&(r={duration:r}),a=!t.isEmptyObject(r),r.complete=o,r.delay&&n.delay(r.delay),a&&t.effects&&t.effects.effect[s]?n[e](r):s!==e&&n[s]?n[s](r.duration,r.easing,o):n.queue(function(i){t(this)[e](),o&&o.call(n[0]),i()})}});var h=(t.widget,!1);t(document).mouseup(function(){h=!1});t.widget("ui.mouse",{version:"1.11.1",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!h){this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,n=1===e.which,r=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(n&&!r&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),h=!0,!0))}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button?this._mouseUp(e):e.which?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),h=!1,!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}});!function(){function e(t,e,i){return[parseFloat(t[0])*(f.test(t[0])?e/100:1),parseFloat(t[1])*(f.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var r,o,a=Math.max,s=Math.abs,l=Math.round,u=/left|center|right/,c=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,f=/%$/,p=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==r)return r;var e,i,n=t("<div style='display:block;position:static;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=n.children()[0];return t("body").append(n),e=o.offsetWidth,n.css("overflow","scroll"),i=o.offsetWidth,e===i&&(i=n[0].clientWidth),n.remove(),r=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),r="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]),r=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:r,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n||r?i.width():i.outerWidth(),height:n||r?i.height():i.outerHeight()}}},t.fn.position=function(r){if(!r||!r.of)return p.apply(this,arguments);r=t.extend({},r);var f,g,m,v,y,x,_=t(r.of),b=t.position.getWithinInfo(r.within),w=t.position.getScrollInfo(b),S=(r.collision||"flip").split(" "),T={};return x=n(_),_[0].preventDefault&&(r.at="left top"),g=x.width,m=x.height,v=x.offset,y=t.extend({},v),t.each(["my","at"],function(){var t,e,i=(r[this]||"").split(" ");1===i.length&&(i=u.test(i[0])?i.concat(["center"]):c.test(i[0])?["center"].concat(i):["center","center"]),i[0]=u.test(i[0])?i[0]:"center",i[1]=c.test(i[1])?i[1]:"center",t=h.exec(i[0]),e=h.exec(i[1]),T[this]=[t?t[0]:0,e?e[0]:0],r[this]=[d.exec(i[0])[0],d.exec(i[1])[0]]}),1===S.length&&(S[1]=S[0]),"right"===r.at[0]?y.left+=g:"center"===r.at[0]&&(y.left+=g/2),"bottom"===r.at[1]?y.top+=m:"center"===r.at[1]&&(y.top+=m/2),f=e(T.at,g,m),y.left+=f[0],y.top+=f[1],this.each(function(){var n,u,c=t(this),h=c.outerWidth(),d=c.outerHeight(),p=i(this,"marginLeft"),x=i(this,"marginTop"),C=h+p+i(this,"marginRight")+w.width,M=d+x+i(this,"marginBottom")+w.height,D=t.extend({},y),I=e(T.my,c.outerWidth(),c.outerHeight());"right"===r.my[0]?D.left-=h:"center"===r.my[0]&&(D.left-=h/2),"bottom"===r.my[1]?D.top-=d:"center"===r.my[1]&&(D.top-=d/2),D.left+=I[0],D.top+=I[1],o||(D.left=l(D.left),D.top=l(D.top)),n={marginLeft:p,marginTop:x},t.each(["left","top"],function(e,i){t.ui.position[S[e]]&&t.ui.position[S[e]][i](D,{targetWidth:g,targetHeight:m,elemWidth:h,elemHeight:d,collisionPosition:n,collisionWidth:C,collisionHeight:M,offset:[f[0]+I[0],f[1]+I[1]],my:r.my,at:r.at,within:b,elem:c})}),r.using&&(u=function(t){var e=v.left-D.left,i=e+g-h,n=v.top-D.top,o=n+m-d,l={target:{element:_,left:v.left,top:v.top,width:g,height:m},element:{element:c,left:D.left,top:D.top,width:h,height:d},horizontal:i<0?"left":e>0?"right":"center",vertical:o<0?"top":n>0?"bottom":"middle"};g<h&&s(e+i)<g&&(l.horizontal="center"),m<d&&s(n+o)<m&&(l.vertical="middle"),a(s(e),s(i))>a(s(n),s(o))?l.important="horizontal":l.important="vertical",r.using.call(this,t,l)}),c.offset(t.extend(D,{using:u}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollLeft:n.offset.left,o=n.width,s=t.left-e.collisionPosition.marginLeft,l=r-s,u=s+e.collisionWidth-o-r;e.collisionWidth>o?l>0&&u<=0?(i=t.left+l+e.collisionWidth-o-r,t.left+=l-i):t.left=u>0&&l<=0?r:l>u?r+o-e.collisionWidth:r:l>0?t.left+=l:u>0?t.left-=u:t.left=a(t.left-s,t.left)},top:function(t,e){var i,n=e.within,r=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,l=r-s,u=s+e.collisionHeight-o-r;e.collisionHeight>o?l>0&&u<=0?(i=t.top+l+e.collisionHeight-o-r,t.top+=l-i):t.top=u>0&&l<=0?r:l>u?r+o-e.collisionHeight:r:l>0?t.top+=l:u>0?t.top-=u:t.top=a(t.top-s,t.top)}},flip:{left:function(t,e){var i,n,r=e.within,o=r.offset.left+r.scrollLeft,a=r.width,l=r.isWindow?r.scrollLeft:r.offset.left,u=t.left-e.collisionPosition.marginLeft,c=u-l,h=u+e.collisionWidth-a-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,f="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,p=-2*e.offset[0];c<0?((i=t.left+d+f+p+e.collisionWidth-a-o)<0||i<s(c))&&(t.left+=d+f+p):h>0&&((n=t.left-e.collisionPosition.marginLeft+d+f+p-l)>0||s(n)<h)&&(t.left+=d+f+p)},top:function(t,e){var i,n,r=e.within,o=r.offset.top+r.scrollTop,a=r.height,l=r.isWindow?r.scrollTop:r.offset.top,u=t.top-e.collisionPosition.marginTop,c=u-l,h=u+e.collisionHeight-a-l,d="top"===e.my[1],f=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];c<0?(n=t.top+f+p+g+e.collisionHeight-a-o,t.top+f+p+g>c&&(n<0||n<s(c))&&(t.top+=f+p+g)):h>0&&(i=t.top-e.collisionPosition.marginTop+f+p+g-l,t.top+f+p+g>h&&(i>0||s(i)<h)&&(t.top+=f+p+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,n,r,a,s=document.getElementsByTagName("body")[0],l=document.createElement("div");e=document.createElement(s?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},s&&t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"});for(a in n)e.style[a]=n[a];e.appendChild(l),i=s||document.documentElement,i.insertBefore(e,i.firstChild),l.style.cssText="position: static; left: 10.7432222px;",r=t(l).offset().left,o=r>10&&r<11,e.innerHTML="",i.removeChild(e)}()}();t.ui.position,t.widget("ui.accordion",{version:"1.11.1",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("<span>").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){if("active"===t)return void this._activate(e);"event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),"disabled"===t&&(this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,r=this.headers.index(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(r+1)%n];break;case i.LEFT:case i.UP:o=this.headers[(r-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[n-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),o.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=t()):!1===e.active?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var e,i=this.options,n=i.heightStyle,r=this.element.parent();this.active=this._findActive(i.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(){var e=t(this),i=e.uniqueId().attr("id"),n=e.next(),r=n.uniqueId().attr("id");e.attr("aria-controls",r),n.attr("aria-labelledby",i)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===n?(e=r.height(),this.element.siblings(":visible").each(function(){var i=t(this),n=i.css("position");"absolute"!==n&&"fixed"!==n&&(e-=i.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===n&&(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).css("height","").height())}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i=this.options,n=this.active,r=t(e.currentTarget),o=r[0]===n[0],a=o&&i.collapsible,s=a?t():r.next(),l=n.next(),u={oldHeader:n,oldPanel:l,newHeader:a?t():r,newPanel:s};e.preventDefault(),o&&!i.collapsible||!1===this._trigger("beforeActivate",e,u)||(i.active=!a&&this.headers.index(r),this.active=o?t():r,this._toggle(u),n.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),o||(r.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&r.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),r.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({"aria-hidden":"true"}),n.prev().attr("aria-selected","false"),i.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true",tabIndex:0,"aria-expanded":"true"})},_animate:function(t,e,i){var n,r,o,a=this,s=0,l=t.length&&(!e.length||t.index()<e.index()),u=this.options.animate||{},c=l&&u.down||u,h=function(){a._toggleComplete(i)};return"number"==typeof c&&(o=c),"string"==typeof c&&(r=c),r=r||c.easing||u.easing,o=o||c.duration||u.duration,e.length?t.length?(n=t.show().outerHeight(),e.animate(this.hideProps,{duration:o,easing:r,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:o,easing:r,complete:h,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?s+=i.now:"content"!==a.options.heightStyle&&(i.now=Math.round(n-e.outerHeight()-s),s=0)}})):e.animate(this.hideProps,o,r,h):t.animate(this.showProps,o,r,h)},_toggleComplete:function(t){var e=t.oldPanel;e.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.widget("ui.menu",{version:"1.11.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target);!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&t(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var i=t(e.currentTarget);i.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var n,r,o,a,s,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,r=this.previousFilter||"",o=String.fromCharCode(e.keyCode),a=!1,clearTimeout(this.filterTimer),o===r?a=!0:o=r+o,s=new RegExp("^"+i(o),"i"),n=this.activeMenu.find(this.options.items).filter(function(){return s.test(t(this).text())}),n=a&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n,n.length||(o=String.fromCharCode(e.keyCode),s=new RegExp("^"+i(o),"i"),n=this.activeMenu.find(this.options.items).filter(function(){return s.test(t(this).text())})),n.length?(this.focus(e,n),n.length>1?(this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(t):this.select(t))},refresh:function(){var e,i,n=this,r=this.options.icons.submenu,o=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),o.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.parent(),n=t("<span>").addClass("ui-menu-icon ui-icon "+r).data("ui-menu-submenu-carat",!0);i.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",i.attr("id"))}),e=o.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this);n._isDivider(e)&&e.addClass("ui-widget-content ui-menu-divider")}),i.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,r,o,a,s;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,r=e.offset().top-this.activeMenu.offset().top-i-n,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),s=e.outerHeight(),r<0?this.activeMenu.scrollTop(o+r):r+s>a&&this.activeMenu.scrollTop(o+r-a+s))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[e]()),this.focus(i,n)},nextPage:function(e){var i,n,r;if(!this.active)return void this.next(e);this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n-r<0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))},previousPage:function(e){var i,n,r;if(!this.active)return void this.next(e);this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,r=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-n+r>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first()))}, _hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)}});t.widget("ui.autocomplete",{version:"1.11.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,n,r=this.element[0].nodeName.toLowerCase(),o="textarea"===r,a="input"===r;this.isMultiLine=!!o||!a&&this.element.prop("isContentEditable"),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(r){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var o=t.ui.keyCode;switch(r.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",r);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",r);break;case o.UP:e=!0,this._keyEvent("previous",r);break;case o.DOWN:e=!0,this._keyEvent("next",r);break;case o.ENTER:this.menu.active&&(e=!0,r.preventDefault(),this.menu.select(r));break;case o.TAB:this.menu.active&&this.menu.select(r);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(r),r.preventDefault());break;default:i=!0,this._searchTimeout(r)}},keypress:function(n){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||n.preventDefault());if(!i){var r=t.ui.keyCode;switch(n.keyCode){case r.PAGE_UP:this._move("previousPage",n);break;case r.PAGE_DOWN:this._move("nextPage",n);break;case r.UP:this._keyEvent("previous",n);break;case r.DOWN:this._keyEvent("next",n)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){if(this.cancelBlur)return void delete this.cancelBlur;clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=t("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(n){n.target===e.element[0]||n.target===i||t.contains(i,n.target)||e.close()})})},menufocus:function(e,i){var n,r;if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)});r=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:r})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(r.value),(n=i.item.attr("aria-label")||r.value)&&t.trim(n).length&&(this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,r){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){r(t)},error:function(){r([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||i||n)||(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),--this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").text(i.label).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}});var d,f=(t.ui.autocomplete,"ui-button ui-widget ui-state-default ui-corner-all"),p="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",g=function(){var e=t(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},m=function(e){var i=e.name,n=e.form,r=t([]);return i&&(i=i.replace(/'/g,"\\'"),r=n?t(n).find("[name='"+i+"'][type=radio]"):t("[name='"+i+"'][type=radio]",e.ownerDocument).filter(function(){return!this.form})),r};t.widget("ui.button",{version:"1.11.1",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,g),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var e=this,i=this.options,n="checkbox"===this.type||"radio"===this.type,r=n?"":"ui-state-active";null===i.label&&(i.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(f).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){i.disabled||this===d&&t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){i.disabled||t(this).removeClass(r)}).bind("click"+this.eventNamespace,function(t){i.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}}),n&&this.element.bind("change"+this.eventNamespace,function(){e.refresh()}),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(i.disabled)return!1}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(i.disabled)return!1;t(this).addClass("ui-state-active"),e.buttonElement.attr("aria-pressed","true");var n=e.element[0];m(n).not(n).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(i.disabled)return!1;t(this).addClass("ui-state-active"),d=this,e.document.one("mouseup",function(){d=null})}).bind("mouseup"+this.eventNamespace,function(){if(i.disabled)return!1;t(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(e){if(i.disabled)return!1;e.keyCode!==t.ui.keyCode.SPACE&&e.keyCode!==t.ui.keyCode.ENTER||t(this).addClass("ui-state-active")}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()})),this._setOption("disabled",i.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type?(t=this.element.parents().last(),e="label[for='"+this.element.attr("id")+"']",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible"),i=this.element.is(":checked"),i&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(f+" ui-state-active "+p).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){if(this._super(t,e),"disabled"===t)return this.widget().toggleClass("ui-state-disabled",!!e),this.element.prop("disabled",!!e),void(e&&("checkbox"===this.type||"radio"===this.type?this.buttonElement.removeClass("ui-state-focus"):this.buttonElement.removeClass("ui-state-focus ui-state-active")));this._resetButton()},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOption("disabled",e),"radio"===this.type?m(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return void(this.options.label&&this.element.val(this.options.label));var e=this.buttonElement.removeClass(p),i=t("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),n=this.options.icons,r=n.primary&&n.secondary,o=[];n.primary||n.secondary?(this.options.text&&o.push("ui-button-text-icon"+(r?"s":n.primary?"-primary":"-secondary")),n.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+n.primary+"'></span>"),n.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+n.secondary+"'></span>"),this.options.text||(o.push(r?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(i)))):o.push("ui-button-text-only"),e.addClass(o.join(" "))}}),t.widget("ui.buttonset",{version:"1.11.1",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&&this.buttons.button("option",t,e),this._super(t,e)},refresh:function(){var e="rtl"===this.element.css("direction"),i=this.element.find(this.options.items),n=i.filter(":ui-button");i.not(":ui-button").button(),n.button("refresh"),this.buttons=i.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}});t.ui.button;t.extend(t.ui,{datepicker:{version:"1.11.1"}});var v;t.extend(r.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return s(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,r,o;n=e.nodeName.toLowerCase(),r="div"===n||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),o=this._newInst(t(e),r),o.settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,o):r&&this._inlineDatepicker(e,o)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?o(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,r,o,a=this._get(i,"appendText"),s=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=t("<span class='"+this._appendClass+"'>"+a+"</span>"),e[s?"before":"after"](i.append)),e.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),n=this._get(i,"showOn"),"focus"!==n&&"both"!==n||e.focus(this._showDatepicker),"button"!==n&&"both"!==n||(r=this._get(i,"buttonText"),o=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:o,alt:r,title:r}):t("<button type='button'></button>").addClass(this._triggerClass).html(o?t("<img/>").attr({src:o,alt:r,title:r}):r)),e[s?"before":"after"](i.trigger),i.trigger.click(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,r,o=new Date(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(i=0,n=0,r=0;r<t.length;r++)t[r].length>i&&(i=t[r].length,n=r);return n},o.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,r,o){var a,l,u,c,h,d=this._dialogInst;return d||(this.uuid+=1,a="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+a+"' style='position: static; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},t.data(this._dialogInput[0],"datepicker",d)),s(d.settings,r||{}),i=i&&i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(l=document.documentElement.clientWidth,u=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+c,u/2-150+h]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(e){var i,n=t(e),r=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(r.append.remove(),r.trigger.remove(),n.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||n.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var i,n,r=t(e),o=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||(n=r.children("."+this._inlineClass),n.children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,n,r=t(e),o=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||(n=r.children("."+this._inlineClass),n.children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,n){var r,o,a,l,u=this._getInst(e);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?t.extend({},t.datepicker._defaults):u?"all"===i?t.extend({},u.settings):this._get(u,i):null;r=i||{},"string"==typeof i&&(r={},r[i]=n),u&&(this._curInst===u&&this._hideDatepicker(),o=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(u,"min"),l=this._getMinMaxDate(u,"max"),s(u.settings,r),null!==a&&void 0!==r.dateFormat&&void 0===r.minDate&&(u.settings.minDate=this._formatDate(u,a)),null!==l&&void 0!==r.dateFormat&&void 0===r.maxDate&&(u.settings.maxDate=this._formatDate(u,l)),"disabled"in r&&(r.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),u),this._autoSize(u),this._setDate(u,o),this._updateAlternate(u),this._updateDatepicker(u))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,r,o=t.datepicker._getInst(e.target),a=!0,s=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),a=!1;break;case 13:return r=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",o.dpDiv),r[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,r[0]),i=t.datepicker._get(o,"onSelect"),i?(n=t.datepicker._formatDate(o),i.apply(o.input?o.input[0]:null,[n,o])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),a=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;break;default:a=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,r=t.datepicker._getInst(e.target);if(t.datepicker._get(r,"constrainInput"))return i=t.datepicker._possibleChars(t.datepicker._get(r,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(e){var i,n=t.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,t.datepicker._getFormatConfig(n)),i&&(t.datepicker._setDateFromField(n),t.datepicker._updateAlternate(n),t.datepicker._updateDatepicker(n))}catch(t){}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var i,r,o,a,l,u,c;i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),r=t.datepicker._get(i,"beforeShow"),o=r?r.apply(e,[e,i]):{},!1!==o&&(s(i.settings,o),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),a=!1,t(e).parents().each(function(){return!(a|="fixed"===t(this).css("position"))}),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),l=t.datepicker._checkOffset(i,l,a),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":a?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),i.inline||(u=t.datepicker._get(i,"showAnim"),c=t.datepicker._get(i,"duration"),i.dpDiv.css("z-index",n(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[u]?i.dpDiv.show(u,t.datepicker._get(i,"showOptions"),c):i.dpDiv[u||"show"](u?c:null),t.datepicker._shouldFocusInput(i)&&i.input.focus(),t.datepicker._curInst=i))}},_updateDatepicker:function(e){this.maxRows=4,v=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,n=this._getNumberOfMonths(e),r=n[1],o=e.dpDiv.find("."+this._dayOverClass+" a");o.length>0&&a.apply(o.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r>1&&e.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",17*r+"em"),e.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.focus(),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,n){var r=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,s=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),u=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?r-a:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+s?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+r>l&&l>r?Math.abs(i.left+r-l):0),i.top-=Math.min(i.top,i.top+o>u&&u>o?Math.abs(o+s):0),i},_findPos:function(e){for(var i,n=this._getInst(e),r=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[r?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,n,r,o,a=this._curInst;!a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(a,"showAnim"),n=this._get(a,"duration"),r=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),n,r):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,r),i||r(),this._datepickerShowing=!1,o=this._get(a,"onClose"),o&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===n)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var r=t(e),o=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(o,i+("M"===n?this._get(o,"showCurrentAtPos"):0),n),this._updateDatepicker(o))},_gotoToday:function(e){var i,n=t(e),r=this._getInst(n[0]);this._get(r,"gotoCurrent")&&r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(i=new Date,r.selectedDay=i.getDate(),r.drawMonth=r.selectedMonth=i.getMonth(),r.drawYear=r.selectedYear=i.getFullYear()),this._notifyChange(r),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var r=t(e),o=this._getInst(r[0]);o["selected"+("M"===n?"Month":"Year")]=o["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(r)},_selectDay:function(e,i,n,r){var o,a=t(e);t(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||(o=this._getInst(a[0]),o.selectedDay=o.currentDay=t("a",r).html(),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=n,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,r=t(e),o=this._getInst(r[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),n=this._get(o,"onSelect"),n?n.apply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var i,n,r,o=this._get(e,"altField");o&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),r=this.formatDate(i,n,this._getFormatConfig(e)),t(o).each(function(){t(this).val(r)}))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var r,o,a,s,l=0,u=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),h=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,d=(n?n.dayNames:null)||this._defaults.dayNames,f=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,p=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,y=-1,x=!1,_=function(t){var i=r+1<e.length&&e.charAt(r+1)===t;return i&&r++,i},b=function(t){var e=_(t),n="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,r="y"===t?n:1,o=new RegExp("^\\d{"+r+","+n+"}"),a=i.substring(l).match(o) ;if(!a)throw"Missing number at position "+l;return l+=a[0].length,parseInt(a[0],10)},w=function(e,n,r){var o=-1,a=t.map(_(e)?r:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(a,function(t,e){var n=e[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return o=e[0],l+=n.length,!1}),-1!==o)return o+1;throw"Unknown name at position "+l},S=function(){if(i.charAt(l)!==e.charAt(r))throw"Unexpected literal at position "+l;l++};for(r=0;r<e.length;r++)if(x)"'"!==e.charAt(r)||_("'")?S():x=!1;else switch(e.charAt(r)){case"d":v=b("d");break;case"D":w("D",h,d);break;case"o":y=b("o");break;case"m":m=b("m");break;case"M":m=w("M",f,p);break;case"y":g=b("y");break;case"@":s=new Date(b("@")),g=s.getFullYear(),m=s.getMonth()+1,v=s.getDate();break;case"!":s=new Date((b("!")-this._ticksTo1970)/1e4),g=s.getFullYear(),m=s.getMonth()+1,v=s.getDate();break;case"'":_("'")?S():x=!0;break;default:S()}if(l<i.length&&(a=i.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===g?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=c?0:-100)),y>-1)for(m=1,v=y;;){if(o=this._getDaysInMonth(g,m-1),v<=o)break;m++,v-=o}if(s=this._daylightSavingAdjust(new Date(g,m-1,v)),s.getFullYear()!==g||s.getMonth()+1!==m||s.getDate()!==v)throw"Invalid date";return s},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,s=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},u=function(t,e,i){var n=""+e;if(l(t))for(;n.length<i;)n="0"+n;return n},c=function(t,e,i,n){return l(t)?n[e]:i[e]},h="",d=!1;if(e)for(n=0;n<t.length;n++)if(d)"'"!==t.charAt(n)||l("'")?h+=t.charAt(n):d=!1;else switch(t.charAt(n)){case"d":h+=u("d",e.getDate(),2);break;case"D":h+=c("D",e.getDay(),r,o);break;case"o":h+=u("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=u("m",e.getMonth()+1,2);break;case"M":h+=c("M",e.getMonth(),a,s);break;case"y":h+=l("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":d=!0;break;default:h+=t.charAt(n)}return h},_possibleChars:function(t){var e,i="",n=!1,r=function(i){var n=e+1<t.length&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;e<t.length;e++)if(n)"'"!==t.charAt(e)||r("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":r("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,r=this._getDefaultDate(t),o=r,a=this._getFormatConfig(t);try{o=this.parseDate(i,n,a)||r}catch(t){n=e?"":n}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=n?o.getDate():0,t.currentMonth=n?o.getMonth():0,t.currentYear=n?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var r=null==i||""===i?n:"string"==typeof i?function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,r=n.getFullYear(),o=n.getMonth(),a=n.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=s.exec(i);l;){switch(l[2]||"d"){case"d":case"D":a+=parseInt(l[1],10);break;case"w":case"W":a+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(r,o));break;case"y":case"Y":r+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(r,o))}l=s.exec(i)}return new Date(r,o,a)}(i):"number"==typeof i?isNaN(i)?n:function(t){var e=new Date;return e.setDate(e.getDate()+t),e}(i):new Date(i.getTime());return r=r&&"Invalid Date"===r.toString()?n:r,r&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,r=t.selectedMonth,o=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),r===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,r,o,a,s,l,u,c,h,d,f,p,g,m,v,y,x,_,b,w,S,T,C,M,D,I,A,k,E,O,N,L,P,R,z,F,B,H=new Date,V=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),W=this._get(t,"isRTL"),$=this._get(t,"showButtonPanel"),j=this._get(t,"hideIfNoPrevNext"),U=this._get(t,"navigationAsDateFormat"),G=this._getNumberOfMonths(t),q=this._get(t,"showCurrentAtPos"),Y=this._get(t,"stepMonths"),X=1!==G[0]||1!==G[1],Z=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),K=this._getMinMaxDate(t,"min"),J=this._getMinMaxDate(t,"max"),Q=t.drawMonth-q,tt=t.drawYear;if(Q<0&&(Q+=12,tt--),J)for(e=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-G[0]*G[1]+1,J.getDate())),e=K&&e<K?K:e;this._daylightSavingAdjust(new Date(tt,Q,1))>e;)--Q<0&&(Q=11,tt--);for(t.drawMonth=Q,t.drawYear=tt,i=this._get(t,"prevText"),i=U?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,Q-Y,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,Q)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'>"+i+"</span></a>":j?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"e":"w")+"'>"+i+"</span></a>",r=this._get(t,"nextText"),r=U?this.formatDate(r,this._daylightSavingAdjust(new Date(tt,Q+Y,1)),this._getFormatConfig(t)):r,o=this._canAdjustMonth(t,1,tt,Q)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'>"+r+"</span></a>":j?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(W?"w":"e")+"'>"+r+"</span></a>",a=this._get(t,"currentText"),s=this._get(t,"gotoCurrent")&&t.currentDay?Z:V,a=U?this.formatDate(a,s,this._getFormatConfig(t)):a,l=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",u=$?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(W?l:"")+(this._isInRange(t,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a+"</button>":"")+(W?"":l)+"</div>":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,h=this._get(t,"showWeek"),d=this._get(t,"dayNames"),f=this._get(t,"dayNamesMin"),p=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),x=this._getDefaultDate(t),_="",w=0;w<G[0];w++){for(S="",this.maxRows=4,T=0;T<G[1];T++){if(C=this._daylightSavingAdjust(new Date(tt,Q,t.selectedDay)),M=" ui-corner-all",D="",X){if(D+="<div class='ui-datepicker-group",G[1]>1)switch(T){case 0:D+=" ui-datepicker-group-first",M=" ui-corner-"+(W?"right":"left");break;case G[1]-1:D+=" ui-datepicker-group-last",M=" ui-corner-"+(W?"left":"right");break;default:D+=" ui-datepicker-group-middle",M=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+M+"'>"+(/all|left/.test(M)&&0===w?W?o:n:"")+(/all|right/.test(M)&&0===w?W?n:o:"")+this._generateMonthYearHeader(t,Q,tt,K,J,w>0||T>0,p,g)+"</div><table class='ui-datepicker-calendar'><thead><tr>",I=h?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",b=0;b<7;b++)A=(b+c)%7,I+="<th scope='col'"+((b+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+d[A]+"'>"+f[A]+"</span></th>";for(D+=I+"</tr></thead><tbody>",k=this._getDaysInMonth(tt,Q),tt===t.selectedYear&&Q===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,k)),E=(this._getFirstDayOfMonth(tt,Q)-c+7)%7,O=Math.ceil((E+k)/7),N=X&&this.maxRows>O?this.maxRows:O,this.maxRows=N,L=this._daylightSavingAdjust(new Date(tt,Q,1-E)),P=0;P<N;P++){for(D+="<tr>",R=h?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(L)+"</td>":"",b=0;b<7;b++)z=m?m.apply(t.input?t.input[0]:null,[L]):[!0,""],F=L.getMonth()!==Q,B=F&&!y||!z[0]||K&&L<K||J&&L>J,R+="<td class='"+((b+c+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(L.getTime()===C.getTime()&&Q===t.selectedMonth&&t._keyEvent||x.getTime()===L.getTime()&&x.getTime()===C.getTime()?" "+this._dayOverClass:"")+(B?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!v?"":" "+z[1]+(L.getTime()===Z.getTime()?" "+this._currentClass:"")+(L.getTime()===V.getTime()?" ui-datepicker-today":""))+"'"+(F&&!v||!z[2]?"":" title='"+z[2].replace(/'/g,"&#39;")+"'")+(B?"":" data-handler='selectDay' data-event='click' data-month='"+L.getMonth()+"' data-year='"+L.getFullYear()+"'")+">"+(F&&!v?"&#xa0;":B?"<span class='ui-state-default'>"+L.getDate()+"</span>":"<a class='ui-state-default"+(L.getTime()===V.getTime()?" ui-state-highlight":"")+(L.getTime()===Z.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'>"+L.getDate()+"</a>")+"</td>",L.setDate(L.getDate()+1),L=this._daylightSavingAdjust(L);D+=R+"</tr>"}Q++,Q>11&&(Q=0,tt++),D+="</tbody></table>"+(X?"</div>"+(G[0]>0&&T===G[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),S+=D}_+=S}return _+=u,t._keyEvent=!1,_},_generateMonthYearHeader:function(t,e,i,n,r,o,a,s){var l,u,c,h,d,f,p,g,m=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),y=this._get(t,"showMonthAfterYear"),x="<div class='ui-datepicker-title'>",_="";if(o||!m)_+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=n&&n.getFullYear()===i,u=r&&r.getFullYear()===i,_+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=n.getMonth())&&(!u||c<=r.getMonth())&&(_+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+s[c]+"</option>");_+="</select>"}if(y||(x+=_+(!o&&m&&v?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!v)x+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(h=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),f=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e},p=f(h[0]),g=Math.max(p,f(h[1]||"")),p=n?Math.max(p,n.getFullYear()):p,g=r?Math.min(g,r.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";p<=g;p++)t.yearshtml+="<option value='"+p+"'"+(p===i?" selected='selected'":"")+">"+p+"</option>";t.yearshtml+="</select>",x+=t.yearshtml,t.yearshtml=null}return x+=this._get(t,"yearSuffix"),y&&(x+=(!o&&m&&v?"":"&#xa0;")+_),x+="</div>"},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"===i?e:0),r=t.drawMonth+("M"===i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(n,r))+("D"===i?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,r,o)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),r=i&&e<i?i:e;return n&&r>n?n:r},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var r=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(i,n+(e<0?e:r[0]*r[1]),1));return e<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var i,n,r=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),a=null,s=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),a=parseInt(i[0],10),s=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=n),i[1].match(/[+\-].*/)&&(s+=n)),(!r||e.getTime()>=r.getTime())&&(!o||e.getTime()<=o.getTime())&&(!a||e.getFullYear()>=a)&&(!s||e.getFullYear()<=s)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var r=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),r,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new r,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.11.1";t.datepicker;t.widget("ui.draggable",t.ui.mouse,{version:"1.11.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging"))return void(this.destroyOnClear=!0);this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),this._mouseDestroy()},_mouseCapture:function(e){var i=this.document[0],n=this.options;try{i.activeElement&&"body"!==i.activeElement.nodeName.toLowerCase()&&t(i.activeElement).blur()}catch(t){}return!(this.helper||n.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(t(!0===n.iframeFix?"iframe":n.iframeFix).each(function(){t("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0))},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp({}),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",e)&&i._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.element.focus(),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options,o=this.document[0];return this.relativeContainer=null,r.containment?"window"===r.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===r.containment?void(this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):r.containment.constructor===Array?void(this.containment=r.containment):("parent"===r.containment&&(r.containment=this.helper[0].parentNode),i=t(r.containment),void((n=i[0])&&(e="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n,r,o,a=this.options,s=this._isRootNode(this.scrollParent[0]),l=t.pageX,u=t.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(u=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(u=i[3]+this.offset.click.top)),a.grid&&(r=a.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,u=i?r-this.offset.click.top>=i[1]||r-this.offset.click.top>i[3]?r:r-this.offset.click.top>=i[1]?r-a.grid[1]:r+a.grid[1]:r,o=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(l=this.originalPageX),"x"===a.axis&&(u=this.originalPageY)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),"drag"===e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,n){var r=n.options,o=t.extend({},i,{item:n.element});n.sortables=[],t(r.connectToSortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,o))})},stop:function(e,i,n){var r=t.extend({},i,{item:n.element});t.each(n.sortables,function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===n.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,r))})},drag:function(e,i,n){var r=this;t.each(n.sortables,function(){var o=!1,a=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(o=!0,t.each(n.sortables,function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!==a&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(a.instance.element[0],this.instance.element[0])&&(o=!1),o})),o?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(r).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger("toSortable",e),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),n._trigger("fromSortable",e),n.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var r=t("body"),o=n.options;r.css("cursor")&&(o._cursor=r.css("cursor")),r.css("cursor",o.cursor)},stop:function(e,i,n){var r=n.options;r._cursor&&t("body").css("cursor",r._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){var r=t(i.helper),o=n.options;r.css("opacity")&&(o._opacity=r.css("opacity")),r.css("opacity",o.opacity)},stop:function(e,i,n){var r=n.options;r._opacity&&t(i.helper).css("opacity",r._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,n){var r=n.options,o=!1,a=n.scrollParentNotHidden[0],s=n.document[0];a!==s&&"HTML"!==a.tagName?(r.axis&&"x"===r.axis||(n.overflowOffset.top+a.offsetHeight-e.pageY<r.scrollSensitivity?a.scrollTop=o=a.scrollTop+r.scrollSpeed:e.pageY-n.overflowOffset.top<r.scrollSensitivity&&(a.scrollTop=o=a.scrollTop-r.scrollSpeed)),r.axis&&"y"===r.axis||(n.overflowOffset.left+a.offsetWidth-e.pageX<r.scrollSensitivity?a.scrollLeft=o=a.scrollLeft+r.scrollSpeed:e.pageX-n.overflowOffset.left<r.scrollSensitivity&&(a.scrollLeft=o=a.scrollLeft-r.scrollSpeed))):(r.axis&&"x"===r.axis||(e.pageY-t(s).scrollTop()<r.scrollSensitivity?o=t(s).scrollTop(t(s).scrollTop()-r.scrollSpeed):t(window).height()-(e.pageY-t(s).scrollTop())<r.scrollSensitivity&&(o=t(s).scrollTop(t(s).scrollTop()+r.scrollSpeed))),r.axis&&"y"===r.axis||(e.pageX-t(s).scrollLeft()<r.scrollSensitivity?o=t(s).scrollLeft(t(s).scrollLeft()-r.scrollSpeed):t(window).width()-(e.pageX-t(s).scrollLeft())<r.scrollSensitivity&&(o=t(s).scrollLeft(t(s).scrollLeft()+r.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,n){var r=n.options;n.snapElements=[],t(r.snap.constructor!==String?r.snap.items||":data(ui-draggable)":r.snap).each(function(){var e=t(this),i=e.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})})},drag:function(e,i,n){ var r,o,a,s,l,u,c,h,d,f,p=n.options,g=p.snapTolerance,m=i.offset.left,v=m+n.helperProportions.width,y=i.offset.top,x=y+n.helperProportions.height;for(d=n.snapElements.length-1;d>=0;d--)l=n.snapElements[d].left,u=l+n.snapElements[d].width,c=n.snapElements[d].top,h=c+n.snapElements[d].height,v<l-g||m>u+g||x<c-g||y>h+g||!t.contains(n.snapElements[d].item.ownerDocument,n.snapElements[d].item)?(n.snapElements[d].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=!1):("inner"!==p.snapMode&&(r=Math.abs(c-x)<=g,o=Math.abs(h-y)<=g,a=Math.abs(l-v)<=g,s=Math.abs(u-m)<=g,r&&(i.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top-n.margins.top),o&&(i.position.top=n._convertPositionTo("relative",{top:h,left:0}).top-n.margins.top),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left-n.margins.left),s&&(i.position.left=n._convertPositionTo("relative",{top:0,left:u}).left-n.margins.left)),f=r||o||a||s,"outer"!==p.snapMode&&(r=Math.abs(c-y)<=g,o=Math.abs(h-x)<=g,a=Math.abs(l-m)<=g,s=Math.abs(u-v)<=g,r&&(i.position.top=n._convertPositionTo("relative",{top:c,left:0}).top-n.margins.top),o&&(i.position.top=n._convertPositionTo("relative",{top:h-n.helperProportions.height,left:0}).top-n.margins.top),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left-n.margins.left),s&&(i.position.left=n._convertPositionTo("relative",{top:0,left:u-n.helperProportions.width}).left-n.margins.left)),!n.snapElements[d].snapping&&(r||o||a||s||f)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=r||o||a||s||f)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var r,o=n.options,a=t.makeArray(t(o.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});a.length&&(r=parseInt(t(a[0]).css("zIndex"),10)||0,t(a).each(function(e){t(this).css("zIndex",r+e)}),this.css("zIndex",r+a.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,n){var r=t(i.helper),o=n.options;r.css("zIndex")&&(o._zIndex=r.css("zIndex")),r.css("zIndex",o.zIndex)},stop:function(e,i,n){var r=n.options;r._zIndex&&t(i.helper).css("zIndex",r._zIndex)}});t.ui.draggable;t.widget("ui.resizable",t.ui.mouse,{version:"1.11.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseInt(t,10)||0},_isNumber:function(t){return!isNaN(parseInt(t,10))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",r=!1;return e[n]>0||(e[n]=1,r=e[n]>0,e[n]=0,r)},_create:function(){var e,i,n,r,o,a=this,s=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!s.aspectRatio,aspectRatio:s.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:s.helper||s.ghost||s.animate?s.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=s.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;i<e.length;i++)n=t.trim(e[i]),o="ui-resizable-"+n,r=t("<div class='ui-resizable-handle "+o+"'></div>"),r.css({zIndex:s.zIndex}),"se"===n&&r.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[n]=".ui-resizable-"+n,this.element.append(r);this._renderAxis=function(e){var i,n,r,o;e=e||this.element;for(i in this.handles)this.handles[i].constructor===String&&(this.handles[i]=this.element.children(this.handles[i]).first().show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(n=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),r=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(r,o),this._proportionallyResize()),t(this.handles[i]).length},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){a.resizing||(this.className&&(r=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=r&&r[1]?r[1]:"se")}),s.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){s.disabled||(t(this).removeClass("ui-resizable-autohide"),a._handles.show())}).mouseleave(function(){s.disabled||a.resizing||(t(this).addClass("ui-resizable-autohide"),a._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(e){var i,n,r=!1;for(i in this.handles)((n=t(this.handles[i])[0])===e.target||t.contains(n,e.target))&&(r=!0);return!this.options.disabled&&r},_mouseStart:function(e){var i,n,r,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,n+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===r?this.axis+"-resize":r),a.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,n,r=this.originalMousePosition,o=this.axis,a=e.pageX-r.left||0,s=e.pageY-r.top||0,l=this._change[o];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,a,s]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,n,r,o,a,s,l,u=this.options,c=this;return this._helper&&(i=this._proportionallyResizeElements,n=i.length&&/textarea/i.test(i[0].nodeName),r=n&&this._hasScroll(i[0],"left")?0:c.sizeDiff.height,o=n?0:c.sizeDiff.width,a={width:c.helper.width()-o,height:c.helper.height()-r},s=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,l=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null,u.animate||this.element.css(t.extend(a,{top:l,left:s})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!u.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n,r,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,r=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),n>o.minHeight&&(o.minHeight=n),i<o.maxWidth&&(o.maxWidth=i),r<o.maxHeight&&(o.maxHeight=r)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,r=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,s=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,u=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),r&&(t.height=e.maxHeight),o&&u&&(t.left=s-e.minWidth),n&&u&&(t.left=s-e.maxWidth),a&&c&&(t.top=l-e.minHeight),r&&c&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],r=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseInt(n[e],10)||0,i[e]+=parseInt(r[e],10)||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),n=i.options,r=i._proportionallyResizeElements,o=r.length&&/textarea/i.test(r[0].nodeName),a=o&&i._hasScroll(r[0],"left")?0:i.sizeDiff.height,s=o?0:i.sizeDiff.width,l={width:i.size.width-s,height:i.size.height-a},u=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,c=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,c&&u?{top:c,left:u}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};r&&r.length&&t(r[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,n,r,o,a,s,l=t(this).resizable("instance"),u=l.options,c=l.element,h=u.containment,d=h instanceof t?h.get(0):/parent/.test(h)?c.parent().get(0):h;d&&(l.containerElement=t(d),/document/.test(h)||h===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,n){i[t]=l._num(e.css("padding"+n))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},n=l.containerOffset,r=l.containerSize.height,o=l.containerSize.width,a=l._hasScroll(d,"left")?d.scrollWidth:o,s=l._hasScroll(d)?d.scrollHeight:r,l.parentData={element:d,left:n.left,top:n.top,width:a,height:s}))},resize:function(e){var i,n,r,o,a=t(this).resizable("instance"),s=a.options,l=a.containerOffset,u=a.position,c=a._aspectRatio||e.shiftKey,h={top:0,left:0},d=a.containerElement,f=!0;d[0]!==document&&/static/.test(d.css("position"))&&(h=l),u.left<(a._helper?l.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-l.left:a.position.left-h.left),c&&(a.size.height=a.size.width/a.aspectRatio,f=!1),a.position.left=s.helper?l.left:0),u.top<(a._helper?l.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-l.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio,f=!1),a.position.top=a._helper?l.top:0),r=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),r&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),i=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-h.left:a.offset.left-l.left)),n=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-h.top:a.offset.top-l.top)),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,c&&(a.size.height=a.size.width/a.aspectRatio,f=!1)),n+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-n,c&&(a.size.width=a.size.height*a.aspectRatio,f=!1)),f||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,n=e.containerOffset,r=e.containerPosition,o=e.containerElement,a=t(e.helper),s=a.offset(),l=a.outerWidth()-e.sizeDiff.width,u=a.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:s.left-r.left-n.left,width:l,height:u}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:s.left-r.left-n.left,width:l,height:u})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),i=e.options,n=function(e){t(e).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof i.alsoResize||i.alsoResize.parentNode?n(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],n(i.alsoResize)):t.each(i.alsoResize,function(t){n(t)})},resize:function(e,i){var n=t(this).resizable("instance"),r=n.options,o=n.originalSize,a=n.originalPosition,s={height:n.size.height-o.height||0,width:n.size.width-o.width||0,top:n.position.top-a.top||0,left:n.position.left-a.left||0},l=function(e,n){t(e).each(function(){var e=t(this),r=t(this).data("ui-resizable-alsoresize"),o={},a=n&&n.length?n:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(a,function(t,e){var i=(r[e]||0)+(s[e]||0);i&&i>=0&&(o[e]=i||null)}),e.css(o)})};"object"!=typeof r.alsoResize||r.alsoResize.nodeType?l(r.alsoResize):t.each(r.alsoResize,function(t,e){l(t,e)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.options,n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),n=i.options,r=i.size,o=i.originalSize,a=i.originalPosition,s=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,u=l[0]||1,c=l[1]||1,h=Math.round((r.width-o.width)/u)*u,d=Math.round((r.height-o.height)/c)*c,f=o.width+h,p=o.height+d,g=n.maxWidth&&n.maxWidth<f,m=n.maxHeight&&n.maxHeight<p,v=n.minWidth&&n.minWidth>f,y=n.minHeight&&n.minHeight>p;n.grid=l,v&&(f+=u),y&&(p+=c),g&&(f-=u),m&&(p-=c),/^(se|s|e)$/.test(s)?(i.size.width=f,i.size.height=p):/^(ne)$/.test(s)?(i.size.width=f,i.size.height=p,i.position.top=a.top-d):/^(sw)$/.test(s)?(i.size.width=f,i.size.height=p,i.position.left=a.left-h):((p-c<=0||f-u<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),p-c>0?(i.size.height=p,i.position.top=a.top-d):(p=c-e.height,i.size.height=p,i.position.top=a.top+o.height-p),f-u>0?(i.size.width=f,i.position.left=a.left-h):(f=c-e.height,i.size.width=f,i.position.left=a.left+o.width-f))}});t.ui.resizable,t.widget("ui.dialog",{version:"1.11.1",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"Close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;i<0&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i,n=this;if(this._isOpen&&!1!==this._trigger("beforeClose",e)){if(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),!this.opener.filter(":focusable").focus().length)try{i=this.document[0].activeElement,i&&"body"!==i.nodeName.toLowerCase()&&t(i).blur()}catch(t){}this._hide(this.uiDialog,this.options.hide,function(){n._trigger("close",e)})}},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var n=!1,r=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),o=Math.max.apply(null,r);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),n=!0),n&&!i&&this._trigger("focus",e),n},open:function(){var e=this;if(this._isOpen)return void(this._moveToTop()&&this._focusTabbable());this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),this._trigger("open")},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).focus()},_keepFocus:function(e){function i(){var e=this.document[0].activeElement;this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),n=i.filter(":first"),r=i.filter(":last");e.target!==r[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==n[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){r.focus()}),e.preventDefault()):(this._delay(function(){n.focus()}),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title||t.html("&#160;"),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;if(this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length)return void this.uiDialog.removeClass("ui-dialog-buttons");t.each(i,function(i,n){var r,o;n=t.isFunction(n)?{click:n,text:i}:n,n=t.extend({type:"button"},n),r=n.click,n.click=function(){r.apply(e.element[0],arguments)},o={icons:n.icons,text:n.showText},delete n.icons,delete n.showText,t("<button></button>",n).button(o).appendTo(e.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,r){t(this).addClass("ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",n,e(r))},drag:function(t,n){i._trigger("drag",t,e(n))},stop:function(r,o){var a=o.offset.left-i.document.scrollLeft(),s=o.offset.top-i.document.scrollTop();n.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(s>=0?"+":"")+s,of:i.window},t(this).removeClass("ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",r,e(o))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,n=this.options,r=n.resizable,o=this.uiDialog.css("position"),a="string"==typeof r?r:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:a,start:function(n,r){t(this).addClass("ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",n,e(r))},resize:function(t,n){i._trigger("resize",t,e(n))},stop:function(r,o){var a=i.uiDialog.offset(),s=a.left-i.document.scrollLeft(),l=a.top-i.document.scrollTop();n.height=i.uiDialog.height(),n.width=i.uiDialog.width(),n.position={my:"left top",at:"left"+(s>=0?"+":"")+s+" top"+(l>=0?"+":"")+l,of:i.window},t(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",r,e(o))}}).css("position",o)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),i=t.inArray(this,e);-1!==i&&e.splice(i,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var i=this,n=!1,r={};t.each(e,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(n=!0),t in i.resizableRelatedOptions&&(r[t]=e)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",r)},_setOption:function(t,e){var i,n,r=this.uiDialog;"dialogClass"===t&&r.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&&(i=r.is(":data(ui-draggable)"),i&&!e&&r.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&(n=r.is(":data(ui-resizable)"),n&&!e&&r.resizable("destroy"),n&&"string"==typeof e&&r.resizable("option","handles",e),n||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!t(e.target).closest(".ui-dialog").length||!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}}, _destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):this.document.unbind("focusin").removeData("ui-dialog-overlays"),this.overlay.remove(),this.overlay=null}}});t.widget("ui.droppable",{version:"1.11.1",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,n=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(n)?n:function(t){return t.is(n)},this.proportions=function(){if(!arguments.length)return e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});e=arguments[0]},this._addToManager(i.scope),i.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var n=t.ui.ddmanager.droppables[this.options.scope];this._splice(n),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,r=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=t(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===n.options.scope&&i.accept.call(i.element[0],n.currentItem||n.element)&&t.ui.intersect(n,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e))return r=!0,!1}),!r&&(!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(n)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(){function t(t,e,i){return t>=e&&t<e+i}return function(e,i,n,r){if(!i.offset)return!1;var o=(e.positionAbs||e.position.absolute).left,a=(e.positionAbs||e.position.absolute).top,s=o+e.helperProportions.width,l=a+e.helperProportions.height,u=i.offset.left,c=i.offset.top,h=u+i.proportions().width,d=c+i.proportions().height;switch(n){case"fit":return u<=o&&s<=h&&c<=a&&l<=d;case"intersect":return u<o+e.helperProportions.width/2&&s-e.helperProportions.width/2<h&&c<a+e.helperProportions.height/2&&l-e.helperProportions.height/2<d;case"pointer":return t(r.pageY,c,i.proportions().height)&&t(r.pageX,u,i.proportions().width);case"touch":return(a>=c&&a<=d||l>=c&&l<=d||a<c&&l>d)&&(o>=u&&o<=h||s>=u&&s<=h||o<u&&s>h);default:return!1}}}(),t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var n,r,o=t.ui.ddmanager.droppables[e.options.scope]||[],a=i?i.type:null,s=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;n<o.length;n++)if(!(o[n].options.disabled||e&&!o[n].accept.call(o[n].element[0],e.currentItem||e.element))){for(r=0;r<s.length;r++)if(s[r]===o[n].element[0]){o[n].proportions().height=0;continue t}o[n].visible="none"!==o[n].element.css("display"),o[n].visible&&("mousedown"===a&&o[n]._activate.call(o[n],i),o[n].offset=o[n].element.offset(),o[n].proportions({width:o[n].element[0].offsetWidth,height:o[n].element[0].offsetHeight}))}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance,i)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),n},dragStart:function(e,i){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,r,o,a=t.ui.intersect(e,this,this.options.tolerance,i),s=!a&&this.isover?"isout":a&&!this.isover?"isover":null;s&&(this.options.greedy&&(r=this.options.scope,o=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===r}),o.length&&(n=t(o[0]).droppable("instance"),n.greedyChild="isover"===s)),n&&"isover"===s&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,i),n&&"isout"===s&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}};var y=(t.ui.droppable,t);t.effects={effect:{}},function(t,e){function i(t,e,i){var n=c[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:0>t?0:n.max<t?n.max:t)}function n(e){var i=l(),n=i._rgba=[];return e=e.toLowerCase(),f(s,function(t,r){var o,a=r.re.exec(e),s=a&&r.parse(a),l=r.space||"rgba";if(s)return o=i[l](s),i[u[l].cache]=o[u[l].cache],n=i._rgba=o._rgba,!1}),n.length?("0,0,0,0"===n.join()&&t.extend(n,o.transparent),i):o[e]}function r(t,e,i){return i=(i+1)%1,6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}var o,a=/^([\-+])=\s*(\d+\.?\d*)/,s=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],l=t.Color=function(e,i,n,r){return new t.Color.fn.parse(e,i,n,r)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},c={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},h=l.support={},d=t("<p>")[0],f=t.each;d.style.cssText="background-color:rgba(1,1,1,.5)",h.rgba=d.style.backgroundColor.indexOf("rgba")>-1,f(u,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),l.fn=t.extend(l.prototype,{parse:function(e,r,a,s){if(void 0===e)return this._rgba=[null,null,null,null],this;(e.jquery||e.nodeType)&&(e=t(e).css(r),r=void 0);var c=this,h=t.type(e),d=this._rgba=[];return void 0!==r&&(e=[e,r,a,s],h="array"),"string"===h?this.parse(n(e)||o._default):"array"===h?(f(u.rgba.props,function(t,n){d[n.idx]=i(e[n.idx],n)}),this):"object"===h?(e instanceof l?f(u,function(t,i){e[i.cache]&&(c[i.cache]=e[i.cache].slice())}):f(u,function(n,r){var o=r.cache;f(r.props,function(t,n){if(!c[o]&&r.to){if("alpha"===t||null==e[t])return;c[o]=r.to(c._rgba)}c[o][n.idx]=i(e[t],n,!0)}),c[o]&&t.inArray(null,c[o].slice(0,3))<0&&(c[o][3]=1,r.from&&(c._rgba=r.from(c[o])))}),this):void 0},is:function(t){var e=l(t),i=!0,n=this;return f(u,function(t,r){var o,a=e[r.cache];return a&&(o=n[r.cache]||r.to&&r.to(n._rgba)||[],f(r.props,function(t,e){if(null!=a[e.idx])return i=a[e.idx]===o[e.idx]})),i}),i},_space:function(){var t=[],e=this;return f(u,function(i,n){e[n.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var n=l(t),r=n._space(),o=u[r],a=0===this.alpha()?l("transparent"):this,s=a[o.cache]||o.to(a._rgba),h=s.slice();return n=n[o.cache],f(o.props,function(t,r){var o=r.idx,a=s[o],l=n[o],u=c[r.type]||{};null!==l&&(null===a?h[o]=l:(u.mod&&(l-a>u.mod/2?a+=u.mod:a-l>u.mod/2&&(a-=u.mod)),h[o]=i((l-a)*e+a,r)))}),this[r](h)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),r=l(e)._rgba;return l(t.map(i,function(t,e){return(1-n)*r[e]+n*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&&i.push(~~(255*n)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,u.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,r=t[1]/255,o=t[2]/255,a=t[3],s=Math.max(n,r,o),l=Math.min(n,r,o),u=s-l,c=s+l,h=.5*c;return e=l===s?0:n===s?60*(r-o)/u+360:r===s?60*(o-n)/u+120:60*(n-r)/u+240,i=0===u?0:h<=.5?u/c:u/(2-c),[Math.round(e)%360,i,h,null==a?1:a]},u.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],o=t[3],a=n<=.5?n*(1+i):n+i-n*i,s=2*n-a;return[Math.round(255*r(s,a,e+1/3)),Math.round(255*r(s,a,e)),Math.round(255*r(s,a,e-1/3)),o]},f(u,function(e,n){var r=n.props,o=n.cache,s=n.to,u=n.from;l.fn[e]=function(e){if(s&&!this[o]&&(this[o]=s(this._rgba)),void 0===e)return this[o].slice();var n,a=t.type(e),c="array"===a||"object"===a?e:arguments,h=this[o].slice();return f(r,function(t,e){var n=c["object"===a?t:e.idx];null==n&&(n=h[e.idx]),h[e.idx]=i(n,e)}),u?(n=l(u(h)),n[o]=h,n):l(h)},f(r,function(i,n){l.fn[i]||(l.fn[i]=function(r){var o,s=t.type(r),l="alpha"===i?this._hsla?"hsla":"rgba":e,u=this[l](),c=u[n.idx];return"undefined"===s?c:("function"===s&&(r=r.call(this,c),s=t.type(r)),null==r&&n.empty?this:("string"===s&&(o=a.exec(r))&&(r=c+parseFloat(o[2])*("+"===o[1]?1:-1)),u[n.idx]=r,this[l](u)))})})}),l.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,r){var o,a,s="";if("transparent"!==r&&("string"!==t.type(r)||(o=n(r)))){if(r=l(o||r),!h.rgba&&1!==r._rgba[3]){for(a="backgroundColor"===i?e.parentNode:e;(""===s||"transparent"===s)&&a&&a.style;)try{s=t.css(a,"backgroundColor"),a=a.parentNode}catch(t){}r=r.blend(s&&"transparent"!==s?s:"_default")}r=r.toRgbaString()}try{e.style[i]=r}catch(t){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=l(e.elem,i),e.end=l(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},l.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,n){e["border"+n+"Color"]=t}),e}},o=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(y),function(){function e(e){var i,n,r=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(r&&r.length&&r[0]&&r[r[0]])for(n=r.length;n--;)i=r[n],"string"==typeof r[i]&&(o[t.camelCase(i)]=r[i]);else for(i in r)"string"==typeof r[i]&&(o[i]=r[i]);return o}function i(e,i){var n,o,a={};for(n in i)o=i[n],e[n]!==o&&(r[n]||!t.fx.step[n]&&isNaN(parseFloat(o))||(a[n]=o));return a}var n=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(y.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(r,o,a,s){var l=t.speed(o,a,s);return this.queue(function(){var o,a=t(this),s=a.attr("class")||"",u=l.children?a.find("*").addBack():a;u=u.map(function(){return{el:t(this),start:e(this)}}),o=function(){t.each(n,function(t,e){r[e]&&a[e+"Class"](r[e])})},o(),u=u.map(function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),this}),a.attr("class",s),u=u.map(function(){var e=this,i=t.Deferred(),n=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()}),t.when.apply(t,u.get()).done(function(){o(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(a[0])})})},t.fn.extend({addClass:function(e){return function(i,n,r,o){return n?t.effects.animateClass.call(this,{add:i},n,r,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,n,r,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},n,r,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,n,r,o,a){return"boolean"==typeof n||void 0===n?r?t.effects.animateClass.call(this,n?{add:i}:{remove:i},r,o,a):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},n,r,o)}}(t.fn.toggleClass),switchClass:function(e,i,n,r,o){return t.effects.animateClass.call(this,{add:i,remove:e},n,r,o)}})}(),function(){function e(e,i,n,r){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(r=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(r=n,n=i,i={}),t.isFunction(n)&&(r=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=r||i.complete,e}function i(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||("string"==typeof e&&!t.effects.effect[e]||(!!t.isFunction(e)||"object"==typeof e&&!e.effect))}t.extend(t.effects,{version:"1.11.1",save:function(t,e){for(var i=0;i<e.length;i++)null!==e[i]&&t.data("ui-effects-"+e[i],t[0].style[e[i]])},restore:function(t,e){var i,n;for(n=0;n<e.length;n++)null!==e[n]&&(i=t.data("ui-effects-"+e[n]),void 0===i&&(i=""),t.css(e[n],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},n=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return e.wrap(n),(e[0]===o||t.contains(e[0],o))&&t(o).focus(),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(r),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).focus()),e},setTransition:function(e,i,n,r){return r=r||{},t.each(i,function(t,i){var o=e.cssUnit(i);o[0]>0&&(r[i]=o[0]*n+o[1])}),r}}),t.fn.extend({effect:function(){function i(e){function i(){t.isFunction(o)&&o.call(r[0]),t.isFunction(e)&&e()}var r=t(this),o=n.complete,s=n.mode;(r.is(":hidden")?"hide"===s:"show"===s)?(r[s](),i()):a.call(r[0],n,i)}var n=e.apply(this,arguments),r=n.mode,o=n.queue,a=t.effects.effect[n.effect];return t.fx.off||!a?r?this[r](n.duration,n.complete):this.each(function(){n.complete&&n.complete.call(this)}):!1===o?this.each(i):this.queue(o||"fx",i)},show:function(t){return function(n){if(i(n))return t.apply(this,arguments);var r=e.apply(this,arguments);return r.mode="show",this.effect.call(this,r)}}(t.fn.show),hide:function(t){return function(n){if(i(n))return t.apply(this,arguments);var r=e.apply(this,arguments);return r.mode="hide",this.effect.call(this,r)}}(t.fn.hide),toggle:function(t){return function(n){if(i(n)||"boolean"==typeof n)return t.apply(this,arguments);var r=e.apply(this,arguments);return r.mode="toggle",this.effect.call(this,r)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])}),n}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return t<.5?i(2*t)/2:1-i(-2*t+2)/2}})}();t.effects,t.effects.effect.blind=function(e,i){var n,r,o,a=t(this),s=/up|down|vertical/,l=/up|left|vertical|horizontal/,u=["position","top","bottom","left","right","height","width"],c=t.effects.setMode(a,e.mode||"hide"),h=e.direction||"up",d=s.test(h),f=d?"height":"width",p=d?"top":"left",g=l.test(h),m={},v="show"===c;a.parent().is(".ui-effects-wrapper")?t.effects.save(a.parent(),u):t.effects.save(a,u),a.show(),n=t.effects.createWrapper(a).css({overflow:"hidden"}),r=n[f](),o=parseFloat(n.css(p))||0,m[f]=v?r:0,g||(a.css(d?"bottom":"right",0).css(d?"top":"left","auto").css({position:"absolute"}),m[p]=v?o:r+o),v&&(n.css(f,0),g||n.css(p,o+r)),n.animate(m,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===c&&a.hide(),t.effects.restore(a,u),t.effects.removeWrapper(a),i()}})},t.effects.effect.bounce=function(e,i){var n,r,o,a=t(this),s=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(a,e.mode||"effect"),u="hide"===l,c="show"===l,h=e.direction||"up",d=e.distance,f=e.times||5,p=2*f+(c||u?1:0),g=e.duration/p,m=e.easing,v="up"===h||"down"===h?"top":"left",y="up"===h||"left"===h,x=a.queue(),_=x.length;for((c||u)&&s.push("opacity"),t.effects.save(a,s),a.show(),t.effects.createWrapper(a),d||(d=a["top"===v?"outerHeight":"outerWidth"]()/3),c&&(o={opacity:1},o[v]=0,a.css("opacity",0).css(v,y?2*-d:2*d).animate(o,g,m)),u&&(d/=Math.pow(2,f-1)),o={},o[v]=0,n=0;n<f;n++)r={},r[v]=(y?"-=":"+=")+d,a.animate(r,g,m).animate(o,g,m),d=u?2*d:d/2;u&&(r={opacity:0},r[v]=(y?"-=":"+=")+d,a.animate(r,g,m)),a.queue(function(){u&&a.hide(),t.effects.restore(a,s),t.effects.removeWrapper(a),i()}),_>1&&x.splice.apply(x,[1,0].concat(x.splice(_,p+1))),a.dequeue()},t.effects.effect.clip=function(e,i){var n,r,o,a=t(this),s=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(a,e.mode||"hide"),u="show"===l,c=e.direction||"vertical",h="vertical"===c,d=h?"height":"width",f=h?"top":"left",p={};t.effects.save(a,s),a.show(),n=t.effects.createWrapper(a).css({overflow:"hidden"}),r="IMG"===a[0].tagName?n:a,o=r[d](),u&&(r.css(d,0),r.css(f,o/2)),p[d]=u?o:0,p[f]=u?0:o/2,r.animate(p,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){u||a.hide(),t.effects.restore(a,s),t.effects.removeWrapper(a),i()}})},t.effects.effect.drop=function(e,i){var n,r=t(this),o=["position","top","bottom","left","right","opacity","height","width"],a=t.effects.setMode(r,e.mode||"hide"),s="show"===a,l=e.direction||"left",u="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l?"pos":"neg",h={opacity:s?1:0};t.effects.save(r,o),r.show(),t.effects.createWrapper(r),n=e.distance||r["top"===u?"outerHeight":"outerWidth"](!0)/2,s&&r.css("opacity",0).css(u,"pos"===c?-n:n),h[u]=(s?"pos"===c?"+=":"-=":"pos"===c?"-=":"+=")+n,r.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===a&&r.hide(),t.effects.restore(r,o),t.effects.removeWrapper(r),i()}})},t.effects.effect.explode=function(e,i){function n(){x.push(this),x.length===h*d&&r()}function r(){f.css({visibility:"visible"}),t(x).remove(),g||f.hide(),i()}var o,a,s,l,u,c,h=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=h,f=t(this),p=t.effects.setMode(f,e.mode||"hide"),g="show"===p,m=f.show().css("visibility","hidden").offset(),v=Math.ceil(f.outerWidth()/d),y=Math.ceil(f.outerHeight()/h),x=[];for(o=0;o<h;o++)for(l=m.top+o*y,c=o-(h-1)/2,a=0;a<d;a++)s=m.left+a*v,u=a-(d-1)/2,f.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-a*v,top:-o*y}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:y,left:s+(g?u*v:0),top:l+(g?c*y:0),opacity:g?0:1}).animate({left:s+(g?0:u*v),top:l+(g?0:c*y),opacity:g?1:0},e.duration||500,e.easing,n)},t.effects.effect.fade=function(e,i){var n=t(this),r=t.effects.setMode(n,e.mode||"toggle");n.animate({opacity:r},{queue:!1,duration:e.duration,easing:e.easing,complete:i})},t.effects.effect.fold=function(e,i){var n,r,o=t(this),a=["position","top","bottom","left","right","height","width"],s=t.effects.setMode(o,e.mode||"hide"),l="show"===s,u="hide"===s,c=e.size||15,h=/([0-9]+)%/.exec(c),d=!!e.horizFirst,f=l!==d,p=f?["width","height"]:["height","width"],g=e.duration/2,m={},v={};t.effects.save(o,a),o.show(),n=t.effects.createWrapper(o).css({overflow:"hidden"}),r=f?[n.width(),n.height()]:[n.height(),n.width()],h&&(c=parseInt(h[1],10)/100*r[u?0:1]),l&&n.css(d?{height:0,width:c}:{height:c,width:0}),m[p[0]]=l?r[0]:c,v[p[1]]=l?r[1]:0,n.animate(m,g,e.easing).animate(v,g,e.easing,function(){u&&o.hide(),t.effects.restore(o,a),t.effects.removeWrapper(o),i()})},t.effects.effect.highlight=function(e,i){var n=t(this),r=["backgroundImage","backgroundColor","opacity"],o=t.effects.setMode(n,e.mode||"show"),a={backgroundColor:n.css("backgroundColor")};"hide"===o&&(a.opacity=0),t.effects.save(n,r),n.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(a,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&n.hide(),t.effects.restore(n,r),i()}})},t.effects.effect.size=function(e,i){var n,r,o,a=t(this),s=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["position","top","bottom","left","right","overflow","opacity"],u=["width","height","overflow"],c=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],d=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],f=t.effects.setMode(a,e.mode||"effect"),p=e.restore||"effect"!==f,g=e.scale||"both",m=e.origin||["middle","center"],v=a.css("position"),y=p?s:l,x={height:0,width:0,outerHeight:0,outerWidth:0};"show"===f&&a.show(),n={height:a.height(),width:a.width(),outerHeight:a.outerHeight(),outerWidth:a.outerWidth()},"toggle"===e.mode&&"show"===f?(a.from=e.to||x,a.to=e.from||n):(a.from=e.from||("show"===f?x:n),a.to=e.to||("hide"===f?x:n)),o={from:{y:a.from.height/n.height,x:a.from.width/n.width},to:{y:a.to.height/n.height,x:a.to.width/n.width}},"box"!==g&&"both"!==g||(o.from.y!==o.to.y&&(y=y.concat(h),a.from=t.effects.setTransition(a,h,o.from.y,a.from),a.to=t.effects.setTransition(a,h,o.to.y,a.to)),o.from.x!==o.to.x&&(y=y.concat(d),a.from=t.effects.setTransition(a,d,o.from.x,a.from),a.to=t.effects.setTransition(a,d,o.to.x,a.to))),"content"!==g&&"both"!==g||o.from.y!==o.to.y&&(y=y.concat(c).concat(u),a.from=t.effects.setTransition(a,c,o.from.y,a.from),a.to=t.effects.setTransition(a,c,o.to.y,a.to)),t.effects.save(a,y),a.show(),t.effects.createWrapper(a),a.css("overflow","hidden").css(a.from),m&&(r=t.effects.getBaseline(m,n),a.from.top=(n.outerHeight-a.outerHeight())*r.y,a.from.left=(n.outerWidth-a.outerWidth())*r.x,a.to.top=(n.outerHeight-a.to.outerHeight)*r.y,a.to.left=(n.outerWidth-a.to.outerWidth)*r.x),a.css(a.from),"content"!==g&&"both"!==g||(h=h.concat(["marginTop","marginBottom"]).concat(c),d=d.concat(["marginLeft","marginRight"]),u=s.concat(h).concat(d),a.find("*[width]").each(function(){var i=t(this),n={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};p&&t.effects.save(i,u),i.from={height:n.height*o.from.y,width:n.width*o.from.x,outerHeight:n.outerHeight*o.from.y,outerWidth:n.outerWidth*o.from.x},i.to={height:n.height*o.to.y,width:n.width*o.to.x,outerHeight:n.height*o.to.y,outerWidth:n.width*o.to.x},o.from.y!==o.to.y&&(i.from=t.effects.setTransition(i,h,o.from.y,i.from),i.to=t.effects.setTransition(i,h,o.to.y,i.to)),o.from.x!==o.to.x&&(i.from=t.effects.setTransition(i,d,o.from.x,i.from),i.to=t.effects.setTransition(i,d,o.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,function(){p&&t.effects.restore(i,u)})})),a.animate(a.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===a.to.opacity&&a.css("opacity",a.from.opacity),"hide"===f&&a.hide(),t.effects.restore(a,y),p||("static"===v?a.css({position:"relative",top:a.to.top,left:a.to.left}):t.each(["top","left"],function(t,e){a.css(e,function(e,i){var n=parseInt(i,10),r=t?a.to.left:a.to.top;return"auto"===i?r+"px":n+r+"px"})})),t.effects.removeWrapper(a),i()}})},t.effects.effect.scale=function(e,i){var n=t(this),r=t.extend(!0,{},e),o=t.effects.setMode(n,e.mode||"effect"),a=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===o?0:100),s=e.direction||"both",l=e.origin,u={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},c={y:"horizontal"!==s?a/100:1,x:"vertical"!==s?a/100:1};r.effect="size",r.queue=!1,r.complete=i,"effect"!==o&&(r.origin=l||["middle","center"],r.restore=!0),r.from=e.from||("show"===o?{height:0,width:0,outerHeight:0,outerWidth:0}:u),r.to={height:u.height*c.y,width:u.width*c.x,outerHeight:u.outerHeight*c.y,outerWidth:u.outerWidth*c.x},r.fade&&("show"===o&&(r.from.opacity=0,r.to.opacity=1),"hide"===o&&(r.from.opacity=1,r.to.opacity=0)),n.effect(r)},t.effects.effect.puff=function(e,i){var n=t(this),r=t.effects.setMode(n,e.mode||"hide"),o="hide"===r,a=parseInt(e.percent,10)||150,s=a/100,l={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:r,complete:i,percent:o?a:100,from:o?l:{height:l.height*s,width:l.width*s,outerHeight:l.outerHeight*s,outerWidth:l.outerWidth*s}}),n.effect(e)},t.effects.effect.pulsate=function(e,i){var n,r=t(this),o=t.effects.setMode(r,e.mode||"show"),a="show"===o,s="hide"===o,l=a||"hide"===o,u=2*(e.times||5)+(l?1:0),c=e.duration/u,h=0,d=r.queue(),f=d.length;for(!a&&r.is(":visible")||(r.css("opacity",0).show(),h=1),n=1;n<u;n++)r.animate({opacity:h},c,e.easing),h=1-h;r.animate({opacity:h},c,e.easing),r.queue(function(){s&&r.hide(),i()}),f>1&&d.splice.apply(d,[1,0].concat(d.splice(f,u+1))),r.dequeue()},t.effects.effect.shake=function(e,i){var n,r=t(this),o=["position","top","bottom","left","right","height","width"],a=t.effects.setMode(r,e.mode||"effect"),s=e.direction||"left",l=e.distance||20,u=e.times||3,c=2*u+1,h=Math.round(e.duration/c),d="up"===s||"down"===s?"top":"left",f="up"===s||"left"===s,p={},g={},m={},v=r.queue(),y=v.length;for(t.effects.save(r,o),r.show(),t.effects.createWrapper(r),p[d]=(f?"-=":"+=")+l,g[d]=(f?"+=":"-=")+2*l,m[d]=(f?"-=":"+=")+2*l,r.animate(p,h,e.easing),n=1;n<u;n++)r.animate(g,h,e.easing).animate(m,h,e.easing);r.animate(g,h,e.easing).animate(p,h/2,e.easing).queue(function(){"hide"===a&&r.hide(),t.effects.restore(r,o),t.effects.removeWrapper(r),i()}),y>1&&v.splice.apply(v,[1,0].concat(v.splice(y,c+1))),r.dequeue()},t.effects.effect.slide=function(e,i){var n,r=t(this),o=["position","top","bottom","left","right","width","height"],a=t.effects.setMode(r,e.mode||"show"),s="show"===a,l=e.direction||"left",u="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l,h={};t.effects.save(r,o),r.show(),n=e.distance||r["top"===u?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(r).css({overflow:"hidden"}),s&&r.css(u,c?isNaN(n)?"-"+n:-n:n),h[u]=(s?c?"+=":"-=":c?"-=":"+=")+n,r.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===a&&r.hide(),t.effects.restore(r,o),t.effects.removeWrapper(r),i()}})},t.effects.effect.transfer=function(e,i){var n=t(this),r=t(e.to),o="fixed"===r.css("position"),a=t("body"),s=o?a.scrollTop():0,l=o?a.scrollLeft():0,u=r.offset(),c={top:u.top-s,left:u.left-l,height:r.innerHeight(),width:r.innerWidth()},h=n.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(e.className).css({top:h.top-s,left:h.left-l,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),i()})},t.widget("ui.progressbar",{version:"1.11.1",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=t("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){if(void 0===t)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){ var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).toggleClass("ui-corner-right",e===this.options.max).width(i.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectable",t.ui.mouse,{version:"1.11.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e=t(i.options.filter,i.element[0]),e.addClass("ui-selectee"),e.each(function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))}),t(e.target).parents().addBack().each(function(){var n,r=t.data(this,"selectable-item");if(r)return n=!e.metaKey&&!e.ctrlKey||!r.$element.hasClass("ui-selected"),r.$element.removeClass(n?"ui-unselecting":"ui-selected").addClass(n?"ui-selecting":"ui-unselecting"),r.unselecting=!n,r.selecting=n,r.selected=n,n?i._trigger("selecting",e,{selecting:r.element}):i._trigger("unselecting",e,{unselecting:r.element}),!1}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,r=this.options,o=this.opos[0],a=this.opos[1],s=e.pageX,l=e.pageY;return o>s&&(i=s,s=o,o=i),a>l&&(i=l,l=a,a=i),this.helper.css({left:o,top:a,width:s-o,height:l-a}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),u=!1;i&&i.element!==n.element[0]&&("touch"===r.tolerance?u=!(i.left>s||i.right<o||i.top>l||i.bottom<a):"fit"===r.tolerance&&(u=i.left>o&&i.right<s&&i.top>a&&i.bottom<l),u?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,n._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})}),t(".ui-selecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-selecting").addClass("ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.selectmenu",{version:"1.11.1",defaultElement:"<select>",options:{appendTo:null,disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:null,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this.options.disabled&&this.disable()},_drawButton:function(){var e=this,i=this.element.attr("tabindex");this.label=t("label[for='"+this.ids.element+"']").attr("for",this.ids.button),this._on(this.label,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{class:"ui-selectmenu-button ui-widget ui-state-default ui-corner-all",tabindex:i||this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true"}).insertAfter(this.element),t("<span>",{class:"ui-icon "+this.options.icons.button}).prependTo(this.button),this.buttonText=t("<span>",{class:"ui-selectmenu-text"}).appendTo(this.button),this._setText(this.buttonText,this.element.find("option:selected").text()),this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e.menuItems||e._refreshMenu()}),this._hoverable(this.button),this._focusable(this.button)},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>",{class:"ui-selectmenu-menu ui-front"}).append(this.menu).appendTo(this._appendTo()),this.menuInstance=this.menu.menu({role:"listbox",select:function(t,i){t.preventDefault(),e._select(i.item.data("ui-selectmenu-item"),t)},focus:function(t,i){var n=i.item.data("ui-selectmenu-item");null!=e.focusIndex&&n.index!==e.focusIndex&&(e._trigger("focus",t,{item:n}),e.isOpen||e._select(n,t)),e.focusIndex=n.index,e.button.attr("aria-activedescendant",e.menuItems.eq(n.index).attr("id"))}}).menu("instance"),this.menu.addClass("ui-corner-bottom").removeClass("ui-corner-all"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this._setText(this.buttonText,this._getSelectedItem().text()),this.options.width||this._resizeButton()},_refreshMenu:function(){this.menu.empty();var t,e=this.element.find("option");e.length&&(this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup"),t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this.menuItems?(this.menu.find(".ui-state-focus").removeClass("ui-state-focus"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderMenu:function(e,i){var n=this,r="";t.each(i,function(i,o){o.optgroup!==r&&(t("<li>",{class:"ui-selectmenu-optgroup ui-menu-divider"+(o.element.parent("optgroup").prop("disabled")?" ui-state-disabled":""),text:o.optgroup}).appendTo(e),r=o.optgroup),n._renderItemData(e,o)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,i){var n=t("<li>");return i.disabled&&n.addClass("ui-state-disabled"),this._setText(n,i.label),n.appendTo(e)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var i,n,r=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex):(i=this.menuItems.eq(this.element[0].selectedIndex),r+=":not(.ui-state-disabled)"),n="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](r).eq(-1):i[t+"All"](r).eq(0),n.length&&this.menuInstance.focus(e,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex)},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+this.ids.button).length||this.close(e))}},_buttonEvents:{mousedown:function(t){t.preventDefault()},click:"_toggle",keydown:function(e){var i=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),i=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),i=!1}i&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex);e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this._setText(this.buttonText,t.label),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){"icons"===t&&this.button.find("span.ui-icon").removeClass(this.options.icons.button).addClass(e.button),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"disabled"===t&&(this.menuInstance.option("disabled",e),this.button.toggleClass("ui-state-disabled",e).attr("aria-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)),"width"===t&&this._resizeButton()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.toggleClass("ui-corner-top",this.isOpen).toggleClass("ui-corner-all",!this.isOpen).attr("aria-expanded",this.isOpen),this.menuWrap.toggleClass("ui-selectmenu-open",this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;t||(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){return{disabled:this.element.prop("disabled")}},_parseOptions:function(e){var i=[];e.each(function(e,n){var r=t(n),o=r.parent("optgroup");i.push({element:r,index:e,value:r.attr("value"),label:r.text(),optgroup:o.attr("label")||"",disabled:o.prop("disabled")||r.prop("disabled")})}),this.items=i},_destroy:function(){this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.label.attr("for",this.ids.element)}}),t.widget("ui.slider",t.ui.mouse,{version:"1.11.1",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,r=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),o=[];for(i=n.values&&n.values.length||1,r.length>i&&(r.slice(i).remove(),r=r.slice(0,i)),e=r.length;e<i;e++)o.push("<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>");this.handles=r.add(t(o.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,i="";e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("<div></div>").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,n,r,o,a,s,l,u=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(n-u.values(e));(r>i||r===i&&(e===u._lastChangedValue||u.values(e)===c.min))&&(r=i,o=t(this),a=e)}),!1!==this._start(e,a)&&(this._mouseSliding=!0,this._handleIndex=a,o.addClass("ui-state-active").focus(),s=o.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-s.left-o.width()/2,top:e.pageY-s.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,r,o;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),n=i/e,n>1&&(n=1),n<0&&(n=0),"vertical"===this.orientation&&(n=1-n),r=this._valueMax()-this._valueMin(),o=this._valueMin()+n*r,this._trimAlignValue(o)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var n,r,o;this.options.values&&this.options.values.length?(n=this.values(e?0:1),2===this.options.values.length&&!0===this.options.range&&(0===e&&i>n||1===e&&i<n)&&(i=n),i!==this.values(e)&&(r=this.values(),r[e]=i,o=this._trigger("slide",t,{handle:this.handles[e],value:i,values:r}),n=this.values(e?0:1),!1!==o&&this.values(e,i))):i!==this.value()&&!1!==(o=this._trigger("slide",t,{handle:this.handles[e],value:i}))&&this.value(i)},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,r,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(n=this.options.values,r=arguments[0],o=0;o<n.length;o+=1)n[o]=this._trimAlignValue(r[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,i){var n,r=0;switch("range"===e&&!0===this.options.range&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(r=this.options.values.length),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!i),this._super(e,i),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue(),this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=0;n<r;n+=1)this._change(null,n);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,n,r,o,a=this.options.range,s=this.options,l=this,u=!this._animateOff&&s.animate,c={};this.options.values&&this.options.values.length?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[u?"animate":"css"](c,s.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},s.animate),1===n&&l.range[u?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:s.animate})):(0===n&&l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},s.animate),1===n&&l.range[u?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:s.animate}))),e=i}):(n=this.value(),r=this._valueMin(),o=this._valueMax(),i=o!==r?(n-r)/(o-r)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](c,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range[u?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:s.animate}),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range[u?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:s.animate}))},_handleEvents:{keydown:function(e){var i,n,r,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(e.target).addClass("ui-state-active"),!1===this._start(e,o)))return}switch(r=this.options.step,i=n=this.options.values&&this.options.values.length?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:n=this._valueMin();break;case t.ui.keyCode.END:n=this._valueMax();break;case t.ui.keyCode.PAGE_UP:n=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(i===this._valueMax())return;n=this._trimAlignValue(i+r);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i===this._valueMin())return;n=this._trimAlignValue(i-r)}this._slide(e,o,n)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),t(e.target).removeClass("ui-state-active"))}}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.11.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===t.axis||this._isFloating(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle"),t.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,r=!1,o=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each(function(){if(t.data(this,o.widgetName+"-item")===o)return n=t(this),!1}),t.data(e.target,o.widgetName+"-item")===o&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&&(r=!0)}),!r))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var r,o,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,r,o,a=this.options,s=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+a.scrollSpeed:e.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+a.scrollSpeed:e.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(e.pageY-t(document).scrollTop()<a.scrollSensitivity?s=t(document).scrollTop(t(document).scrollTop()-a.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<a.scrollSensitivity&&(s=t(document).scrollTop(t(document).scrollTop()+a.scrollSpeed)),e.pageX-t(document).scrollLeft()<a.scrollSensitivity?s=t(document).scrollLeft(t(document).scrollLeft()-a.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<a.scrollSensitivity&&(s=t(document).scrollLeft(t(document).scrollLeft()+a.scrollSpeed))),!1!==s&&t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(n=this.items[i],r=n.item[0],(o=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(r===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===r||t.contains(this.placeholder[0],r)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],r))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,r=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,r=n+this.helperProportions.height,o=t.left,a=o+t.width,s=t.top,l=s+t.height,u=this.offset.click.top,c=this.offset.click.left,h="x"===this.options.axis||n+u>s&&n+u<l,d="y"===this.options.axis||e+c>o&&e+c<a,f=h&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?f:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&s<n+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),i="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),n=e&&i,r=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return!!n&&(this.floating?o&&"right"===o||"down"===r?2:1:r&&("down"===r?2:1))},_intersectsWithSides:function(t){ var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return this.floating&&r?"right"===r&&i||"left"===r&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){s.push(this)}var n,r,o,a,s=[],l=[],u=this._connectWith();if(u&&e)for(n=u.length-1;n>=0;n--)for(o=t(u[n]),r=o.length-1;r>=0;r--)(a=t.data(o[r],this.widgetFullName))&&a!==this&&!a.options.disabled&&l.push([t.isFunction(a.options.items)?a.options.items.call(a.element):t(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=l.length-1;n>=0;n--)l[n][0].each(i);return t(s)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,r,o,a,s,l,u,c=this.items,h=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(r=t(d[i]),n=r.length-1;n>=0;n--)(o=t.data(r[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&(h.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=h.length-1;i>=0;i--)for(a=h[i][1],s=h[i][0],n=0,u=s.length;n<u;n++)l=t(s[n]),l.data(this.widgetName+"-item",a),c.push({item:l,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,n,r,o;for(i=this.items.length-1;i>=0;i--)n=this.items[i],n.instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=r.outerWidth(),n.height=r.outerHeight()),o=r.offset(),n.left=o.left,n.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,n=e.options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),r=t("<"+n+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===n?e.currentItem.children().each(function(){t("<td>&#160;</td>",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(r)}):"img"===n&&r.attr("src",e.currentItem.attr("src")),i||r.css("visibility","hidden"),r},update:function(t,r){i&&!n.forcePlaceholderSize||(r.height()||r.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),r.width()||r.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(e){var i,n,r,o,a,s,l,u,c,h,d=null,f=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],f=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[f].containerCache.over||(this.containers[f]._trigger("over",e,this._uiHash(this)),this.containers[f].containerCache.over=1);else{for(r=1e4,o=null,c=d.floating||this._isFloating(this.currentItem),a=c?"left":"top",s=c?"width":"height",h=c?"clientX":"clientY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[f].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[a],u=!1,e[h]-l>this.items[n][s]/2&&(u=!0),Math.abs(e[h]-l)<r&&(r=Math.abs(e[h]-l),o=this.items[n],this.direction=u?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[f])return;o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[f].element,!0),this._trigger("change",e,this._uiHash()),this.containers[f]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[f],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[f]._trigger("over",e,this._uiHash(this)),this.containers[f].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;"parent"===r.containment&&(r.containment=this.helper[0].parentNode),"document"!==r.containment&&"window"!==r.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"===r.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===r.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],i=t(r.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(r[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:r.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:r.scrollLeft())*n}},_generatePosition:function(e){var i,n,r=this.options,o=e.pageX,a=e.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(s[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),r.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/r.grid[1])*r.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-r.grid[1]:i+r.grid[1]:i,n=this.originalPageX+Math.round((o-this.originalPageX)/r.grid[0])*r.grid[0],o=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-r.grid[0]:n+r.grid[0]:n)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:s.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:s.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){function i(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}this.reverting=!1;var n,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&r.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||r.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(r.push(function(t){this._trigger("remove",t,this._uiHash())}),r.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)e||r.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(r.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),n=0;n<r.length;n++)r[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!e){for(n=0;n<r.length;n++)r[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.spinner",{version:"1.11.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},i=this.element;return t.each(["min","max","step"],function(t,n){var r=i.attr(n);void 0!==r&&r.length&&(e[n]=r)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){if(this.cancelBlur)return void delete this.cancelBlur;this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t)},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){this.element[0]===this.document[0].activeElement||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(e)&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){if(t(e.currentTarget).hasClass("ui-state-active"))return!1!==this._start(e)&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*t.height())&&t.height()>0&&t.height(t.height()),this.options.disabled&&this.disable()},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return e=null!==n.min?n.min:0,i=t-e,i=Math.round(i/n.step)*n.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==n.max&&t>n.max?n.max:null!==n.min&&t<n.min?n.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){if("culture"===t||"numberFormat"===t){var i=this._parse(this.element.val());return this.options[t]=e,void this.element.val(this._format(i))}"max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(e.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(e.down)),this._super(t,e),"disabled"===t&&(this.widget().toggleClass("ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable"))},_setOptions:l(function(t){this._super(t)}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:l(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:l(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:l(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:l(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());l(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),t.widget("ui.tabs",{version:"1.11.1",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var t=/#.*$/;return function(e){var i,n;e=e.cloneNode(!1),i=e.href.replace(t,""),n=location.href.replace(t,"");try{i=decodeURIComponent(i)}catch(t){}try{n=decodeURIComponent(n)}catch(t){}return e.hash.length>1&&i===n}}(),_create:function(){var e=this,i=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(i.active):this.active=t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===e&&(n&&this.tabs.each(function(i,r){if(t(r).attr("aria-controls")===n)return e=i,!1}),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==e&&-1!==e||(e=!!this.tabs.length&&0)),!1!==e&&-1===(e=this.tabs.index(this.tabs.eq(e)))&&(e=!i&&0),!i&&!1===e&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(this.document[0].activeElement).closest("li"),n=this.tabs.index(i),r=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:r=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}e.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,r),e.ctrlKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){for(var n=this.tabs.length-1;-1!==t.inArray(function(){return e>n&&(e=0),e<0&&(e=n),e}(),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,e){return"active"===t?void this._activate(e):"disabled"===t?void this._setupDisabled(e):(this._super(t,e),"collapsible"===t&&(this.element.toggleClass("ui-tabs-collapsible",e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),!1!==e.active&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamespace,function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(i,n){var r,o,a,s=t(n).uniqueId().attr("id"),l=t(n).closest("li"),u=l.attr("aria-controls");e._isLocal(n)?(r=n.hash,a=r.substring(1),o=e.element.find(e._sanitizeSelector(r))):(a=l.attr("aria-controls")||t({}).uniqueId()[0].id,r="#"+a,o=e.element.find(r),o.length||(o=e._createPanel(a),o.insertAfter(e.panels[i-1]||e.tablist)),o.attr("aria-live","polite")),o.length&&(e.panels=e.panels.add(o)),u&&l.data("ui-tabs-aria-controls",u),l.attr({"aria-controls":a,"aria-labelledby":s}),o.attr("aria-labelledby",s)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var i,n=0;i=this.tabs[n];n++)!0===e||-1!==t.inArray(n,e)?t(i).addClass("ui-state-disabled").attr("aria-disabled","true"):t(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var i={};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,n=this.element.parent();"fill"===e?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),n=e.css("position");"absolute"!==n&&"fixed"!==n&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,n=this.active,r=t(e.currentTarget),o=r.closest("li"),a=o[0]===n[0],s=a&&i.collapsible,l=s?t():this._getPanelForTab(o),u=n.length?this._getPanelForTab(n):t(),c={oldTab:n,oldPanel:u,newTab:s?t():o,newPanel:l};e.preventDefault(),o.hasClass("ui-state-disabled")||o.hasClass("ui-tabs-loading")||this.running||a&&!i.collapsible||!1===this._trigger("beforeActivate",e,c)||(i.active=!s&&this.tabs.index(o),this.active=a?t():o,this.xhr&&this.xhr.abort(),u.length||l.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&&this.load(this.tabs.index(o),e),this._toggle(e,c))},_toggle:function(e,i){function n(){o.running=!1,o._trigger("activate",e,i)}function r(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),a.length&&o.options.show?o._show(a,o.options.show,n):(a.show(),n())}var o=this,a=i.newPanel,s=i.oldPanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s.hide(),r()),s.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&s.length?i.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var i,n=this._findActive(e);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return!1===e?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tablist.unbind(this.eventNamespace),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var i=this.options.disabled;!1!==i&&(void 0===e?i=!1:(e=this._getIndex(e),i=t.isArray(i)?t.map(i,function(t){return t!==e?t:null}):t.map(this.tabs,function(t,i){return i!==e?i:null})),this._setupDisabled(i))},disable:function(e){var i=this.options.disabled;if(!0!==i){if(void 0===e)i=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,i))return;i=t.isArray(i)?t.merge([e],i).sort():[e]}this._setupDisabled(i)}},load:function(e,i){ e=this._getIndex(e);var n=this,r=this.tabs.eq(e),o=r.find(".ui-tabs-anchor"),a=this._getPanelForTab(r),s={tab:r,panel:a};this._isLocal(o[0])||(this.xhr=t.ajax(this._ajaxSettings(o,i,s)),this.xhr&&"canceled"!==this.xhr.statusText&&(r.addClass("ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.success(function(t){setTimeout(function(){a.html(t),n._trigger("load",i,s)},1)}).complete(function(t,e){setTimeout(function(){"abort"===e&&n.panels.stop(!1,!0),r.removeClass("ui-tabs-loading"),a.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr},1)})))},_ajaxSettings:function(e,i,n){var r=this;return{url:e.attr("href"),beforeSend:function(e,o){return r._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:o},n))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),t.widget("ui.tooltip",{version:"1.11.1",options:{content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_addDescribedBy:function(e,i){var n=(e.attr("aria-describedby")||"").split(/\s+/);n.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(n.join(" ")))},_removeDescribedBy:function(e){var i=e.data("ui-tooltip-id"),n=(e.attr("aria-describedby")||"").split(/\s+/),r=t.inArray(i,n);-1!==r&&n.splice(r,1),e.removeData("ui-tooltip-id"),n=t.trim(n.join(" ")),n?e.attr("aria-describedby",n):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable(),this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(e,i){var n=this;if("disabled"===e)return this[i?"_disable":"_enable"](),void(this.options[e]=i);this._super(e,i),"content"===e&&t.each(this.tooltips,function(t,e){n._updateContent(e)})},_disable:function(){var e=this;t.each(this.tooltips,function(i,n){var r=t.Event("blur");r.target=r.currentTarget=n[0],e.close(r,!0)}),this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.is("[title]")&&e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var i=this,n=t(e?e.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&n.parents().each(function(){var e,n=t(this);n.data("ui-tooltip-open")&&(e=t.Event("blur"),e.target=e.currentTarget=this,i.close(e,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))}),this._updateContent(n,e))},_updateContent:function(t,e){var i,n=this.options.content,r=this,o=e?e.type:null;if("string"==typeof n)return this._open(e,t,n);(i=n.call(t[0],function(i){t.data("ui-tooltip-open")&&r._delay(function(){e&&(e.type=o),this._open(e,t,i)})}))&&this._open(e,t,i)},_open:function(e,i,n){function r(t){u.of=t,o.is(":hidden")||o.position(u)}var o,a,s,l,u=t.extend({},this.options.position);if(n){if(o=this._find(i),o.length)return void o.find(".ui-tooltip-content").html(n);i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),o=this._tooltip(i),this._addDescribedBy(i,o.attr("id")),o.find(".ui-tooltip-content").html(n),this.liveRegion.children().hide(),n.clone?(l=n.clone(),l.removeAttr("id").find("[id]").removeAttr("id")):l=n,t("<div>").html(l).appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:r}),r(e)):o.position(t.extend({of:i},this.options.position)),this.hiding=!1,this.closing=!1,o.hide(),this._show(o,this.options.show),this.options.show&&this.options.show.delay&&(s=this.delayedShow=setInterval(function(){o.is(":visible")&&(r(u.of),clearInterval(s))},t.fx.interval)),this._trigger("open",e,{tooltip:o}),a={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var n=t.Event(e);n.currentTarget=i[0],this.close(n,!0)}}},i[0]!==this.element[0]&&(a.remove=function(){this._removeTooltip(o)}),e&&"mouseover"!==e.type||(a.mouseleave="close"),e&&"focusin"!==e.type||(a.focusout="close"),this._on(!0,i,a)}},close:function(e){var i=this,n=t(e?e.currentTarget:this.element),r=this._find(n);this.closing||(clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),this.hiding=!0,r.stop(!0),this._hide(r,this.options.hide,function(){i._removeTooltip(t(this)),this.hiding=!1,this.closing=!1}),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,n){t(n.element).attr("title",n.title),delete i.parents[e]}),this.closing=!0,this._trigger("close",e,{tooltip:r}),this.hiding||(this.closing=!1))},_tooltip:function(e){var i=t("<div>").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),n=i.uniqueId().attr("id");return t("<div>").addClass("ui-tooltip-content").appendTo(i),i.appendTo(this.document[0].body),this.tooltips[n]=e,i},_find:function(e){var i=e.data("ui-tooltip-id");return i?t("#"+i):t()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,function(i,n){var r=t.Event("blur");r.target=r.currentTarget=n[0],e.close(r,!0),t("#"+i).remove(),n.data("ui-tooltip-title")&&(n.attr("title")||n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}})}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(t){return s.raw?t:encodeURIComponent(t)}function i(t){return s.raw?t:decodeURIComponent(t)}function n(t){return e(s.json?JSON.stringify(t):String(t))}function r(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{t=decodeURIComponent(t.replace(a," "))}catch(t){return}try{return s.json?JSON.parse(t):t}catch(t){}}function o(e,i){var n=s.raw?e:r(e);return t.isFunction(i)?i(n):n}var a=/\+/g,s=t.cookie=function(r,a,l){if(void 0!==a&&!t.isFunction(a)){if(l=t.extend({},s.defaults,l),"number"==typeof l.expires){var u=l.expires,c=l.expires=new Date;c.setDate(c.getDate()+u)}return document.cookie=[e(r),"=",n(a),l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}for(var h=r?void 0:{},d=document.cookie?document.cookie.split("; "):[],f=0,p=d.length;f<p;f++){var g=d[f].split("="),m=i(g.shift()),v=g.join("=");if(r&&r===m){h=o(v,a);break}r||void 0===(v=o(v))||(h[m]=v)}return h};s.defaults={},t.removeCookie=function(e,i){return void 0!==t.cookie(e)&&(t.cookie(e,"",t.extend({},i,{expires:-1})),!0)}}),$(".login-logo img,.login-user-message span a,.login-img img,.box.count ul li .info .ico").each(function(t,e){new JumpObj(e,8)}),$(function(){$(".attachments").on("click",".thumbnail-remove",function(t){t.preventDefault(),$(this).parents(".attachments").siblings(".upload-sm").find("input").attr("value",""),$(this).parent(".thumbnail").remove(),$(this).parents(".attachments").find("li").length<1&&$(this).data("id")&&$("#"+$(this).data("id")).show()})}),$(function(){$(".f_tag a").click(function(){if("over"!=$(this).attr("class")){var t=$(this).text(),e=$("#tag").val();e=""!=e?e+","+t:t,$("#tag").val(e)}}),$("#order_select #order-status").bind("change",function(){var t=$(this).children("option:selected").val();return 0==$(".id:checked").length?(swal({title:"请选择你要转移的内容!",text:"",type:"error",showConfirmButton:!1}),setTimeout("self.location.reload()",2e3),!1):0!=t&&void(1==t?swal({title:"",text:"确定要移动订单到发货中吗?",type:"warning",showCancelButton:!0,confirmButtonColor:"#1890ff",confirmButtonText:"确定!",cancelButtonText:"取消!",closeOnConfirm:!1,closeOnCancel:!0},function(){swal({title:"",text:"移动成功。",type:"success",showConfirmButton:!1,timer:1200}),$("#action").val("order_status"),setTimeout("$('#myform').submit()",1200)}):2==t&&swal({title:"",text:"确定要移动订单到已完成吗?",type:"warning",showCancelButton:!0,confirmButtonColor:"#1890ff",confirmButtonText:"确定!",cancelButtonText:"取消!",closeOnConfirm:!1,closeOnCancel:!0},function(){swal({title:"",text:"移动成功。",type:"success",showConfirmButton:!1,timer:1200}),$("#action").val("order_status"),setTimeout("$('#myform').submit()",1200)}))}),$("#order_btn").click(function(){swal({title:"确定更新排序吗?",type:"warning",showCancelButton:!1,confirmButtonColor:"#1890ff",confirmButtonText:"确定!",closeOnConfirm:!1},function(){swal({title:"",text:"更新排序成功。",type:"success",showConfirmButton:!1,timer:1200}),setTimeout("$('#myform').submit()",1200),$("#action").val("orders"),$(".id").attr("checked",!0)})}),$("#order_news").click(function(){swal({title:"确定更新排序吗?",type:"warning",showCancelButton:!1,confirmButtonColor:"#1890ff",confirmButtonText:"确定!",closeOnConfirm:!1},function(){swal({title:"",text:"更新排序成功。",type:"success",showConfirmButton:!1,timer:1200}),setTimeout("$('#myform').submit()",1200),$("#action").val("orders"),$(".id").attr("checked",!0)})}),$("#order_case").click(function(){swal({title:"确定更新排序吗?",type:"warning",showCancelButton:!1,confirmButtonColor:"#1890ff",confirmButtonText:"确定!",closeOnConfirm:!1},function(){swal({title:"",text:"更新排序成功。",type:"success",showConfirmButton:!1,timer:1200}),setTimeout("$('#myform').submit()",1200),$("#action").val("orders"),$(".id").attr("checked",!0)})}),$("#move_select #cid").change(function(){var t=$(this).children("option:selected").val();return""!=t&&(0==$(".id:checked").length?(swal("","请选择你要转移的内容!","error"),!1):(swal({title:"",text:"移动成功。",type:"success",showConfirmButton:!1,timer:1200}),setTimeout("$('#myform').submit()",1200),$("#cate").val(t),void $("#action").val("move")))}),$("#copy_select #fid").change(function(){return""!=$(this).children("option:selected").val()&&(0==$(".id:checked").length?(swal("","请选择你要复制的内容!","error"),!1):(swal({title:"",text:"复制成功。",type:"success",showConfirmButton:!1,timer:1200}),setTimeout("$('#myform').submit()",1200),void $("#action").val("copys")))}),$("#move_case #cid").change(function(){var t=$(this).children("option:selected").val();return""!=t&&(0==$(".check:checked").length?(swal("","请选择你要转移的内容!","error"),!1):(swal({title:"",text:"移动成功。",type:"success",showConfirmButton:!1,timer:1200}),setTimeout("$('#myform').submit()",1200),$("#cate").val(t),void $("#action").val("move")))}),$("#copy_case #fid").change(function(){return""!=$(this).children("option:selected").val()&&(0==$(".check:checked").length?(swal("","请选择你要复制的内容!","error"),!1):(swal({title:"",text:"复制成功。",type:"success",showConfirmButton:!1,timer:1200}),setTimeout("$('#myform').submit()",1200),void $("#action").val("copys")))}),$("#word_btn").click(function(){var t=$("#catename").val();if(!t){var e=$("#title").val();if(e&&(t=e),!t)return swal("","名称不能为空","error"),$("#catename").focus(),!1}$.ajax({type:"POST",url:"../source/core/word.php",dataType:"json",data:{word:t},success:function(t){var e=t.word;$("#word").val(e)}})}),$("#smart_keywords").click(function(){var t=$("#cid option:selected").text();if("==选择=="==t)return swal("","请选择产品分类!","warning"),!1;var e=t.replace("├",""),i=$("#title").val();if(!i)return swal("","名称不能为空","warning"),$("#title").focus(),!1;var n=e+","+i+"价格,"+i+"批发";$("#tag").val(n)}),$("#smart_keywordsnew").click(function(){var t=$("#title").val();if(!t)return swal("","名称不能为空","warning"),$("#title").focus(),!1;$.ajax({type:"POST",url:"../source/core/keywords.php",dataType:"json",data:{title:t},success:function(t){var e=t.result;$("#tag").val(e)}})}),$("#smart_keywordsnews").click(function(){var t=$("#catename").val();if(!t)return swal("","名称不能为空","warning"),$("#catename").focus(),!1;$.ajax({type:"POST",url:"../source/core/keywords.php",dataType:"json",data:{title:t},success:function(t){var e=t.result;$("#tag").val(e)}})});var t=$("#add_cid").val();t&&$("#cid option[value="+t+"]").attr("selected","true");var e=$(".product_tj tr:gt(7)");e.hide(),$(".product_tj").append('<tr><td><a href="javascript:void(0)" id="more">高级信息</a></td><td></td></tr>'),$("#more").click(function(){e.toggle(600,function(){"none"!=e.css("display")?$("#more").text("基本信息"):$("#more").text("高级信息")})});var i=$(".senior tr:gt(17):not(:last)");i.hide(),$(".senior tr:last").before('<tr><td><a href="javascript:void(0)" id="more_table">高级信息</a></td><td></td></tr>'),$("#more_table").click(function(){i.toggle(600,function(){"none"!=i.css("display")?$("#more_table").text("基本信息"):$("#more_table").text("高级信息")})}),$(".remove").click(function(){var t=$(this).attr("rel"),e=$(this).parents("li"),i=$(this).attr("type");$.ajax({type:"GET",url:"xycms_product.php?action=remove_r",dataType:"text",data:{id:t,item:i},success:function(t){t?e.remove():swal("","移除失败!","error")}})}),$(".update_orders").click(function(){var t=new Array,e=new Array,i="";if($(".remove").each(function(){t.push($(this).attr("rel"))}),$(".orders").each(function(){if(""==(i=$(this).val()))return swal("","排序不能为空","error"),$(this).focus(),!1;e.push(i)}),""==i)return!1;var n=$(".opera a:first").attr("type");$.ajax({type:"GET",url:"xycms_product.php?action=orders_r",dataType:"text",data:{id:t,orders:e,item:n},success:function(t){t?(swal("","更新排序成功!","success"),window.location.reload()):swal("","更新排序失败!","error")}})}),$(".pic_remove").click(function(){$(this).siblings(".upload_img").removeAttr("src"),$(this).siblings("#uploadfiles").val(""),$(this).siblings("#thumbfiles").val(""),$(this).siblings(".upload_img").css("display","none"),$(this).siblings("#iframe_t").attr("src",$(this).siblings("#iframe_t").attr("src")),$(this).siblings("#iframe_t").css("display","block"),$(this).css("display","none")}),$(".tab ul li").click(function(){var t=$(this).index();$.cookie("tab",t),$(this).addClass("on").siblings("li").removeClass("on"),$(this).parent().siblings(".tab_content").children(".contentlist").removeClass("on").eq(t).addClass("on")}),function(t){t.fn.autocomplete=function(e){return this.each(function(){var i=t(this),n=t('<ul class="dropdown-menu" />');this.timer=null,this.items=[],t.extend(this,e),i.attr("autocomplete","off"),i.on("focus",function(){this.request()}),i.on("blur",function(){setTimeout(function(t){t.hide()},200,this)}),i.on("keydown",function(t){switch(t.keyCode){case 27:this.hide();break;default:this.request()}}),this.click=function(e){e.preventDefault();var i=t(e.target).parent().attr("data-value");i&&this.items[i]&&this.select(this.items[i])},this.show=function(){var t=i.position();n.css({top:t.top+i.outerHeight(),left:t.left}),n.show()},this.hide=function(){n.hide()},this.request=function(){clearTimeout(this.timer),this.timer=setTimeout(function(e){e.source(t(e).val(),t.proxy(e.response,e))},200,this)},this.response=function(t){var e,i="",r={},o=0,a=0;if(t.length){for(o=0;o<t.length;o++)this.items[t[o].value]=t[o],t[o].category?(e=t[o].category,r[e]||(r[e]=[]),r[e].push(t[o])):i+='<li data-value="'+t[o].value+'"><a href="#">'+t[o].label+"</a></li>";for(e in r)for(i+='<li class="dropdown-header">'+e+"</li>",a=0;a<r[e].length;a++)i+='<li data-value="'+r[e][a].value+'"><a href="#">&nbsp;&nbsp;&nbsp;'+r[e][a].label+"</a></li>"}i?this.show():this.hide(),n.html(i)},n.on("click","> li > a",t.proxy(this.click,this)),i.after(n)})}}(window.jQuery)}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vue=e()}(this,function(){"use strict";function t(t){return void 0===t||null===t}function e(t){return void 0!==t&&null!==t}function i(t){return!0===t}function n(t){return!1===t}function r(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function o(t){return null!==t&&"object"==typeof t}function a(t){return xo.call(t).slice(8,-1)}function s(t){return"[object Object]"===xo.call(t)}function l(t){return"[object RegExp]"===xo.call(t)}function u(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function c(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function d(t,e){for(var i=Object.create(null),n=t.split(","),r=0;r<n.length;r++)i[n[r]]=!0;return e?function(t){return i[t.toLowerCase()]}:function(t){return i[t]}}function f(t,e){if(t.length){var i=t.indexOf(e);if(i>-1)return t.splice(i,1)}}function p(t,e){return wo.call(t,e)}function g(t){var e=Object.create(null);return function(i){return e[i]||(e[i]=t(i))}}function m(t,e){function i(i){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,i):t.call(e)}return i._length=t.length,i}function v(t,e){return t.bind(e)}function y(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function x(t,e){for(var i in e)t[i]=e[i];return t}function _(t){for(var e={},i=0;i<t.length;i++)t[i]&&x(e,t[i]);return e}function b(t,e,i){}function w(t,e){if(t===e)return!0;var i=o(t),n=o(e);if(!i||!n)return!i&&!n&&String(t)===String(e);try{var r=Array.isArray(t),a=Array.isArray(e);if(r&&a)return t.length===e.length&&t.every(function(t,i){return w(t,e[i])});if(r||a)return!1;var s=Object.keys(t),l=Object.keys(e);return s.length===l.length&&s.every(function(i){return w(t[i],e[i])})}catch(t){return!1}}function S(t,e){for(var i=0;i<t.length;i++)if(w(t[i],e))return i;return-1}function T(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function C(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function M(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}function D(t){if(!Po.test(t)){var e=t.split(".");return function(t){for(var i=0;i<e.length;i++){if(!t)return;t=t[e[i]]}return t}}}function I(t){return"function"==typeof t&&/native code/.test(t.toString())}function A(t){ua.target&&ca.push(ua.target),ua.target=t}function k(){ua.target=ca.pop()}function E(t){return new ha(void 0,void 0,void 0,String(t))}function O(t){var e=new ha(t.tag,t.data,t.children,t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.isCloned=!0,e}function N(t){va=t}function L(t,e,i){t.__proto__=e}function P(t,e,i){for(var n=0,r=i.length;n<r;n++){var o=i[n];M(t,o,e[o])}}function R(t,e){if(o(t)&&!(t instanceof ha)){var i;return p(t,"__ob__")&&t.__ob__ instanceof ya?i=t.__ob__:va&&!Ko()&&(Array.isArray(t)||s(t))&&Object.isExtensible(t)&&!t._isVue&&(i=new ya(t)),e&&i&&i.vmCount++,i}}function z(t,e,i,n,r){var o=new ua,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get;s||2!==arguments.length||(i=t[e]);var l=a&&a.set,u=!r&&R(i);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):i;return ua.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(e)&&H(e))),e},set:function(e){var a=s?s.call(t):i;e===a||e!==e&&a!==a||(n&&n(),l?l.call(t,e):i=e,u=!r&&R(e),o.notify())}})}}function F(e,i,n){if((t(e)||r(e))&&ta("Cannot set reactive property on undefined, null, or primitive value: "+e),Array.isArray(e)&&u(i))return e.length=Math.max(e.length,i),e.splice(i,1,n),n;if(i in e&&!(i in Object.prototype))return e[i]=n,n;var o=e.__ob__;return e._isVue||o&&o.vmCount?(ta("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),n):o?(z(o.value,i,n),o.dep.notify(),n):(e[i]=n,n)}function B(e,i){if((t(e)||r(e))&&ta("Cannot delete reactive property on undefined, null, or primitive value: "+e),Array.isArray(e)&&u(i))return void e.splice(i,1);var n=e.__ob__;if(e._isVue||n&&n.vmCount)return void ta("Avoid deleting properties on a Vue instance or its root $data - just set it to null.");p(e,i)&&(delete e[i],n&&n.dep.notify())}function H(t){for(var e=void 0,i=0,n=t.length;i<n;i++)e=t[i],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&H(e)}function V(t,e){if(!e)return t;for(var i,n,r,o=Object.keys(e),a=0;a<o.length;a++)i=o[a],n=t[i],r=e[i],p(t,i)?s(n)&&s(r)&&V(n,r):F(t,i,r);return t}function W(t,e,i){return i?function(){var n="function"==typeof e?e.call(i,i):e,r="function"==typeof t?t.call(i,i):t;return n?V(n,r):r}:e?t?function(){return V("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function $(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function j(t,e,i,n){var r=Object.create(t||null);return e?(Z(n,e,i),x(r,e)):r}function U(t){for(var e in t.components)G(e)}function G(t){/^[a-zA-Z][\w-]*$/.test(t)||ta('Invalid component name: "'+t+'". Component names can only contain alphanumeric characters and the hyphen, and must start with a letter.'),(_o(t)||Lo.isReservedTag(t))&&ta("Do not use built-in or reserved HTML elements as component id: "+t)}function q(t,e){var i=t.props;if(i){var n,r,o,l={};if(Array.isArray(i))for(n=i.length;n--;)r=i[n],"string"==typeof r?(o=To(r),l[o]={type:null}):ta("props must be strings when using array syntax.");else if(s(i))for(var u in i)r=i[u],o=To(u),l[o]=s(r)?r:{type:r};else ta('Invalid value for option "props": expected an Array or an Object, but got '+a(i)+".",e);t.props=l}}function Y(t,e){var i=t.inject;if(i){var n=t.inject={};if(Array.isArray(i))for(var r=0;r<i.length;r++)n[i[r]]={from:i[r]};else if(s(i))for(var o in i){var l=i[o];n[o]=s(l)?x({from:o},l):{from:l}}else ta('Invalid value for option "inject": expected an Array or an Object, but got '+a(i)+".",e)}}function X(t){var e=t.directives;if(e)for(var i in e){var n=e[i];"function"==typeof n&&(e[i]={bind:n,update:n})}}function Z(t,e,i){s(e)||ta('Invalid value for option "'+t+'": expected an Object, but got '+a(e)+".",i)}function K(t,e,i){function n(n){var r=xa[n]||wa;l[n]=r(t[n],e[n],i,n)}U(e),"function"==typeof e&&(e=e.options),q(e,i),Y(e,i),X(e);var r=e.extends;if(r&&(t=K(t,r,i)),e.mixins)for(var o=0,a=e.mixins.length;o<a;o++)t=K(t,e.mixins[o],i);var s,l={};for(s in t)n(s);for(s in e)p(t,s)||n(s);return l}function J(t,e,i,n){if("string"==typeof i){var r=t[e];if(p(r,i))return r[i];var o=To(i);if(p(r,o))return r[o];var a=Co(o);if(p(r,a))return r[a];var s=r[i]||r[o]||r[a];return n&&!s&&ta("Failed to resolve "+e.slice(0,-1)+": "+i,t),s}}function Q(t,e,i,n){var r=e[t],o=!p(i,t),a=i[t],s=ot(Boolean,r.type);if(s>-1)if(o&&!p(r,"default"))a=!1;else if(""===a||a===Do(t)){var l=ot(String,r.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=tt(n,r,t);var u=va;N(!0),R(a),N(u)}return et(r,t,a,n,o),a}function tt(t,e,i){if(p(e,"default")){var n=e.default;return o(n)&&ta('Invalid default value for prop "'+i+'": Props with type Object/Array must use a factory function to return the default value.',t),t&&t.$options.propsData&&void 0===t.$options.propsData[i]&&void 0!==t._props[i]?t._props[i]:"function"==typeof n&&"Function"!==nt(e.type)?n.call(t):n}}function et(t,e,i,n,r){if(t.required&&r)return void ta('Missing required prop: "'+e+'"',n);if(null!=i||t.required){var o=t.type,s=!o||!0===o,l=[];if(o){Array.isArray(o)||(o=[o]);for(var u=0;u<o.length&&!s;u++){var c=it(i,o[u]);l.push(c.expectedType||""),s=c.valid}}if(!s)return void ta('Invalid prop: type check failed for prop "'+e+'". Expected '+l.map(Co).join(", ")+", got "+a(i)+".",n);var h=t.validator;h&&(h(i)||ta('Invalid prop: custom validator check failed for prop "'+e+'".',n))}}function it(t,e){var i,n=nt(e);if(Sa.test(n)){var r=typeof t;i=r===n.toLowerCase(),i||"object"!==r||(i=t instanceof e)}else i="Object"===n?s(t):"Array"===n?Array.isArray(t):t instanceof e;return{valid:i,expectedType:n}}function nt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function rt(t,e){return nt(t)===nt(e)}function ot(t,e){if(!Array.isArray(e))return rt(e,t)?0:-1;for(var i=0,n=e.length;i<n;i++)if(rt(e[i],t))return i;return-1}function at(t,e,i){if(e)for(var n=e;n=n.$parent;){var r=n.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{var a=!1===r[o].call(n,t,e,i);if(a)return}catch(t){st(t,n,"errorCaptured hook")}}st(t,e,i)}function st(t,e,i){if(Lo.errorHandler)try{return Lo.errorHandler.call(null,t,e,i)}catch(t){lt(t,null,"config.errorHandler")}lt(t,e,i)}function lt(t,e,i){if(ta("Error in "+i+': "'+t.toString()+'"',e),!zo&&!Fo||"undefined"==typeof console)throw t;console.error(t)}function ut(){Ca=!1;var t=Ta.slice(0);Ta.length=0;for(var e=0;e<t.length;e++)t[e]()}function ct(t){return t._withTask||(t._withTask=function(){Ma=!0;var e=t.apply(null,arguments);return Ma=!1,e})}function ht(t,e){var i;if(Ta.push(function(){if(t)try{t.call(e)}catch(t){at(t,e,"nextTick")}else i&&i(e)}),Ca||(Ca=!0,Ma?ba():_a()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){i=t})}function dt(t){ft(t,Va),Va.clear()}function ft(t,e){var i,n,r=Array.isArray(t);if(!(!r&&!o(t)||Object.isFrozen(t)||t instanceof ha)){if(t.__ob__){var a=t.__ob__.dep.id;if(e.has(a))return;e.add(a)}if(r)for(i=t.length;i--;)ft(t[i],e);else for(n=Object.keys(t),i=n.length;i--;)ft(t[n[i]],e)}}function pt(t){function e(){var t=arguments,i=e.fns;if(!Array.isArray(i))return i.apply(null,arguments);for(var n=i.slice(),r=0;r<n.length;r++)n[r].apply(null,t)}return e.fns=t,e}function gt(e,i,n,r,o){var a,s,l,u;for(a in e)s=e[a],l=i[a],u=Wa(a),t(s)?ta('Invalid handler for event "'+u.name+'": got '+String(s),o):t(l)?(t(s.fns)&&(s=e[a]=pt(s)),n(u.name,s,u.once,u.capture,u.passive,u.params)):s!==l&&(l.fns=s,e[a]=l);for(a in i)t(e[a])&&(u=Wa(a),r(u.name,i[a],u.capture))}function mt(n,r,o){function a(){o.apply(this,arguments),f(s.fns,a)}n instanceof ha&&(n=n.data.hook||(n.data.hook={}));var s,l=n[r];t(l)?s=pt([a]):e(l.fns)&&i(l.merged)?(s=l,s.fns.push(a)):s=pt([l,a]),s.merged=!0,n[r]=s}function vt(i,n,r){var o=n.options.props;if(!t(o)){var a={},s=i.attrs,l=i.props;if(e(s)||e(l))for(var u in o){var c=Do(u),h=u.toLowerCase();u!==h&&s&&p(s,h)&&ea('Prop "'+h+'" is passed to component '+na(r||n)+', but the declared prop name is "'+u+'". Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates. You should probably use "'+c+'" instead of "'+u+'".'),yt(a,l,u,c,!0)||yt(a,s,u,c,!1)}return a}}function yt(t,i,n,r,o){if(e(i)){if(p(i,n))return t[n]=i[n],o||delete i[n],!0;if(p(i,r))return t[n]=i[r],o||delete i[r],!0}return!1}function xt(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function _t(t){return r(t)?[E(t)]:Array.isArray(t)?wt(t):void 0}function bt(t){return e(t)&&e(t.text)&&n(t.isComment)}function wt(n,o){var a,s,l,u,c=[];for(a=0;a<n.length;a++)s=n[a],t(s)||"boolean"==typeof s||(l=c.length-1,u=c[l],Array.isArray(s)?s.length>0&&(s=wt(s,(o||"")+"_"+a),bt(s[0])&&bt(u)&&(c[l]=E(u.text+s[0].text),s.shift()),c.push.apply(c,s)):r(s)?bt(u)?c[l]=E(u.text+s):""!==s&&c.push(E(s)):bt(s)&&bt(u)?c[l]=E(u.text+s.text):(i(n._isVList)&&e(s.tag)&&t(s.key)&&e(o)&&(s.key="__vlist"+o+"_"+a+"__"),c.push(s)));return c}function St(t,e){return(t.__esModule||Qo&&"Module"===t[Symbol.toStringTag])&&(t=t.default),o(t)?e.extend(t):t}function Tt(t,e,i,n,r){var o=fa();return o.asyncFactory=t,o.asyncMeta={data:e,context:i,children:n,tag:r},o}function Ct(n,r,a){if(i(n.error)&&e(n.errorComp))return n.errorComp;if(e(n.resolved))return n.resolved;if(i(n.loading)&&e(n.loadingComp))return n.loadingComp;if(!e(n.contexts)){var s=n.contexts=[a],l=!0,u=function(){for(var t=0,e=s.length;t<e;t++)s[t].$forceUpdate()},c=T(function(t){n.resolved=St(t,r),l||u()}),h=T(function(t){ta("Failed to resolve async component: "+String(n)+(t?"\nReason: "+t:"")),e(n.errorComp)&&(n.error=!0,u())}),d=n(c,h);return o(d)&&("function"==typeof d.then?t(n.resolved)&&d.then(c,h):e(d.component)&&"function"==typeof d.component.then&&(d.component.then(c,h),e(d.error)&&(n.errorComp=St(d.error,r)),e(d.loading)&&(n.loadingComp=St(d.loading,r),0===d.delay?n.loading=!0:setTimeout(function(){t(n.resolved)&&t(n.error)&&(n.loading=!0,u())},d.delay||200)),e(d.timeout)&&setTimeout(function(){t(n.resolved)&&h("timeout ("+d.timeout+"ms)")},d.timeout))),l=!1,n.loading?n.loadingComp:n.resolved}n.contexts.push(a)}function Mt(t){return t.isComment&&t.asyncFactory}function Dt(t){if(Array.isArray(t))for(var i=0;i<t.length;i++){var n=t[i];if(e(n)&&(e(n.componentOptions)||Mt(n)))return n}}function It(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Et(t,e)}function At(t,e,i){i?Ha.$once(t,e):Ha.$on(t,e)}function kt(t,e){Ha.$off(t,e)}function Et(t,e,i){Ha=t,gt(e,i||{},At,kt,t),Ha=void 0}function Ot(t,e){var i={};if(!t)return i;for(var n=0,r=t.length;n<r;n++){var o=t[n],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(i.default||(i.default=[])).push(o);else{var s=a.slot,l=i[s]||(i[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var u in i)i[u].every(Nt)&&delete i[u];return i}function Nt(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Lt(t,e){e=e||{};for(var i=0;i<t.length;i++)Array.isArray(t[i])?Lt(t[i],e):e[t[i].key]=t[i].fn;return e}function Pt(t){var e=t.$options,i=e.parent;if(i&&!e.abstract){for(;i.$options.abstract&&i.$parent;)i=i.$parent;i.$children.push(t)}t.$parent=i,t.$root=i?i.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Rt(t,e,i){t.$el=e,t.$options.render||(t.$options.render=fa,t.$options.template&&"#"!==t.$options.template.charAt(0)||t.$options.el||e?ta("You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",t):ta("Failed to mount component: template or render function not defined.",t)),Vt(t,"beforeMount");var n;return n=Lo.performance&&ka?function(){var e=t._name,n=t._uid,r="vue-perf-start:"+n,o="vue-perf-end:"+n;ka(r);var a=t._render();ka(o),Ea("vue "+e+" render",r,o),ka(r),t._update(a,i),ka(o),Ea("vue "+e+" patch",r,o)}:function(){t._update(t._render(),i)},new ts(t,n,b,null,!0),i=!1,null==t.$vnode&&(t._isMounted=!0,Vt(t,"mounted")),t}function zt(t,e,i,n,r){ja=!0;var o=!!(r||t.$options._renderChildren||n.data.scopedSlots||t.$scopedSlots!==yo);if(t.$options._parentVnode=n,t.$vnode=n,t._vnode&&(t._vnode.parent=n),t.$options._renderChildren=r,t.$attrs=n.data.attrs||yo,t.$listeners=i||yo,e&&t.$options.props){N(!1);for(var a=t._props,s=t.$options._propKeys||[],l=0;l<s.length;l++){var u=s[l],c=t.$options.props;a[u]=Q(u,c,e,t)}N(!0),t.$options.propsData=e}i=i||yo;var h=t.$options._parentListeners;t.$options._parentListeners=i,Et(t,i,h),o&&(t.$slots=Ot(r,n.context),t.$forceUpdate()),ja=!1}function Ft(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function Bt(t,e){if(e){if(t._directInactive=!1,Ft(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var i=0;i<t.$children.length;i++)Bt(t.$children[i]);Vt(t,"activated")}}function Ht(t,e){if(!(e&&(t._directInactive=!0,Ft(t))||t._inactive)){t._inactive=!0;for(var i=0;i<t.$children.length;i++)Ht(t.$children[i]);Vt(t,"deactivated")}}function Vt(t,e){A();var i=t.$options[e];if(i)for(var n=0,r=i.length;n<r;n++)try{i[n].call(t)}catch(i){at(i,t,e+" hook")}t._hasHookEvent&&t.$emit("hook:"+e),k()}function Wt(){Ja=Ga.length=qa.length=0,Ya={},Xa={},Za=Ka=!1}function $t(){Ka=!0;var t,e;for(Ga.sort(function(t,e){return t.id-e.id}),Ja=0;Ja<Ga.length;Ja++)if(t=Ga[Ja],e=t.id,Ya[e]=null,t.run(),null!=Ya[e]&&(Xa[e]=(Xa[e]||0)+1,Xa[e]>Ua)){ ta("You may have an infinite update loop "+(t.user?'in watcher with expression "'+t.expression+'"':"in a component render function."),t.vm);break}var i=qa.slice(),n=Ga.slice();Wt(),Gt(i),jt(n),Jo&&Lo.devtools&&Jo.emit("flush")}function jt(t){for(var e=t.length;e--;){var i=t[e],n=i.vm;n._watcher===i&&n._isMounted&&Vt(n,"updated")}}function Ut(t){t._inactive=!1,qa.push(t)}function Gt(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Bt(t[e],!0)}function qt(t){var e=t.id;if(null==Ya[e]){if(Ya[e]=!0,Ka){for(var i=Ga.length-1;i>Ja&&Ga[i].id>t.id;)i--;Ga.splice(i+1,0,t)}else Ga.push(t);Za||(Za=!0,ht($t))}}function Yt(t,e,i){es.get=function(){return this[e][i]},es.set=function(t){this[e][i]=t},Object.defineProperty(t,i,es)}function Xt(t){t._watchers=[];var e=t.$options;e.props&&Zt(t,e.props),e.methods&&ie(t,e.methods),e.data?Kt(t):R(t._data={},!0),e.computed&&Qt(t,e.computed),e.watch&&e.watch!==Go&&ne(t,e.watch)}function Zt(t,e){var i=t.$options.propsData||{},n=t._props={},r=t.$options._propKeys=[];!t.$parent||N(!1);for(var o in e)!function(o){r.push(o);var a=Q(o,e,i,t),s=Do(o);(bo(s)||Lo.isReservedAttr(s))&&ta('"'+s+'" is a reserved attribute and cannot be used as component prop.',t),z(n,o,a,function(){t.$parent&&!ja&&ta("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+o+'"',t)}),o in t||Yt(t,"_props",o)}(o);N(!0)}function Kt(t){var e=t.$options.data;e=t._data="function"==typeof e?Jt(e,t):e||{},s(e)||(e={},ta("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",t));for(var i=Object.keys(e),n=t.$options.props,r=t.$options.methods,o=i.length;o--;){var a=i[o];r&&p(r,a)&&ta('Method "'+a+'" has already been defined as a data property.',t),n&&p(n,a)?ta('The data property "'+a+'" is already declared as a prop. Use prop default value instead.',t):C(a)||Yt(t,"_data",a)}R(e,!0)}function Jt(t,e){A();try{return t.call(e,e)}catch(t){return at(t,e,"data()"),{}}finally{k()}}function Qt(t,e){var i=t._computedWatchers=Object.create(null),n=Ko();for(var r in e){var o=e[r],a="function"==typeof o?o:o.get;null==a&&ta('Getter is missing for computed property "'+r+'".',t),n||(i[r]=new ts(t,a||b,b,is)),r in t?r in t.$data?ta('The computed property "'+r+'" is already defined in data.',t):t.$options.props&&r in t.$options.props&&ta('The computed property "'+r+'" is already defined as a prop.',t):te(t,r,o)}}function te(t,e,i){var n=!Ko();"function"==typeof i?(es.get=n?ee(e):i,es.set=b):(es.get=i.get?n&&!1!==i.cache?ee(e):i.get:b,es.set=i.set?i.set:b),es.set===b&&(es.set=function(){ta('Computed property "'+e+'" was assigned to but it has no setter.',this)}),Object.defineProperty(t,e,es)}function ee(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ua.target&&e.depend(),e.value}}function ie(t,e){var i=t.$options.props;for(var n in e)null==e[n]&&ta('Method "'+n+'" has an undefined value in the component definition. Did you reference the function correctly?',t),i&&p(i,n)&&ta('Method "'+n+'" has already been defined as a prop.',t),n in t&&C(n)&&ta('Method "'+n+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),t[n]=null==e[n]?b:Io(e[n],t)}function ne(t,e){for(var i in e){var n=e[i];if(Array.isArray(n))for(var r=0;r<n.length;r++)re(t,i,n[r]);else re(t,i,n)}}function re(t,e,i,n){return s(i)&&(n=i,i=i.handler),"string"==typeof i&&(i=t[i]),t.$watch(e,i,n)}function oe(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}function ae(t){var e=se(t.$options.inject,t);e&&(N(!1),Object.keys(e).forEach(function(i){z(t,i,e[i],function(){ta('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+i+'"',t)})}),N(!0))}function se(t,e){if(t){for(var i=Object.create(null),n=Qo?Reflect.ownKeys(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):Object.keys(t),r=0;r<n.length;r++){for(var o=n[r],a=t[o].from,s=e;s;){if(s._provided&&p(s._provided,a)){i[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var l=t[o].default;i[o]="function"==typeof l?l.call(e):l}else ta('Injection "'+o+'" not found',e)}return i}}function le(t,i){var n,r,a,s,l;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,a=t.length;r<a;r++)n[r]=i(t[r],r);else if("number"==typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=i(r+1,r);else if(o(t))for(s=Object.keys(t),n=new Array(s.length),r=0,a=s.length;r<a;r++)l=s[r],n[r]=i(t[l],l,r);return e(n)&&(n._isVList=!0),n}function ue(t,e,i,n){var r,a=this.$scopedSlots[t];if(a)i=i||{},n&&(o(n)||ta("slot v-bind without argument expects an Object",this),i=x(x({},n),i)),r=a(i)||e;else{var s=this.$slots[t];s&&(s._rendered&&ta('Duplicate presence of slot "'+t+'" found in the same render tree - this will likely cause render errors.',this),s._rendered=!0),r=s||e}var l=i&&i.slot;return l?this.$createElement("template",{slot:l},r):r}function ce(t){return J(this.$options,"filters",t,!0)||ko}function he(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function de(t,e,i,n,r){var o=Lo.keyCodes[e]||i;return r&&n&&!Lo.keyCodes[e]?he(r,n):o?he(o,t):n?Do(n)!==e:void 0}function fe(t,e,i,n,r){if(i)if(o(i)){Array.isArray(i)&&(i=_(i));var a;for(var s in i)!function(o){if("class"===o||"style"===o||bo(o))a=t;else{var s=t.attrs&&t.attrs.type;a=n||Lo.mustUseProp(e,s,o)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}if(!(o in a)&&(a[o]=i[o],r)){(t.on||(t.on={}))["update:"+o]=function(t){i[o]=t}}}(s)}else ta("v-bind without argument expects an Object or Array value",this);return t}function pe(t,e){var i=this._staticTrees||(this._staticTrees=[]),n=i[t];return n&&!e?n:(n=i[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),me(n,"__static__"+t,!1),n)}function ge(t,e,i){return me(t,"__once__"+e+(i?"_"+i:""),!0),t}function me(t,e,i){if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]&&"string"!=typeof t[n]&&ve(t[n],e+"_"+n,i);else ve(t,e,i)}function ve(t,e,i){t.isStatic=!0,t.key=e,t.isOnce=i}function ye(t,e){if(e)if(s(e)){var i=t.on=t.on?x({},t.on):{};for(var n in e){var r=i[n],o=e[n];i[n]=r?[].concat(r,o):o}}else ta("v-on without argument expects an Object value",this);return t}function xe(t){t._o=ge,t._n=h,t._s=c,t._l=le,t._t=ue,t._q=w,t._i=S,t._m=pe,t._f=ce,t._k=de,t._b=fe,t._v=E,t._e=fa,t._u=Lt,t._g=ye}function _e(t,e,n,r,o){var a,s=o.options;p(r,"_uid")?(a=Object.create(r),a._original=r):(a=r,r=r._original);var l=i(s._compiled),u=!l;this.data=t,this.props=e,this.children=n,this.parent=r,this.listeners=t.on||yo,this.injections=se(s.inject,r),this.slots=function(){return Ot(n,r)},l&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=t.scopedSlots||yo),s._scopeId?this._c=function(t,e,i,n){var o=Ie(a,t,e,i,n,u);return o&&!Array.isArray(o)&&(o.fnScopeId=s._scopeId,o.fnContext=r),o}:this._c=function(t,e,i,n){return Ie(a,t,e,i,n,u)}}function be(t,i,n,r,o){var a=t.options,s={},l=a.props;if(e(l))for(var u in l)s[u]=Q(u,l,i||yo);else e(n.attrs)&&Se(s,n.attrs),e(n.props)&&Se(s,n.props);var c=new _e(n,s,o,r,t),h=a.render.call(null,c._c,c);if(h instanceof ha)return we(h,n,c.parent,a);if(Array.isArray(h)){for(var d=_t(h)||[],f=new Array(d.length),p=0;p<d.length;p++)f[p]=we(d[p],n,c.parent,a);return f}}function we(t,e,i,n){var r=O(t);return r.fnContext=i,r.fnOptions=n,e.slot&&((r.data||(r.data={})).slot=e.slot),r}function Se(t,e){for(var i in e)t[To(i)]=e[i]}function Te(n,r,a,s,l){if(!t(n)){var u=a.$options._base;if(o(n)&&(n=u.extend(n)),"function"!=typeof n)return void ta("Invalid Component definition: "+String(n),a);var c;if(t(n.cid)&&(c=n,void 0===(n=Ct(c,u,a))))return Tt(c,r,a,s,l);r=r||{},Le(n),e(r.model)&&De(n.options,r);var h=vt(r,n,l);if(i(n.options.functional))return be(n,h,r,a,s);var d=r.on;if(r.on=r.nativeOn,i(n.options.abstract)){var f=r.slot;r={},f&&(r.slot=f)}Me(r);var p=n.options.name||l;return new ha("vue-component-"+n.cid+(p?"-"+p:""),r,void 0,void 0,void 0,a,{Ctor:n,propsData:h,listeners:d,tag:l,children:s},c)}}function Ce(t,i,n,r){var o={_isComponent:!0,parent:i,_parentVnode:t,_parentElm:n||null,_refElm:r||null},a=t.data.inlineTemplate;return e(a)&&(o.render=a.render,o.staticRenderFns=a.staticRenderFns),new t.componentOptions.Ctor(o)}function Me(t){for(var e=t.hook||(t.hook={}),i=0;i<rs.length;i++){var n=rs[i];e[n]=ns[n]}}function De(t,i){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(i.props||(i.props={}))[n]=i.model.value;var o=i.on||(i.on={});e(o[r])?o[r]=[i.model.callback].concat(o[r]):o[r]=i.model.callback}function Ie(t,e,n,o,a,s){return(Array.isArray(n)||r(n))&&(a=o,o=n,n=void 0),i(s)&&(a=as),Ae(t,e,n,o,a)}function Ae(t,i,n,o,a){if(e(n)&&e(n.__ob__))return ta("Avoid using observed data object as vnode data: "+JSON.stringify(n)+"\nAlways create fresh vnode data objects in each render!",t),fa();if(e(n)&&e(n.is)&&(i=n.is),!i)return fa();e(n)&&e(n.key)&&!r(n.key)&&ta("Avoid using non-primitive value as key, use string/number value instead.",t),Array.isArray(o)&&"function"==typeof o[0]&&(n=n||{},n.scopedSlots={default:o[0]},o.length=0),a===as?o=_t(o):a===os&&(o=xt(o));var s,l;if("string"==typeof i){var u;l=t.$vnode&&t.$vnode.ns||Lo.getTagNamespace(i),s=Lo.isReservedTag(i)?new ha(Lo.parsePlatformTagName(i),n,o,void 0,void 0,t):e(u=J(t.$options,"components",i))?Te(u,n,t,o,i):new ha(i,n,o,void 0,void 0,t)}else s=Te(i,n,t,o);return Array.isArray(s)?s:e(s)?(e(l)&&ke(s,l),e(n)&&Ee(n),s):fa()}function ke(n,r,o){if(n.ns=r,"foreignObject"===n.tag&&(r=void 0,o=!0),e(n.children))for(var a=0,s=n.children.length;a<s;a++){var l=n.children[a];e(l.tag)&&(t(l.ns)||i(o)&&"svg"!==l.tag)&&ke(l,r,o)}}function Ee(t){o(t.style)&&dt(t.style),o(t.class)&&dt(t.class)}function Oe(t){t._vnode=null,t._staticTrees=null;var e=t.$options,i=t.$vnode=e._parentVnode,n=i&&i.context;t.$slots=Ot(e._renderChildren,n),t.$scopedSlots=yo,t._c=function(e,i,n,r){return Ie(t,e,i,n,r,!1)},t.$createElement=function(e,i,n,r){return Ie(t,e,i,n,r,!0)};var r=i&&i.data;z(t,"$attrs",r&&r.attrs||yo,function(){!ja&&ta("$attrs is readonly.",t)},!0),z(t,"$listeners",e._parentListeners||yo,function(){!ja&&ta("$listeners is readonly.",t)},!0)}function Ne(t,e){var i=t.$options=Object.create(t.constructor.options),n=e._parentVnode;i.parent=e.parent,i._parentVnode=n,i._parentElm=e._parentElm,i._refElm=e._refElm;var r=n.componentOptions;i.propsData=r.propsData,i._parentListeners=r.listeners,i._renderChildren=r.children,i._componentTag=r.tag,e.render&&(i.render=e.render,i.staticRenderFns=e.staticRenderFns)}function Le(t){var e=t.options;if(t.super){var i=Le(t.super);if(i!==t.superOptions){t.superOptions=i;var n=Pe(t);n&&x(t.extendOptions,n),e=t.options=K(i,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function Pe(t){var e,i=t.options,n=t.extendOptions,r=t.sealedOptions;for(var o in i)i[o]!==r[o]&&(e||(e={}),e[o]=Re(i[o],n[o],r[o]));return e}function Re(t,e,i){if(Array.isArray(t)){var n=[];i=Array.isArray(i)?i:[i],e=Array.isArray(e)?e:[e];for(var r=0;r<t.length;r++)(e.indexOf(t[r])>=0||i.indexOf(t[r])<0)&&n.push(t[r]);return n}return t}function ze(t){this instanceof ze||ta("Vue is a constructor and should be called with the `new` keyword"),this._init(t)}function Fe(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var i=y(arguments,1);return i.unshift(this),"function"==typeof t.install?t.install.apply(t,i):"function"==typeof t&&t.apply(null,i),e.push(t),this}}function Be(t){t.mixin=function(t){return this.options=K(this.options,t),this}}function He(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var i=this,n=i.cid,r=t._Ctor||(t._Ctor={});if(r[n])return r[n];var o=t.name||i.options.name;o&&G(o);var a=function(t){this._init(t)};return a.prototype=Object.create(i.prototype),a.prototype.constructor=a,a.cid=e++,a.options=K(i.options,t),a.super=i,a.options.props&&Ve(a),a.options.computed&&We(a),a.extend=i.extend,a.mixin=i.mixin,a.use=i.use,Oo.forEach(function(t){a[t]=i[t]}),o&&(a.options.components[o]=a),a.superOptions=i.options,a.extendOptions=t,a.sealedOptions=x({},a.options),r[n]=a,a}}function Ve(t){var e=t.options.props;for(var i in e)Yt(t.prototype,"_props",i)}function We(t){var e=t.options.computed;for(var i in e)te(t.prototype,i,e[i])}function $e(t){Oo.forEach(function(e){t[e]=function(t,i){return i?("component"===e&&G(t),"component"===e&&s(i)&&(i.name=i.name||t,i=this.options._base.extend(i)),"directive"===e&&"function"==typeof i&&(i={bind:i,update:i}),this.options[e+"s"][t]=i,i):this.options[e+"s"][t]}})}function je(t){return t&&(t.Ctor.options.name||t.tag)}function Ue(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!l(t)&&t.test(e)}function Ge(t,e){var i=t.cache,n=t.keys,r=t._vnode;for(var o in i){var a=i[o];if(a){var s=je(a.componentOptions);s&&!e(s)&&qe(i,o,n,r)}}}function qe(t,e,i,n){var r=t[e];!r||n&&r.tag===n.tag||r.componentInstance.$destroy(),t[e]=null,f(i,e)}function Ye(t){for(var i=t.data,n=t,r=t;e(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(i=Xe(r.data,i));for(;e(n=n.parent);)n&&n.data&&(i=Xe(i,n.data));return Ze(i.staticClass,i.class)}function Xe(t,i){return{staticClass:Ke(t.staticClass,i.staticClass),class:e(t.class)?[t.class,i.class]:i.class}}function Ze(t,i){return e(t)||e(i)?Ke(t,Je(i)):""}function Ke(t,e){return t?e?t+" "+e:t:e||""}function Je(t){return Array.isArray(t)?Qe(t):o(t)?ti(t):"string"==typeof t?t:""}function Qe(t){for(var i,n="",r=0,o=t.length;r<o;r++)e(i=Je(t[r]))&&""!==i&&(n&&(n+=" "),n+=i);return n}function ti(t){var e="";for(var i in t)t[i]&&(e&&(e+=" "),e+=i);return e}function ei(t){return Es(t)?"svg":"math"===t?"math":void 0}function ii(t){if(!zo)return!0;if(Ns(t))return!1;if(t=t.toLowerCase(),null!=Ls[t])return Ls[t];var e=document.createElement(t);return t.indexOf("-")>-1?Ls[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Ls[t]=/HTMLUnknownElement/.test(e.toString())}function ni(t){if("string"==typeof t){var e=document.querySelector(t);return e||(ta("Cannot find element: "+t),document.createElement("div"))}return t}function ri(t,e){var i=document.createElement(t);return"select"!==t?i:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&i.setAttribute("multiple","multiple"),i)}function oi(t,e){return document.createElementNS(As[t],e)}function ai(t){return document.createTextNode(t)}function si(t){return document.createComment(t)}function li(t,e,i){t.insertBefore(e,i)}function ui(t,e){t.removeChild(e)}function ci(t,e){t.appendChild(e)}function hi(t){return t.parentNode}function di(t){return t.nextSibling}function fi(t){return t.tagName}function pi(t,e){t.textContent=e}function gi(t,e){t.setAttribute(e,"")}function mi(t,i){var n=t.data.ref;if(e(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;i?Array.isArray(a[n])?f(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}function vi(n,r){return n.key===r.key&&(n.tag===r.tag&&n.isComment===r.isComment&&e(n.data)===e(r.data)&&yi(n,r)||i(n.isAsyncPlaceholder)&&n.asyncFactory===r.asyncFactory&&t(r.asyncFactory.error))}function yi(t,i){if("input"!==t.tag)return!0;var n,r=e(n=t.data)&&e(n=n.attrs)&&n.type,o=e(n=i.data)&&e(n=n.attrs)&&n.type;return r===o||Ps(r)&&Ps(o)}function xi(t,i,n){var r,o,a={};for(r=i;r<=n;++r)o=t[r].key,e(o)&&(a[o]=r);return a}function _i(t,e){(t.data.directives||e.data.directives)&&bi(t,e)}function bi(t,e){var i,n,r,o=t===Fs,a=e===Fs,s=wi(t.data.directives,t.context),l=wi(e.data.directives,e.context),u=[],c=[];for(i in l)n=s[i],r=l[i],n?(r.oldValue=n.value,Ti(r,"update",e,t),r.def&&r.def.componentUpdated&&c.push(r)):(Ti(r,"bind",e,t),r.def&&r.def.inserted&&u.push(r));if(u.length){var h=function(){for(var i=0;i<u.length;i++)Ti(u[i],"inserted",e,t)};o?mt(e,"insert",h):h()}if(c.length&&mt(e,"postpatch",function(){for(var i=0;i<c.length;i++)Ti(c[i],"componentUpdated",e,t)}),!o)for(i in s)l[i]||Ti(s[i],"unbind",t,t,a)}function wi(t,e){var i=Object.create(null);if(!t)return i;var n,r;for(n=0;n<t.length;n++)r=t[n],r.modifiers||(r.modifiers=Vs),i[Si(r)]=r,r.def=J(e.$options,"directives",r.name,!0);return i}function Si(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function Ti(t,e,i,n,r){var o=t.def&&t.def[e];if(o)try{o(i.elm,t,i,n,r)}catch(n){at(n,i.context,"directive "+t.name+" "+e+" hook")}}function Ci(i,n){var r=n.componentOptions;if(!(e(r)&&!1===r.Ctor.options.inheritAttrs||t(i.data.attrs)&&t(n.data.attrs))){var o,a,s=n.elm,l=i.data.attrs||{},u=n.data.attrs||{};e(u.__ob__)&&(u=n.data.attrs=x({},u));for(o in u)a=u[o],l[o]!==a&&Mi(s,o,a);(Vo||$o)&&u.value!==l.value&&Mi(s,"value",u.value);for(o in l)t(u[o])&&(Ms(o)?s.removeAttributeNS(Cs,Ds(o)):Ss(o)||s.removeAttribute(o))}}function Mi(t,e,i){t.tagName.indexOf("-")>-1?Di(t,e,i):Ts(e)?Is(i)?t.removeAttribute(e):(i="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,i)):Ss(e)?t.setAttribute(e,Is(i)||"false"===i?"false":"true"):Ms(e)?Is(i)?t.removeAttributeNS(Cs,Ds(e)):t.setAttributeNS(Cs,e,i):Di(t,e,i)}function Di(t,e,i){if(Is(i))t.removeAttribute(e);else{if(Vo&&!Wo&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,i)}}function Ii(i,n){var r=n.elm,o=n.data,a=i.data;if(!(t(o.staticClass)&&t(o.class)&&(t(a)||t(a.staticClass)&&t(a.class)))){var s=Ye(n),l=r._transitionClasses;e(l)&&(s=Ke(s,Je(l))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}function Ai(t){function e(){(a||(a=[])).push(t.slice(p,r).trim()),p=r+1}var i,n,r,o,a,s=!1,l=!1,u=!1,c=!1,h=0,d=0,f=0,p=0;for(r=0;r<t.length;r++)if(n=i,i=t.charCodeAt(r),s)39===i&&92!==n&&(s=!1);else if(l)34===i&&92!==n&&(l=!1);else if(u)96===i&&92!==n&&(u=!1);else if(c)47===i&&92!==n&&(c=!1);else if(124!==i||124===t.charCodeAt(r+1)||124===t.charCodeAt(r-1)||h||d||f){switch(i){case 34:l=!0;break;case 39:s=!0;break;case 96:u=!0;break;case 40:f++;break;case 41:f--;break;case 91:d++;break;case 93:d--;break;case 123:h++;break;case 125:h--}if(47===i){for(var g=r-1,m=void 0;g>=0&&" "===(m=t.charAt(g));g--);m&&Us.test(m)||(c=!0)}}else void 0===o?(p=r+1,o=t.slice(0,r).trim()):e();if(void 0===o?o=t.slice(0,r).trim():0!==p&&e(),a)for(r=0;r<a.length;r++)o=ki(o,a[r]);return o}function ki(t,e){var i=e.indexOf("(");if(i<0)return'_f("'+e+'")('+t+")";var n=e.slice(0,i),r=e.slice(i+1);return'_f("'+n+'")('+t+(")"!==r?","+r:r)}function Ei(t){console.error("[Vue compiler]: "+t)}function Oi(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function Ni(t,e,i){(t.props||(t.props=[])).push({name:e,value:i}),t.plain=!1}function Li(t,e,i){(t.attrs||(t.attrs=[])).push({name:e,value:i}),t.plain=!1}function Pi(t,e,i){t.attrsMap[e]=i,t.attrsList.push({name:e,value:i})}function Ri(t,e,i,n,r,o){(t.directives||(t.directives=[])).push({name:e,rawName:i,value:n,arg:r,modifiers:o}),t.plain=!1}function zi(t,e,i,n,r,o){n=n||yo,o&&n.prevent&&n.passive&&o("passive and prevent can't be used together. Passive handler can't prevent default event."),n.capture&&(delete n.capture,e="!"+e),n.once&&(delete n.once,e="~"+e),n.passive&&(delete n.passive,e="&"+e),"click"===e&&(n.right?(e="contextmenu",delete n.right):n.middle&&(e="mouseup"));var a;n.native?(delete n.native,a=t.nativeEvents||(t.nativeEvents={})):a=t.events||(t.events={});var s={value:i.trim()};n!==yo&&(s.modifiers=n);var l=a[e];Array.isArray(l)?r?l.unshift(s):l.push(s):a[e]=l?r?[s,l]:[l,s]:s,t.plain=!1}function Fi(t,e,i){var n=Bi(t,":"+e)||Bi(t,"v-bind:"+e);if(null!=n)return Ai(n);if(!1!==i){var r=Bi(t,e);if(null!=r)return JSON.stringify(r)}}function Bi(t,e,i){var n;if(null!=(n=t.attrsMap[e]))for(var r=t.attrsList,o=0,a=r.length;o<a;o++)if(r[o].name===e){r.splice(o,1);break}return i&&delete t.attrsMap[e],n}function Hi(t,e,i){var n=i||{},r=n.number,o=n.trim,a="$$v";o&&(a="(typeof $$v === 'string'? $$v.trim(): $$v)"),r&&(a="_n("+a+")");var s=Vi(e,a);t.model={value:"("+e+")",expression:'"'+e+'"',callback:"function ($$v) {"+s+"}"}}function Vi(t,e){var i=Wi(t);return null===i.key?t+"="+e:"$set("+i.exp+", "+i.key+", "+e+")"}function Wi(t){if(t=t.trim(),hs=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<hs-1)return ps=t.lastIndexOf("."),ps>-1?{exp:t.slice(0,ps),key:'"'+t.slice(ps+1)+'"'}:{exp:t,key:null};for(ds=t,ps=gs=ms=0;!ji();)fs=$i(),Ui(fs)?qi(fs):91===fs&&Gi(fs);return{exp:t.slice(0,gs),key:t.slice(gs+1,ms)}}function $i(){return ds.charCodeAt(++ps)}function ji(){return ps>=hs}function Ui(t){return 34===t||39===t}function Gi(t){var e=1;for(gs=ps;!ji();)if(t=$i(),Ui(t))qi(t);else if(91===t&&e++,93===t&&e--,0===e){ms=ps;break}}function qi(t){for(var e=t;!ji()&&(t=$i())!==e;);}function Yi(t,e,i){vs=i;var n=e.value,r=e.modifiers,o=t.tag,a=t.attrsMap.type;if("input"===o&&"file"===a&&vs("<"+t.tag+' v-model="'+n+'" type="file">:\nFile inputs are read only. Use a v-on:change listener instead.'),t.component)return Hi(t,n,r),!1;if("select"===o)Ki(t,n,r);else if("input"===o&&"checkbox"===a)Xi(t,n,r);else if("input"===o&&"radio"===a)Zi(t,n,r);else if("input"===o||"textarea"===o)Ji(t,n,r);else{if(!Lo.isReservedTag(o))return Hi(t,n,r),!1;vs("<"+t.tag+' v-model="'+n+"\">: v-model is not supported on this element type. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.")}return!0}function Xi(t,e,i){var n=i&&i.number,r=Fi(t,"value")||"null",o=Fi(t,"true-value")||"true",a=Fi(t,"false-value")||"false";Ni(t,"checked","Array.isArray("+e+")?_i("+e+","+r+")>-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),zi(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(n?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Vi(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Vi(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Vi(e,"$$c")+"}",null,!0)}function Zi(t,e,i){var n=i&&i.number,r=Fi(t,"value")||"null";r=n?"_n("+r+")":r,Ni(t,"checked","_q("+e+","+r+")"),zi(t,"change",Vi(e,r),null,!0)}function Ki(t,e,i){var n=i&&i.number,r='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n?"_n(val)":"val")+"})",o="var $$selectedVal = "+r+";";o=o+" "+Vi(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),zi(t,"change",o,null,!0)}function Ji(t,e,i){var n=t.attrsMap.type,r=t.attrsMap["v-bind:value"]||t.attrsMap[":value"],o=t.attrsMap["v-bind:type"]||t.attrsMap[":type"];if(r&&!o){var a=t.attrsMap["v-bind:value"]?"v-bind:value":":value";vs(a+'="'+r+'" conflicts with v-model on the same element because the latter already expands to a value binding internally')}var s=i||{},l=s.lazy,u=s.number,c=s.trim,h=!l&&"range"!==n,d=l?"change":"range"===n?Gs:"input",f="$event.target.value";c&&(f="$event.target.value.trim()"),u&&(f="_n("+f+")");var p=Vi(e,f);h&&(p="if($event.target.composing)return;"+p),Ni(t,"value","("+e+")"),zi(t,d,p,null,!0),(c||u)&&zi(t,"blur","$forceUpdate()")}function Qi(t){if(e(t[Gs])){var i=Vo?"change":"input";t[i]=[].concat(t[Gs],t[i]||[]),delete t[Gs]}e(t[qs])&&(t.change=[].concat(t[qs],t.change||[]),delete t[qs])}function tn(t,e,i){var n=ys;return function r(){null!==t.apply(null,arguments)&&nn(e,r,i,n)}}function en(t,e,i,n,r){e=ct(e),i&&(e=tn(e,t,n)),ys.addEventListener(t,e,qo?{capture:n,passive:r}:n)}function nn(t,e,i,n){(n||ys).removeEventListener(t,e._withTask||e,i)}function rn(e,i){if(!t(e.data.on)||!t(i.data.on)){var n=i.data.on||{},r=e.data.on||{};ys=i.elm,Qi(n),gt(n,r,en,nn,i.context),ys=void 0}}function on(i,n){if(!t(i.data.domProps)||!t(n.data.domProps)){var r,o,a=n.elm,s=i.data.domProps||{},l=n.data.domProps||{};e(l.__ob__)&&(l=n.data.domProps=x({},l));for(r in s)t(l[r])&&(a[r]="");for(r in l){if(o=l[r],"textContent"===r||"innerHTML"===r){if(n.children&&(n.children.length=0),o===s[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r){a._value=o;var u=t(o)?"":String(o);an(a,u)&&(a.value=u)}else a[r]=o}}}function an(t,e){return!t.composing&&("OPTION"===t.tagName||sn(t,e)||ln(t,e))}function sn(t,e){var i=!0;try{i=document.activeElement!==t}catch(t){}return i&&t.value!==e}function ln(t,i){var n=t.value,r=t._vModifiers;if(e(r)){if(r.lazy)return!1;if(r.number)return h(n)!==h(i);if(r.trim)return n.trim()!==i.trim()}return n!==i}function un(t){var e=cn(t.style);return t.staticStyle?x(t.staticStyle,e):e}function cn(t){return Array.isArray(t)?_(t):"string"==typeof t?Zs(t):t}function hn(t,e){var i,n={};if(e)for(var r=t;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(i=un(r.data))&&x(n,i);(i=un(t.data))&&x(n,i);for(var o=t;o=o.parent;)o.data&&(i=un(o.data))&&x(n,i);return n}function dn(i,n){var r=n.data,o=i.data;if(!(t(r.staticStyle)&&t(r.style)&&t(o.staticStyle)&&t(o.style))){var a,s,l=n.elm,u=o.staticStyle,c=o.normalizedStyle||o.style||{},h=u||c,d=cn(n.data.style)||{};n.data.normalizedStyle=e(d.__ob__)?x({},d):d;var f=hn(n,!0);for(s in h)t(f[s])&&Qs(l,s,"");for(s in f)(a=f[s])!==h[s]&&Qs(l,s,null==a?"":a)}}function fn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var i=" "+(t.getAttribute("class")||"")+" ";i.indexOf(" "+e+" ")<0&&t.setAttribute("class",(i+e).trim())}}function pn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var i=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";i.indexOf(n)>=0;)i=i.replace(n," ");i=i.trim(),i?t.setAttribute("class",i):t.removeAttribute("class")}}function gn(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&x(e,nl(t.name||"v")),x(e,t),e}return"string"==typeof t?nl(t):void 0}}function mn(t){hl(function(){hl(t)})}function vn(t,e){var i=t._transitionClasses||(t._transitionClasses=[]);i.indexOf(e)<0&&(i.push(e),fn(t,e))}function yn(t,e){t._transitionClasses&&f(t._transitionClasses,e),pn(t,e)}function xn(t,e,i){var n=_n(t,e),r=n.type,o=n.timeout,a=n.propCount;if(!r)return i();var s=r===ol?ll:cl,l=0,u=function(){t.removeEventListener(s,c),i()},c=function(e){e.target===t&&++l>=a&&u()};setTimeout(function(){l<a&&u()},o+1),t.addEventListener(s,c)}function _n(t,e){var i,n=window.getComputedStyle(t),r=n[sl+"Delay"].split(", "),o=n[sl+"Duration"].split(", "),a=bn(r,o),s=n[ul+"Delay"].split(", "),l=n[ul+"Duration"].split(", "),u=bn(s,l),c=0,h=0;return e===ol?a>0&&(i=ol,c=a,h=o.length):e===al?u>0&&(i=al,c=u,h=l.length):(c=Math.max(a,u),i=c>0?a>u?ol:al:null,h=i?i===ol?o.length:l.length:0),{type:i,timeout:c,propCount:h,hasTransform:i===ol&&dl.test(n[sl+"Property"])}}function bn(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,i){return wn(e)+wn(t[i])}))}function wn(t){return 1e3*Number(t.slice(0,-1))}function Sn(i,n){var r=i.elm;e(r._leaveCb)&&(r._leaveCb.cancelled=!0,r._leaveCb());var a=gn(i.data.transition);if(!t(a)&&!e(r._enterCb)&&1===r.nodeType){for(var s=a.css,l=a.type,u=a.enterClass,c=a.enterToClass,d=a.enterActiveClass,f=a.appearClass,p=a.appearToClass,g=a.appearActiveClass,m=a.beforeEnter,v=a.enter,y=a.afterEnter,x=a.enterCancelled,_=a.beforeAppear,b=a.appear,w=a.afterAppear,S=a.appearCancelled,C=a.duration,M=$a,D=$a.$vnode;D&&D.parent;)D=D.parent,M=D.context;var I=!M._isMounted||!i.isRootInsert;if(!I||b||""===b){var A=I&&f?f:u,k=I&&g?g:d,E=I&&p?p:c,O=I?_||m:m,N=I&&"function"==typeof b?b:v,L=I?w||y:y,P=I?S||x:x,R=h(o(C)?C.enter:C);null!=R&&Cn(R,"enter",i);var z=!1!==s&&!Wo,F=Dn(N),B=r._enterCb=T(function(){z&&(yn(r,E),yn(r,k)),B.cancelled?(z&&yn(r,A),P&&P(r)):L&&L(r),r._enterCb=null});i.data.show||mt(i,"insert",function(){var t=r.parentNode,e=t&&t._pending&&t._pending[i.key];e&&e.tag===i.tag&&e.elm._leaveCb&&e.elm._leaveCb(),N&&N(r,B)}),O&&O(r),z&&(vn(r,A),vn(r,k),mn(function(){yn(r,A),B.cancelled||(vn(r,E),F||(Mn(R)?setTimeout(B,R):xn(r,l,B)))})),i.data.show&&(n&&n(),N&&N(r,B)),z||F||B()}}}function Tn(i,n){function r(){S.cancelled||(i.data.show||((a.parentNode._pending||(a.parentNode._pending={}))[i.key]=i),p&&p(a),_&&(vn(a,c),vn(a,f),mn(function(){yn(a,c),S.cancelled||(vn(a,d),b||(Mn(w)?setTimeout(S,w):xn(a,u,S)))})),g&&g(a,S),_||b||S())}var a=i.elm;e(a._enterCb)&&(a._enterCb.cancelled=!0,a._enterCb());var s=gn(i.data.transition);if(t(s)||1!==a.nodeType)return n();if(!e(a._leaveCb)){var l=s.css,u=s.type,c=s.leaveClass,d=s.leaveToClass,f=s.leaveActiveClass,p=s.beforeLeave,g=s.leave,m=s.afterLeave,v=s.leaveCancelled,y=s.delayLeave,x=s.duration,_=!1!==l&&!Wo,b=Dn(g),w=h(o(x)?x.leave:x);e(w)&&Cn(w,"leave",i);var S=a._leaveCb=T(function(){a.parentNode&&a.parentNode._pending&&(a.parentNode._pending[i.key]=null),_&&(yn(a,d),yn(a,f)),S.cancelled?(_&&yn(a,c),v&&v(a)):(n(),m&&m(a)),a._leaveCb=null});y?y(r):r()}}function Cn(t,e,i){"number"!=typeof t?ta("<transition> explicit "+e+" duration is not a valid number - got "+JSON.stringify(t)+".",i.context):isNaN(t)&&ta("<transition> explicit "+e+" duration is NaN - the duration expression might be incorrect.",i.context)}function Mn(t){return"number"==typeof t&&!isNaN(t)}function Dn(i){if(t(i))return!1;var n=i.fns;return e(n)?Dn(Array.isArray(n)?n[0]:n):(i._length||i.length)>1}function In(t,e){!0!==e.data.show&&Sn(e)}function An(t,e,i){kn(t,e,i),(Vo||$o)&&setTimeout(function(){kn(t,e,i)},0)}function kn(t,e,i){var n=e.value,r=t.multiple;if(r&&!Array.isArray(n))return void ta('<select multiple v-model="'+e.expression+'"> expects an Array value for its binding, but got '+Object.prototype.toString.call(n).slice(8,-1),i);for(var o,a,s=0,l=t.options.length;s<l;s++)if(a=t.options[s],r)o=S(n,On(a))>-1,a.selected!==o&&(a.selected=o);else if(w(On(a),n))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}function En(t,e){return e.every(function(e){return!w(e,t)})}function On(t){return"_value"in t?t._value:t.value}function Nn(t){t.target.composing=!0}function Ln(t){t.target.composing&&(t.target.composing=!1,Pn(t.target,"input"))}function Pn(t,e){var i=document.createEvent("HTMLEvents");i.initEvent(e,!0,!0),t.dispatchEvent(i)}function Rn(t){return!t.componentInstance||t.data&&t.data.transition?t:Rn(t.componentInstance._vnode)}function zn(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?zn(Dt(e.children)):t}function Fn(t){var e={},i=t.$options;for(var n in i.propsData)e[n]=t[n];var r=i._parentListeners;for(var o in r)e[To(o)]=r[o];return e}function Bn(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Hn(t){for(;t=t.parent;)if(t.data.transition)return!0}function Vn(t,e){return e.key===t.key&&e.tag===t.tag}function Wn(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function $n(t){t.data.newPos=t.elm.getBoundingClientRect()}function jn(t){var e=t.data.pos,i=t.data.newPos,n=e.left-i.left,r=e.top-i.top;if(n||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+r+"px)",o.transitionDuration="0s"}}function Un(t,e){var i=e?Il(e):Ml;if(i.test(t)){for(var n,r,o,a=[],s=[],l=i.lastIndex=0;n=i.exec(t);){r=n.index,r>l&&(s.push(o=t.slice(l,r)),a.push(JSON.stringify(o)));var u=Ai(n[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),l=r+n[0].length}return l<t.length&&(s.push(o=t.slice(l)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}function Gn(t,e){var i=e.warn||Ei,n=Bi(t,"class");if(n){Un(n,e.delimiters)&&i('class="'+n+'": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div class="{{ val }}">, use <div :class="val">.')}n&&(t.staticClass=JSON.stringify(n));var r=Fi(t,"class",!1) ;r&&(t.classBinding=r)}function qn(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}function Yn(t,e){var i=e.warn||Ei,n=Bi(t,"style");if(n){Un(n,e.delimiters)&&i('style="'+n+'": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div style="{{ val }}">, use <div :style="val">.'),t.staticStyle=JSON.stringify(Zs(n))}var r=Fi(t,"style",!1);r&&(t.styleBinding=r)}function Xn(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}function Zn(t,e){var i=e?au:ou;return t.replace(i,function(t){return ru[t]})}function Kn(t,e){function i(e){c+=e,t=t.substring(e)}function n(t,i,n){var r,s;if(null==i&&(i=c),null==n&&(n=c),t&&(s=t.toLowerCase()),t)for(r=a.length-1;r>=0&&a[r].lowerCasedTag!==s;r--);else r=0;if(r>=0){for(var l=a.length-1;l>=r;l--)(l>r||!t)&&e.warn&&e.warn("tag <"+a[l].tag+"> has no matching end tag."),e.end&&e.end(a[l].tag,i,n);a.length=r,o=r&&a[r-1].tag}else"br"===s?e.start&&e.start(t,[],!0,i,n):"p"===s&&(e.start&&e.start(t,[],!1,i,n),e.end&&e.end(t,i,n))}for(var r,o,a=[],s=e.expectHTML,l=e.isUnaryTag||Ao,u=e.canBeLeftOpenTag||Ao,c=0;t;){if(r=t,o&&iu(o)){var h=0,d=o.toLowerCase(),f=nu[d]||(nu[d]=new RegExp("([\\s\\S]*?)(</"+d+"[^>]*>)","i")),p=t.replace(f,function(t,i,n){return h=n.length,iu(d)||"noscript"===d||(i=i.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),lu(d,i)&&(i=i.slice(1)),e.chars&&e.chars(i),""});c+=t.length-p.length,t=p,n(d,c-h,c)}else{var g=t.indexOf("<");if(0===g){if(Wl.test(t)){var m=t.indexOf("--\x3e");if(m>=0){e.shouldKeepComment&&e.comment(t.substring(4,m)),i(m+3);continue}}if($l.test(t)){var v=t.indexOf("]>");if(v>=0){i(v+2);continue}}var y=t.match(Vl);if(y){i(y[0].length);continue}var x=t.match(Hl);if(x){var _=c;i(x[0].length),n(x[1],_,c);continue}var b=function(){var e=t.match(Fl);if(e){var n={tagName:e[1],attrs:[],start:c};i(e[0].length);for(var r,o;!(r=t.match(Bl))&&(o=t.match(Pl));)i(o[0].length),n.attrs.push(o);if(r)return n.unarySlash=r[1],i(r[0].length),n.end=c,n}}();if(b){!function(t){var i=t.tagName,r=t.unarySlash;s&&("p"===o&&Ll(i)&&n(o),u(i)&&o===i&&n(i));for(var c=l(i)||!!r,h=t.attrs.length,d=new Array(h),f=0;f<h;f++){var p=t.attrs[f];jl&&-1===p[0].indexOf('""')&&(""===p[3]&&delete p[3],""===p[4]&&delete p[4],""===p[5]&&delete p[5]);var g=p[3]||p[4]||p[5]||"",m="a"===i&&"href"===p[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;d[f]={name:p[1],value:Zn(g,m)}}c||(a.push({tag:i,lowerCasedTag:i.toLowerCase(),attrs:d}),o=i),e.start&&e.start(i,d,c,t.start,t.end)}(b),lu(o,t)&&i(1);continue}}var w=void 0,S=void 0,T=void 0;if(g>=0){for(S=t.slice(g);!(Hl.test(S)||Fl.test(S)||Wl.test(S)||$l.test(S)||(T=S.indexOf("<",1))<0);)g+=T,S=t.slice(g);w=t.substring(0,g),i(g)}g<0&&(w=t,t=""),e.chars&&w&&e.chars(w)}if(t===r){e.chars&&e.chars(t),!a.length&&e.warn&&e.warn('Mal-formatted tag at end of template: "'+t+'"');break}}n()}function Jn(t,e,i){return{type:1,tag:t,attrsList:e,attrsMap:vr(e),parent:i,children:[]}}function Qn(t,e){function i(t){c||(c=!0,Ul(t))}function n(t){t.pre&&(l=!1),Zl(t.tag)&&(u=!1);for(var i=0;i<Xl.length;i++)Xl[i](t,e)}Ul=e.warn||Ei,Zl=e.isPreTag||Ao,Kl=e.mustUseProp||Ao,Jl=e.getTagNamespace||Ao,ql=Oi(e.modules,"transformNode"),Yl=Oi(e.modules,"preTransformNode"),Xl=Oi(e.modules,"postTransformNode"),Gl=e.delimiters;var r,o,a=[],s=!1!==e.preserveWhitespace,l=!1,u=!1,c=!1;return Kn(t,{warn:Ul,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,start:function(t,s,c){function h(t){"slot"!==t.tag&&"template"!==t.tag||i("Cannot use <"+t.tag+"> as component root element because it may contain multiple nodes."),t.attrsMap.hasOwnProperty("v-for")&&i("Cannot use v-for on stateful component root element because it renders multiple elements.")}var d=o&&o.ns||Jl(t);Vo&&"svg"===d&&(s=_r(s));var f=Jn(t,s,o);d&&(f.ns=d),xr(f)&&!Ko()&&(f.forbidden=!0,Ul("Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <"+t+">, as they will not be parsed."));for(var p=0;p<Yl.length;p++)f=Yl[p](f,e)||f;if(l||(tr(f),f.pre&&(l=!0)),Zl(f.tag)&&(u=!0),l?er(f):f.processed||(or(f),sr(f),hr(f),ir(f,e)),r?a.length||(r.if&&(f.elseif||f.else)?(h(f),cr(r,{exp:f.elseif,block:f})):i("Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.")):(r=f,h(r)),o&&!f.forbidden)if(f.elseif||f.else)lr(f,o);else if(f.slotScope){o.plain=!1;var g=f.slotTarget||'"default"';(o.scopedSlots||(o.scopedSlots={}))[g]=f}else o.children.push(f),f.parent=o;c?n(f):(o=f,a.push(f))},end:function(){var t=a[a.length-1],e=t.children[t.children.length-1];e&&3===e.type&&" "===e.text&&!u&&t.children.pop(),a.length-=1,o=a[a.length-1],n(t)},chars:function(e){if(!o)return void(e===t?i("Component template requires a root element, rather than just text."):(e=e.trim())&&i('text "'+e+'" outside root element will be ignored.'));if(!Vo||"textarea"!==o.tag||o.attrsMap.placeholder!==e){var n=o.children;if(e=u||e.trim()?yr(o)?e:vu(e):s&&n.length?" ":""){var r;!l&&" "!==e&&(r=Un(e,Gl))?n.push({type:2,expression:r.expression,tokens:r.tokens,text:e}):" "===e&&n.length&&" "===n[n.length-1].text||n.push({type:3,text:e})}}},comment:function(t){o.children.push({type:3,text:t,isComment:!0})}}),r}function tr(t){null!=Bi(t,"v-pre")&&(t.pre=!0)}function er(t){var e=t.attrsList.length;if(e)for(var i=t.attrs=new Array(e),n=0;n<e;n++)i[n]={name:t.attrsList[n].name,value:JSON.stringify(t.attrsList[n].value)};else t.pre||(t.plain=!0)}function ir(t,e){nr(t),t.plain=!t.key&&!t.attrsList.length,rr(t),dr(t),fr(t);for(var i=0;i<ql.length;i++)t=ql[i](t,e)||t;pr(t)}function nr(t){var e=Fi(t,"key");e&&("template"===t.tag&&Ul("<template> cannot be keyed. Place the key on real elements instead."),t.key=e)}function rr(t){var e=Fi(t,"ref");e&&(t.ref=e,t.refInFor=gr(t))}function or(t){var e;if(e=Bi(t,"v-for")){var i=ar(e);i?x(t,i):Ul("Invalid v-for expression: "+e)}}function ar(t){var e=t.match(hu);if(e){var i={};i.for=e[2].trim();var n=e[1].trim().replace(fu,""),r=n.match(du);return r?(i.alias=n.replace(du,""),i.iterator1=r[1].trim(),r[2]&&(i.iterator2=r[2].trim())):i.alias=n,i}}function sr(t){var e=Bi(t,"v-if");if(e)t.if=e,cr(t,{exp:e,block:t});else{null!=Bi(t,"v-else")&&(t.else=!0);var i=Bi(t,"v-else-if");i&&(t.elseif=i)}}function lr(t,e){var i=ur(e.children);i&&i.if?cr(i,{exp:t.elseif,block:t}):Ul("v-"+(t.elseif?'else-if="'+t.elseif+'"':"else")+" used on element <"+t.tag+"> without corresponding v-if.")}function ur(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];" "!==t[e].text&&Ul('text "'+t[e].text.trim()+'" between v-if and v-else(-if) will be ignored.'),t.pop()}}function cr(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function hr(t){null!=Bi(t,"v-once")&&(t.once=!0)}function dr(t){if("slot"===t.tag)t.slotName=Fi(t,"name"),t.key&&Ul("`key` does not work on <slot> because slots are abstract outlets and can possibly expand into multiple elements. Use the key on a wrapping element instead.");else{var e;"template"===t.tag?(e=Bi(t,"scope"),e&&Ul('the "scope" attribute for scoped slots have been deprecated and replaced by "slot-scope" since 2.5. The new "slot-scope" attribute can also be used on plain elements in addition to <template> to denote scoped slots.',!0),t.slotScope=e||Bi(t,"slot-scope")):(e=Bi(t,"slot-scope"))&&(t.attrsMap["v-for"]&&Ul("Ambiguous combined usage of slot-scope and v-for on <"+t.tag+"> (v-for takes higher priority). Use a wrapper <template> for the scoped slot to make it clearer.",!0),t.slotScope=e);var i=Fi(t,"slot");i&&(t.slotTarget='""'===i?'"default"':i,"template"===t.tag||t.slotScope||Li(t,"slot",i))}}function fr(t){var e;(e=Fi(t,"is"))&&(t.component=e),null!=Bi(t,"inline-template")&&(t.inlineTemplate=!0)}function pr(t){var e,i,n,r,o,a,s,l=t.attrsList;for(e=0,i=l.length;e<i;e++)if(n=r=l[e].name,o=l[e].value,cu.test(n))if(t.hasBindings=!0,a=mr(n),a&&(n=n.replace(mu,"")),gu.test(n))n=n.replace(gu,""),o=Ai(o),s=!1,a&&(a.prop&&(s=!0,"innerHtml"===(n=To(n))&&(n="innerHTML")),a.camel&&(n=To(n)),a.sync&&zi(t,"update:"+To(n),Vi(o,"$event"))),s||!t.component&&Kl(t.tag,t.attrsMap.type,n)?Ni(t,n,o):Li(t,n,o);else if(uu.test(n))n=n.replace(uu,""),zi(t,n,o,a,!1,Ul);else{n=n.replace(cu,"");var u=n.match(pu),c=u&&u[1];c&&(n=n.slice(0,-(c.length+1))),Ri(t,n,r,o,c,a),"model"===n&&br(t,o)}else{var h=Un(o,Gl);h&&Ul(n+'="'+o+'": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div id="{{ val }}">, use <div :id="val">.'),Li(t,n,JSON.stringify(o)),!t.component&&"muted"===n&&Kl(t.tag,t.attrsMap.type,n)&&Ni(t,n,"true")}}function gr(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}function mr(t){var e=t.match(mu);if(e){var i={};return e.forEach(function(t){i[t.slice(1)]=!0}),i}}function vr(t){for(var e={},i=0,n=t.length;i<n;i++)!e[t[i].name]||Vo||$o||Ul("duplicate attribute: "+t[i].name),e[t[i].name]=t[i].value;return e}function yr(t){return"script"===t.tag||"style"===t.tag}function xr(t){return"style"===t.tag||"script"===t.tag&&(!t.attrsMap.type||"text/javascript"===t.attrsMap.type)}function _r(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];yu.test(n.name)||(n.name=n.name.replace(xu,""),e.push(n))}return e}function br(t,e){for(var i=t;i;)i.for&&i.alias===e&&Ul("<"+t.tag+' v-model="'+e+'">: You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an array of objects and use v-model on an object property instead.'),i=i.parent}function wr(t,e){if("input"===t.tag){var i=t.attrsMap;if(!i["v-model"])return;var n;if((i[":type"]||i["v-bind:type"])&&(n=Fi(t,"type")),i.type||n||!i["v-bind"]||(n="("+i["v-bind"]+").type"),n){var r=Bi(t,"v-if",!0),o=r?"&&("+r+")":"",a=null!=Bi(t,"v-else",!0),s=Bi(t,"v-else-if",!0),l=Sr(t);or(l),Pi(l,"type","checkbox"),ir(l,e),l.processed=!0,l.if="("+n+")==='checkbox'"+o,cr(l,{exp:l.if,block:l});var u=Sr(t);Bi(u,"v-for",!0),Pi(u,"type","radio"),ir(u,e),cr(l,{exp:"("+n+")==='radio'"+o,block:u});var c=Sr(t);return Bi(c,"v-for",!0),Pi(c,":type",n),ir(c,e),cr(l,{exp:r,block:c}),a?l.else=!0:s&&(l.elseif=s),l}}}function Sr(t){return Jn(t.tag,t.attrsList.slice(),t.parent)}function Tr(t,e){e.value&&Ni(t,"textContent","_s("+e.value+")")}function Cr(t,e){e.value&&Ni(t,"innerHTML","_s("+e.value+")")}function Mr(t,e){t&&(Ql=Tu(e.staticKeys||""),tu=e.isReservedTag||Ao,Ir(t),Ar(t,!1))}function Dr(t){return d("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(t?","+t:""))}function Ir(t){if(t.static=kr(t),1===t.type){if(!tu(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var e=0,i=t.children.length;e<i;e++){var n=t.children[e];Ir(n),n.static||(t.static=!1)}if(t.ifConditions)for(var r=1,o=t.ifConditions.length;r<o;r++){var a=t.ifConditions[r].block;Ir(a),a.static||(t.static=!1)}}}function Ar(t,e){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=e),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var i=0,n=t.children.length;i<n;i++)Ar(t.children[i],e||!!t.for);if(t.ifConditions)for(var r=1,o=t.ifConditions.length;r<o;r++)Ar(t.ifConditions[r].block,e)}}function kr(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t.if||t.for||_o(t.tag)||!tu(t.tag)||Er(t)||!Object.keys(t).every(Ql))))}function Er(t){for(;t.parent;){if(t=t.parent,"template"!==t.tag)return!1;if(t.for)return!0}return!1}function Or(t,e,i){var n=e?"nativeOn:{":"on:{";for(var r in t)n+='"'+r+'":'+Nr(r,t[r])+",";return n.slice(0,-1)+"}"}function Nr(t,e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return Nr(t,e)}).join(",")+"]";var i=Mu.test(e.value),n=Cu.test(e.value);if(e.modifiers){var r="",o="",a=[];for(var s in e.modifiers)if(ku[s])o+=ku[s],Du[s]&&a.push(s);else if("exact"===s){var l=e.modifiers;o+=Au(["ctrl","shift","alt","meta"].filter(function(t){return!l[t]}).map(function(t){return"$event."+t+"Key"}).join("||"))}else a.push(s);a.length&&(r+=Lr(a)),o&&(r+=o);return"function($event){"+r+(i?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":e.value)+"}"}return i||n?e.value:"function($event){"+e.value+"}"}function Lr(t){return"if(!('button' in $event)&&"+t.map(Pr).join("&&")+")return null;"}function Pr(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var i=Du[t],n=Iu[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(i)+",$event.key,"+JSON.stringify(n)+")"}function Rr(t,e){e.modifiers&&ta("v-on without argument does not support modifiers."),t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}}function zr(t,e){t.wrapData=function(i){return"_b("+i+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}}function Fr(t,e){var i=new Ou(e);return{render:"with(this){return "+(t?Br(t,i):'_c("div")')+"}",staticRenderFns:i.staticRenderFns}}function Br(t,e){if(t.staticRoot&&!t.staticProcessed)return Hr(t,e);if(t.once&&!t.onceProcessed)return Vr(t,e);if(t.for&&!t.forProcessed)return jr(t,e);if(t.if&&!t.ifProcessed)return Wr(t,e);if("template"!==t.tag||t.slotTarget){if("slot"===t.tag)return no(t,e);var i;if(t.component)i=ro(t.component,t,e);else{var n=t.plain?void 0:Ur(t,e),r=t.inlineTemplate?null:Kr(t,e,!0);i="_c('"+t.tag+"'"+(n?","+n:"")+(r?","+r:"")+")"}for(var o=0;o<e.transforms.length;o++)i=e.transforms[o](t,i);return i}return Kr(t,e)||"void 0"}function Hr(t,e){return t.staticProcessed=!0,e.staticRenderFns.push("with(this){return "+Br(t,e)+"}"),"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function Vr(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return Wr(t,e);if(t.staticInFor){for(var i="",n=t.parent;n;){if(n.for){i=n.key;break}n=n.parent}return i?"_o("+Br(t,e)+","+e.onceId+++","+i+")":(e.warn("v-once can only be used inside v-for that is keyed. "),Br(t,e))}return Hr(t,e)}function Wr(t,e,i,n){return t.ifProcessed=!0,$r(t.ifConditions.slice(),e,i,n)}function $r(t,e,i,n){function r(t){return i?i(t,e):t.once?Vr(t,e):Br(t,e)}if(!t.length)return n||"_e()";var o=t.shift();return o.exp?"("+o.exp+")?"+r(o.block)+":"+$r(t,e,i,n):""+r(o.block)}function jr(t,e,i,n){var r=t.for,o=t.alias,a=t.iterator1?","+t.iterator1:"",s=t.iterator2?","+t.iterator2:"";return e.maybeComponent(t)&&"slot"!==t.tag&&"template"!==t.tag&&!t.key&&e.warn("<"+t.tag+' v-for="'+o+" in "+r+'">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.',!0),t.forProcessed=!0,(n||"_l")+"(("+r+"),function("+o+a+s+"){return "+(i||Br)(t,e)+"})"}function Ur(t,e){var i="{",n=Gr(t,e);n&&(i+=n+","),t.key&&(i+="key:"+t.key+","),t.ref&&(i+="ref:"+t.ref+","),t.refInFor&&(i+="refInFor:true,"),t.pre&&(i+="pre:true,"),t.component&&(i+='tag:"'+t.tag+'",');for(var r=0;r<e.dataGenFns.length;r++)i+=e.dataGenFns[r](t);if(t.attrs&&(i+="attrs:{"+oo(t.attrs)+"},"),t.props&&(i+="domProps:{"+oo(t.props)+"},"),t.events&&(i+=Or(t.events,!1,e.warn)+","),t.nativeEvents&&(i+=Or(t.nativeEvents,!0,e.warn)+","),t.slotTarget&&!t.slotScope&&(i+="slot:"+t.slotTarget+","),t.scopedSlots&&(i+=Yr(t.scopedSlots,e)+","),t.model&&(i+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=qr(t,e);o&&(i+=o+",")}return i=i.replace(/,$/,"")+"}",t.wrapData&&(i=t.wrapData(i)),t.wrapListeners&&(i=t.wrapListeners(i)),i}function Gr(t,e){var i=t.directives;if(i){var n,r,o,a,s="directives:[",l=!1;for(n=0,r=i.length;n<r;n++){o=i[n],a=!0;var u=e.directives[o.name];u&&(a=!!u(t,o,e.warn)),a&&(l=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?',arg:"'+o.arg+'"':"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return l?s.slice(0,-1)+"]":void 0}}function qr(t,e){var i=t.children[0];if(1===t.children.length&&1===i.type||e.warn("Inline-template components must have exactly one child element."),1===i.type){var n=Fr(i,e.options);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}function Yr(t,e){return"scopedSlots:_u(["+Object.keys(t).map(function(i){return Xr(i,t[i],e)}).join(",")+"])"}function Xr(t,e,i){return e.for&&!e.forProcessed?Zr(t,e,i):"{key:"+t+",fn:function("+String(e.slotScope)+"){return "+("template"===e.tag?e.if?e.if+"?"+(Kr(e,i)||"undefined")+":undefined":Kr(e,i)||"undefined":Br(e,i))+"}}"}function Zr(t,e,i){var n=e.for,r=e.alias,o=e.iterator1?","+e.iterator1:"",a=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,"_l(("+n+"),function("+r+o+a+"){return "+Xr(t,e,i)+"})"}function Kr(t,e,i,n,r){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag)return(n||Br)(a,e);var s=i?Jr(o,e.maybeComponent):0,l=r||to;return"["+o.map(function(t){return l(t,e)}).join(",")+"]"+(s?","+s:"")}}function Jr(t,e){for(var i=0,n=0;n<t.length;n++){var r=t[n];if(1===r.type){if(Qr(r)||r.ifConditions&&r.ifConditions.some(function(t){return Qr(t.block)})){i=2;break}(e(r)||r.ifConditions&&r.ifConditions.some(function(t){return e(t.block)}))&&(i=1)}}return i}function Qr(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function to(t,e){return 1===t.type?Br(t,e):3===t.type&&t.isComment?io(t):eo(t)}function eo(t){return"_v("+(2===t.type?t.expression:ao(JSON.stringify(t.text)))+")"}function io(t){return"_e("+JSON.stringify(t.text)+")"}function no(t,e){var i=t.slotName||'"default"',n=Kr(t,e),r="_t("+i+(n?","+n:""),o=t.attrs&&"{"+t.attrs.map(function(t){return To(t.name)+":"+t.value}).join(",")+"}",a=t.attrsMap["v-bind"];return!o&&!a||n||(r+=",null"),o&&(r+=","+o),a&&(r+=(o?"":",null")+","+a),r+")"}function ro(t,e,i){var n=e.inlineTemplate?null:Kr(e,i,!0);return"_c("+t+","+Ur(e,i)+(n?","+n:"")+")"}function oo(t){for(var e="",i=0;i<t.length;i++){var n=t[i];e+='"'+n.name+'":'+ao(n.value)+","}return e.slice(0,-1)}function ao(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function so(t){var e=[];return t&&lo(t,e),e}function lo(t,e){if(1===t.type){for(var i in t.attrsMap)if(cu.test(i)){var n=t.attrsMap[i];n&&("v-for"===i?co(t,'v-for="'+n+'"',e):uu.test(i)?uo(n,i+'="'+n+'"',e):fo(n,i+'="'+n+'"',e))}if(t.children)for(var r=0;r<t.children.length;r++)lo(t.children[r],e)}else 2===t.type&&fo(t.expression,t.text,e)}function uo(t,e,i){var n=t.replace(Pu,""),r=n.match(Lu);r&&"$"!==n.charAt(r.index-1)&&i.push('avoid using JavaScript unary operator as property name: "'+r[0]+'" in expression '+e.trim()),fo(t,e,i)}function co(t,e,i){fo(t.for||"",e,i),ho(t.alias,"v-for alias",e,i),ho(t.iterator1,"v-for iterator",e,i),ho(t.iterator2,"v-for iterator",e,i)}function ho(t,e,i,n){if("string"==typeof t)try{new Function("var "+t+"=_")}catch(r){n.push("invalid "+e+' "'+t+'" in expression: '+i.trim())}}function fo(t,e,i){try{new Function("return "+t)}catch(r){var n=t.replace(Pu,"").match(Nu);n?i.push('avoid using JavaScript keyword as property name: "'+n[0]+'"\n Raw expression: '+e.trim()):i.push("invalid expression: "+r.message+" in\n\n "+t+"\n\n Raw expression: "+e.trim()+"\n")}}function po(t,e){try{return new Function(t)}catch(i){return e.push({err:i,code:t}),b}}function go(t){var e=Object.create(null);return function(i,n,r){n=x({},n);var o=n.warn||ta;delete n.warn;try{new Function("return 1")}catch(t){t.toString().match(/unsafe-eval|CSP/)&&o("It seems you are using the standalone build of Vue.js in an environment with Content Security Policy that prohibits unsafe-eval. The template compiler cannot work in this environment. Consider relaxing the policy to allow unsafe-eval or pre-compiling your templates into render functions.")}var a=n.delimiters?String(n.delimiters)+i:i;if(e[a])return e[a];var s=t(i,n);s.errors&&s.errors.length&&o("Error compiling template:\n\n"+i+"\n\n"+s.errors.map(function(t){return"- "+t}).join("\n")+"\n",r),s.tips&&s.tips.length&&s.tips.forEach(function(t){return ea(t,r)});var l={},u=[];return l.render=po(s.render,u),l.staticRenderFns=s.staticRenderFns.map(function(t){return po(t,u)}),s.errors&&s.errors.length||!u.length||o("Failed to generate render function:\n\n"+u.map(function(t){var e=t.err,i=t.code;return e.toString()+" in\n\n"+i+"\n"}).join("\n"),r),e[a]=l}}function mo(t){return eu=eu||document.createElement("div"),eu.innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',eu.innerHTML.indexOf("&#10;")>0}function vo(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}var yo=Object.freeze({}),xo=Object.prototype.toString,_o=d("slot,component",!0),bo=d("key,ref,slot,slot-scope,is"),wo=Object.prototype.hasOwnProperty,So=/-(\w)/g,To=g(function(t){return t.replace(So,function(t,e){return e?e.toUpperCase():""})}),Co=g(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),Mo=/\B([A-Z])/g,Do=g(function(t){return t.replace(Mo,"-$1").toLowerCase()}),Io=Function.prototype.bind?v:m,Ao=function(t,e,i){return!1},ko=function(t){return t},Eo="data-server-rendered",Oo=["component","directive","filter"],No=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],Lo={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!0,devtools:!0,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Ao,isReservedAttr:Ao,isUnknownElement:Ao,getTagNamespace:b,parsePlatformTagName:ko,mustUseProp:Ao,_lifecycleHooks:No},Po=/[^\w.$]/,Ro="__proto__"in{},zo="undefined"!=typeof window,Fo="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,Bo=Fo&&WXEnvironment.platform.toLowerCase(),Ho=zo&&window.navigator.userAgent.toLowerCase(),Vo=Ho&&/msie|trident/.test(Ho),Wo=Ho&&Ho.indexOf("msie 9.0")>0,$o=Ho&&Ho.indexOf("edge/")>0,jo=(Ho&&Ho.indexOf("android"),Ho&&/iphone|ipad|ipod|ios/.test(Ho)||"ios"===Bo),Uo=Ho&&/chrome\/\d+/.test(Ho)&&!$o,Go={}.watch,qo=!1;if(zo)try{var Yo={};Object.defineProperty(Yo,"passive",{get:function(){qo=!0}}),window.addEventListener("test-passive",null,Yo)}catch(t){}var Xo,Zo,Ko=function(){return void 0===Xo&&(Xo=!zo&&!Fo&&"undefined"!=typeof global&&"server"===global.process.env.VUE_ENV),Xo},Jo=zo&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Qo="undefined"!=typeof Symbol&&I(Symbol)&&"undefined"!=typeof Reflect&&I(Reflect.ownKeys);Zo="undefined"!=typeof Set&&I(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ta=b,ea=b,ia=b,na=b,ra="undefined"!=typeof console,oa=/(?:^|[-_])(\w)/g,aa=function(t){return t.replace(oa,function(t){return t.toUpperCase()}).replace(/[-_]/g,"")};ta=function(t,e){var i=e?ia(e):"";Lo.warnHandler?Lo.warnHandler.call(null,t,e,i):ra&&!Lo.silent&&console.error("[Vue warn]: "+t+i)},ea=function(t,e){ra&&!Lo.silent&&console.warn("[Vue tip]: "+t+(e?ia(e):""))},na=function(t,e){if(t.$root===t)return"<Root>";var i="function"==typeof t&&null!=t.cid?t.options:t._isVue?t.$options||t.constructor.options:t||{},n=i.name||i._componentTag,r=i.__file;if(!n&&r){var o=r.match(/([^\/\\]+)\.vue$/);n=o&&o[1]}return(n?"<"+aa(n)+">":"<Anonymous>")+(r&&!1!==e?" at "+r:"")};var sa=function(t,e){for(var i="";e;)e%2==1&&(i+=t),e>1&&(t+=t),e>>=1;return i};ia=function(t){if(t._isVue&&t.$parent){for(var e=[],i=0;t;){if(e.length>0){var n=e[e.length-1];if(n.constructor===t.constructor){i++,t=t.$parent;continue}i>0&&(e[e.length-1]=[n,i],i=0)}e.push(t),t=t.$parent}return"\n\nfound in\n\n"+e.map(function(t,e){return""+(0===e?"---\x3e ":sa(" ",5+2*e))+(Array.isArray(t)?na(t[0])+"... ("+t[1]+" recursive calls)":na(t))}).join("\n")}return"\n\n(found in "+na(t)+")"};var la=0,ua=function(){this.id=la++,this.subs=[]};ua.prototype.addSub=function(t){this.subs.push(t)},ua.prototype.removeSub=function(t){f(this.subs,t)},ua.prototype.depend=function(){ua.target&&ua.target.addDep(this)},ua.prototype.notify=function(){for(var t=this.subs.slice(),e=0,i=t.length;e<i;e++)t[e].update()},ua.target=null;var ca=[],ha=function(t,e,i,n,r,o,a,s){this.tag=t,this.data=e,this.children=i,this.text=n,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},da={child:{configurable:!0}};da.child.get=function(){return this.componentInstance},Object.defineProperties(ha.prototype,da);var fa=function(t){void 0===t&&(t="");var e=new ha;return e.text=t,e.isComment=!0,e},pa=Array.prototype,ga=Object.create(pa);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=pa[t];M(ga,t,function(){for(var i=[],n=arguments.length;n--;)i[n]=arguments[n];var r,o=e.apply(this,i),a=this.__ob__;switch(t){case"push":case"unshift":r=i;break;case"splice":r=i.slice(2)}return r&&a.observeArray(r),a.dep.notify(),o})});var ma=Object.getOwnPropertyNames(ga),va=!0,ya=function(t){if(this.value=t,this.dep=new ua,this.vmCount=0,M(t,"__ob__",this),Array.isArray(t)){(Ro?L:P)(t,ga,ma),this.observeArray(t)}else this.walk(t)};ya.prototype.walk=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)z(t,e[i])},ya.prototype.observeArray=function(t){for(var e=0,i=t.length;e<i;e++)R(t[e])};var xa=Lo.optionMergeStrategies;xa.el=xa.propsData=function(t,e,i,n){return i||ta('option "'+n+'" can only be used during instance creation with the `new` keyword.'),wa(t,e)},xa.data=function(t,e,i){return i?W(t,e,i):e&&"function"!=typeof e?(ta('The "data" option should be a function that returns a per-instance value in component definitions.',i),t):W(t,e)},No.forEach(function(t){xa[t]=$}),Oo.forEach(function(t){xa[t+"s"]=j}),xa.watch=function(t,e,i,n){if(t===Go&&(t=void 0),e===Go&&(e=void 0),!e)return Object.create(t||null);if(Z(n,e,i),!t)return e;var r={};x(r,t);for(var o in e){var a=r[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),r[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return r},xa.props=xa.methods=xa.inject=xa.computed=function(t,e,i,n){if(e&&Z(n,e,i),!t)return e;var r=Object.create(null);return x(r,t),e&&x(r,e),r},xa.provide=W;var _a,ba,wa=function(t,e){return void 0===e?t:e},Sa=/^(String|Number|Boolean|Function|Symbol)$/,Ta=[],Ca=!1,Ma=!1;if("undefined"!=typeof setImmediate&&I(setImmediate))ba=function(){setImmediate(ut)};else if("undefined"==typeof MessageChannel||!I(MessageChannel)&&"[object MessageChannelConstructor]"!==MessageChannel.toString())ba=function(){setTimeout(ut,0)};else{var Da=new MessageChannel,Ia=Da.port2;Da.port1.onmessage=ut,ba=function(){Ia.postMessage(1)}}if("undefined"!=typeof Promise&&I(Promise)){var Aa=Promise.resolve();_a=function(){Aa.then(ut),jo&&setTimeout(b)}}else _a=ba;var ka,Ea,Oa=zo&&window.performance;Oa&&Oa.mark&&Oa.measure&&Oa.clearMarks&&Oa.clearMeasures&&(ka=function(t){return Oa.mark(t)},Ea=function(t,e,i){Oa.measure(t,e,i),Oa.clearMarks(e),Oa.clearMarks(i),Oa.clearMeasures(t)});var Na,La=d("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require"),Pa=function(t,e){ta('Property or method "'+e+'" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',t)},Ra="undefined"!=typeof Proxy&&I(Proxy);if(Ra){var za=d("stop,prevent,self,ctrl,shift,alt,meta,exact");Lo.keyCodes=new Proxy(Lo.keyCodes,{set:function(t,e,i){return za(e)?(ta("Avoid overwriting built-in modifier in config.keyCodes: ."+e),!1):(t[e]=i,!0)}})}var Fa={has:function(t,e){var i=e in t,n=La(e)||"_"===e.charAt(0);return i||n||Pa(t,e),i||!n}},Ba={get:function(t,e){return"string"!=typeof e||e in t||Pa(t,e),t[e]}};Na=function(t){if(Ra){var e=t.$options,i=e.render&&e.render._withStripped?Ba:Fa;t._renderProxy=new Proxy(t,i)}else t._renderProxy=t};var Ha,Va=new Zo,Wa=g(function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var i="~"===t.charAt(0);t=i?t.slice(1):t;var n="!"===t.charAt(0);return t=n?t.slice(1):t,{name:t,once:i,capture:n,passive:e}}),$a=null,ja=!1,Ua=100,Ga=[],qa=[],Ya={},Xa={},Za=!1,Ka=!1,Ja=0,Qa=0,ts=function(t,e,i,n,r){this.vm=t,r&&(t._watcher=this),t._watchers.push(this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=i,this.id=++Qa,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Zo,this.newDepIds=new Zo,this.expression=e.toString(),"function"==typeof e?this.getter=e:(this.getter=D(e),this.getter||(this.getter=function(){},ta('Failed watching path: "'+e+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',t))),this.value=this.lazy?void 0:this.get()};ts.prototype.get=function(){A(this);var t,e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;at(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&dt(t),k(),this.cleanupDeps()}return t},ts.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},ts.prototype.cleanupDeps=function(){for(var t=this,e=this.deps.length;e--;){var i=t.deps[e];t.newDepIds.has(i.id)||i.removeSub(t)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ts.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():qt(this)},ts.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||o(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){at(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},ts.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ts.prototype.depend=function(){for(var t=this,e=this.deps.length;e--;)t.deps[e].depend()},ts.prototype.teardown=function(){var t=this;if(this.active){this.vm._isBeingDestroyed||f(this.vm._watchers,this);for(var e=this.deps.length;e--;)t.deps[e].removeSub(t);this.active=!1}};var es={enumerable:!0,configurable:!0,get:b,set:b},is={lazy:!0};xe(_e.prototype);var ns={init:function(t,e,i,n){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var r=t;ns.prepatch(r,r)}else{(t.componentInstance=Ce(t,$a,i,n)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var i=e.componentOptions;zt(e.componentInstance=t.componentInstance,i.propsData,i.listeners,e,i.children)},insert:function(t){var e=t.context,i=t.componentInstance;i._isMounted||(i._isMounted=!0,Vt(i,"mounted")),t.data.keepAlive&&(e._isMounted?Ut(i):Bt(i,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Ht(e,!0):e.$destroy())}},rs=Object.keys(ns),os=1,as=2,ss=0;!function(t){t.prototype._init=function(t){var e=this;e._uid=ss++;var i,n;Lo.performance&&ka&&(i="vue-perf-start:"+e._uid,n="vue-perf-end:"+e._uid,ka(i)),e._isVue=!0,t&&t._isComponent?Ne(e,t):e.$options=K(Le(e.constructor),t||{},e),Na(e),e._self=e,Pt(e),It(e),Oe(e),Vt(e,"beforeCreate"),ae(e), Xt(e),oe(e),Vt(e,"created"),Lo.performance&&ka&&(e._name=na(e,!1),ka(n),Ea("vue "+e._name+" init",i,n)),e.$options.el&&e.$mount(e.$options.el)}}(ze),function(t){var e={};e.get=function(){return this._data};var i={};i.get=function(){return this._props},e.set=function(t){ta("Avoid replacing instance root $data. Use nested data properties instead.",this)},i.set=function(){ta("$props is readonly.",this)},Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",i),t.prototype.$set=F,t.prototype.$delete=B,t.prototype.$watch=function(t,e,i){var n=this;if(s(e))return re(n,t,e,i);i=i||{},i.user=!0;var r=new ts(n,t,e,i);return i.immediate&&e.call(n,r.value),function(){r.teardown()}}}(ze),function(t){var e=/^hook:/;t.prototype.$on=function(t,i){var n=this,r=this;if(Array.isArray(t))for(var o=0,a=t.length;o<a;o++)n.$on(t[o],i);else(r._events[t]||(r._events[t]=[])).push(i),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){function i(){n.$off(t,i),e.apply(n,arguments)}var n=this;return i.fn=e,n.$on(t,i),n},t.prototype.$off=function(t,e){var i=this,n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,o=t.length;r<o;r++)i.$off(t[r],e);return n}var a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;if(e)for(var s,l=a.length;l--;)if((s=a[l])===e||s.fn===e){a.splice(l,1);break}return n},t.prototype.$emit=function(t){var e=this,i=t.toLowerCase();i!==t&&e._events[i]&&ea('Event "'+i+'" is emitted in component '+na(e)+' but the handler is registered for "'+t+'". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "'+Do(t)+'" instead of "'+t+'".');var n=e._events[t];if(n){n=n.length>1?y(n):n;for(var r=y(arguments,1),o=0,a=n.length;o<a;o++)try{n[o].apply(e,r)}catch(i){at(i,e,'event handler for "'+t+'"')}}return e}}(ze),function(t){t.prototype._update=function(t,e){var i=this;i._isMounted&&Vt(i,"beforeUpdate");var n=i.$el,r=i._vnode,o=$a;$a=i,i._vnode=t,r?i.$el=i.__patch__(r,t):(i.$el=i.__patch__(i.$el,t,e,!1,i.$options._parentElm,i.$options._refElm),i.$options._parentElm=i.$options._refElm=null),$a=o,n&&(n.__vue__=null),i.$el&&(i.$el.__vue__=i),i.$vnode&&i.$parent&&i.$vnode===i.$parent._vnode&&(i.$parent.$el=i.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Vt(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||f(e.$children,t),t._watcher&&t._watcher.teardown();for(var i=t._watchers.length;i--;)t._watchers[i].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Vt(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(ze),function(t){xe(t.prototype),t.prototype.$nextTick=function(t){return ht(t,this)},t.prototype._render=function(){var t=this,e=t.$options,i=e.render,n=e._parentVnode;for(var r in t.$slots)t.$slots[r]._rendered=!1;n&&(t.$scopedSlots=n.data.scopedSlots||yo),t.$vnode=n;var o;try{o=i.call(t._renderProxy,t.$createElement)}catch(e){if(at(e,t,"render"),t.$options.renderError)try{o=t.$options.renderError.call(t._renderProxy,t.$createElement,e)}catch(e){at(e,t,"renderError"),o=t._vnode}else o=t._vnode}return o instanceof ha||(Array.isArray(o)&&ta("Multiple root nodes returned from render function. Render function should return a single root node.",t),o=fa()),o.parent=n,o}}(ze);var ls=[String,RegExp,Array],us={name:"keep-alive",abstract:!0,props:{include:ls,exclude:ls,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){var t=this;for(var e in t.cache)qe(t.cache,e,t.keys)},mounted:function(){var t=this;this.$watch("include",function(e){Ge(t,function(t){return Ue(e,t)})}),this.$watch("exclude",function(e){Ge(t,function(t){return!Ue(e,t)})})},render:function(){var t=this.$slots.default,e=Dt(t),i=e&&e.componentOptions;if(i){var n=je(i),r=this,o=r.include,a=r.exclude;if(o&&(!n||!Ue(o,n))||a&&n&&Ue(a,n))return e;var s=this,l=s.cache,u=s.keys,c=null==e.key?i.Ctor.cid+(i.tag?"::"+i.tag:""):e.key;l[c]?(e.componentInstance=l[c].componentInstance,f(u,c),u.push(c)):(l[c]=e,u.push(c),this.max&&u.length>parseInt(this.max)&&qe(l,u[0],u,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},cs={KeepAlive:us};!function(t){var e={};e.get=function(){return Lo},e.set=function(){ta("Do not replace the Vue.config object, set individual fields instead.")},Object.defineProperty(t,"config",e),t.util={warn:ta,extend:x,mergeOptions:K,defineReactive:z},t.set=F,t.delete=B,t.nextTick=ht,t.options=Object.create(null),Oo.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,x(t.options.components,cs),Fe(t),Be(t),He(t),$e(t)}(ze),Object.defineProperty(ze.prototype,"$isServer",{get:Ko}),Object.defineProperty(ze.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(ze,"FunctionalRenderContext",{value:_e}),ze.version="2.5.17";var hs,ds,fs,ps,gs,ms,vs,ys,xs,_s=d("style,class"),bs=d("input,textarea,option,select,progress"),ws=function(t,e,i){return"value"===i&&bs(t)&&"button"!==e||"selected"===i&&"option"===t||"checked"===i&&"input"===t||"muted"===i&&"video"===t},Ss=d("contenteditable,draggable,spellcheck"),Ts=d("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Cs="http://www.w3.org/1999/xlink",Ms=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Ds=function(t){return Ms(t)?t.slice(6,t.length):""},Is=function(t){return null==t||!1===t},As={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ks=d("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Es=d("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Os=function(t){return"pre"===t},Ns=function(t){return ks(t)||Es(t)},Ls=Object.create(null),Ps=d("text,number,password,search,email,tel,url"),Rs=Object.freeze({createElement:ri,createElementNS:oi,createTextNode:ai,createComment:si,insertBefore:li,removeChild:ui,appendChild:ci,parentNode:hi,nextSibling:di,tagName:fi,setTextContent:pi,setStyleScope:gi}),zs={create:function(t,e){mi(e)},update:function(t,e){t.data.ref!==e.data.ref&&(mi(t,!0),mi(e))},destroy:function(t){mi(t,!0)}},Fs=new ha("",{},[]),Bs=["create","activate","update","remove","destroy"],Hs={create:_i,update:_i,destroy:function(t){_i(t,Fs)}},Vs=Object.create(null),Ws=[zs,Hs],$s={create:Ci,update:Ci},js={create:Ii,update:Ii},Us=/[\w).+\-_$\]]/,Gs="__r",qs="__c",Ys={create:rn,update:rn},Xs={create:on,update:on},Zs=g(function(t){var e={},i=/;(?![^(]*\))/g,n=/:(.+)/;return t.split(i).forEach(function(t){if(t){var i=t.split(n);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}),Ks=/^--/,Js=/\s*!important$/,Qs=function(t,e,i){if(Ks.test(e))t.style.setProperty(e,i);else if(Js.test(i))t.style.setProperty(e,i.replace(Js,""),"important");else{var n=el(e);if(Array.isArray(i))for(var r=0,o=i.length;r<o;r++)t.style[n]=i[r];else t.style[n]=i}},tl=["Webkit","Moz","ms"],el=g(function(t){if(xs=xs||document.createElement("div").style,"filter"!==(t=To(t))&&t in xs)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<tl.length;i++){var n=tl[i]+e;if(n in xs)return n}}),il={create:dn,update:dn},nl=g(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),rl=zo&&!Wo,ol="transition",al="animation",sl="transition",ll="transitionend",ul="animation",cl="animationend";rl&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(sl="WebkitTransition",ll="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ul="WebkitAnimation",cl="webkitAnimationEnd"));var hl=zo?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()},dl=/\b(transform|all)(,|$)/,fl=zo?{create:In,activate:In,remove:function(t,e){!0!==t.data.show?Tn(t,e):e()}}:{},pl=[$s,js,Ys,Xs,il,fl],gl=pl.concat(Ws),ml=function(n){function o(t){return new ha(R.tagName(t).toLowerCase(),{},[],void 0,t)}function a(t,e){function i(){0==--i.listeners&&s(t)}return i.listeners=e,i}function s(t){var i=R.parentNode(t);e(i)&&R.removeChild(i,t)}function u(t,e){return!e&&!t.ns&&!(Lo.ignoredElements.length&&Lo.ignoredElements.some(function(e){return l(e)?e.test(t.tag):e===t.tag}))&&Lo.isUnknownElement(t.tag)}function c(t,n,r,o,a,s,l){if(e(t.elm)&&e(s)&&(t=s[l]=O(t)),t.isRootInsert=!a,!h(t,n,r,o)){var c=t.data,d=t.children,f=t.tag;e(f)?(c&&c.pre&&z++,u(t,z)&&ta("Unknown custom element: <"+f+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',t.context),t.elm=t.ns?R.createElementNS(t.ns,f):R.createElement(f,t),x(t),m(t,d,n),e(c)&&y(t,n),g(r,t.elm,o),c&&c.pre&&z--):i(t.isComment)?(t.elm=R.createComment(t.text),g(r,t.elm,o)):(t.elm=R.createTextNode(t.text),g(r,t.elm,o))}}function h(t,n,r,o){var a=t.data;if(e(a)){var s=e(t.componentInstance)&&a.keepAlive;if(e(a=a.hook)&&e(a=a.init)&&a(t,!1,r,o),e(t.componentInstance))return f(t,n),i(s)&&p(t,n,r,o),!0}}function f(t,i){e(t.data.pendingInsert)&&(i.push.apply(i,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,v(t)?(y(t,i),x(t)):(mi(t),i.push(t))}function p(t,i,n,r){for(var o,a=t;a.componentInstance;)if(a=a.componentInstance._vnode,e(o=a.data)&&e(o=o.transition)){for(o=0;o<L.activate.length;++o)L.activate[o](Fs,a);i.push(a);break}g(n,t.elm,r)}function g(t,i,n){e(t)&&(e(n)?n.parentNode===t&&R.insertBefore(t,i,n):R.appendChild(t,i))}function m(t,e,i){if(Array.isArray(e)){C(e);for(var n=0;n<e.length;++n)c(e[n],i,t.elm,null,!0,e,n)}else r(t.text)&&R.appendChild(t.elm,R.createTextNode(String(t.text)))}function v(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return e(t.tag)}function y(t,i){for(var n=0;n<L.create.length;++n)L.create[n](Fs,t);E=t.data.hook,e(E)&&(e(E.create)&&E.create(Fs,t),e(E.insert)&&i.push(t))}function x(t){var i;if(e(i=t.fnScopeId))R.setStyleScope(t.elm,i);else for(var n=t;n;)e(i=n.context)&&e(i=i.$options._scopeId)&&R.setStyleScope(t.elm,i),n=n.parent;e(i=$a)&&i!==t.context&&i!==t.fnContext&&e(i=i.$options._scopeId)&&R.setStyleScope(t.elm,i)}function _(t,e,i,n,r,o){for(;n<=r;++n)c(i[n],o,t,e,!1,i,n)}function b(t){var i,n,r=t.data;if(e(r))for(e(i=r.hook)&&e(i=i.destroy)&&i(t),i=0;i<L.destroy.length;++i)L.destroy[i](t);if(e(i=t.children))for(n=0;n<t.children.length;++n)b(t.children[n])}function w(t,i,n,r){for(;n<=r;++n){var o=i[n];e(o)&&(e(o.tag)?(S(o),b(o)):s(o.elm))}}function S(t,i){if(e(i)||e(t.data)){var n,r=L.remove.length+1;for(e(i)?i.listeners+=r:i=a(t.elm,r),e(n=t.componentInstance)&&e(n=n._vnode)&&e(n.data)&&S(n,i),n=0;n<L.remove.length;++n)L.remove[n](t,i);e(n=t.data.hook)&&e(n=n.remove)?n(t,i):i()}else s(t.elm)}function T(i,n,r,o,a){var s,l,u,h,d=0,f=0,p=n.length-1,g=n[0],m=n[p],v=r.length-1,y=r[0],x=r[v],b=!a;for(C(r);d<=p&&f<=v;)t(g)?g=n[++d]:t(m)?m=n[--p]:vi(g,y)?(D(g,y,o),g=n[++d],y=r[++f]):vi(m,x)?(D(m,x,o),m=n[--p],x=r[--v]):vi(g,x)?(D(g,x,o),b&&R.insertBefore(i,g.elm,R.nextSibling(m.elm)),g=n[++d],x=r[--v]):vi(m,y)?(D(m,y,o),b&&R.insertBefore(i,m.elm,g.elm),m=n[--p],y=r[++f]):(t(s)&&(s=xi(n,d,p)),l=e(y.key)?s[y.key]:M(y,n,d,p),t(l)?c(y,o,i,g.elm,!1,r,f):(u=n[l],vi(u,y)?(D(u,y,o),n[l]=void 0,b&&R.insertBefore(i,u.elm,g.elm)):c(y,o,i,g.elm,!1,r,f)),y=r[++f]);d>p?(h=t(r[v+1])?null:r[v+1].elm,_(i,h,r,f,v,o)):f>v&&w(i,n,d,p)}function C(t){for(var i={},n=0;n<t.length;n++){var r=t[n],o=r.key;e(o)&&(i[o]?ta("Duplicate keys detected: '"+o+"'. This may cause an update error.",r.context):i[o]=!0)}}function M(t,i,n,r){for(var o=n;o<r;o++){var a=i[o];if(e(a)&&vi(t,a))return o}}function D(n,r,o,a){if(n!==r){var s=r.elm=n.elm;if(i(n.isAsyncPlaceholder))return void(e(r.asyncFactory.resolved)?A(n.elm,r,o):r.isAsyncPlaceholder=!0);if(i(r.isStatic)&&i(n.isStatic)&&r.key===n.key&&(i(r.isCloned)||i(r.isOnce)))return void(r.componentInstance=n.componentInstance);var l,u=r.data;e(u)&&e(l=u.hook)&&e(l=l.prepatch)&&l(n,r);var c=n.children,h=r.children;if(e(u)&&v(r)){for(l=0;l<L.update.length;++l)L.update[l](n,r);e(l=u.hook)&&e(l=l.update)&&l(n,r)}t(r.text)?e(c)&&e(h)?c!==h&&T(s,c,h,o,a):e(h)?(e(n.text)&&R.setTextContent(s,""),_(s,null,h,0,h.length-1,o)):e(c)?w(s,c,0,c.length-1):e(n.text)&&R.setTextContent(s,""):n.text!==r.text&&R.setTextContent(s,r.text),e(u)&&e(l=u.hook)&&e(l=l.postpatch)&&l(n,r)}}function I(t,n,r){if(i(r)&&e(t.parent))t.parent.data.pendingInsert=n;else for(var o=0;o<n.length;++o)n[o].data.hook.insert(n[o])}function A(t,n,r,o){var a,s=n.tag,l=n.data,u=n.children;if(o=o||l&&l.pre,n.elm=t,i(n.isComment)&&e(n.asyncFactory))return n.isAsyncPlaceholder=!0,!0;if(!k(t,n,o))return!1;if(e(l)&&(e(a=l.hook)&&e(a=a.init)&&a(n,!0),e(a=n.componentInstance)))return f(n,r),!0;if(e(s)){if(e(u))if(t.hasChildNodes())if(e(a=l)&&e(a=a.domProps)&&e(a=a.innerHTML)){if(a!==t.innerHTML)return"undefined"==typeof console||F||(F=!0,console.warn("Parent: ",t),console.warn("server innerHTML: ",a),console.warn("client innerHTML: ",t.innerHTML)),!1}else{for(var c=!0,h=t.firstChild,d=0;d<u.length;d++){if(!h||!A(h,u[d],r,o)){c=!1;break}h=h.nextSibling}if(!c||h)return"undefined"==typeof console||F||(F=!0,console.warn("Parent: ",t),console.warn("Mismatching childNodes vs. VNodes: ",t.childNodes,u)),!1}else m(n,u,r);if(e(l)){var p=!1;for(var g in l)if(!B(g)){p=!0,y(n,r);break}!p&&l.class&&dt(l.class)}}else t.data!==n.text&&(t.data=n.text);return!0}function k(t,i,n){return e(i.tag)?0===i.tag.indexOf("vue-component")||!u(i,n)&&i.tag.toLowerCase()===(t.tagName&&t.tagName.toLowerCase()):t.nodeType===(i.isComment?8:3)}var E,N,L={},P=n.modules,R=n.nodeOps;for(E=0;E<Bs.length;++E)for(L[Bs[E]]=[],N=0;N<P.length;++N)e(P[N][Bs[E]])&&L[Bs[E]].push(P[N][Bs[E]]);var z=0,F=!1,B=d("attrs,class,staticClass,staticStyle,key");return function(n,r,a,s,l,u){if(t(r))return void(e(n)&&b(n));var h=!1,d=[];if(t(n))h=!0,c(r,d,l,u);else{var f=e(n.nodeType);if(!f&&vi(n,r))D(n,r,d,s);else{if(f){if(1===n.nodeType&&n.hasAttribute(Eo)&&(n.removeAttribute(Eo),a=!0),i(a)){if(A(n,r,d))return I(r,d,!0),n;ta("The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.")}n=o(n)}var p=n.elm,g=R.parentNode(p);if(c(r,d,p._leaveCb?null:g,R.nextSibling(p)),e(r.parent))for(var m=r.parent,y=v(r);m;){for(var x=0;x<L.destroy.length;++x)L.destroy[x](m);if(m.elm=r.elm,y){for(var _=0;_<L.create.length;++_)L.create[_](Fs,m);var S=m.data.hook.insert;if(S.merged)for(var T=1;T<S.fns.length;T++)S.fns[T]()}else mi(m);m=m.parent}e(g)?w(g,[n],0,0):e(n.tag)&&b(n)}}return I(r,d,h),r.elm}}({nodeOps:Rs,modules:gl});Wo&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&Pn(t,"input")});var vl={inserted:function(t,e,i,n){"select"===i.tag?(n.elm&&!n.elm._vOptions?mt(i,"postpatch",function(){vl.componentUpdated(t,e,i)}):An(t,e,i.context),t._vOptions=[].map.call(t.options,On)):("textarea"===i.tag||Ps(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Nn),t.addEventListener("compositionend",Ln),t.addEventListener("change",Ln),Wo&&(t.vmodel=!0)))},componentUpdated:function(t,e,i){if("select"===i.tag){An(t,e,i.context);var n=t._vOptions,r=t._vOptions=[].map.call(t.options,On);if(r.some(function(t,e){return!w(t,n[e])})){(t.multiple?e.value.some(function(t){return En(t,r)}):e.value!==e.oldValue&&En(e.value,r))&&Pn(t,"change")}}}},yl={bind:function(t,e,i){var n=e.value;i=Rn(i);var r=i.data&&i.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&r?(i.data.show=!0,Sn(i,function(){t.style.display=o})):t.style.display=n?o:"none"},update:function(t,e,i){var n=e.value;!n!=!e.oldValue&&(i=Rn(i),i.data&&i.data.transition?(i.data.show=!0,n?Sn(i,function(){t.style.display=t.__vOriginalDisplay}):Tn(i,function(){t.style.display="none"})):t.style.display=n?t.__vOriginalDisplay:"none")},unbind:function(t,e,i,n,r){r||(t.style.display=t.__vOriginalDisplay)}},xl={model:vl,show:yl},_l={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]},bl={name:"transition",props:_l,abstract:!0,render:function(t){var e=this,i=this.$slots.default;if(i&&(i=i.filter(function(t){return t.tag||Mt(t)}),i.length)){i.length>1&&ta("<transition> can only be used on a single element. Use <transition-group> for lists.",this.$parent);var n=this.mode;n&&"in-out"!==n&&"out-in"!==n&&ta("invalid <transition> mode: "+n,this.$parent);var o=i[0];if(Hn(this.$vnode))return o;var a=zn(o);if(!a)return o;if(this._leaving)return Bn(t,o);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:r(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var l=(a.data||(a.data={})).transition=Fn(this),u=this._vnode,c=zn(u);if(a.data.directives&&a.data.directives.some(function(t){return"show"===t.name})&&(a.data.show=!0),c&&c.data&&!Vn(a,c)&&!Mt(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=x({},l);if("out-in"===n)return this._leaving=!0,mt(h,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),Bn(t,o);if("in-out"===n){if(Mt(a))return u;var d,f=function(){d()};mt(l,"afterEnter",f),mt(l,"enterCancelled",f),mt(h,"delayLeave",function(t){d=t})}}return o}}},wl=x({tag:String,moveClass:String},_l);delete wl.mode;var Sl={props:wl,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",i=Object.create(null),n=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=Fn(this),s=0;s<r.length;s++){var l=r[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),i[l.key]=l,(l.data||(l.data={})).transition=a;else{var u=l.componentOptions,c=u?u.Ctor.options.name||u.tag||"":l.tag;ta("<transition-group> children must be keyed: <"+c+">")}}if(n){for(var h=[],d=[],f=0;f<n.length;f++){var p=n[f];p.data.transition=a,p.data.pos=p.elm.getBoundingClientRect(),i[p.key]?h.push(p):d.push(p)}this.kept=t(e,null,h),this.removed=d}return t(e,null,o)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Wn),t.forEach($n),t.forEach(jn),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var i=t.elm,n=i.style;vn(i,e),n.transform=n.WebkitTransform=n.transitionDuration="",i.addEventListener(ll,i._moveCb=function t(n){n&&!/transform$/.test(n.propertyName)||(i.removeEventListener(ll,t),i._moveCb=null,yn(i,e))})}}))},methods:{hasMove:function(t,e){if(!rl)return!1;if(this._hasMove)return this._hasMove;var i=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){pn(i,t)}),fn(i,e),i.style.display="none",this.$el.appendChild(i);var n=_n(i);return this.$el.removeChild(i),this._hasMove=n.hasTransform}}},Tl={Transition:bl,TransitionGroup:Sl};ze.config.mustUseProp=ws,ze.config.isReservedTag=Ns,ze.config.isReservedAttr=_s,ze.config.getTagNamespace=ei,ze.config.isUnknownElement=ii,x(ze.options.directives,xl),x(ze.options.components,Tl),ze.prototype.__patch__=zo?ml:b,ze.prototype.$mount=function(t,e){return t=t&&zo?ni(t):void 0,Rt(this,t,e)},zo&&setTimeout(function(){Lo.devtools&&(Jo?Jo.emit("init",ze):Uo&&console[console.info?"info":"log"]("Download the Vue Devtools extension for a better development experience:\nhttps://github.com/vuejs/vue-devtools")),!1!==Lo.productionTip&&"undefined"!=typeof console&&console[console.info?"info":"log"]("You are running Vue in development mode.\nMake sure to turn on production mode when deploying for production.\nSee more tips at https://vuejs.org/guide/deployment.html")},0);var Cl,Ml=/\{\{((?:.|\n)+?)\}\}/g,Dl=/[-.*+?^${}()|[\]\/\\]/g,Il=g(function(t){var e=t[0].replace(Dl,"\\$&"),i=t[1].replace(Dl,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+i,"g")}),Al={staticKeys:["staticClass"],transformNode:Gn,genData:qn},kl={staticKeys:["staticStyle"],transformNode:Yn,genData:Xn},El={decode:function(t){return Cl=Cl||document.createElement("div"),Cl.innerHTML=t,Cl.textContent}},Ol=d("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Nl=d("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Ll=d("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Pl=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Rl="[a-zA-Z_][\\w\\-\\.]*",zl="((?:"+Rl+"\\:)?"+Rl+")",Fl=new RegExp("^<"+zl),Bl=/^\s*(\/?)>/,Hl=new RegExp("^<\\/"+zl+"[^>]*>"),Vl=/^<!DOCTYPE [^>]+>/i,Wl=/^<!\--/,$l=/^<!\[/,jl=!1;"x".replace(/x(.)?/g,function(t,e){jl=""===e});var Ul,Gl,ql,Yl,Xl,Zl,Kl,Jl,Ql,tu,eu,iu=d("script,style,textarea",!0),nu={},ru={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t"},ou=/&(?:lt|gt|quot|amp);/g,au=/&(?:lt|gt|quot|amp|#10|#9);/g,su=d("pre,textarea",!0),lu=function(t,e){return t&&su(t)&&"\n"===e[0]},uu=/^@|^v-on:/,cu=/^v-|^@|^:/,hu=/([^]*?)\s+(?:in|of)\s+([^]*)/,du=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,fu=/^\(|\)$/g,pu=/:(.*)$/,gu=/^:|^v-bind:/,mu=/\.[^.]+/g,vu=g(El.decode),yu=/^xmlns:NS\d+/,xu=/^NS\d+:/,_u={preTransformNode:wr},bu=[Al,kl,_u],wu={model:Yi,text:Tr,html:Cr},Su={expectHTML:!0,modules:bu,directives:wu,isPreTag:Os,isUnaryTag:Ol,mustUseProp:ws,canBeLeftOpenTag:Nl,isReservedTag:Ns,getTagNamespace:ei,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(bu)},Tu=g(Dr),Cu=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,Mu=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Du={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Iu={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},Au=function(t){return"if("+t+")return null;"},ku={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Au("$event.target !== $event.currentTarget"),ctrl:Au("!$event.ctrlKey"),shift:Au("!$event.shiftKey"),alt:Au("!$event.altKey"),meta:Au("!$event.metaKey"),left:Au("'button' in $event && $event.button !== 0"),middle:Au("'button' in $event && $event.button !== 1"),right:Au("'button' in $event && $event.button !== 2")},Eu={on:Rr,bind:zr,cloak:b},Ou=function(t){this.options=t,this.warn=t.warn||Ei,this.transforms=Oi(t.modules,"transformCode"),this.dataGenFns=Oi(t.modules,"genData"),this.directives=x(x({},Eu),t.directives);var e=t.isReservedTag||Ao;this.maybeComponent=function(t){return!e(t.tag)},this.onceId=0,this.staticRenderFns=[]},Nu=new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),Lu=new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),Pu=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g,Ru=function(t){return function(e){function i(i,n){var r=Object.create(e),o=[],a=[];if(r.warn=function(t,e){(e?a:o).push(t)},n){n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=x(Object.create(e.directives||null),n.directives));for(var s in n)"modules"!==s&&"directives"!==s&&(r[s]=n[s])}var l=t(i,r);return o.push.apply(o,so(l.ast)),l.errors=o,l.tips=a,l}return{compile:i,compileToFunctions:go(i)}}}(function(t,e){var i=Qn(t.trim(),e);!1!==e.optimize&&Mr(i,e);var n=Fr(i,e);return{ast:i,render:n.render,staticRenderFns:n.staticRenderFns}}),zu=Ru(Su),Fu=zu.compileToFunctions,Bu=!!zo&&mo(!1),Hu=!!zo&&mo(!0),Vu=g(function(t){var e=ni(t);return e&&e.innerHTML}),Wu=ze.prototype.$mount;return ze.prototype.$mount=function(t,e){if((t=t&&ni(t))===document.body||t===document.documentElement)return ta("Do not mount Vue to <html> or <body> - mount to normal elements instead."),this;var i=this.$options;if(!i.render){var n=i.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&((n=Vu(n))||ta("Template element not found or is empty: "+i.template,this));else{if(!n.nodeType)return ta("invalid template option:"+n,this),this;n=n.innerHTML}else t&&(n=vo(t));if(n){Lo.performance&&ka&&ka("compile");var r=Fu(n,{shouldDecodeNewlines:Bu,shouldDecodeNewlinesForHref:Hu,delimiters:i.delimiters,comments:i.comments},this),o=r.render,a=r.staticRenderFns;i.render=o,i.staticRenderFns=a,Lo.performance&&ka&&(ka("compile end"),Ea("vue "+this._name+" compile","compile","compile end"))}}return Wu.call(this,t,e)},ze.compile=Fu,ze}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";function e(t,e){"createCanvas"===t&&(X_=null),q_[t]=e}function i(t){if(null==t||"object"!=typeof t)return t;var e=t,n=H_.call(t);if("[object Array]"===n){if(!L(t)){e=[];for(var r=0,o=t.length;r<o;r++)e[r]=i(t[r])}}else if(B_[n]){if(!L(t)){var a=t.constructor;if(t.constructor.from)e=a.from(t);else{e=new a(t.length);for(var r=0,o=t.length;r<o;r++)e[r]=i(t[r])}}}else if(!F_[n]&&!L(t)&&!T(t)){e={};for(var s in t)t.hasOwnProperty(s)&&(e[s]=i(t[s]))}return e}function n(t,e,r){if(!b(e)||!b(t))return r?i(e):t;for(var o in e)if(e.hasOwnProperty(o)){var a=t[o],s=e[o];!b(s)||!b(a)||y(s)||y(a)||T(s)||T(a)||w(s)||w(a)||L(s)||L(a)?!r&&o in t||(t[o]=i(e[o],!0)):n(a,s,r)}return t}function r(t,e){for(var i=t[0],r=1,o=t.length;r<o;r++)i=n(i,t[r],e);return i}function o(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function a(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function s(){return X_||(X_=Y_().getContext("2d")),X_}function l(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return-1}function u(t,e){function i(){}var n=t.prototype;i.prototype=e.prototype,t.prototype=new i;for(var r in n)t.prototype[r]=n[r];t.prototype.constructor=t,t.superClass=e}function c(t,e,i){a(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,i)}function h(t){if(t)return"string"!=typeof t&&"number"==typeof t.length}function d(t,e,i){if(t&&e)if(t.forEach&&t.forEach===W_)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,r=t.length;n<r;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function f(t,e,i){if(t&&e){if(t.map&&t.map===U_)return t.map(e,i);for(var n=[],r=0,o=t.length;r<o;r++)n.push(e.call(i,t[r],r,t));return n}}function p(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===G_)return t.reduce(e,i,n);for(var r=0,o=t.length;r<o;r++)i=e.call(n,i,t[r],r,t);return i}}function g(t,e,i){if(t&&e){if(t.filter&&t.filter===$_)return t.filter(e,i);for(var n=[],r=0,o=t.length;r<o;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function m(t,e){var i=j_.call(arguments,2);return function(){return t.apply(e,i.concat(j_.call(arguments)))}}function v(t){var e=j_.call(arguments,1);return function(){return t.apply(this,e.concat(j_.call(arguments)))}}function y(t){return"[object Array]"===H_.call(t)}function x(t){return"function"==typeof t}function _(t){return"[object String]"===H_.call(t)}function b(t){var e=typeof t;return"function"===e||!!t&&"object"==e}function w(t){return!!F_[H_.call(t)]}function S(t){return!!B_[H_.call(t)]}function T(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function C(t){return t!==t}function M(t){for(var e=0,i=arguments.length;e<i;e++)if(null!=arguments[e])return arguments[e]}function D(t,e){return null!=t?t:e}function I(t,e,i){return null!=t?t:null!=e?e:i}function A(){return Function.call.apply(j_,arguments)}function k(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function E(t,e){if(!t)throw new Error(e)}function O(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function N(t){t[Z_]=!0}function L(t){return t[Z_]}function P(t){function e(t,e){i?n.set(t,e):n.set(e,t)}var i=y(t);this.data={};var n=this;t instanceof P?t.each(e):t&&d(t,e)}function R(t){return new P(t)}function z(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];var r=t.length;for(n=0;n<e.length;n++)i[n+r]=e[n];return i}function F(){}function B(t,e){var i=new J_(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i}function H(t,e){return t[0]=e[0],t[1]=e[1],t}function V(t){var e=new J_(2);return e[0]=t[0],e[1]=t[1],e}function W(t,e,i){return t[0]=e,t[1]=i,t}function $(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function j(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t}function U(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function G(t){return Math.sqrt(q(t))}function q(t){return t[0]*t[0]+t[1]*t[1]}function Y(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function X(t,e){var i=G(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function Z(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function K(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function J(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function Q(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t}function tt(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function et(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}function it(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}function nt(t,e){return{target:t,topTarget:e&&e.topTarget}}function rt(t,e){var i=t._$eventProcessor;return null!=e&&i&&i.normalizeQuery&&(e=i.normalizeQuery(e)),e}function ot(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function at(t,e,i,n){return i=i||{},n||!z_.canvasSupported?st(t,e,i):z_.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):st(t,e,i),i}function st(t,e,i){var n=ot(t);i.zrX=e.clientX-n.left, i.zrY=e.clientY-n.top}function lt(t,e,i){if(null!=(e=e||window.event).zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var r="touchend"!=n?e.targetTouches[0]:e.changedTouches[0];r&&at(t,r,e,i)}else at(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var o=e.button;return null==e.which&&void 0!==o&&sb.test(e.type)&&(e.which=1&o?1:2&o?3:4&o?2:0),e}function ut(t,e,i){ab?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function ct(t,e,i){ab?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}function ht(t){return t.which>1}function dt(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:ft}}function ft(t){lb(this.event)}function pt(){}function gt(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n,r=t;r;){if(r.clipPath&&!r.clipPath.contain(e,i))return!1;r.silent&&(n=!0),r=r.parent}return!n||ub}return!1}function mt(){var t=new db(6);return vt(t),t}function vt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function yt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function xt(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],o=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function _t(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function bt(t,e,i){var n=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(i),c=Math.cos(i);return t[0]=n*c+a*u,t[1]=-n*u+a*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function wt(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t}function St(t,e){var i=e[0],n=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=i*a-o*n;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-a*r)*l,t[5]=(o*r-i*s)*l,t):null}function Tt(t){var e=mt();return yt(e,t),e}function Ct(t){return t>gb||t<-gb}function Mt(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}function Dt(t){return(t=Math.round(t))<0?0:t>255?255:t}function It(t){return(t=Math.round(t))<0?0:t>360?360:t}function At(t){return t<0?0:t>1?1:t}function kt(t){return Dt(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function Et(t){return At(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function Ot(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function Nt(t,e,i){return t+(e-t)*i}function Lt(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t}function Pt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Rt(t,e){Ab&&Pt(Ab,e),Ab=Ib.put(t,Ab||e.slice())}function zt(t,e){if(t){e=e||[];var i=Ib.get(t);if(i)return Pt(e,i);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in Db)return Pt(e,Db[n]),Rt(t,e),e;if("#"!==n.charAt(0)){var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===n.length){var a=n.substr(0,r),s=n.substr(r+1,o-(r+1)).split(","),l=1;switch(a){case"rgba":if(4!==s.length)return void Lt(e,0,0,0,1);l=Et(s.pop());case"rgb":return 3!==s.length?void Lt(e,0,0,0,1):(Lt(e,kt(s[0]),kt(s[1]),kt(s[2]),l),Rt(t,e),e);case"hsla":return 4!==s.length?void Lt(e,0,0,0,1):(s[3]=Et(s[3]),Ft(s,e),Rt(t,e),e);case"hsl":return 3!==s.length?void Lt(e,0,0,0,1):(Ft(s,e),Rt(t,e),e);default:return}}Lt(e,0,0,0,1)}else{if(4===n.length)return(u=parseInt(n.substr(1),16))>=0&&u<=4095?(Lt(e,(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1),Rt(t,e),e):void Lt(e,0,0,0,1);if(7===n.length){var u=parseInt(n.substr(1),16);return u>=0&&u<=16777215?(Lt(e,(16711680&u)>>16,(65280&u)>>8,255&u,1),Rt(t,e),e):void Lt(e,0,0,0,1)}}}}function Ft(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=Et(t[1]),r=Et(t[2]),o=r<=.5?r*(n+1):r+n-r*n,a=2*r-o;return e=e||[],Lt(e,Dt(255*Ot(a,o,i+1/3)),Dt(255*Ot(a,o,i)),Dt(255*Ot(a,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Bt(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(n,r,o),s=Math.max(n,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,i=0;else{i=u<.5?l/(s+a):l/(2-s-a);var c=((s-n)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;n===s?e=d-h:r===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function Ht(t,e){var i=zt(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:t[n]<0&&(i[n]=0);return Gt(i,4===i.length?"rgba":"rgb")}}function Vt(t){var e=zt(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Wt(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=e[r],s=e[o],l=n-r;return i[0]=Dt(Nt(a[0],s[0],l)),i[1]=Dt(Nt(a[1],s[1],l)),i[2]=Dt(Nt(a[2],s[2],l)),i[3]=At(Nt(a[3],s[3],l)),i}}function $t(t,e,i){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=zt(e[r]),s=zt(e[o]),l=n-r,u=Gt([Dt(Nt(a[0],s[0],l)),Dt(Nt(a[1],s[1],l)),Dt(Nt(a[2],s[2],l)),At(Nt(a[3],s[3],l))],"rgba");return i?{color:u,leftIndex:r,rightIndex:o,value:n}:u}}function jt(t,e,i,n){if(t=zt(t))return t=Bt(t),null!=e&&(t[0]=It(e)),null!=i&&(t[1]=Et(i)),null!=n&&(t[2]=Et(n)),Gt(Ft(t),"rgba")}function Ut(t,e){if((t=zt(t))&&null!=e)return t[3]=At(e),Gt(t,"rgba")}function Gt(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}function qt(t,e){return t[e]}function Yt(t,e,i){t[e]=i}function Xt(t,e,i){return(e-t)*i+t}function Zt(t,e,i){return i>.5?e:t}function Kt(t,e,i,n,r){var o=t.length;if(1==r)for(s=0;s<o;s++)n[s]=Xt(t[s],e[s],i);else for(var a=o&&t[0].length,s=0;s<o;s++)for(var l=0;l<a;l++)n[s][l]=Xt(t[s][l],e[s][l],i)}function Jt(t,e,i){var n=t.length,r=e.length;if(n!==r)if(n>r)t.length=r;else for(a=n;a<r;a++)t.push(1===i?e[a]:Nb.call(e[a]));for(var o=t[0]&&t[0].length,a=0;a<t.length;a++)if(1===i)isNaN(t[a])&&(t[a]=e[a]);else for(var s=0;s<o;s++)isNaN(t[a][s])&&(t[a][s]=e[a][s])}function Qt(t,e,i){if(t===e)return!0;var n=t.length;if(n!==e.length)return!1;if(1===i){for(o=0;o<n;o++)if(t[o]!==e[o])return!1}else for(var r=t[0].length,o=0;o<n;o++)for(var a=0;a<r;a++)if(t[o][a]!==e[o][a])return!1;return!0}function te(t,e,i,n,r,o,a,s,l){var u=t.length;if(1==l)for(h=0;h<u;h++)s[h]=ee(t[h],e[h],i[h],n[h],r,o,a);else for(var c=t[0].length,h=0;h<u;h++)for(var d=0;d<c;d++)s[h][d]=ee(t[h][d],e[h][d],i[h][d],n[h][d],r,o,a)}function ee(t,e,i,n,r,o,a){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*a+(-3*(e-i)-2*s-l)*o+s*r+e}function ie(t){if(h(t)){var e=t.length;if(h(t[0])){for(var i=[],n=0;n<e;n++)i.push(Nb.call(t[n]));return i}return Nb.call(t)}return t}function ne(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function re(t){var e=t[t.length-1].value;return h(e&&e[0])?2:1}function oe(t,e,i,n,r,o){var a=t._getter,s=t._setter,l="spline"===e,u=n.length;if(u){var c,d=h(n[0].value),f=!1,p=!1,g=d?re(n):0;n.sort(function(t,e){return t.time-e.time}),c=n[u-1].time;for(var m=[],v=[],y=n[0].value,x=!0,_=0;_<u;_++){m.push(n[_].time/c);var b=n[_].value;if(d&&Qt(b,y,g)||!d&&b===y||(x=!1),y=b,"string"==typeof b){var w=zt(b);w?(b=w,f=!0):p=!0}v.push(b)}if(o||!x){for(var S=v[u-1],_=0;_<u-1;_++)d?Jt(v[_],S,g):!isNaN(v[_])||isNaN(S)||p||f||(v[_]=S);d&&Jt(a(t._target,r),S,g);var T,C,M,D,I,A,k=0,E=0;if(f)var O=[0,0,0,0];var N=new Mt({target:t._target,life:c,loop:t._loop,delay:t._delay,onframe:function(t,e){var i;if(e<0)i=0;else if(e<E){for(i=T=Math.min(k+1,u-1);i>=0&&!(m[i]<=e);i--);i=Math.min(i,u-2)}else{for(i=k;i<u&&!(m[i]>e);i++);i=Math.min(i-1,u-2)}k=i,E=e;var n=m[i+1]-m[i];if(0!==n)if(C=(e-m[i])/n,l)if(D=v[i],M=v[0===i?i:i-1],I=v[i>u-2?u-1:i+1],A=v[i>u-3?u-1:i+2],d)te(M,D,I,A,C,C*C,C*C*C,a(t,r),g);else{if(f)o=te(M,D,I,A,C,C*C,C*C*C,O,1),o=ne(O);else{if(p)return Zt(D,I,C);o=ee(M,D,I,A,C,C*C,C*C*C)}s(t,r,o)}else if(d)Kt(v[i],v[i+1],C,a(t,r),g);else{var o;if(f)Kt(v[i],v[i+1],C,O,1),o=ne(O);else{if(p)return Zt(v[i],v[i+1],C);o=Xt(v[i],v[i+1],C)}s(t,r,o)}},ondestroy:i});return e&&"spline"!==e&&(N.easing=e),N}}}function ae(t,e,i,n,r,o,a,s){_(n)?(o=r,r=n,n=0):x(r)?(o=r,r="linear",n=0):x(n)?(o=n,n=0):x(i)?(o=i,i=500):i||(i=500),t.stopAnimation(),se(t,"",t,e,i,n,s);var l=t.animators.slice(),u=l.length;u||o&&o();for(var c=0;c<l.length;c++)l[c].done(function(){--u||o&&o()}).start(r,a)}function se(t,e,i,n,r,o,a){var s={},l=0;for(var u in n)n.hasOwnProperty(u)&&(null!=i[u]?b(n[u])&&!h(n[u])?se(t,e?e+"."+u:u,i[u],n[u],r,o,a):(a?(s[u]=i[u],le(t,e,u,n[u])):s[u]=n[u],l++):null==n[u]||a||le(t,e,u,n[u]));l>0&&t.animate(e,!1).when(null==r?500:r,s).delay(o||0)}function le(t,e,i,n){if(e){var r={};r[e]={},r[e][i]=n,t.attr(r)}else t.attr(i,n)}function ue(t,e,i,n){i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}function ce(t){for(var e=0;t>=Ub;)e|=1&t,t>>=1;return t+e}function he(t,e,i,n){var r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){for(;r<i&&n(t[r],t[r-1])<0;)r++;de(t,e,r)}else for(;r<i&&n(t[r],t[r-1])>=0;)r++;return r-e}function de(t,e,i){for(i--;e<i;){var n=t[e];t[e++]=t[i],t[i--]=n}}function fe(t,e,i,n,r){for(n===e&&n++;n<i;n++){for(var o,a=t[n],s=e,l=n;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function pe(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])>0){for(s=n-r;l<s&&o(t,e[i+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[i+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[i+c])>0?a=c+1:l=c}return l}function ge(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])<0){for(s=r+1;l<s&&o(t,e[i+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=n-r;l<s&&o(t,e[i+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[i+c])<0?l=c:a=c+1}return l}function me(t,e){function i(i){var s=o[i],u=a[i],c=o[i+1],h=a[i+1];a[i]=u+h,i===l-3&&(o[i+1]=o[i+2],a[i+1]=a[i+2]),l--;var d=ge(t[c],t,s,u,0,e);s+=d,0!=(u-=d)&&0!==(h=pe(t[s+u-1],t,c,h,h-1,e))&&(u<=h?n(s,u,c,h):r(s,u,c,h))}function n(i,n,r,o){var a=0;for(a=0;a<n;a++)u[a]=t[i+a];var l=0,c=r,h=i;if(t[h++]=t[c++],0!=--o)if(1!==n){for(var d,f,p,g=s;;){d=0,f=0,p=!1;do{if(e(t[c],u[l])<0){if(t[h++]=t[c++],f++,d=0,0==--o){p=!0;break}}else if(t[h++]=u[l++],d++,f=0,1==--n){p=!0;break}}while((d|f)<g);if(p)break;do{if(0!==(d=ge(t[c],u,l,n,0,e))){for(a=0;a<d;a++)t[h+a]=u[l+a];if(h+=d,l+=d,(n-=d)<=1){p=!0;break}}if(t[h++]=t[c++],0==--o){p=!0;break}if(0!==(f=pe(u[l],t,c,o,0,e))){for(a=0;a<f;a++)t[h+a]=t[c+a];if(h+=f,c+=f,0==(o-=f)){p=!0;break}}if(t[h++]=u[l++],1==--n){p=!0;break}g--}while(d>=Gb||f>=Gb);if(p)break;g<0&&(g=0),g+=2}if((s=g)<1&&(s=1),1===n){for(a=0;a<o;a++)t[h+a]=t[c+a];t[h+o]=u[l]}else{if(0===n)throw new Error;for(a=0;a<n;a++)t[h+a]=u[l+a]}}else{for(a=0;a<o;a++)t[h+a]=t[c+a];t[h+o]=u[l]}else for(a=0;a<n;a++)t[h+a]=u[l+a]}function r(i,n,r,o){var a=0;for(a=0;a<o;a++)u[a]=t[r+a];var l=i+n-1,c=o-1,h=r+o-1,d=0,f=0;if(t[h--]=t[l--],0!=--n)if(1!==o){for(var p=s;;){var g=0,m=0,v=!1;do{if(e(u[c],t[l])<0){if(t[h--]=t[l--],g++,m=0,0==--n){v=!0;break}}else if(t[h--]=u[c--],m++,g=0,1==--o){v=!0;break}}while((g|m)<p);if(v)break;do{if(0!=(g=n-ge(u[c],t,i,n,n-1,e))){for(n-=g,f=1+(h-=g),d=1+(l-=g),a=g-1;a>=0;a--)t[f+a]=t[d+a];if(0===n){v=!0;break}}if(t[h--]=u[c--],1==--o){v=!0;break}if(0!=(m=o-pe(t[l],u,0,o,o-1,e))){for(o-=m,f=1+(h-=m),d=1+(c-=m),a=0;a<m;a++)t[f+a]=u[d+a];if(o<=1){v=!0;break}}if(t[h--]=t[l--],0==--n){v=!0;break}p--}while(g>=Gb||m>=Gb);if(v)break;p<0&&(p=0),p+=2}if((s=p)<1&&(s=1),1===o){for(f=1+(h-=n),d=1+(l-=n),a=n-1;a>=0;a--)t[f+a]=t[d+a];t[h]=u[c]}else{if(0===o)throw new Error;for(d=h-(o-1),a=0;a<o;a++)t[d+a]=u[a]}}else{for(f=1+(h-=n),d=1+(l-=n),a=n-1;a>=0;a--)t[f+a]=t[d+a];t[h]=u[c]}else for(d=h-(o-1),a=0;a<o;a++)t[d+a]=u[a]}var o,a,s=Gb,l=0,u=[];o=[],a=[],this.mergeRuns=function(){for(;l>1;){var t=l-2;if(t>=1&&a[t-1]<=a[t]+a[t+1]||t>=2&&a[t-2]<=a[t]+a[t-1])a[t-1]<a[t+1]&&t--;else if(a[t]>a[t+1])break;i(t)}},this.forceMergeRuns=function(){for(;l>1;){var t=l-2;t>0&&a[t-1]<a[t+1]&&t--,i(t)}},this.pushRun=function(t,e){o[l]=t,a[l]=e,l+=1}}function ve(t,e,i,n){i||(i=0),n||(n=t.length);var r=n-i;if(!(r<2)){var o=0;if(r<Ub)return o=he(t,i,n,e),void fe(t,i,n,i+o,e);var a=new me(t,e),s=ce(r);do{if((o=he(t,i,n,e))<s){var l=r;l>s&&(l=s),fe(t,i,i+l,i+o,e),o=l}a.pushRun(i,o),a.mergeRuns(),r-=o,i+=o}while(0!==r);a.forceMergeRuns()}}function ye(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function xe(t,e,i){var n=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(n=n*i.width+i.x,r=r*i.width+i.x,o=o*i.height+i.y,a=a*i.height+i.y),n=isNaN(n)?0:n,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a,t.createLinearGradient(n,o,r,a)}function _e(t,e,i){var n=i.width,r=i.height,o=Math.min(n,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*n+i.x,s=s*r+i.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}function be(){return!1}function we(t,e,i){var n=Y_(),r=e.getWidth(),o=e.getHeight(),a=n.style;return a&&(a.position="absolute",a.left=0,a.top=0,a.width=r+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",t)),n.width=r*i,n.height=o*i,n}function Se(t){if("string"==typeof t){var e=rw.get(t);return e&&e.image}return t}function Te(t,e,i,n,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var o=rw.get(t),a={hostEl:i,cb:n,cbPayload:r};return o?!Me(e=o.image)&&o.pending.push(a):(!e&&(e=new Image),e.onload=e.onerror=Ce,rw.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function Ce(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function Me(t){return t&&t.width&&t.height}function De(t,e){var i=t+":"+(e=e||uw);if(ow[i])return ow[i];for(var n=(t+"").split("\n"),r=0,o=0,a=n.length;o<a;o++)r=Math.max(Be(n[o],e).width,r);return aw>sw&&(aw=0,ow={}),aw++,ow[i]=r,r}function Ie(t,e,i,n,r,o,a){return o?ke(t,e,i,n,r,o,a):Ae(t,e,i,n,r,a)}function Ae(t,e,i,n,r,o){var a=He(t,e,r,o),s=De(t,e);r&&(s+=r[1]+r[3]);var l=a.outerHeight,u=new ue(Ee(0,s,i),Oe(0,l,n),s,l);return u.lineHeight=a.lineHeight,u}function ke(t,e,i,n,r,o,a){var s=Ve(t,{rich:o,truncate:a,font:e,textAlign:i,textPadding:r}),l=s.outerWidth,u=s.outerHeight;return new ue(Ee(0,l,i),Oe(0,u,n),l,u)}function Ee(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Oe(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function Ne(t,e,i){var n=e.x,r=e.y,o=e.height,a=e.width,s=o/2,l="left",u="top";switch(t){case"left":n-=i,r+=s,l="right",u="middle";break;case"right":n+=i+a,r+=s,u="middle";break;case"top":n+=a/2,r-=i,l="center",u="bottom";break;case"bottom":n+=a/2,r+=o+i,l="center";break;case"inside":n+=a/2,r+=s,l="center",u="middle";break;case"insideLeft":n+=i,r+=s,u="middle";break;case"insideRight":n+=a-i,r+=s,l="right",u="middle";break;case"insideTop":n+=a/2,r+=i,l="center";break;case"insideBottom":n+=a/2,r+=o-i,l="center",u="bottom";break;case"insideTopLeft":n+=i,r+=i;break;case"insideTopRight":n+=a-i,r+=i,l="right";break;case"insideBottomLeft":n+=i,r+=o-i,u="bottom";break;case"insideBottomRight":n+=a-i,r+=o-i,l="right",u="bottom"}return{x:n,y:r,textAlign:l,textVerticalAlign:u}}function Le(t,e,i,n,r){if(!e)return"";var o=(t+"").split("\n");r=Pe(e,i,n,r);for(var a=0,s=o.length;a<s;a++)o[a]=Re(o[a],r);return o.join("\n")}function Pe(t,e,i,n){(n=o({},n)).font=e;var i=D(i,"...");n.maxIterations=D(n.maxIterations,2);var r=n.minChar=D(n.minChar,0);n.cnCharWidth=De("国",e);var a=n.ascCharWidth=De("a",e);n.placeholder=D(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<r&&s>=a;l++)s-=a;var u=De(i);return u>s&&(i="",u=0),s=t-u,n.ellipsis=i,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=t,n}function Re(t,e){var i=e.containerWidth,n=e.font,r=e.contentWidth;if(!i)return"";var o=De(t,n);if(o<=i)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?ze(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=De(t=t.substr(0,s),n)}return""===t&&(t=e.placeholder),t}function ze(t,e,i,n){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?i:n}return o}function Fe(t){return De("国",t)}function Be(t,e){return cw.measureText(t,e)}function He(t,e,i,n){null!=t&&(t+="");var r=Fe(e),o=t?t.split("\n"):[],a=o.length*r,s=a;if(i&&(s+=i[0]+i[2]),t&&n){var l=n.outerHeight,u=n.outerWidth;if(null!=l&&s>l)t="",o=[];else if(null!=u)for(var c=Pe(u-(i?i[1]+i[3]:0),e,n.ellipsis,{minChar:n.minChar,placeholder:n.placeholder}),h=0,d=o.length;h<d;h++)o[h]=Re(o[h],c)}return{lines:o,height:a,outerHeight:s,lineHeight:r}}function Ve(t,e){var i={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return i;for(var n,r=lw.lastIndex=0;null!=(n=lw.exec(t));){var o=n.index;o>r&&We(i,t.substring(r,o)),We(i,n[2],n[1]),r=lw.lastIndex}r<t.length&&We(i,t.substring(r,t.length));var a=i.lines,s=0,l=0,u=[],c=e.textPadding,h=e.truncate,d=h&&h.outerWidth,f=h&&h.outerHeight;for(c&&(null!=d&&(d-=c[1]+c[3]),null!=f&&(f-=c[0]+c[2])),k=0;k<a.length;k++){for(var p=a[k],g=0,m=0,v=0;v<p.tokens.length;v++){var y=(E=p.tokens[v]).styleName&&e.rich[E.styleName]||{},x=E.textPadding=y.textPadding,_=E.font=y.font||e.font,b=E.textHeight=D(y.textHeight,Fe(_));if(x&&(b+=x[0]+x[2]),E.height=b,E.lineHeight=I(y.textLineHeight,e.textLineHeight,b),E.textAlign=y&&y.textAlign||e.textAlign,E.textVerticalAlign=y&&y.textVerticalAlign||"middle",null!=f&&s+E.lineHeight>f)return{lines:[],width:0,height:0};E.textWidth=De(E.text,_);var w=y.textWidth,S=null==w||"auto"===w;if("string"==typeof w&&"%"===w.charAt(w.length-1))E.percentWidth=w,u.push(E),w=0;else{if(S){w=E.textWidth;var T=y.textBackgroundColor,C=T&&T.image;C&&Me(C=Se(C))&&(w=Math.max(w,C.width*b/C.height))}var M=x?x[1]+x[3]:0;w+=M;var A=null!=d?d-m:null;null!=A&&A<w&&(!S||A<M?(E.text="",E.textWidth=w=0):(E.text=Le(E.text,A-M,_,h.ellipsis,{minChar:h.minChar}),E.textWidth=De(E.text,_),w=E.textWidth+M))}m+=E.width=w,y&&(g=Math.max(g,E.lineHeight))}p.width=m,p.lineHeight=g,s+=g,l=Math.max(l,m)}i.outerWidth=i.width=D(e.textWidth,l),i.outerHeight=i.height=D(e.textHeight,s),c&&(i.outerWidth+=c[1]+c[3],i.outerHeight+=c[0]+c[2]);for(var k=0;k<u.length;k++){var E=u[k],O=E.percentWidth;E.width=parseInt(O,10)/100*l}return i}function We(t,e,i){for(var n=""===e,r=e.split("\n"),o=t.lines,a=0;a<r.length;a++){var s=r[a],l={styleName:i,text:s,isLineHolder:!s&&!n};if(a)o.push({tokens:[l]});else{var u=(o[o.length-1]||(o[0]={tokens:[]})).tokens,c=u.length;1===c&&u[0].isLineHolder?u[0]=l:(s||!c||n)&&u.push(l)}}}function $e(t){var e=(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ");return e&&O(e)||t.textFont||t.font}function je(t,e){var i,n,r,o,a=e.x,s=e.y,l=e.width,u=e.height,c=e.r;l<0&&(a+=l,l=-l),u<0&&(s+=u,u=-u),"number"==typeof c?i=n=r=o=c:c instanceof Array?1===c.length?i=n=r=o=c[0]:2===c.length?(i=r=c[0],n=o=c[1]):3===c.length?(i=c[0],n=o=c[1],r=c[2]):(i=c[0],n=c[1],r=c[2],o=c[3]):i=n=r=o=0;var h;i+n>l&&(i*=l/(h=i+n),n*=l/h),r+o>l&&(r*=l/(h=r+o),o*=l/h),n+r>u&&(n*=u/(h=n+r),r*=u/h),i+o>u&&(i*=u/(h=i+o),o*=u/h),t.moveTo(a+i,s),t.lineTo(a+l-n,s),0!==n&&t.arc(a+l-n,s+n,n,-Math.PI/2,0),t.lineTo(a+l,s+u-r),0!==r&&t.arc(a+l-r,s+u-r,r,0,Math.PI/2),t.lineTo(a+o,s+u),0!==o&&t.arc(a+o,s+u-o,o,Math.PI/2,Math.PI),t.lineTo(a,s+i),0!==i&&t.arc(a+i,s+i,i,Math.PI,1.5*Math.PI)}function Ue(t){return Ge(t),d(t.rich,Ge),t}function Ge(t){if(t){t.font=$e(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||hw[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||dw[i]?i:"top",t.textPadding&&(t.textPadding=k(t.textPadding))}}function qe(t,e,i,n,r,o){n.rich?Xe(t,e,i,n,r):Ye(t,e,i,n,r,o)}function Ye(t,e,i,n,r,o){var a=o&&o.style,s=a&&"text"===o.type,l=n.font||uw;s&&l===(a.font||uw)||(e.font=l);var u=t.__computedFont;t.__styleFont!==l&&(t.__styleFont=l,u=t.__computedFont=e.font);var c=n.textPadding,h=t.__textCotentBlock;h&&!t.__dirtyText||(h=t.__textCotentBlock=He(i,u,c,n.truncate));var d=h.outerHeight,f=h.lines,p=h.lineHeight,g=ii(d,n,r),m=g.baseX,v=g.baseY,y=g.textAlign||"left",x=g.textVerticalAlign;Ke(e,n,r,m,v);var _=Oe(v,d,x),b=m,w=_,S=Qe(n);if(S||c){var T=De(i,u);c&&(T+=c[1]+c[3]);var C=Ee(m,T,y);S&&ti(t,e,n,C,_,T,d),c&&(b=si(m,y,c),w+=c[0])}for(e.textAlign=y,e.textBaseline="middle",R=0;R<fw.length;R++){var M=fw[R],D=M[0],I=M[1],A=n[D];s&&A===a[D]||(e[I]=Xb(e,I,A||M[2]))}w+=p/2;var k=n.textStrokeWidth,E=s?a.textStrokeWidth:null,O=!s||k!==E,N=!s||O||n.textStroke!==a.textStroke,L=ri(n.textStroke,k),P=oi(n.textFill);if(L&&(O&&(e.lineWidth=k),N&&(e.strokeStyle=L)),P&&(s&&n.textFill===a.textFill&&!a.textBackgroundColor||(e.fillStyle=P)),1===f.length)L&&e.strokeText(f[0],b,w),P&&e.fillText(f[0],b,w);else for(var R=0;R<f.length;R++)L&&e.strokeText(f[R],b,w),P&&e.fillText(f[R],b,w),w+=p}function Xe(t,e,i,n,r){var o=t.__textCotentBlock;o&&!t.__dirtyText||(o=t.__textCotentBlock=Ve(i,n)),Ze(t,e,o,n,r)}function Ze(t,e,i,n,r){var o=i.width,a=i.outerWidth,s=i.outerHeight,l=n.textPadding,u=ii(s,n,r),c=u.baseX,h=u.baseY,d=u.textAlign,f=u.textVerticalAlign;Ke(e,n,r,c,h);var p=Ee(c,a,d),g=Oe(h,s,f),m=p,v=g;l&&(m+=l[3],v+=l[0]);var y=m+o;Qe(n)&&ti(t,e,n,p,g,a,s);for(var x=0;x<i.lines.length;x++){for(var _,b=i.lines[x],w=b.tokens,S=w.length,T=b.lineHeight,C=b.width,M=0,D=m,I=y,A=S-1;M<S&&(!(_=w[M]).textAlign||"left"===_.textAlign);)Je(t,e,_,n,T,v,D,"left"),C-=_.width,D+=_.width,M++;for(;A>=0&&"right"===(_=w[A]).textAlign;)Je(t,e,_,n,T,v,I,"right"),C-=_.width,I-=_.width,A--;for(D+=(o-(D-m)-(y-I)-C)/2;M<=A;)Je(t,e,_=w[M],n,T,v,D+_.width/2,"center"),D+=_.width,M++;v+=T}}function Ke(t,e,i,n,r){if(i&&e.textRotation){var o=e.textOrigin;"center"===o?(n=i.width/2+i.x,r=i.height/2+i.y):o&&(n=o[0]+i.x,r=o[1]+i.y),t.translate(n,r),t.rotate(-e.textRotation),t.translate(-n,-r)}}function Je(t,e,i,n,r,o,a,s){var l=n.rich[i.styleName]||{};l.text=i.text;var u=i.textVerticalAlign,c=o+r/2;"top"===u?c=o+i.height/2:"bottom"===u&&(c=o+r-i.height/2),!i.isLineHolder&&Qe(l)&&ti(t,e,l,"right"===s?a-i.width:"center"===s?a-i.width/2:a,c-i.height/2,i.width,i.height);var h=i.textPadding;h&&(a=si(a,s,h),c-=i.height/2-h[2]-i.textHeight/2),ni(e,"shadowBlur",I(l.textShadowBlur,n.textShadowBlur,0)),ni(e,"shadowColor",l.textShadowColor||n.textShadowColor||"transparent"),ni(e,"shadowOffsetX",I(l.textShadowOffsetX,n.textShadowOffsetX,0)),ni(e,"shadowOffsetY",I(l.textShadowOffsetY,n.textShadowOffsetY,0)),ni(e,"textAlign",s),ni(e,"textBaseline","middle"),ni(e,"font",i.font||uw);var d=ri(l.textStroke||n.textStroke,p),f=oi(l.textFill||n.textFill),p=D(l.textStrokeWidth,n.textStrokeWidth);d&&(ni(e,"lineWidth",p),ni(e,"strokeStyle",d),e.strokeText(i.text,a,c)),f&&(ni(e,"fillStyle",f),e.fillText(i.text,a,c))}function Qe(t){return t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor}function ti(t,e,i,n,r,o,a){var s=i.textBackgroundColor,l=i.textBorderWidth,u=i.textBorderColor,c=_(s);if(ni(e,"shadowBlur",i.textBoxShadowBlur||0),ni(e,"shadowColor",i.textBoxShadowColor||"transparent"),ni(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),ni(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),c||l&&u){e.beginPath();var h=i.textBorderRadius;h?je(e,{x:n,y:r,width:o,height:a,r:h}):e.rect(n,r,o,a),e.closePath()}if(c)ni(e,"fillStyle",s),null!=i.fillOpacity?(f=e.globalAlpha,e.globalAlpha=i.fillOpacity*i.opacity,e.fill(),e.globalAlpha=f):e.fill();else if(x(s))ni(e,"fillStyle",s(i)),e.fill();else if(b(s)){var d=s.image;(d=Te(d,null,t,ei,s))&&Me(d)&&e.drawImage(d,n,r,o,a)}if(l&&u)if(ni(e,"lineWidth",l),ni(e,"strokeStyle",u),null!=i.strokeOpacity){var f=e.globalAlpha;e.globalAlpha=i.strokeOpacity*i.opacity,e.stroke(),e.globalAlpha=f}else e.stroke()}function ei(t,e){e.image=t}function ii(t,e,i){var n=e.x||0,r=e.y||0,o=e.textAlign,a=e.textVerticalAlign;if(i){var s=e.textPosition;if(s instanceof Array)n=i.x+ai(s[0],i.width),r=i.y+ai(s[1],i.height);else{var l=Ne(s,i,e.textDistance);n=l.x,r=l.y,o=o||l.textAlign,a=a||l.textVerticalAlign}var u=e.textOffset;u&&(n+=u[0],r+=u[1])}return{baseX:n,baseY:r,textAlign:o,textVerticalAlign:a}}function ni(t,e,i){return t[e]=Xb(t,e,i),t[e]}function ri(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function oi(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function ai(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function si(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function li(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}function ui(t){t=t||{},Hb.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new Kb(t.style,this),this._rect=null,this.__clipPaths=[]}function ci(t){ui.call(this,t)}function hi(t){return parseInt(t,10)}function di(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}function fi(t,e,i){return mw.copy(t.getBoundingRect()),t.transform&&mw.applyTransform(t.transform),vw.width=e,vw.height=i,!mw.intersect(vw)}function pi(t,e){if(t==e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0}function gi(t,e){for(var i=0;i<t.length;i++){var n=t[i];n.setTransform(e),e.beginPath(),n.buildPath(e,n.shape),e.clip(),n.restoreTransform(e)}}function mi(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","overflow:hidden","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}function vi(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function yi(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function xi(t){return"mousewheel"===t&&z_.browser.firefox?"DOMMouseScroll":t}function _i(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var r=n.recognize(e,t.handler.findHover(e.zrX,e.zrY,null).target,t.dom);if("end"===i&&n.clear(),r){var o=r.type;e.gestureEvent=o,t.handler.dispatchToElement({target:r.target},o,r.event)}}function bi(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function wi(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Si(t){function e(t,e){return function(){if(!e._touching)return t.apply(e,arguments)}}d(Sw,function(e){t._handlers[e]=m(Mw[e],t)}),d(Cw,function(e){t._handlers[e]=m(Mw[e],t)}),d(ww,function(i){t._handlers[i]=e(Mw[i],t)})}function Ti(t){function e(e,i){d(e,function(e){ut(t,xi(e),i._handlers[e])},i)}ob.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new _w,this._handlers={},Si(this),z_.pointerEventsSupported?e(Cw,this):(z_.touchEventsSupported&&e(Sw,this),e(ww,this))}function Ci(t,e){var i=new Ew(P_(),t,e);return kw[i.id]=i,i}function Mi(t,e){Aw[t]=e}function Di(t){delete kw[t]}function Ii(t){return t instanceof Array?t:null==t?[]:[t]}function Ai(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,r=i.length;n<r;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function ki(t){return!Lw(t)||Pw(t)||t instanceof Date?t:t.value}function Ei(t){return Lw(t)&&!(t instanceof Array)}function Oi(t,e){e=(e||[]).slice();var i=f(t||[],function(t,e){return{exist:t}});return Nw(e,function(t,n){if(Lw(t)){for(r=0;r<i.length;r++)if(!i[r].option&&null!=t.id&&i[r].exist.id===t.id+"")return i[r].option=t,void(e[n]=null);for(var r=0;r<i.length;r++){var o=i[r].exist;if(!(i[r].option||null!=o.id&&null!=t.id||null==t.name||Pi(t)||Pi(o)||o.name!==t.name+""))return i[r].option=t,void(e[n]=null)}}}),Nw(e,function(t,e){if(Lw(t)){for(var n=0;n<i.length;n++){var r=i[n].exist;if(!i[n].option&&!Pi(r)&&null==t.id){i[n].option=t;break}}n>=i.length&&i.push({option:t})}}),i}function Ni(t){var e=R();Nw(t,function(t,i){var n=t.exist;n&&e.set(n.id,t)}),Nw(t,function(t,i){var n=t.option;E(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),Nw(t,function(t,i){var n=t.exist,r=t.option,o=t.keyInfo;if(Lw(r)){if(o.name=null!=r.name?r.name+"":n?n.name:Rw+i,n)o.id=n.id;else if(null!=r.id)o.id=r.id+"";else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}})}function Li(t){var e=t.name;return!(!e||!e.indexOf(Rw))}function Pi(t){return Lw(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function Ri(t,e){function i(t,e,i){for(var n=0,r=t.length;n<r;n++)for(var o=t[n].seriesId,a=Ii(t[n].dataIndex),s=i&&i[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(e[o]||(e[o]={}))[c]=1}}function n(t,e){var i=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)i.push(+r);else{var o=n(t[r],!0);o.length&&i.push({seriesId:r,dataIndex:o})}return i}var r={},o={};return i(t||[],r),i(e||[],o,r),[n(r),n(o)]}function zi(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?y(e.dataIndex)?f(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?y(e.name)?f(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Fi(){var t="__\0ec_inner_"+Fw+++"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}function Bi(t,e,i){if(_(e)){var n={};n[e+"Index"]=0,e=n}var r=i&&i.defaultMainType;!r||Hi(e,r+"Index")||Hi(e,r+"Id")||Hi(e,r+"Name")||(e[r+"Index"]=0);var o={};return Nw(e,function(n,r){var n=e[r];if("dataIndex"!==r&&"dataIndexInside"!==r){var a=r.match(/^(\w+)(Index|Id|Name)$/)||[],s=a[1],u=(a[2]||"").toLowerCase();if(!(!s||!u||null==n||"index"===u&&"none"===n||i&&i.includeMainTypes&&l(i.includeMainTypes,s)<0)){var c={mainType:s};"index"===u&&"all"===n||(c[u]=n);var h=t.queryComponents(c);o[s+"Models"]=h,o[s+"Model"]=h[0]}}else o[r]=n}),o}function Hi(t,e){return t&&t.hasOwnProperty(e)}function Vi(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function Wi(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function $i(t){return"auto"===t?z_.domSupported?"html":"richText":t||"html"}function ji(t){var e={main:"",sub:""};return t&&(t=t.split(Bw),e.main=t[0]||"",e.sub=t[1]||""),e}function Ui(t){E(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Gi(t,e){t.$constructor=t,t.extend=function(t){var e=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return o(i.prototype,t),i.extend=this.extend,i.superCall=Yi,i.superApply=Xi,u(i,this),i.superClass=e,i}}function qi(t){var e=["__\0is_clz",Vw++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function Yi(t,e){var i=A(arguments,2);return this.superClass.prototype[e].apply(t,i)}function Xi(t,e,i){return this.superClass.prototype[e].apply(t,i)}function Zi(t,e){function i(t){var e=n[t.main];return e&&e[Hw]||((e=n[t.main]={})[Hw]=!0),e}e=e||{};var n={};if(t.registerClass=function(t,e){return e&&(Ui(e),(e=ji(e)).sub?e.sub!==Hw&&(i(e)[e.sub]=t):n[e.main]=t),t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[Hw]&&(r=e?r[e]:null),i&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){t=ji(t);var e=[],i=n[t.main];return i&&i[Hw]?d(i,function(t,i){i!==Hw&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=ji(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return d(n,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=ji(t);var e=n[t.main] ;return e&&e[Hw]},t.parseClassType=ji,e.registerWhenExtend){var r=t.extend;r&&(t.extend=function(e){var i=r.call(this,e);return t.registerClass(i,e.type)})}return t}function Ki(t){return t>-Xw&&t<Xw}function Ji(t){return t>Xw||t<-Xw}function Qi(t,e,i,n,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*n+3*o*i)}function tn(t,e,i,n,r){var o=1-r;return 3*(((e-t)*o+2*(i-e)*r)*o+(n-i)*r*r)}function en(t,e,i,n,r,o){var a=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,f=0;if(Ki(c)&&Ki(h))Ki(s)?o[0]=0:(T=-l/s)>=0&&T<=1&&(o[f++]=T);else{var p=h*h-4*c*d;if(Ki(p)){var g=h/c,m=-g/2;(T=-s/a+g)>=0&&T<=1&&(o[f++]=T),m>=0&&m<=1&&(o[f++]=m)}else if(p>0){var v=Yw(p),y=c*s+1.5*a*(-h+v),x=c*s+1.5*a*(-h-v);(T=(-s-((y=y<0?-qw(-y,Jw):qw(y,Jw))+(x=x<0?-qw(-x,Jw):qw(x,Jw))))/(3*a))>=0&&T<=1&&(o[f++]=T)}else{var _=(2*c*s-3*a*h)/(2*Yw(c*c*c)),b=Math.acos(_)/3,w=Yw(c),S=Math.cos(b),T=(-s-2*w*S)/(3*a),m=(-s+w*(S+Kw*Math.sin(b)))/(3*a),C=(-s+w*(S-Kw*Math.sin(b)))/(3*a);T>=0&&T<=1&&(o[f++]=T),m>=0&&m<=1&&(o[f++]=m),C>=0&&C<=1&&(o[f++]=C)}}return f}function nn(t,e,i,n,r){var o=6*i-12*e+6*t,a=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(Ki(a))Ji(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(Ki(u))r[0]=-o/(2*a);else if(u>0){var c=Yw(u),h=(-o+c)/(2*a),d=(-o-c)/(2*a);h>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}function rn(t,e,i,n,r,o){var a=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=n}function on(t,e,i,n,r,o,a,s,l,u,c){var h,d,f,p,g,m=.005,v=1/0;Qw[0]=l,Qw[1]=u;for(var y=0;y<1;y+=.05)tS[0]=Qi(t,i,r,a,y),tS[1]=Qi(e,n,o,s,y),(p=ib(Qw,tS))<v&&(h=y,v=p);v=1/0;for(var x=0;x<32&&!(m<Zw);x++)d=h-m,f=h+m,tS[0]=Qi(t,i,r,a,d),tS[1]=Qi(e,n,o,s,d),p=ib(tS,Qw),d>=0&&p<v?(h=d,v=p):(eS[0]=Qi(t,i,r,a,f),eS[1]=Qi(e,n,o,s,f),g=ib(eS,Qw),f<=1&&g<v?(h=f,v=g):m*=.5);return c&&(c[0]=Qi(t,i,r,a,h),c[1]=Qi(e,n,o,s,h)),Yw(v)}function an(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function sn(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function ln(t,e,i,n,r){var o=t-2*e+i,a=2*(e-t),s=t-n,l=0;if(Ki(o))Ji(a)&&(h=-s/a)>=0&&h<=1&&(r[l++]=h);else{var u=a*a-4*o*s;if(Ki(u))(h=-a/(2*o))>=0&&h<=1&&(r[l++]=h);else if(u>0){var c=Yw(u),h=(-a+c)/(2*o),d=(-a-c)/(2*o);h>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}function un(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function cn(t,e,i,n,r){var o=(e-t)*n+t,a=(i-e)*n+e,s=(a-o)*n+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=i}function hn(t,e,i,n,r,o,a,s,l){var u,c=.005,h=1/0;Qw[0]=a,Qw[1]=s;for(var d=0;d<1;d+=.05)tS[0]=an(t,i,r,d),tS[1]=an(e,n,o,d),(m=ib(Qw,tS))<h&&(u=d,h=m);h=1/0;for(var f=0;f<32&&!(c<Zw);f++){var p=u-c,g=u+c;tS[0]=an(t,i,r,p),tS[1]=an(e,n,o,p);var m=ib(tS,Qw);if(p>=0&&m<h)u=p,h=m;else{eS[0]=an(t,i,r,g),eS[1]=an(e,n,o,g);var v=ib(eS,Qw);g<=1&&v<h?(u=g,h=v):c*=.5}}return l&&(l[0]=an(t,i,r,u),l[1]=an(e,n,o,u)),Yw(h)}function dn(t,e,i){if(0!==t.length){var n,r=t[0],o=r[0],a=r[0],s=r[1],l=r[1];for(n=1;n<t.length;n++)r=t[n],o=iS(o,r[0]),a=nS(a,r[0]),s=iS(s,r[1]),l=nS(l,r[1]);e[0]=o,e[1]=s,i[0]=a,i[1]=l}}function fn(t,e,i,n,r,o){r[0]=iS(t,i),r[1]=iS(e,n),o[0]=nS(t,i),o[1]=nS(e,n)}function pn(t,e,i,n,r,o,a,s,l,u){var c,h=nn,d=Qi,f=h(t,i,r,a,cS);for(l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0,c=0;c<f;c++){var p=d(t,i,r,a,cS[c]);l[0]=iS(p,l[0]),u[0]=nS(p,u[0])}for(f=h(e,n,o,s,hS),c=0;c<f;c++){var g=d(e,n,o,s,hS[c]);l[1]=iS(g,l[1]),u[1]=nS(g,u[1])}l[0]=iS(t,l[0]),u[0]=nS(t,u[0]),l[0]=iS(a,l[0]),u[0]=nS(a,u[0]),l[1]=iS(e,l[1]),u[1]=nS(e,u[1]),l[1]=iS(s,l[1]),u[1]=nS(s,u[1])}function gn(t,e,i,n,r,o,a,s){var l=un,u=an,c=nS(iS(l(t,i,r),1),0),h=nS(iS(l(e,n,o),1),0),d=u(t,i,r,c),f=u(e,n,o,h);a[0]=iS(t,r,d),a[1]=iS(e,o,f),s[0]=nS(t,r,d),s[1]=nS(e,o,f)}function mn(t,e,i,n,r,o,a,s,l){var u=tt,c=et,h=Math.abs(r-o);if(h%aS<1e-4&&h>1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(sS[0]=oS(r)*i+t,sS[1]=rS(r)*n+e,lS[0]=oS(o)*i+t,lS[1]=rS(o)*n+e,u(s,sS,lS),c(l,sS,lS),(r%=aS)<0&&(r+=aS),(o%=aS)<0&&(o+=aS),r>o&&!a?o+=aS:r<o&&a&&(r+=aS),a){var d=o;o=r,r=d}for(var f=0;f<o;f+=Math.PI/2)f>r&&(uS[0]=oS(f)*i+t,uS[1]=rS(f)*n+e,u(s,uS,s),c(l,uS,l))}function vn(t,e,i,n,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>n+s||a<e-s&&a<n-s||o>t+s&&o>i+s||o<t-s&&o<i-s)return!1;if(t===i)return Math.abs(o-t)<=s/2;var c=(l=(e-n)/(t-i))*o-a+(u=(t*n-i*e)/(t-i));return c*c/(l*l+1)<=s/2*s/2}function yn(t,e,i,n,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;return!(c>e+h&&c>n+h&&c>o+h&&c>s+h||c<e-h&&c<n-h&&c<o-h&&c<s-h||u>t+h&&u>i+h&&u>r+h&&u>a+h||u<t-h&&u<i-h&&u<r-h&&u<a-h)&&on(t,e,i,n,r,o,a,s,u,c,null)<=h/2}function xn(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;return!(l>e+u&&l>n+u&&l>o+u||l<e-u&&l<n-u&&l<o-u||s>t+u&&s>i+u&&s>r+u||s<t-u&&s<i-u&&s<r-u)&&hn(t,e,i,n,r,o,s,l,null)<=u/2}function _n(t){return(t%=CS)<0&&(t+=CS),t}function bn(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>i||c+u<i)return!1;if(Math.abs(n-r)%MS<1e-4)return!0;if(o){var h=n;n=_n(r),r=_n(h)}else n=_n(n),r=_n(r);n>r&&(r+=MS);var d=Math.atan2(l,s);return d<0&&(d+=MS),d>=n&&d<=r||d+MS>=n&&d+MS<=r}function wn(t,e,i,n,r,o){if(o>e&&o>n||o<e&&o<n)return 0;if(n===e)return 0;var a=n<e?1:-1,s=(o-e)/(n-e);1!==s&&0!==s||(a=n<e?.5:-.5);var l=s*(i-t)+t;return l===r?1/0:l>r?a:0}function Sn(t,e){return Math.abs(t-e)<AS}function Tn(){var t=ES[0];ES[0]=ES[1],ES[1]=t}function Cn(t,e,i,n,r,o,a,s,l,u){if(u>e&&u>n&&u>o&&u>s||u<e&&u<n&&u<o&&u<s)return 0;var c=en(e,n,o,s,u,kS);if(0===c)return 0;for(var h,d,f=0,p=-1,g=0;g<c;g++){var m=kS[g],v=0===m||1===m?.5:1;Qi(t,i,r,a,m)<l||(p<0&&(p=nn(e,n,o,s,ES),ES[1]<ES[0]&&p>1&&Tn(),h=Qi(e,n,o,s,ES[0]),p>1&&(d=Qi(e,n,o,s,ES[1]))),2==p?m<ES[0]?f+=h<e?v:-v:m<ES[1]?f+=d<h?v:-v:f+=s<d?v:-v:m<ES[0]?f+=h<e?v:-v:f+=s<h?v:-v)}return f}function Mn(t,e,i,n,r,o,a,s){if(s>e&&s>n&&s>o||s<e&&s<n&&s<o)return 0;var l=ln(e,n,o,s,kS);if(0===l)return 0;var u=un(e,n,o);if(u>=0&&u<=1){for(var c=0,h=an(e,n,o,u),d=0;d<l;d++)f=0===kS[d]||1===kS[d]?.5:1,(p=an(t,i,r,kS[d]))<a||(kS[d]<u?c+=h<e?f:-f:c+=o<h?f:-f);return c}var f=0===kS[0]||1===kS[0]?.5:1,p=an(t,i,r,kS[0]);return p<a?0:o<e?f:-f}function Dn(t,e,i,n,r,o,a,s){if((s-=e)>i||s<-i)return 0;u=Math.sqrt(i*i-s*s),kS[0]=-u,kS[1]=u;var l=Math.abs(n-r);if(l<1e-4)return 0;if(l%IS<1e-4)return n=0,r=IS,p=o?1:-1,a>=kS[0]+t&&a<=kS[1]+t?p:0;if(o){var u=n;n=_n(r),r=_n(u)}else n=_n(n),r=_n(r);n>r&&(r+=IS);for(var c=0,h=0;h<2;h++){var d=kS[h];if(d+t>a){var f=Math.atan2(s,d),p=o?1:-1;f<0&&(f=IS+f),(f>=n&&f<=r||f+IS>=n&&f+IS<=r)&&(f>Math.PI/2&&f<1.5*Math.PI&&(p=-p),c+=p)}}return c}function In(t,e,i,n,r){for(var o=0,a=0,s=0,l=0,u=0,c=0;c<t.length;){var h=t[c++];switch(h===DS.M&&c>1&&(i||(o+=wn(a,s,l,u,n,r))),1==c&&(l=a=t[c],u=s=t[c+1]),h){case DS.M:a=l=t[c++],s=u=t[c++];break;case DS.L:if(i){if(vn(a,s,t[c],t[c+1],e,n,r))return!0}else o+=wn(a,s,t[c],t[c+1],n,r)||0;a=t[c++],s=t[c++];break;case DS.C:if(i){if(yn(a,s,t[c++],t[c++],t[c++],t[c++],t[c],t[c+1],e,n,r))return!0}else o+=Cn(a,s,t[c++],t[c++],t[c++],t[c++],t[c],t[c+1],n,r)||0;a=t[c++],s=t[c++];break;case DS.Q:if(i){if(xn(a,s,t[c++],t[c++],t[c],t[c+1],e,n,r))return!0}else o+=Mn(a,s,t[c++],t[c++],t[c],t[c+1],n,r)||0;a=t[c++],s=t[c++];break;case DS.A:var d=t[c++],f=t[c++],p=t[c++],g=t[c++],m=t[c++],v=t[c++],y=(t[c++],1-t[c++]),x=Math.cos(m)*p+d,_=Math.sin(m)*g+f;c>1?o+=wn(a,s,x,_,n,r):(l=x,u=_);var b=(n-d)*g/p+d;if(i){if(bn(d,f,g,m,m+v,y,e,b,r))return!0}else o+=Dn(d,f,g,m,m+v,y,b,r);a=Math.cos(m+v)*p+d,s=Math.sin(m+v)*g+f;break;case DS.R:l=a=t[c++],u=s=t[c++];var x=l+t[c++],_=u+t[c++];if(i){if(vn(l,u,x,u,e,n,r)||vn(x,u,x,_,e,n,r)||vn(x,_,l,_,e,n,r)||vn(l,_,l,u,e,n,r))return!0}else o+=wn(x,u,x,_,n,r),o+=wn(l,_,l,u,n,r);break;case DS.Z:if(i){if(vn(a,s,l,u,e,n,r))return!0}else o+=wn(a,s,l,u,n,r);a=l,s=u}}return i||Sn(s,u)||(o+=wn(a,s,l,u,n,r)||0),0!==o}function An(t,e,i){return In(t,0,!1,e,i)}function kn(t,e,i,n){return In(t,e,!0,i,n)}function En(t){ui.call(this,t),this.path=null}function On(t,e,i,n,r,o,a,s,l,u,c){var h=l*($S/180),d=WS(h)*(t-i)/2+VS(h)*(e-n)/2,f=-1*VS(h)*(t-i)/2+WS(h)*(e-n)/2,p=d*d/(a*a)+f*f/(s*s);p>1&&(a*=HS(p),s*=HS(p));var g=(r===o?-1:1)*HS((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,m=g*a*f/s,v=g*-s*d/a,y=(t+i)/2+WS(h)*m-VS(h)*v,x=(e+n)/2+VS(h)*m+WS(h)*v,_=GS([1,0],[(d-m)/a,(f-v)/s]),b=[(d-m)/a,(f-v)/s],w=[(-1*d-m)/a,(-1*f-v)/s],S=GS(b,w);US(b,w)<=-1&&(S=$S),US(b,w)>=1&&(S=0),0===o&&S>0&&(S-=2*$S),1===o&&S<0&&(S+=2*$S),c.addData(u,y,x,a,s,_,S,h,o)}function Nn(t){if(!t)return new TS;for(var e,i=0,n=0,r=i,o=n,a=new TS,s=TS.CMD,l=t.match(qS),u=0;u<l.length;u++){for(var c,h=l[u],d=h.charAt(0),f=h.match(YS)||[],p=f.length,g=0;g<p;g++)f[g]=parseFloat(f[g]);for(var m=0;m<p;){var v,y,x,_,b,w,S,T=i,C=n;switch(d){case"l":i+=f[m++],n+=f[m++],c=s.L,a.addData(c,i,n);break;case"L":i=f[m++],n=f[m++],c=s.L,a.addData(c,i,n);break;case"m":i+=f[m++],n+=f[m++],c=s.M,a.addData(c,i,n),r=i,o=n,d="l";break;case"M":i=f[m++],n=f[m++],c=s.M,a.addData(c,i,n),r=i,o=n,d="L";break;case"h":i+=f[m++],c=s.L,a.addData(c,i,n);break;case"H":i=f[m++],c=s.L,a.addData(c,i,n);break;case"v":n+=f[m++],c=s.L,a.addData(c,i,n);break;case"V":n=f[m++],c=s.L,a.addData(c,i,n);break;case"C":c=s.C,a.addData(c,f[m++],f[m++],f[m++],f[m++],f[m++],f[m++]),i=f[m-2],n=f[m-1];break;case"c":c=s.C,a.addData(c,f[m++]+i,f[m++]+n,f[m++]+i,f[m++]+n,f[m++]+i,f[m++]+n),i+=f[m-2],n+=f[m-1];break;case"S":v=i,y=n;var M=a.len(),D=a.data;e===s.C&&(v+=i-D[M-4],y+=n-D[M-3]),c=s.C,T=f[m++],C=f[m++],i=f[m++],n=f[m++],a.addData(c,v,y,T,C,i,n);break;case"s":v=i,y=n;var M=a.len(),D=a.data;e===s.C&&(v+=i-D[M-4],y+=n-D[M-3]),c=s.C,T=i+f[m++],C=n+f[m++],i+=f[m++],n+=f[m++],a.addData(c,v,y,T,C,i,n);break;case"Q":T=f[m++],C=f[m++],i=f[m++],n=f[m++],c=s.Q,a.addData(c,T,C,i,n);break;case"q":T=f[m++]+i,C=f[m++]+n,i+=f[m++],n+=f[m++],c=s.Q,a.addData(c,T,C,i,n);break;case"T":v=i,y=n;var M=a.len(),D=a.data;e===s.Q&&(v+=i-D[M-4],y+=n-D[M-3]),i=f[m++],n=f[m++],c=s.Q,a.addData(c,v,y,i,n);break;case"t":v=i,y=n;var M=a.len(),D=a.data;e===s.Q&&(v+=i-D[M-4],y+=n-D[M-3]),i+=f[m++],n+=f[m++],c=s.Q,a.addData(c,v,y,i,n);break;case"A":x=f[m++],_=f[m++],b=f[m++],w=f[m++],S=f[m++],On(T=i,C=n,i=f[m++],n=f[m++],w,S,x,_,b,c=s.A,a);break;case"a":x=f[m++],_=f[m++],b=f[m++],w=f[m++],S=f[m++],On(T=i,C=n,i+=f[m++],n+=f[m++],w,S,x,_,b,c=s.A,a)}}"z"!==d&&"Z"!==d||(c=s.Z,a.addData(c),i=r,n=o),e=c}return a.toStatic(),a}function Ln(t,e){var i=Nn(t);return e=e||{},e.buildPath=function(t){if(t.setData)t.setData(i.data),(e=t.getContext())&&t.rebuildPath(e);else{var e=t;i.rebuildPath(e)}},e.applyTransform=function(t){BS(i,t),this.dirty(!0)},e}function Pn(t,e){return new En(Ln(t,e))}function Rn(t,e){return En.extend(Ln(t,e))}function zn(t,e,i,n,r,o,a){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*a+(-3*(e-i)-2*s-l)*o+s*r+e}function Fn(t,e,i){var n=e.points,r=e.smooth;if(n&&n.length>=2){if(r&&"spline"!==r){var o=iT(n,r,i,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var a=n.length,s=0;s<(i?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=n[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{"spline"===r&&(n=eT(n,i)),t.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)t.lineTo(n[s][0],n[s][1])}i&&t.closePath()}}function Bn(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?tn:Qi)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?tn:Qi)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?sn:an)(t.x1,t.cpx1,t.x2,e),(i?sn:an)(t.y1,t.cpy1,t.y2,e)]}function Hn(t){ui.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}function Vn(t){return En.extend(t)}function Wn(t,e,i,n){var r=Pn(t,e);return i&&("center"===n&&(i=jn(i,r.getBoundingRect())),Un(r,i)),r}function $n(t,e,i){var n=new ci({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var r={width:t.width,height:t.height};n.setStyle(jn(e,r))}}});return n}function jn(t,e){var i,n=e.width/e.height,r=t.height*n;return i=r<=t.width?t.height:(r=t.width)/n,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-i/2,width:r,height:i}}function Un(t,e){if(t.applyTransform){var i=t.getBoundingRect().calculateTransform(e);t.applyTransform(i)}}function Gn(t){var e=t.shape,i=t.style.lineWidth;return gT(2*e.x1)===gT(2*e.x2)&&(e.x1=e.x2=Yn(e.x1,i,!0)),gT(2*e.y1)===gT(2*e.y2)&&(e.y1=e.y2=Yn(e.y1,i,!0)),t}function qn(t){var e=t.shape,i=t.style.lineWidth,n=e.x,r=e.y,o=e.width,a=e.height;return e.x=Yn(e.x,i,!0),e.y=Yn(e.y,i,!0),e.width=Math.max(Yn(n+o,i,!1)-e.x,0===o?0:1),e.height=Math.max(Yn(r+a,i,!1)-e.y,0===a?0:1),t}function Yn(t,e,i){var n=gT(2*t);return(n+gT(e))%2==0?n/2:(n+(i?1:-1))/2}function Xn(t){return null!=t&&"none"!==t}function Zn(t){if("string"!=typeof t)return t;var e=_T.get(t);return e||(e=Ht(t,-.1),bT<1e4&&(_T.set(t,e),bT++)),e}function Kn(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var i=t.__normalStl={},n=t.style;for(var r in e)null!=e[r]&&(i[r]=n[r]);i.fill=n.fill,i.stroke=n.stroke}else t.__normalStl=null}}function Jn(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var i=t.useHoverLayer;t.__highlighted=i?"layer":"plain";var n=t.__zr;if(n||!i){var r=t,o=t.style;i&&(o=(r=n.addHover(t)).style),yr(o),i||Kn(r),o.extendFrom(e),Qn(o,e,"fill"),Qn(o,e,"stroke"),vr(o),i||(t.dirty(!1),t.z2+=1)}}}function Qn(t,e,i){!Xn(e[i])&&Xn(t[i])&&(t[i]=Zn(t[i]))}function tr(t){t.__highlighted&&(er(t),t.__highlighted=!1)}function er(t){var e=t.__highlighted;if("layer"===e)t.__zr&&t.__zr.removeHover(t);else if(e){var i=t.style,n=t.__normalStl;n&&(yr(i),t.setStyle(n),vr(i),t.z2-=1)}}function ir(t,e){t.isGroup?t.traverse(function(t){!t.isGroup&&e(t)}):e(t)}function nr(t,e){e=t.__hoverStl=!1!==e&&(e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(tr(t),Jn(t))}function rr(t){return t&&t.__isEmphasisEntered}function or(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasisEntered&&ir(this,Jn)}function ar(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasisEntered&&ir(this,tr)}function sr(){this.__isEmphasisEntered=!0,ir(this,Jn)}function lr(){this.__isEmphasisEntered=!1,ir(this,tr)}function ur(t,e,i){t.isGroup?t.traverse(function(t){!t.isGroup&&nr(t,t.hoverStyle||e)}):nr(t,t.hoverStyle||e),cr(t,i)}function cr(t,e){var i=!1===e;if(t.__hoverSilentOnTouch=null!=e&&e.hoverSilentOnTouch,!i||t.__hoverStyleTrigger){var n=i?"off":"on";t[n]("mouseover",or)[n]("mouseout",ar),t[n]("emphasis",sr)[n]("normal",lr),t.__hoverStyleTrigger=!i}}function hr(t,e,i,n,r,o,a){var s,l=(r=r||yT).labelFetcher,u=r.labelDataIndex,c=r.labelDimIndex,h=i.getShallow("show"),d=n.getShallow("show");(h||d)&&(l&&(s=l.getFormattedLabel(u,"normal",null,c)),null==s&&(s=x(r.defaultText)?r.defaultText(u,r):r.defaultText));var f=h?s:null,p=d?D(l?l.getFormattedLabel(u,"emphasis",null,c):null,s):null;null==f&&null==p||(dr(t,i,o,r),dr(e,n,a,r,!0)),t.text=f,e.text=p}function dr(t,e,i,n,r){return fr(t,e,n,r),i&&o(t,i),t}function fr(t,e,i,n){if((i=i||yT).isRectText){var r=e.getShallow("position")||(n?null:"inside");"outside"===r&&(r="top"),t.textPosition=r,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=D(e.getShallow("distance"),n?null:5)}var a,s=e.ecModel,l=s&&s.option.textStyle,u=pr(e);if(u){a={};for(var c in u)if(u.hasOwnProperty(c)){var h=e.getModel(["rich",c]);gr(a[c]={},h,l,i,n)}}return t.rich=a,gr(t,e,l,i,n,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),t}function pr(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||yT).rich;if(i){e=e||{};for(var n in i)i.hasOwnProperty(n)&&(e[n]=1)}t=t.parentModel}return e}function gr(t,e,i,n,r,o){i=!r&&i||yT,t.textFill=mr(e.getShallow("color"),n)||i.color,t.textStroke=mr(e.getShallow("textBorderColor"),n)||i.textBorderColor,t.textStrokeWidth=D(e.getShallow("textBorderWidth"),i.textBorderWidth),t.insideRawTextPosition=t.textPosition,r||(o&&(t.insideRollbackOpt=n,vr(t)),null==t.textFill&&(t.textFill=n.autoColor)),t.fontStyle=e.getShallow("fontStyle")||i.fontStyle,t.fontWeight=e.getShallow("fontWeight")||i.fontWeight,t.fontSize=e.getShallow("fontSize")||i.fontSize,t.fontFamily=e.getShallow("fontFamily")||i.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),o&&n.disableBox||(t.textBackgroundColor=mr(e.getShallow("backgroundColor"),n),t.textPadding=e.getShallow("padding"),t.textBorderColor=mr(e.getShallow("borderColor"),n),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||i.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||i.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||i.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function mr(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function vr(t){var e=t.insideRollbackOpt;if(e&&null==t.textFill){var i,n=e.useInsideStyle,r=t.insideRawTextPosition,o=e.autoColor;!1!==n&&(!0===n||e.isRectText&&r&&"string"==typeof r&&r.indexOf("inside")>=0)?(i={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=o,null==t.textStrokeWidth&&(t.textStrokeWidth=2))):null!=o&&(i={textFill:null},t.textFill=o),i&&(t.insideRollback=i)}}function yr(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function xr(t,e){var i=e||e.getModel("textStyle");return O([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function _r(t,e,i,n,r,o){if("function"==typeof r&&(o=r,r=null),n&&n.isAnimationEnabled()){var a=t?"Update":"",s=n.getShallow("animationDuration"+a),l=n.getShallow("animationEasing"+a),u=n.getShallow("animationDelay"+a);"function"==typeof u&&(u=u(r,n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null)),"function"==typeof s&&(s=s(r)),s>0?e.animateTo(i,s,u||0,l,o,!!o):(e.stopAnimation(),e.attr(i),o&&o())}else e.stopAnimation(),e.attr(i),o&&o()}function br(t,e,i,n,r){_r(!0,t,e,i,n,r)}function wr(t,e,i,n,r){_r(!1,t,e,i,n,r)}function Sr(t,e){for(var i=vt([]);t&&t!==e;)xt(i,t.getLocalTransform(),i),t=t.parent;return i}function Tr(t,e,i){return e&&!h(e)&&(e=mb.getLocalTransform(e)),i&&(e=St([],e)),Q([],t,e)}function Cr(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return o=Tr(o,e,i),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Mr(t,e,i,n){function r(t){var e={position:V(t.position),rotation:t.rotation};return t.shape&&(e.shape=o({},t.shape)),e}if(t&&e){var a=function(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var n=r(t);t.attr(r(e)),br(t,n,i,t.dataIndex)}}})}}function Dr(t,e){return f(t,function(t){var i=t[0];i=mT(i,e.x),i=vT(i,e.x+e.width);var n=t[1];return n=mT(n,e.y),n=vT(n,e.y+e.height),[i,n]})}function Ir(t,e,i){var n=(e=o({rectHover:!0},e)).style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(n.image=t.slice(8),a(n,i),new ci(e)):Wn(t.replace("path://",""),e,i,"center")}function Ar(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function kr(t,e,i){for(var n=0;n<e.length&&(!e[n]||null!=(t=t&&"object"==typeof t?t[e[n]]:null));n++);return null==t&&i&&(t=i.get(e)),t}function Er(t,e){var i=IT(t).getParent;return i?i.call(t,e):t.parentModel}function Or(t){return[t||"",AT++,Math.random().toFixed(5)].join("_")}function Nr(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}function Lr(t,e,i,n){var r=e[1]-e[0],o=i[1]-i[0];if(0===r)return 0===o?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/r*o+i[0]}function Pr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?Nr(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Rr(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t}function zr(t){return t.sort(function(t,e){return t-e}),t}function Fr(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i}function Br(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return n<0?-n:0}var r=e.indexOf(".");return r<0?0:e.length-1-r}function Hr(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),o=Math.round(i(Math.abs(e[1]-e[0]))/n),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Vr(t,e,i){if(!t[e])return 0;var n=p(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return 0;for(var r=Math.pow(10,i),o=f(t,function(t){return(isNaN(t)?0:t)/n*r*100}),a=100*r,s=f(o,function(t){return Math.floor(t)}),l=p(s,function(t,e){return t+e},0),u=f(o,function(t,e){return t-s[e]});l<a;){for(var c=Number.NEGATIVE_INFINITY,h=null,d=0,g=u.length;d<g;++d)u[d]>c&&(c=u[d],h=d);++s[h],u[h]=0,++l}return s[e]/r}function Wr(t){var e=2*Math.PI;return(t%e+e)%e}function $r(t){return t>-kT&&t<kT}function jr(t){if(t instanceof Date)return t;if("string"==typeof t){var e=OT.exec(t);if(!e)return new Date(NaN);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Ur(t){return Math.pow(10,Gr(t))}function Gr(t){return Math.floor(Math.log(t)/Math.LN10)}function qr(t,e){var i,n=Gr(t),r=Math.pow(10,n),o=t/r;return i=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=i*r,n>=-20?+t.toFixed(n<0?-n:0):t}function Yr(t){function e(t,i,n){return t.interval[n]<i.interval[n]||t.interval[n]===i.interval[n]&&(t.close[n]-i.close[n]==(n?-1:1)||!n&&e(t,i,1))}t.sort(function(t,i){return e(t,i,0)?-1:1});for(var i=-1/0,n=1,r=0;r<t.length;){for(var o=t[r].interval,a=t[r].close,s=0;s<2;s++)o[s]<=i&&(o[s]=i,a[s]=s?1:1-n),i=o[s],n=a[s];o[0]===o[1]&&a[0]*a[1]!=1?t.splice(r,1):r++}return t}function Xr(t){return t-parseFloat(t)>=0}function Zr(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Kr(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function Jr(t){return null==t?"":(t+"").replace(PT,function(t,e){return RT[e]})}function Qr(t,e,i){y(e)||(e=[e]);var n=e.length;if(!n)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=zT[o];t=t.replace(FT(a),FT(a,0))}for(var s=0;s<n;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(FT(zT[l],s),i?Jr(u):u)}return t}function to(t,e,i){return d(e,function(e,n){t=t.replace("{"+n+"}",i?Jr(e):e)}),t}function eo(t,e){var i=(t=_(t)?{color:t,extraCssText:e}:t||{}).color,n=t.type,e=t.extraCssText,r=t.renderMode||"html",o=t.markerId||"X";return i?"html"===r?"subItem"===n?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Jr(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+Jr(i)+";"+(e||"")+'"></span>':{renderMode:r,content:"{marker"+o+"|} ",style:{color:i}}:""}function io(t,e){return t+="","0000".substr(0,e-t.length)+t}function no(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=jr(e),r=i?"UTC":"",o=n["get"+r+"FullYear"](),a=n["get"+r+"Month"]()+1,s=n["get"+r+"Date"](),l=n["get"+r+"Hours"](),u=n["get"+r+"Minutes"](),c=n["get"+r+"Seconds"](),h=n["get"+r+"Milliseconds"]();return t=t.replace("MM",io(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100).replace("dd",io(s,2)).replace("d",s).replace("hh",io(l,2)).replace("h",l).replace("mm",io(u,2)).replace("m",u).replace("ss",io(c,2)).replace("s",c).replace("SSS",io(h,3))}function ro(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function oo(t,e,i,n,r){var o=0,a=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var m=f.width+(g?-g.x+f.x:0);(c=o+m)>n||l.newline?(o=0,c=m,a+=s+i,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);(h=a+v)>r||l.newline?(o+=s+i,a=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=o,d[1]=a,"horizontal"===t?o=c+i:a=h+i)})}function ao(t,e,i){var n=e.width,r=e.height,o=Pr(t.x,n),a=Pr(t.y,r),s=Pr(t.x2,n),l=Pr(t.y2,r);return(isNaN(o)||isNaN(parseFloat(t.x)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=n),(isNaN(a)||isNaN(parseFloat(t.y)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=r),i=LT(i||0),{width:Math.max(s-o-i[1]-i[3],0),height:Math.max(l-a-i[0]-i[2],0)}}function so(t,e,i){i=LT(i||0);var n=e.width,r=e.height,o=Pr(t.left,n),a=Pr(t.top,r),s=Pr(t.right,n),l=Pr(t.bottom,r),u=Pr(t.width,n),c=Pr(t.height,r),h=i[2]+i[0],d=i[1]+i[3],f=t.aspect;switch(isNaN(u)&&(u=n-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>n/r?u=.8*n:c=.8*r),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=n-s-u-d),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=n/2-u/2-i[3];break;case"right":o=n-u-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-i[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=n-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var p=new ue(o+i[3],a+i[0],u,c);return p.margin=i,p}function lo(t,e,i,n,r){var o=!r||!r.hv||r.hv[0],s=!r||!r.hv||r.hv[1],l=r&&r.boundingMode||"all";if(o||s){var u;if("raw"===l)u="group"===t.type?new ue(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(u=u.clone()).applyTransform(c)}e=so(a({width:u.width,height:u.height},e),i,n);var h=t.position,d=o?e.x-u.x:0,f=s?e.y-u.y:0;t.attr("position","raw"===l?[d,f]:[h[0]+d,h[1]+f])}}function uo(t,e){return null!=t[jT[e][0]]||null!=t[jT[e][1]]&&null!=t[jT[e][2]]}function co(t,e,i){function n(i,n){var a={},l=0,u={},c=0;if(WT(i,function(e){u[e]=t[e]}),WT(i,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&c++}),s[n])return o(e,i[1])?u[i[2]]=null:o(e,i[2])&&(u[i[1]]=null),u;if(2!==c&&l){if(l>=2)return a;for(var h=0;h<i.length;h++){var d=i[h];if(!r(a,d)&&r(t,d)){a[d]=t[d];break}}return a}return u}function r(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,i){WT(t,function(t){e[t]=i[t]})}!b(i)&&(i={});var s=i.ignoreSize;!y(s)&&(s=[s,s]);var l=n(jT[0],0),u=n(jT[1],1);a(jT[0],t,l),a(jT[1],t,u)}function ho(t){return fo({},t)}function fo(t,e){return e&&t&&WT($T,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}function po(t,e){for(var i=t.length,n=0;n<i;n++)if(t[n].length>e)return t[n];return t[i-1]}function go(t){var e=t.get("coordinateSystem"),i={coordSysName:e,coordSysDims:[],axisMap:R(),categoryAxisMap:R()},n=QT[e];if(n)return n(t,i,i.axisMap,i.categoryAxisMap),i}function mo(t){return"category"===t.get("type")}function vo(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===nC?{}:[]),this.sourceFormat=t.sourceFormat||rC,this.seriesLayoutBy=t.seriesLayoutBy||aC,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&R(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}function yo(t){var e=t.option.source,i=rC;if(S(e))i=oC;else if(y(e)){0===e.length&&(i=eC);for(var n=0,r=e.length;n<r;n++){var o=e[n];if(null!=o){if(y(o)){i=eC;break}if(b(o)){i=iC;break}}}}else if(b(e)){for(var a in e)if(e.hasOwnProperty(a)&&h(e[a])){i=nC;break}}else if(null!=e)throw new Error("Invalid data");lC(t).sourceFormat=i}function xo(t){return lC(t).source}function _o(t){lC(t).datasetMap=R()}function bo(t){var e=t.option,i=e.data,n=S(i)?oC:tC,r=!1,o=e.seriesLayoutBy,a=e.sourceHeader,s=e.dimensions,l=Do(t);if(l){var u=l.option;i=u.source,n=lC(l).sourceFormat,r=!0,o=o||u.seriesLayoutBy,null==a&&(a=u.sourceHeader),s=s||u.dimensions}var c=wo(i,n,o,a,s),h=e.encode;!h&&l&&(h=Mo(t,l,i,n,o,c)),lC(t).source=new vo({data:i,fromDataset:r,seriesLayoutBy:o,sourceFormat:n,dimensionsDefine:c.dimensionsDefine,startIndex:c.startIndex,dimensionsDetectCount:c.dimensionsDetectCount,encodeDefine:h})}function wo(t,e,i,n,r){if(!t)return{dimensionsDefine:So(r)};var o,a,s;if(e===eC)"auto"===n||null==n?To(function(t){null!=t&&"-"!==t&&(_(t)?null==a&&(a=1):a=0)},i,t,10):a=n?1:0,r||1!==a||(r=[],To(function(t,e){r[e]=null!=t?t:""},i,t)),o=r?r.length:i===sC?t.length:t[0]?t[0].length:null;else if(e===iC)r||(r=Co(t),s=!0);else if(e===nC)r||(r=[],s=!0,d(t,function(t,e){r.push(e)}));else if(e===tC){var l=ki(t[0]);o=y(l)&&l.length||1}var u;return s&&d(r,function(t,e){"name"===(b(t)?t.name:t)&&(u=e)}),{startIndex:a,dimensionsDefine:So(r),dimensionsDetectCount:o,potentialNameDimIndex:u}}function So(t){if(t){var e=R();return f(t,function(t,i){if(null==(t=o({},b(t)?t:{name:t})).name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var n=e.get(t.name);return n?t.name+="-"+n.count++:e.set(t.name,{count:1}),t})}}function To(t,e,i,n){if(null==n&&(n=1/0),e===sC)for(o=0;o<i.length&&o<n;o++)t(i[o]?i[o][0]:null,o);else for(var r=i[0]||[],o=0;o<r.length&&o<n;o++)t(r[o],o)}function Co(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e){var n=[];return d(e,function(t,e){n.push(e)}),n}}function Mo(t,e,i,n,r,o){var a=go(t),s={},l=[],u=[],c=t.subType,h=R(["pie","map","funnel"]),f=R(["line","bar","pictorialBar","scatter","effectScatter","candlestick","boxplot"]);if(a&&null!=f.get(c)){var p=t.ecModel,g=lC(p).datasetMap,m=e.uid+"_"+r,v=g.get(m)||g.set(m,{categoryWayDim:1,valueWayDim:0});d(a.coordSysDims,function(t){if(null==a.firstCategoryDimIndex)e=v.valueWayDim++,s[t]=e,u.push(e);else if(a.categoryAxisMap.get(t))s[t]=0,l.push(0);else{var e=v.categoryWayDim++;s[t]=e,u.push(e)}})}else if(null!=h.get(c)){for(var y,x=0;x<5&&null==y;x++)Ao(i,n,r,o.dimensionsDefine,o.startIndex,x)||(y=x);if(null!=y){s.value=y;var _=o.potentialNameDimIndex||Math.max(y-1,0);u.push(_),l.push(_)}}return l.length&&(s.itemName=l),u.length&&(s.seriesName=u),s}function Do(t){var e=t.option;if(!e.data)return t.ecModel.getComponent("dataset",e.datasetIndex||0)}function Io(t,e){return Ao(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Ao(t,e,i,n,r,o){function a(t){return(null==t||!isFinite(t)||""===t)&&(!(!_(t)||"-"===t)||void 0)}var s;if(S(t))return!1;var l;if(n&&(l=b(l=n[o])?l.name:l),e===eC)if(i===sC){for(var u=t[o],c=0;c<(u||[]).length&&c<5;c++)if(null!=(s=a(u[r+c])))return s}else for(c=0;c<t.length&&c<5;c++){var h=t[r+c];if(h&&null!=(s=a(h[o])))return s}else if(e===iC){if(!l)return;for(c=0;c<t.length&&c<5;c++)if((d=t[c])&&null!=(s=a(d[l])))return s}else if(e===nC){if(!l)return;if(!(u=t[l])||S(u))return!1;for(c=0;c<u.length&&c<5;c++)if(null!=(s=a(u[c])))return s}else if(e===tC)for(c=0;c<t.length&&c<5;c++){var d=t[c],f=ki(d);if(!y(f))return!1;if(null!=(s=a(f[o])))return s}return!1}function ko(t,e){if(e){var i=e.seiresIndex,n=e.seriesId,r=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=r&&t.name!==r}}function Eo(t,e){var r=t.color&&!t.colorLayer;d(e,function(e,o){"colorLayer"===o&&r||YT.hasClass(o)||("object"==typeof e?t[o]=t[o]?n(t[o],e,!1):i(e):null==t[o]&&(t[o]=e))})}function Oo(t){t=t,this.option={},this.option[uC]=1, this._componentsMap=R({series:[]}),this._seriesIndices,this._seriesIndicesMap,Eo(t,this._theme.option),n(t,ZT,!1),this.mergeOption(t)}function No(t,e){y(e)||(e=e?[e]:[]);var i={};return d(e,function(e){i[e]=(t.get(e)||[]).slice()}),i}function Lo(t,e,i){return e.type?e.type:i?i.subType:YT.determineSubType(t,e)}function Po(t,e){t._seriesIndicesMap=R(t._seriesIndices=f(e,function(t){return t.componentIndex})||[])}function Ro(t,e){return e.hasOwnProperty("subType")?g(t,function(t){return t.subType===e.subType}):t}function zo(t){d(hC,function(e){this[e]=m(t[e],t)},this)}function Fo(){this._coordinateSystems=[]}function Bo(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function Ho(t,e,i){var n,r,o=[],a=[],s=t.timeline;if(t.baseOption&&(r=t.baseOption),(s||t.options)&&(r=r||{},o=(t.options||[]).slice()),t.media){r=r||{};var l=t.media;fC(l,function(t){t&&t.option&&(t.query?a.push(t):n||(n=t))})}return r||(r=t),r.timeline||(r.timeline=s),fC([r].concat(o).concat(f(a,function(t){return t.option})),function(t){fC(e,function(e){e(t,i)})}),{baseOption:r,timelineOptions:o,mediaDefault:n,mediaList:a}}function Vo(t,e,i){var n={width:e,height:i,aspectratio:e/i},r=!0;return d(t,function(t,e){var i=e.match(vC);if(i&&i[1]&&i[2]){var o=i[1],a=i[2].toLowerCase();Wo(n[a],t,o)||(r=!1)}}),r}function Wo(t,e,i){return"min"===i?t>=e:"max"===i?t<=e:t===e}function $o(t,e){return t.join(",")===e.join(",")}function jo(t,e){fC(e=e||{},function(e,i){if(null!=e){var n=t[i];if(YT.hasClass(i)){e=Ii(e);var r=Oi(n=Ii(n),e);t[i]=gC(r,function(t){return t.option&&t.exist?mC(t.exist,t.option,!0):t.exist||t.option})}else t[i]=mC(n,e,!0)}})}function Uo(t){var e=t&&t.itemStyle;if(e)for(var i=0,r=_C.length;i<r;i++){var o=_C[i],a=e.normal,s=e.emphasis;a&&a[o]&&(t[o]=t[o]||{},t[o].normal?n(t[o].normal,a[o]):t[o].normal=a[o],a[o]=null),s&&s[o]&&(t[o]=t[o]||{},t[o].emphasis?n(t[o].emphasis,s[o]):t[o].emphasis=s[o],s[o]=null)}}function Go(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,r=t[e].emphasis;n&&(i?(t[e].normal=t[e].emphasis=null,a(t[e],n)):t[e]=n),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r)}}function qo(t){Go(t,"itemStyle"),Go(t,"lineStyle"),Go(t,"areaStyle"),Go(t,"label"),Go(t,"labelLine"),Go(t,"upperLabel"),Go(t,"edgeLabel")}function Yo(t,e){var i=xC(t)&&t[e],n=xC(i)&&i.textStyle;if(n)for(var r=0,o=zw.length;r<o;r++){var e=zw[r];n.hasOwnProperty(e)&&(i[e]=n[e])}}function Xo(t){t&&(qo(t),Yo(t,"label"),t.emphasis&&Yo(t.emphasis,"label"))}function Zo(t){if(xC(t)){Uo(t),qo(t),Yo(t,"label"),Yo(t,"upperLabel"),Yo(t,"edgeLabel"),t.emphasis&&(Yo(t.emphasis,"label"),Yo(t.emphasis,"upperLabel"),Yo(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Uo(e),Xo(e));var i=t.markLine;i&&(Uo(i),Xo(i));var n=t.markArea;n&&Xo(n);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!S(o))for(s=0;s<o.length;s++)Xo(o[s]);d(t.categories,function(t){qo(t)})}if(r&&!S(r))for(s=0;s<r.length;s++)Xo(r[s]);if((e=t.markPoint)&&e.data)for(var a=e.data,s=0;s<a.length;s++)Xo(a[s]);if((i=t.markLine)&&i.data)for(var l=i.data,s=0;s<l.length;s++)y(l[s])?(Xo(l[s][0]),Xo(l[s][1])):Xo(l[s]);"gauge"===t.type?(Yo(t,"axisLabel"),Yo(t,"title"),Yo(t,"detail")):"treemap"===t.type?(Go(t.breadcrumb,"itemStyle"),d(t.levels,function(t){qo(t)})):"tree"===t.type&&qo(t.leaves)}}function Ko(t){return y(t)?t:t?[t]:[]}function Jo(t){return(y(t)?t[0]:t)||{}}function Qo(t,e){e=e.split(",");for(var i=t,n=0;n<e.length&&null!=(i=i&&i[e[n]]);n++);return i}function ta(t,e,i,n){e=e.split(",");for(var r,o=t,a=0;a<e.length-1;a++)null==o[r=e[a]]&&(o[r]={}),o=o[r];(n||null==o[e[a]])&&(o[e[a]]=i)}function ea(t){d(wC,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function ia(t){d(t,function(e,i){var n=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=a.map(o,function(o,l,u){var c=a.get(e.stackedDimension,u);if(isNaN(c))return r;var h,d;s?d=a.getRawIndex(u):h=a.get(e.stackedByDimension,u);for(var f=NaN,p=i-1;p>=0;p--){var g=t[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,h)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(c>=0&&m>0||c<=0&&m<0){c+=m,f=m;break}}}return n[0]=c,n[1]=f,n});a.hostModel.setData(l),e.data=l})}function na(t,e){vo.isInstance(t)||(t=vo.seriesDataToSource(t)),this._source=t;var i=this._data=t.data,n=t.sourceFormat;n===oC&&(this._offset=0,this._dimSize=e,this._data=i),o(this,MC[n===eC?n+"_"+t.seriesLayoutBy:n])}function ra(){return this._data.length}function oa(t){return this._data[t]}function aa(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function sa(t,e,i,n){return null!=i?t[i]:t}function la(t,e,i,n){return ua(t[n],this._dimensionInfos[e])}function ua(t,e){var i=e&&e.type;if("ordinal"===i){var n=e&&e.ordinalMeta;return n?n.parseAndCollect(t):t}return"time"===i&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+jr(t)),null==t||""===t?NaN:+t}function ca(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var r,o,a=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(i);return s&&(r=s.name,o=s.index),DC[a](n,e,o,r)}}}function ha(t,e,i){if(t){var n=t.getProvider().getSource().sourceFormat;if(n===tC||n===iC){var r=t.getRawDataItem(e);return n!==tC||b(r)||(r=null),r?r[i]:void 0}}}function da(t){return new fa(t)}function fa(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}function pa(t,e,i,n,r,o){OC.reset(i,n,r,o),t._callingProgress=e,t._callingProgress({start:i,end:n,count:n-i,next:OC.next},t.context)}function ga(t,e){t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null;var i,n;!e&&t._reset&&((i=t._reset(t.context))&&i.progress&&(n=i.forceFirstProgress,i=i.progress),y(i)&&!i.length&&(i=null)),t._progress=i,t._modBy=t._modDataCount=null;var r=t._downstream;return r&&r.dirty(),n}function ma(t){var e=t.name;Li(t)||(t.name=va(t)||e)}function va(t){var e=t.getRawData(),i=[];return d(e.mapDimension("seriesName",!0),function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}function ya(t){return t.model.getRawData().count()}function xa(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),_a}function _a(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ba(t,e){d(t.CHANGABLE_METHODS,function(i){t.wrapMethod(i,v(wa,e))})}function wa(t){var e=Sa(t);e&&e.setOutputEnd(this.count())}function Sa(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}function Ta(){this.group=new jb,this.uid=Or("viewChart"),this.renderTask=da({plan:Da,reset:Ia}),this.renderTask.context={view:this}}function Ca(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var i=0;i<t.childCount();i++)Ca(t.childAt(i),e)}function Ma(t,e,i){var n=zi(t,e);null!=n?d(Ii(n),function(e){Ca(t.getItemGraphicEl(e),i)}):t.eachItemGraphicEl(function(t){Ca(t,i)})}function Da(t){return BC(t.model)}function Ia(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&FC(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,i,n,r),VC[l]}function Aa(t,e,i){function n(){c=(new Date).getTime(),h=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,c=0,h=null;e=e||0;var d=function(){r=(new Date).getTime(),a=this,s=arguments;var t=l||e,d=l||i;l=null,o=r-(d?u:c)-t,clearTimeout(h),d?h=setTimeout(n,t):o>=0?n():h=setTimeout(n,-o),u=r};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){l=t},d}function ka(t,e,i,n){var r=t[e];if(r){var o=r[WC]||r,a=r[jC];if(r[$C]!==i||a!==n){if(null==i||!n)return t[e]=o;(r=t[e]=Aa(o,i,"debounce"===n))[WC]=o,r[jC]=n,r[$C]=i}return r}}function Ea(t,e){var i=t[e];i&&i[WC]&&(t[e]=i[WC])}function Oa(t,e,i,n){this.ecInstance=t,this.api=e,this.unfinished;var i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice();this._allHandlers=i.concat(n),this._stageTaskMap=R()}function Na(t,e,i,n,r){function o(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}r=r||{};var a;d(e,function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=t._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(t){o(r,t)&&(t.dirty(),h=!0)}),h&&c.dirty(),ZC(c,n);var f=t.getPerformArgs(c,r.block);d.each(function(t){t.perform(f)}),a|=c.perform(f)}else u&&u.each(function(s,l){o(r,s)&&s.dirty();var u=t.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&i.isSeriesFiltered(s.context.model),ZC(s,n),a|=s.perform(u)})}}),t.unfinished|=a}function La(t,e,i,n,r){function o(i){var o=i.uid,s=a.get(o)||a.set(o,da({plan:Ha,reset:Va,count:$a}));s.context={model:i,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},ja(t,i,s)}var a=i.seriesTaskMap||(i.seriesTaskMap=R()),s=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(o):s?n.eachRawSeriesByType(s,o):l&&l(n,r).each(o);var u=t._pipelineMap;a.each(function(t,e){u.get(e)||(t.dispose(),a.removeKey(e))})}function Pa(t,e,i,n,r){function o(e){var i=e.uid,n=s.get(i);n||(n=s.set(i,da({reset:za,onDirty:Ba})),a.dirty()),n.context={model:e,overallProgress:c,modifyOutputEnd:h},n.agent=a,n.__block=c,ja(t,e,n)}var a=i.overallTask=i.overallTask||da({reset:Ra});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:t};var s=a.agentStubMap=a.agentStubMap||R(),l=e.seriesType,u=e.getTargetSeries,c=!0,h=e.modifyOutputEnd;l?n.eachRawSeriesByType(l,o):u?u(n,r).each(o):(c=!1,d(n.getSeries(),o));var f=t._pipelineMap;s.each(function(t,e){f.get(e)||(t.dispose(),a.dirty(),s.removeKey(e))})}function Ra(t){t.overallReset(t.ecModel,t.api,t.payload)}function za(t,e){return t.overallProgress&&Fa}function Fa(){this.agent.dirty(),this.getDownstream().dirty()}function Ba(){this.agent&&this.agent.dirty()}function Ha(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function Va(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ii(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?f(e,function(t,e){return Wa(e)}):KC}function Wa(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(n,o);else r&&r.progress&&r.progress(e,n)}}function $a(t){return t.data.count()}function ja(t,e,i){var n=e.uid,r=t._pipelineMap.get(n);!r.head&&(r.head=i),r.tail&&r.tail.pipe(i),r.tail=i,i.__idxInPipeline=r.count++,i.__pipeline=r}function Ua(t){JC=null;try{t(QC,tM)}catch(t){}return JC}function Ga(t,e){for(var i in e.prototype)t[i]=F}function qa(t){for(_(t)&&(t=(new DOMParser).parseFromString(t,"text/xml")),9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}function Ya(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}function Xa(t,e){for(var i=t.firstChild;i;){if(1===i.nodeType){var n=i.getAttribute("offset");n=n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var r=i.getAttribute("stop-color")||"#000000";e.addColorStop(n,r)}i=i.nextSibling}}function Za(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),a(e.__inheritedStyle,t.__inheritedStyle))}function Ka(t){for(var e=O(t).split(aM),i=[],n=0;n<e.length;n+=2){var r=parseFloat(e[n]),o=parseFloat(e[n+1]);i.push([r,o])}return i}function Ja(t,e,i,n){var r=e.__inheritedStyle||{},a="text"===e.type;if(1===t.nodeType&&(ts(t,e),o(r,es(t)),!n))for(var s in uM)if(uM.hasOwnProperty(s)){var l=t.getAttribute(s);null!=l&&(r[uM[s]]=l)}var u=a?"textFill":"fill",c=a?"textStroke":"stroke";e.style=e.style||new Kb;var h=e.style;null!=r.fill&&h.set(u,Qa(r.fill,i)),null!=r.stroke&&h.set(c,Qa(r.stroke,i)),d(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){var e="lineWidth"===t&&a?"textStrokeWidth":t;null!=r[t]&&h.set(e,parseFloat(r[t]))}),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),d(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(t){null!=r[t]&&h.set(t,r[t])}),r.lineDash&&(e.style.lineDash=O(r.lineDash).split(aM)),h[c]&&"none"!==h[c]&&(e[c]=!0),e.__inheritedStyle=r}function Qa(t,e){var i=e&&t&&t.match(cM);return i?e[O(i[1])]:t}function ts(t,e){var i=t.getAttribute("transform");if(i){var n=null,r=[];(i=i.replace(/,/g," ")).replace(hM,function(t,e,i){r.push(e,i)});for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1];switch(n=n||mt(),s){case"translate":a=O(a).split(aM),_t(n,n,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case"scale":a=O(a).split(aM),wt(n,n,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case"rotate":a=O(a).split(aM),bt(n,n,parseFloat(a[0]));break;case"skew":a=O(a).split(aM),console.warn("Skew transform is not supported yet");break;case"matrix":a=O(a).split(aM),n[0]=parseFloat(a[0]),n[1]=parseFloat(a[1]),n[2]=parseFloat(a[2]),n[3]=parseFloat(a[3]),n[4]=parseFloat(a[4]),n[5]=parseFloat(a[5])}}}e.setLocalTransform(n)}function es(t){var e=t.getAttribute("style"),i={};if(!e)return i;var n={};dM.lastIndex=0;for(var r;null!=(r=dM.exec(e));)n[r[1]]=r[2];for(var o in uM)uM.hasOwnProperty(o)&&null!=n[o]&&(i[uM[o]]=n[o]);return i}function is(t,e,i){var n=e/t.width,r=i/t.height,o=Math.min(n,r);return{scale:[o,o],position:[-(t.x+t.width/2)*o+e/2,-(t.y+t.height/2)*o+i/2]}}function ns(t,e){return(new Ya).parse(t,e)}function rs(t){return function(e,i,n){e=e&&e.toLowerCase(),ob.prototype[t].call(this,e,i,n)}}function os(){ob.call(this)}function as(t,e,n){function r(t,e){return t.__prio-e.__prio}n=n||{},"string"==typeof e&&(e=FM[e]),this.id,this.group,this._dom=t;var o=this._zr=Ci(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=Aa(m(o.flush,o),17),(e=i(e))&&TC(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new Fo;var a=this._api=Ts(this);ve(zM,r),ve(LM,r),this._scheduler=new Oa(this,a,LM,zM),ob.call(this,this._ecEventProcessor=new Cs),this._messageCenter=new os,this._initEvents(),this.resize=m(this.resize,this),this._pendingActions=[],o.animation.on("frame",this._onframe,this),ps(o,this),N(this)}function ss(t,e,i){var n,r=this._model,o=this._coordSysMgr.getCoordinateSystems();e=Bi(r,e);for(var a=0;a<o.length;a++){var s=o[a];if(s[t]&&null!=(n=s[t](r,e,i)))return n}}function ls(t){var e=t._model,i=t._scheduler;i.restorePipelines(e),i.prepareStageTasks(),gs(t,"component",e,i),gs(t,"chart",e,i),i.plan()}function us(t,e,i,n,r){function o(n){n&&n.__alive&&n[e]&&n[e](n.__model,a,t._api,i)}var a=t._model;if(n){var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};r&&(l.subType=r);var u=i.excludeSeriesId;null!=u&&(u=R(Ii(u))),a&&a.eachComponent(l,function(e){u&&null!=u.get(e.id)||o(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)}else vM(t._componentsViews.concat(t._chartsViews),o)}function cs(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries(function(t){n.updateStreamModes(t,i[t.__viewId])})}function hs(t,e){var i=t.type,n=t.escapeConnect,r=OM[i],s=r.actionInfo,l=(s.update||"update").split(":"),u=l.pop();l=null!=l[0]&&_M(l[0]),this[MM]=!0;var c=[t],h=!1;t.batch&&(h=!0,c=f(t.batch,function(e){return e=a(o({},e),t),e.batch=null,e}));var d,p=[],g="highlight"===i||"downplay"===i;vM(c,function(t){d=r.action(t,this._model,this._api),(d=d||o({},t)).type=s.event||d.type,p.push(d),g?us(this,u,t,"series"):l&&us(this,u,t,l.main,l.sub)},this),"none"===u||g||l||(this[DM]?(ls(this),kM.update.call(this,t),this[DM]=!1):kM[u].call(this,t)),d=h?{type:s.event||i,escapeConnect:n,batch:p}:p[0],this[MM]=!1,!e&&this._messageCenter.trigger(d.type,d)}function ds(t){for(var e=this._pendingActions;e.length;){var i=e.shift();hs.call(this,i,t)}}function fs(t){!t&&this.trigger("updated")}function ps(t,e){t.on("rendered",function(){e.trigger("rendered"),!t.animation.isFinished()||e[DM]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})}function gs(t,e,i,n){function r(t){var e="_ec_"+t.id+"_"+t.type,r=s[e];if(!r){var c=_M(t.type);(r=new(o?PC.getClass(c.main,c.sub):Ta.getClass(c.sub))).init(i,u),s[e]=r,a.push(r),l.add(r.group)}t.__viewId=r.__id=e,r.__alive=!0,r.__model=t,r.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!o&&n.prepareView(r,t,i,u)}for(var o="component"===e,a=o?t._componentsViews:t._chartsViews,s=o?t._componentsMap:t._chartsMap,l=t._zr,u=t._api,c=0;c<a.length;c++)a[c].__alive=!1;for(o?i.eachComponent(function(t,e){"series"!==t&&r(e)}):i.eachSeries(r),c=0;c<a.length;){var h=a[c];h.__alive?c++:(!o&&h.renderTask.dispose(),l.remove(h.group),h.dispose(i,u),a.splice(c,1),delete s[h.__id],h.__id=h.group.__ecComponentInfo=null)}}function ms(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function vs(t,e,i,n){ys(t,e,i,n),vM(t._chartsViews,function(t){t.__alive=!1}),xs(t,e,i,n),vM(t._chartsViews,function(t){t.__alive||t.remove(e,i)})}function ys(t,e,i,n,r){vM(r||t._componentsViews,function(t){var r=t.__model;t.render(r,e,i,n),Ss(r,t)})}function xs(t,e,i,n,r){var o,a=t._scheduler;e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];i.__alive=!0;var s=i.renderTask;a.updatePayload(s,n),r&&r.get(e.uid)&&s.dirty(),o|=s.perform(a.getPerformArgs(s)),i.group.silent=!!e.get("silent"),Ss(e,i),ws(e,i)}),a.unfinished|=o,bs(t._zr,e),qC(t._zr.dom,e)}function _s(t,e){vM(RM,function(i){i(t,e)})}function bs(t,e){var i=t.storage,n=0;i.traverse(function(t){t.isGroup||n++}),n>e.get("hoverLayerThreshold")&&!z_.node&&i.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function ws(t,e){var i=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.style.blend!==i&&t.setStyle("blend",i),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.setStyle("blend",i)})})}function Ss(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))})}function Ts(t){var e=t._coordSysMgr;return o(new zo(t),{getCoordinateSystems:m(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}}})}function Cs(){this.eventInfo}function Ms(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][i]=e}var i="__connectUpdateStatus";vM(NM,function(n,r){t._messageCenter.on(r,function(n){if(VM[t.group]&&0!==t[i]){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),o=[];vM(HM,function(e){e!==t&&e.group===t.group&&o.push(e)}),e(o,0),vM(o,function(t){1!==t[i]&&t.dispatchAction(r)}),e(o,2)}})})}function Ds(t){VM[t]=!1}function Is(t){return HM[Wi(t,jM)]}function As(t,e){FM[t]=e}function ks(t){PM.push(t)}function Es(t,e){Rs(LM,t,e,wM)}function Os(t,e,i){"function"==typeof e&&(i=e,e="");var n=xM(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,mM(IM.test(n)&&IM.test(e)),OM[n]||(OM[n]={action:i,actionInfo:t}),NM[e]=n}function Ns(t,e){Fo.register(t,e)}function Ls(t,e){Rs(zM,t,e,SM,"layout")}function Ps(t,e){Rs(zM,t,e,TM,"visual")}function Rs(t,e,i,n,r){(yM(e)||xM(e))&&(i=e,e=n);var o=Oa.wrapStageHandler(i,r);return o.__prio=e,o.__raw=i,t.push(o),o}function zs(t,e){BM[t]=e}function Fs(t){return YT.extend(t)}function Bs(t){return PC.extend(t)}function Hs(t){return LC.extend(t)}function Vs(t){return Ta.extend(t)}function Ws(t){return t}function $s(t,e,i,n,r){this._old=t,this._new=e,this._oldKeyGetter=i||Ws,this._newKeyGetter=n||Ws,this.context=r}function js(t,e,i,n,r){for(var o=0;o<t.length;o++){var a="_ec_"+r[n](t[o],o),s=e[a];null==s?(i.push(a),e[a]=o):(s.length||(e[a]=s=[s]),s.push(o))}}function Us(t){var e={},i=e.encode={},n=R(),r=[],o=[];d(t.dimensions,function(e){var a=t.getDimensionInfo(e),s=a.coordDim;if(s){var l=i[s];i.hasOwnProperty(s)||(l=i[s]=[]),l[a.coordDimIndex]=e,a.isExtraCoord||(n.set(s,1),qs(a.type)&&(r[0]=e)),a.defaultTooltip&&o.push(e)}qM.each(function(t,e){var n=i[e];i.hasOwnProperty(e)||(n=i[e]=[]);var r=a.otherDims[e];null!=r&&!1!==r&&(n[r]=a.name)})});var a=[],s={};n.each(function(t,e){var n=i[e];s[e]=n[0],a=a.concat(n)}),e.dataDimsOnCoord=a,e.encodeFirstDimNotExtra=s;var l=i.label;l&&l.length&&(r=l.slice());var u=i.tooltip;return u&&u.length?o=u.slice():o.length||(o=r.slice()),i.defaultedLabel=r,i.defaultedTooltip=o,e}function Gs(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function qs(t){return!("ordinal"===t||"time"===t)}function Ys(t){return t._rawCount>65535?KM:JM}function Xs(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Zs(t,e){d(QM.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,d(tD,function(n){t[n]=i(e[n])}),t._calculationInfo=o(e._calculationInfo)}function Ks(t){var e=t._invertedIndicesMap;d(e,function(i,n){var r=t._dimensionInfos[n].ordinalMeta;if(r){for(i=e[n]=new KM(r.categories.length),o=0;o<i.length;o++)i[o]=NaN;for(var o=0;o<t._count;o++)i[t.get(n,o)]=o}})}function Js(t,e,i){var n;if(null!=e){var r=t._chunkSize,o=Math.floor(i/r),a=i%r,s=t.dimensions[e],l=t._storage[s][o];if(l){n=l[a];var u=t._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(n=u.categories[n])}}return n}function Qs(t){return t}function tl(t){return t<this._count&&t>=0?this._indices[t]:-1}function el(t,e){var i=t._idList[e];return null==i&&(i=Js(t,t._idDimIdx,e)),null==i&&(i=XM+e),i}function il(t){return y(t)||(t=[t]),t}function nl(t,e){var i=t.dimensions,n=new eD(f(i,t.getDimensionInfo,t),t.hostModel);Zs(n,t);for(var r=n._storage={},o=t._storage,a=0;a<i.length;a++){var s=i[a];o[s]&&(l(e,s)>=0?(r[s]=rl(o[s]),n._rawExtent[s]=ol(),n._extent[s]=null):r[s]=o[s])}return n}function rl(t){for(var e=new Array(t.length),i=0;i<t.length;i++)e[i]=Xs(t[i]);return e}function ol(){return[1/0,-1/0]}function al(t,e,n){function r(t,e,i){null!=qM.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,c.set(e,!0))}vo.isInstance(e)||(e=vo.seriesDataToSource(e)),n=n||{},t=(t||[]).slice();for(var s=(n.dimsDef||[]).slice(),l=R(n.encodeDef),u=R(),c=R(),h=[],f=sl(e,t,s,n.dimCount),p=0;p<f;p++){var g=s[p]=o({},b(s[p])?s[p]:{name:s[p]}),m=g.name,v=h[p]={otherDims:{}};null!=m&&null==u.get(m)&&(v.name=v.displayName=m,u.set(m,p)),null!=g.type&&(v.type=g.type),null!=g.displayName&&(v.displayName=g.displayName)}l.each(function(t,e){if(1===(t=Ii(t).slice()).length&&t[0]<0)l.set(e,!1);else{var i=l.set(e,[]);d(t,function(t,n){_(t)&&(t=u.get(t)),null!=t&&t<f&&(i[n]=t,r(h[t],e,n))})}});var y=0;d(t,function(t,e){var n,t,o,s;if(_(t))n=t,t={};else{n=t.name;var u=t.ordinalMeta;t.ordinalMeta=null,(t=i(t)).ordinalMeta=u,o=t.dimsDef,s=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}var c=l.get(n);if(!1!==c){if(!(c=Ii(c)).length)for(var f=0;f<(o&&o.length||1);f++){for(;y<h.length&&null!=h[y].coordDim;)y++;y<h.length&&c.push(y++)}d(c,function(e,i){var l=h[e];if(r(a(l,t),n,i),null==l.name&&o){var u=o[i];!b(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}s&&a(l.otherDims,s)})}});var x=n.generateCoord,w=n.generateCoordCount,S=null!=w;w=x?w||1:0;for(var T=x||"value",C=0;C<f;C++)null==(v=h[C]=h[C]||{}).coordDim&&(v.coordDim=ll(T,c,S),v.coordDimIndex=0,(!x||w<=0)&&(v.isExtraCoord=!0),w--),null==v.name&&(v.name=ll(v.coordDim,u)),null==v.type&&Io(e,C,v.name)&&(v.type="ordinal");return h}function sl(t,e,i,n){var r=Math.max(t.dimensionsDetectCount||1,e.length,i.length,n||0);return d(e,function(t){var e=t.dimsDef;e&&(r=Math.max(r,e.length))}),r}function ll(t,e,i){if(i||null!=e.get(t)){for(var n=0;null!=e.get(t+n);)n++;t+=n}return e.set(t,!0),t}function ul(t,e,i){var n,r,o,a,s=(i=i||{}).byIndex,l=i.stackedCoordDimension,u=!(!t||!t.get("stack"));if(d(e,function(t,i){_(t)&&(e[i]=t={name:t}),u&&!t.isExtraCoord&&(s||n||!t.ordinalMeta||(n=t),r||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(r=t))}),!r||s||n||(s=!0),r){o="__\0ecstackresult",a="__\0ecstackedover",n&&(n.createInvertedIndices=!0);var c=r.coordDim,h=r.type,f=0;d(e,function(t){t.coordDim===c&&f++}),e.push({name:o,coordDim:c,coordDimIndex:f,type:h,isExtraCoord:!0,isCalculationCoord:!0}),f++,e.push({name:a,coordDim:a,coordDimIndex:f,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:r&&r.name,stackedByDimension:n&&n.name,isStackedByIndex:s,stackedOverDimension:a,stackResultDimension:o}}function cl(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function hl(t,e){return cl(t,e)?t.getCalculationInfo("stackResultDimension"):e}function dl(t,e,i){i=i||{},vo.isInstance(t)||(t=vo.seriesDataToSource(t));var n,r=e.get("coordinateSystem"),o=Fo.get(r),a=go(e);a&&(n=f(a.coordSysDims,function(t){var e={name:t},i=a.axisMap.get(t);if(i){var n=i.get("type");e.type=Gs(n)}return e})),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]);var s,l,u=rD(t,{coordDimensions:n,generateCoord:i.generateCoord});a&&d(u,function(t,e){var i=t.coordDim,n=a.categoryAxisMap.get(i);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta()),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(u[s].otherDims.itemName=0);var c=ul(e,u),h=new eD(u,e);h.setCalculationInfo(c);var p=null!=s&&fl(t)?function(t,e,i,n){return n===s?i:this.defaultDimValueGetter(t,e,i,n)}:null;return h.hasItemOption=!1,h.initData(t,null,p),h}function fl(t){if(t.sourceFormat===tC){var e=pl(t.data||[]);return null!=e&&!y(ki(e))}}function pl(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function gl(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}function ml(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}function vl(t){return t._map||(t._map=R(t.categories))}function yl(t){return b(t)&&null!=t.value?t.value:t+""}function xl(t,e,i,n){var r={},o=t[1]-t[0],a=r.interval=qr(o/e,!0);null!=i&&a<i&&(a=r.interval=i),null!=n&&a>n&&(a=r.interval=n);var s=r.intervalPrecision=_l(a);return wl(r.niceTickExtent=[lD(Math.ceil(t[0]/a)*a,s),lD(Math.floor(t[1]/a)*a,s)],t),r}function _l(t){return Br(t)+2}function bl(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function wl(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),bl(t,0,e),bl(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Sl(t,e,i,n){var r=[];if(!t)return r;e[0]<i[0]&&r.push(e[0]);for(var o=i[0];o<=i[1]&&(r.push(o),(o=lD(o+t,n))!==r[r.length-1]);)if(r.length>1e4)return[];return e[1]>(r.length?r[r.length-1]:i[1])&&r.push(e[1]),r}function Tl(t){return t.get("stack")||hD+t.seriesIndex}function Cl(t){return t.dim+t.index}function Ml(t){var e=[],i=t.axis;if("category"===i.type){for(var n=i.getBandWidth(),r=0;r<t.count;r++)e.push(a({bandWidth:n,axisKey:"axis0",stackId:hD+r},t));for(var o=Al(e),s=[],r=0;r<t.count;r++){var l=o.axis0[hD+r];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Dl(t,e){var i=[];return e.eachSeriesByType(t,function(t){Ol(t)&&!Nl(t)&&i.push(t)}),i}function Il(t){var e=[];return d(t,function(t){var i=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=n.getExtent(),o="category"===n.type?n.getBandWidth():Math.abs(r[1]-r[0])/i.count(),a=Pr(t.get("barWidth"),o),s=Pr(t.get("barMaxWidth"),o),l=t.get("barGap"),u=t.get("barCategoryGap");e.push({bandWidth:o,barWidth:a,barMaxWidth:s,barGap:l,barCategoryGap:u,axisKey:Cl(n),stackId:Tl(t)})}),Al(e)}function Al(t){var e={};d(t,function(t,i){var n=t.axisKey,r=t.bandWidth,o=e[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=o.stacks;e[n]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barGap;null!=c&&(o.gap=c);var h=t.barCategoryGap;null!=h&&(o.categoryGap=h)});var i={};return d(e,function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=Pr(t.categoryGap,r),a=Pr(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),d(n,function(t,e){var i=t.maxWidth;i&&i<u&&(i=Math.min(i,s),t.width&&(i=Math.min(i,t.width)),s-=i,t.width=i,l--)}),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,h=0;d(n,function(t,e){t.width||(t.width=u),c=t,h+=t.width*(1+a)}),c&&(h-=c.width*a);var f=-h/2;d(n,function(t,n){i[e][n]=i[e][n]||{offset:f,width:t.width},f+=t.width*(1+a)})}),i}function kl(t,e,i){if(t&&e){var n=t[Cl(e)];return null!=n&&null!=i&&(n=n[Tl(i)]),n}}function El(t,e){var i=Dl(t,e),n=Il(i),r={};d(i,function(t){var e=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=Tl(t),s=n[Cl(o)][a],l=s.offset,u=s.width,c=i.getOtherAxis(o),h=t.get("barMinHeight")||0;r[a]=r[a]||[],e.setLayout({offset:l,size:u});for(var d=e.mapDimension(c.dim),f=e.mapDimension(o.dim),p=cl(e,d),g=c.isHorizontal(),m=Ll(o,c,p),v=0,y=e.count();v<y;v++){var x=e.get(d,v),_=e.get(f,v);if(!isNaN(x)){var b=x>=0?"p":"n",w=m;p&&(r[a][_]||(r[a][_]={p:m,n:m}),w=r[a][_][b]);var S,T,C,M;if(g)S=w,T=(D=i.dataToPoint([x,_]))[1]+l,C=D[0]-m,M=u,Math.abs(C)<h&&(C=(C<0?-1:1)*h),p&&(r[a][_][b]+=C);else{var D=i.dataToPoint([_,x]);S=D[0]+l,T=w,C=u,M=D[1]-m,Math.abs(M)<h&&(M=(M<=0?-1:1)*h),p&&(r[a][_][b]+=M)}e.setItemLayout(v,{x:S,y:T,width:C,height:M})}}},this)}function Ol(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Nl(t){return t.pipelineContext&&t.pipelineContext.large}function Ll(t,e,i){var n,r,o=e.getGlobalExtent();o[0]>o[1]?(n=o[1],r=o[0]):(n=o[0],r=o[1]);var a=e.toGlobalCoord(e.dataToCoord(0));return a<n&&(a=n),a>r&&(a=r),a}function Pl(t,e){return SD(t,wD(e))}function Rl(t,e){var i,n,r,o=t.type,a=e.getMin(),s=e.getMax(),l=null!=a,u=null!=s,c=t.getExtent();"ordinal"===o?i=e.getCategories().length:(y(n=e.get("boundaryGap"))||(n=[n||0,n||0]),"boolean"==typeof n[0]&&(n=[0,0]),n[0]=Pr(n[0],1),n[1]=Pr(n[1],1),r=c[1]-c[0]||Math.abs(c[0])),null==a&&(a="ordinal"===o?i?0:NaN:c[0]-n[0]*r),null==s&&(s="ordinal"===o?i?i-1:NaN:c[1]+n[1]*r),"dataMin"===a?a=c[0]:"function"==typeof a&&(a=a({min:c[0],max:c[1]})),"dataMax"===s?s=c[1]:"function"==typeof s&&(s=s({min:c[0],max:c[1]})),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN),t.setBlank(C(a)||C(s)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=e.ecModel;if(h&&"time"===o){var f,p=Dl("bar",h);if(d(p,function(t){f|=t.getBaseAxis()===e.axis}),f){var g=Il(p),m=zl(a,s,e,g);a=m.min,s=m.max}}return[a,s]}function zl(t,e,i,n){var r=i.axis.getExtent(),o=r[1]-r[0],a=kl(n,i.axis);if(void 0===a)return{min:t,max:e};var s=1/0;d(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;d(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return e+=h*(l/u),t-=h*(s/u),{min:t,max:e}}function Fl(t,e){var i=Rl(t,e),n=null!=e.getMin(),r=null!=e.getMax(),o=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var a=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:o,fixMin:n,fixMax:r,minInterval:"interval"===a||"time"===a?e.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)}function Bl(t,e){if(e=e||t.get("type"))switch(e){case"category":return new sD(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new cD;default:return(gl.getClass(e)||cD).create(t)}}function Hl(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)}function Vl(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof e?e=function(e){return function(i){return i=t.scale.getLabel(i),e.replace("{value}",null!=i?i:"")}}(e):"function"==typeof e?function(n,r){return null!=i&&(r=n-i),e(Wl(t,n),r)}:function(e){ return t.scale.getLabel(e)}}function Wl(t,e){return"category"===t.type?t.scale.getLabel(e):e}function $l(t){var e=t.model,i=t.scale;if(e.get("axisLabel.show")&&!i.isBlank()){var n,r,o="category"===t.type,a=i.getExtent();r=o?i.count():(n=i.getTicks()).length;var s,l=t.getLabelModel(),u=Vl(t),c=1;r>40&&(c=Math.ceil(r/40));for(var h=0;h<r;h+=c){var d=u(n?n[h]:a[0]+h),f=jl(l.getTextRect(d),l.get("rotate")||0);s?s.union(f):s=f}return s}}function jl(t,e){var i=e*Math.PI/180,n=t.plain(),r=n.width,o=n.height,a=r*Math.cos(i)+o*Math.sin(i),s=r*Math.sin(i)+o*Math.cos(i);return new ue(n.x,n.y,a,s)}function Ul(t,e){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=t:this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff"):(i.fill&&(i.fill=t),i.stroke&&(i.stroke=t)),this.dirty(!1)}}function Gl(t,e,i,n,r,o,a){var s=0===t.indexOf("empty");s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?$n(t.slice(8),new ue(e,i,n,r),a?"center":"cover"):0===t.indexOf("path://")?Wn(t.slice(7),{},new ue(e,i,n,r),a?"center":"cover"):new RD({shape:{symbolType:t,x:e,y:i,width:n,height:r}}),l.__isEmptyBrush=s,l.setColor=Ul,l.setColor(o),l}function ql(t,e){return Math.abs(t-e)<BD}function Yl(t,e,i){var n=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];n+=wn(r[0],r[1],a[0],a[1],e,i),r=a}var s=t[0];return ql(r[0],s[0])&&ql(r[1],s[1])||(n+=wn(r[0],r[1],s[0],s[1],e,i)),0!==n}function Xl(t,e,i){if(this.name=t,this.geometries=e,i)i=[i[0],i[1]];else{var n=this.getBoundingRect();i=[n.x+n.width/2,n.y+n.height/2]}this.center=i}function Zl(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var i=t.features,n=0;n<i.length;n++)for(var r=i[n].geometry,o=r.coordinates,a=r.encodeOffsets,s=0;s<o.length;s++){var l=o[s];if("Polygon"===r.type)o[s]=Kl(l,a[s],e);else if("MultiPolygon"===r.type)for(var u=0;u<l.length;u++){var c=l[u];l[u]=Kl(c,a[s][u],e)}}return t.UTF8Encoding=!1,t}function Kl(t,e,i){for(var n=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,n.push([s/i,l/i])}return n}function Jl(t){return"category"===t.type?tu(t):nu(t)}function Ql(t,e){return"category"===t.type?iu(t,e):{ticks:t.scale.getTicks()}}function tu(t){var e=t.getLabelModel(),i=eu(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function eu(t,e){var i=ru(t,"labels"),n=du(e),r=ou(i,n);if(r)return r;var o,a;return o=x(n)?hu(t,n):cu(t,a="auto"===n?su(t):n),au(i,n,{labels:o,labelCategoryInterval:a})}function iu(t,e){var i=ru(t,"ticks"),n=du(e),r=ou(i,n);if(r)return r;var o,a;if(e.get("show")&&!t.scale.isBlank()||(o=[]),x(n))o=hu(t,n,!0);else if("auto"===n){var s=eu(t,t.getLabelModel());a=s.labelCategoryInterval,o=f(s.labels,function(t){return t.tickValue})}else o=cu(t,a=n,!0);return au(i,n,{ticks:o,tickCategoryInterval:a})}function nu(t){var e=t.scale.getTicks(),i=Vl(t);return{labels:f(e,function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e}})}}function ru(t,e){return VD(t)[e]||(VD(t)[e]=[])}function ou(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function au(t,e,i){return t.push({key:e,value:i}),i}function su(t){var e=VD(t).autoInterval;return null!=e?e:VD(t).autoInterval=t.calculateCategoryInterval()}function lu(t){var e=uu(t),i=Vl(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),d=0,f=0;l<=o[1];l+=s){var p=0,g=0,m=Ie(i(l),e.font,"center","top");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var v=d/c,y=f/h;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),_=VD(t.model),b=_.lastAutoInterval,w=_.lastTickCount;return null!=b&&null!=w&&Math.abs(b-x)<=1&&Math.abs(w-a)<=1&&b>x?x=b:(_.lastTickCount=a,_.lastAutoInterval=x),x}function uu(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function cu(t,e,i){function n(t){l.push(i?t:{formattedLabel:r(t),rawLabel:o.getLabel(t),tickValue:t})}var r=Vl(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),c=a[0],h=o.count();0!==c&&u>1&&h/u>2&&(c=Math.round(Math.ceil(c/u)*u));var d={min:s.get("showMinLabel"),max:s.get("showMaxLabel")};d.min&&c!==a[0]&&n(a[0]);for(var f=c;f<=a[1];f+=u)n(f);return d.max&&f!==a[1]&&n(a[1]),l}function hu(t,e,i){var n=t.scale,r=Vl(t),o=[];return d(n.getTicks(),function(t){var a=n.getLabel(t);e(t,a)&&o.push(i?t:{formattedLabel:r(t),rawLabel:a,tickValue:t})}),o}function du(t){var e=t.get("interval");return null==e?"auto":e}function fu(t,e){var i=(t[1]-t[0])/e/2;t[0]+=i,t[1]-=i}function pu(t,e,i,n,r){function o(t,e){return c?t>e:t<e}var a=e.length;if(t.onBand&&!n&&a){var s,l=t.getExtent();if(1===a)e[0].coord=l[0],s=e[1]={coord:l[0]};else{var u=e[1].coord-e[0].coord;d(e,function(t){t.coord-=u/2;var e=e||0;e%2>0&&(t.coord-=u/(2*(e+1)))}),s={coord:e[a-1].coord+u},e.push(s)}var c=l[0]>l[1];o(e[0].coord,l[0])&&(r?e[0].coord=l[0]:e.shift()),r&&o(l[0],e[0].coord)&&e.unshift({coord:l[0]}),o(l[1],s.coord)&&(r?s.coord=l[1]:e.pop()),r&&o(s.coord,l[1])&&e.push({coord:l[1]})}}function gu(t,e){var i=t.mapDimension("defaultedLabel",!0),n=i.length;if(1===n)return ca(t,e,i[0]);if(n){for(var r=[],o=0;o<i.length;o++){var a=ca(t,e,i[o]);r.push(a)}return r.join(" ")}}function mu(t,e,i){jb.call(this),this.updateData(t,e,i)}function vu(t){return[t[0]/2,t[1]/2]}function yu(t,e){this.parent.drift(t,e)}function xu(){!rr(this)&&bu.call(this)}function _u(){!rr(this)&&wu.call(this)}function bu(){if(!this.incremental&&!this.useHoverLayer){var t=this.__symbolOriginalScale,e=t[1]/t[0];this.animateTo({scale:[Math.max(1.1*t[0],t[0]+3),Math.max(1.1*t[1],t[1]+3*e)]},400,"elasticOut")}}function wu(){this.incremental||this.useHoverLayer||this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}function Su(t){this.group=new jb,this._symbolCtor=t||mu}function Tu(t,e,i,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(i))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function Cu(t){return null==t||b(t)||(t={isIgnore:t}),t||{}}function Mu(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}function Du(t,e,i){var n,r=t.getBaseAxis(),o=t.getOtherAxis(r),a=Iu(o,i),s=r.dim,l=o.dim,u=e.mapDimension(l),c=e.mapDimension(s),h="x"===l||"radius"===l?1:0,d=f(t.dimensions,function(t){return e.mapDimension(t)}),p=e.getCalculationInfo("stackResultDimension");return(n|=cl(e,d[0]))&&(d[0]=p),(n|=cl(e,d[1]))&&(d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:l,baseAxisDim:s,stacked:!!n,valueDim:u,baseDim:c,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Iu(t,e){var i=0,n=t.scale.getExtent();return"start"===e?i=n[0]:"end"===e?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function Au(t,e,i,n){var r=NaN;t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=i.get(t.baseDim,n),a[1-o]=r,e.dataToPoint(a)}function ku(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}function Eu(t){return isNaN(t[0])||isNaN(t[1])}function Ou(t,e,i,n,r,o,a,s,l,u,c){return"none"!==u&&u?Nu.apply(this,arguments):Lu.apply(this,arguments)}function Nu(t,e,i,n,r,o,a,s,l,u,c){for(var h=0,d=i,f=0;f<n;f++){var p=e[d];if(d>=r||d<0)break;if(Eu(p)){if(c){d+=o;continue}break}if(d===i)t[o>0?"moveTo":"lineTo"](p[0],p[1]);else if(l>0){var g=e[h],m="y"===u?1:0,v=(p[m]-g[m])*l;rI(aI,g),aI[m]=g[m]+v,rI(sI,p),sI[m]=p[m]-v,t.bezierCurveTo(aI[0],aI[1],sI[0],sI[1],p[0],p[1])}else t.lineTo(p[0],p[1]);h=d,d+=o}return f}function Lu(t,e,i,n,r,o,a,s,l,u,c){for(var h=0,d=i,f=0;f<n;f++){var p=e[d];if(d>=r||d<0)break;if(Eu(p)){if(c){d+=o;continue}break}if(d===i)t[o>0?"moveTo":"lineTo"](p[0],p[1]),rI(aI,p);else if(l>0){var g=d+o,m=e[g];if(c)for(;m&&Eu(e[g]);)m=e[g+=o];var v=.5,y=e[h];if(!(m=e[g])||Eu(m))rI(sI,p);else{Eu(m)&&!c&&(m=p),U(oI,m,y);var x,_;if("x"===u||"y"===u){var b="x"===u?0:1;x=Math.abs(p[b]-y[b]),_=Math.abs(p[b]-m[b])}else x=eb(p,y),_=eb(p,m);nI(sI,p,oI,-l*(1-(v=_/(_+x))))}eI(aI,aI,s),iI(aI,aI,a),eI(sI,sI,s),iI(sI,sI,a),t.bezierCurveTo(aI[0],aI[1],sI[0],sI[1],p[0],p[1]),nI(aI,p,oI,l*v)}else t.lineTo(p[0],p[1]);h=d,d+=o}return f}function Pu(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var r=0;r<t.length;r++){var o=t[r];o[0]<i[0]&&(i[0]=o[0]),o[1]<i[1]&&(i[1]=o[1]),o[0]>n[0]&&(n[0]=o[0]),o[1]>n[1]&&(n[1]=o[1])}return{min:e?i:n,max:e?n:i}}function Ru(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function zu(t){return"number"==typeof t?t:t?.5:0}function Fu(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function Bu(t,e,i){if(!i.valueDim)return[];for(var n=[],r=0,o=e.count();r<o;r++)n.push(Au(i,t,e,r));return n}function Hu(t,e,i,n){var r=Fu(t.getAxis("x")),o=Fu(t.getAxis("y")),a=t.getBaseAxis().isHorizontal(),s=Math.min(r[0],r[1]),l=Math.min(o[0],o[1]),u=Math.max(r[0],r[1])-s,c=Math.max(o[0],o[1])-l;if(i)s-=.5,u+=.5,l-=.5,c+=.5;else{var h=n.get("lineStyle.width")||2,d=n.get("clipOverflow")?h/2:Math.max(u,c);a?(l-=d,c+=2*d):(s-=d,u+=2*d)}var f=new oT({shape:{x:s,y:l,width:u,height:c}});return e&&(f.shape[a?"width":"height"]=0,wr(f,{shape:{width:u,height:c}},n)),f}function Vu(t,e,i,n){var r=t.getAngleAxis(),o=t.getRadiusAxis().getExtent().slice();o[0]>o[1]&&o.reverse();var a=r.getExtent(),s=Math.PI/180;i&&(o[0]-=.5,o[1]+=.5);var l=new QS({shape:{cx:Rr(t.cx,1),cy:Rr(t.cy,1),r0:Rr(o[0],1),r:Rr(o[1],1),startAngle:-a[0]*s,endAngle:-a[1]*s,clockwise:r.inverse}});return e&&(l.shape.endAngle=-a[0]*s,wr(l,{shape:{endAngle:-a[1]*s}},n)),l}function Wu(t,e,i,n){return"polar"===t.type?Vu(t,e,i,n):Hu(t,e,i,n)}function $u(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||"radius"===n.dim?0:1,o=[],a=0;a<t.length-1;a++){var s=t[a+1],l=t[a];o.push(l);var u=[];switch(i){case"end":u[r]=s[r],u[1-r]=l[1-r],o.push(u);break;case"middle":var c=(l[r]+s[r])/2,h=[];u[r]=h[r]=c,u[1-r]=l[1-r],h[1-r]=s[1-r],o.push(u),o.push(h);break;default:u[r]=l[r],u[1-r]=s[1-r],o.push(u)}}return t[a]&&o.push(t[a]),o}function ju(t,e){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var n,r,o=i.length-1;o>=0;o--){var a=i[o].dimension,s=t.dimensions[a],l=t.getDimensionInfo(s);if("x"===(n=l&&l.coordDim)||"y"===n){r=i[o];break}}if(r){var u=e.getAxis(n),c=f(r.stops,function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),h=c.length,p=r.outerColors.slice();h&&c[0].coord>c[h-1].coord&&(c.reverse(),p.reverse());var g=c[0].coord-10,m=c[h-1].coord+10,v=m-g;if(v<.001)return"transparent";d(c,function(t){t.offset=(t.coord-g)/v}),c.push({offset:h?c[h-1].offset:.5,color:p[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:p[0]||"transparent"});var y=new dT(0,0,0,0,c,!0);return y[n]=g,y[n+"2"]=m,y}}}function Uu(t,e,i){var n=t.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=i.getAxesByScale("ordinal")[0];if(o&&(!r||!Gu(o,e))){var a=e.mapDimension(o.dim),s={};return d(o.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function Gu(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*mu.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)return!1;return!0}function qu(t){return this._axes[t]}function Yu(t){pI.call(this,t)}function Xu(t,e){return e.type||(e.data?"category":"value")}function Zu(t,e,i){return t.getCoordSysModel()===e}function Ku(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this.model=t}function Ju(t,e,i,n){function r(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=i.model,l=s.get("axisLine.onZero"),u=s.get("axisLine.onZeroAxisIndex");if(l){if(null!=u)Qu(a[u])&&(o=a[u]);else for(var c in a)if(a.hasOwnProperty(c)&&Qu(a[c])&&!n[r(a[c])]){o=a[c];break}o&&(n[r(o)]=!0)}}function Qu(t){return t&&"category"!==t.type&&"time"!==t.type&&Hl(t)}function tc(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function ec(t,e){return f(SI,function(e){return t.getReferringComponents(e)[0]})}function ic(t){return"cartesian2d"===t.get("coordinateSystem")}function nc(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e}function rc(t,e,i,n){var r,o,a=Wr(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return $r(a-TI/2)?(o=l?"bottom":"top",r="center"):$r(a-1.5*TI)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*TI&&a>TI/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function oc(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function ac(t,e,i){var n=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");e=e||[],i=i||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=i[0],c=i[1],h=i[i.length-1],d=i[i.length-2];!1===n?(sc(o),sc(u)):lc(o,a)&&(n?(sc(a),sc(c)):(sc(o),sc(u))),!1===r?(sc(s),sc(h)):lc(l,s)&&(r?(sc(l),sc(d)):(sc(s),sc(h)))}function sc(t){t&&(t.ignore=!0)}function lc(t,e,i){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var o=vt([]);return bt(o,o,-t.rotation),n.applyTransform(xt([],o,t.getLocalTransform())),r.applyTransform(xt([],o,e.getLocalTransform())),n.intersect(r)}}function uc(t){return"middle"===t||"center"===t}function cc(t,e,i){var n=e.axis;if(e.get("axisTick.show")&&!n.scale.isBlank()){for(var r=e.getModel("axisTick"),o=r.getModel("lineStyle"),s=r.get("length"),l=n.getTicksCoords(),u=[],c=[],h=t._transform,d=[],f=0;f<l.length;f++){var p=l[f].coord;u[0]=p,u[1]=0,c[0]=p,c[1]=i.tickDirection*s,h&&(Q(u,u,h),Q(c,c,h));var g=new aT(Gn({anid:"tick_"+l[f].tickValue,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:a(o.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),z2:2,silent:!0}));t.group.add(g),d.push(g)}return d}}function hc(t,e,i){var n=e.axis;if(M(i.axisLabelShow,e.get("axisLabel.show"))&&!n.scale.isBlank()){var r=e.getModel("axisLabel"),o=r.get("margin"),a=n.getViewLabels(),s=(M(i.labelRotate,r.get("rotate"))||0)*TI/180,l=DI(i.rotation,s,i.labelDirection),u=e.getCategories(!0),c=[],h=oc(e),f=e.get("triggerEvent");return d(a,function(a,s){var d=a.tickValue,p=a.formattedLabel,g=a.rawLabel,m=r;u&&u[d]&&u[d].textStyle&&(m=new Ar(u[d].textStyle,r,e.ecModel));var v=m.getTextColor()||e.get("axisLine.lineStyle.color"),y=[n.dataToCoord(d),i.labelOffset+i.labelDirection*o],x=new XS({anid:"label_"+d,position:y,rotation:l.rotation,silent:h,z2:10});dr(x.style,m,{text:p,textAlign:m.getShallow("align",!0)||l.textAlign,textVerticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||l.textVerticalAlign,textFill:"function"==typeof v?v("category"===n.type?g:"value"===n.type?d+"":d,s):v}),f&&(x.eventData=nc(e),x.eventData.targetType="axisLabel",x.eventData.value=g),t._dumbGroup.add(x),x.updateTransform(),c.push(x),t.group.add(x),x.decomposeTransform()}),c}}function dc(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return fc(i,t,e),i.seriesInvolved&&gc(i,t),i}function fc(t,e,i){var n=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];II(i.getCoordinateSystems(),function(i){function s(n,s,l){var h=l.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||n||bc(h))){null==s&&(s=h.get("triggerTooltip"));var f=(h=n?pc(l,c,r,e,n,s):h).get("snap"),p=wc(l.model),g=s||f||"category"===l.type,m=t.axesInfo[p]={key:p,axis:l,coordSys:i,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:bc(h),seriesModels:[]};u[p]=m,t.seriesInvolved|=g;var v=mc(o,l);if(null!=v){var y=a[v]||(a[v]={axesInfo:{}});y.axesInfo[p]=m,y.mapper=o[v].mapper,m.linkGroup=y}}}if(i.axisPointerEnabled){var l=wc(i.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=i;var c=i.model.getModel("tooltip",n);if(II(i.getAxes(),AI(s,!1,null)),i.getTooltipAxes&&n&&c.get("show")){var h="axis"===c.get("trigger"),d="cross"===c.get("axisPointer.type"),f=i.getTooltipAxes(c.get("axisPointer.axis"));(h||d)&&II(f.baseAxes,AI(s,!d||"cross",h)),d&&II(f.otherAxes,AI(s,"cross",!1))}}})}function pc(t,e,n,r,o,s){var l=e.getModel("axisPointer"),u={};II(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){u[t]=i(l.get(t))}),u.snap="category"!==t.type&&!!s,"cross"===l.get("type")&&(u.type="line");var c=u.label||(u.label={});if(null==c.show&&(c.show=!1),"cross"===o){var h=l.get("label.show");if(c.show=null==h||h,!s){var d=u.lineStyle=l.get("crossStyle");d&&a(c,d.textStyle)}}return t.model.getModel("axisPointer",new Ar(u,n,r))}function gc(t,e){e.eachSeries(function(e){var i=e.coordinateSystem,n=e.get("tooltip.trigger",!0),r=e.get("tooltip.show",!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==r&&!1!==e.get("axisPointer.show",!0)&&II(t.coordSysAxesInfo[wc(i.model)],function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})},this)}function mc(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(vc(o[n+"AxisId"],i.id)||vc(o[n+"AxisIndex"],i.componentIndex)||vc(o[n+"AxisName"],i.name))return r}}function vc(t,e){return"all"===t||y(t)&&l(t,e)>=0||t===e}function yc(t){var e=xc(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,r=i.option,o=i.get("status"),a=i.get("value");null!=a&&(a=n.parse(a));var s=bc(i);null==o&&(r.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function xc(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[wc(t)]}function _c(t){var e=xc(t);return e&&e.axisPointerModel}function bc(t){return!!t.get("handle.show")}function wc(t){return t.type+"||"+t.id}function Sc(t,e,i,n,r,o){var a=kI.getAxisPointerClass(t.axisPointerClass);if(a){var s=_c(e);s?(t._axisPointer||(t._axisPointer=new a)).render(e,s,n,o):Tc(t,n)}}function Tc(t,e,i){var n=t._axisPointer;n&&n.dispose(e,i),t._axisPointer=null}function Cc(t,e,i){i=i||{};var n=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=n.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,p="x"===u?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===u?p[d[l]]:h[0],"x"===u?p[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[s],o.labelOffset=a?p[d[s]]-p[d.onZero]:0,e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),M(i.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var v=e.get("axisLabel.rotate");return o.labelRotate="top"===l?-v:v,o.z2=1,o}function Mc(t,e,i,n,r,o,a){hr(t,e,i.getModel("label"),i.getModel("emphasis.label"),{labelFetcher:r,labelDataIndex:o,defaultText:gu(r.getData(),o),isRectText:!0,autoColor:n}),Dc(t),Dc(e)}function Dc(t,e){"outside"===t.textPosition&&(t.textPosition=e)}function Ic(t,e,i){i.style.text=null,br(i,{shape:{width:0}},e,t,function(){i.parent&&i.parent.remove(i)})}function Ac(t,e,i){i.style.text=null,br(i,{shape:{r:i.shape.r0}},e,t,function(){i.parent&&i.parent.remove(i)})}function kc(t,e,i,n,r,o,s,l){var u=e.getItemVisual(i,"color"),c=e.getItemVisual(i,"opacity"),h=n.getModel("itemStyle"),d=n.getModel("emphasis.itemStyle").getBarItemStyle();l||t.setShape("r",h.get("barBorderRadius")||0),t.useStyle(a({fill:u,opacity:c},h.getBarItemStyle()));var f=n.getShallow("cursor");f&&t.attr("cursor",f);var p=s?r.height>0?"bottom":"top":r.width>0?"left":"right";l||Mc(t.style,d,n,u,o,i,p),ur(t,d)}function Ec(t,e){var i=t.get(FI)||0;return Math.min(i,Math.abs(e.width),Math.abs(e.height))}function Oc(t,e,i){var n=t.getData(),r=[],o=n.getLayout("valueAxisHorizontal")?1:0;r[1-o]=n.getLayout("valueAxisStart");var a=new VI({shape:{points:n.getLayout("largePoints")},incremental:!!i,__startPoint:r,__valueIdx:o});e.add(a),Nc(a,t,n)}function Nc(t,e,i){var n=i.getVisual("borderColor")||i.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}function Lc(t,e,i,n){var r=e.getData(),o=this.dataIndex,a=r.getName(o),s=e.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:t,name:a,seriesId:e.id}),r.each(function(t){Pc(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),s,i)})}function Pc(t,e,i,n,r){var o=(e.startAngle+e.endAngle)/2,a=Math.cos(o),s=Math.sin(o),l=i?n:0,u=[a*l,s*l];r?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function Rc(t,e){function i(){o.ignore=o.hoverIgnore,a.ignore=a.hoverIgnore}function n(){o.ignore=o.normalIgnore,a.ignore=a.normalIgnore}jb.call(this);var r=new QS({z2:2}),o=new rT,a=new XS;this.add(r),this.add(o),this.add(a),this.updateData(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}function zc(t,e,i,n,r,o,a){function s(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function l(t,e,i,n,r,o){for(var a=e?Number.MAX_VALUE:0,s=0,l=t.length;s<l;s++)if("center"!==t[s].position){var u=Math.abs(t[s].y-n),c=t[s].len,h=t[s].len2,d=u<r+c?Math.sqrt((r+c+h)*(r+c+h)-u*u):Math.abs(t[s].x-i);e&&d>=a&&(d=a-10),!e&&d<=a&&(d=a+10),t[s].x=i+d*o,a=d}}t.sort(function(t,e){return t.y-e.y});for(var u,c=0,h=t.length,d=[],f=[],p=0;p<h;p++)(u=t[p].y-c)<0&&function(e,i,n,r){for(var o=e;o<i;o++)if(t[o].y+=n,o>e&&o+1<i&&t[o+1].y>t[o].y+t[o].height)return void s(o,n/2);s(i-1,n/2)}(p,h,-u),c=t[p].y+t[p].height;for(a-c<0&&s(h-1,c-a),p=0;p<h;p++)t[p].y>=i?f.push(t[p]):d.push(t[p]);l(d,!1,e,i,n,r),l(f,!0,e,i,n,r)}function Fc(t,e,i,n,r,o){for(var a=[],s=[],l=0;l<t.length;l++)t[l].x<e?a.push(t[l]):s.push(t[l]);for(zc(s,e,i,n,1,r,o),zc(a,e,i,n,-1,r,o),l=0;l<t.length;l++){var u=t[l].linePoints;if(u){var c=u[1][0]-u[2][0];t[l].x<e?u[2][0]=t[l].x+3:u[2][0]=t[l].x-3,u[1][1]=u[2][1]=t[l].y,u[1][0]=u[2][0]+c}}}function Bc(){this.group=new jb}function Hc(t,e,i){$D.call(this,t,e,i),this.type="value",this.angle=0,this.name="",this.model}function Vc(t,e,i){this._model=t,this.dimensions=[],this._indicatorAxes=f(t.getIndicatorModels(),function(t,e){var i="indicator_"+e,n=new Hc(i,new cD);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n},this),this.resize(t,i),this.cx,this.cy,this.r,this.r0,this.startAngle}function Wc(t,e){return a({show:e},t)}function $c(t){return y(t)||(t=[+t,+t]),t}function jc(){mb.call(this)}function Uc(t){this.name=t,this.zoomLimit,mb.call(this),this._roamTransformable=new jc,this._rawTransformable=new jc,this._center,this._zoom}function Gc(t,e,i,n){var r=i.seriesModel,o=r?r.coordinateSystem:null;return o===this?o[t](n):null}function qc(t){for(var e,i=0;i<t.length;i++){var n=t[i].getBoundingRect();(e=e||n.clone()).union(n)}return e}function Yc(t,e){var i,n,r=t.svgXML;try{E(null!=(n=(i=r&&ns(r,{ignoreViewBox:!0,ignoreRootClip:!0})||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var o=i.width,a=i.height,s=i.viewBoxRect;if(e||(e=null==o||null==a?n.getBoundingRect():new ue(0,0,0,0),null!=o&&(e.width=o),null!=a&&(e.height=a)),s){var l=is(s,e.width,e.height),u=n;(n=new jb).add(u),u.scale=l.scale,u.position=l.position}return n.setClipPath(new oT({shape:e.plain()})),{root:n,boundingRect:e}}function Xc(t){return function(e,i){var n=[];return d(Zc(e),function(r){var o=yA[r.type][t];o&&n.push(o(e,r,i))}),n}}function Zc(t){return pM.retrieveMap(t)||[]}function Kc(t,e,i,n){Uc.call(this,t),this.map=e;var r=xA.load(e,i);this._nameCoordMap=r.nameCoordMap,this._regionsMap=r.nameCoordMap,this._invertLongitute=null==n||n,this.regions=r.regions,this._rect=r.boundingRect}function Jc(t,e,i,n){var r=i.geoModel,o=i.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[t](n):null}function Qc(t,e){var i=t.get("boundingCoords");if(null!=i){var n=i[0],r=i[1];isNaN(n[0])||isNaN(n[1])||isNaN(r[0])||isNaN(r[1])||this.setBoundingRect(n[0],n[1],r[0]-n[0],r[1]-n[1])}var o,a=this.getBoundingRect(),s=t.get("layoutCenter"),l=t.get("layoutSize"),u=e.getWidth(),c=e.getHeight(),h=a.width/a.height*this.aspectScale,d=!1;if(s&&l&&(s=[Pr(s[0],u),Pr(s[1],c)],l=Pr(l,Math.min(u,c)),isNaN(s[0])||isNaN(s[1])||isNaN(l)||(d=!0)),d){var f={};h>1?(f.width=l,f.height=l/h):(f.height=l,f.width=l*h),f.y=s[1]-f.height/2,f.x=s[0]-f.width/2}else(o=t.getBoxLayoutParams()).aspect=h,f=so(o,{width:u,height:c});this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function th(t,e){d(e.get("geoCoord"),function(e,i){t.addGeoCoord(i,e)})}function eh(t,e,i){rh(t)[e]=i}function ih(t,e,i){var n=rh(t);n[e]===i&&(n[e]=null)}function nh(t,e){return!!rh(t)[e]}function rh(t){return t[wA]||(t[wA]={})}function oh(t){this.pointerChecker,this._zr=t,this._opt={};var e=m,n=e(ah,this),r=e(sh,this),o=e(lh,this),s=e(uh,this),l=e(ch,this);ob.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,u){this.disable(),this._opt=a(i(u)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",n),t.on("mousemove",r),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",s),t.on("pinch",l))},this.disable=function(){t.off("mousedown",n),t.off("mousemove",r),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function ah(t){if(!(ht(t)||t.target&&t.target.draggable)){var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function sh(t){if(!ht(t)&&fh("moveOnMouseMove",t,this._opt)&&this._dragging&&"pinch"!==t.gestureEvent&&!nh(this._zr,"globalPan")){var e=t.offsetX,i=t.offsetY,n=this._x,r=this._y,o=e-n,a=i-r;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&lb(t.event),dh(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:n,oldY:r,newX:e,newY:i})}}function lh(t){ht(t)||(this._dragging=!1)}function uh(t){var e=fh("zoomOnMouseWheel",t,this._opt),i=fh("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,r=Math.abs(n),o=t.offsetX,a=t.offsetY;if(0!==n&&(e||i)){if(e){var s=r>3?1.4:r>1?1.2:1.1;hh(this,"zoom","zoomOnMouseWheel",t,{scale:n>0?s:1/s,originX:o,originY:a})}if(i){var l=Math.abs(n);hh(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(n>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a})}}}function ch(t){nh(this._zr,"globalPan")||hh(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY})}function hh(t,e,i,n,r){t.pointerChecker&&t.pointerChecker(n,r.originX,r.originY)&&(lb(n.event),dh(t,e,i,n,r))}function dh(t,e,i,n,r){r.isAvailableBehavior=m(fh,null,i,n),t.trigger(e,r)}function fh(t,e,i){var n=i[t];return!t||n&&(!_(n)||e.event[n+"Key"])}function ph(t,e,i){var n=t.target,r=n.position;r[0]+=e,r[1]+=i,n.dirty()}function gh(t,e,i,n){var r=t.target,o=t.zoomLimit,a=r.position,s=r.scale,l=t.zoom=t.zoom||1;if(l*=e,o){var u=o.min||0,c=o.max||1/0;l=Math.max(Math.min(c,l),u)}var h=l/t.zoom;t.zoom=l,a[0]-=(i-a[0])*(h-1),a[1]-=(n-a[1])*(h-1),s[0]*=h,s[1]*=h,r.dirty()}function mh(t,e,i){var n=e.getComponentByElement(t.topTarget),r=n&&n.coordinateSystem;return n&&n!==i&&!SA[n.mainType]&&r&&r.model!==i}function vh(t,e){var i=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(i.fill=n),i}function yh(t,e,i,n,r){i.off("click"),i.off("mousedown"),e.get("selectedMode")&&(i.on("mousedown",function(){t._mouseDownFlag=!0}),i.on("click",function(o){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var a=o.target;!a.__regions;)a=a.parent;if(a){var s={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:f(a.__regions,function(t){return{name:t.name,from:r.uid}})};s[e.mainType+"Id"]=e.id,n.dispatchAction(s),xh(e,i)}}}))}function xh(t,e){e.eachChild(function(e){d(e.__regions,function(i){e.trigger(t.isSelected(i.name)?"emphasis":"normal")})})}function _h(t,e){var i=new jb;this.uid=Or("ec_map_draw"),this._controller=new oh(t.getZr()),this._controllerHost={target:e?i:null},this.group=i,this._updateGroup=e,this._mouseDownFlag,this._mapName,this._initialized,i.add(this._regionsGroup=new jb),i.add(this._backgroundGroup=new jb)}function bh(t,e,i){var n=t.getZoom(),r=t.getCenter(),o=e.zoom,a=t.dataToPoint(r);if(null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,r=t.pointToData(a),t.setCenter(r)),null!=o){if(i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(n*o,l),s)/n}t.scale[0]*=o,t.scale[1]*=o;var u=t.position,c=(e.originX-u[0])*(o-1),h=(e.originY-u[1])*(o-1);u[0]-=c,u[1]-=h,t.updateTransform(),r=t.pointToData(a),t.setCenter(r),t.setZoom(o*n)}return{center:t.getCenter(),zoom:t.getZoom()}}function wh(t,e){var i={};return d(t,function(t){t.each(t.mapDimension("value"),function(e,n){var r="ec-"+t.getName(n);i[r]=i[r]||[],isNaN(e)||i[r].push(e)})}),t[0].map(t[0].mapDimension("value"),function(n,r){for(var o="ec-"+t[0].getName(r),a=0,s=1/0,l=-1/0,u=i[o].length,c=0;c<u;c++)s=Math.min(s,i[o][c]),l=Math.max(l,i[o][c]),a+=i[o][c];var h;return h="min"===e?s:"max"===e?l:"average"===e?a/u:a,0===u?NaN:h})}function Sh(t){var e=t.mainData,i=t.datas;i||(i={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,Ah(e,i,t),TA(i,function(i){TA(e.TRANSFERABLE_METHODS,function(e){i.wrapMethod(e,v(Th,t))})}),e.wrapMethod("cloneShallow",v(Mh,t)),TA(e.CHANGABLE_METHODS,function(i){e.wrapMethod(i,v(Ch,t))}),E(i[e.dataType]===e)}function Th(t,e){if(Ih(this)){var i=o({},this[CA]);i[this.dataType]=e,Ah(e,i,t)}else kh(e,this.dataType,this[MA],t);return e}function Ch(t,e){return t.struct&&t.struct.update(this),e}function Mh(t,e){return TA(e[CA],function(i,n){i!==e&&kh(i.cloneShallow(),n,e,t)}),e}function Dh(t){var e=this[MA];return null==t||null==e?e:e[CA][t]}function Ih(t){return t[MA]===t}function Ah(t,e,i){t[CA]={},TA(e,function(e,n){kh(e,n,t,i)})}function kh(t,e,i,n){i[CA][e]=t,t[MA]=i,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=Dh}function Eh(t,e,i){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=f(e||[],function(e){return new Ar(e,t,t.ecModel)}),this.leavesModel=new Ar(i||{},t,t.ecModel)}function Oh(t,e){var i=e.children;t.parentNode!==e&&(i.push(t),t.parentNode=e)}function Nh(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,i,n=[t];e=n.pop();)if(i=e.children,e.isExpand&&i.length)for(var r=i.length-1;r>=0;r--){var o=i[r];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},n.push(o)}}function Lh(t,e){ var i=t.isExpand?t.children:[],n=t.parentNode.children,r=t.hierNode.i?n[t.hierNode.i-1]:null;if(i.length){Bh(t);var o=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=Hh(t,r,t.parentNode.hierNode.defaultAncestor||n[0],e)}function Ph(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function Rh(t){return arguments.length?t:Uh}function zh(t,e){var i={};return t-=Math.PI/2,i.x=e*Math.cos(t),i.y=e*Math.sin(t),i}function Fh(t,e){return so(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Bh(t){for(var e=t.children,i=e.length,n=0,r=0;--i>=0;){var o=e[i];o.hierNode.prelim+=n,o.hierNode.modifier+=n,r+=o.hierNode.change,n+=o.hierNode.shift+r}}function Hh(t,e,i,n){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=Vh(s),o=Wh(o),s&&o;){r=Vh(r),a=Wh(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+n(s,o);d>0&&(jh($h(s,t,i),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!Vh(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!Wh(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,i=t)}return i}function Vh(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function Wh(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function $h(t,e,i){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:i}function jh(t,e,i){var n=i/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=i,e.hierNode.modifier+=i,e.hierNode.prelim+=i,t.hierNode.change+=n}function Uh(t,e){return t.parentNode===e.parentNode?1:2}function Gh(t,e){var i=t.getItemLayout(e);return i&&!isNaN(i.x)&&!isNaN(i.y)&&"none"!==t.getItemVisual(e,"symbol")}function qh(t,e,i){return i.itemModel=e,i.itemStyle=e.getModel("itemStyle").getItemStyle(),i.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),i.lineStyle=e.getModel("lineStyle").getLineStyle(),i.labelModel=e.getModel("label"),i.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?i.symbolInnerColor=i.itemStyle.fill:i.symbolInnerColor="#fff",i}function Yh(t,e,i,n,r,o){var s=!i,l=t.tree.getNodeByDataIndex(e),o=qh(l,l.getModel(),o),u=t.tree.root,c=l.parentNode===u?l:l.parentNode||l,h=t.getItemGraphicEl(c.dataIndex),d=c.getLayout(),f=h?{x:h.position[0],y:h.position[1],rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:d,p=l.getLayout();s?(i=new mu(t,e,o)).attr("position",[f.x,f.y]):i.updateData(t,e,o),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=p.rawX,i.__radialRawY=p.rawY,n.add(i),t.setItemGraphicEl(e,i),br(i,{position:[p.x,p.y]},r);var g=i.getSymbolPath();if("radial"===o.layout){var m,v,y=u.children[0],x=y.getLayout(),_=y.children.length;if(p.x===x.x&&!0===l.isExpand){var b={};b.x=(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,b.y=(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2,(m=Math.atan2(b.y-x.y,b.x-x.x))<0&&(m=2*Math.PI+m),(v=b.x<x.x)&&(m-=Math.PI)}else(m=Math.atan2(p.y-x.y,p.x-x.x))<0&&(m=2*Math.PI+m),0===l.children.length||0!==l.children.length&&!1===l.isExpand?(v=p.x<x.x)&&(m-=Math.PI):(v=p.x>x.x)||(m-=Math.PI);var w=v?"left":"right";g.setStyle({textPosition:w,textRotation:-m,textOrigin:"center",verticalAlign:"middle"})}if(l.parentNode&&l.parentNode!==u){var S=i.__edge;S||(S=i.__edge=new lT({shape:Zh(o,f,f),style:a({opacity:0,strokeNoScale:!0},o.lineStyle)})),br(S,{shape:Zh(o,d,p),style:{opacity:1}},r),n.add(S)}}function Xh(t,e,i,n,r,o){for(var a,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,o=qh(s,s.getModel(),o),u=s.parentNode===l?s:s.parentNode||s;null==(a=u.getLayout());)u=u.parentNode===l?u:u.parentNode||u;br(i,{position:[a.x+1,a.y+1]},r,function(){n.remove(i),t.setItemGraphicEl(e,null)}),i.fadeOut(null,{keepLabel:!0});var c=i.__edge;c&&br(c,{shape:Zh(o,a,a),style:{opacity:0}},r,function(){n.remove(c)})}function Zh(t,e,i){var n,r,o,a,s,l,u,c,h=t.orient;if("radial"===t.layout){s=e.rawX,u=e.rawY,l=i.rawX,c=i.rawY;var d=zh(s,u),f=zh(s,u+(c-u)*t.curvature),p=zh(l,c+(u-c)*t.curvature),g=zh(l,c);return{x1:d.x,y1:d.y,x2:g.x,y2:g.y,cpx1:f.x,cpy1:f.y,cpx2:p.x,cpy2:p.y}}return s=e.x,u=e.y,l=i.x,c=i.y,"LR"!==h&&"RL"!==h||(n=s+(l-s)*t.curvature,r=u,o=l+(s-l)*t.curvature,a=c),"TB"!==h&&"BT"!==h||(n=s,r=u+(c-u)*t.curvature,o=l,a=c+(u-c)*t.curvature),{x1:s,y1:u,x2:l,y2:c,cpx1:n,cpy1:r,cpx2:o,cpy2:a}}function Kh(t,e,i){for(var n,r=[t],o=[];n=r.pop();)if(o.push(n),n.isExpand){var a=n.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;n=o.pop();)e(n,i)}function Jh(t,e){for(var i,n=[t];i=n.pop();)if(e(i),i.isExpand){var r=i.children;if(r.length)for(var o=r.length-1;o>=0;o--)n.push(r[o])}}function Qh(t,e){var i=Fh(t,e);t.layoutInfo=i;var n=t.get("layout"),r=0,o=0,a=null;"radial"===n?(r=2*Math.PI,o=Math.min(i.height,i.width)/2,a=Rh(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(r=i.width,o=i.height,a=Rh());var s=t.getData().tree.root,l=s.children[0];if(l){Nh(s),Kh(l,Lh,a),s.hierNode.modifier=-l.hierNode.prelim,Jh(l,Ph);var u=l,c=l,h=l;Jh(l,function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>c.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)});var d=u===c?1:a(u,c)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===n)p=r/(c.getLayout().x+d+f),g=o/(h.depth-1||1),Jh(l,function(t){m=(t.getLayout().x+f)*p,v=(t.depth-1)*g;var e=zh(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+d+f),p=r/(h.depth-1||1),Jh(l,function(t){v=(t.getLayout().x+f)*g,m="LR"===y?(t.depth-1)*p:r-(t.depth-1)*p,t.setLayout({x:m,y:v},!0)})):"TB"!==y&&"BT"!==y||(p=r/(c.getLayout().x+d+f),g=o/(h.depth-1||1),Jh(l,function(t){m=(t.getLayout().x+f)*p,v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)}))}}}function td(t,e,i){if(t&&l(e,t.type)>=0){var n=i.getData().tree.root,r=t.targetNode;if("string"==typeof r&&(r=n.getNodeById(r)),r&&n.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=n.getNodeById(o)))return{node:r}}}function ed(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function id(t,e){return l(ed(t),e)>=0}function nd(t,e){for(var i=[];t;){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i}function rd(t){var e=0;d(t.children,function(t){rd(t);var i=t.value;y(i)&&(i=i[0]),e+=i});var i=t.value;y(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),y(t.value)?t.value[0]=i:t.value=i}function od(t,e){var i=e.get("color");if(i){var n;return d(t=t||[],function(t){var e=new Ar(t),i=e.get("color");(e.get("itemStyle.color")||i&&"none"!==i)&&(n=!0)}),n||((t[0]||(t[0]={})).color=i.slice()),t}}function ad(t){this.group=new jb,t.add(this.group)}function sd(t,e,i,n,r,o){var a=[[r?t:t-IA,e],[t+i,e],[t+i,e+n],[r?t:t-IA,e+n]];return!o&&a.splice(2,0,[t+i+IA,e+n/2]),!r&&a.push([t,e+n/2]),a}function ld(t,e,i){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&nd(i,e)}}function ud(){var t,e=[],i={};return{add:function(t,n,r,o,a){return _(o)&&(a=o,o=0),!i[t.id]&&(i[t.id]=1,e.push({el:t,target:n,time:r,delay:o,easing:a}),!0)},done:function(e){return t=e,this},start:function(){for(var n=e.length,r=0,o=e.length;r<o;r++){var a=e[r];a.el.animateTo(a.target,a.time,a.delay,a.easing,function(){--n||(e.length=0,i={},t&&t())})}return this}}}function cd(t,e,n,r,a,s,l,u,c,h){function d(t,e){b?!t.invisible&&s.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function f(e,n,r,o,a,s){var u=l.getModel(),c=M(t.getFormattedLabel(l.dataIndex,"normal",null,null,s?"upperLabel":"label"),u.get("name"));if(!s&&v.isLeafRoot){var h=t.get("drillDownIcon",!0);c=h?h+" "+c:c}var d=u.getModel(s?PA:NA),f=u.getModel(s?RA:LA),p=d.getShallow("show");hr(e,n,d,f,{defaultText:p?c:null,autoColor:r,isRectText:!0}),s&&(e.textRect=i(s)),e.truncate=p&&d.get("ellipsis")?{outerWidth:o,outerHeight:a,minChar:2}:null}function p(t,i,r,o){var s=null!=S&&n[t][S],l=a[t];return s?(n[t][S]=null,g(l,s,t)):b||((s=new i({z:hd(r,o)})).__tmDepth=r,s.__tmStorageName=t,m(l,s,t)),e[t][w]=s}function g(t,e,i){(t[w]={}).old="nodeGroup"===i?e.position.slice():o({},e.shape)}function m(t,e,i){var n=t[w]={},o=l.parentNode;if(o&&(!r||"drillDown"===r.direction)){var s=0,u=0,c=a.background[o.getRawIndex()];!r&&c&&c.old&&(s=c.old.width,u=c.old.height),n.old="nodeGroup"===i?[0,u]:{x:s,y:u,width:0,height:0}}n.fadein="nodeGroup"!==i}if(l){var v=l.getLayout();if(v&&v.isInView){var y=v.width,x=v.height,_=v.borderWidth,b=v.invisible,w=l.getRawIndex(),S=u&&u.getRawIndex(),T=l.viewChildren,C=v.upperHeight,D=T&&T.length,I=l.getModel("itemStyle"),A=l.getModel("emphasis.itemStyle"),k=p("nodeGroup",kA);if(k){if(c.add(k),k.attr("position",[v.x||0,v.y||0]),k.__tmNodeWidth=y,k.__tmNodeHeight=x,v.isAboveViewRoot)return k;var E=p("background",EA,h,FA);if(E&&function(e,i,n){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:y,height:x});var r=l.getVisual("borderColor",!0),o=A.get("borderColor");d(i,function(){var t=VA(I);t.fill=r;var e=HA(A);if(e.fill=o,n){var a=y-2*_;f(t,e,r,a,C,{x:_,y:0,width:a,height:C})}else t.text=e.text=null;i.setStyle(t),ur(i,e)}),e.add(i)}(k,E,D&&v.upperHeight),!D){var O=p("content",EA,h,BA);O&&function(e,i){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex;var n=Math.max(y-2*_,0),r=Math.max(x-2*_,0);i.culling=!0,i.setShape({x:_,y:_,width:n,height:r});var o=l.getVisual("color",!0);d(i,function(){var t=VA(I);t.fill=o;var e=HA(A);f(t,e,o,n,r),i.setStyle(t),ur(i,e)}),e.add(i)}(k,O)}return k}}}}function hd(t,e){var i=t*zA+e;return(i-1)/i}function dd(t){var e=t.pieceList;t.hasSpecialVisual=!1,d(e,function(e,i){e.originIndex=i,null!=e.visual&&(t.hasSpecialVisual=!0)})}function fd(t){var e=t.categories,i=t.visual,n=t.categoryMap={};if(jA(e,function(t,e){n[t]=e}),!y(i)){var r=[];b(i)?jA(i,function(t,e){var i=n[e];r[null!=i?i:GA]=t}):r[GA]=i,i=wd(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}function pd(t,e){var i=t.visual,n=[];b(i)?jA(i,function(t){n.push(t)}):null!=i&&n.push(i);var r={color:1,symbol:1};e||1!==n.length||r.hasOwnProperty(t.type)||(n[1]=n[0]),wd(t,n)}function gd(t){return{applyVisual:function(e,i,n){e=this.mapValueToVisual(e),n("color",t(i("color"),e))},_doMap:_d([0,1])}}function md(t){var e=this.option.visual;return e[Math.round(Lr(t,[0,1],[0,e.length-1],!0))]||{}}function vd(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function yd(t){var e=this.option.visual;return e[this.option.loop&&t!==GA?t%e.length:t]}function xd(){return this.option.visual[0]}function _d(t){return{linear:function(e){return Lr(e,t,this.option.visual,!0)},category:yd,piecewise:function(e,i){var n=bd.call(this,i);return null==n&&(n=Lr(e,t,this.option.visual,!0)),n},fixed:xd}}function bd(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=i[qA.findPieceIndex(t,i)];if(n&&n.visual)return n.visual[this.type]}}function wd(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=f(e,function(t){return zt(t)})),e}function Sd(t,e,i){return t?e<=i:e<i}function Td(t,e,i,n,r,o){var a=t.getModel(),s=t.getLayout();if(s&&!s.invisible&&s.isInView){var l,u=t.getModel(KA),c=Cd(u,e,i[t.depth],n),h=u.get("borderColor"),f=u.get("borderColorSaturation");null!=f&&(h=Dd(f,l=Md(c))),t.setVisual("borderColor",h);var p=t.viewChildren;if(p&&p.length){var g=Ad(t,a,s,u,c,p);d(p,function(t,e){(t.depth>=r.length||t===r[t.depth])&&Td(t,Ed(a,c,t,e,g,o),i,n,r,o)})}else l=Md(c),t.setVisual("color",l)}}function Cd(t,e,i,n){var r=o({},e);return d(["color","colorAlpha","colorSaturation"],function(o){var a=t.get(o,!0);null==a&&i&&(a=i[o]),null==a&&(a=e[o]),null==a&&(a=n.get(o)),null!=a&&(r[o]=a)}),r}function Md(t){var e=Id(t,"color");if(e){var i=Id(t,"colorAlpha"),n=Id(t,"colorSaturation");return n&&(e=jt(e,null,null,n)),i&&(e=Ut(e,i)),e}}function Dd(t,e){return null!=e?jt(e,null,null,t):null}function Id(t,e){var i=t[e];if(null!=i&&"none"!==i)return i}function Ad(t,e,i,n,r,o){if(o&&o.length){var a=kd(e,"color")||null!=r.color&&"none"!==r.color&&(kd(e,"colorAlpha")||kd(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=i.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new qA(h);return d.__drColorMappingBy=c,d}}}function kd(t,e){var i=t.get(e);return ZA(i)&&i.length?{name:e,range:i}:null}function Ed(t,e,i,n,r,a){var s=o({},e);if(r){var l=r.type,u="color"===l&&r.__drColorMappingBy,c="index"===u?n:"id"===u?a.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));s[l]=r.mapValueToVisual(c)}return s}function Od(t,e,i,n){var r,o;if(!t.isRemoved()){var a=t.getLayout();r=a.width,o=a.height;var s=(f=t.getModel()).get(nk),l=f.get(rk)/2,u=Wd(f),c=Math.max(s,u),h=s-l,d=c-l,f=t.getModel();t.setLayout({borderWidth:s,upperHeight:c,upperLabelHeight:u},!0);var p=(r=QA(r-2*h,0))*(o=QA(o-h-d,0)),g=Nd(t,f,p,e,i,n);if(g.length){var m={x:h,y:d,width:r,height:o},v=tk(r,o),y=1/0,x=[];x.area=0;for(var _=0,b=g.length;_<b;){var w=g[_];x.push(w),x.area+=w.getLayout().area;var S=zd(x,v,e.squareRatio);S<=y?(_++,y=S):(x.area-=x.pop().getLayout().area,Fd(x,v,m,l,!1),v=tk(m.width,m.height),x.length=x.area=0,y=1/0)}if(x.length&&Fd(x,v,m,l,!0),!i){var T=f.get("childrenVisibleMin");null!=T&&p<T&&(i=!0)}for(var _=0,b=g.length;_<b;_++)Od(g[_],e,i,n+1)}}}function Nd(t,e,i,n,r,o){var a=t.children||[],s=n.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=n.leafDepth&&n.leafDepth<=o;if(r&&!l)return t.viewChildren=[];Pd(a=g(a,function(t){return!t.isRemoved()}),s);var u=Rd(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=Ld(e,i,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var d=a[c].getValue()/u.sum*i;a[c].setLayout({area:d})}return l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}function Ld(t,e,i,n,r){if(!n)return i;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===n?a-l-1:l].getValue();u/i*e<o&&(s=l,i-=u)}return"asc"===n?r.splice(0,a-s):r.splice(s,a-s),i}function Pd(t,e){return e&&t.sort(function(t,i){var n="asc"===e?t.getValue()-i.getValue():i.getValue()-t.getValue();return 0===n?"asc"===e?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:n}),t}function Rd(t,e,i){for(var n=0,r=0,o=e.length;r<o;r++)n+=e[r].getValue();var a=t.get("visualDimension");if(e&&e.length)if("value"===a&&i)s=[e[e.length-1].getValue(),e[0].getValue()],"asc"===i&&s.reverse();else{var s=[1/0,-1/0];ik(e,function(t){var e=t.getValue(a);e<s[0]&&(s[0]=e),e>s[1]&&(s[1]=e)})}else s=[NaN,NaN];return{sum:n,dataExtent:s}}function zd(t,e,i){for(var n,r=0,o=1/0,a=0,s=t.length;a<s;a++)(n=t[a].getLayout().area)&&(n<o&&(o=n),n>r&&(r=n));var l=t.area*t.area,u=e*e*i;return l?QA(u*r/l,l/(u*o)):1/0}function Fd(t,e,i,n,r){var o=e===i.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=i[s[o]],c=e?t.area/e:0;(r||c>i[l[a]])&&(c=i[l[a]]);for(var h=0,d=t.length;h<d;h++){var f=t[h],p={},g=c?f.getLayout().area/c:0,m=p[l[a]]=QA(c-2*n,0),v=i[s[o]]+i[l[o]]-u,y=h===d-1||v<g?v:g,x=p[l[o]]=QA(y-2*n,0);p[s[a]]=i[s[a]]+tk(n,m/2),p[s[o]]=u+tk(n,x/2),u+=y,f.setLayout(p,!0)}i[s[a]]+=c,i[l[a]]-=c}function Bd(t,e,i,n,r){var o=(e||{}).node,a=[n,r];if(!o||o===i)return a;for(var s,l=n*r,u=l*t.option.zoomToNodeRatio;s=o.parentNode;){for(var c=0,h=s.children,d=0,f=h.length;d<f;d++)c+=h[d].getValue();var p=o.getValue();if(0===p)return a;u*=c/p;var g=s.getModel(),m=g.get(nk);(u+=4*m*m+(3*m+Math.max(m,Wd(g)))*Math.pow(u,.5))>ET&&(u=ET),o=s}u<l&&(u=l);var v=Math.pow(u/l,.5);return[n*v,r*v]}function Hd(t,e,i){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!i)return n;var r=i.node,o=r.getLayout();if(!o)return n;for(var a=[o.width/2,o.height/2],s=r;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}function Vd(t,e,i,n,r){var o=t.getLayout(),a=i[r],s=a&&a===t;if(!(a&&!s||r===i.length&&t!==n)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new ue(e.x-o.x,e.y-o.y,e.width,e.height);ik(t.viewChildren||[],function(t){Vd(t,l,i,n,r+1)})}}function Wd(t){return t.get(ok)?t.get(ak):0}function $d(t){return"_EC_"+t}function jd(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function Ud(t,e,i){this.node1=t,this.node2=e,this.dataIndex=null==i?-1:i}function Gd(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}function qd(t){return"_"+t+"Type"}function Yd(t,e,i){var n=e.getItemVisual(i,"color"),r=e.getItemVisual(i,t),o=e.getItemVisual(i,t+"Size");if(r&&"none"!==r){y(o)||(o=[o,o]);var a=Gl(r,-o[0]/2,-o[1]/2,o[0],o[1],n);return a.name=t,a}}function Xd(t){var e=new gk({name:"line"});return Zd(e.shape,t),e}function Zd(t,e){var i=e[0],n=e[1],r=e[2];t.x1=i[0],t.y1=i[1],t.x2=n[0],t.y2=n[1],t.percent=1,r?(t.cpx1=r[0],t.cpy1=r[1]):(t.cpx1=NaN,t.cpy1=NaN)}function Kd(t,e,i){jb.call(this),this._createLine(t,e,i)}function Jd(t){this._ctor=t||Kd,this.group=new jb}function Qd(t,e,i,n){if(rf(e.getItemLayout(i))){var r=new t._ctor(e,i,n);e.setItemGraphicEl(i,r),t.group.add(r)}}function tf(t,e,i,n,r,o){var a=e.getItemGraphicEl(n);rf(i.getItemLayout(r))?(a?a.updateData(i,r,o):a=new t._ctor(i,r,o),i.setItemGraphicEl(r,a),t.group.add(a)):t.group.remove(a)}function ef(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function nf(t){return isNaN(t[0])||isNaN(t[1])}function rf(t){return!nf(t[0])&&!nf(t[1])}function of(t,e,i){for(var n,r=t[0],o=t[1],a=t[2],s=1/0,l=i*i,u=.1,c=.1;c<=.9;c+=.1)xk[0]=wk(r[0],o[0],a[0],c),xk[1]=wk(r[1],o[1],a[1],c),(f=Tk(Sk(xk,e)-l))<s&&(s=f,n=c);for(var h=0;h<32;h++){var d=n+u;_k[0]=wk(r[0],o[0],a[0],n),_k[1]=wk(r[1],o[1],a[1],n),bk[0]=wk(r[0],o[0],a[0],d),bk[1]=wk(r[1],o[1],a[1],d);var f=Sk(_k,e)-l;if(Tk(f)<.01)break;var p=Sk(bk,e)-l;u/=2,f<0?p>=0?n+=u:n-=u:p>=0?n-=u:n+=u}return n}function af(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function sf(t,e,i){var n=t.getGraphicEl(),r=af(t,e);null!=i&&(null==r&&(r=1),r*=i),n.downplay&&n.downplay(),n.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",r)})}function lf(t,e){var i=af(t,e),n=t.getGraphicEl();n.highlight&&n.highlight(),n.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",i)})}function uf(t){return t instanceof Array||(t=[t,t]),t}function cf(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=t.getGraph();i.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),hf(i)}}function hf(t){t.eachEdge(function(t){var e=t.getModel().get("lineStyle.curveness")||0,i=V(t.node1.getLayout()),n=V(t.node2.getLayout()),r=[i,n];+e&&r.push([(i[0]+n[0])/2-(i[1]-n[1])*e,(i[1]+n[1])/2-(n[0]-i[0])*e]),t.setLayout(r)})}function df(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=e.getBoundingRect(),n=t.getData(),r=n.graph,o=0,a=n.getSum("value"),s=2*Math.PI/(a||n.count()),l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2;r.eachNode(function(t){var e=t.getValue("value");o+=s*(a?e:1)/2,t.setLayout([c*Math.cos(o)+l,c*Math.sin(o)+u]),o+=s*(a?e:1)/2}),n.setLayout({cx:l,cy:u}),r.eachEdge(function(t){var e,i=t.getModel().get("lineStyle.curveness")||0,n=V(t.node1.getLayout()),r=V(t.node2.getLayout()),o=(n[0]+r[0])/2,a=(n[1]+r[1])/2;+i&&(e=[l*(i*=3)+o*(1-i),u*i+a*(1-i)]),t.setLayout([n,r,e])})}}function ff(t,e,i){for(var n=i.rect,r=n.width,o=n.height,a=[n.x+r/2,n.y+o/2],s=null==i.gravity?.1:i.gravity,l=0;l<t.length;l++){var u=t[l];u.p||(u.p=B(r*(Math.random()-.5)+a[0],o*(Math.random()-.5)+a[1])),u.pp=V(u.p),u.edges=null}var c=.6;return{warmUp:function(){c=.5},setFixed:function(e){t[e].fixed=!0},setUnfixed:function(e){t[e].fixed=!1},step:function(i){for(var n=[],r=t.length,o=0;o<e.length;o++){var l=e[o],u=l.n1;U(n,(p=l.n2).p,u.p);var h=G(n)-l.d,d=p.w/(u.w+p.w);isNaN(d)&&(d=0),X(n,n),!u.fixed&&Ik(u.p,u.p,n,d*h*c),!p.fixed&&Ik(p.p,p.p,n,-(1-d)*h*c)}for(o=0;o<r;o++)(v=t[o]).fixed||(U(n,a,v.p),Ik(v.p,v.p,n,s*c));for(o=0;o<r;o++)for(var u=t[o],f=o+1;f<r;f++){var p=t[f];U(n,p.p,u.p),0===(h=G(n))&&(W(n,Math.random()-.5,Math.random()-.5),h=1);var g=(u.rep+p.rep)/h/h;!u.fixed&&Ik(u.pp,u.pp,n,g),!p.fixed&&Ik(p.pp,p.pp,n,-g)}for(var m=[],o=0;o<r;o++){var v=t[o];v.fixed||(U(m,v.p,v.pp),Ik(v.p,v.p,m,c),H(v.pp,v.p))}c*=.992,i&&i(t,e,c<.01)}}}function pf(t,e,i){var n=t.getBoxLayoutParams();return n.aspect=i,so(n,{width:e.getWidth(),height:e.getHeight()})}function gf(t,e){var i=t.get("center"),n=e.getWidth(),r=e.getHeight(),o=Math.min(n,r);return{cx:Pr(i[0],e.getWidth()),cy:Pr(i[1],e.getHeight()),r:Pr(t.get("radius"),o/2)}}function mf(t,e){return e&&("string"==typeof e?t=e.replace("{value}",null!=t?t:""):"function"==typeof e&&(t=e(t))),t}function vf(t,e){function i(){o.ignore=o.hoverIgnore,a.ignore=a.hoverIgnore}function n(){o.ignore=o.normalIgnore,a.ignore=a.normalIgnore}jb.call(this);var r=new nT,o=new rT,a=new XS;this.add(r),this.add(o),this.add(a),this.updateData(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}function yf(t,e){return so(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function xf(t,e){for(var i=t.mapDimension("value"),n=t.mapArray(i,function(t){return t}),r=[],o="ascending"===e,a=0,s=t.count();a<s;a++)r[a]=a;return"function"==typeof e?r.sort(e):"none"!==e&&r.sort(function(t,e){return o?n[t]-n[e]:n[e]-n[t]}),r}function _f(t){t.each(function(e){var i,n,r,o,a=t.getItemModel(e),s=a.getModel("label").get("position"),l=a.getModel("labelLine"),u=t.getItemLayout(e),c=u.points,h="inner"===s||"inside"===s||"center"===s;if(h)i="center",o=[[n=(c[0][0]+c[1][0]+c[2][0]+c[3][0])/4,r=(c[0][1]+c[1][1]+c[2][1]+c[3][1])/4],[n,r]];else{var d,f,p,g=l.get("length");"left"===s?(d=(c[3][0]+c[0][0])/2,f=(c[3][1]+c[0][1])/2,n=(p=d-g)-5,i="right"):(d=(c[1][0]+c[2][0])/2,f=(c[1][1]+c[2][1])/2,n=(p=d+g)+5,i="left");var m=f;o=[[d,f],[p,m]],r=m}u.label={linePoints:o,x:n,y:r,verticalAlign:"middle",textAlign:i,inside:h}})}function bf(t){if(!t.parallel){var e=!1;d(t.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}}function wf(t){d(Ii(t.parallelAxis),function(e){if(b(e)){var i=e.parallelIndex||0,r=Ii(t.parallel)[i];r&&r.parallelAxisDefault&&n(e,r.parallelAxisDefault,!1)}})}function Sf(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:i<0?1:e?-1:1}}function Tf(t,e){return Math.min(e[1],Math.max(e[0],t))}function Cf(t,e,i){this._axesMap=R(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,i)}function Mf(t,e){return zk(Fk(t,e[0]),e[1])}function Df(t,e){var i=e.layoutLength/(e.axisCount-1);return{position:i*t,axisNameAvailableWidth:i,axisLabelShow:!0}}function If(t,e){var i,n,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(i=t*s,n=s):t<=l[1]?(i=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,c=!0):(i=r-(a-1-t)*s,n=s),{position:i,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:n}}function Af(t){ob.call(this),this._zr=t,this.group=new jb,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+rE++,this._handlers={},Gk(oE,function(t,e){this._handlers[e]=m(t,this)},this)}function kf(t,e){var r=t._zr;t._enableGlobalPan||eh(r,tE,t._uid),Gk(t._handlers,function(t,e){r.on(e,t)}),t._brushType=e.brushType,t._brushOption=n(i(nE),e,!0)}function Ef(t){var e=t._zr;ih(e,tE,t._uid),Gk(t._handlers,function(t,i){e.off(i,t)}),t._brushType=t._brushOption=null}function Of(t,e){var i=aE[e.brushType].createCover(t,e);return i.__brushOption=e,Pf(i,e),t.group.add(i),i}function Nf(t,e){var i=zf(e);return i.endCreating&&(i.endCreating(t,e),Pf(e,e.__brushOption)),e}function Lf(t,e){var i=e.__brushOption;zf(e).updateCoverShape(t,e,i.range,i)}function Pf(t,e){var i=e.z;null==i&&(i=Kk),t.traverse(function(t){t.z=i,t.z2=i})}function Rf(t,e){zf(e).updateCommon(t,e),Lf(t,e)}function zf(t){return aE[t.__brushOption.brushType]}function Ff(t,e,i){var n=t._panels;if(!n)return!0;var r,o=t._transform;return Gk(n,function(t){t.isTargetByCursor(e,i,o)&&(r=t)}),r}function Bf(t,e){var i=t._panels;if(!i)return!0;var n=e.__brushOption.panelId;return null==n||i[n]}function Hf(t){var e=t._covers,i=e.length;return Gk(e,function(e){t.group.remove(e)},t),e.length=0,!!i}function Vf(t,e){var n=qk(t._covers,function(t){var e=t.__brushOption,n=i(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}});t.trigger("brush",n,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Wf(t){var e=t._track;if(!e.length)return!1;var i=e[e.length-1],n=e[0],r=i[0]-n[0],o=i[1]-n[1];return Zk(r*r+o*o,.5)>Jk}function $f(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function jf(t,e,i,n){var r=new jb;return r.add(new oT({name:"main",style:Yf(i),silent:!0,draggable:!0,cursor:"move",drift:Uk(t,e,r,"nswe"),ondragend:Uk(Vf,e,{isEnd:!0})})),Gk(n,function(i){r.add(new oT({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Uk(t,e,r,i),ondragend:Uk(Vf,e,{isEnd:!0})}))}),r}function Uf(t,e,i,n){var r=n.brushStyle.lineWidth||0,o=Xk(r,Qk),a=i[0][0],s=i[1][0],l=a-r/2,u=s-r/2,c=i[0][1],h=i[1][1],d=c-o+r/2,f=h-o+r/2,p=c-a,g=h-s,m=p+r,v=g+r;qf(t,e,"main",a,s,p,g),n.transformable&&(qf(t,e,"w",l,u,o,v),qf(t,e,"e",d,u,o,v),qf(t,e,"n",l,u,m,o),qf(t,e,"s",l,f,m,o),qf(t,e,"nw",l,u,o,o),qf(t,e,"ne",d,u,o,o),qf(t,e,"sw",l,f,o,o),qf(t,e,"se",d,f,o,o))}function Gf(t,e){var i=e.__brushOption,n=i.transformable,r=e.childAt(0);r.useStyle(Yf(i)),r.attr({silent:!n,cursor:n?"move":"default"}),Gk(["w","e","n","s","se","sw","ne","nw"],function(i){var r=e.childOfName(i),o=Kf(t,i);r&&r.attr({silent:!n,invisible:!n,cursor:n?iE[o]+"-resize":null})})}function qf(t,e,i,n,r,o,a){var s=e.childOfName(i);s&&s.setShape(ip(ep(t,e,[[n,r],[n+o,r+a]])))}function Yf(t){return a({strokeNoScale:!0},t.brushStyle)}function Xf(t,e,i,n){var r=[Yk(t,i),Yk(e,n)],o=[Xk(t,i),Xk(e,n)];return[[r[0],o[0]],[r[1],o[1]]]}function Zf(t){return Sr(t.group)}function Kf(t,e){if(e.length>1)return("e"===(n=[Kf(t,(e=e.split(""))[0]),Kf(t,e[1])])[0]||"w"===n[0])&&n.reverse(),n.join("");var i={left:"w",right:"e",top:"n",bottom:"s"},n=Cr({w:"left",e:"right",n:"top",s:"bottom"}[e],Zf(t));return i[n]}function Jf(t,e,i,n,r,o,a,s){var l=n.__brushOption,u=t(l.range),c=tp(i,o,a);Gk(r.split(""),function(t){var e=eE[t];u[e[0]][e[1]]+=c[e[0]]}),l.range=e(Xf(u[0][0],u[1][0],u[0][1],u[1][1])),Rf(i,n),Vf(i,{isEnd:!1})}function Qf(t,e,i,n,r){var o=e.__brushOption.range,a=tp(t,i,n);Gk(o,function(t){t[0]+=a[0],t[1]+=a[1]}),Rf(t,e),Vf(t,{isEnd:!1})}function tp(t,e,i){var n=t.group,r=n.transformCoordToLocal(e,i),o=n.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function ep(t,e,n){var r=Bf(t,e);return r&&!0!==r?r.clipPath(n,t._transform):i(n)}function ip(t){var e=Yk(t[0][0],t[1][0]),i=Yk(t[0][1],t[1][1]);return{x:e,y:i,width:Xk(t[0][0],t[1][0])-e,height:Xk(t[0][1],t[1][1])-i}}function np(t,e,i){if(t._brushType){var n=t._zr,r=t._covers,o=Ff(t,e,i);if(!t._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(!0===o||s.panelId===o.panelId)&&aE[s.brushType].contain(r[a],i[0],i[1]))return}o&&n.setCursorStyle("crosshair")}}function rp(t){var e=t.event;e.preventDefault&&e.preventDefault()}function op(t,e,i){return t.childOfName("main").contain(e,i)}function ap(t,e,n,r){var o,a=t._creatingCover,s=t._creatingPanel,l=t._brushOption;if(t._track.push(n.slice()),Wf(t)||a){if(s&&!a){"single"===l.brushMode&&Hf(t);var u=i(l);u.brushType=sp(u.brushType,s),u.panelId=!0===s?null:s.panelId,a=t._creatingCover=Of(t,u),t._covers.push(a)}if(a){var c=aE[sp(t._brushType,s)];a.__brushOption.range=c.getCreatingRange(ep(t,a,t._track)),r&&(Nf(t,a),c.updateCommon(t,a)),Lf(t,a),o={isEnd:r}}}else r&&"single"===l.brushMode&&l.removeOnClick&&Ff(t,e,n)&&Hf(t)&&(o={isEnd:r,removeOnClick:!0});return o}function sp(t,e){return"auto"===t?e.defaultBrushType:t}function lp(t){if(this._dragging){rp(t);var e=ap(this,t,this.group.transformCoordToLocal(t.offsetX,t.offsetY),!0);this._dragging=!1,this._track=[],this._creatingCover=null,e&&Vf(this,e)}}function up(t){return{createCover:function(e,i){return jf(Uk(Jf,function(e){var i=[e,[0,100]];return t&&i.reverse(),i},function(e){return e[t]}),e,i,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var i=$f(e);return[Yk(i[0][t],i[1][t]),Xk(i[0][t],i[1][t])]},updateCoverShape:function(e,i,n,r){var o,a=Bf(e,i);if(!0!==a&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,o];t&&l.reverse(),Uf(e,i,l,r)},updateCommon:Gf,contain:op}}function cp(t){return t=fp(t),function(e,i){return Dr(e,t)}}function hp(t,e){return t=fp(t),function(i){var n=null!=e?e:i,r=n?t.width:t.height,o=n?t.x:t.y;return[o,o+(r||0)]}}function dp(t,e,i){return t=fp(t),function(n,r,o){return t.contain(r[0],r[1])&&!mh(n,e,i)}}function fp(t){return ue.create(t)}function pp(t,e,i){return i&&"axisAreaSelect"===i.type&&e.findComponents({mainType:"parallelAxis",query:i})[0]===t}function gp(t){var e=t.axis;return f(t.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function mp(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}function vp(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}function yp(t,e){if(!t.encodeDefine){var i=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(i){var n=t.encodeDefine=R();d(i.dimensions,function(t){var e=xp(t);n.set(t,e)})}}}function xp(t){return+t.replace("dim","")}function _p(t,e,i){var n=t.model,r=t.getRect(),o=new oT({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===n.get("layout")?"width":"height";return o.setShape(a,0),wr(o,{shape:{width:r.width,height:r.height}},e,i),o}function bp(t,e,i,n){for(var r=[],o=0;o<i.length;o++){var a=i[o],s=t.get(t.mapDimension(a),e);Cp(s,n.getAxis(a).type)||r.push(n.dataToPoint(s,a))}return r}function wp(t,e,i,n,r){var o=bp(t,i,n,r),a=new rT({shape:{points:o},silent:!0,z2:10});return e.add(a),t.setItemGraphicEl(i,a),a}function Sp(t){var e=t.get("smooth",!0);return!0===e&&(e=cE),{lineStyle:t.getModel("lineStyle").getLineStyle(),smooth:null!=e?e:cE}}function Tp(t,e,i,n){var r=n.lineStyle;e.hasItemOption&&(r=e.getItemModel(i).getModel("lineStyle").getLineStyle()),t.useStyle(r);var o=t.style;o.fill=null,o.stroke=e.getItemVisual(i,"color"),o.opacity=e.getItemVisual(i,"opacity"),n.smooth&&(t.shape.smooth=n.smooth)}function Cp(t,e){return"category"===e?null==t:null==t||isNaN(t)}function Mp(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function Dp(t,e,i){var n=t.getGraphicEl(),r=Mp(t,e);null!=i&&(null==r&&(r=1),r*=i),n.downplay&&n.downplay(),n.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",r)})}function Ip(t,e){var i=Mp(t,e),n=t.getGraphicEl();n.highlight&&n.highlight(),n.traverse(function(t){"group"!==t.type&&t.setStyle("opacity",i)})}function Ap(t,e,i){var n=new oT({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return wr(n,{shape:{width:t.width+20,height:t.height+20}},e,i),n}function kp(){function t(e,n){if(n>=i.length)return e;for(var r=-1,o=e.length,a=i[n++],s={},l={};++r<o;){var u=a(e[r]),c=l[u] ;c?c.push(e[r]):l[u]=[e[r]]}return d(l,function(e,i){s[i]=t(e,n)}),s}function e(t,r){if(r>=i.length)return t;var o=[],a=n[r++];return d(t,function(t,i){o.push({key:i,values:e(t,r)})}),a?o.sort(function(t,e){return a(t.key,e.key)}):o}var i=[],n=[];return{key:function(t){return i.push(t),this},sortKeys:function(t){return n[i.length-1]=t,this},entries:function(i){return e(t(i,0),0)}}}function Ep(t,e){return so(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Op(t,e,i,n,r,o,a,s){Lp(t,e,i,r,o,s),zp(t,e,o,r,n,a,s),Yp(t,s)}function Np(t){d(t,function(t){var e=Gp(t.outEdges,Up),i=Gp(t.inEdges,Up),n=Math.max(e,i);t.setLayout({value:n},!0)})}function Lp(t,e,i,n,r,o){for(var a=[],s=[],l=[],u=[],c=0,h=0;h<e.length;h++)a[h]=1;for(h=0;h<t.length;h++)s[h]=t[h].inEdges.length,0===s[h]&&l.push(t[h]);for(;l.length;){for(var d=0;d<l.length;d++){var f=l[d];"vertical"===o?(f.setLayout({y:c},!0),f.setLayout({dy:i},!0)):(f.setLayout({x:c},!0),f.setLayout({dx:i},!0));for(var p=0;p<f.outEdges.length;p++){var g=f.outEdges[p];a[e.indexOf(g)]=0;var m=g.node2;0==--s[t.indexOf(m)]&&u.push(m)}}++c,l=u,u=[]}for(h=0;h<a.length;h++);Pp(t,c,o),Rp(t,"vertical"===o?(r-i)/(c-1):(n-i)/(c-1),o)}function Pp(t,e,i){d(t,function(t){t.outEdges.length||("vertical"===i?t.setLayout({y:e-1},!0):t.setLayout({x:e-1},!0))})}function Rp(t,e,i){d(t,function(t){if("vertical"===i){var n=t.getLayout().y*e;t.setLayout({y:n},!0)}else{var r=t.getLayout().x*e;t.setLayout({x:r},!0)}})}function zp(t,e,i,n,r,o,a){var s=kp().key(Fp(a)).sortKeys(function(t,e){return t-e}).entries(t).map(function(t){return t.values});Bp(t,s,e,i,n,r,a),Hp(s,r,i,n,a);for(var l=1;o>0;o--)Vp(s,l*=.99,a),Hp(s,r,i,n,a),qp(s,l,a),Hp(s,r,i,n,a)}function Fp(t){return"vertical"===t?function(t){return t.getLayout().y}:function(t){return t.getLayout().x}}function Bp(t,e,i,n,r,o,a){var s=[];d(e,function(t){var e=t.length,i=0,l=0;d(t,function(t){i+=t.getLayout().value}),l="vertical"===a?(r-(e-1)*o)/i:(n-(e-1)*o)/i,s.push(l)}),s.sort(function(t,e){return t-e});var l=s[0];d(e,function(t){d(t,function(t,e){var i=t.getLayout().value*l;"vertical"===a?(t.setLayout({x:e},!0),t.setLayout({dx:i},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:i},!0))})}),d(i,function(t){var e=+t.getValue()*l;t.setLayout({dy:e},!0)})}function Hp(t,e,i,n,r){d(t,function(t){var o,a,s,l=0,u=t.length;if("vertical"===r){var c;for(t.sort(function(t,e){return t.getLayout().x-e.getLayout().x}),s=0;s<u;s++)(a=l-(o=t[s]).getLayout().x)>0&&(c=o.getLayout().x+a,o.setLayout({x:c},!0)),l=o.getLayout().x+o.getLayout().dx+e;if((a=l-e-n)>0)for(c=o.getLayout().x-a,o.setLayout({x:c},!0),l=c,s=u-2;s>=0;--s)(a=(o=t[s]).getLayout().x+o.getLayout().dx+e-l)>0&&(c=o.getLayout().x-a,o.setLayout({x:c},!0)),l=o.getLayout().x}else{var h;for(t.sort(function(t,e){return t.getLayout().y-e.getLayout().y}),s=0;s<u;s++)(a=l-(o=t[s]).getLayout().y)>0&&(h=o.getLayout().y+a,o.setLayout({y:h},!0)),l=o.getLayout().y+o.getLayout().dy+e;if((a=l-e-i)>0)for(h=o.getLayout().y-a,o.setLayout({y:h},!0),l=h,s=u-2;s>=0;--s)(a=(o=t[s]).getLayout().y+o.getLayout().dy+e-l)>0&&(h=o.getLayout().y-a,o.setLayout({y:h},!0)),l=o.getLayout().y}})}function Vp(t,e,i){d(t.slice().reverse(),function(t){d(t,function(t){if(t.outEdges.length){var n=Gp(t.outEdges,Wp,i)/Gp(t.outEdges,Up,i);if("vertical"===i){var r=t.getLayout().x+(n-jp(t,i))*e;t.setLayout({x:r},!0)}else{var o=t.getLayout().y+(n-jp(t,i))*e;t.setLayout({y:o},!0)}}})})}function Wp(t,e){return jp(t.node2,e)*t.getValue()}function $p(t,e){return jp(t.node1,e)*t.getValue()}function jp(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Up(t){return t.getValue()}function Gp(t,e,i){for(var n=0,r=t.length,o=-1;++o<r;){var a=+e.call(t,t[o],i);isNaN(a)||(n+=a)}return n}function qp(t,e,i){d(t,function(t){d(t,function(t){if(t.inEdges.length){var n=Gp(t.inEdges,$p,i)/Gp(t.inEdges,Up,i);if("vertical"===i){var r=t.getLayout().x+(n-jp(t,i))*e;t.setLayout({x:r},!0)}else{var o=t.getLayout().y+(n-jp(t,i))*e;t.setLayout({y:o},!0)}}})})}function Yp(t,e){d(t,function(t){"vertical"===e?(t.outEdges.sort(function(t,e){return t.node2.getLayout().x-e.node2.getLayout().x}),t.inEdges.sort(function(t,e){return t.node1.getLayout().x-e.node1.getLayout().x})):(t.outEdges.sort(function(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}),t.inEdges.sort(function(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}))}),d(t,function(t){var e=0,i=0;d(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),d(t.inEdges,function(t){t.setLayout({ty:i},!0),i+=t.getLayout().dy})})}function Xp(t,e,i,n,r){var o=t.ends,a=new xE({shape:{points:r?Kp(o,n,t):o}});return Zp(t,a,e,i,r),a}function Zp(t,e,i,n,r){var o=i.hostModel;(0,wT[r?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,n);var a=i.getItemModel(n),s=a.getModel(vE),l=i.getItemVisual(n,"color"),u=s.getItemStyle(["borderColor"]);u.stroke=l,u.strokeNoScale=!0,e.useStyle(u),e.z2=100,ur(e,a.getModel(yE).getItemStyle())}function Kp(t,e,i){return f(t,function(t){return t=t.slice(),t[e]=i.initBaseline,t})}function Jp(t){var e=[],i=[];return t.eachSeriesByType("boxplot",function(t){var n=t.getBaseAxis(),r=l(i,n);r<0&&(r=i.length,i[r]=n,e[r]={axis:n,seriesModels:[]}),e[r].seriesModels.push(t)}),e}function Qp(t){var e,i,n=t.axis,r=t.seriesModels,o=r.length,a=t.boxWidthList=[],s=t.boxOffsetList=[],l=[];if("category"===n.type)i=n.getBandWidth();else{var u=0;bE(r,function(t){u=Math.max(u,t.getData().count())}),e=n.getExtent(),Math.abs(e[1]-e[0])}bE(r,function(t){var e=t.get("boxWidth");y(e)||(e=[e,e]),l.push([Pr(e[0],i)||0,Pr(e[1],i)||0])});var c=.8*i-2,h=c/o*.3,d=(c-h*(o-1))/o,f=d/2-c/2;bE(r,function(t,e){s.push(f),f+=h+d,a.push(Math.min(Math.max(d,l[e][0]),l[e][1]))})}function tg(t,e,i){function n(t,i,n){var r=s.get(i,n),o=[];o[u]=t,o[c]=r;var l;return isNaN(t)||isNaN(r)?l=[NaN,NaN]:(l=a.dataToPoint(o))[u]+=e,l}function r(t,e,i){var n=e.slice(),r=e.slice();n[u]+=l,r[u]-=l,i?t.push(n,r):t.push(r,n)}function o(t,e){var i=e.slice(),n=e.slice();i[u]-=l,n[u]+=l,t.push(i,n)}var a=t.coordinateSystem,s=t.getData(),l=i/2,u="horizontal"===t.get("layout")?0:1,c=1-u,h=["x","y"],d=s.mapDimension(h[u]),f=s.mapDimension(h[c],!0);if(!(null==d||f.length<5))for(var p=0;p<s.count();p++){var g=s.get(d,p),m=n(g,f[2],p),v=n(g,f[0],p),y=n(g,f[1],p),x=n(g,f[3],p),_=n(g,f[4],p),b=[];r(b,y,0),r(b,x,1),b.push(v,y,_,x),o(b,v),o(b,_),o(b,m),s.setItemLayout(p,{initBaseline:m[c],ends:b})}}function eg(t,e,i){var n=t.ends;return new CE({shape:{points:i?ng(n,t):n},z2:100})}function ig(t,e,i,n){var r=e.getItemModel(i),o=r.getModel(wE),a=e.getItemVisual(i,"color"),s=e.getItemVisual(i,"borderColor")||a,l=o.getItemStyle(TE);t.useStyle(l),t.style.strokeNoScale=!0,t.style.fill=a,t.style.stroke=s,t.__simpleBox=n,ur(t,r.getModel(SE).getItemStyle())}function ng(t,e){return f(t,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}function rg(t,e,i){var n=t.getData(),r=n.getLayout("largePoints"),o=new ME({shape:{points:r},__sign:1});e.add(o);var a=new ME({shape:{points:r},__sign:-1});e.add(a),og(1,o,t,n),og(-1,a,t,n),i&&(o.incremental=!0,a.incremental=!0)}function og(t,e,i,n){var r=t>0?"P":"N",o=n.getVisual("borderColor"+r)||n.getVisual("color"+r),a=i.getModel(wE).getItemStyle(TE);e.useStyle(a),e.style.fill=null,e.style.stroke=o}function ag(t,e,i,n,r){return i>n?-1:i<n?1:e>0?t.get(r,e-1)<=n?1:-1:1}function sg(t,e){var i,n=t.getBaseAxis(),r="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),o=Pr(D(t.get("barMaxWidth"),r),r),a=Pr(D(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?Pr(s,r):Math.max(Math.min(r/2,o),a)}function lg(t){return y(t)||(t=[+t,+t]),t}function ug(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})})}function cg(t,e){jb.call(this);var i=new mu(t,e),n=new jb;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}function hg(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=f(e,function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),r([e,t[0],t[1]])}))}function dg(t,e,i){jb.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}function fg(t,e,i){jb.call(this),this._createPolyline(t,e,i)}function pg(t,e,i){dg.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}function gg(){this.group=new jb}function mg(t){return t instanceof Array||(t=[t,t]),t}function vg(){var t=Y_();this.canvas=t,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}function yg(t,e,i){var n=t[1]-t[0],r=(e=f(e,function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}})).length,o=0;return function(t){for(n=o;n<r;n++)if((a=e[n].interval)[0]<=t&&t<=a[1]){o=n;break}if(n===r)for(var n=o-1;n>=0;n--){var a=e[n].interval;if(a[0]<=t&&t<=a[1]){o=n;break}}return n>=0&&n<r&&i[n]}}function xg(t,e){var i=t[1]-t[0];return e=[(e[0]-t[0])/i,(e[1]-t[0])/i],function(t){return t>=e[0]&&t<=e[1]}}function _g(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}function bg(t,e,i,n){var r=t.getItemLayout(e),o=i.get("symbolRepeat"),a=i.get("symbolClip"),s=i.get("symbolPosition")||"start",l=(i.get("symbolRotate")||0)*Math.PI/180||0,u=i.get("symbolPatternSize")||2,c=i.isAnimationEnabled(),h={dataIndex:e,layout:r,itemModel:i,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:c?i:null,hoverAnimation:c&&i.get("hoverAnimation"),z2:i.getShallow("z",!0)||0};wg(i,o,r,n,h),Tg(t,e,r,o,a,h.boundingLength,h.pxSign,u,n,h),Cg(i,h.symbolScale,l,n,h);var d=h.symbolSize,f=i.get("symbolOffset");return y(f)&&(f=[Pr(f[0],d[0]),Pr(f[1],d[1])]),Mg(i,d,r,o,a,f,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function wg(t,e,i,n,r){var o,a=n.valueDim,s=t.get("symbolBoundingData"),l=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(i[a.wh]<=0);if(y(s)){var h=[Sg(l,s[0])-u,Sg(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?Sg(l,s)-u:e?n.coordSysExtent[a.index][c]-u:i[a.wh];r.boundingLength=o,e&&(r.repeatCutLength=i[a.wh]),r.pxSign=o>0?1:o<0?-1:0}function Sg(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Tg(t,e,i,n,r,o,a,s,l,u){var c=l.valueDim,h=l.categoryDim,d=Math.abs(i[h.wh]),f=t.getItemVisual(e,"symbolSize");y(f)?f=f.slice():(null==f&&(f="100%"),f=[f,f]),f[h.index]=Pr(f[h.index],d),f[c.index]=Pr(f[c.index],n?d:Math.abs(o)),u.symbolSize=f,(u.symbolScale=[f[0]/s,f[1]/s])[c.index]*=(l.isHorizontal?-1:1)*a}function Cg(t,e,i,n,r){var o=t.get(qE)||0;o&&(XE.attr({scale:e.slice(),rotation:i}),XE.updateTransform(),o/=XE.getLineScale(),o*=e[n.valueDim.index]),r.valueLineWidth=o}function Mg(t,e,i,n,r,a,s,l,u,c,h,d){var f=h.categoryDim,p=h.valueDim,g=d.pxSign,m=Math.max(e[p.index]+l,0),v=m;if(n){var y=Math.abs(u),x=M(t.get("symbolMargin"),"15%")+"",_=!1;x.lastIndexOf("!")===x.length-1&&(_=!0,x=x.slice(0,x.length-1)),x=Pr(x,e[p.index]);var b=Math.max(m+2*x,0),w=_?0:2*x,S=Xr(n),T=S?n:$g((y+w)/b);b=m+2*(x=(y-T*m)/2/(_?T:T-1)),w=_?0:2*x,S||"fixed"===n||(T=c?$g((Math.abs(c)+w)/b):0),v=T*b-w,d.repeatTimes=T,d.symbolMargin=x}var C=g*(v/2),D=d.pathPosition=[];D[f.index]=i[f.wh]/2,D[p.index]="start"===s?C:"end"===s?u-C:u/2,a&&(D[0]+=a[0],D[1]+=a[1]);var I=d.bundlePosition=[];I[f.index]=i[f.xy],I[p.index]=i[p.xy];var A=d.barRectShape=o({},i);A[p.wh]=g*Math.max(Math.abs(i[p.wh]),Math.abs(D[p.index]+C)),A[f.wh]=i[f.wh];var k=d.clipShape={};k[f.xy]=-i[f.xy],k[f.wh]=h.ecSize[f.wh],k[p.xy]=0,k[p.wh]=i[p.wh]}function Dg(t){var e=t.symbolPatternSize,i=Gl(t.symbolType,-e/2,-e/2,e,e,t.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function Ig(t,e,i,n){function r(t){var e=l.slice(),n=i.pxSign,r=t;return("start"===i.symbolRepeatDirection?n>0:n<0)&&(r=c-1-t),e[u.index]=d*(r-c/2+.5)+l[u.index],{position:e,scale:i.symbolScale.slice(),rotation:i.rotation}}var o=t.__pictorialBundle,a=i.symbolSize,s=i.valueLineWidth,l=i.pathPosition,u=e.valueDim,c=i.repeatTimes||0,h=0,d=a[e.valueDim.index]+s+2*i.symbolMargin;for(Hg(t,function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=c,h<c?Vg(t,null,r(h),i,n):Vg(t,null,{scale:[0,0]},i,n,function(){o.remove(t)}),Pg(t,i),h++});h<c;h++){var f=Dg(i);f.__pictorialAnimationIndex=h,f.__pictorialRepeatTimes=c,o.add(f);var p=r(h);Vg(f,{position:p.position,scale:[0,0]},{scale:p.scale,rotation:p.rotation},i,n),f.on("mouseover",function(){Hg(t,function(t){t.trigger("emphasis")})}).on("mouseout",function(){Hg(t,function(t){t.trigger("normal")})}),Pg(f,i)}}function Ag(t,e,i,n){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?Vg(o,null,{position:i.pathPosition.slice(),scale:i.symbolScale.slice(),rotation:i.rotation},i,n):(o=t.__pictorialMainPath=Dg(i),r.add(o),Vg(o,{position:i.pathPosition.slice(),scale:[0,0],rotation:i.rotation},{scale:i.symbolScale.slice()},i,n),o.on("mouseover",function(){this.trigger("emphasis")}).on("mouseout",function(){this.trigger("normal")})),Pg(o,i)}function kg(t,e,i){var n=o({},e.barRectShape),r=t.__pictorialBarRect;r?Vg(r,null,{shape:n},e,i):(r=t.__pictorialBarRect=new oT({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(r))}function Eg(t,e,i,n){if(i.symbolClip){var r=t.__pictorialClipPath,a=o({},i.clipShape),s=e.valueDim,l=i.animationModel,u=i.dataIndex;if(r)br(r,{shape:a},l,u);else{a[s.wh]=0,r=new oT({shape:a}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var c={};c[s.wh]=i.clipShape[s.wh],wT[n?"updateProps":"initProps"](r,{shape:c},l,u)}}}function Og(t,e){var i=t.getItemModel(e);return i.getAnimationDelayParams=Ng,i.isAnimationEnabled=Lg,i}function Ng(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function Lg(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Pg(t,e){t.off("emphasis").off("normal");var i=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",function(){this.animateTo({scale:[1.1*i[0],1.1*i[1]]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:i.slice()},400,"elasticOut")})}function Rg(t,e,i,n){var r=new jb,o=new jb;return r.add(o),r.__pictorialBundle=o,o.attr("position",i.bundlePosition.slice()),i.symbolRepeat?Ig(r,e,i):Ag(r,e,i),kg(r,i,n),Eg(r,e,i,n),r.__pictorialShapeStr=Bg(t,i),r.__pictorialSymbolMeta=i,r}function zg(t,e,i){var n=i.animationModel,r=i.dataIndex;br(t.__pictorialBundle,{position:i.bundlePosition.slice()},n,r),i.symbolRepeat?Ig(t,e,i,!0):Ag(t,e,i,!0),kg(t,i,!0),Eg(t,e,i,!0)}function Fg(t,e,i,n){var r=n.__pictorialBarRect;r&&(r.style.text=null);var o=[];Hg(n,function(t){o.push(t)}),n.__pictorialMainPath&&o.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),d(o,function(t){br(t,{scale:[0,0]},i,e,function(){n.parent&&n.parent.remove(n)})}),t.setItemGraphicEl(e,null)}function Bg(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Hg(t,e,i){d(t.__pictorialBundle.children(),function(n){n!==t.__pictorialBarRect&&e.call(i,n)})}function Vg(t,e,i,n,r,o){e&&t.attr(e),n.symbolClip&&!r?i&&t.attr(i):i&&wT[r?"updateProps":"initProps"](t,i,n.animationModel,n.dataIndex,o)}function Wg(t,e,i){var n=i.color,r=i.dataIndex,o=i.itemModel,s=o.getModel("itemStyle").getItemStyle(["color"]),l=o.getModel("emphasis.itemStyle").getItemStyle(),u=o.getShallow("cursor");Hg(t,function(t){t.setColor(n),t.setStyle(a({fill:n,opacity:i.opacity},s)),ur(t,l),u&&(t.cursor=u),t.z2=i.z2});var c={},h=e.valueDim.posDesc[+(i.boundingLength>0)],d=t.__pictorialBarRect;Mc(d.style,c,o,n,e.seriesModel,r,h),ur(d,c)}function $g(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}function jg(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}function Ug(t,e){e=e||{};var i=t.coordinateSystem,n=t.axis,r={},o=n.position,a=n.orient,s=i.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];var c={horizontal:0,vertical:1};r.rotation=Math.PI/2*c[a];var h={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=h[o],t.get("axisTick.inside")&&(r.tickDirection=-r.tickDirection),M(e.labelInside,t.get("axisLabel.inside"))&&(r.labelDirection=-r.labelDirection);var d=e.rotate;return null==d&&(d=t.get("axisLabel.rotate")),r.labelRotation="top"===o?-d:d,r.z2=1,r}function Gg(t,e,i,n,r){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e))if(t.involveSeries){var s=qg(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==r.seriesIndex&&o(r,l[0]),!n&&t.snap&&a.containData(u)&&null!=u&&(e=u),i.showPointer(t,e,l,r),i.showTooltip(t,s,u)}else i.showPointer(t,e)}function qg(t,e){var i=e.axis,n=i.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return iO(e.seriesModels,function(e,l){var u,c,h=e.getData().mapDimension(n,!0);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,i);c=d.dataIndices,u=d.nestestValue}else{if(!(c=e.getData().indicesOfNearest(h[0],t,"category"===i.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=a&&((p<a||f>=0&&s<0)&&(a=p,s=f,r=u,o.length=0),iO(c,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}function Yg(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function Xg(t,e,i,n){var r=i.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=wc(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:r.slice()})}}function Zg(t,e,i){var n=i.axesInfo=[];iO(e,function(e,i){var r=e.axisPointerModel.option,o=t[i];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function Kg(t,e,i,n){if(!em(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else n({type:"hideTip"})}function Jg(t,e,i){var n=i.getZr(),r=rO(n).axisPointerLastHighlights||{},o=rO(n).axisPointerLastHighlights={};iO(t,function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&iO(i.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t})});var a=[],s=[];d(r,function(t,e){!o[e]&&s.push(t)}),d(o,function(t,e){!r[e]&&a.push(t)}),s.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:s}),a.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:a})}function Qg(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function tm(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function em(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function im(t,e,i){if(!z_.node){var n=e.getZr();oO(n).records||(oO(n).records={}),nm(n,e),(oO(n).records[t]||(oO(n).records[t]={})).handler=i}}function nm(t,e){function i(i,n){t.on(i,function(i){var r=sm(e);aO(oO(t).records,function(t){t&&n(t,i,r.dispatchAction)}),rm(r.pendings,e)})}oO(t).initialized||(oO(t).initialized=!0,i("click",v(am,"click")),i("mousemove",v(am,"mousemove")),i("globalout",om))}function rm(t,e){var i,n=t.showTip.length,r=t.hideTip.length;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function om(t,e,i){t.handler("leave",null,i)}function am(t,e,i,n){e.handler(t,i,n)}function sm(t){var e={showTip:[],hideTip:[]},i=function(n){var r=e[n.type];r?r.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function lm(t,e){if(!z_.node){var i=e.getZr();(oO(i).records||{})[t]&&(oO(i).records[t]=null)}}function um(){}function cm(t,e,i,n){hm(lO(i).lastProp,n)||(lO(i).lastProp=n,e?br(i,n,t):(i.stopAnimation(),i.attr(n)))}function hm(t,e){if(b(t)&&b(e)){var i=!0;return d(e,function(e,n){i=i&&hm(t[n],e)}),!!i}return t===e}function dm(t,e){t[e.get("label.show")?"show":"hide"]()}function fm(t){return{position:t.position.slice(),rotation:t.rotation||0}}function pm(t,e,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)})}function gm(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle()).fill=null:"shadow"===i&&((e=n.getAreaStyle()).stroke=null),e}function mm(t,e,i,n,r){var o=ym(i.get("value"),e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),a=i.getModel("label"),s=LT(a.get("padding")||0),l=a.getFont(),u=Ie(o,l),c=r.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=r.align;"right"===f&&(c[0]-=h),"center"===f&&(c[0]-=h/2);var p=r.verticalAlign;"bottom"===p&&(c[1]-=d),"middle"===p&&(c[1]-=d/2),vm(c,h,d,n);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:h,height:d,r:a.get("borderRadius")},position:c.slice(),style:{text:o,textFont:l,textFill:a.getTextColor(),textPosition:"inside",fill:g,stroke:a.get("borderColor")||"transparent",lineWidth:a.get("borderWidth")||0,shadowBlur:a.get("shadowBlur"),shadowColor:a.get("shadowColor"),shadowOffsetX:a.get("shadowOffsetX"),shadowOffsetY:a.get("shadowOffsetY")},z2:10}}function vm(t,e,i,n){var r=n.getWidth(),o=n.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+i,o)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function ym(t,e,i,n,r){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:r.precision}),a=r.formatter;if(a){var s={value:Wl(e,t),seriesData:[]};d(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&s.seriesData.push(r)}),_(a)?o=a.replace("{value}",o):x(a)&&(o=a(s))}return o}function xm(t,e,i){var n=mt();return bt(n,n,i.rotation),_t(n,n,i.position),Tr([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function _m(t,e,i,n,r,o){var a=CI.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=r.get("label.margin"),mm(e,n,r,o,{position:xm(n.axis,t,i),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function bm(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function wm(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function Sm(t,e,i,n,r,o){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:o,clockwise:!0}}function Tm(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function Cm(t){return"x"===t.dim?0:1}function Mm(t){return t.isHorizontal()?0:1}function Dm(t,e){var i=t.getRect();return[i[fO[e]],i[fO[e]]+i[pO[e]]]}function Im(t,e,i){var n=new oT({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return wr(n,{shape:{width:t.width+20,height:t.height+20}},e,i),n}function Am(t,e,i){if(t.count())for(var n,r=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=f(o,function(e){return f(e.indices,function(e){var i=r.dataToPoint(t.get(a,e));return i[1]=t.get(s,e),i})}),u=km(l),c=u.y0,h=i/u.max,d=o.length,p=o[0].indices.length,g=0;g<p;++g){n=c[g]*h,t.setItemLayout(o[0].indices[g],{layerIndex:0,x:l[0][g][0],y0:n,y:l[0][g][1]*h});for(var m=1;m<d;++m)n+=l[m-1][g][1]*h,t.setItemLayout(o[m].indices[g],{layerIndex:m,x:l[m][g][0],y0:n,y:l[m][g][1]*h})}}function km(t){for(var e=t.length,i=t[0].length,n=[],r=[],o=0,a={},s=0;s<i;++s){for(var l=0,u=0;l<e;++l)u+=t[l][s][1];u>o&&(o=u),n.push(u)}for(var c=0;c<i;++c)r[c]=(o-n[c])/2;o=0;for(var h=0;h<i;++h){var d=n[h]+r[h];d>o&&(o=d)}return a.y0=r,a.max=o,a}function Em(t){var e=0;d(t.children,function(t){Em(t);var i=t.value;y(i)&&(i=i[0]),e+=i});var i=t.value;y(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),y(t.value)?t.value[0]=i:t.value=i}function Om(t,e,i){function n(){a.ignore=a.hoverIgnore}function r(){a.ignore=a.normalIgnore}jb.call(this);var o=new QS({z2:xO});o.seriesIndex=e.seriesIndex;var a=new XS({z2:_O,silent:t.getModel("label").get("silent")});this.add(o),this.add(a),this.updateData(!0,t,"normal",e,i),this.on("emphasis",n).on("normal",r).on("mouseover",n).on("mouseout",r)}function Nm(t,e,i){var n=t.getVisual("color"),r=t.getVisual("visualMeta");r&&0!==r.length||(n=null);var o=t.getModel("itemStyle").get("color");if(o)return o;if(n)return n;if(0===t.depth)return i.option.color[0];var a=i.option.color.length;return o=i.option.color[Lm(t)%a]}function Lm(t){for(var e=t;e.depth>1;)e=e.parentNode;return l(t.getAncestors()[0].children,e)}function Pm(t,e,i){return i!==yO.NONE&&(i===yO.SELF?t===e:i===yO.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}function Rm(t,e){var i=t.children||[];t.children=zm(i,e),i.length&&d(t.children,function(t){Rm(t,e)})}function zm(t,e){if("function"==typeof e)return t.sort(e);var i="asc"===e;return t.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n})}function Fm(t,e){return e=e||[0,0],f(["x","y"],function(i,n){var r=this.getAxis(i),o=e[n],a=t[n]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function Bm(t,e){return e=e||[0,0],f([0,1],function(i){var n=e[i],r=t[i]/2,o=[],a=[];return o[i]=n-r,a[i]=n+r,o[1-i]=a[1-i]=e[1-i],Math.abs(this.dataToPoint(o)[i]-this.dataToPoint(a)[i])},this)}function Hm(t,e){var i=this.getAxis(),n=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(n-r)-i.dataToCoord(n+r))}function Vm(t,e){return f(["Radius","Angle"],function(i,n){var r=this["get"+i+"Axis"](),o=e[n],a=t[n]/2,s="dataTo"+i,l="category"===r.type?r.getBandWidth():Math.abs(r[s](o-a)-r[s](o+a));return"Angle"===i&&(l=l*Math.PI/180),l},this)}function Wm(t){var e,i=t.type;if("path"===i){var n=t.shape,r=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=tv(n);(e=Wn(o,null,r,n.layout||"center")).__customPathData=o}else"image"===i?(e=new ci({})).__customImagePath=t.style.image:"text"===i?(e=new XS({})).__customText=t.style.text:e=new(0,wT[i.charAt(0).toUpperCase()+i.slice(1)]);return e.__customGraphicType=i,e.name=t.name,e}function $m(t,e,n,r,o,a,s){var l={},u=n.style||{};if(n.shape&&(l.shape=i(n.shape)),n.position&&(l.position=n.position.slice()),n.scale&&(l.scale=n.scale.slice()),n.origin&&(l.origin=n.origin.slice()),n.rotation&&(l.rotation=n.rotation),"image"===t.type&&n.style&&(c=l.style={},d(["x","y","width","height"],function(e){jm(e,c,u,t.style,a)})),"text"===t.type&&n.style){var c=l.style={};d(["x","y"],function(e){jm(e,c,u,t.style,a)}),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke)}if("group"!==t.type&&(t.useStyle(u),a)){t.style.opacity=0;var h=u.opacity;null==h&&(h=1),wr(t,{style:{opacity:h}},r,e)}a?t.attr(l):br(t,l,r,e),n.hasOwnProperty("z2")&&t.attr("z2",n.z2||0),n.hasOwnProperty("silent")&&t.attr("silent",n.silent),n.hasOwnProperty("invisible")&&t.attr("invisible",n.invisible),n.hasOwnProperty("ignore")&&t.attr("ignore",n.ignore),n.hasOwnProperty("info")&&t.attr("info",n.info);var f=n.styleEmphasis,p=!1===f;t.__cusHasEmphStl&&null==f||!t.__cusHasEmphStl&&p||(nr(t,f),t.__cusHasEmphStl=!p),s&&cr(t,!p)}function jm(t,e,i,n,r){null==i[t]||r||(e[t]=i[t],i[t]=n[t])}function Um(t,e,i,n){function r(t){null==t&&(t=c),v&&(h=e.getItemModel(t),d=h.getModel(DO),f=h.getModel(IO),p=e.getItemVisual(t,"color"),v=!1)}var s=t.get("renderItem"),l=t.coordinateSystem,u={};l&&(u=l.prepareCustoms?l.prepareCustoms():kO[l.type](l));var c,h,d,f,p,g=a({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:function(t,i){return null==i&&(i=c),e.get(e.getDimension(t||0),i)},style:function(i,n){null==n&&(n=c),r(n);var a=h.getModel(CO).getItemStyle();null!=p&&(a.fill=p);var s=e.getItemVisual(n,"opacity");return null!=s&&(a.opacity=s),dr(a,d,null,{autoColor:p,isRectText:!0}),a.text=d.getShallow("show")?D(t.getFormattedLabel(n,"normal"),gu(e,n)):null,i&&o(a,i),a},styleEmphasis:function(i,n){null==n&&(n=c),r(n);var a=h.getModel(MO).getItemStyle();return dr(a,f,null,{isRectText:!0},!0),a.text=f.getShallow("show")?I(t.getFormattedLabel(n,"emphasis"),t.getFormattedLabel(n,"normal"),gu(e,n)):null,i&&o(a,i),a},visual:function(t,i){return null==i&&(i=c),e.getItemVisual(i,t)},barLayout:function(t){if(l.getBaseAxis)return Ml(a({axis:l.getBaseAxis()},t),n)},currentSeriesIndices:function(){return i.getCurrentSeriesIndices()},font:function(t){return xr(t,i)}},u.api||{}),m={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:u.coordSys,dataInsideLength:e.count(),encode:Gm(t.getData())},v=!0;return function(t,i){return c=t,v=!0,s&&s(a({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:i?i.type:null},m),g)}}function Gm(t){var e={};return d(t.dimensions,function(i,n){var r=t.getDimensionInfo(i);if(!r.isExtraCoord){var o=r.coordDim;(e[o]=e[o]||[])[r.coordDimIndex]=n}}),e}function qm(t,e,i,n,r,o){return(t=Ym(t,e,i,n,r,o,!0))&&o.setItemGraphicEl(e,t),t}function Ym(t,e,i,n,r,o,a){var s=!i,l=(i=i||{}).type,u=i.shape,c=i.style;if(t&&(s||null!=l&&l!==t.__customGraphicType||"path"===l&&ev(u)&&tv(u)!==t.__customPathData||"image"===l&&iv(c,"image")&&c.image!==t.__customImagePath||"text"===l&&iv(u,"text")&&c.text!==t.__customText)&&(r.remove(t),t=null),!s){var h=!t;return!t&&(t=Wm(i)),$m(t,e,i,n,o,h,a),"group"===l&&Xm(t,e,i,n,o),r.add(t),t}}function Xm(t,e,i,n,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(a||l||u)if(l)Zm({oldChildren:t.children()||[],newChildren:o||[],dataIndex:e,animatableModel:n,group:t,data:r});else{u&&t.removeAll();for(var c=0;c<a;c++)o[c]&&Ym(t.childAt(c),e,o[c],n,t,r)}}function Zm(t){new $s(t.oldChildren,t.newChildren,Km,Km,t).add(Jm).update(Jm).remove(Qm).execute()}function Km(t,e){var i=t&&t.name;return null!=i?i:AO+e}function Jm(t,e){var i=this.context,n=null!=t?i.newChildren[t]:null;Ym(null!=e?i.oldChildren[e]:null,i.dataIndex,n,i.animatableModel,i.group,i.data)}function Qm(t){var e=this.context,i=e.oldChildren[t];i&&e.group.remove(i)}function tv(t){return t&&(t.pathData||t.d)}function ev(t){return t&&(t.hasOwnProperty("pathData")||t.hasOwnProperty("d"))}function iv(t,e){return t&&t.hasOwnProperty(e)}function nv(t,e,i,n){var r=i.type,o=new(0,wT[r.charAt(0).toUpperCase()+r.slice(1)])(i);e.add(o),n.set(t,o),o.__ecGraphicId=t}function rv(t,e){var i=t&&t.parent;i&&("group"===t.type&&t.traverse(function(t){rv(t,e)}),e.removeKey(t.__ecGraphicId),i.remove(t))}function ov(t){return t=o({},t),d(["id","parentId","$action","hv","bounding"].concat($T),function(e){delete t[e]}),t}function av(t,e){var i;return d(e,function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)}),i}function sv(t,e){var i=t.exist;if(e.id=t.keyInfo.id,!e.type&&i&&(e.type=i.type),null==e.parentId){var n=e.parentOption;n?e.parentId=n.id:i&&(e.parentId=i.parentId)}e.parentOption=null}function lv(t,e,i){var r=o({},i),a=t[e],s=i.$action||"merge";"merge"===s?a?(n(a,r,!0),co(a,r,{ignoreSize:!0}),fo(i,a)):t[e]=r:"replace"===s?t[e]=r:"remove"===s&&a&&(t[e]=null)} function uv(t,e){t&&(t.hv=e.hv=[av(e,["left","right"]),av(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}function cv(t,e,i){var n=t.eventData;t.silent||t.ignore||n||(n=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=t.info)}function hv(t,e,i){var n,r={},o="toggleSelected"===t;return i.eachComponent("legend",function(i){o&&null!=n?i[n?"select":"unSelect"](e.name):(i[t](e.name),n=i.isSelected(e.name)),d(i.getData(),function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&n:r[e]=n}})}),{name:e.name,selected:r}}function dv(t,e,i){var n=e.getBoxLayoutParams(),r=e.get("padding"),o={width:i.getWidth(),height:i.getHeight()},a=so(n,o,r);UT(e.get("orient"),t,e.get("itemGap"),a.width,a.height),lo(t,n,o,r)}function fv(t,e){var i=LT(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new oT({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})}function pv(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function gv(t,e,i,n){var r=i.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function mv(t,e,i,n){var r=i.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function vv(t,e,i){var n=[1,1];n[t.getOrient().index]=0,co(e,i,{type:"box",ignoreSize:n})}function yv(t){var e="left "+t+"s cubic-bezier(0.23, 1, 0.32, 1),top "+t+"s cubic-bezier(0.23, 1, 0.32, 1)";return f(jO,function(t){return t+"transition:"+e}).join(";")}function xv(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();return n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),WO(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function _v(t){var e=[],i=t.get("transitionDuration"),n=t.get("backgroundColor"),r=t.getModel("textStyle"),o=t.get("padding");return i&&e.push(yv(i)),n&&(z_.canvasSupported?e.push("background-Color:"+n):(e.push("background-Color:#"+Vt(n)),e.push("filter:alpha(opacity=70)"))),WO(["width","color","radius"],function(i){var n="border-"+i,r=$O(n),o=t.get(r);null!=o&&e.push(n+":"+o+("color"===i?"":"px"))}),e.push(xv(r)),null!=o&&e.push("padding:"+LT(o).join("px ")+"px"),e.join(";")+";"}function bv(t,e){if(z_.wxa)return null;var i=document.createElement("div"),n=this._zr=e.getZr();this.el=i,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var r=this;i.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!r._enterable){var i=n.handler;lt(t,e,!0),i.dispatch("mousemove",e)}},i.onmouseleave=function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}function wv(t){this._zr=t.getZr(),this._show=!1,this._hideTimeout}function Sv(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(Ar.isInstance(i)&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new Ar(i,e,e.ecModel))}return e}function Tv(t,e){return t.dispatchAction||m(e.dispatchAction,e)}function Cv(t,e,i,n,r,o,a){var s=i.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o>n?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function Mv(t,e,i,n,r){var o=i.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,n)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Dv(t,e,i){var n=i[0],r=i[1],o=0,a=0,s=e.width,l=e.height;switch(t){case"inside":o=e.x+s/2-n/2,a=e.y+l/2-r/2;break;case"top":o=e.x+s/2-n/2,a=e.y-r-5;break;case"bottom":o=e.x+s/2-n/2,a=e.y+l+5;break;case"left":o=e.x-n-5,a=e.y+l/2-r/2;break;case"right":o=e.x+s+5,a=e.y+l/2-r/2}return[o,a]}function Iv(t){return"center"===t||"middle"===t}function Av(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function kv(t){return t.dim}function Ev(t,e){var i={};d(t,function(t,e){var n=t.getData(),r=t.coordinateSystem.getBaseAxis(),o=r.getExtent(),a="category"===r.type?r.getBandWidth():Math.abs(o[1]-o[0])/n.count(),s=i[kv(r)]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},l=s.stacks;i[kv(r)]=s;var u=Av(t);l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=Pr(t.get("barWidth"),a),h=Pr(t.get("barMaxWidth"),a),d=t.get("barGap"),f=t.get("barCategoryGap");c&&!l[u].width&&(c=Math.min(s.remainedWidth,c),l[u].width=c,s.remainedWidth-=c),h&&(l[u].maxWidth=h),null!=d&&(s.gap=d),null!=f&&(s.categoryGap=f)});var n={};return d(i,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=Pr(t.categoryGap,r),a=Pr(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),d(i,function(t,e){var i=t.maxWidth;i&&i<u&&(i=Math.min(i,s),t.width&&(i=Math.min(i,t.width)),s-=i,t.width=i,l--)}),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,h=0;d(i,function(t,e){t.width||(t.width=u),c=t,h+=t.width*(1+a)}),c&&(h-=c.width*a);var f=-h/2;d(i,function(t,i){n[e][i]=n[e][i]||{offset:f,width:t.width},f+=t.width*(1+a)})}),n}function Ov(t,e){$D.call(this,"radius",t,e),this.type="category"}function Nv(t,e){e=e||[0,360],$D.call(this,"angle",t,e),this.type="category"}function Lv(t,e){return e.type||(e.data?"category":"value")}function Pv(t,e,i){var n=e.get("center"),r=i.getWidth(),o=i.getHeight();t.cx=Pr(n[0],r),t.cy=Pr(n[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=Pr(e.get("radius"),s);a.inverse?a.setExtent(l,0):a.setExtent(0,l)}function Rv(t,e){var i=this,n=i.getAngleAxis(),r=i.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===i){var e=t.getData();d(e.mapDimension("radius",!0),function(t){r.scale.unionExtentFromData(e,hl(e,t))}),d(e.mapDimension("angle",!0),function(t){n.scale.unionExtentFromData(e,hl(e,t))})}}),Fl(n.scale,n.model),Fl(r.scale,r.model),"category"===n.type&&!n.onBand){var o=n.getExtent(),a=360/n.scale.count();n.inverse?o[1]+=a:o[1]-=a,n.setExtent(o[0],o[1])}}function zv(t,e){if(t.type=e.get("type"),t.scale=Bl(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var i=e.get("startAngle");t.setExtent(i,i+(t.inverse?-360:360))}e.axis=t,t.model=e}function Fv(t,e,i){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),r=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:r[0],y2:r[1]}}function Bv(t){return t.getRadiusAxis().inverse?0:1}function Hv(t){var e=t[0],i=t[t.length-1];e&&i&&Math.abs(Math.abs(e.coord-i.coord)-360)<1e-4&&t.pop()}function Vv(t,e,i){return{position:[t.cx,t.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function Wv(t,e,i,n,r){var o=e.axis,a=o.dataToCoord(t),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=n.getRadiusAxis().getExtent();if("radius"===o.dim){var d=mt();bt(d,d,s),_t(d,d,[n.cx,n.cy]),l=Tr([a,-r],d);var f=e.getModel("axisLabel").get("rotate")||0,p=CI.innerTextLayout(s,f*Math.PI/180,-1);u=p.textAlign,c=p.textVerticalAlign}else{var g=h[1];l=n.coordToPoint([g+r,a]);var m=n.cx,v=n.cy;u=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}function $v(t,e){e.update="updateView",Os(e,function(e,i){var n={};return i.eachComponent({mainType:"geo",query:e},function(i){i[t](e.name),d(i.coordinateSystem.regions,function(t){n[t.name]=i.isSelected(t.name)||!1})}),{selected:n,name:e.name}})}function jv(t){var e={};d(t,function(t){e[t]=1}),t.length=0,d(e,function(e,i){t.push(i)})}function Uv(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function Gv(t,e,n){function r(){var t=function(){};return t.prototype.__hidden=t.prototype,new t}var o={};return aN(e,function(e){var a=o[e]=r();aN(t[e],function(t,r){if(qA.isValidType(r)){var o={type:r,visual:t};n&&n(o,e),a[r]=new qA(o),"opacity"===r&&((o=i(o)).type="colorAlpha",a.__hidden.__alphaForOpacity=new qA(o))}})}),o}function qv(t,e,n){var r;d(n,function(t){e.hasOwnProperty(t)&&Uv(e[t])&&(r=!0)}),r&&d(n,function(n){e.hasOwnProperty(n)&&Uv(e[n])?t[n]=i(e[n]):delete t[n]})}function Yv(t,e,i,n,r,o){function a(t){return i.getItemVisual(c,t)}function s(t,e){i.setItemVisual(c,t,e)}function l(t,l){c=null==o?t:l;var h=i.getRawDataItem(c);if(!h||!1!==h.visualMap)for(var d=n.call(r,t),f=e[d],p=u[d],g=0,m=p.length;g<m;g++){var v=p[g];f[v]&&f[v].applyVisual(t,a,s)}}var u={};d(t,function(t){var i=qA.prepareVisualTypes(e[t]);u[t]=i});var c;null==o?i.each(l):i.each([o],l)}function Xv(t,e,i,n){var r={};return d(t,function(t){var i=qA.prepareVisualTypes(e[t]);r[t]=i}),{progress:function(t,o){null!=n&&(n=o.getDimension(n));for(var a;null!=(a=t.next());){var s=o.getRawDataItem(a);if(s&&!1===s.visualMap)return;for(var l=null!=n?o.get(n,a,!0):a,u=i(l),c=e[u],h=r[u],d=0,f=h.length;d<f;d++){var p=h[d];c[p]&&c[p].applyVisual(l,function(t){return o.getItemVisual(a,t)},function(t,e){o.setItemVisual(a,t,e)})}}}}}function Zv(t){var e=["x","y"],i=["width","height"];return{point:function(e,i,n){if(e){var r=n.range;return Kv(e[t],r)}},rect:function(n,r,o){if(n){var a=o.range,s=[n[e[t]],n[e[t]]+n[i[t]]];return s[1]<s[0]&&s.reverse(),Kv(s[0],a)||Kv(s[1],a)||Kv(a[0],s)||Kv(a[1],s)}}}}function Kv(t,e){return e[0]<=t&&t<=e[1]}function Jv(t,e,i,n,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Qv(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}}function Qv(t,e,i,n,r,o,a,s){var l=ey(i-t,r-a,n-e,o-s);if(ty(l))return!1;var u=ey(r-t,r-a,o-e,o-s)/l;if(u<0||u>1)return!1;var c=ey(i-t,r-t,n-e,o-e)/l;return!(c<0||c>1)}function ty(t){return t<=1e-6&&t>=-1e-6}function ey(t,e,i,n){return t*n-e*i}function iy(t,e,i){var n=this._targetInfoList=[],r={},o=ry(e,t);lN(pN,function(t,e){(!i||!i.include||uN(i.include,e)>=0)&&t(o,n,r)})}function ny(t){return t[0]>t[1]&&t.reverse(),t}function ry(t,e){return Bi(t,e,{includeMainTypes:dN})}function oy(t,e,i,n){var r=i.getAxis(["x","y"][t]),o=ny(f([0,1],function(t){return e?r.coordToData(r.toLocalCoord(n[t])):r.toGlobalCoord(r.dataToCoord(n[t]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}function ay(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function sy(t,e){var i=ly(t),n=ly(e),r=[i[0]/n[0],i[1]/n[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function ly(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}function uy(t,e,i,n,r){if(r){var o=t.getZr();o[bN]||(o[_N]||(o[_N]=cy),ka(o,_N,i,e)(t,n))}}function cy(t,e){if(!t.isDisposed()){var i=t.getZr();i[bN]=!0,t.dispatchAction({type:"brushSelect",batch:e}),i[bN]=!1}}function hy(t,e,i,n){for(var r=0,o=e.length;r<o;r++){var a=e[r];if(t[a.brushType](n,i,a.selectors,a))return!0}}function dy(t){var e=t.brushSelector;if(_(e)){var i=[];return d(sN,function(t,n){i[n]=function(i,n,r,o){var a=n.getItemLayout(i);return t[e](a,r,o)}}),i}if(x(e)){var n={};return d(sN,function(t,i){n[i]=e}),n}return e}function fy(t,e){var i=t.option.seriesIndex;return null!=i&&"all"!==i&&(y(i)?l(i,e)<0:e!==i)}function py(t){var e=t.selectors={};return d(sN[t.brushType],function(i,n){e[n]=function(n){return i(n,e,t)}}),t}function gy(t){return new ue(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}function my(t,e){return n({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Ar(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function vy(t,e,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}function yy(t,e){CN[t]=e}function xy(t){return CN[t]}function _y(t,e,i){this.model=t,this.ecModel=e,this.api=i,this._brushType,this._brushMode}function by(t,e,i){this._model=t}function wy(t,e,i,n){var r=i.calendarModel,o=i.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem:null;return a===this?a[t](n):null}function Sy(t,e){var i=t.cellSize;y(i)?1===i.length&&(i[1]=i[0]):i=t.cellSize=[i,i];var n=f([0,1],function(t){return uo(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]});co(t,e,{type:"box",ignoreSize:n})}function Ty(t){return l(EN,t)>=0}function Cy(t,e,i){function n(t,e){return l(e.nodes,t)>=0}function r(t,n){var r=!1;return e(function(e){d(i(t,e)||[],function(t){n.records[e.name][t]&&(r=!0)})}),r}function o(t,n){n.nodes.push(t),e(function(e){d(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(i){var a={nodes:[],records:{}};if(e(function(t){a.records[t.name]={}}),!i)return a;o(i,a);var s;do{s=!1,t(function(t){!n(t,a)&&r(t,a)&&(o(t,a),s=!0)})}while(s);return a}}function My(t,e,i){var n=[1/0,-1/0];return NN(i,function(t){var i=t.getData();i&&NN(i.mapDimension(e,!0),function(t){var e=i.getApproximateExtent(t);e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])})}),n[1]<n[0]&&(n=[NaN,NaN]),Dy(t,n),n}function Dy(t,e){var i=t.getAxisModel(),n=i.getMin(!0),r="category"===i.get("type"),o=r&&i.getCategories().length;null!=n&&"dataMin"!==n&&"function"!=typeof n?e[0]=n:r&&(e[0]=o>0?0:NaN);var a=i.getMax(!0);return null!=a&&"dataMax"!==a&&"function"!=typeof a?e[1]=a:r&&(e[1]=o>0?o-1:NaN),i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function Iy(t,e){var i=t.getAxisModel(),n=t._percentWindow,r=t._valueWindow;if(n){var o=Hr(r,[0,500]);o=Math.min(o,20);var a=e||0===n[0]&&100===n[1];i.setRange(a?null:+r[0].toFixed(o),a?null:+r[1].toFixed(o))}}function Ay(t){var e=t._minMaxSpan={},i=t._dataZoomModel;NN(["min","max"],function(n){e[n+"Span"]=i.get(n+"Span");var r=i.get(n+"ValueSpan");if(null!=r&&(e[n+"ValueSpan"]=r,null!=(r=t.getAxisModel().axis.scale.parse(r)))){var o=t._dataExtent;e[n+"Span"]=Lr(o[0]+r,o,[0,100],!0)}})}function ky(t){var e={};return RN(["start","end","startValue","endValue","throttle"],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e}function Ey(t,e){var i=t._rangePropMode,n=t.get("rangeMode");RN([["start","startValue"],["end","endValue"]],function(t,r){var o=null!=e[t[0]],a=null!=e[t[1]];o&&!a?i[r]="percent":!o&&a?i[r]="value":n?i[r]=n[r]:o&&(i[r]="percent")})}function Oy(t){return{x:"y",y:"x",radius:"angle",angle:"radius"}[t]}function Ny(t){return"vertical"===t?"ns-resize":"ew-resize"}function Ly(t,e){var i=zy(t),n=e.dataZoomId,r=e.coordId;d(i,function(t,i){var o=t.dataZoomInfos;o[n]&&l(e.allCoordIds,r)<0&&(delete o[n],t.count--)}),By(i);var o=i[r];o||((o=i[r]={coordId:r,dataZoomInfos:{},count:0}).controller=Fy(t,o),o.dispatchAction=v(Hy,t)),!o.dataZoomInfos[n]&&o.count++,o.dataZoomInfos[n]=e;var a=Vy(o.dataZoomInfos);o.controller.enable(a.controlType,a.opt),o.controller.setPointerChecker(e.containsPoint),ka(o,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")}function Py(t,e){var i=zy(t);d(i,function(t){t.controller.dispose();var i=t.dataZoomInfos;i[e]&&(delete i[e],t.count--)}),By(i)}function Ry(t){return t.type+"\0_"+t.id}function zy(t){var e=t.getZr();return e[XN]||(e[XN]={})}function Fy(t,e){var i=new oh(t.getZr());return d(["pan","zoom","scrollMove"],function(t){i.on(t,function(i){var n=[];d(e.dataZoomInfos,function(r){if(i.isAvailableBehavior(r.dataZoomModel.option)){var o=(r.getRange||{})[t],a=o&&o(e.controller,i);!r.dataZoomModel.get("disabled",!0)&&a&&n.push({dataZoomId:r.dataZoomId,start:a[0],end:a[1]})}}),n.length&&e.dispatchAction(n)})}),i}function By(t){d(t,function(e,i){e.count||(e.controller.dispose(),delete t[i])})}function Hy(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function Vy(t){var e,i={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return d(t,function(t){var r=t.dataZoomModel,o=!r.get("disabled",!0)&&(!r.get("zoomLock",!0)||"move");i["type_"+o]>i["type_"+e]&&(e=o),n&=r.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function Wy(t){return function(e,i,n,r){var o=this._range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,i,n,r);return Pk(l,a,[0,100],"all"),this._range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}function $y(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}function jy(t,e,i,n){for(var r=e.targetVisuals[n],o=qA.prepareVisualTypes(r),a={color:t.getData().getVisual("color")},s=0,l=o.length;s<l;s++){var u=o[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(i,function(t){return a[t]},function(t,e){a[t]=e})}return a.color}function Uy(t,e,i){if(i[0]===i[1])return i.slice();for(var n=(i[1]-i[0])/200,r=i[0],o=[],a=0;a<=200&&r<i[1];a++)o.push(r),r+=n;return o.push(i[1]),o}function Gy(t,e,i){var n=t.option,r=n.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===n.orient?1:0,s=[["left","right","width"],["top","bottom","height"]],l=s[a],u=[0,null,10],c={},h=0;h<3;h++)c[s[1-a][h]]=u[h],c[l[h]]=2===h?i[0]:n[l[h]];var d=[["x","width",3],["y","height",0]][a],f=so(c,o,n.padding);return l[(f.margin[d[2]]||0)+f[d[0]]+.5*f[d[1]]<.5*o[d[1]]?0:1]}function qy(t){return d(t||[],function(e){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null)}),t}function Yy(t,e,i,n){return new nT({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){lb(t.event)},ondragend:n})}function Xy(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}function Zy(t,e,i,n){return t?[[0,-yL(e,xL(i,0))],[bL,0],[0,yL(e,xL(n-i,0))]]:[[0,0],[5,-5],[5,5]]}function Ky(t,e,i){var n=_L/2,r=t.get("hoverLinkDataSize");return r&&(n=mL(r,e,i,!0)/2),n}function Jy(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function Qy(t){return"vertical"===t?"ns-resize":"ew-resize"}function tx(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}function ex(t){Ai(t,"label",["show"])}function ix(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function nx(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function rx(t,e,i,n,r,o){var a=[],s=cl(e,n)?e.getCalculationInfo("stackResultDimension"):n,l=cx(e,s,t),u=e.indicesOfNearest(s,l)[0];a[r]=e.get(i,u),a[o]=e.get(n,u);var c=Fr(e.get(n,u));return(c=Math.min(c,20))>=0&&(a[o]=+a[o].toFixed(c)),a}function ox(t,e){var n=t.getData(),r=t.coordinateSystem;if(e&&!nx(e)&&!y(e.coord)&&r){var o=r.dimensions,a=ax(e,n,r,t);if((e=i(e)).type&&kL[e.type]&&a.baseAxis&&a.valueAxis){var s=IL(o,a.baseAxis.dim),l=IL(o,a.valueAxis.dim);e.coord=kL[e.type](n,a.baseDataDim,a.valueDataDim,s,l),e.value=e.coord[l]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],c=0;c<2;c++)kL[u[c]]&&(u[c]=cx(n,n.mapDimension(o[c]),u[c]));e.coord=u}}return e}function ax(t,e,i,n){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=i.getAxis(sx(n,r.valueDataDim)),r.baseAxis=i.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=n.getBaseAxis(),r.valueAxis=i.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function sx(t,e){var i=t.getData(),n=i.dimensions;e=i.getDimension(e);for(var r=0;r<n.length;r++){var o=i.getDimensionInfo(n[r]);if(o.name===e)return o.coordDim}}function lx(t,e){return!(t&&t.containData&&e.coord&&!ix(e))||t.containData(e.coord)}function ux(t,e,i,n){return n<2?t.coord&&t.coord[n]:t.value}function cx(t,e,i){if("average"===i){var n=0,r=0;return t.each(e,function(t,e){isNaN(t)||(n+=t,r++)}),n/r}return"median"===i?t.getMedian(e):t.getDataExtent(e,!0)["max"===i?1:0]}function hx(t,e,i){var n=e.coordinateSystem;t.each(function(r){var o,a=t.getItemModel(r),s=Pr(a.get("x"),i.getWidth()),l=Pr(a.get("y"),i.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(n){var u=t.get(n.dimensions[0],r),c=t.get(n.dimensions[1],r);o=n.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)})}function dx(t,e,i){var n;n=t?f(t&&t.dimensions,function(t){return a({name:t},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{})}):[{name:"value",type:"float"}];var r=new eD(n,i),o=f(i.get("data"),v(ox,e));return t&&(o=g(o,v(lx,t))),r.initData(o,null,t?ux:function(t){return t.value}),r}function fx(t){return!isNaN(t)&&!isFinite(t)}function px(t,e,i,n){var r=1-t,o=n.dimensions[t];return fx(e[r])&&fx(i[r])&&e[t]===i[t]&&n.getAxis(o).containData(e[t])}function gx(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(px(1,i,n,t)||px(0,i,n,t)))return!0}return lx(t,e[0])&&lx(t,e[1])}function mx(t,e,i,n,r){var o,a=n.coordinateSystem,s=t.getItemModel(e),l=Pr(s.get("x"),r.getWidth()),u=Pr(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),d=t.get(c[1],e);o=a.dataToPoint([h,d])}if("cartesian2d"===a.type){var f=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;fx(t.get(c[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[i?0:1]):fx(t.get(c[1],e))&&(o[1]=p.toGlobalCoord(p.getExtent()[i?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}function vx(t,e,i){var n;n=t?f(t&&t.dimensions,function(t){return a({name:t},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{})}):[{name:"value",type:"float"}];var r=new eD(n,i),o=new eD(n,i),s=new eD([],i),l=f(i.get("data"),v(OL,e,t,i));t&&(l=g(l,v(gx,t)));var u=t?ux:function(t){return t.value};return r.initData(f(l,function(t){return t[0]}),null,u),o.initData(f(l,function(t){return t[1]}),null,u),s.initData(f(l,function(t){return t[2]})),s.hasItemOption=!0,{from:r,to:o,line:s}}function yx(t){return!isNaN(t)&&!isFinite(t)}function xx(t,e,i,n){var r=1-t;return yx(e[r])&&yx(i[r])}function _x(t,e){var i=e.coord[0],n=e.coord[1];return!("cartesian2d"!==t.type||!i||!n||!xx(1,i,n,t)&&!xx(0,i,n,t))||lx(t,{coord:i,x:e.x0,y:e.y0})||lx(t,{coord:n,x:e.x1,y:e.y1})}function bx(t,e,i,n,r){var o,a=n.coordinateSystem,s=t.getItemModel(e),l=Pr(s.get(i[0]),r.getWidth()),u=Pr(s.get(i[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(i,e));else{var c=[f=t.get(i[0],e),p=t.get(i[1],e)];a.clampData&&a.clampData(c,c),o=a.dataToPoint(c,!0)}if("cartesian2d"===a.type){var h=a.getAxis("x"),d=a.getAxis("y"),f=t.get(i[0],e),p=t.get(i[1],e);yx(f)?o[0]=h.toGlobalCoord(h.getExtent()["x0"===i[0]?0:1]):yx(p)&&(o[1]=d.toGlobalCoord(d.getExtent()["y0"===i[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}function Sx(t,e,i){var n,r,o=["x0","y0","x1","y1"];t?(n=f(t&&t.dimensions,function(t){var i=e.getData();return a({name:t},i.getDimensionInfo(i.mapDimension(t))||{})}),r=new eD(f(o,function(t,e){return{name:t,type:n[e%2].type}}),i)):r=new eD(n=[{name:"value",type:"float"}],i);var s=f(i.get("data"),v(NL,e,t,i));t&&(s=g(s,v(_x,t)));var l=t?function(t,e,i,n){return t.coord[Math.floor(n/2)][n%2]}:function(t){return t.value};return r.initData(s,null,l),r.hasItemOption=!0,r}function Tx(t){var e=t.type,i={number:"value",time:"time"};if(i[e]&&(t.axisType=i[e],delete t.type),Cx(t),Mx(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});Mx(n,"position")||(n.position=t.controlPosition),"none"!==n.position||Mx(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition}d(t.data||[],function(t){b(t)&&!y(t)&&(!Mx(t,"value")&&Mx(t,"name")&&(t.value=t.name),Cx(t))})}function Cx(t){var e=t.itemStyle||(t.itemStyle={}),i=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},r=n.normal||(n.normal={}),o={normal:1,emphasis:1};d(n,function(t,e){o[e]||Mx(r,e)||(r[e]=t)}),i.label&&!Mx(n,"emphasis")&&(n.emphasis=i.label,delete i.label)}function Mx(t,e){return t.hasOwnProperty(e)}function Dx(t,e){return so(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function Ix(t,e,n,r){return Wn(t.get(e).replace(/^path:\/\//,""),i(r||{}),new ue(n[0],n[1],n[2],n[3]),"center")}function Ax(t,e,i,r,o,a){var s=e.get("color");o?(o.setColor(s),i.add(o),a&&a.onUpdate(o)):((o=Gl(t.get("symbol"),-1,-1,2,2,s)).setStyle("strokeNoScale",!0),i.add(o),a&&a.onCreate(o));var l=e.getItemStyle(["color","symbol","symbolSize"]);o.setStyle(l),r=n({rectHover:!0,z2:100},r,!0);var u=t.get("symbolSize");(u=u instanceof Array?u.slice():[+u,+u])[0]/=2,u[1]/=2,r.scale=u;var c=t.get("symbolOffset");if(c){var h=r.position=r.position||[0,0];h[0]+=Pr(c[0],u[0]),h[1]+=Pr(c[1],u[1])}var d=t.get("symbolRotate");return r.rotation=(d||0)*Math.PI/180||0,o.attr(r),o.updateTransform(),o}function kx(t,e,i,n,r){if(!t.dragging){var o=n.getModel("checkpointStyle"),a=i.dataToCoord(n.getData().get(["value"],e));r||!o.get("animation",!0)?t.attr({position:[a,0]}):(t.stopAnimation(!0),t.animateTo({position:[a,0]},o.get("animationDuration",!0),o.get("animationEasing",!0)))}}function Ex(t){return 0===t.indexOf("my")}function Ox(t){this.model=t}function Nx(t){this.model=t}function Lx(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)i.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else i.push(t)}}),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function Px(t){var e=[];return d(t,function(t,i){var n=t.categoryAxis,r=t.valueAxis.dim,o=[" "].concat(f(t.series,function(t){return t.name})),a=[n.model.getCategories()];d(t.series,function(t){a.push(t.getRawData().mapArray(r,function(t){return t}))});for(var s=[o.join(XL)],l=0;l<a[0].length;l++){for(var u=[],c=0;c<a.length;c++)u.push(a[c][l]);s.push(u.join(XL))}e.push(s.join("\n"))}),e.join("\n\n"+YL+"\n\n")}function Rx(t){return f(t,function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e.dimensions,function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a<t-1;a++)n[a]=arguments[a];i.push((o?o+XL:"")+n.join(XL))}),i.join("\n")}).join("\n\n"+YL+"\n\n")}function zx(t){var e=Lx(t);return{value:g([Px(e.seriesGroupByCategoryAxis),Rx(e.other)],function(t){return t.replace(/[\n\t\s]/g,"")}).join("\n\n"+YL+"\n\n"),meta:e.meta}}function Fx(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Bx(t){if(t.slice(0,t.indexOf("\n")).indexOf(XL)>=0)return!0}function Hx(t){for(var e=t.split(/\n+/g),i=[],n=f(Fx(e.shift()).split(ZL),function(t){return{name:t,data:[]}}),r=0;r<e.length;r++){var o=Fx(e[r]).split(ZL);i.push(o.shift());for(var a=0;a<o.length;a++)n[a]&&(n[a].data[r]=o[a])}return{series:n,categories:i}}function Vx(t){for(var e=t.split(/\n+/g),i=Fx(e.shift()),n=[],r=0;r<e.length;r++){var o,a=Fx(e[r]).split(ZL),s="",l=!1;isNaN(a[0])?(l=!0,s=a[0],a=a.slice(1),n[r]={name:s,value:[]},o=n[r].value):o=n[r]=[];for(var u=0;u<a.length;u++)o.push(+a[u]);1===o.length&&(l?n[r].value=o[0]:n[r]=o[0])}return{name:i,data:n}}function Wx(t,e){var i={series:[]};return d(t.split(new RegExp("\n*"+YL+"\n*","g")),function(t,n){if(Bx(t)){var r=Hx(t),o=e[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else r=Vx(t),i.series.push(r)}),i}function $x(t){this._dom=null,this.model=t}function jx(t,e){return f(t,function(t,i){var n=e&&e[i];return b(n)&&!y(n)?(b(t)&&!y(t)&&(t=t.value),a({value:t},n)):t})}function Ux(t,e){var i=Xx(t);KL(e,function(e,n){for(var r=i.length-1;r>=0&&!i[r][n];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(o){var a=o.getPercentRange();i[0][n]={dataZoomId:n,start:a[0],end:a[1]}}}}),i.push(e)}function Gx(t){var e=Xx(t),i=e[e.length-1];e.length>1&&e.pop();var n={};return KL(i,function(t,i){for(var r=e.length-1;r>=0;r--)if(t=e[r][i]){n[i]=t;break}}),n}function qx(t){t[JL]=null}function Yx(t){return Xx(t).length}function Xx(t){var e=t[JL];return e||(e=t[JL]=[{}]),e}function Zx(t,e,i){(this._brushController=new Af(i.getZr())).on("brush",m(this._onBrush,this)).mount(),this._isZoomActive}function Kx(t){var e={};return d(["xAxisIndex","yAxisIndex"],function(i){e[i]=t[i],null==e[i]&&(e[i]="all"),(!1===e[i]||"none"===e[i])&&(e[i]=[])}),e}function Jx(t,e){t.setIconStatus("back",Yx(e)>1?"emphasis":"normal")}function Qx(t,e,i,n,r){var o=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(o="dataZoomSelect"===n.key&&n.dataZoomSelectActive),i._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new iy(Kx(t.option),e,{include:["grid"]});i._brushController.setPanels(a.makePanelOpts(r,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})).enableBrush(!!o&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}function t_(t){this.model=t}function e_(t){return oP(t)}function i_(){if(!lP&&uP){lP=!0;var t=uP.styleSheets;t.length<31?uP.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}function n_(t){return parseInt(t,10)}function r_(t,e){i_(),this.root=t,this.storage=e;var i=document.createElement("div"),n=document.createElement("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:static;left:0;top:0;",t.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var r=e.delFromStorage,o=e.addToStorage;e.delFromStorage=function(t){r.call(e,t),t&&t.onRemove&&t.onRemove(n)},e.addToStorage=function(t){t.onAdd&&t.onAdd(n),o.call(e,t)},this._firstPaint=!0}function o_(t){return function(){Fb('In IE8.0 VML mode painter not support method "'+t+'"')}}function a_(t){return document.createElementNS($P,t)}function s_(t){return qP(1e4*t)/1e4}function l_(t){return t<QP&&t>-QP}function u_(t,e){var i=e?t.textFill:t.fill;return null!=i&&i!==GP}function c_(t,e){var i=e?t.textStroke:t.stroke;return null!=i&&i!==GP}function h_(t,e){e&&d_(t,"transform","matrix("+UP.call(e,",")+")")}function d_(t,e,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&("string"==typeof i&&i.indexOf("NaN")>-1&&console.log(i),t.setAttribute(e,i))}function f_(t,e,i){t.setAttributeNS("http://www.w3.org/1999/xlink",e,i)}function p_(t,e,i,n){if(u_(e,i)){var r=i?e.textFill:e.fill;r="transparent"===r?GP:r,"none"!==t.getAttribute("clip-path")&&r===GP&&(r="rgba(0, 0, 0, 0.002)"),d_(t,"fill",r),d_(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else d_(t,"fill",GP);if(c_(e,i)){var o=i?e.textStroke:e.stroke;d_(t,"stroke",o="transparent"===o?GP:o),d_(t,"stroke-width",(i?e.textStrokeWidth:e.lineWidth)/(!i&&e.strokeNoScale?n.getLineScale():1)),d_(t,"paint-order",i?"stroke":"fill"),d_(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity),e.lineDash?(d_(t,"stroke-dasharray",e.lineDash.join(",")),d_(t,"stroke-dashoffset",qP(e.lineDashOffset||0))):d_(t,"stroke-dasharray",""),e.lineCap&&d_(t,"stroke-linecap",e.lineCap),e.lineJoin&&d_(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&d_(t,"stroke-miterlimit",e.miterLimit)}else d_(t,"stroke",GP)}function g_(t){for(var e=[],i=t.data,n=t.len(),r=0;r<n;){var o="",a=0;switch(i[r++]){case jP.M:o="M",a=2;break;case jP.L:o="L",a=2;break;case jP.Q:o="Q",a=4;break;case jP.C:o="C",a=6;break;case jP.A:var s=i[r++],l=i[r++],u=i[r++],c=i[r++],h=i[r++],d=i[r++],f=i[r++],p=i[r++],g=Math.abs(d),m=l_(g-KP)&&!l_(g),v=!1;v=g>=KP||!l_(g)&&(d>-ZP&&d<0||d>ZP)==!!p;var y=s_(s+u*XP(h)),x=s_(l+c*YP(h));m&&(d=p?KP-1e-4:1e-4-KP,v=!0,9===r&&e.push("M",y,x));var _=s_(s+u*XP(h+d)),b=s_(l+c*YP(h+d));e.push("A",s_(u),s_(c),qP(f*JP),+v,+p,_,b);break;case jP.Z:o="Z";break;case jP.R:var _=s_(i[r++]),b=s_(i[r++]),w=s_(i[r++]),S=s_(i[r++]);e.push("M",_,b,"L",_+w,b,"L",_+w,b+S,"L",_,b+S,"L",_,b)}o&&e.push(o);for(var T=0;T<a;T++)e.push(s_(i[r++]))}return e.join(" ")}function m_(t){return"middle"===t?"middle":"bottom"===t?"after-edge":"hanging"}function v_(){}function y_(t,e,i,n){for(var r=0,o=e.length,a=0,s=0;r<o;r++){var l=e[r];if(l.removed){for(var u=[],c=s;c<s+l.count;c++)u.push(c) ;l.indices=u,s+=l.count}else{for(var u=[],c=a;c<a+l.count;c++)u.push(c);l.indices=u,a+=l.count,l.added||(s+=l.count)}}return e}function x_(t){return{newPos:t.newPos,components:t.components.slice(0)}}function __(t,e,i,n,r){this._zrId=t,this._svgRoot=e,this._tagNames="string"==typeof i?[i]:i,this._markLabel=n,this._domName=r||"_dom",this.nextId=0}function b_(t,e){__.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")}function w_(t,e){__.call(this,t,e,"clipPath","__clippath_in_use__")}function S_(t,e){__.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")}function T_(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY||t.textShadowBlur||t.textShadowOffsetX||t.textShadowOffsetY)}function C_(t){return parseInt(t,10)}function M_(t){return t instanceof En?tR:t instanceof ci?eR:t instanceof XS?iR:tR}function D_(t,e){return e&&t&&e.parentNode!==t}function I_(t,e,i){if(D_(t,e)&&i){var n=i.nextSibling;n?t.insertBefore(e,n):t.appendChild(e)}}function A_(t,e){if(D_(t,e)){var i=t.firstChild;i?t.insertBefore(e,i):t.appendChild(e)}}function k_(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function E_(t){return t.__textSvgEl}function O_(t){return t.__svgEl}function N_(t){return function(){Fb('In SVG mode painter not support method "'+t+'"')}}var L_=2311,P_=function(){return L_++},R_={},z_=R_="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:function(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(t);return n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),o&&(i.edge=!0,i.version=o[1]),a&&(i.weChat=!0),{browser:i,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11),domSupported:"undefined"!=typeof document}}(navigator.userAgent),F_={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},B_={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},H_=Object.prototype.toString,V_=Array.prototype,W_=V_.forEach,$_=V_.filter,j_=V_.slice,U_=V_.map,G_=V_.reduce,q_={},Y_=function(){return q_.createCanvas()};q_.createCanvas=function(){return document.createElement("canvas")};var X_,Z_="__ec_primitive__";P.prototype={constructor:P,get:function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},set:function(t,e){return this.data[t]=e},each:function(t,e){void 0!==e&&(t=m(t,e));for(var i in this.data)this.data.hasOwnProperty(i)&&t(this.data[i],i)},removeKey:function(t){delete this.data[t]}};var K_=(Object.freeze||Object)({$override:e,clone:i,merge:n,mergeAll:r,extend:o,defaults:a,createCanvas:Y_,getContext:s,indexOf:l,inherits:u,mixin:c,isArrayLike:h,each:d,map:f,reduce:p,filter:g,find:function(t,e,i){if(t&&e)for(var n=0,r=t.length;n<r;n++)if(e.call(i,t[n],n,t))return t[n]},bind:m,curry:v,isArray:y,isFunction:x,isString:_,isObject:b,isBuiltInObject:w,isTypedArray:S,isDom:T,eqNaN:C,retrieve:M,retrieve2:D,retrieve3:I,slice:A,normalizeCssArray:k,assert:E,trim:O,setAsPrimitive:N,isPrimitive:L,createHashMap:R,concatArray:z,noop:F}),J_="undefined"==typeof Float32Array?Array:Float32Array,Q_=G,tb=q,eb=Z,ib=K,nb=(Object.freeze||Object)({create:B,copy:H,clone:V,set:W,add:$,scaleAndAdd:j,sub:U,len:G,length:Q_,lenSquare:q,lengthSquare:tb,mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:Y,normalize:X,distance:Z,dist:eb,distanceSquare:K,distSquare:ib,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:J,applyTransform:Q,min:tt,max:et});it.prototype={constructor:it,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(nt(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(r,o,t),this.dispatchToElement(nt(e,t),"drag",t.event);var a=this.findHover(i,n,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.dispatchToElement(nt(s,t),"dragleave",t.event),a&&a!==s&&this.dispatchToElement(nt(a,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(nt(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(nt(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var rb=Array.prototype.slice,ob=function(t){this._$handlers={},this._$eventProcessor=t};ob.prototype={constructor:ob,one:function(t,e,i,n){var r=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),!i||!t)return this;e=rt(this,e),r[t]||(r[t]=[]);for(var o=0;o<r[t].length;o++)if(r[t][o].h===i)return this;return r[t].push({h:i,one:!0,query:e,ctx:n||this}),this},on:function(t,e,i,n){var r=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),!i||!t)return this;e=rt(this,e),r[t]||(r[t]=[]);for(var o=0;o<r[t].length;o++)if(r[t][o].h===i)return this;return r[t].push({h:i,one:!1,query:e,ctx:n||this}),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t].length},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,o=i[t].length;r<o;r++)i[t][r].h!==e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},trigger:function(t){var e=this._$handlers[t],i=this._$eventProcessor;if(e){var n=arguments,r=n.length;r>3&&(n=rb.call(n,1));for(var o=e.length,a=0;a<o;){var s=e[a];if(i&&i.filter&&null!=s.query&&!i.filter(t,s.query))a++;else{switch(r){case 1:s.h.call(s.ctx);break;case 2:s.h.call(s.ctx,n[1]);break;case 3:s.h.call(s.ctx,n[1],n[2]);break;default:s.h.apply(s.ctx,n)}s.one?(e.splice(a,1),o--):a++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this},triggerWithContext:function(t){var e=this._$handlers[t],i=this._$eventProcessor;if(e){var n=arguments,r=n.length;r>4&&(n=rb.call(n,1,n.length-1));for(var o=n[n.length-1],a=e.length,s=0;s<a;){var l=e[s];if(i&&i.filter&&null!=l.query&&!i.filter(t,l.query))s++;else{switch(r){case 1:l.h.call(o);break;case 2:l.h.call(o,n[1]);break;case 3:l.h.call(o,n[1],n[2]);break;default:l.h.apply(o,n)}l.one?(e.splice(s,1),a--):s++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this}};var ab="undefined"!=typeof window&&!!window.addEventListener,sb=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lb=ab?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},ub="silent";pt.prototype.dispose=function(){};var cb=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],hb=function(t,e,i,n){ob.call(this),this.storage=t,this.painter=e,this.painterRoot=n,i=i||new pt,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,it.call(this),this.setHandlerProxy(i)};hb.prototype={constructor:hb,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(d(cb,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,i=t.zrY,n=this._hovered,r=n.target;r&&!r.__zr&&(r=(n=this.findHover(n.x,n.y)).target);var o=this._hovered=this.findHover(e,i),a=o.target,s=this.proxy;s.setCursor&&s.setCursor(a?a.cursor:"default"),r&&a!==r&&this.dispatchToElement(n,"mouseout",t),this.dispatchToElement(o,"mousemove",t),a&&a!==r&&this.dispatchToElement(o,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,i=t.toElement||t.relatedTarget;do{i=i&&i.parentNode}while(i&&9!=i.nodeType&&!(e=i===this.painterRoot));!e&&this.trigger("globalout",{event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,i){var n=(t=t||{}).target;if(!n||!n.silent){for(var r="on"+e,o=dt(e,t,i);n&&(n[r]&&(o.cancelBubble=n[r].call(n,o)),n.trigger(e,o),n=n.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),r={x:t,y:e},o=n.length-1;o>=0;o--){var a;if(n[o]!==i&&!n[o].ignore&&(a=gt(n[o],t,e))&&(!r.topTarget&&(r.topTarget=n[o]),a!==ub)){r.target=n[o];break}}return r}},d(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){hb.prototype[t]=function(e){var i=this.findHover(e.zrX,e.zrY),n=i.target;if("mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||eb(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}}),c(hb,ob),c(hb,it);var db="undefined"==typeof Float32Array?Array:Float32Array,fb=(Object.freeze||Object)({create:mt,identity:vt,copy:yt,mul:xt,translate:_t,rotate:bt,scale:wt,invert:St,clone:Tt}),pb=vt,gb=5e-5,mb=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},vb=mb.prototype;vb.transform=null,vb.needLocalTransform=function(){return Ct(this.rotation)||Ct(this.position[0])||Ct(this.position[1])||Ct(this.scale[0]-1)||Ct(this.scale[1]-1)};var yb=[];vb.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;if(i||e){n=n||mt(),i?this.getLocalTransform(n):pb(n),e&&(i?xt(n,t.transform,n):yt(n,t.transform)),this.transform=n;var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(yb);var o=yb[0]<0?-1:1,a=yb[1]<0?-1:1,s=((yb[0]-o)*r+o)/yb[0]||0,l=((yb[1]-a)*r+a)/yb[1]||0;n[0]*=s,n[1]*=s,n[2]*=l,n[3]*=l}this.invTransform=this.invTransform||mt(),St(this.invTransform,n)}else n&&pb(n)},vb.getLocalTransform=function(t){return mb.getLocalTransform(this,t)},vb.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},vb.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var xb=[],_b=mt();vb.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=this.position,r=this.scale;Ct(e-1)&&(e=Math.sqrt(e)),Ct(i-1)&&(i=Math.sqrt(i)),t[0]<0&&(e=-e),t[3]<0&&(i=-i),n[0]=t[4],n[1]=t[5],r[0]=e,r[1]=i,this.rotation=Math.atan2(-t[1]/i,t[0]/e)}},vb.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(xt(xb,t.invTransform,e),e=xb);var i=this.origin;i&&(i[0]||i[1])&&(_b[4]=i[0],_b[5]=i[1],xt(xb,e,_b),xb[4]-=i[0],xb[5]-=i[1],e=xb),this.setLocalTransform(e)}},vb.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},vb.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&Q(i,i,n),i},vb.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&Q(i,i,n),i},mb.getLocalTransform=function(t,e){pb(e=e||[]);var i=t.origin,n=t.scale||[1,1],r=t.rotation||0,o=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),wt(e,e,n),r&&bt(e,e,r),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=o[0],e[5]+=o[1],e};var bb={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-bb.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*bb.bounceIn(2*t):.5*bb.bounceOut(2*t-1)+.5}};Mt.prototype={constructor:Mt,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var i=(t-this._startTime-this._pausedTime)/this._life;if(!(i<0)){i=Math.min(i,1);var n=this.easing,r="string"==typeof n?bb[n]:n,o="function"==typeof r?r(i):i;return this.fire("frame",o),1==i?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){this[t="on"+t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var wb=function(){this.head=null,this.tail=null,this._len=0},Sb=wb.prototype;Sb.insert=function(t){var e=new Tb(t);return this.insertEntry(e),e},Sb.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++},Sb.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},Sb.len=function(){return this._len},Sb.clear=function(){this.head=this.tail=null,this._len=0};var Tb=function(t){this.value=t,this.next,this.prev},Cb=function(t){this._list=new wb,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},Mb=Cb.prototype;Mb.put=function(t,e){var i=this._list,n=this._map,r=null;if(null==n[t]){var o=i.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=i.head;i.remove(s),delete n[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Tb(e),a.key=t,i.insertEntry(a),n[t]=a}return r},Mb.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},Mb.clear=function(){this._list.clear(),this._map={}};var Db={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]},Ib=new Cb(20),Ab=null,kb=Wt,Eb=$t,Ob=(Object.freeze||Object)({parse:zt,lift:Ht,toHex:Vt,fastLerp:Wt,fastMapToColor:kb,lerp:$t,mapToColor:Eb,modifyHSL:jt,modifyAlpha:Ut,stringify:Gt}),Nb=Array.prototype.slice,Lb=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||qt,this._setter=n||Yt,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};Lb.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:ie(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,i=0;i<e;i++)t[i].call(this)},start:function(t,e){var i,n=this,r=0;for(var o in this._tracks)if(this._tracks.hasOwnProperty(o)){var a=oe(this,t,function(){--r||n._doneCallback()},this._tracks[o],o,e);a&&(this._clipList.push(a),r++,this.animation&&this.animation.addClip(a),i=a)}if(i){var s=i.onframe;i.onframe=function(t,e){s(t,e);for(var i=0;i<n._onframeList.length;i++)n._onframeList[i](t,e)}}return r||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this.animation,n=0;n<e.length;n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}};var Pb=1;"undefined"!=typeof window&&(Pb=Math.max(window.devicePixelRatio||1,1));var Rb=Pb,zb=function(){},Fb=zb,Bb=function(){this.animators=[]};Bb.prototype={constructor:Bb,animate:function(t,e){var i,n=!1,r=this,o=this.__zr;if(t){var a=t.split("."),s=r;n="shape"===a[0];for(var u=0,c=a.length;u<c;u++)s&&(s=s[a[u]]);s&&(i=s)}else i=r;if(i){var h=r.animators,d=new Lb(i,e);return d.during(function(t){r.dirty(n)}).done(function(){h.splice(l(h,d),1)}),h.push(d),o&&o.animation.addAnimator(d),d}Fb('Property "'+t+'" is not existed in element '+r.id)},stopAnimation:function(t){for(var e=this.animators,i=e.length,n=0;n<i;n++)e[n].stop(t);return e.length=0,this},animateTo:function(t,e,i,n,r,o){ae(this,t,e,i,n,r,o)},animateFrom:function(t,e,i,n,r,o){ae(this,t,e,i,n,r,o,!0)}};var Hb=function(t){mb.call(this,t),ob.call(this,t),Bb.call(this,t),this.id=t.id||P_()};Hb.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(b(t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},c(Hb,Bb),c(Hb,mb),c(Hb,ob);var Vb=Q,Wb=Math.min,$b=Math.max;ue.prototype={constructor:ue,union:function(t){var e=Wb(t.x,this.x),i=Wb(t.y,this.y);this.width=$b(t.x+t.width,this.x+this.width)-e,this.height=$b(t.y+t.height,this.y+this.height)-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[],i=[],n=[];return function(r){if(r){t[0]=i[0]=this.x,t[1]=n[1]=this.y,e[0]=n[0]=this.x+this.width,e[1]=i[1]=this.y+this.height,Vb(t,t,r),Vb(e,e,r),Vb(i,i,r),Vb(n,n,r),this.x=Wb(t[0],e[0],i[0],n[0]),this.y=Wb(t[1],e[1],i[1],n[1]);var o=$b(t[0],e[0],i[0],n[0]),a=$b(t[1],e[1],i[1],n[1]);this.width=o-this.x,this.height=a-this.y}}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,n=t.height/e.height,r=mt();return _t(r,r,[-e.x,-e.y]),wt(r,r,[i,n]),_t(r,r,[t.x,t.y]),r},intersect:function(t){if(!t)return!1;t instanceof ue||(t=ue.create(t));var e=this,i=e.x,n=e.x+e.width,r=e.y,o=e.y+e.height,a=t.x,s=t.x+t.width,l=t.y,u=t.y+t.height;return!(n<a||s<i||o<l||u<r)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new ue(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},ue.create=function(t){return new ue(t.x,t.y,t.width,t.height)};var jb=function(t){t=t||{},Hb.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};jb.prototype={constructor:jb,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i.indexOf(e);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof jb&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,n=this._children,r=l(n,t);return r<0?this:(n.splice(r,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof jb&&t.delChildrenFromStorage(i)),e&&e.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i.length;e++)t=i[e],n&&(n.delFromStorage(t),t instanceof jb&&t.delChildrenFromStorage(n)),t.parent=null;return i.length=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var i=this._children[e];t.addToStorage(i),i instanceof jb&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var i=this._children[e];t.delFromStorage(i),i instanceof jb&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new ue(0,0,0,0),n=t||this._children,r=[],o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(i.copy(s),i.applyTransform(l),(e=e||i.clone()).union(i)):(e=e||s.clone()).union(s)}}return e||i}},u(jb,Hb);var Ub=32,Gb=7,qb=function(){this._roots=[],this._displayList=[],this._displayListLen=0};qb.prototype={constructor:qb,traverse:function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,r=e.length;n<r;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,z_.canvasSupported&&ve(i,ye)},_updateAndAddDisplayable:function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var n=t.clipPath;if(n){e=e?e.slice():[];for(var r=n,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.clipPath}if(t.isGroup){for(var a=t._children,s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,i)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof jb&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(i=0;i<this._roots.length;i++){var e=this._roots[i];e instanceof jb&&e.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var i=0,n=t.length;i<n;i++)this.delRoot(t[i]);else{var r=l(this._roots,t);r>=0&&(this.delFromStorage(t),this._roots.splice(r,1),t instanceof jb&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:ye};var Yb={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1},Xb=function(t,e,i){return Yb.hasOwnProperty(e)?i*=t.dpr:i},Zb=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],Kb=function(t){this.extendFrom(t,!1)};Kb.prototype={constructor:Kb,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,i){for(var n=this,r=i&&i.style,o=!r,a=0;a<Zb.length;a++){var s=Zb[a],l=s[0];(o||n[l]!==r[l])&&(t[l]=Xb(t,l,n[l]||s[1]))}if((o||n.fill!==r.fill)&&(t.fillStyle=n.fill),(o||n.stroke!==r.stroke)&&(t.strokeStyle=n.stroke),(o||n.opacity!==r.opacity)&&(t.globalAlpha=null==n.opacity?1:n.opacity),(o||n.blend!==r.blend)&&(t.globalCompositeOperation=n.blend||"source-over"),this.hasStroke()){var u=n.lineWidth;t.lineWidth=u/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||!0!==e&&(!1===e?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,i){for(var n=("radial"===e.type?_e:xe)(t,e,i),r=e.colorStops,o=0;o<r.length;o++)n.addColorStop(r[o].offset,r[o].color);return n}} ;for(var Jb=Kb.prototype,Qb=0;Qb<Zb.length;Qb++){var tw=Zb[Qb];tw[0]in Jb||(Jb[tw[0]]=tw[1])}Kb.getGradient=Jb.getGradient;var ew=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};ew.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var iw=function(t,e,i){var n;i=i||Rb,"string"==typeof t?n=we(t,e,i):b(t)&&(t=(n=t).id),this.id=t,this.dom=n;var r=n.style;r&&(n.onselectstart=be,r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",r["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",r.padding=0,r.margin=0,r["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=i};iw.prototype={constructor:iw,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=we("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,o&&(o.width=t*i,o.height=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t,e){var i=this.dom,n=this.ctx,r=i.width,o=i.height,e=e||this.clearColor,a=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;if(a&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,r/l,o/l)),n.clearRect(0,0,r,o),e&&"transparent"!==e){var u;e.colorStops?(u=e.__canvasGradient||Kb.getGradient(n,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=u):e.image&&(u=ew.prototype.getCanvasPattern.call(e,n)),n.save(),n.fillStyle=u||e,n.fillRect(0,0,r,o),n.restore()}if(a){var c=this.domBack;n.save(),n.globalAlpha=s,n.drawImage(c,0,0,r,o),n.restore()}}};var nw="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},rw=new Cb(50),ow={},aw=0,sw=5e3,lw=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,uw="12px sans-serif",cw={};cw.measureText=function(t,e){var i=s();return i.font=e||uw,i.measureText(t)};var hw={left:1,right:1,center:1},dw={top:1,bottom:1,middle:1},fw=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],pw=new ue,gw=function(){};gw.prototype={constructor:gw,drawRectText:function(t,e){var i=this.style;e=i.textRect||e,this.__dirty&&Ue(i);var n=i.text;if(null!=n&&(n+=""),li(n,i)){t.save();var r=this.transform;i.transformText?this.setTransform(t):r&&(pw.copy(e),pw.applyTransform(r),e=pw),qe(this,t,n,i,e),t.restore()}}},ui.prototype={constructor:ui,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?Hb.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new Kb(t,this),this.dirty(!1),this}},u(ui,Hb),c(ui,gw),ci.prototype={constructor:ci,type:"image",brush:function(t,e){var i=this.style,n=i.image;i.bind(t,this,e);var r=this._image=Te(n,this._image,this,this.onload);if(r&&Me(r)){var o=i.x||0,a=i.y||0,s=i.width,l=i.height,u=r.width/r.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=r.width,l=r.height),this.setTransform(t),i.sWidth&&i.sHeight){var c=i.sx||0,h=i.sy||0;t.drawImage(r,c,h,i.sWidth,i.sHeight,o,a,s,l)}else if(i.sx&&i.sy){var d=s-(c=i.sx),f=l-(h=i.sy);t.drawImage(r,c,h,d,f,o,a,s,l)}else t.drawImage(r,o,a,s,l);null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new ue(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},u(ci,ui);var mw=new ue(0,0,0,0),vw=new ue(0,0,0,0),yw=function(t,e,i){this.type="canvas";var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=o({},i||{}),this.dpr=i.devicePixelRatio||Rb,this._singleCanvas=n,this.root=t;var r=t.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var a=this._zlevelList=[],s=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,n){var l=t.width,u=t.height;null!=i.width&&(l=i.width),null!=i.height&&(u=i.height),this.dpr=i.devicePixelRatio||1,t.width=l*this.dpr,t.height=u*this.dpr,this._width=l,this._height=u;var c=new iw(t,this,this.dpr);c.__builtin__=!0,c.initContext(),s[314159]=c,c.zlevel=314159,a.push(314159),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var h=this._domRoot=mi(this._width,this._height);t.appendChild(h)}this._hoverlayer=null,this._hoverElements=[]};yw.prototype={constructor:yw,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var n=0;n<i.length;n++){var r=i[n],o=this._layers[r];if(!o.__builtin__&&o.refresh){var a=0===n?this._backgroundColor:null;o.refresh(a)}}return this.refreshHover(),this},addHover:function(t,e){if(!t.__hoverMir){var i=new t.constructor({style:t.style,shape:t.shape,z:t.z,z2:t.z2,silent:t.silent});return i.__from=t,t.__hoverMir=i,e&&i.setStyle(e),this._hoverElements.push(i),i}},removeHover:function(t){var e=t.__hoverMir,i=this._hoverElements,n=l(i,e);n>=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;i<e.length;i++){var n=e[i].__from;n&&(n.__hoverMir=null)}e.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){ve(t,this.storage.displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(1e5));var n={};i.ctx.save();for(var r=0;r<e;){var o=t[r],a=o.__from;a&&a.__zr?(r++,a.invisible||(o.transform=a.transform,o.invTransform=a.invTransform,o.__clipPaths=a.__clipPaths,this._doPaintEl(o,i,!0,n))):(t.splice(r,1),a.__hoverMir=null,e--)}i.ctx.restore()}},getHoverLayer:function(){return this.getLayer(1e5)},_paintList:function(t,e,i){if(this._redrawId===i){e=e||!1,this._updateLayerStatus(t);var n=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),!n){var r=this;nw(function(){r._paintList(t,e,i)})}}},_compositeManually:function(){var t=this.getLayer(314159).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},_doPaintList:function(t,e){for(var i=[],n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n];(s=this._layers[r]).__builtin__&&s!==this._hoverlayer&&(s.__dirty||e)&&i.push(s)}for(var o=!0,a=0;a<i.length;a++){var s=i[a],l=s.ctx,u={};l.save();var c=e?s.__startIndex:s.__drawIndex,h=!e&&s.incremental&&Date.now,f=h&&Date.now(),p=s.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,p);else if(c===s.__startIndex){var g=t[c];g.incremental&&g.notClear&&!e||s.clear(!1,p)}-1===c&&(console.error("For some unknown reason. drawIndex is -1"),c=s.__startIndex);for(var m=c;m<s.__endIndex;m++){var v=t[m];if(this._doPaintEl(v,s,e,u),v.__dirty=v.__dirtyText=!1,h&&Date.now()-f>15)break}s.__drawIndex=m,s.__drawIndex<s.__endIndex&&(o=!1),u.prevElClipPaths&&l.restore(),l.restore()}return z_.wxa&&d(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),o},_doPaintEl:function(t,e,i,n){var r=e.ctx,o=t.transform;if((e.__dirty||i)&&!t.invisible&&0!==t.style.opacity&&(!o||o[0]||o[3])&&(!t.culling||!fi(t,this._width,this._height))){var a=t.__clipPaths;n.prevElClipPaths&&!pi(a,n.prevElClipPaths)||(n.prevElClipPaths&&(e.ctx.restore(),n.prevElClipPaths=null,n.prevEl=null),a&&(r.save(),gi(a,r),n.prevElClipPaths=a)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,n.prevEl||null),n.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=314159);var i=this._layers[t];return i||((i=new iw("zr_"+t,this,this.dpr)).zlevel=t,i.__builtin__=!0,this._layerConfig[t]&&n(i,this._layerConfig[t],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},insertLayer:function(t,e){var i=this._layers,n=this._zlevelList,r=n.length,o=null,a=-1,s=this._domRoot;if(i[t])Fb("ZLevel "+t+" has been used already");else if(di(e)){if(r>0&&t>n[0]){for(a=0;a<r-1&&!(n[a]<t&&n[a+1]>t);a++);o=i[n[a]]}if(n.splice(a+1,0,t),i[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}else Fb("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var i,n,r=this._zlevelList;for(n=0;n<r.length;n++)i=r[n],t.call(e,this._layers[i],i)},eachBuiltinLayer:function(t,e){var i,n,r,o=this._zlevelList;for(r=0;r<o.length;r++)n=o[r],(i=this._layers[n]).__builtin__&&t.call(e,i,n)},eachOtherLayer:function(t,e){var i,n,r,o=this._zlevelList;for(r=0;r<o.length;r++)n=o[r],(i=this._layers[n]).__builtin__||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){function e(t){i&&(i.__endIndex!==t&&(i.__dirty=!0),i.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(r=1;r<t.length;r++)if((a=t[r]).zlevel!==t[r-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}for(var i=null,n=0,r=0;r<t.length;r++){var o,a=t[r],s=a.zlevel;a.incremental?((o=this.getLayer(s+.001,this._needsManuallyCompositing)).incremental=!0,n=1):o=this.getLayer(s+(n>0?.01:0),this._needsManuallyCompositing),o.__builtin__||Fb("ZLevel "+s+" has been used by unkown layer "+o.id),o!==i&&(o.__used=!0,o.__startIndex!==r&&(o.__dirty=!0),o.__startIndex=r,o.incremental?o.__drawIndex=-1:o.__drawIndex=r,e(r),i=o),a.__dirty&&(o.__dirty=!0,o.incremental&&o.__drawIndex<0&&(o.__drawIndex=r))}e(r),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?n(i[t],e,!0):i[t]=e;for(var r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];o!==t&&o!==t+.01||n(this._layers[o],i[t],!0)}}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(l(i,t),1))},resize:function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style.height=e+"px";for(var r in this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);d(this._progressiveLayers,function(i){i.resize(t,e)}),this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(314159).resize(t,e)}return this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new iw("image",this,t.pixelRatio||this.dpr);if(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,n=e.dom.height,r=e.ctx;this.eachLayer(function(t){t.__builtin__?r.drawImage(t.dom,0,0,i,n):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())})}else for(var o={},a=this.storage.getDisplayList(!0),s=0;s<a.length;s++){var l=a[s];this._doPaintEl(l,e,!0,o)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[n]||hi(s[i])||hi(a.style[i]))-(hi(s[r])||0)-(hi(s[o])||0)|0},pathToImage:function(t,e){e=e||this.dpr;var i=document.createElement("canvas"),n=i.getContext("2d"),r=t.getBoundingRect(),o=t.style,a=o.shadowBlur*e,s=o.shadowOffsetX*e,l=o.shadowOffsetY*e,u=o.hasStroke()?o.lineWidth:0,c=Math.max(u/2,-s+a),h=Math.max(u/2,s+a),d=Math.max(u/2,-l+a),f=Math.max(u/2,l+a),p=r.width+c+h,g=r.height+d+f;i.width=p*e,i.height=g*e,n.scale(e,e),n.clearRect(0,0,p,g),n.dpr=e;var m={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[c-r.x,d-r.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(n);var v=new ci({style:{x:0,y:0,image:i}});return null!=m.position&&(v.position=t.position=m.position),null!=m.rotation&&(v.rotation=t.rotation=m.rotation),null!=m.scale&&(v.scale=t.scale=m.scale),v}};var xw=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,ob.call(this)};xw.prototype={constructor:xw,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i<e.length;i++)this.addClip(e[i])},removeClip:function(t){var e=l(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e.length;i++)this.removeClip(e[i]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,i=this._clips,n=i.length,r=[],o=[],a=0;a<n;a++){var s=i[a],l=s.step(t,e);l&&(r.push(l),o.push(s))}for(a=0;a<n;)i[a]._needsRemove?(i[a]=i[n-1],i.pop(),n--):a++;for(n=r.length,a=0;a<n;a++)o[a].fire(r[a]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){function t(){e._running&&(nw(t),!e._paused&&e._update())}var e=this;this._running=!0,nw(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(t,e){var i=new Lb(t,(e=e||{}).loop,e.getter,e.setter);return this.addAnimator(i),i}},c(xw,ob);var _w=function(){this._track=[]};_w.prototype={constructor:_w,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,i){var n=t.touches;if(n){for(var r={points:[],touches:[],target:e,event:t},o=0,a=n.length;o<a;o++){var s=n[o],l=at(i,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},_recognize:function(t){for(var e in bw)if(bw.hasOwnProperty(e)){var i=bw[e](this._track,t);if(i)return i}}};var bw={pinch:function(t,e){var i=t.length;if(i){var n=(t[i-1]||{}).points,r=(t[i-2]||{}).points||n;if(r&&r.length>1&&n&&n.length>1){var o=vi(n)/vi(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=yi(n);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},ww=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Sw=["touchstart","touchend","touchmove"],Tw={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},Cw=f(ww,function(t){var e=t.replace("mouse","pointer");return Tw[e]?e:t}),Mw={mousemove:function(t){t=lt(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){var e=(t=lt(this.dom,t)).toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){(t=lt(this.dom,t)).zrByTouch=!0,this._lastTouchMoment=new Date,_i(this,t,"start"),Mw.mousemove.call(this,t),Mw.mousedown.call(this,t),bi(this)},touchmove:function(t){(t=lt(this.dom,t)).zrByTouch=!0,_i(this,t,"change"),Mw.mousemove.call(this,t),bi(this)},touchend:function(t){(t=lt(this.dom,t)).zrByTouch=!0,_i(this,t,"end"),Mw.mouseup.call(this,t),+new Date-this._lastTouchMoment<300&&Mw.click.call(this,t),bi(this)},pointerdown:function(t){Mw.mousedown.call(this,t)},pointermove:function(t){wi(t)||Mw.mousemove.call(this,t)},pointerup:function(t){Mw.mouseup.call(this,t)},pointerout:function(t){wi(t)||Mw.mouseout.call(this,t)}};d(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Mw[t]=function(e){e=lt(this.dom,e),this.trigger(t,e)}});var Dw=Ti.prototype;Dw.dispose=function(){for(var t=ww.concat(Sw),e=0;e<t.length;e++){var i=t[e];ct(this.dom,xi(i),this._handlers[i])}},Dw.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},c(Ti,ob);var Iw=!z_.canvasSupported,Aw={canvas:yw},kw={},Ew=function(t,e,i){i=i||{},this.dom=e,this.id=t;var n=this,r=new qb,o=i.renderer;if(Iw){if(!Aw.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");o="vml"}else o&&Aw[o]||(o="canvas");var a=new Aw[o](e,r,i,t);this.storage=r,this.painter=a;var s=z_.node||z_.worker?null:new Ti(a.getViewportRoot());this.handler=new hb(r,a,s,a.root),this.animation=new xw({stage:{update:m(this.flush,this)}}),this.animation.start(),this._needsRefresh;var l=r.delFromStorage,u=r.addToStorage;r.delFromStorage=function(t){l.call(r,t),t&&t.removeSelfFromZr(n)},r.addToStorage=function(t){u.call(r,t),t.addSelfToZr(n)}};Ew.prototype={constructor:Ew,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,e){if(this.painter.addHover){var i=this.painter.addHover(t,e);return this.refreshHover(),i}},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,Di(this.id)}};var Ow=(Object.freeze||Object)({version:"4.0.5",init:Ci,dispose:function(t){if(t)t.dispose();else{for(var e in kw)kw.hasOwnProperty(e)&&kw[e].dispose();kw={}}return this},getInstance:function(t){return kw[t]},registerPainter:Mi}),Nw=d,Lw=b,Pw=y,Rw="series\0",zw=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],Fw=0,Bw=".",Hw="___EC__COMPONENT__CONTAINER___",Vw=0,Ww=function(t){for(var e=0;e<t.length;e++)t[e][1]||(t[e][1]=t[e][0]);return function(e,i,n){for(var r={},o=0;o<t.length;o++){var a=t[o][1];if(!(i&&l(i,a)>=0||n&&l(n,a)<0)){var s=e.getShallow(a);null!=s&&(r[t[o][0]]=s)}}return r}},$w=Ww([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),jw={getLineStyle:function(t){var e=$w(this,t),i=this.getLineDash(e.lineWidth);return i&&(e.lineDash=i),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[i,i]}},Uw=Ww([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Gw={getAreaStyle:function(t,e){return Uw(this,t,e)}},qw=Math.pow,Yw=Math.sqrt,Xw=1e-8,Zw=1e-4,Kw=Yw(3),Jw=1/3,Qw=B(),tS=B(),eS=B(),iS=Math.min,nS=Math.max,rS=Math.sin,oS=Math.cos,aS=2*Math.PI,sS=B(),lS=B(),uS=B(),cS=[],hS=[],dS={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fS=[],pS=[],gS=[],mS=[],vS=Math.min,yS=Math.max,xS=Math.cos,_S=Math.sin,bS=Math.sqrt,wS=Math.abs,SS="undefined"!=typeof Float32Array,TS=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};TS.prototype={constructor:TS,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=wS(1/Rb/t)||0,this._uy=wS(1/Rb/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(dS.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=wS(t-this._xi)>this._ux||wS(e-this._yi)>this._uy||this._len<5;return this.addData(dS.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,r,o){return this.addData(dS.C,t,e,i,n,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,o):this._ctx.bezierCurveTo(t,e,i,n,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,i,n){return this.addData(dS.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,r,o){return this.addData(dS.A,t,e,i,i,n,r-n,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=xS(r)*i+t,this._yi=_S(r)*i+e,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(dS.R,t,e,i,n),this},closePath:function(){this.addData(dS.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t.length;i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length==e||!SS||(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,r=0;r<e;r++)i+=t[r].len();for(SS&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i)),r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[n++]=o[a];this._len=n},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var i=0;i<arguments.length;i++)e[this._len++]=arguments[i];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var i,n,r=this._dashSum,o=this._dashOffset,a=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,c=t-l,h=e-u,d=bS(c*c+h*h),f=l,p=u,g=a.length;for(c/=d,h/=d,o<0&&(o=r+o),f-=(o%=r)*c,p-=o*h;c>0&&f<=t||c<0&&f>=t||0==c&&(h>0&&p<=e||h<0&&p>=e);)f+=c*(i=a[n=this._dashIdx]),p+=h*i,this._dashIdx=(n+1)%g,c>0&&f<l||c<0&&f>l||h>0&&p<u||h<0&&p>u||s[n%2?"moveTo":"lineTo"](c>=0?vS(f,t):yS(f,t),h>=0?vS(p,e):yS(p,e));c=f-t,h=p-e,this._dashOffset=-bS(c*c+h*h)},_dashedBezierTo:function(t,e,i,n,r,o){var a,s,l,u,c,h=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,m=this._yi,v=Qi,y=0,x=this._dashIdx,_=f.length,b=0;for(d<0&&(d=h+d),d%=h,a=0;a<1;a+=.1)s=v(g,t,i,r,a+.1)-v(g,t,i,r,a),l=v(m,e,n,o,a+.1)-v(m,e,n,o,a),y+=bS(s*s+l*l);for(;x<_&&!((b+=f[x])>d);x++);for(a=(b-d)/y;a<=1;)u=v(g,t,i,r,a),c=v(m,e,n,o,a),x%2?p.moveTo(u,c):p.lineTo(u,c),a+=f[x]/y,x=(x+1)%_;x%2!=0&&p.lineTo(r,o),s=r-u,l=o-c,this._dashOffset=-bS(s*s+l*l)},_dashedQuadraticTo:function(t,e,i,n){var r=i,o=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,SS&&(this.data=new Float32Array(t)))},getBoundingRect:function(){fS[0]=fS[1]=gS[0]=gS[1]=Number.MAX_VALUE,pS[0]=pS[1]=mS[0]=mS[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,r=0,o=0;o<t.length;){var a=t[o++];switch(1==o&&(n=e=t[o],r=i=t[o+1]),a){case dS.M:e=n=t[o++],i=r=t[o++],gS[0]=n,gS[1]=r,mS[0]=n,mS[1]=r;break;case dS.L:fn(e,i,t[o],t[o+1],gS,mS),e=t[o++],i=t[o++];break;case dS.C:pn(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],gS,mS),e=t[o++],i=t[o++];break;case dS.Q:gn(e,i,t[o++],t[o++],t[o],t[o+1],gS,mS),e=t[o++],i=t[o++];break;case dS.A:var s=t[o++],l=t[o++],u=t[o++],c=t[o++],h=t[o++],d=t[o++]+h,f=(t[o++],1-t[o++]);1==o&&(n=xS(h)*u+s,r=_S(h)*c+l),mn(s,l,u,c,h,d,f,gS,mS),e=xS(d)*u+s,i=_S(d)*c+l;break;case dS.R:fn(n=e=t[o++],r=i=t[o++],n+t[o++],r+t[o++],gS,mS);break;case dS.Z:e=n,i=r}tt(fS,fS,gS),et(pS,pS,mS)}return 0===o&&(fS[0]=fS[1]=pS[0]=pS[1]=0),new ue(fS[0],fS[1],pS[0]-fS[0],pS[1]-fS[1])},rebuildPath:function(t){for(var e,i,n,r,o,a,s=this.data,l=this._ux,u=this._uy,c=this._len,h=0;h<c;){var d=s[h++];switch(1==h&&(e=n=s[h],i=r=s[h+1]),d){case dS.M:e=n=s[h++],i=r=s[h++],t.moveTo(n,r);break;case dS.L:o=s[h++],a=s[h++],(wS(o-n)>l||wS(a-r)>u||h===c-1)&&(t.lineTo(o,a),n=o,r=a);break;case dS.C:t.bezierCurveTo(s[h++],s[h++],s[h++],s[h++],s[h++],s[h++]),n=s[h-2],r=s[h-1];break;case dS.Q:t.quadraticCurveTo(s[h++],s[h++],s[h++],s[h++]),n=s[h-2],r=s[h-1];break;case dS.A:var f=s[h++],p=s[h++],g=s[h++],m=s[h++],v=s[h++],y=s[h++],x=s[h++],_=s[h++],b=g>m?g:m,w=g>m?1:g/m,S=g>m?m/g:1,T=v+y;Math.abs(g-m)>.001?(t.translate(f,p),t.rotate(x),t.scale(w,S),t.arc(0,0,b,v,T,1-_),t.scale(1/w,1/S),t.rotate(-x),t.translate(-f,-p)):t.arc(f,p,b,v,T,1-_),1==h&&(e=xS(v)*g+f,i=_S(v)*m+p),n=xS(T)*g+f,r=_S(T)*m+p;break;case dS.R:e=n=s[h],i=r=s[h+1],t.rect(s[h++],s[h++],s[h++],s[h++]);break;case dS.Z:t.closePath(),n=e,r=i}}}},TS.CMD=dS;var CS=2*Math.PI,MS=2*Math.PI,DS=TS.CMD,IS=2*Math.PI,AS=1e-4,kS=[-1,-1,-1],ES=[-1,-1],OS=ew.prototype.getCanvasPattern,NS=Math.abs,LS=new TS(!0);En.prototype={constructor:En,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i=this.style,n=this.path||LS,r=i.hasStroke(),o=i.hasFill(),a=i.fill,s=i.stroke,l=o&&!!a.colorStops,u=r&&!!s.colorStops,c=o&&!!a.image,h=r&&!!s.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var d;l&&(d=d||this.getBoundingRect(),this._fillGradient=i.getGradient(t,a,d)),u&&(d=d||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,s,d))}l?t.fillStyle=this._fillGradient:c&&(t.fillStyle=OS.call(a,t)),u?t.strokeStyle=this._strokeGradient:h&&(t.strokeStyle=OS.call(s,t));var f=i.lineDash,p=i.lineDashOffset,g=!!t.setLineDash,m=this.getGlobalScale();if(n.setScale(m[0],m[1]),this.__dirtyPath||f&&!g&&r?(n.beginPath(t),f&&!g&&(n.setLineDash(f),n.setLineDashOffset(p)),this.buildPath(n,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),o&&(null!=i.fillOpacity?(v=t.globalAlpha,t.globalAlpha=i.fillOpacity*i.opacity,n.fill(t),t.globalAlpha=v):n.fill(t)),f&&g&&(t.setLineDash(f),t.lineDashOffset=p),r)if(null!=i.strokeOpacity){var v=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,n.stroke(t),t.globalAlpha=v}else n.stroke(t);f&&g&&t.setLineDash([]),null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,i){},createPathProxy:function(){this.path=new TS},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;n||(n=this.path=new TS),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){r.copy(t);var o=e.lineWidth,a=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),a>1e-10&&(r.width+=o/a,r.height+=o/a,r.x-=o/a/2,r.y-=o/a/2)}return r}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var o=this.path.data;if(r.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(r.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),kn(o,a/s,t,e)))return!0}if(r.hasFill())return An(o,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):ui.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(b(t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&NS(t[0]-1)>1e-10&&NS(t[3]-1)>1e-10?Math.sqrt(NS(t[0]*t[3]-t[2]*t[1])):1}},En.extend=function(t){var e=function(e){En.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var r in i)!n.hasOwnProperty(r)&&i.hasOwnProperty(r)&&(n[r]=i[r])}t.init&&t.init.call(this,e)};u(e,En);for(var i in t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},u(En,ui);var PS=TS.CMD,RS=[[],[],[]],zS=Math.sqrt,FS=Math.atan2,BS=function(t,e){ var i,n,r,o,a,s,l=t.data,u=PS.M,c=PS.C,h=PS.L,d=PS.R,f=PS.A,p=PS.Q;for(r=0,o=0;r<l.length;){switch(i=l[r++],o=r,n=0,i){case u:case h:n=1;break;case c:n=3;break;case p:n=2;break;case f:var g=e[4],m=e[5],v=zS(e[0]*e[0]+e[1]*e[1]),y=zS(e[2]*e[2]+e[3]*e[3]),x=FS(-e[1]/y,e[0]/v);l[r]*=v,l[r++]+=g,l[r]*=y,l[r++]+=m,l[r++]*=v,l[r++]*=y,l[r++]+=x,l[r++]+=x,o=r+=2;break;case d:s[0]=l[r++],s[1]=l[r++],Q(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],Q(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<n;a++)(s=RS[a])[0]=l[r++],s[1]=l[r++],Q(s,s,e),l[o++]=s[0],l[o++]=s[1]}},HS=Math.sqrt,VS=Math.sin,WS=Math.cos,$S=Math.PI,jS=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},US=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(jS(t)*jS(e))},GS=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(US(t,e))},qS=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,YS=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,XS=function(t){ui.call(this,t)};XS.prototype={constructor:XS,type:"text",brush:function(t,e){var i=this.style;this.__dirty&&Ue(i),i.fill=i.stroke=i.shadowBlur=i.shadowColor=i.shadowOffsetX=i.shadowOffsetY=null;var n=i.text;null!=n&&(n+=""),li(n,i)&&(this.setTransform(t),qe(this,t,n,i,null,e),this.restoreTransform(t))},getBoundingRect:function(){var t=this.style;if(this.__dirty&&Ue(t),!this._rect){var e=t.text;null!=e?e+="":e="";var i=Ie(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.rich);if(i.x+=t.x||0,i.y+=t.y||0,ri(t.textStroke,t.textStrokeWidth)){var n=t.textStrokeWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect}},u(XS,ui);var ZS=En.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,i){i&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}}),KS=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]],JS=function(t){return z_.browser.ie&&z_.browser.version>=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var r=0;r<i.length;r++){var o=i[r],a=o&&o.shape,s=o&&o.type;if(a&&("sector"===s&&a.startAngle===a.endAngle||"rect"===s&&(!a.width||!a.height))){for(l=0;l<KS.length;l++)KS[l][2]=n[KS[l][0]],n[KS[l][0]]=KS[l][1];e=!0;break}}if(t.apply(this,arguments),e)for(var l=0;l<KS.length;l++)n[KS[l][0]]=KS[l][2]}:t},QS=En.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:JS(En.prototype.brush),buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(a),c=Math.sin(a);t.moveTo(u*r+i,c*r+n),t.lineTo(u*o+i,c*o+n),t.arc(i,n,o,a,s,!l),t.lineTo(Math.cos(s)*r+i,Math.sin(s)*r+n),0!==r&&t.arc(i,n,r,s,a,l),t.closePath()}}),tT=En.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)}}),eT=function(t,e){for(var i=t.length,n=[],r=0,o=1;o<i;o++)r+=Z(t[o-1],t[o]);var a=r/2;for(a=a<i?i:a,o=0;o<a;o++){var s,l,u,c=o/(a-1)*(e?i:i-1),h=Math.floor(c),d=c-h,f=t[h%i];e?(s=t[(h-1+i)%i],l=t[(h+1)%i],u=t[(h+2)%i]):(s=t[0===h?h:h-1],l=t[h>i-2?i-1:h+1],u=t[h>i-3?i-1:h+2]);var p=d*d,g=d*p;n.push([zn(s[0],f[0],l[0],u[0],d,p,g),zn(s[1],f[1],l[1],u[1],d,p,g)])}return n},iT=function(t,e,i,n){var r,o,a,s,l=[],u=[],c=[],h=[];if(n){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;d<f;d++)tt(a,a,t[d]),et(s,s,t[d]);tt(a,a,n[0]),et(s,s,n[1])}for(var d=0,f=t.length;d<f;d++){var p=t[d];if(i)r=t[d?d-1:f-1],o=t[(d+1)%f];else{if(0===d||d===f-1){l.push(V(t[d]));continue}r=t[d-1],o=t[d+1]}U(u,o,r),Y(u,u,e);var g=Z(p,r),m=Z(p,o),v=g+m;0!==v&&(g/=v,m/=v),Y(c,u,-g),Y(h,u,m);var y=$([],p,c),x=$([],p,h);n&&(et(y,y,a),tt(y,y,s),et(x,x,a),tt(x,x,s)),l.push(y),l.push(x)}return i&&l.push(l.shift()),l},nT=En.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){Fn(t,e,!0)}}),rT=En.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){Fn(t,e,!1)}}),oT=En.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width,o=e.height;e.r?je(t,e):t.rect(i,n,r,o),t.closePath()}}),aT=En.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,r=e.x2,o=e.y2,a=e.percent;0!==a&&(t.moveTo(i,n),a<1&&(r=i*(1-a)+r*a,o=n*(1-a)+o*a),t.lineTo(r,o))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}}),sT=[],lT=En.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(i,n),null==l||null==u?(c<1&&(cn(i,a,r,c,sT),a=sT[1],r=sT[2],cn(n,s,o,c,sT),s=sT[1],o=sT[2]),t.quadraticCurveTo(a,s,r,o)):(c<1&&(rn(i,a,l,r,c,sT),a=sT[1],l=sT[2],r=sT[3],rn(n,s,u,o,c,sT),s=sT[1],u=sT[2],o=sT[3]),t.bezierCurveTo(a,s,l,u,r,o)))},pointAt:function(t){return Bn(this.shape,t,!1)},tangentAt:function(t){var e=Bn(this.shape,t,!0);return X(e,e)}}),uT=En.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+i,u*r+n),t.arc(i,n,r,o,a,!s)}}),cT=En.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e.length;i++)t=t||e[i].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),En.prototype.getBoundingRect.call(this)}}),hT=function(t){this.colorStops=t||[]};hT.prototype={constructor:hT,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var dT=function(t,e,i,n,r,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==i?1:i,this.y2=null==n?0:n,this.type="linear",this.global=o||!1,hT.call(this,r)};dT.prototype={constructor:dT},u(dT,hT);var fT=function(t,e,i,n,r){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==i?.5:i,this.type="radial",this.global=r||!1,hT.call(this,n)};fT.prototype={constructor:fT},u(fT,hT),Hn.prototype.incremental=!0,Hn.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},Hn.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},Hn.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},Hn.prototype.eachPendingDisplayable=function(t){for(e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},Hn.prototype.update=function(){for(this.updateTransform(),t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},Hn.prototype.brush=function(t,e){for(i=this._cursor;i<this._displayables.length;i++)(n=this._displayables[i]).beforeBrush&&n.beforeBrush(t),n.brush(t,i===this._cursor?null:this._displayables[i-1]),n.afterBrush&&n.afterBrush(t);this._cursor=i;for(var i=0;i<this._temporaryDisplayables.length;i++){var n=this._temporaryDisplayables[i];n.beforeBrush&&n.beforeBrush(t),n.brush(t,0===i?null:this._temporaryDisplayables[i-1]),n.afterBrush&&n.afterBrush(t)}this._temporaryDisplayables=[],this.notClear=!0};var pT=[];Hn.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ue(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(pT)),t.union(n)}this._rect=t}return this._rect},Hn.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(i[0],i[1]))for(var n=0;n<this._displayables.length;n++)if(this._displayables[n].contain(t,e))return!0;return!1},u(Hn,ui);var gT=Math.round,mT=Math.max,vT=Math.min,yT={},xT=function(t,e){for(var i=[],n=t.length,r=0;r<n;r++){var o=t[r];o.path||o.createPathProxy(),o.__dirtyPath&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var a=new En(e);return a.createPathProxy(),a.buildPath=function(t){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e)},a},_T=R(),bT=0,wT=(Object.freeze||Object)({extendShape:Vn,extendPath:function(t,e){return Rn(t,e)},makePath:Wn,makeImage:$n,mergePath:xT,resizePath:Un,subPixelOptimizeLine:Gn,subPixelOptimizeRect:qn,subPixelOptimize:Yn,setElementHoverStyle:nr,isInEmphasis:rr,setHoverStyle:ur,setAsHoverStyleTrigger:cr,setLabelStyle:hr,setTextStyle:dr,setText:function(t,e,i){var n,r={isRectText:!0};!1===i?n=!0:r.autoColor=i,fr(t,e,r,n)},getFont:xr,updateProps:br,initProps:wr,getTransform:Sr,applyTransform:Tr,transformDirection:Cr,groupTransition:Mr,clipPointsByRect:Dr,clipRectByRect:function(t,e){var i=mT(t.x,e.x),n=vT(t.x+t.width,e.x+e.width),r=mT(t.y,e.y),o=vT(t.y+t.height,e.y+e.height);if(n>=i&&o>=r)return{x:i,y:r,width:n-i,height:o-r}},createIcon:Ir,Group:jb,Image:ci,Text:XS,Circle:ZS,Sector:QS,Ring:tT,Polygon:nT,Polyline:rT,Rect:oT,Line:aT,BezierCurve:lT,Arc:uT,IncrementalDisplayable:Hn,CompoundPath:cT,LinearGradient:dT,RadialGradient:fT,BoundingRect:ue}),ST=["textStyle","color"],TT={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(ST):null)},getFont:function(){return xr({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return Ie(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("rich"),this.getShallow("truncateText"))}},CT=Ww([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),MT={getItemStyle:function(t,e){var i=CT(this,t,e),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}},DT=c,IT=Fi();Ar.prototype={constructor:Ar,init:null,mergeOption:function(t){n(this.option,t,!0)},get:function(t,e){return null==t?this.option:kr(this.option,this.parsePath(t),!e&&Er(this,t))},getShallow:function(t,e){var i=this.option,n=null==i?i:i[t],r=!e&&Er(this,t);return null==n&&r&&(n=r.getShallow(t)),n},getModel:function(t,e){var i,n=null==t?this.option:kr(this.option,t=this.parsePath(t));return e=e||(i=Er(this,t))&&i.getModel(t),new Ar(n,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(i(this.option))},setReadOnly:function(t){},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){IT(this).getParent=t},isAnimationEnabled:function(){if(!z_.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},Gi(Ar),qi(Ar),DT(Ar,jw),DT(Ar,Gw),DT(Ar,TT),DT(Ar,MT);var AT=0,kT=1e-4,ET=9007199254740991,OT=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,NT=(Object.freeze||Object)({linearMap:Lr,parsePercent:Pr,round:Rr,asc:zr,getPrecision:Fr,getPrecisionSafe:Br,getPixelPrecision:Hr,getPercentWithPrecision:Vr,MAX_SAFE_INTEGER:ET,remRadian:Wr,isRadianAroundZero:$r,parseDate:jr,quantity:Ur,nice:qr,quantile:function(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),r=+t[n-1],o=i-n;return o?r+o*(t[n]-r):r},reformIntervals:Yr,isNumeric:Xr}),LT=k,PT=/([&<>"'])/g,RT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zT=["a","b","c","d","e","f","g"],FT=function(t,e){return"{"+t+(null==e?"":e)+"}"},BT=Le,HT=Ie,VT=(Object.freeze||Object)({addCommas:Zr,toCamelCase:Kr,normalizeCssArray:LT,encodeHTML:Jr,formatTpl:Qr,formatTplSimple:to,getTooltipMarker:eo,formatTime:no,capitalFirst:ro,truncateText:BT,getTextRect:HT}),WT=d,$T=["left","right","top","bottom","width","height"],jT=[["width","left","right"],["height","top","bottom"]],UT=oo,GT=(v(oo,"vertical"),v(oo,"horizontal"),{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}),qT=Fi(),YT=Ar.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,i,n){Ar.call(this,t,e,i,n),this.uid=Or("ec_cpt_model")},init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?ho(t):{};n(t,e.getTheme().get(this.mainType)),n(t,this.getDefaultOption()),i&&co(t,r,i)},mergeOption:function(t,e){n(this.option,t,!0);var i=this.layoutMode;i&&co(this.option,t,i)},optionUpdated:function(t,e){},getDefaultOption:function(){var t=qT(this);if(!t.defaultOption){for(var e=[],i=this.constructor;i;){var r=i.prototype.defaultOption;r&&e.push(r),i=i.superClass}for(var o={},a=e.length-1;a>=0;a--)o=n(o,e[a],!0);t.defaultOption=o}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});Zi(YT,{registerWhenExtend:!0}),function(t){var e={};t.registerSubTypeDefaulter=function(t,i){t=ji(t),e[t.main]=i},t.determineSubType=function(i,n){var r=n.type;if(!r){var o=ji(i).main;t.hasSubTypes(i)&&e[o]&&(r=e[o](n))}return r}}(YT),function(t,e){function i(t){var i={},o=[];return d(t,function(a){var s=n(i,a),u=r(s.originalDeps=e(a),t);s.entryCount=u.length,0===s.entryCount&&o.push(a),d(u,function(t){l(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(i,t);l(e.successor,t)<0&&e.successor.push(a)})}),{graph:i,noEntryList:o}}function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var i=[];return d(t,function(t){l(e,t)>=0&&i.push(t)}),i}t.topologicalTravel=function(t,e,n,r){function o(t){0===--s[t].entryCount&&l.push(t)}if(t.length){var a=i(e),s=a.graph,l=a.noEntryList,u={};for(d(t,function(t){u[t]=!0});l.length;){var c=l.pop(),h=s[c],f=!!u[c];f&&(n.call(r,c,h.originalDeps.slice()),delete u[c]),d(h.successor,f?function(t){u[t]=!0,o(t)}:o)}d(u,function(){throw new Error("Circle dependency may exists")})}}}(YT,function(t){var e=[];return d(YT.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=f(e,function(t){return ji(t).main}),"dataset"!==t&&l(e,"dataset")<=0&&e.unshift("dataset"),e}),c(YT,GT);var XT="";"undefined"!=typeof navigator&&(XT=navigator.platform||"");var ZT={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:XT.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},KT=Fi(),JT={clearColorPalette:function(){KT(this).colorIdx=0,KT(this).colorNameMap={}},getColorFromPalette:function(t,e,i){var n=KT(e=e||this),r=n.colorIdx||0,o=n.colorNameMap=n.colorNameMap||{};if(o.hasOwnProperty(t))return o[t];var a=Ii(this.get("color",!0)),s=this.get("colorLayer",!0),l=null!=i&&s?po(s,i):a;if((l=l||a)&&l.length){var u=l[r];return t&&(o[t]=u),n.colorIdx=(r+1)%l.length,u}}},QT={cartesian2d:function(t,e,i,n){var r=t.getReferringComponents("xAxis")[0],o=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",o),mo(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),mo(o)&&(n.set("y",o),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,i,n){var r=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],i.set("single",r),mo(r)&&(n.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var r=t.getReferringComponents("polar")[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",a),mo(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),mo(a)&&(n.set("angle",a),e.firstCategoryDimIndex=1)},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();d(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];i.set(l,s),mo(s)&&null==e.firstCategoryDimIndex&&(n.set(l,s),e.firstCategoryDimIndex=o)})}},tC="original",eC="arrayRows",iC="objectRows",nC="keyedColumns",rC="unknown",oC="typedArray",aC="column",sC="row";vo.seriesDataToSource=function(t){return new vo({data:t,sourceFormat:S(t)?oC:tC,fromDataset:!1})},qi(vo);var lC=Fi(),uC="\0_ec_inner",cC=Ar.extend({init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new Ar(i),this._optionManager=n},setOption:function(t,e){E(!(uC in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var n=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(n)):Oo.call(this,n),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=i.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var o=i.getMediaOption(this,this._api);o.length&&d(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){var e=this.option,r=this._componentsMap,a=[];_o(this),d(t,function(t,r){null!=t&&(YT.hasClass(r)?r&&a.push(r):e[r]=null==e[r]?i(t):n(e[r],t,!0))}),YT.topologicalTravel(a,YT.getAllClassMainTypes(),function(i,n){var a=Ii(t[i]),s=Oi(r.get(i),a);Ni(s),d(s,function(t,e){var n=t.option;b(n)&&(t.keyInfo.mainType=i,t.keyInfo.subType=Lo(i,n,t.exist))});var l=No(r,n);e[i]=[],r.set(i,[]),d(s,function(t,n){var a=t.exist,s=t.option;if(E(b(s)||a,"Empty component definition"),s){var u=YT.getClass(i,t.keyInfo.subType,!0);if(a&&a instanceof u)a.name=t.keyInfo.name,a.mergeOption(s,this),a.optionUpdated(s,!1);else{var c=o({dependentModels:l,componentIndex:n},t.keyInfo);o(a=new u(s,this,this,c),c),a.init(s,this,this,c),a.optionUpdated(null,!0)}}else a.mergeOption({},this),a.optionUpdated({},!1);r.get(i)[n]=a,e[i][n]=a.option},this),"series"===i&&Po(this,r.get("series"))},this),this._seriesIndicesMap=R(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=i(this.option);return d(t,function(e,i){if(YT.hasClass(i)){for(var n=(e=Ii(e)).length-1;n>=0;n--)Pi(e[n])&&e.splice(n,1);t[i]=e}}),delete t[uC],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap.get(t);if(i)return i[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,o=this._componentsMap.get(e);if(!o||!o.length)return[];var a;if(null!=i)y(i)||(i=[i]),a=g(f(i,function(t){return o[t]}),function(t){return!!t});else if(null!=n){var s=y(n);a=g(o,function(t){return s&&l(n,t.id)>=0||!s&&t.id===n})}else if(null!=r){var u=y(r);a=g(o,function(t){return u&&l(r,t.name)>=0||!u&&t.name===r})}else a=o.slice();return Ro(a,t)},findComponents:function(t){var e=t.query,i=t.mainType,n=function(t){var e=i+"Index",n=i+"Id",r=i+"Name";return!t||null==t[e]&&null==t[n]&&null==t[r]?null:{mainType:i,index:t[e],id:t[n],name:t[r]}}(e);return function(e){return t.filter?g(e,t.filter):e}(Ro(n?this.queryComponents(n):this._componentsMap.get(i),t))},eachComponent:function(t,e,i){var n=this._componentsMap;"function"==typeof t?(i=e,e=t,n.each(function(t,n){d(t,function(t,r){e.call(i,n,t,r)})})):_(t)?d(n.get(t),e,i):b(t)&&d(this.findComponents(t),e,i)},getSeriesByName:function(t){return g(this._componentsMap.get("series"),function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){return g(this._componentsMap.get("series"),function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){d(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){d(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,i){d(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return d(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){Po(this,g(this._componentsMap.get("series"),t,e))},restoreData:function(t){var e=this._componentsMap;Po(this,e.get("series"));var i=[];e.each(function(t,e){i.push(e)}),YT.topologicalTravel(i,YT.getAllClassMainTypes(),function(i,n){d(e.get(i),function(e){("series"!==i||!ko(e,t))&&e.restoreData()})})}});c(cC,JT);var hC=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"],dC={};Fo.prototype={constructor:Fo,create:function(t,e){var i=[];d(dC,function(n,r){var o=n.create(t,e);i=i.concat(o||[])}),this._coordinateSystems=i},update:function(t,e){d(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},Fo.register=function(t,e){dC[t]=e},Fo.get=function(t){return dC[t]};var fC=d,pC=i,gC=f,mC=n,vC=/^(min|max)?(.+)$/;Bo.prototype={constructor:Bo,setOption:function(t,e){t&&d(Ii(t.series),function(t){t&&t.data&&S(t.data)&&N(t.data)}),t=pC(t,!0);var i=this._optionBackup,n=Ho.call(this,t,e,!i);this._newBaseOption=n.baseOption,i?(jo(i.baseOption,n.baseOption),n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=gC(e.timelineOptions,pC),this._mediaList=gC(e.mediaList,pC),this._mediaDefault=pC(e.mediaDefault),this._currentMediaIndices=[],pC(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=pC(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,r=this._mediaDefault,o=[],a=[];if(!n.length&&!r)return a;for(var s=0,l=n.length;s<l;s++)Vo(n[s].query,e,i)&&o.push(s);return!o.length&&r&&(o=[-1]),o.length&&!$o(o,this._currentMediaIndices)&&(a=gC(o,function(t){return pC(-1===t?r.option:n[t].option)})),this._currentMediaIndices=o,a}};var yC=d,xC=b,_C=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],bC=function(t,e){yC(Ko(t.series),function(t){xC(t)&&Zo(t)});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),yC(i,function(e){yC(Ko(t[e]),function(t){t&&(Yo(t,"axisLabel"),Yo(t.axisPointer,"label"))})}),yC(Ko(t.parallel),function(t){var e=t&&t.parallelAxisDefault;Yo(e,"axisLabel"),Yo(e&&e.axisPointer,"label")}),yC(Ko(t.calendar),function(t){Go(t,"itemStyle"),Yo(t,"dayLabel"),Yo(t,"monthLabel"),Yo(t,"yearLabel")}),yC(Ko(t.radar),function(t){Yo(t,"name")}),yC(Ko(t.geo),function(t){xC(t)&&(Xo(t),yC(Ko(t.regions),function(t){Xo(t)}))}),yC(Ko(t.timeline),function(t){Xo(t),Go(t,"label"),Go(t,"itemStyle"),Go(t,"controlStyle",!0);var e=t.data;y(e)&&d(e,function(t){b(t)&&(Go(t,"label"),Go(t,"itemStyle"))})}),yC(Ko(t.toolbox),function(t){Go(t,"iconStyle"),yC(t.feature,function(t){Go(t,"iconStyle")})}),Yo(Jo(t.axisPointer),"label"),Yo(Jo(t.tooltip).axisPointer,"label")},wC=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],SC=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],TC=function(t,e){bC(t,e),t.series=Ii(t.series),d(t.series,function(t){if(b(t)){var e=t.type;if("pie"!==e&&"gauge"!==e||null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===e){var i=Qo(t,"pointer.color");null!=i&&ta(t,"itemStyle.normal.color",i)}ea(t)}}),t.dataRange&&(t.visualMap=t.dataRange),d(SC,function(e){var i=t[e];i&&(y(i)||(i=[i]),d(i,function(t){ea(t)}))})},CC=na.prototype;CC.pure=!1,CC.persistent=!0,CC.getSource=function(){return this._source};var MC={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:aa},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],i=this._data,n=0;n<i.length;n++){var r=i[n];e.push(r?r[t]:null)}return e},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:ra,getItem:oa,appendData:aa},keyedColumns:{pure:!0,count:function(){var t=this._source.dimensionsDefine[0].name,e=this._data[t];return e?e.length:0},getItem:function(t){for(var e=[],i=this._source.dimensionsDefine,n=0;n<i.length;n++){var r=this._data[i[n].name];e.push(r?r[t]:null)}return e},appendData:function(t){var e=this._data;d(t,function(t,i){for(var n=e[i]||(e[i]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])})}},original:{count:ra,getItem:oa,appendData:aa},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(t,e){t-=this._offset,e=e||[];for(var i=this._dimSize*t,n=0;n<this._dimSize;n++)e[n]=this._data[i+n];return e},appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}}},DC={arrayRows:sa,objectRows:function(t,e,i,n){return null!=i?t[n]:t},keyedColumns:sa,original:function(t,e,i,n){var r=ki(t);return null!=i&&r instanceof Array?r[i]:r},typedArray:sa},IC={arrayRows:la,objectRows:function(t,e,i,n){return ua(t[e],this._dimensionInfos[e])},keyedColumns:la,original:function(t,e,i,n){var r=t&&(null==t.value?t:t.value);return!this._rawData.pure&&Ei(t)&&(this.hasItemOption=!0),ua(r instanceof Array?r[n]:r,this._dimensionInfos[e])},typedArray:function(t,e,i,n){return t[n]}},AC=/\{@(.+?)\}/g,kC={getDataParams:function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),r=i.getRawIndex(t),o=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"color"),l=this.ecModel.getComponent("tooltip"),u=$i(l&&l.get("renderMode")),c=this.mainType,h="series"===c;return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:n,color:s,marker:eo({color:s,renderMode:u}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,i,n,r){e=e||"normal";var o=this.getData(i),a=o.getItemModel(t),s=this.getDataParams(t,i);null!=n&&s.value instanceof Array&&(s.value=s.value[n]);var l=a.get("normal"===e?[r||"label","formatter"]:[e,r||"label","formatter"]);return"function"==typeof l?(s.status=e,l(s)):"string"==typeof l?Qr(l,s).replace(AC,function(e,i){var n=i.length;return"["===i.charAt(0)&&"]"===i.charAt(n-1)&&(i=+i.slice(1,n-1)),ca(o,t,i)}):void 0},getRawValue:function(t,e){return ca(this.getData(e),t)},formatTooltip:function(){}},EC=fa.prototype;EC.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var r=this.context;r.data=r.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!n&&(o=this._plan(this.context));var a=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;a===l&&s===u||(o="reset");var c;(this._dirty||"reset"===o)&&(this._dirty=!1,c=ga(this,n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||d<f)){var p=this._progress;if(y(p))for(var g=0;g<p.length;g++)pa(this,p[g],d,f,l,u);else pa(this,p,d,f,l,u)}this._dueIndex=f;var m=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var OC=function(){function t(){return n<i?n++:null}function e(){var t=n%a*r+Math.ceil(n/a),e=n>=i?null:t<o?t:n;return n++,e}var i,n,r,o,a,s={reset:function(l,u,c,h){n=l,i=u,r=c,o=h,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}();EC.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},EC.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},EC.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},EC.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},EC.getUpstream=function(){return this._upstream},EC.getDownstream=function(){return this._downstream},EC.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var NC=Fi(),LC=YT.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.color",layoutMode:null,init:function(t,e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=da({count:ya,reset:xa}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),bo(this);var r=this.getInitialData(t,i);ba(r,this),this.dataTask.context.data=r,NC(this).dataBeforeProcessed=r,ma(this)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,r=i?ho(t):{},o=this.subType;YT.hasClass(o)&&(o+="Series"),n(t,e.getTheme().get(this.subType)),n(t,this.getDefaultOption()),Ai(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&co(t,r,i)},mergeOption:function(t,e){t=n(this.option,t,!0),this.fillDataTextStyle(t.data);var i=this.layoutMode;i&&co(this.option,t,i),bo(this);var r=this.getInitialData(t,e);ba(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,NC(this).dataBeforeProcessed=r,ma(this)},fillDataTextStyle:function(t){if(t&&!S(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&Ai(t[i],"label",e)},getInitialData:function(){},appendData:function(t){this.getRawData().appendData(t.data)},getData:function(t){var e=Sa(this);if(e){var i=e.context.data;return null==t?i:i.getLinkedData(t)}return NC(this).data},setData:function(t){var e=Sa(this);if(e){var i=e.context;i.data!==t&&e.modifyOutputEnd&&e.setOutputEnd(t.count()),i.outputData=t,e!==this.dataTask&&(i.data=t)}NC(this).data=t},getSource:function(){return xo(this)},getRawData:function(){return NC(this).dataBeforeProcessed},getBaseAxis:function(){var t=this.coordinateSystem ;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e,i,n){var r=this,o="html"===(n=n||"html")?"<br/>":"\n",a="richText"===n,s={},l=0,u=this.getData(),c=u.mapDimension("defaultedTooltip",!0),h=c.length,f=this.getRawValue(t),g=y(f),m=u.getItemVisual(t,"color");b(m)&&m.colorStops&&(m=(m.colorStops[0]||{}).color),m=m||"transparent";var v=(h>1||g&&!h?function(i){function o(t,i){var o=u.getDimensionInfo(i);if(o&&!1!==o.otherDims.tooltip){var c=o.type,d="sub"+r.seriesIndex+"at"+l,p=eo({color:m,type:"subItem",renderMode:n,markerId:d}),g="string"==typeof p?p:p.content,v=(h?g+Jr(o.displayName||"-")+": ":"")+Jr("ordinal"===c?t+"":"time"===c?e?"":no("yyyy/MM/dd hh:mm:ss",t):Zr(t));v&&f.push(v),a&&(s[d]=m,++l)}}var h=p(i,function(t,e,i){var n=u.getDimensionInfo(i);return t|=n&&!1!==n.tooltip&&null!=n.displayName},0),f=[];c.length?d(c,function(e){o(ca(u,t,e),e)}):d(i,o);var g=h?a?"\n":"<br/>":"",v=g+f.join(g||", ");return{renderMode:n,content:v,style:s}}(f):function(t){return{renderMode:n,content:Jr(Zr(t)),style:s}}(h?ca(u,t,c[0]):g?f[0]:f)).content,x=r.seriesIndex+"at"+l,_=eo({color:m,type:"item",renderMode:n,markerId:x});s[x]=m,++l;var w=u.getName(t),S=this.name;Li(this)||(S=""),S=S?Jr(S)+(e?": ":o):"";var T="string"==typeof _?_:_.content;return{html:e?T+S+v:S+T+(w?Jr(w)+": "+v:v),markers:s}},isAnimationEnabled:function(){if(z_.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,i){var n=this.ecModel,r=JT.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});c(LC,kC),c(LC,JT);var PC=function(){this.group=new jb,this.uid=Or("viewComponent")};PC.prototype={constructor:PC,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){},filterForExposedEvent:null};var RC=PC.prototype;RC.updateView=RC.updateLayout=RC.updateVisual=function(t,e,i,n){},Gi(PC),Zi(PC,{registerWhenExtend:!0});var zC=function(){var t=Fi();return function(e){var i=t(e),n=e.pipelineContext,r=i.large,o=i.progressiveRender,a=i.large=n.large,s=i.progressiveRender=n.progressiveRender;return!!(r^a||o^s)&&"reset"}},FC=Fi(),BC=zC();Ta.prototype={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,n){Ma(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){Ma(t.getData(),n,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var HC=Ta.prototype;HC.updateView=HC.updateLayout=HC.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},Gi(Ta),Zi(Ta,{registerWhenExtend:!0}),Ta.markUpdateMethod=function(t,e){FC(t).updateMethod=e};var VC={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},WC="\0__throttleOriginMethod",$C="\0__throttleRate",jC="\0__throttleType",UC={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=(t.visualColorAccessPath||"itemStyle.color").split("."),r=t.get(n)||t.getColorFromPalette(t.name,null,e.getSeriesCount());if(i.setVisual("color",r),!e.isSeriesFiltered(t))return"function"!=typeof r||r instanceof hT||i.each(function(e){i.setItemVisual(e,"color",r(t.getDataParams(e)))}),{dataEach:i.hasItemOption?function(t,e){var i=t.getItemModel(e).get(n,!0);null!=i&&t.setItemVisual(e,"color",i)}:null}}},GC={toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},qC=function(t,e){function i(t,e){if("string"!=typeof t)return t;var i=t;return d(e,function(t,e){i=i.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),i}function n(t){var e=o.get(t);if(null==e){for(var i=t.split("."),n=GC.aria,r=0;r<i.length;++r)n=n[i[r]];return n}return e}function r(t){return GC.series.typeNames[t]||"自定义图"}var o=e.getModel("aria");if(o.get("show"))if(o.get("description"))t.setAttribute("aria-label",o.get("description"));else{var a=0;e.eachSeries(function(t,e){++a},this);var s,l=o.get("data.maxCount")||10,u=o.get("series.maxCount")||10,c=Math.min(a,u);if(!(a<1)){var h=function(){var t=e.getModel("title").option;return t&&t.length&&(t=t[0]),t&&t.text}();s=h?i(n("general.withTitle"),{title:h}):n("general.withoutTitle");var f=[];s+=i(n(a>1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:a}),e.eachSeries(function(t,e){if(e<c){var o,s=t.get("name"),u="series."+(a>1?"multiple":"single")+".";o=i(o=n(s?u+"withName":u+"withoutName"),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:r(t.subType)});var h=t.getData();window.data=h,h.count()>l?o+=i(n("data.partialData"),{displayCnt:l}):o+=n("data.allData");for(var d=[],p=0;p<h.count();p++)if(p<l){var g=h.getName(p),m=ca(h,p);d.push(i(n(g?"data.withName":"data.withoutName"),{name:g,value:m}))}o+=d.join(n("data.separator.middle"))+n("data.separator.end"),f.push(o)}}),s+=f.join(n("series.multiple.separator.middle"))+n("series.multiple.separator.end"),t.setAttribute("aria-label",s)}}},YC=Math.PI,XC=Oa.prototype;XC.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},XC.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,r=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex?i.step:null,o=n&&n.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},XC.getPipeline=function(t){return this._pipelineMap.get(t)},XC.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData().count(),r=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,o=t.get("large")&&n>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:r,modDataCount:a,large:o}},XC.restorePipelines=function(t){var e=this,i=e._pipelineMap=R();t.eachSeries(function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),ja(e,t,t.dataTask)})},XC.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),i=this.api;d(this._allHandlers,function(n){var r=t.get(n.uid)||t.set(n.uid,[]);n.reset&&La(this,n,r,e,i),n.overallReset&&Pa(this,n,r,e,i)},this)},XC.prepareView=function(t,e,i,n){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=i,o.api=n,r.__block=!t.incrementalPrepareRender,ja(this,e,r)},XC.performDataProcessorTasks=function(t,e){Na(this,this._dataProcessorHandlers,t,e,{block:!0})},XC.performVisualTasks=function(t,e,i){Na(this,this._visualHandlers,t,e,i)},XC.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},XC.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})};var ZC=XC.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},KC=Wa(0);Oa.wrapStageHandler=function(t,e){return x(t)&&(t={overallReset:t,seriesType:Ua(t)}),t.uid=Or("stageHandler"),e&&(t.visualType=e),t};var JC,QC={},tM={};Ga(QC,cC),Ga(tM,zo),QC.eachSeriesByType=QC.eachRawSeriesByType=function(t){JC=t},QC.eachComponent=function(t){"series"===t.mainType&&t.subType&&(JC=t.subType)};var eM=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],iM={color:eM,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],eM]},nM=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],rM={color:nM,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:"#eee"},crossStyle:{color:"#eee"}}},legend:{textStyle:{color:"#eee"}},textStyle:{color:"#eee"},title:{textStyle:{color:"#eee"}},toolbox:{iconStyle:{normal:{borderColor:"#eee"}}},dataZoom:{textStyle:{color:"#eee"}},visualMap:{textStyle:{color:"#eee"}},timeline:{lineStyle:{color:"#eee"},itemStyle:{normal:{color:nM[1]}},label:{normal:{textStyle:{color:"#eee"}}},controlStyle:{normal:{color:"#eee",borderColor:"#eee"}}},timeAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},logAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},valueAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},categoryAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},line:{symbol:"circle"},graph:{color:nM},gauge:{title:{textStyle:{color:"#eee"}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};rM.categoryAxis.splitLine.show=!1,YT.extend({type:"dataset",defaultOption:{seriesLayoutBy:aC,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){yo(this)}}),PC.extend({type:"dataset"});var oM=En.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var i=.5522848,n=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*i,l=a*i;t.moveTo(n-o,r),t.bezierCurveTo(n-o,r-l,n-s,r-a,n,r-a),t.bezierCurveTo(n+s,r-a,n+o,r-l,n+o,r),t.bezierCurveTo(n+o,r+l,n+s,r+a,n,r+a),t.bezierCurveTo(n-s,r+a,n-o,r+l,n-o,r),t.closePath()}}),aM=/[\s,]+/;Ya.prototype.parse=function(t,e){e=e||{};var i=qa(t);if(!i)throw new Error("Illegal svg");var n=new jb;this._root=n;var r=i.getAttribute("viewBox")||"",o=parseFloat(i.getAttribute("width")||e.width),a=parseFloat(i.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(a)&&(a=null),Ja(i,n,null,!0);for(var s=i.firstChild;s;)this._parseNode(s,n),s=s.nextSibling;var l,u;if(r){var c=O(r).split(aM);c.length>=4&&(l={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(l&&null!=o&&null!=a&&(u=is(l,o,a),!e.ignoreViewBox)){var h=n;(n=new jb).add(h),h.scale=u.scale.slice(),h.position=u.position.slice()}return e.ignoreRootClip||null==o||null==a||n.setClipPath(new oT({shape:{x:0,y:0,width:o,height:a}})),{root:n,width:o,height:a,viewBoxRect:l,viewBoxTransform:u}},Ya.prototype._parseNode=function(t,e){var i=t.nodeName.toLowerCase();"defs"===i?this._isDefine=!0:"text"===i&&(this._isText=!0);var n;if(this._isDefine){if(a=lM[i]){var r=a.call(this,t),o=t.getAttribute("id");o&&(this._defs[o]=r)}}else{var a=sM[i];a&&(n=a.call(this,t,e),e.add(n))}for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===i?this._isDefine=!1:"text"===i&&(this._isText=!1)},Ya.prototype._parseText=function(t,e){if(1===t.nodeType){var i=t.getAttribute("dx")||0,n=t.getAttribute("dy")||0;this._textX+=parseFloat(i),this._textY+=parseFloat(n)}var r=new XS({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});Za(e,r),Ja(t,r,this._defs);var o=r.style.fontSize;o&&o<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=o/9,r.scale[1]*=o/9);var a=r.getBoundingRect();return this._textX+=a.width,e.add(r),r};var sM={g:function(t,e){var i=new jb;return Za(e,i),Ja(t,i,this._defs),i},rect:function(t,e){var i=new oT;return Za(e,i),Ja(t,i,this._defs),i.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),i},circle:function(t,e){var i=new ZS;return Za(e,i),Ja(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),i},line:function(t,e){var i=new aT;return Za(e,i),Ja(t,i,this._defs),i.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),i},ellipse:function(t,e){var i=new oM;return Za(e,i),Ja(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),i},polygon:function(t,e){var i=t.getAttribute("points");i&&(i=Ka(i));var n=new nT({shape:{points:i||[]}});return Za(e,n),Ja(t,n,this._defs),n},polyline:function(t,e){var i=new En;Za(e,i),Ja(t,i,this._defs);var n=t.getAttribute("points");return n&&(n=Ka(n)),new rT({shape:{points:n||[]}})},image:function(t,e){var i=new ci;return Za(e,i),Ja(t,i,this._defs),i.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),i},text:function(t,e){var i=t.getAttribute("x")||0,n=t.getAttribute("y")||0,r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(n)+parseFloat(o);var a=new jb;return Za(e,a),Ja(t,a,this._defs),a},tspan:function(t,e){var i=t.getAttribute("x"),n=t.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=n&&(this._textY=parseFloat(n));var r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,a=new jb;return Za(e,a),Ja(t,a,this._defs),this._textX+=r,this._textY+=o,a},path:function(t,e){var i=Pn(t.getAttribute("d")||"");return Za(e,i),Ja(t,i,this._defs),i}},lM={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),i=parseInt(t.getAttribute("y1")||0,10),n=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),o=new dT(e,i,n,r);return Xa(t,o),o},radialgradient:function(t){}},uM={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"},cM=/url\(\s*#(.*?)\)/,hM=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g,dM=/([^\s:;]+)\s*:\s*([^:;]+)/g,fM=R(),pM={registerMap:function(t,e,i){var n;return y(e)?n=e:e.svg?n=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(i=e.specialAreas,e=e.geoJson),n=[{type:"geoJSON",source:e,specialAreas:i}]),d(n,function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON"),(0,gM[e])(t)}),fM.set(t,n)},retrieveMap:function(t){return fM.get(t)}},gM={geoJSON:function(t){var e=t.source;t.geoJSON=_(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=qa(t.source)}},mM=E,vM=d,yM=x,xM=b,_M=YT.parseClassType,bM={zrender:"4.0.5"},wM=1e3,SM=1e3,TM=3e3,CM={PROCESSOR:{FILTER:wM,STATISTIC:5e3},VISUAL:{LAYOUT:SM,GLOBAL:2e3,CHART:TM,COMPONENT:4e3,BRUSH:5e3}},MM="__flagInMainProcess",DM="__optionUpdated",IM=/^[a-zA-Z0-9_]+$/;os.prototype.on=rs("on"),os.prototype.off=rs("off"),os.prototype.one=rs("one"),c(os,ob);var AM=as.prototype;AM._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[DM]){var e=this[DM].silent;this[MM]=!0,ls(this),kM.update.call(this),this[MM]=!1,this[DM]=!1,ds.call(this,e),fs.call(this,e)}else if(t.unfinished){var i=1,n=this._model;this._api,t.unfinished=!1;do{var r=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),cs(this,n),t.performVisualTasks(n),xs(this,this._model,0,"remain"),i-=+new Date-r}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},AM.getDom=function(){return this._dom},AM.getZr=function(){return this._zr},AM.setOption=function(t,e,i){var n;if(xM(e)&&(i=e.lazyUpdate,n=e.silent,e=e.notMerge),this[MM]=!0,!this._model||e){var r=new Bo(this._api),o=this._theme,a=this._model=new cC(null,null,o,r);a.scheduler=this._scheduler,a.init(null,null,o,r)}this._model.setOption(t,PM),i?(this[DM]={silent:n},this[MM]=!1):(ls(this),kM.update.call(this),this._zr.flush(),this[DM]=!1,this[MM]=!1,ds.call(this,n),fs.call(this,n))},AM.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},AM.getModel=function(){return this._model},AM.getOption=function(){return this._model&&this._model.getOption()},AM.getWidth=function(){return this._zr.getWidth()},AM.getHeight=function(){return this._zr.getHeight()},AM.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},AM.getRenderedCanvas=function(t){if(z_.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},AM.getSvgDataUrl=function(){if(z_.svgSupported){var t=this._zr;return d(t.storage.getDisplayList(),function(t){t.stopAnimation(!0)}),t.painter.pathToDataUrl()}},AM.getDataURL=function(t){var e=(t=t||{}).excludeComponents,i=this._model,n=[],r=this;vM(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return vM(n,function(t){t.group.ignore=!1}),o},AM.getConnectedDataURL=function(t){if(z_.canvasSupported){var e=this.group,n=Math.min,r=Math.max;if(VM[e]){var o=1/0,a=1/0,s=-1/0,l=-1/0,u=[],c=t&&t.pixelRatio||1;d(HM,function(c,h){if(c.group===e){var d=c.getRenderedCanvas(i(t)),f=c.getDom().getBoundingClientRect();o=n(f.left,o),a=n(f.top,a),s=r(f.right,s),l=r(f.bottom,l),u.push({dom:d,left:f.left,top:f.top})}});var h=(s*=c)-(o*=c),f=(l*=c)-(a*=c),p=Y_();p.width=h,p.height=f;var g=Ci(p);return vM(u,function(t){var e=new ci({style:{x:t.left*c-o,y:t.top*c-a,image:t.dom}});g.add(e)}),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},AM.convertToPixel=v(ss,"convertToPixel"),AM.convertFromPixel=v(ss,"convertFromPixel"),AM.containPixel=function(t,e){var i;return t=Bi(this._model,t),d(t,function(t,n){n.indexOf("Models")>=0&&d(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i|=!!r.containPoint(e);else if("seriesModels"===n){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(i|=o.containPoint(e,t))}},this)},this),!!i},AM.getVisual=function(t,e){var i=(t=Bi(this._model,t,{defaultMainType:"series"})).seriesModel.getData(),n=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?i.indexOfRawIndex(t.dataIndex):null;return null!=n?i.getItemVisual(n,e):i.getVisual(e)},AM.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},AM.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var kM={prepareAndUpdate:function(t){ls(this),kM.update.call(this,t)},update:function(t){var e=this._model,i=this._api,n=this._zr,r=this._coordSysMgr,o=this._scheduler;if(e){o.restoreData(e,t),o.performSeriesTasks(e),r.create(e,i),o.performDataProcessorTasks(e,t),cs(this,e),r.update(e,i),ms(e),o.performVisualTasks(e,t),vs(this,e,i,t);var a=e.get("backgroundColor")||"transparent";if(z_.canvasSupported)n.setBackgroundColor(a);else{var s=zt(a);a=Gt(s,"rgb"),0===s[3]&&(a="transparent")}_s(e,i)}},updateTransform:function(t){var e=this._model,i=this,n=this._api;if(e){var r=[];e.eachComponent(function(o,a){var s=i.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,e,n,t);l&&l.update&&r.push(s)}else r.push(s)});var o=R();e.eachSeries(function(r){var a=i._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,e,n,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),ms(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),xs(i,e,0,t,o),_s(e,this._api)}},updateView:function(t){var e=this._model;e&&(Ta.markUpdateMethod(t,"updateView"),ms(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),vs(this,this._model,this._api,t),_s(e,this._api))},updateVisual:function(t){kM.update.call(this,t)},updateLayout:function(t){kM.update.call(this,t)}};AM.resize=function(t){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[MM]=!0,i&&ls(this),kM.update.call(this),this[MM]=!1,ds.call(this,n),fs.call(this,n)}},AM.showLoading=function(t,e){if(xM(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),BM[t]){var i=BM[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},AM.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},AM.makeActionFromEvent=function(t){var e=o({},t);return e.type=NM[t.type],e},AM.dispatchAction=function(t,e){xM(e)||(e={silent:!!e}),OM[t.type]&&this._model&&(this[MM]?this._pendingActions.push(t):(hs.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&z_.browser.weChat&&this._throttledZrFlush(),ds.call(this,e.silent),fs.call(this,e.silent)))},AM.appendData=function(t){var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0},AM.on=rs("on"),AM.off=rs("off"),AM.one=rs("one");var EM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];AM._initEvents=function(){vM(EM,function(t){this._zr.on(t,function(e){var i,n=this.getModel(),r=e.target;if("globalout"===t)i={};else if(r&&null!=r.dataIndex){var a=r.dataModel||n.getSeriesByIndex(r.seriesIndex);i=a&&a.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(i=o({},r.eventData));if(i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&n.getComponent(s,l),c=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=e,i.type=t,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:i,model:u,view:c},this.trigger(t,i)}},this)},this),vM(NM,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},AM.isDisposed=function(){return this._disposed},AM.clear=function(){this.setOption({series:[]},!0)},AM.dispose=function(){if(!this._disposed){this._disposed=!0,Vi(this.getDom(),jM,"");var t=this._api,e=this._model;vM(this._componentsViews,function(i){i.dispose(e,t)}),vM(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete HM[this.id]}},c(as,ob),Cs.prototype={constructor:Cs,normalizeQuery:function(t){var e={},i={},n={};if(_(t)){var r=_M(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};d(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(i[r]=t,s=!0),s||(n[r]=t)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},filter:function(t,e,i){function n(t,e,i,n){return null==t[i]||e[n||i]===t[i]}var r=this.eventInfo;if(!r)return!0;var o=r.targetEl,a=r.packedEvent,s=r.model,l=r.view;if(!s||!l)return!0;var u=e.cptQuery,c=e.dataQuery;return n(u,s,"mainType")&&n(u,s,"subType")&&n(u,s,"index","componentIndex")&&n(u,s,"name")&&n(u,s,"id")&&n(c,a,"name")&&n(c,a,"dataIndex")&&n(c,a,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,o,a))},afterTrigger:function(){this.eventInfo=null}};var OM={},NM={},LM=[],PM=[],RM=[],zM=[],FM={},BM={},HM={},VM={},WM=new Date-0,$M=new Date-0,jM="_echarts_instance_",UM=Ds;Ps(2e3,UC),ks(TC),Es(5e3,function(t){var e=R();t.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;n.length&&r.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),e.each(ia)}),zs("default",function(t,e){a(e=e||{},{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var i=new oT({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),n=new uT({shape:{startAngle:-YC/2,endAngle:-YC/2+.1,r:10},style:{stroke:e.color,lineCap:"round",lineWidth:5},zlevel:e.zlevel,z:10001}),r=new oT({style:{fill:"none",text:e.text,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});n.animateShape(!0).when(1e3,{endAngle:3*YC/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*YC/2}).delay(300).start("circularInOut");var o=new jb;return o.add(n),o.add(r),o.add(i),o.resize=function(){var e=t.getWidth()/2,o=t.getHeight()/2;n.setShape({cx:e,cy:o});var a=n.shape.r;r.setShape({x:e-a,y:o-a,width:2*a,height:2*a}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},o.resize(),o}),Os({type:"highlight",event:"highlight",update:"highlight"},F),Os({type:"downplay",event:"downplay",update:"downplay"},F),As("light",iM),As("dark",rM);var GM={};$s.prototype={constructor:$s,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,i={},n=[],r=[];for(js(t,{},n,"_oldKeyGetter",this),js(e,i,r,"_newKeyGetter",this),o=0;o<t.length;o++)null!=(s=i[a=n[o]])?((u=s.length)?(1===u&&(i[a]=null),s=s.unshift()):i[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o);for(var o=0;o<r.length;o++){var a=r[o];if(i.hasOwnProperty(a)){var s=i[a];if(null==s)continue;if(s.length)for(var l=0,u=s.length;l<u;l++)this._add&&this._add(s[l]);else this._add&&this._add(s)}}}};var qM=R(["tooltip","label","itemName","itemId","seriesName"]),YM=b,XM="e\0\0",ZM={float:"undefined"==typeof Float64Array?Array:Float64Array,int:"undefined"==typeof Int32Array?Array:Int32Array,ordinal:Array,number:Array,time:Array},KM="undefined"==typeof Uint32Array?Array:Uint32Array,JM="undefined"==typeof Uint16Array?Array:Uint16Array,QM=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],tD=["_extent","_approximateExtent","_rawExtent"],eD=function(t,e){t=t||["x","y"];for(var i={},n=[],r={},o=0;o<t.length;o++){var a=t[o];_(a)&&(a={name:a});var s=a.name;a.type=a.type||"float",a.coordDim||(a.coordDim=s,a.coordDimIndex=0),a.otherDims=a.otherDims||{},n.push(s),i[s]=a,a.index=o,a.createInvertedIndices&&(r[s]=[])}this.dimensions=n,this._dimensionInfos=i,this.hostModel=e,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=Us(this),this._invertedIndicesMap=r,this._calculationInfo={}},iD=eD.prototype;iD.type="list",iD.hasItemOption=!0,iD.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},iD.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},iD.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},iD.mapDimension=function(t,e){var i=this._dimensionsSummary;if(null==e)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return!0===e?(n||[]).slice():n&&n[e]},iD.initData=function(t,e,i){(vo.isInstance(t)||h(t))&&(t=new na(t,this.dimensions.length)),this._rawData=t,this._storage={},this._indices=null,this._nameList=e||[],this._idList=[],this._nameRepeatCount={},i||(this.hasItemOption=!1),this.defaultDimValueGetter=IC[this._rawData.getSource().sourceFormat],this._dimValueGetter=i=i||this.defaultDimValueGetter,this._rawExtent={},this._initDataFromProvider(0,t.count()),t.pure&&(this.hasItemOption=!1)},iD.getProvider=function(){return this._rawData},iD.appendData=function(t){var e=this._rawData,i=this.count();e.appendData(t);var n=e.count();e.persistent||(n+=i),this._initDataFromProvider(i,n)},iD._initDataFromProvider=function(t,e){if(!(t>=e)){for(var i,n=this._chunkSize,r=this._rawData,o=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,u=this._nameList,c=this._idList,h=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=f-1,g=0;g<s;g++){h[M=a[g]]||(h[M]=[1/0,-1/0]);var m=l[M];0===m.otherDims.itemName&&(i=this._nameDimIdx=g),0===m.otherDims.itemId&&(this._idDimIdx=g);var v=ZM[m.type];o[M]||(o[M]=[]);var y=o[M][p];if(y&&y.length<n){for(var x=new v(Math.min(e-p*n,n)),_=0;_<y.length;_++)x[_]=y[_];o[M][p]=x}for(C=f*n;C<e;C+=n)o[M].push(new v(Math.min(e-C,n)));this._chunkCount=o[M].length}for(var b=new Array(s),w=t;w<e;w++){b=r.getItem(w,b);for(var S=Math.floor(w/n),T=w%n,C=0;C<s;C++){var M=a[C],D=o[M][S],I=this._dimValueGetter(b,M,w,C);D[T]=I;var A=h[M];I<A[0]&&(A[0]=I),I>A[1]&&(A[1]=I)}if(!r.pure){var k=u[w];if(b&&null==k)if(null!=b.name)u[w]=k=b.name;else if(null!=i){var E=a[i],O=o[E][S];if(O){k=O[T];var N=l[E].ordinalMeta;N&&N.categories.length&&(k=N.categories[k])}}var L=null==b?null:b.id;null==L&&null!=k&&(d[k]=d[k]||0,L=k,d[k]>0&&(L+="__ec__"+d[k]),d[k]++),null!=L&&(c[w]=L)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},Ks(this)}},iD.count=function(){return this._count},iD.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,i=this._count;if(e===Array)for(n=new e(i),r=0;r<i;r++)n[r]=t[r];else n=new e(t.buffer,0,i)}else for(var n=new(e=Ys(this))(this.count()),r=0;r<n.length;r++)n[r]=r;return n},iD.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._storage;if(!i[t])return NaN;e=this.getRawIndex(e);var n=Math.floor(e/this._chunkSize),r=e%this._chunkSize;return i[t][n][r]},iD.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._storage[t];if(!i)return NaN ;var n=Math.floor(e/this._chunkSize),r=e%this._chunkSize;return i[n][r]},iD._getFast=function(t,e){var i=Math.floor(e/this._chunkSize),n=e%this._chunkSize;return this._storage[t][i][n]},iD.getValues=function(t,e){var i=[];y(t)||(e=t,t=this.dimensions);for(var n=0,r=t.length;n<r;n++)i.push(this.get(t[n],e));return i},iD.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,i=this._dimensionInfos,n=0,r=e.length;n<r;n++)if("ordinal"!==i[e[n]].type&&isNaN(this.get(e[n],t)))return!1;return!0},iD.getDataExtent=function(t){t=this.getDimension(t);var e=[1/0,-1/0];if(!this._storage[t])return e;var i,n=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var r=(i=e)[0],o=i[1],a=0;a<n;a++){var s=this._getFast(t,this.getRawIndex(a));s<r&&(r=s),s>o&&(o=s)}return i=[r,o],this._extent[t]=i,i},iD.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},iD.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},iD.getCalculationInfo=function(t){return this._calculationInfo[t]},iD.setCalculationInfo=function(t,e){YM(t)?o(this._calculationInfo,t):this._calculationInfo[t]=e},iD.getSum=function(t){var e=0;if(this._storage[t])for(var i=0,n=this.count();i<n;i++){var r=this.get(t,i);isNaN(r)||(e+=r)}return e},iD.getMedian=function(t){var e=[];this.each(t,function(t,i){isNaN(t)||e.push(t)});var i=[].concat(e).sort(function(t,e){return t-e}),n=this.count();return 0===n?0:n%2==1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},iD.rawIndexOf=function(t,e){var i=(t&&this._invertedIndicesMap[t])[e];return null==i||isNaN(i)?-1:i},iD.indexOfName=function(t){for(var e=0,i=this.count();e<i;e++)if(this.getName(e)===t)return e;return-1},iD.indexOfRawIndex=function(t){if(!this._indices)return t;if(t>=this._rawCount||t<0)return-1;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,r=this._count-1;n<=r;){var o=(n+r)/2|0;if(e[o]<t)n=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},iD.indicesOfNearest=function(t,e,i){var n=[];if(!this._storage[t])return n;null==i&&(i=1/0);for(var r=Number.MAX_VALUE,o=-1,a=0,s=this.count();a<s;a++){var l=e-this.get(t,a),u=Math.abs(l);l<=i&&u<=r&&((u<r||l>=0&&o<0)&&(r=u,o=l,n.length=0),n.push(a))}return n},iD.getRawIndex=Qs,iD.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;i<this.dimensions.length;i++){var n=this.dimensions[i];e.push(this.get(n,t))}return e},iD.getName=function(t){var e=this.getRawIndex(t);return this._nameList[e]||Js(this,this._nameDimIdx,e)||""},iD.getId=function(t){return el(this,this.getRawIndex(t))},iD.each=function(t,e,i,n){if(this._count){"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this;for(var r=(t=f(il(t),this.getDimension,this)).length,o=0;o<this.count();o++)switch(r){case 0:e.call(i,o);break;case 1:e.call(i,this.get(t[0],o),o);break;case 2:e.call(i,this.get(t[0],o),this.get(t[1],o),o);break;default:for(var a=0,s=[];a<r;a++)s[a]=this.get(t[a],o);s[a]=o,e.apply(i,s)}}},iD.filterSelf=function(t,e,i,n){if(this._count){"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this,t=f(il(t),this.getDimension,this);for(var r=this.count(),o=new(Ys(this))(r),a=[],s=t.length,l=0,u=t[0],c=0;c<r;c++){var h,d=this.getRawIndex(c);if(0===s)h=e.call(i,c);else if(1===s){var p=this._getFast(u,d);h=e.call(i,p,c)}else{for(var g=0;g<s;g++)a[g]=this._getFast(u,d);a[g]=c,h=e.apply(i,a)}h&&(o[l++]=d)}return l<r&&(this._indices=o),this._count=l,this._extent={},this.getRawIndex=this._indices?tl:Qs,this}},iD.selectRange=function(t){if(this._count){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);var n=e.length;if(n){var r=this.count(),o=new(Ys(this))(r),a=0,s=e[0],l=t[s][0],u=t[s][1],c=!1;if(!this._indices){var h=0;if(1===n){for(var d=this._storage[e[0]],f=0;f<this._chunkCount;f++)for(var p=d[f],g=Math.min(this._count-f*this._chunkSize,this._chunkSize),m=0;m<g;m++)((b=p[m])>=l&&b<=u||isNaN(b))&&(o[a++]=h),h++;c=!0}else if(2===n){for(var d=this._storage[s],v=this._storage[e[1]],y=t[e[1]][0],x=t[e[1]][1],f=0;f<this._chunkCount;f++)for(var p=d[f],_=v[f],g=Math.min(this._count-f*this._chunkSize,this._chunkSize),m=0;m<g;m++){var b=p[m],w=_[m];(b>=l&&b<=u||isNaN(b))&&(w>=y&&w<=x||isNaN(w))&&(o[a++]=h),h++}c=!0}}if(!c)if(1===n)for(m=0;m<r;m++)T=this.getRawIndex(m),((b=this._getFast(s,T))>=l&&b<=u||isNaN(b))&&(o[a++]=T);else for(m=0;m<r;m++){for(var S=!0,T=this.getRawIndex(m),f=0;f<n;f++){var C=e[f];((b=this._getFast(i,T))<t[C][0]||b>t[C][1])&&(S=!1)}S&&(o[a++]=this.getRawIndex(m))}return a<r&&(this._indices=o),this._count=a,this._extent={},this.getRawIndex=this._indices?tl:Qs,this}}},iD.mapArray=function(t,e,i,n){"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i),r},iD.map=function(t,e,i,n){i=i||n||this;var r=nl(this,t=f(il(t),this.getDimension,this));r._indices=this._indices,r.getRawIndex=r._indices?tl:Qs;for(var o=r._storage,a=[],s=this._chunkSize,l=t.length,u=this.count(),c=[],h=r._rawExtent,d=0;d<u;d++){for(var p=0;p<l;p++)c[p]=this.get(t[p],d);c[l]=d;var g=e&&e.apply(i,c);if(null!=g){"object"!=typeof g&&(a[0]=g,g=a);for(var m=this.getRawIndex(d),v=Math.floor(m/s),y=m%s,x=0;x<g.length;x++){var _=t[x],b=g[x],w=h[_],S=o[_];S&&(S[v][y]=b),b<w[0]&&(w[0]=b),b>w[1]&&(w[1]=b)}}}return r},iD.downSample=function(t,e,i,n){for(var r=nl(this,[t]),o=r._storage,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=this._chunkSize,h=r._rawExtent[t],d=new(Ys(this))(u),f=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var g=0;g<s;g++){var m=this.getRawIndex(p+g),v=Math.floor(m/c),y=m%c;a[g]=l[v][y]}var x=i(a),_=this.getRawIndex(Math.min(p+n(a,x)||0,u-1)),b=_%c;l[Math.floor(_/c)][b]=x,x<h[0]&&(h[0]=x),x>h[1]&&(h[1]=x),d[f++]=_}return r._count=f,r._indices=d,r.getRawIndex=tl,r},iD.getItemModel=function(t){var e=this.hostModel;return new Ar(this.getRawDataItem(t),e,e&&e.ecModel)},iD.diff=function(t){var e=this;return new $s(t?t.getIndices():[],this.getIndices(),function(e){return el(t,e)},function(t){return el(e,t)})},iD.getVisual=function(t){var e=this._visual;return e&&e[t]},iD.setVisual=function(t,e){if(YM(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},iD.setLayout=function(t,e){if(YM(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},iD.getLayout=function(t){return this._layout[t]},iD.getItemLayout=function(t){return this._itemLayouts[t]},iD.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?o(this._itemLayouts[t]||{},e):e},iD.clearItemLayouts=function(){this._itemLayouts.length=0},iD.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},iD.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=n,YM(e))for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o],r[o]=!0);else n[e]=i,r[e]=!0},iD.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var nD=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};iD.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(nD,e)),this._graphicEls[t]=e},iD.getItemGraphicEl=function(t){return this._graphicEls[t]},iD.eachItemGraphicEl=function(t,e){d(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},iD.cloneShallow=function(t){if(!t){var e=f(this.dimensions,this.getDimensionInfo,this);t=new eD(e,this.hostModel)}if(t._storage=this._storage,Zs(t,this),this._indices){var i=this._indices.constructor;t._indices=new i(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?tl:Qs,t},iD.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(A(arguments)))})},iD.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],iD.CHANGABLE_METHODS=["filterSelf","selectRange"];var rD=function(t,e){return e=e||{},al(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})};gl.prototype.parse=function(t){return t},gl.prototype.getSetting=function(t){return this._setting[t]},gl.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},gl.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},gl.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},gl.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},gl.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},gl.prototype.getExtent=function(){return this._extent.slice()},gl.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},gl.prototype.isBlank=function(){return this._isBlank},gl.prototype.setBlank=function(t){this._isBlank=t},gl.prototype.getLabel=null,Gi(gl),Zi(gl,{registerWhenExtend:!0}),ml.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&f(i,yl);return new ml({categories:n,needCollect:!n,deduplication:!1!==e.dedplication})};var oD=ml.prototype;oD.getOrdinal=function(t){return vl(this).get(t)},oD.parseAndCollect=function(t){var e,i=this._needCollect;if("string"!=typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=vl(this);return null==(e=n.get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e};var aD=gl.prototype,sD=gl.extend({type:"ordinal",init:function(t,e){t&&!y(t)||(t=new ml({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),aD.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return aD.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(aD.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:F,niceExtent:F});sD.create=function(){return new sD};var lD=Rr,uD=Rr,cD=gl.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),cD.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=_l(t)},getTicks:function(){return Sl(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=Br(t)||0:"auto"===i&&(i=this._intervalPrecision),t=uD(t,i,!0),Zr(t)},niceTicks:function(t,e,i){t=t||5;var n=this._extent,r=n[1]-n[0];if(isFinite(r)){r<0&&(r=-r,n.reverse());var o=xl(n,t,e,i);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=e[0];t.fixMax?e[0]-=i/2:(e[1]+=i/2,e[0]-=i/2)}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=uD(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=uD(Math.ceil(e[1]/r)*r))}});cD.create=function(){return new cD};var hD="__ec_stack_",dD="undefined"!=typeof Float32Array?Float32Array:Array,fD={seriesType:"bar",plan:zC(),reset:function(t){if(Ol(t)&&Nl(t)){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),r=i.getOtherAxis(n),o=e.mapDimension(r.dim),a=e.mapDimension(n.dim),s=r.isHorizontal(),l=s?0:1,u=kl(Il([t]),n,t).width;return u>.5||(u=.5),{progress:function(t,e){for(var n,c=new dD(2*t.count),h=[],d=[],f=0;null!=(n=t.next());)d[l]=e.get(o,n),d[1-l]=e.get(a,n),h=i.dataToPoint(d,null,h),c[f++]=h[0],c[f++]=h[1];e.setLayout({largePoints:c,barWidth:u,valueAxisStart:Ll(0,r),valueAxisHorizontal:s})}}}}},pD=cD.prototype,gD=Math.ceil,mD=Math.floor,vD=function(t,e,i,n){for(;i<n;){var r=i+n>>>1;t[r][1]<e?i=r+1:n=r}return i},yD=cD.extend({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return no(e[0],i,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),e[1]===-1/0&&e[0]===1/0){var i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-864e5}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var n=this._interval;t.fixMin||(e[0]=Rr(mD(e[0]/n)*n)),t.fixMax||(e[1]=Rr(gD(e[1]/n)*n))},niceTicks:function(t,e,i){t=t||10;var n=this._extent,r=n[1]-n[0],o=r/t;null!=e&&o<e&&(o=e),null!=i&&o>i&&(o=i);var a=xD.length,s=vD(xD,o,0,a),l=xD[Math.min(s,a-1)],u=l[1];"year"===l[0]&&(u*=qr(r/u/t,!0));var c=this.getSetting("useUTC")?0:60*new Date(+n[0]||+n[1]).getTimezoneOffset()*1e3,h=[Math.round(gD((n[0]-c)/u)*u+c),Math.round(mD((n[1]-c)/u)*u+c)];wl(h,n),this._stepLvl=l,this._interval=u,this._niceExtent=h},parse:function(t){return+jr(t)}});d(["contain","normalize"],function(t){yD.prototype[t]=function(e){return pD[t].call(this,this.parse(e))}});var xD=[["hh:mm:ss",1e3],["hh:mm:ss",5e3],["hh:mm:ss",1e4],["hh:mm:ss",15e3],["hh:mm:ss",3e4],["hh:mm\nMM-dd",6e4],["hh:mm\nMM-dd",3e5],["hh:mm\nMM-dd",6e5],["hh:mm\nMM-dd",9e5],["hh:mm\nMM-dd",18e5],["hh:mm\nMM-dd",36e5],["hh:mm\nMM-dd",72e5],["hh:mm\nMM-dd",216e5],["hh:mm\nMM-dd",432e5],["MM-dd\nyyyy",864e5],["MM-dd\nyyyy",1728e5],["MM-dd\nyyyy",2592e5],["MM-dd\nyyyy",3456e5],["MM-dd\nyyyy",432e6],["MM-dd\nyyyy",5184e5],["week",6048e5],["MM-dd\nyyyy",864e6],["week",12096e5],["week",18144e5],["month",26784e5],["week",36288e5],["month",53568e5],["week",6048e6],["quarter",8208e6],["month",107136e5],["month",13392e6],["half-year",16416e6],["month",214272e5],["month",26784e6],["year",32832e6]];yD.create=function(t){return new yD({useUTC:t.ecModel.get("useUTC")})};var _D=gl.prototype,bD=cD.prototype,wD=Br,SD=Rr,TD=Math.floor,CD=Math.ceil,MD=Math.pow,DD=Math.log,ID=gl.extend({type:"log",base:10,$constructor:function(){gl.apply(this,arguments),this._originalScale=new cD},getTicks:function(){var t=this._originalScale,e=this._extent,i=t.getExtent();return f(bD.getTicks.call(this),function(n){var r=Rr(MD(this.base,n));return r=n===e[0]&&t.__fixMin?Pl(r,i[0]):r,r=n===e[1]&&t.__fixMax?Pl(r,i[1]):r},this)},getLabel:bD.getLabel,scale:function(t){return t=_D.scale.call(this,t),MD(this.base,t)},setExtent:function(t,e){var i=this.base;t=DD(t)/DD(i),e=DD(e)/DD(i),bD.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=_D.getExtent.call(this);e[0]=MD(t,e[0]),e[1]=MD(t,e[1]);var i=this._originalScale,n=i.getExtent();return i.__fixMin&&(e[0]=Pl(e[0],n[0])),i.__fixMax&&(e[1]=Pl(e[1],n[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=DD(t[0])/DD(e),t[1]=DD(t[1])/DD(e),_D.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||i<=0)){var n=Ur(i);for(t/i*n<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var r=[Rr(CD(e[0]/n)*n),Rr(TD(e[1]/n)*n)];this._interval=n,this._niceExtent=r}},niceExtent:function(t){bD.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});d(["contain","normalize"],function(t){ID.prototype[t]=function(e){return e=DD(e)/DD(this.base),_D[t].call(this,e)}}),ID.create=function(){return new ID};var AD={getMin:function(t){var e=this.option,i=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!=typeof i&&!C(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(t){var e=this.option,i=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&"function"!=typeof i&&!C(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:F,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},kD=Vn({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n+o),t.lineTo(i-r,n+o),t.closePath()}}),ED=Vn({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n),t.lineTo(i,n+o),t.lineTo(i-r,n),t.closePath()}}),OD=Vn({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=n-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),f=.6*a,p=.7*a;t.moveTo(i-c,l+s),t.arc(i,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+c-h*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-c+h*f,l+s+d*f,i-c,l+s),t.closePath()}}),ND=Vn({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,o=e.y,a=n/3*2;t.moveTo(r,o),t.lineTo(r+a,o+i),t.lineTo(r,o+i/4*3),t.lineTo(r-a,o+i),t.lineTo(r,o),t.closePath()}}),LD={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var o=Math.min(i,n);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},PD={};d({line:aT,rect:oT,roundRect:oT,square:oT,circle:ZS,diamond:ED,pin:OD,arrow:ND,triangle:kD},function(t,e){PD[e]=new t});var RD=Vn({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style;"pin"===this.shape.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,i){var n=e.symbolType,r=PD[n];"none"!==e.symbolType&&(r||(r=PD[n="rect"]),LD[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i))}}),zD={isDimensionStacked:cl,enableDataStack:ul,getStackedDimension:hl},FD=(Object.freeze||Object)({createList:function(t){return dl(t.getSource(),t)},getLayoutRect:so,dataStack:zD,createScale:function(t,e){var i=e;Ar.isInstance(e)||c(i=new Ar(e),AD);var n=Bl(i);return n.setExtent(t[0],t[1]),Fl(n,i),n},mixinAxisModelCommonMethods:function(t){c(t,AD)},completeDimensions:al,createDimensions:rD,createSymbol:Gl}),BD=1e-8;Xl.prototype={constructor:Xl,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],n=[-e,-e],r=[],o=[],a=this.geometries,s=0;s<a.length;s++)"polygon"===a[s].type&&(dn(a[s].exterior,r,o),tt(i,i,r),et(n,n,o));return 0===s&&(i[0]=i[1]=n[0]=n[1]=0),this._rect=new ue(i[0],i[1],n[0]-i[0],n[1]-i[1])},contain:function(t){var e=this.getBoundingRect(),i=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var n=0,r=i.length;n<r;n++)if("polygon"===i[n].type){var o=i[n].exterior,a=i[n].interiors;if(Yl(o,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(Yl(a[s]))continue t;return!0}}return!1},transformTo:function(t,e,i,n){var r=this.getBoundingRect(),o=r.width/r.height;i?n||(n=i/o):i=o*n;for(var a=new ue(t,e,i,n),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++)if("polygon"===l[u].type){for(var c=l[u].exterior,h=l[u].interiors,d=0;d<c.length;d++)Q(c[d],c[d],s);for(var f=0;f<(h?h.length:0);f++)for(d=0;d<h[f].length;d++)Q(h[f][d],h[f][d],s)}(r=this._rect).copy(a),this.center=[r.x+r.width/2,r.y+r.height/2]},cloneShallow:function(t){null==t&&(t=this.name);var e=new Xl(t,this.geometries,this.center);return e._rect=this._rect,e.transformTo=null,e}};var HD=function(t){return Zl(t),f(g(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var e=t.properties,i=t.geometry,n=i.coordinates,r=[];"Polygon"===i.type&&r.push({type:"polygon",exterior:n[0],interiors:n.slice(1)}),"MultiPolygon"===i.type&&d(n,function(t){t[0]&&r.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var o=new Xl(e.name,r,e.cp);return o.properties=e,o})},VD=Fi(),WD=[0,1],$D=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};$D.prototype={constructor:$D,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return Hr(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&fu(i=i.slice(),n.count()),Lr(t,WD,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&fu(i=i.slice(),n.count());var r=Lr(t,i,WD,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),i=Ql(this,e),n=f(i.ticks,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),r=e.get("alignWithLabel");return pu(this,n,i.tickCategoryInterval,r,t.clamp),n},getViewLabels:function(){return Jl(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return lu(this)}};var jD=HD,UD={};d(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){UD[t]=K_[t]});var GD={};d(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(t){GD[t]=wT[t]}),LC.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return dl(this.getSource(),this)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});var qD=mu.prototype,YD=mu.getSymbolSize=function(t,e){var i=t.getItemVisual(e,"symbolSize");return i instanceof Array?i.slice():[+i,+i]};qD._createSymbol=function(t,e,i,n,r){this.removeAll();var o=Gl(t,-1,-1,2,2,e.getItemVisual(i,"color"),r);o.attr({z2:100,culling:!0,scale:vu(n)}),o.drift=yu,this._symbolType=t,this.add(o)},qD.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},qD.getSymbolPath=function(){return this.childAt(0)},qD.getScale=function(){return this.childAt(0).scale},qD.highlight=function(){this.childAt(0).trigger("emphasis")},qD.downplay=function(){this.childAt(0).trigger("normal")},qD.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},qD.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},qD.updateData=function(t,e,i){this.silent=!1;var n=t.getItemVisual(e,"symbol")||"circle",r=t.hostModel,o=YD(t,e),a=n!==this._symbolType;if(a){var s=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(n,t,e,o,s)}else(l=this.childAt(0)).silent=!1,br(l,{scale:vu(o)},r,e);if(this._updateCommon(t,e,o,i),a){var l=this.childAt(0),u=i&&i.fadeIn,c={scale:l.scale.slice()};u&&(c.style={opacity:l.style.opacity}),l.scale=[0,0],u&&(l.style.opacity=0),wr(l,c,r,e)}this._seriesModel=r};var XD=["itemStyle"],ZD=["emphasis","itemStyle"],KD=["label"],JD=["emphasis","label"];qD._updateCommon=function(t,e,i,n){var r=this.childAt(0),a=t.hostModel,s=t.getItemVisual(e,"color");"image"!==r.type&&r.useStyle({strokeNoScale:!0});var l=n&&n.itemStyle,u=n&&n.hoverItemStyle,c=n&&n.symbolRotate,h=n&&n.symbolOffset,d=n&&n.labelModel,f=n&&n.hoverLabelModel,p=n&&n.hoverAnimation,g=n&&n.cursorStyle;if(!n||t.hasItemOption){var m=n&&n.itemModel?n.itemModel:t.getItemModel(e);l=m.getModel(XD).getItemStyle(["color"]),u=m.getModel(ZD).getItemStyle(),c=m.getShallow("symbolRotate"),h=m.getShallow("symbolOffset"),d=m.getModel(KD),f=m.getModel(JD),p=m.getShallow("hoverAnimation"),g=m.getShallow("cursor")}else u=o({},u);var v=r.style;r.attr("rotation",(c||0)*Math.PI/180||0),h&&r.attr("position",[Pr(h[0],i[0]),Pr(h[1],i[1])]),g&&r.attr("cursor",g),r.setColor(s,n&&n.symbolInnerColor),r.setStyle(l);var y=t.getItemVisual(e,"opacity");null!=y&&(v.opacity=y);var x=t.getItemVisual(e,"liftZ"),_=r.__z2Origin;null!=x?null==_&&(r.__z2Origin=r.z2,r.z2+=x):null!=_&&(r.z2=_,r.__z2Origin=null);var b=n&&n.useNameLabel;hr(v,u,d,f,{labelFetcher:a,labelDataIndex:e,defaultText:function(e,i){return b?t.getName(e):gu(t,e)},isRectText:!0,autoColor:s}),r.off("mouseover").off("mouseout").off("emphasis").off("normal"),r.hoverStyle=u,ur(r),r.__symbolOriginalScale=vu(i),p&&a.isAnimationEnabled()&&r.on("mouseover",xu).on("mouseout",_u).on("emphasis",bu).on("normal",wu)},qD.fadeOut=function(t,e){var i=this.childAt(0);this.silent=i.silent=!0,!(e&&e.keepLabel)&&(i.style.text=null),br(i,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},u(mu,jb);var QD=Su.prototype;QD.updateData=function(t,e){e=Cu(e);var i=this.group,n=t.hostModel,r=this._data,o=this._symbolCtor,a=Mu(t);r||i.removeAll(),t.diff(r).add(function(n){var r=t.getItemLayout(n);if(Tu(t,r,n,e)){var s=new o(t,n,a);s.attr("position",r),t.setItemGraphicEl(n,s),i.add(s)}}).update(function(s,l){var u=r.getItemGraphicEl(l),c=t.getItemLayout(s);Tu(t,c,s,e)?(u?(u.updateData(t,s,a),br(u,{position:c},n)):(u=new o(t,s)).attr("position",c),i.add(u),t.setItemGraphicEl(s,u)):i.remove(u)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){i.remove(e)})}).execute(),this._data=t},QD.isPersistent=function(){return!0},QD.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){var n=t.getItemLayout(i);e.attr("position",n)})},QD.incrementalPrepareUpdate=function(t){this._seriesScope=Mu(t),this._data=null,this.group.removeAll()},QD.incrementalUpdate=function(t,e,i){i=Cu(i);for(var n=t.start;n<t.end;n++){var r=e.getItemLayout(n);if(Tu(e,r,n,i)){var o=new this._symbolCtor(e,n,this._seriesScope);o.traverse(function(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}),o.attr("position",r),this.group.add(o),e.setItemGraphicEl(n,o)}}},QD.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()};var tI=function(t,e,i,n,r,o,a,s){for(var l=ku(t,e),u=[],c=[],h=[],d=[],f=[],p=[],g=[],m=Du(r,e,a),v=Du(o,t,s),y=0;y<l.length;y++){var x=l[y],_=!0;switch(x.cmd){case"=":var b=t.getItemLayout(x.idx),w=e.getItemLayout(x.idx1);(isNaN(b[0])||isNaN(b[1]))&&(b=w.slice()),u.push(b),c.push(w),h.push(i[x.idx]),d.push(n[x.idx1]),g.push(e.getRawIndex(x.idx1));break;case"+":S=x.idx,u.push(r.dataToPoint([e.get(m.dataDimsForPoint[0],S),e.get(m.dataDimsForPoint[1],S)])),c.push(e.getItemLayout(S).slice()),h.push(Au(m,r,e,S)),d.push(n[S]),g.push(e.getRawIndex(S));break;case"-":var S=x.idx,T=t.getRawIndex(S);T!==S?(u.push(t.getItemLayout(S)),c.push(o.dataToPoint([t.get(v.dataDimsForPoint[0],S),t.get(v.dataDimsForPoint[1],S)])),h.push(i[S]),d.push(Au(v,o,t,S)),g.push(T)):_=!1}_&&(f.push(x),p.push(p.length))}p.sort(function(t,e){return g[t]-g[e]});for(var C=[],M=[],D=[],I=[],A=[],y=0;y<p.length;y++)S=p[y],C[y]=u[S],M[y]=c[S],D[y]=h[S],I[y]=d[S],A[y]=f[S];return{current:C,next:M,stackedOnCurrent:D,stackedOnNext:I,status:A}},eI=tt,iI=et,nI=j,rI=H,oI=[],aI=[],sI=[],lI=En.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:JS(En.prototype.brush),buildPath:function(t,e){var i=e.points,n=0,r=i.length,o=Pu(i,e.smoothConstraint);if(e.connectNulls){for(;r>0&&Eu(i[r-1]);r--);for(;n<r&&Eu(i[n]);n++);}for(;n<r;)n+=Ou(t,i,n,r,r,1,o.min,o.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),uI=En.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:JS(En.prototype.brush),buildPath:function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,o=i.length,a=e.smoothMonotone,s=Pu(i,e.smoothConstraint),l=Pu(n,e.smoothConstraint);if(e.connectNulls){for(;o>0&&Eu(i[o-1]);o--);for(;r<o&&Eu(i[r]);r++);}for(;r<o;){var u=Ou(t,i,r,o,o,1,s.min,s.max,e.smooth,a,e.connectNulls);Ou(t,n,r+u-1,u,o,-1,l.min,l.max,e.stackedOnSmooth,a,e.connectNulls),r+=u+1,t.closePath()}}});Ta.extend({type:"line",init:function(){var t=new jb,e=new Su;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,i){var n=t.coordinateSystem,r=this.group,o=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=o.mapArray(o.getItemLayout),c="polar"===n.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,m=t.get("animation"),v=!l.isEmpty(),y=l.get("origin"),x=Bu(n,o,Du(n,o,y)),_=t.get("showSymbol"),b=_&&!c&&Uu(t,o,n),w=this._data;w&&w.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),w.setItemGraphicEl(e,null))}),_||d.remove(),r.add(g);var S=!c&&t.get("step");f&&h.type===n.type&&S===this._step?(v&&!p?p=this._newPolygon(u,x,n,m):p&&!v&&(g.remove(p),p=this._polygon=null),g.setClipPath(Wu(n,!1,!1,t)),_&&d.updateData(o,{isIgnore:b,clipShape:Wu(n,!1,!0,t)}),o.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),Ru(this._stackedOnPoints,x)&&Ru(this._points,u)||(m?this._updateAnimation(o,x,n,i,S,y):(S&&(u=$u(u,n,S),x=$u(x,n,S)),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:x})))):(_&&d.updateData(o,{isIgnore:b,clipShape:Wu(n,!1,!0,t)}),S&&(u=$u(u,n,S),x=$u(x,n,S)),f=this._newPolyline(u,n,m),v&&(p=this._newPolygon(u,x,n,m)),g.setClipPath(Wu(n,!0,!1,t)));var T=ju(o,n)||o.getVisual("color");f.useStyle(a(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"}));var C=t.get("smooth");if(C=zu(t.get("smooth")),f.setShape({smooth:C,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var M=o.getCalculationInfo("stackedOnSeries"),D=0;p.useStyle(a(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel"})),M&&(D=zu(M.get("smooth"))),p.setShape({smooth:C,stackedOnSmooth:D,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=n,this._stackedOnPoints=x,this._points=u,this._step=S,this._valueOrigin=y},dispose:function(){},highlight:function(t,e,i,n){var r=t.getData(),o=zi(r,n) ;if(!(o instanceof Array)&&null!=o&&o>=0){var a=r.getItemGraphicEl(o);if(!a){var s=r.getItemLayout(o);if(!s)return;(a=new mu(r,o)).position=s,a.setZ(t.get("zlevel"),t.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,r.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else Ta.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t.getData(),o=zi(r,n);if(null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Ta.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new lI({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new uI({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(t,e,i,n,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=tI(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,o),c=u.current,h=u.stackedOnCurrent,d=u.next,f=u.stackedOnNext;r&&(c=$u(u.current,i,r),h=$u(u.stackedOnCurrent,i,r),d=$u(u.next,i,r),f=$u(u.stackedOnNext,i,r)),a.shape.__points=u.current,a.shape.points=c,br(a,{shape:{points:d}},l),s&&(s.setShape({points:c,stackedOnPoints:h}),br(s,{shape:{points:d,stackedOnPoints:f}},l));for(var p=[],g=u.status,m=0;m<g.length;m++)if("="===g[m].cmd){var v=t.getItemGraphicEl(g[m].idx1);v&&p.push({el:v,ptIdx:m})}a.animators&&a.animators.length&&a.animators[0].during(function(){for(var t=0;t<p.length;t++)p[t].el.attr("position",a.shape.__points[p[t].ptIdx])})},remove:function(t){var e=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(t,n){t.__temp&&(e.remove(t),i.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});var cI=function(t,e,i){return{seriesType:t,performRawSeries:!0,reset:function(t,n,r){var o=t.getData(),a=t.get("symbol")||e,s=t.get("symbolSize"),l=t.get("symbolKeepAspect");if(o.setVisual({legendSymbol:i||a,symbol:a,symbolSize:s,symbolKeepAspect:l}),!n.isSeriesFiltered(t)){var u="function"==typeof s;return{dataEach:o.hasItemOption||u?function(e,i){if("function"==typeof s){var n=t.getRawValue(i),r=t.getDataParams(i);e.setItemVisual(i,"symbolSize",s(n,r))}if(e.hasItemOption){var o=e.getItemModel(i),a=o.getShallow("symbol",!0),l=o.getShallow("symbolSize",!0),u=o.getShallow("symbolKeepAspect",!0);null!=a&&e.setItemVisual(i,"symbol",a),null!=l&&e.setItemVisual(i,"symbolSize",l),null!=u&&e.setItemVisual(i,"symbolKeepAspect",u)}}:null}}}}},hI=function(t){return{seriesType:t,plan:zC(),reset:function(t){var e=t.getData(),i=t.coordinateSystem,n=t.pipelineContext.large;if(i){var r=f(i.dimensions,function(t){return e.mapDimension(t)}).slice(0,2),o=r.length,a=e.getCalculationInfo("stackResultDimension");return cl(e,r[0])&&(r[0]=a),cl(e,r[1])&&(r[1]=a),o&&{progress:function(t,e){for(var a=t.end-t.start,s=n&&new Float32Array(a*o),l=t.start,u=0,c=[],h=[];l<t.end;l++){var d;if(1===o)f=e.get(r[0],l),d=!isNaN(f)&&i.dataToPoint(f,null,h);else{var f=c[0]=e.get(r[0],l),p=c[1]=e.get(r[1],l);d=!isNaN(f)&&!isNaN(p)&&i.dataToPoint(c,null,h)}n?(s[u++]=d?d[0]:NaN,s[u++]=d?d[1]:NaN):e.setItemLayout(l,d&&d.slice()||[NaN,NaN])}n&&e.setLayout("symbolPoints",s)}}}}}},dI={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},fI=function(t,e){return Math.round(t.length/2)},pI=function(t){this._axes={},this._dimList=[],this.name=t||""};pI.prototype={constructor:pI,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return f(this._dimList,qu,this)},getAxesByScale:function(t){return t=t.toLowerCase(),g(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},r=0;r<i.length;r++){var o=i[r],a=this._axes[o];n[o]=a[e](t[o])}return n}},Yu.prototype={constructor:Yu,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,i){var n=this.getAxis("x"),r=this.getAxis("y");return i=i||[],i[0]=n.toGlobalCoord(n.dataToCoord(t[0])),i[1]=r.toGlobalCoord(r.dataToCoord(t[1])),i},clampData:function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),o=n.getExtent(),a=i.parse(t[0]),s=n.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},pointToData:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return e=e||[],e[0]=i.coordToData(i.toLocalCoord(t[0])),e[1]=n.coordToData(n.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},u(Yu,pI);var gI=function(t,e,i,n,r){$D.call(this,t,e,i),this.type=n||"value",this.position=r||"bottom"};gI.prototype={constructor:gI,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},u(gI,$D);var mI={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},vI={};vI.categoryAxis=n({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},mI),vI.valueAxis=n({boundaryGap:[0,0],splitNumber:5},mI),vI.timeAxis=a({scale:!0,min:"dataMin",max:"dataMax"},vI.valueAxis),vI.logAxis=a({scale:!0,logBase:10},vI.valueAxis);var yI=["value","category","time","log"],xI=function(t,e,i,o){d(yI,function(a){e.extend({type:t+"Axis."+a,mergeDefaultAndTheme:function(e,r){var o=this.layoutMode,s=o?ho(e):{};n(e,r.getTheme().get(a+"Axis")),n(e,this.getDefaultOption()),e.type=i(t,e),o&&co(e,s,o)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=ml.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:r([{},vI[a+"Axis"],o],!0)})}),YT.registerSubTypeDefaulter(t+"Axis",v(i,t))},_I=YT.extend({type:"cartesian2dAxis",axis:null,init:function(){_I.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){_I.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){_I.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});n(_I.prototype,AD);var bI={offset:0};xI("x",_I,Xu,bI),xI("y",_I,Xu,bI),YT.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});var wI=Ku.prototype;wI.type="grid",wI.axisPointerEnabled=!0,wI.getRect=function(){return this._rect},wI.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),d(i.x,function(t){Fl(t.scale,t.model)}),d(i.y,function(t){Fl(t.scale,t.model)});var n={};d(i.x,function(t){Ju(i,"y",t,n)}),d(i.y,function(t){Ju(i,"x",t,n)}),this.resize(this.model,e)},wI.resize=function(t,e,i){function n(){d(o,function(t){var e=t.isHorizontal(),i=e?[0,r.width]:[0,r.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),tc(t,e?r.x:r.y)})}var r=so(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=r;var o=this._axesList;n(),!i&&t.get("containLabel")&&(d(o,function(t){if(!t.model.get("axisLabel.inside")){var e=$l(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get("axisLabel.margin");r[i]-=e[i]+n,"top"===t.position?r.y+=e.height+n:"left"===t.position&&(r.x+=e.width+n)}}}),n())},wI.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[e]}},wI.getAxes=function(){return this._axesList.slice()},wI.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}b(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},wI.getCartesians=function(){return this._coordsList.slice()},wI.convertToPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},wI.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},wI._findConvertTarget=function(t,e){var i,n,r=e.seriesModel,o=e.xAxisModel||r&&r.getReferringComponents("xAxis")[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=e.gridModel,u=this._coordsList;return r?l(u,i=r.coordinateSystem)<0&&(i=null):o&&a?i=this.getCartesian(o.componentIndex,a.componentIndex):o?n=this.getAxis("x",o.componentIndex):a?n=this.getAxis("y",a.componentIndex):s&&s.coordinateSystem===this&&(i=this._coordsList[0]),{cartesian:i,axis:n}},wI.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},wI._initCartesian=function(t,e,i){function n(i){return function(n,s){if(Zu(n,t,e)){var l=n.get("position");"x"===i?"top"!==l&&"bottom"!==l&&r[l="bottom"]&&(l="top"===l?"bottom":"top"):"left"!==l&&"right"!==l&&r[l="left"]&&(l="left"===l?"right":"left"),r[l]=!0;var u=new gI(i,Bl(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=this,u.index=s,this._axesList.push(u),o[i][s]=u,a[i]++}}}var r={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},a={x:0,y:0};if(e.eachComponent("xAxis",n("x"),this),e.eachComponent("yAxis",n("y"),this),!a.x||!a.y)return this._axesMap={},void(this._axesList=[]);this._axesMap=o,d(o.x,function(e,i){d(o.y,function(n,r){var o="x"+i+"y"+r,a=new Yu(o);a.grid=this,a.model=t,this._coordsMap[o]=a,this._coordsList.push(a),a.addAxis(e),a.addAxis(n)},this)},this)},wI._updateScale=function(t,e){function i(t,e,i){d(t.mapDimension(e.dim,!0),function(i){e.scale.unionExtentFromData(t,hl(t,i))})}d(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(n){if(ic(n)){var r=ec(n),o=r[0],a=r[1];if(!Zu(o,e,t)||!Zu(a,e,t))return;var s=this.getCartesian(o.componentIndex,a.componentIndex),l=n.getData(),u=s.getAxis("x"),c=s.getAxis("y");"list"===l.type&&(i(l,u),i(l,c))}},this)},wI.getTooltipAxes=function(t){var e=[],i=[];return d(this.getCartesians(),function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(r);l(e,r)<0&&e.push(r),l(i,o)<0&&i.push(o)}),{baseAxes:e,otherAxes:i}};var SI=["xAxis","yAxis"];Ku.create=function(t,e){var i=[];return t.eachComponent("grid",function(n,r){var o=new Ku(n,t,e);o.name="grid_"+r,o.resize(n,e,!0),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(t){if(ic(t)){var e=ec(t),i=e[0],n=e[1],r=i.getCoordSysModel().coordinateSystem;t.coordinateSystem=r.getCartesian(i.componentIndex,n.componentIndex)}}),i},Ku.dimensions=Ku.prototype.dimensions=Yu.prototype.dimensions,Fo.register("cartesian2d",Ku);var TI=Math.PI,CI=function(t,e){this.opt=e,this.axisModel=t,a(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new jb;var i=new jb({position:e.position.slice(),rotation:e.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};CI.prototype={constructor:CI,hasBuilder:function(t){return!!MI[t]},add:function(t){MI[t].call(this)},getGroup:function(){return this.group}};var MI={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis.getExtent(),n=this._transform,r=[i[0],0],a=[i[1],0];n&&(Q(r,r,n),Q(a,a,n));var s=o({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new aT(Gn({anid:"line",shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:s,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})));var l=e.get("axisLine.symbol"),u=e.get("axisLine.symbolSize"),c=e.get("axisLine.symbolOffset")||0;if("number"==typeof c&&(c=[c,c]),null!=l){"string"==typeof l&&(l=[l,l]),"string"!=typeof u&&"number"!=typeof u||(u=[u,u]);var h=u[0],f=u[1];d([{rotate:t.rotation+Math.PI/2,offset:c[0],r:0},{rotate:t.rotation-Math.PI/2,offset:c[1],r:Math.sqrt((r[0]-a[0])*(r[0]-a[0])+(r[1]-a[1])*(r[1]-a[1]))}],function(e,i){if("none"!==l[i]&&null!=l[i]){var n=Gl(l[i],-h/2,-f/2,h,f,s.stroke,!0),o=e.r+e.offset,a=[r[0]+o*Math.cos(t.rotation),r[1]-o*Math.sin(t.rotation)];n.attr({rotation:e.rotate,position:a,silent:!0}),this.group.add(n)}},this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,i=cc(this,t,e);ac(t,hc(this,t,e),i)},axisName:function(){var t=this.opt,e=this.axisModel,i=M(t.axisName,e.get("name"));if(i){var n,r=e.get("nameLocation"),a=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=this.axisModel.axis.getExtent(),c=u[0]>u[1]?-1:1,h=["start"===r?u[0]-c*l:"end"===r?u[1]+c*l:(u[0]+u[1])/2,uc(r)?t.labelOffset+a*l:0],d=e.get("nameRotate");null!=d&&(d=d*TI/180);var f;uc(r)?n=DI(t.rotation,null!=d?d:t.rotation,a):(n=rc(t,r,d||0,u),null!=(f=t.axisNameAvailableWidth)&&(f=Math.abs(f/Math.sin(n.rotation)),!isFinite(f)&&(f=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},m=g.ellipsis,v=M(t.nameTruncateMaxWidth,g.maxWidth,f),y=null!=m&&null!=v?BT(i,v,p,m,{minChar:2,placeholder:g.placeholder}):i,x=e.get("tooltip",!0),_=e.mainType,b={componentType:_,name:i,$vars:["name"]};b[_+"Index"]=e.componentIndex;var w=new XS({anid:"name",__fullText:i,__truncatedText:y,position:h,rotation:n.rotation,silent:oc(e),z2:1,tooltip:x&&x.show?o({content:i,formatter:function(){return i},formatterParams:b},x):null});dr(w.style,s,{text:y,textFont:p,textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:n.textAlign,textVerticalAlign:n.textVerticalAlign}),e.get("triggerEvent")&&(w.eventData=nc(e),w.eventData.targetType="axisName",w.eventData.name=i),this._dumbGroup.add(w),w.updateTransform(),this.group.add(w),w.decomposeTransform()}}},DI=CI.innerTextLayout=function(t,e,i){var n,r,o=Wr(e-t);return $r(o)?(r=i>0?"top":"bottom",n="center"):$r(o-TI)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=o>0&&o<TI?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,textVerticalAlign:r}},II=d,AI=v,kI=Bs({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,i,n){this.axisPointerClass&&yc(t),kI.superApply(this,"render",arguments),Sc(this,t,0,i,0,!0)},updateAxisPointer:function(t,e,i,n,r){Sc(this,t,0,i,0,!1)},remove:function(t,e){var i=this._axisPointer;i&&i.remove(e),kI.superApply(this,"remove",arguments)},dispose:function(t,e){Tc(this,e),kI.superApply(this,"dispose",arguments)}}),EI=[];kI.registerAxisPointerClass=function(t,e){EI[t]=e},kI.getAxisPointerClass=function(t){return t&&EI[t]};var OI=["axisLine","axisTickLabel","axisName"],NI=["splitArea","splitLine"],LI=kI.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,i,n){this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new jb,this.group.add(this._axisGroup),t.get("show")){var o=t.getCoordSysModel(),a=Cc(o,t),s=new CI(t,a);d(OI,s.add,s),this._axisGroup.add(s.getGroup()),d(NI,function(e){t.get(e+".show")&&this["_"+e](t,o)},this),Mr(r,this._axisGroup,t),LI.superCall(this,"render",t,e,i,n)}},remove:function(){this._splitAreaColors=null},_splitLine:function(t,e){var i=t.axis;if(!i.scale.isBlank()){var n=t.getModel("splitLine"),r=n.getModel("lineStyle"),o=r.get("color");o=y(o)?o:[o];for(var s=e.coordinateSystem.getRect(),l=i.isHorizontal(),u=0,c=i.getTicksCoords({tickModel:n}),h=[],d=[],f=r.getLineStyle(),p=0;p<c.length;p++){var g=i.toGlobalCoord(c[p].coord);l?(h[0]=g,h[1]=s.y,d[0]=g,d[1]=s.y+s.height):(h[0]=s.x,h[1]=g,d[0]=s.x+s.width,d[1]=g);var m=u++%o.length,v=c[p].tickValue;this._axisGroup.add(new aT(Gn({anid:null!=v?"line_"+c[p].tickValue:null,shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:a({stroke:o[m]},f),silent:!0})))}}},_splitArea:function(t,e){var i=t.axis;if(!i.scale.isBlank()){var n=t.getModel("splitArea"),r=n.getModel("areaStyle"),o=r.get("color"),s=e.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:n,clamp:!0});if(l.length){var u=o.length,c=this._splitAreaColors,h=R(),d=0;if(c)for(m=0;m<l.length;m++){var f=c.get(l[m].tickValue);if(null!=f){d=(f+(u-1)*m)%u;break}}var p=i.toGlobalCoord(l[0].coord),g=r.getAreaStyle();o=y(o)?o:[o];for(var m=1;m<l.length;m++){var v,x,_,b,w=i.toGlobalCoord(l[m].coord);i.isHorizontal()?(v=p,x=s.y,_=w-v,b=s.height,p=v+_):(v=s.x,x=p,_=s.width,p=x+(b=w-x));var S=l[m-1].tickValue;null!=S&&h.set(S,d),this._axisGroup.add(new oT({anid:null!=S?"area_"+S:null,shape:{x:v,y:x,width:_,height:b},style:a({fill:o[d]},g),silent:!0})),d=(d+1)%u}this._splitAreaColors=h}}}});LI.extend({type:"xAxis"}),LI.extend({type:"yAxis"}),Bs({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new oT({shape:t.coordinateSystem.getRect(),style:a({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),ks(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}),Ps(cI("line","circle","line")),Ls(hI("line")),Es(CM.PROCESSOR.STATISTIC,function(t){return{seriesType:"line",modifyOutputEnd:!0,reset:function(t,e,i){var n=t.getData(),r=t.get("sampling"),o=t.coordinateSystem;if("cartesian2d"===o.type&&r){var a=o.getBaseAxis(),s=o.getOtherAxis(a),l=a.getExtent(),u=l[1]-l[0],c=Math.round(n.count()/u);if(c>1){var h;"string"==typeof r?h=dI[r]:"function"==typeof r&&(h=r),h&&t.setData(n.downSample(n.mapDimension(s.dim),1/c,h,fI))}}}}}());var PI=LC.extend({type:"series.__base_bar__",getInitialData:function(t,e){return dl(this.getSource(),this)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var i=e.dataToPoint(e.clampData(t)),n=this.getData(),r=n.getLayout("offset"),o=n.getLayout("size");return i[e.getBaseAxis().isHorizontal()?0:1]+=r+o/2,i}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});PI.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t}});var RI=Ww([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),zI={getBarItemStyle:function(t){var e=RI(this,t);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(e.lineDash=i)}return e}},FI=["itemStyle","barBorderWidth"];o(Ar.prototype,zI),Vs({type:"bar",render:function(t,e,i){this._updateDrawMode(t);var n=t.get("coordinateSystem");return"cartesian2d"!==n&&"polar"!==n||(this._isLargeDraw?this._renderLarge(t,e,i):this._renderNormal(t,e,i)),this.group},incrementalPrepareRender:function(t,e,i){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,i,n){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,i){var n,r=this.group,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.getBaseAxis();"cartesian2d"===s.type?n=l.isHorizontal():"polar"===s.type&&(n="angle"===l.dim);var u=t.isAnimationEnabled()?t:null;o.diff(a).add(function(e){if(o.hasValue(e)){var i=o.getItemModel(e),a=HI[s.type](o,e,i),l=BI[s.type](o,e,i,a,n,u);o.setItemGraphicEl(e,l),r.add(l),kc(l,o,e,i,a,t,n,"polar"===s.type)}}).update(function(e,i){var l=a.getItemGraphicEl(i);if(o.hasValue(e)){var c=o.getItemModel(e),h=HI[s.type](o,e,c);l?br(l,{shape:h},u,e):l=BI[s.type](o,e,c,h,n,u,!0),o.setItemGraphicEl(e,l),r.add(l),kc(l,o,e,c,h,t,n,"polar"===s.type)}else r.remove(l)}).remove(function(t){var e=a.getItemGraphicEl(t);"cartesian2d"===s.type?e&&Ic(t,u,e):e&&Ac(t,u,e)}).execute(),this._data=o},_renderLarge:function(t,e,i){this._clear(),Oc(t,this.group)},_incrementalRenderLarge:function(t,e){Oc(e,this.group,!0)},dispose:F,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,i=this._data;t&&t.get("animation")&&i&&!this._isLargeDraw?i.eachItemGraphicEl(function(e){"sector"===e.type?Ac(e.dataIndex,t,e):Ic(e.dataIndex,t,e)}):e.removeAll(),this._data=null}});var BI={cartesian2d:function(t,e,i,n,r,a,s){var l=new oT({shape:o({},n)});if(a){var u=l.shape,c=r?"height":"width",h={};u[c]=0,h[c]=n[c],wT[s?"updateProps":"initProps"](l,{shape:h},a,e)}return l},polar:function(t,e,i,n,r,o,s){var l=n.startAngle<n.endAngle,u=new QS({shape:a({clockwise:l},n)});if(o){var c=u.shape,h=r?"r":"endAngle",d={};c[h]=r?0:n.startAngle,d[h]=n[h],wT[s?"updateProps":"initProps"](u,{shape:d},o,e)}return u}},HI={cartesian2d:function(t,e,i){var n=t.getItemLayout(e),r=Ec(i,n),o=n.width>0?1:-1,a=n.height>0?1:-1;return{x:n.x+o*r/2,y:n.y+a*r/2,width:n.width-o*r,height:n.height-a*r}},polar:function(t,e,i){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}},VI=En.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var i=e.points,n=this.__startPoint,r=this.__valueIdx,o=0;o<i.length;o+=2)n[this.__valueIdx]=i[o+r],t.moveTo(n[0],n[1]),t.lineTo(i[o],i[o+1])}});Ls(v(El,"bar")),Ls(fD),Ps({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}});var WI=function(t,e,i){e=y(e)&&{coordDimensions:e}||o({},e);var n=t.getSource(),r=rD(n,e),a=new eD(r,t);return a.initData(n,i),a},$I={updateSelectedMap:function(t){this._targetList=y(t)?t.slice():[],this._selectTargetMap=p(t||[],function(t,e){return t.set(e.name,e),t},R())},select:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);"single"===this.get("selectedMode")&&this._selectTargetMap.each(function(t){t.selected=!1}),i&&(i.selected=!0)},unSelect:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);i&&(i.selected=!1)},toggleSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=i)return this[i.selected?"unSelect":"select"](t,e),i.selected},isSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return i&&i.selected}},jI=Hs({type:"series.pie",init:function(t){jI.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){jI.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,e){return WI(this,["value"])},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),i=[],n=0,r=t.count();n<r;n++)i.push({name:t.getName(n),value:t.get(e,n),selected:ha(t,n,"selected")});return i},getDataParams:function(t){var e=this.getData(),i=jI.superCall(this,"getDataParams",t),n=[];return e.each(e.mapDimension("value"),function(t){n.push(t)}),i.percent=Vr(n,t,e.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},_defaultLabelLine:function(t){Ai(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,label:{rotate:!1,show:!0,position:"outer"},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationEasing:"cubicOut"}});c(jI,$I);var UI=Rc.prototype;UI.updateData=function(t,e,i){function n(){s.stopAnimation(!0),s.animateTo({shape:{r:c.r+l.get("hoverOffset")}},300,"elasticOut")}function r(){s.stopAnimation(!0),s.animateTo({shape:{r:c.r}},300,"elasticOut")}var s=this.childAt(0),l=t.hostModel,u=t.getItemModel(e),c=t.getItemLayout(e),h=o({},c);h.label=null,i?(s.setShape(h),"scale"===l.getShallow("animationType")?(s.shape.r=c.r0,wr(s,{shape:{r:c.r}},l,e)):(s.shape.endAngle=c.startAngle,br(s,{shape:{endAngle:c.endAngle}},l,e))):br(s,{shape:h},l,e);var d=t.getItemVisual(e,"color");s.useStyle(a({lineJoin:"bevel",fill:d},u.getModel("itemStyle").getItemStyle())),s.hoverStyle=u.getModel("emphasis.itemStyle").getItemStyle();var f=u.getShallow("cursor");f&&s.attr("cursor",f),Pc(this,t.getItemLayout(e),l.isSelected(null,e),l.get("selectedOffset"),l.get("animation")),s.off("mouseover").off("mouseout").off("emphasis").off("normal"),u.get("hoverAnimation")&&l.isAnimationEnabled()&&s.on("mouseover",n).on("mouseout",r).on("emphasis",n).on("normal",r),this._updateLabel(t,e),ur(this)},UI._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,"color");br(i,{shape:{points:a.linePoints||[[a.x,a.y],[a.x,a.y],[a.x,a.y]]}},r,e),br(n,{style:{x:a.x,y:a.y}},r,e),n.attr({rotation:a.rotation,origin:[a.x,a.y],z2:10});var l=o.getModel("label"),u=o.getModel("emphasis.label"),c=o.getModel("labelLine"),h=o.getModel("emphasis.labelLine"),s=t.getItemVisual(e,"color");hr(n.style,n.hoverStyle={},l,u,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!a.inside},{textAlign:a.textAlign,textVerticalAlign:a.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),n.ignore=n.normalIgnore=!l.get("show"),n.hoverIgnore=!u.get("show"),i.ignore=i.normalIgnore=!c.get("show"),i.hoverIgnore=!h.get("show"),i.setStyle({stroke:s,opacity:t.getItemVisual(e,"opacity")}),i.setStyle(c.getModel("lineStyle").getLineStyle()),i.hoverStyle=h.getModel("lineStyle").getLineStyle();var d=c.get("smooth");d&&!0===d&&(d=.4),i.setShape({smooth:d})},u(Rc,jb),Ta.extend({type:"pie",init:function(){var t=new jb;this._sectorGroup=t},render:function(t,e,i,n){if(!n||n.from!==this.uid){var r=t.getData(),o=this._data,a=this.group,s=e.get("animation"),l=!o,u=t.get("animationType"),c=v(Lc,this.uid,t,s,i),h=t.get("selectedMode");if(r.diff(o).add(function(t){var e=new Rc(r,t);l&&"scale"!==u&&e.eachChild(function(t){t.stopAnimation(!0)}),h&&e.on("click",c),r.setItemGraphicEl(t,e),a.add(e)}).update(function(t,e){var i=o.getItemGraphicEl(e);i.updateData(r,t),i.off("click"),h&&i.on("click",c),a.add(i),r.setItemGraphicEl(t,i)}).remove(function(t){var e=o.getItemGraphicEl(t);a.remove(e)}).execute(),s&&l&&r.count()>0&&"scale"!==u){var d=r.getItemLayout(0),f=Math.max(i.getWidth(),i.getHeight())/2,p=m(a.removeClipPath,a);a.setClipPath(this._createClipPath(d.cx,d.cy,f,d.startAngle,d.clockwise,p,t))}else a.removeClipPath();this._data=r}},dispose:function(){},_createClipPath:function(t,e,i,n,r,o,a){var s=new QS({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return wr(s,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},a,o),s},containPoint:function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,r=t[1]-i.cy,o=Math.sqrt(n*n+r*r);return o<=i.r&&o>=i.r0}}});var GI=function(t,e){d(e,function(e){e.update="updateView",Os(e,function(i,n){var r={};return n.eachComponent({mainType:"series",subType:t,query:i},function(t){t[e.method]&&t[e.method](i.name,i.dataIndex);var n=t.getData();n.each(function(e){var i=n.getName(e);r[i]=t.isSelected(i)||!1})}),{name:i.name,selected:r}})})},qI=function(t){return{getTargetSeries:function(e){var i={},n=R();return e.eachSeriesByType(t,function(t){t.__paletteScope=i,n.set(t.uid,t)}),n},reset:function(t,e){var i=t.getRawData(),n={},r=t.getData();r.each(function(t){var e=r.getRawIndex(t);n[e]=t}),i.each(function(e){var o=n[e],a=null!=o&&r.getItemVisual(o,"color",!0);if(a)i.setItemVisual(e,"color",a);else{var s=i.getItemModel(e).get("itemStyle.color")||t.getColorFromPalette(i.getName(e)||e+"",t.__paletteScope,i.count());i.setItemVisual(e,"color",s),null!=o&&r.setItemVisual(o,"color",s)}})}}},YI=function(t,e,i,n){var r,o,a=t.getData(),s=[],l=!1;a.each(function(i){var n,u,c,h,d=a.getItemLayout(i),f=a.getItemModel(i),p=f.getModel("label"),g=p.get("position")||f.get("emphasis.label.position"),m=f.getModel("labelLine"),v=m.get("length"),y=m.get("length2"),x=(d.startAngle+d.endAngle)/2,_=Math.cos(x),b=Math.sin(x);r=d.cx,o=d.cy;var w="inside"===g||"inner"===g;if("center"===g)n=d.cx,u=d.cy,h="center";else{var S=(w?(d.r+d.r0)/2*_:d.r*_)+r,T=(w?(d.r+d.r0)/2*b:d.r*b)+o;if(n=S+3*_,u=T+3*b,!w){var C=S+_*(v+e-d.r),M=T+b*(v+e-d.r),D=C+(_<0?-1:1)*y,I=M;n=D+(_<0?-5:5),u=I,c=[[S,T],[C,M],[D,I]]}h=w?"center":_>0?"left":"right"}var A=p.getFont(),k=p.get("rotate")?_<0?-x+Math.PI:-x:0,E=Ie(t.getFormattedLabel(i,"normal")||a.getName(i),A,h,"top");l=!!k,d.label={x:n,y:u,position:g,height:E.height,len:v,len2:y,linePoints:c,textAlign:h,verticalAlign:"middle",rotation:k,inside:w},w||s.push(d.label)}),!l&&t.get("avoidLabelOverlap")&&Fc(s,r,o,e,i,n)},XI=2*Math.PI,ZI=Math.PI/180,KI=function(t){return{seriesType:t,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(i&&i.length){var n=t.getData();n.filterSelf(function(t){for(var e=n.getName(t),r=0;r<i.length;r++)if(!i[r].isSelected(e))return!1;return!0})}}}};GI("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),Ps(qI("pie")),Ls(v(function(t,e,i,n){e.eachSeriesByType(t,function(t){var e=t.getData(),n=e.mapDimension("value"),r=t.get("center"),o=t.get("radius");y(o)||(o=[0,o]),y(r)||(r=[r,r]);var a=i.getWidth(),s=i.getHeight(),l=Math.min(a,s),u=Pr(r[0],a),c=Pr(r[1],s),h=Pr(o[0],l/2),d=Pr(o[1],l/2),f=-t.get("startAngle")*ZI,p=t.get("minAngle")*ZI,g=0;e.each(n,function(t){!isNaN(t)&&g++});var m=e.getSum(n),v=Math.PI/(m||g)*2,x=t.get("clockwise"),_=t.get("roseType"),b=t.get("stillShowZeroSum"),w=e.getDataExtent(n);w[0]=0;var S=XI,T=0,C=f,M=x?1:-1;if(e.each(n,function(t,i){var n;if(isNaN(t))e.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN, clockwise:x,cx:u,cy:c,r0:h,r:_?NaN:d});else{(n="area"!==_?0===m&&b?v:t*v:XI/g)<p?(n=p,S-=p):T+=t;var r=C+M*n;e.setItemLayout(i,{angle:n,startAngle:C,endAngle:r,clockwise:x,cx:u,cy:c,r0:h,r:_?Lr(t,w,[h,d]):d}),C=r}}),S<XI&&g)if(S<=.001){var D=XI/g;e.each(n,function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i);n.angle=D,n.startAngle=f+M*i*D,n.endAngle=f+M*(i+1)*D}})}else v=S/T,C=f,e.each(n,function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i),r=n.angle===p?p:t*v;n.startAngle=C,n.endAngle=C+M*r,C+=M*r}});YI(t,d,a,s)})},"pie")),Es(KI("pie")),LC.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(t,e){return dl(this.getSource(),this)},brushSelector:"point",getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8}}});var JI=Vn({shape:{points:null},symbolProxy:null,buildPath:function(t,e){var i=e.points,n=e.size,r=this.symbolProxy,o=r.shape;if(!((t.getContext?t.getContext():t)&&n[0]<4))for(var a=0;a<i.length;){var s=i[a++],l=i[a++];isNaN(s)||isNaN(l)||(o.x=s-n[0]/2,o.y=l-n[1]/2,o.width=n[0],o.height=n[1],r.buildPath(t,o,!0))}},afterBrush:function(t){var e=this.shape,i=e.points,n=e.size;if(n[0]<4){this.setTransform(t);for(var r=0;r<i.length;){var o=i[r++],a=i[r++];isNaN(o)||isNaN(a)||t.fillRect(o-n[0]/2,a-n[1]/2,n[0],n[1])}this.restoreTransform(t)}},findDataIndex:function(t,e){for(var i=this.shape,n=i.points,r=i.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=n.length/2-1;s>=0;s--){var l=2*s,u=n[l]-o/2,c=n[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1}}),QI=Bc.prototype;QI.isPersistent=function(){return!this._incremental},QI.updateData=function(t){this.group.removeAll();var e=new JI({rectHover:!0,cursor:"default"});e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},QI.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild(function(t){if(null!=t.startIndex){var i=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2;e=new Float32Array(e.buffer,n,i)}t.setShape("points",e)})}},QI.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new Hn({silent:!0})),this.group.add(this._incremental)):this._incremental=null},QI.incrementalUpdate=function(t,e){var i;this._incremental?(i=new JI,this._incremental.addDisplayable(i,!0)):((i=new JI({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!!this._incremental)},QI._setCommon=function(t,e,i){var n=e.hostModel,r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.symbolProxy=Gl(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("color");a&&t.setColor(a),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>=0&&(t.dataIndex=i+(t.startIndex||0))}))},QI.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},QI._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},Vs({type:"scatter",render:function(t,e,i){var n=t.getData();this._updateSymbolDraw(n,t).updateData(n),this._finished=!0},incrementalPrepareRender:function(t,e,i){var n=t.getData();this._updateSymbolDraw(n,t).incrementalPrepareUpdate(n),this._finished=!1},incrementalRender:function(t,e,i){this._symbolDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=hI().reset(t);r.progress&&r.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateSymbolDraw:function(t,e){var i=this._symbolDraw,n=e.pipelineContext.large;return i&&n===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=n?new Bc:new Su,this._isLargeDraw=n,this.group.removeAll()),this.group.add(i.group),i},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}}),Ps(cI("scatter","circle")),Ls(hI("scatter")),u(Hc,$D),Vc.prototype.getIndicatorAxes=function(){return this._indicatorAxes},Vc.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},Vc.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(i),this.cy-t*Math.sin(i)]},Vc.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var r,o=Math.atan2(-i,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(r=u,s=l,a=c)}return[s,+(r&&r.coodToData(n))]},Vc.prototype.resize=function(t,e){var i=t.get("center"),n=e.getWidth(),r=e.getHeight(),o=Math.min(n,r)/2;this.cx=Pr(i[0],n),this.cy=Pr(i[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");"string"!=typeof a&&"number"!=typeof a||(a=[0,a]),this.r0=Pr(a[0],o),this.r=Pr(a[1],o),d(this._indicatorAxes,function(t,e){t.setExtent(this.r0,this.r);var i=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;i=Math.atan2(Math.sin(i),Math.cos(i)),t.angle=i},this)},Vc.prototype.update=function(t,e){function i(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),i=t/e;return 2===i?i=5:i*=2,i*e}var n=this._indicatorAxes,r=this._model;d(n,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(e,i){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===r){var o=e.getData();d(n,function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))})}},this);var o=r.get("splitNumber");d(n,function(t,e){var n=Rl(t.scale,t.model);Fl(t.scale,t.model);var r=t.model,a=t.scale,s=r.getMin(),l=r.getMax(),u=a.getInterval();if(null!=s&&null!=l)a.setExtent(+s,+l),a.setInterval((l-s)/o);else if(null!=s){var c;do{c=s+u*o,a.setExtent(+s,c),a.setInterval(u),u=i(u)}while(c<n[1]&&isFinite(c)&&isFinite(n[1]))}else if(null!=l){var h;do{h=l-u*o,a.setExtent(h,+l),a.setInterval(u),u=i(u)}while(h>n[0]&&isFinite(h)&&isFinite(n[0]))}else{a.getTicks().length-1>o&&(u=i(u));var d=Math.round((n[0]+n[1])/2/u)*u,f=Math.round(o/2);a.setExtent(Rr(d-f*u),Rr(d+(o-f)*u)),a.setInterval(u)}})},Vc.dimensions=[],Vc.create=function(t,e){var i=[];return t.eachComponent("radar",function(n){var r=new Vc(n,t,e);i.push(r),n.coordinateSystem=r}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},Fo.register("radar",Vc);var tA=vI.valueAxis,eA=(Fs({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),r=this.get("scale"),s=this.get("axisLine"),l=this.get("axisTick"),u=this.get("axisLabel"),c=this.get("name"),h=this.get("name.show"),d=this.get("name.formatter"),p=this.get("nameGap"),g=this.get("triggerEvent"),m=f(this.get("indicator")||[],function(f){null!=f.max&&f.max>0&&!f.min?f.min=0:null!=f.min&&f.min<0&&!f.max&&(f.max=0);var m=c;if(null!=f.color&&(m=a({color:f.color},c)),f=n(i(f),{boundaryGap:t,splitNumber:e,scale:r,axisLine:s,axisTick:l,axisLabel:u,name:f.text,nameLocation:"end",nameGap:p,nameTextStyle:m,triggerEvent:g},!1),h||(f.name=""),"string"==typeof d){var v=f.name;f.name=d.replace("{value}",null!=v?v:"")}else"function"==typeof d&&(f.name=d(f.name,f));var y=o(new Ar(f,null,this.ecModel),AD);return y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this.getIndicatorModels=function(){return m}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:n({lineStyle:{color:"#bbb"}},tA.axisLine),axisLabel:Wc(tA.axisLabel,!1),axisTick:Wc(tA.axisTick,!1),splitLine:Wc(tA.splitLine,!0),splitArea:Wc(tA.splitArea,!0),indicator:[]}}),["axisLine","axisTickLabel","axisName"]);Bs({type:"radar",render:function(t,e,i){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem;d(f(e.getIndicatorAxes(),function(t){return new CI(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){d(eA,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){function e(t,e,i){var n=i%e.length;return t[n]=t[n]||[],n}var i=t.coordinateSystem,n=i.getIndicatorAxes();if(n.length){var r=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),h=s.get("show"),p=l.get("color"),g=u.get("color");p=y(p)?p:[p],g=y(g)?g:[g];var m=[],v=[];if("circle"===r)for(var x=n[0].getTicksCoords(),_=i.cx,b=i.cy,w=0;w<x.length;w++)c&&m[I=e(m,p,w)].push(new ZS({shape:{cx:_,cy:b,r:x[w].coord}})),h&&w<x.length-1&&v[I=e(v,g,w)].push(new tT({shape:{cx:_,cy:b,r0:x[w].coord,r:x[w+1].coord}}));else for(var S,T=f(n,function(t,e){var n=t.getTicksCoords();return S=null==S?n.length-1:Math.min(n.length-1,S),f(n,function(t){return i.coordToPoint(t.coord,e)})}),C=[],w=0;w<=S;w++){for(var M=[],D=0;D<n.length;D++)M.push(T[D][w]);if(M[0]&&M.push(M[0].slice()),c&&m[I=e(m,p,w)].push(new rT({shape:{points:M}})),h&&C){var I=e(v,g,w-1);v[I].push(new nT({shape:{points:M.concat(C)}}))}C=M.slice().reverse()}var A=l.getLineStyle(),k=u.getAreaStyle();d(v,function(t,e){this.group.add(xT(t,{style:a({stroke:"none",fill:g[e%g.length]},k),silent:!0}))},this),d(m,function(t,e){this.group.add(xT(t,{style:a({fill:"none",stroke:p[e%p.length]},A),silent:!0}))},this)}}});var iA=LC.extend({type:"series.radar",dependencies:["radar"],init:function(t){iA.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},getInitialData:function(t,e){return WI(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(t){var e=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),n=this.getData().getName(t);return Jr(""===n?this.name:n)+"<br/>"+f(i,function(i,n){var r=e.get(e.mapDimension(i.dim),t);return Jr(i.name+" : "+r)}).join("<br />")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}});Vs({type:"radar",render:function(t,e,n){function r(t,e){var i=t.getItemVisual(e,"symbol")||"circle",n=t.getItemVisual(e,"color");if("none"!==i){var r=$c(t.getItemVisual(e,"symbolSize")),o=Gl(i,-1,-1,2,2,n);return o.attr({style:{strokeNoScale:!0},z2:100,scale:[r[0]/2,r[1]/2]}),o}}function o(e,i,n,o,a,s){n.removeAll();for(var l=0;l<i.length-1;l++){var u=r(o,a);u&&(u.__dimIdx=l,e[l]?(u.attr("position",e[l]),wT[s?"initProps":"updateProps"](u,{position:i[l]},t,a)):u.attr("position",i[l]),n.add(u))}}function s(t){return f(t,function(t){return[l.cx,l.cy]})}var l=t.coordinateSystem,u=this.group,c=t.getData(),h=this._data;c.diff(h).add(function(e){var i=c.getItemLayout(e);if(i){var n=new nT,r=new rT,a={shape:{points:i}};n.shape.points=s(i),r.shape.points=s(i),wr(n,a,t,e),wr(r,a,t,e);var l=new jb,u=new jb;l.add(r),l.add(n),l.add(u),o(r.shape.points,i,u,c,e,!0),c.setItemGraphicEl(e,l)}}).update(function(e,i){var n=h.getItemGraphicEl(i),r=n.childAt(0),a=n.childAt(1),s=n.childAt(2),l={shape:{points:c.getItemLayout(e)}};l.shape.points&&(o(r.shape.points,l.shape.points,s,c,e,!1),br(r,l,t),br(a,l,t),c.setItemGraphicEl(e,n))}).remove(function(t){u.remove(h.getItemGraphicEl(t))}).execute(),c.eachItemGraphicEl(function(t,e){function n(){l.attr("ignore",m)}function r(){l.attr("ignore",g)}var o=c.getItemModel(e),s=t.childAt(0),l=t.childAt(1),h=t.childAt(2),d=c.getItemVisual(e,"color");u.add(t),s.useStyle(a(o.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:d})),s.hoverStyle=o.getModel("emphasis.lineStyle").getLineStyle();var f=o.getModel("areaStyle"),p=o.getModel("emphasis.areaStyle"),g=f.isEmpty()&&f.parentModel.isEmpty(),m=p.isEmpty()&&p.parentModel.isEmpty();m=m&&g,l.ignore=g,l.useStyle(a(f.getAreaStyle(),{fill:d,opacity:.7})),l.hoverStyle=p.getAreaStyle();var v=o.getModel("itemStyle").getItemStyle(["color"]),y=o.getModel("emphasis.itemStyle").getItemStyle(),x=o.getModel("label"),_=o.getModel("emphasis.label");h.eachChild(function(t){t.setStyle(v),t.hoverStyle=i(y),hr(t.style,t.hoverStyle,x,_,{labelFetcher:c.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:c.get(c.dimensions[t.__dimIdx],e),autoColor:d,isRectText:!0})}),t.off("mouseover").off("mouseout").off("normal").off("emphasis"),t.on("emphasis",n).on("mouseover",n).on("normal",r).on("mouseout",r),ur(t)}),this._data=c},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),Ps(qI("radar")),Ps(cI("radar","circle")),Ls(function(t){t.eachSeriesByType("radar",function(t){var e=t.getData(),i=[],n=t.coordinateSystem;if(n){for(var r=n.getIndicatorAxes(),o=0;o<r.length;o++)e.each(e.mapDimension(r[o].dim),function(t,e){i[e]=i[e]||[],i[e][o]=n.dataToPoint(t,o)});e.each(function(t){i[t][0]&&i[t].push(i[t][0].slice()),e.setItemLayout(t,i[t])})}})}),Es(KI("radar")),ks(function(t){var e=t.polar;if(e){y(e)||(e=[e]);var i=[];d(e,function(e,n){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],y(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):i.push(e)}),t.polar=i}d(t.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})});var nA=Q;c(jc,mb),Uc.prototype={constructor:Uc,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,i,n){return this._rect=new ue(t,e,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,i,n){this.transformTo(t,e,i,n),this._viewRect=new ue(t,e,i,n)},transformTo:function(t,e,i,n){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new ue(t,e,i,n)),o.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),r=this.getZoom();n=Q([],n,t),i=Q([],i,t),e.origin=n,e.position=[i[0]-n[0],i[1]-n[1]],e.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),yt(this.transform||(this.transform=[]),e.transform||mt()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],St(this.invTransform,this.transform),this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,i){var n=e?this._rawTransform:this.transform;return i=i||[],n?nA(i,t,n):H(i,t)},pointToData:function(t){var e=this.invTransform;return e?nA([],t,e):[t[0],t[1]]},convertToPixel:v(Gc,"dataToPoint"),convertFromPixel:v(Gc,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},c(Uc,mb);for(var rA=[126,25],oA=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],aA=0;aA<oA.length;aA++)for(var sA=0;sA<oA[aA].length;sA++)oA[aA][sA][0]/=10.5,oA[aA][sA][1]/=-14,oA[aA][sA][0]+=rA[0],oA[aA][sA][1]+=rA[1];var lA=function(t,e){"china"===t&&e.push(new Xl("南海诸岛",f(oA,function(t){return{type:"polygon",exterior:t}}),rA))},uA={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]},cA=function(t,e){if("china"===t){var i=uA[e.name];if(i){var n=e.center;n[0]+=i[0]/10.5,n[1]+=-i[1]/14}}},hA={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]},dA=function(t,e){if("world"===t){var i=hA[e.name];if(i){var n=e.center;n[0]=i[0],n[1]=i[1]}}},fA=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],pA=function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:fA[0]})},gA=Fi(),mA={load:function(t,e){var i=gA(e).parsed;if(i)return i;var n,r=e.specialAreas||{},o=e.geoJSON;try{n=o?HD(o):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return d(n,function(e){var i=e.name;cA(t,e),dA(t,e),pA(t,e);var n=r[i];n&&e.transformTo(n.left,n.top,n.width,n.height)}),lA(t,n),gA(e).parsed={regions:n,boundingRect:qc(n)}}},vA=Fi(),yA={geoJSON:mA,svg:{load:function(t,e){var i=vA(e).originRoot;if(i)return{root:i,boundingRect:vA(e).boundingRect};var n=Yc(e);return vA(e).originRoot=n.root,vA(e).boundingRect=n.boundingRect,n},makeGraphic:function(t,e,i){var n=vA(e),r=n.rootMap||(n.rootMap=R()),o=r.get(i);if(o)return o;var a=n.originRoot,s=n.boundingRect;return n.originRootHostKey?o=Yc(e,s).root:(n.originRootHostKey=i,o=a),r.set(i,o)},removeGraphic:function(t,e,i){var n=vA(e),r=n.rootMap;r&&r.removeKey(i),i===n.originRootHostKey&&(n.originRootHostKey=null)}}},xA={load:function(t,e){var i,n=[],r=R(),o=R();return d(Zc(t),function(a){var s=yA[a.type].load(t,a);d(s.regions,function(t){var i=t.name;e&&e.hasOwnProperty(i)&&(t=t.cloneShallow(i=e[i])),n.push(t),r.set(i,t),o.set(i,t.center)});var l=s.boundingRect;l&&(i?i.union(l):i=l.clone())}),{regions:n,regionsMap:r,nameCoordMap:o,boundingRect:i||new ue(0,0,0,0)}},makeGraphic:Xc("makeGraphic"),removeGraphic:Xc("removeGraphic")};Kc.prototype={constructor:Kc,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,i=0;i<e.length;i++)if(e[i].contain(t))return!0;return!1},transformTo:function(t,e,i,n){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;if(a.transform=r.calculateTransform(new ue(t,e,i,n)),a.decomposeTransform(),o){var s=a.scale;s[1]=-s[1]}a.updateTransform(),this._updateTransform()},getRegion:function(t){return this._regionsMap.get(t)},getRegionByCoord:function(t){for(var e=this.regions,i=0;i<e.length;i++)if(e[i].contain(t))return e[i]},addGeoCoord:function(t,e){this._nameCoordMap.set(t,e)},getGeoCoord:function(t){return this._nameCoordMap.get(t)},getBoundingRect:function(){return this._rect},dataToPoint:function(t,e,i){if("string"==typeof t&&(t=this.getGeoCoord(t)),t)return Uc.prototype.dataToPoint.call(this,t,e,i)},convertToPixel:v(Jc,"dataToPoint"),convertFromPixel:v(Jc,"pointToData")},c(Kc,Uc);var _A={dimensions:Kc.prototype.dimensions,create:function(t,e){var i=[];t.eachComponent("geo",function(t,n){var r=t.get("map"),o=t.get("aspectScale"),a=!0,s=pM.retrieveMap(r);s&&s[0]&&"svg"===s[0].type?(null==o&&(o=1),a=!1):null==o&&(o=.75);var l=new Kc(r+n,r,t.get("nameMap"),a);l.aspectScale=o,l.zoomLimit=t.get("scaleLimit"),i.push(l),th(l,t),t.coordinateSystem=l,l.model=t,l.resize=Qc,l.resize(t,e)}),t.eachSeries(function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=i[e]}});var n={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();n[e]=n[e]||[],n[e].push(t)}}),d(n,function(t,n){var o=new Kc(n,n,r(f(t,function(t){return t.get("nameMap")})));o.zoomLimit=M.apply(null,f(t,function(t){return t.get("scaleLimit")})),i.push(o),o.resize=Qc,o.aspectScale=t[0].get("aspectScale"),o.resize(t[0],e),d(t,function(t){t.coordinateSystem=o,th(o,t)})}),i},getFilledRegions:function(t,e,i){for(var n=(t||[]).slice(),r=R(),o=0;o<n.length;o++)r.set(n[o].name,n[o]);return d(xA.load(e,i).regions,function(t){var e=t.name;!r.get(e)&&n.push({name:e})}),n}};Ns("geo",_A);var bA=LC.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],init:function(t){bA.superApply(this,"init",arguments),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t){return WI(this,["value"])},mergeOption:function(t){bA.superApply(this,"mergeOption",arguments),this.updateSelectedMap(this._createSelectableList())},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),i=[],n=0,r=t.count();n<r;n++)i.push({name:t.getName(n),value:t.get(e,n),selected:ha(t,n,"selected")});return i=_A.getFilledRegions(i,this.getMapType(),this.option.nameMap)},getHostGeoModel:function(){var t=this.option.geoIndex;return null!=t?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},_fillOption:function(t,e){},getRawValue:function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},getRegionModel:function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},formatTooltip:function(t){for(var e=this.getData(),i=Zr(this.getRawValue(t)),n=e.getName(t),r=this.seriesGroup,o=[],a=0;a<r.length;a++){var s=r[a].originalData.indexOfName(n),l=e.mapDimension("value");isNaN(r[a].originalData.get(l,s))||o.push(Jr(r[a].name))}return o.join(", ")+"<br />"+Jr(n+" : "+i)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}}}});c(bA,$I);var wA="\0_ec_interaction_mutex";Os({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),c(oh,ob);var SA={axisPointer:1,tooltip:1,brush:1};_h.prototype={constructor:_h,draw:function(t,e,i,n,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(e){a||e.getHostGeoModel()!==t||(a=e.getData())});var s=t.coordinateSystem;this._updateBackground(s);var l=this._regionsGroup,u=this.group,c=s.scale,h={position:s.position,scale:c};!l.childAt(0)||r?u.attr(h):br(u,h,t),l.removeAll();var f=["itemStyle"],p=["emphasis","itemStyle"],g=["label"],m=["emphasis","label"],v=R();d(s.regions,function(e){var i=v.get(e.name)||v.set(e.name,new jb),n=new cT({shape:{paths:[]}});i.add(n);var r,s=(A=t.getRegionModel(e.name)||t).getModel(f),u=A.getModel(p),h=vh(s),y=vh(u),x=A.getModel(g),_=A.getModel(m);if(a){r=a.indexOfName(e.name);var b=a.getItemVisual(r,"color",!0);b&&(h.fill=b)}d(e.geometries,function(t){if("polygon"===t.type){n.shape.paths.push(new nT({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)n.shape.paths.push(new nT({shape:{points:t.interiors[e]}}))}}),n.setStyle(h),n.style.strokeNoScale=!0,n.culling=!0;var w=x.get("show"),S=_.get("show"),T=a&&isNaN(a.get(a.mapDimension("value"),r)),C=a&&a.getItemLayout(r);if(o||T&&(w||S)||C&&C.showLabel){var M,D=o?e.name:r;(!a||r>=0)&&(M=t);var I=new XS({position:e.center.slice(),scale:[1/c[0],1/c[1]],z2:10,silent:!0});hr(I.style,I.hoverStyle={},x,_,{labelFetcher:M,labelDataIndex:D,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),i.add(I)}if(a)a.setItemGraphicEl(r,i);else{var A=t.getRegionModel(e.name);n.eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:A&&A.option||{}}}(i.__regions||(i.__regions=[])).push(e),ur(i,y,{hoverSilentOnTouch:!!t.get("selectedMode")}),l.add(i)}),this._updateController(t,e,i),yh(this,t,l,i,n),xh(t,l)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&xA.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&d(xA.makeGraphic(e,this.uid),function(t){this._backgroundGroup.add(t)},this),this._mapName=e},_updateController:function(t,e,i){function n(){var e={type:"geoRoam",componentType:l};return e[l+"Id"]=t.id,e}var r=t.coordinateSystem,a=this._controller,s=this._controllerHost;s.zoomLimit=t.get("scaleLimit"),s.zoom=r.getZoom(),a.enable(t.get("roam")||!1);var l=t.mainType;a.off("pan").on("pan",function(t){this._mouseDownFlag=!1,ph(s,t.dx,t.dy),i.dispatchAction(o(n(),{dx:t.dx,dy:t.dy}))},this),a.off("zoom").on("zoom",function(t){if(this._mouseDownFlag=!1,gh(s,t.scale,t.originX,t.originY),i.dispatchAction(o(n(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse(function(t){"text"===t.type&&t.attr("scale",[1/e[0],1/e[1]])})}},this),a.setPointerChecker(function(e,n,o){return r.getViewRectAfterRoam().contain(n,o)&&!mh(e,i,t)})}},Vs({type:"map",render:function(t,e,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id)(o=this._mapDraw)&&r.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new _h(i,!0);r.add(o.group),o.draw(t,e,i,this,n),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,i){var n=t.originalData,r=this.group;n.each(n.mapDimension("value"),function(e,i){if(!isNaN(e)){var o=n.getItemLayout(i);if(o&&o.point){var a=o.point,s=o.offset,l=new ZS({style:{fill:t.getData().getVisual("color")},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:s?8:10});if(!s){var u=t.mainSeries.getData(),c=n.getName(i),h=u.indexOfName(c),d=n.getItemModel(i),f=d.getModel("label"),p=d.getModel("emphasis.label"),g=u.getItemGraphicEl(h),m=D(t.getFormattedLabel(i,"normal"),c),v=D(t.getFormattedLabel(i,"emphasis"),m),y=function(){var t=dr({},p,{text:p.get("show")?v:null},{isRectText:!0,useInsideStyle:!1},!0);l.style.extendFrom(t),l.__mapOriginalZ2=l.z2,l.z2+=1},x=function(){dr(l.style,f,{text:f.get("show")?m:null,textPosition:f.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),null!=l.__mapOriginalZ2&&(l.z2=l.__mapOriginalZ2,l.__mapOriginalZ2=null)};g.on("mouseover",y).on("mouseout",x).on("emphasis",y).on("normal",x),x()}r.add(l)}}})}}),Os({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(e){var n=e.coordinateSystem;if("geo"===n.type){var r=bh(n,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom),"series"===i&&d(e.seriesGroup,function(t){t.setCenter(r.center),t.setZoom(r.zoom)})}})}),Ls(function(t){var e={};t.eachSeriesByType("map",function(i){var n=i.getMapType();if(!i.getHostGeoModel()&&!e[n]){var r={};d(i.seriesGroup,function(e){var i=e.coordinateSystem,n=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&n.each(n.mapDimension("value"),function(t,e){var o=n.getName(e),a=i.getRegion(o);if(a&&!isNaN(t)){var s=r[o]||0,l=i.dataToPoint(a.center);r[o]=s+1,n.setItemLayout(e,{point:l,offset:s})}})});var o=i.getData();o.each(function(t){var e=o.getName(t),i=o.getItemLayout(t)||{};i.showLabel=!r[e],o.setItemLayout(t,i)}),e[n]=!0}})}),Ps(function(t){t.eachSeriesByType("map",function(t){var e=t.get("color"),i=t.getModel("itemStyle"),n=i.get("areaColor"),r=i.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:n,color:r})})}),Es(CM.PROCESSOR.STATISTIC,function(t){var e={};t.eachSeriesByType("map",function(t){var i=t.getHostGeoModel(),n=i?"o"+i.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),d(e,function(t,e){for(var i=wh(f(t,function(t){return t.getData()}),t[0].get("mapValueCalculation")),n=0;n<t.length;n++)t[n].originalData=t[n].getData();for(n=0;n<t.length;n++)t[n].seriesGroup=t,t[n].needsDrawMap=0===n&&!t[n].getHostGeoModel(),t[n].setData(i.cloneShallow()),t[n].mainSeries=t[0]})}),ks(function(t){var e=[];d(t.series,function(t){t&&"map"===t.type&&(e.push(t),t.map=t.map||t.mapType,a(t,t.mapLocation))})}),GI("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}]);var TA=d,CA="\0__link_datas",MA="\0__link_mainData",DA=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e};DA.prototype={constructor:DA,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,i){"function"==typeof t&&(i=e,e=t,t=null),_(t=t||{})&&(t={order:t});var n,r=t.order||"preorder",o=this[t.attr||"children"];"preorder"===r&&(n=e.call(i,this));for(var a=0;!n&&a<o.length;a++)o[a].eachNode(t,e,i);"postorder"===r&&e.call(i,this)},updateDepthAndHeight:function(t){var e=0;this.depth=t;for(var i=0;i<this.children.length;i++){var n=this.children[i];n.updateDepthAndHeight(t+1),n.height>e&&(e=n.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i.length;e<n;e++){var r=i[e].getNodeById(t);if(r)return r}},contains:function(t){if(t===this)return!0;for(var e=0,i=this.children,n=i.length;e<n;e++){var r=i[e].contains(t);if(r)return r}},getAncestors:function(t){for(var e=[],i=t?this:this.parentNode;i;)e.push(i),i=i.parentNode;return e.reverse(),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e,i=this.hostTree,n=i.data.getItemModel(this.dataIndex),r=this.getLevelModel();return r||0!==this.children.length&&(0===this.children.length||!1!==this.isExpand)||(e=this.getLeavesModel()),n.getModel(t,(r||e||i.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){ return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},Eh.prototype={constructor:Eh,type:"tree",eachNode:function(t,e,i){this.root.eachNode(t,e,i)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e.length;i<n;i++)e[i].dataIndex=-1;for(var i=0,n=t.count();i<n;i++)e[t.getRawIndex(i)].dataIndex=i},clearLayouts:function(){this.data.clearItemLayouts()}},Eh.createTree=function(t,e,i){function n(t,e){var i=t.value;a=Math.max(a,y(i)?i.length:1),o.push(t);var s=new DA(t.name,r);e?Oh(s,e):r.root=s,r._nodes.push(s);var l=t.children;if(l)for(var u=0;u<l.length;u++)n(l[u],s)}var r=new Eh(e,i.levels,i.leaves),o=[],a=1;n(t),r.root.updateDepthAndHeight(0);var s=rD(o,{coordDimensions:["value"],dimensionsCount:a}),l=new eD(s,e);return l.initData(o),Sh({mainData:l,struct:r,structAttr:"tree"}),r.update(),r},LC.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(t){var e={name:t.name,children:t.data},i=t.leaves||{},n={};n.leaves=i;var r=Eh.createTree(e,this,n),o=0;r.eachNode("preorder",function(t){t.depth>o&&(o=t.depth)});var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),r.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,i=e.root.children[0],n=e.getNodeByDataIndex(t),r=n.getValue(),o=n.name;n&&n!==i;)o=n.parentNode.name+"."+o,n=n.parentNode;return Jr(o+(isNaN(r)||null==r?"":" : "+r))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}}),Vs({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new jb,this._controller=new oh(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(t,e,i,n){var r=t.getData(),o=t.layoutInfo,a=this._mainGroup,s=t.get("layout");"radial"===s?a.attr("position",[o.x+o.width/2,o.y+o.height/2]):a.attr("position",[o.x,o.y]),this._updateViewCoordSys(t),this._updateController(t,e,i);var l=this._data,u={expandAndCollapse:t.get("expandAndCollapse"),layout:s,orient:t.getOrient(),curvature:t.get("lineStyle.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};r.diff(l).add(function(e){Gh(r,e)&&Yh(r,e,null,a,t,u)}).update(function(e,i){var n=l.getItemGraphicEl(i);Gh(r,e)?Yh(r,e,n,a,t,u):n&&Xh(l,i,n,a,t,u)}).remove(function(e){var i=l.getItemGraphicEl(e);i&&Xh(l,e,i,a,t,u)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===u.expandAndCollapse&&r.eachItemGraphicEl(function(e,n){e.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:n})})}),this._data=r},_updateViewCoordSys:function(t){var e=t.getData(),i=[];e.each(function(t){var n=e.getItemLayout(t);!n||isNaN(n.x)||isNaN(n.y)||i.push([+n.x,+n.y])});var n=[],r=[];dn(i,n,r),r[0]-n[0]==0&&(r[0]+=1,n[0]-=1),r[1]-n[1]==0&&(r[1]+=1,n[1]-=1);var o=t.coordinateSystem=new Uc;o.zoomLimit=t.get("scaleLimit"),o.setBoundingRect(n[0],n[1],r[0]-n[0],r[1]-n[1]),o.setCenter(t.get("center")),o.setZoom(t.get("zoom")),this.group.attr({position:o.position,scale:o.scale}),this._viewCoordSys=o},_updateController:function(t,e,i){var n=this._controller,r=this._controllerHost,o=this.group;n.setPointerChecker(function(e,n,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(n,r)&&!mh(e,i,t)}),n.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",function(e){ph(r,e.dx,e.dy),i.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})},this).on("zoom",function(e){gh(r,e.scale,e.originX,e.originY),i.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(t)},this)},_updateNodeAndLinkScale:function(t){var e=t.getData(),i=this._getNodeGlobalScale(t),n=[i,i];e.eachItemGraphicEl(function(t,e){t.attr("scale",n)})},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var i=this._nodeScaleRatio,n=e.scale,r=n&&n[0]||1;return((e.getZoom()-1)*i+1)/r},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}}),Os({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var i=t.dataIndex,n=e.getData().tree.getNodeByDataIndex(i);n.isExpand=!n.isExpand})}),Os({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(e){var i=bh(e.coordinateSystem,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)})}),Ps(cI("tree","circle")),Ls(function(t,e){t.eachSeriesByType("tree",function(t){Qh(t,e)})}),LC.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var i={name:t.name,children:t.data};rd(i);var n=t.levels||[];n=t.levels=od(n,e);var r={};return r.levels=n,Eh.createTree(i,this,r).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=Zr(y(i)?i[0]:i);return Jr(e.getName(t)+": "+n)},getDataParams:function(t){var e=LC.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=nd(i,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},o(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=R(),this._idIndexMapCount=0);var i=e.get(t);return null==i&&e.set(t,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});var IA=5;ad.prototype={constructor:ad,render:function(t,e,i,n){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&i){var a=r.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,l,s),this._renderContent(t,l,a,s,n),lo(o,l.pos,l.box)}},_prepare:function(t,e,i){for(var n=t;n;n=n.parentNode){var r=n.getModel().get("name"),o=i.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:n,text:r,width:a})}},_renderContent:function(t,e,i,n,r){for(var o=0,s=e.emptyItemWidth,l=t.get("breadcrumb.height"),u=ao(e.pos,e.box),c=e.totalWidth,h=e.renderList,d=h.length-1;d>=0;d--){var f=h[d],p=f.node,g=f.width,m=f.text;c>u.width&&(c-=g-s,g=s,m=null);var y=new nT({shape:{points:sd(o,0,g,l,d===h.length-1,0===d)},style:a(i.getItemStyle(),{lineJoin:"bevel",text:m,textFill:n.getTextColor(),textFont:n.getFont()}),z:10,onclick:v(r,p)});this.group.add(y),ld(y,t,p),o+=g+8}},remove:function(){this.group.removeAll()}};var AA=m,kA=jb,EA=oT,OA=d,NA=["label"],LA=["emphasis","label"],PA=["upperLabel"],RA=["emphasis","upperLabel"],zA=10,FA=1,BA=2,HA=Ww([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),VA=function(t){var e=HA(t);return e.stroke=e.fill=e.lineWidth=null,e};Vs({type:"treemap",init:function(t,e){this._containerGroup,this._storage={nodeGroup:[],background:[],content:[]},this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,e,i,n){if(!(l(e.findComponents({mainType:"series",subType:"treemap",query:n}),t)<0)){this.seriesModel=t,this.api=i,this.ecModel=e;var r=td(n,["treemapZoomToNode","treemapRootToNode"],t),o=n&&n.type,a=t.layoutInfo,s=!this._oldTree,u=this._storage,c="treemapRootToNode"===o&&r&&u?{rootNodeGroup:u.nodeGroup[r.node.getRawIndex()],direction:n.direction}:null,h=this._giveContainerGroup(a),d=this._doRender(h,t,c);s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?d.renderFinally():this._doAnimation(h,d,t,c),this._resetController(i),this._renderBreadcrumb(t,i,r)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new kA,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,i){function n(t,e,i,r,o){function a(t){return t.getId()}function s(a,s){var l=null!=a?t[a]:null,u=null!=s?e[s]:null,h=c(l,u,i,o);h&&n(l&&l.viewChildren||[],u&&u.viewChildren||[],h,r,o+1)}r?(e=t,OA(t,function(t,e){!t.isRemoved()&&s(e,e)})):new $s(e,t,a,a).add(s).update(s).remove(v(s,null)).execute()}var r=e.getData().tree,o=this._oldTree,a={nodeGroup:[],background:[],content:[]},s={nodeGroup:[],background:[],content:[]},l=this._storage,u=[],c=v(cd,e,s,l,i,a,u);n(r.root?[r.root]:[],o&&o.root?[o.root]:[],t,r===o||!o,0);var h=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&OA(t,function(t,i){var n=e[i];OA(t,function(t){t&&(n.push(t),t.__tmWillDelete=1)})}),e}(l);return this._oldTree=r,this._storage=s,{lastsForAnimation:a,willDeleteEls:h,renderFinally:function(){OA(h,function(t){OA(t,function(t){t.parent&&t.parent.remove(t)})}),OA(u,function(t){t.invisible=!0,t.dirty()})}}},_doAnimation:function(t,e,i,n){if(i.get("animation")){var r=i.get("animationDurationUpdate"),a=i.get("animationEasing"),s=ud();OA(e.willDeleteEls,function(t,e){OA(t,function(t,i){if(!t.invisible){var o,l=t.parent;if(n&&"drillDown"===n.direction)o=l===n.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,c=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,c=l.__tmNodeHeight/2),o="nodeGroup"===e?{position:[u,c],style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}o&&s.add(t,o,r,a)}})}),OA(this._storage,function(t,i){OA(t,function(t,n){var l=e.lastsForAnimation[i][n],u={};l&&("nodeGroup"===i?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=o({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),s.add(t,u,r,a))})},this),this._state="animating",s.done(AA(function(){this._state="ready",e.renderFinally()},this)).start()}},_resetController:function(t){var e=this._controller;e||((e=this._controller=new oh(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",AA(this._onPan,this)),e.on("zoom",AA(this._onZoom,this)));var i=new ue(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,n){return i.contain(e,n)})},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var i=e.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},_onZoom:function(t){var e=t.originX,i=t.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var r=n.getLayout();if(!r)return;var o=new ue(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,i-=a.y;var s=mt();_t(s,s,[-e,-i]),wt(s,s,[t.scale,t.scale]),_t(s,s,[e,i]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){t.on("click",function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var i=this.findTarget(t.offsetX,t.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===e)this._zoomToNode(i);else if("link"===e){var r=n.hostTree.data.getItemModel(n.dataIndex),o=r.get("link",!0),a=r.get("target",!0)||"blank";o&&window.open(o,a)}}}}},this)},_renderBreadcrumb:function(t,e,i){i||(i=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(i={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new ad(this.group))).render(t,e,i.node,AA(function(e){"animating"!==this._state&&(id(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))},this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var i;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(n){var r=this._storage.background[n.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;i={node:n,offsetX:o[0],offsetY:o[1]}}},this),i}});for(var WA=["treemapZoomToNode","treemapRender","treemapMove"],$A=0;$A<WA.length;$A++)Os({type:WA[$A],update:"updateView"},function(){});Os({type:"treemapRootToNode",update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},function(e,i){var n=td(t,["treemapZoomToNode","treemapRootToNode"],e);if(n){var r=e.getViewRoot();r&&(t.direction=id(r,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node)}})});var jA=d,UA=b,GA=-1,qA=function(t){var e=t.mappingMethod,n=t.type,r=this.option=i(t);this.type=n,this.mappingMethod=e,this._normalizeData=XA[e];var o=YA[n];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._doMap=o._doMap[e],"piecewise"===e?(pd(r),dd(r)):"category"===e?r.categories?fd(r):pd(r,!0):(E("linear"!==e||r.dataExtent),pd(r))};qA.prototype={constructor:qA,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return m(this._normalizeData,this)}};var YA=qA.visualHandlers={color:{applyVisual:vd("color"),getColorMapper:function(){var t=this.option;return m("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),yd.call(this,t)}:function(e,i,n){var r=!!n;return!i&&(e=this._normalizeData(e)),n=Wt(e,t.parsedVisual,n),r?n:Gt(n,"rgba")},this)},_doMap:{linear:function(t){return Gt(Wt(t,this.option.parsedVisual),"rgba")},category:yd,piecewise:function(t,e){var i=bd.call(this,e);return null==i&&(i=Gt(Wt(t,this.option.parsedVisual),"rgba")),i},fixed:xd}},colorHue:gd(function(t,e){return jt(t,e)}),colorSaturation:gd(function(t,e){return jt(t,null,e)}),colorLightness:gd(function(t,e){return jt(t,null,null,e)}),colorAlpha:gd(function(t,e){return Ut(t,e)}),opacity:{applyVisual:vd("opacity"),_doMap:_d([0,1])},liftZ:{applyVisual:vd("liftZ"),_doMap:{linear:xd,category:xd,piecewise:xd,fixed:xd}},symbol:{applyVisual:function(t,e,i){var n=this.mapValueToVisual(t);if(_(n))i("symbol",n);else if(UA(n))for(var r in n)n.hasOwnProperty(r)&&i(r,n[r])},_doMap:{linear:md,category:yd,piecewise:function(t,e){var i=bd.call(this,e);return null==i&&(i=md.call(this,t)),i},fixed:xd}},symbolSize:{applyVisual:vd("symbolSize"),_doMap:_d([0,1])}},XA={linear:function(t){return Lr(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,i=qA.findPieceIndex(t,e,!0);if(null!=i)return Lr(i,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?GA:e},fixed:F};qA.listVisualTypes=function(){var t=[];return d(YA,function(e,i){t.push(i)}),t},qA.addVisualHandler=function(t,e){YA[t]=e},qA.isValidType=function(t){return YA.hasOwnProperty(t)},qA.eachVisual=function(t,e,i){b(t)?d(t,e,i):e.call(i,t)},qA.mapVisual=function(t,e,i){var n,r=y(t)?[]:b(t)?{}:(n=!0,null);return qA.eachVisual(t,function(t,o){var a=e.call(i,t,o);n?r=a:r[o]=a}),r},qA.retrieveVisuals=function(t){var e,i={};return t&&jA(YA,function(n,r){t.hasOwnProperty(r)&&(i[r]=t[r],e=!0)}),e?i:null},qA.prepareVisualTypes=function(t){if(UA(t)){var e=[];jA(t,function(t,i){e.push(i)}),t=e}else{if(!y(t))return[];t=t.slice()}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},qA.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},qA.findPieceIndex=function(t,e,i){function n(e,i){var n=Math.abs(e-t);n<o&&(o=n,r=i)}for(var r,o=1/0,a=0,s=e.length;a<s;a++){var l=e[a].value;if(null!=l){if(l===t||"string"==typeof l&&l===t+"")return a;i&&n(l,a)}}for(var a=0,s=e.length;a<s;a++){var u=e[a],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(Sd(h[1],t,c[1]))return a}else if(c[1]===1/0){if(Sd(h[0],c[0],t))return a}else if(Sd(h[0],c[0],t)&&Sd(h[1],t,c[1]))return a;i&&n(c[0],a),i&&n(c[1],a)}}if(i)return t===1/0?e.length-1:t===-1/0?0:r};var ZA=y,KA="itemStyle",JA={seriesType:"treemap",reset:function(t,e,i,n){var r=t.getData().tree,o=r.root,a=t.getModel(KA);o.isRemoved()||Td(o,{},f(r.levelModels,function(t){return t?t.get(KA):null}),a,t.getViewRoot().getAncestors(),t)}},QA=Math.max,tk=Math.min,ek=M,ik=d,nk=["itemStyle","borderWidth"],rk=["itemStyle","gapWidth"],ok=["upperLabel","show"],ak=["upperLabel","height"],sk={seriesType:"treemap",reset:function(t,e,i,n){var r=i.getWidth(),a=i.getHeight(),s=t.option,l=so(t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}),u=s.size||[],c=Pr(ek(l.width,u[0]),r),h=Pr(ek(l.height,u[1]),a),d=n&&n.type,f=td(n,["treemapZoomToNode","treemapRootToNode"],t),p="treemapRender"===d||"treemapMove"===d?n.rootRect:null,g=t.getViewRoot(),m=ed(g);if("treemapMove"!==d){var v="treemapZoomToNode"===d?Bd(t,f,g,c,h):p?[p.width,p.height]:[c,h],y=s.sort;y&&"asc"!==y&&"desc"!==y&&(y="desc");var x={squareRatio:s.squareRatio,sort:y,leafDepth:s.leafDepth};g.hostTree.clearLayouts(),_={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]},g.setLayout(_),Od(g,x,!1,0);var _=g.getLayout();ik(m,function(t,e){var i=(m[e+1]||g).getValue();t.setLayout(o({dataExtent:[i,i],borderWidth:0,upperHeight:0},_))})}var b=t.getData().tree.root;b.setLayout(Hd(l,p,f),!0),t.setLayoutInfo(l),Vd(b,new ue(-l.x,-l.y,r,a),m,g,0)}};Ps(JA),Ls(sk);var lk=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},uk=lk.prototype;uk.type="graph",uk.isDirected=function(){return this._directed},uk.addNode=function(t,e){t=t||""+e;var i=this._nodesMap;if(!i[$d(t)]){var n=new jd(t,e);return n.hostGraph=this,this.nodes.push(n),i[$d(t)]=n,n}},uk.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},uk.getNodeById=function(t){return this._nodesMap[$d(t)]},uk.addEdge=function(t,e,i){var n=this._nodesMap,r=this._edgesMap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),jd.isInstance(t)||(t=n[$d(t)]),jd.isInstance(e)||(e=n[$d(e)]),t&&e){var o=t.id+"-"+e.id;if(!r[o]){var a=new Ud(t,e,i);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}}},uk.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},uk.getEdge=function(t,e){jd.isInstance(t)&&(t=t.id),jd.isInstance(e)&&(e=e.id);var i=this._edgesMap;return this._directed?i[t+"-"+e]:i[t+"-"+e]||i[e+"-"+t]},uk.eachNode=function(t,e){for(var i=this.nodes,n=i.length,r=0;r<n;r++)i[r].dataIndex>=0&&t.call(e,i[r],r)},uk.eachEdge=function(t,e){for(var i=this.edges,n=i.length,r=0;r<n;r++)i[r].dataIndex>=0&&i[r].node1.dataIndex>=0&&i[r].node2.dataIndex>=0&&t.call(e,i[r],r)},uk.breadthFirstTraverse=function(t,e,i,n){if(jd.isInstance(e)||(e=this._nodesMap[$d(e)]),e){for(var r="out"===i?"outEdges":"in"===i?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(n,e,null))for(var a=[e];a.length;)for(var s=a.shift(),l=s[r],o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(n,c,s))return;a.push(c),c.__visited=!0}}}},uk.update=function(){for(var t=this.data,e=this.edgeData,i=this.nodes,n=this.edges,r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(var r=0,o=t.count();r<o;r++)i[t.getRawIndex(r)].dataIndex=r;e.filterSelf(function(t){var i=n[e.getRawIndex(t)];return i.node1.dataIndex>=0&&i.node2.dataIndex>=0});for(var r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(var r=0,o=e.count();r<o;r++)n[e.getRawIndex(r)].dataIndex=r},uk.clone=function(){for(var t=new lk(this._directed),e=this.nodes,i=this.edges,n=0;n<e.length;n++)t.addNode(e[n].id,e[n].dataIndex);for(n=0;n<i.length;n++){var r=i[n];t.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return t},jd.prototype={constructor:jd,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)}},Ud.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)};var ck=function(t,e){return{getValue:function(i){var n=this[t][e];return n.get(n.getDimension(i||"value"),this.dataIndex)},setVisual:function(i,n){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[t][e].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};c(jd,ck("hostGraph","data")),c(Ud,ck("hostGraph","edgeData")),lk.Node=jd,lk.Edge=Ud,qi(jd),qi(Ud);var hk=function(t,e,i,n,r){for(var o=new lk(n),a=0;a<t.length;a++)o.addNode(M(t[a].id,t[a].name,a),a);for(var s=[],u=[],c=0,a=0;a<e.length;a++){var h=e[a],d=h.source,f=h.target;o.addEdge(d,f,c)&&(u.push(h),s.push(M(h.id,d+" > "+f)),c++)}var p,g=i.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)p=dl(t,i);else{var m=Fo.get(g),v=m&&"view"!==m.type?m.dimensions||[]:[];l(v,"value")<0&&v.concat(["value"]);var y=rD(t,{coordDimensions:v});(p=new eD(y,i)).initData(t)}var x=new eD(["value"],i);return x.initData(u,s),r&&r(p,x),Sh({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o},dk=Hs({type:"series.graph",init:function(t){dk.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){dk.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){dk.superApply(this,"mergeDefaultAndTheme",arguments),Ai(t,["edgeLabel"],["show"])},getInitialData:function(t,e){var i=t.edges||t.links||[],n=t.data||t.nodes||[],r=this;if(n&&i)return hk(n,i,this,!0,function(t,i){function n(t){return(t=this.parsePath(t))&&"label"===t[0]?a:t&&"emphasis"===t[0]&&"label"===t[1]?l:this.parentModel}t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var o=r.getModel("edgeLabel"),a=new Ar({label:o.option},o.parentModel,e),s=r.getModel("emphasis.edgeLabel"),l=new Ar({emphasis:{label:s.option}},s.parentModel,e);i.wrapMethod("getItemModel",function(t){return t.customizeGetParent(n),t})}).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getData(),r=this.getDataParams(t,i),o=n.graph.getEdgeByIndex(t),a=n.getName(o.node1.dataIndex),s=n.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),l=Jr(l.join(" > ")),r.value&&(l+=" : "+Jr(r.value)),l}return dk.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=f(this.option.categories||[],function(t){return null!=t.value?t:o({value:0},t)}),e=new eD(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return dk.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),fk=aT.prototype,pk=lT.prototype,gk=Vn({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(Gd(e)?fk:pk).buildPath(t,e)},pointAt:function(t){return Gd(this.shape)?fk.pointAt.call(this,t):pk.pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,i=Gd(e)?[e.x2-e.x1,e.y2-e.y1]:pk.tangentAt.call(this,t);return X(i,i)}}),mk=["fromSymbol","toSymbol"],vk=Kd.prototype;vk.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.childOfName("label");if(e||i||!n.ignore){for(var r=1,o=this.parent;o;)o.scale&&(r/=o.scale[0]),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=U([],u,l);if(X(c,c),e&&(e.attr("position",l),h=a.tangentAt(0),e.attr("rotation",Math.PI/2-Math.atan2(h[1],h[0])),e.attr("scale",[r*s,r*s])),i){i.attr("position",u);var h=a.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(h[1],h[0])),i.attr("scale",[r*s,r*s])}if(!n.ignore){n.attr("position",u);var d,f,p,g=5*r;if("end"===n.__position)d=[c[0]*g+u[0],c[1]*g+u[1]],f=c[0]>.8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";else if("middle"===n.__position){var m=s/2,v=[(h=a.tangentAt(m))[1],-h[0]],y=a.pointAt(m);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]),d=[y[0]+v[0]*g,y[1]+v[1]*g],f="center",p="bottom";var x=-Math.atan2(h[1],h[0]);u[0]<l[0]&&(x=Math.PI+x),n.attr("rotation",x)}else d=[-c[0]*g+l[0],-c[1]*g+l[1]],f=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";n.attr({style:{textVerticalAlign:n.__verticalAlign||p,textAlign:n.__textAlign||f},position:d,scale:[r,r]})}}}},vk._createLine=function(t,e,i){var n=t.hostModel,r=Xd(t.getItemLayout(e));r.shape.percent=0,wr(r,{shape:{percent:1}},n,e),this.add(r);var o=new XS({name:"label"});this.add(o),d(mk,function(i){var n=Yd(i,t,e);this.add(n),this[qd(i)]=t.getItemVisual(e,i)},this),this._updateCommonStl(t,e,i)},vk.updateData=function(t,e,i){var n=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};Zd(a.shape,o),br(r,a,n,e),d(mk,function(i){var n=t.getItemVisual(e,i),r=qd(i);if(this[r]!==n){this.remove(this.childOfName(i));var o=Yd(i,t,e);this.add(o)}this[r]=n},this),this._updateCommonStl(t,e,i)},vk._updateCommonStl=function(t,e,i){var n=t.hostModel,r=this.childOfName("line"),o=i&&i.lineStyle,s=i&&i.hoverLineStyle,l=i&&i.labelModel,u=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var c=t.getItemModel(e);o=c.getModel("lineStyle").getLineStyle(),s=c.getModel("emphasis.lineStyle").getLineStyle(),l=c.getModel("label"),u=c.getModel("emphasis.label")}var h=t.getItemVisual(e,"color"),f=I(t.getItemVisual(e,"opacity"),o.opacity,1);r.useStyle(a({strokeNoScale:!0,fill:"none",stroke:h,opacity:f},o)),r.hoverStyle=s,d(mk,function(t){var e=this.childOfName(t);e&&(e.setColor(h),e.setStyle({opacity:f}))},this);var p,g,m=l.getShallow("show"),v=u.getShallow("show"),y=this.childOfName("label");if((m||v)&&(p=h||"#000",null==(g=n.getFormattedLabel(e,"normal",t.dataType)))){var x=n.getRawValue(e);g=null==x?t.getName(e):isFinite(x)?Rr(x):x}var _=m?g:null,b=v?D(n.getFormattedLabel(e,"emphasis",t.dataType),g):null,w=y.style;null==_&&null==b||(dr(y.style,l,{text:_},{autoColor:p}),y.__textAlign=w.textAlign,y.__verticalAlign=w.textVerticalAlign,y.__position=l.get("position")||"middle"),y.hoverStyle=null!=b?{text:b,textFill:u.getTextColor(!0),fontStyle:u.getShallow("fontStyle"),fontWeight:u.getShallow("fontWeight"),fontSize:u.getShallow("fontSize"),fontFamily:u.getShallow("fontFamily")}:{text:null},y.ignore=!m&&!v,ur(this)},vk.highlight=function(){this.trigger("emphasis")},vk.downplay=function(){this.trigger("normal")},vk.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},vk.setLinePoints=function(t){var e=this.childOfName("line");Zd(e.shape,t),e.dirty()},u(Kd,jb);var yk=Jd.prototype;yk.isPersistent=function(){return!0},yk.updateData=function(t){var e=this,i=e.group,n=e._lineData;e._lineData=t,n||i.removeAll();var r=ef(t);t.diff(n).add(function(i){Qd(e,t,i,r)}).update(function(i,o){tf(e,n,t,o,i,r)}).remove(function(t){i.remove(n.getItemGraphicEl(t))}).execute()},yk.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,i){e.updateLayout(t,i)},this)},yk.incrementalPrepareUpdate=function(t){this._seriesScope=ef(t),this._lineData=null,this.group.removeAll()},yk.incrementalUpdate=function(t,e){for(var i=t.start;i<t.end;i++)if(rf(e.getItemLayout(i))){var n=new this._ctor(e,i,this._seriesScope);n.traverse(function(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}), this.group.add(n),e.setItemGraphicEl(i,n)}},yk.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},yk._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var xk=[],_k=[],bk=[],wk=an,Sk=ib,Tk=Math.abs,Ck=function(t,e){function i(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),e}var n=[],r=cn,o=[[],[],[]],a=[[],[]],s=[];e/=2,t.eachEdge(function(t,l){var u=t.getLayout(),c=t.getVisual("fromSymbol"),h=t.getVisual("toSymbol");u.__original||(u.__original=[V(u[0]),V(u[1])],u[2]&&u.__original.push(V(u[2])));var d=u.__original;if(null!=u[2]){if(H(o[0],d[0]),H(o[1],d[2]),H(o[2],d[1]),c&&"none"!==c){var f=i(t.node1),p=of(o,d[0],f*e);r(o[0][0],o[1][0],o[2][0],p,n),o[0][0]=n[3],o[1][0]=n[4],r(o[0][1],o[1][1],o[2][1],p,n),o[0][1]=n[3],o[1][1]=n[4]}if(h&&"none"!==h){var f=i(t.node2),p=of(o,d[1],f*e);r(o[0][0],o[1][0],o[2][0],p,n),o[1][0]=n[1],o[2][0]=n[2],r(o[0][1],o[1][1],o[2][1],p,n),o[1][1]=n[1],o[2][1]=n[2]}H(u[0],o[0]),H(u[1],o[2]),H(u[2],o[1])}else H(a[0],d[0]),H(a[1],d[1]),U(s,a[1],a[0]),X(s,s),c&&"none"!==c&&(f=i(t.node1),j(a[0],a[0],s,f*e)),h&&"none"!==h&&(f=i(t.node2),j(a[1],a[1],s,-f*e)),H(u[0],a[0]),H(u[1],a[1])})},Mk=["itemStyle","opacity"],Dk=["lineStyle","opacity"];Vs({type:"graph",init:function(t,e){var i=new Su,n=new Jd,r=this.group;this._controller=new oh(e.getZr()),this._controllerHost={target:r},r.add(i.group),r.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},render:function(t,e,i){var n=t.coordinateSystem;this._model=t,this._nodeScaleRatio=t.get("nodeScaleRatio");var r=this._symbolDraw,o=this._lineDraw,a=this.group;if("view"===n.type){var s={position:n.position,scale:n.scale};this._firstRender?a.attr(s):br(a,s,t)}Ck(t.getGraph(),this._getNodeGlobalScale(t));var l=t.getData();r.updateData(l);var u=t.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(t,e,i),clearTimeout(this._layoutTimeout);var c=t.forceLayout,h=t.get("force.layoutAnimation");c&&this._startForceLayoutIteration(c,h),l.eachItemGraphicEl(function(e,n){var r=l.getItemModel(n);e.off("drag").off("dragend");var o=r.get("draggable");o&&e.on("drag",function(){c&&(c.warmUp(),!this._layouting&&this._startForceLayoutIteration(c,h),c.setFixed(n),l.setItemLayout(n,e.position))},this).on("dragend",function(){c&&c.setUnfixed(n)},this),e.setDraggable(o&&c),e.off("mouseover",e.__focusNodeAdjacency),e.off("mouseout",e.__unfocusNodeAdjacency),r.get("focusNodeAdjacency")&&(e.on("mouseover",e.__focusNodeAdjacency=function(){i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e.__unfocusNodeAdjacency=function(){i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))},this),l.graph.eachEdge(function(e){var n=e.getGraphicEl();n.off("mouseover",n.__focusNodeAdjacency),n.off("mouseout",n.__unfocusNodeAdjacency),e.getModel().get("focusNodeAdjacency")&&(n.on("mouseover",n.__focusNodeAdjacency=function(){i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),n.on("mouseout",n.__unfocusNodeAdjacency=function(){i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))});var d="circular"===t.get("layout")&&t.get("circular.rotateLabel"),f=l.getLayout("cx"),p=l.getLayout("cy");l.eachItemGraphicEl(function(t,e){var i=t.getSymbolPath();if(d){var n=l.getItemLayout(e),r=Math.atan2(n[1]-p,n[0]-f);r<0&&(r=2*Math.PI+r);var o=n[0]<f;o&&(r-=Math.PI);var a=o?"left":"right";i.setStyle({textRotation:-r,textPosition:a,textOrigin:"center"}),i.hoverStyle&&(i.hoverStyle.textPosition=a)}else i.setStyle({textRotation:0})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},focusNodeAdjacency:function(t,e,i,n){var r=this._model.getData().graph,o=n.dataIndex,a=n.edgeDataIndex,s=r.getNodeByIndex(o),l=r.getEdgeByIndex(a);(s||l)&&(r.eachNode(function(t){sf(t,Mk,.1)}),r.eachEdge(function(t){sf(t,Dk,.1)}),s&&(lf(s,Mk),d(s.edges,function(t){t.dataIndex<0||(lf(t,Dk),lf(t.node1,Mk),lf(t.node2,Mk))})),l&&(lf(l,Dk),lf(l.node1,Mk),lf(l.node2,Mk)))},unfocusNodeAdjacency:function(t,e,i,n){var r=this._model.getData().graph;r.eachNode(function(t){sf(t,Mk)}),r.eachEdge(function(t){sf(t,Dk)})},_startForceLayoutIteration:function(t,e){var i=this;!function n(){t.step(function(t){i.updateLayout(i._model),(i._layouting=!t)&&(e?i._layoutTimeout=setTimeout(n,16):n())})}()},_updateController:function(t,e,i){var n=this._controller,r=this._controllerHost,o=this.group;n.setPointerChecker(function(e,n,r){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(n,r)&&!mh(e,i,t)}),"view"===t.coordinateSystem.type?(n.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",function(e){ph(r,e.dx,e.dy),i.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})}).on("zoom",function(e){gh(r,e.scale,e.originX,e.originY),i.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(),Ck(t.getGraph(),this._getNodeGlobalScale(t)),this._lineDraw.updateLayout()},this)):n.disable()},_updateNodeAndLinkScale:function(){var t=this._model,e=t.getData(),i=this._getNodeGlobalScale(t),n=[i,i];e.eachItemGraphicEl(function(t,e){t.attr("scale",n)})},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var i=this._nodeScaleRatio,n=e.scale,r=n&&n[0]||1;return((e.getZoom()-1)*i+1)/r},updateLayout:function(t){Ck(t.getGraph(),this._getNodeGlobalScale(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}}),Os({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),Os({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){}),Os({type:"graphRoam",event:"graphRoam",update:"none"},function(t,e){e.eachComponent({mainType:"series",query:t},function(e){var i=bh(e.coordinateSystem,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)})});var Ik=j;Es(function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",function(t){var i=t.getCategoriesData(),n=t.getGraph().data,r=i.mapArray(i.getName);n.filterSelf(function(t){var i=n.getItemModel(t).getShallow("category");if(null!=i){"number"==typeof i&&(i=r[i]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(i))return!1}return!0})},this)}),Ps(cI("graph","circle",null)),Ps(function(t){var e={};t.eachSeriesByType("graph",function(t){var i=t.getCategoriesData(),n=t.getData(),r={};i.each(function(n){var o=i.getName(n);r["ec-"+o]=n;var a=i.getItemModel(n).get("itemStyle.color")||t.getColorFromPalette(o,e);i.setItemVisual(n,"color",a)}),i.count()&&n.each(function(t){var e=n.getItemModel(t).getShallow("category");null!=e&&("string"==typeof e&&(e=r["ec-"+e]),n.getItemVisual(t,"color",!0)||n.setItemVisual(t,"color",i.getItemVisual(e,"color")))})})}),Ps(function(t){t.eachSeriesByType("graph",function(t){var e=t.getGraph(),i=t.getEdgeData(),n=uf(t.get("edgeSymbol")),r=uf(t.get("edgeSymbolSize")),o="lineStyle.color".split("."),a="lineStyle.opacity".split(".");i.setVisual("fromSymbol",n&&n[0]),i.setVisual("toSymbol",n&&n[1]),i.setVisual("fromSymbolSize",r&&r[0]),i.setVisual("toSymbolSize",r&&r[1]),i.setVisual("color",t.get(o)),i.setVisual("opacity",t.get(a)),i.each(function(t){var n=i.getItemModel(t),r=e.getEdgeByIndex(t),s=uf(n.getShallow("symbol",!0)),l=uf(n.getShallow("symbolSize",!0)),u=n.get(o),c=n.get(a);switch(u){case"source":u=r.node1.getVisual("color");break;case"target":u=r.node2.getVisual("color")}s[0]&&r.setVisual("fromSymbol",s[0]),s[1]&&r.setVisual("toSymbol",s[1]),l[0]&&r.setVisual("fromSymbolSize",l[0]),l[1]&&r.setVisual("toSymbolSize",l[1]),r.setVisual("color",u),r.setVisual("opacity",c)})})}),Ls(function(t,e){t.eachSeriesByType("graph",function(t){var e=t.get("layout"),i=t.coordinateSystem;if(i&&"view"!==i.type){var n=t.getData(),r=[];d(i.dimensions,function(t){r=r.concat(n.mapDimension(t,!0))});for(var o=0;o<n.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var u=n.get(r[l],o);isNaN(u)||(s=!0),a.push(u)}s?n.setItemLayout(o,i.dataToPoint(a)):n.setItemLayout(o,[NaN,NaN])}hf(n.graph)}else e&&"none"!==e||cf(t)})}),Ls(function(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&df(t)})}),Ls(function(t){t.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var i=t.preservedPoints||{},n=t.getGraph(),r=n.data,o=n.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?r.each(function(t){var e=r.getId(t);r.setItemLayout(t,i[e]||[NaN,NaN])}):s&&"none"!==s?"circular"===s&&df(t):cf(t);var l=r.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),h=a.get("edgeLength");y(c)||(c=[c,c]),y(h)||(h=[h,h]),h=[h[1],h[0]];var d=r.mapArray("value",function(t,e){var i=r.getItemLayout(e),n=Lr(t,l,c);return isNaN(n)&&(n=(c[0]+c[1])/2),{w:n,rep:n,fixed:r.getItemModel(e).get("fixed"),p:!i||isNaN(i[0])||isNaN(i[1])?null:i}}),f=o.mapArray("value",function(t,e){var i=n.getEdgeByIndex(e),r=Lr(t,u,h);return isNaN(r)&&(r=(h[0]+h[1])/2),{n1:d[i.node1.dataIndex],n2:d[i.node2.dataIndex],d:r,curveness:i.getModel().get("lineStyle.curveness")||0}}),p=(e=t.coordinateSystem).getBoundingRect(),g=ff(d,f,{rect:p,gravity:a.get("gravity")}),m=g.step;g.step=function(t){for(var e=0,o=d.length;e<o;e++)d[e].fixed&&H(d[e].p,n.getNodeByIndex(e).getLayout());m(function(e,o,a){for(var s=0,l=e.length;s<l;s++)e[s].fixed||n.getNodeByIndex(s).setLayout(e[s].p),i[r.getId(s)]=e[s].p;for(var s=0,l=o.length;s<l;s++){var u=o[s],c=n.getEdgeByIndex(s),h=u.n1.p,d=u.n2.p,f=c.getLayout();(f=f?f.slice():[])[0]=f[0]||[],f[1]=f[1]||[],H(f[0],h),H(f[1],d),+u.curveness&&(f[2]=[(h[0]+d[0])/2-(h[1]-d[1])*u.curveness,(h[1]+d[1])/2-(d[0]-h[0])*u.curveness]),c.setLayout(f)}t&&t(a)})},t.forceLayout=g,t.preservedPoints=i,g.step()}else t.forceLayout=null})}),Ns("graphView",{create:function(t,e){var i=[];return t.eachSeriesByType("graph",function(t){var n=t.get("coordinateSystem");if(!n||"view"===n){var r=t.getData(),o=[],a=[];dn(r.mapArray(function(t){var e=r.getItemModel(t);return[+e.get("x"),+e.get("y")]}),o,a),a[0]-o[0]==0&&(a[0]+=1,o[0]-=1),a[1]-o[1]==0&&(a[1]+=1,o[1]-=1);var s=(a[0]-o[0])/(a[1]-o[1]),l=pf(t,e,s);isNaN(s)&&(o=[l.x,l.y],a=[l.x+l.width,l.y+l.height]);var u=a[0]-o[0],c=a[1]-o[1],h=l.width,d=l.height,f=t.coordinateSystem=new Uc;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],u,c),f.setViewRect(l.x,l.y,h,d),f.setCenter(t.get("center")),f.setZoom(t.get("zoom")),i.push(f)}}),i}}),LC.extend({type:"series.gauge",getInitialData:function(t,e){var i=t.data||[];return y(i)||(i=[i]),t.data=i,WI(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}});var Ak=En.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var i=Math.cos,n=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-i(a)*o*(o>=r/3?1:2),l=e.y-n(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(a)*o,e.y+n(a)*o),t.lineTo(e.x+i(e.angle)*r,e.y+n(e.angle)*r),t.lineTo(e.x-i(a)*o,e.y-n(a)*o),t.lineTo(s,l)}}),kk=2*Math.PI,Ek=(Ta.extend({type:"gauge",render:function(t,e,i){this.group.removeAll();var n=t.get("axisLine.lineStyle.color"),r=gf(t,i);this._renderMain(t,e,i,n,r)},dispose:function(){},_renderMain:function(t,e,i,n,r){for(var o=this.group,a=t.getModel("axisLine").getModel("lineStyle"),s=t.get("clockwise"),l=-t.get("startAngle")/180*Math.PI,u=-t.get("endAngle")/180*Math.PI,c=(u-l)%kk,h=l,d=a.get("width"),f=0;f<n.length;f++){var p=Math.min(Math.max(n[f][0],0),1),g=new QS({shape:{startAngle:h,endAngle:u=l+c*p,cx:r.cx,cy:r.cy,clockwise:s,r0:r.r-d,r:r.r},silent:!0});g.setStyle({fill:n[f][1]}),g.setStyle(a.getLineStyle(["color","borderWidth","borderColor"])),o.add(g),h=u}var m=function(t){if(t<=0)return n[0][1];for(var e=0;e<n.length;e++)if(n[e][0]>=t&&(0===e?0:n[e-1][0])<t)return n[e][1];return n[e-1][1]};if(!s){var v=l;l=u,u=v}this._renderTicks(t,e,i,m,r,l,u,s),this._renderPointer(t,e,i,m,r,l,u,s),this._renderTitle(t,e,i,m,r),this._renderDetail(t,e,i,m,r)},_renderTicks:function(t,e,i,n,r,o,a,s){for(var l=this.group,u=r.cx,c=r.cy,h=r.r,d=+t.get("min"),f=+t.get("max"),p=t.getModel("splitLine"),g=t.getModel("axisTick"),m=t.getModel("axisLabel"),v=t.get("splitNumber"),y=g.get("splitNumber"),x=Pr(p.get("length"),h),_=Pr(g.get("length"),h),b=o,w=(a-o)/v,S=w/y,T=p.getModel("lineStyle").getLineStyle(),C=g.getModel("lineStyle").getLineStyle(),M=0;M<=v;M++){var D=Math.cos(b),I=Math.sin(b);if(p.get("show")){var A=new aT({shape:{x1:D*h+u,y1:I*h+c,x2:D*(h-x)+u,y2:I*(h-x)+c},style:T,silent:!0});"auto"===T.stroke&&A.setStyle({stroke:n(M/v)}),l.add(A)}if(m.get("show")){var k=mf(Rr(M/v*(f-d)+d),m.get("formatter")),E=m.get("distance"),O=n(M/v);l.add(new XS({style:dr({},m,{text:k,x:D*(h-x-E)+u,y:I*(h-x-E)+c,textVerticalAlign:I<-.4?"top":I>.4?"bottom":"middle",textAlign:D<-.4?"left":D>.4?"right":"center"},{autoColor:O}),silent:!0}))}if(g.get("show")&&M!==v){for(var N=0;N<=y;N++){var D=Math.cos(b),I=Math.sin(b),L=new aT({shape:{x1:D*h+u,y1:I*h+c,x2:D*(h-_)+u,y2:I*(h-_)+c},silent:!0,style:C});"auto"===C.stroke&&L.setStyle({stroke:n((M+N/y)/v)}),l.add(L),b+=S}b-=S}else b+=w}},_renderPointer:function(t,e,i,n,r,o,a,s){var l=this.group,u=this._data;if(t.get("pointer.show")){var c=[+t.get("min"),+t.get("max")],h=[o,a],d=t.getData(),f=d.mapDimension("value");d.diff(u).add(function(e){var i=new Ak({shape:{angle:o}});wr(i,{shape:{angle:Lr(d.get(f,e),c,h,!0)}},t),l.add(i),d.setItemGraphicEl(e,i)}).update(function(e,i){var n=u.getItemGraphicEl(i);br(n,{shape:{angle:Lr(d.get(f,e),c,h,!0)}},t),l.add(n),d.setItemGraphicEl(e,n)}).remove(function(t){var e=u.getItemGraphicEl(t);l.remove(e)}).execute(),d.eachItemGraphicEl(function(t,e){var i=d.getItemModel(e),o=i.getModel("pointer");t.setShape({x:r.cx,y:r.cy,width:Pr(o.get("width"),r.r),r:Pr(o.get("length"),r.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",n(Lr(d.get(f,e),c,[0,1],!0))),ur(t,i.getModel("emphasis.itemStyle").getItemStyle())}),this._data=d}else u&&u.eachItemGraphicEl(function(t){l.remove(t)})},_renderTitle:function(t,e,i,n,r){var o=t.getData(),a=o.mapDimension("value"),s=t.getModel("title");if(s.get("show")){var l=s.get("offsetCenter"),u=r.cx+Pr(l[0],r.r),c=r.cy+Pr(l[1],r.r),h=+t.get("min"),d=+t.get("max"),f=n(Lr(t.getData().get(a,0),[h,d],[0,1],!0));this.group.add(new XS({silent:!0,style:dr({},s,{x:u,y:c,text:o.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:f,forceRich:!0})}))}},_renderDetail:function(t,e,i,n,r){var o=t.getModel("detail"),a=+t.get("min"),s=+t.get("max");if(o.get("show")){var l=o.get("offsetCenter"),u=r.cx+Pr(l[0],r.r),c=r.cy+Pr(l[1],r.r),h=Pr(o.get("width"),r.r),d=Pr(o.get("height"),r.r),f=t.getData(),p=f.get(f.mapDimension("value"),0),g=n(Lr(p,[a,s],[0,1],!0));this.group.add(new XS({silent:!0,style:dr({},o,{x:u,y:c,text:mf(p,o.get("formatter")),textWidth:isNaN(h)?null:h,textHeight:isNaN(d)?null:d,textAlign:"center",textVerticalAlign:"middle"},{autoColor:g,forceRich:!0})}))}}}),Hs({type:"series.funnel",init:function(t){Ek.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){return WI(this,["value"])},_defaultLabelLine:function(t){Ai(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),i=Ek.superCall(this,"getDataParams",t),n=e.mapDimension("value"),r=e.getSum(n);return i.percent=r?+(e.get(n,t)/r*100).toFixed(2):0,i.$vars.push("percent"),i},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}})),Ok=vf.prototype,Nk=["itemStyle","opacity"];Ok.updateData=function(t,e,i){var n=this.childAt(0),r=t.hostModel,o=t.getItemModel(e),s=t.getItemLayout(e),l=t.getItemModel(e).get(Nk);l=null==l?1:l,n.useStyle({}),i?(n.setShape({points:s.points}),n.setStyle({opacity:0}),wr(n,{style:{opacity:l}},r,e)):br(n,{style:{opacity:l},shape:{points:s.points}},r,e);var u=o.getModel("itemStyle"),c=t.getItemVisual(e,"color");n.setStyle(a({lineJoin:"round",fill:c},u.getItemStyle(["opacity"]))),n.hoverStyle=u.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),ur(this)},Ok._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,"color");br(i,{shape:{points:a.linePoints||a.linePoints}},r,e),br(n,{style:{x:a.x,y:a.y}},r,e),n.attr({rotation:a.rotation,origin:[a.x,a.y],z2:10});var l=o.getModel("label"),u=o.getModel("emphasis.label"),c=o.getModel("labelLine"),h=o.getModel("emphasis.labelLine"),s=t.getItemVisual(e,"color");hr(n.style,n.hoverStyle={},l,u,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!a.inside},{textAlign:a.textAlign,textVerticalAlign:a.verticalAlign}),n.ignore=n.normalIgnore=!l.get("show"),n.hoverIgnore=!u.get("show"),i.ignore=i.normalIgnore=!c.get("show"),i.hoverIgnore=!h.get("show"),i.setStyle({stroke:s}),i.setStyle(c.getModel("lineStyle").getLineStyle()),i.hoverStyle=h.getModel("lineStyle").getLineStyle()},u(vf,jb),Ta.extend({type:"funnel",render:function(t,e,i){var n=t.getData(),r=this._data,o=this.group;n.diff(r).add(function(t){var e=new vf(n,t);n.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var i=r.getItemGraphicEl(e);i.updateData(n,t),o.add(i),n.setItemGraphicEl(t,i)}).remove(function(t){var e=r.getItemGraphicEl(t);o.remove(e)}).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),Ps(qI("funnel")),Ls(function(t,e,i){t.eachSeriesByType("funnel",function(t){var i=t.getData(),n=i.mapDimension("value"),r=t.get("sort"),o=yf(t,e),a=xf(i,r),s=[Pr(t.get("minSize"),o.width),Pr(t.get("maxSize"),o.width)],l=i.getDataExtent(n),u=t.get("min"),c=t.get("max");null==u&&(u=Math.min(l[0],0)),null==c&&(c=l[1]);var h=t.get("funnelAlign"),d=t.get("gap"),f=(o.height-d*(i.count()-1))/i.count(),p=o.y,g=function(t,e){var r,a=Lr(i.get(n,t)||0,[u,c],s,!0);switch(h){case"left":r=o.x;break;case"center":r=o.x+(o.width-a)/2;break;case"right":r=o.x+o.width-a}return[[r,e],[r+a,e]]};"ascending"===r&&(f=-f,d=-d,p+=o.height,a=a.reverse());for(var m=0;m<a.length;m++){var v=a[m],y=a[m+1],x=i.getItemModel(v).get("itemStyle.height");null==x?x=f:(x=Pr(x,o.height),"ascending"===r&&(x=-x));var _=g(v,p),b=g(y,p+x);p+=x+d,i.setItemLayout(v,{points:_.concat(b.slice().reverse())})}_f(i)})}),Es(KI("funnel"));var Lk=function(t,e,i,n,r){$D.call(this,t,e,i),this.type=n||"value",this.axisIndex=r};Lk.prototype={constructor:Lk,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},u(Lk,$D);var Pk=function(t,e,i,n,r,o){e[0]=Tf(e[0],i),e[1]=Tf(e[1],i),t=t||0;var a=i[1]-i[0];null!=r&&(r=Tf(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===n&&(r=o=Math.abs(e[1]-e[0]),n=0);var s=Sf(e,n);e[n]+=t;var l=r||0,u=i.slice();s.sign<0?u[0]+=l:u[1]-=l,e[n]=Tf(e[n],u),c=Sf(e,n),null!=r&&(c.sign!==s.sign||c.span<r)&&(e[1-n]=e[n]+s.sign*r);var c=Sf(e,n);return null!=o&&c.span>o&&(e[1-n]=e[n]+c.sign*o),e},Rk=d,zk=Math.min,Fk=Math.max,Bk=Math.floor,Hk=Math.ceil,Vk=Rr,Wk=Math.PI;Cf.prototype={type:"parallel",constructor:Cf,_init:function(t,e,i){var n=t.dimensions,r=t.parallelAxisIndex;Rk(n,function(t,i){var n=r[i],o=e.getComponent("parallelAxis",n),a=this._axesMap.set(t,new Lk(t,Bl(o),[0,0],o.get("type"),n)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this},this)},update:function(t,e){this._updateAxesFromSeries(this._model,t)},containPoint:function(t){var e=this._makeLayoutInfo(),i=e.axisBase,n=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=i&&o<=i+e.axisLength&&a>=n&&a<=n+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries(function(i){if(t.contains(i,e)){var n=i.getData();Rk(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),Fl(e.scale,e.model)},this)}},this)},resize:function(t,e){this._rect=so(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,i=this._rect,n=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=i[r[a]],l=[0,s],u=this.dimensions.length,c=Mf(e.get("axisExpandWidth"),l),h=Mf(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=e.get("axisExpandWindow");f?(t=Mf(f[1]-f[0],l),f[1]=f[0]+t):(t=Mf(c*(h-1),l),(f=[c*(e.get("axisExpandCenter")||Bk(u/2))-t/2])[1]=f[0]+t);var p=(s-t)/(u-h);p<3&&(p=0);var g=[Bk(Vk(f[0]/c,1))+1,Hk(Vk(f[1]/c,1))-1],m=p/c*f[0];return{layout:o,pixelDimIndex:a,layoutBase:i[n[a]],layoutLength:s,axisBase:i[n[1-a]],axisLength:i[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:p,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),r=n.layout;e.each(function(t){var e=[0,n.axisLength],i=t.inverse?1:0;t.setExtent(e[i],e[1-i])}),Rk(i,function(e,i){var o=(n.axisExpandable?If:Df)(i,n),a={horizontal:{x:o.position,y:n.axisLength},vertical:{x:0,y:o.position}},s={horizontal:Wk/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],c=mt();bt(c,c,u),_t(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,i,n){null==i&&(i=0),null==n&&(n=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];d(o,function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)});for(var l=this.hasAxisBrushed(),u=i;u<n;u++){var c;if(l){c="active";for(var h=t.getValues(a,u),f=0,p=o.length;f<p;f++)if("inactive"===s[f].getActiveState(h[f])){c="inactive";break}}else c="normal";e(c,u)}},hasAxisBrushed:function(){for(var t=this.dimensions,e=this._axesMap,i=!1,n=0,r=t.length;n<r;n++)"normal"!==e.get(t[n]).model.getActiveState()&&(i=!0);return i},axisCoordToPoint:function(t,e){return Tr([t,0],this._axesLayout[e].transform)},getAxisLayout:function(t){return i(this._axesLayout[t])},getSlidedAxisExpandWindow:function(t){var e=this._makeLayoutInfo(),i=e.pixelDimIndex,n=e.axisExpandWindow.slice(),r=n[1]-n[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n};var a,s=t[i]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];return u?(h&&u&&s<r*c[0]?(l="jump",a=s-r*c[2]):h&&u&&s>r*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?Pk(a,n,o,"all"):l="none"):(r=n[1]-n[0],(n=[Fk(0,o[1]*s/r-r/2)])[1]=zk(o[1],n[0]+r),n[0]=n[1]-r),{axisExpandWindow:n,behavior:l}}},Fo.register("parallel",{create:function(t,e){var i=[];return t.eachComponent("parallel",function(n,r){var o=new Cf(n,t,e);o.name="parallel_"+r,o.resize(n,e),n.coordinateSystem=o,o.model=n,i.push(o)}),t.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=i.coordinateSystem}}),i}});var $k=YT.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return Ww([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=i(t);if(e)for(var n=e.length-1;n>=0;n--)zr(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var i=e[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,r=e.length;n<r;n++)if(e[n][0]<=t&&t<=e[n][1])return"active";return"inactive"}}),jk={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};n($k.prototype,AD),xI("parallel",$k,function(t,e){return e.type||(e.data?"category":"value")},jk),YT.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){YT.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&n(e,t,!0),this._initDimensions()},contains:function(t,e){var i=t.get("parallelIndex");return null!=i&&e.getComponent("parallel",i)===this},setAxisExpand:function(t){d(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},_initDimensions:function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];d(g(this.dependentModels.parallelAxis,function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this),function(i){t.push("dim"+i.get("dim")),e.push(i.componentIndex)})}}),Os({type:"axisAreaSelect",event:"axisAreaSelected"},function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(e){e.axis.model.setActiveIntervals(t.intervals)})}),Os("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(e){e.setAxisExpand(t)})});var Uk=v,Gk=d,qk=f,Yk=Math.min,Xk=Math.max,Zk=Math.pow,Kk=1e4,Jk=6,Qk=6,tE="globalPan",eE={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},iE={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},nE={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},rE=0;Af.prototype={constructor:Af,enableBrush:function(t){return this._brushType&&Ef(this),t.brushType&&kf(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};d(t,function(t){e[t.panelId]=i(t)})}else this._panels=null;return this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){Gk(this._covers,t,e)},updateCovers:function(t){function e(t,e){return(null!=t.id?t.id:o+e)+"-"+t.brushType}function r(e,i){var n=t[e];if(null!=i&&a[i]===u)s[e]=a[i];else{var r=s[e]=null!=i?(a[i].__brushOption=n,a[i]):Nf(l,Of(l,n));Rf(l,r)}}t=f(t,function(t){return n(i(nE),t,!0)});var o="\0-brush-index-",a=this._covers,s=this._covers=[],l=this,u=this._creatingCover;return new $s(a,t,function(t,i){return e(t.__brushOption,i)},e).add(r).update(r).remove(function(t){a[t]!==u&&l.group.remove(a[t])}).execute(),this},unmount:function(){return this.enableBrush(!1),Hf(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},c(Af,ob);var oE={mousedown:function(t){if(this._dragging)lp.call(this,t);else if(!t.target||!t.target.draggable){rp(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=Ff(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(np(this,t,e),this._dragging){rp(t);var i=ap(this,t,e,!1);i&&Vf(this,i)}},mouseup:lp},aE={lineX:up(0),lineY:up(1),rect:{createCover:function(t,e){return jf(Uk(Jf,function(t){return t},function(t){return t}),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=$f(t);return Xf(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,i,n){Uf(t,e,i,n)},updateCommon:Gf,contain:op},polygon:{createCover:function(t,e){var i=new jb;return i.add(new rT({name:"main",style:Yf(e),silent:!0})),i},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new nT({name:"main",draggable:!0,drift:Uk(Qf,t,e),ondragend:Uk(Vf,t,{isEnd:!0})}))},updateCoverShape:function(t,e,i,n){e.childAt(0).setShape({points:ep(t,e,i)})},updateCommon:Gf,contain:op}},sE=["axisLine","axisTickLabel","axisName"],lE=Bs({type:"parallelAxis",init:function(t,e){lE.superApply(this,"init",arguments),(this._brushController=new Af(e.getZr())).on("brush",m(this._onBrush,this))},render:function(t,e,i,n){if(!pp(t,e,n)){this.axisModel=t,this.api=i,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new jb,this.group.add(this._axisGroup),t.get("show")){var a=mp(t,e),s=a.coordinateSystem,l=t.getAreaSelectStyle(),u=l.width,c=t.axis.dim,h=o({strokeContainThreshold:u},s.getAxisLayout(c)),f=new CI(t,h);d(sE,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(h,l,t,a,u,i);var p=n&&!1===n.animation?null:t;Mr(r,this._axisGroup,p)}}},_refreshBrushController:function(t,e,i,n,r,o){var a=i.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=ue.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:cp(u),isTargetByCursor:dp(u,o,n),getLinearBrushOtherExtent:hp(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(gp(i))},_onBrush:function(t,e){var i=this.axisModel,n=i.axis,r=f(t,function(t){return[n.coordToData(t.range[0],!0),n.coordToData(t.range[1],!0)]});(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:r})},dispose:function(){this._brushController.dispose()}});Bs({type:"parallel",render:function(t,e,i){this._model=t,this._api=i,this._handlers||(this._handlers={},d(uE,function(t,e){i.getZr().on(e,this._handlers[e]=m(t,this))},this)),ka(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,e){d(this._handlers,function(t,i){e.getZr().off(i,t)}),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(o({type:"parallelAxisExpand"},t))}});var uE={mousedown:function(t){vp(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(vp(this,"click")&&e){var i=[t.offsetX,t.offsetY] ;if(Math.pow(e[0]-i[0],2)+Math.pow(e[1]-i[1],2)>5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&vp(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n&&null})}}};ks(function(t){bf(t),wf(t)}),LC.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var i=this.getSource();return yp(i,this),dl(i,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,i=this.getData(),n=[];return e.eachActiveState(i,function(e,r){t===e&&n.push(i.getRawIndex(r))}),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});var cE=.3,hE=(Ta.extend({type:"parallel",init:function(){this._dataGroup=new jb,this.group.add(this._dataGroup),this._data,this._initialized},render:function(t,e,i,n){var r=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=Sp(t);if(o.diff(a).add(function(t){Tp(wp(o,r,t,l,s),o,t,u)}).update(function(e,i){var r=a.getItemGraphicEl(i),c=bp(o,e,l,s);o.setItemGraphicEl(e,r),br(r,{shape:{points:c}},n&&!1===n.animation?null:t,e),Tp(r,o,e,u)}).remove(function(t){var e=a.getItemGraphicEl(t);r.remove(e)}).execute(),!this._initialized){this._initialized=!0;var c=_p(s,t,function(){setTimeout(function(){r.removeClipPath()})});r.setClipPath(c)}this._data=o},incrementalPrepareRender:function(t,e,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,i){for(var n=e.getData(),r=e.coordinateSystem,o=r.dimensions,a=Sp(e),s=t.start;s<t.end;s++){var l=wp(n,this._dataGroup,s,o,r);l.incremental=!0,Tp(l,n,s,a)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}}),["lineStyle","normal","opacity"]);Ps({seriesType:"parallel",reset:function(t,e,i){var n=t.getModel("itemStyle"),r=t.getModel("lineStyle"),o=e.get("color"),a=r.get("color")||n.get("color")||o[t.seriesIndex%o.length],s=t.get("inactiveOpacity"),l=t.get("activeOpacity"),u=t.getModel("lineStyle").getLineStyle(),c=t.coordinateSystem,h=t.getData(),d={normal:u.opacity,active:l,inactive:s};return h.setVisual("color",a),{progress:function(t,e){c.eachActiveState(e,function(t,i){var n=d[t];if("normal"===t&&e.hasItemOption){var r=e.getItemModel(i).get(hE,!0);null!=r&&(n=r)}e.setItemVisual(i,"opacity",n)},t.start,t.end)}}}});var dE=LC.extend({type:"series.sankey",layoutInfo:null,getInitialData:function(t){var e=t.edges||t.links,i=t.data||t.nodes;if(i&&e)return hk(i,e,this,!0).data},setNodePosition:function(t,e){var i=this.option.data[t];i.localX=e[0],i.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getDataParams(t,i),r=n.data,o=r.source+" -- "+r.target;return n.value&&(o+=" : "+n.value),Jr(o)}return dE.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var t=this.option;!0===t.focusNodeAdjacency&&(t.focusNodeAdjacency="allEdges")},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.6}},animationEasing:"linear",animationDuration:1e3}}),fE=["itemStyle","opacity"],pE=["lineStyle","opacity"],gE=Vn({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(t,e){var i=e.extent;"vertical"===e.orient?(t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),t.lineTo(e.x2+i,e.y2),t.bezierCurveTo(e.cpx2+i,e.cpy2,e.cpx1+i,e.cpy1,e.x1+i,e.y1)):(t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),t.lineTo(e.x2,e.y2+i),t.bezierCurveTo(e.cpx2,e.cpy2+i,e.cpx1,e.cpy1+i,e.x1,e.y1+i)),t.closePath()}});Vs({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(t,e,i){var n=this,r=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,o.removeAll(),o.attr("position",[a.x,a.y]),r.eachEdge(function(e){var i=new gE;i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var n,r,a,u,d,f,p,g,m=e.getModel("lineStyle"),v=m.get("curveness"),y=e.node1.getLayout(),x=e.node1.getModel(),_=x.get("localX"),b=x.get("localY"),w=e.node2.getLayout(),S=e.node2.getModel(),T=S.get("localX"),C=S.get("localY"),M=e.getLayout();switch(i.shape.extent=Math.max(1,M.dy),i.shape.orient=h,"vertical"===h?(n=(null!=_?_*s:y.x)+M.sy,r=(null!=b?b*l:y.y)+y.dy,a=(null!=T?T*s:w.x)+M.ty,d=n,f=r*(1-v)+(u=null!=C?C*l:w.y)*v,p=a,g=r*v+u*(1-v)):(n=(null!=_?_*s:y.x)+y.dx,r=(null!=b?b*l:y.y)+M.sy,d=n*(1-v)+(a=null!=T?T*s:w.x)*v,f=r,p=n*v+a*(1-v),g=u=(null!=C?C*l:w.y)+M.ty),i.setShape({x1:n,y1:r,x2:a,y2:u,cpx1:d,cpy1:f,cpx2:p,cpy2:g}),i.setStyle(m.getItemStyle()),i.style.fill){case"source":i.style.fill=e.node1.getVisual("color");break;case"target":i.style.fill=e.node2.getVisual("color")}ur(i,e.getModel("emphasis.lineStyle").getItemStyle()),o.add(i),c.setItemGraphicEl(e.dataIndex,i)}),r.eachNode(function(e){var i=e.getLayout(),n=e.getModel(),r=n.get("localX"),a=n.get("localY"),c=n.getModel("label"),h=n.getModel("emphasis.label"),d=new oT({shape:{x:null!=r?r*s:i.x,y:null!=a?a*l:i.y,width:i.dx,height:i.dy},style:n.getModel("itemStyle").getItemStyle()}),f=e.getModel("emphasis.itemStyle").getItemStyle();hr(d.style,f,c,h,{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id,isRectText:!0}),d.setStyle("fill",e.getVisual("color")),ur(d,f),o.add(d),u.setItemGraphicEl(e.dataIndex,d),d.dataType="node"}),u.eachItemGraphicEl(function(e,r){var o=u.getItemModel(r);o.get("draggable")&&(e.drift=function(e,o){n._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){n._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move"),o.get("focusNodeAdjacency")&&(e.off("mouseover").on("mouseover",function(){n._focusAdjacencyDisabled||i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.off("mouseout").on("mouseout",function(){n._focusAdjacencyDisabled||i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))}),c.eachItemGraphicEl(function(e,r){c.getItemModel(r).get("focusNodeAdjacency")&&(e.off("mouseover").on("mouseover",function(){n._focusAdjacencyDisabled||i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),e.off("mouseout").on("mouseout",function(){n._focusAdjacencyDisabled||i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))}),!this._data&&t.get("animation")&&o.setClipPath(Ap(o.getBoundingRect(),t,function(){o.removeClipPath()})),this._data=t.getData()},dispose:function(){},focusNodeAdjacency:function(t,e,i,n){var r=this._model.getData(),o=r.graph,a=n.dataIndex,s=r.getItemModel(a),l=n.edgeDataIndex;if(null!=a||null!=l){var u=o.getNodeByIndex(a),c=o.getEdgeByIndex(l);if(o.eachNode(function(t){Dp(t,fE,.1)}),o.eachEdge(function(t){Dp(t,pE,.1)}),u){Ip(u,fE);var h=s.get("focusNodeAdjacency");"outEdges"===h?d(u.outEdges,function(t){t.dataIndex<0||(Ip(t,pE),Ip(t.node2,fE))}):"inEdges"===h?d(u.inEdges,function(t){t.dataIndex<0||(Ip(t,pE),Ip(t.node1,fE))}):"allEdges"===h&&d(u.edges,function(t){t.dataIndex<0||(Ip(t,pE),Ip(t.node1,fE),Ip(t.node2,fE))})}c&&(Ip(c,pE),Ip(c.node1,fE),Ip(c.node2,fE))}},unfocusNodeAdjacency:function(t,e,i,n){var r=this._model.getGraph();r.eachNode(function(t){Dp(t,fE)}),r.eachEdge(function(t){Dp(t,pE)})}}),Os({type:"dragNode",event:"dragNode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),Ls(function(t,e,i){t.eachSeriesByType("sankey",function(t){var i=t.get("nodeWidth"),n=t.get("nodeGap"),r=Ep(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,u=s.edges;Np(l),Op(l,u,i,n,o,a,0!==g(l,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"),t.get("orient"))})}),Ps(function(t,e){t.eachSeriesByType("sankey",function(t){var e=t.getGraph().nodes;if(e.length){var i=1/0,n=-1/0;d(e,function(t){var e=t.getLayout().value;e<i&&(i=e),e>n&&(n=e)}),d(e,function(e){var r=new qA({type:"color",mappingMethod:"linear",dataExtent:[i,n],visual:t.get("color")}).mapValueToVisual(e.getLayout().value);e.setVisual("color",r);var o=e.getModel().get("itemStyle.color");null!=o&&e.setVisual("color",o)})}})});var mE={_baseAxisDim:null,getInitialData:function(t,e){var i,n,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",i=r.getOrdinalMeta(),n=!0):"category"===s?(t.layout="vertical",i=o.getOrdinalMeta(),n=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],f=[r,o],p=f[u].get("type"),g=f[1-u].get("type"),m=t.data;if(m&&n){var v=[];d(m,function(t,e){var i;t.value&&y(t.value)?(i=t.value.slice(),t.value.unshift(e)):y(t)?(i=t.slice(),t.unshift(e)):i=t,v.push(i)}),t.data=v}var x=this.defaultValueDimensions;return WI(this,{coordDimensions:[{name:c,type:Gs(p),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Gs(g),dimsDef:x.slice()}],dimensionsCount:x.length+1})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};c(LC.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}}),mE,!0);var vE=["itemStyle"],yE=["emphasis","itemStyle"],xE=(Ta.extend({type:"boxplot",render:function(t,e,i){var n=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;n.diff(o).add(function(t){if(n.hasValue(t)){var e=Xp(n.getItemLayout(t),n,t,a,!0);n.setItemGraphicEl(t,e),r.add(e)}}).update(function(t,e){var i=o.getItemGraphicEl(e);if(n.hasValue(t)){var s=n.getItemLayout(t);i?Zp(s,i,n,t):i=Xp(s,n,t,a),r.add(i),n.setItemGraphicEl(t,i)}else r.remove(i)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=n},remove:function(t){var e=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(t){t&&e.remove(t)})},dispose:F}),En.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var i=e.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();n<i.length;n++)t.moveTo(i[n][0],i[n][1]),n++,t.lineTo(i[n][0],i[n][1])}})),_E=["itemStyle","borderColor"],bE=d;Ps(function(t,e){var i=t.get("color");t.eachRawSeriesByType("boxplot",function(e){var n=i[e.seriesIndex%i.length],r=e.getData();r.setVisual({legendSymbol:"roundRect",color:e.get(_E)||n}),t.isSeriesFiltered(e)||r.each(function(t){var e=r.getItemModel(t);r.setItemVisual(t,{color:e.get(_E,!0)})})})}),Ls(function(t){var e=Jp(t);bE(e,function(t){var e=t.seriesModels;e.length&&(Qp(t),bE(e,function(e,i){tg(e,t.boxOffsetList[i],t.boxWidthList[i])}))})}),c(LC.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(t,e,i){var n=e.getItemLayout(t);return n&&i.rect(n.brushRect)}}),mE,!0);var wE=["itemStyle"],SE=["emphasis","itemStyle"],TE=["color","color0","borderColor","borderColor0"],CE=(Ta.extend({type:"candlestick",render:function(t,e,i){this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},incrementalPrepareRender:function(t,e,i){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,i,n){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t){var e=t.getData(),i=this._data,n=this.group,r=e.getLayout("isSimpleBox");this._data||n.removeAll(),e.diff(i).add(function(i){if(e.hasValue(i)){var o,a=e.getItemLayout(i);wr(o=eg(a,0,!0),{shape:{points:a.ends}},t,i),ig(o,e,i,r),n.add(o),e.setItemGraphicEl(i,o)}}).update(function(o,a){var s=i.getItemGraphicEl(a);if(e.hasValue(o)){var l=e.getItemLayout(o);s?br(s,{shape:{points:l.ends}},t,o):s=eg(l),ig(s,e,o,r),n.add(s),e.setItemGraphicEl(o,s)}else n.remove(s)}).remove(function(t){var e=i.getItemGraphicEl(t);e&&n.remove(e)}).execute(),this._data=e},_renderLarge:function(t){this._clear(),rg(t,this.group)},_incrementalRenderNormal:function(t,e){for(var i,n=e.getData(),r=n.getLayout("isSimpleBox");null!=(i=t.next());){var o;ig(o=eg(n.getItemLayout(i)),n,i,r),o.incremental=!0,this.group.add(o)}},_incrementalRenderLarge:function(t,e){rg(e,this.group,!0)},remove:function(t){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:F}),En.extend({type:"normalCandlestickBox",shape:{},buildPath:function(t,e){var i=e.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))}})),ME=En.extend({type:"largeCandlestickBox",shape:{},buildPath:function(t,e){for(var i=e.points,n=0;n<i.length;)if(this.__sign===i[n++]){var r=i[n++];t.moveTo(r,i[n++]),t.lineTo(r,i[n++])}else n+=3}}),DE=["itemStyle","borderColor"],IE=["itemStyle","borderColor0"],AE=["itemStyle","color"],kE=["itemStyle","color0"],EE={seriesType:"candlestick",plan:zC(),performRawSeries:!0,reset:function(t,e){function i(t,e){return e.get(t>0?AE:kE)}function n(t,e){return e.get(t>0?DE:IE)}var r=t.getData(),o=t.pipelineContext.large;if(r.setVisual({legendSymbol:"roundRect",colorP:i(1,t),colorN:i(-1,t),borderColorP:n(1,t),borderColorN:n(-1,t)}),!e.isSeriesFiltered(t))return!o&&{progress:function(t,e){for(var r;null!=(r=t.next());){var o=e.getItemModel(r),a=e.getItemLayout(r).sign;e.setItemVisual(r,{color:i(a,o),borderColor:n(a,o)})}}}}},OE="undefined"!=typeof Float32Array?Float32Array:Array,NE={seriesType:"candlestick",plan:zC(),reset:function(t){var e=t.coordinateSystem,i=t.getData(),n=sg(t,i),r=0,o=1,a=["x","y"],s=i.mapDimension(a[r]),l=i.mapDimension(a[o],!0),u=l[0],c=l[1],h=l[2],d=l[3];if(i.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(null==s||l.length<4))return{progress:t.pipelineContext.large?function(t,i){for(var n,a,l=new OE(5*t.count),f=0,p=[],g=[];null!=(a=t.next());){var m=i.get(s,a),v=i.get(u,a),y=i.get(c,a),x=i.get(h,a),_=i.get(d,a);isNaN(m)||isNaN(x)||isNaN(_)?(l[f++]=NaN,f+=4):(l[f++]=ag(i,a,v,y,c),p[r]=m,p[o]=x,n=e.dataToPoint(p,null,g),l[f++]=n?n[0]:NaN,l[f++]=n?n[1]:NaN,p[o]=_,n=e.dataToPoint(p,null,g),l[f++]=n?n[1]:NaN)}i.setLayout("largePoints",l)}:function(t,i){function a(t,i){var n=[];return n[r]=i,n[o]=t,isNaN(i)||isNaN(t)?[NaN,NaN]:e.dataToPoint(n)}function l(t,e,i){var o=e.slice(),a=e.slice();o[r]=Yn(o[r]+n/2,1,!1),a[r]=Yn(a[r]-n/2,1,!0),i?t.push(o,a):t.push(a,o)}function f(t){return t[r]=Yn(t[r],1),t}for(var p;null!=(p=t.next());){var g=i.get(s,p),m=i.get(u,p),v=i.get(c,p),y=i.get(h,p),x=i.get(d,p),_=Math.min(m,v),b=Math.max(m,v),w=a(_,g),S=a(b,g),T=a(y,g),C=a(x,g),M=[];l(M,S,0),l(M,w,1),M.push(f(C),f(S),f(T),f(w)),i.setItemLayout(p,{sign:ag(i,p,m,v,c),initBaseline:m>v?S[o]:w[o],ends:M,brushRect:function(t,e,i){var s=a(t,i),l=a(e,i);return s[r]-=n/2,l[r]-=n/2,{x:s[0],y:s[1],width:o?n:l[0]-s[0],height:o?l[1]-s[1]:n}}(y,x,g)})}}}}};ks(function(t){t&&y(t.series)&&d(t.series,function(t){b(t)&&"k"===t.type&&(t.type="candlestick")})}),Ps(EE),Ls(NE),LC.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return dl(this.getSource(),this)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});var LE=cg.prototype;LE.stopEffectAnimation=function(){this.childAt(1).removeAll()},LE.startEffectAnimation=function(t){for(var e=t.symbolType,i=t.color,n=this.childAt(1),r=0;r<3;r++){var o=Gl(e,-1,-1,2,2,i);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var a=-r/3*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(a).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(a).start(),n.add(o)}ug(n,t)},LE.updateEffectAnimation=function(t){for(var e=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],r=0;r<n.length;r++){var o=n[r];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}ug(i,t)},LE.highlight=function(){this.trigger("emphasis")},LE.downplay=function(){this.trigger("normal")},LE.updateData=function(t,e){var i=t.hostModel;this.childAt(0).updateData(t,e);var n=this.childAt(1),r=t.getItemModel(e),o=t.getItemVisual(e,"symbol"),a=lg(t.getItemVisual(e,"symbolSize")),s=t.getItemVisual(e,"color");n.attr("scale",a),n.traverse(function(t){t.attr({fill:s})});var l=r.getShallow("symbolOffset");if(l){var u=n.position;u[0]=Pr(l[0],a[0]),u[1]=Pr(l[1],a[1])}n.rotation=(r.getShallow("symbolRotate")||0)*Math.PI/180||0;var c={};if(c.showEffectOn=i.get("showEffectOn"),c.rippleScale=r.get("rippleEffect.scale"),c.brushType=r.get("rippleEffect.brushType"),c.period=1e3*r.get("rippleEffect.period"),c.effectOffset=e/t.count(),c.z=r.getShallow("z")||0,c.zlevel=r.getShallow("zlevel")||0,c.symbolType=o,c.color=s,this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===c.showEffectOn)this._effectCfg?this.updateEffectAnimation(c):this.startEffectAnimation(c),this._effectCfg=c;else{this._effectCfg=null,this.stopEffectAnimation();var h=this.childAt(0),d=function(){h.highlight(),"render"!==c.showEffectOn&&this.startEffectAnimation(c)},f=function(){h.downplay(),"render"!==c.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",d,this).on("mouseout",f,this).on("emphasis",d,this).on("normal",f,this)}this._effectCfg=c},LE.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},u(cg,jb),Vs({type:"effectScatter",init:function(){this._symbolDraw=new Su(cg)},render:function(t,e,i){var n=t.getData(),r=this._symbolDraw;r.updateData(n),this.group.add(r.group)},updateTransform:function(t,e,i){var n=t.getData();this.group.dirty();var r=hI().reset(t);r.progress&&r.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateGroupTransform:function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=Tt(e.getRoamTransform()),this.group.decomposeTransform())},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}}),Ps(cI("effectScatter","circle")),Ls(hI("effectScatter"));var PE="undefined"==typeof Uint32Array?Array:Uint32Array,RE="undefined"==typeof Float64Array?Array:Float64Array,zE=LC.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(t){t.data=t.data||[],hg(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),zE.superApply(this,"init",arguments)},mergeOption:function(t){if(t.data=t.data||[],hg(t),t.data){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count))}zE.superApply(this,"mergeOption",arguments)},appendData:function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=z(this._flatCoords,e.flatCoords),this._flatCoordsOffset=z(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},_getCoordsFromItemModel:function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[2*t],n=this._flatCoordsOffset[2*t+1],r=0;r<n;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[i+2*r],e[r][1]=this._flatCoords[i+2*r+1];return n}for(var o=this._getCoordsFromItemModel(t),r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},_processFlatCoordsArray:function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),"number"==typeof t[0]){for(var i=t.length,n=new PE(i),r=new RE(i),o=0,a=0,s=0,l=0;l<i;){s++;var u=t[l++];n[a++]=o+e,n[a++]=u;for(var c=0;c<u;c++){var h=t[l++],d=t[l++];r[o++]=h,r[o++]=d}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t,e){var i=new eD(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(t,e,n,r){if(t instanceof Array)return NaN;i.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0}),i},formatTooltip:function(t){var e=this.getData().getItemModel(t),i=e.get("name");if(i)return i;var n=e.get("fromName"),r=e.get("toName"),o=[];return null!=n&&o.push(n),null!=r&&o.push(r),Jr(o.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),FE=dg.prototype;FE.createLine=function(t,e,i){return new Kd(t,e,i)},FE._updateEffectSymbol=function(t,e){var i=t.getItemModel(e).getModel("effect"),n=i.get("symbolSize"),r=i.get("symbol");y(n)||(n=[n,n]);var o=i.get("color")||t.getItemVisual(e,"color"),a=this.childAt(1);this._symbolType!==r&&(this.remove(a),(a=Gl(r,-.5,-.5,1,1,o)).z2=100,a.culling=!0,this.add(a)),a&&(a.setStyle("shadowColor",o),a.setStyle(i.getItemStyle(["color"])),a.attr("scale",n),a.setColor(o),a.attr("scale",n),this._symbolType=r,this._updateEffectAnimation(t,i,e))},FE._updateEffectAnimation=function(t,e,i){var n=this.childAt(1);if(n){var r=this,o=t.getItemLayout(i),a=1e3*e.get("period"),s=e.get("loop"),l=e.get("constantSpeed"),u=M(e.get("delay"),function(e){return e/t.count()*a/3}),c="function"==typeof u;if(n.ignore=!0,this.updateAnimationPoints(n,o),l>0&&(a=this.getLineLength(n)/l*1e3),a!==this._period||s!==this._loop){n.stopAnimation();var h=u;c&&(h=u(i)),n.__t>0&&(h=-a*n.__t),n.__t=0;var d=n.animate("",s).when(a,{__t:1}).delay(h).during(function(){r.updateSymbolPosition(n)});s||d.done(function(){r.remove(n)}),d.start()}this._period=a,this._loop=s}},FE.getLineLength=function(t){return eb(t.__p1,t.__cp1)+eb(t.__cp1,t.__p2)},FE.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},FE.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},FE.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,r=t.__t,o=t.position,a=an,s=sn;o[0]=a(e[0],n[0],i[0],r),o[1]=a(e[1],n[1],i[1],r);var l=s(e[0],n[0],i[0],r),u=s(e[1],n[1],i[1],r);t.rotation=-Math.atan2(u,l)-Math.PI/2,t.ignore=!1},FE.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var i=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,i,e)},u(dg,jb);var BE=fg.prototype;BE._createPolyline=function(t,e,i){var n=t.getItemLayout(e),r=new rT({shape:{points:n}});this.add(r),this._updateCommonStl(t,e,i)},BE.updateData=function(t,e,i){var n=t.hostModel;br(this.childAt(0),{shape:{points:t.getItemLayout(e)}},n,e),this._updateCommonStl(t,e,i)},BE._updateCommonStl=function(t,e,i){var n=this.childAt(0),r=t.getItemModel(e),o=t.getItemVisual(e,"color"),s=i&&i.lineStyle,l=i&&i.hoverLineStyle;i&&!t.hasItemOption||(s=r.getModel("lineStyle").getLineStyle(),l=r.getModel("emphasis.lineStyle").getLineStyle()),n.useStyle(a({strokeNoScale:!0,fill:"none",stroke:o},s)),n.hoverStyle=l,ur(this)},BE.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},u(fg,jb);var HE=pg.prototype;HE.createLine=function(t,e,i){return new fg(t,e,i)},HE.updateAnimationPoints=function(t,e){this._points=e;for(var i=[0],n=0,r=1;r<e.length;r++){var o=e[r-1],a=e[r];n+=eb(o,a),i.push(n)}if(0!==n){for(r=0;r<i.length;r++)i[r]/=n;this._offsets=i,this._length=n}},HE.getLineLength=function(t){return this._length},HE.updateSymbolPosition=function(t){var e=t.__t,i=this._points,n=this._offsets,r=i.length;if(n){var o=this._lastFrame;if(e<this._lastFramePercent){for(a=Math.min(o+1,r-1);a>=0&&!(n[a]<=e);a--);a=Math.min(a,r-2)}else{for(var a=o;a<r&&!(n[a]>e);a++);a=Math.min(a-1,r-2)}J(t.position,i[a],i[a+1],(e-n[a])/(n[a+1]-n[a]));var s=i[a+1][0]-i[a][0],l=i[a+1][1]-i[a][1];t.rotation=-Math.atan2(l,s)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},u(pg,dg);var VE=Vn({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var i=e.segs,n=e.curveness;if(e.polyline)for(a=0;a<i.length;){var r=i[a++];if(r>0){t.moveTo(i[a++],i[a++]);for(var o=1;o<r;o++)t.lineTo(i[a++],i[a++])}}else for(var a=0;a<i.length;){var s=i[a++],l=i[a++],u=i[a++],c=i[a++];if(t.moveTo(s,l),n>0){var h=(s+u)/2-(l-c)*n,d=(l+c)/2-(u-s)*n;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}},findDataIndex:function(t,e){var i=this.shape,n=i.segs,r=i.curveness;if(i.polyline)for(var o=0,a=0;a<n.length;){var s=n[a++];if(s>0)for(var l=n[a++],u=n[a++],c=1;c<s;c++)if(vn(l,u,h=n[a++],d=n[a++]))return o;o++}else for(var o=0,a=0;a<n.length;){var l=n[a++],u=n[a++],h=n[a++],d=n[a++];if(r>0){if(xn(l,u,(l+h)/2-(u-d)*r,(u+d)/2-(h-l)*r,h,d))return o}else if(vn(l,u,h,d))return o;o++}return-1}}),WE=gg.prototype;WE.isPersistent=function(){return!this._incremental},WE.updateData=function(t){this.group.removeAll();var e=new VE({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},WE.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new Hn({silent:!0})),this.group.add(this._incremental)):this._incremental=null},WE.incrementalUpdate=function(t,e){var i=new VE;i.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(i,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=t.start,this.group.add(i))},WE.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},WE._setCommon=function(t,e,i){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>0&&(t.dataIndex=i+t.__startIndex)}))},WE._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var $E={seriesType:"lines",plan:zC(),reset:function(t){var e=t.coordinateSystem,i=t.get("polyline"),n=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(n){var s,l=r.end-r.start;if(i){for(var u=0,c=r.start;c<r.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);for(var h=0,d=[],c=r.start;c<r.end;c++){g=t.getLineCoords(c,a),i&&(s[h++]=g);for(var f=0;f<g;f++)d=e.dataToPoint(a[f],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var p=o.getItemModel(c),g=t.getLineCoords(c,a),m=[];if(i)for(var v=0;v<g;v++)m.push(e.dataToPoint(a[v]));else{m[0]=e.dataToPoint(a[0]),m[1]=e.dataToPoint(a[1]);var y=p.get("lineStyle.curveness");+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}o.setItemLayout(c,m)}}}}};Vs({type:"lines",init:function(){},render:function(t,e,i){var n=t.getData(),r=this._updateLineDraw(n,t),o=t.get("zlevel"),a=t.get("effect.trailLength"),s=i.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(n),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(t,e,i){var n=t.getData();this._updateLineDraw(n,t).incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},incrementalRender:function(t,e,i){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,i){var n=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=$E.reset(t);o.progress&&o.progress({start:0,end:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},_updateLineDraw:function(t,e){var i=this._lineDraw,n=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext.large;return i&&n===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(i&&i.remove(),i=this._lineDraw=o?new gg:new Jd(r?n?pg:fg:n?dg:Kd),this._hasEffet=n,this._isPolyline=r,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){ this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});var jE="lineStyle.opacity".split("."),UE={seriesType:"lines",reset:function(t,e,i){var n=mg(t.get("symbol")),r=mg(t.get("symbolSize")),o=t.getData();return o.setVisual("fromSymbol",n&&n[0]),o.setVisual("toSymbol",n&&n[1]),o.setVisual("fromSymbolSize",r&&r[0]),o.setVisual("toSymbolSize",r&&r[1]),o.setVisual("opacity",t.get(jE)),{dataEach:o.hasItemOption?function(t,e){var i=t.getItemModel(e),n=mg(i.getShallow("symbol",!0)),r=mg(i.getShallow("symbolSize",!0)),o=i.get(jE);n[0]&&t.setItemVisual(e,"fromSymbol",n[0]),n[1]&&t.setItemVisual(e,"toSymbol",n[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1]),t.setItemVisual(e,"opacity",o)}:null}}};Ls($E),Ps(UE),LC.extend({type:"series.heatmap",getInitialData:function(t,e){return dl(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var t=Fo.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}}),vg.prototype={update:function(t,e,i,n,r,o){var a=this._getBrush(),s=this._getGradient(t,r,"inRange"),l=this._getGradient(t,r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=i;for(var f=0;f<d;++f){var p=t[f],g=p[0],m=p[1],v=n(p[2]);h.globalAlpha=v,h.drawImage(a,g-u,m-u)}if(!c.width||!c.height)return c;for(var y=h.getImageData(0,0,c.width,c.height),x=y.data,_=0,b=x.length,w=this.minOpacity,S=this.maxOpacity-w;_<b;){var v=x[_+3]/256,T=4*Math.floor(255*v);if(v>0){var C=o(v)?s:l;v>0&&(v=v*S+w),x[_++]=C[T],x[_++]=C[T+1],x[_++]=C[T+2],x[_++]=C[T+3]*v*256}else _+=4}return h.putImageData(y,0,0),c},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=Y_()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var n=t.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,r=n[i]||(n[i]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,s=0;s<256;s++)e[i](s/255,!0,o),r[a++]=o[0],r[a++]=o[1],r[a++]=o[2],r[a++]=o[3];return r}},Vs({type:"heatmap",render:function(t,e,i){var n;e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(i){i===t&&(n=e)})}),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):_g(r)&&this._renderOnGeo(r,t,n,i)},incrementalPrepareRender:function(t,e,i){this.group.removeAll()},incrementalRender:function(t,e,i,n){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,n,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,i,n,r){var a,s,l=t.coordinateSystem;if("cartesian2d"===l.type){var u=l.getAxis("x"),c=l.getAxis("y");a=u.getBandWidth(),s=c.getBandWidth()}for(var h=this.group,d=t.getData(),f=t.getModel("itemStyle").getItemStyle(["color"]),p=t.getModel("emphasis.itemStyle").getItemStyle(),g=t.getModel("label"),m=t.getModel("emphasis.label"),v=l.type,y="cartesian2d"===v?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],x=i;x<n;x++){var _;if("cartesian2d"===v){if(isNaN(d.get(y[2],x)))continue;var b=l.dataToPoint([d.get(y[0],x),d.get(y[1],x)]);_=new oT({shape:{x:b[0]-a/2,y:b[1]-s/2,width:a,height:s},style:{fill:d.getItemVisual(x,"color"),opacity:d.getItemVisual(x,"opacity")}})}else{if(isNaN(d.get(y[1],x)))continue;_=new oT({z2:1,shape:l.dataToRect([d.get(y[0],x)]).contentShape,style:{fill:d.getItemVisual(x,"color"),opacity:d.getItemVisual(x,"opacity")}})}var w=d.getItemModel(x);d.hasItemOption&&(f=w.getModel("itemStyle").getItemStyle(["color"]),p=w.getModel("emphasis.itemStyle").getItemStyle(),g=w.getModel("label"),m=w.getModel("emphasis.label"));var S=t.getRawValue(x),T="-";S&&null!=S[2]&&(T=S[2]),hr(f,p,g,m,{labelFetcher:t,labelDataIndex:x,defaultText:T,isRectText:!0}),_.setStyle(f),ur(_,d.hasItemOption?p:o({},p)),_.incremental=r,r&&(_.useHoverLayer=!0),h.add(_),d.setItemGraphicEl(x,_)}},_renderOnGeo:function(t,e,i,n){var r=i.targetVisuals.inRange,o=i.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new vg;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,n.getWidth()),f=Math.min(l.height+l.y,n.getHeight()),p=d-c,g=f-h,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,function(e,i,n){var r=t.dataToPoint([e,i]);return r[0]-=c,r[1]-=h,r.push(n),r}),y=i.getExtent(),x="visualMap.continuous"===i.type?xg(y,i.option.range):yg(y,i.getPieceList(),i.option.selected);s.update(v,p,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new ci({style:{width:p,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(_)},dispose:function(){}});var GE=PI.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(t){return t.stack=null,GE.superApply(this,"getInitialData",arguments)}}),qE=["itemStyle","borderWidth"],YE=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],XE=new ZS;Vs({type:"pictorialBar",render:function(t,e,i){var n=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=!!a.getBaseAxis().isHorizontal(),l=a.grid.getRect(),u={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:YE[+s],categoryDim:YE[1-s]};return r.diff(o).add(function(t){if(r.hasValue(t)){var e=Og(r,t),i=bg(r,t,e,u),o=Rg(r,u,i);r.setItemGraphicEl(t,o),n.add(o),Wg(o,u,i)}}).update(function(t,e){var i=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=Og(r,t),s=bg(r,t,a,u),l=Bg(r,s);i&&l!==i.__pictorialShapeStr&&(n.remove(i),r.setItemGraphicEl(t,null),i=null),i?zg(i,u,s):i=Rg(r,u,s,!0),r.setItemGraphicEl(t,i),i.__pictorialSymbolMeta=s,n.add(i),Wg(i,u,s)}else n.remove(i)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&Fg(o,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=r,this.group},dispose:F,remove:function(t,e){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(e){Fg(n,e.dataIndex,t,e)}):i.removeAll()}}),Ls(v(El,"pictorialBar")),Ps(cI("pictorialBar","roundRect"));var ZE=function(t,e,i,n,r){$D.call(this,t,e,i),this.type=n||"value",this.position=r||"bottom",this.orient=null};ZE.prototype={constructor:ZE,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},u(ZE,$D),jg.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:jg,_init:function(t,e,i){var n=this.dimension,r=new ZE(n,Bl(t),[0,0],t.get("type"),t.get("position")),o="category"===r.type;r.onBand=o&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},update:function(t,e){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData();d(e.mapDimension(this.dimension,!0),function(t){this._axis.scale.unionExtentFromData(e,t)},this),Fl(this._axis.scale,this._axis.model)}},this)},resize:function(t,e){this._rect=so({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,i=e.isHorizontal(),n=i?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(n[r],n[1-r]),this._updateAxisTransform(e,i?t.x:t.y)},_updateAxisTransform:function(t,e){var i=t.getExtent(),n=i[0]+i[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return n-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),i=this.getAxis();return"horizontal"===i.orient?i.contain(i.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),i=this.getRect(),n=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[r]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-r]=0===r?i.y+i.height/2:i.x+i.width/2,n}},Fo.register("single",{create:function(t,e){var i=[];return t.eachComponent("singleAxis",function(n,r){var o=new jg(n,t,e);o.name="single_"+r,o.resize(n,e),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=i&&i.coordinateSystem}}),i},dimensions:jg.prototype.dimensions});var KE=["axisLine","axisTickLabel","axisName"],JE=kI.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,i,n){var r=this.group;r.removeAll();var o=Ug(t),a=new CI(t,o);d(KE,a.add,a),r.add(a.getGroup()),t.get("splitLine.show")&&this._splitLine(t),JE.superCall(this,"render",t,e,i,n)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var i=t.getModel("splitLine"),n=i.getModel("lineStyle"),r=n.get("width"),o=n.get("color");o=o instanceof Array?o:[o];for(var a=t.coordinateSystem.getRect(),s=e.isHorizontal(),l=[],u=0,c=e.getTicksCoords({tickModel:i}),h=[],d=[],f=0;f<c.length;++f){var p=e.toGlobalCoord(c[f].coord);s?(h[0]=p,h[1]=a.y,d[0]=p,d[1]=a.y+a.height):(h[0]=a.x,h[1]=p,d[0]=a.x+a.width,d[1]=p);var g=u++%o.length;l[g]=l[g]||[],l[g].push(new aT(Gn({shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:{lineWidth:r},silent:!0})))}for(f=0;f<l.length;++f)this.group.add(xT(l[f],{style:{stroke:o[f%o.length],lineDash:n.getLineDash(r),lineWidth:r},silent:!0}))}}}),QE=YT.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),tO={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:2,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:2}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};n(QE.prototype,AD),xI("single",QE,function(t,e){return e.type||(e.data?"category":"value")},tO);var eO=function(t,e){var i,n=[],r=t.seriesIndex;if(null==r||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=zi(o,t);if(null==a||a<0||y(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)n=l.dataToPoint(o.getValues(f(l.dimensions,function(t){return o.mapDimension(t)}),a,!0))||[];else if(s){var u=s.getBoundingRect().clone();u.applyTransform(s.transform),n=[u.x+u.width/2,u.y+u.height/2]}return{point:n,el:s}},iO=d,nO=v,rO=Fi(),oO=(Fs({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),Fi()),aO=d,sO=Bs({type:"axisPointer",render:function(t,e,i){var n=e.getComponent("tooltip"),r=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";im("axisPointer",i,function(t,e,i){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){lm(e.getZr(),"axisPointer"),sO.superApply(this._model,"remove",arguments)},dispose:function(t,e){lm("axisPointer",e),sO.superApply(this._model,"dispose",arguments)}}),lO=Fi(),uO=i,cO=m;(um.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,n){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,i);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=v(cm,e,c);this.updatePointerEl(a,l,h,e),this.updateLabelEl(a,l,h,e)}else a=this._group=new jb,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),i.getZr().add(a);pm(a,e,!0),this._renderHandle(r)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,r="category"===n.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===i||null==i){var a=this.animationThreshold;if(r&&n.getBandWidth()>a)return!0;if(o){var s=xc(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===i},makeElOption:function(t,e,i,n,r){},createPointerEl:function(t,e,i,n){var r=e.pointer;if(r){var o=lO(t).pointerEl=new wT[r.type](uO(e.pointer));t.add(o)}},createLabelEl:function(t,e,i,n){if(e.label){var r=lO(t).labelEl=new oT(uO(e.label));t.add(r),dm(r,n)}},updatePointerEl:function(t,e,i){var n=lO(t).pointerEl;n&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var r=lO(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{shape:e.label.shape,position:e.label.position}),dm(r,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,r=e.getModel("handle"),o=e.get("status");if(!r.get("show")||!o||"hide"===o)return n&&i.remove(n),void(this._handle=null);var a;this._handle||(a=!0,n=this._handle=Ir(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){lb(t.event)},onmousedown:cO(this._onHandleDragMove,this,0,0),drift:cO(this._onHandleDragMove,this),ondragend:cO(this._onHandleDragEnd,this)}),i.add(n)),pm(n,e,!1);var s=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];n.setStyle(r.getItemStyle(null,s));var l=r.get("size");y(l)||(l=[l,l]),n.attr("scale",[l[0]/2,l[1]/2]),ka(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,a)}},_moveHandleToValue:function(t,e){cm(this._axisPointerModel,!e&&this._moveAnimation,this._handle,fm(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(fm(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(fm(n)),lO(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}}).constructor=um,Gi(um);var hO=um.extend({makeElOption:function(t,e,i,n,r){var o=i.axis,a=o.grid,s=n.get("type"),l=Tm(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=gm(n),h=dO[s](o,u,l,c);h.style=c,t.graphicKey=h.type,t.pointer=h}_m(e,t,Cc(a.model,i),i,n,r)},getHandleTransform:function(t,e,i){var n=Cc(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:xm(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var r=i.axis,o=r.grid,a=r.getGlobalExtent(!0),s=Tm(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=t.position;u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{position:u,rotation:t.rotation,cursorPoint:h,tooltipOption:d[l]}}}),dO={line:function(t,e,i,n){var r=bm([e,i[0]],[e,i[1]],Cm(t));return Gn({shape:r,style:n}),{type:"Line",shape:r}},shadow:function(t,e,i,n){var r=Math.max(1,t.getBandWidth()),o=i[1]-i[0];return{type:"Rect",shape:wm([e-r/2,i[0]],[r,o],Cm(t))}}};kI.registerAxisPointerClass("CartesianAxisPointer",hO),ks(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!y(e)&&(t.axisPointer.link=[e])}}),Es(CM.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=dc(t,e)}),Os({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},function(t,e,i){var n=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||m(i.dispatchAction,i),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){em(r)&&(r=eO({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=em(r),u=o.axesInfo,c=s.axesInfo,h="leave"===n||em(r),d={},f={},p={list:[],map:{}},g={showPointer:nO(Yg,f),showTooltip:nO(Xg,p)};iO(s.coordSysMap,function(t,e){var i=l||t.containPoint(r);iO(s.coordSysAxesInfo[e],function(t,e){var n=t.axis,o=Qg(u,t);if(!h&&i&&(!u||o)){var a=o&&o.value;null!=a||l||(a=n.pointToData(r)),null!=a&&Gg(t,a,g,!1,d)}})});var v={};return iO(c,function(t,e){var i=t.linkGroup;i&&!f[e]&&iO(i.axesInfo,function(e,n){var r=f[n];if(e!==t&&r){var o=r.value;i.mapper&&(o=t.axis.scale.parse(i.mapper(o,tm(e),tm(t)))),v[t.key]=o}})}),iO(v,function(t,e){Gg(c[e],t,g,!0,d)}),Zg(f,c,d),Kg(p,r,t,a),Jg(c,0,i),d}});var fO=["x","y"],pO=["width","height"],gO=um.extend({makeElOption:function(t,e,i,n,r){var o=i.axis,a=o.coordinateSystem,s=Dm(a,1-Mm(o)),l=a.dataToPoint(e)[0],u=n.get("type");if(u&&"none"!==u){var c=gm(n),h=mO[u](o,l,s,c);h.style=c,t.graphicKey=h.type,t.pointer=h}_m(e,t,Ug(i),i,n,r)},getHandleTransform:function(t,e,i){var n=Ug(e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:xm(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var r=i.axis,o=r.coordinateSystem,a=Mm(r),s=Dm(o,a),l=t.position;l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=Dm(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{position:l,rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}}}),mO={line:function(t,e,i,n){var r=bm([e,i[0]],[e,i[1]],Mm(t));return Gn({shape:r,style:n}),{type:"Line",shape:r}},shadow:function(t,e,i,n){var r=t.getBandWidth(),o=i[1]-i[0];return{type:"Rect",shape:wm([e-r/2,i[0]],[r,o],Mm(t))}}};kI.registerAxisPointerClass("SingleAxisPointer",gO),Bs({type:"single"});var vO=LC.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){vO.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,i=f(kp().key(function(t){return t[2]}).entries(t),function(t){return{name:t.key,dataList:t.values}}),n=i.length,r=-1,o=-1,a=0;a<n;++a){var s=i[a].dataList.length;s>r&&(r=s,o=a)}for(var l=0;l<n;++l)if(l!==o)for(var u=i[l].name,c=0;c<r;++c){for(var h=i[o].dataList[c][0],d=i[l].dataList.length,p=-1,g=0;g<d;++g)if(i[l].dataList[g][0]===h){p=g;break}-1===p&&(t[e]=[],t[e][0]=h,t[e][1]=0,t[e][2]=u,e++)}return t},getInitialData:function(t,e){for(var i=e.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0].get("type"),n=g(t.data,function(t){return void 0!==t[2]}),r=this.fixData(n||[]),o=[],a=this.nameMap=R(),s=0,l=0;l<r.length;++l)o.push(r[l][2]),a.get(r[l][2])||(a.set(r[l][2],s),s++);var u=rD(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Gs(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),c=new eD(u,this);return c.initData(r),c},getLayerSeries:function(){for(var t=this.getData(),e=t.count(),i=[],n=0;n<e;++n)i[n]=n;for(var r=f(kp().key(function(e){return t.get("name",e)}).entries(i),function(t){return{name:t.key,indices:t.values}}),o=t.mapDimension("single"),a=0;a<r.length;++a)r[a].indices.sort(function(e,i){return t.get(o,e)-t.get(o,i)});return r},getAxisTooltipData:function(t,e,i){y(t)||(t=t?[t]:[]);for(var n,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,d=0;d<h;++d){var f=r.get(t[0],o[l].indices[d]),p=Math.abs(f-e);p<=u&&(n=f,u=p,c=o[l].indices[d])}a.push(c)}return{dataIndices:a,nestestValue:n}},formatTooltip:function(t){var e=this.getData(),i=e.getName(t),n=e.get(e.mapDimension("value"),t);return(isNaN(n)||null==n)&&(n="-"),Jr(i+" : "+n)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}});Vs({type:"themeRiver",init:function(){this._layers=[]},render:function(t,e,i){function n(t){return t.name}function r(e,i,n){var r=this._layers;if("remove"!==e){for(var u,c=[],h=[],f=l[i].indices,p=0;p<f.length;p++){var g=a.getItemLayout(f[p]),m=g.x,v=g.y0,y=g.y;c.push([m,v]),h.push([m,v+y]),u=a.getItemVisual(f[p],"color")}var x,_,b=a.getItemLayout(f[0]),w=a.getItemModel(f[p-1]),S=w.getModel("label"),T=S.get("margin");if("add"===e)C=d[i]=new jb,x=new uI({shape:{points:c,stackedOnPoints:h,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),_=new XS({style:{x:b.x-T,y:b.y0+b.y/2}}),C.add(x),C.add(_),s.add(C),x.setClipPath(Im(x.getBoundingRect(),t,function(){x.removeClipPath()}));else{var C=r[n];x=C.childAt(0),_=C.childAt(1),s.add(C),d[i]=C,br(x,{shape:{points:c,stackedOnPoints:h}},t),br(_,{style:{x:b.x-T,y:b.y0+b.y/2}},t)}var M=w.getModel("emphasis.itemStyle"),D=w.getModel("itemStyle");dr(_.style,S,{text:S.get("show")?t.getFormattedLabel(f[p-1],"normal")||a.getName(f[p-1]):null,textVerticalAlign:"middle"}),x.setStyle(o({fill:u},D.getItemStyle(["color"]))),ur(x,M.getItemStyle())}else s.remove(r[i])}var a=t.getData(),s=this.group,l=t.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,h=u.boundaryGap;s.attr("position",[0,c.y+h[0]]);var d={};new $s(this._layersSeries||[],l,n,n).add(m(r,this,"add")).update(m(r,this,"update")).remove(m(r,this,"remove")).execute(),this._layersSeries=l,this._layers=d},dispose:function(){}}),Ls(function(t,e){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),i=t.coordinateSystem,n={},r=i.getRect();n.rect=r;var o=t.get("boundaryGap"),a=i.getAxis();n.boundaryGap=o,"horizontal"===a.orient?(o[0]=Pr(o[0],r.height),o[1]=Pr(o[1],r.height),Am(e,t,r.height-o[0]-o[1])):(o[0]=Pr(o[0],r.width),o[1]=Pr(o[1],r.width),Am(e,t,r.width-o[0]-o[1])),e.setLayout("layoutInfo",n)})}),Ps(function(t){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),i=t.getRawData(),n=t.get("color"),r=R();e.each(function(t){r.set(e.getRawIndex(t),t)}),i.each(function(o){var a=i.getName(o),s=n[(t.nameMap.get(a)-1)%n.length];i.setItemVisual(o,"color",s);var l=r.get(o);null!=l&&e.setItemVisual(l,"color",s)})})}),Es(KI("themeRiver")),LC.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(t,e){var i={name:t.name,children:t.data};Em(i);var n=t.levels||[],r={};return r.levels=n,Eh.createTree(i,this,r).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var e=LC.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=nd(i,this),e},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0,emphasis:{}},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1,emphasis:{},highlight:{opacity:1},downplay:{opacity:.9}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});var yO={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},xO=2,_O=4,bO=Om.prototype;bO.updateData=function(t,e,i,r,s){this.node=e,e.piece=this,r=r||this._seriesModel,s=s||this._ecModel;var l=this.childAt(0);l.dataIndex=e.dataIndex;var u=e.getModel(),c=e.getLayout();c||console.log(e.getLayout());var h=o({},c);h.label=null;var d,f=Nm(e,0,s),p=u.getModel("itemStyle").getItemStyle();d=a({lineJoin:"bevel",fill:(d="normal"===i?p:n(u.getModel(i+".itemStyle").getItemStyle(),p)).fill||f},d),t?(l.setShape(h),l.shape.r=c.r0,br(l,{shape:{r:c.r}},r,e.dataIndex),l.useStyle(d)):"object"==typeof d.fill&&d.fill.type||"object"==typeof l.style.fill&&l.style.fill.type?(br(l,{shape:h},r),l.useStyle(d)):br(l,{shape:h,style:d},r),this._updateLabel(r,f,i);var g=u.getShallow("cursor");if(g&&l.attr("cursor",g),t){var m=r.getShallow("highlightPolicy");this._initEvents(l,e,r,m)}this._seriesModel=r||this._seriesModel,this._ecModel=s||this._ecModel},bO.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode(function(i){i.piece&&(e.node===i?i.piece.updateData(!1,i,"emphasis"):Pm(i,e.node,t)?i.piece.childAt(0).trigger("highlight"):t!==yO.NONE&&i.piece.childAt(0).trigger("downplay"))})},bO.onNormal=function(){this.node.hostTree.root.eachNode(function(t){t.piece&&t.piece.updateData(!1,t,"normal")})},bO.onHighlight=function(){this.updateData(!1,this.node,"highlight")},bO.onDownplay=function(){this.updateData(!1,this.node,"downplay")},bO._updateLabel=function(t,e,i){function n(t){var e=a.get(t);return null==e?o.get(t):e}var r=this.node.getModel(),o=r.getModel("label"),a="normal"===i||"emphasis"===i?o:r.getModel(i+".label"),s=r.getModel("emphasis.label"),l=M(t.getFormattedLabel(this.node.dataIndex,"normal",null,null,"label"),this.node.name);!1===n("show")&&(l="");var u=this.node.getLayout(),c=a.get("minAngle");null==c&&(c=o.get("minAngle")),c=c/180*Math.PI;var h=u.endAngle-u.startAngle;null!=c&&Math.abs(h)<c&&(l="");var d=this.childAt(1);hr(d.style,d.hoverStyle||{},o,s,{defaultText:a.getShallow("show")?l:null,autoColor:e,useInsideStyle:!0});var f,p=(u.startAngle+u.endAngle)/2,g=Math.cos(p),m=Math.sin(p),v=n("position"),y=n("distance")||0,x=n("align");"outside"===v?(f=u.r+y,x=p>Math.PI/2?"right":"left"):x&&"center"!==x?"left"===x?(f=u.r0+y,p>Math.PI/2&&(x="right")):"right"===x&&(f=u.r-y,p>Math.PI/2&&(x="left")):(f=(u.r+u.r0)/2,x="center"),d.attr("style",{text:l,textAlign:x,textVerticalAlign:n("verticalAlign")||"middle",opacity:n("opacity")});var _=f*g+u.cx,b=f*m+u.cy;d.attr("position",[_,b]);var w=n("rotate"),S=0;"radial"===w?(S=-p)<-Math.PI/2&&(S+=Math.PI):"tangential"===w?(S=Math.PI/2-p)>Math.PI/2?S-=Math.PI:S<-Math.PI/2&&(S+=Math.PI):"number"==typeof w&&(S=w*Math.PI/180),d.attr("rotation",S)},bO._initEvents=function(t,e,i,n){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,o=function(){r.onEmphasis(n)},a=function(){r.onNormal()};i.isAnimationEnabled()&&t.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",function(){r.onDownplay()}).on("highlight",function(){r.onHighlight()})},u(Om,jb),Ta.extend({type:"sunburst",init:function(){},render:function(t,e,i,n){function r(i,n){if(h||!i||i.getValue()||(i=null),i!==l&&n!==l)if(n&&n.piece)i?(n.piece.updateData(!1,i,"normal",t,e),s.setItemGraphicEl(i.dataIndex,n.piece)):o(n);else if(i){var r=new Om(i,t,e);c.add(r),s.setItemGraphicEl(i.dataIndex,r)}}function o(t){t&&t.piece&&(c.remove(t.piece),t.piece=null)}var a=this;this.seriesModel=t,this.api=i,this.ecModel=e;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,h=t.get("renderLabelForZeroData"),d=[];u.eachNode(function(t){d.push(t)});var f=this._oldChildren||[];if(function(t,e){function i(t){return t.getId()}function n(i,n){r(null==i?null:t[i],null==n?null:e[n])}0===t.length&&0===e.length||new $s(e,t,i,i).add(n).update(n).remove(v(n,null)).execute()}(d,f),function(i,n){if(n.depth>0){a.virtualPiece?a.virtualPiece.updateData(!1,i,"normal",t,e):(a.virtualPiece=new Om(i,t,e),c.add(a.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent);var r=function(t){a._rootToNode(n.parentNode)};n.piece._onclickEvent=r,a.virtualPiece.on("click",r)}else a.virtualPiece&&(c.remove(a.virtualPiece),a.virtualPiece=null)}(l,u),n&&n.highlight&&n.highlight.piece){var p=t.getShallow("highlightPolicy");n.highlight.piece.onEmphasis(p)}else if(n&&n.unhighlight){var g=this.virtualPiece;!g&&l.children.length&&(g=l.children[0].piece),g&&g.onNormal()}this._initEvents(),this._oldChildren=d},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var i=!1;t.seriesModel.getViewRoot().eachNode(function(n){if(!i&&n.piece&&n.piece.childAt(0)===e.target){var r=n.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(n);else if("link"===r){var o=n.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";window.open(a,s)}}i=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,r=t[1]-i.cy,o=Math.sqrt(n*n+r*r);return o<=i.r&&o>=i.r0}}});var wO="sunburstRootToNode";Os({type:wO,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,i){var n=td(t,[wO],e);if(n){var r=e.getViewRoot();r&&(t.direction=id(r,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node)}})});var SO="sunburstHighlight";Os({type:SO,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,i){var n=td(t,[SO],e) ;n&&(t.highlight=n.node)})}),Os({type:"sunburstUnhighlight",update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},function(e,i){t.unhighlight=!0})});var TO=Math.PI/180;Ps(v(qI,"sunburst")),Ls(v(function(t,e,i,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),n=t.get("radius");y(n)||(n=[0,n]),y(e)||(e=[e,e]);var r=i.getWidth(),o=i.getHeight(),a=Math.min(r,o),s=Pr(e[0],r),l=Pr(e[1],o),u=Pr(n[0],a/2),c=Pr(n[1],a/2),h=-t.get("startAngle")*TO,f=t.get("minAngle")*TO,p=t.getData().tree.root,g=t.getViewRoot(),m=g.depth,v=t.get("sort");null!=v&&Rm(g,v);var x=0;d(g.children,function(t){!isNaN(t.getValue())&&x++});var _=g.getValue(),b=Math.PI/(_||x)*2,w=g.depth>0,S=g.height-(w?-1:1),T=(c-u)/(S||1),C=t.get("clockwise"),M=t.get("stillShowZeroSum"),D=C?1:-1,I=function(t,e){if(t){var i=e;if(t!==p){var n=t.getValue(),r=0===_&&M?b:n*b;r<f&&(r=f),i=e+D*r;var o=t.depth-m-(w?-1:1),c=u+T*o,h=u+T*(o+1),g=t.getModel();null!=g.get("r0")&&(c=Pr(g.get("r0"),a/2)),null!=g.get("r")&&(h=Pr(g.get("r"),a/2)),t.setLayout({angle:r,startAngle:e,endAngle:i,clockwise:C,cx:s,cy:l,r0:c,r:h})}if(t.children&&t.children.length){var v=0;d(t.children,function(t){v+=I(t,e+v)})}return i-e}};if(w){var A=u,k=u+T,E=2*Math.PI;p.setLayout({angle:E,startAngle:h,endAngle:h+E,clockwise:C,cx:s,cy:l,r0:A,r:k})}I(g,h)})},"sunburst")),Es(v(KI,"sunburst"));var CO=["itemStyle"],MO=["emphasis","itemStyle"],DO=["label"],IO=["emphasis","label"],AO="e\0\0",kO={cartesian2d:function(t){var e=t.grid.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:m(Fm,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:m(Bm,t)}}},singleAxis:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:m(Hm,t)}}},polar:function(t){var e=t.getRadiusAxis(),i=t.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:m(function(n){var r=e.dataToRadius(n[0]),o=i.dataToAngle(n[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a}),size:m(Vm,t)}}},calendar:function(t){var e=t.getRect(),i=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(e,i){return t.dataToPoint(e,i)}}}}};LC.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0},getInitialData:function(t,e){return dl(this.getSource(),this)},getDataParams:function(t,e,i){var n=LC.prototype.getDataParams.apply(this,arguments);return i&&(n.info=i.info),n}}),Ta.extend({type:"custom",_data:null,render:function(t,e,i,n){var r=this._data,o=t.getData(),a=this.group,s=Um(t,o,e,i);o.diff(r).add(function(e){qm(null,e,s(e,n),t,a,o)}).update(function(e,i){qm(r.getItemGraphicEl(i),e,s(e,n),t,a,o)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&a.remove(e)}).execute(),this._data=o},incrementalPrepareRender:function(t,e,i){this.group.removeAll(),this._data=null},incrementalRender:function(t,e,i,n,r){for(var o=e.getData(),a=Um(e,o,i,n),s=t.start;s<t.end;s++)qm(null,s,a(s,r),e,this.group,o).traverse(function(t){t.isGroup||(t.incremental=!0,t.useHoverLayer=!0)})},dispose:F,filterForExposedEvent:function(t,e,i,n){var r=e.element;if(null==r||i.name===r)return!0;for(;(i=i.parent)&&i!==this.group;)if(i.name===r)return!0;return!1}}),ks(function(t){var e=t.graphic;y(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])});var EO=Fs({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,EO.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,e){var i=this.option,n=(e?i:t).elements,r=i.elements=e?[]:i.elements,o=[];this._flatten(n,o);var a=Oi(r,o);Ni(a);var s=this._elOptionsToUpdate=[];d(a,function(t,e){var i=t.option;i&&(s.push(i),sv(t,i),lv(r,e,i),uv(r[e],i))},this);for(var l=r.length-1;l>=0;l--)null==r[l]?r.splice(l,1):delete r[l].$action},_flatten:function(t,e,i){d(t,function(t){if(t){i&&(t.parentOption=i),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});Bs({type:"graphic",init:function(t,e){this._elMap=R(),this._lastGraphicModel},render:function(t,e,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,i)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var i=this._elMap,n=this.group;d(e,function(e){var r=e.$action,o=e.id,a=i.get(o),s=e.parentId,l=null!=s?i.get(s):n,u=e.style;"text"===e.type&&u&&(e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=null),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke));var c=ov(e);r&&"merge"!==r?"replace"===r?(rv(a,i),nv(o,l,c,i)):"remove"===r&&rv(a,i):a?a.attr(c):nv(o,l,c,i);var h=i.get(o);h&&(h.__ecGraphicWidth=e.width,h.__ecGraphicHeight=e.height,cv(h,t))})}},_relocate:function(t,e){for(var i=t.option.elements,n=this.group,r=this._elMap,o=i.length-1;o>=0;o--){var a=i[o],s=r.get(a.id);if(s){var l=s.parent;lo(s,a,l===n?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0},null,{hv:a.hv,boundingMode:a.bounding})}}},_clear:function(){var t=this._elMap;t.each(function(e){rv(e,t)}),this._elMap=R()},dispose:function(){this._clear()}});var OO=Fs({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{}},mergeOption:function(t){OO.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var e=[],i=[];t.eachRawSeries(function(n){var r=n.name;i.push(r);var o;if(n.legendDataProvider){var a=n.legendDataProvider(),s=a.mapArray(a.getName);t.isSeriesFiltered(n)||(i=i.concat(s)),s.length?e=e.concat(s):o=!0}else o=!0;o&&Li(n)&&e.push(n.name)}),this._availableNames=i;var n=f(this.get("data")||e,function(t){return"string"!=typeof t&&"number"!=typeof t||(t={name:t}),new Ar(t,this,this.ecModel)},this);this._data=n},getData:function(){return this._data},select:function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&d(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&l(this._availableNames,t)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});Os("legendToggleSelect","legendselectchanged",v(hv,"toggleSelected")),Os("legendSelect","legendselected",v(hv,"select")),Os("legendUnSelect","legendunselected",v(hv,"unSelect"));var NO=v,LO=d,PO=jb,RO=Bs({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new PO),this._backgroundEl},getContentGroup:function(){return this._contentGroup},render:function(t,e,i){if(this.resetInner(),t.get("show",!0)){var n=t.get("align");n&&"auto"!==n||(n="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left"),this.renderInner(n,t,e,i);var r=t.getBoxLayoutParams(),o={width:i.getWidth(),height:i.getHeight()},s=t.get("padding"),l=so(r,o,s),u=this.layoutInner(t,n,l),c=so(a({width:u.width,height:u.height},r),o,s);this.group.attr("position",[c.x-u.x,c.y-u.y]),this.group.add(this._backgroundEl=fv(u,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(t,e,i,n){var r=this.getContentGroup(),o=R(),a=e.get("selectedMode"),s=[];i.eachRawSeries(function(t){!t.get("legendHoverLink")&&s.push(t.id)}),LO(e.getData(),function(l,u){var c=l.get("name");if(this.newlineDisabled||""!==c&&"\n"!==c){var h=i.getSeriesByName(c)[0];if(!o.get(c))if(h){var d=h.getData(),f=d.getVisual("color");"function"==typeof f&&(f=f(h.getDataParams(0)));var p=d.getVisual("legendSymbol")||"roundRect",g=d.getVisual("symbol");this._createItem(c,u,l,e,p,g,t,f,a).on("click",NO(pv,c,n)).on("mouseover",NO(gv,h.name,null,n,s)).on("mouseout",NO(mv,h.name,null,n,s)),o.set(c,!0)}else i.eachRawSeries(function(i){if(!o.get(c)&&i.legendDataProvider){var r=i.legendDataProvider(),h=r.indexOfName(c);if(h<0)return;var d=r.getItemVisual(h,"color");this._createItem(c,u,l,e,"roundRect",null,t,d,a).on("click",NO(pv,c,n)).on("mouseover",NO(gv,null,c,n,s)).on("mouseout",NO(mv,null,c,n,s)),o.set(c,!0)}},this)}else r.add(new PO({newline:!0}))},this)},_createItem:function(t,e,i,n,r,a,s,l,u){var c=n.get("itemWidth"),h=n.get("itemHeight"),d=n.get("inactiveColor"),f=n.get("symbolKeepAspect"),p=n.isSelected(t),g=new PO,m=i.getModel("textStyle"),v=i.get("icon"),y=i.getModel("tooltip"),x=y.parentModel;if(r=v||r,g.add(Gl(r,0,0,c,h,p?l:d,null==f||f)),!v&&a&&(a!==r||"none"===a)){var _=.8*h;"none"===a&&(a="circle"),g.add(Gl(a,(c-_)/2,(h-_)/2,_,_,p?l:d,null==f||f))}var b="left"===s?c+5:-5,w=s,S=n.get("formatter"),T=t;"string"==typeof S&&S?T=S.replace("{name}",null!=t?t:""):"function"==typeof S&&(T=S(t)),g.add(new XS({style:dr({},m,{text:T,x:b,y:h/2,textFill:p?m.getTextColor():d,textAlign:w,textVerticalAlign:"middle"})}));var C=new oT({shape:g.getBoundingRect(),invisible:!0,tooltip:y.get("show")?o({content:t,formatter:x.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},y.option):null});return g.add(C),g.eachChild(function(t){t.silent=!0}),C.silent=!u,this.getContentGroup().add(g),ur(g),g.__legendDataIndex=e,g},layoutInner:function(t,e,i){var n=this.getContentGroup();UT(t.get("orient"),n,t.get("itemGap"),i.width,i.height);var r=n.getBoundingRect();return n.attr("position",[-r.x,-r.y]),this.group.getBoundingRect()}});Es(function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}),YT.registerSubTypeDefaulter("legend",function(){return"plain"});var zO=OO.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(t,e,i,n){var r=ho(t);zO.superCall(this,"init",t,e,i,n),vv(this,t,r)},mergeOption:function(t,e){zO.superCall(this,"mergeOption",t,e),vv(this,this.option,t)},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}}}),FO=jb,BO=["width","height"],HO=["x","y"],VO=RO.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){VO.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new FO),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new FO),this._showController},resetInner:function(){VO.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,e,i,n){function r(t,i){var r=t+"DataIndex",l=Ir(e.get("pageIcons",!0)[e.getOrient().name][i],{onclick:m(o._pageGo,o,r,e,n)},{x:-s[0]/2,y:-s[1]/2,width:s[0],height:s[1]});l.name=t,a.add(l)}var o=this;VO.superCall(this,"renderInner",t,e,i,n);var a=this._controllerGroup,s=e.get("pageIconSize",!0);y(s)||(s=[s,s]),r("pagePrev",0);var l=e.getModel("pageTextStyle");a.add(new XS({name:"pageText",style:{textFill:l.getTextColor(),font:l.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),r("pageNext",1)},layoutInner:function(t,e,i){var n=this.getContentGroup(),r=this._containerGroup,o=this._controllerGroup,a=t.getOrient().index,s=BO[a],l=BO[1-a],u=HO[1-a];UT(t.get("orient"),n,t.get("itemGap"),a?i.width:null,a?null:i.height),UT("horizontal",o,t.get("pageButtonItemGap",!0));var c=n.getBoundingRect(),h=o.getBoundingRect(),d=this._showController=c[s]>i[s],f=[-c.x,-c.y];f[a]=n.position[a];var p=[0,0],g=[-h.x,-h.y],m=D(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?g[a]+=i[s]-h[s]:p[a]+=h[s]+m),g[1-a]+=c[l]/2-h[l]/2,n.attr("position",f),r.attr("position",p),o.attr("position",g);var v=this.group.getBoundingRect();if((v={x:0,y:0})[s]=d?i[s]:c[s],v[l]=Math.max(c[l],h[l]),v[u]=Math.min(0,h[u]+g[1-a]),r.__rectSize=i[s],d){var y={x:0,y:0};y[s]=Math.max(i[s]-h[s]-m,0),y[l]=v[l],r.setClipPath(new oT({shape:y})),r.__rectSize=y[s]}else o.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return null!=x.pageIndex&&br(n,{position:x.contentPosition},!!d&&t),this._updatePageInfoView(t,x),v},_pageGo:function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},_updatePageInfoView:function(t,e){var i=this._controllerGroup;d(["pagePrev","pageNext"],function(n){var r=null!=e[n+"DataIndex"],o=i.childOfName(n);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var n=i.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;n&&r&&n.setStyle("text",_(r)?r.replace("{current}",a).replace("{total}",s):r({current:a,total:s}))},_getPageInfo:function(t){function e(t){var e=t.getBoundingRect().clone();return e[f]+=t.position[c],e}var i,n,r,o,a=t.get("scrollDataIndex",!0),s=this.getContentGroup(),l=s.getBoundingRect(),u=this._containerGroup.__rectSize,c=t.getOrient().index,h=BO[c],d=BO[1-c],f=HO[c],p=s.position.slice();this._showController?s.eachChild(function(t){t.__legendDataIndex===a&&(o=t)}):o=s.childAt(0);var g=u?Math.ceil(l[h]/u):0;if(o){var m=o.getBoundingRect(),v=o.position[c]+m[f];p[c]=-v-l[f],i=Math.floor(g*(v+m[f]+u/2)/l[h]),i=l[h]&&g?Math.max(0,Math.min(g-1,i)):-1;var y={x:0,y:0};y[h]=u,y[d]=l[d],y[f]=-p[c]-l[f];var x,_=s.children();if(s.eachChild(function(t,i){var n=e(t);n.intersect(y)&&(null==x&&(x=i),r=t.__legendDataIndex),i===_.length-1&&n[f]+n[h]<=y[f]+y[h]&&(r=null)}),null!=x){var b=e(_[x]);if(y[f]=b[f]+b[h]-y[h],x<=0&&b[f]>=y[f])n=null;else{for(;x>0&&e(_[x-1]).intersect(y);)x--;n=_[x].__legendDataIndex}}}return{contentPosition:p,pageIndex:i,pageCount:g,pagePrevDataIndex:n,pageNextDataIndex:r}}});Os("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(i)})}),Fs({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});var WO=d,$O=Kr,jO=["","-webkit-","-moz-","-o-"];bv.prototype={constructor:bv,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i.position&&"absolute"!==e.position&&(i.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText="position:static;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+_v(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var i,n=this._zr;n&&n.painter&&(i=n.painter.getViewportRootOffset())&&(t+=i.offsetLeft,e+=i.offsetTop);var r=this.el.style;r.left=t+"px",r.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(m(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(this.el);i&&(t+=parseInt(i.paddingLeft,10)+parseInt(i.paddingRight,10)+parseInt(i.borderLeftWidth,10)+parseInt(i.borderRightWidth,10),e+=parseInt(i.paddingTop,10)+parseInt(i.paddingBottom,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10))}return{width:t,height:e}}},wv.prototype={constructor:wv,_enterable:!0,update:function(){},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,i){this.el&&this._zr.remove(this.el);for(var n={},r=t,o=r.indexOf("{marker");o>=0;){var a=r.indexOf("|}"),s=r.substr(o+"{marker".length,a-o-"{marker".length);s.indexOf("sub")>-1?n["marker"+s]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[s],textOffset:[3,0]}:n["marker"+s]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[s]},o=(r=r.substr(a+1)).indexOf("{marker")}this.el=new XS({style:{rich:n,text:t,textLineHeight:20,textBackgroundColor:i.get("backgroundColor"),textBorderRadius:i.get("borderRadius"),textFill:i.get("textStyle.color"),textPadding:i.get("padding")},z:i.get("z")}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr("position",[t,e])},hide:function(){this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(m(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){return this.getSize()}};var UO=m,GO=d,qO=Pr,YO=new oT({shape:{x:-1,y:-1,width:2,height:2}});Bs({type:"tooltip",init:function(t,e){if(!z_.node){var i=t.getComponent("tooltip").get("renderMode");this._renderMode=$i(i);var n;"html"===this._renderMode?(n=new bv(e.getDom(),e),this._newLine="<br/>"):(n=new wv(e),this._newLine="\n"),this._tooltipContent=n}},render:function(t,e,i){if(!z_.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");im("itemTooltip",this._api,UO(function(e,i,n){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(i,n):"leave"===e&&this._hide(n))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})})}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!z_.node){var r=Tv(n,i);this._ticket="";var o=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var a=YO;a.position=[n.x,n.y],a.update(),a.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:a},r)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,event:{},dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},r);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var s=eO(n,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:n.position,target:s.el,event:{}},r)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target,event:{}},r))}},manuallyHideTip:function(t,e,i,n){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(Tv(n,i))},_manuallyAxisShowTip:function(t,e,i,n){var r=n.seriesIndex,o=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===(t=Sv([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:n.position}),!0}},_tryShow:function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;n&&n.length?this._showAxisTooltip(n,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=m(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,r=this._tooltipModel,o=[e.offsetX,e.offsetY],a=[],s=[],l=Sv([e.tooltipOption,r]),u=this._renderMode,c=this._newLine,h={};GO(t,function(t){GO(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value,o=[];if(e&&null!=r){var l=ym(r,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);d(t.seriesDataIndices,function(a){var c=i.getSeriesByIndex(a.seriesIndex),d=a.dataIndexInside,f=c&&c.getDataParams(d);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Wl(e.axis,r),f.axisValueLabel=l,f){s.push(f);var p,g=c.formatTooltip(d,!0,null,u);if(b(g)){p=g.html;var m=g.markers;n(h,m)}else p=g;o.push(p)}});var f=l;"html"!==u?a.push(o.join(c)):a.push((f?Jr(f)+c:"")+o.join(c))}})},this),a.reverse(),a=a.join(this._newLine+this._newLine);var f=e.position;this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(l,f,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(l,a,s,Math.random(),o[0],o[1],f,void 0,h)})},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,r=e.seriesIndex,o=n.getSeriesByIndex(r),a=e.dataModel||o,s=e.dataIndex,l=e.dataType,u=a.getData(),c=Sv([u.getItemModel(s),a,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),h=c.get("trigger");if(null==h||"item"===h){var d,f,p=a.getDataParams(s,l),g=a.formatTooltip(s,!1,l,this._renderMode);b(g)?(d=g.html,f=g.markers):(d=g,f=null);var m="item_"+a.name+"_"+s;this._showOrMove(c,function(){this._showTooltipContent(c,d,p,m,t.offsetX,t.offsetY,t.position,t.target,f)}),i({type:"showTip",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){var r=n;n={content:r,formatter:r}}var o=new Ar(n,this._tooltipModel,this._ecModel),a=o.get("content"),s=Math.random();this._showOrMove(o,function(){this._showTooltipContent(o,a,o.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)}),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,c=t.get("formatter");a=a||t.get("position");var h=e;if(c&&"string"==typeof c)h=Qr(c,i,!0);else if("function"==typeof c){var d=UO(function(e,n){e===this._ticket&&(u.setContent(n,l,t),this._updatePosition(t,a,r,o,u,i,s))},this);this._ticket=n,h=c(i,n,d)}u.setContent(h,l,t),u.show(t),this._updatePosition(t,a,r,o,u,i,s)}},_updatePosition:function(t,e,i,n,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),"function"==typeof e&&(e=e([i,n],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),y(e))i=qO(e[0],s),n=qO(e[1],l);else if(b(e)){e.width=u[0],e.height=u[1];var f=so(e,{width:s,height:l});i=f.x,n=f.y,c=null,h=null}else"string"==typeof e&&a?(i=(p=Dv(e,d,u))[0],n=p[1]):(i=(p=Cv(i,n,r,s,l,c?null:20,h?null:20))[0],n=p[1]);if(c&&(i-=Iv(c)?u[0]/2:"right"===c?u[0]:0),h&&(n-=Iv(h)?u[1]/2:"bottom"===h?u[1]:0),t.get("confine")){var p=Mv(i,n,r,s,l);i=p[0],n=p[1]}r.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&GO(e,function(e,n){var r=e.dataByAxis||{},o=(t[n]||{}).dataByAxis||[];(i&=r.length===o.length)&&GO(r,function(t,e){var n=o[e]||{},r=t.seriesDataIndices||[],a=n.seriesDataIndices||[];(i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&r.length===a.length)&&GO(r,function(t,e){var n=a[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})})}),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){z_.node||(this._tooltipContent.hide(),lm("itemTooltip",e))}}),Os({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),Os({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){}),Ov.prototype={constructor:Ov,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:$D.prototype.dataToCoord,radiusToData:$D.prototype.coordToData},u(Ov,$D);var XO=Fi();Nv.prototype={constructor:Nv,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:$D.prototype.dataToCoord,angleToData:$D.prototype.coordToData,calculateCategoryInterval:function(){var t=this,e=t.getLabelModel(),i=t.scale,n=i.getExtent(),r=i.count();if(n[1]-n[0]<1)return 0;var o=n[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=Ie(o,e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),h=XO(t.model),d=h.lastAutoInterval,f=h.lastTickCount;return null!=d&&null!=f&&Math.abs(d-c)<=1&&Math.abs(f-r)<=1&&d>c?c=d:(h.lastTickCount=r,h.lastAutoInterval=c),c}},u(Nv,$D);var ZO=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new Ov,this._angleAxis=new Nv,this._radiusAxis.polar=this._angleAxis.polar=this};ZO.prototype={type:"polar",axisPointerEnabled:!0,constructor:ZO,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),r=n.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);n.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=Math.atan2(-i,e)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI;return[Math.cos(i)*e+this.cx,-Math.sin(i)*e+this.cy]}};var KO=YT.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});n(KO.prototype,AD);var JO={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};xI("angle",KO,Lv,JO.angle),xI("radius",KO,Lv,JO.radius),Fs({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});var QO={dimensions:ZO.prototype.dimensions,create:function(t,e){var i=[];return t.eachComponent("polar",function(t,n){var r=new ZO(n);r.update=Rv;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");zv(o,s),zv(a,l),Pv(r,t,e),i.push(r),t.coordinateSystem=r,r.model=t}),t.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=i.coordinateSystem}}),i}};Fo.register("polar",QO);var tN=["axisLine","axisLabel","axisTick","splitLine","splitArea"];kI.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,o=r.getRadiusAxis().getExtent(),a=n.getTicksCoords(),s=f(n.getViewLabels(),function(t){return(t=i(t)).coord=n.dataToCoord(t.tickValue),t});Hv(s),Hv(a),d(tN,function(e){!t.get(e+".show")||n.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,r,a,o,s)},this)}},_axisLine:function(t,e,i,n){var r=t.getModel("axisLine.lineStyle"),o=new ZS({shape:{cx:e.cx,cy:e.cy,r:n[Bv(e)]},style:r.getLineStyle(),z2:1,silent:!0});o.style.fill=null,this.group.add(o)},_axisTick:function(t,e,i,n){var r=t.getModel("axisTick"),o=(r.get("inside")?-1:1)*r.get("length"),s=n[Bv(e)],l=f(i,function(t){return new aT({shape:Fv(e,[s,s+o],t.coord)})});this.group.add(xT(l,{style:a(r.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,i,n,r){var o=t.getCategories(!0),a=t.getModel("axisLabel"),s=a.get("margin");d(r,function(i,r){ var l=a,u=i.tickValue,c=n[Bv(e)],h=e.coordToPoint([c+s,i.coord]),d=e.cx,f=e.cy,p=Math.abs(h[0]-d)/c<.3?"center":h[0]>d?"left":"right",g=Math.abs(h[1]-f)/c<.3?"middle":h[1]>f?"top":"bottom";o&&o[u]&&o[u].textStyle&&(l=new Ar(o[u].textStyle,a,a.ecModel));var m=new XS({silent:!0});this.group.add(m),dr(m.style,l,{x:h[0],y:h[1],textFill:l.getTextColor()||t.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:p,textVerticalAlign:g})},this)},_splitLine:function(t,e,i,n){var r=t.getModel("splitLine").getModel("lineStyle"),o=r.get("color"),s=0;o=o instanceof Array?o:[o];for(var l=[],u=0;u<i.length;u++){var c=s++%o.length;l[c]=l[c]||[],l[c].push(new aT({shape:Fv(e,n,i[u].coord)}))}for(u=0;u<l.length;u++)this.group.add(xT(l[u],{style:a({stroke:o[u%o.length]},r.getLineStyle()),silent:!0,z:t.get("z")}))},_splitArea:function(t,e,i,n){if(i.length){var r=t.getModel("splitArea").getModel("areaStyle"),o=r.get("color"),s=0;o=o instanceof Array?o:[o];for(var l=[],u=Math.PI/180,c=-i[0].coord*u,h=Math.min(n[0],n[1]),d=Math.max(n[0],n[1]),f=t.get("clockwise"),p=1;p<i.length;p++){var g=s++%o.length;l[g]=l[g]||[],l[g].push(new QS({shape:{cx:e.cx,cy:e.cy,r0:h,r:d,startAngle:c,endAngle:-i[p].coord*u,clockwise:f},silent:!0})),c=-i[p].coord*u}for(p=0;p<l.length;p++)this.group.add(xT(l[p],{style:a({fill:o[p%o.length]},r.getAreaStyle()),silent:!0}))}}});var eN=["axisLine","axisTickLabel","axisName"],iN=["splitLine","splitArea"];kI.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,n=i.polar,r=n.getAngleAxis(),o=i.getTicksCoords(),a=r.getExtent()[0],s=i.getExtent(),l=Vv(n,t,a),u=new CI(t,l);d(eN,u.add,u),this.group.add(u.getGroup()),d(iN,function(e){t.get(e+".show")&&!i.scale.isBlank()&&this["_"+e](t,n,a,s,o)},this)}},_splitLine:function(t,e,i,n,r){var o=t.getModel("splitLine").getModel("lineStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<r.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new ZS({shape:{cx:e.cx,cy:e.cy,r:r[c].coord},silent:!0}))}for(c=0;c<u.length;c++)this.group.add(xT(u[c],{style:a({stroke:s[c%s.length],fill:null},o.getLineStyle()),silent:!0}))},_splitArea:function(t,e,i,n,r){if(r.length){var o=t.getModel("splitArea").getModel("areaStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=r[0].coord,h=1;h<r.length;h++){var d=l++%s.length;u[d]=u[d]||[],u[d].push(new QS({shape:{cx:e.cx,cy:e.cy,r0:c,r:r[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=r[h].coord}for(h=0;h<u.length;h++)this.group.add(xT(u[h],{style:a({fill:s[h%s.length]},o.getAreaStyle()),silent:!0}))}}});var nN=um.extend({makeElOption:function(t,e,i,n,r){var o=i.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a,s=o.polar,l=s.getOtherAxis(o).getExtent();a=o["dataTo"+ro(o.dim)](e);var u=n.get("type");if(u&&"none"!==u){var c=gm(n),h=rN[u](o,s,a,l,c);h.style=c,t.graphicKey=h.type,t.pointer=h}mm(t,i,n,r,Wv(e,i,0,s,n.get("label.margin")))}}),rN={line:function(t,e,i,n,r){return"angle"===t.dim?{type:"Line",shape:bm(e.coordToPoint([n[0],i]),e.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:i}}},shadow:function(t,e,i,n,r){var o=Math.max(1,t.getBandWidth()),a=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:Sm(e.cx,e.cy,n[0],n[1],(-i-o/2)*a,(o/2-i)*a)}:{type:"Sector",shape:Sm(e.cx,e.cy,i-o/2,i+o/2,0,2*Math.PI)}}};kI.registerAxisPointerClass("PolarAxisPointer",nN),Ls(v(function(t,e,i){var n={},r=Ev(g(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}));e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=Av(t),s=r[kv(o)][a],l=s.offset,u=s.width,c=i.getOtherAxis(o),h=t.coordinateSystem.cx,d=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,p=t.get("barMinAngle")||0;n[a]=n[a]||[];for(var g=e.mapDimension(c.dim),m=e.mapDimension(o.dim),v=cl(e,g),y=c.getExtent()[0],x=0,_=e.count();x<_;x++){var b=e.get(g,x),w=e.get(m,x);if(!isNaN(b)){var S=b>=0?"p":"n",T=y;v&&(n[a][w]||(n[a][w]={p:y,n:y}),T=n[a][w][S]);var C,M,D,I;if("radius"===c.dim){var A=c.dataToRadius(b)-y,k=o.dataToAngle(w);Math.abs(A)<f&&(A=(A<0?-1:1)*f),C=T,M=T+A,I=(D=k-l)-u,v&&(n[a][w][S]=M)}else{var E=c.dataToAngle(b,!0)-y,O=o.dataToRadius(w);Math.abs(E)<p&&(E=(E<0?-1:1)*p),M=(C=O+l)+u,D=T,I=T+E,v&&(n[a][w][S]=I)}e.setItemLayout(x,{cx:h,cy:d,r0:C,r:M,startAngle:-D*Math.PI/180,endAngle:-I*Math.PI/180})}}}},this)},"bar")),Bs({type:"polar"}),c(YT.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){YT.prototype.init.apply(this,arguments),Ai(t,"label",["show"])},optionUpdated:function(){var t=this.option,e=this;t.regions=_A.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=p(t.regions||[],function(t,i){return i.name&&t.set(i.name,new Ar(i,e)),t},R()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new Ar(null,this,this.ecModel)},getFormattedLabel:function(t,e){var i=this.getRegionModel(t).get("label."+e+".formatter"),n={name:t};return"function"==typeof i?(n.status=e,i(n)):"string"==typeof i?i.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}}),$I),Bs({type:"geo",init:function(t,e){var i=new _h(e,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var r=this._mapDraw;t.get("show")?r.draw(t,e,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}}),$v("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),$v("select",{type:"geoSelect",event:"geoselected"}),$v("unSelect",{type:"geoUnSelect",event:"geounselected"});var oN=["rect","polygon","keep","clear"],aN=d,sN={lineX:Zv(0),lineY:Zv(1),rect:{point:function(t,e,i){return t&&i.boundingRect.contain(t[0],t[1])},rect:function(t,e,i){return t&&i.boundingRect.intersect(t)}},polygon:{point:function(t,e,i){return t&&i.boundingRect.contain(t[0],t[1])&&Yl(i.range,t[0],t[1])},rect:function(t,e,i){var n=i.range;if(!t||n.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=n[0];return!!(Yl(n,r,o)||Yl(n,r+a,o)||Yl(n,r,o+s)||Yl(n,r+a,o+s)||ue.create(t).contain(l[0],l[1])||Jv(r,o,r+a,o,n)||Jv(r,o,r,o+s,n)||Jv(r+a,o,r+a,o+s,n)||Jv(r,o+s,r+a,o+s,n))||void 0}}},lN=d,uN=l,cN=v,hN=["dataToPoint","pointToData"],dN=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],fN=iy.prototype;fN.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,i){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var n=vN[t.brushType](0,i,e);t.__rangeOffset={offset:yN[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax}}})},fN.matchOutputRanges=function(t,e,i){lN(t,function(t){var n=this.findTargetInfo(t,e);n&&!0!==n&&d(n.coordSyses,function(n){var r=vN[t.brushType](1,n,t.range);i(t,r.values,n,e)})},this)},fN.setInputRanges=function(t,e){lN(t,function(t){var i=this.findTargetInfo(t,e);if(t.range=t.range||[],i&&!0!==i){t.panelId=i.panelId;var n=vN[t.brushType](0,i.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?yN[t.brushType](n.values,r.offset,sy(n.xyMinMax,r.xyMinMax)):n.values}},this)},fN.makePanelOpts=function(t,e){return f(this._targetInfoList,function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e&&e(i),clipPath:cp(n),isTargetByCursor:dp(n,t,i.coordSysModel),getLinearBrushOtherExtent:hp(n)}})},fN.controlSeries=function(t,e,i){var n=this.findTargetInfo(t,i);return!0===n||n&&uN(n.coordSyses,e.coordinateSystem)>=0},fN.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=ry(e,t),r=0;r<i.length;r++){var o=i[r],a=t.panelId;if(a){if(o.panelId===a)return o}else for(r=0;r<gN.length;r++)if(gN[r](n,o))return o}return!0};var pN={grid:function(t,e){var i=t.xAxisModels,n=t.yAxisModels,r=t.gridModels,o=R(),a={},s={};(i||n||r)&&(lN(i,function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0}),lN(n,function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0}),lN(r,function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),o.each(function(t){var r=t.coordinateSystem,o=[];lN(r.getCartesians(),function(t,e){(uN(i,t.getAxis("x").model)>=0||uN(n,t.getAxis("y").model)>=0)&&o.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:mN.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){lN(t.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:mN.geo})})}},gN=[function(t,e){var i=t.xAxisModel,n=t.yAxisModel,r=t.gridModel;return!r&&i&&(r=i.axis.grid.model),!r&&n&&(r=n.axis.grid.model),r&&r===e.gridModel},function(t,e){var i=t.geoModel;return i&&i===e.geoModel}],mN={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Sr(t)),e}},vN={lineX:cN(oy,0),lineY:cN(oy,1),rect:function(t,e,i){var n=e[hN[t]]([i[0][0],i[1][0]]),r=e[hN[t]]([i[0][1],i[1][1]]),o=[ny([n[0],r[0]]),ny([n[1],r[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,i){var n=[[1/0,-1/0],[1/0,-1/0]];return{values:f(i,function(i){var r=e[hN[t]](i);return n[0][0]=Math.min(n[0][0],r[0]),n[1][0]=Math.min(n[1][0],r[1]),n[0][1]=Math.max(n[0][1],r[0]),n[1][1]=Math.max(n[1][1],r[1]),r}),xyMinMax:n}}},yN={lineX:cN(ay,0),lineY:cN(ay,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return f(t,function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]})}},xN=["inBrush","outOfBrush"],_N="__ecBrushSelect",bN="__ecInBrushSelectEvent",wN=CM.VISUAL.BRUSH;Ls(wN,function(t,e,i){t.eachComponent({mainType:"brush"},function(e){i&&"takeGlobalCursor"===i.type&&e.setBrushOption("brush"===i.key?i.brushOption:{brushType:!1}),(e.brushTargetManager=new iy(e.option,t)).setInputRanges(e.areas,t)})}),Ps(wN,function(t,e,n){var r,o,s=[];t.eachComponent({mainType:"brush"},function(e,n){function l(t){return"all"===m||v[t]}function u(t){return!!t.length}function c(t,e){var i=t.coordinateSystem;b|=i.hasAxisBrushed(),l(e)&&i.eachActiveState(t.getData(),function(t,e){"active"===t&&(x[e]=1)})}function h(i,n,r){var o=dy(i);if(o&&!fy(e,n)&&(d(w,function(n){o[n.brushType]&&e.brushTargetManager.controlSeries(n,i,t)&&r.push(n),b|=u(r)}),l(n)&&u(r))){var a=i.getData();a.each(function(t){hy(o,r,a,t)&&(x[t]=1)})}}var p={brushId:e.id,brushIndex:n,brushName:e.name,areas:i(e.areas),selected:[]};s.push(p);var g=e.option,m=g.brushLink,v=[],x=[],_=[],b=0;n||(r=g.throttleType,o=g.throttleDelay);var w=f(e.areas,function(t){return py(a({boundingRect:SN[t.brushType](t)},t))}),S=Gv(e.option,xN,function(t){t.mappingMethod="fixed"});y(m)&&d(m,function(t){v[t]=1}),t.eachSeries(function(t,e){var i=_[e]=[];"parallel"===t.subType?c(t,e):h(t,e,i)}),t.eachSeries(function(t,e){var i={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};p.selected.push(i);var n=dy(t),r=_[e],o=t.getData(),a=l(e)?function(t){return x[t]?(i.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return hy(n,r,o,t)?(i.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"};(l(e)?b:u(r))&&Yv(xN,S,o,a)})}),uy(e,r,o,s,n)});var SN={lineX:F,lineY:F,rect:function(t){return gy(t.range)},polygon:function(t){for(var e,i=t.range,n=0,r=i.length;n<r;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=i[n];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&gy(e)}},TN=["#ddd"];Fs({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&qv(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:TN},n.hasOwnProperty("liftZ")||(n.liftZ=5)},setAreas:function(t){t&&(this.areas=f(t,function(t){return my(this.option,t)},this))},setBrushOption:function(t){this.brushOption=my(this.option,t),this.brushType=this.brushOption.brushType}}),Bs({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Af(e.getZr())).on("brush",m(this._onBrush,this)).mount()},render:function(t){return this.model=t,vy.apply(this,arguments)},updateTransform:vy,updateView:vy,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:i(t),$from:n})}}),Os({type:"brush",event:"brush"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(e){e.setAreas(t.areas)})}),Os({type:"brushSelect",event:"brushSelected",update:"none"},function(){});var CN={},MN=GC.toolbox.brush;_y.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:i(MN.title)};var DN=_y.prototype;DN.render=DN.updateView=function(t,e,i){var n,r,o;e.eachComponent({mainType:"brush"},function(t){n=t.brushType,r=t.brushOption.brushMode||"single",o|=t.areas.length}),this._brushType=n,this._brushMode=r,d(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===n)?"emphasis":"normal")})},DN.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return d(t.get("type",!0),function(t){e[t]&&(i[t]=e[t])}),i},DN.onclick=function(t,e,i){var n=this._brushType,r=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===r?"single":"multiple":r}})},yy("brush",_y),ks(function(t,e){var i=t&&t.brush;if(y(i)||(i=i?[i]:[]),i.length){var n=[];d(i,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(n=n.concat(e))});var r=t&&t.toolbox;y(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,n),jv(s),e&&!s.length&&s.push.apply(s,oN)}}),by.prototype={constructor:by,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=jr(t)).getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var r=t.getDay();return r=Math.abs((r+7-this.getFirstDayOfWeek())%7),{y:e,m:i,d:n,day:r,time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)?this.getDateInfo(t):((t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t))},update:function(t,e){function i(t,e){return null!=t[e]&&"auto"!==t[e]}this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],o=this._model.get("cellSize").slice(),a=this._model.getBoxLayoutParams(),s="horizontal"===this._orient?[n,7]:[7,n];d([0,1],function(t){i(o,t)&&(a[r[t]]=o[t]*s[t])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=so(a,l);d([0,1],function(t){i(o,t)||(o[t]=u[r[t]]/s[t])}),this._sw=o[0],this._sh=o[1]},dataToPoint:function(t,e){y(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),n=this._rangeInfo,r=i.formatedDate;if(e&&!(i.time>=n.start.time&&i.time<n.end.time+864e5))return[NaN,NaN];var o=i.day,a=this._getRangeInfo([n.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},pointToData:function(t){var e=this.pointToDate(t);return e&&e.time},dataToRect:function(t,e){var i=this.dataToPoint(t,e);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointToDate:function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,i=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(i,e-1,n):this._getDateByWeeksAndDay(e,i-1,n)},convertToPixel:v(wy,"dataToPoint"),convertFromPixel:v(wy,"pointToData"),_initRangeOption:function(){var t=this._model.get("range"),e=t;if(y(e)&&1===e.length&&(e=e[0]),/^\d{4}$/.test(e)&&(t=[e+"-01-01",e+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(e)){var i=this.getDateInfo(e),n=i.date;n.setMonth(n.getMonth()+1);var r=this.getNextNDay(n,-1);t=[i.formatedDate,r.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(e)&&(t=[e,e]);var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,n=new Date(t[0].time),r=n.getDate(),o=t[1].date.getDate();if(n.setDate(r+i-1),n.getDate()!==o)for(var a=n.getTime()-t[1].time>0?1:-1;n.getDate()!==o&&(n.getTime()-t[1].time)*a>0;)i-=a,n.setDate(r+i-1);var s=Math.floor((i+t[0].day+6)/7),l=e?1-s:s-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:s,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&e<n.fweek||t===n.weeks&&e>n.lweek)return!1;var r=7*(t-1)-n.fweek+e,o=new Date(n.start.time);return o.setDate(n.start.d+r),this.getDateInfo(o)}},by.dimensions=by.prototype.dimensions,by.getDimensionsInfo=by.prototype.getDimensionsInfo,by.create=function(t,e){var i=[];return t.eachComponent("calendar",function(n){var r=new by(n,t,e);i.push(r),n.coordinateSystem=r}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},Fo.register("calendar",by);var IN=YT.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,i,n){var r=ho(t);IN.superApply(this,"init",arguments),Sy(t,r)},mergeOption:function(t,e){IN.superApply(this,"mergeOption",arguments),Sy(this.option,t)}}),AN={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},kN={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]};Bs({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,i){var n=this.group;n.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,n),this._renderLines(t,o,a,n),this._renderYearText(t,o,a,n),this._renderMonthText(t,a,n),this._renderWeekText(t,o,a,n)},_renderDayRect:function(t,e,i){for(var n=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=n.getCellWidth(),a=n.getCellHeight(),s=e.start.time;s<=e.end.time;s=n.getNextNDay(s,1).time){var l=n.dataToRect([s],!1).tl,u=new oT({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});i.add(u)}},_renderLines:function(t,e,i,n){function r(e){o._firstDayOfMonth.push(a.getDateInfo(e)),o._firstDayPoints.push(a.dataToRect([e],!1).tl);var r=o._getLinePointsOfOneWeek(t,e,i);o._tlpoints.push(r[0]),o._blpoints.push(r[r.length-1]),l&&o._drawSplitline(r,s,n)}var o=this,a=t.coordinateSystem,s=t.getModel("splitLine.lineStyle").getLineStyle(),l=t.get("splitLine.show"),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=e.start,h=0;c.time<=e.end.time;h++){r(c.formatedDate),0===h&&(c=a.getDateInfo(e.start.y+"-"+e.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=a.getDateInfo(d)}r(a.getNextNDay(e.end.time,1).formatedDate),l&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,u,i),s,n),l&&this._drawSplitline(o._getEdgesPoints(o._blpoints,u,i),s,n)},_getEdgesPoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===i?0:1;return n[0][r]=n[0][r]-e/2,n[1][r]=n[1][r]+e/2,n},_drawSplitline:function(t,e,i){var n=new rT({z2:20,shape:{points:t},style:e});i.add(n)},_getLinePointsOfOneWeek:function(t,e,i){var n=t.coordinateSystem;e=n.getDateInfo(e);for(var r=[],o=0;o<7;o++){var a=n.getNextNDay(e.time,o),s=n.dataToRect([a.time],!1);r[2*a.day]=s.tl,r[2*a.day+1]=s["horizontal"===i?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"==typeof t&&t?to(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,i,n,r){e=e.slice();var o=["center","bottom"];"bottom"===n?(e[1]+=r,o=["center","top"]):"left"===n?e[0]-=r:"right"===n?(e[0]+=r,o=["center","top"]):e[1]-=r;var a=0;return"left"!==n&&"right"!==n||(a=Math.PI/2),{rotation:a,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,i,n){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==i?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===i?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=r.get("formatter"),p={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(f,p),m=new XS({z2:30});dr(m.style,r,{text:g}),m.attr(this._yearTextPositionControl(m,h[a],i,a,o)),n.add(m)}},_monthTextPositionControl:function(t,e,i,n,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===i?(l+=r,e&&(o="center"),"start"===n&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===n&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(t,e,i){var n=t.getModel("monthLabel");if(n.get("show")){var r=n.get("nameMap"),a=n.get("margin"),s=n.get("position"),l=n.get("align"),u=[this._tlpoints,this._blpoints];_(r)&&(r=AN[r.toUpperCase()]||[]);var c="start"===s?0:1,h="horizontal"===e?0:1;a="start"===s?-a:a;for(var d="center"===l,f=0;f<u[c].length-1;f++){var p=u[c][f].slice(),g=this._firstDayOfMonth[f];if(d){var m=this._firstDayPoints[f];p[h]=(m[h]+u[0][f+1][h])/2}var v=n.get("formatter"),y=r[+g.m-1],x={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:y},b=this._formatterLabel(v,x),w=new XS({z2:30});o(dr(w.style,n,{text:b}),this._monthTextPositionControl(p,d,e,s,a)),i.add(w)}}},_weekTextPositionControl:function(t,e,i,n,r){var o="center",a="middle",s=t[0],l=t[1],u="start"===i;return"horizontal"===e?(s=s+n+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+n+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderWeekText:function(t,e,i,n){var r=t.getModel("dayLabel");if(r.get("show")){var a=t.coordinateSystem,s=r.get("position"),l=r.get("nameMap"),u=r.get("margin"),c=a.getFirstDayOfWeek();_(l)&&(l=kN[l.toUpperCase()]||[]);var h=a.getNextNDay(e.end.time,7-e.lweek).time,d=[a.getCellWidth(),a.getCellHeight()];u=Pr(u,d["horizontal"===i?0:1]),"start"===s&&(h=a.getNextNDay(e.start.time,-(7+e.fweek)).time,u=-u);for(var f=0;f<7;f++){var p=a.getNextNDay(h,f),g=a.dataToRect([p.time],!1).center,m=f;m=Math.abs((f+c)%7);var v=new XS({z2:30});o(dr(v.style,r,{text:l[m]}),this._weekTextPositionControl(g,i,s,u,d)),n.add(v)}}}}),Fs({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),Bs({type:"title",render:function(t,e,i){if(this.group.removeAll(),t.get("show")){var n=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=t.get("textBaseline"),l=new XS({style:dr({},r,{text:t.get("text"),textFill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new XS({style:dr({},o,{text:c,textFill:o.getTextColor(),y:u.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!d&&!p,h.silent=!f&&!p,d&&l.on("click",function(){window.open(d,"_"+t.get("target"))}),f&&h.on("click",function(){window.open(f,"_"+t.get("subtarget"))}),l.eventData=h.eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(l),c&&n.add(h);var g=n.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=so(m,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),n.attr("position",[v.x,v.y]);var y={textAlign:a,textVerticalAlign:s};l.setStyle(y),h.setStyle(y),g=n.getBoundingRect();var x=v.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new oT({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,silent:!0});qn(b),n.add(b)}}}),YT.registerSubTypeDefaulter("dataZoom",function(){return"slider"});var EN=["cartesian2d","polar","singleAxis"],ON=function(t,e){var i=f(t=t.slice(),ro),n=f(e=(e||[]).slice(),ro);return function(r,o){d(t,function(t,a){for(var s={name:t,capital:i[a]},l=0;l<e.length;l++)s[e[l]]=t+n[l];r.call(o,s)})}}(["x","y","z","radius","angle","single"],["axisIndex","axis","index","id"]),NN=d,LN=zr,PN=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=i};PN.prototype={constructor:PN,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(i){if(Ty(i.get("coordinateSystem"))){var n=this._dimName,r=e.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(i)}},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this.ecModel,r=this.getAxisModel();"x"===i||"y"===i?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle");var o;return n.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(o=t)}),o},getMinMaxSpan:function(){return i(this._minMaxSpan)},calculateDataWindow:function(t){var e=this._dataExtent,i=this.getAxisModel().axis.scale,n=this._dataZoomModel.getRangePropMode(),r=[0,100],o=[t.start,t.end],a=[];return NN(["startValue","endValue"],function(e){a.push(null!=t[e]?i.parse(t[e]):null)}),NN([0,1],function(t){var s=a[t],l=o[t];"percent"===n[t]?(null==l&&(l=r[t]),s=i.parse(Lr(l,r,e,!0))):l=Lr(s,e,r,!0),a[t]=s,o[t]=l}),{valueWindow:LN(a),percentWindow:LN(o)}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=My(this,this._dimName,e);var i=this.calculateDataWindow(t.option);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,Ay(this),Iy(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,Iy(this,!0))},filterData:function(t,e){function i(t){return t>=a[0]&&t<=a[1]}if(t===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),o=t.get("filterMode"),a=this._valueWindow;"none"!==o&&NN(r,function(t){var e=t.getData(),r=e.mapDimension(n,!0);r.length&&("weakFilter"===o?e.filterSelf(function(t){for(var i,n,o,s=0;s<r.length;s++){var l=e.get(r[s],t),u=!isNaN(l),c=l<a[0],h=l>a[1];if(u&&!c&&!h)return!0;u&&(o=!0),c&&(i=!0),h&&(n=!0)}return o&&i&&n}):NN(r,function(n){if("empty"===o)t.setData(e.map(n,function(t){return i(t)?t:NaN}));else{var r={};r[n]=a,e.selectRange(r)}}),NN(r,function(t){e.setApproximateExtent(a,t)}))})}}};var RN=d,zN=ON,FN=Fs({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=ky(t);this.mergeDefaultAndTheme(t,i),this.doInit(n)},mergeOption:function(t){var e=ky(t);n(this.option,t,!0), this.doInit(e)},doInit:function(t){var e=this.option;z_.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),Ey(this,t),RN([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,i,n,r){var o=this.dependentModels[e.axis][i],a=o.__dzAxisProxy||(o.__dzAxisProxy=new PN(e.name,i,this,r));t[e.name+"_"+i]=a},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();zN(function(e){var i=e.axisIndex;t[i]=Ii(t[i])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;zN(function(i){null!=t[i.axisIndex]&&(e=!0)},this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this.option,n=this.dependentModels;if(t){var r="vertical"===e?"y":"x";n[r+"Axis"].length?(i[r+"AxisIndex"]=[0],t=!1):RN(n.singleAxis,function(n){t&&n.get("orient",!0)===e&&(i.singleAxisIndex=[n.componentIndex],t=!1)})}t&&zN(function(e){if(t){var n=[],r=this.dependentModels[e.axis];if(r.length&&!n.length)for(var o=0,a=r.length;o<a;o++)"category"===r[o].get("type")&&n.push(o);i[e.axisIndex]=n,n.length&&(t=!1)}},this),t&&this.ecModel.eachSeries(function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&zN(function(e){var n=i[e.axisIndex],r=t.get(e.axisIndex),o=t.get(e.axisId);l(n,r=t.ecModel.queryComponents({mainType:e.axis,index:r,id:o})[0].componentIndex)<0&&n.push(r)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return zN(function(n){var r=t.get(n.axisIndex),o=this.dependentModels[n.axis][r];o&&o.get("type")===e||(i=!1)},this),i},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return zN(function(e){if(null==t){var i=this.get(e.axisIndex);i.length&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this.ecModel;zN(function(n){RN(this.get(n.axisIndex),function(r){t.call(e,n,r,this,i)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var i=this.getAxisProxy(t,e);return i&&i.getAxisModel()},setRawRange:function(t,e){var i=this.option;RN([["start","startValue"],["end","endValue"]],function(e){null==t[e[0]]&&null==t[e[1]]||(i[e[0]]=t[e[0]],i[e[1]]=t[e[1]])},this),!e&&Ey(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var i in e)if(e.hasOwnProperty(i)&&e[i].hostedBy(this))return e[i];for(var i in e)if(e.hasOwnProperty(i)&&!e[i].hostedBy(this))return e[i]},getRangePropMode:function(){return this._rangePropMode.slice()}}),BN=PC.extend({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},getTargetCoordInfo:function(){function t(t,e,i,n){for(var r,o=0;o<i.length;o++)if(i[o].model===t){r=i[o];break}r||i.push(r={model:t,axisModels:[],coordIndex:n}),r.axisModels.push(e)}var e=this.dataZoomModel,i=this.ecModel,n={};return e.eachTargetAxis(function(e,r){var o=i.getComponent(e.axis,r);if(o){var a=o.getCoordSysModel();a&&t(a,o,n[a.mainType]||(n[a.mainType]=[]),a.componentIndex)}},this),n}}),HN=(FN.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),oT),VN=Lr,WN=zr,$N=m,jN=d,UN="horizontal",GN=5,qN=["line","bar","candlestick","scatter"],YN=BN.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,i,n){YN.superApply(this,"render",arguments),ka(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){YN.superApply(this,"remove",arguments),Ea(this,"_dispatchZoomAction")},dispose:function(){YN.superApply(this,"dispose",arguments),Ea(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new jb;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,i=this._findCoordRect(),n={width:e.getWidth(),height:e.getHeight()},r=this._orient===UN?{right:n.width-i.x-i.width,top:n.height-30-7,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},o=ho(t.option);d(["right","top","width","height"],function(t){"ph"===o[t]&&(o[t]=r[t])});var a=so(o,n,t.padding);this._location={x:a.x,y:a.y},this._size=[a.width,a.height],"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get("inverse"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(i!==UN||r?i===UN&&r?{scale:a?[-1,1]:[-1,-1]}:"vertical"!==i||r?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=t.getBoundingRect([o]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,i=this._displayables.barGroup;i.add(new HN({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),i.add(new HN({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:m(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,i=t.series,n=i.getRawData(),r=i.getShadowDim?i.getShadowDim():t.otherDim;if(null!=r){var o=n.getDataExtent(r),s=.3*(o[1]-o[0]);o=[o[0]-s,o[1]+s];var l,u=[0,e[1]],c=[0,e[0]],h=[[e[0],0],[0,0]],d=[],f=c[1]/(n.count()-1),p=0,g=Math.round(n.count()/e[0]);n.each([r],function(t,e){if(g>0&&e%g)p+=f;else{var i=null==t||isNaN(t)||""===t,n=i?0:VN(t,o,u,!0);i&&!l&&e?(h.push([h[h.length-1][0],0]),d.push([d[d.length-1][0],0])):!i&&l&&(h.push([p,0]),d.push([p,0])),h.push([p,n]),d.push([p,n]),p+=f,l=i}});var m=this.dataZoomModel;this._displayables.barGroup.add(new nT({shape:{points:h},style:a({fill:m.get("dataBackgroundColor")},m.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new rT({shape:{points:d},style:m.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var i,n=this.ecModel;return t.eachTargetAxis(function(r,o){d(t.getAxisProxy(r.name,o).getTargetSeriesModels(),function(t){if(!(i||!0!==e&&l(qN,t.get("type"))<0)){var a,s=n.getComponent(r.axis,o).axis,u=Oy(r.name),c=t.coordinateSystem;null!=u&&c.getOtherAxis&&(a=c.getOtherAxis(s).inverse),u=t.getData().mapDimension(u),i={thisAxis:s,series:t,thisDim:r.name,otherDim:u,otherAxisInverse:a}}},this)},this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,r=this._size,o=this.dataZoomModel;n.add(t.filler=new HN({draggable:!0,cursor:Ny(this._orient),drift:$N(this._onDragMove,this,"all"),onmousemove:function(t){lb(t.event)},ondragstart:$N(this._showDataInfo,this,!0),ondragend:$N(this._onDragEnd,this),onmouseover:$N(this._showDataInfo,this,!0),onmouseout:$N(this._showDataInfo,this,!1),style:{fill:o.get("fillerColor"),textPosition:"inside"}})),n.add(new HN(qn({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}}))),jN([0,1],function(t){var r=Ir(o.get("handleIcon"),{cursor:Ny(this._orient),draggable:!0,drift:$N(this._onDragMove,this,t),onmousemove:function(t){lb(t.event)},ondragend:$N(this._onDragEnd,this),onmouseover:$N(this._showDataInfo,this,!0),onmouseout:$N(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),a=r.getBoundingRect();this._handleHeight=Pr(o.get("handleSize"),this._size[1]),this._handleWidth=a.width/a.height*this._handleHeight,r.setStyle(o.getModel("handleStyle").getItemStyle());var s=o.get("handleColor");null!=s&&(r.style.fill=s),n.add(e[t]=r);var l=o.textStyleModel;this.group.add(i[t]=new XS({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:l.getTextColor(),textFont:l.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[VN(t[0],[0,100],e,!0),VN(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var i=this.dataZoomModel,n=this._handleEnds,r=this._getViewExtent(),o=i.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];Pk(e,n,r,i.get("zoomLock")?"all":t,null!=o.minSpan?VN(o.minSpan,a,r,!0):null,null!=o.maxSpan?VN(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=WN([VN(n[0],r,a,!0),VN(n[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,i=this._handleEnds,n=WN(i.slice()),r=this._size;jN([0,1],function(t){var n=e.handles[t],o=this._handleHeight;n.attr({scale:[o/2,o/2],position:[i[t],r[1]/2-o/2]})},this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){function e(t){var e=Sr(n.handles[t].parent,this.group),i=Cr(0===t?"right":"left",e),s=this._handleWidth/2+GN,l=Tr([h[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],textVerticalAlign:o===UN?"middle":i,textAlign:o===UN?i:"center",text:a[t]})}var i=this.dataZoomModel,n=this._displayables,r=n.handleLabels,o=this._orient,a=["",""];if(i.get("showDetail")){var s=i.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,c=t?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();a=[this._formatLabel(c[0],l),this._formatLabel(c[1],l)]}}var h=WN(this._handleEnds.slice());e.call(this,0),e.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,n=i.get("labelFormatter"),r=i.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(r,20));return x(n)?n(t,o):_(n)?n.replace("{value}",o):o},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i){this._dragging=!0;var n=Tr([e,i],this._displayables.barGroup.getLocalTransform(),!0),r=this._updateInterval(t,n[0]),o=this.dataZoomModel.get("realtime");this._updateView(!o),r&&o&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,i=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,r=(n[0]+n[1])/2,o=this._updateInterval("all",i[0]-r);this._updateView(),o&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(jN(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}}),!t){var e=this.api.getWidth(),i=this.api.getHeight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}});FN.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});var XN="\0_ec_dataZoom_roams",ZN=m,KN=BN.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,i,n){KN.superApply(this,"render",arguments),this._range=t.getPercentRange(),d(this.getTargetCoordInfo(),function(e,n){var r=f(e,function(t){return Ry(t.model)});d(e,function(e){var o=e.model,a={};d(["pan","zoom","scrollMove"],function(t){a[t]=ZN(JN[t],this,e,n)},this),Ly(i,{coordId:Ry(o),allCoordIds:r,containsPoint:function(t,e,i){return o.coordinateSystem.containPoint([e,i])},dataZoomId:t.id,dataZoomModel:t,getRange:a})},this)},this)},dispose:function(){Py(this.api,this.dataZoomModel.id),KN.superApply(this,"dispose",arguments),this._range=null}}),JN={zoom:function(t,e,i,n){var r=this._range,o=r.slice(),a=t.axisModels[0];if(a){var s=QN[e](null,[n.originX,n.originY],a,i,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/n.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Pk(0,o,[0,100],0,c.minSpan,c.maxSpan),this._range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:Wy(function(t,e,i,n,r,o){var a=QN[n]([o.oldX,o.oldY],[o.newX,o.newY],e,r,i);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:Wy(function(t,e,i,n,r,o){return QN[n]([0,0],[o.scrollDelta,o.scrollDelta],e,r,i).signal*(t[1]-t[0])*o.scrollDelta})},QN={grid:function(t,e,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,i,n,r){var o=i.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};Es({getTargetSeries:function(t){var e=R();return t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,i,n){d(n.getAxisProxy(t.name,i).getTargetSeriesModels(),function(t){e.set(t.uid,t)})})}),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,i,n){n.getAxisProxy(t.name,i).reset(n,e)}),t.eachTargetAxis(function(t,i,n){n.getAxisProxy(t.name,i).filterData(n,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]},!0)})}}),Os("dataZoom",function(t,e){var i=Cy(m(e.eachComponent,e,"dataZoom"),ON,function(t,e){return t.get(e.axisIndex)}),n=[];e.eachComponent({mainType:"dataZoom",query:t},function(t,e){n.push.apply(n,i(t).nodes)}),d(n,function(e,i){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})});var tL=d,eL=function(t){var e=t&&t.visualMap;y(e)||(e=e?[e]:[]),tL(e,function(t){if(t){$y(t,"splitList")&&!$y(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&y(e)&&tL(e,function(t){b(t)&&($y(t,"start")&&!$y(t,"min")&&(t.min=t.start),$y(t,"end")&&!$y(t,"max")&&(t.max=t.end))})}})};YT.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"});var iL=CM.VISUAL.COMPONENT;Ps(iL,{createOnAllSeries:!0,reset:function(t,e){var i=[];return e.eachComponent("visualMap",function(e){var n=t.pipelineContext;!e.isTargetSeries(t)||n&&n.large||i.push(Xv(e.stateList,e.targetVisuals,m(e.getValueState,e),e.getDataDimension(t.getData())))}),i}}),Ps(iL,{createOnAllSeries:!0,reset:function(t,e){var i=t.getData(),n=[];e.eachComponent("visualMap",function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(m(jy,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimension(i),a=i.getDimensionInfo(o);null!=a&&(r.dimension=a.index,n.push(r))}}),t.getData().setVisual("visualMeta",n)}});var nL={get:function(t,e,n){var r=i((rL[t]||{})[e]);return n&&y(r)?r[r.length-1]:r}},rL={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},oL=qA.mapVisual,aL=qA.eachVisual,sL=y,lL=d,uL=zr,cL=Lr,hL=F,dL=Fs({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,i){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,i)},optionUpdated:function(t,e){var i=this.option;z_.canvasSupported||(i.realtime=!1),!e&&qv(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=m(t,this),this.controllerVisuals=Gv(this.option.controller,e,t),this.targetVisuals=Gv(this.option.target,e,t)},getTargetSeriesIndices:function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,i){e.push(i)}):e=Ii(t),e},eachTargetSeries:function(t,e){d(this.getTargetSeriesIndices(),function(i){t.call(e,this.ecModel.getSeriesByIndex(i))},this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries(function(i){i===t&&(e=!0)}),e},formatValueText:function(t,e,i){function n(t){return t===l[0]?"min":t===l[1]?"max":(+t).toFixed(Math.min(s,20))}var r,o,a=this.option,s=a.precision,l=this.dataBound,u=a.formatter;return i=i||["<",">"],y(t)&&(t=t.slice(),r=!0),o=e?t:r?[n(t[0]),n(t[1])]:n(t),_(u)?u.replace("{value}",r?o[0]:o).replace("{value2}",r?o[1]:o):x(u)?r?u(t[0],t[1]):u(t):r?t[0]===l[0]?i[0]+" "+o[1]:t[1]===l[1]?i[1]+" "+o[0]:o[0]+" - "+o[1]:o},resetExtent:function(){var t=this.option,e=uL([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,i=t.dimensions;if(null!=e||i.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var o=n[r];if(!t.getDimensionInfo(o).isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){function t(t){sL(r.color)&&!t.inRange&&(t.inRange={color:r.color.slice().reverse()}),t.inRange=t.inRange||{color:e.get("gradientColor")},lL(this.stateList,function(e){var i=t[e];if(_(i)){var n=nL.get(i,"active",l);n?(t[e]={},t[e][i]=n):delete t[e]}},this)}var e=this.ecModel,r=this.option,o={inRange:r.inRange,outOfRange:r.outOfRange},a=r.target||(r.target={}),s=r.controller||(r.controller={});n(a,o),n(s,o);var l=this.isCategory();t.call(this,a),t.call(this,s),function(t,e,i){var n=t[e],r=t[i];n&&!r&&(r=t[i]={},lL(n,function(t,e){if(qA.isValidType(e)){var i=nL.get(e,"inactive",l);null!=i&&(r[e]=i,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}.call(this,a,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor");lL(this.stateList,function(o){var a=this.itemSize,s=t[o];s||(s=t[o]={color:l?r:[r]}),null==s.symbol&&(s.symbol=e&&i(e)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&i(n)||(l?a[0]:[a[0],a[0]])),s.symbol=oL(s.symbol,function(t){return"none"===t||"square"===t?"roundRect":t});var u=s.symbolSize;if(null!=u){var c=-1/0;aL(u,function(t){t>c&&(c=t)}),s.symbolSize=oL(u,function(t){return cL(t,[0,c],[0,a[0]],!0)})}},this)}.call(this,s)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:hL,getValueState:hL,getVisualMeta:hL}),fL=[20,140],pL=dL.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){pL.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){pL.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=fL[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=fL[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):y(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){dL.prototype.completeVisualOption.apply(this,arguments),d(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=zr((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},getValueState:function(t){var e=this.option.range,i=this.getExtent();return(e[0]<=i[0]||e[0]<=t)&&(e[1]>=i[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(i){var n=[],r=i.getData();r.each(this.getDataDimension(r),function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)},this),e.push({seriesId:i.id,dataIndex:n})},this),e},getVisualMeta:function(t){function e(e,i){r.push({value:e,color:t(e,i)})}for(var i=Uy(0,0,this.getExtent()),n=Uy(0,0,this.option.range.slice()),r=[],o=0,a=0,s=n.length,l=i.length;a<l&&(!n.length||i[a]<=n[0]);a++)i[a]<n[o]&&e(i[a],"outOfRange");for(u=1;o<s;o++,u=0)u&&r.length&&e(n[o],"outOfRange"),e(n[o],"inRange");for(var u=1;a<l;a++)(!n.length||n[n.length-1]<i[a])&&(u&&(r.length&&e(r[r.length-1].value,"outOfRange"),u=0),e(i[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}}}),gL=Bs({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,i,n){this.visualMapModel=t,!1!==t.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(t){var e=this.visualMapModel,i=LT(e.get("padding")||0),n=t.getBoundingRect();t.add(new oT({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,i){function n(t){return s[t]}function r(t,e){s[t]=e}var o=(i=i||{}).forceState,a=this.visualMapModel,s={};if("symbol"===e&&(s.symbol=a.get("itemSymbol")),"color"===e){var l=a.get("contentColor");s.color=l}var u=a.controllerVisuals[o||a.getValueState(t)];return d(qA.prepareVisualTypes(u),function(o){var a=u[o];i.convertOpacityToAlpha&&"opacity"===o&&(o="colorAlpha",a=u.__alphaForOpacity),qA.dependsOn(o,e)&&a&&a.applyVisual(t,n,r)}),s[e]},positionGroup:function(t){var e=this.visualMapModel,i=this.api;lo(t,e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:F}),mL=Lr,vL=d,yL=Math.min,xL=Math.max,_L=12,bL=6,wL=gL.extend({type:"visualMap.continuous",init:function(){wL.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(t,e,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var i=t.get("text");this._renderEndsText(e,i,0),this._renderEndsText(e,i,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},_renderEndsText:function(t,e,i){if(e){var n=e[1-i];n=null!=n?n+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.barGroup,l=this._applyTransform([a[0]/2,0===i?-o:a[1]+o],s),u=this._applyTransform(0===i?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new XS({style:{x:l[0],y:l[1],textVerticalAlign:"horizontal"===c?"middle":u,textAlign:"horizontal"===c?u:"center",text:n,textFont:h.getFont(),textFill:h.getTextColor()}}))}},_renderBar:function(t){var e=this.visualMapModel,i=this._shapes,n=e.itemSize,r=this._orient,o=this._useHandle,a=Gy(e,this.api,n),s=i.barGroup=this._createBarGroup(a);s.add(i.outOfRange=Yy()),s.add(i.inRange=Yy(null,o?Qy(this._orient):null,m(this._dragHandle,this,"all",!1),m(this._dragHandle,this,"all",!0)));var l=e.textStyleModel.getTextRect("国"),u=xL(l.width,l.height);o&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(s,0,n,u,r,a),this._createHandle(s,1,n,u,r,a)),this._createIndicator(s,n,u,r),t.add(s)},_createHandle:function(t,e,i,n,r){var o=m(this._dragHandle,this,e,!1),a=m(this._dragHandle,this,e,!0),s=Yy(Xy(e,n),Qy(this._orient),o,a);s.position[0]=i[0],t.add(s);var l=this.visualMapModel.textStyleModel,u=new XS({draggable:!0,drift:o,onmousemove:function(t){lb(t.event)},ondragend:a,style:{x:0,y:0,text:"",textFont:l.getFont(),textFill:l.getTextColor()}});this.group.add(u);var c=["horizontal"===r?n/2:1.5*n,"horizontal"===r?0===e?-1.5*n:1.5*n:0===e?-n/2:n/2],h=this._shapes;h.handleThumbs[e]=s,h.handleLabelPoints[e]=c,h.handleLabels[e]=u},_createIndicator:function(t,e,i,n){var r=Yy([[0,0]],"move");r.position[0]=e[0],r.attr({invisible:!0,silent:!0}),t.add(r);var o=this.visualMapModel.textStyleModel,a=new XS({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:o.getFont(),textFill:o.getTextColor()}});this.group.add(a);var s=["horizontal"===n?i/2:bL+3,0],l=this._shapes;l.indicator=r,l.indicatorLabel=a,l.indicatorLabelPoint=s},_dragHandle:function(t,e,i,n){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([i,n],this._shapes.barGroup,!0);this._updateInterval(t,r[1]),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():Jy(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),i=t.getExtent(),n=[0,t.itemSize[1]];this._handleEnds=[mL(e[0],i,n,!0),mL(e[1],i,n,!0)]},_updateInterval:function(t,e){e=e||0;var i=this.visualMapModel,n=this._handleEnds,r=[0,i.itemSize[1]];Pk(e,n,r,t,0);var o=i.getExtent();this._dataInterval=[mL(n[0],r,o,!0),mL(n[1],r,o,!0)]},_updateView:function(t){var e=this.visualMapModel,i=e.getExtent(),n=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,i,o,"inRange"),s=this._createBarVisual(i,i,r,"outOfRange");n.inRange.setStyle({fill:a.barColor,opacity:a.opacity}).setShape("points",a.barPoints),n.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(o,a)},_createBarVisual:function(t,e,i,n){var r={forceState:n,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(i,a);return{barColor:new dT(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},_makeColorGradient:function(t,e){var i=[],n=(t[1]-t[0])/100;i.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<100;r++){var o=t[0]+n*r;if(o>t[1])break;i.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new jb("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,r=i.handleThumbs,o=i.handleLabels;vL([0,1],function(a){var s=r[a];s.setStyle("fill",e.handlesColor[a]),s.position[1]=t[a];var l=Tr(i.handleLabelPoints[a],Sr(s,this.group));o[a].setStyle({x:l[0],y:l[1],text:n.formatValueText(this._dataInterval[a]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===a?"bottom":"top":"left",i.barGroup)})},this)}},_showIndicator:function(t,e,i,n){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=mL(t,o,s,!0),u=this._shapes,c=u.indicator;if(c){c.position[1]=l,c.attr("invisible",!1),c.setShape("points",Zy(!!i,n,l,a[1]));var h={convertOpacityToAlpha:!0},d=this.getControllerVisual(t,"color",h);c.setStyle("fill",d);var f=Tr(u.indicatorLabelPoint,Sr(c,this.group)),p=u.indicatorLabel;p.attr("invisible",!1);var g=this._applyTransform("left",u.barGroup),m=this._orient;p.setStyle({text:(i||"")+r.formatValueText(e),textVerticalAlign:"horizontal"===m?g:"middle",textAlign:"horizontal"===m?"center":g,x:f[0],y:f[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);n[1]=yL(xL(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){ t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var r=[0,n[1]],o=i.getExtent();t=yL(xL(r[0],t),r[1]);var a=Ky(i,o,r),s=[t-a,t+a],l=mL(t,r,o,!0),u=[mL(s[0],r,o,!0),mL(s[1],r,o,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||Jy(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var d=Ri(c,h);this._dispatchHighDown("downplay",qy(d[0])),this._dispatchHighDown("highlight",qy(d[1]))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=e.dataIndex){var n=this.ecModel.getSeriesByIndex(e.seriesIndex);if(i.isTargetSeries(n)){var r=n.getData(e.dataType),o=r.get(i.getDataDimension(r),e.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",qy(t)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,i,n){var r=Sr(e,n?null:this.group);return wT[y(t)?"applyTransform":"transformDirection"](t,r,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});Os({type:"selectDataRange",event:"dataRangeSelected",update:"update"},function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})}),ks(eL);var SL=dL.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){SL.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode();TL[this._mode].call(this),this._resetSelected(t,e);var r=this.option.categories;this.resetVisual(function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=i(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=f(this._pieceList,function(t){var t=i(t);return"inRange"!==e&&(t.visual=null),t}))})},completeVisualOption:function(){function t(t,e,i){return t&&t[e]&&(b(t[e])?t[e].hasOwnProperty(i):t[e]===i)}var e=this.option,i={},n=qA.listVisualTypes(),r=this.isCategory();d(e.pieces,function(t){d(n,function(e){t.hasOwnProperty(e)&&(i[e]=1)})}),d(i,function(i,n){var o=0;d(this.stateList,function(i){o|=t(e,i,n)||t(e.target,i,n)},this),!o&&d(this.stateList,function(t){(e[t]||(e[t]={}))[n]=nL.get(n,"inRange"===t?"active":"inactive",r)})},this),dL.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var i=this.option,n=this._pieceList,r=(e?i:t).selected||{};if(i.selected=r,d(n,function(t,e){var i=this.getSelectedMapKey(t);r.hasOwnProperty(i)||(r[i]=!0)},this),"single"===i.selectedMode){var o=!1;d(n,function(t,e){var i=this.getSelectedMapKey(t);r[i]&&(o?r[i]=!1:o=!0)},this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=i(t)},getValueState:function(t){var e=qA.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(i){var n=[],r=i.getData();r.each(this.getDataDimension(r),function(e,i){qA.findPieceIndex(e,this._pieceList)===t&&n.push(i)},this),e.push({seriesId:i.id,dataIndex:n})},this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},getVisualMeta:function(t){function e(e,o){var a=r.getRepresentValue({interval:e});o||(o=r.getValueState(a));var s=t(a,o);e[0]===-1/0?n[0]=s:e[1]===1/0?n[1]=s:i.push({value:e[0],color:s},{value:e[1],color:s})}if(!this.isCategory()){var i=[],n=[],r=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),(a=o[o.length-1].interval[1])!==1/0&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var s=-1/0;return d(o,function(t){var i=t.interval;i&&(i[0]>s&&e([s,i[0]],"outOfRange"),e(i.slice()),s=i[1])},this),{stops:i,outerColors:n}}}}),TL={splitNumber:function(){var t=this.option,e=this._pieceList,i=Math.min(t.precision,20),n=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var o=(n[1]-n[0])/r;+o.toFixed(i)!==o&&i<5;)i++;t.precision=i,o=+o.toFixed(i);var a=0;t.minOpen&&e.push({index:a++,interval:[-1/0,n[0]],close:[0,0]});for(var s=n[0],l=a+r;a<l;s+=o){var u=a===r-1?n[1]:s+o;e.push({index:a++,interval:[s,u],close:[1,1]})}t.maxOpen&&e.push({index:a++,interval:[n[1],1/0],close:[0,0]}),Yr(e),d(e,function(t){t.text=this.formatValueText(t.interval)},this)},categories:function(){var t=this.option;d(t.categories,function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})},this),tx(t,this._pieceList)},pieces:function(){var t=this.option,e=this._pieceList;d(t.pieces,function(t,i){b(t)||(t={value:t});var n={text:"",index:i};if(null!=t.label&&(n.text=t.label),t.hasOwnProperty("value")){var r=n.value=t.value;n.interval=[r,r],n.close=[1,1]}else{for(var o=n.interval=[],a=n.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==o[c];d++)o[c]=t[h[d]],a[c]=s[d],u[c]=2===d;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(n.value=o[0])}n.visual=qA.retrieveVisuals(t),e.push(n)},this),tx(t,e),Yr(e),d(e,function(t){var e=t.close,i=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)},this)}};gL.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),n=e.textStyleModel,r=n.getFont(),o=n.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=M(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),d(l.viewPieceList,function(n){var l=n.piece,u=new jb;u.onclick=m(this._onItemClick,this,l),this._enableHoverLink(u,n.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(h);u.add(new XS({style:{x:"right"===a?-i:s[0]+i,y:s[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:a,textFont:r,textFill:o,opacity:"outOfRange"===d?.5:1}}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,c,a),UT(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function i(t){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:t,batch:qy(i.findTargetDataIndices(e))})}t.on("mouseover",m(i,this,"highlight")).on("mouseout",m(i,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return Gy(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i,n,r){if(e){var o=new jb,a=this.visualMapModel.textStyleModel;o.add(new XS({style:{x:n?"right"===r?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?r:"center",text:e,textFont:a.getFont(),textFill:a.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=f(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),i=t.get("text"),n=t.get("orient"),r=t.get("inverse");return("horizontal"===n?r:!r)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(Gl(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,r=i(n.selected),o=e.getSelectedMapKey(t);"single"===n.selectedMode?(r[o]=!0,d(r,function(t,e){r[e]=e===o})):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}}),ks(eL);var CL=Zr,ML=Jr,DL=Fs({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i),this.mergeOption(t,i,n.createdBySelf,!0)},isAnimationEnabled:function(){if(z_.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e,i,n){var r=this.constructor,a=this.mainType+"Model";i||e.eachSeries(function(t){var i=t.get(this.mainType,!0),s=t[a];i&&i.data?(s?s.mergeOption(i,e,!0):(n&&ex(i),d(i.data,function(t){t instanceof Array?(ex(t[0]),ex(t[1])):ex(t)}),o(s=new r(i,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),s.__hostSeries=t),t[a]=s):t[a]=null},this)},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=y(i)?f(i,CL).join(", "):CL(i),r=e.getName(t),o=ML(this.name);return(null!=i||r)&&(o+="<br />"),r&&(o+=ML(r),null!=i&&(o+=" : ")),null!=i&&(o+=ML(n)),o},getData:function(){return this._data},setData:function(t){this._data=t}});c(DL,kC),DL.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});var IL=l,AL=v,kL={min:AL(rx,"min"),max:AL(rx,"max"),average:AL(rx,"average")},EL=Bs({type:"marker",init:function(){this.markerGroupMap=R()},render:function(t,e,i){var n=this.markerGroupMap;n.each(function(t){t.__keep=!1});var r=this.type+"Model";e.eachSeries(function(t){var n=t[r];n&&this.renderSeries(t,n,e,i)},this),n.each(function(t){!t.__keep&&this.group.remove(t.group)},this)},renderSeries:function(){}});EL.extend({type:"markPoint",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markPointModel;e&&(hx(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout(e))},this)},renderSeries:function(t,e,i,n){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new Su),u=dx(r,t,e);e.setData(u),hx(e.getData(),t,n),u.each(function(t){var i=u.getItemModel(t),n=i.getShallow("symbolSize");"function"==typeof n&&(n=n(e.getRawValue(t),e.getDataParams(t))),u.setItemVisual(t,{symbolSize:n,color:i.get("itemStyle.color")||a.getVisual("color"),symbol:i.getShallow("symbol")})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}}),ks(function(t){t.markPoint=t.markPoint||{}}),DL.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end"},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});var OL=function(t,e,r,a){var s=t.getData(),l=a.type;if(!y(a)&&("min"===l||"max"===l||"average"===l||"median"===l||null!=a.xAxis||null!=a.yAxis)){var u,c;if(null!=a.yAxis||null!=a.xAxis)u=null!=a.yAxis?"y":"x",e.getAxis(u),c=M(a.yAxis,a.xAxis);else{var h=ax(a,s,e,t);u=h.valueDataDim,h.valueAxis,c=cx(s,u,l)}var d="x"===u?0:1,f=1-d,p=i(a),g={};p.type=null,p.coord=[],g.coord=[],p.coord[f]=-1/0,g.coord[f]=1/0;var m=r.get("precision");m>=0&&"number"==typeof c&&(c=+c.toFixed(Math.min(m,20))),p.coord[d]=g.coord[d]=c,a=[p,g,{type:l,valueIndex:a.valueIndex,value:c}]}return a=[ox(t,a[0]),ox(t,a[1]),o({},a[2])],a[2].type=a[2].type||"",n(a[2],a[0]),n(a[2],a[1]),a};EL.extend({type:"markLine",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markLineModel;if(e){var n=e.getData(),r=e.__from,o=e.__to;r.each(function(e){mx(r,e,!0,t,i),mx(o,e,!1,t,i)}),n.each(function(t){n.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},renderSeries:function(t,e,i,n){function r(e,i,r){var o=e.getItemModel(i);mx(e,i,r,t,n),e.setItemVisual(i,{symbolSize:o.get("symbolSize")||g[r?0:1],symbol:o.get("symbol",!0)||p[r?0:1],color:o.get("itemStyle.color")||s.getVisual("color")})}var o=t.coordinateSystem,a=t.id,s=t.getData(),l=this.markerGroupMap,u=l.get(a)||l.set(a,new Jd);this.group.add(u.group);var c=vx(o,t,e),h=c.from,d=c.to,f=c.line;e.__from=h,e.__to=d,e.setData(f);var p=e.get("symbol"),g=e.get("symbolSize");y(p)||(p=[p,p]),"number"==typeof g&&(g=[g,g]),c.from.each(function(t){r(h,t,!0),r(d,t,!1)}),f.each(function(t){var e=f.getItemModel(t).get("lineStyle.color");f.setItemVisual(t,{color:e||h.getItemVisual(t,"color")}),f.setItemLayout(t,[h.getItemLayout(t),d.getItemLayout(t)]),f.setItemVisual(t,{fromSymbolSize:h.getItemVisual(t,"symbolSize"),fromSymbol:h.getItemVisual(t,"symbol"),toSymbolSize:d.getItemVisual(t,"symbolSize"),toSymbol:d.getItemVisual(t,"symbol")})}),u.updateData(f),c.line.eachItemGraphicEl(function(t,i){t.traverse(function(t){t.dataModel=e})}),u.__keep=!0,u.group.silent=e.get("silent")||t.get("silent")}}),ks(function(t){t.markLine=t.markLine||{}}),DL.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});var NL=function(t,e,i,n){var o=ox(t,n[0]),a=ox(t,n[1]),s=M,l=o.coord,u=a.coord;l[0]=s(l[0],-1/0),l[1]=s(l[1],-1/0),u[0]=s(u[0],1/0),u[1]=s(u[1],1/0);var c=r([{},o,a]);return c.coord=[o.coord,a.coord],c.x0=o.x,c.y0=o.y,c.x1=a.x,c.y1=a.y,c},LL=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];EL.extend({type:"markArea",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markAreaModel;if(e){var n=e.getData();n.each(function(e){var r=f(LL,function(r){return bx(n,e,r,t,i)});n.setItemLayout(e,r),n.getItemGraphicEl(e).setShape("points",r)})}},this)},renderSeries:function(t,e,i,n){var r=t.coordinateSystem,o=t.id,s=t.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,{group:new jb});this.group.add(u.group),u.__keep=!0;var c=Sx(r,t,e);e.setData(c),c.each(function(e){c.setItemLayout(e,f(LL,function(i){return bx(c,e,i,t,n)})),c.setItemVisual(e,{color:s.getVisual("color")})}),c.diff(u.__data).add(function(t){var e=new nT({shape:{points:c.getItemLayout(t)}});c.setItemGraphicEl(t,e),u.group.add(e)}).update(function(t,i){var n=u.__data.getItemGraphicEl(i);br(n,{shape:{points:c.getItemLayout(t)}},e,t),u.group.add(n),c.setItemGraphicEl(t,n)}).remove(function(t){var e=u.__data.getItemGraphicEl(t);u.group.remove(e)}).execute(),c.eachItemGraphicEl(function(t,i){var n=c.getItemModel(i),r=n.getModel("label"),o=n.getModel("emphasis.label"),s=c.getItemVisual(i,"color");t.useStyle(a(n.getModel("itemStyle").getItemStyle(),{fill:Ut(s,.4),stroke:s})),t.hoverStyle=n.getModel("emphasis.itemStyle").getItemStyle(),hr(t.style,t.hoverStyle,r,o,{labelFetcher:e,labelDataIndex:i,defaultText:c.getName(i)||"",isRectText:!0,autoColor:s}),ur(t,{}),t.dataModel=e}),u.__data=c,u.group.silent=e.get("silent")||t.get("silent")}}),ks(function(t){t.markArea=t.markArea||{}}),YT.registerSubTypeDefaulter("timeline",function(){return"slider"}),Os({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e.resetOption("timeline"),a({currentIndex:i.option.currentIndex},t)}),Os({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)});var PL=YT.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,i){this._data,this._names,this.mergeDefaultAndTheme(t,i),this._initData()},mergeOption:function(t){PL.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],n=t.axisType,r=this._names=[];if("category"===n){var o=[];d(e,function(t,e){var n,a=ki(t);b(t)?(n=i(t)).value=e:n=e,o.push(n),_(a)||null!=a&&!isNaN(a)||(a=""),r.push(a+"")}),e=o}var a={category:"ordinal",time:"time"}[n]||"number";(this._data=new eD([{name:"value",type:a}],this)).initData(e,r)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}});c(PL.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}}),kC);var RL=PC.extend({type:"timeline"}),zL=function(t,e,i,n){$D.call(this,t,e,i),this.type=n||"value",this.model=null};zL.prototype={constructor:zL,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},u(zL,$D);var FL=m,BL=d,HL=Math.PI;RL.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,i,n){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,i),o=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return Jr(s.scale.getLabel(t))},BL(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](r,o,s,t)},this),this._renderAxisLabel(r,a,s,t),this._position(r,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var i=t.get("label.position"),n=t.get("orient"),r=Dx(t,e);null==i||"auto"===i?i="horizontal"===n?r.y+r.height/2<e.getHeight()/2?"-":"+":r.x+r.width/2<e.getWidth()/2?"+":"-":isNaN(i)&&(i={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[n][i]);var o={horizontal:"center",vertical:i>=0||"+"===i?"left":"right"},a={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},s={horizontal:0,vertical:HL/2},l="vertical"===n?r.height:r.width,u=t.getModel("controlStyle"),c=u.get("show",!0),h=c?u.get("itemSize"):0,d=c?u.get("itemGap"):0,f=h+d,p=t.get("label.rotate")||0;p=p*HL/180;var g,m,v,y,x=u.get("position",!0),_=c&&u.get("showPlayBtn",!0),b=c&&u.get("showPrevBtn",!0),w=c&&u.get("showNextBtn",!0),S=0,T=l;return"left"===x||"bottom"===x?(_&&(g=[0,0],S+=f),b&&(m=[S,0],S+=f),w&&(v=[T-h,0],T-=f)):(_&&(g=[T-h,0],T-=f),b&&(m=[0,0],S+=f),w&&(v=[T-h,0],T-=f)),y=[S,T],t.get("inverse")&&y.reverse(),{viewRect:r,mainLength:l,orient:n,rotation:s[n],labelRotation:p,labelPosOpt:i,labelAlign:t.get("label.align")||o[n],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||a[n],playPosition:g,prevBtnPosition:m,nextBtnPosition:v,axisExtent:y,controlSize:h,controlGap:d}},_position:function(t,e){function i(t){var e=t.position;t.origin=[h[0][0]-e[0],h[1][0]-e[1]]}function n(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function r(t,e,i,n,r){t[n]+=i[n][r]-e[n][r]}var o=this._mainGroup,a=this._labelGroup,s=t.viewRect;if("vertical"===t.orient){var l=mt(),u=s.x,c=s.y+s.height;_t(l,l,[-u,-c]),bt(l,l,-HL/2),_t(l,l,[u,c]),(s=s.clone()).applyTransform(l)}var h=n(s),d=n(o.getBoundingRect()),f=n(a.getBoundingRect()),p=o.position,g=a.position;g[0]=p[0]=h[0][0];var m=t.labelPosOpt;if(isNaN(m))r(p,d,h,1,v="+"===m?0:1),r(g,f,h,1,1-v);else{var v=m>=0?0:1;r(p,d,h,1,v),g[1]=p[1]+m}o.attr("position",p),a.attr("position",g),o.rotation=a.rotation=t.rotation,i(o),i(a)},_createAxis:function(t,e){var i=e.getData(),n=e.get("axisType"),r=Bl(e,n);r.getTicks=function(){return i.mapArray(["value"],function(t){return t})};var o=i.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var a=new zL("value",r,t.axisExtent,n);return a.model=e,a},_createGroup:function(t){var e=this["_"+t]=new jb;return this.group.add(e),e},_renderAxisLine:function(t,e,i,n){var r=i.getExtent();n.get("lineStyle.show")&&e.add(new aT({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:o({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,n){var r=n.getData(),o=i.scale.getTicks();BL(o,function(t){var o=i.dataToCoord(t),a=r.getItemModel(t),s=a.getModel("itemStyle"),l=a.getModel("emphasis.itemStyle"),u={position:[o,0],onclick:FL(this._changeTimeline,this,t)},c=Ax(a,s,e,u);ur(c,l.getItemStyle()),a.get("tooltip")?(c.dataIndex=t,c.dataModel=n):c.dataIndex=c.dataModel=null},this)},_renderAxisLabel:function(t,e,i,n){if(i.getLabelModel().get("show")){var r=n.getData(),o=i.getViewLabels();BL(o,function(n){var o=n.tickValue,a=r.getItemModel(o),s=a.getModel("label"),l=a.getModel("emphasis.label"),u=i.dataToCoord(n.tickValue),c=new XS({position:[u,0],rotation:t.labelRotation-t.rotation,onclick:FL(this._changeTimeline,this,o),silent:!1});dr(c.style,s,{text:n.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(c),ur(c,dr({},l))},this)}},_renderControl:function(t,e,i,n){function r(t,i,r,c){if(t){var h=Ix(n,i,u,{position:t,origin:[o/2,0],rotation:c?-a:0,rectHover:!0,style:s,onclick:r});e.add(h),ur(h,l)}}var o=t.controlSize,a=t.rotation,s=n.getModel("controlStyle").getItemStyle(),l=n.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-o/2,o,o],c=n.getPlayState(),h=n.get("inverse",!0);r(t.nextBtnPosition,"controlStyle.nextIcon",FL(this._changeTimeline,this,h?"-":"+")),r(t.prevBtnPosition,"controlStyle.prevIcon",FL(this._changeTimeline,this,h?"+":"-")),r(t.playPosition,"controlStyle."+(c?"stopIcon":"playIcon"),FL(this._handlePlayClick,this,!c),!0)},_renderCurrentPointer:function(t,e,i,n){var r=n.getData(),o=n.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=FL(s._handlePointerDrag,s),t.ondragend=FL(s._handlePointerDragend,s),kx(t,o,i,n,!0)},onUpdate:function(t){kx(t,o,i,n)}};this._currentPointer=Ax(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=zr(this._axis.getExtent().slice());i>n[1]&&(i=n[1]),i<n[0]&&(i=n[0]),this._currentPointer.position[0]=i,this._currentPointer.dirty();var r=this._findNearestTick(i),o=this.model;(e||r!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(r)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(FL(function(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))},this),this.model.get("playInterval")))},_toAxisCoord:function(t){return Tr(t,this._mainGroup.getLocalTransform(),!0)},_findNearestTick:function(t){var e,i=this.model.getData(),n=1/0,r=this._axis;return i.each(["value"],function(i,o){var a=r.dataToCoord(i),s=Math.abs(a-t);s<n&&(n=s,e=o)}),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})}}),ks(function(t){var e=t&&t.timeline;y(e)||(e=e?[e]:[]),d(e,function(t){t&&Tx(t)})});var VL=Fs({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){VL.superApply(this,"optionUpdated",arguments),d(this.option.feature,function(t,e){var i=xy(e);i&&n(t,i.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}}}});Bs({type:"toolbox",render:function(t,e,i,n){function r(r,a){var s,h=c[r],d=c[a],f=new Ar(l[h],t,t.ecModel);if(h&&!d){if(Ex(h))s={model:f,onclick:f.option.onclick,featureName:h};else{var p=xy(h);if(!p)return;s=new p(f,e,i)}u[h]=s}else{if(!(s=u[d]))return;s.model=f,s.ecModel=e,s.api=i}h||!d?f.get("show")&&!s.unusable?(o(f,s,h),f.setIconStatus=function(t,e){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t].trigger(e)},s.render&&s.render(f,e,i,n)):s.remove&&s.remove(e,i):s.dispose&&s.dispose(e,i)}function o(n,r,o){var l=n.getModel("iconStyle"),u=n.getModel("emphasis.iconStyle"),c=r.getIcons?r.getIcons():n.get("icon"),h=n.get("title")||{};if("string"==typeof c){var f=c,p=h;h={},(c={})[o]=f,h[o]=p}var g=n.iconPaths={};d(c,function(o,c){var d=Ir(o,{},{x:-s/2,y:-s/2,width:s,height:s});d.setStyle(l.getItemStyle()),d.hoverStyle=u.getItemStyle(),ur(d),t.get("showTitle")&&(d.__title=h[c],d.on("mouseover",function(){var t=u.getItemStyle();d.setStyle({text:h[c],textPosition:t.textPosition||"bottom",textFill:t.fill||t.stroke||"#000",textAlign:t.textAlign||"center"})}).on("mouseout",function(){d.setStyle({textFill:null})})),d.trigger(n.get("iconStatus."+c)||"normal"),a.add(d),d.on("click",m(r.onclick,r,e,i,c)),g[c]=d})}var a=this.group;if(a.removeAll(),t.get("show")){var s=+t.get("itemSize"),l=t.get("feature")||{},u=this._features||(this._features={}),c=[];d(l,function(t,e){c.push(e)}),new $s(this._featureNames||[],c).add(r).update(r).remove(v(r,null)).execute(),this._featureNames=c,dv(a,t,i),a.add(fv(a.getBoundingRect(),t)),a.eachChild(function(t){var e=t.__title,n=t.hoverStyle;if(n&&e){var r=Ie(e,$e(n)),o=t.position[0]+a.position[0],l=!1;t.position[1]+a.position[1]+s+r.height>i.getHeight()&&(n.textPosition="top",l=!0);var u=l?-5-r.height:s+8;o+r.width/2>i.getWidth()?(n.textPosition=["100%",u],n.textAlign="right"):o-r.width/2<0&&(n.textPosition=[0,u],n.textAlign="left")}})}},updateView:function(t,e,i,n){d(this._features,function(t){t.updateView&&t.updateView(t.model,e,i,n)})},remove:function(t,e){d(this._features,function(i){i.remove&&i.remove(t,e)}),this.group.removeAll()},dispose:function(t,e){d(this._features,function(i){i.dispose&&i.dispose(t,e)})}});var WL=GC.toolbox.saveAsImage;Ox.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:WL.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:WL.lang.slice()},Ox.prototype.unusable=!z_.canvasSupported,Ox.prototype.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",r=document.createElement("a"),o=i.get("type",!0)||"png";r.download=n+"."+o,r.target="_blank";var a=e.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(r.href=a,"function"!=typeof MouseEvent||z_.browser.ie||z_.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(a.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var c=new Blob([u]);window.navigator.msSaveOrOpenBlob(c,n+"."+o)}else{var h=i.get("lang"),d='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(h&&h[0]||"")+'" /><div class='link'> <a href='http://www.freecraftfair.com'>时博球赛</a> | <a href='http://www.baleish.com'>环球体育平台首页</a> | <a href='http://www.medioamedio.com'>世俱杯手机站·官方版在线</a> | <a href='http://www.hirogame.com'>雷火竞技官网入口</a> | <a href='http://www.feyja.com'>爱游戏网页版最新官网</a> | <a href='http://www.himnode.com'>完美平台</a> | <a href='http://www.brianharrismini.com'>雷速官网</a> | <a href='http://www.keilok.com'>五大联赛足球官方网站</a> | <a href='http://www.winn-hub.com'>时搏在线开户</a> | </div> </body>';window.open().document.write(d)}else{var f=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(f)}},yy("saveAsImage",Ox);var $L=GC.toolbox.magicType;Nx.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:i($L.title),option:{},seriesIndex:{}};var jL=Nx.prototype;jL.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return d(t.get("type"),function(t){e[t]&&(i[t]=e[t])}),i};var UL={line:function(t,e,i,r){if("bar"===t)return n({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"), markLine:i.get("markLine")},r.get("option.line")||{},!0)},bar:function(t,e,i,r){if("line"===t)return n({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},r.get("option.bar")||{},!0)},stack:function(t,e,i,r){if("line"===t||"bar"===t)return n({id:e,stack:"__ec_magicType_stack__"},r.get("option.stack")||{},!0)},tiled:function(t,e,i,r){if("line"===t||"bar"===t)return n({id:e,stack:""},r.get("option.tiled")||{},!0)}},GL=[["line","bar"],["stack","tiled"]];jL.onclick=function(t,e,i){var n=this.model,r=n.get("seriesIndex."+i);if(UL[i]){var o={series:[]};d(GL,function(t){l(t,i)>=0&&d(t,function(t){n.setIconStatus(t,"normal")})}),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},function(e){var r=e.subType,s=e.id,l=UL[i](r,s,e,n);l&&(a(l,e.option),o.series.push(l));var u=e.coordinateSystem;if(u&&"cartesian2d"===u.type&&("line"===i||"bar"===i)){var c=u.getAxesByScale("ordinal")[0];if(c){var h=c.dim+"Axis",d=t.queryComponents({mainType:h,index:e.get(name+"Index"),id:e.get(name+"Id")})[0].componentIndex;o[h]=o[h]||[];for(var f=0;f<=d;f++)o[h][d]=o[h][d]||{};o[h][d].boundaryGap="bar"===i}}}),e.dispatchAction({type:"changeMagicType",currentType:i,newOption:o})}},Os({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),yy("magicType",Nx);var qL=GC.toolbox.dataView,YL=new Array(60).join("-"),XL="\t",ZL=new RegExp("["+XL+"]+","g");$x.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:i(qL.title),lang:i(qL.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},$x.prototype.onclick=function(t,e){function i(){n.removeChild(o),x._dom=null}var n=e.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:static;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=r.get("backgroundColor")||"#fff";var a=document.createElement("h4"),s=r.get("lang")||[];a.innerHTML=s[0]||r.get("title"),a.style.cssText="margin: 10px 20px;",a.style.color=r.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="display:block;width:100%;overflow:auto;";var c=r.get("optionToContent"),h=r.get("contentToOption"),d=zx(t);if("function"==typeof c){var f=c(e.getOption());"string"==typeof f?l.innerHTML=f:T(f)&&l.appendChild(f)}else l.appendChild(u),u.readOnly=r.get("readOnly"),u.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",u.style.color=r.get("textColor"),u.style.borderColor=r.get("textareaBorderColor"),u.style.backgroundColor=r.get("textareaColor"),u.value=d.value;var p=d.meta,g=document.createElement("div");g.style.cssText="position:static;bottom:0;left:0;right:0;";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");m+=";background-color:"+r.get("buttonColor"),m+=";color:"+r.get("buttonTextColor");var x=this;ut(v,"click",i),ut(y,"click",function(){var t;try{t="function"==typeof h?h(l,e.getOption()):Wx(u.value,p)}catch(t){throw i(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),i()}),v.innerHTML=s[1],y.innerHTML=s[2],y.style.cssText=m,v.style.cssText=m,!r.get("readOnly")&&g.appendChild(y),g.appendChild(v),ut(u,"keydown",function(t){if(9===(t.keyCode||t.which)){var e=this.value,i=this.selectionStart,n=this.selectionEnd;this.value=e.substring(0,i)+XL+e.substring(n),this.selectionStart=this.selectionEnd=i+1,lb(t)}}),o.appendChild(a),o.appendChild(l),o.appendChild(g),l.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},$x.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},$x.prototype.dispose=function(t,e){this.remove(t,e)},yy("dataView",$x),Os({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var i=[];d(t.newOption.series,function(t){var n=e.getSeriesByName(t.name)[0];if(n){var r=n.get("data");i.push({name:t.name,data:jx(t.data,r)})}else i.push(o({type:"scatter"},t))}),e.mergeOption(a({series:i},t.newOption))});var KL=d,JL="\0_ec_hist_store";FN.extend({type:"dataZoom.select"}),BN.extend({type:"dataZoom.select"});var QL=GC.toolbox.dataZoom,tP=d,eP="\0_ec_\0toolbox-dataZoom_";Zx.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:i(QL.title)};var iP=Zx.prototype;iP.render=function(t,e,i,n){this.model=t,this.ecModel=e,this.api=i,Qx(t,e,this,n,i),Jx(t,e)},iP.onclick=function(t,e,i){nP[i].call(this)},iP.remove=function(t,e){this._brushController.unmount()},iP.dispose=function(t,e){this._brushController.dispose()};var nP={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(Gx(this.ecModel))}};iP._onBrush=function(t,e){function i(t,e,i){var a=e.getAxis(t),s=a.model,l=n(t,s,o),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=Pk(0,i.slice(),a.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(r[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function n(t,e,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},function(i){i.getAxisModel(t,e.componentIndex)&&(n=i)}),n}if(e.isEnd&&t.length){var r={},o=this.ecModel;this._brushController.updateCovers([]),new iy(Kx(this.model.option),o,{include:["grid"]}).matchOutputRanges(t,o,function(t,e,n){if("cartesian2d"===n.type){var r=t.brushType;"rect"===r?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[r],n,e)}}),Ux(o,r),this._dispatchZoomAction(r)}},iP._dispatchZoomAction=function(t){var e=[];tP(t,function(t,n){e.push(i(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},yy("dataZoom",Zx),ks(function(t){function e(t,e){if(e){var r=t+"Index",o=e[r];null==o||"all"===o||y(o)||(o=!1===o||"none"===o?[]:[o]),i(t,function(e,i){if(null==o||"all"===o||-1!==l(o,i)){var a={type:"select",$fromToolbox:!0,id:eP+t+i};a[r]=i,n.push(a)}})}}function i(e,i){var n=t[e];y(n)||(n=n?[n]:[]),tP(n,i)}if(t){var n=t.dataZoom||(t.dataZoom=[]);y(n)||(t.dataZoom=n=[n]);var r=t.toolbox;if(r&&(y(r)&&(r=r[0]),r&&r.feature)){var o=r.feature.dataZoom;e("xAxis",o),e("yAxis",o)}}});var rP=GC.toolbox.restore;t_.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:rP.title},t_.prototype.onclick=function(t,e,i){qx(t),e.dispatchAction({type:"restore",from:this.uid})},yy("restore",t_),Os({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var oP,aP="urn:schemas-microsoft-com:vml",sP="undefined"==typeof window?null:window,lP=!1,uP=sP&&sP.document;if(uP&&!z_.canvasSupported)try{!uP.namespaces.zrvml&&uP.namespaces.add("zrvml",aP),oP=function(t){return uP.createElement("<zrvml:"+t+' class="zrvml">')}}catch(t){oP=function(t){return uP.createElement("<"+t+' xmlns="'+aP+'" class="zrvml">')}}var cP=TS.CMD,hP=Math.round,dP=Math.sqrt,fP=Math.abs,pP=Math.cos,gP=Math.sin,mP=Math.max;if(!z_.canvasSupported){var vP=21600,yP=vP/2,xP=function(t){t.style.cssText="position:static;left:0;top:0;width:1px;height:1px;",t.coordsize=vP+","+vP,t.coordorigin="0,0"},_P=function(t){return String(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},bP=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},wP=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},SP=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},TP=function(t,e,i){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+i},CP=function(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},MP=function(t,e,i){var n=zt(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=bP(n[0],n[1],n[2]),t.opacity=i*n[3])},DP=function(t){var e=zt(t);return[bP(e[0],e[1],e[2]),e[3]]},IP=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof hT){var r,o=0,a=[0,0],s=0,l=1,u=i.getBoundingRect(),c=u.width,h=u.height;if("linear"===n.type){r="gradient";var d=i.transform,f=[n.x*c,n.y*h],p=[n.x2*c,n.y2*h];d&&(Q(f,f,d),Q(p,p,d));var g=p[0]-f[0],m=p[1]-f[1];(o=180*Math.atan2(g,m)/Math.PI)<0&&(o+=360),o<1e-6&&(o=0)}else{r="gradientradial";var f=[n.x*c,n.y*h],d=i.transform,v=i.scale,y=c,x=h;a=[(f[0]-u.x)/y,(f[1]-u.y)/x],d&&Q(f,f,d),y/=v[0]*vP,x/=v[1]*vP;var _=mP(y,x);s=0/_,l=2*n.r/_-s}var b=n.colorStops.slice();b.sort(function(t,e){return t.offset-e.offset});for(var w=b.length,S=[],T=[],C=0;C<w;C++){var M=b[C],D=DP(M.color);T.push(M.offset*l+s+" "+D[0]),0!==C&&C!==w-1||S.push(D)}if(w>=2){var I=S[0][0],A=S[1][0],k=S[0][1]*e.opacity,E=S[1][1]*e.opacity;t.type=r,t.method="none",t.focus="100%",t.angle=o,t.color=I,t.color2=A,t.colors=T.join(","),t.opacity=E,t.opacity2=k}"radial"===r&&(t.focusposition=a.join(","))}else MP(t,n,e.opacity)},AP=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof hT||MP(t,e.stroke,e.opacity)},kP=function(t,e,i,n){var r="fill"==e,o=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i.lineWidth)?(t[r?"filled":"stroked"]="true",i[e]instanceof hT&&SP(t,o),o||(o=e_(e)),r?IP(o,i,n):AP(o,i),wP(t,o)):(t[r?"filled":"stroked"]="false",SP(t,o))},EP=[[],[],[]],OP=function(t,e){var i,n,r,o,a,s,l=cP.M,u=cP.C,c=cP.L,h=cP.A,d=cP.Q,f=[],p=t.data,g=t.len();for(o=0;o<g;){switch(r=p[o++],n="",i=0,r){case l:n=" m ",i=1,a=p[o++],s=p[o++],EP[0][0]=a,EP[0][1]=s;break;case c:n=" l ",i=1,a=p[o++],s=p[o++],EP[0][0]=a,EP[0][1]=s;break;case d:case u:n=" c ",i=3;var m,v,y=p[o++],x=p[o++],_=p[o++],b=p[o++];r===d?(m=_,v=b,_=(_+2*y)/3,b=(b+2*x)/3,y=(a+2*y)/3,x=(s+2*x)/3):(m=p[o++],v=p[o++]),EP[0][0]=y,EP[0][1]=x,EP[1][0]=_,EP[1][1]=b,EP[2][0]=m,EP[2][1]=v,a=m,s=v;break;case h:var w=0,S=0,T=1,C=1,M=0;e&&(w=e[4],S=e[5],T=dP(e[0]*e[0]+e[1]*e[1]),C=dP(e[2]*e[2]+e[3]*e[3]),M=Math.atan2(-e[1]/C,e[0]/T));var D=p[o++],I=p[o++],A=p[o++],k=p[o++],E=p[o++]+M,O=p[o++]+E+M;o++;var N=p[o++],L=D+pP(E)*A,P=I+gP(E)*k,y=D+pP(O)*A,x=I+gP(O)*k,R=N?" wa ":" at ";Math.abs(L-y)<1e-4&&(Math.abs(O-E)>.01?N&&(L+=.0125):Math.abs(P-I)<1e-4?N&&L<D||!N&&L>D?x-=.0125:x+=.0125:N&&P<I||!N&&P>I?y+=.0125:y-=.0125),f.push(R,hP(((D-A)*T+w)*vP-yP),",",hP(((I-k)*C+S)*vP-yP),",",hP(((D+A)*T+w)*vP-yP),",",hP(((I+k)*C+S)*vP-yP),",",hP((L*T+w)*vP-yP),",",hP((P*C+S)*vP-yP),",",hP((y*T+w)*vP-yP),",",hP((x*C+S)*vP-yP)),a=y,s=x;break;case cP.R:var z=EP[0],F=EP[1];z[0]=p[o++],z[1]=p[o++],F[0]=z[0]+p[o++],F[1]=z[1]+p[o++],e&&(Q(z,z,e),Q(F,F,e)),z[0]=hP(z[0]*vP-yP),F[0]=hP(F[0]*vP-yP),z[1]=hP(z[1]*vP-yP),F[1]=hP(F[1]*vP-yP),f.push(" m ",z[0],",",z[1]," l ",F[0],",",z[1]," l ",F[0],",",F[1]," l ",z[0],",",F[1]);break;case cP.Z:f.push(" x ")}if(i>0){f.push(n);for(var B=0;B<i;B++){var H=EP[B];e&&Q(H,H,e),f.push(hP(H[0]*vP-yP),",",hP(H[1]*vP-yP),B<i-1?",":"")}}}return f.join("")};En.prototype.brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=e_("shape"),xP(i),this._vmlEl=i),kP(i,"fill",e,this),kP(i,"stroke",e,this);var n=this.transform,r=null!=n,o=i.getElementsByTagName("stroke")[0];if(o){var a=e.lineWidth;if(r&&!e.strokeNoScale){var s=n[0]*n[3]-n[1]*n[2];a*=dP(fP(s))}o.weight=a+"px"}var l=this.path||(this.path=new TS);this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),i.path=OP(l,this.transform),i.style.zIndex=TP(this.zlevel,this.z,this.z2),wP(t,i),null!=e.text?this.drawRectText(t,this.getBoundingRect()):this.removeRectText(t)},En.prototype.onRemove=function(t){SP(t,this._vmlEl),this.removeRectText(t)},En.prototype.onAdd=function(t){wP(t,this._vmlEl),this.appendRectText(t)};var NP=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};ci.prototype.brushVML=function(t){var e,i,n=this.style,r=n.image;if(NP(r)){var o=r.src;if(o===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var a=r.runtimeStyle,s=a.width,l=a.height;a.width="auto",a.height="auto",e=r.width,i=r.height,a.width=s,a.height=l,this._imageSrc=o,this._imageWidth=e,this._imageHeight=i}r=o}else r===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(r){var u=n.x||0,c=n.y||0,h=n.width,d=n.height,f=n.sWidth,p=n.sHeight,g=n.sx||0,m=n.sy||0,v=f&&p,y=this._vmlEl;y||(y=uP.createElement("div"),xP(y),this._vmlEl=y);var x,_=y.style,b=!1,w=1,S=1;if(this.transform&&(x=this.transform,w=dP(x[0]*x[0]+x[1]*x[1]),S=dP(x[2]*x[2]+x[3]*x[3]),b=x[1]||x[2]),b){var T=[u,c],C=[u+h,c],M=[u,c+d],D=[u+h,c+d];Q(T,T,x),Q(C,C,x),Q(M,M,x),Q(D,D,x);var I=mP(T[0],C[0],M[0],D[0]),A=mP(T[1],C[1],M[1],D[1]),k=[];k.push("M11=",x[0]/w,",","M12=",x[2]/S,",","M21=",x[1]/w,",","M22=",x[3]/S,",","Dx=",hP(u*w+x[4]),",","Dy=",hP(c*S+x[5])),_.padding="0 "+hP(I)+"px "+hP(A)+"px 0",_.filter="progid:DXImageTransform.Microsoft.Matrix("+k.join("")+", SizingMethod=clip)"}else x&&(u=u*w+x[4],c=c*S+x[5]),_.filter="",_.left=hP(u)+"px",_.top=hP(c)+"px";var E=this._imageEl,O=this._cropEl;E||(E=uP.createElement("div"),this._imageEl=E);var N=E.style;if(v){if(e&&i)N.width=hP(w*e*h/f)+"px",N.height=hP(S*i*d/p)+"px";else{var L=new Image,P=this;L.onload=function(){L.onload=null,e=L.width,i=L.height,N.width=hP(w*e*h/f)+"px",N.height=hP(S*i*d/p)+"px",P._imageWidth=e,P._imageHeight=i,P._imageSrc=r},L.src=r}O||((O=uP.createElement("div")).style.overflow="hidden",this._cropEl=O);var R=O.style;R.width=hP((h+g*h/f)*w),R.height=hP((d+m*d/p)*S),R.filter="progid:DXImageTransform.Microsoft.Matrix(Dx="+-g*h/f*w+",Dy="+-m*d/p*S+")",O.parentNode||y.appendChild(O),E.parentNode!=O&&O.appendChild(E)}else N.width=hP(w*h)+"px",N.height=hP(S*d)+"px",y.appendChild(E),O&&O.parentNode&&(y.removeChild(O),this._cropEl=null);var z="",F=n.opacity;F<1&&(z+=".Alpha(opacity="+hP(100*F)+") "),z+="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+r+", SizingMethod=scale)",N.filter=z,y.style.zIndex=TP(this.zlevel,this.z,this.z2),wP(t,y),null!=n.text&&this.drawRectText(t,this.getBoundingRect())}},ci.prototype.onRemove=function(t){SP(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},ci.prototype.onAdd=function(t){wP(t,this._vmlEl),this.appendRectText(t)};var LP,PP={},RP=0,zP=document.createElement("div"),FP=function(t){var e=PP[t];if(!e){RP>100&&(RP=0,PP={});var i,n=zP.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(t){}e={style:n.fontStyle||"normal",variant:n.fontVariant||"normal",weight:n.fontWeight||"normal",size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},PP[t]=e,RP++}return e};!function(t,e){cw.measureText=e}(0,function(t,e){var i=uP;LP||((LP=i.createElement("div")).style.cssText="position:static;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",uP.body.appendChild(LP));try{LP.style.font=e}catch(t){}return LP.innerHTML="",LP.appendChild(i.createTextNode(t)),{width:LP.offsetWidth}});for(var BP=new ue,HP=[gw,ui,ci,En,XS],VP=0;VP<HP.length;VP++){var WP=HP[VP].prototype;WP.drawRectText=function(t,e,i,n){var r=this.style;this.__dirty&&Ue(r);var o=r.text;if(null!=o&&(o+=""),o){if(r.rich){var a=Ve(o,r);o=[];for(var s=0;s<a.lines.length;s++){for(var l=a.lines[s].tokens,u=[],c=0;c<l.length;c++)u.push(l[c].text);o.push(u.join(""))}o=o.join("\n")}var h,d,f=r.textAlign,p=r.textVerticalAlign,g=FP(r.font),m=g.style+" "+g.variant+" "+g.weight+" "+g.size+'px "'+g.family+'"';i=i||Ie(o,m,f,p);var v=this.transform;if(v&&!n&&(BP.copy(e),BP.applyTransform(v),e=BP),n)h=e.x,d=e.y;else{var y=r.textPosition,x=r.textDistance;if(y instanceof Array)h=e.x+CP(y[0],e.width),d=e.y+CP(y[1],e.height),f=f||"left";else{var _=Ne(y,e,x);h=_.x,d=_.y,f=f||_.textAlign,p=p||_.textVerticalAlign}}h=Ee(h,i.width,f),d=Oe(d,i.height,p),d+=i.height/2;var b,w,S,T=e_,C=this._textVmlEl;C?w=(b=(S=C.firstChild).nextSibling).nextSibling:(C=T("line"),b=T("path"),w=T("textpath"),S=T("skew"),w.style["v-text-align"]="left",xP(C),b.textpathok=!0,w.on=!0,C.from="0 0",C.to="1000 0.05",wP(C,S),wP(C,b),wP(C,w),this._textVmlEl=C);var M=[h,d],D=C.style;v&&n?(Q(M,M,v),S.on=!0,S.matrix=v[0].toFixed(3)+","+v[2].toFixed(3)+","+v[1].toFixed(3)+","+v[3].toFixed(3)+",0,0",S.offset=(hP(M[0])||0)+","+(hP(M[1])||0),S.origin="0 0",D.left="0px",D.top="0px"):(S.on=!1,D.left=hP(h)+"px",D.top=hP(d)+"px"),w.string=_P(o);try{w.style.font=m}catch(t){}kP(C,"fill",{fill:r.textFill,opacity:r.opacity},this),kP(C,"stroke",{stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash},this),C.style.zIndex=TP(this.zlevel,this.z,this.z2),wP(t,C)}},WP.removeRectText=function(t){SP(t,this._textVmlEl),this._textVmlEl=null},WP.appendRectText=function(t){wP(t,this._textVmlEl)}}XS.prototype.brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(t)},XS.prototype.onRemove=function(t){this.removeRectText(t)},XS.prototype.onAdd=function(t){this.appendRectText(t)}}r_.prototype={constructor:r_,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i<t.length;i++){var n=t[i];n.invisible||n.ignore?(n.__alreadyNotVisible||n.onRemove(e),n.__alreadyNotVisible=!0):(n.__alreadyNotVisible&&n.onAdd(e),n.__alreadyNotVisible=!1,n.__dirty&&(n.beforeBrush&&n.beforeBrush(),(n.brushVML||n.brush).call(n,e),n.afterBrush&&n.afterBrush())),n.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(t,e){var t=null==t?this._getWidth():t,e=null==e?this._getHeight():e;if(this._width!=t||this._height!=e){this._width=t,this._height=e;var i=this._vmlViewport.style;i.width=t+"px",i.height=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var t=this.root,e=t.currentStyle;return(t.clientWidth||n_(e.width))-n_(e.paddingLeft)-n_(e.paddingRight)|0},_getHeight:function(){var t=this.root,e=t.currentStyle;return(t.clientHeight||n_(e.height))-n_(e.paddingTop)-n_(e.paddingBottom)|0}},d(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(t){r_.prototype[t]=o_(t)}),Mi("vml",r_);var $P="http://www.w3.org/2000/svg",jP=TS.CMD,UP=Array.prototype.join,GP="none",qP=Math.round,YP=Math.sin,XP=Math.cos,ZP=Math.PI,KP=2*Math.PI,JP=180/ZP,QP=1e-4,tR={};tR.brush=function(t){var e=t.style,i=t.__svgEl;i||(i=a_("path"),t.__svgEl=i),t.path||t.createPathProxy();var n=t.path;if(t.__dirtyPath){n.beginPath(),t.buildPath(n,t.shape),t.__dirtyPath=!1;var r=g_(n);r.indexOf("NaN")<0&&d_(i,"d",r)}p_(i,e,!1,t),h_(i,t.transform),null!=e.text&&rR(t,t.getBoundingRect())};var eR={};eR.brush=function(t){var e=t.style,i=e.image;if(i instanceof HTMLImageElement&&(i=i.src),i){var n=e.x||0,r=e.y||0,o=e.width,a=e.height,s=t.__svgEl;s||(s=a_("image"),t.__svgEl=s),i!==t.__imageSrc&&(f_(s,"href",i),t.__imageSrc=i),d_(s,"width",o),d_(s,"height",a),d_(s,"x",n),d_(s,"y",r),h_(s,t.transform),null!=e.text&&rR(t,t.getBoundingRect())}};var iR={},nR=new ue,rR=function(t,e,i){var n=t.style;t.__dirty&&Ue(n);var r=n.text;if(null!=r){r+="";var o=t.__textSvgEl;o||(o=a_("text"),t.__textSvgEl=o);var a,s,l=n.textPosition,u=n.textDistance,c=n.textAlign||"left";"number"==typeof n.fontSize&&(n.fontSize+="px");var h=n.font||[n.fontStyle||"",n.fontWeight||"",n.fontSize||"",n.fontFamily||""].join(" ")||uw,d=m_(n.textVerticalAlign),f=(i=Ie(r,h,c,d)).lineHeight;if(l instanceof Array)a=e.x+l[0],s=e.y+l[1];else{var p=Ne(l,e,u);a=p.x,s=p.y,d=m_(p.textVerticalAlign),c=p.textAlign}d_(o,"alignment-baseline",d),h&&(o.style.font=h);var g=n.textPadding;if(d_(o,"x",a),d_(o,"y",s),p_(o,n,!0,t),t instanceof XS||t.style.transformText)h_(o,t.transform);else{if(t.transform)nR.copy(e),nR.applyTransform(t.transform),e=nR;else{var m=t.transformCoordToGlobal(e.x,e.y);e.x=m[0],e.y=m[1],t.transform=vt(mt())}var v=n.textOrigin;"center"===v?(a=i.width/2+a,s=i.height/2+s):v&&(a=v[0]+a,s=v[1]+s);var y=-n.textRotation||0,x=mt();bt(x,x,y),_t(x,x,m=[t.transform[4],t.transform[5]]),h_(o,x)}var _=r.split("\n"),b=_.length,w=c;"left"===w?(w="start",g&&(a+=g[3])):"right"===w?(w="end",g&&(a-=g[1])):"center"===w&&(w="middle",g&&(a+=(g[3]-g[1])/2));var S=0;if("after-edge"===d?(S=-i.height+f,g&&(S-=g[2])):"middle"===d?(S=(-i.height+f)/2,g&&(s+=(g[0]-g[2])/2)):g&&(S+=g[0]),t.__text!==r||t.__textFont!==h){var T=t.__tspanList||[];for(t.__tspanList=T,M=0;M<b;M++)(D=T[M])?D.innerHTML="":(D=T[M]=a_("tspan"),o.appendChild(D),d_(D,"alignment-baseline",d),d_(D,"text-anchor",w)),d_(D,"x",a),d_(D,"y",s+M*f+S),D.appendChild(document.createTextNode(_[M]));for(;M<T.length;M++)o.removeChild(T[M]);T.length=b,t.__text=r,t.__textFont=h}else if(t.__tspanList.length)for(var C=t.__tspanList.length,M=0;M<C;++M){var D=t.__tspanList[M];D&&(d_(D,"x",a),d_(D,"y",s+M*f+S))}}};iR.drawRectText=rR,iR.brush=function(t){var e=t.style;null!=e.text&&(e.textPosition=[0,0],rR(t,{x:e.x||0,y:e.y||0,width:0,height:0},t.getBoundingRect()))},v_.prototype={diff:function(t,e,i){i||(i=function(t,e){return t===e}),this.equals=i;var n=this;t=t.slice();var r=(e=e.slice()).length,o=t.length,a=1,s=r+o,l=[{newPos:-1,components:[]}],u=this.extractCommon(l[0],e,t,0);if(l[0].newPos+1>=r&&u+1>=o){for(var c=[],h=0;h<e.length;h++)c.push(h);return[{indices:c,count:e.length}]}for(;a<=s;){var d=function(){for(var i=-1*a;i<=a;i+=2){var s,u=l[i-1],c=l[i+1],h=(c?c.newPos:0)-i;u&&(l[i-1]=void 0);var d=u&&u.newPos+1<r,f=c&&0<=h&&h<o;if(d||f){if(!d||f&&u.newPos<c.newPos?(s=x_(c),n.pushComponent(s.components,void 0,!0)):((s=u).newPos++,n.pushComponent(s.components,!0,void 0)),h=n.extractCommon(s,e,t,i),s.newPos+1>=r&&h+1>=o)return y_(0,s.components);l[i]=s}else l[i]=void 0}a++}();if(d)return d}},pushComponent:function(t,e,i){var n=t[t.length-1];n&&n.added===e&&n.removed===i?t[t.length-1]={count:n.count+1,added:e,removed:i}:t.push({count:1,added:e,removed:i})},extractCommon:function(t,e,i,n){for(var r=e.length,o=i.length,a=t.newPos,s=a-n,l=0;a+1<r&&s+1<o&&this.equals(e[a+1],i[s+1]);)a++,s++,l++;return l&&t.components.push({count:l}),t.newPos=a,s},tokenize:function(t){return t.slice()},join:function(t){return t.slice()}};var oR=new v_,aR=function(t,e,i){return oR.diff(t,e,i)};__.prototype.createElement=a_,__.prototype.getDefs=function(t){var e=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?t?((i=e.insertBefore(this.createElement("defs"),e.firstChild)).contains||(i.contains=function(t){var e=i.children;if(!e)return!1;for(var n=e.length-1;n>=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},__.prototype.update=function(t,e){if(t){var i=this.getDefs(!1);if(t[this._domName]&&i.contains(t[this._domName]))"function"==typeof e&&e(t);else{var n=this.add(t);n&&(t[this._domName]=n)}}},__.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},__.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},__.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return d(this._tagNames,function(i){var n=t.getElementsByTagName(i);e=e.concat([].slice.call(n))}),e},__.prototype.markAllUnused=function(){var t=this;d(this.getDoms(),function(e){e[t._markLabel]="0"})},__.prototype.markUsed=function(t){t&&(t[this._markLabel]="1")},__.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this;d(this.getDoms(),function(i){"1"!==i[e._markLabel]&&t.removeChild(i)})}},__.prototype.getSvgProxy=function(t){return t instanceof En?tR:t instanceof ci?eR:t instanceof XS?iR:tR},__.prototype.getTextSvgElement=function(t){return t.__textSvgEl},__.prototype.getSvgElement=function(t){return t.__svgEl},u(b_,__),b_.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var i=this;d(["fill","stroke"],function(n){if(e.style[n]&&("linear"===e.style[n].type||"radial"===e.style[n].type)){var r,o=e.style[n],a=i.getDefs(!0);o._dom?(r=o._dom,a.contains(o._dom)||i.addDom(r)):r=i.add(o),i.markUsed(e);var s=r.getAttribute("id");t.setAttribute(n,"url(#"+s+")")}})}},b_.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return Fb("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},b_.prototype.update=function(t){var e=this;__.prototype.update.call(this,t,function(){var i=t.type,n=t._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))})},b_.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void Fb("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var i=t.colorStops,n=0,r=i.length;n<r;++n){var o=this.createElement("stop");o.setAttribute("offset",100*i[n].offset+"%"),o.setAttribute("stop-color",i[n].color),e.appendChild(o)}t._dom=e},b_.prototype.markUsed=function(t){if(t.style){var e=t.style.fill;e&&e._dom&&__.prototype.markUsed.call(this,e._dom),(e=t.style.stroke)&&e._dom&&__.prototype.markUsed.call(this,e._dom)}},u(w_,__),w_.prototype.update=function(t){var e=this.getSvgElement(t);e&&this.updateDom(e,t.__clipPaths,!1);var i=this.getTextSvgElement(t);i&&this.updateDom(i,t.__clipPaths,!0),this.markUsed(t)},w_.prototype.updateDom=function(t,e,i){if(e&&e.length>0){var n,r,o=this.getDefs(!0),a=e[0],s=i?"_textDom":"_dom";a[s]?(r=a[s].getAttribute("id"),n=a[s],o.contains(n)||o.appendChild(n)):(r="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(n=this.createElement("clipPath")).setAttribute("id",r),o.appendChild(n),a[s]=n);var l=this.getSvgProxy(a);if(a.transform&&a.parent.invTransform&&!i){var u=Array.prototype.slice.call(a.transform);xt(a.transform,a.parent.invTransform,a.transform),l.brush(a),a.transform=u}else l.brush(a);var c=this.getSvgElement(a);n.innerHTML="",n.appendChild(c.cloneNode()),t.setAttribute("clip-path","url(#"+r+")"),e.length>1&&this.updateDom(n,e.slice(1),i)}else t&&t.setAttribute("clip-path","none")},w_.prototype.markUsed=function(t){var e=this;t.__clipPaths&&t.__clipPaths.length>0&&d(t.__clipPaths,function(t){t._dom&&__.prototype.markUsed.call(e,t._dom),t._textDom&&__.prototype.markUsed.call(e,t._textDom)})},u(S_,__),S_.prototype.addWithoutUpdate=function(t,e){if(e&&T_(e.style)){var i,n=e.style;n._shadowDom?(i=n._shadowDom,this.getDefs(!0).contains(n._shadowDom)||this.addDom(i)):i=this.add(e),this.markUsed(e);var r=i.getAttribute("id");t.style.filter="url(#"+r+")"}},S_.prototype.add=function(t){var e=this.createElement("filter"),i=t.style;return i._shadowDomId=i._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+i._shadowDomId),this.updateDom(t,e),this.addDom(e),e},S_.prototype.update=function(t,e){var i=e.style;if(T_(i)){var n=this;__.prototype.update.call(this,e,function(t){n.updateDom(e,t._shadowDom)})}else this.remove(t,i)},S_.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(e),t.style.filter="")},S_.prototype.updateDom=function(t,e){var i=e.getElementsByTagName("feDropShadow");i=0===i.length?this.createElement("feDropShadow"):i[0];var n,r,o,a,s=t.style,l=t.scale?t.scale[0]||1:1,u=t.scale?t.scale[1]||1:1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)n=s.shadowOffsetX||0,r=s.shadowOffsetY||0,o=s.shadowBlur,a=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);n=s.textShadowOffsetX||0,r=s.textShadowOffsetY||0,o=s.textShadowBlur,a=s.textShadowColor}i.setAttribute("dx",n/l),i.setAttribute("dy",r/u),i.setAttribute("flood-color",a);var c=o/2/l+" "+o/2/u;i.setAttribute("stdDeviation",c),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(o/2*200)+"%"),e.setAttribute("height",Math.ceil(o/2*200)+"%"),e.appendChild(i),s._shadowDom=e},S_.prototype.markUsed=function(t){var e=t.style;e&&e._shadowDom&&__.prototype.markUsed.call(this,e._shadowDom)};var sR=function(t,e,i,n){this.root=t,this.storage=e,this._opts=i=o({},i||{});var r=a_("svg");r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("version","1.1"),r.setAttribute("baseProfile","full"),r.style.cssText="user-select:none;position:static;left:0;top:0;",this.gradientManager=new b_(n,r),this.clipPathManager=new w_(n,r),this.shadowManager=new S_(n,r);var a=document.createElement("div");a.style.cssText="overflow:hidden;position:relative",this._svgRoot=r,this._viewport=a,t.appendChild(a),a.appendChild(r),this.resize(i.width,i.height),this._visibleList=[]};sR.prototype={constructor:sR,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._viewport.style.background=t},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,i=this._svgRoot,n=this._visibleList,r=t.length,o=[];for(e=0;e<r;e++){var a=M_(f=t[e]),s=O_(f)||E_(f);f.invisible||(f.__dirty&&(a&&a.brush(f),this.clipPathManager.update(f),f.style&&(this.gradientManager.update(f.style.fill),this.gradientManager.update(f.style.stroke),this.shadowManager.update(s,f)),f.__dirty=!1),o.push(f))}var l,u=aR(n,o);for(e=0;e<u.length;e++)if((h=u[e]).removed)for(d=0;d<h.count;d++){var s=O_(f=n[h.indices[d]]),c=E_(f);k_(i,s),k_(i,c)}for(e=0;e<u.length;e++){var h=u[e];if(h.added)for(d=0;d<h.count;d++){var s=O_(f=o[h.indices[d]]),c=E_(f);l?I_(i,s,l):A_(i,s),s?I_(i,c,s):l?I_(i,c,l):A_(i,c),I_(i,c,s),l=c||s||l,this.gradientManager.addWithoutUpdate(s,f),this.shadowManager.addWithoutUpdate(l,f),this.clipPathManager.markUsed(f)}else if(!h.removed)for(var d=0;d<h.count;d++){var f=o[h.indices[d]];l=s=E_(f)||O_(f)||l,this.gradientManager.markUsed(f),this.gradientManager.addWithoutUpdate(s,f),this.shadowManager.markUsed(f),this.shadowManager.addWithoutUpdate(s,f),this.clipPathManager.markUsed(f)}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=o},_getDefs:function(t){var e=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?t?((i=e.insertBefore(a_("defs"),e.firstChild)).contains||(i.contains=function(t){var e=i.children;if(!e)return!1;for(var n=e.length-1;n>=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},resize:function(t,e){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var r=i.style;r.width=t+"px",r.height=e+"px";var o=this._svgRoot;o.setAttribute("width",t),o.setAttribute("height",e)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){ var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[n]||C_(s[i])||C_(a.style[i]))-(C_(s[r])||0)-(C_(s[o])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){return this.refresh(),"data:image/svg+xml;charset=UTF-8,"+this._svgRoot.outerHTML}},d(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(t){sR.prototype[t]=N_(t)}),Mi("svg",sR),t.version="4.2.0",t.dependencies=bM,t.PRIORITY=CM,t.init=function(t,e,i){var n=Is(t);if(n)return n;var r=new as(t,e,i);return r.id="ec_"+WM++,HM[r.id]=r,Vi(t,jM,r.id),Ms(r),r},t.connect=function(t){if(y(t)){var e=t;t=null,vM(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+$M++,vM(e,function(e){e.group=t})}return VM[t]=!0,t},t.disConnect=Ds,t.disconnect=UM,t.dispose=function(t){"string"==typeof t?t=HM[t]:t instanceof as||(t=Is(t)),t instanceof as&&!t.isDisposed()&&t.dispose()},t.getInstanceByDom=Is,t.getInstanceById=function(t){return HM[t]},t.registerTheme=As,t.registerPreprocessor=ks,t.registerProcessor=Es,t.registerPostUpdate=function(t){RM.push(t)},t.registerAction=Os,t.registerCoordinateSystem=Ns,t.getCoordinateSystemDimensions=function(t){var e=Fo.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},t.registerLayout=Ls,t.registerVisual=Ps,t.registerLoading=zs,t.extendComponentModel=Fs,t.extendComponentView=Bs,t.extendSeriesModel=Hs,t.extendChartView=Vs,t.setCanvasCreator=function(t){e("createCanvas",t)},t.registerMap=function(t,e,i){pM.registerMap(t,e,i)},t.getMap=function(t){var e=pM.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}},t.dataTool=GM,t.zrender=Ow,t.number=NT,t.format=VT,t.throttle=Aa,t.helper=FD,t.matrix=fb,t.vector=nb,t.color=Ob,t.parseGeoJSON=HD,t.parseGeoJson=jD,t.util=UD,t.graphic=GD,t.List=eD,t.Model=Ar,t.Axis=$D,t.env=z_}),$(function(){$("input[type='checkbox']").each(function(){$(this).is(":checked")&&$(this).parents("label").addClass("checked")}),$("input[type='checkbox']").click(function(){$(this).is(":checked")?$(this).parents("label").addClass("checked"):$(this).parents("label").removeClass("checked")})}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("echarts/lib/echarts"),require("echarts/lib/component/tooltip"),require("echarts/lib/component/legend"),require("echarts/lib/chart/bar"),require("echarts/lib/chart/line"),require("echarts/lib/chart/pie"),require("echarts/lib/chart/funnel"),require("echarts/lib/chart/radar"),require("echarts/lib/chart/map"),require("echarts/extension/bmap/bmap"),require("echarts-amap"),require("echarts/lib/chart/sankey"),require("echarts/lib/chart/heatmap"),require("echarts/lib/component/visualMap"),require("echarts/lib/chart/scatter"),require("echarts/lib/chart/candlestick"),require("echarts/lib/component/dataZoom"),require("echarts/lib/chart/gauge"),require("echarts/lib/chart/tree")):"function"==typeof define&&define.amd?define(["echarts/lib/echarts","echarts/lib/component/tooltip","echarts/lib/component/legend","echarts/lib/chart/bar","echarts/lib/chart/line","echarts/lib/chart/pie","echarts/lib/chart/funnel","echarts/lib/chart/radar","echarts/lib/chart/map","echarts/extension/bmap/bmap","echarts-amap","echarts/lib/chart/sankey","echarts/lib/chart/heatmap","echarts/lib/component/visualMap","echarts/lib/chart/scatter","echarts/lib/chart/candlestick","echarts/lib/component/dataZoom","echarts/lib/chart/gauge","echarts/lib/chart/tree"],e):t.VeIndex=e(t.echarts)}(this,function(t){"use strict";function e(t,e,i,n){var r=t.toString().split("."),o=e-(n||0),a=2===r.length?Math.min(Math.max(r[1].length,o),e):o,s=Math.pow(10,a),l=(i(t+"e+"+a)/s).toFixed(a);if(n>e-a){var u=new RegExp("\\.?0{1,"+(n-(e-a))+"}$");l=l.replace(u,"")}return l}function i(t,i,n,r){var o=Math.abs(i),a=!1,s=!1,l="",u="",c=!1,h=void 0,d=void 0;n=n||"",i=i||0,~n.indexOf("(")?(a=!0,n=n.replace(/[(|)]/g,"")):(~n.indexOf("+")||~n.indexOf("-"))&&(d=~n.indexOf("+")?n.indexOf("+"):i<0?n.indexOf("-"):-1,n=n.replace(/[+|-]/g,"")),~n.indexOf("a")&&(h=!!(h=n.match(/a(k|m|b|t)?/))&&h[1],~n.indexOf(" a")&&(l=" "),n=n.replace(new RegExp(l+"a[kmbt]?"),""),o>=R&&!h||"t"===h?(l+=t.abbrLabel.tr,i/=R):o<R&&o>=z&&!h||"b"===h?(l+=t.abbrLabel.bi,i/=z):o<z&&o>=F&&!h||"m"===h?(l+=t.abbrLabel.mi,i/=F):(o<F&&o>=B&&!h||"k"===h)&&(l+=t.abbrLabel.th,i/=B)),~n.indexOf("[.]")&&(s=!0,n=n.replace("[.]","."));var f=i.toString().split(".")[0],p=n.split(".")[1],g=n.indexOf(","),m=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length;if(p?(f=(u=~p.indexOf("[")?e(i,(p=(p=p.replace("]","")).split("["))[0].length+p[1].length,r,p[1].length):e(i,p.length,r)).split(".")[0],u=~u.indexOf(".")?"."+u.split(".")[1]:"",s&&0==+u.slice(1)&&(u="")):f=e(i,0,r),l&&!h&&+f>=1e3&&l!==L.trillion&&(f=""+ +f/1e3,l=L.million),~f.indexOf("-")&&(f=f.slice(1),c=!0),f.length<m)for(var v=m-f.length;v>0;v--)f="0"+f;g>-1&&(f=f.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")),n.indexOf(".")||(f="");var y=f+u+(l||"");return a?y=(a&&c?"(":"")+y+(a&&c?")":""):d>=0?y=0===d?(c?"-":"+")+y:y+(c?"-":"+"):c&&(y="-"+y),y}function n(t,e){Object.keys(e).forEach(function(i){t[i]=e[i]})}function r(t,e,n){return function(t,e,n){e=e||H.defaultFormat,n=n||Math.round;var o=void 0,a=void 0;if(0===t&&null!==H.zeroFormat)o=H.zeroFormat;else if(null===t&&null!==H.nullFormat)o=H.nullFormat;else{for(var s in V)if(V[s]&&e.match(V[s].regexp)){a=V[s].format;break}o=(a=a||i.bind(null,H))(t,e,n,r)}return o}(0===t||void 0===t?0:null===t||function(t){return"number"==typeof t&&isNaN(t)}(t)?null:"string"==typeof t?H.zeroFormat&&t===H.zeroFormat?0:H.nullFormat&&t===H.nullFormat||!t.replace(/[^0-9]+/g,"").length?null:+t:+t||null,e,n)}function o(t,e){var i=null;return function(){var n=this,r=arguments;clearTimeout(i),i=setTimeout(function(){t.apply(n,r)},e)}}function a(t,e,i){if(e){var n=t,r=e.split(".");r.forEach(function(t,e){e===r.length-1?n[t]=i:(n[t]||(n[t]={}),n=n[t])})}}function s(t){return Object.prototype.toString.call(t)}function l(t){return void 0===t?"undefined":G(t)}function u(t){return"[object Object]"===s(t)}function c(t){return"[object Array]"===s(t)}function h(t){return JSON.parse(JSON.stringify(t))}function d(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function f(t){var e=t.innerRows,i=t.dimAxisName,n=t.dimension,r=t.axisVisible,o=t.dimAxisType,a=t.dims;return n.map(function(t){return{type:"category",name:i,nameLocation:"middle",nameGap:22,data:"value"===o?function(t){for(var e=Math.max.apply(null,t),i=[],n=Math.min.apply(null,t);n<=e;n++)i.push(n);return i}(a):e.map(function(e){return e[t]}),axisLabel:{formatter:function(t){return String(t)}},show:r}})}function p(t){for(var e=t.meaAxisName,i=t.meaAxisType,n=t.axisVisible,r=t.digit,o=t.scale,a=t.min,s=t.max,l={type:"value",axisTick:{show:!1},show:n},u=[],c=0;c<2;c++)!function(t){i[t]?u[t]=j({},l,{axisLabel:{formatter:function(e){return q(e,i[t],r)}}}):u[t]=j({},l),u[t].name=e[t]||"",u[t].scale=o[t]||!1,u[t].min=a[t]||null,u[t].max=s[t]||null}(c);return u}function g(t){var e=t.axisSite,i=t.isHistogram,n=t.meaAxisType,r=t.digit,o=t.labelMap,a=i?e.right||[]:e.top||[];return o&&(a=a.map(function(t){return void 0===o[t]?t:o[t]})),{trigger:"axis",formatter:function(t){var e=[];return e.push(t[0].name+"<br>"),t.forEach(function(t){var i=t.seriesName,o=~a.indexOf(i)?n[1]:n[0];e.push(E(t.color)),e.push(i+": "),e.push(q(t.value,o,r)),e.push("<br>")}),e.join("")}}}function m(t){var e,i=t.innerRows,n=t.metrics,r=t.stack,o=t.axisSite,s=t.isHistogram,l=t.labelMap,u=t.itemStyle,c=t.label,h=t.showLine,d=void 0===h?[]:h,f=t.dimAxisType,p=t.barGap,g=t.opacity,m=t.dims,v={},y=s?o.right||[]:o.top||[],x=s?"yAxisIndex":"xAxisIndex",_=r&&Y(r);return n.forEach(function(t){v[t]=[]}),i.forEach(function(t){n.forEach(function(e){v[e].push(t[e])})}),!!(e=Object.keys(v).map(function(t,e){var i="value"===f?function(t,e){for(var i=Math.max.apply(null,e),n=[],r=Math.min.apply(null,e);r<=i;r++){var o=e.indexOf(r);~o?n.push(t[o]):n.push(null)}return n}(v[t],m):v[t],n=$({name:null!=l[t]?l[t]:t,type:~d.indexOf(t)?"line":"bar",data:i},x,~y.indexOf(t)?"1":"0");r&&_[t]&&(n.stack=_[t]),c&&(n.label=c),u&&(n.itemStyle=u);var o=g||function(t,e,i){if(!e)return t;var n=t;return e.split(".").some(function(t,e){if(void 0===n[t])return n=void 0,!0;n=n[t]}),n}(n,"itemStyle.normal.opacity");return"value"===f&&(n.barGap=p,n.barCategoryGap="1%",null==o&&(o=et)),null!=o&&a(n,"itemStyle.normal.opacity",o),n})).length&&e}function v(t){var e=t.metrics,i=t.labelMap,n=t.legendName;return n||i?{data:i?e.map(function(t){return null==i[t]?t:i[t]}):e,formatter:function(t){return null!=n[t]?n[t]:t}}:{data:e}}function y(t,e){return t.map(function(t){return t[e[0]]})}function x(t,e){Object.keys(e).forEach(function(i){e[i]&&(t[i]=e[i])})}function _(t,e,i){"object"===(void 0===t?"undefined":W(t))?e[i]=t:t&&(e[i]={normal:{show:!0},emphasis:{show:!0}})}function b(e,i){var n=e._once,r=e.registerSign,o=e.beforeRegisterMap,a=e.beforeRegisterMapOnce,s=e.registerSignOnce,l=e.position,u=e.specialAreas;n[r]||(o&&(i=o(i)),a&&!n[s]&&(n[s]=!0,i=a(i)),n[r]=!0,t.registerMap(l,i,u))}function w(t,e){var i=[];return t.forEach(function(t){~i.indexOf(t[e])||i.push(t[e])}),i}function S(t){var e=t.rows,i=t.innerXAxisList,n=t.innerYAxisList,r=t.xDim,o=t.yDim,a=t.metrics,s=t.type,l=t.extraMetrics;return"cartesian"===s?e.map(function(t){return{value:[i.indexOf(t[r]),n.indexOf(t[o]),a?t[a]:1].concat(l.map(function(e){return t[e]||"-"}))}}):e.map(function(t){var e=a?t[a]:1;return{value:[t[r],t[o],e]}})}function T(t,e){return{type:"category",data:t,name:e,nameLocation:"end",splitArea:{show:!0}}}function C(t,e){var i=e.labelMap,n=e.columns,r=e.dataType,o=e.digit,a=[],s=t.color,l=t.seriesName,u=t.data.value;return a.push(E(s)+" "+l+"<br>"),u.forEach(function(t,e){var s=i[n[e]]||n[e],l=isNaN(t)?t:q(t,r[n[e]],o);a.push(s+": "+l+"<br>")}),a.join("")}function M(t,e){jt.forEach(function(e){t.component(e.name,e)})}t=t&&t.hasOwnProperty("default")?t.default:t;var D={categoryAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},valueAxis:{axisLine:{show:!1}},line:{smooth:!0},grid:{containLabel:!0,left:10,right:10}},I=["#19d4ae","#5ab1ef","#fa6e86","#ffb980","#0067a6","#c4b4e4","#d87a80","#9cbbff","#d9d0c7","#87a997","#d49ea2","#5b4947","#7ba3a8"],A=["#313695","#4575b4","#74add1","#abd9e9","#e0f3f8","#ffffbf","#fee090","#fdae61","#f46d43","#d73027","#a50026"],k=["blue","blue","green","yellow","red"],E=function(t){return['<span style="',"background-color:"+t+";","display: inline-block;","width: 10px;","height: 10px;","border-radius: 50%;","margin-right:2px;",'"></span>'].join("")},O=["initOptions","loading","dataEmpty","judgeWidth","widthChangeDelay"],N=["grid","dataZoom","visualMap","toolbox","title","legend","xAxis","yAxis","radar","tooltip","axisPointer","brush","geo","timeline","graphic","series","backgroundColor","textStyle"],L={th:3,mi:6,bi:9,tr:12},P={zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0,abbrLabel:{th:"k",mi:"m",bi:"b",tr:"t"}},R=1e12,z=1e9,F=1e6,B=1e3,H={},V={};n(H,P),r.options=H,r._numberToFormat=i.bind(null,H),r.register=function(t,e){V[t]=e},r.unregister=function(t){V[t]=null},r.setOptions=function(t){n(H,t)},r.reset=function(){n(H,P)},r.register("percentage",{regexp:/%/,format:function(t,e,i,n){var r=~e.indexOf(" %")?" ":"",o=void 0;return n.options.scalePercentBy100&&(t*=100),e=e.replace(/\s?%/,""),~(o=n._numberToFormat(t,e,i)).indexOf(")")?((o=o.split("")).splice(-1,0,r+"%"),o=o.join("")):o=o+r+"%",o}});var W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},j=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},U=function(t){return Array.isArray(t)?t:Array.from(t)},G="function"==typeof Symbol&&"symbol"===W(Symbol.iterator)?function(t){return void 0===t?"undefined":W(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":W(t)},q=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";if(isNaN(t))return n;if(!e)return t;if("[object Function]"===s(e))return e(t,r);i=isNaN(i)?0:++i;var o=".["+new Array(i).join(0)+"]",a=e;switch(e){case"KMB":a=i?"0,0"+o+"a":"0,0a";break;case"normal":a=i?"0,0"+o:"0,0";break;case"percent":a=i?"0,0"+o+"%":"0,0.[00]%"}return r(t,a)},Y=function(t){var e={};return Object.keys(t).forEach(function(i){t[i].forEach(function(t){e[t]=i})}),e},X={},Z=function(t){var e,i=t.position,n=t.positionJsonLink,r=t.beforeRegisterMapOnce,o=t.mapURLProfix,a=n||""+o+i+".json";return X[a]||(X[a]=(e=a,new Promise(function(t,i){var n=new XMLHttpRequest;n.open("GET",e),n.send(null),n.onload=function(){t(JSON.parse(n.responseText))},n.onerror=function(){i(JSON.parse(n.responseText))}})).then(function(t){return r&&(t=r(t)),t})),X[a]},K=null,J=null,Q=function(t,e){return K||(K=new Promise(function(i,n){var r="bmap"+Date.now();window[r]=i;var o=document.createElement("script");o.src=["https://api.map.baidu.com/api?v="+(e||"2.0"),"ak="+t,"callback="+r].join("&"),document.body.appendChild(o)})),K},tt=function(t,e){return J||(J=new Promise(function(i,n){var r="amap"+Date.now();window[r]=i;var o=document.createElement("script");o.src=["https://webapi.amap.com/maps?v="+(e||"1.4.3"),"key="+t,"callback="+r].join("&"),document.body.appendChild(o)})),J},et=.5,it=function(t,e,i,n){var r=h(e),o=i.axisSite,a=void 0===o?{}:o,s=i.dimension,l=void 0===s?[t[0]]:s,u=i.stack,c=void 0===u?{}:u,d=i.axisVisible,x=void 0===d||d,_=i.digit,b=void 0===_?2:_,w=i.dataOrder,S=void 0!==w&&w,T=i.scale,C=void 0===T?[!1,!1]:T,M=i.min,D=void 0===M?[null,null]:M,I=i.max,A=void 0===I?[null,null]:I,k=i.legendName,E=void 0===k?{}:k,O=i.labelMap,N=void 0===O?{}:O,L=i.label,P=i.itemStyle,R=i.showLine,z=i.barGap,F=void 0===z?"-100%":z,B=i.opacity,H=n.tooltipVisible,V=n.legendVisible,W=t.slice();a.top&&a.bottom?W=a.top.concat(a.bottom):a.bottom&&!a.right?W=a.bottom:i.metrics?W=i.metrics:W.splice(t.indexOf(l[0]),1);var $=i.xAxisType||["normal","normal"],j=i.yAxisType||"category",U=i.xAxisName||[],G=i.yAxisName||"";if(S){var q=S.label,Y=S.order;q&&Y?r.sort(function(t,e){return"desc"===Y?t[q]-e[q]:e[q]-t[q]}):console.warn("Need to provide name and order parameters")}var X=y(r,l),Z=V&&v({metrics:W,labelMap:N,legendName:E}),K=f({innerRows:r,dimAxisName:G,dimension:l,axisVisible:x,dimAxisType:j,dims:X}),J=p({meaAxisName:U,meaAxisType:$,axisVisible:x,digit:b,scale:C,min:D,max:A});return{legend:Z,yAxis:K,series:m({innerRows:r,metrics:W,stack:c,axisSite:a,isHistogram:!1,labelMap:N,itemStyle:P,label:L,showLine:R,dimAxisType:j,dimension:l,barGap:F,opacity:B,dims:X}),xAxis:J,tooltip:H&&g({axisSite:a,isHistogram:!1,meaAxisType:$,digit:b,labelMap:N})}},nt=function(t,e,i,n){var r=h(e),o=i.axisSite,a=void 0===o?{}:o,s=i.dimension,l=void 0===s?[t[0]]:s,u=i.stack,c=void 0===u?{}:u,d=i.axisVisible,x=void 0===d||d,_=i.digit,b=void 0===_?2:_,w=i.dataOrder,S=void 0!==w&&w,T=i.scale,C=void 0===T?[!1,!1]:T,M=i.min,D=void 0===M?[null,null]:M,I=i.max,A=void 0===I?[null,null]:I,k=i.labelMap,E=void 0===k?{}:k,O=i.legendName,N=void 0===O?{}:O,L=i.label,P=i.itemStyle,R=i.showLine,z=i.barGap,F=void 0===z?"-100%":z,B=i.opacity;if(S){var H=S.label,V=S.order;H&&V?r.sort(function(t,e){return"desc"===V?t[H]-e[H]:e[H]-t[H]}):console.warn("Need to provide name and order parameters")}var W=n.tooltipVisible,$=n.legendVisible,j=t.slice();a.left&&a.right?j=a.left.concat(a.right):a.left&&!a.right?j=a.left:i.metrics?j=i.metrics:j.splice(t.indexOf(l[0]),1);var U=i.yAxisType||["normal","normal"],G=i.xAxisType||"category",q=i.yAxisName||[],Y=i.xAxisName||"",X=y(r,l),Z=$&&v({metrics:j,labelMap:E,legendName:N}),K=f({innerRows:r,dimAxisName:Y,dimension:l,axisVisible:x,dimAxisType:G,dims:X});return{legend:Z,yAxis:p({meaAxisName:q,meaAxisType:U,axisVisible:x,digit:b,scale:C,min:D,max:A}),series:m({innerRows:r,metrics:j,stack:c,axisSite:a,isHistogram:!0,labelMap:E,itemStyle:P,label:L,showLine:R,dimAxisType:G,dimension:l,barGap:F,opacity:B,dims:X}),xAxis:K,tooltip:W&&g({axisSite:a,isHistogram:!0,meaAxisType:U,digit:b,labelMap:E})}},rt={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-charts-component-loading"},[e("div",{staticClass:"loader"},[e("div",{staticClass:"loading-spinner"},[e("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[e("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])])])])},staticRenderFns:[]},ot={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"v-charts-data-empty"},[this._v(" 暂无数据 ")])},staticRenderFns:[]},at={render:function(t){return t("div",{class:[(e=this.$options.name||this.$options._componentTag,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())],style:this.canvasStyle},[t("div",{style:this.canvasStyle,class:{"v-charts-mask-status":this.dataEmpty||this.loading},ref:"canvas"}),t(ot,{style:{display:this.dataEmpty?"":"none"}}),t(rt,{style:{display:this.loading?"":"none"}}),this.$slots.default]);var e},props:{data:{type:[Object,Array],default:function(){return{}}},settings:{type:Object,default:function(){return{}}},width:{type:String,default:"auto"},height:{type:String,default:"400px"},beforeConfig:{type:Function},afterConfig:{type:Function},afterSetOption:{type:Function},afterSetOptionOnce:{type:Function},events:{type:Object},grid:{type:[Object,Array]},colors:{type:Array},tooltipVisible:{type:Boolean,default:!0},legendVisible:{type:Boolean,default:!0},legendPosition:{type:String},markLine:{type:Object},markArea:{type:Object},markPoint:{type:Object},visualMap:{type:[Object,Array]},dataZoom:{type:[Object,Array]},toolbox:{type:[Object,Array]},initOptions:{type:Object,default:function(){return{}}},title:[Object,Array],legend:[Object,Array],xAxis:[Object,Array],yAxis:[Object,Array],radar:Object,tooltip:Object,axisPointer:[Object,Array],brush:[Object,Array],geo:[Object,Array],timeline:[Object,Array],graphic:[Object,Array],series:[Object,Array],backgroundColor:[Object,String],textStyle:[Object,Array],animation:Object,theme:Object,themeName:String,loading:Boolean,dataEmpty:Boolean,extend:Object,judgeWidth:{type:Boolean,default:!1},widthChangeDelay:{type:Number,default:300},tooltipFormatter:{type:Function},resizeable:{type:Boolean,default:!0},resizeDelay:{type:Number,default:200},changeDelay:{type:Number,default:0},setOptionOpts:{type:[Boolean,Object],default:!0},cancelResizeCheck:Boolean,notSetUnchange:Array},watch:{data:{deep:!0,handler:function(t){t&&this.changeHandler()}},settings:{deep:!0,handler:function(t){t.type&&this.chartLib&&(this.chartHandler=this.chartLib[t.type]),this.changeHandler()}},width:"nextTickResize",height:"nextTickResize",events:{deep:!0,handler:"createEventProxy"},theme:{deep:!0,handler:"themeChange"},themeName:"themeChange",resizeable:"resizeableHandler"},computed:{canvasStyle:function(){return{width:this.width,height:this.height,position:"relative"}},chartColor:function(){return this.colors||this.theme&&this.theme.color||I}},methods:{dataHandler:function(){if(this.chartHandler){var t=this.data,e=t,i=e.columns,n=void 0===i?[]:i,r=e.rows,o=void 0===r?[]:r,a={tooltipVisible:this.tooltipVisible,legendVisible:this.legendVisible,echarts:this.echarts,color:this.chartColor,tooltipFormatter:this.tooltipFormatter,_once:this._once};this.beforeConfig&&(t=this.beforeConfig(t));var s=this.chartHandler(n,o,this.settings,a);s&&("function"==typeof s.then?s.then(this.optionsHandler):this.optionsHandler(s))}},nextTickResize:function(){this.$nextTick(this.resize)},resize:function(){this.cancelResizeCheck?this.echartsResize():this.$el&&this.$el.clientWidth&&this.$el.clientHeight&&this.echartsResize()},echartsResize:function(){this.echarts&&this.echarts.resize()},optionsHandler:function(e){var i=this;if(this.legendPosition&&e.legend&&(e.legend[this.legendPosition]=10,~["left","right"].indexOf(this.legendPosition)&&(e.legend.top="middle",e.legend.orient="vertical")),e.color=this.chartColor,N.forEach(function(t){i[t]&&(e[t]=i[t])}),this.animation&&function(t,e){Object.keys(e).forEach(function(i){t[i]=e[i]})}(e,this.animation),this.markArea||this.markLine||this.markPoint){var n={markArea:this.markArea,markLine:this.markLine,markPoint:this.markPoint},r=e.series;c(r)?r.forEach(function(t){x(t,n)}):u(r)&&x(r,n)}this.extend&&function(t,e){Object.keys(e).forEach(function(i){var n=e[i];~i.indexOf(".")?a(t,i,n):"function"==typeof n?t[i]=n(t[i]):c(t[i])&&u(t[i][0])?t[i].forEach(function(e,r){t[i][r]=j({},e,n)}):u(t[i])?t[i]=j({},t[i],n):t[i]=n})}(e,this.extend),this.afterConfig&&(e=this.afterConfig(e));var o=this.setOptionOpts;!this.settings.bmap&&!this.settings.amap||u(o)||(o=!1),this.notSetUnchange&&this.notSetUnchange.length&&(this.notSetUnchange.forEach(function(t){var n=e[t];n&&(function t(e,i){if(e===i)return!0;if(null===e||null===i||"object"!==l(e)||"object"!==l(i))return e===i;for(var n in e)if(d(e,n)){var r=e[n],o=i[n],a=l(r);if("undefined"===l(o))return!1;if("object"===a){if(!t(r,o))return!1}else if(r!==o)return!1}for(var s in i)if(d(i,s)&&"undefined"===l(e)[s])return!1;return!0}(n,i._store[t])?e[t]=void 0:i._store[t]=h(n))}),u(o)?o.notMerge=!1:o=!1),this._isDestroyed||(this.echarts.setOption(e,o),this.$emit("ready",this.echarts,e,t),this._once["ready-once"]||(this._once["ready-once"]=!0,this.$emit("ready-once",this.echarts,e,t)),this.judgeWidth&&this.judgeWidthHandler(e),this.afterSetOption&&this.afterSetOption(this.echarts,e,t),this.afterSetOptionOnce&&!this._once.afterSetOptionOnce&&(this._once.afterSetOptionOnce=!0,this.afterSetOptionOnce(this.echarts,e,t)))},judgeWidthHandler:function(t){var e=this,i=this.widthChangeDelay,n=this.resize;this.$el.clientWidth||this.$el.clientHeight?n():this.$nextTick(function(t){e.$el.clientWidth||e.$el.clientHeight?n():setTimeout(function(t){n(),e.$el.clientWidth&&e.$el.clientHeight||console.warn(" Can't get dom width or height ")},i)})},resizeableHandler:function(t){t&&!this._once.onresize&&this.addResizeListener(),!t&&this._once.onresize&&this.removeResizeListener()},init:function(){if(!this.echarts){var e=this.themeName||this.theme||D;this.echarts=t.init(this.$refs.canvas,e,this.initOptions),this.data&&this.changeHandler(),this.createEventProxy(),this.resizeable&&this.addResizeListener()}},addResizeListener:function(){window.addEventListener("resize",this.resizeHandler),this._once.onresize=!0},removeResizeListener:function(){window.removeEventListener("resize",this.resizeHandler),this._once.onresize=!1},addWatchToProps:function(){var t=this,e=this._watchers.map(function(t){return t.expression});Object.keys(this.$props).forEach(function(i){if(!~e.indexOf(i)&&!~O.indexOf(i)){var n={};~["[object Object]","[object Array]"].indexOf(s(t.$props[i]))&&(n.deep=!0),t.$watch(i,function(){t.changeHandler()},n)}})},createEventProxy:function(){var t=this,e=this,i=Object.keys(this.events||{});i.length&&i.forEach(function(i){-1===t.registeredEvents.indexOf(i)&&(t.registeredEvents.push(i),t.echarts.on(i,function(t){return function(){if(t in e.events){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];e.events[t].apply(null,n)}}}(i)))})},themeChange:function(t){this.clean(),this.echarts=null,this.init()},clean:function(){this.resizeable&&this.removeResizeListener(),this.echarts.dispose()}},created:function(){this.echarts=null,this.registeredEvents=[],this._once={},this._store={},this.resizeHandler=o(this.resize,this.resizeDelay),this.changeHandler=o(this.dataHandler,this.changeDelay),this.addWatchToProps()},mounted:function(){this.init()},beforeDestroy:function(){this.clean()},_numerify:r},st=j({},at,{name:"VeBar",data:function(){return this.chartHandler=it,{}}}),lt=j({},at,{name:"VeHistogram",data:function(){return this.chartHandler=nt,{}}}),ut=function(t,e,i,n){e=c(e)?e:[],t=c(t)?t:[];var r=i.axisSite,o=void 0===r?{}:r,a=i.yAxisType,s=void 0===a?["normal","normal"]:a,l=i.xAxisType,u=void 0===l?"category":l,h=i.yAxisName,d=void 0===h?[]:h,f=i.dimension,p=void 0===f?[t[0]]:f,g=i.xAxisName,m=void 0===g?[]:g,v=i.axisVisible,y=void 0===v||v,x=i.area,_=i.stack,b=i.scale,w=void 0===b?[!1,!1]:b,S=i.min,T=void 0===S?[null,null]:S,C=i.max,M=void 0===C?[null,null]:C,D=i.nullAddZero,I=void 0!==D&&D,A=i.digit,k=void 0===A?2:A,E=i.legendName,O=void 0===E?{}:E,N=i.labelMap,L=void 0===N?{}:N,P=i.label,R=i.itemStyle,z=i.lineStyle,F=i.areaStyle,B=n.tooltipVisible,H=n.legendVisible,V=n.tooltipFormatter,W=t.slice();o.left&&o.right?W=o.left.concat(o.right):o.left&&!o.right?W=o.left:i.metrics?W=i.metrics:W.splice(t.indexOf(p[0]),1);var $=H&&function(t){var e=t.metrics,i=t.legendName,n=t.labelMap;return i||n?{data:n?e.map(function(t){return null==n[t]?t:n[t]}):e,formatter:function(t){return null!=i[t]?i[t]:t}}:{data:e}}({metrics:W,legendName:O,labelMap:L}),U=B&&function(t){var e=t.axisSite,i=t.yAxisType,n=t.digit,r=t.labelMap,o=t.tooltipFormatter,a=e.right||[],s=r?a.map(function(t){return void 0===r[t]?t:r[t]}):a;return{trigger:"axis",formatter:function(t){if(o)return o.apply(null,arguments);var e=[],r=t[0],a=r.name,l=r.axisValueLabel,u=a||l;return e.push(u+"<br>"),t.forEach(function(t){var r,o=t.seriesName,a=t.data,l=t.marker,u=~s.indexOf(o)?i[1]:i[0],h=c(a)?a[1]:a;r=q(h,u,n),e.push(l),e.push(o+": "+r),e.push("<br>")}),e.join("")}}}({axisSite:o,yAxisType:s,digit:k,labelMap:L,xAxisType:u,tooltipFormatter:V}),G=function(t){var e=t.rows,i=t.xAxisName,n=t.axisVisible,r=t.xAxisType;return t.dimension.map(function(t,o){return{type:r,nameLocation:"middle",nameGap:22,name:i[o]||"",axisTick:{show:!0,lineStyle:{color:"#eee"}},data:e.map(function(e){return e[t]}),show:n}})}({dimension:p,rows:e,xAxisName:m,axisVisible:y,xAxisType:u}),X=function(t){for(var e=t.yAxisName,i=t.yAxisType,n=t.axisVisible,r=t.scale,o=t.min,a=t.max,s=t.digit,l={type:"value",axisTick:{show:!1},show:n},u=[],c=0;c<2;c++)!function(t){i[t]?u[t]=j({},l,{axisLabel:{formatter:function(e){return q(e,i[t],s)}}}):u[t]=j({},l),u[t].name=e[t]||"",u[t].scale=r[t]||!1,u[t].min=o[t]||null,u[t].max=a[t]||null}(c);return u}({yAxisName:d,yAxisType:s,axisVisible:y,scale:w,min:T,max:M,digit:k});return{legend:$,xAxis:G,series:function(t){var e=t.rows,i=t.axisSite,n=t.metrics,r=t.area,o=t.stack,a=t.nullAddZero,s=t.labelMap,l=t.label,u=t.itemStyle,c=t.lineStyle,h=t.areaStyle,d=t.dimension,f=[],p={},g=o&&Y(o);return n.forEach(function(t){p[t]=[]}),e.forEach(function(t){n.forEach(function(e){var i=null;null!=t[e]?i=t[e]:a&&(i=0),p[e].push([t[d[0]],i])})}),n.forEach(function(t){var e={name:null!=s[t]?s[t]:t,type:"line",data:p[t]};r&&(e.areaStyle={normal:{}}),i.right&&(e.yAxisIndex=~i.right.indexOf(t)?1:0),o&&g[t]&&(e.stack=g[t]),l&&(e.label=l),u&&(e.itemStyle=u),c&&(e.lineStyle=c),h&&(e.areaStyle=h),f.push(e)}),f}({rows:e,axisSite:o,metrics:W,area:x,stack:_,nullAddZero:I,labelMap:L,label:P,itemStyle:R,lineStyle:z,areaStyle:F,xAxisType:u,dimension:p}),yAxis:X,tooltip:U}},ct=j({},at,{name:"VeLine",data:function(){return this.chartHandler=ut,{}}}),ht=[80,100],dt=[20,100],ft=function(t,e,i,n,r){var o=h(e),a=i.dataType,s=void 0===a?"normal":a,l=i.percentShow,u=i.dimension,c=void 0===u?t[0]:u,d=i.metrics,f=void 0===d?t[1]:d,p=i.roseType,g=void 0!==p&&p,m=i.radius,v=void 0===m?r?g?dt:ht:100:m,y=i.offsetY,x=void 0===y?200:y,_=i.legendLimit,b=void 0===_?30:_,w=i.selectedMode,S=void 0!==w&&w,T=i.hoverAnimation,C=void 0===T||T,M=i.digit,D=void 0===M?2:M,I=i.legendName,A=void 0===I?{}:I,k=i.label,O=void 0!==k&&k,N=i.level,L=void 0!==N&&N,P=i.limitShowNum,R=void 0===P?0:P,z=i.labelLine,F=i.itemStyle,B=n.tooltipVisible,H=n.legendVisible;return R&&o.sort(function(t,e){return e[f]-t[f]}),{series:function(t){var e=t.innerRows,i=t.dataType,n=t.percentShow,r=t.dimension,o=t.metrics,a=t.radius,s=t.offsetY,l=t.selectedMode,u=t.hoverAnimation,c=t.digit,h=t.roseType,d=t.label,f=t.level,p=t.limitShowNum,g=t.isRing,m=t.labelLine,v=t.itemStyle,y=[],x={},_=[];f?(f.forEach(function(t,e){t.forEach(function(t){x[t]=e})}),e.forEach(function(t){var e=x[t[r]];void 0!==e&&(_[e]?_[e].push(t):_[e]=[t])})):_.push(e);var b={type:"pie",selectedMode:l,hoverAnimation:u,roseType:h,center:["50%",s]},w=_.length;if(_.forEach(function(t,e){var s=j({data:[]},b),l=a/w;if(e){var u=l+a/(2*w)*(2*e-1),h=u+a/(2*w);s.radius=[u,h]}else s.radius=g?a:l;w>1&&0===e&&(s.label={normal:{position:"inner"}}),d&&(s.label=d),m&&(s.labelLine=m),v&&(s.itemStyle=v),n&&(s.label={normal:{show:!0,position:w>1&&0===e?"inner":"outside",formatter:function(t){var e=[];return e.push(t.name+":"),e.push(q(t.value,i,c)),e.push("("+t.percent+"%)"),e.join(" ")}}}),s.data=t.map(function(t){return{name:t[r],value:t[o]}}),y.push(s)}),p&&p<y[0].data.length){var S=y[0].data,T=0;S.slice(p,S.length).forEach(function(t){T+=t.value}),y[0].data=S.slice(0,p),y[0].data.push({name:"其他",value:T})}return y}({innerRows:o,dataType:s,percentShow:l,dimension:c,metrics:f,radius:v,offsetY:x,selectedMode:S,hoverAnimation:C,digit:D,roseType:g,label:O,level:L,legendName:A,limitShowNum:R,isRing:r,labelLine:z,itemStyle:F}),legend:H&&function(t){var e=t.innerRows,i=t.dimension,n=t.legendLimit,r=t.legendName,o=t.level,a=t.limitShowNum,s=[],l=[];if(o)o.forEach(function(t){t.forEach(function(t){l.push(t)})}),s=l;else if(a&&a<e.length){for(var u=0;u<a;u++)s.push(e[u][i]);s.push("其他")}else s=e.map(function(t){return t[i]});return!!s.length&&{data:s,show:s.length<n,formatter:function(t){return null!=r[t]?r[t]:t}}}({innerRows:o,dimension:c,legendLimit:b,legendName:A,level:L,limitShowNum:R}),tooltip:B&&function(t){var e=t.dataType,i=t.innerRows,n=t.limitShowNum,r=t.digit,o=t.metrics,a=t.dimension,s=0,l=i.map(function(t){return s+=t[o],{name:t[a],value:t[o]}}).slice(n,i.length);return{formatter:function(t){var i=[];return i.push(E(t.color)),n&&"其他"===t.name?(i.push("其他:"),l.forEach(function(t){var n=t.name,o=t.value,a=q(o/s,"percent");i.push("<br>"+n+":"),i.push(q(o,e,r)),i.push("("+a+")")})):(i.push(t.name+":"),i.push(q(t.value,e,r)),i.push("("+t.percent+"%)")),i.join(" ")}}}({dataType:s,innerRows:o,limitShowNum:R,digit:D,metrics:f,dimension:c})}},pt=function(t,e,i,n){return ft(t,e,i,n,!0)},gt=j({},at,{name:"VePie",data:function(){return this.chartHandler=ft,{}}}),mt=j({},at,{name:"VeRing",data:function(){return this.chartHandler=pt,{}}}),vt=function(t,e,i,n){var r=i.dataType,o=void 0===r?"normal":r,a=i.dimension,s=void 0===a?t[0]:a,l=i.totalName,u=void 0===l?"总计":l,c=i.totalNum,h=i.remainName,d=void 0===h?"其他":h,f=i.xAxisName,p=void 0===f?s:f,g=i.labelMap,m=void 0===g?{}:g,v=i.axisVisible,y=void 0===v||v,x=i.digit,_=void 0===x?2:x,b=n.tooltipVisible,w=t.slice();w.splice(w.indexOf(s),1);var S=w[0],T=S,C=b&&function(t,e){return{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(i){var n=i[1];return[n.name+"<br/>"+n.seriesName+" :",""+q(n.value,t,e)].join("")}}}(o,_),M=parseFloat(e.reduce(function(t,e){return t+Number(e[S])},0).toFixed(_)),D=function(t,e){return e?e>t?"have-remain":"none-remain":"not-total"}(M,c);return{tooltip:C,xAxis:function(t){var e=t.dimension,i=t.rows,n=t.remainStatus,r=t.totalName,o=t.remainName,a=t.labelMap,s=t.xAxisName,l=t.axisVisible,u=[r].concat(i.map(function(t){return t[e]}));return"have-remain"===n&&(u=u.concat([o])),{type:"category",name:a&&a[s]||s,splitLine:{show:!1},data:u,show:l}}({dimension:s,rows:e,remainStatus:D,totalName:u,remainName:d,xAxisName:p,labelMap:m,axisVisible:y}),yAxis:function(t){ var e=t.dataType,i=t.yAxisName,n=t.axisVisible,r=t.digit,o=t.labelMap;return{type:"value",name:null!=o[i]?o[i]:i,axisTick:{show:!1},axisLabel:{formatter:function(t){return q(t,e,r)}},show:n}}({dataType:o,yAxisName:T,axisVisible:y,digit:_,labelMap:m}),series:function(t){var e=t.dataType,i=t.rows,n=t.metrics,r=t.totalNum,o=t.remainStatus,a=t.dataSum,s=t.digit,l={type:"bar",stack:"总量"},u=a,c=r,h=void 0,d=void 0,f=i.map(function(t){return t[n]});"have-remain"===o?(h=[0].concat(i.map(function(t){return c-=t[n]})).concat([0]),d=[r].concat(f).concat([r-a])):(h=[0].concat(i.map(function(t){return u-=t[n]})),d=[a].concat(f));var p=[];return p.push(j({name:"辅助",itemStyle:{normal:{opacity:0},emphasis:{opacity:0}},data:h},l)),p.push(j({name:"数值",label:{normal:{show:!0,position:"top",formatter:function(t){return q(t.value,e,s)}}},data:d},l)),p}({dataType:o,rows:e,dimension:s,metrics:S,totalNum:c,remainStatus:D,dataSum:M,digit:_})}},yt=j({},at,{name:"VeWaterfall",data:function(){return this.chartHandler=vt,{}}}),xt=function(t,e,i,n){var r=t.slice(),o=e.slice(),a=i.dataType,s=void 0===a?"normal":a,l=i.dimension,u=void 0===l?r[0]:l,c=i.sequence,h=void 0===c?o.map(function(t){return t[u]}):c,d=i.digit,f=void 0===d?2:d,p=i.ascending,g=i.label,m=i.labelLine,v=i.legendName,y=void 0===v?{}:v,x=i.itemStyle,_=i.filterZero,b=i.useDefaultOrder,w=n.tooltipVisible,S=n.legendVisible,T=void 0;if(i.metrics)T=i.metrics;else{var C=r.slice();C.splice(r.indexOf(u),1),T=C[0]}return{tooltip:w&&function(t,e){return{trigger:"item",formatter:function(i){var n=[];return n.push(E(i.color)),n.push(i.name+": "+q(i.data.realValue,t,e)),n.join("")}}}(s,f),legend:S&&function(t){var e=t.data,i=t.legendName;return{data:e,formatter:function(t){return null!=i[t]?i[t]:t}}}({data:h,legendName:y}),series:function(t){var e=t.dimension,i=t.metrics,n=t.rows,r=t.sequence,o=t.ascending,a=t.label,s=t.labelLine,l=t.itemStyle,u=t.filterZero,c=t.useDefaultOrder,h={type:"funnel"},d=n.sort(function(t,i){return r.indexOf(t[e])-r.indexOf(i[e])});u&&(d=d.filter(function(t){return t[i]}));var f=!1;d.some(function(t,e){if(e&&t[i]>d[e-1][i])return f=!0,!0});var p=100/d.length;return h.data=f&&!c?d.slice().reverse().map(function(t,n){return{name:t[e],value:(n+1)*p,realValue:t[i]}}):d.map(function(t){return{name:t[e],value:t[i],realValue:t[i]}}),o&&(h.sort="ascending"),a&&(h.label=a),s&&(h.labelLine=s),l&&(h.itemStyle=l),h}({dimension:u,metrics:T,rows:o,sequence:h,ascending:p,label:g,labelLine:m,itemStyle:x,filterZero:_,useDefaultOrder:b})}},_t=j({},at,{name:"VeFunnel",data:function(){return this.chartHandler=xt,{}}}),bt=function(t,e,i,n){var r=i.dataType,o=void 0===r?{}:r,a=i.legendName,s=void 0===a?{}:a,l=i.labelMap,u=void 0===l?{}:l,c=i.dimension,h=void 0===c?t[0]:c,d=i.digit,f=void 0===d?2:d,p=i.label,g=i.itemStyle,m=i.lineStyle,v=i.areaStyle,y=n.tooltipVisible,x=n.legendVisible,_=t.slice();i.metrics?_=i.metrics:_.splice(t.indexOf(h),1);var b=x&&function(t,e,i){return{data:t.map(function(t){return t[e]}),formatter:function(t){return null!=i[t]?i[t]:t}}}(e,h,s),w=function(t,e,i){var n={indicator:[],shape:"circle",splitNumber:5},r={};return t.forEach(function(t){e.forEach(function(e){var n=null!=i[e]?i[e]:e;r[n]?r[n].push(t[e]):r[n]=[t[e]]})}),n.indicator=Object.keys(r).map(function(t){return{name:t,max:Math.max.apply(null,r[t])}}),n}(e,_,u);return{legend:b,tooltip:y&&function(t,e,i){var n=[],r=[];return e.indicator.map(function(e,i){n[i]=t[e.name],r[i]=e.name}),{formatter:function(t){var e=[];return e.push(E(t.color)),e.push(t.name+"<br />"),t.data.value.forEach(function(t,o){e.push(r[o]+": "),e.push(q(t,n[o],i)+"<br />")}),e.join("")}}}(o,w,f),radar:w,series:function(t){var e=t.rows,i=t.dimension,n=t.metrics,r=t.radar,o=t.label,a=t.itemStyle,s=t.lineStyle,l=t.labelMap,u=t.areaStyle,c={};r.indicator.forEach(function(t,e){var i=t.name;c[i]=e});var h=e.map(function(t){var e={value:[],name:t[i]};return Object.keys(t).forEach(function(i){if(~n.indexOf(i)){var r=null!=l[i]?c[l[i]]:c[i];e.value[r]=t[i]}}),e}),d={name:i,type:"radar",data:h};return o&&(d.label=o),a&&(d.itemStyle=a),s&&(d.lineStyle=s),u&&(d.areaStyle=u),[d]}({rows:e,dimension:h,metrics:_,radar:w,label:p,itemStyle:g,lineStyle:m,labelMap:u,areaStyle:v})}},wt=j({},at,{name:"VeRadar",data:function(){return this.chartHandler=bt,{}}}),St=j({},at,{name:"VeChart",data:function(){return this.chartLib={bar:it,histogram:nt,line:ut,pie:ft,ring:pt,funnel:xt,radar:bt,waterfall:vt},this.chartHandler=this.chartLib[this.settings.type],{}}}),Tt=function(t,e,i,n){var r=i.position,o=void 0===r?"china":r,a=i.selectData,s=void 0!==a&&a,l=i.selectedMode,u=i.label,c=void 0===u||u,h=i.dataType,d=void 0===h?{}:h,f=i.digit,p=void 0===f?2:f,g=i.dimension,m=void 0===g?t[0]:g,v=i.roam,y=i.center,x=i.aspectScale,w=i.boundingCoords,S=i.zoom,T=i.scaleLimit,C=i.legendName,M=void 0===C?{}:C,D=i.labelMap,I=void 0===D?{}:D,A=i.mapGrid,k=i.itemStyle,O=i.positionJsonLink,N=i.beforeRegisterMap,L=i.beforeRegisterMapOnce,P=i.mapURLProfix,R=void 0===P?"https://unpkg.com/echarts@3.6.2/map/json/":P,z=i.specialAreas,F=void 0===z?{}:z,B=i.mapOrigin,H=t.slice();i.metrics?H=i.metrics:H.splice(t.indexOf(m),1);var V=n.tooltipVisible,W=n.legendVisible,$=n.color,U=n._once,G={};e.forEach(function(t){G[t[m]]=t});var Y=V&&function(t,e,i,n,r,o){return{formatter:function(a){var s=[];return a.name?(s.push(a.name+"<br>"),n.forEach(function(n,l){var u=null!=o[n]?o[n]:n;s.push(E(r[l])+" "+u+" : "),i[a.name]?s.push(q(i[a.name][n],t[n],e)):s.push("-"),s.push("<br>")}),s.join(" ")):""}}}(d,p,G,H,$,I),X=W&&function(t){var e=t.metrics,i=t.legendName,n=t.labelMap;return i||n?{data:n?e.map(function(t){return null==n[t]?t:n[t]}):e,formatter:function(t){return null!=i[t]?i[t]:t}}:{data:e}}({metrics:H,legendName:M,labelMap:I}),K=function(t){var e=t.position,i=t.selectData,n=t.dimension,r=t.metrics,o=t.rows,a=t.label,s=t.itemStyle,l=t.selectedMode,u=t.roam,c=t.center,h=t.aspectScale,d=t.boundingCoords,f=t.zoom,p=t.labelMap,g=t.scaleLimit,m=t.mapGrid,v=[],y={type:"map",mapType:e};return r.forEach(function(t){var e=j({name:null!=p[t]?p[t]:t,data:[],selectedMode:l,roam:u,center:c,aspectScale:h,boundingCoords:d,zoom:f,scaleLimit:g},y);m&&Object.keys(m).forEach(function(t){e[t]=m[t]}),_(s,e,"itemStyle"),_(a,e,"label"),o.forEach(function(r){e.data.push({name:r[n],value:r[t],selected:i})}),v.push(e)}),v}({position:o,selectData:s,label:c,itemStyle:k,dimension:m,metrics:H,rows:e,selectedMode:l,roam:v,center:y,aspectScale:x,boundingCoords:w,zoom:S,labelMap:I,scaleLimit:T,mapGrid:A}),J={_once:U,beforeRegisterMap:N,beforeRegisterMapOnce:L,registerSign:"MAP_REGISTER_"+o,registerSignOnce:"ONCE_MAP_REGISTER_"+o,position:o,specialAreas:F};return B?(b(J,B),{series:K,tooltip:Y,legend:X}):Z({position:o,positionJsonLink:O,beforeRegisterMapOnce:L,mapURLProfix:R}).then(function(t){return b(J,t),{series:K,tooltip:Y,legend:X}})},Ct=j({},at,{name:"VeMap",data:function(){return this.chartHandler=Tt,{}}}),Mt=function(t,e,i,n){var r=i.key,o=i.v,a=i.bmap,s=i.useOuterMap,l=n._once;return r||s||console.warn("settings.key must be a string."),l.bmap_register?{}:(l.bmap_register=!0,s?{bmap:a}:Q(r,o).then(function(t){return{bmap:a}}))},Dt=j({},at,{name:"VeBmap",data:function(){return this.chartHandler=Mt,{}}}),It=function(t,e,i,n){var r=i.key,o=i.v,a=i.amap,s=i.useOuterMap,l=n._once;return r||s||console.warn("settings.key must be a string."),l.amap_register?{}:(l.amap_register=!0,s?{amap:a}:tt(r,o).then(function(t){return{amap:a}}))},At=j({},at,{name:"VeAmap",data:function(){return this.chartHandler=It,{}}}),kt=function(t,e,i,n){var r=i.links,o=i.dimension,a=void 0===o?t[0]:o,s=i.metrics,l=void 0===s?t[1]:s,u=i.dataType,c=void 0===u?["normal","normal"]:u,h=i.digit,d=void 0===h?2:h,f=i.valueFull,p=void 0!==f&&f,g=i.useDataValue,m=void 0!==g&&g,v=i.label,y=i.itemStyle,x=i.lineStyle;if(r)return{tooltip:function(t){var e=t.itemDataType,i=t.linksDataType,n=t.digit;return{trigger:"item",formatter:function(t){var r=[],o=t.name,a=t.data,s=t.value,l=t.color;return r.push(E(l)),r.push(o+" : "),a&&a.source?r.push(q(s,i,n)+"<br />"):r.push(q(s,e,n)+"<br />"),r.join("")}}}({itemDataType:c[0],linksDataType:c[1],digit:d}),series:function(t){var e=t.rows,i=t.dimension,n=t.metrics,r=t.links,o=t.valueFull,a=t.useDataValue,s=t.label,l=t.itemStyle,u=t.lineStyle,c={},h={type:"sankey",data:e.map(function(t){return c[t[i]]=t[n],{name:t[i],value:t[n]}}),links:a?r.map(function(t){return j({},t,{value:c[t.target]})}):o?r:r.map(function(t){return null==t.value?j({},t,{value:c[t.target]}):t})};return s&&(h.label=s),l&&(h.itemStyle=l),u&&(h.lineStyle=u),[h]}({rows:e,dimension:a,metrics:l,links:r,valueFull:p,useDataValue:m,label:v,itemStyle:y,lineStyle:x})};console.warn("links is needed in settings!")},Et=j({},at,{name:"VeSankey",data:function(){return this.chartHandler=kt,{}}}),Ot=function(e,i,n,r){var o=n.type,a=void 0===o?"cartesian":o,s=n.xAxisList,l=n.yAxisList,u=n.dimension,c=void 0===u?[e[0],e[1]]:u,h=n.metrics,d=void 0===h?e[2]:h,f=n.dataType,p=void 0===f?"normal":f,g=n.min,m=n.max,v=n.digit,y=n.bmap,x=n.amap,_=n.geo,b=n.key,C=n.v,M=void 0===C?"2.0":C,D=n.position,I=n.positionJsonLink,O=n.beforeRegisterMap,N=n.pointSize,L=void 0===N?10:N,P=n.blurSize,R=void 0===P?5:P,z=n.heatColor,F=n.yAxisName,B=n.xAxisName,H=n.beforeRegisterMapOnce,V=n.mapURLProfix,W=void 0===V?"https://unpkg.com/echarts@3.6.2/map/json/":V,$=n.specialAreas,G=void 0===$?{}:$,Y=r.tooltipVisible,X=s,K=l,J=[],et=[],it=c.concat([d]);e.forEach(function(t){~it.indexOf(t)||et.push(t)}),"cartesian"===a?(X&&X.length||(X=w(i,c[0])),K&&K.length||(K=w(i,c[1])),J=S({rows:i,innerXAxisList:X,innerYAxisList:K,xDim:c[0],yDim:c[1],metrics:d,type:a,extraMetrics:et})):J=S({rows:i,xDim:c[0],yDim:c[1],metrics:d,type:a,extraMetrics:et});var nt=d?i.map(function(t){return t[d]}):[0,5];nt.length||(nt=[0]);var rt=g||Math.min.apply(null,nt),ot=m||Math.max.apply(null,nt),at=T(X,B),st=T(K,F),lt=[{type:"heatmap",data:{chartData:J}.chartData}],ut=function(t){var e=t.innerMin,i=t.innerMax,n=t.type,r=t.heatColor,o=t.series,a={min:e,max:i,calculable:!0},s=null;return"map"===n?(s={orient:"vertical",left:0,bottom:0,inRange:{color:r||A}},o[0].data.length||(s.show=!1)):s="bmap"===n||"amap"===n?{show:!1,orient:"vertical",left:0,bottom:0,inRange:{color:r||k}}:{orient:"horizontal",left:"center",bottom:10,dimension:2,inRange:r&&{color:r}},j(a,s)}({innerMin:rt,innerMax:ot,type:a,heatColor:z,series:lt}),ct=Y&&function(t){var e=t.dataType,i=t.innerXAxisList,n=t.innerYAxisList,r=t.digit,o=t.extraMetrics,a=t.metrics;return{trigger:"item",formatter:function(t){var s=t.color,l=U(t.data.value),u=l[0],c=l[1],h=l[2],d=l.slice(3),f=[];return f.push(i[u]+" ~ "+n[c]+"<br>"),o.forEach(function(t,e){f.push(t+": "+d[e]+"<br>")}),f.push(E(s)+" "+a+": "+q(h,e,r)+"<br>"),f.join("")}}}({dataType:p,innerXAxisList:X,innerYAxisList:K,digit:v,extraMetrics:et,metrics:d}),ht={visualMap:ut,series:lt};return"bmap"===a?(j(ht.series[0],{coordinateSystem:"bmap",pointSize:L,blurSize:R}),Q(b,M).then(function(t){return j({bmap:y},ht)})):"map"===a?(ht.series[0].coordinateSystem="geo",Z({position:D,positionJsonLink:I,beforeRegisterMapOnce:H,mapURLProfix:W}).then(function(e){var i=j({map:D},_);return O&&(e=O(e)),t.registerMap(D,e,G),j({geo:i},ht)})):"amap"===a?(j(ht.series[0],{coordinateSystem:"amap",pointSize:L,blurSize:R}),tt(b,M).then(function(t){return j({amap:x},ht)})):j({xAxis:at,yAxis:st,tooltip:ct},ht)},Nt=j({},at,{name:"VeHeatmap",data:function(){return this.chartHandler=Ot,{}}}),Lt=function(t,e,i,n){var r=i.dimension,o=void 0===r?t[0]:r,a=i.metrics,s=void 0===a?[t[1],t[2]]:a,l=i.dataType,u=void 0===l?{}:l,h=i.xAxisType,d=void 0===h?"category":h,f=i.xAxisName,p=i.yAxisName,g=i.digit,m=void 0===g?2:g,v=i.legendName,y=void 0===v?{}:v,x=i.labelMap,_=void 0===x?{}:x,b=i.tooltipTrigger,w=void 0===b?"item":b,S=i.axisVisible,T=void 0===S||S,M=i.symbolSizeMax,D=void 0===M?50:M,I=i.symbol,A=i.symbolSize,k=i.symbolRotate,E=i.symbolOffset,O=i.cursor,N=i.min,L=i.max,P=i.scale,R=i.label,z=i.itemStyle;if(c(e)){var F=j({},i,{xAxisName:f?[f]:void 0,yAxisName:p?[p]:void 0,scale:P?[P]:void 0,min:N?[N]:void 0,max:L?[L]:void 0,dimension:o?[o]:void 0}),B=ut(t,e,F,n);return B&&B.series?(B.series.forEach(function(t){j(t,{type:"scatter",symbol:I,symbolSize:A||10,symbolRotate:k,symbolOffset:E,cursor:O,label:R,itemStyle:z})}),B):{}}var H,V=n.tooltipVisible,W=n.legendVisible,$=Object.keys(e);return{legend:W&&function(t,e){return{data:t,formatter:function(t){return null!=e[t]?e[t]:t}}}($,y),tooltip:V&&{trigger:(H={tooltipTrigger:w,labelMap:_,columns:t,dataType:u,digit:m}).tooltipTrigger,formatter:function(t){return c(t)?t.map(function(t){return C(t,H)}).join(""):C(t,H)}},xAxis:function(t){var e=t.xAxisName,i=t.axisVisible,n=t.xAxisType,r=t.rows,o=t.dataLabels,a=t.dimension,s=[];return o.forEach(function(t){r[t].forEach(function(t){var e=t[a];e&&!~s.indexOf(e)&&s.push(e)})}),[{type:n,show:i,name:e,data:s}]}({xAxisName:f,axisVisible:T,xAxisType:d,dataLabels:$,dimension:o,rows:e}),yAxis:function(t){var e=t.dataType,i=t.metrics,n=t.digit;return{type:"value",show:t.axisVisible,scale:t.scale,min:t.min,max:t.max,axisTick:{show:!1},name:t.yAxisName,axisLabel:{formatter:function(t){return q(t,e[i[0]],n)}}}}({min:N,max:L,scale:P,yAxisName:p,dataType:u,metrics:s,digit:m,axisVisible:T}),series:function(t){var e=t.rows,i=t.dataLabels,n=t.columns,r=t.metrics,o=t.dimension,a=t.label,s=t.itemStyle,l=t.symbol,u=t.symbolSizeMax,c=t.symbolSize,h=t.symbolRotate,d=t.symbolOffset,f=t.cursor,p=n.filter(function(t){return!~r.indexOf(t)&&t!==o}),g=[];i.forEach(function(t){e[t].forEach(function(t){g.push(t[r[1]])})});var m=Math.max.apply(null,g),v=[];return i.forEach(function(t){var i=[];e[t].forEach(function(t){var e={value:[]};e.value.push(t[o],t[r[0]],t[r[1]]),p.forEach(function(i){e.value.push(t[i])}),e.symbolSize=c||t[r[1]]/m*u,i.push(e)}),v.push({type:"scatter",data:i,name:t,label:a,itemStyle:s,symbol:l,symbolRotate:h,symbolOffset:d,cursor:f})}),v}({rows:e,dataLabels:$,columns:t,metrics:s,dimension:o,label:R,itemStyle:z,symbol:I,symbolSizeMax:D,symbolSize:A,symbolRotate:k,symbolOffset:E,cursor:O})}},Pt=j({},at,{name:"VeScatter",data:function(){return this.chartHandler=Lt,{}}}),Rt=[5,10,20,30],zt={show:!1},Ft=function(t,e,i,n){var r=i.dimension,o=void 0===r?t[0]:r,a=i.metrics,s=void 0===a?t.slice(1,6):a,l=i.digit,u=void 0===l?2:l,h=i.itemStyle,d=i.labelMap,f=void 0===d?{}:d,p=i.legendName,g=void 0===p?{}:p,m=i.MA,v=void 0===m?Rt:m,y=i.showMA,x=void 0!==y&&y,_=i.showVol,b=void 0!==_&&_,w=i.showDataZoom,S=void 0!==w&&w,T=i.downColor,C=void 0===T?"#ec0000":T,M=i.upColor,D=void 0===M?"#00da3c":M,I=i.start,A=void 0===I?50:I,k=i.end,O=void 0===k?100:k,N=i.dataType,L=n.tooltipVisible,P=n.legendVisible,R=c(e[0]),z=[],F=[],B=[],H=s.slice(0,4),V=s[4];R?e.forEach(function(e){var i=[];z.push(e[t.indexOf(o)]),H.forEach(function(n){i.push(e[t.indexOf(n)])}),F.push(i),V&&B.push(e[t.indexOf(V)])}):e.forEach(function(t,e){var i=[];if(z.push(t[o]),H.forEach(function(e){i.push(t[e])}),F.push(i),V){var n=t[s[0]]>t[s[1]]?1:-1;B.push([e,t[V],n])}});var W=P&&function(t){var e=t.showMA,i=t.MA,n=t.legendName,r=t.labelMap,o=["日K"];return e&&(o=o.concat(i.map(function(t){return"MA"+t}))),r&&(o=o.map(function(t){return null==r[t]?t:r[t]})),{data:o,formatter:function(t){return null!=n[t]?n[t]:t}}}({showMA:x,MA:v,legendName:g,labelMap:f}),$=L&&function(t){var e=t.metrics,i=t.dataType,n=t.digit,r=t.labelMap;return{trigger:"axis",axisPointer:{type:"cross"},position:function(t,e,i,n,r){var o={top:10};return o[t[0]<r.viewSize[0]/2?"right":"left"]=60,o},formatter:function(t){var o=[];return o.push(t[0].axisValue+"<br>"),t.forEach(function(t){var a=t.data,s=t.seriesName,l=t.componentSubType,u=t.color,c=null==r[s]?s:r[s];if(o.push(E(u)+" "+c+": "),"candlestick"===l)o.push("<br>"),e.slice(0,4).forEach(function(t,e){var s=null!=r[t]?r[t]:t,l=q(a[e+1],i,n);o.push("- "+s+": "+l+"<br>")});else if("line"===l){var h=q(a,i,n);o.push(h+"<br>")}else if("bar"===l){var d=q(a[1],i,n);o.push(d+"<br>")}}),o.join("")}}}({metrics:s,dataType:N,digit:u,labelMap:f}),j=b&&function(t){var e=t.downColor,i=t.upColor,n=t.MA;return{show:!1,seriesIndex:t.showMA?1+n.length:1,dimension:2,pieces:[{value:1,color:e},{value:-1,color:i}]}}({downColor:C,upColor:D,MA:v,showMA:x}),U=S&&function(t){var e=t.start,i=t.end;return[{type:"inside",xAxisIndex:[0,1],start:e,end:i},{show:!0,xAxisIndex:[0,1],type:"slider",top:"85%",start:e,end:i}]}({start:A,end:O});return{legend:W,tooltip:$,visualMap:j,grid:[{left:"10%",right:"8%",top:"10%",height:{showVol:b}.showVol?"50%":"65%",containLabel:!1},{left:"10%",right:"8%",top:"65%",height:"16%",containLabel:!1}],xAxis:function(t){var e=t.dims,i={onZero:!1};return[{type:"category",data:e,scale:!0,boundaryGap:!1,axisLine:i,splitLine:zt,min:"dataMin",max:"dataMax"},{type:"category",gridIndex:1,data:e,scale:!0,boundaryGap:!1,axisLine:i,axisTick:zt,splitLine:zt,axisLabel:zt,min:"dataMin",max:"dataMax"}]}({dims:z}),yAxis:function(t){var e=t.dataType,i=t.digit;return[{scale:!0,axisTick:zt,axisLabel:{formatter:function(t){return q(t,e,i)}}},{scale:!0,gridIndex:1,splitNumber:2,axisLine:zt,axisTick:zt,splitLine:zt,axisLabel:zt}]}({dataType:N,digit:u}),dataZoom:U,series:function(t){var e=t.values,i=t.volumes,n=t.upColor,r=t.downColor,o=t.showMA,a=t.MA,s=t.showVol,l=t.labelMap,u=t.digit,c=t.itemStyle||{normal:{color:n,color0:r,borderColor:null,borderColor0:null}},h={normal:{opacity:.5}},d=[{name:null==l["日K"]?"日K":l["日K"],type:"candlestick",data:e,itemStyle:c}];return o&&a.forEach(function(t){var i="MA"+t;d.push({name:null==l[i]?i:l[i],data:function(t,e,i){var n=[];return e.forEach(function(r,o){if(o<t)n.push("-");else{for(var a=0,s=0;s<t;s++)a+=e[o-s][1];n.push(+(a/t).toFixed(i))}}),n}(t,e,u),type:"line",lineStyle:h,smooth:!0})}),s&&d.push({name:"Volume",type:"bar",xAxisIndex:1,yAxisIndex:1,data:i}),d}({values:F,volumes:B,upColor:D,downColor:C,showMA:x,MA:v,showVol:b,labelMap:f,digit:u,itemStyle:h}),axisPointer:{link:{xAxisIndex:"all"}}}},Bt=j({},at,{name:"VeCandle",data:function(){return this.chartHandler=Ft,{}}}),Ht=function(t,e,i,n){var r=i.dimension,o=void 0===r?t[0]:r,a=i.metrics,s=void 0===a?t[1]:a,l=i.digit,c=void 0===l?2:l,h=i.dataType,d=void 0===h?{}:h,f=i.labelMap,p=void 0===f?{}:f,g=i.seriesMap,m=void 0===g?{}:g,v=i.dataName,y=void 0===v?{}:v,x=n.tooltipFormatter;return{tooltip:n.tooltipVisible&&function(t){var e=t.tooltipFormatter,i=t.dataType,n=t.digit;return{formatter:function(t){var r=t.seriesName,o=t.data,a=o.value,s=o.name;if(e)return e.apply(null,arguments);var l=[];return l.push(r+": "),l.push(q(a,i[r],n)+" "+s),l.join("")}}}({tooltipFormatter:x,dataType:d}),series:function(t){var e=t.rows,i=t.dimension,n=t.metrics,r=t.digit,o=t.dataType,a=t.labelMap,s=t.seriesMap,l=t.dataName;return e.map(function(t){var e=t[i],c=s[e],h={type:"gauge",name:null!=a[e]?a[e]:e,data:[{name:l[e]||"",value:t[n]}],detail:{formatter:function(t){return q(t,o[e],r)}},axisLabel:{formatter:function(t){return q(t,o[e],r)}}};return c&&Object.keys(c).forEach(function(t){u(h[t])?j(h[t],c[t]):h[t]=c[t]}),h})}({rows:e,dimension:o,metrics:s,digit:c,dataType:d,labelMap:p,seriesMap:m,dataName:y})}},Vt=j({},at,{name:"VeGauge",data:function(){return this.chartHandler=Ht,{}}}),Wt=function(t,e,i,n){var r=i.dimension,o=void 0===r?t[0]:r,a=i.metrics,s=void 0===a?t[1]:a,l=i.seriesMap,c=void 0===l?{}:l,h=n.legendVisible,d=n.tooltipFormatter,f=n.tooltipVisible;return{series:function(t){var e=t.dimension,i=t.metrics,n=t.rows,r=t.seriesMap,o=[];return n.forEach(function(t){var n=t[e],a=r[n],s={type:"tree",name:t[e],data:t[i]};r[t[e]]&&Object.keys(a).forEach(function(t){u(s[t])?j(s[t],a[t]):s[t]=a[t]}),o.push(s)}),o}({dimension:o,metrics:s,rows:e,seriesMap:c}),legend:h&&e.length>1&&function(t){var e=t.dimension;return{data:t.rows.map(function(t){return t[e]})}}({dimension:o,rows:e}),tooltip:f&&{trigger:"item",triggerOn:"mousemove",formatter:{tooltipFormatter:d}.tooltipFormatter}}},$t=j({},at,{name:"VeTree",data:function(){return this.chartHandler=Wt,{}}}),jt=[st,lt,ct,gt,mt,yt,_t,wt,St,Ct,Dt,At,Et,Nt,Pt,Bt,Vt,$t];return"undefined"!=typeof window&&window.Vue&&M(window.Vue),{VeBar:st,VeHistogram:lt,VeRing:mt,VeLine:ct,VePie:gt,VeWaterfall:yt,VeFunnel:_t,VeRadar:wt,VeChart:St,VeMap:Ct,VeBmap:Dt,VeAmap:At,VeSankey:Et,VeScatter:Pt,VeCandle:Bt,VeGauge:Vt,VeTree:$t,install:M}});