12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- (self["webpackChunkhello_world"]=self["webpackChunkhello_world"]||[]).push([[998],{68589:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return he}});n(70252);var i=n(57637),r=n(23426),a=/%[sdj%]/g,o=function(){};function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=1,r=t[0],o=t.length;if("function"===typeof r)return r.apply(null,t.slice(1));if("string"===typeof r){for(var s=String(r).replace(a,(function(e){if("%%"===e)return"%";if(i>=o)return e;switch(e){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(n){return"[Circular]"}break;default:return e}})),l=t[i];i<o;l=t[++i])s+=" "+l;return s}return r}function l(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function c(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!l(t)||"string"!==typeof e||e))}function u(e,t,n){var i=[],r=0,a=e.length;function o(e){i.push.apply(i,e),r++,r===a&&n(i)}e.forEach((function(e){t(e,o)}))}function h(e,t,n){var i=0,r=e.length;function a(o){if(o&&o.length)n(o);else{var s=i;i+=1,s<r?t(e[s],a):n([])}}a([])}function d(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function p(e,t,n,i){if(t.first){var r=d(e);return h(r,n,i)}var a=t.firstFields||[];!0===a&&(a=Object.keys(e));var o=Object.keys(e),s=o.length,l=0,c=[],p=function(e){c.push.apply(c,e),l++,l===s&&i(c)};o.forEach((function(t){var i=e[t];-1!==a.indexOf(t)?h(i,n,p):u(i,n,p)}))}function f(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function m(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];"object"===("undefined"===typeof a?"undefined":(0,r.Z)(a))&&"object"===(0,r.Z)(e[n])?e[n]=(0,i.Z)({},e[n],a):e[n]=a}return e}function g(e,t,n,i,r,a){!e.required||n.hasOwnProperty(e.field)&&!c(t,a||e.type)||i.push(s(r.messages.required,e.fullField))}var v=g;function y(e,t,n,i,r){(/^\s+$/.test(t)||""===t)&&i.push(s(r.messages.whitespace,e.fullField))}var _=y,x={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},b={integer:function(e){return b.number(e)&&parseInt(e,10)===e},float:function(e){return b.number(e)&&!b.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":(0,r.Z)(e))&&!b.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(x.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(x.url)},hex:function(e){return"string"===typeof e&&!!e.match(x.hex)}};function w(e,t,n,i,a){if(e.required&&void 0===t)v(e,t,n,i,a);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=e.type;o.indexOf(l)>-1?b[l](t)||i.push(s(a.messages.types[l],e.fullField,e.type)):l&&("undefined"===typeof t?"undefined":(0,r.Z)(t))!==e.type&&i.push(s(a.messages.types[l],e.fullField,e.type))}}var S=w;function M(e,t,n,i,r){var a="number"===typeof e.len,o="number"===typeof e.min,l="number"===typeof e.max,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=t,h=null,d="number"===typeof t,p="string"===typeof t,f=Array.isArray(t);if(d?h="number":p?h="string":f&&(h="array"),!h)return!1;f&&(u=t.length),p&&(u=t.replace(c,"_").length),a?u!==e.len&&i.push(s(r.messages[h].len,e.fullField,e.len)):o&&!l&&u<e.min?i.push(s(r.messages[h].min,e.fullField,e.min)):l&&!o&&u>e.max?i.push(s(r.messages[h].max,e.fullField,e.max)):o&&l&&(u<e.min||u>e.max)&&i.push(s(r.messages[h].range,e.fullField,e.min,e.max))}var C=M,T="enum";function E(e,t,n,i,r){e[T]=Array.isArray(e[T])?e[T]:[],-1===e[T].indexOf(t)&&i.push(s(r.messages[T],e.fullField,e[T].join(", ")))}var A=E;function k(e,t,n,i,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(s(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var a=new RegExp(e.pattern);a.test(t)||i.push(s(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var D=k,I={required:v,whitespace:_,type:S,range:C,enum:A,pattern:D};function P(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(c(t,"string")&&!e.required)return n();I.required(e,t,i,a,r,"string"),c(t,"string")||(I.type(e,t,i,a,r),I.range(e,t,i,a,r),I.pattern(e,t,i,a,r),!0===e.whitespace&&I.whitespace(e,t,i,a,r))}n(a)}var O=P;function L(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();I.required(e,t,i,a,r),void 0!==t&&I.type(e,t,i,a,r)}n(a)}var R=L;function N(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();I.required(e,t,i,a,r),void 0!==t&&(I.type(e,t,i,a,r),I.range(e,t,i,a,r))}n(a)}var F=N;function B(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();I.required(e,t,i,a,r),void 0!==t&&I.type(e,t,i,a,r)}n(a)}var z=B;function V(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();I.required(e,t,i,a,r),c(t)||I.type(e,t,i,a,r)}n(a)}var U=V;function H(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();I.required(e,t,i,a,r),void 0!==t&&(I.type(e,t,i,a,r),I.range(e,t,i,a,r))}n(a)}var $=H;function j(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();I.required(e,t,i,a,r),void 0!==t&&(I.type(e,t,i,a,r),I.range(e,t,i,a,r))}n(a)}var W=j;function G(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(c(t,"array")&&!e.required)return n();I.required(e,t,i,a,r,"array"),c(t,"array")||(I.type(e,t,i,a,r),I.range(e,t,i,a,r))}n(a)}var q=G;function X(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();I.required(e,t,i,a,r),void 0!==t&&I.type(e,t,i,a,r)}n(a)}var Y=X,K="enum";function Z(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();I.required(e,t,i,a,r),t&&I[K](e,t,i,a,r)}n(a)}var J=Z;function Q(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(c(t,"string")&&!e.required)return n();I.required(e,t,i,a,r),c(t,"string")||I.pattern(e,t,i,a,r)}n(a)}var ee=Q;function te(e,t,n,i,r){var a=[],o=e.required||!e.required&&i.hasOwnProperty(e.field);if(o){if(c(t)&&!e.required)return n();if(I.required(e,t,i,a,r),!c(t)){var s=void 0;s="number"===typeof t?new Date(t):t,I.type(e,s,i,a,r),s&&I.range(e,s.getTime(),i,a,r)}}n(a)}var ne=te;function ie(e,t,n,i,a){var o=[],s=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":(0,r.Z)(t);I.required(e,t,i,o,a,s),n(o)}var re=ie;function ae(e,t,n,i,r){var a=e.type,o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(c(t,a)&&!e.required)return n();I.required(e,t,i,o,r,a),c(t,a)||I.type(e,t,i,o,r)}n(o)}var oe=ae,se={string:O,method:R,number:F,boolean:z,regexp:U,integer:$,float:W,array:q,object:Y,enum:J,pattern:ee,date:ne,url:oe,hex:oe,email:oe,required:re};function le(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var ce=le();function ue(e){this.rules=null,this._messages=ce,this.define(e)}ue.prototype={messages:function(e){return e&&(this._messages=m(le(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":(0,r.Z)(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments[2],l=e,c=n,u=a;if("function"===typeof c&&(u=c,c={}),this.rules&&0!==Object.keys(this.rules).length){if(c.messages){var h=this.messages();h===ce&&(h=le()),m(h,c.messages),c.messages=h}else c.messages=this.messages();var d=void 0,g=void 0,v={},y=c.keys||Object.keys(this.rules);y.forEach((function(n){d=t.rules[n],g=l[n],d.forEach((function(r){var a=r;"function"===typeof a.transform&&(l===e&&(l=(0,i.Z)({},l)),g=l[n]=a.transform(g)),a="function"===typeof a?{validator:a}:(0,i.Z)({},a),a.validator=t.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=t.getType(a),a.validator&&(v[n]=v[n]||[],v[n].push({rule:a,value:g,source:l,field:n}))}))}));var _={};p(v,c,(function(e,t){var n=e.rule,a=("object"===n.type||"array"===n.type)&&("object"===(0,r.Z)(n.fields)||"object"===(0,r.Z)(n.defaultField));function l(e,t){return(0,i.Z)({},t,{fullField:n.fullField+"."+e})}function u(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=r;if(Array.isArray(u)||(u=[u]),u.length&&o("async-validator:",u),u.length&&n.message&&(u=[].concat(n.message)),u=u.map(f(n)),c.first&&u.length)return _[n.field]=1,t(u);if(a){if(n.required&&!e.value)return u=n.message?[].concat(n.message).map(f(n)):c.error?[c.error(n,s(c.messages.required,n.field))]:[],t(u);var h={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(h[d]=n.defaultField);for(var p in h=(0,i.Z)({},h,e.rule.fields),h)if(h.hasOwnProperty(p)){var m=Array.isArray(h[p])?h[p]:[h[p]];h[p]=m.map(l.bind(null,p))}var g=new ue(h);g.messages(c.messages),e.rule.options&&(e.rule.options.messages=c.messages,e.rule.options.error=c.error),g.validate(e.value,e.rule.options||c,(function(e){t(e&&e.length?u.concat(e):e)}))}else t(u)}a=a&&(n.required||!n.required&&e.value),n.field=e.field;var h=n.validator(n,e.value,u,e.source,c);h&&h.then&&h.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){x(e)}))}else u&&u();function x(e){var t=void 0,n=void 0,i=[],r={};function a(e){Array.isArray(e)?i=i.concat.apply(i,e):i.push(e)}for(t=0;t<e.length;t++)a(e[t]);if(i.length)for(t=0;t<i.length;t++)n=i[t].field,r[n]=r[n]||[],r[n].push(i[t]);else i=null,r=null;u(i,r)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!se.hasOwnProperty(e.type))throw new Error(s("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?se.required:se[this.getType(e)]||!1}},ue.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");se[e]=t},ue.messages=ce;var he=ue},34593:function(e,t,n){e.exports=n(93329)},25544:function(e,t,n){"use strict";n(96158);var i=n(89276),r=n(96808),a=n(88551),o=n(84825),s=n(44215),l=n(31588),c=n(56549),u=n(48660);e.exports=function(e){return new Promise((function(t,n){var h=e.data,d=e.headers,p=e.responseType;i.isFormData(h)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+g)}var v=s(e.baseURL,e.url);function y(){if(f){var i="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,a=p&&"text"!==p&&"json"!==p?f.response:f.responseText,o={data:a,status:f.status,statusText:f.statusText,headers:i,config:e,request:f};r(t,n,o),f=null}}if(f.open(e.method.toUpperCase(),o(v,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(y)},f.onabort=function(){f&&(n(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var _=(e.withCredentials||c(v))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;_&&(d[e.xsrfHeaderName]=_)}"setRequestHeader"in f&&i.forEach(d,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete d[t]:f.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),p&&"json"!==p&&(f.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),n(e),f=null)})),h||(h=null),f.send(h)}))}},93329:function(e,t,n){"use strict";var i=n(89276),r=n(84027),a=n(3213),o=n(68806),s=n(59435);function l(e){var t=new a(e),n=r(a.prototype.request,t);return i.extend(n,a.prototype,t),i.extend(n,t),n}var c=l(s);c.Axios=a,c.create=function(e){return l(o(c.defaults,e))},c.Cancel=n(4880),c.CancelToken=n(99702),c.isCancel=n(93781),c.all=function(e){return Promise.all(e)},c.spread=n(71501),c.isAxiosError=n(84894),e.exports=c,e.exports["default"]=c},4880:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},99702:function(e,t,n){"use strict";var i=n(4880);function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},93781:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},3213:function(e,t,n){"use strict";n(70252);var i=n(89276),r=n(84825),a=n(46396),o=n(35966),s=n(68806),l=n(15808),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var r,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!i){var u=[o,void 0];Array.prototype.unshift.apply(u,n),u=u.concat(a),r=Promise.resolve(e);while(u.length)r=r.then(u.shift(),u.shift());return r}var h=e;while(n.length){var d=n.shift(),p=n.shift();try{h=d(h)}catch(f){p(f);break}}try{r=o(h)}catch(f){return Promise.reject(f)}while(a.length)r=r.then(a.shift(),a.shift());return r},u.prototype.getUri=function(e){return e=s(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,i){return this.request(s(i||{},{method:e,url:t,data:n}))}})),e.exports=u},46396:function(e,t,n){"use strict";n(70252);var i=n(89276);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},44215:function(e,t,n){"use strict";var i=n(80437),r=n(86609);e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},48660:function(e,t,n){"use strict";var i=n(75502);e.exports=function(e,t,n,r,a){var o=new Error(e);return i(o,t,n,r,a)}},35966:function(e,t,n){"use strict";var i=n(89276),r=n(36595),a=n(93781),o=n(59435);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){s(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||o.adapter;return t(e).then((function(t){return s(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(s(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},75502:function(e){"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},68806:function(e,t,n){"use strict";var i=n(89276);e.exports=function(e,t){t=t||{};var n={},r=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function c(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(e[r],t[r])}i.forEach(r,(function(e){i.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),i.forEach(a,c),i.forEach(o,(function(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(void 0,t[r])})),i.forEach(s,(function(i){i in t?n[i]=l(e[i],t[i]):i in e&&(n[i]=l(void 0,e[i]))}));var u=r.concat(a).concat(o).concat(s),h=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return i.forEach(h,c),n}},96808:function(e,t,n){"use strict";var i=n(48660);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},36595:function(e,t,n){"use strict";var i=n(89276),r=n(59435);e.exports=function(e,t,n){var a=this||r;return i.forEach(n,(function(n){e=n.call(a,e,t)})),e}},59435:function(e,t,n){"use strict";var i=n(89276),r=n(68549),a=n(75502),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(25544)),e}function c(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}var u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),c(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(o){if("SyntaxError"===s.name)throw a(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){u.headers[e]=i.merge(o)})),e.exports=u},84027:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},84825:function(e,t,n){"use strict";n(70252);var i=n(89276);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(i.isURLSearchParams(t))a=t.toString();else{var o=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),o.push(r(t)+"="+r(e))})))})),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},86609:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},88551:function(e,t,n){"use strict";n(70252);var i=n(89276);e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,n,r,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},80437:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},84894:function(e){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},56549:function(e,t,n){"use strict";var i=n(89276);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},68549:function(e,t,n){"use strict";var i=n(89276);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},31588:function(e,t,n){"use strict";var i=n(89276),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(i.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=i.trim(e.substr(0,a)).toLowerCase(),n=i.trim(e.substr(a+1)),t){if(o[t]&&r.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},71501:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},15808:function(e,t,n){"use strict";var i=n(73293),r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={},o=i.version.split(".");function s(e,t){for(var n=t?t.split("."):o,i=e.split("."),r=0;r<3;r++){if(n[r]>i[r])return!0;if(n[r]<i[r])return!1}return!1}function l(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var i=Object.keys(e),r=i.length;while(r-- >0){var a=i[r],o=t[a];if(o){var s=e[a],l=void 0===s||o(s,a,e);if(!0!==l)throw new TypeError("option "+a+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+a)}}r.transitional=function(e,t,n){var r=t&&s(t);function o(e,t){return"[Axios v"+i.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,s){if(!1===e)throw new Error(o(i," has been removed in "+t));return r&&!a[i]&&(a[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}},e.exports={isOlderVersion:s,assertOptions:l,validators:r}},89276:function(e,t,n){"use strict";n(13296),n(28078),n(15454);var i=n(84027),r=Object.prototype.toString;function a(e){return"[object Array]"===r.call(e)}function o(e){return"undefined"===typeof e}function s(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===r.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function h(e){return"string"===typeof e}function d(e){return"number"===typeof e}function p(e){return null!==e&&"object"===typeof e}function f(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function m(e){return"[object Date]"===r.call(e)}function g(e){return"[object File]"===r.call(e)}function v(e){return"[object Blob]"===r.call(e)}function y(e){return"[object Function]"===r.call(e)}function _(e){return p(e)&&y(e.pipe)}function x(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function b(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function w(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function S(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function M(){var e={};function t(t,n){f(e[n])&&f(t)?e[n]=M(e[n],t):f(t)?e[n]=M({},t):a(t)?e[n]=t.slice():e[n]=t}for(var n=0,i=arguments.length;n<i;n++)S(arguments[n],t);return e}function C(e,t,n){return S(t,(function(t,r){e[r]=n&&"function"===typeof t?i(t,n):t})),e}function T(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:a,isArrayBuffer:l,isBuffer:s,isFormData:c,isArrayBufferView:u,isString:h,isNumber:d,isObject:p,isPlainObject:f,isUndefined:o,isDate:m,isFile:g,isBlob:v,isFunction:y,isStream:_,isURLSearchParams:x,isStandardBrowserEnv:w,forEach:S,merge:M,extend:C,trim:b,stripBOM:T}},32013:function(e){var t=/^(attrs|props|on|nativeOn|class|style|hook)$/;function n(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,i){var r,a,o,s,l;for(o in i)if(r=e[o],a=i[o],r&&t.test(o))if("class"===o&&("string"===typeof r&&(l=r,e[o]=r={},r[l]=!0),"string"===typeof a&&(l=a,i[o]=a={},a[l]=!0)),"on"===o||"nativeOn"===o||"hook"===o)for(s in a)r[s]=n(r[s],a[s]);else if(Array.isArray(r))e[o]=r.concat(a);else if(Array.isArray(a))e[o]=[r].concat(a);else for(s in a)r[s]=a[s];else e[o]=i[o];return e}),{})}},31733:function(e,t,n){e.exports={default:n(52288),__esModule:!0}},9085:function(e,t,n){e.exports={default:n(50251),__esModule:!0}},68389:function(e,t,n){e.exports={default:n(86229),__esModule:!0}},57637:function(e,t,n){"use strict";var i=n(31733),r=a(i);function a(e){return e&&e.__esModule?e:{default:e}}t.Z=r.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}},23426:function(e,t,n){"use strict";var i=n(68389),r=l(i),a=n(9085),o=l(a),s="function"===typeof o.default&&"symbol"===typeof r.default?function(e){return typeof e}:function(e){return e&&"function"===typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function l(e){return e&&e.__esModule?e:{default:e}}t.Z="function"===typeof o.default&&"symbol"===s(r.default)?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},52288:function(e,t,n){n(72102),e.exports=n(77969).Object.assign},50251:function(e,t,n){n(12437),n(54073),n(9169),n(78715),e.exports=n(77969).Symbol},86229:function(e,t,n){n(18226),n(34467),e.exports=n(46350).f("iterator")},68114:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},14250:function(e){e.exports=function(){}},71340:function(e,t,n){var i=n(20195);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},65471:function(e,t,n){var i=n(57246),r=n(42169),a=n(24246);e.exports=function(e){return function(t,n,o){var s,l=i(t),c=r(l.length),u=a(o,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},81117:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},77969:function(e){var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},58589:function(e,t,n){var i=n(68114);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},5741:function(e){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},47042:function(e,t,n){e.exports=!n(73945)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},88406:function(e,t,n){var i=n(20195),r=n(62181).document,a=i(r)&&i(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},67165:function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},65668:function(e,t,n){var i=n(53185),r=n(2362),a=n(79566);e.exports=function(e){var t=i(e),n=r.f;if(n){var o,s=n(e),l=a.f,c=0;while(s.length>c)l.call(e,o=s[c++])&&t.push(o)}return t}},5313:function(e,t,n){var i=n(62181),r=n(77969),a=n(58589),o=n(29529),s=n(51491),l="prototype",c=function(e,t,n){var u,h,d,p=e&c.F,f=e&c.G,m=e&c.S,g=e&c.P,v=e&c.B,y=e&c.W,_=f?r:r[t]||(r[t]={}),x=_[l],b=f?i:m?i[t]:(i[t]||{})[l];for(u in f&&(n=t),n)h=!p&&b&&void 0!==b[u],h&&s(_,u)||(d=h?b[u]:n[u],_[u]=f&&"function"!=typeof b[u]?n[u]:v&&h?a(d,i):y&&b[u]==d?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t[l]=e[l],t}(d):g&&"function"==typeof d?a(Function.call,d):d,g&&((_.virtual||(_.virtual={}))[u]=d,e&c.R&&x&&!x[u]&&o(x,u,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},73945:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},62181:function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},51491:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},29529:function(e,t,n){var i=n(13420),r=n(35529);e.exports=n(47042)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},95399:function(e,t,n){var i=n(62181).document;e.exports=i&&i.documentElement},26902:function(e,t,n){e.exports=!n(47042)&&!n(73945)((function(){return 7!=Object.defineProperty(n(88406)("div"),"a",{get:function(){return 7}}).a}))},93595:function(e,t,n){var i=n(81117);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},58404:function(e,t,n){var i=n(81117);e.exports=Array.isArray||function(e){return"Array"==i(e)}},20195:function(e){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},75948:function(e,t,n){"use strict";var i=n(67576),r=n(35529),a=n(12430),o={};n(29529)(o,n(60481)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(o,{next:r(1,n)}),a(e,t+" Iterator")}},63033:function(e,t,n){"use strict";var i=n(28602),r=n(5313),a=n(85303),o=n(29529),s=n(72870),l=n(75948),c=n(12430),u=n(13774),h=n(60481)("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",f="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,y,_,x){l(n,t,v);var b,w,S,M=function(e){if(!d&&e in A)return A[e];switch(e){case f:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",T=y==m,E=!1,A=e.prototype,k=A[h]||A[p]||y&&A[y],D=k||M(y),I=y?T?M("entries"):D:void 0,P="Array"==t&&A.entries||k;if(P&&(S=u(P.call(new e)),S!==Object.prototype&&S.next&&(c(S,C,!0),i||"function"==typeof S[h]||o(S,h,g))),T&&k&&k.name!==m&&(E=!0,D=function(){return k.call(this)}),i&&!x||!d&&!E&&A[h]||o(A,h,D),s[t]=D,s[C]=g,y)if(b={values:T?D:M(m),keys:_?D:M(f),entries:I},x)for(w in b)w in A||a(A,w,b[w]);else r(r.P+r.F*(d||E),t,b);return b}},66489:function(e){e.exports=function(e,t){return{value:t,done:!!e}}},72870:function(e){e.exports={}},28602:function(e){e.exports=!0},84277:function(e,t,n){var i=n(47082)("meta"),r=n(20195),a=n(51491),o=n(13420).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(73945)((function(){return l(Object.preventExtensions({}))})),u=function(e){o(e,i,{value:{i:"O"+ ++s,w:{}}})},h=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[i].i},d=function(e,t){if(!a(e,i)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[i].w},p=function(e){return c&&f.NEED&&l(e)&&!a(e,i)&&u(e),e},f=e.exports={KEY:i,NEED:!1,fastKey:h,getWeak:d,onFreeze:p}},67679:function(e,t,n){"use strict";var i=n(47042),r=n(53185),a=n(2362),o=n(79566),s=n(45076),l=n(93595),c=Object.assign;e.exports=!c||n(73945)((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i}))?function(e,t){var n=s(e),c=arguments.length,u=1,h=a.f,d=o.f;while(c>u){var p,f=l(arguments[u++]),m=h?r(f).concat(h(f)):r(f),g=m.length,v=0;while(g>v)p=m[v++],i&&!d.call(f,p)||(n[p]=f[p])}return n}:c},67576:function(e,t,n){var i=n(71340),r=n(59673),a=n(67165),o=n(1257)("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n(88406)("iframe"),i=a.length,r="<",o=">";t.style.display="none",n(95399).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+o+"document.F=Object"+r+"/script"+o),e.close(),c=e.F;while(i--)delete c[l][a[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=i(e),n=new s,s[l]=null,n[o]=e):n=c(),void 0===t?n:r(n,t)}},13420:function(e,t,n){var i=n(71340),r=n(26902),a=n(77306),o=Object.defineProperty;t.f=n(47042)?Object.defineProperty:function(e,t,n){if(i(e),t=a(t,!0),i(n),r)try{return o(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},59673:function(e,t,n){var i=n(13420),r=n(71340),a=n(53185);e.exports=n(47042)?Object.defineProperties:function(e,t){r(e);var n,o=a(t),s=o.length,l=0;while(s>l)i.f(e,n=o[l++],t[n]);return e}},93166:function(e,t,n){var i=n(79566),r=n(35529),a=n(57246),o=n(77306),s=n(51491),l=n(26902),c=Object.getOwnPropertyDescriptor;t.f=n(47042)?c:function(e,t){if(e=a(e),t=o(t,!0),l)try{return c(e,t)}catch(n){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},48365:function(e,t,n){var i=n(57246),r=n(48819).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(t){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?s(e):r(i(e))}},48819:function(e,t,n){var i=n(16091),r=n(67165).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},2362:function(e,t){t.f=Object.getOwnPropertySymbols},13774:function(e,t,n){var i=n(51491),r=n(45076),a=n(1257)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},16091:function(e,t,n){var i=n(51491),r=n(57246),a=n(65471)(!1),o=n(1257)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)n!=o&&i(s,n)&&c.push(n);while(t.length>l)i(s,n=t[l++])&&(~a(c,n)||c.push(n));return c}},53185:function(e,t,n){var i=n(16091),r=n(67165);e.exports=Object.keys||function(e){return i(e,r)}},79566:function(e,t){t.f={}.propertyIsEnumerable},35529:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},85303:function(e,t,n){e.exports=n(29529)},12430:function(e,t,n){var i=n(13420).f,r=n(51491),a=n(60481)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,a)&&i(e,a,{configurable:!0,value:t})}},1257:function(e,t,n){var i=n(63275)("keys"),r=n(47082);e.exports=function(e){return i[e]||(i[e]=r(e))}},63275:function(e,t,n){var i=n(77969),r=n(62181),a="__core-js_shared__",o=r[a]||(r[a]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(28602)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},70355:function(e,t,n){var i=n(57669),r=n(5741);e.exports=function(e){return function(t,n){var a,o,s=String(r(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(a=s.charCodeAt(l),a<55296||a>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):a:e?s.slice(l,l+2):o-56320+(a-55296<<10)+65536)}}},24246:function(e,t,n){var i=n(57669),r=Math.max,a=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):a(e,t)}},57669:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},57246:function(e,t,n){var i=n(93595),r=n(5741);e.exports=function(e){return i(r(e))}},42169:function(e,t,n){var i=n(57669),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},45076:function(e,t,n){var i=n(5741);e.exports=function(e){return Object(i(e))}},77306:function(e,t,n){var i=n(20195);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},47082:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},66207:function(e,t,n){var i=n(62181),r=n(77969),a=n(28602),o=n(46350),s=n(13420).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=a?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},46350:function(e,t,n){t.f=n(60481)},60481:function(e,t,n){var i=n(63275)("wks"),r=n(47082),a=n(62181).Symbol,o="function"==typeof a,s=e.exports=function(e){return i[e]||(i[e]=o&&a[e]||(o?a:r)("Symbol."+e))};s.store=i},48446:function(e,t,n){"use strict";var i=n(14250),r=n(66489),a=n(72870),o=n(57246);e.exports=n(63033)(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},72102:function(e,t,n){var i=n(5313);i(i.S+i.F,"Object",{assign:n(67679)})},54073:function(){},18226:function(e,t,n){"use strict";var i=n(70355)(!0);n(63033)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},12437:function(e,t,n){"use strict";var i=n(62181),r=n(51491),a=n(47042),o=n(5313),s=n(85303),l=n(84277).KEY,c=n(73945),u=n(63275),h=n(12430),d=n(47082),p=n(60481),f=n(46350),m=n(66207),g=n(65668),v=n(58404),y=n(71340),_=n(20195),x=n(45076),b=n(57246),w=n(77306),S=n(35529),M=n(67576),C=n(48365),T=n(93166),E=n(2362),A=n(13420),k=n(53185),D=T.f,I=A.f,P=C.f,O=i.Symbol,L=i.JSON,R=L&&L.stringify,N="prototype",F=p("_hidden"),B=p("toPrimitive"),z={}.propertyIsEnumerable,V=u("symbol-registry"),U=u("symbols"),H=u("op-symbols"),$=Object[N],j="function"==typeof O&&!!E.f,W=i.QObject,G=!W||!W[N]||!W[N].findChild,q=a&&c((function(){return 7!=M(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=D($,t);i&&delete $[t],I(e,t,n),i&&e!==$&&I($,t,i)}:I,X=function(e){var t=U[e]=M(O[N]);return t._k=e,t},Y=j&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},K=function(e,t,n){return e===$&&K(H,t,n),y(e),t=w(t,!0),y(n),r(U,t)?(n.enumerable?(r(e,F)&&e[F][t]&&(e[F][t]=!1),n=M(n,{enumerable:S(0,!1)})):(r(e,F)||I(e,F,S(1,{})),e[F][t]=!0),q(e,t,n)):I(e,t,n)},Z=function(e,t){y(e);var n,i=g(t=b(t)),r=0,a=i.length;while(a>r)K(e,n=i[r++],t[n]);return e},J=function(e,t){return void 0===t?M(e):Z(M(e),t)},Q=function(e){var t=z.call(this,e=w(e,!0));return!(this===$&&r(U,e)&&!r(H,e))&&(!(t||!r(this,e)||!r(U,e)||r(this,F)&&this[F][e])||t)},ee=function(e,t){if(e=b(e),t=w(t,!0),e!==$||!r(U,t)||r(H,t)){var n=D(e,t);return!n||!r(U,t)||r(e,F)&&e[F][t]||(n.enumerable=!0),n}},te=function(e){var t,n=P(b(e)),i=[],a=0;while(n.length>a)r(U,t=n[a++])||t==F||t==l||i.push(t);return i},ne=function(e){var t,n=e===$,i=P(n?H:b(e)),a=[],o=0;while(i.length>o)!r(U,t=i[o++])||n&&!r($,t)||a.push(U[t]);return a};j||(O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===$&&t.call(H,n),r(this,F)&&r(this[F],e)&&(this[F][e]=!1),q(this,e,S(1,n))};return a&&G&&q($,e,{configurable:!0,set:t}),X(e)},s(O[N],"toString",(function(){return this._k})),T.f=ee,A.f=K,n(48819).f=C.f=te,n(79566).f=Q,E.f=ne,a&&!n(28602)&&s($,"propertyIsEnumerable",Q,!0),f.f=function(e){return X(p(e))}),o(o.G+o.W+o.F*!j,{Symbol:O});for(var ie="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ie.length>re;)p(ie[re++]);for(var ae=k(p.store),oe=0;ae.length>oe;)m(ae[oe++]);o(o.S+o.F*!j,"Symbol",{for:function(e){return r(V,e+="")?V[e]:V[e]=O(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in V)if(V[t]===e)return t},useSetter:function(){G=!0},useSimple:function(){G=!1}}),o(o.S+o.F*!j,"Object",{create:J,defineProperty:K,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=c((function(){E.f(1)}));o(o.S+o.F*se,"Object",{getOwnPropertySymbols:function(e){return E.f(x(e))}}),L&&o(o.S+o.F*(!j||c((function(){var e=O();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))}))),"JSON",{stringify:function(e){var t,n,i=[e],r=1;while(arguments.length>r)i.push(arguments[r++]);if(n=t=i[1],(_(t)||void 0!==e)&&!Y(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),i[1]=t,R.apply(L,i)}}),O[N][B]||n(29529)(O[N],B,O[N].valueOf),h(O,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},9169:function(e,t,n){n(66207)("asyncIterator")},78715:function(e,t,n){n(66207)("observable")},34467:function(e,t,n){n(48446);for(var i=n(62181),r=n(29529),a=n(72870),o=n(60481)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=i[c],h=u&&u.prototype;h&&!h[o]&&r(h,o,c),a[c]=a.Array}},94777:function(e,t,n){var i=n(80487),r=n(90196),a=TypeError;e.exports=function(e){if(i(e))return e;throw a(r(e)+" is not a function")}},86653:function(e,t,n){var i=n(80487),r=String,a=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw a("Can't set "+r(e)+" as a prototype")}},50597:function(e,t,n){var i=n(44388),r=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw r("Incorrect invocation")}},51567:function(e,t,n){var i=n(87298),r=String,a=TypeError;e.exports=function(e){if(i(e))return e;throw a(r(e)+" is not an object")}},5057:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},42740:function(e,t,n){"use strict";var i,r,a,o=n(5057),s=n(67190),l=n(77482),c=n(80487),u=n(87298),h=n(85573),d=n(36301),p=n(90196),f=n(62681),m=n(99994),g=n(43914),v=n(44388),y=n(10236),_=n(69332),x=n(13253),b=n(15097),w=n(32823),S=w.enforce,M=w.get,C=l.Int8Array,T=C&&C.prototype,E=l.Uint8ClampedArray,A=E&&E.prototype,k=C&&y(C),D=T&&y(T),I=Object.prototype,P=l.TypeError,O=x("toStringTag"),L=b("TYPED_ARRAY_TAG"),R="TypedArrayConstructor",N=o&&!!_&&"Opera"!==d(l.opera),F=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},V=function(e){if(!u(e))return!1;var t=d(e);return"DataView"===t||h(B,t)||h(z,t)},U=function(e){var t=y(e);if(u(t)){var n=M(t);return n&&h(n,R)?n[R]:U(t)}},H=function(e){if(!u(e))return!1;var t=d(e);return h(B,t)||h(z,t)},$=function(e){if(H(e))return e;throw P("Target is not a typed array")},j=function(e){if(c(e)&&(!_||v(k,e)))return e;throw P(p(e)+" is not a typed array constructor")},W=function(e,t,n,i){if(s){if(n)for(var r in B){var a=l[r];if(a&&h(a.prototype,e))try{delete a.prototype[e]}catch(o){try{a.prototype[e]=t}catch(c){}}}D[e]&&!n||m(D,e,n?t:N&&T[e]||t,i)}},G=function(e,t,n){var i,r;if(s){if(_){if(n)for(i in B)if(r=l[i],r&&h(r,e))try{delete r[e]}catch(a){}if(k[e]&&!n)return;try{return m(k,e,n?t:N&&k[e]||t)}catch(a){}}for(i in B)r=l[i],!r||r[e]&&!n||m(r,e,t)}};for(i in B)r=l[i],a=r&&r.prototype,a?S(a)[R]=r:N=!1;for(i in z)r=l[i],a=r&&r.prototype,a&&(S(a)[R]=r);if((!N||!c(k)||k===Function.prototype)&&(k=function(){throw P("Incorrect invocation")},N))for(i in B)l[i]&&_(l[i],k);if((!N||!D||D===I)&&(D=k.prototype,N))for(i in B)l[i]&&_(l[i].prototype,D);if(N&&y(A)!==D&&_(A,D),s&&!h(D,O))for(i in F=!0,g(D,O,{configurable:!0,get:function(){return u(this)?this[L]:void 0}}),B)l[i]&&f(l[i],L,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:F&&L,aTypedArray:$,aTypedArrayConstructor:j,exportTypedArrayMethod:W,exportTypedArrayStaticMethod:G,getTypedArrayConstructor:U,isView:V,isTypedArray:H,TypedArray:k,TypedArrayPrototype:D}},63616:function(e,t,n){var i=n(80674);e.exports=function(e,t){var n=0,r=i(t),a=new e(r);while(r>n)a[n]=t[n++];return a}},19965:function(e,t,n){var i=n(45750),r=n(47942),a=n(80674),o=function(e){return function(t,n,o){var s,l=i(t),c=a(l),u=r(o,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},80876:function(e,t,n){"use strict";var i=n(67190),r=n(70202),a=TypeError,o=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(r(e)&&!o(e,"length").writable)throw a("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},94782:function(e,t,n){var i=n(45665);e.exports=i([].slice)},28870:function(e,t,n){var i=n(80674);e.exports=function(e,t){for(var n=i(e),r=new t(n),a=0;a<n;a++)r[a]=e[n-a-1];return r}},61807:function(e,t,n){var i=n(80674),r=n(95370),a=RangeError;e.exports=function(e,t,n,o){var s=i(e),l=r(n),c=l<0?s+l:l;if(c>=s||c<0)throw a("Incorrect index");for(var u=new t(s),h=0;h<s;h++)u[h]=h===c?o:e[h];return u}},26935:function(e,t,n){var i=n(45665),r=i({}.toString),a=i("".slice);e.exports=function(e){return a(r(e),8,-1)}},36301:function(e,t,n){var i=n(75084),r=n(80487),a=n(26935),o=n(13253),s=o("toStringTag"),l=Object,c="Arguments"==a(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=i?a:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=l(e),s))?n:c?a(t):"Object"==(i=a(t))&&r(t.callee)?"Arguments":i}},64716:function(e,t,n){var i=n(85573),r=n(92456),a=n(721),o=n(51951);e.exports=function(e,t,n){for(var s=r(t),l=o.f,c=a.f,u=0;u<s.length;u++){var h=s[u];i(e,h)||n&&i(n,h)||l(e,h,c(t,h))}}},85208:function(e,t,n){var i=n(83494);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},62681:function(e,t,n){var i=n(67190),r=n(51951),a=n(10473);e.exports=i?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},10473:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},43914:function(e,t,n){var i=n(2804),r=n(51951);e.exports=function(e,t,n){return n.get&&i(n.get,t,{getter:!0}),n.set&&i(n.set,t,{setter:!0}),r.f(e,t,n)}},99994:function(e,t,n){var i=n(80487),r=n(51951),a=n(2804),o=n(64287);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(i(n)&&a(n,c,s),s.global)l?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},64287:function(e,t,n){var i=n(77482),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},67190:function(e,t,n){var i=n(83494);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},79992:function(e){var t="object"==typeof document&&document.all,n="undefined"==typeof t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},60096:function(e,t,n){var i=n(77482),r=n(87298),a=i.document,o=r(a)&&r(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},1790:function(e){var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw t("Maximum allowed index exceeded");return e}},57534:function(e){e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},66036:function(e){e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},31454:function(e,t,n){var i=n(13434);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},67238:function(e,t,n){var i=n(26935);e.exports="undefined"!=typeof process&&"process"==i(process)},13434:function(e){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},56909:function(e,t,n){var i,r,a=n(77482),o=n(13434),s=a.process,l=a.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(i=u.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&o&&(i=o.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),e.exports=r},88064:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3429:function(e,t,n){var i=n(45665),r=Error,a=i("".replace),o=function(e){return String(r(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!r.prepareStackTrace)while(t--)e=a(e,s,"");return e}},10855:function(e,t,n){var i=n(77482),r=n(721).f,a=n(62681),o=n(99994),s=n(64287),l=n(64716),c=n(31723);e.exports=function(e,t){var n,u,h,d,p,f,m=e.target,g=e.global,v=e.stat;if(u=g?i:v?i[m]||s(m,{}):(i[m]||{}).prototype,u)for(h in t){if(p=t[h],e.dontCallGetSet?(f=r(u,h),d=f&&f.value):d=u[h],n=c(g?h:m+(v?".":"#")+h,e.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&a(p,"sham",!0),o(u,h,p,e)}}},83494:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},36434:function(e,t,n){var i=n(33801),r=Function.prototype,a=r.apply,o=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(a):function(){return o.apply(a,arguments)})},17707:function(e,t,n){var i=n(50761),r=n(94777),a=n(33801),o=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:a?o(e,t):function(){return e.apply(t,arguments)}}},33801:function(e,t,n){var i=n(83494);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},23754:function(e,t,n){var i=n(33801),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},67009:function(e,t,n){var i=n(67190),r=n(85573),a=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,s=r(a,"name"),l=s&&"something"===function(){}.name,c=s&&(!i||i&&o(a,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},56159:function(e,t,n){var i=n(45665),r=n(94777);e.exports=function(e,t,n){try{return i(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(a){}}},50761:function(e,t,n){var i=n(26935),r=n(45665);e.exports=function(e){if("Function"===i(e))return r(e)}},45665:function(e,t,n){var i=n(33801),r=Function.prototype,a=r.call,o=i&&r.bind.bind(a,a);e.exports=i?o:function(e){return function(){return a.apply(e,arguments)}}},46437:function(e,t,n){var i=n(77482),r=n(80487),a=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(i[e]):i[e]&&i[e][t]}},75348:function(e,t,n){var i=n(94777),r=n(35504);e.exports=function(e,t){var n=e[t];return r(n)?void 0:i(n)}},77482:function(e,t,n){var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},85573:function(e,t,n){var i=n(45665),r=n(36578),a=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(r(e),t)}},70919:function(e){e.exports={}},18537:function(e,t,n){var i=n(46437);e.exports=i("document","documentElement")},55154:function(e,t,n){var i=n(67190),r=n(83494),a=n(60096);e.exports=!i&&!r((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},74476:function(e,t,n){var i=n(45665),r=n(83494),a=n(26935),o=Object,s=i("".split);e.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?s(e,""):o(e)}:o},36117:function(e,t,n){var i=n(80487),r=n(87298),a=n(69332);e.exports=function(e,t,n){var o,s;return a&&i(o=t.constructor)&&o!==n&&r(s=o.prototype)&&s!==n.prototype&&a(e,s),e}},91969:function(e,t,n){var i=n(45665),r=n(80487),a=n(31558),o=i(Function.toString);r(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},32823:function(e,t,n){var i,r,a,o=n(11443),s=n(77482),l=n(87298),c=n(62681),u=n(85573),h=n(31558),d=n(12256),p=n(70919),f="Object already initialized",m=s.TypeError,g=s.WeakMap,v=function(e){return a(e)?r(e):i(e,{})},y=function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}};if(o||h.state){var _=h.state||(h.state=new g);_.get=_.get,_.has=_.has,_.set=_.set,i=function(e,t){if(_.has(e))throw m(f);return t.facade=e,_.set(e,t),t},r=function(e){return _.get(e)||{}},a=function(e){return _.has(e)}}else{var x=d("state");p[x]=!0,i=function(e,t){if(u(e,x))throw m(f);return t.facade=e,c(e,x,t),t},r=function(e){return u(e,x)?e[x]:{}},a=function(e){return u(e,x)}}e.exports={set:i,get:r,has:a,enforce:v,getterFor:y}},70202:function(e,t,n){var i=n(26935);e.exports=Array.isArray||function(e){return"Array"==i(e)}},46227:function(e,t,n){var i=n(36301);e.exports=function(e){var t=i(e);return"BigInt64Array"==t||"BigUint64Array"==t}},80487:function(e,t,n){var i=n(79992),r=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},31723:function(e,t,n){var i=n(83494),r=n(80487),a=/#|\.prototype\./,o=function(e,t){var n=l[s(e)];return n==u||n!=c&&(r(t)?i(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},35504:function(e){e.exports=function(e){return null===e||void 0===e}},87298:function(e,t,n){var i=n(80487),r=n(79992),a=r.all;e.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===a}:function(e){return"object"==typeof e?null!==e:i(e)}},12785:function(e){e.exports=!1},95473:function(e,t,n){var i=n(46437),r=n(80487),a=n(44388),o=n(10745),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return r(t)&&a(t.prototype,s(e))}},80674:function(e,t,n){var i=n(7028);e.exports=function(e){return i(e.length)}},2804:function(e,t,n){var i=n(45665),r=n(83494),a=n(80487),o=n(85573),s=n(67190),l=n(67009).CONFIGURABLE,c=n(91969),u=n(32823),h=u.enforce,d=u.get,p=String,f=Object.defineProperty,m=i("".slice),g=i("".replace),v=i([].join),y=s&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),_=String(String).split("String"),x=e.exports=function(e,t,n){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&o(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var i=h(e);return o(i,"source")||(i.source=v(_,"string"==typeof t?t:"")),e};Function.prototype.toString=x((function(){return a(this)&&d(this).source||c(this)}),"toString")},87153:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},81514:function(e,t,n){var i=n(47607);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},51951:function(e,t,n){var i=n(67190),r=n(55154),a=n(34573),o=n(51567),s=n(93252),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";t.f=i?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var i=u(e,t);i&&i[p]&&(e[t]=n.value,n={configurable:d in n?n[d]:i[d],enumerable:h in n?n[h]:i[h],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(o(e),t=s(t),o(n),r)try{return c(e,t,n)}catch(i){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},721:function(e,t,n){var i=n(67190),r=n(23754),a=n(54756),o=n(10473),s=n(45750),l=n(93252),c=n(85573),u=n(55154),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=s(e),t=l(t),u)try{return h(e,t)}catch(n){}if(c(e,t))return o(!r(a.f,e,t),e[t])}},36554:function(e,t,n){var i=n(45445),r=n(88064),a=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,a)}},41598:function(e,t){t.f=Object.getOwnPropertySymbols},10236:function(e,t,n){var i=n(85573),r=n(80487),a=n(36578),o=n(12256),s=n(85208),l=o("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=a(e);if(i(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},44388:function(e,t,n){var i=n(45665);e.exports=i({}.isPrototypeOf)},45445:function(e,t,n){var i=n(45665),r=n(85573),a=n(45750),o=n(19965).indexOf,s=n(70919),l=i([].push);e.exports=function(e,t){var n,i=a(e),c=0,u=[];for(n in i)!r(s,n)&&r(i,n)&&l(u,n);while(t.length>c)r(i,n=t[c++])&&(~o(u,n)||l(u,n));return u}},54756:function(e,t){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);t.f=r?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},69332:function(e,t,n){var i=n(56159),r=n(51567),a=n(86653);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=i(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(o){}return function(n,i){return r(n),a(i),t?e(n,i):n.__proto__=i,n}}():void 0)},31556:function(e,t,n){var i=n(23754),r=n(80487),a=n(87298),o=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&r(n=e.toString)&&!a(s=i(n,e)))return s;if(r(n=e.valueOf)&&!a(s=i(n,e)))return s;if("string"!==t&&r(n=e.toString)&&!a(s=i(n,e)))return s;throw o("Can't convert object to primitive value")}},92456:function(e,t,n){var i=n(46437),r=n(45665),a=n(36554),o=n(41598),s=n(51567),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?l(t,n(e)):t}},54264:function(e,t,n){var i=n(35504),r=TypeError;e.exports=function(e){if(i(e))throw r("Can't call method on "+e);return e}},74384:function(e,t,n){"use strict";var i=n(77482),r=n(36434),a=n(80487),o=n(66036),s=n(13434),l=n(94782),c=n(56091),u=i.Function,h=/MSIE .\./.test(s)||o&&function(){var e=i.Bun.version.split(".");return e.length<3||0==e[0]&&(e[1]<3||3==e[1]&&0==e[2])}();e.exports=function(e,t){var n=t?2:1;return h?function(i,o){var s=c(arguments.length,1)>n,h=a(i)?i:u(i),d=s?l(arguments,n):[],p=s?function(){r(h,this,d)}:h;return t?e(p,o):e(p)}:e}},12256:function(e,t,n){var i=n(68889),r=n(15097),a=i("keys");e.exports=function(e){return a[e]||(a[e]=r(e))}},31558:function(e,t,n){var i=n(77482),r=n(64287),a="__core-js_shared__",o=i[a]||r(a,{});e.exports=o},68889:function(e,t,n){var i=n(12785),r=n(31558);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.1",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},95362:function(e,t,n){var i=n(56909),r=n(83494),a=n(77482),o=a.String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},12335:function(e,t,n){var i,r,a,o,s=n(77482),l=n(36434),c=n(17707),u=n(80487),h=n(85573),d=n(83494),p=n(18537),f=n(94782),m=n(60096),g=n(56091),v=n(31454),y=n(67238),_=s.setImmediate,x=s.clearImmediate,b=s.process,w=s.Dispatch,S=s.Function,M=s.MessageChannel,C=s.String,T=0,E={},A="onreadystatechange";d((function(){i=s.location}));var k=function(e){if(h(E,e)){var t=E[e];delete E[e],t()}},D=function(e){return function(){k(e)}},I=function(e){k(e.data)},P=function(e){s.postMessage(C(e),i.protocol+"//"+i.host)};_&&x||(_=function(e){g(arguments.length,1);var t=u(e)?e:S(e),n=f(arguments,1);return E[++T]=function(){l(t,void 0,n)},r(T),T},x=function(e){delete E[e]},y?r=function(e){b.nextTick(D(e))}:w&&w.now?r=function(e){w.now(D(e))}:M&&!v?(a=new M,o=a.port2,a.port1.onmessage=I,r=c(o.postMessage,o)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&i&&"file:"!==i.protocol&&!d(P)?(r=P,s.addEventListener("message",I,!1)):r=A in m("script")?function(e){p.appendChild(m("script"))[A]=function(){p.removeChild(this),k(e)}}:function(e){setTimeout(D(e),0)}),e.exports={set:_,clear:x}},47942:function(e,t,n){var i=n(95370),r=Math.max,a=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):a(n,t)}},38116:function(e,t,n){var i=n(53919),r=TypeError;e.exports=function(e){var t=i(e,"number");if("number"==typeof t)throw r("Can't convert number to bigint");return BigInt(t)}},45750:function(e,t,n){var i=n(74476),r=n(54264);e.exports=function(e){return i(r(e))}},95370:function(e,t,n){var i=n(87153);e.exports=function(e){var t=+e;return t!==t||0===t?0:i(t)}},7028:function(e,t,n){var i=n(95370),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},36578:function(e,t,n){var i=n(54264),r=Object;e.exports=function(e){return r(i(e))}},53919:function(e,t,n){var i=n(23754),r=n(87298),a=n(95473),o=n(75348),s=n(31556),l=n(13253),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!r(e)||a(e))return e;var n,l=o(e,u);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!r(n)||a(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},93252:function(e,t,n){var i=n(53919),r=n(95473);e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},75084:function(e,t,n){var i=n(13253),r=i("toStringTag"),a={};a[r]="z",e.exports="[object z]"===String(a)},47607:function(e,t,n){var i=n(36301),r=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},90196:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},15097:function(e,t,n){var i=n(45665),r=0,a=Math.random(),o=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++r+a,36)}},10745:function(e,t,n){var i=n(95362);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},34573:function(e,t,n){var i=n(67190),r=n(83494);e.exports=i&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},56091:function(e){var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},11443:function(e,t,n){var i=n(77482),r=n(80487),a=i.WeakMap;e.exports=r(a)&&/native code/.test(String(a))},13253:function(e,t,n){var i=n(77482),r=n(68889),a=n(85573),o=n(15097),s=n(95362),l=n(10745),c=i.Symbol,u=r("wks"),h=l?c["for"]||c:c&&c.withoutSetter||o;e.exports=function(e){return a(u,e)||(u[e]=s&&a(c,e)?c[e]:h("Symbol."+e)),u[e]}},70252:function(e,t,n){"use strict";var i=n(10855),r=n(36578),a=n(80674),o=n(80876),s=n(1790),l=n(83494),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},h=c||!u();i({target:"Array",proto:!0,arity:1,forced:h},{push:function(e){var t=r(this),n=a(t),i=arguments.length;s(n+i);for(var l=0;l<i;l++)t[n]=arguments[l],n++;return o(t,n),n}})},66554:function(e,t,n){"use strict";var i=n(28870),r=n(42740),a=r.aTypedArray,o=r.exportTypedArrayMethod,s=r.getTypedArrayConstructor;o("toReversed",(function(){return i(a(this),s(this))}))},46293:function(e,t,n){"use strict";var i=n(42740),r=n(45665),a=n(94777),o=n(63616),s=i.aTypedArray,l=i.getTypedArrayConstructor,c=i.exportTypedArrayMethod,u=r(i.TypedArrayPrototype.sort);c("toSorted",(function(e){void 0!==e&&a(e);var t=s(this),n=o(l(t),t);return u(n,e)}))},6149:function(e,t,n){"use strict";var i=n(61807),r=n(42740),a=n(46227),o=n(95370),s=n(38116),l=r.aTypedArray,c=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();u("with",{with:function(e,t){var n=l(this),r=o(e),u=a(n)?s(t):+t;return i(n,c(n),r,u)}}["with"],!h)},39928:function(e,t,n){var i=n(10855),r=n(77482),a=n(12335).clear;i({global:!0,bind:!0,enumerable:!0,forced:r.clearImmediate!==a},{clearImmediate:a})},96158:function(e,t,n){"use strict";var i=n(10855),r=n(77482),a=n(46437),o=n(10473),s=n(51951).f,l=n(85573),c=n(50597),u=n(36117),h=n(81514),d=n(57534),p=n(3429),f=n(67190),m=n(12785),g="DOMException",v=a("Error"),y=a(g),_=function(){c(this,x);var e=arguments.length,t=h(e<1?void 0:arguments[0]),n=h(e<2?void 0:arguments[1],"Error"),i=new y(t,n),r=v(t);return r.name=g,s(i,"stack",o(1,p(r.stack,1))),u(i,this,_),i},x=_.prototype=y.prototype,b="stack"in v(g),w="stack"in new y(1,2),S=y&&f&&Object.getOwnPropertyDescriptor(r,g),M=!!S&&!(S.writable&&S.configurable),C=b&&!M&&!w;i({global:!0,constructor:!0,forced:m||C},{DOMException:C?_:y});var T=a(g),E=T.prototype;if(E.constructor!==T)for(var A in m||s(E,"constructor",o(1,T)),d)if(l(d,A)){var k=d[A],D=k.s;l(T,D)||s(T,D,o(6,k.c))}},32937:function(e,t,n){n(39928),n(98337)},98337:function(e,t,n){var i=n(10855),r=n(77482),a=n(12335).set,o=n(74384),s=r.setImmediate?o(a,!1):a;i({global:!0,bind:!0,enumerable:!0,forced:r.setImmediate!==s},{setImmediate:s})},13296:function(e,t,n){"use strict";var i=n(99994),r=n(45665),a=n(47607),o=n(56091),s=URLSearchParams,l=s.prototype,c=r(l.append),u=r(l["delete"]),h=r(l.forEach),d=r([].push),p=new s("a=1&a=2");p["delete"]("a",1),p+""!=="a=2"&&i(l,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return u(this,e);var i=[];h(this,(function(e,t){d(i,{key:t,value:e})})),o(t,1);var r,s=a(e),l=a(n),p=0,f=0,m=!1,g=i.length;while(p<g)r=i[p++],m||r.key===s?(m=!0,u(this,r.key)):f++;while(f<g)r=i[f++],r.key===s&&r.value===l||c(this,r.key,r.value)}),{enumerable:!0,unsafe:!0})},28078:function(e,t,n){"use strict";var i=n(99994),r=n(45665),a=n(47607),o=n(56091),s=URLSearchParams,l=s.prototype,c=r(l.getAll),u=r(l.has),h=new s("a=1");h.has("a",2)&&i(l,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return u(this,e);var i=c(this,e);o(t,1);var r=a(n),s=0;while(s<i.length)if(i[s++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})},15454:function(e,t,n){"use strict";var i=n(67190),r=n(45665),a=n(43914),o=URLSearchParams.prototype,s=r(o.forEach);i&&!("size"in o)&&a(o,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},87187:function(e,t,n){"use strict";n(70252);var i=function(e){return r(e)&&!a(e)};function r(e){return!!e&&"object"===typeof e}function a(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var o="function"===typeof Symbol&&Symbol.for,s=o?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===s}function c(e){return Array.isArray(e)?[]:{}}function u(e,t){var n=t&&!0===t.clone;return n&&i(e)?p(c(e),e,t):e}function h(e,t,n){var r=e.slice();return t.forEach((function(t,a){"undefined"===typeof r[a]?r[a]=u(t,n):i(t)?r[a]=p(e[a],t,n):-1===e.indexOf(t)&&r.push(u(t,n))})),r}function d(e,t,n){var r={};return i(e)&&Object.keys(e).forEach((function(t){r[t]=u(e[t],n)})),Object.keys(t).forEach((function(a){i(t[a])&&e[a]?r[a]=p(e[a],t[a],n):r[a]=u(t[a],n)})),r}function p(e,t,n){var i=Array.isArray(t),r=Array.isArray(e),a=n||{arrayMerge:h},o=i===r;if(o){if(i){var s=a.arrayMerge||h;return s(e,t,n)}return d(e,t,n)}return u(t,n)}p.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return p(e,n,t)}))};var f=p;e.exports=f},68548:function(e,t,n){var i=n(63321);(function(){for(var e in i){if(null==i||!i.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=i[e]}})();var r=n(21223);(function(){for(var e in r){if(null==r||!r.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=r[e]}})(),n(10368),n(21141),n(33613),n(44665),n(20382),n(51493),n(4),n(51046),n(44786),n(56564),n(86016),n(35961),n(98018),n(70397),n(72613),n(67093),n(96989),n(83507),n(93487),n(55625),n(34731),n(55043),n(95904),n(35995),n(95029),n(54740),n(2589),n(12544),n(38962),n(34602),n(69848),n(81573),n(73189),n(49620),n(62949),n(39219),n(27483),n(85838),n(67364),n(38344),n(46280),n(16006),n(18604),n(17655),n(51121),n(67362),n(93742),n(68938),n(37474)},71479:function(e,t,n){var i=n(16949),r={};function a(){this._coordinateSystems=[]}a.prototype={constructor:a,create:function(e,t){var n=[];i.each(r,(function(i,r){var a=i.create(e,t);n=n.concat(a||[])})),this._coordinateSystems=n},update:function(e,t){i.each(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},a.register=function(e,t){r[e]=t},a.get=function(e){return r[e]};var o=a;e.exports=o},5739:function(e,t,n){var i=n(16949),r=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function a(e){i.each(r,(function(t){this[t]=i.bind(e[t],e)}),this)}var o=a;e.exports=o},28433:function(e,t,n){var i=n(63321),r=n(16949);function a(e,t){r.each(t,(function(t){t.update="updateView",i.registerAction(t,(function(n,i){var r={};return i.eachComponent({mainType:"series",subType:e,query:n},(function(e){e[t.method]&&e[t.method](n.name,n.dataIndex);var i=e.getData();i.each((function(t){var n=i.getName(t);r[n]=e.isSelected(n)||!1}))})),{name:n.name,selected:r,seriesId:n.seriesId}}))}))}e.exports=a},4694:function(e,t,n){var i=n(63321),r=n(16949),a=n(64586),o=a.updateCenterAndZoom;i.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){var i=t.coordinateSystem;if("geo"===i.type){var a=o(i,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom),"series"===n&&r.each(t.seriesGroup,(function(e){e.setCenter(a.center),e.setZoom(a.zoom)}))}}))}))},64586:function(e,t){function n(e,t,n){var i=e.getZoom(),r=e.getCenter(),a=t.zoom,o=e.dataToPoint(r);if(null!=t.dx&&null!=t.dy){o[0]-=t.dx,o[1]-=t.dy;r=e.pointToData(o);e.setCenter(r)}if(null!=a){if(n){var s=n.min||0,l=n.max||1/0;a=Math.max(Math.min(i*a,l),s)/i}e.scale[0]*=a,e.scale[1]*=a;var c=e.position,u=(t.originX-c[0])*(a-1),h=(t.originY-c[1])*(a-1);c[0]-=u,c[1]-=h,e.updateTransform();r=e.pointToData(o);e.setCenter(r),e.setZoom(a*i)}return{center:e.getCenter(),zoom:e.getZoom()}}t.updateCenterAndZoom=n},33613:function(e,t,n){var i=n(63321),r=n(16949),a=n(8e4),o=a.layout,s=a.largeLayout;n(88240),n(80789),n(75),n(68115),i.registerLayout(i.PRIORITY.VISUAL.LAYOUT,r.curry(o,"bar")),i.registerLayout(i.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,s),i.registerVisual({seriesType:"bar",reset:function(e){e.getData().setVisual("legendSymbol","roundRect")}})},80789:function(e,t,n){var i=n(71477),r=i.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});e.exports=r},75:function(e,t,n){var i=n(76371),r=(i.__DEV__,n(63321)),a=n(16949),o=n(60823),s=n(53098),l=s.setLabel,c=n(96753),u=n(24483),h=n(85632),d=n(58511),p=n(1199),f=p.throttle,m=n(28824),g=m.createClipPath,v=n(28423),y=["itemStyle","barBorderWidth"],_=[0,0];function x(e,t){var n=e.getArea&&e.getArea();if("cartesian2d"===e.type){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}a.extend(c.prototype,u);var b=r.extendChartView({type:"bar",render:function(e,t,n){this._updateDrawMode(e);var i=e.get("coordinateSystem");return"cartesian2d"!==i&&"polar"!==i||(this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n)),this.group},incrementalPrepareRender:function(e,t,n){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,n,i){this._incrementalRenderLarge(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e,t,n){var i,r=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?i=c.isHorizontal():"polar"===l.type&&(i="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,h=e.get("clip",!0),p=x(l,a);r.removeClipPath();var f=e.get("roundCap",!0),m=e.get("showBackground",!0),g=e.getModel("backgroundStyle"),v=g.get("barBorderRadius")||0,y=[],_=this._backgroundEls||[],b=function(e){var t=A[l.type](a,e),n=z(l,i,t);return n.useStyle(g.getBarItemStyle()),"cartesian2d"===l.type&&n.setShape("r",v),y[e]=n,n};a.diff(s).add((function(t){var n=a.getItemModel(t),o=A[l.type](a,t,n);if(m&&b(t),a.hasValue(t)){if(h){var s=M[l.type](p,o);if(s)return void r.remove(c)}var c=C[l.type](t,o,i,u,!1,f);a.setItemGraphicEl(t,c),r.add(c),D(c,a,t,n,o,e,i,"polar"===l.type)}})).update((function(t,n){var c=a.getItemModel(t),d=A[l.type](a,t,c);if(m){var x;0===_.length?x=b(n):(x=_[n],x.useStyle(g.getBarItemStyle()),"cartesian2d"===l.type&&x.setShape("r",v),y[t]=x);var w=A[l.type](a,t),S=B(i,w,l);o.updateProps(x,{shape:S},u,t)}var T=s.getItemGraphicEl(n);if(a.hasValue(t)){if(h){var E=M[l.type](p,d);if(E)return void r.remove(T)}T?o.updateProps(T,{shape:d},u,t):T=C[l.type](t,d,i,u,!0,f),a.setItemGraphicEl(t,T),r.add(T),D(T,a,t,c,d,e,i,"polar"===l.type)}else r.remove(T)})).remove((function(e){var t=s.getItemGraphicEl(e);"cartesian2d"===l.type?t&&T(e,u,t):t&&E(e,u,t)})).execute();var w=this._backgroundGroup||(this._backgroundGroup=new d);w.removeAll();for(var S=0;S<y.length;++S)w.add(y[S]);r.add(w),this._backgroundEls=y,this._data=a},_renderLarge:function(e,t,n){this._clear(),O(e,this.group);var i=e.get("clip",!0)?g(e.coordinateSystem,!1,e):null;i?this.group.setClipPath(i):this.group.removeClipPath()},_incrementalRenderLarge:function(e,t){this._removeBackground(),O(t,this.group,!0)},dispose:a.noop,remove:function(e){this._clear(e)},_clear:function(e){var t=this.group,n=this._data;e&&e.get("animation")&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){"sector"===t.type?E(t.dataIndex,e,t):T(t.dataIndex,e,t)}))):t.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),w=Math.max,S=Math.min,M={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=w(t.x,e.x),a=S(t.x+t.width,e.x+e.width),o=w(t.y,e.y),s=S(t.y+t.height,e.y+e.height);t.x=r,t.y=o,t.width=a-r,t.height=s-o;var l=t.width<0||t.height<0;return n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),l},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}i=S(t.r,e.r);var r=w(t.r0,e.r0);t.r=i,t.r0=r;var a=i-r<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return a}},C={cartesian2d:function(e,t,n,i,r){var s=new o.Rect({shape:a.extend({},t),z2:1});if(s.name="item",i){var l=s.shape,c=n?"height":"width",u={};l[c]=0,u[c]=t[c],o[r?"updateProps":"initProps"](s,{shape:u},i,e)}return s},polar:function(e,t,n,i,r,s){var l=t.startAngle<t.endAngle,c=!n&&s?v:o.Sector,u=new c({shape:a.defaults({clockwise:l},t),z2:1});if(u.name="item",i){var h=u.shape,d=n?"r":"endAngle",p={};h[d]=n?0:t.startAngle,p[d]=t[d],o[r?"updateProps":"initProps"](u,{shape:p},i,e)}return u}};function T(e,t,n){n.style.text=null,o.updateProps(n,{shape:{width:0}},t,e,(function(){n.parent&&n.parent.remove(n)}))}function E(e,t,n){n.style.text=null,o.updateProps(n,{shape:{r:n.shape.r0}},t,e,(function(){n.parent&&n.parent.remove(n)}))}var A={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),r=n?I(n,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*r/2,y:i.y+o*r/2,width:i.width-a*r,height:i.height-o*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function k(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function D(e,t,n,i,r,s,c,u){var h=t.getItemVisual(n,"color"),d=t.getItemVisual(n,"opacity"),p=t.getVisual("borderColor"),f=i.getModel("itemStyle"),m=i.getModel("emphasis.itemStyle").getBarItemStyle();u||e.setShape("r",f.get("barBorderRadius")||0),e.useStyle(a.defaults({stroke:k(r)?"none":p,fill:k(r)?"none":h,opacity:d},f.getBarItemStyle()));var g=i.getShallow("cursor");g&&e.attr("cursor",g);var v=c?r.height>0?"bottom":"top":r.width>0?"left":"right";u||l(e.style,m,i,h,s,n,v),k(r)&&(m.fill=m.stroke="none"),o.setHoverStyle(e,m)}function I(e,t){var n=e.get(y)||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),r=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,r)}var P=h.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var n=t.points,i=this.__startPoint,r=this.__baseDimIdx,a=0;a<n.length;a+=2)i[r]=n[a+r],e.moveTo(i[0],i[1]),e.lineTo(n[a],n[a+1])}});function O(e,t,n){var i=e.getData(),r=[],a=i.getLayout("valueAxisHorizontal")?1:0;r[1-a]=i.getLayout("valueAxisStart");var o=i.getLayout("largeDataIndices"),s=i.getLayout("barWidth"),l=e.getModel("backgroundStyle"),c=e.get("showBackground",!0);if(c){var u=i.getLayout("largeBackgroundPoints"),h=[];h[1-a]=i.getLayout("backgroundStart");var d=new P({shape:{points:u},incremental:!!n,__startPoint:h,__baseDimIdx:a,__largeDataIndices:o,__barWidth:s,silent:!0,z2:0});F(d,l,i),t.add(d)}var p=new P({shape:{points:i.getLayout("largePoints")},incremental:!!n,__startPoint:r,__baseDimIdx:a,__largeDataIndices:o,__barWidth:s});t.add(p),N(p,e,i),p.seriesIndex=e.seriesIndex,e.get("silent")||(p.on("mousedown",L),p.on("mousemove",L))}var L=f((function(e){var t=this,n=R(t,e.offsetX,e.offsetY);t.dataIndex=n>=0?n:null}),30,!1);function R(e,t,n){var i=e.__baseDimIdx,r=1-i,a=e.shape.points,o=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),l=e.__startPoint[r];_[0]=t,_[1]=n;for(var c=_[i],u=_[1-i],h=c-s,d=c+s,p=0,f=a.length/2;p<f;p++){var m=2*p,g=a[m+i],v=a[m+r];if(g>=h&&g<=d&&(l<=v?u>=l&&u<=v:u>=v&&u<=l))return o[p]}return-1}function N(e,t,n){var i=n.getVisual("borderColor")||n.getVisual("color"),r=t.getModel("itemStyle").getItemStyle(["color","borderColor"]);e.useStyle(r),e.style.fill=null,e.style.stroke=i,e.style.lineWidth=n.getLayout("barWidth")}function F(e,t,n){var i=t.get("borderColor")||t.get("color"),r=t.getItemStyle(["color","borderColor"]);e.useStyle(r),e.style.fill=null,e.style.stroke=i,e.style.lineWidth=n.getLayout("barWidth")}function B(e,t,n){var i,r="polar"===n.type;return i=r?n.getArea():n.grid.getRect(),r?{cx:i.cx,cy:i.cy,r0:e?i.r0:t.r0,r:e?i.r:t.r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}:{x:e?t.x:i.x,y:e?i.y:t.y,width:e?t.width:i.width,height:e?i.height:t.height}}function z(e,t,n){var i="polar"===e.type?o.Sector:o.Rect;return new i({shape:B(t,n,e),silent:!0,z2:0})}e.exports=b},71477:function(e,t,n){var i=n(21987),r=n(84305),a=i.extend({type:"series.__base_bar__",getInitialData:function(e,t){return r(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var n=t.dataToPoint(t.clampData(e)),i=this.getData(),r=i.getLayout("offset"),a=i.getLayout("size"),o=t.getBaseAxis().isHorizontal()?0:1;return n[o]+=r+a/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});e.exports=a},7398:function(e,t,n){var i=n(71477),r=i.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(e){return e.stack=null,r.superApply(this,"getInitialData",arguments)}}),a=r;e.exports=a},241:function(e,t,n){n(70252);var i=n(63321),r=n(16949),a=n(60823),o=n(2760),s=o.createSymbol,l=n(80720),c=l.parsePercent,u=l.isNumeric,h=n(53098),d=h.setLabel,p=["itemStyle","borderWidth"],f=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],m=new a.Circle,g=i.extendChartView({type:"pictorialBar",render:function(e,t,n){var i=this.group,r=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis(),l=!!s.isHorizontal(),c=o.grid.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:f[+l],categoryDim:f[1-l]};return r.diff(a).add((function(e){if(r.hasValue(e)){var t=A(r,e),n=v(r,e,t,u),a=P(r,u,n);r.setItemGraphicEl(e,a),i.add(a),B(a,u,n)}})).update((function(e,t){var n=a.getItemGraphicEl(t);if(r.hasValue(e)){var o=A(r,e),s=v(r,e,o,u),l=R(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(e,null),n=null),n?O(n,u,s):n=P(r,u,s,!0),r.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),B(n,u,s)}else i.remove(n)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&L(a,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=r,this.group},dispose:r.noop,remove:function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){L(i,t.dataIndex,e,t)})):n.removeAll()}});function v(e,t,n,i){var a=e.getItemLayout(t),o=n.get("symbolRepeat"),s=n.get("symbolClip"),l=n.get("symbolPosition")||"start",u=n.get("symbolRotate"),h=(u||0)*Math.PI/180||0,d=n.get("symbolPatternSize")||2,p=n.isAnimationEnabled(),f={dataIndex:t,layout:a,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",color:e.getItemVisual(t,"color"),symbolClip:s,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:d,rotation:h,animationModel:p?n:null,hoverAnimation:p&&n.get("hoverAnimation"),z2:n.getShallow("z",!0)||0};y(n,o,a,i,f),x(e,t,a,o,s,f.boundingLength,f.pxSign,d,i,f),b(n,f.symbolScale,h,i,f);var m=f.symbolSize,g=n.get("symbolOffset");return r.isArray(g)&&(g=[c(g[0],m[0]),c(g[1],m[1])]),w(n,m,a,o,s,g,l,f.valueLineWidth,f.boundingLength,f.repeatCutLength,i,f),f}function y(e,t,n,i,a){var o,s=i.valueDim,l=e.get("symbolBoundingData"),c=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=c.toGlobalCoord(c.dataToCoord(0)),h=1-+(n[s.wh]<=0);if(r.isArray(l)){var d=[_(c,l[0])-u,_(c,l[1])-u];d[1]<d[0]&&d.reverse(),o=d[h]}else o=null!=l?_(c,l)-u:t?i.coordSysExtent[s.index][h]-u:n[s.wh];a.boundingLength=o,t&&(a.repeatCutLength=n[s.wh]),a.pxSign=o>0?1:o<0?-1:0}function _(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function x(e,t,n,i,a,o,s,l,u,h){var d=u.valueDim,p=u.categoryDim,f=Math.abs(n[p.wh]),m=e.getItemVisual(t,"symbolSize");r.isArray(m)?m=m.slice():(null==m&&(m="100%"),m=[m,m]),m[p.index]=c(m[p.index],f),m[d.index]=c(m[d.index],i?f:Math.abs(o)),h.symbolSize=m;var g=h.symbolScale=[m[0]/l,m[1]/l];g[d.index]*=(u.isHorizontal?-1:1)*s}function b(e,t,n,i,r){var a=e.get(p)||0;a&&(m.attr({scale:t.slice(),rotation:n}),m.updateTransform(),a/=m.getLineScale(),a*=t[i.valueDim.index]),r.valueLineWidth=a}function w(e,t,n,i,a,o,s,l,h,d,p,f){var m=p.categoryDim,g=p.valueDim,v=f.pxSign,y=Math.max(t[g.index]+l,0),_=y;if(i){var x=Math.abs(h),b=r.retrieve(e.get("symbolMargin"),"15%")+"",w=!1;b.lastIndexOf("!")===b.length-1&&(w=!0,b=b.slice(0,b.length-1)),b=c(b,t[g.index]);var S=Math.max(y+2*b,0),M=w?0:2*b,C=u(i),T=C?i:z((x+M)/S),E=x-T*y;b=E/2/(w?T:T-1),S=y+2*b,M=w?0:2*b,C||"fixed"===i||(T=d?z((Math.abs(d)+M)/S):0),_=T*S-M,f.repeatTimes=T,f.symbolMargin=b}var A=v*(_/2),k=f.pathPosition=[];k[m.index]=n[m.wh]/2,k[g.index]="start"===s?A:"end"===s?h-A:h/2,o&&(k[0]+=o[0],k[1]+=o[1]);var D=f.bundlePosition=[];D[m.index]=n[m.xy],D[g.index]=n[g.xy];var I=f.barRectShape=r.extend({},n);I[g.wh]=v*Math.max(Math.abs(n[g.wh]),Math.abs(k[g.index]+A)),I[m.wh]=n[m.wh];var P=f.clipShape={};P[m.xy]=-n[m.xy],P[m.wh]=p.ecSize[m.wh],P[g.xy]=0,P[g.wh]=n[g.wh]}function S(e){var t=e.symbolPatternSize,n=s(e.symbolType,-t/2,-t/2,t,t,e.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function M(e,t,n,i){var r=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,h=a[t.valueDim.index]+o+2*n.symbolMargin;for(N(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u<c?F(e,null,f(u),n,i):F(e,null,{scale:[0,0]},n,i,(function(){r.remove(e)})),I(e,n),u++}));u<c;u++){var d=S(n);d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=c,r.add(d);var p=f(u);F(d,{position:p.position,scale:[0,0]},{scale:p.scale,rotation:p.rotation},n,i),d.on("mouseover",m).on("mouseout",g),I(d,n)}function f(e){var t=s.slice(),i=n.pxSign,r=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=c-1-e),t[l.index]=h*(r-c/2+.5)+s[l.index],{position:t,scale:n.symbolScale.slice(),rotation:n.rotation}}function m(){N(e,(function(e){e.trigger("emphasis")}))}function g(){N(e,(function(e){e.trigger("normal")}))}}function C(e,t,n,i){var r=e.__pictorialBundle,a=e.__pictorialMainPath;function o(){this.trigger("emphasis")}function s(){this.trigger("normal")}a?F(a,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,i):(a=e.__pictorialMainPath=S(n),r.add(a),F(a,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,i),a.on("mouseover",o).on("mouseout",s)),I(a,n)}function T(e,t,n){var i=r.extend({},t.barRectShape),o=e.__pictorialBarRect;o?F(o,null,{shape:i},t,n):(o=e.__pictorialBarRect=new a.Rect({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(o))}function E(e,t,n,i){if(n.symbolClip){var o=e.__pictorialClipPath,s=r.extend({},n.clipShape),l=t.valueDim,c=n.animationModel,u=n.dataIndex;if(o)a.updateProps(o,{shape:s},c,u);else{s[l.wh]=0,o=new a.Rect({shape:s}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var h={};h[l.wh]=n.clipShape[l.wh],a[i?"updateProps":"initProps"](o,{shape:h},c,u)}}}function A(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=k,n.isAnimationEnabled=D,n}function k(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function D(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function I(e,t){e.off("emphasis").off("normal");var n=t.symbolScale.slice();t.hoverAnimation&&e.on("emphasis",(function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:n.slice()},400,"elasticOut")}))}function P(e,t,n,i){var r=new a.Group,o=new a.Group;return r.add(o),r.__pictorialBundle=o,o.attr("position",n.bundlePosition.slice()),n.symbolRepeat?M(r,t,n):C(r,t,n),T(r,n,i),E(r,t,n,i),r.__pictorialShapeStr=R(e,n),r.__pictorialSymbolMeta=n,r}function O(e,t,n){var i=n.animationModel,r=n.dataIndex,o=e.__pictorialBundle;a.updateProps(o,{position:n.bundlePosition.slice()},i,r),n.symbolRepeat?M(e,t,n,!0):C(e,t,n,!0),T(e,n,!0),E(e,t,n,!0)}function L(e,t,n,i){var o=i.__pictorialBarRect;o&&(o.style.text=null);var s=[];N(i,(function(e){s.push(e)})),i.__pictorialMainPath&&s.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),r.each(s,(function(e){a.updateProps(e,{scale:[0,0]},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function R(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function N(e,t,n){r.each(e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function F(e,t,n,i,r,o){t&&e.attr(t),i.symbolClip&&!r?n&&e.attr(n):n&&a[r?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,o)}function B(e,t,n){var i=n.color,o=n.dataIndex,s=n.itemModel,l=s.getModel("itemStyle").getItemStyle(["color"]),c=s.getModel("emphasis.itemStyle").getItemStyle(),u=s.getShallow("cursor");N(e,(function(e){e.setColor(i),e.setStyle(r.defaults({fill:i,opacity:n.opacity},l)),a.setHoverStyle(e,c),u&&(e.cursor=u),e.z2=n.z2}));var h={},p=t.valueDim.posDesc[+(n.boundingLength>0)],f=e.__pictorialBarRect;d(f.style,h,s,i,t.seriesModel,o,p),a.setHoverStyle(f,h)}function z(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var V=g;e.exports=V},24483:function(e,t,n){var i=n(15827),r=i([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),a={getBarItemStyle:function(e){var t=r(this,e);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(t.lineDash=n)}return t}};e.exports=a},53098:function(e,t,n){var i=n(60823),r=n(38283),a=r.getDefaultLabel;function o(e,t,n,r,o,l,c){var u=n.getModel("label"),h=n.getModel("emphasis.label");i.setLabelStyle(e,t,u,h,{labelFetcher:o,labelDataIndex:l,defaultText:a(o.getData(),l),isRectText:!0,autoColor:r}),s(e),s(t)}function s(e,t){"outside"===e.textPosition&&(e.textPosition=t)}t.setLabel=o},72613:function(e,t,n){var i=n(63321);n(76009),n(71309);var r=n(85048),a=n(47347);i.registerVisual(r),i.registerLayout(a)},76009:function(e,t,n){var i=n(16949),r=n(21987),a=n(68490),o=a.seriesModelMixin,s=r.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}});i.mixin(s,o,!0);var l=s;e.exports=l},71309:function(e,t,n){var i=n(16949),r=n(76666),a=n(60823),o=n(85632),s=["itemStyle"],l=["emphasis","itemStyle"],c=r.extend({type:"boxplot",render:function(e,t,n){var i=e.getData(),r=this.group,a=this._data;this._data||r.removeAll();var o="horizontal"===e.get("layout")?1:0;i.diff(a).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=h(t,i,e,o,!0);i.setItemGraphicEl(e,n),r.add(n)}})).update((function(e,t){var n=a.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?d(s,n,i,e):n=h(s,i,e,o),r.add(n),i.setItemGraphicEl(e,n)}else r.remove(n)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=i},remove:function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},dispose:i.noop}),u=o.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])}});function h(e,t,n,i,r){var a=e.ends,o=new u({shape:{points:r?p(a,i,e):a}});return d(e,o,t,n,r),o}function d(e,t,n,i,r){var o=n.hostModel,c=a[r?"initProps":"updateProps"];c(t,{shape:{points:e.ends}},o,i);var u=n.getItemModel(i),h=u.getModel(s),d=n.getItemVisual(i,"color"),p=h.getItemStyle(["borderColor"]);p.stroke=d,p.strokeNoScale=!0,t.useStyle(p),t.z2=100;var f=u.getModel(l).getItemStyle();a.setHoverStyle(t,f)}function p(e,t,n){return i.map(e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}var f=c;e.exports=f},47347:function(e,t,n){n(70252);var i=n(16949),r=n(80720),a=r.parsePercent,o=i.each;function s(e){var t=l(e);o(t,(function(e){var t=e.seriesModels;t.length&&(c(e),o(t,(function(t,n){u(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function l(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var r=e.getBaseAxis(),a=i.indexOf(n,r);a<0&&(a=n.length,n[a]=r,t[a]={axis:r,seriesModels:[]}),t[a].seriesModels.push(e)})),t}function c(e){var t,n,r=e.axis,s=e.seriesModels,l=s.length,c=e.boxWidthList=[],u=e.boxOffsetList=[],h=[];if("category"===r.type)n=r.getBandWidth();else{var d=0;o(s,(function(e){d=Math.max(d,e.getData().count())})),t=r.getExtent(),Math.abs(t[1]-t[0])}o(s,(function(e){var t=e.get("boxWidth");i.isArray(t)||(t=[t,t]),h.push([a(t[0],n)||0,a(t[1],n)||0])}));var p=.8*n-2,f=p/l*.3,m=(p-f*(l-1))/l,g=m/2-p/2;o(s,(function(e,t){u.push(g),g+=f+m,c.push(Math.min(Math.max(m,h[t][0]),h[t][1]))}))}function u(e,t,n){var i=e.coordinateSystem,r=e.getData(),a=n/2,o="horizontal"===e.get("layout")?0:1,s=1-o,l=["x","y"],c=r.mapDimension(l[o]),u=r.mapDimension(l[s],!0);if(!(null==c||u.length<5))for(var h=0;h<r.count();h++){var d=r.get(c,h),p=_(d,u[2],h),f=_(d,u[0],h),m=_(d,u[1],h),g=_(d,u[3],h),v=_(d,u[4],h),y=[];x(y,m,0),x(y,g,1),y.push(f,m,v,g),b(y,f),b(y,v),b(y,p),r.setItemLayout(h,{initBaseline:p[s],ends:y})}function _(e,n,a){var l,c=r.get(n,a),u=[];return u[o]=e,u[s]=c,isNaN(e)||isNaN(c)?l=[NaN,NaN]:(l=i.dataToPoint(u),l[o]+=t),l}function x(e,t,n){var i=t.slice(),r=t.slice();i[o]+=a,r[o]-=a,n?e.push(i,r):e.push(r,i)}function b(e,t){var n=t.slice(),i=t.slice();n[o]-=a,i[o]+=a,e.push(n,i)}}e.exports=s},85048:function(e){var t=["itemStyle","borderColor"];function n(e,n){var i=e.get("color");e.eachRawSeriesByType("boxplot",(function(n){var r=i[n.seriesIndex%i.length],a=n.getData();a.setVisual({legendSymbol:"roundRect",color:n.get(t)||r}),e.isSeriesFiltered(n)||a.each((function(e){var n=a.getItemModel(e);a.setItemVisual(e,{color:n.get(t,!0)})}))}))}e.exports=n},67093:function(e,t,n){var i=n(63321);n(98628),n(15398);var r=n(23983),a=n(32126),o=n(76938);i.registerPreprocessor(r),i.registerVisual(a),i.registerLayout(o)},98628:function(e,t,n){var i=n(16949),r=n(21987),a=n(68490),o=a.seriesModelMixin,s=r.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)}});i.mixin(s,o,!0);var l=s;e.exports=l},15398:function(e,t,n){var i=n(16949),r=n(76666),a=n(60823),o=n(85632),s=n(28824),l=s.createClipPath,c=["itemStyle"],u=["emphasis","itemStyle"],h=["color","color0","borderColor","borderColor0"],d=r.extend({type:"candlestick",render:function(e,t,n){this.group.removeClipPath(),this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},incrementalPrepareRender:function(e,t,n){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,n,i){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e){var t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),o=e.get("clip",!0),s=e.coordinateSystem,l=s.getArea&&s.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var s,c=t.getItemLayout(n);if(o&&m(l,c))return;s=f(c,n,!0),a.initProps(s,{shape:{points:c.ends}},e,n),g(s,t,n,r),i.add(s),t.setItemGraphicEl(n,s)}})).update((function(s,c){var u=n.getItemGraphicEl(c);if(t.hasValue(s)){var h=t.getItemLayout(s);o&&m(l,h)?i.remove(u):(u?a.updateProps(u,{shape:{points:h.ends}},e,s):u=f(h,s),g(u,t,s,r),i.add(u),t.setItemGraphicEl(s,u))}else i.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},_renderLarge:function(e){this._clear(),_(e,this.group);var t=e.get("clip",!0)?l(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},_incrementalRenderNormal:function(e,t){var n,i=t.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var a,o=i.getItemLayout(n);a=f(o,n),g(a,i,n,r),a.incremental=!0,this.group.add(a)}},_incrementalRenderLarge:function(e,t){_(t,this.group,!0)},remove:function(e){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:i.noop}),p=o.extend({type:"normalCandlestickBox",shape:{},buildPath:function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))}});function f(e,t,n){var i=e.ends;return new p({shape:{points:n?v(i,e):i},z2:100})}function m(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function g(e,t,n,i){var r=t.getItemModel(n),o=r.getModel(c),s=t.getItemVisual(n,"color"),l=t.getItemVisual(n,"borderColor")||s,d=o.getItemStyle(h);e.useStyle(d),e.style.strokeNoScale=!0,e.style.fill=s,e.style.stroke=l,e.__simpleBox=i;var p=r.getModel(u).getItemStyle();a.setHoverStyle(e,p)}function v(e,t){return i.map(e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var y=o.extend({type:"largeCandlestickBox",shape:{},buildPath:function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];e.moveTo(r,n[i++]),e.lineTo(r,n[i++])}else i+=3}});function _(e,t,n){var i=e.getData(),r=i.getLayout("largePoints"),a=new y({shape:{points:r},__sign:1});t.add(a);var o=new y({shape:{points:r},__sign:-1});t.add(o),x(1,a,e,i),x(-1,o,e,i),n&&(a.incremental=!0,o.incremental=!0)}function x(e,t,n,i){var r=e>0?"P":"N",a=i.getVisual("borderColor"+r)||i.getVisual("color"+r),o=n.getModel(c).getItemStyle(h);t.useStyle(o),t.style.fill=null,t.style.stroke=a}var b=d;e.exports=b},76938:function(e,t,n){n(66554),n(46293),n(6149),n(70252);var i=n(60823),r=i.subPixelOptimize,a=n(38247),o=n(80720),s=o.parsePercent,l=n(16949),c=l.retrieve2,u="undefined"!==typeof Float32Array?Float32Array:Array,h={seriesType:"candlestick",plan:a(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=p(e,n),a=0,o=1,s=["x","y"],l=n.mapDimension(s[a]),c=n.mapDimension(s[o],!0),h=c[0],f=c[1],m=c[2],g=c[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==l||c.length<4))return{progress:e.pipelineContext.large?y:v};function v(e,n){var s;while(null!=(s=e.next())){var c=n.get(l,s),u=n.get(h,s),p=n.get(f,s),v=n.get(m,s),y=n.get(g,s),_=Math.min(u,p),x=Math.max(u,p),b=T(_,c),w=T(x,c),S=T(v,c),M=T(y,c),C=[];E(C,w,0),E(C,b,1),C.push(k(M),k(w),k(S),k(b)),n.setItemLayout(s,{sign:d(n,s,u,p,f),initBaseline:u>p?w[o]:b[o],ends:C,brushRect:A(v,y,c)})}function T(e,n){var i=[];return i[a]=n,i[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function E(e,t,n){var o=t.slice(),s=t.slice();o[a]=r(o[a]+i/2,1,!1),s[a]=r(s[a]-i/2,1,!0),n?e.push(o,s):e.push(s,o)}function A(e,t,n){var r=T(e,n),s=T(t,n);return r[a]-=i/2,s[a]-=i/2,{x:r[0],y:r[1],width:o?i:s[0]-r[0],height:o?s[1]-r[1]:i}}function k(e){return e[a]=r(e[a],1),e}}function y(e,n){var i,r,s=new u(4*e.count),c=0,p=[],v=[];while(null!=(r=e.next())){var y=n.get(l,r),_=n.get(h,r),x=n.get(f,r),b=n.get(m,r),w=n.get(g,r);isNaN(y)||isNaN(b)||isNaN(w)?(s[c++]=NaN,c+=3):(s[c++]=d(n,r,_,x,f),p[a]=y,p[o]=b,i=t.dataToPoint(p,null,v),s[c++]=i?i[0]:NaN,s[c++]=i?i[1]:NaN,p[o]=w,i=t.dataToPoint(p,null,v),s[c++]=i?i[1]:NaN)}n.setLayout("largePoints",s)}}};function d(e,t,n,i,r){var a;return a=n>i?-1:n<i?1:t>0?e.get(r,t-1)<=i?1:-1:1,a}function p(e,t){var n,i=e.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=s(c(e.get("barMaxWidth"),r),r),o=s(c(e.get("barMinWidth"),1),r),l=e.get("barWidth");return null!=l?s(l,r):Math.max(Math.min(r/2,a),o)}e.exports=h},32126:function(e,t,n){var i=n(38247),r=["itemStyle","borderColor"],a=["itemStyle","borderColor0"],o=["itemStyle","color"],s=["itemStyle","color0"],l={seriesType:"candlestick",plan:i(),performRawSeries:!0,reset:function(e,t){var n=e.getData();if(n.setVisual({legendSymbol:"roundRect",colorP:c(1,e),colorN:c(-1,e),borderColorP:u(1,e),borderColorN:u(-1,e)}),!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:l}}function l(e,t){var n;while(null!=(n=e.next())){var i=t.getItemModel(n),r=t.getItemLayout(n).sign;t.setItemVisual(n,{color:c(r,i),borderColor:u(r,i)})}}function c(e,t){return t.get(e>0?o:s)}function u(e,t){return t.get(e>0?r:a)}}};e.exports=l},23983:function(e,t,n){var i=n(16949);function r(e){e&&i.isArray(e.series)&&i.each(e.series,(function(e){i.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}e.exports=r},95904:function(e,t,n){var i=n(76371),r=(i.__DEV__,n(16949)),a=n(60823),o=n(38283),s=o.getDefaultLabel,l=n(84305),c=n(8e4),u=c.getLayoutOnAxis,h=n(60339),d=n(21987),p=n(96753),f=n(76666),m=n(28824),g=m.createClipPath,v=n(12770),y=n(6140),_=n(7209),x=n(23645),b=n(27163),w=a.CACHED_LABEL_STYLE_PROPERTIES,S=["itemStyle"],M=["emphasis","itemStyle"],C=["label"],T=["emphasis","label"],E="e\0\0",A={cartesian2d:v,geo:y,singleAxis:_,polar:x,calendar:b};function k(e){var t,n=e.type;if("path"===n){var i=e.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=$(i);t=a.makePath(o,null,r,i.layout||"center"),t.__customPathData=o}else if("image"===n)t=new a.Image({}),t.__customImagePath=e.style.image;else if("text"===n)t=new a.Text({}),t.__customText=e.style.text;else if("group"===n)t=new a.Group;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var s=a.getShapeClass(n);t=new s}return t.__customGraphicType=n,t.name=e.name,t}function D(e,t,n,i,o,s,l){var c={},u=n.style||{};if(n.shape&&(c.shape=r.clone(n.shape)),n.position&&(c.position=n.position.slice()),n.scale&&(c.scale=n.scale.slice()),n.origin&&(c.origin=n.origin.slice()),n.rotation&&(c.rotation=n.rotation),"image"===e.type&&n.style){var h=c.style={};r.each(["x","y","width","height"],(function(t){I(t,h,u,e.style,s)}))}if("text"===e.type&&n.style){h=c.style={};r.each(["x","y"],(function(t){I(t,h,u,e.style,s)})),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke)}if("group"!==e.type&&(e.useStyle(u),s)){e.style.opacity=0;var d=u.opacity;null==d&&(d=1),a.initProps(e,{style:{opacity:d}},i,t)}s?e.attr(c):a.updateProps(e,c,i,t),n.hasOwnProperty("z2")&&e.attr("z2",n.z2||0),n.hasOwnProperty("silent")&&e.attr("silent",n.silent),n.hasOwnProperty("invisible")&&e.attr("invisible",n.invisible),n.hasOwnProperty("ignore")&&e.attr("ignore",n.ignore),n.hasOwnProperty("info")&&e.attr("info",n.info);var p=n.styleEmphasis;a.setElementHoverStyle(e,p),l&&a.setAsHighDownDispatcher(e,!1!==p)}function I(e,t,n,i,r){null==n[e]||r||(t[e]=n[e],n[e]=i[e])}function P(e,t,n,i){var o=e.get("renderItem"),l=e.coordinateSystem,c={};l&&(c=l.prepareCustoms?l.prepareCustoms():A[l.type](l));var h,d,p,f,m,g=r.defaults({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:x,style:b,styleEmphasis:w,visual:E,barLayout:k,currentSeriesIndices:D,font:I},c.api||{}),v={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:c.coordSys,dataInsideLength:t.count(),encode:O(e.getData())},y=!0;return function(e,n){return h=e,y=!0,o&&o(r.defaults({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},v),g)};function _(e){null==e&&(e=h),y&&(d=t.getItemModel(e),p=d.getModel(C),f=d.getModel(T),m=t.getItemVisual(e,"color"),y=!1)}function x(e,n){return null==n&&(n=h),t.get(t.getDimension(e||0),n)}function b(n,i){null==i&&(i=h),_(i);var o=d.getModel(S).getItemStyle();null!=m&&(o.fill=m);var l=t.getItemVisual(i,"opacity");null!=l&&(o.opacity=l);var c=n?V(n,p):p;return a.setTextStyle(o,c,null,{autoColor:m,isRectText:!0}),o.text=c.getShallow("show")?r.retrieve2(e.getFormattedLabel(i,"normal"),s(t,i)):null,n&&U(o,n),o}function w(n,i){null==i&&(i=h),_(i);var o=d.getModel(M).getItemStyle(),l=n?V(n,f):f;return a.setTextStyle(o,l,null,{isRectText:!0},!0),o.text=l.getShallow("show")?r.retrieve3(e.getFormattedLabel(i,"emphasis"),e.getFormattedLabel(i,"normal"),s(t,i)):null,n&&U(o,n),o}function E(e,n){return null==n&&(n=h),t.getItemVisual(n,e)}function k(e){if(l.getBaseAxis){var t=l.getBaseAxis();return u(r.defaults({axis:t},e),i)}}function D(){return n.getCurrentSeriesIndices()}function I(e){return a.getFont(e,n)}}function O(e){var t={};return r.each(e.dimensions,(function(n,i){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim,o=t[a]=t[a]||[];o[r.coordDimIndex]=i}})),t}function L(e,t,n,i,r,a){return e=R(e,t,n,i,r,a,!0),e&&a.setItemGraphicEl(t,e),e}function R(e,t,n,i,r,a,o){var s=!n;n=n||{};var l=n.type,c=n.shape,u=n.style;if(e&&(s||null!=l&&l!==e.__customGraphicType||"path"===l&&j(c)&&$(c)!==e.__customPathData||"image"===l&&W(u,"image")&&u.image!==e.__customImagePath||"text"===l&&W(c,"text")&&u.text!==e.__customText)&&(r.remove(e),e=null),!s){var h=!e;return!e&&(e=k(n)),D(e,t,n,i,a,h,o),"group"===l&&N(e,t,n,i,a),r.add(e),e}}function N(e,t,n,i,r){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,l="byName"===s||n.diffChildrenByName,c=!1===s;if(o||l||c)if(l)F({oldChildren:e.children()||[],newChildren:a||[],dataIndex:t,animatableModel:i,group:e,data:r});else{c&&e.removeAll();for(var u=0;u<o;u++)a[u]&&R(e.childAt(u),t,a[u],i,e,r)}}function F(e){new h(e.oldChildren,e.newChildren,B,B,e).add(z).update(z).remove(H).execute()}function B(e,t){var n=e&&e.name;return null!=n?n:E+t}function z(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,r=null!=t?n.oldChildren[t]:null;R(r,n.dataIndex,i,n.animatableModel,n.group,n.data)}function V(e,t){var n=new p({},t);return r.each(w,(function(t,i){e.hasOwnProperty(t)&&(n.option[i]=e[t])})),n}function U(e,t){for(var n in t)!t.hasOwnProperty(n)&&w.hasOwnProperty(n)||(e[n]=t[n])}function H(e){var t=this.context,n=t.oldChildren[e];n&&t.group.remove(n)}function $(e){return e&&(e.pathData||e.d)}function j(e){return e&&(e.hasOwnProperty("pathData")||e.hasOwnProperty("d"))}function W(e,t){return e&&e.hasOwnProperty(t)}d.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(e,t){return l(this.getSource(),this)},getDataParams:function(e,t,n){var i=d.prototype.getDataParams.apply(this,arguments);return n&&(i.info=n.info),i}}),f.extend({type:"custom",_data:null,render:function(e,t,n,i){var r=this._data,a=e.getData(),o=this.group,s=P(e,a,t,n);a.diff(r).add((function(t){L(null,t,s(t,i),e,o,a)})).update((function(t,n){var l=r.getItemGraphicEl(n);L(l,t,s(t,i),e,o,a)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&o.remove(t)})).execute();var l=e.get("clip",!0)?g(e.coordinateSystem,!1,e):null;l?o.setClipPath(l):o.removeClipPath(),this._data=a},incrementalPrepareRender:function(e,t,n){this.group.removeAll(),this._data=null},incrementalRender:function(e,t,n,i,r){var a=t.getData(),o=P(t,a,n,i);function s(e){e.isGroup||(e.incremental=!0,e.useHoverLayer=!0)}for(var l=e.start;l<e.end;l++){var c=L(null,l,o(l,r),t,this.group,a);c.traverse(s)}},dispose:r.noop,filterForExposedEvent:function(e,t,n,i){var r=t.element;if(null==r||n.name===r)return!0;while((n=n.parent)&&n!==this.group)if(n.name===r)return!0;return!1}})},96989:function(e,t,n){var i=n(63321);n(15245),n(29172);var r=n(97593),a=n(72423);i.registerVisual(r("effectScatter","circle")),i.registerLayout(a("effectScatter"))},15245:function(e,t,n){var i=n(84305),r=n(21987),a=r.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,t){return i(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});e.exports=a},29172:function(e,t,n){var i=n(63321),r=n(43871),a=n(54348),o=n(16317),s=n(72423),l=i.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new r(a)},render:function(e,t,n){var i=e.getData(),r=this._symbolDraw;r.updateData(i),this.group.add(r.group)},updateTransform:function(e,t,n){var i=e.getData();this.group.dirty();var r=s().reset(e);r.progress&&r.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=o.clone(t.getRoamTransform()),this.group.decomposeTransform())},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t)},dispose:function(){}});e.exports=l},35961:function(e,t,n){var i=n(63321);n(98002),n(98929);var r=n(24032),a=n(63002),o=n(8872);i.registerVisual(r("funnel")),i.registerLayout(a),i.registerProcessor(o("funnel"))},98002:function(e,t,n){n(70252);var i=n(63321),r=n(16949),a=n(66915),o=n(75269),s=o.defaultEmphasis,l=n(59336),c=l.makeSeriesEncodeForNameBased,u=n(72609),h=i.extendSeriesModel({type:"series.funnel",init:function(e){h.superApply(this,"init",arguments),this.legendVisualProvider=new u(r.bind(this.getData,this),r.bind(this.getRawData,this)),this._defaultLabelLine(e)},getInitialData:function(e,t){return a(this,{coordDimensions:["value"],encodeDefaulter:r.curry(c,this)})},_defaultLabelLine:function(e){s(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},getDataParams:function(e){var t=this.getData(),n=h.superCall(this,"getDataParams",e),i=t.mapDimension("value"),r=t.getSum(i);return n.percent=r?+(t.get(i,e)/r*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),d=h;e.exports=d},98929:function(e,t,n){var i=n(60823),r=n(16949),a=n(76666);function o(e,t){i.Group.call(this);var n=new i.Polygon,r=new i.Polyline,a=new i.Text;this.add(n),this.add(r),this.add(a),this.highDownOnUpdate=function(e,t){"emphasis"===t?(r.ignore=r.hoverIgnore,a.ignore=a.hoverIgnore):(r.ignore=r.normalIgnore,a.ignore=a.normalIgnore)},this.updateData(e,t,!0)}var s=o.prototype,l=["itemStyle","opacity"];s.updateData=function(e,t,n){var a=this.childAt(0),o=e.hostModel,s=e.getItemModel(t),c=e.getItemLayout(t),u=e.getItemModel(t).get(l);u=null==u?1:u,a.useStyle({}),n?(a.setShape({points:c.points}),a.setStyle({opacity:0}),i.initProps(a,{style:{opacity:u}},o,t)):i.updateProps(a,{style:{opacity:u},shape:{points:c.points}},o,t);var h=s.getModel("itemStyle"),d=e.getItemVisual(t,"color");a.setStyle(r.defaults({lineJoin:"round",fill:d},h.getItemStyle(["opacity"]))),a.hoverStyle=h.getModel("emphasis").getItemStyle(),this._updateLabel(e,t),i.setHoverStyle(this)},s._updateLabel=function(e,t){var n=this.childAt(1),r=this.childAt(2),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"color");i.updateProps(n,{shape:{points:l.linePoints||l.linePoints}},a,t),i.updateProps(r,{style:{x:l.x,y:l.y}},a,t),r.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var u=o.getModel("label"),h=o.getModel("emphasis.label"),d=o.getModel("labelLine"),p=o.getModel("emphasis.labelLine");c=e.getItemVisual(t,"color");i.setLabelStyle(r.style,r.hoverStyle={},u,h,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:e.getName(t),autoColor:c,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign}),r.ignore=r.normalIgnore=!u.get("show"),r.hoverIgnore=!h.get("show"),n.ignore=n.normalIgnore=!d.get("show"),n.hoverIgnore=!p.get("show"),n.setStyle({stroke:c}),n.setStyle(d.getModel("lineStyle").getLineStyle()),n.hoverStyle=p.getModel("lineStyle").getLineStyle()},r.inherits(o,i.Group);var c=a.extend({type:"funnel",render:function(e,t,n){var i=e.getData(),r=this._data,a=this.group;i.diff(r).add((function(e){var t=new o(i,e);i.setItemGraphicEl(e,t),a.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),a.add(n),i.setItemGraphicEl(e,n)})).remove((function(e){var t=r.getItemGraphicEl(e);a.remove(t)})).execute(),this._data=i},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),u=c;e.exports=u},63002:function(e,t,n){var i=n(76371),r=(i.__DEV__,n(89317)),a=n(80720),o=a.parsePercent,s=a.linearMap;function l(e,t){return r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),r=[],a="ascending"===t,o=0,s=e.count();o<s;o++)r[o]=o;return"function"===typeof t?r.sort(t):"none"!==t&&r.sort((function(e,t){return a?i[e]-i[t]:i[t]-i[e]})),r}function u(e){e.each((function(t){var n,i,r,a,o=e.getItemModel(t),s=o.getModel("label"),l=s.get("position"),c=o.get("orient"),u=o.getModel("labelLine"),h=e.getItemLayout(t),d=h.points,p="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(p)"insideLeft"===l?(i=(d[0][0]+d[3][0])/2+5,r=(d[0][1]+d[3][1])/2,n="left"):"insideRight"===l?(i=(d[1][0]+d[2][0])/2-5,r=(d[1][1]+d[2][1])/2,n="right"):(i=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,r=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,n="center"),a=[[i,r],[i,r]];else{var f,m,g,v,y=u.get("length");"left"===l?(f=(d[3][0]+d[0][0])/2,m=(d[3][1]+d[0][1])/2,g=f-y,i=g-5,n="right"):"right"===l?(f=(d[1][0]+d[2][0])/2,m=(d[1][1]+d[2][1])/2,g=f+y,i=g+5,n="left"):"top"===l?(f=(d[3][0]+d[0][0])/2,m=(d[3][1]+d[0][1])/2,v=m-y,r=v-5,n="center"):"bottom"===l?(f=(d[1][0]+d[2][0])/2,m=(d[1][1]+d[2][1])/2,v=m+y,r=v+5,n="center"):"rightTop"===l?(f="horizontal"===c?d[3][0]:d[1][0],m="horizontal"===c?d[3][1]:d[1][1],"horizontal"===c?(v=m-y,r=v-5,n="center"):(g=f+y,i=g+5,n="top")):"rightBottom"===l?(f=d[2][0],m=d[2][1],"horizontal"===c?(v=m+y,r=v+5,n="center"):(g=f+y,i=g+5,n="bottom")):"leftTop"===l?(f=d[0][0],m="horizontal"===c?d[0][1]:d[1][1],"horizontal"===c?(v=m-y,r=v-5,n="center"):(g=f-y,i=g-5,n="right")):"leftBottom"===l?(f="horizontal"===c?d[1][0]:d[3][0],m="horizontal"===c?d[1][1]:d[2][1],"horizontal"===c?(v=m+y,r=v+5,n="center"):(g=f-y,i=g-5,n="right")):(f=(d[1][0]+d[2][0])/2,m=(d[1][1]+d[2][1])/2,"horizontal"===c?(v=m+y,r=v+5,n="center"):(g=f+y,i=g+5,n="left")),"horizontal"===c?(g=f,i=g):(v=m,r=v),a=[[f,m],[g,v]]}h.label={linePoints:a,x:i,y:r,verticalAlign:"middle",textAlign:n,inside:p}}))}function h(e,t,n){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),i=n.mapDimension("value"),r=e.get("sort"),a=l(e,t),h=c(n,r),d=e.get("orient"),p=a.width,f=a.height,m=a.x,g=a.y,v="horizontal"===d?[o(e.get("minSize"),f),o(e.get("maxSize"),f)]:[o(e.get("minSize"),p),o(e.get("maxSize"),p)],y=n.getDataExtent(i),_=e.get("min"),x=e.get("max");null==_&&(_=Math.min(y[0],0)),null==x&&(x=y[1]);var b=e.get("funnelAlign"),w=e.get("gap"),S="horizontal"===d?p:f,M=(S-w*(n.count()-1))/n.count(),C=function(e,t){if("horizontal"===d){var r,a=n.get(i,e)||0,o=s(a,[_,x],v,!0);switch(b){case"top":r=g;break;case"center":r=g+(f-o)/2;break;case"bottom":r=g+(f-o);break}return[[t,r],[t,r+o]]}a=n.get(i,e)||0;var l,c=s(a,[_,x],v,!0);switch(b){case"left":l=m;break;case"center":l=m+(p-c)/2;break;case"right":l=m+p-c;break}return[[l,t],[l+c,t]]};"ascending"===r&&(M=-M,w=-w,"horizontal"===d?m+=p:g+=f,h=h.reverse());for(var T=0;T<h.length;T++){var E=h[T],A=h[T+1],k=n.getItemModel(E);if("horizontal"===d){var D=k.get("itemStyle.width");null==D?D=M:(D=o(D,p),"ascending"===r&&(D=-D));var I=C(E,m),P=C(A,m+D);m+=D+w,n.setItemLayout(E,{points:I.concat(P.slice().reverse())})}else{var O=k.get("itemStyle.height");null==O?O=M:(O=o(O,f),"ascending"===r&&(O=-O));I=C(E,"horizontal"===d?m:g),P=C(A,"horizontal"===d?m+D:g+O);g+=O+w,n.setItemLayout(E,{points:I.concat(P.slice().reverse())})}}u(n)}))}e.exports=h},86016:function(e,t,n){n(74101),n(29262)},74101:function(e,t,n){var i=n(66915),r=n(21987),a=r.extend({type:"series.gauge",getInitialData:function(e,t){return i(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}}}),o=a;e.exports=o},29262:function(e,t,n){var i=n(49754),r=n(60823),a=n(76666),o=n(80720),s=o.parsePercent,l=o.round,c=o.linearMap;function u(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),a=Math.min(i,r),o=s(n[0],t.getWidth()),l=s(n[1],t.getHeight()),c=s(e.get("radius"),a/2);return{cx:o,cy:l,r:c}}function h(e,t){return t&&("string"===typeof t?e=t.replace("{value}",null!=e?e:""):"function"===typeof t&&(e=t(e))),e}var d=2*Math.PI,p=a.extend({type:"gauge",render:function(e,t,n){this.group.removeAll();var i=e.get("axisLine.lineStyle.color"),r=u(e,n);this._renderMain(e,t,n,i,r)},dispose:function(){},_renderMain:function(e,t,n,i,a){for(var o=this.group,s=e.getModel("axisLine"),l=s.getModel("lineStyle"),c=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,h=-e.get("endAngle")/180*Math.PI,p=(h-u)%d,f=u,m=l.get("width"),g=s.get("show"),v=0;g&&v<i.length;v++){var y=Math.min(Math.max(i[v][0],0),1),_=(h=u+p*y,new r.Sector({shape:{startAngle:f,endAngle:h,cx:a.cx,cy:a.cy,clockwise:c,r0:a.r-m,r:a.r},silent:!0}));_.setStyle({fill:i[v][1]}),_.setStyle(l.getLineStyle(["color","borderWidth","borderColor"])),o.add(_),f=h}var x=function(e){if(e<=0)return i[0][1];for(var t=0;t<i.length;t++)if(i[t][0]>=e&&(0===t?0:i[t-1][0])<e)return i[t][1];return i[t-1][1]};if(!c){var b=u;u=h,h=b}this._renderTicks(e,t,n,x,a,u,h,c),this._renderPointer(e,t,n,x,a,u,h,c),this._renderTitle(e,t,n,x,a),this._renderDetail(e,t,n,x,a)},_renderTicks:function(e,t,n,i,a,o,c,u){for(var d=this.group,p=a.cx,f=a.cy,m=a.r,g=+e.get("min"),v=+e.get("max"),y=e.getModel("splitLine"),_=e.getModel("axisTick"),x=e.getModel("axisLabel"),b=e.get("splitNumber"),w=_.get("splitNumber"),S=s(y.get("length"),m),M=s(_.get("length"),m),C=o,T=(c-o)/b,E=T/w,A=y.getModel("lineStyle").getLineStyle(),k=_.getModel("lineStyle").getLineStyle(),D=0;D<=b;D++){var I=Math.cos(C),P=Math.sin(C);if(y.get("show")){var O=new r.Line({shape:{x1:I*m+p,y1:P*m+f,x2:I*(m-S)+p,y2:P*(m-S)+f},style:A,silent:!0});"auto"===A.stroke&&O.setStyle({stroke:i(D/b)}),d.add(O)}if(x.get("show")){var L=h(l(D/b*(v-g)+g),x.get("formatter")),R=x.get("distance"),N=i(D/b);d.add(new r.Text({style:r.setTextStyle({},x,{text:L,x:I*(m-S-R)+p,y:P*(m-S-R)+f,textVerticalAlign:P<-.4?"top":P>.4?"bottom":"middle",textAlign:I<-.4?"left":I>.4?"right":"center"},{autoColor:N}),silent:!0}))}if(_.get("show")&&D!==b){for(var F=0;F<=w;F++){I=Math.cos(C),P=Math.sin(C);var B=new r.Line({shape:{x1:I*m+p,y1:P*m+f,x2:I*(m-M)+p,y2:P*(m-M)+f},silent:!0,style:k});"auto"===k.stroke&&B.setStyle({stroke:i((D+F/w)/b)}),d.add(B),C+=E}C-=E}else C+=T}},_renderPointer:function(e,t,n,a,o,l,u,h){var d=this.group,p=this._data;if(e.get("pointer.show")){var f=[+e.get("min"),+e.get("max")],m=[l,u],g=e.getData(),v=g.mapDimension("value");g.diff(p).add((function(t){var n=new i({shape:{angle:l}});r.initProps(n,{shape:{angle:c(g.get(v,t),f,m,!0)}},e),d.add(n),g.setItemGraphicEl(t,n)})).update((function(t,n){var i=p.getItemGraphicEl(n);r.updateProps(i,{shape:{angle:c(g.get(v,t),f,m,!0)}},e),d.add(i),g.setItemGraphicEl(t,i)})).remove((function(e){var t=p.getItemGraphicEl(e);d.remove(t)})).execute(),g.eachItemGraphicEl((function(e,t){var n=g.getItemModel(t),i=n.getModel("pointer");e.setShape({x:o.cx,y:o.cy,width:s(i.get("width"),o.r),r:s(i.get("length"),o.r)}),e.useStyle(n.getModel("itemStyle").getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",a(c(g.get(v,t),f,[0,1],!0))),r.setHoverStyle(e,n.getModel("emphasis.itemStyle").getItemStyle())})),this._data=g}else p&&p.eachItemGraphicEl((function(e){d.remove(e)}))},_renderTitle:function(e,t,n,i,a){var o=e.getData(),l=o.mapDimension("value"),u=e.getModel("title");if(u.get("show")){var h=u.get("offsetCenter"),d=a.cx+s(h[0],a.r),p=a.cy+s(h[1],a.r),f=+e.get("min"),m=+e.get("max"),g=e.getData().get(l,0),v=i(c(g,[f,m],[0,1],!0));this.group.add(new r.Text({silent:!0,style:r.setTextStyle({},u,{x:d,y:p,text:o.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:v,forceRich:!0})}))}},_renderDetail:function(e,t,n,i,a){var o=e.getModel("detail"),l=+e.get("min"),u=+e.get("max");if(o.get("show")){var d=o.get("offsetCenter"),p=a.cx+s(d[0],a.r),f=a.cy+s(d[1],a.r),m=s(o.get("width"),a.r),g=s(o.get("height"),a.r),v=e.getData(),y=v.get(v.mapDimension("value"),0),_=i(c(y,[l,u],[0,1],!0));this.group.add(new r.Text({silent:!0,style:r.setTextStyle({},o,{x:p,y:f,text:h(y,o.get("formatter")),textWidth:isNaN(m)?null:m,textHeight:isNaN(g)?null:g,textAlign:"center",textVerticalAlign:"middle"},{autoColor:_,forceRich:!0})}))}}}),f=p;e.exports=f},49754:function(e,t,n){var i=n(85632),r=i.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(e,t){var n=Math.cos,i=Math.sin,r=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=r/3?1:2),l=t.y-i(o)*a*(a>=r/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(o)*a,t.y+i(o)*a),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(o)*a,t.y-i(o)*a),e.lineTo(s,l)}});e.exports=r},56564:function(e,t,n){var i=n(63321);n(44041),n(300),n(61436);var r=n(48524),a=n(97593),o=n(48377),s=n(96707),l=n(68810),c=n(49018),u=n(64648),h=n(40704);i.registerProcessor(r),i.registerVisual(a("graph","circle",null)),i.registerVisual(o),i.registerVisual(s),i.registerLayout(l),i.registerLayout(i.PRIORITY.VISUAL.POST_CHART_LAYOUT,c),i.registerLayout(u),i.registerCoordinateSystem("graphView",{create:h})},44041:function(e,t,n){n(70252);var i=n(63321),r=n(54111),a=n(16949),o=n(75269),s=o.defaultEmphasis,l=n(96753),c=n(68331),u=c.encodeHTML,h=n(56210),d=n(72609),p=n(92837),f=p.initCurvenessList,m=p.createEdgeMapForCurveness,g=i.extendSeriesModel({type:"series.graph",init:function(e){g.superApply(this,"init",arguments);var t=this;function n(){return t._categoriesData}this.legendVisualProvider=new d(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){g.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){g.superApply(this,"mergeDefaultAndTheme",arguments),s(e,["edgeLabel"],["show"])},getInitialData:function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],r=this;if(i&&n){f(this);var o=h(i,n,this,!0,s);return a.each(o.edges,(function(e){m(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function s(e,n){e.wrapMethod("getItemModel",(function(e){var t=r._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var i=r.getModel("edgeLabel"),a=new l({label:i.option},i.parentModel,t),o=r.getModel("emphasis.edgeLabel"),s=new l({emphasis:{label:o.option}},o.parentModel,t);function c(e){return e=this.parsePath(e),e&&"label"===e[0]?a:e&&"emphasis"===e[0]&&"label"===e[1]?s:this.parentModel}n.wrapMethod("getItemModel",(function(e){return e.customizeGetParent(c),e}))}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(e,n),a=i.graph.getEdgeByIndex(e),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),l=u(l.join(" > ")),r.value&&(l+=" : "+u(r.value)),l}return g.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=a.map(this.option.categories||[],(function(e){return null!=e.value?e:a.extend({value:0},e)})),t=new r(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e,!0)}))},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return g.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}}}}),v=g;e.exports=v},300:function(e,t,n){var i=n(63321),r=n(16949),a=n(43871),o=n(57833),s=n(75249),l=n(73625),c=n(55943),u=c.onIrrelevantElement,h=n(60823),d=n(30249),p=n(89956),f=p.getNodeGlobalScale,m="__focusNodeAdjacency",g="__unfocusNodeAdjacency",v=["itemStyle","opacity"],y=["lineStyle","opacity"];function _(e,t){var n=e.getVisual("opacity");return null!=n?n:e.getModel().get(t)}function x(e,t,n){var i=e.getGraphicEl(),r=_(e,t);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(e){if(!e.isGroup){var t=e.lineLabelOriginalOpacity;null!=t&&null==n||(t=r),e.setStyle("opacity",t)}}))}function b(e,t){var n=_(e,t),i=e.getGraphicEl();i.traverse((function(e){!e.isGroup&&e.setStyle("opacity",n)})),i.highlight&&i.highlight()}var w=i.extendChartView({type:"graph",init:function(e,t){var n=new a,i=new o,r=this.group;this._controller=new s(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},render:function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var a=this._symbolDraw,o=this._lineDraw,s=this.group;if("view"===r.type){var l={position:r.position,scale:r.scale};this._firstRender?s.attr(l):h.updateProps(s,l,e)}d(e.getGraph(),f(e));var c=e.getData();a.updateData(c);var u=e.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var p=e.forceLayout,v=e.get("force.layoutAnimation");p&&this._startForceLayoutIteration(p,v),c.eachItemGraphicEl((function(t,r){var a=c.getItemModel(r);t.off("drag").off("dragend");var o=a.get("draggable");o&&t.on("drag",(function(){p&&(p.warmUp(),!this._layouting&&this._startForceLayoutIteration(p,v),p.setFixed(r),c.setItemLayout(r,t.position))}),this).on("dragend",(function(){p&&p.setUnfixed(r)}),this),t.setDraggable(o&&p),t[m]&&t.off("mouseover",t[m]),t[g]&&t.off("mouseout",t[g]),a.get("focusNodeAdjacency")&&(t.on("mouseover",t[m]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex})}),t.on("mouseout",t[g]=function(){i._dispatchUnfocus(n)}))}),this),c.graph.eachEdge((function(t){var r=t.getGraphicEl();r[m]&&r.off("mouseover",r[m]),r[g]&&r.off("mouseout",r[g]),t.getModel().get("focusNodeAdjacency")&&(r.on("mouseover",r[m]=function(){i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex})}),r.on("mouseout",r[g]=function(){i._dispatchUnfocus(n)}))}));var y="circular"===e.get("layout")&&e.get("circular.rotateLabel"),_=c.getLayout("cx"),x=c.getLayout("cy");c.eachItemGraphicEl((function(e,t){var n=c.getItemModel(t),i=n.get("label.rotate")||0,r=e.getSymbolPath();if(y){var a=c.getItemLayout(t),o=Math.atan2(a[1]-x,a[0]-_);o<0&&(o=2*Math.PI+o);var s=a[0]<_;s&&(o-=Math.PI);var l=s?"left":"right";h.modifyLabelStyle(r,{textRotation:-o,textPosition:l,textOrigin:"center"},{textPosition:l})}else h.modifyLabelStyle(r,{textRotation:i*=Math.PI/180})})),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(e,t){var n=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){n._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:n._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,n,i){var a=e.getData(),o=a.graph,s=i.dataIndex,l=i.edgeDataIndex,c=o.getNodeByIndex(s),u=o.getEdgeByIndex(l);(c||u)&&(o.eachNode((function(e){x(e,v,.1)})),o.eachEdge((function(e){x(e,y,.1)})),c&&(b(c,v),r.each(c.edges,(function(e){e.dataIndex<0||(b(e,y),b(e.node1,v),b(e.node2,v))}))),u&&(b(u,y),b(u.node1,v),b(u.node2,v)))},unfocusNodeAdjacency:function(e,t,n,i){var r=e.getData().graph;r.eachNode((function(e){x(e,v)})),r.eachEdge((function(e){x(e,y)}))},_startForceLayoutIteration:function(e,t){var n=this;(function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))})()},_updateController:function(e,t,n){var i=this._controller,r=this._controllerHost,a=this.group;i.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!u(t,n,e)})),"view"===e.coordinateSystem.type?(i.enable(e.get("roam")),r.zoomLimit=e.get("scaleLimit"),r.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){l.updateViewOnPan(r,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){l.updateViewOnZoom(r,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(),d(e.getGraph(),f(e)),this._lineDraw.updateLayout()}),this)):i.disable()},_updateNodeAndLinkScale:function(){var e=this._model,t=e.getData(),n=f(e),i=[n,n];t.eachItemGraphicEl((function(e,t){e.attr("scale",i)}))},updateLayout:function(e){d(e.getGraph(),f(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});e.exports=w},30249:function(e,t,n){n(70252);var i=n(96578),r=n(89457),a=n(89956),o=a.getSymbolSize,s=[],l=[],c=[],u=i.quadraticAt,h=r.distSquare,d=Math.abs;function p(e,t,n){for(var i,r=e[0],a=e[1],o=e[2],p=1/0,f=n*n,m=.1,g=.1;g<=.9;g+=.1){s[0]=u(r[0],a[0],o[0],g),s[1]=u(r[1],a[1],o[1],g);var v=d(h(s,t)-f);v<p&&(p=v,i=g)}for(var y=0;y<32;y++){var _=i+m;l[0]=u(r[0],a[0],o[0],i),l[1]=u(r[1],a[1],o[1],i),c[0]=u(r[0],a[0],o[0],_),c[1]=u(r[1],a[1],o[1],_);v=h(l,t)-f;if(d(v)<.01)break;var x=h(c,t)-f;m/=2,v<0?x>=0?i+=m:i-=m:x>=0?i-=m:i+=m}return i}function f(e,t){var n=[],a=i.quadraticSubdivide,s=[[],[],[]],l=[[],[]],c=[];t/=2,e.eachEdge((function(e,i){var u=e.getLayout(),h=e.getVisual("fromSymbol"),d=e.getVisual("toSymbol");u.__original||(u.__original=[r.clone(u[0]),r.clone(u[1])],u[2]&&u.__original.push(r.clone(u[2])));var f=u.__original;if(null!=u[2]){if(r.copy(s[0],f[0]),r.copy(s[1],f[2]),r.copy(s[2],f[1]),h&&"none"!==h){var m=o(e.node1),g=p(s,f[0],m*t);a(s[0][0],s[1][0],s[2][0],g,n),s[0][0]=n[3],s[1][0]=n[4],a(s[0][1],s[1][1],s[2][1],g,n),s[0][1]=n[3],s[1][1]=n[4]}if(d&&"none"!==d){m=o(e.node2),g=p(s,f[1],m*t);a(s[0][0],s[1][0],s[2][0],g,n),s[1][0]=n[1],s[2][0]=n[2],a(s[0][1],s[1][1],s[2][1],g,n),s[1][1]=n[1],s[2][1]=n[2]}r.copy(u[0],s[0]),r.copy(u[1],s[2]),r.copy(u[2],s[1])}else{if(r.copy(l[0],f[0]),r.copy(l[1],f[1]),r.sub(c,l[1],l[0]),r.normalize(c,c),h&&"none"!==h){m=o(e.node1);r.scaleAndAdd(l[0],l[0],c,m*t)}if(d&&"none"!==d){m=o(e.node2);r.scaleAndAdd(l[1],l[1],c,-m*t)}r.copy(u[0],l[0]),r.copy(u[1],l[1])}}))}e.exports=f},48524:function(e){function t(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph(),r=i.data,a=n.mapArray(n.getName);r.filterSelf((function(e){var n=r.getItemModel(e),i=n.getShallow("category");if(null!=i){"number"===typeof i&&(i=a[i]);for(var o=0;o<t.length;o++)if(!t[o].isSelected(i))return!1}return!0}))}),this)}e.exports=t},48377:function(e){function t(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getData(),r={};n.each((function(i){var a=n.getName(i);r["ec-"+a]=i;var o=n.getItemModel(i),s=o.get("itemStyle.color")||e.getColorFromPalette(a,t);n.setItemVisual(i,"color",s);for(var l=["opacity","symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=o.getShallow(l[c],!0);null!=u&&n.setItemVisual(i,l[c],u)}})),n.count()&&i.each((function(e){var t=i.getItemModel(e),a=t.getShallow("category");if(null!=a){"string"===typeof a&&(a=r["ec-"+a]);for(var o=["color","opacity","symbol","symbolSize","symbolKeepAspect"],s=0;s<o.length;s++)null==i.getItemVisual(e,o[s],!0)&&i.setItemVisual(e,o[s],n.getItemVisual(a,o[s]))}}))}))}e.exports=t},49018:function(e,t,n){var i=n(75862),r=i.circularLayout;function a(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&r(e,"symbolSize")}))}e.exports=a},75862:function(e,t,n){var i=n(89457),r=n(89956),a=r.getSymbolSize,o=r.getNodeGlobalScale,s=n(16949),l=n(92837),c=l.getCurvenessForEdge,u=Math.PI,h=[];function d(e,t){var n=e.coordinateSystem;if(!n||"view"===n.type){var r=n.getBoundingRect(),a=e.getData(),o=a.graph,l=r.width/2+r.x,u=r.height/2+r.y,h=Math.min(r.width,r.height)/2,d=a.count();a.setLayout({cx:l,cy:u}),d&&(p[t](e,n,o,a,h,l,u,d),o.eachEdge((function(t,n){var r,a=s.retrieve3(t.getModel().get("lineStyle.curveness"),c(t,e,n),0),o=i.clone(t.node1.getLayout()),h=i.clone(t.node2.getLayout()),d=(o[0]+h[0])/2,p=(o[1]+h[1])/2;+a&&(a*=3,r=[l*a+d*(1-a),u*a+p*(1-a)]),t.setLayout([o,h,r])})))}}var p={value:function(e,t,n,i,r,a,o,s){var l=0,c=i.getSum("value"),u=2*Math.PI/(c||s);n.eachNode((function(e){var t=e.getValue("value"),n=u*(c?t:1)/2;l+=n,e.setLayout([r*Math.cos(l)+a,r*Math.sin(l)+o]),l+=n}))},symbolSize:function(e,t,n,i,r,s,l,c){var d=0;h.length=c;var p=o(e);n.eachNode((function(e){var t=a(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=p;var n=Math.asin(t/2/r);isNaN(n)&&(n=u/2),h[e.dataIndex]=n,d+=2*n}));var f=(2*u-d)/c/2,m=0;n.eachNode((function(e){var t=f+h[e.dataIndex];m+=t,e.setLayout([r*Math.cos(m)+s,r*Math.sin(m)+l]),m+=t}))}};t.circularLayout=d},40704:function(e,t,n){n(70252);var i=n(57020),r=n(89317),a=r.getLayoutRect,o=n(28414);function s(e,t,n){var i=e.getBoxLayoutParams();return i.aspect=n,a(i,{width:t.getWidth(),height:t.getHeight()})}function l(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var r=e.get("coordinateSystem");if(!r||"view"===r){var a=e.getData(),l=a.mapArray((function(e){var t=a.getItemModel(e);return[+t.get("x"),+t.get("y")]})),c=[],u=[];o.fromPoints(l,c,u),u[0]-c[0]===0&&(u[0]+=1,c[0]-=1),u[1]-c[1]===0&&(u[1]+=1,c[1]-=1);var h=(u[0]-c[0])/(u[1]-c[1]),d=s(e,t,h);isNaN(h)&&(c=[d.x,d.y],u=[d.x+d.width,d.y+d.height]);var p=u[0]-c[0],f=u[1]-c[1],m=d.width,g=d.height,v=e.coordinateSystem=new i;v.zoomLimit=e.get("scaleLimit"),v.setBoundingRect(c[0],c[1],p,f),v.setViewRect(d.x,d.y,m,g),v.setCenter(e.get("center")),v.setZoom(e.get("zoom")),n.push(v)}})),n}e.exports=l},96707:function(e){function t(e){return e instanceof Array||(e=[e,e]),e}function n(e){e.eachSeriesByType("graph",(function(e){var n=e.getGraph(),i=e.getEdgeData(),r=t(e.get("edgeSymbol")),a=t(e.get("edgeSymbolSize")),o="lineStyle.color".split("."),s="lineStyle.opacity".split(".");i.setVisual("fromSymbol",r&&r[0]),i.setVisual("toSymbol",r&&r[1]),i.setVisual("fromSymbolSize",a&&a[0]),i.setVisual("toSymbolSize",a&&a[1]),i.setVisual("color",e.get(o)),i.setVisual("opacity",e.get(s)),i.each((function(e){var r=i.getItemModel(e),a=n.getEdgeByIndex(e),l=t(r.getShallow("symbol",!0)),c=t(r.getShallow("symbolSize",!0)),u=r.get(o),h=r.get(s);switch(u){case"source":u=a.node1.getVisual("color");break;case"target":u=a.node2.getVisual("color");break}l[0]&&a.setVisual("fromSymbol",l[0]),l[1]&&a.setVisual("toSymbol",l[1]),c[0]&&a.setVisual("fromSymbolSize",c[0]),c[1]&&a.setVisual("toSymbolSize",c[1]),a.setVisual("color",u),a.setVisual("opacity",h)}))}))}e.exports=n},35288:function(e,t,n){var i=n(89457),r=i.scaleAndAdd;function a(e,t,n){for(var a=n.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],c=null==n.gravity?.1:n.gravity,u=0;u<e.length;u++){var h=e[u];h.p||(h.p=i.create(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=i.clone(h.p),h.edges=null}var d=null==n.friction?.6:n.friction,p=d;return{warmUp:function(){p=.8*d},setFixed:function(t){e[t].fixed=!0},setUnfixed:function(t){e[t].fixed=!1},step:function(n){for(var a=[],o=e.length,s=0;s<t.length;s++){var u=t[s];if(!u.ignoreForceLayout){var h=u.n1,d=u.n2;i.sub(a,d.p,h.p);var f=i.len(a)-u.d,m=d.w/(h.w+d.w);isNaN(m)&&(m=0),i.normalize(a,a),!h.fixed&&r(h.p,h.p,a,m*f*p),!d.fixed&&r(d.p,d.p,a,-(1-m)*f*p)}}for(s=0;s<o;s++){var g=e[s];g.fixed||(i.sub(a,l,g.p),r(g.p,g.p,a,c*p))}for(s=0;s<o;s++){h=e[s];for(var v=s+1;v<o;v++){d=e[v];i.sub(a,d.p,h.p);f=i.len(a);0===f&&(i.set(a,Math.random()-.5,Math.random()-.5),f=1);var y=(h.rep+d.rep)/f/f;!h.fixed&&r(h.pp,h.pp,a,y),!d.fixed&&r(d.pp,d.pp,a,-y)}}var _=[];for(s=0;s<o;s++){g=e[s];g.fixed||(i.sub(_,g.p,g.pp),r(g.p,g.p,_,p),i.copy(g.pp,g.p))}p*=.992,n&&n(e,t,p<.01)}}}t.forceLayout=a},64648:function(e,t,n){var i=n(35288),r=i.forceLayout,a=n(43897),o=a.simpleLayout,s=n(75862),l=s.circularLayout,c=n(80720),u=c.linearMap,h=n(89457),d=n(16949),p=n(92837),f=p.getCurvenessForEdge;function m(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),a=i.data,s=i.edgeData,c=e.getModel("force"),p=c.get("initLayout");e.preservedPoints?a.each((function(e){var t=a.getId(e);a.setItemLayout(e,n[t]||[NaN,NaN])})):p&&"none"!==p?"circular"===p&&l(e,"value"):o(e);var m=a.getDataExtent("value"),g=s.getDataExtent("value"),v=c.get("repulsion"),y=c.get("edgeLength");d.isArray(v)||(v=[v,v]),d.isArray(y)||(y=[y,y]),y=[y[1],y[0]];var _=a.mapArray("value",(function(e,t){var n=a.getItemLayout(t),i=u(e,m,v);return isNaN(i)&&(i=(v[0]+v[1])/2),{w:i,rep:i,fixed:a.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),x=s.mapArray("value",(function(t,n){var r=i.getEdgeByIndex(n),a=u(t,g,y);isNaN(a)&&(a=(y[0]+y[1])/2);var o=r.getModel(),s=d.retrieve3(o.get("lineStyle.curveness"),-f(r,e,n,!0),0);return{n1:_[r.node1.dataIndex],n2:_[r.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}})),b=(t=e.coordinateSystem,t.getBoundingRect()),w=r(_,x,{rect:b,gravity:c.get("gravity"),friction:c.get("friction")}),S=w.step;w.step=function(e){for(var t=0,r=_.length;t<r;t++)_[t].fixed&&h.copy(_[t].p,i.getNodeByIndex(t).getLayout());S((function(t,r,o){for(var s=0,l=t.length;s<l;s++)t[s].fixed||i.getNodeByIndex(s).setLayout(t[s].p),n[a.getId(s)]=t[s].p;for(s=0,l=r.length;s<l;s++){var c=r[s],u=i.getEdgeByIndex(s),d=c.n1.p,p=c.n2.p,f=u.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],h.copy(f[0],d),h.copy(f[1],p),+c.curveness&&(f[2]=[(d[0]+p[0])/2-(d[1]-p[1])*c.curveness,(d[1]+p[1])/2-(p[0]-d[0])*c.curveness]),u.setLayout(f)}e&&e(o)}))},e.forceLayout=w,e.preservedPoints=n,w.step()}else e.forceLayout=null}))}e.exports=m},61436:function(e,t,n){var i=n(63321),r=n(64586),a=r.updateCenterAndZoom;n(62180);var o={type:"graphRoam",event:"graphRoam",update:"none"};i.registerAction(o,(function(e,t){t.eachComponent({mainType:"series",query:e},(function(t){var n=t.coordinateSystem,i=a(n,e);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))},89956:function(e,t){function n(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scale,r=i&&i[0]||1,a=t.getZoom(),o=(a-1)*n+1;return o/r}function i(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}t.getNodeGlobalScale=n,t.getSymbolSize=i},68810:function(e,t,n){n(70252);var i=n(16949),r=i.each,a=n(43897),o=a.simpleLayout,s=a.simpleLayoutEdge;function l(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),a=[];r(n.dimensions,(function(e){a=a.concat(i.mapDimension(e,!0))}));for(var l=0;l<i.count();l++){for(var c=[],u=!1,h=0;h<a.length;h++){var d=i.get(a[h],l);isNaN(d)||(u=!0),c.push(d)}u?i.setItemLayout(l,n.dataToPoint(c)):i.setItemLayout(l,[NaN,NaN])}s(i.graph,e)}else t&&"none"!==t||o(e)}))}e.exports=l},43897:function(e,t,n){n(70252);var i=n(89457),r=n(16949),a=n(92837),o=a.getCurvenessForEdge;function s(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),l(n,e)}}function l(e,t){e.eachEdge((function(e,n){var a=r.retrieve3(e.getModel().get("lineStyle.curveness"),-o(e,t,n,!0),0),s=i.clone(e.node1.getLayout()),l=i.clone(e.node2.getLayout()),c=[s,l];+a&&c.push([(s[0]+l[0])/2-(s[1]-l[1])*a,(s[1]+l[1])/2-(l[0]-s[0])*a]),e.setLayout(c)}))}t.simpleLayout=s,t.simpleLayoutEdge=l},93487:function(e,t,n){n(38837),n(10459)},48422:function(e,t,n){n(66554),n(46293),n(6149);var i=n(16949),r=256;function a(){var e=i.createCanvas();this.canvas=e,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}a.prototype={update:function(e,t,n,i,a,o){var s=this._getBrush(),l=this._getGradient(e,a,"inRange"),c=this._getGradient(e,a,"outOfRange"),u=this.pointSize+this.blurSize,h=this.canvas,d=h.getContext("2d"),p=e.length;h.width=t,h.height=n;for(var f=0;f<p;++f){var m=e[f],g=m[0],v=m[1],y=m[2],_=i(y);d.globalAlpha=_,d.drawImage(s,g-u,v-u)}if(!h.width||!h.height)return h;var x=d.getImageData(0,0,h.width,h.height),b=x.data,w=0,S=b.length,M=this.minOpacity,C=this.maxOpacity,T=C-M;while(w<S){_=b[w+3]/256;var E=4*Math.floor(_*(r-1));if(_>0){var A=o(_)?l:c;_>0&&(_=_*T+M),b[w++]=A[E],b[w++]=A[E+1],b[w++]=A[E+2],b[w++]=A[E+3]*_*256}else w+=4}return d.putImageData(x,0,0),h},_getBrush:function(){var e=this._brushCanvas||(this._brushCanvas=i.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var r=e.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},_getGradient:function(e,t,n){for(var i=this._gradientPixels,r=i[n]||(i[n]=new Uint8ClampedArray(1024)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[n](s/255,!0,a),r[o++]=a[0],r[o++]=a[1],r[o++]=a[2],r[o++]=a[3];return r}};var o=a;e.exports=o},38837:function(e,t,n){var i=n(21987),r=n(84305),a=n(71479),o=i.extend({type:"series.heatmap",getInitialData:function(e,t){return r(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var e=a.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});e.exports=o},10459:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(63321)),a=n(60823),o=n(48422),s=n(16949);function l(e,t,n){var i=e[1]-e[0];t=s.map(t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var r=t.length,a=0;return function(e){for(var i=a;i<r;i++){var o=t[i].interval;if(o[0]<=e&&e<=o[1]){a=i;break}}if(i===r)for(i=a-1;i>=0;i--){o=t[i].interval;if(o[0]<=e&&e<=o[1]){a=i;break}}return i>=0&&i<r&&n[i]}}function c(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function u(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var h=r.extendChartView({type:"heatmap",render:function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):u(r)&&this._renderOnGeo(r,e,i,n)},incrementalPrepareRender:function(e,t,n){this.group.removeAll()},incrementalRender:function(e,t,n,i){var r=t.coordinateSystem;r&&this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)},_renderOnCartesianAndCalendar:function(e,t,n,i,r){var o,l,c=e.coordinateSystem;if("cartesian2d"===c.type){var u=c.getAxis("x"),h=c.getAxis("y");o=u.getBandWidth(),l=h.getBandWidth()}for(var d=this.group,p=e.getData(),f="itemStyle",m="emphasis.itemStyle",g="label",v="emphasis.label",y=e.getModel(f).getItemStyle(["color"]),_=e.getModel(m).getItemStyle(),x=e.getModel(g),b=e.getModel(v),w=c.type,S="cartesian2d"===w?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],M=n;M<i;M++){var C;if("cartesian2d"===w){if(isNaN(p.get(S[2],M)))continue;var T=c.dataToPoint([p.get(S[0],M),p.get(S[1],M)]);C=new a.Rect({shape:{x:Math.floor(Math.round(T[0])-o/2),y:Math.floor(Math.round(T[1])-l/2),width:Math.ceil(o),height:Math.ceil(l)},style:{fill:p.getItemVisual(M,"color"),opacity:p.getItemVisual(M,"opacity")}})}else{if(isNaN(p.get(S[1],M)))continue;C=new a.Rect({z2:1,shape:c.dataToRect([p.get(S[0],M)]).contentShape,style:{fill:p.getItemVisual(M,"color"),opacity:p.getItemVisual(M,"opacity")}})}var E=p.getItemModel(M);p.hasItemOption&&(y=E.getModel(f).getItemStyle(["color"]),_=E.getModel(m).getItemStyle(),x=E.getModel(g),b=E.getModel(v));var A=e.getRawValue(M),k="-";A&&null!=A[2]&&(k=A[2]),a.setLabelStyle(y,_,x,b,{labelFetcher:e,labelDataIndex:M,defaultText:k,isRectText:!0}),C.setStyle(y),a.setHoverStyle(C,p.hasItemOption?_:s.extend({},_)),C.incremental=r,r&&(C.useHoverLayer=!0),d.add(C),p.setItemGraphicEl(M,C)}},_renderOnGeo:function(e,t,n,i){var r=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,u=t.getData(),h=this._hmLayer||this._hmLayer||new o;h.blurSize=t.get("blurSize"),h.pointSize=t.get("pointSize"),h.minOpacity=t.get("minOpacity"),h.maxOpacity=t.get("maxOpacity");var d=e.getViewRect().clone(),p=e.getRoamTransform();d.applyTransform(p);var f=Math.max(d.x,0),m=Math.max(d.y,0),g=Math.min(d.width+d.x,i.getWidth()),v=Math.min(d.height+d.y,i.getHeight()),y=g-f,_=v-m,x=[u.mapDimension("lng"),u.mapDimension("lat"),u.mapDimension("value")],b=u.mapArray(x,(function(t,n,i){var r=e.dataToPoint([t,n]);return r[0]-=f,r[1]-=m,r.push(i),r})),w=n.getExtent(),S="visualMap.continuous"===n.type?c(w,n.option.range):l(w,n.getPieceList(),n.option.selected);h.update(b,y,_,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var M=new a.Image({style:{width:y,height:_,x:f,y:m,image:h.canvas},silent:!0});this.group.add(M)},dispose:function(){}});e.exports=h},84532:function(e,t,n){var i=n(60823),r=n(32776),a=n(16949),o=n(2760),s=o.createSymbol,l=n(89457),c=n(96578);function u(e,t,n){i.Group.call(this),this.add(this.createLine(e,t,n)),this._updateEffectSymbol(e,t)}var h=u.prototype;h.createLine=function(e,t,n){return new r(e,t,n)},h._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),i=n.getModel("effect"),r=i.get("symbolSize"),o=i.get("symbol");a.isArray(r)||(r=[r,r]);var l=i.get("color")||e.getItemVisual(t,"color"),c=this.childAt(1);this._symbolType!==o&&(this.remove(c),c=s(o,-.5,-.5,1,1,l),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",l),c.setStyle(i.getItemStyle(["color"])),c.attr("scale",r),c.setColor(l),c.attr("scale",r),this._symbolType=o,this._symbolScale=r,this._updateEffectAnimation(e,i,t))},h._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var r=this,o=e.getItemLayout(n),s=1e3*t.get("period"),l=t.get("loop"),c=t.get("constantSpeed"),u=a.retrieve(t.get("delay"),(function(t){return t/e.count()*s/3})),h="function"===typeof u;if(i.ignore=!0,this.updateAnimationPoints(i,o),c>0&&(s=this.getLineLength(i)/c*1e3),s!==this._period||l!==this._loop){i.stopAnimation();var d=u;h&&(d=u(n)),i.__t>0&&(d=-s*i.__t),i.__t=0;var p=i.animate("",l).when(s,{__t:1}).delay(d).during((function(){r.updateSymbolPosition(i)}));l||p.done((function(){r.remove(i)})),p.start()}this._period=s,this._loop=l}},h.getLineLength=function(e){return l.dist(e.__p1,e.__cp1)+l.dist(e.__cp1,e.__p2)},h.updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},h.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},h.updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t,a=e.position,o=[a[0],a[1]],s=c.quadraticAt,u=c.quadraticDerivativeAt;a[0]=s(t[0],i[0],n[0],r),a[1]=s(t[1],i[1],n[1],r);var h=u(t[0],i[0],n[0],r),d=u(t[1],i[1],n[1],r);if(e.rotation=-Math.atan2(d,h)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==e.__lastT&&e.__lastT<e.__t){var p=1.05*l.dist(o,a);e.attr("scale",[e.scale[0],p]),1===r&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)}else if(1===e.__lastT){p=2*l.dist(t,a);e.attr("scale",[e.scale[0],p])}else e.attr("scale",this._symbolScale);e.__lastT=e.__t,e.ignore=!1},h.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},a.inherits(u,i.Group);var d=u;e.exports=d},5645:function(e,t,n){n(70252);var i=n(9517),r=n(16949),a=n(84532),o=n(89457);function s(e,t,n){a.call(this,e,t,n),this._lastFrame=0,this._lastFramePercent=0}var l=s.prototype;l.createLine=function(e,t,n){return new i(e,t,n)},l.updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,r=1;r<t.length;r++){var a=t[r-1],s=t[r];i+=o.dist(a,s),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}},l.getLineLength=function(e){return this._length},l.updateSymbolPosition=function(e){var t=e.__t,n=this._points,i=this._offsets,r=n.length;if(i){var a=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(a+1,r-1);for(l=s;l>=0;l--)if(i[l]<=t)break;l=Math.min(l,r-2)}else{for(var l=a;l<r;l++)if(i[l]>t)break;l=Math.min(l-1,r-2)}o.lerp(e.position,n[l],n[l+1],(t-i[l])/(i[l+1]-i[l]));var c=n[l+1][0]-n[l][0],u=n[l+1][1]-n[l][1];e.rotation=-Math.atan2(u,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=t,e.ignore=!1}},r.inherits(s,a);var c=s;e.exports=c},54348:function(e,t,n){var i=n(16949),r=n(2760),a=r.createSymbol,o=n(60823),s=o.Group,l=n(80720),c=l.parsePercent,u=n(15742),h=3;function d(e){return i.isArray(e)||(e=[+e,+e]),e}function p(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}function f(e,t){s.call(this);var n=new u(e,t),i=new s;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(e,t)}var m=f.prototype;m.stopEffectAnimation=function(){this.childAt(1).removeAll()},m.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=this.childAt(1),r=0;r<h;r++){var o=a(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var s=-r/h*e.period+e.effectOffset;o.animate("",!0).when(e.period,{scale:[e.rippleScale/2,e.rippleScale/2]}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),i.add(o)}p(i,e)},m.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],r=0;r<i.length;r++){var a=i[r];if(t[a]!==e[a])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}p(n,e)},m.highlight=function(){this.trigger("emphasis")},m.downplay=function(){this.trigger("normal")},m.updateData=function(e,t){var n=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),r=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),o=d(e.getItemVisual(t,"symbolSize")),s=e.getItemVisual(t,"color");i.attr("scale",o),i.traverse((function(e){e.attr({fill:s})}));var l=r.getShallow("symbolOffset");if(l){var u=i.position;u[0]=c(l[0],o[0]),u[1]=c(l[1],o[1])}var h=e.getItemVisual(t,"symbolRotate");i.rotation=(h||0)*Math.PI/180||0;var p={};if(p.showEffectOn=n.get("showEffectOn"),p.rippleScale=r.get("rippleEffect.scale"),p.brushType=r.get("rippleEffect.brushType"),p.period=1e3*r.get("rippleEffect.period"),p.effectOffset=t/e.count(),p.z=r.getShallow("z")||0,p.zlevel=r.getShallow("zlevel")||0,p.symbolType=a,p.color=s,p.rippleEffectColor=r.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===p.showEffectOn)this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p;else{this._effectCfg=null,this.stopEffectAnimation();var f=this.childAt(0),m=function(){f.highlight(),"render"!==p.showEffectOn&&this.startEffectAnimation(p)},g=function(){f.downplay(),"render"!==p.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",m,this).on("mouseout",g,this).on("emphasis",m,this).on("normal",g,this)}this._effectCfg=p},m.fadeOut=function(e){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),e&&e()},i.inherits(f,s);var g=f;e.exports=g},59177:function(e,t,n){var i=n(60823),r=n(89732),a=n(62411),o=n(76425),s=i.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(e,t){var n=t.segs,i=t.curveness;if(t.polyline)for(var r=0;r<n.length;){var a=n[r++];if(a>0){e.moveTo(n[r++],n[r++]);for(var o=1;o<a;o++)e.lineTo(n[r++],n[r++])}}else for(r=0;r<n.length;){var s=n[r++],l=n[r++],c=n[r++],u=n[r++];if(e.moveTo(s,l),i>0){var h=(s+c)/2-(l-u)*i,d=(l+u)/2-(c-s)*i;e.quadraticCurveTo(h,d,c,u)}else e.lineTo(c,u)}},findDataIndex:function(e,t){var n=this.shape,i=n.segs,r=n.curveness;if(n.polyline)for(var s=0,l=0;l<i.length;){var c=i[l++];if(c>0)for(var u=i[l++],h=i[l++],d=1;d<c;d++){var p=i[l++],f=i[l++];if(a.containStroke(u,h,p,f))return s}s++}else for(s=0,l=0;l<i.length;){u=i[l++],h=i[l++],p=i[l++],f=i[l++];if(r>0){var m=(u+p)/2-(h-f)*r,g=(h+f)/2-(p-u)*r;if(o.containStroke(u,h,m,g,p,f))return s}else if(a.containStroke(u,h,p,f))return s;s++}return-1}});function l(){this.group=new i.Group}var c=l.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(e){this.group.removeAll();var t=new s({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},c.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new r({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(e,t){var n=new s;n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=e.start,this.group.add(n))},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get("lineStyle.curveness")}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var r=t.getVisual("color");r&&e.setStyle("stroke",r),e.setStyle("fill"),n||(e.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(e.dataIndex=n+e.__startIndex)})))},c._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var u=l;e.exports=u},77588:function(e,t,n){n(66554),n(46293),n(6149);var i=n(60823),r=n(2760),a=r.createSymbol,o=n(89732),s=4,l=i.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(e,t){var n=t.points,i=t.size,r=this.symbolProxy,a=r.shape,o=e.getContext?e.getContext():e,l=o&&i[0]<s;if(!l)for(var c=0;c<n.length;){var u=n[c++],h=n[c++];isNaN(u)||isNaN(h)||(this.softClipShape&&!this.softClipShape.contain(u,h)||(a.x=u-i[0]/2,a.y=h-i[1]/2,a.width=i[0],a.height=i[1],r.buildPath(e,a,!0)))}},afterBrush:function(e){var t=this.shape,n=t.points,i=t.size,r=i[0]<s;if(r){this.setTransform(e);for(var a=0;a<n.length;){var o=n[a++],l=n[a++];isNaN(o)||isNaN(l)||(this.softClipShape&&!this.softClipShape.contain(o,l)||e.fillRect(o-i[0]/2,l-i[1]/2,i[0],i[1]))}this.restoreTransform(e)}},findDataIndex:function(e,t){for(var n=this.shape,i=n.points,r=n.size,a=Math.max(r[0],4),o=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,c=i[l]-a/2,u=i[l+1]-o/2;if(e>=c&&t>=u&&e<=c+a&&t<=u+o)return s}return-1}});function c(){this.group=new i.Group}var u=c.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(e,t){this.group.removeAll();var n=new l({rectHover:!0,cursor:"default"});n.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(n,e,!1,t),this.group.add(n),this._incremental=null},u.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("symbolPoints");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t)}))}},u.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new o({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(e,t,n){var i;this._incremental?(i=new l,this._incremental.addDisplayable(i,!0)):(i=new l({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end}),i.incremental=!0,this.group.add(i)),i.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(i,t,!!this._incremental,n)},u._setCommon=function(e,t,n,i){var r=t.hostModel;i=i||{};var o=t.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=i.clipShape||null,e.symbolProxy=a(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var l=e.shape.size[0]<s;e.useStyle(r.getModel("itemStyle").getItemStyle(l?["color","shadowBlur","shadowColor"]:["color"]));var c=t.getVisual("color");c&&e.setColor(c),n||(e.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>=0&&(e.dataIndex=n+(e.startIndex||0))})))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var h=c;e.exports=h},32776:function(e,t,n){var i=n(16949),r=n(89457),a=n(2760),o=n(58093),s=n(60823),l=n(80720),c=l.round,u=["fromSymbol","toSymbol"];function h(e){return"_"+e+"Type"}function d(e,t,n){var r=t.getItemVisual(n,e);if(r&&"none"!==r){var o=t.getItemVisual(n,"color"),s=t.getItemVisual(n,e+"Size"),l=t.getItemVisual(n,e+"Rotate");i.isArray(s)||(s=[s,s]);var c=a.createSymbol(r,-s[0]/2,-s[1]/2,s[0],s[1],o);return c.__specifiedRotation=null==l||isNaN(l)?void 0:+l*Math.PI/180||0,c.name=e,c}}function p(e){var t=new o({name:"line",subPixelOptimize:!0});return f(t.shape,e),t}function f(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}function m(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.childOfName("label");if(t||n||!i.ignore){var a=1,o=this.parent;while(o)o.scale&&(a/=o.scale[0]),o=o.parent;var s=e.childOfName("line");if(this.__dirty||s.__dirty){var l=s.shape.percent,c=s.pointAt(0),u=s.pointAt(l),h=r.sub([],u,c);if(r.normalize(h,h),t){t.attr("position",c);var d=t.__specifiedRotation;if(null==d){var p=s.tangentAt(0);t.attr("rotation",Math.PI/2-Math.atan2(p[1],p[0]))}else t.attr("rotation",d);t.attr("scale",[a*l,a*l])}if(n){n.attr("position",u);d=n.__specifiedRotation;if(null==d){p=s.tangentAt(1);n.attr("rotation",-Math.PI/2-Math.atan2(p[1],p[0]))}else n.attr("rotation",d);n.attr("scale",[a*l,a*l])}if(!i.ignore){var f,m,g,v;i.attr("position",u);var y=i.__labelDistance,_=y[0]*a,x=y[1]*a,b=l/2,w=(p=s.tangentAt(b),[p[1],-p[0]]),S=s.pointAt(b);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var M,C=p[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var T=-Math.atan2(p[1],p[0]);u[0]<c[0]&&(T=Math.PI+T),i.attr("rotation",T)}switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-x,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=x,g="top";break;default:M=0,g="middle"}switch(i.__position){case"end":f=[h[0]*_+u[0],h[1]*x+u[1]],m=h[0]>.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":f=[-h[0]*_+c[0],-h[1]*x+c[1]],m=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":f=[_*C+c[0],c[1]+M],m=p[0]<0?"right":"left",v=[-_*C,-M];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":f=[S[0],S[1]+M],m="center",v=[0,-M];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":f=[-_*C+u[0],u[1]+M],m=p[0]>=0?"right":"left",v=[_*C,-M];break}i.attr({style:{textVerticalAlign:i.__verticalAlign||g,textAlign:i.__textAlign||m},position:f,scale:[a,a],origin:v})}}}}function g(e,t,n){s.Group.call(this),this._createLine(e,t,n)}var v=g.prototype;v.beforeUpdate=m,v._createLine=function(e,t,n){var r=e.hostModel,a=e.getItemLayout(t),o=p(a);o.shape.percent=0,s.initProps(o,{shape:{percent:1}},r,t),this.add(o);var l=new s.Text({name:"label",lineLabelOriginalOpacity:1});this.add(l),i.each(u,(function(n){var i=d(n,e,t);this.add(i),this[h(n)]=e.getItemVisual(t,n)}),this),this._updateCommonStl(e,t,n)},v.updateData=function(e,t,n){var r=e.hostModel,a=this.childOfName("line"),o=e.getItemLayout(t),l={shape:{}};f(l.shape,o),s.updateProps(a,l,r,t),i.each(u,(function(n){var i=e.getItemVisual(t,n),r=h(n);if(this[r]!==i){this.remove(this.childOfName(n));var a=d(n,e,t);this.add(a)}this[r]=i}),this),this._updateCommonStl(e,t,n)},v._updateCommonStl=function(e,t,n){var r=e.hostModel,a=this.childOfName("line"),o=n&&n.lineStyle,l=n&&n.hoverLineStyle,h=n&&n.labelModel,d=n&&n.hoverLabelModel;if(!n||e.hasItemOption){var p=e.getItemModel(t);o=p.getModel("lineStyle").getLineStyle(),l=p.getModel("emphasis.lineStyle").getLineStyle(),h=p.getModel("label"),d=p.getModel("emphasis.label")}var f=e.getItemVisual(t,"color"),m=i.retrieve3(e.getItemVisual(t,"opacity"),o.opacity,1);a.useStyle(i.defaults({strokeNoScale:!0,fill:"none",stroke:f,opacity:m},o)),a.hoverStyle=l,i.each(u,(function(e){var t=this.childOfName(e);t&&(t.setColor(f),t.setStyle({opacity:m}))}),this);var g,v,y=h.getShallow("show"),_=d.getShallow("show"),x=this.childOfName("label");if((y||_)&&(g=f||"#000",v=r.getFormattedLabel(t,"normal",e.dataType),null==v)){var b=r.getRawValue(t);v=null==b?e.getName(t):isFinite(b)?c(b):b}var w=y?v:null,S=_?i.retrieve2(r.getFormattedLabel(t,"emphasis",e.dataType),v):null,M=x.style;if(null!=w||null!=S){s.setTextStyle(x.style,h,{text:w},{autoColor:g}),x.__textAlign=M.textAlign,x.__verticalAlign=M.textVerticalAlign,x.__position=h.get("position")||"middle";var C=h.get("distance");i.isArray(C)||(C=[C,C]),x.__labelDistance=C}x.hoverStyle=null!=S?{text:S,textFill:d.getTextColor(!0),fontStyle:d.getShallow("fontStyle"),fontWeight:d.getShallow("fontWeight"),fontSize:d.getShallow("fontSize"),fontFamily:d.getShallow("fontFamily")}:{text:null},x.ignore=!y&&!_,s.setHoverStyle(this)},v.highlight=function(){this.trigger("emphasis")},v.downplay=function(){this.trigger("normal")},v.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},v.setLinePoints=function(e){var t=this.childOfName("line");f(t.shape,e),t.dirty()},i.inherits(g,s.Group);var y=g;e.exports=y},57833:function(e,t,n){var i=n(60823),r=n(32776);function a(e){this._ctor=e||r,this.group=new i.Group}var o=a.prototype;function s(e,t,n,i){var r=t.getItemLayout(n);if(d(r)){var a=new e._ctor(t,n,i);t.setItemGraphicEl(n,a),e.group.add(a)}}function l(e,t,n,i,r,a){var o=t.getItemGraphicEl(i);d(n.getItemLayout(r))?(o?o.updateData(n,r,a):o=new e._ctor(n,r,a),n.setItemGraphicEl(r,o),e.group.add(o)):e.group.remove(o)}function c(e){return e.animators&&e.animators.length>0}function u(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),hoverLineStyle:t.getModel("emphasis.lineStyle").getLineStyle(),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label")}}function h(e){return isNaN(e[0])||isNaN(e[1])}function d(e){return!h(e[0])&&!h(e[1])}o.isPersistent=function(){return!0},o.updateData=function(e){var t=this,n=t.group,i=t._lineData;t._lineData=e,i||n.removeAll();var r=u(e);e.diff(i).add((function(n){s(t,e,n,r)})).update((function(n,a){l(t,i,e,a,n,r)})).remove((function(e){n.remove(i.getItemGraphicEl(e))})).execute()},o.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},o.incrementalPrepareUpdate=function(e){this._seriesScope=u(e),this._lineData=null,this.group.removeAll()},o.incrementalUpdate=function(e,t){function n(e){e.isGroup||c(e)||(e.incremental=e.useHoverLayer=!0)}for(var i=e.start;i<e.end;i++){var r=t.getItemLayout(i);if(d(r)){var a=new this._ctor(t,i,this._seriesScope);a.traverse(n),this.group.add(a),t.setItemGraphicEl(i,a)}}},o.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var p=a;e.exports=p},58093:function(e,t,n){var i=n(60823),r=n(89457),a=i.Line.prototype,o=i.BezierCurve.prototype;function s(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var l=i.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(e,t){this[s(t)?"_buildPathLine":"_buildPathCurve"](e,t)},_buildPathLine:a.buildPath,_buildPathCurve:o.buildPath,pointAt:function(e){return this[s(this.shape)?"_pointAtLine":"_pointAtCurve"](e)},_pointAtLine:a.pointAt,_pointAtCurve:o.pointAt,tangentAt:function(e){var t=this.shape,n=s(t)?[t.x2-t.x1,t.y2-t.y1]:this._tangentAtCurve(e);return r.normalize(n,n)},_tangentAtCurve:o.tangentAt});e.exports=l},9517:function(e,t,n){var i=n(60823),r=n(16949);function a(e,t,n){i.Group.call(this),this._createPolyline(e,t,n)}var o=a.prototype;o._createPolyline=function(e,t,n){var r=e.getItemLayout(t),a=new i.Polyline({shape:{points:r}});this.add(a),this._updateCommonStl(e,t,n)},o.updateData=function(e,t,n){var r=e.hostModel,a=this.childAt(0),o={shape:{points:e.getItemLayout(t)}};i.updateProps(a,o,r,t),this._updateCommonStl(e,t,n)},o._updateCommonStl=function(e,t,n){var a=this.childAt(0),o=e.getItemModel(t),s=e.getItemVisual(t,"color"),l=n&&n.lineStyle,c=n&&n.hoverLineStyle;n&&!e.hasItemOption||(l=o.getModel("lineStyle").getLineStyle(),c=o.getModel("emphasis.lineStyle").getLineStyle()),a.useStyle(r.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),a.hoverStyle=c,i.setHoverStyle(this)},o.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},r.inherits(a,i.Group);var s=a;e.exports=s},15742:function(e,t,n){var i=n(16949),r=n(2760),a=r.createSymbol,o=n(60823),s=n(80720),l=s.parsePercent,c=n(38283),u=c.getDefaultLabel;function h(e,t,n){o.Group.call(this),this.updateData(e,t,n)}var d=h.prototype,p=h.getSymbolSize=function(e,t){var n=e.getItemVisual(t,"symbolSize");return n instanceof Array?n.slice():[+n,+n]};function f(e){return[e[0]/2,e[1]/2]}function m(e,t){this.parent.drift(e,t)}d._createSymbol=function(e,t,n,i,r){this.removeAll();var o=t.getItemVisual(n,"color"),s=a(e,-1,-1,2,2,o,r);s.attr({z2:100,culling:!0,scale:f(i)}),s.drift=m,this._symbolType=e,this.add(s)},d.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(e)},d.getSymbolPath=function(){return this.childAt(0)},d.getScale=function(){return this.childAt(0).scale},d.highlight=function(){this.childAt(0).trigger("emphasis")},d.downplay=function(){this.childAt(0).trigger("normal")},d.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},d.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},d.updateData=function(e,t,n){this.silent=!1;var i=e.getItemVisual(t,"symbol")||"circle",r=e.hostModel,a=p(e,t),s=i!==this._symbolType;if(s){var l=e.getItemVisual(t,"symbolKeepAspect");this._createSymbol(i,e,t,a,l)}else{var c=this.childAt(0);c.silent=!1,o.updateProps(c,{scale:f(a)},r,t)}if(this._updateCommon(e,t,a,n),s){c=this.childAt(0);var u=n&&n.fadeIn,h={scale:c.scale.slice()};u&&(h.style={opacity:c.style.opacity}),c.scale=[0,0],u&&(c.style.opacity=0),o.initProps(c,h,r,t)}this._seriesModel=r};var g=["itemStyle"],v=["emphasis","itemStyle"],y=["label"],_=["emphasis","label"];function x(e,t){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===t){var n=this.__symbolOriginalScale,i=n[1]/n[0],r={scale:[Math.max(1.1*n[0],n[0]+3),Math.max(1.1*n[1],n[1]+3*i)]};this.animateTo(r,400,"elasticOut")}else"normal"===t&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}d._updateCommon=function(e,t,n,r){var a=this.childAt(0),s=e.hostModel,c=e.getItemVisual(t,"color");"image"!==a.type?a.useStyle({strokeNoScale:!0}):a.setStyle({opacity:1,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var h=r&&r.itemStyle,d=r&&r.hoverItemStyle,p=r&&r.symbolOffset,m=r&&r.labelModel,b=r&&r.hoverLabelModel,w=r&&r.hoverAnimation,S=r&&r.cursorStyle;if(!r||e.hasItemOption){var M=r&&r.itemModel?r.itemModel:e.getItemModel(t);h=M.getModel(g).getItemStyle(["color"]),d=M.getModel(v).getItemStyle(),p=M.getShallow("symbolOffset"),m=M.getModel(y),b=M.getModel(_),w=M.getShallow("hoverAnimation"),S=M.getShallow("cursor")}else d=i.extend({},d);var C=a.style,T=e.getItemVisual(t,"symbolRotate");a.attr("rotation",(T||0)*Math.PI/180||0),p&&a.attr("position",[l(p[0],n[0]),l(p[1],n[1])]),S&&a.attr("cursor",S),a.setColor(c,r&&r.symbolInnerColor),a.setStyle(h);var E=e.getItemVisual(t,"opacity");null!=E&&(C.opacity=E);var A=e.getItemVisual(t,"liftZ"),k=a.__z2Origin;null!=A?null==k&&(a.__z2Origin=a.z2,a.z2+=A):null!=k&&(a.z2=k,a.__z2Origin=null);var D=r&&r.useNameLabel;function I(t,n){return D?e.getName(t):u(e,t)}o.setLabelStyle(C,d,m,b,{labelFetcher:s,labelDataIndex:t,defaultText:I,isRectText:!0,autoColor:c}),a.__symbolOriginalScale=f(n),a.hoverStyle=d,a.highDownOnUpdate=w&&s.isAnimationEnabled()?x:null,o.setHoverStyle(a)},d.fadeOut=function(e,t){var n=this.childAt(0);this.silent=n.silent=!0,(!t||!t.keepLabel)&&(n.style.text=null),o.updateProps(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,e)},i.inherits(h,o.Group);var b=h;e.exports=b},43871:function(e,t,n){var i=n(60823),r=n(15742),a=n(16949),o=a.isObject;function s(e){this.group=new i.Group,this._symbolCtor=e||r}var l=s.prototype;function c(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function u(e){return null==e||o(e)||(e={isIgnore:e}),e||{}}function h(e){var t=e.hostModel;return{itemStyle:t.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:t.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label"),cursorStyle:t.get("cursor")}}l.updateData=function(e,t){t=u(t);var n=this.group,r=e.hostModel,a=this._data,o=this._symbolCtor,s=h(e);a||n.removeAll(),e.diff(a).add((function(i){var r=e.getItemLayout(i);if(c(e,r,i,t)){var a=new o(e,i,s);a.attr("position",r),e.setItemGraphicEl(i,a),n.add(a)}})).update((function(l,u){var h=a.getItemGraphicEl(u),d=e.getItemLayout(l);c(e,d,l,t)?(h?(h.updateData(e,l,s),i.updateProps(h,{position:d},r)):(h=new o(e,l),h.attr("position",d)),n.add(h),e.setItemGraphicEl(l,h)):n.remove(h)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}))})).execute(),this._data=e},l.isPersistent=function(){return!0},l.updateLayout=function(){var e=this._data;e&&e.eachItemGraphicEl((function(t,n){var i=e.getItemLayout(n);t.attr("position",i)}))},l.incrementalPrepareUpdate=function(e){this._seriesScope=h(e),this._data=null,this.group.removeAll()},l.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=e.useHoverLayer=!0)}n=u(n);for(var r=e.start;r<e.end;r++){var a=t.getItemLayout(r);if(c(t,a,r,n)){var o=new this._symbolCtor(t,r,this._seriesScope);o.traverse(i),o.attr("position",a),this.group.add(o),t.setItemGraphicEl(r,o)}}},l.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}))})):t.removeAll()};var d=s;e.exports=d},28824:function(e,t,n){var i=n(60823),r=n(80720),a=r.round;function o(e,t,n){var r=e.getArea(),a=e.getBaseAxis().isHorizontal(),o=r.x,s=r.y,l=r.width,c=r.height,u=n.get("lineStyle.width")||2;o-=u/2,s-=u/2,l+=u,c+=u,o=Math.floor(o),l=Math.round(l);var h=new i.Rect({shape:{x:o,y:s,width:l,height:c}});return t&&(h.shape[a?"width":"height"]=0,i.initProps(h,{shape:{width:l,height:c}},n)),h}function s(e,t,n){var r=e.getArea(),o=new i.Sector({shape:{cx:a(e.cx,1),cy:a(e.cy,1),r0:a(r.r0,1),r:a(r.r,1),startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(o.shape.endAngle=r.startAngle,i.initProps(o,{shape:{endAngle:r.endAngle}},n)),o}function l(e,t,n){return e?"polar"===e.type?s(e,t,n):"cartesian2d"===e.type?o(e,t,n):null:null}t.createGridClipPath=o,t.createPolarClipPath=s,t.createClipPath=l},56210:function(e,t,n){n(70252);var i=n(16949),r=n(54111),a=n(99142),o=n(61789),s=n(49261),l=n(71479),c=n(84305);function u(e,t,n,u,h){for(var d=new a(u),p=0;p<e.length;p++)d.addNode(i.retrieve(e[p].id,e[p].name,p),p);var f=[],m=[],g=0;for(p=0;p<t.length;p++){var v=t[p],y=v.source,_=v.target;d.addEdge(y,_,g)&&(m.push(v),f.push(i.retrieve(v.id,y+" > "+_)),g++)}var x,b=n.get("coordinateSystem");if("cartesian2d"===b||"polar"===b)x=c(e,n);else{var w=l.get(b),S=w&&"view"!==w.type&&w.dimensions||[];i.indexOf(S,"value")<0&&S.concat(["value"]);var M=s(e,{coordDimensions:S});x=new r(M,n),x.initData(e)}var C=new r(["value"],n);return C.initData(m,f),h&&h(x,C),o({mainData:x,struct:d,structAttr:"graph",datas:{node:x,edge:C},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}e.exports=u},84305:function(e,t,n){var i=n(16949),r=n(54111),a=n(49261),o=n(62611),s=o.SOURCE_FORMAT_ORIGINAL,l=n(48106),c=l.getDimensionTypeByAxis,u=n(75269),h=u.getDataItemValue,d=n(71479),p=n(63188),f=p.getCoordSysInfoBySeries,m=n(36197),g=n(84165),v=g.enableDataStack,y=n(59336),_=y.makeSeriesEncodeForAxisCoordSys;function x(e,t,n){n=n||{},m.isInstance(e)||(e=m.seriesDataToSource(e));var o,s=t.get("coordinateSystem"),l=d.get(s),u=f(t);u&&(o=i.map(u.coordSysDims,(function(e){var t={name:e},n=u.axisMap.get(e);if(n){var i=n.get("type");t.type=c(i)}return t}))),o||(o=l&&(l.getDimensionsInfo?l.getDimensionsInfo():l.dimensions.slice())||["x","y"]);var h,p,g=a(e,{coordDimensions:o,generateCoord:n.generateCoord,encodeDefaulter:n.useEncodeDefaulter?i.curry(_,o,t):null});u&&i.each(g,(function(e,t){var n=e.coordDim,i=u.categoryAxisMap.get(n);i&&(null==h&&(h=t),e.ordinalMeta=i.getOrdinalMeta()),null!=e.otherDims.itemName&&(p=!0)})),p||null==h||(g[h].otherDims.itemName=0);var y=v(t,g),x=new r(g,t);x.setCalculationInfo(y);var w=null!=h&&b(e)?function(e,t,n,i){return i===h?n:this.defaultDimValueGetter(e,t,n,i)}:null;return x.hasItemOption=!1,x.initData(e,null,w),x}function b(e){if(e.sourceFormat===s){var t=w(e.data||[]);return null!=t&&!i.isArray(h(t))}}function w(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}var S=x;e.exports=S},66915:function(e,t,n){var i=n(49261),r=n(54111),a=n(16949),o=a.extend,s=a.isArray;function l(e,t,n){t=s(t)&&{coordDimensions:t}||o({},t);var a=e.getSource(),l=i(a,t),c=new r(l,e);return c.initData(a,n),c}e.exports=l},38247:function(e,t,n){var i=n(75269),r=i.makeInner;function a(){var e=r();return function(t){var n=e(t),i=t.pipelineContext,r=n.large,a=n.progressiveRender,o=n.large=i&&i.large,s=n.progressiveRender=i&&i.progressiveRender;return!!(r^o||a^s)&&"reset"}}e.exports=a},62180:function(e,t,n){var i=n(63321);i.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),i.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){}))},38283:function(e,t,n){n(70252);var i=n(3270),r=i.retrieveRawValue;function a(e,t){var n=e.mapDimension("defaultedLabel",!0),i=n.length;if(1===i)return r(e,t,n[0]);if(i){for(var a=[],o=0;o<n.length;o++){var s=r(e,t,n[o]);a.push(s)}return a.join(" ")}}t.getDefaultLabel=a},92837:function(e,t,n){n(70252);var i=n(16949),r="--\x3e",a=function(e){return e.get("autoCurveness")||null},o=function(e,t){var n=a(e),r=20,o=[];if("number"===typeof n)r=n;else if(i.isArray(n))return void(e.__curvenessList=n);t>r&&(r=t);var s=r%2?r+2:r+3;o=[];for(var l=0;l<s;l++)o.push((l%2?l+1:l)/10*(l%2?-1:1));e.__curvenessList=o},s=function(e,t,n){var i=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[n.uid,i,a].join(r)},l=function(e){var t=e.split(r);return[t[0],t[2],t[1]].join(r)},c=function(e,t){var n=s(e.node1,e.node2,t);return t.__edgeMap[n]},u=function(e,t){var n=h(s(e.node1,e.node2,t),t),i=h(s(e.node2,e.node1,t),t);return n+i},h=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function d(e){a(e)&&(e.__curvenessList=[],e.__edgeMap={},o(e))}function p(e,t,n,i){if(a(n)){var r=s(e,t,n),o=n.__edgeMap,c=o[l(r)];o[r]&&!c?o[r].isForward=!0:c&&o[r]&&(c.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}function f(e,t,n,r){var d=a(t),p=i.isArray(d);if(!d)return null;var f=c(e,t);if(!f)return null;for(var m=-1,g=0;g<f.length;g++)if(f[g]===n){m=g;break}var v=u(e,t);o(t,v),e.lineStyle=e.lineStyle||{};var y=s(e.node1,e.node2,t),_=t.__curvenessList,x=p||v%2?0:1;if(f.isForward)return _[x+m];var b=l(y),w=h(b,t),S=_[m+w+x];return r?p?d&&0===d[0]?(w+x)%2?S:-S:((w%2?0:1)+x)%2?S:-S:(w+x)%2?S:-S:_[m+w+x]}t.initCurvenessList=d,t.createEdgeMapForCurveness=p,t.getCurvenessForEdge=f},76577:function(e,t,n){n(70252);var i=n(16949);function r(e,t,n){if(e&&i.indexOf(t,e.type)>=0){var r=n.getData().tree.root,a=e.targetNode;if("string"===typeof a&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var o=e.targetNodeId;if(null!=o&&(a=r.getNodeById(o)))return{node:a}}}function a(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function o(e,t){var n=a(e);return i.indexOf(n,t)>=0}function s(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}t.retrieveTargetInfo=r,t.getPathToRoot=a,t.aboveViewRoot=o,t.wrapTreePathInfo=s},68490:function(e,t,n){n(70252);var i=n(66915),r=n(16949),a=n(48106),o=a.getDimensionTypeByAxis,s=n(59336),l=s.makeSeriesEncodeForAxisCoordSys,c={_baseAxisDim:null,getInitialData:function(e,t){var n,a,s=t.getComponent("xAxis",this.get("xAxisIndex")),c=t.getComponent("yAxis",this.get("yAxisIndex")),u=s.get("type"),h=c.get("type");"category"===u?(e.layout="horizontal",n=s.getOrdinalMeta(),a=!0):"category"===h?(e.layout="vertical",n=c.getOrdinalMeta(),a=!0):e.layout=e.layout||"horizontal";var d=["x","y"],p="horizontal"===e.layout?0:1,f=this._baseAxisDim=d[p],m=d[1-p],g=[s,c],v=g[p].get("type"),y=g[1-p].get("type"),_=e.data;if(_&&a){var x=[];r.each(_,(function(e,t){var n;e.value&&r.isArray(e.value)?(n=e.value.slice(),e.value.unshift(t)):r.isArray(e)?(n=e.slice(),e.unshift(t)):n=e,x.push(n)})),e.data=x}var b=this.defaultValueDimensions,w=[{name:f,type:o(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:m,type:o(y),dimsDef:b.slice()}];return i(this,{coordDimensions:w,dimensionsCount:b.length+1,encodeDefaulter:r.curry(l,w,this)})},getBaseAxis:function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis}};t.seriesModelMixin=c},21141:function(e,t,n){var i=n(63321);n(65507),n(72785);var r=n(97593),a=n(72423),o=n(212);n(68115),i.registerVisual(r("line","circle","line")),i.registerLayout(a("line")),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,o("line"))},65507:function(e,t,n){var i=n(76371),r=(i.__DEV__,n(84305)),a=n(21987),o=a.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){return r(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});e.exports=o},72785:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(16949)),a=n(28414),o=a.fromPoints,s=n(43871),l=n(15742),c=n(27459),u=n(60823),h=n(75269),d=n(60515),p=d.Polyline,f=d.Polygon,m=n(76666),g=n(53772),v=g.prepareDataCoordInfo,y=g.getStackedOnPoint,_=n(28824),x=_.createGridClipPath,b=_.createPolarClipPath;function w(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++){var i=e[n],r=t[n];if(i[0]!==r[0]||i[1]!==r[1])return}return!0}}function S(e,t){var n=[],i=[],r=[],a=[];return o(e,n,i),o(t,r,a),Math.max(Math.abs(n[0]-r[0]),Math.abs(n[1]-r[1]),Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]))}function M(e){return"number"===typeof e?e:e?.5:0}function C(e,t,n){if(!n.valueDim)return[];for(var i=[],r=0,a=t.count();r<a;r++)i.push(y(n,e,t,r));return i}function T(e,t,n){for(var i=t.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,a=[],o=0;o<e.length-1;o++){var s=e[o+1],l=e[o];a.push(l);var c=[];switch(n){case"end":c[r]=s[r],c[1-r]=l[1-r],a.push(c);break;case"middle":var u=(l[r]+s[r])/2,h=[];c[r]=h[r]=u,c[1-r]=l[1-r],h[1-r]=s[1-r],a.push(c),a.push(h);break;default:c[r]=l[r],c[1-r]=s[1-r],a.push(c)}}return e[o]&&a.push(e[o]),a}function E(e,t){var n=e.getVisual("visualMeta");if(n&&n.length&&e.count()&&"cartesian2d"===t.type){for(var i,a,o=n.length-1;o>=0;o--){var s=n[o].dimension,l=e.dimensions[s],c=e.getDimensionInfo(l);if(i=c&&c.coordDim,"x"===i||"y"===i){a=n[o];break}}if(a){var h=t.getAxis(i),d=r.map(a.stops,(function(e){return{coord:h.toGlobalCoord(h.dataToCoord(e.value)),color:e.color}})),p=d.length,f=a.outerColors.slice();p&&d[0].coord>d[p-1].coord&&(d.reverse(),f.reverse());var m=10,g=d[0].coord-m,v=d[p-1].coord+m,y=v-g;if(y<.001)return"transparent";r.each(d,(function(e){e.offset=(e.coord-g)/y})),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var _=new u.LinearGradient(0,0,0,0,d,!0);return _[i]=g,_[i+"2"]=v,_}}}function A(e,t,n){var i=e.get("showAllSymbol"),a="auto"===i;if(!i||a){var o=n.getAxesByScale("ordinal")[0];if(o&&(!a||!k(o,t))){var s=t.mapDimension(o.dim),l={};return r.each(o.getViewLabels(),(function(e){l[e.tickValue]=1})),function(e){return!l.hasOwnProperty(t.get(s,e))}}}}function k(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),a=Math.max(1,Math.round(r/5)),o=0;o<r;o+=a)if(1.5*l.getSymbolSize(t,o)[e.isHorizontal()?1:0]>i)return!1;return!0}function D(e,t,n){if("cartesian2d"===e.type){var i=e.getBaseAxis().isHorizontal(),r=x(e,t,n);if(!n.get("clip",!0)){var a=r.shape,o=Math.max(a.width,a.height);i?(a.y-=o,a.height+=2*o):(a.x-=o,a.width+=2*o)}return r}return b(e,t,n)}var I=m.extend({type:"line",init:function(){var e=new u.Group,t=new s;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},render:function(e,t,n){var i=e.coordinateSystem,a=this.group,o=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),c=o.mapArray(o.getItemLayout),u="polar"===i.type,h=this._coordSys,d=this._symbolDraw,p=this._polyline,f=this._polygon,m=this._lineGroup,g=e.get("animation"),y=!l.isEmpty(),_=l.get("origin"),x=v(i,o,_),b=C(i,o,x),S=e.get("showSymbol"),k=S&&!u&&A(e,o,i),I=this._data;I&&I.eachItemGraphicEl((function(e,t){e.__temp&&(a.remove(e),I.setItemGraphicEl(t,null))})),S||d.remove(),a.add(m);var P,O=!u&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(P=i.getArea(),null!=P.width?(P.x-=.1,P.y-=.1,P.width+=.2,P.height+=.2):P.r0&&(P.r0-=.5,P.r1+=.5)),this._clipShapeForSymbol=P,p&&h.type===i.type&&O===this._step?(y&&!f?f=this._newPolygon(c,b,i,g):f&&!y&&(m.remove(f),f=this._polygon=null),m.setClipPath(D(i,!1,e)),S&&d.updateData(o,{isIgnore:k,clipShape:P}),o.eachItemGraphicEl((function(e){e.stopAnimation(!0)})),w(this._stackedOnPoints,b)&&w(this._points,c)||(g?this._updateAnimation(o,b,i,n,O,_):(O&&(c=T(c,i,O),b=T(b,i,O)),p.setShape({points:c}),f&&f.setShape({points:c,stackedOnPoints:b})))):(S&&d.updateData(o,{isIgnore:k,clipShape:P}),O&&(c=T(c,i,O),b=T(b,i,O)),p=this._newPolyline(c,i,g),y&&(f=this._newPolygon(c,b,i,g)),m.setClipPath(D(i,!0,e)));var L=E(o,i)||o.getVisual("color");p.useStyle(r.defaults(s.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"}));var R=e.get("smooth");if(R=M(e.get("smooth")),p.setShape({smooth:R,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),f){var N=o.getCalculationInfo("stackedOnSeries"),F=0;f.useStyle(r.defaults(l.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel"})),N&&(F=M(N.get("smooth"))),f.setShape({smooth:R,stackedOnSmooth:F,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=o,this._coordSys=i,this._stackedOnPoints=b,this._points=c,this._step=O,this._valueOrigin=_},dispose:function(){},highlight:function(e,t,n,i){var r=e.getData(),a=h.queryDataIndex(r,i);if(!(a instanceof Array)&&null!=a&&a>=0){var o=r.getItemGraphicEl(a);if(!o){var s=r.getItemLayout(a);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;o=new l(r,a),o.position=s,o.setZ(e.get("zlevel"),e.get("z")),o.ignore=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,r.setItemGraphicEl(a,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else m.prototype.highlight.call(this,e,t,n,i)},downplay:function(e,t,n,i){var r=e.getData(),a=h.queryDataIndex(r,i);if(null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else m.prototype.downplay.call(this,e,t,n,i)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new p({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t,t},_newPolygon:function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new f({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(e,t,n,i,r,a){var o=this._polyline,s=this._polygon,l=e.hostModel,h=c(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=h.current,p=h.stackedOnCurrent,f=h.next,m=h.stackedOnNext;if(r&&(d=T(h.current,n,r),p=T(h.stackedOnCurrent,n,r),f=T(h.next,n,r),m=T(h.stackedOnNext,n,r)),S(d,f)>3e3||s&&S(p,m)>3e3)return o.setShape({points:f}),void(s&&s.setShape({points:f,stackedOnPoints:m}));o.shape.__points=h.current,o.shape.points=d,u.updateProps(o,{shape:{points:f}},l),s&&(s.setShape({points:d,stackedOnPoints:p}),u.updateProps(s,{shape:{points:f,stackedOnPoints:m}},l));for(var g=[],v=h.status,y=0;y<v.length;y++){var _=v[y].cmd;if("="===_){var x=e.getItemGraphicEl(v[y].idx1);x&&g.push({el:x,ptIdx:y})}}o.animators&&o.animators.length&&o.animators[0].during((function(){for(var e=0;e<g.length;e++){var t=g[e].el;t.attr("position",o.shape.__points[g[e].ptIdx])}}))},remove:function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});e.exports=I},53772:function(e,t,n){var i=n(84165),r=i.isDimensionStacked,a=n(16949),o=a.map;function s(e,t,n){var i,a=e.getBaseAxis(),s=e.getOtherAxis(a),c=l(s,n),u=a.dim,h=s.dim,d=t.mapDimension(h),p=t.mapDimension(u),f="x"===h||"radius"===h?1:0,m=o(e.dimensions,(function(e){return t.mapDimension(e)})),g=t.getCalculationInfo("stackResultDimension");return(i|=r(t,m[0]))&&(m[0]=g),(i|=r(t,m[1]))&&(m[1]=g),{dataDimsForPoint:m,valueStart:c,valueAxisDim:h,baseAxisDim:u,stacked:!!i,valueDim:d,baseDim:p,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function l(e,t){var n=0,i=e.scale.getExtent();return"start"===t?n=i[0]:"end"===t?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function c(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,i),o[1-a]=r,t.dataToPoint(o)}t.prepareDataCoordInfo=s,t.getStackedOnPoint=c},27459:function(e,t,n){n(70252);var i=n(53772),r=i.prepareDataCoordInfo,a=i.getStackedOnPoint;function o(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function s(e,t,n,i,s,l,c,u){for(var h=o(e,t),d=[],p=[],f=[],m=[],g=[],v=[],y=[],_=r(s,t,c),x=r(l,e,u),b=0;b<h.length;b++){var w=h[b],S=!0;switch(w.cmd){case"=":var M=e.getItemLayout(w.idx),C=t.getItemLayout(w.idx1);(isNaN(M[0])||isNaN(M[1]))&&(M=C.slice()),d.push(M),p.push(C),f.push(n[w.idx]),m.push(i[w.idx1]),y.push(t.getRawIndex(w.idx1));break;case"+":var T=w.idx;d.push(s.dataToPoint([t.get(_.dataDimsForPoint[0],T),t.get(_.dataDimsForPoint[1],T)])),p.push(t.getItemLayout(T).slice()),f.push(a(_,s,t,T)),m.push(i[T]),y.push(t.getRawIndex(T));break;case"-":T=w.idx;var E=e.getRawIndex(T);E!==T?(d.push(e.getItemLayout(T)),p.push(l.dataToPoint([e.get(x.dataDimsForPoint[0],T),e.get(x.dataDimsForPoint[1],T)])),f.push(n[T]),m.push(a(x,l,e,T)),y.push(E)):S=!1}S&&(g.push(w),v.push(v.length))}v.sort((function(e,t){return y[e]-y[t]}));var A=[],k=[],D=[],I=[],P=[];for(b=0;b<v.length;b++){T=v[b];A[b]=d[T],k[b]=p[T],D[b]=f[T],I[b]=m[T],P[b]=g[T]}return{current:A,next:k,stackedOnCurrent:D,stackedOnNext:I,status:P}}e.exports=s},60515:function(e,t,n){var i=n(85632),r=n(89457),a=n(62218),o=r.min,s=r.max,l=r.scaleAndAdd,c=r.copy,u=[],h=[],d=[];function p(e){return isNaN(e[0])||isNaN(e[1])}function f(e,t,n,i,r,a,o,s,l,c,u){return"none"!==c&&c?m.apply(this,arguments):g.apply(this,arguments)}function m(e,t,n,i,r,a,o,s,l,u,f){for(var m=0,g=n,v=0;v<i;v++){var y=t[g];if(g>=r||g<0)break;if(p(y)){if(f){g+=a;continue}break}if(g===n)e[a>0?"moveTo":"lineTo"](y[0],y[1]);else if(l>0){var _=t[m],x="y"===u?1:0,b=(y[x]-_[x])*l;c(h,_),h[x]=_[x]+b,c(d,y),d[x]=y[x]-b,e.bezierCurveTo(h[0],h[1],d[0],d[1],y[0],y[1])}else e.lineTo(y[0],y[1]);m=g,g+=a}return v}function g(e,t,n,i,a,f,m,g,v,y,_){for(var x=0,b=n,w=0;w<i;w++){var S=t[b];if(b>=a||b<0)break;if(p(S)){if(_){b+=f;continue}break}if(b===n)e[f>0?"moveTo":"lineTo"](S[0],S[1]),c(h,S);else if(v>0){var M=b+f,C=t[M];if(_)while(C&&p(t[M]))M+=f,C=t[M];var T=.5,E=t[x];C=t[M];if(!C||p(C))c(d,S);else{var A,k;if(p(C)&&!_&&(C=S),r.sub(u,C,E),"x"===y||"y"===y){var D="x"===y?0:1;A=Math.abs(S[D]-E[D]),k=Math.abs(S[D]-C[D])}else A=r.dist(S,E),k=r.dist(S,C);T=k/(k+A),l(d,S,u,-v*(1-T))}o(h,h,g),s(h,h,m),o(d,d,g),s(d,d,m),e.bezierCurveTo(h[0],h[1],d[0],d[1],S[0],S[1]),l(h,S,u,v*T)}else e.lineTo(S[0],S[1]);x=b,b+=f}return w}function v(e,t){var n=[1/0,1/0],i=[-1/0,-1/0];if(t)for(var r=0;r<e.length;r++){var a=e[r];a[0]<n[0]&&(n[0]=a[0]),a[1]<n[1]&&(n[1]=a[1]),a[0]>i[0]&&(i[0]=a[0]),a[1]>i[1]&&(i[1]=a[1])}return{min:t?n:i,max:t?i:n}}var y=i.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:a(i.prototype.brush),buildPath:function(e,t){var n=t.points,i=0,r=n.length,a=v(n,t.smoothConstraint);if(t.connectNulls){for(;r>0;r--)if(!p(n[r-1]))break;for(;i<r;i++)if(!p(n[i]))break}while(i<r)i+=f(e,n,i,r,r,1,a.min,a.max,t.smooth,t.smoothMonotone,t.connectNulls)+1}}),_=i.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:a(i.prototype.brush),buildPath:function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,a=n.length,o=t.smoothMonotone,s=v(n,t.smoothConstraint),l=v(i,t.smoothConstraint);if(t.connectNulls){for(;a>0;a--)if(!p(n[a-1]))break;for(;r<a;r++)if(!p(n[r]))break}while(r<a){var c=f(e,n,r,a,a,1,s.min,s.max,t.smooth,o,t.connectNulls);f(e,i,r+c-1,c,a,-1,l.min,l.max,t.stackedOnSmooth,o,t.connectNulls),r+=c+1,e.closePath()}}});t.Polyline=y,t.Polygon=_},83507:function(e,t,n){var i=n(63321);n(52294),n(79866);var r=n(39793),a=n(99081);i.registerLayout(r),i.registerVisual(a)},52294:function(e,t,n){n(66554),n(46293),n(6149),n(70252);var i=n(76371),r=(i.__DEV__,n(21987)),a=n(54111),o=n(16949),s=o.concatArray,l=o.mergeAll,c=o.map,u=n(68331),h=u.encodeHTML,d=(n(71479),"undefined"===typeof Uint32Array?Array:Uint32Array),p="undefined"===typeof Float64Array?Array:Float64Array;function f(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=c(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),l([n,e[0],e[1]])})))}var m=r.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(e){e.data=e.data||[],f(e);var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),m.superApply(this,"init",arguments)},mergeOption:function(e){if(f(e),e.data){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count))}m.superApply(this,"mergeOption",arguments)},appendData:function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=s(this._flatCoords,t.flatCoords),this._flatCoordsOffset=s(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},_getCoordsFromItemModel:function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},getLineCoordsCount:function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},getLineCoords:function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],r=0;r<i;r++)t[r]=t[r]||[],t[r][0]=this._flatCoords[n+2*r],t[r][1]=this._flatCoords[n+2*r+1];return i}var a=this._getCoordsFromItemModel(e);for(r=0;r<a.length;r++)t[r]=t[r]||[],t[r][0]=a[r][0],t[r][1]=a[r][1];return a.length},_processFlatCoordsArray:function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"===typeof e[0]){for(var n=e.length,i=new d(n),r=new p(n),a=0,o=0,s=0,l=0;l<n;){s++;var c=e[l++];i[o++]=a+t,i[o++]=c;for(var u=0;u<c;u++){var h=e[l++],f=e[l++];r[a++]=h,r[a++]=f}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,o),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},getInitialData:function(e,t){var n=new a(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,i,r){if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;return null!=a?a instanceof Array?a[r]:a:void 0})),n},formatTooltip:function(e){var t=this.getData(),n=t.getItemModel(e),i=n.get("name");if(i)return i;var r=n.get("fromName"),a=n.get("toName"),o=[];return null!=r&&o.push(r),null!=a&&o.push(a),h(o.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),g=m;e.exports=g},79866:function(e,t,n){var i=n(76371),r=(i.__DEV__,n(63321)),a=n(57833),o=n(84532),s=n(32776),l=n(9517),c=n(5645),u=n(59177),h=n(39793),d=n(28824),p=d.createClipPath,f=r.extendChartView({type:"lines",init:function(){},render:function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e),a=e.get("zlevel"),o=e.get("effect.trailLength"),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(a).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o&&(l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),r.updateData(i);var c=e.get("clip",!0)&&p(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},incrementalPrepareRender:function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},incrementalRender:function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var a=h.reset(e);a.progress&&a.progress({start:0,end:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),h=t.pipelineContext,d=h.large;return n&&i===this._hasEffet&&r===this._isPolyline&&d===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=d?new u:new a(r?i?c:l:i?o:s),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=d,this.group.removeAll()),this.group.add(n.group),n},_showEffect:function(e){return!!e.get("effect.show")},_clearLayer:function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},dispose:function(){}});e.exports=f},39793:function(e,t,n){n(66554),n(46293),n(6149),n(70252);var i=n(38247),r={seriesType:"lines",plan:i(),reset:function(e){var t=e.coordinateSystem,n=e.get("polyline"),i=e.pipelineContext.large;function r(r,a){var o=[];if(i){var s,l=r.end-r.start;if(n){for(var c=0,u=r.start;u<r.end;u++)c+=e.getLineCoordsCount(u);s=new Float32Array(l+2*c)}else s=new Float32Array(4*l);var h=0,d=[];for(u=r.start;u<r.end;u++){var p=e.getLineCoords(u,o);n&&(s[h++]=p);for(var f=0;f<p;f++)d=t.dataToPoint(o[f],!1,d),s[h++]=d[0],s[h++]=d[1]}a.setLayout("linesPoints",s)}else for(u=r.start;u<r.end;u++){var m=a.getItemModel(u),g=(p=e.getLineCoords(u,o),[]);if(n)for(var v=0;v<p;v++)g.push(t.dataToPoint(o[v]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var y=m.get("lineStyle.curveness");+y&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*y,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*y])}a.setItemLayout(u,g)}}return{progress:r}}};e.exports=r},99081:function(e){function t(e){return e instanceof Array||(e=[e,e]),e}var n="lineStyle.opacity".split("."),i={seriesType:"lines",reset:function(e,i,r){var a=t(e.get("symbol")),o=t(e.get("symbolSize")),s=e.getData();function l(e,i){var r=e.getItemModel(i),a=t(r.getShallow("symbol",!0)),o=t(r.getShallow("symbolSize",!0)),s=r.get(n);a[0]&&e.setItemVisual(i,"fromSymbol",a[0]),a[1]&&e.setItemVisual(i,"toSymbol",a[1]),o[0]&&e.setItemVisual(i,"fromSymbolSize",o[0]),o[1]&&e.setItemVisual(i,"toSymbolSize",o[1]),e.setItemVisual(i,"opacity",s)}return s.setVisual("fromSymbol",a&&a[0]),s.setVisual("toSymbol",a&&a[1]),s.setVisual("fromSymbolSize",o&&o[0]),s.setVisual("toSymbolSize",o&&o[1]),s.setVisual("opacity",e.get(n)),{dataEach:s.hasItemOption?l:null}}};e.exports=i},4:function(e,t,n){var i=n(63321);n(12337),n(1098),n(4694),n(65954);var r=n(57988),a=n(45292),o=n(57745),s=n(44527),l=n(28433);i.registerLayout(r),i.registerVisual(a),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,o),i.registerPreprocessor(s),l("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},12337:function(e,t,n){n(70252);var i=n(16949),r=n(66915),a=n(21987),o=n(68331),s=o.encodeHTML,l=o.addCommas,c=n(61159),u=n(3270),h=u.retrieveRawAttr,d=n(23401),p=n(59336),f=p.makeSeriesEncodeForNameBased,m=a.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var t=r(this,{coordDimensions:["value"],encodeDefaulter:i.curry(f,this)}),n=t.mapDimension("value"),a=i.createHashMap(),o=[],s=[],l=0,c=t.count();l<c;l++){var u=t.getName(l);a.set(u,!0),o.push({name:u,value:t.get(n,l),selected:h(t,l,"selected")})}var p=d.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return i.each(p.regions,(function(e){var t=e.name;a.get(t)||(o.push({name:t}),s.push(t))})),this.updateSelectedMap(o),t.appendValues([],s),t},getHostGeoModel:function(){var e=this.option.geoIndex;return null!=e?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},getRegionModel:function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},formatTooltip:function(e,t,n,i){for(var r=this.getData(),a=l(this.getRawValue(e)),o=r.getName(e),c=this.seriesGroup,u=[],h=0;h<c.length;h++){var d=c[h].originalData.indexOfName(o),p=r.mapDimension("value");isNaN(c[h].originalData.get(p,d))||u.push(s(c[h].name))}var f="html"===i?"<br/>":"\n";return u.join(", ")+f+s(o+" : "+a)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});i.mixin(m,c);var g=m;e.exports=g},1098:function(e,t,n){var i=n(63321),r=n(16949),a=n(60823),o=n(39448),s="__seriesMapHighDown",l="__seriesMapCallKey",c=i.extendChartView({type:"map",render:function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!e.getHostGeoModel()){if(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){a=this._mapDraw;a&&r.add(a.group)}else if(e.needsDrawMap){var a=this._mapDraw||new o(n,!0);r.add(a.group),a.draw(e,t,n,this,i),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(e,t,n){var i=e.originalData,o=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var c=i.getItemLayout(n);if(c&&c.point){var d=c.point,p=c.offset,f=new a.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:d[0]+9*p,cy:d[1],r:3},silent:!0,z2:8+(p?0:a.Z2_EMPHASIS_LIFT+1)});if(!p){var m=e.mainSeries.getData(),g=i.getName(n),v=m.indexOfName(g),y=i.getItemModel(n),_=y.getModel("label"),x=y.getModel("emphasis.label"),b=m.getItemGraphicEl(v),w=r.retrieve2(e.getFormattedLabel(v,"normal"),g),S=r.retrieve2(e.getFormattedLabel(v,"emphasis"),w),M=b[s],C=Math.random();if(!M){M=b[s]={};var T=r.curry(u,!0),E=r.curry(u,!1);b.on("mouseover",T).on("mouseout",E).on("emphasis",T).on("normal",E)}b[l]=C,r.extend(M,{recordVersion:C,circle:f,labelModel:_,hoverLabelModel:x,emphasisText:S,normalText:w}),h(M,!1)}o.add(f)}}}))}});function u(e){var t=this[s];t&&t.recordVersion===this[l]&&h(t,e)}function h(e,t){var n=e.circle,i=e.labelModel,r=e.hoverLabelModel,o=e.emphasisText,s=e.normalText;t?(n.style.extendFrom(a.setTextStyle({},r,{text:r.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=a.Z2_EMPHASIS_LIFT):(a.setTextStyle(n.style,i,{text:i.get("show")?s:null,textPosition:i.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),null!=n.__mapOriginalZ2&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}e.exports=c},44527:function(e,t,n){n(70252);var i=n(16949);function r(e){var t=[];i.each(e.series,(function(e){e&&"map"===e.type&&(t.push(e),e.map=e.map||e.mapType,i.defaults(e,e.mapLocation))}))}e.exports=r},57745:function(e,t,n){n(70252);var i=n(16949);function r(e,t){var n={};return i.each(e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var r="ec-"+e.getName(i);n[r]=n[r]||[],isNaN(t)||n[r].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,r){for(var a,o="ec-"+e[0].getName(r),s=0,l=1/0,c=-1/0,u=n[o].length,h=0;h<u;h++)l=Math.min(l,n[o][h]),c=Math.max(c,n[o][h]),s+=n[o][h];return a="min"===t?l:"max"===t?c:"average"===t?s/u:s,0===u?NaN:a}))}function a(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)})),i.each(t,(function(e,t){for(var n=r(i.map(e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),a=0;a<e.length;a++)e[a].originalData=e[a].getData();for(a=0;a<e.length;a++)e[a].seriesGroup=e,e[a].needsDrawMap=0===a&&!e[a].getHostGeoModel(),e[a].setData(n.cloneShallow()),e[a].mainSeries=e[0]}))}e.exports=a},57988:function(e,t,n){var i=n(16949);function r(e){var t={};e.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var a={};i.each(n.seriesGroup,(function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(e,t){var r=i.getName(t),o=n.getRegion(r);if(o&&!isNaN(e)){var s=a[r]||0,l=n.dataToPoint(o.center);a[r]=s+1,i.setItemLayout(t,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};n.showLabel=!a[t],o.setItemLayout(e,n)})),t[r]=!0}}))}e.exports=r},45292:function(e){function t(e){e.eachSeriesByType("map",(function(e){var t=e.get("color"),n=e.getModel("itemStyle"),i=n.get("areaColor"),r=n.get("color")||t[e.seriesIndex%t.length];e.getData().setVisual({areaColor:i,color:r})}))}e.exports=t},98018:function(e,t,n){var i=n(63321);n(12544),n(9535),n(91066);var r=n(68062);i.registerVisual(r)},9535:function(e,t,n){n(70252);var i=n(16949),r=i.each,a=i.createHashMap,o=n(21987),s=n(84305),l=o.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(e,t){var n=this.getSource();return c(n,this),s(n,this)},getRawIndicesByActiveState:function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,(function(t,r){e===t&&i.push(n.getRawIndex(r))})),i},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"}});function c(e,t){if(!e.encodeDefine){var n=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(n){var i=e.encodeDefine=a();r(n.dimensions,(function(e){var t=u(e);i.set(e,t)}))}}}function u(e){return+e.replace("dim","")}e.exports=l},91066:function(e,t,n){n(70252);var i=n(60823),r=n(76666),a=.3,o=r.extend({type:"parallel",init:function(){this._dataGroup=new i.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,t,n,r){var a=this._dataGroup,o=e.getData(),d=this._data,p=e.coordinateSystem,f=p.dimensions,m=u(e);function g(e){var t=c(o,a,e,f,p);h(t,o,e,m)}function v(t,n){var a=d.getItemGraphicEl(n),s=l(o,t,f,p);o.setItemGraphicEl(t,a);var c=r&&!1===r.animation?null:e;i.updateProps(a,{shape:{points:s}},c,t),h(a,o,t,m)}function y(e){var t=d.getItemGraphicEl(e);a.remove(t)}if(o.diff(d).add(g).update(v).remove(y).execute(),!this._initialized){this._initialized=!0;var _=s(p,e,(function(){setTimeout((function(){a.removeClipPath()}))}));a.setClipPath(_)}this._data=o},incrementalPrepareRender:function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(e,t,n){for(var i=t.getData(),r=t.coordinateSystem,a=r.dimensions,o=u(t),s=e.start;s<e.end;s++){var l=c(i,this._dataGroup,s,a,r);l.incremental=!0,h(l,i,s,o)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function s(e,t,n){var r=e.model,a=e.getRect(),o=new i.Rect({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),s="horizontal"===r.get("layout")?"width":"height";return o.setShape(s,0),i.initProps(o,{shape:{width:a.width,height:a.height}},t,n),o}function l(e,t,n,i){for(var r=[],a=0;a<n.length;a++){var o=n[a],s=e.get(e.mapDimension(o),t);d(s,i.getAxis(o).type)||r.push(i.dataToPoint(s,o))}return r}function c(e,t,n,r,a){var o=l(e,n,r,a),s=new i.Polyline({shape:{points:o},silent:!0,z2:10});return t.add(s),e.setItemGraphicEl(n,s),s}function u(e){var t=e.get("smooth",!0);return!0===t&&(t=a),{lineStyle:e.getModel("lineStyle").getLineStyle(),smooth:null!=t?t:a}}function h(e,t,n,i){var r=i.lineStyle;if(t.hasItemOption){var a=t.getItemModel(n).getModel("lineStyle");r=a.getLineStyle()}e.useStyle(r);var o=e.style;o.fill=null,o.stroke=t.getItemVisual(n,"color"),o.opacity=t.getItemVisual(n,"opacity"),i.smooth&&(e.shape.smooth=i.smooth)}function d(e,t){return"category"===t?null==e:null==e||isNaN(e)}var p=o;e.exports=p},68062:function(e){var t=["lineStyle","normal","opacity"],n={seriesType:"parallel",reset:function(e,n,i){var r=e.getModel("itemStyle"),a=e.getModel("lineStyle"),o=n.get("color"),s=a.get("color")||r.get("color")||o[e.seriesIndex%o.length],l=e.get("inactiveOpacity"),c=e.get("activeOpacity"),u=e.getModel("lineStyle").getLineStyle(),h=e.coordinateSystem,d=e.getData(),p={normal:u.opacity,active:c,inactive:l};function f(e,n){h.eachActiveState(n,(function(e,i){var r=p[e];if("normal"===e&&n.hasItemOption){var a=n.getItemModel(i).get(t,!0);null!=a&&(r=a)}n.setItemVisual(i,"opacity",r)}),e.start,e.end)}return d.setVisual("color",s),{progress:f}}};e.exports=n},55625:function(e,t,n){var i=n(63321),r=n(16949);n(88240),n(7398),n(241);var a=n(8e4),o=a.layout,s=n(97593);n(68115),i.registerLayout(r.curry(o,"pictorialBar")),i.registerVisual(s("pictorialBar","roundRect"))},44665:function(e,t,n){var i=n(63321),r=n(16949);n(24932),n(36703);var a=n(28433),o=n(24032),s=n(48905),l=n(8872);a("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),i.registerVisual(o("pie")),i.registerLayout(r.curry(s,"pie")),i.registerProcessor(l("pie"))},24932:function(e,t,n){n(70252);var i=n(63321),r=n(66915),a=n(16949),o=n(75269),s=n(80720),l=s.getPercentWithPrecision,c=n(61159),u=n(3270),h=u.retrieveRawAttr,d=n(59336),p=d.makeSeriesEncodeForNameBased,f=n(72609),m=i.extendSeriesModel({type:"series.pie",init:function(e){m.superApply(this,"init",arguments),this.legendVisualProvider=new f(a.bind(this.getData,this),a.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(e)},mergeOption:function(e){m.superCall(this,"mergeOption",e),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(e,t){return r(this,{coordDimensions:["value"],encodeDefaulter:a.curry(p,this)})},_createSelectableList:function(){for(var e=this.getRawData(),t=e.mapDimension("value"),n=[],i=0,r=e.count();i<r;i++)n.push({name:e.getName(i),value:e.get(t,i),selected:h(e,i,"selected")});return n},getDataParams:function(e){var t=this.getData(),n=m.superCall(this,"getDataParams",e),i=[];return t.each(t.mapDimension("value"),(function(e){i.push(e)})),n.percent=l(i,e,t.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(e){o.defaultEmphasis(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});a.mixin(m,c);var g=m;e.exports=g},36703:function(e,t,n){var i=n(16949),r=n(60823),a=n(76666);function o(e,t,n,i){var r=t.getData(),a=this.dataIndex,o=r.getName(a),l=t.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:e,name:o,seriesId:t.id}),r.each((function(e){s(r.getItemGraphicEl(e),r.getItemLayout(e),t.isSelected(r.getName(e)),l,n)}))}function s(e,t,n,i,r){var a=(t.startAngle+t.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=n?i:0,c=[o*l,s*l];r?e.animate().when(200,{position:c}).start("bounceOut"):e.attr("position",c)}function l(e,t){r.Group.call(this);var n=new r.Sector({z2:2}),i=new r.Polyline,a=new r.Text;this.add(n),this.add(i),this.add(a),this.updateData(e,t,!0)}var c=l.prototype;c.updateData=function(e,t,n){var a=this.childAt(0),o=this.childAt(1),l=this.childAt(2),c=e.hostModel,u=e.getItemModel(t),h=e.getItemLayout(t),d=i.extend({},h);d.label=null;var p=c.getShallow("animationTypeUpdate");if(n){a.setShape(d);var f=c.getShallow("animationType");"scale"===f?(a.shape.r=h.r0,r.initProps(a,{shape:{r:h.r}},c,t)):(a.shape.endAngle=h.startAngle,r.updateProps(a,{shape:{endAngle:h.endAngle}},c,t))}else"expansion"===p?a.setShape(d):r.updateProps(a,{shape:d},c,t);var m=e.getItemVisual(t,"color");a.useStyle(i.defaults({lineJoin:"bevel",fill:m},u.getModel("itemStyle").getItemStyle())),a.hoverStyle=u.getModel("emphasis.itemStyle").getItemStyle();var g=u.getShallow("cursor");g&&a.attr("cursor",g),s(this,e.getItemLayout(t),c.isSelected(e.getName(t)),c.get("selectedOffset"),c.get("animation"));var v=!n&&"transition"===p;this._updateLabel(e,t,v),this.highDownOnUpdate=c.get("silent")?null:function(e,t){var n=c.isAnimationEnabled()&&u.get("hoverAnimation");"emphasis"===t?(o.ignore=o.hoverIgnore,l.ignore=l.hoverIgnore,n&&(a.stopAnimation(!0),a.animateTo({shape:{r:h.r+c.get("hoverOffset")}},300,"elasticOut"))):(o.ignore=o.normalIgnore,l.ignore=l.normalIgnore,n&&(a.stopAnimation(!0),a.animateTo({shape:{r:h.r}},300,"elasticOut")))},r.setHoverStyle(this)},c._updateLabel=function(e,t,n){var i=this.childAt(1),a=this.childAt(2),o=e.hostModel,s=e.getItemModel(t),l=e.getItemLayout(t),c=l.label,u=e.getItemVisual(t,"color");if(!c||isNaN(c.x)||isNaN(c.y))a.ignore=a.normalIgnore=a.hoverIgnore=i.ignore=i.normalIgnore=i.hoverIgnore=!0;else{var h={points:c.linePoints||[[c.x,c.y],[c.x,c.y],[c.x,c.y]]},d={x:c.x,y:c.y};n?(r.updateProps(i,{shape:h},o,t),r.updateProps(a,{style:d},o,t)):(i.attr({shape:h}),a.attr({style:d})),a.attr({rotation:c.rotation,origin:[c.x,c.y],z2:10});var p=s.getModel("label"),f=s.getModel("emphasis.label"),m=s.getModel("labelLine"),g=s.getModel("emphasis.labelLine");u=e.getItemVisual(t,"color");r.setLabelStyle(a.style,a.hoverStyle={},p,f,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:c.text,autoColor:u,useInsideStyle:!!c.inside},{textAlign:c.textAlign,textVerticalAlign:c.verticalAlign,opacity:e.getItemVisual(t,"opacity")}),a.ignore=a.normalIgnore=!p.get("show"),a.hoverIgnore=!f.get("show"),i.ignore=i.normalIgnore=!m.get("show"),i.hoverIgnore=!g.get("show"),i.setStyle({stroke:u,opacity:e.getItemVisual(t,"opacity")}),i.setStyle(m.getModel("lineStyle").getLineStyle()),i.hoverStyle=g.getModel("lineStyle").getLineStyle();var v=m.get("smooth");v&&!0===v&&(v=.4),i.setShape({smooth:v})}},i.inherits(l,r.Group);var u=a.extend({type:"pie",init:function(){var e=new r.Group;this._sectorGroup=e},render:function(e,t,n,r){if(!r||r.from!==this.uid){var a=e.getData(),s=this._data,c=this.group,u=t.get("animation"),h=!s,d=e.get("animationType"),p=e.get("animationTypeUpdate"),f=i.curry(o,this.uid,e,u,n),m=e.get("selectedMode");if(a.diff(s).add((function(e){var t=new l(a,e);h&&"scale"!==d&&t.eachChild((function(e){e.stopAnimation(!0)})),m&&t.on("click",f),a.setItemGraphicEl(e,t),c.add(t)})).update((function(e,t){var n=s.getItemGraphicEl(t);h||"transition"===p||n.eachChild((function(e){e.stopAnimation(!0)})),n.updateData(a,e),n.off("click"),m&&n.on("click",f),c.add(n),a.setItemGraphicEl(e,n)})).remove((function(e){var t=s.getItemGraphicEl(e);c.remove(t)})).execute(),u&&a.count()>0&&(h?"scale"!==d:"transition"!==p)){for(var g=a.getItemLayout(0),v=1;isNaN(g.startAngle)&&v<a.count();++v)g=a.getItemLayout(v);var y=Math.max(n.getWidth(),n.getHeight())/2,_=i.bind(c.removeClipPath,c);c.setClipPath(this._createClipPath(g.cx,g.cy,y,g.startAngle,g.clockwise,_,e,h))}else c.removeClipPath();this._data=a}},dispose:function(){},_createClipPath:function(e,t,n,i,a,o,s,l){var c=new r.Sector({shape:{cx:e,cy:t,r0:0,r:n,startAngle:i,endAngle:i,clockwise:a}}),u=l?r.initProps:r.updateProps;return u(c,{shape:{endAngle:i+(a?1:-1)*Math.PI*2}},s,o),c},containPoint:function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,a=e[1]-i.cy,o=Math.sqrt(r*r+a*a);return o<=i.r&&o>=i.r0}}}),h=u;e.exports=h},84411:function(e,t,n){n(70252);var i=n(53164),r=n(80720),a=r.parsePercent,o=Math.PI/180;function s(e,t,n,i,r,a,o,s,l,c){function u(t,n,i,r){for(var a=t;a<n;a++){if(e[a].y+i>l+o)break;if(e[a].y+=i,a>t&&a+1<n&&e[a+1].y>e[a].y+e[a].height)return void h(a,i/2)}h(n-1,i/2)}function h(t,n){for(var i=t;i>=0;i--){if(e[i].y-n<l)break;if(e[i].y-=n,i>0&&e[i].y>e[i-1].y+e[i-1].height)break}}function d(e,t,n,i,r,a){for(var o=t?Number.MAX_VALUE:0,s=0,l=e.length;s<l;s++)if("none"===e[s].labelAlignTo){var c=Math.abs(e[s].y-i),u=e[s].len,h=e[s].len2,d=c<r+u?Math.sqrt((r+u+h)*(r+u+h)-c*c):Math.abs(e[s].x-n);t&&d>=o&&(d=o-10),!t&&d<=o&&(d=o+10),e[s].x=n+d*a,o=d}}e.sort((function(e,t){return e.y-t.y}));for(var p,f=0,m=e.length,g=[],v=[],y=0;y<m;y++){if("outer"===e[y].position&&"labelLine"===e[y].labelAlignTo){var _=e[y].x-c;e[y].linePoints[1][0]+=_,e[y].x=c}p=e[y].y-f,p<0&&u(y,m,-p,r),f=e[y].y+e[y].height}o-f<0&&h(m-1,f-o);for(y=0;y<m;y++)e[y].y>=n?v.push(e[y]):g.push(e[y]);d(g,!1,t,n,i,r),d(v,!0,t,n,i,r)}function l(e,t,n,r,a,o,l,u){for(var h=[],d=[],p=Number.MAX_VALUE,f=-Number.MAX_VALUE,m=0;m<e.length;m++)c(e[m])||(e[m].x<t?(p=Math.min(p,e[m].x),h.push(e[m])):(f=Math.max(f,e[m].x),d.push(e[m])));s(d,t,n,r,1,a,o,l,u,f),s(h,t,n,r,-1,a,o,l,u,p);for(m=0;m<e.length;m++){var g=e[m];if(!c(g)){var v=g.linePoints;if(v){var y,_="edge"===g.labelAlignTo,x=g.textRect.width;y=_?g.x<t?v[2][0]-g.labelDistance-l-g.labelMargin:l+a-g.labelMargin-v[2][0]-g.labelDistance:g.x<t?g.x-l-g.bleedMargin:l+a-g.x-g.bleedMargin,y<g.textRect.width&&(g.text=i.truncateText(g.text,y,g.font),"edge"===g.labelAlignTo&&(x=i.getWidth(g.text,g.font)));var b=v[1][0]-v[2][0];_?g.x<t?v[2][0]=l+g.labelMargin+x+g.labelDistance:v[2][0]=l+a-g.labelMargin-x-g.labelDistance:(g.x<t?v[2][0]=g.x+g.labelDistance:v[2][0]=g.x-g.labelDistance,v[1][0]=v[2][0]+b),v[1][1]=v[2][1]=g.y}}}}function c(e){return"center"===e.position}function u(e,t,n,r,s,c){var u,h,d=e.getData(),p=[],f=!1,m=(e.get("minShowLabelAngle")||0)*o;d.each((function(r){var o=d.getItemLayout(r),l=d.getItemModel(r),c=l.getModel("label"),g=c.get("position")||l.get("emphasis.label.position"),v=c.get("distanceToLabelLine"),y=c.get("alignTo"),_=a(c.get("margin"),n),x=c.get("bleedMargin"),b=c.getFont(),w=l.getModel("labelLine"),S=w.get("length");S=a(S,n);var M=w.get("length2");if(M=a(M,n),!(o.angle<m)){var C,T,E,A,k=(o.startAngle+o.endAngle)/2,D=Math.cos(k),I=Math.sin(k);u=o.cx,h=o.cy;var P,O=e.getFormattedLabel(r,"normal")||d.getName(r),L=i.getBoundingRect(O,b,A,"top"),R="inside"===g||"inner"===g;if("center"===g)C=o.cx,T=o.cy,A="center";else{var N=(R?(o.r+o.r0)/2*D:o.r*D)+u,F=(R?(o.r+o.r0)/2*I:o.r*I)+h;if(C=N+3*D,T=F+3*I,!R){var B=N+D*(S+t-o.r),z=F+I*(S+t-o.r),V=B+(D<0?-1:1)*M,U=z;C="edge"===y?D<0?s+_:s+n-_:V+(D<0?-v:v),T=U,E=[[N,F],[B,z],[V,U]]}A=R?"center":"edge"===y?D>0?"right":"left":D>0?"left":"right"}var H=c.get("rotate");P="number"===typeof H?H*(Math.PI/180):H?D<0?-k+Math.PI:-k:0,f=!!P,o.label={x:C,y:T,position:g,height:L.height,len:S,len2:M,linePoints:E,textAlign:A,verticalAlign:"middle",rotation:P,inside:R,labelDistance:v,labelAlignTo:y,labelMargin:_,bleedMargin:x,textRect:L,text:O,font:b},R||p.push(o.label)}})),!f&&e.get("avoidLabelOverlap")&&l(p,u,h,t,n,r,s,c)}e.exports=u},48905:function(e,t,n){var i=n(80720),r=i.parsePercent,a=i.linearMap,o=n(89317),s=n(84411),l=n(16949),c=2*Math.PI,u=Math.PI/180;function h(e,t){return o.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function d(e,t,n,i){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),o=h(e,n),d=e.get("center"),p=e.get("radius");l.isArray(p)||(p=[0,p]),l.isArray(d)||(d=[d,d]);var f=r(o.width,n.getWidth()),m=r(o.height,n.getHeight()),g=Math.min(f,m),v=r(d[0],f)+o.x,y=r(d[1],m)+o.y,_=r(p[0],g/2),x=r(p[1],g/2),b=-e.get("startAngle")*u,w=e.get("minAngle")*u,S=0;t.each(i,(function(e){!isNaN(e)&&S++}));var M=t.getSum(i),C=Math.PI/(M||S)*2,T=e.get("clockwise"),E=e.get("roseType"),A=e.get("stillShowZeroSum"),k=t.getDataExtent(i);k[0]=0;var D=c,I=0,P=b,O=T?1:-1;if(t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:T,cx:v,cy:y,r0:_,r:E?NaN:x,viewRect:o});else{i="area"!==E?0===M&&A?C:e*C:c/S,i<w?(i=w,D-=w):I+=e;var r=P+O*i;t.setItemLayout(n,{angle:i,startAngle:P,endAngle:r,clockwise:T,cx:v,cy:y,r0:_,r:E?a(e,k,[_,x]):x,viewRect:o}),P=r}})),D<c&&S)if(D<=.001){var L=c/S;t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n);i.angle=L,i.startAngle=b+O*n*L,i.endAngle=b+O*(n+1)*L}}))}else C=D/I,P=b,t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n),r=i.angle===w?w:e*C;i.startAngle=P,i.endAngle=P+O*r,P+=O*r}}));s(e,x,o.width,o.height,o.x,o.y)}))}e.exports=d},51493:function(e,t,n){var i=n(63321);n(57358),n(12633),n(81217);var r=n(24032),a=n(97593),o=n(77709),s=n(8872),l=n(21787);i.registerVisual(r("radar")),i.registerVisual(a("radar","circle")),i.registerLayout(o),i.registerProcessor(s("radar")),i.registerPreprocessor(l)},12633:function(e,t,n){var i=n(21987),r=n(66915),a=n(16949),o=n(68331),s=o.encodeHTML,l=n(72609),c=i.extend({type:"series.radar",dependencies:["radar"],init:function(e){c.superApply(this,"init",arguments),this.legendVisualProvider=new l(a.bind(this.getData,this),a.bind(this.getRawData,this))},getInitialData:function(e,t){return r(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(e,t,n,i){var r=this.getData(),o=this.coordinateSystem,l=o.getIndicatorAxes(),c=this.getData().getName(e),u="html"===i?"<br/>":"\n";return s(""===c?this.name:c)+u+a.map(l,(function(t,n){var i=r.get(r.mapDimension(t.dim),e);return s(t.name+" : "+i)})).join(u)},getTooltipPosition:function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(a.map(n.dimensions,(function(e){return t.mapDimension(e)})),e,!0),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var s=n.getIndicatorAxes();return n.coordToPoint(s[r].dataToCoord(i[r]),r)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),u=c;e.exports=u},81217:function(e,t,n){var i=n(63321),r=n(60823),a=n(16949),o=n(2760);function s(e){return a.isArray(e)||(e=[+e,+e]),e}var l=i.extendChartView({type:"radar",render:function(e,t,n){var i=e.coordinateSystem,l=this.group,c=e.getData(),u=this._data;function h(e,t){var n=e.getItemVisual(t,"symbol")||"circle",i=e.getItemVisual(t,"color");if("none"!==n){var r=s(e.getItemVisual(t,"symbolSize")),a=o.createSymbol(n,-1,-1,2,2,i),l=e.getItemVisual(t,"symbolRotate")||0;return a.attr({style:{strokeNoScale:!0},z2:100,scale:[r[0]/2,r[1]/2],rotation:l*Math.PI/180||0}),a}}function d(t,n,i,a,o,s){i.removeAll();for(var l=0;l<n.length-1;l++){var c=h(a,o);c&&(c.__dimIdx=l,t[l]?(c.attr("position",t[l]),r[s?"initProps":"updateProps"](c,{position:n[l]},e,o)):c.attr("position",n[l]),i.add(c))}}function p(e){return a.map(e,(function(e){return[i.cx,i.cy]}))}c.diff(u).add((function(t){var n=c.getItemLayout(t);if(n){var i=new r.Polygon,a=new r.Polyline,o={shape:{points:n}};i.shape.points=p(n),a.shape.points=p(n),r.initProps(i,o,e,t),r.initProps(a,o,e,t);var s=new r.Group,l=new r.Group;s.add(a),s.add(i),s.add(l),d(a.shape.points,n,l,c,t,!0),c.setItemGraphicEl(t,s)}})).update((function(t,n){var i=u.getItemGraphicEl(n),a=i.childAt(0),o=i.childAt(1),s=i.childAt(2),l={shape:{points:c.getItemLayout(t)}};l.shape.points&&(d(a.shape.points,l.shape.points,s,c,t,!1),r.updateProps(a,l,e),r.updateProps(o,l,e),c.setItemGraphicEl(t,i))})).remove((function(e){l.remove(u.getItemGraphicEl(e))})).execute(),c.eachItemGraphicEl((function(e,t){var n=c.getItemModel(t),i=e.childAt(0),o=e.childAt(1),s=e.childAt(2),u=c.getItemVisual(t,"color");l.add(e),i.useStyle(a.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),i.hoverStyle=n.getModel("emphasis.lineStyle").getLineStyle();var h=n.getModel("areaStyle"),d=n.getModel("emphasis.areaStyle"),p=h.isEmpty()&&h.parentModel.isEmpty(),f=d.isEmpty()&&d.parentModel.isEmpty();f=f&&p,o.ignore=p,o.useStyle(a.defaults(h.getAreaStyle(),{fill:u,opacity:.7})),o.hoverStyle=d.getAreaStyle();var m=n.getModel("itemStyle").getItemStyle(["color"]),g=n.getModel("emphasis.itemStyle").getItemStyle(),v=n.getModel("label"),y=n.getModel("emphasis.label");s.eachChild((function(e){e.setStyle(m),e.hoverStyle=a.clone(g);var n=c.get(c.dimensions[e.__dimIdx],t);(null==n||isNaN(n))&&(n=""),r.setLabelStyle(e.style,e.hoverStyle,v,y,{labelFetcher:c.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:n,autoColor:u,isRectText:!0})})),e.highDownOnUpdate=function(e,t){o.attr("ignore","emphasis"===t?f:p)},r.setHoverStyle(e)})),this._data=c},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});e.exports=l},21787:function(e,t,n){n(70252);var i=n(16949);function r(e){var t=e.polar;if(t){i.isArray(t)||(t=[t]);var n=[];i.each(t,(function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],i.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}i.each(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}e.exports=r},77709:function(e,t,n){n(70252);var i=n(16949);function r(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var s=r.getIndicatorAxes();i.each(s,(function(e,i){t.each(t.mapDimension(s[i].dim),(function(e,t){n[t]=n[t]||[];var s=r.dataToPoint(e,i);n[t][i]=a(s)?s:o(r)}))})),t.each((function(e){var s=i.find(n[e],(function(e){return a(e)}))||o(r);n[e].push(s.slice()),t.setItemLayout(e,n[e])}))}}))}function a(e){return!isNaN(e[0])&&!isNaN(e[1])}function o(e){return[e.cx,e.cy]}e.exports=r},70397:function(e,t,n){var i=n(63321);n(41416),n(73437),n(57377);var r=n(99938),a=n(96803);i.registerLayout(r),i.registerVisual(a)},41416:function(e,t,n){var i=n(21987),r=n(56210),a=n(68331),o=a.encodeHTML,s=n(96753),l=n(76371),c=(l.__DEV__,i.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(e,t){for(var n=e.edges||e.links,i=e.data||e.nodes,a=e.levels,o=this.levelModels={},l=0;l<a.length;l++)null!=a[l].depth&&a[l].depth>=0&&(o[a[l].depth]=new s(a[l],this,t));if(i&&n){var c=r(i,n,this,!0,u);return c.data}function u(e,t){e.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var n=this.parentModel,i=n.getData().getItemLayout(t).depth,r=n.levelModels[i];return r||this.parentModel})),e})),t.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var n=this.parentModel,i=n.getGraph().getEdgeByIndex(t),r=i.node1.getLayout().depth,a=n.levelModels[r];return a||this.parentModel})),e}))}},setNodePosition:function(e,t){var n=this.option.data[e];n.localX=t[0],n.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(e,t,n){if("edge"===n){var i=this.getDataParams(e,n),r=i.data,a=r.source+" -- "+r.target;return i.value&&(a+=" : "+i.value),o(a)}if("node"===n){var s=this.getGraph().getNodeByIndex(e),l=s.getLayout().value,u=this.getDataParams(e,n).data.name;if(l)a=u+" : "+l;return o(a)}return c.superCall(this,"formatTooltip",e,t)},optionUpdated:function(){var e=this.option;!0===e.focusNodeAdjacency&&(e.focusNodeAdjacency="allEdges")},getDataParams:function(e,t){var n=c.superCall(this,"getDataParams",e,t);if(null==n.value&&"node"===t){var i=this.getGraph().getNodeByIndex(e),r=i.getLayout().value;n.value=r}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}})),u=c;e.exports=u},73437:function(e,t,n){var i=n(60823),r=n(63321),a=n(16949),o=["itemStyle","opacity"],s=["emphasis","itemStyle","opacity"],l=["lineStyle","opacity"],c=["emphasis","lineStyle","opacity"];function u(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function h(e,t,n){var i=e.getGraphicEl(),r=u(e,t);null!=n&&(null==r&&(r=1),r*=n),i.downplay&&i.downplay(),i.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",r)}))}function d(e,t){var n=u(e,t),i=e.getGraphicEl();i.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",n)})),i.highlight&&i.highlight()}var p=i.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),f=r.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,t,n){var r=this,a=e.getGraph(),o=this.group,s=e.layoutInfo,l=s.width,c=s.height,u=e.getData(),h=e.getData("edge"),d=e.get("orient");this._model=e,o.removeAll(),o.attr("position",[s.x,s.y]),a.eachEdge((function(t){var n=new p;n.dataIndex=t.dataIndex,n.seriesIndex=e.seriesIndex,n.dataType="edge";var r,a,s,u,f,m,g,v,y=t.getModel("lineStyle"),_=y.get("curveness"),x=t.node1.getLayout(),b=t.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=t.node2.getLayout(),C=t.node2.getModel(),T=C.get("localX"),E=C.get("localY"),A=t.getLayout();switch(n.shape.extent=Math.max(1,A.dy),n.shape.orient=d,"vertical"===d?(r=(null!=w?w*l:x.x)+A.sy,a=(null!=S?S*c:x.y)+x.dy,s=(null!=T?T*l:M.x)+A.ty,u=null!=E?E*c:M.y,f=r,m=a*(1-_)+u*_,g=s,v=a*_+u*(1-_)):(r=(null!=w?w*l:x.x)+x.dx,a=(null!=S?S*c:x.y)+A.sy,s=null!=T?T*l:M.x,u=(null!=E?E*c:M.y)+A.ty,f=r*(1-_)+s*_,m=a,g=r*_+s*(1-_),v=u),n.setShape({x1:r,y1:a,x2:s,y2:u,cpx1:f,cpy1:m,cpx2:g,cpy2:v}),n.setStyle(y.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color");break;case"target":n.style.fill=t.node2.getVisual("color");break}i.setHoverStyle(n,t.getModel("emphasis.lineStyle").getItemStyle()),o.add(n),h.setItemGraphicEl(t.dataIndex,n)})),a.eachNode((function(t){var n=t.getLayout(),r=t.getModel(),a=r.get("localX"),s=r.get("localY"),h=r.getModel("label"),d=r.getModel("emphasis.label"),p=new i.Rect({shape:{x:null!=a?a*l:n.x,y:null!=s?s*c:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle()}),f=t.getModel("emphasis.itemStyle").getItemStyle();i.setLabelStyle(p.style,f,h,d,{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id,isRectText:!0}),p.setStyle("fill",t.getVisual("color")),i.setHoverStyle(p,f),o.add(p),u.setItemGraphicEl(t.dataIndex,p),p.dataType="node"})),u.eachItemGraphicEl((function(t,i){var a=u.getItemModel(i);a.get("draggable")&&(t.drift=function(t,a){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=a,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(i),localX:this.shape.x/l,localY:this.shape.y/c})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),a.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(n)}))})),h.eachItemGraphicEl((function(t,i){var a=h.getItemModel(i);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),a.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){r._focusAdjacencyDisabled||(r._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){r._focusAdjacencyDisabled||r._dispatchUnfocus(n)}))})),!this._data&&e.get("animation")&&o.setClipPath(m(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(e){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){t._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,n,i){var r=e.getData(),u=r.graph,p=i.dataIndex,f=r.getItemModel(p),m=i.edgeDataIndex;if(null!=p||null!=m){var g=u.getNodeByIndex(p),v=u.getEdgeByIndex(m);if(u.eachNode((function(e){h(e,o,.1)})),u.eachEdge((function(e){h(e,l,.1)})),g){d(g,s);var y=f.get("focusNodeAdjacency");"outEdges"===y?a.each(g.outEdges,(function(e){e.dataIndex<0||(d(e,c),d(e.node2,s))})):"inEdges"===y?a.each(g.inEdges,(function(e){e.dataIndex<0||(d(e,c),d(e.node1,s))})):"allEdges"===y&&a.each(g.edges,(function(e){e.dataIndex<0||(d(e,c),e.node1!==g&&d(e.node1,s),e.node2!==g&&d(e.node2,s))}))}v&&(d(v,c),d(v.node1,s),d(v.node2,s))}},unfocusNodeAdjacency:function(e,t,n,i){var r=e.getGraph();r.eachNode((function(e){h(e,o)})),r.eachEdge((function(e){h(e,l)}))}});function m(e,t,n){var r=new i.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return i.initProps(r,{shape:{width:e.width+20}},t,n),r}e.exports=f},57377:function(e,t,n){var i=n(63321);n(62180),i.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},99938:function(e,t,n){n(70252);var i=n(89317),r=n(16949),a=n(75269),o=a.groupData;function s(e,t,n){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),a=l(e,t);e.layoutInfo=a;var o=a.width,s=a.height,h=e.getGraph(),d=h.nodes,p=h.edges;u(d);var f=r.filter(d,(function(e){return 0===e.getLayout().value})),m=0!==f.length?0:e.get("layoutIterations"),g=e.get("orient"),v=e.get("nodeAlign");c(d,p,n,i,o,s,m,g,v)}))}function l(e,t){return i.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e,t,n,i,r,a,o,s,l){h(e,t,n,r,a,s,l),g(e,t,a,r,i,o,s),k(e,s)}function u(e){r.each(e,(function(e){var t=E(e.outEdges,T),n=E(e.inEdges,T),i=e.getValue()||0,r=Math.max(t,n,i);e.setLayout({value:r},!0)}))}function h(e,t,n,i,r,a,o){for(var s=[],l=[],c=[],u=[],h=0,d=0,f=0;f<t.length;f++)s[f]=1;for(f=0;f<e.length;f++)l[f]=e[f].inEdges.length,0===l[f]&&c.push(e[f]);var g=-1;while(c.length){for(var v=0;v<c.length;v++){var y=c[v],_=y.hostGraph.data.getRawDataItem(y.dataIndex),x=null!=_.depth&&_.depth>=0;x&&_.depth>g&&(g=_.depth),y.setLayout({depth:x?_.depth:h},!0),"vertical"===a?y.setLayout({dy:n},!0):y.setLayout({dx:n},!0);for(var b=0;b<y.outEdges.length;b++){var w=y.outEdges[b],S=t.indexOf(w);s[S]=0;var M=w.node2,C=e.indexOf(M);0===--l[C]&&u.indexOf(M)<0&&u.push(M)}}++h,c=u,u=[]}for(f=0;f<s.length;f++)if(1===s[f])throw new Error("Sankey is a DAG, the original data has cycle!");var T=g>h-1?g:h-1;o&&"left"!==o&&p(e,o,a,T);d="vertical"===a?(r-n)/T:(i-n)/T;m(e,d,a)}function d(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function p(e,t,n,i){if("right"===t){var a=[],o=e,s=0;while(o.length){for(var l=0;l<o.length;l++){var c=o[l];c.setLayout({skNodeHeight:s},!0);for(var u=0;u<c.inEdges.length;u++){var h=c.inEdges[u];a.indexOf(h.node1)<0&&a.push(h.node1)}}o=a,a=[],++s}r.each(e,(function(e){d(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&f(e,i)}function f(e,t){r.each(e,(function(e){d(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function m(e,t,n){r.each(e,(function(e){var i=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:i},!0):e.setLayout({x:i},!0)}))}function g(e,t,n,i,r,a,o){var s=v(e,o);y(s,t,n,i,r,o),_(s,r,n,i,o);for(var l=1;a>0;a--)l*=.99,x(s,l,o),_(s,r,n,i,o),A(s,l,o),_(s,r,n,i,o)}function v(e,t){var n=[],i="vertical"===t?"y":"x",a=o(e,(function(e){return e.getLayout()[i]}));return a.keys.sort((function(e,t){return e-t})),r.each(a.keys,(function(e){n.push(a.buckets.get(e))})),n}function y(e,t,n,i,a,o){var s=1/0;r.each(e,(function(e){var t=e.length,l=0;r.each(e,(function(e){l+=e.getLayout().value}));var c="vertical"===o?(i-(t-1)*a)/l:(n-(t-1)*a)/l;c<s&&(s=c)})),r.each(e,(function(e){r.each(e,(function(e,t){var n=e.getLayout().value*s;"vertical"===o?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),r.each(t,(function(e){var t=+e.getValue()*s;e.setLayout({dy:t},!0)}))}function _(e,t,n,i,a){var o="vertical"===a?"x":"y";r.each(e,(function(e){var r,s,l;e.sort((function(e,t){return e.getLayout()[o]-t.getLayout()[o]}));for(var c=0,u=e.length,h="vertical"===a?"dx":"dy",d=0;d<u;d++)s=e[d],l=c-s.getLayout()[o],l>0&&(r=s.getLayout()[o]+l,"vertical"===a?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),c=s.getLayout()[o]+s.getLayout()[h]+t;var p="vertical"===a?i:n;if(l=c-t-p,l>0)for(r=s.getLayout()[o]-l,"vertical"===a?s.setLayout({x:r},!0):s.setLayout({y:r},!0),c=r,d=u-2;d>=0;--d)s=e[d],l=s.getLayout()[o]+s.getLayout()[h]+t-c,l>0&&(r=s.getLayout()[o]-l,"vertical"===a?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),c=s.getLayout()[o]}))}function x(e,t,n){r.each(e.slice().reverse(),(function(e){r.each(e,(function(e){if(e.outEdges.length){var i=E(e.outEdges,b,n)/E(e.outEdges,T,n);if(isNaN(i)){var r=e.outEdges.length;i=r?E(e.outEdges,w,n)/r:0}if("vertical"===n){var a=e.getLayout().x+(i-C(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(i-C(e,n))*t;e.setLayout({y:o},!0)}}}))}))}function b(e,t){return C(e.node2,t)*e.getValue()}function w(e,t){return C(e.node2,t)}function S(e,t){return C(e.node1,t)*e.getValue()}function M(e,t){return C(e.node1,t)}function C(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function T(e){return e.getValue()}function E(e,t,n){var i=0,r=e.length,a=-1;while(++a<r){var o=+t.call(e,e[a],n);isNaN(o)||(i+=o)}return i}function A(e,t,n){r.each(e,(function(e){r.each(e,(function(e){if(e.inEdges.length){var i=E(e.inEdges,S,n)/E(e.inEdges,T,n);if(isNaN(i)){var r=e.inEdges.length;i=r?E(e.inEdges,M,n)/r:0}if("vertical"===n){var a=e.getLayout().x+(i-C(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(i-C(e,n))*t;e.setLayout({y:o},!0)}}}))}))}function k(e,t){var n="vertical"===t?"x":"y";r.each(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),r.each(e,(function(e){var t=0,n=0;r.each(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),r.each(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}e.exports=s},96803:function(e,t,n){var i=n(9516),r=n(16949);function a(e,t){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes;if(n.length){var a=1/0,o=-1/0;r.each(n,(function(e){var t=e.getLayout().value;t<a&&(a=t),t>o&&(o=t)})),r.each(n,(function(t){var n=new i({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:e.get("color")}),r=n.mapValueToVisual(t.getLayout().value),s=t.getModel().get("itemStyle.color");null!=s?t.setVisual("color",s):t.setVisual("color",r)}))}}))}e.exports=a},20382:function(e,t,n){var i=n(63321);n(86110),n(97232);var r=n(97593),a=n(72423);n(68115),i.registerVisual(r("scatter","circle")),i.registerLayout(a("scatter"))},86110:function(e,t,n){var i=n(84305),r=n(21987),a=r.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,t){return i(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});e.exports=a},97232:function(e,t,n){var i=n(63321),r=n(43871),a=n(77588),o=n(72423);i.extendChartView({type:"scatter",render:function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},incrementalPrepareRender:function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.incrementalPrepareUpdate(i),this._finished=!1},incrementalRender:function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=o().reset(e);r.progress&&r.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_getClipShape:function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},_updateSymbolDraw:function(e,t){var n=this._symbolDraw,i=t.pipelineContext,o=i.large;return n&&o===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=o?new a:new r,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},55043:function(e,t,n){var i=n(63321),r=n(16949);n(45074),n(80278),n(18062);var a=n(24032),o=n(42782),s=n(8872);i.registerVisual(r.curry(a,"sunburst")),i.registerLayout(r.curry(o,"sunburst")),i.registerProcessor(r.curry(s,"sunburst"))},40877:function(e,t,n){var i=n(16949),r=n(60823),a={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},o=2,s=4;function l(e,t,n){r.Group.call(this);var i=new r.Sector({z2:o});i.seriesIndex=t.seriesIndex;var a=new r.Text({z2:s,silent:e.getModel("label").get("silent")});function l(){a.ignore=a.hoverIgnore}function c(){a.ignore=a.normalIgnore}this.add(i),this.add(a),this.updateData(!0,e,"normal",t,n),this.on("emphasis",l).on("normal",c).on("mouseover",l).on("mouseout",c)}var c=l.prototype;c.updateData=function(e,t,n,a,o){this.node=t,t.piece=this,a=a||this._seriesModel,o=o||this._ecModel;var s=this.childAt(0);s.dataIndex=t.dataIndex;var l=t.getModel(),c=t.getLayout(),u=i.extend({},c);u.label=null;var d=h(t,a,o);f(t,a,d);var p,m=l.getModel("itemStyle").getItemStyle();if("normal"===n)p=m;else{var g=l.getModel(n+".itemStyle").getItemStyle();p=i.merge(g,m)}p=i.defaults({lineJoin:"bevel",fill:p.fill||d},p),e?(s.setShape(u),s.shape.r=c.r0,r.updateProps(s,{shape:{r:c.r}},a,t.dataIndex),s.useStyle(p)):"object"===typeof p.fill&&p.fill.type||"object"===typeof s.style.fill&&s.style.fill.type?(r.updateProps(s,{shape:u},a),s.useStyle(p)):r.updateProps(s,{shape:u,style:p},a),this._updateLabel(a,d,n);var v=l.getShallow("cursor");if(v&&s.attr("cursor",v),e){var y=a.getShallow("highlightPolicy");this._initEvents(s,t,a,y)}this._seriesModel=a||this._seriesModel,this._ecModel=o||this._ecModel,r.setHoverStyle(this)},c.onEmphasis=function(e){var t=this;this.node.hostTree.root.eachNode((function(n){n.piece&&(t.node===n?n.piece.updateData(!1,n,"emphasis"):p(n,t.node,e)?n.piece.childAt(0).trigger("highlight"):e!==a.NONE&&n.piece.childAt(0).trigger("downplay"))}))},c.onNormal=function(){this.node.hostTree.root.eachNode((function(e){e.piece&&e.piece.updateData(!1,e,"normal")}))},c.onHighlight=function(){this.updateData(!1,this.node,"highlight")},c.onDownplay=function(){this.updateData(!1,this.node,"downplay")},c._updateLabel=function(e,t,n){var a=this.node.getModel(),o=a.getModel("label"),s="normal"===n||"emphasis"===n?o:a.getModel(n+".label"),l=a.getModel("emphasis.label"),c=s.get("formatter"),u=c?n:"normal",h=i.retrieve(e.getFormattedLabel(this.node.dataIndex,u,null,null,"label"),this.node.name);!1===E("show")&&(h="");var d=this.node.getLayout(),p=s.get("minAngle");null==p&&(p=o.get("minAngle")),p=p/180*Math.PI;var f=d.endAngle-d.startAngle;null!=p&&Math.abs(f)<p&&(h="");var m=this.childAt(1);r.setLabelStyle(m.style,m.hoverStyle||{},o,l,{defaultText:s.getShallow("show")?h:null,autoColor:t,useInsideStyle:!0});var g,v=(d.startAngle+d.endAngle)/2,y=Math.cos(v),_=Math.sin(v),x=E("position"),b=E("distance")||0,w=E("align");"outside"===x?(g=d.r+b,w=v>Math.PI/2?"right":"left"):w&&"center"!==w?"left"===w?(g=d.r0+b,v>Math.PI/2&&(w="right")):"right"===w&&(g=d.r-b,v>Math.PI/2&&(w="left")):(g=(d.r+d.r0)/2,w="center"),m.attr("style",{text:h,textAlign:w,textVerticalAlign:E("verticalAlign")||"middle",opacity:E("opacity")});var S=g*y+d.cx,M=g*_+d.cy;m.attr("position",[S,M]);var C=E("rotate"),T=0;function E(e){var t=s.get(e);return null==t?o.get(e):t}"radial"===C?(T=-v,T<-Math.PI/2&&(T+=Math.PI)):"tangential"===C?(T=Math.PI/2-v,T>Math.PI/2?T-=Math.PI:T<-Math.PI/2&&(T+=Math.PI)):"number"===typeof C&&(T=C*Math.PI/180),m.attr("rotation",T)},c._initEvents=function(e,t,n,i){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var r=this,a=function(){r.onEmphasis(i)},o=function(){r.onNormal()},s=function(){r.onDownplay()},l=function(){r.onHighlight()};n.isAnimationEnabled()&&e.on("mouseover",a).on("mouseout",o).on("emphasis",a).on("normal",o).on("downplay",s).on("highlight",l)},i.inherits(l,r.Group);var u=l;function h(e,t,n){var i=e.getVisual("color"),r=e.getVisual("visualMeta");r&&0!==r.length||(i=null);var a=e.getModel("itemStyle").get("color");if(a)return a;if(i)return i;if(0===e.depth)return n.option.color[0];var o=n.option.color.length;return a=n.option.color[d(e)%o],a}function d(e){var t=e;while(t.depth>1)t=t.parentNode;var n=e.getAncestors()[0];return i.indexOf(n.children,t)}function p(e,t,n){return n!==a.NONE&&(n===a.SELF?e===t:n===a.ANCESTOR?e===t||e.isAncestorOf(t):e===t||e.isDescendantOf(t))}function f(e,t,n){var i=t.getData();i.setItemVisual(e.dataIndex,"color",n)}e.exports=u},45074:function(e,t,n){var i=n(16949),r=n(21987),a=n(660),o=n(96753),s=n(76577),l=s.wrapTreePathInfo,c=r.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,t){var n={name:e.name,children:e.data};u(n);var r=i.map(e.levels||[],(function(e){return new o(e,this,t)}),this),s=a.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=r[n.depth];return i&&(e.parentModel=i),e}))}return s.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(e){var t=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=l(n,this),t},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});function u(e){var t=0;i.each(e.children,(function(e){u(e);var n=e.value;i.isArray(n)&&(n=n[0]),t+=n}));var n=e.value;i.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),i.isArray(e.value)?e.value[0]=n:e.value=n}e.exports=c},80278:function(e,t,n){n(70252);var i=n(16949),r=n(76666),a=n(40877),o=n(60339),s=n(68331),l=s.windowOpen,c="sunburstRootToNode",u=r.extend({type:"sunburst",init:function(){},render:function(e,t,n,r){var s=this;this.seriesModel=e,this.api=n,this.ecModel=t;var l=e.getData(),c=l.tree.root,u=e.getViewRoot(),h=this.group,d=e.get("renderLabelForZeroData"),p=[];u.eachNode((function(e){p.push(e)}));var f=this._oldChildren||[];if(v(p,f),x(c,u),r&&r.highlight&&r.highlight.piece){var m=e.getShallow("highlightPolicy");r.highlight.piece.onEmphasis(m)}else if(r&&r.unhighlight){var g=this.virtualPiece;!g&&c.children.length&&(g=c.children[0].piece),g&&g.onNormal()}function v(e,t){function n(e){return e.getId()}function r(n,i){var r=null==n?null:e[n],a=null==i?null:t[i];y(r,a)}0===e.length&&0===t.length||new o(t,e,n,n).add(r).update(r).remove(i.curry(r,null)).execute()}function y(n,i){if(d||!n||n.getValue()||(n=null),n!==c&&i!==c)if(i&&i.piece)n?(i.piece.updateData(!1,n,"normal",e,t),l.setItemGraphicEl(n.dataIndex,i.piece)):_(i);else if(n){var r=new a(n,e,t);h.add(r),l.setItemGraphicEl(n.dataIndex,r)}}function _(e){e&&e.piece&&(h.remove(e.piece),e.piece=null)}function x(n,i){if(i.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,n,"normal",e,t):(s.virtualPiece=new a(n,e,t),h.add(s.virtualPiece)),i.piece._onclickEvent&&i.piece.off("click",i.piece._onclickEvent);var r=function(e){s._rootToNode(i.parentNode)};i.piece._onclickEvent=r,s.virtualPiece.on("click",r)}else s.virtualPiece&&(h.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=p},dispose:function(){},_initEvents:function(){var e=this,t=function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece.childAt(0)===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var a=i.getModel(),o=a.get("link");if(o){var s=a.get("target",!0)||"_blank";l(o,s)}}n=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:c,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},containPoint:function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,a=e[1]-i.cy,o=Math.sqrt(r*r+a*a);return o<=i.r&&o>=i.r0}}}),h=u;e.exports=h},18062:function(e,t,n){var i=n(63321),r=n(76577),a="sunburstRootToNode";i.registerAction({type:a,update:"updateView"},(function(e,t){function n(t,n){var i=r.retrieveTargetInfo(e,[a],t);if(i){var o=t.getViewRoot();o&&(e.direction=r.aboveViewRoot(o,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)}));var o="sunburstHighlight";i.registerAction({type:o,update:"updateView"},(function(e,t){function n(t,n){var i=r.retrieveTargetInfo(e,[o],t);i&&(e.highlight=i.node)}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)}));var s="sunburstUnhighlight";i.registerAction({type:s,update:"updateView"},(function(e,t){function n(t,n){e.unhighlight=!0}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)}))},42782:function(e,t,n){var i=n(80720),r=i.parsePercent,a=n(16949),o=Math.PI/180;function s(e,t,n,i){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");a.isArray(i)||(i=[0,i]),a.isArray(t)||(t=[t,t]);var s=n.getWidth(),c=n.getHeight(),u=Math.min(s,c),h=r(t[0],s),d=r(t[1],c),p=r(i[0],u/2),f=r(i[1],u/2),m=-e.get("startAngle")*o,g=e.get("minAngle")*o,v=e.getData().tree.root,y=e.getViewRoot(),_=y.depth,x=e.get("sort");null!=x&&l(y,x);var b=0;a.each(y.children,(function(e){!isNaN(e.getValue())&&b++}));var w=y.getValue(),S=Math.PI/(w||b)*2,M=y.depth>0,C=y.height-(M?-1:1),T=(f-p)/(C||1),E=e.get("clockwise"),A=e.get("stillShowZeroSum"),k=E?1:-1,D=function(e,t){if(e){var n=t;if(e!==v){var i=e.getValue(),o=0===w&&A?S:i*S;o<g&&(o=g),n=t+k*o;var s=e.depth-_-(M?-1:1),l=p+T*s,c=p+T*(s+1),f=e.getModel();null!=f.get("r0")&&(l=r(f.get("r0"),u/2)),null!=f.get("r")&&(c=r(f.get("r"),u/2)),e.setLayout({angle:o,startAngle:t,endAngle:n,clockwise:E,cx:h,cy:d,r0:l,r:c})}if(e.children&&e.children.length){var m=0;a.each(e.children,(function(e){m+=D(e,t+m)}))}return n-t}};if(M){var I=p,P=p+T,O=2*Math.PI;v.setLayout({angle:O,startAngle:m,endAngle:m+O,clockwise:E,cx:h,cy:d,r0:I,r:P})}D(y,m)}))}function l(e,t){var n=e.children||[];e.children=c(n,t),n.length&&a.each(e.children,(function(e){l(e,t)}))}function c(e,t){if("function"===typeof t)return e.sort(t);var n="asc"===t;return e.sort((function(e,t){var i=(e.getValue()-t.getValue())*(n?1:-1);return 0===i?(e.dataIndex-t.dataIndex)*(n?-1:1):i}))}e.exports=s},34731:function(e,t,n){var i=n(63321);n(2589),n(68467),n(63843);var r=n(34411),a=n(33472),o=n(8872);i.registerLayout(r),i.registerVisual(a),i.registerProcessor(o("themeRiver"))},68467:function(e,t,n){n(70252);var i=n(21987),r=n(49261),a=n(48106),o=a.getDimensionTypeByAxis,s=n(54111),l=n(16949),c=n(75269),u=c.groupData,h=n(68331),d=h.encodeHTML,p=n(72609),f=2,m=i.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){m.superApply(this,"init",arguments),this.legendVisualProvider=new p(l.bind(this.getData,this),l.bind(this.getRawData,this))},fixData:function(e){var t=e.length,n={},i=u(e,(function(e){return n.hasOwnProperty(e[0])||(n[e[0]]=-1),e[2]})),r=[];i.buckets.each((function(e,t){r.push({name:t,dataList:e})}));for(var a=r.length,o=0;o<a;++o){for(var s=r[o].name,l=0;l<r[o].dataList.length;++l){var c=r[o].dataList[l][0];n[c]=o}for(var c in n)n.hasOwnProperty(c)&&n[c]!==o&&(n[c]=o,e[t]=[],e[t][0]=c,e[t][1]=0,e[t][2]=s,t++)}return e},getInitialData:function(e,t){for(var n=t.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],i=n.get("type"),a=l.filter(e.data,(function(e){return void 0!==e[2]})),c=this.fixData(a||[]),u=[],h=this.nameMap=l.createHashMap(),d=0,p=0;p<c.length;++p)u.push(c[p][f]),h.get(c[p][f])||(h.set(c[p][f],d),d++);var m=r(c,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:o(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),g=new s(m,this);return g.initData(c),g},getLayerSeries:function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var r=e.mapDimension("single"),a=u(n,(function(t){return e.get("name",t)})),o=[];return a.buckets.each((function(t,n){t.sort((function(t,n){return e.get(r,t)-e.get(r,n)})),o.push({name:n,indices:t})})),o},getAxisTooltipData:function(e,t,n){l.isArray(e)||(e=e?[e]:[]);for(var i,r=this.getData(),a=this.getLayerSeries(),o=[],s=a.length,c=0;c<s;++c){for(var u=Number.MAX_VALUE,h=-1,d=a[c].indices.length,p=0;p<d;++p){var f=r.get(e[0],a[c].indices[p]),m=Math.abs(f-t);m<=u&&(i=f,u=m,h=a[c].indices[p])}o.push(h)}return{dataIndices:o,nestestValue:i}},formatTooltip:function(e){var t=this.getData(),n=t.getName(e),i=t.get(t.mapDimension("value"),e);return(isNaN(i)||null==i)&&(i="-"),d(n+" : "+i)},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}}}}),g=m;e.exports=g},63843:function(e,t,n){n(70252);var i=n(63321),r=n(60515),a=r.Polygon,o=n(60823),s=n(16949),l=s.bind,c=s.extend,u=n(60339),h=i.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(e,t,n){var i=e.getData(),r=this.group,s=e.getLayerSeries(),h=i.getLayout("layoutInfo"),p=h.rect,f=h.boundaryGap;function m(e){return e.name}r.attr("position",[0,p.y+f[0]]);var g=new u(this._layersSeries||[],s,m,m),v={};function y(t,n,l){var u=this._layers;if("remove"!==t){for(var h,p,f,m=[],g=[],y=s[n].indices,_=0;_<y.length;_++){var x=i.getItemLayout(y[_]),b=x.x,w=x.y0,S=x.y;m.push([b,w]),g.push([b,w+S]),h=i.getItemVisual(y[_],"color")}var M=i.getItemLayout(y[0]),C=i.getItemModel(y[_-1]),T=C.getModel("label"),E=T.get("margin");if("add"===t){var A=v[n]=new o.Group;p=new a({shape:{points:m,stackedOnPoints:g,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),f=new o.Text({style:{x:M.x-E,y:M.y0+M.y/2}}),A.add(p),A.add(f),r.add(A),p.setClipPath(d(p.getBoundingRect(),e,(function(){p.removeClipPath()})))}else{A=u[l];p=A.childAt(0),f=A.childAt(1),r.add(A),v[n]=A,o.updateProps(p,{shape:{points:m,stackedOnPoints:g}},e),o.updateProps(f,{style:{x:M.x-E,y:M.y0+M.y/2}},e)}var k=C.getModel("emphasis.itemStyle"),D=C.getModel("itemStyle");o.setTextStyle(f.style,T,{text:T.get("show")?e.getFormattedLabel(y[_-1],"normal")||i.getName(y[_-1]):null,textVerticalAlign:"middle"}),p.setStyle(c({fill:h},D.getItemStyle(["color"]))),o.setHoverStyle(p,k.getItemStyle())}else r.remove(u[n])}g.add(l(y,this,"add")).update(l(y,this,"update")).remove(l(y,this,"remove")).execute(),this._layersSeries=s,this._layers=v},dispose:function(){}});function d(e,t,n){var i=new o.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return o.initProps(i,{shape:{width:e.width+20,height:e.height+20}},t,n),i}e.exports=h},34411:function(e,t,n){n(70252);var i=n(16949),r=n(80720);function a(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},a=n.getRect();i.rect=a;var s=e.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,"horizontal"===l.orient){s[0]=r.parsePercent(s[0],a.height),s[1]=r.parsePercent(s[1],a.height);var c=a.height-s[0]-s[1];o(t,e,c)}else{s[0]=r.parsePercent(s[0],a.width),s[1]=r.parsePercent(s[1],a.width);var u=a.width-s[0]-s[1];o(t,e,u)}t.setLayout("layoutInfo",i)}))}function o(e,t,n){if(e.count())for(var r,a=t.coordinateSystem,o=t.getLayerSeries(),l=e.mapDimension("single"),c=e.mapDimension("value"),u=i.map(o,(function(t){return i.map(t.indices,(function(t){var n=a.dataToPoint(e.get(l,t));return n[1]=e.get(c,t),n}))})),h=s(u),d=h.y0,p=n/h.max,f=o.length,m=o[0].indices.length,g=0;g<m;++g){r=d[g]*p,e.setItemLayout(o[0].indices[g],{layerIndex:0,x:u[0][g][0],y0:r,y:u[0][g][1]*p});for(var v=1;v<f;++v)r+=u[v-1][g][1]*p,e.setItemLayout(o[v].indices[g],{layerIndex:v,x:u[v][g][0],y0:r,y:u[v][g][1]*p})}}function s(e){for(var t=e.length,n=e[0].length,i=[],r=[],a=0,o={},s=0;s<n;++s){for(var l=0,c=0;l<t;++l)c+=e[l][s][1];c>a&&(a=c),i.push(c)}for(var u=0;u<n;++u)r[u]=(a-i[u])/2;a=0;for(var h=0;h<n;++h){var d=i[h]+r[h];d>a&&(a=d)}return o.y0=r,o.max=a,o}e.exports=a},33472:function(e,t,n){var i=n(16949),r=i.createHashMap;function a(e){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.getRawData(),i=e.get("color"),a=r();t.each((function(e){a.set(t.getRawIndex(e),e)})),n.each((function(r){var o=n.getName(r),s=i[(e.nameMap.get(o)-1)%i.length];n.setItemVisual(r,"color",s);var l=a.get(r);null!=l&&t.setItemVisual(l,"color",s)}))}))}e.exports=a},51046:function(e,t,n){var i=n(63321);n(57915),n(82513),n(31261);var r=n(97593),a=n(16221);i.registerVisual(r("tree","circle")),i.registerLayout(a)},57915:function(e,t,n){var i=n(21987),r=n(660),a=n(68331),o=a.encodeHTML,s=n(96753),l=i.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new s(n,this,this.ecModel),a=r.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=a.getNodeByDataIndex(t);return n.children.length&&n.isExpand||(e.parentModel=i),e}))}var l=0;a.eachNode("preorder",(function(e){e.depth>l&&(l=e.depth)}));var c=e.expandAndCollapse,u=c&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return a.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=u})),a.data},getOrient:function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},formatTooltip:function(e){var t=this.getData().tree,n=t.root.children[0],i=t.getNodeByDataIndex(e),r=i.getValue(),a=i.name;while(i&&i!==n)a=i.parentNode.name+"."+a,i=i.parentNode;return o(a+(isNaN(r)||null==r?"":" : "+r))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});e.exports=l},82513:function(e,t,n){n(70252);var i=n(16949),r=n(60823),a=n(15742),o=n(6232),s=o.radialCoordinate,l=n(63321),c=n(28414),u=n(57020),h=n(73625),d=n(75249),p=n(55943),f=p.onIrrelevantElement,m=n(76371),g=(m.__DEV__,n(80720)),v=g.parsePercent,y=r.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,a=n[0],o=n[i-1];if(1===i)return e.moveTo(r[0],r[1]),void e.lineTo(a[0],a[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=v(t.forkPosition,1),h=[];h[l]=r[l],h[c]=r[c]+(o[c]-r[c])*u,e.moveTo(r[0],r[1]),e.lineTo(h[0],h[1]),e.moveTo(a[0],a[1]),h[l]=a[l],e.lineTo(h[0],h[1]),h[l]=o[l],e.lineTo(h[0],h[1]),e.lineTo(o[0],o[1]);for(var d=1;d<i-1;d++){var p=n[d];e.moveTo(p[0],p[1]),h[l]=p[l],e.lineTo(h[0],h[1])}}}),_=l.extendChartView({type:"tree",init:function(e,t){this._oldTree,this._mainGroup=new r.Group,this._controller=new d(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(e,t,n,i){var r=e.getData(),a=e.layoutInfo,o=this._mainGroup,s=e.get("layout");"radial"===s?o.attr("position",[a.x+a.width/2,a.y+a.height/2]):o.attr("position",[a.x,a.y]),this._updateViewCoordSys(e,a,s),this._updateController(e,t,n);var l=this._data,c={expandAndCollapse:e.get("expandAndCollapse"),layout:s,edgeShape:e.get("edgeShape"),edgeForkPosition:e.get("edgeForkPosition"),orient:e.getOrient(),curvature:e.get("lineStyle.curveness"),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};r.diff(l).add((function(t){x(r,t)&&w(r,t,null,o,e,c)})).update((function(t,n){var i=l.getItemGraphicEl(n);x(r,t)?w(r,t,i,o,e,c):i&&M(l,n,i,o,e,c)})).remove((function(t){var n=l.getItemGraphicEl(t);n&&M(l,t,n,o,e,c)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===c.expandAndCollapse&&r.eachItemGraphicEl((function(t,i){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})}))})),this._data=r},_updateViewCoordSys:function(e){var t=e.getData(),n=[];t.each((function(e){var i=t.getItemLayout(e);!i||isNaN(i.x)||isNaN(i.y)||n.push([+i.x,+i.y])}));var i=[],r=[];c.fromPoints(n,i,r);var a=this._min,o=this._max;r[0]-i[0]===0&&(i[0]=a?a[0]:i[0]-1,r[0]=o?o[0]:r[0]+1),r[1]-i[1]===0&&(i[1]=a?a[1]:i[1]-1,r[1]=o?o[1]:r[1]+1);var s=e.coordinateSystem=new u;s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1]),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this.group.attr({position:s.position,scale:s.scale}),this._viewCoordSys=s,this._min=i,this._max=r},_updateController:function(e,t,n){var i=this._controller,r=this._controllerHost,a=this.group;i.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!f(t,n,e)})),i.enable(e.get("roam")),r.zoomLimit=e.get("scaleLimit"),r.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){h.updateViewOnPan(r,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})}),this).on("zoom",(function(t){h.updateViewOnZoom(r,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(e)}),this)},_updateNodeAndLinkScale:function(e){var t=e.getData(),n=this._getNodeGlobalScale(e),i=[n,n];t.eachItemGraphicEl((function(e,t){e.attr("scale",i)}))},_getNodeGlobalScale:function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scale,r=i&&i[0]||1,a=t.getZoom(),o=(a-1)*n+1;return o/r},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function x(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==e.getItemVisual(t,"symbol")}function b(e,t,n){return n.itemModel=t,n.itemStyle=t.getModel("itemStyle").getItemStyle(),n.hoverItemStyle=t.getModel("emphasis.itemStyle").getItemStyle(),n.lineStyle=t.getModel("lineStyle").getLineStyle(),n.labelModel=t.getModel("label"),n.hoverLabelModel=t.getModel("emphasis.label"),!1===e.isExpand&&0!==e.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function w(e,t,n,i,o,s){var l=!n,c=e.tree.getNodeByDataIndex(t),u=c.getModel(),h=(s=b(c,u,s),e.tree.root),d=c.parentNode===h?c:c.parentNode||c,p=e.getItemGraphicEl(d.dataIndex),f=d.getLayout(),m=p?{x:p.position[0],y:p.position[1],rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:f,g=c.getLayout();l?(n=new a(e,t,s),n.attr("position",[m.x,m.y])):n.updateData(e,t,s),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),e.setItemGraphicEl(t,n),r.updateProps(n,{position:[g.x,g.y]},o);var v=n.getSymbolPath();if("radial"===s.layout){var y,_,x=h.children[0],w=x.getLayout(),M=x.children.length;if(g.x===w.x&&!0===c.isExpand){var C={};C.x=(x.children[0].getLayout().x+x.children[M-1].getLayout().x)/2,C.y=(x.children[0].getLayout().y+x.children[M-1].getLayout().y)/2,y=Math.atan2(C.y-w.y,C.x-w.x),y<0&&(y=2*Math.PI+y),_=C.x<w.x,_&&(y-=Math.PI)}else y=Math.atan2(g.y-w.y,g.x-w.x),y<0&&(y=2*Math.PI+y),0===c.children.length||0!==c.children.length&&!1===c.isExpand?(_=g.x<w.x,_&&(y-=Math.PI)):(_=g.x>w.x,_||(y-=Math.PI));var T=_?"left":"right",E=s.labelModel.get("rotate"),A=E*(Math.PI/180);v.setStyle({textPosition:s.labelModel.get("position")||T,textRotation:null==E?-y:A,textOrigin:"center",verticalAlign:"middle"})}S(o,c,h,n,m,f,g,i,s)}function S(e,t,n,a,o,s,l,c,u){var h=u.edgeShape,d=a.__edge;if("curve"===h)t.parentNode&&t.parentNode!==n&&(d||(d=a.__edge=new r.BezierCurve({shape:C(u,o,o),style:i.defaults({opacity:0,strokeNoScale:!0},u.lineStyle)})),r.updateProps(d,{shape:C(u,s,l),style:i.defaults({opacity:1},u.lineStyle)},e));else if("polyline"===h&&"orthogonal"===u.layout&&t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var p=t.children,f=[],m=0;m<p.length;m++){var g=p[m].getLayout();f.push([g.x,g.y])}d||(d=a.__edge=new y({shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]],orient:u.orient,forkPosition:u.edgeForkPosition},style:i.defaults({opacity:0,strokeNoScale:!0},u.lineStyle)})),r.updateProps(d,{shape:{parentPoint:[l.x,l.y],childPoints:f},style:i.defaults({opacity:1},u.lineStyle)},e)}c.add(d)}function M(e,t,n,i,a,o){var s,l=e.tree.getNodeByDataIndex(t),c=e.tree.root,u=l.getModel(),h=(o=b(l,u,o),l.parentNode===c?l:l.parentNode||l),d=o.edgeShape;while(s=h.getLayout(),null==s)h=h.parentNode===c?h:h.parentNode||h;r.updateProps(n,{position:[s.x+1,s.y+1]},a,(function(){i.remove(n),e.setItemGraphicEl(t,null)})),n.fadeOut(null,{keepLabel:!0});var p=e.getItemGraphicEl(h.dataIndex),f=p.__edge,m=n.__edge||(!1===h.isExpand||1===h.children.length?f:void 0);d=o.edgeShape;m&&("curve"===d?r.updateProps(m,{shape:C(o,s,s),style:{opacity:0}},a,(function(){i.remove(m)})):"polyline"===d&&"orthogonal"===o.layout&&r.updateProps(m,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},a,(function(){i.remove(m)})))}function C(e,t,n){var i,r,a,o,l,c,u,h,d=e.orient;if("radial"===e.layout){l=t.rawX,u=t.rawY,c=n.rawX,h=n.rawY;var p=s(l,u),f=s(l,u+(h-u)*e.curvature),m=s(c,h+(u-h)*e.curvature),g=s(c,h);return{x1:p.x,y1:p.y,x2:g.x,y2:g.y,cpx1:f.x,cpy1:f.y,cpx2:m.x,cpy2:m.y}}return l=t.x,u=t.y,c=n.x,h=n.y,"LR"!==d&&"RL"!==d||(i=l+(c-l)*e.curvature,r=u,a=c+(l-c)*e.curvature,o=h),"TB"!==d&&"BT"!==d||(i=l,r=u+(h-u)*e.curvature,a=c,o=h+(u-h)*e.curvature),{x1:l,y1:u,x2:c,y2:h,cpx1:i,cpy1:r,cpx2:a,cpy2:o}}e.exports=_},6232:function(e,t,n){n(70252);var i=n(89317);function r(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var t,n,i=[e];while(t=i.pop())if(n=t.children,t.isExpand&&n.length)for(var r=n.length,a=r-1;a>=0;a--){var o=n[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(o)}}function a(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){u(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=h(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function o(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function s(e){return arguments.length?e:g}function l(e,t){var n={};return e-=Math.PI/2,n.x=t*Math.cos(e),n.y=t*Math.sin(e),n}function c(e,t){return i.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function u(e){var t=e.children,n=t.length,i=0,r=0;while(--n>=0){var a=t[n];a.hierNode.prelim+=i,a.hierNode.modifier+=i,r+=a.hierNode.change,i+=a.hierNode.shift+r}}function h(e,t,n,i){if(t){var r=e,a=e,o=a.parentNode.children[0],s=t,l=r.hierNode.modifier,c=a.hierNode.modifier,u=o.hierNode.modifier,h=s.hierNode.modifier;while(s=d(s),a=p(a),s&&a){r=d(r),o=p(o),r.hierNode.ancestor=e;var g=s.hierNode.prelim+h-a.hierNode.prelim-c+i(s,a);g>0&&(m(f(s,e,n),e,g),c+=g,l+=g),h+=s.hierNode.modifier,c+=a.hierNode.modifier,l+=r.hierNode.modifier,u+=o.hierNode.modifier}s&&!d(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),a&&!p(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=c-u,n=e)}return n}function d(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function p(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function f(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function m(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function g(e,t){return e.parentNode===t.parentNode?1:2}t.init=r,t.firstWalk=a,t.secondWalk=o,t.separation=s,t.radialCoordinate=l,t.getViewRect=c},94241:function(e,t,n){function i(e,t,n){var i,r=[e],a=[];while(i=r.pop())if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}while(i=a.pop())t(i,n)}function r(e,t){var n,i=[e];while(n=i.pop())if(t(n),n.isExpand){var r=n.children;if(r.length)for(var a=r.length-1;a>=0;a--)i.push(r[a])}}n(70252),t.eachAfter=i,t.eachBefore=r},31261:function(e,t,n){var i=n(63321),r=n(64586),a=r.updateCenterAndZoom;i.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),i.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=t.coordinateSystem,i=a(n,e);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))},16221:function(e,t,n){var i=n(94241),r=i.eachAfter,a=i.eachBefore,o=n(6232),s=o.init,l=o.firstWalk,c=o.secondWalk,u=o.separation,h=o.radialCoordinate,d=o.getViewRect;function p(e,t){e.eachSeriesByType("tree",(function(e){f(e,t)}))}function f(e,t){var n=d(e,t);e.layoutInfo=n;var i=e.get("layout"),o=0,p=0,f=null;"radial"===i?(o=2*Math.PI,p=Math.min(n.height,n.width)/2,f=u((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(o=n.width,p=n.height,f=u());var m=e.getData().tree.root,g=m.children[0];if(g){s(m),r(g,l,f),m.hierNode.modifier=-g.hierNode.prelim,a(g,c);var v=g,y=g,_=g;a(g,(function(e){var t=e.getLayout().x;t<v.getLayout().x&&(v=e),t>y.getLayout().x&&(y=e),e.depth>_.depth&&(_=e)}));var x=v===y?1:f(v,y)/2,b=x-v.getLayout().x,w=0,S=0,M=0,C=0;if("radial"===i)w=o/(y.getLayout().x+x+b),S=p/(_.depth-1||1),a(g,(function(e){M=(e.getLayout().x+b)*w,C=(e.depth-1)*S;var t=h(M,C);e.setLayout({x:t.x,y:t.y,rawX:M,rawY:C},!0)}));else{var T=e.getOrient();"RL"===T||"LR"===T?(S=p/(y.getLayout().x+x+b),w=o/(_.depth-1||1),a(g,(function(e){C=(e.getLayout().x+b)*S,M="LR"===T?(e.depth-1)*w:o-(e.depth-1)*w,e.setLayout({x:M,y:C},!0)}))):"TB"!==T&&"BT"!==T||(w=o/(y.getLayout().x+x+b),S=p/(_.depth-1||1),a(g,(function(e){M=(e.getLayout().x+b)*w,C="TB"===T?(e.depth-1)*S:p-(e.depth-1)*S,e.setLayout({x:M,y:C},!0)})))}}}e.exports=p},44786:function(e,t,n){var i=n(63321);n(95333),n(80567),n(14316);var r=n(22927),a=n(3126);i.registerVisual(r),i.registerLayout(a)},29351:function(e,t,n){n(70252);var i=n(60823),r=n(89317),a=n(16949),o=n(76577),s=o.wrapTreePathInfo,l=8,c=8,u=5;function h(e){this.group=new i.Group,e.add(this.group)}function d(e,t,n,i,r,a){var o=[[r?e:e-u,t],[e+n,t],[e+n,t+i],[r?e:e-u,t+i]];return!a&&o.splice(2,0,[e+n+u,t+i/2]),!r&&o.push([e,t+i/2]),o}function p(e,t,n){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&s(n,t)}}h.prototype={constructor:h,render:function(e,t,n,i){var a=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),a.get("show")&&n){var s=a.getModel("itemStyle"),l=s.getModel("textStyle"),c={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(e,c,s,l,i),r.positionElement(o,c.pos,c.box)}},_prepare:function(e,t,n){for(var i=e;i;i=i.parentNode){var r=i.getModel().get("name"),a=n.getTextRect(r),o=Math.max(a.width+2*l,t.emptyItemWidth);t.totalWidth+=o+c,t.renderList.push({node:i,text:r,width:o})}},_renderContent:function(e,t,n,o,s){for(var l=0,u=t.emptyItemWidth,h=e.get("breadcrumb.height"),f=r.getAvailableSize(t.pos,t.box),m=t.totalWidth,g=t.renderList,v=g.length-1;v>=0;v--){var y=g[v],_=y.node,x=y.width,b=y.text;m>f.width&&(m-=x-u,x=u,b=null);var w=new i.Polygon({shape:{points:d(l,0,x,h,v===g.length-1,0===v)},style:a.defaults(n.getItemStyle(),{lineJoin:"bevel",text:b,textFill:o.getTextColor(),textFont:o.getFont()}),z:10,onclick:a.curry(s,_)});this.group.add(w),p(w,e,_),l+=x+c}},remove:function(){this.group.removeAll()}};var f=h;e.exports=f},95333:function(e,t,n){var i=n(16949),r=n(21987),a=n(660),o=n(96753),s=n(68331),l=s.encodeHTML,c=s.addCommas,u=n(76577),h=u.wrapTreePathInfo,d=r.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,t){var n={name:e.name,children:e.data};p(n);var r=e.levels||[],s=this.designatedVisualItemStyle={},l=new o({itemStyle:s},this,t);r=e.levels=f(r,t);var c=i.map(r||[],(function(e){return new o(e,l,t)}),this),u=a.createTree(n,this,h);function h(e){e.wrapMethod("getItemModel",(function(e,t){var n=u.getNodeByDataIndex(t),i=c[n.depth];return e.parentModel=i||l,e}))}return u.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var t=this.getData(),n=this.getRawValue(e),r=i.isArray(n)?c(n[0]):c(n),a=t.getName(e);return l(a+": "+r)},getDataParams:function(e){var t=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=h(n,this),t},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},i.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=i.createHashMap(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});function p(e){var t=0;i.each(e.children,(function(e){p(e);var n=e.value;i.isArray(n)&&(n=n[0]),t+=n}));var n=e.value;i.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),i.isArray(e.value)?e.value[0]=n:e.value=n}function f(e,t){var n=t.get("color");if(n){var r;if(e=e||[],i.each(e,(function(e){var t=new o(e),n=t.get("color");(t.get("itemStyle.color")||n&&"none"!==n)&&(r=!0)})),!r){var a=e[0]||(e[0]={});a.color=n.slice()}return e}}e.exports=d},80567:function(e,t,n){n(70252);var i=n(63321),r=n(16949),a=n(60823),o=n(60339),s=n(76577),l=n(29351),c=n(75249),u=n(17913),h=n(16317),d=n(71998),p=n(15827),f=n(68331),m=f.windowOpen,g=r.bind,v=a.Group,y=a.Rect,_=r.each,x=3,b=["label"],w=["emphasis","label"],S=["upperLabel"],M=["emphasis","upperLabel"],C=10,T=1,E=2,A=p([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),k=function(e){var t=A(e);return t.stroke=t.fill=t.lineWidth=null,t},D=i.extendChartView({type:"treemap",init:function(e,t){this._containerGroup,this._storage=I(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(e,t,n,i){var a=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!(r.indexOf(a,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var o=["treemapZoomToNode","treemapRootToNode"],l=s.retrieveTargetInfo(i,o,e),c=i&&i.type,u=e.layoutInfo,h=!this._oldTree,d=this._storage,p="treemapRootToNode"===c&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,f=this._giveContainerGroup(u),m=this._doRender(f,e,p);h||c&&"treemapZoomToNode"!==c&&"treemapRootToNode"!==c?m.renderFinally():this._doAnimation(f,m,e,p),this._resetController(n),this._renderBreadcrumb(e,n,l)}},_giveContainerGroup:function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new v,this._initEvents(t),this.group.add(t)),t.attr("position",[e.x,e.y]),t},_doRender:function(e,t,n){var i=t.getData().tree,a=this._oldTree,s=I(),l=I(),c=this._storage,u=[],h=r.curry(P,t,l,c,n,s,u);p(i.root?[i.root]:[],a&&a.root?[a.root]:[],e,i===a||!a,0);var d=f(c);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:m};function p(e,t,n,i,a){function s(e){return e.getId()}function l(r,o){var s=null!=r?e[r]:null,l=null!=o?t[o]:null,c=h(s,l,n,a);c&&p(s&&s.viewChildren||[],l&&l.viewChildren||[],c,i,a+1)}i?(t=e,_(e,(function(e,t){!e.isRemoved()&&l(t,t)}))):new o(t,e,s,s).add(l).update(l).remove(r.curry(l,null)).execute()}function f(e){var t=I();return e&&_(e,(function(e,n){var i=t[n];_(e,(function(e){e&&(i.push(e),e.__tmWillDelete=1)}))})),t}function m(){_(d,(function(e){_(e,(function(e){e.parent&&e.parent.remove(e)}))})),_(u,(function(e){e.invisible=!0,e.dirty()}))}},_doAnimation:function(e,t,n,i){if(n.get("animation")){var a=n.get("animationDurationUpdate"),o=n.get("animationEasing"),s=d.createWrap();_(t.willDeleteEls,(function(e,t){_(e,(function(e,n){if(!e.invisible){var r,l=e.parent;if(i&&"drillDown"===i.direction)r=l===i.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,u=0;l.__tmWillDelete||(c=l.__tmNodeWidth/2,u=l.__tmNodeHeight/2),r="nodeGroup"===t?{position:[c,u],style:{opacity:0}}:{shape:{x:c,y:u,width:0,height:0},style:{opacity:0}}}r&&s.add(e,r,a,o)}}))})),_(this._storage,(function(e,n){_(e,(function(e,i){var l=t.lastsForAnimation[n][i],c={};l&&("nodeGroup"===n?l.old&&(c.position=e.position.slice(),e.attr("position",l.old)):(l.old&&(c.shape=r.extend({},e.shape),e.setShape(l.old)),l.fadein?(e.setStyle("opacity",0),c.style={opacity:1}):1!==e.style.opacity&&(c.style={opacity:1})),s.add(e,c,a,o))}))}),this),this._state="animating",s.done(g((function(){this._state="ready",t.renderFinally()}),this)).start()}},_resetController:function(e){var t=this._controller;t||(t=this._controller=new c(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",g(this._onPan,this)),t.on("zoom",g(this._onZoom,this)));var n=new u(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,i){return n.contain(t,i)}))},_clearController:function(){var e=this._controller;e&&(e.dispose(),e=null)},_onPan:function(e){if("animating"!==this._state&&(Math.abs(e.dx)>x||Math.abs(e.dy)>x)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},_onZoom:function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var a=new u(r.x,r.y,r.width,r.height),o=this.seriesModel.layoutInfo;t-=o.x,n-=o.y;var s=h.create();h.translate(s,s,[-t,-n]),h.scale(s,s,[e.scale,e.scale]),h.translate(s,s,[t,n]),a.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.height}})}},_initEvents:function(e){e.on("click",(function(e){if("ready"===this._state){var t=this.seriesModel.get("nodeClick",!0);if(t){var n=this.findTarget(e.offsetX,e.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===t)this._zoomToNode(n);else if("link"===t){var r=i.hostTree.data.getItemModel(i.dataIndex),a=r.get("link",!0),o=r.get("target",!0)||"blank";a&&m(a,o)}}}}}),this)},_renderBreadcrumb:function(e,t,n){function i(t){"animating"!==this._state&&(s.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))}n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new l(this.group))).render(e,t,n.node,g(i,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=I(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},_rootToNode:function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},findTarget:function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var a=r.transformCoordToLocal(e,t),o=r.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height))return!1;n={node:i,offsetX:a[0],offsetY:a[1]}}}),this),n}});function I(){return{nodeGroup:[],background:[],content:[]}}function P(e,t,n,i,o,s,l,c,u,h){if(l){var d=l.getLayout(),p=e.getData();if(p.setItemGraphicEl(l.dataIndex,null),d&&d.isInView){var f=d.width,m=d.height,g=d.borderWidth,_=d.invisible,x=l.getRawIndex(),C=c&&c.getRawIndex(),D=l.viewChildren,I=d.upperHeight,P=D&&D.length,L=l.getModel("itemStyle"),R=l.getModel("emphasis.itemStyle"),N=W("nodeGroup",v);if(N){if(u.add(N),N.attr("position",[d.x||0,d.y||0]),N.__tmNodeWidth=f,N.__tmNodeHeight=m,d.isAboveViewRoot)return N;var F=l.getModel(),B=W("background",y,h,T);if(B&&V(N,B,P&&d.upperLabelHeight),P)a.isHighDownDispatcher(N)&&a.setAsHighDownDispatcher(N,!1),B&&(a.setAsHighDownDispatcher(B,!0),p.setItemGraphicEl(l.dataIndex,B));else{var z=W("content",y,h,E);z&&U(N,z),B&&a.isHighDownDispatcher(B)&&a.setAsHighDownDispatcher(B,!1),a.setAsHighDownDispatcher(N,!0),p.setItemGraphicEl(l.dataIndex,N)}return N}}}function V(t,n,i){if(n.dataIndex=l.dataIndex,n.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:f,height:m}),_)H(n);else{n.invisible=!1;var r=l.getVisual("borderColor",!0),o=R.get("borderColor"),s=k(L);s.fill=r;var c=A(R);if(c.fill=o,i){var u=f-2*g;$(s,c,r,u,I,{x:g,y:0,width:u,height:I})}else s.text=c.text=null;n.setStyle(s),a.setElementHoverStyle(n,c)}t.add(n)}function U(t,n){n.dataIndex=l.dataIndex,n.seriesIndex=e.seriesIndex;var i=Math.max(f-2*g,0),r=Math.max(m-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:r}),_)H(n);else{n.invisible=!1;var o=l.getVisual("color",!0),s=k(L);s.fill=o;var c=A(R);$(s,c,o,i,r),n.setStyle(s),a.setElementHoverStyle(n,c)}t.add(n)}function H(e){!e.invisible&&s.push(e)}function $(t,n,i,o,s,c){var u=F.get("name"),h=F.getModel(c?S:b),p=F.getModel(c?M:w),f=h.getShallow("show");a.setLabelStyle(t,n,h,p,{defaultText:f?u:null,autoColor:i,isRectText:!0,labelFetcher:e,labelDataIndex:l.dataIndex,labelProp:c?"upperLabel":"label"}),j(t,c,d),j(n,c,d),c&&(t.textRect=r.clone(c)),t.truncate=f&&h.get("ellipsis")?{outerWidth:o,outerHeight:s,minChar:2}:null}function j(t,n,i){var r=t.text;if(!n&&i.isLeafRoot&&null!=r){var a=e.get("drillDownIcon",!0);t.text=a?a+" "+r:r}}function W(e,i,r,a){var s=null!=C&&n[e][C],l=o[e];return s?(n[e][C]=null,G(l,s,e)):_||(s=new i({z:O(r,a)}),s.__tmDepth=r,s.__tmStorageName=e,q(l,s,e)),t[e][x]=s}function G(e,t,n){var i=e[x]={};i.old="nodeGroup"===n?t.position.slice():r.extend({},t.shape)}function q(e,t,n){var r=e[x]={},a=l.parentNode;if(a&&(!i||"drillDown"===i.direction)){var s=0,c=0,u=o.background[a.getRawIndex()];!i&&u&&u.old&&(s=u.old.width,c=u.old.height),r.old="nodeGroup"===n?[0,c]:{x:s,y:c,width:0,height:0}}r.fadein="nodeGroup"!==n}}function O(e,t){var n=e*C+t;return(n-1)/n}e.exports=D},14316:function(e,t,n){for(var i=n(63321),r=n(76577),a=function(){},o=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s<o.length;s++)i.registerAction({type:o[s],update:"updateView"},a);i.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var i=["treemapZoomToNode","treemapRootToNode"],a=r.retrieveTargetInfo(e,i,t);if(a){var o=t.getViewRoot();o&&(e.direction=r.aboveViewRoot(o,a.node)?"rollUp":"drillDown"),t.resetViewRoot(a.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))},3126:function(e,t,n){n(70252);var i=n(16949),r=n(17913),a=n(80720),o=a.parsePercent,s=a.MAX_SAFE_INTEGER,l=n(89317),c=n(76577),u=Math.max,h=Math.min,d=i.retrieve,p=i.each,f=["itemStyle","borderWidth"],m=["itemStyle","gapWidth"],g=["upperLabel","show"],v=["upperLabel","height"],y={seriesType:"treemap",reset:function(e,t,n,a){var s=n.getWidth(),u=n.getHeight(),h=e.option,f=l.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),m=h.size||[],g=o(d(f.width,m[0]),s),v=o(d(f.height,m[1]),u),y=a&&a.type,x=["treemapZoomToNode","treemapRootToNode"],b=c.retrieveTargetInfo(a,x,e),w="treemapRender"===y||"treemapMove"===y?a.rootRect:null,S=e.getViewRoot(),M=c.getPathToRoot(S);if("treemapMove"!==y){var C="treemapZoomToNode"===y?T(e,b,S,g,v):w?[w.width,w.height]:[g,v],k=h.sort;k&&"asc"!==k&&"desc"!==k&&(k="desc");var D={squareRatio:h.squareRatio,sort:k,leafDepth:h.leafDepth};S.hostTree.clearLayouts();var I={x:0,y:0,width:C[0],height:C[1],area:C[0]*C[1]};S.setLayout(I),_(S,D,!1,0);I=S.getLayout();p(M,(function(e,t){var n=(M[t+1]||S).getValue();e.setLayout(i.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},I))}))}var P=e.getData().tree.root;P.setLayout(E(f,w,b),!0),e.setLayoutInfo(f),A(P,new r(-f.x,-f.y,s,u),M,S,0)}};function _(e,t,n,i){var r,a;if(!e.isRemoved()){var o=e.getLayout();r=o.width,a=o.height;var s=e.getModel(),l=s.get(f),c=s.get(m)/2,d=k(s),p=Math.max(l,d),g=l-c,v=p-c;s=e.getModel();e.setLayout({borderWidth:l,upperHeight:p,upperLabelHeight:d},!0),r=u(r-2*g,0),a=u(a-g-v,0);var y=r*a,b=x(e,s,y,t,n,i);if(b.length){var w={x:g,y:v,width:r,height:a},S=h(r,a),T=1/0,E=[];E.area=0;for(var A=0,D=b.length;A<D;){var I=b[A];E.push(I),E.area+=I.getLayout().area;var P=M(E,S,t.squareRatio);P<=T?(A++,T=P):(E.area-=E.pop().getLayout().area,C(E,S,w,c,!1),S=h(w.width,w.height),E.length=E.area=0,T=1/0)}if(E.length&&C(E,S,w,c,!0),!n){var O=s.get("childrenVisibleMin");null!=O&&y<O&&(n=!0)}for(A=0,D=b.length;A<D;A++)_(b[A],t,n,i+1)}}}function x(e,t,n,r,a,o){var s=e.children||[],l=r.sort;"asc"!==l&&"desc"!==l&&(l=null);var c=null!=r.leafDepth&&r.leafDepth<=o;if(a&&!c)return e.viewChildren=[];s=i.filter(s,(function(e){return!e.isRemoved()})),w(s,l);var u=S(t,s,l);if(0===u.sum)return e.viewChildren=[];if(u.sum=b(t,n,u.sum,l,s),0===u.sum)return e.viewChildren=[];for(var h=0,d=s.length;h<d;h++){var p=s[h].getValue()/u.sum*n;s[h].setLayout({area:p})}return c&&(s.length&&e.setLayout({isLeafRoot:!0},!0),s.length=0),e.viewChildren=s,e.setLayout({dataExtent:u.dataExtent},!0),s}function b(e,t,n,i,r){if(!i)return n;for(var a=e.get("visibleMin"),o=r.length,s=o,l=o-1;l>=0;l--){var c=r["asc"===i?o-l-1:l].getValue();c/n*t<a&&(s=l,n-=c)}return"asc"===i?r.splice(0,o-s):r.splice(s,o-s),n}function w(e,t){return t&&e.sort((function(e,n){var i="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===i?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i})),e}function S(e,t,n){for(var i=0,r=0,a=t.length;r<a;r++)i+=t[r].getValue();var o=e.get("visualDimension");if(t&&t.length)if("value"===o&&n)s=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&s.reverse();else{var s=[1/0,-1/0];p(t,(function(e){var t=e.getValue(o);t<s[0]&&(s[0]=t),t>s[1]&&(s[1]=t)}))}else s=[NaN,NaN];return{sum:i,dataExtent:s}}function M(e,t,n){for(var i,r=0,a=1/0,o=0,s=e.length;o<s;o++)i=e[o].getLayout().area,i&&(i<a&&(a=i),i>r&&(r=i));var l=e.area*e.area,c=t*t*n;return l?u(c*r/l,l/(c*a)):1/0}function C(e,t,n,i,r){var a=t===n.width?0:1,o=1-a,s=["x","y"],l=["width","height"],c=n[s[a]],d=t?e.area/t:0;(r||d>n[l[o]])&&(d=n[l[o]]);for(var p=0,f=e.length;p<f;p++){var m=e[p],g={},v=d?m.getLayout().area/d:0,y=g[l[o]]=u(d-2*i,0),_=n[s[a]]+n[l[a]]-c,x=p===f-1||_<v?_:v,b=g[l[a]]=u(x-2*i,0);g[s[o]]=n[s[o]]+h(i,y/2),g[s[a]]=c+h(i,b/2),c+=x,m.setLayout(g,!0)}n[s[o]]+=d,n[l[o]]-=d}function T(e,t,n,i,r){var a,o=(t||{}).node,l=[i,r];if(!o||o===n)return l;var c=i*r,u=c*e.option.zoomToNodeRatio;while(a=o.parentNode){for(var h=0,d=a.children,p=0,m=d.length;p<m;p++)h+=d[p].getValue();var g=o.getValue();if(0===g)return l;u*=h/g;var v=a.getModel(),y=v.get(f),_=Math.max(y,k(v,y));u+=4*y*y+(3*y+_)*Math.pow(u,.5),u>s&&(u=s),o=a}u<c&&(u=c);var x=Math.pow(u/c,.5);return[i*x,r*x]}function E(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var r=n.node,a=r.getLayout();if(!a)return i;var o=[a.width/2,a.height/2],s=r;while(s){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function A(e,t,n,i,a){var o=e.getLayout(),s=n[a],l=s&&s===e;if(!(s&&!l||a===n.length&&e!==i)){e.setLayout({isInView:!0,invisible:!l&&!t.intersect(o),isAboveViewRoot:l},!0);var c=new r(t.x-o.x,t.y-o.y,t.width,t.height);p(e.viewChildren||[],(function(e){A(e,c,n,i,a+1)}))}}function k(e){return e.get(g)?e.get(v):0}e.exports=y},22927:function(e,t,n){var i=n(9516),r=n(35098),a=n(16949),o=a.isArray,s="itemStyle",l={seriesType:"treemap",reset:function(e,t,n,i){var r=e.getData().tree,a=r.root;a.isRemoved()||c(a,{},e.getViewRoot().getAncestors(),e)}};function c(e,t,n,i){var r=e.getModel(),o=e.getLayout();if(o&&!o.invisible&&o.isInView){var l,p=e.getModel(s),m=u(p,t,i),v=p.get("borderColor"),y=p.get("borderColorSaturation");null!=y&&(l=h(m,e),v=d(y,l)),e.setVisual("borderColor",v);var _=e.viewChildren;if(_&&_.length){var x=f(e,r,o,p,m,_);a.each(_,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var a=g(r,m,e,t,x,i);c(e,a,n,i)}}))}else l=h(m,e),e.setVisual("color",l)}}function u(e,t,n){var i=a.extend({},t),r=n.designatedVisualItemStyle;return a.each(["color","colorAlpha","colorSaturation"],(function(n){r[n]=t[n];var a=e.get(n);r[n]=null,null!=a&&(i[n]=a)})),i}function h(e){var t=p(e,"color");if(t){var n=p(e,"colorAlpha"),i=p(e,"colorSaturation");return i&&(t=r.modifyHSL(t,null,null,i)),n&&(t=r.modifyAlpha(t,n)),t}}function d(e,t){return null!=t?r.modifyHSL(t,null,null,e):null}function p(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function f(e,t,n,r,a,o){if(o&&o.length){var s=m(t,"color")||null!=a.color&&"none"!==a.color&&(m(t,"colorAlpha")||m(t,"colorSaturation"));if(s){var l=t.get("visualMin"),c=t.get("visualMax"),u=n.dataExtent.slice();null!=l&&l<u[0]&&(u[0]=l),null!=c&&c>u[1]&&(u[1]=c);var h=t.get("colorMappingBy"),d={type:s.name,dataExtent:u,visual:s.range};"color"!==d.type||"index"!==h&&"id"!==h?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var p=new i(d);return p.__drColorMappingBy=h,p}}}function m(e,t){var n=e.get(t);return o(n)&&n.length?{name:t,range:n}:null}function g(e,t,n,i,r,o){var s=a.extend({},t);if(r){var l=r.type,c="color"===l&&r.__drColorMappingBy,u="index"===c?i:"id"===c?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));s[l]=r.mapValueToVisual(u)}return s}e.exports=l},56170:function(e,t,n){n(39765),n(77920)},53666:function(e,t,n){n(53485),n(24617)},73189:function(e,t,n){var i=n(63321),r=n(16949),a=n(19763),o=n(32908);n(59680),n(41341),n(31422),i.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!r.isArray(t)&&(e.axisPointer.link=[t])}})),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=a.collect(e,t)})),i.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},o)},59680:function(e,t,n){var i=n(63321),r=i.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),a=r;e.exports=a},41341:function(e,t,n){var i=n(63321),r=n(21618),a=i.extendComponentView({type:"axisPointer",render:function(e,t,n){var i=t.getComponent("tooltip"),a=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";r.register("axisPointer",n,(function(e,t,n){"none"!==a&&("leave"===e||a.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},remove:function(e,t){r.unregister(t.getZr(),"axisPointer"),a.superApply(this._model,"remove",arguments)},dispose:function(e,t){r.unregister("axisPointer",t),a.superApply(this._model,"dispose",arguments)}}),o=a;e.exports=o},25060:function(e,t,n){var i=n(16949),r=n(55480),a=n(60823),o=n(19763),s=n(11793),l=n(1199),c=n(75269),u=c.makeInner,h=u(),d=i.clone,p=i.bind;function f(){}function m(e,t,n,i){g(h(n).lastProp,i)||(h(n).lastProp=i,t?a.updateProps(n,i,e):(n.stopAnimation(),n.attr(i)))}function g(e,t){if(i.isObject(e)&&i.isObject(t)){var n=!0;return i.each(t,(function(t,i){n=n&&g(e[i],t)})),!!n}return e===t}function v(e,t){e[t.get("label.show")?"show":"hide"]()}function y(e){return{position:e.position.slice(),rotation:e.rotation||0}}function _(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)}))}f.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,n,r){var o=t.get("value"),s=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==o||this._lastStatus!==s){this._lastValue=o,this._lastStatus=s;var l=this._group,c=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(c&&c.hide());l&&l.show(),c&&c.show();var u={};this.makeElOption(u,o,e,t,n);var h=u.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var d=this._moveAnimation=this.determineAnimation(e,t);if(l){var p=i.curry(m,t,d);this.updatePointerEl(l,u,p,t),this.updateLabelEl(l,u,p,t)}else l=this._group=new a.Group,this.createPointerEl(l,u,e,t),this.createLabelEl(l,u,e,t),n.getZr().add(l);_(l,t,!0),this._renderHandle(o)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,a=t.get("snap");if(!a&&!r)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(r&&i.getBandWidth()>s)return!0;if(a){var l=o.getAxisInfo(e).seriesDataCount,c=i.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return!0===n},makeElOption:function(e,t,n,i,r){},createPointerEl:function(e,t,n,i){var r=t.pointer;if(r){var o=h(e).pointerEl=new a[r.type](d(t.pointer));e.add(o)}},createLabelEl:function(e,t,n,i){if(t.label){var r=h(e).labelEl=new a.Rect(d(t.label));e.add(r),v(r,i)}},updatePointerEl:function(e,t,n){var i=h(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,n,i){var r=h(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{shape:t.label.shape,position:t.label.position}),v(r,i))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),o=this._handle,c=n.getModel("handle"),u=n.get("status");if(!c.get("show")||!u||"hide"===u)return o&&r.remove(o),void(this._handle=null);this._handle||(t=!0,o=this._handle=a.createIcon(c.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){s.stop(e.event)},onmousedown:p(this._onHandleDragMove,this,0,0),drift:p(this._onHandleDragMove,this),ondragend:p(this._onHandleDragEnd,this)}),r.add(o)),_(o,n,!1);var h=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];o.setStyle(c.getItemStyle(null,h));var d=c.get("size");i.isArray(d)||(d=[d,d]),o.attr("scale",[d[0]/2,d[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",c.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},_moveHandleToValue:function(e,t){m(this._axisPointerModel,!t&&this._moveAnimation,this._handle,y(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(y(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(y(i)),h(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},_onHandleDragEnd:function(e){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}},f.prototype.constructor=f,r.enableClassExtend(f);var x=f;e.exports=x},31422:function(e,t,n){var i=n(25060),r=n(1745),a=n(43994),o=n(20701),s=i.extend({makeElOption:function(e,t,n,i,o){var s=n.axis,u=s.grid,h=i.get("type"),d=l(u,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(t,!0));if(h&&"none"!==h){var f=r.buildElStyle(i),m=c[h](s,p,d);m.style=f,e.graphicKey=m.type,e.pointer=m}var g=a.layout(u.model,n);r.buildCartesianSingleLabelElOption(t,e,g,n,i,o)},getHandleTransform:function(e,t,n){var i=a.layout(t.axis.grid.model,t,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:r.getTransformedPosition(t.axis,e,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,n,i){var r=n.axis,a=r.grid,o=r.getGlobalExtent(!0),s=l(a,r).getOtherAxis(r).getGlobalExtent(),c="x"===r.dim?0:1,u=e.position;u[c]+=t[c],u[c]=Math.min(o[1],u[c]),u[c]=Math.max(o[0],u[c]);var h=(s[1]+s[0])/2,d=[h,h];d[c]=u[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{position:u,rotation:e.rotation,cursorPoint:d,tooltipOption:p[c]}}});function l(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var c={line:function(e,t,n){var i=r.makeLineShape([t,n[0]],[t,n[1]],u(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:r.makeRectShape([t-i/2,n[0]],[i,a],u(e))}}};function u(e){return"x"===e.dim?0:1}o.registerAxisPointerClass("CartesianAxisPointer",s);var h=s;e.exports=h},84596:function(e,t,n){var i=n(68331),r=n(25060),a=n(60823),o=n(1745),s=n(16317),l=n(66511),c=n(20701),u=r.extend({makeElOption:function(e,t,n,r,a){var s=n.axis;"angle"===s.dim&&(this.animationThreshold=Math.PI/18);var l,c=s.polar,u=c.getOtherAxis(s),p=u.getExtent();l=s["dataTo"+i.capitalFirst(s.dim)](t);var f=r.get("type");if(f&&"none"!==f){var m=o.buildElStyle(r),g=d[f](s,c,l,p,m);g.style=m,e.graphicKey=g.type,e.pointer=g}var v=r.get("label.margin"),y=h(t,n,r,c,v);o.buildLabelElOption(e,n,r,a,y)}});function h(e,t,n,i,r){var o=t.axis,c=o.dataToCoord(e),u=i.getAngleAxis().getExtent()[0];u=u/180*Math.PI;var h,d,p,f=i.getRadiusAxis().getExtent();if("radius"===o.dim){var m=s.create();s.rotate(m,m,u),s.translate(m,m,[i.cx,i.cy]),h=a.applyTransform([c,-r],m);var g=t.getModel("axisLabel").get("rotate")||0,v=l.innerTextLayout(u,g*Math.PI/180,-1);d=v.textAlign,p=v.textVerticalAlign}else{var y=f[1];h=i.coordToPoint([y+r,c]);var _=i.cx,x=i.cy;d=Math.abs(h[0]-_)/y<.3?"center":h[0]>_?"left":"right",p=Math.abs(h[1]-x)/y<.3?"middle":h[1]>x?"top":"bottom"}return{position:h,align:d,verticalAlign:p}}var d={line:function(e,t,n,i,r){return"angle"===e.dim?{type:"Line",shape:o.makeLineShape(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i,r){var a=Math.max(1,e.getBandWidth()),s=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:o.makeSectorShape(t.cx,t.cy,i[0],i[1],(-n-a/2)*s,(a/2-n)*s)}:{type:"Sector",shape:o.makeSectorShape(t.cx,t.cy,n-a/2,n+a/2,0,2*Math.PI)}}};c.registerAxisPointerClass("PolarAxisPointer",u);var p=u;e.exports=p},70924:function(e,t,n){var i=n(25060),r=n(1745),a=n(94763),o=n(20701),s=["x","y"],l=["width","height"],c=i.extend({makeElOption:function(e,t,n,i,o){var s=n.axis,l=s.coordinateSystem,c=d(l,1-h(s)),p=l.dataToPoint(t)[0],f=i.get("type");if(f&&"none"!==f){var m=r.buildElStyle(i),g=u[f](s,p,c);g.style=m,e.graphicKey=g.type,e.pointer=g}var v=a.layout(n);r.buildCartesianSingleLabelElOption(t,e,v,n,i,o)},getHandleTransform:function(e,t,n){var i=a.layout(t,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:r.getTransformedPosition(t.axis,e,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,n,i){var r=n.axis,a=r.coordinateSystem,o=h(r),s=d(a,o),l=e.position;l[o]+=t[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var c=d(a,1-o),u=(c[1]+c[0])/2,p=[u,u];return p[o]=l[o],{position:l,rotation:e.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}}}),u={line:function(e,t,n){var i=r.makeLineShape([t,n[0]],[t,n[1]],h(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:r.makeRectShape([t-i/2,n[0]],[i,a],h(e))}}};function h(e){return e.isHorizontal()?0:1}function d(e,t){var n=e.getRect();return[n[s[t]],n[s[t]]+n[l[t]]]}o.registerAxisPointerClass("SingleAxisPointer",c);var p=c;e.exports=p},32908:function(e,t,n){n(70252);var i=n(16949),r=n(75269),a=r.makeInner,o=n(19763),s=n(32379),l=i.each,c=i.curry,u=a();function h(e,t,n){var r=e.currTrigger,a=[e.x,e.y],o=e,u=e.dispatchAction||i.bind(n.dispatchAction,n),h=t.getComponent("axisPointer").coordSysAxesInfo;if(h){b(a)&&(a=s({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var p=b(a),w=o.axesInfo,S=h.axesInfo,M="leave"===r||b(a),C={},T={},E={list:[],map:{}},A={showPointer:c(f,T),showTooltip:c(m,E)};l(h.coordSysMap,(function(e,t){var n=p||e.containPoint(a);l(h.coordSysAxesInfo[t],(function(e,t){var i=e.axis,r=_(w,e);if(!M&&n&&(!w||r)){var o=r&&r.value;null!=o||p||(o=i.pointToData(a)),null!=o&&d(e,o,A,!1,C)}}))}));var k={};return l(S,(function(e,t){var n=e.linkGroup;n&&!T[t]&&l(n.axesInfo,(function(t,i){var r=T[i];if(t!==e&&r){var a=r.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,x(t),x(e)))),k[e.key]=a}}))})),l(k,(function(e,t){d(S[t],e,A,!0,C)})),g(T,S,C),v(E,a,e,u),y(S,u,n),C}}function d(e,t,n,r,a){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var s=p(t,e),l=s.payloadBatch,c=s.snapToValue;l[0]&&null==a.seriesIndex&&i.extend(a,l[0]),!r&&e.snap&&o.containData(c)&&null!=c&&(t=c),n.showPointer(e,t,l,a),n.showTooltip(e,s,c)}else n.showPointer(e,t)}function p(e,t){var n=t.axis,i=n.dim,r=e,a=[],o=Number.MAX_VALUE,s=-1;return l(t.seriesModels,(function(t,c){var u,h,d=t.getData().mapDimension(i,!0);if(t.getAxisTooltipData){var p=t.getAxisTooltipData(d,e,n);h=p.dataIndices,u=p.nestestValue}else{if(h=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null),!h.length)return;u=t.getData().get(d[0],h[0])}if(null!=u&&isFinite(u)){var f=e-u,m=Math.abs(f);m<=o&&((m<o||f>=0&&s<0)&&(o=m,s=f,r=u,a.length=0),l(h,(function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:a,snapToValue:r}}function f(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function m(e,t,n,i){var r=n.payloadBatch,a=t.axis,s=a.model,l=t.axisPointerModel;if(t.triggerTooltip&&r.length){var c=t.coordSys.model,u=o.makeKey(c),h=e.map[u];h||(h=e.map[u]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:r.slice()})}}function g(e,t,n){var i=n.axesInfo=[];l(t,(function(t,n){var r=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}function v(e,t,n,i){if(!b(t)&&e.list.length){var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}else i({type:"hideTip"})}function y(e,t,n){var r=n.getZr(),a="axisPointerLastHighlights",o=u(r)[a]||{},s=u(r)[a]={};l(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&l(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;s[t]=e}))}));var c=[],h=[];i.each(o,(function(e,t){!s[t]&&h.push(e)})),i.each(s,(function(e,t){!o[t]&&c.push(e)})),h.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:h}),c.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:c})}function _(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function x(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function b(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}e.exports=h},32379:function(e,t,n){var i=n(16949),r=n(75269);function a(e,t){var n,a=[],o=e.seriesIndex;if(null==o||!(n=t.getSeriesByIndex(o)))return{point:[]};var s=n.getData(),l=r.queryDataIndex(s,e);if(null==l||l<0||i.isArray(l))return{point:[]};var c=s.getItemGraphicEl(l),u=n.coordinateSystem;if(n.getTooltipPosition)a=n.getTooltipPosition(l)||[];else if(u&&u.dataToPoint)a=u.dataToPoint(s.getValues(i.map(u.dimensions,(function(e){return s.mapDimension(e)})),l,!0))||[];else if(c){var h=c.getBoundingRect().clone();h.applyTransform(c.transform),a=[h.x+h.width/2,h.y+h.height/2]}return{point:a,el:c}}e.exports=a},21618:function(e,t,n){n(70252);var i=n(16949),r=n(28299),a=n(75269),o=a.makeInner,s=o(),l=i.each;function c(e,t,n){if(!r.node){var i=t.getZr();s(i).records||(s(i).records={}),u(i,t);var a=s(i).records[e]||(s(i).records[e]={});a.handler=n}}function u(e,t){function n(n,i){e.on(n,(function(n){var r=f(t);l(s(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),h(r.pendings,t)}))}s(e).initialized||(s(e).initialized=!0,n("click",i.curry(p,"click")),n("mousemove",i.curry(p,"mousemove")),n("globalout",d))}function h(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function d(e,t,n){e.handler("leave",null,n)}function p(e,t,n,i){t.handler(e,n,i)}function f(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function m(e,t){if(!r.node){var n=t.getZr(),i=(s(n).records||{})[e];i&&(s(n).records[e]=null)}}t.register=c,t.unregister=m},19763:function(e,t,n){n(70252);var i=n(16949),r=n(96753),a=i.each,o=i.curry;function s(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return l(n,e,t),n.seriesInvolved&&u(n,e),n}function l(e,t,n){var i=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),s=r.get("link",!0)||[],l=[];a(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var u=v(n.model),d=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=n;var p=n.model,f=p.getModel("tooltip",i);if(a(n.getAxes(),o(x,!1,null)),n.getTooltipAxes&&i&&f.get("show")){var m="axis"===f.get("trigger"),y="cross"===f.get("axisPointer.type"),_=n.getTooltipAxes(f.get("axisPointer.axis"));(m||y)&&a(_.baseAxes,o(x,!y||"cross",m)),y&&a(_.otherAxes,o(x,"cross",!1))}}function x(i,a,o){var u=o.model.getModel("axisPointer",r),p=u.get("show");if(p&&("auto"!==p||i||g(u))){null==a&&(a=u.get("triggerTooltip")),u=i?c(o,f,r,t,i,a):u;var m=u.get("snap"),y=v(o.model),_=a||m||"category"===o.type,x=e.axesInfo[y]={key:y,axis:o,coordSys:n,axisPointerModel:u,triggerTooltip:a,involveSeries:_,snap:m,useHandle:g(u),seriesModels:[]};d[y]=x,e.seriesInvolved|=_;var b=h(s,o);if(null!=b){var w=l[b]||(l[b]={axesInfo:{}});w.axesInfo[y]=x,w.mapper=s[b].mapper,x.linkGroup=w}}}}))}function c(e,t,n,o,s,l){var c=t.getModel("axisPointer"),u={};a(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){u[e]=i.clone(c.get(e))})),u.snap="category"!==e.type&&!!l,"cross"===c.get("type")&&(u.type="line");var h=u.label||(u.label={});if(null==h.show&&(h.show=!1),"cross"===s){var d=c.get("label.show");if(h.show=null==d||d,!l){var p=u.lineStyle=c.get("crossStyle");p&&i.defaults(h,p.textStyle)}}return e.model.getModel("axisPointer",new r(u,n,o))}function u(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,i=t.get("tooltip.trigger",!0),r=t.get("tooltip.show",!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==t.get("axisPointer.show",!0)&&a(e.coordSysAxesInfo[v(n.model)],(function(e){var i=e.axis;n.getAxis(i.dim)===i&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}),this)}function h(e,t){for(var n=t.model,i=t.dim,r=0;r<e.length;r++){var a=e[r]||{};if(d(a[i+"AxisId"],n.id)||d(a[i+"AxisIndex"],n.componentIndex)||d(a[i+"AxisName"],n.name))return r}}function d(e,t){return"all"===e||i.isArray(e)&&i.indexOf(e,t)>=0||e===t}function p(e){var t=f(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=i.parse(o));var s=g(n);null==a&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),r.value=o,s&&(r.status=t.axis.scale.isBlank()?"hide":"show")}}function f(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[v(e)]}function m(e){var t=f(e);return t&&t.axisPointerModel}function g(e){return!!e.get("handle.show")}function v(e){return e.type+"||"+e.id}t.collect=s,t.fixValue=p,t.getAxisInfo=f,t.getAxisPointerModel=m,t.makeKey=v},1745:function(e,t,n){n(70252);var i=n(16949),r=n(60823),a=n(53164),o=n(68331),s=n(16317),l=n(87773),c=n(66511);function u(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle(),t.fill=null):"shadow"===n&&(t=i.getAreaStyle(),t.stroke=null),t}function h(e,t,n,i,r){var s=n.get("value"),l=p(s,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),c=n.getModel("label"),u=o.normalizeCssArray(c.get("padding")||0),h=c.getFont(),f=a.getBoundingRect(l,h),m=r.position,g=f.width+u[1]+u[3],v=f.height+u[0]+u[2],y=r.align;"right"===y&&(m[0]-=g),"center"===y&&(m[0]-=g/2);var _=r.verticalAlign;"bottom"===_&&(m[1]-=v),"middle"===_&&(m[1]-=v/2),d(m,g,v,i);var x=c.get("backgroundColor");x&&"auto"!==x||(x=t.get("axisLine.lineStyle.color")),e.label={shape:{x:0,y:0,width:g,height:v,r:c.get("borderRadius")},position:m.slice(),style:{text:l,textFont:h,textFill:c.getTextColor(),textPosition:"inside",textPadding:u,fill:x,stroke:c.get("borderColor")||"transparent",lineWidth:c.get("borderWidth")||0,shadowBlur:c.get("shadowBlur"),shadowColor:c.get("shadowColor"),shadowOffsetX:c.get("shadowOffsetX"),shadowOffsetY:c.get("shadowOffsetY")},z2:10}}function d(e,t,n,i){var r=i.getWidth(),a=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function p(e,t,n,r,a){e=t.scale.parse(e);var o=t.scale.getLabel(e,{precision:a.precision}),s=a.formatter;if(s){var c={value:l.getAxisRawValue(t,e),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};i.each(r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&c.seriesData.push(r)})),i.isString(s)?o=s.replace("{value}",o):i.isFunction(s)&&(o=s(c))}return o}function f(e,t,n){var i=s.create();return s.rotate(i,i,n.rotation),s.translate(i,i,n.position),r.applyTransform([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function m(e,t,n,i,r,a){var o=c.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),h(t,i,r,a,{position:f(i.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function g(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function v(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function y(e,t,n,i,r,a){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:a,clockwise:!0}}t.buildElStyle=u,t.buildLabelElOption=h,t.getValueLabel=p,t.getTransformedPosition=f,t.buildCartesianSingleLabelElOption=m,t.makeLineShape=g,t.makeRectShape=v,t.makeSectorShape=y},77920:function(e,t,n){n(70252);var i=n(16949),r=n(60823),a=n(96753),o=n(20701),s=n(66511),l=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function c(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function u(e){var t=e.getRadiusAxis();return t.inverse?0:1}function h(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var d=o.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,a=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),s=n.getMinorTicksCoords(),c=i.map(n.getViewLabels(),(function(e){e=i.clone(e);return e.coord=n.dataToCoord(e.tickValue),e}));h(c),h(o),i.each(l,(function(t){!e.get(t+".show")||n.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,r,o,s,a,c)}),this)}},_axisLine:function(e,t,n,i,a){var o,s=e.getModel("axisLine.lineStyle"),l=u(t),c=l?0:1;o=0===a[c]?new r.Circle({shape:{cx:t.cx,cy:t.cy,r:a[l]},style:s.getLineStyle(),z2:1,silent:!0}):new r.Ring({shape:{cx:t.cx,cy:t.cy,r:a[l],r0:a[c]},style:s.getLineStyle(),z2:1,silent:!0}),o.style.fill=null,this.group.add(o)},_axisTick:function(e,t,n,a,o){var s=e.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),h=o[u(t)],d=i.map(n,(function(e){return new r.Line({shape:c(t,[h,h+l],e.coord)})}));this.group.add(r.mergePath(d,{style:i.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})}))},_minorTick:function(e,t,n,a,o){if(a.length){for(var s=e.getModel("axisTick"),l=e.getModel("minorTick"),h=(s.get("inside")?-1:1)*l.get("length"),d=o[u(t)],p=[],f=0;f<a.length;f++)for(var m=0;m<a[f].length;m++)p.push(new r.Line({shape:c(t,[d,d+h],a[f][m].coord)}));this.group.add(r.mergePath(p,{style:i.defaults(l.getModel("lineStyle").getLineStyle(),i.defaults(s.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}))}))}},_axisLabel:function(e,t,n,o,l,c){var h=e.getCategories(!0),d=e.getModel("axisLabel"),p=d.get("margin"),f=e.get("triggerEvent");i.each(c,(function(n,i){var o=d,c=n.tickValue,m=l[u(t)],g=t.coordToPoint([m+p,n.coord]),v=t.cx,y=t.cy,_=Math.abs(g[0]-v)/m<.3?"center":g[0]>v?"left":"right",x=Math.abs(g[1]-y)/m<.3?"middle":g[1]>y?"top":"bottom";h&&h[c]&&h[c].textStyle&&(o=new a(h[c].textStyle,d,d.ecModel));var b=new r.Text({silent:s.isLabelSilent(e)});this.group.add(b),r.setTextStyle(b.style,o,{x:g[0],y:g[1],textFill:o.getTextColor()||e.get("axisLine.lineStyle.color"),text:n.formattedLabel,textAlign:_,textVerticalAlign:x}),f&&(b.eventData=s.makeAxisEventDataBase(e),b.eventData.targetType="axisLabel",b.eventData.value=n.rawLabel)}),this)},_splitLine:function(e,t,n,a,o){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),h=0;u=u instanceof Array?u:[u];for(var d=[],p=0;p<n.length;p++){var f=h++%u.length;d[f]=d[f]||[],d[f].push(new r.Line({shape:c(t,o,n[p].coord)}))}for(p=0;p<d.length;p++)this.group.add(r.mergePath(d[p],{style:i.defaults({stroke:u[p%u.length]},l.getLineStyle()),silent:!0,z:e.get("z")}))},_minorSplitLine:function(e,t,n,i,a){if(i.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var h=0;h<i[u].length;h++)l.push(new r.Line({shape:c(t,a,i[u][h].coord)}));this.group.add(r.mergePath(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},_splitArea:function(e,t,n,a,o){if(n.length){var s=e.getModel("splitArea"),l=s.getModel("areaStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=Math.PI/180,p=-n[0].coord*d,f=Math.min(o[0],o[1]),m=Math.max(o[0],o[1]),g=e.get("clockwise"),v=1;v<n.length;v++){var y=u++%c.length;h[y]=h[y]||[],h[y].push(new r.Sector({shape:{cx:t.cx,cy:t.cy,r0:f,r:m,startAngle:p,endAngle:-n[v].coord*d,clockwise:g},silent:!0})),p=-n[v].coord*d}for(v=0;v<h.length;v++)this.group.add(r.mergePath(h[v],{style:i.defaults({fill:c[v%c.length]},l.getAreaStyle()),silent:!0}))}}});e.exports=d},66511:function(e,t,n){n(70252);var i=n(16949),r=i.retrieve,a=i.defaults,o=i.extend,s=i.each,l=n(68331),c=n(60823),u=n(96753),h=n(80720),d=h.isRadianAroundZero,p=h.remRadian,f=n(2760),m=f.createSymbol,g=n(16317),v=n(89457),y=v.applyTransform,_=n(87773),x=_.shouldShowAllLabels,b=Math.PI,w=function(e,t){this.opt=t,this.axisModel=e,a(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new c.Group;var n=new c.Group({position:t.position.slice(),rotation:t.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};w.prototype={constructor:w,hasBuilder:function(e){return!!S[e]},add:function(e){S[e].call(this)},getGroup:function(){return this.group}};var S={axisLine:function(){var e=this.opt,t=this.axisModel;if(t.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),i=this._transform,r=[n[0],0],a=[n[1],0];i&&(y(r,r,i),y(a,a,i));var l=o({lineCap:"round"},t.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new c.Line({anid:"line",subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1}));var u=t.get("axisLine.symbol"),h=t.get("axisLine.symbolSize"),d=t.get("axisLine.symbolOffset")||0;if("number"===typeof d&&(d=[d,d]),null!=u){"string"===typeof u&&(u=[u,u]),"string"!==typeof h&&"number"!==typeof h||(h=[h,h]);var p=h[0],f=h[1];s([{rotate:e.rotation+Math.PI/2,offset:d[0],r:0},{rotate:e.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((r[0]-a[0])*(r[0]-a[0])+(r[1]-a[1])*(r[1]-a[1]))}],(function(t,n){if("none"!==u[n]&&null!=u[n]){var i=m(u[n],-p/2,-f/2,p,f,l.stroke,!0),a=t.r+t.offset,o=[r[0]+a*Math.cos(e.rotation),r[1]-a*Math.sin(e.rotation)];i.attr({rotation:t.rotate,position:o,silent:!0,z2:11}),this.group.add(i)}}),this)}}},axisTickLabel:function(){var e=this.axisModel,t=this.opt,n=O(this,e,t),i=R(this,e,t);A(e,i,n),L(this,e,t)},axisName:function(){var e=this.opt,t=this.axisModel,n=r(e.axisName,t.get("name"));if(n){var i,a,s=t.get("nameLocation"),u=e.nameDirection,h=t.getModel("nameTextStyle"),d=t.get("nameGap")||0,p=this.axisModel.axis.getExtent(),f=p[0]>p[1]?-1:1,m=["start"===s?p[0]-f*d:"end"===s?p[1]+f*d:(p[0]+p[1])/2,I(s)?e.labelOffset+u*d:0],g=t.get("nameRotate");null!=g&&(g=g*b/180),I(s)?i=C(e.rotation,null!=g?g:e.rotation,u):(i=T(e,s,g||0,p),a=e.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(i.rotation)),!isFinite(a)&&(a=null)));var v=h.getFont(),y=t.get("nameTruncate",!0)||{},_=y.ellipsis,x=r(e.nameTruncateMaxWidth,y.maxWidth,a),w=null!=_&&null!=x?l.truncateText(n,x,v,_,{minChar:2,placeholder:y.placeholder}):n,S=t.get("tooltip",!0),A=t.mainType,k={componentType:A,name:n,$vars:["name"]};k[A+"Index"]=t.componentIndex;var D=new c.Text({anid:"name",__fullText:n,__truncatedText:w,position:m,rotation:i.rotation,silent:E(t),z2:1,tooltip:S&&S.show?o({content:n,formatter:function(){return n},formatterParams:k},S):null});c.setTextStyle(D.style,h,{text:w,textFont:v,textFill:h.getTextColor()||t.get("axisLine.lineStyle.color"),textAlign:h.get("align")||i.textAlign,textVerticalAlign:h.get("verticalAlign")||i.textVerticalAlign}),t.get("triggerEvent")&&(D.eventData=M(t),D.eventData.targetType="axisName",D.eventData.name=n),this._dumbGroup.add(D),D.updateTransform(),this.group.add(D),D.decomposeTransform()}}},M=w.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},C=w.innerTextLayout=function(e,t,n){var i,r,a=p(t-e);return d(a)?(r=n>0?"top":"bottom",i="center"):d(a-b)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=a>0&&a<b?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:r}};function T(e,t,n,i){var r,a,o=p(n-e.rotation),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;return d(o-b/2)?(a=l?"bottom":"top",r="center"):d(o-1.5*b)?(a=l?"top":"bottom",r="center"):(a="middle",r=o<1.5*b&&o>b/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}var E=w.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)};function A(e,t,n){if(!x(e.axis)){var i=e.get("axisLabel.showMinLabel"),r=e.get("axisLabel.showMaxLabel");t=t||[],n=n||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],c=n[0],u=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(k(a),k(c)):D(a,o)&&(i?(k(o),k(u)):(k(a),k(c))),!1===r?(k(s),k(h)):D(l,s)&&(r?(k(l),k(d)):(k(s),k(h)))}}function k(e){e&&(e.ignore=!0)}function D(e,t,n){var i=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(i&&r){var a=g.identity([]);return g.rotate(a,a,-e.rotation),i.applyTransform(g.mul([],a,e.getLocalTransform())),r.applyTransform(g.mul([],a,t.getLocalTransform())),i.intersect(r)}}function I(e){return"middle"===e||"center"===e}function P(e,t,n,i,r){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,t&&(y(o,o,t),y(s,s,t));var h=new c.Line({anid:r+"_"+e[l].tickValue,subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,silent:!0});a.push(h)}return a}function O(e,t,n){var i=t.axis,r=t.getModel("axisTick");if(r.get("show")&&!i.scale.isBlank()){for(var o=r.getModel("lineStyle"),s=n.tickDirection*r.get("length"),l=i.getTicksCoords(),c=P(l,e._transform,s,a(o.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),"ticks"),u=0;u<c.length;u++)e.group.add(c[u]);return c}}function L(e,t,n){var i=t.axis,r=t.getModel("minorTick");if(r.get("show")&&!i.scale.isBlank()){var o=i.getMinorTicksCoords();if(o.length)for(var s=r.getModel("lineStyle"),l=n.tickDirection*r.get("length"),c=a(s.getLineStyle(),a(t.getModel("axisTick").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})),u=0;u<o.length;u++)for(var h=P(o[u],e._transform,l,c,"minorticks_"+u),d=0;d<h.length;d++)e.group.add(h[d])}}function R(e,t,n){var i=t.axis,a=r(n.axisLabelShow,t.get("axisLabel.show"));if(a&&!i.scale.isBlank()){var o=t.getModel("axisLabel"),l=o.get("margin"),h=i.getViewLabels(),d=(r(n.labelRotate,o.get("rotate"))||0)*b/180,p=C(n.rotation,d,n.labelDirection),f=t.getCategories&&t.getCategories(!0),m=[],g=E(t),v=t.get("triggerEvent");return s(h,(function(r,a){var s=r.tickValue,h=r.formattedLabel,d=r.rawLabel,y=o;f&&f[s]&&f[s].textStyle&&(y=new u(f[s].textStyle,o,t.ecModel));var _=y.getTextColor()||t.get("axisLine.lineStyle.color"),x=i.dataToCoord(s),b=[x,n.labelOffset+n.labelDirection*l],w=new c.Text({anid:"label_"+s,position:b,rotation:p.rotation,silent:g,z2:10});c.setTextStyle(w.style,y,{text:h,textAlign:y.getShallow("align",!0)||p.textAlign,textVerticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||p.textVerticalAlign,textFill:"function"===typeof _?_("category"===i.type?d:"value"===i.type?s+"":s,a):_}),v&&(w.eventData=M(t),w.eventData.targetType="axisLabel",w.eventData.value=d),e._dumbGroup.add(w),w.updateTransform(),m.push(w),e.group.add(w),w.decomposeTransform()})),m}}var N=w;e.exports=N},20701:function(e,t,n){var i=n(76371),r=(i.__DEV__,n(63321)),a=n(19763),o=r.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,n,i){this.axisPointerClass&&a.fixValue(e),o.superApply(this,"render",arguments),s(this,e,t,n,i,!0)},updateAxisPointer:function(e,t,n,i,r){s(this,e,t,n,i,!1)},remove:function(e,t){var n=this._axisPointer;n&&n.remove(t),o.superApply(this,"remove",arguments)},dispose:function(e,t){l(this,t),o.superApply(this,"dispose",arguments)}});function s(e,t,n,i,r,s){var c=o.getAxisPointerClass(e.axisPointerClass);if(c){var u=a.getAxisPointerModel(t);u?(e._axisPointer||(e._axisPointer=new c)).render(t,u,i,s):l(e,i)}}function l(e,t,n){var i=e._axisPointer;i&&i.dispose(t,n),e._axisPointer=null}var c=[];o.registerAxisPointerClass=function(e,t){c[e]=t},o.getAxisPointerClass=function(e){return e&&c[e]};var u=o;e.exports=u},24617:function(e,t,n){var i=n(16949),r=n(60823),a=n(66511),o=n(20701),s=n(43994),l=n(31015),c=l.rectCoordAxisBuildSplitArea,u=l.rectCoordAxisHandleRemove,h=["axisLine","axisTickLabel","axisName"],d=["splitArea","splitLine","minorSplitLine"],p=o.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(e,t,n,o){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new r.Group,this.group.add(this._axisGroup),e.get("show")){var c=e.getCoordSysModel(),u=s.layout(c,e),f=new a(e,u);i.each(h,f.add,f),this._axisGroup.add(f.getGroup()),i.each(d,(function(t){e.get(t+".show")&&this["_"+t](e,c)}),this),r.groupTransition(l,this._axisGroup,e),p.superCall(this,"render",e,t,n,o)}},remove:function(){u(this)},_splitLine:function(e,t){var n=e.axis;if(!n.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=i.isArray(s)?s:[s];for(var l=t.coordinateSystem.getRect(),c=n.isHorizontal(),u=0,h=n.getTicksCoords({tickModel:a}),d=[],p=[],f=o.getLineStyle(),m=0;m<h.length;m++){var g=n.toGlobalCoord(h[m].coord);c?(d[0]=g,d[1]=l.y,p[0]=g,p[1]=l.y+l.height):(d[0]=l.x,d[1]=g,p[0]=l.x+l.width,p[1]=g);var v=u++%s.length,y=h[m].tickValue;this._axisGroup.add(new r.Line({anid:null!=y?"line_"+h[m].tickValue:null,subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:i.defaults({stroke:s[v]},f),silent:!0}))}}},_minorSplitLine:function(e,t){var n=e.axis,i=e.getModel("minorSplitLine"),a=i.getModel("lineStyle"),o=t.coordinateSystem.getRect(),s=n.isHorizontal(),l=n.getMinorTicksCoords();if(l.length)for(var c=[],u=[],h=a.getLineStyle(),d=0;d<l.length;d++)for(var p=0;p<l[d].length;p++){var f=n.toGlobalCoord(l[d][p].coord);s?(c[0]=f,c[1]=o.y,u[0]=f,u[1]=o.y+o.height):(c[0]=o.x,c[1]=f,u[0]=o.x+o.width,u[1]=f),this._axisGroup.add(new r.Line({anid:"minor_line_"+l[d][p].tickValue,subPixelOptimize:!0,shape:{x1:c[0],y1:c[1],x2:u[0],y2:u[1]},style:h,silent:!0}))}},_splitArea:function(e,t){c(this,this._axisGroup,e,t)}});p.extend({type:"xAxis"}),p.extend({type:"yAxis"})},30638:function(e,t,n){var i=n(63321),r=n(16949),a=n(66511),o=n(31387),s=n(26627),l=n(60823),c=["axisLine","axisTickLabel","axisName"],u=i.extendComponentView({type:"parallelAxis",init:function(e,t){u.superApply(this,"init",arguments),(this._brushController=new o(t.getZr())).on("brush",r.bind(this._onBrush,this))},render:function(e,t,n,i){if(!h(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new l.Group,this.group.add(this._axisGroup),e.get("show")){var s=p(e,t),u=s.coordinateSystem,d=e.getAreaSelectStyle(),f=d.width,m=e.axis.dim,g=u.getAxisLayout(m),v=r.extend({strokeContainThreshold:f},g),y=new a(e,v);r.each(c,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(v,d,e,s,f,n);var _=i&&!1===i.animation?null:e;l.groupTransition(o,this._axisGroup,_)}}},_refreshBrushController:function(e,t,n,i,r,a){var o=n.axis.getExtent(),c=o[1]-o[0],u=Math.min(30,.1*Math.abs(c)),h=l.BoundingRect.create({x:o[0],y:-r/2,width:c,height:r});h.x-=u,h.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:s.makeRectPanelClipPath(h),isTargetByCursor:s.makeRectIsTargetByCursor(h,a,i),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(h,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(d(n))},_onBrush:function(e,t){var n=this.axisModel,i=n.axis,a=r.map(e,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:a})},dispose:function(){this._brushController.dispose()}});function h(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function d(e){var t=e.axis;return r.map(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function p(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var f=u;e.exports=f},90175:function(e,t,n){n(70252);var i=n(16949),r=n(60823),a=n(66511),o=n(20701),s=["axisLine","axisTickLabel","axisName"],l=["splitLine","splitArea","minorSplitLine"],c=o.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,o=r.getAngleAxis(),c=n.getTicksCoords(),h=n.getMinorTicksCoords(),d=o.getExtent()[0],p=n.getExtent(),f=u(r,e,d),m=new a(e,f);i.each(s,m.add,m),this.group.add(m.getGroup()),i.each(l,(function(t){e.get(t+".show")&&!n.scale.isBlank()&&this["_"+t](e,r,d,p,c,h)}),this)}},_splitLine:function(e,t,n,a,o){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=0;d<o.length;d++){var p=u++%c.length;h[p]=h[p]||[],h[p].push(new r.Circle({shape:{cx:t.cx,cy:t.cy,r:o[d].coord}}))}for(d=0;d<h.length;d++)this.group.add(r.mergePath(h[d],{style:i.defaults({stroke:c[d%c.length],fill:null},l.getLineStyle()),silent:!0}))},_minorSplitLine:function(e,t,n,a,o,s){if(s.length){for(var l=e.getModel("minorSplitLine"),c=l.getModel("lineStyle"),u=[],h=0;h<s.length;h++)for(var d=0;d<s[h].length;d++)u.push(new r.Circle({shape:{cx:t.cx,cy:t.cy,r:s[h][d].coord}}));this.group.add(r.mergePath(u,{style:i.defaults({fill:null},c.getLineStyle()),silent:!0}))}},_splitArea:function(e,t,n,a,o){if(o.length){var s=e.getModel("splitArea"),l=s.getModel("areaStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=o[0].coord,p=1;p<o.length;p++){var f=u++%c.length;h[f]=h[f]||[],h[f].push(new r.Sector({shape:{cx:t.cx,cy:t.cy,r0:d,r:o[p].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=o[p].coord}for(p=0;p<h.length;p++)this.group.add(r.mergePath(h[p],{style:i.defaults({fill:c[p%c.length]},l.getAreaStyle()),silent:!0}))}}});function u(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}e.exports=c},48755:function(e,t,n){n(70252);var i=n(16949),r=n(66511),a=n(60823),o=n(94763),s=n(20701),l=n(31015),c=l.rectCoordAxisBuildSplitArea,u=l.rectCoordAxisHandleRemove,h=["axisLine","axisTickLabel","axisName"],d=["splitArea","splitLine"],p=s.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,t,n,s){var l=this.group;l.removeAll();var c=this._axisGroup;this._axisGroup=new a.Group;var u=o.layout(e),f=new r(e,u);i.each(h,f.add,f),l.add(this._axisGroup),l.add(f.getGroup()),i.each(d,(function(t){e.get(t+".show")&&this["_"+t](e)}),this),a.groupTransition(c,this._axisGroup,e),p.superCall(this,"render",e,t,n,s)},remove:function(){u(this)},_splitLine:function(e){var t=e.axis;if(!t.scale.isBlank()){var n=e.getModel("splitLine"),i=n.getModel("lineStyle"),r=i.get("width"),o=i.get("color");o=o instanceof Array?o:[o];for(var s=e.coordinateSystem.getRect(),l=t.isHorizontal(),c=[],u=0,h=t.getTicksCoords({tickModel:n}),d=[],p=[],f=0;f<h.length;++f){var m=t.toGlobalCoord(h[f].coord);l?(d[0]=m,d[1]=s.y,p[0]=m,p[1]=s.y+s.height):(d[0]=s.x,d[1]=m,p[0]=s.x+s.width,p[1]=m);var g=u++%o.length;c[g]=c[g]||[],c[g].push(new a.Line({subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:{lineWidth:r},silent:!0}))}for(f=0;f<c.length;++f)this.group.add(a.mergePath(c[f],{style:{stroke:o[f%o.length],lineDash:i.getLineDash(r),lineWidth:r},silent:!0}))}},_splitArea:function(e){c(this,this._axisGroup,e,e)}}),f=p;e.exports=f},31015:function(e,t,n){var i=n(16949),r=n(60823);function a(e,t,n,a){var o=n.axis;if(!o.scale.isBlank()){var s=n.getModel("splitArea"),l=s.getModel("areaStyle"),c=l.get("color"),u=a.coordinateSystem.getRect(),h=o.getTicksCoords({tickModel:s,clamp:!0});if(h.length){var d=c.length,p=e.__splitAreaColors,f=i.createHashMap(),m=0;if(p)for(var g=0;g<h.length;g++){var v=p.get(h[g].tickValue);if(null!=v){m=(v+(d-1)*g)%d;break}}var y=o.toGlobalCoord(h[0].coord),_=l.getAreaStyle();c=i.isArray(c)?c:[c];for(g=1;g<h.length;g++){var x,b,w,S,M=o.toGlobalCoord(h[g].coord);o.isHorizontal()?(x=y,b=u.y,w=M-x,S=u.height,y=x+w):(x=u.x,b=y,w=u.width,S=M-b,y=b+S);var C=h[g-1].tickValue;null!=C&&f.set(C,m),t.add(new r.Rect({anid:null!=C?"area_"+C:null,shape:{x:x,y:b,width:w,height:S},style:i.defaults({fill:c[m]},_),silent:!0})),m=(m+1)%d}e.__splitAreaColors=f}}}function o(e){e.__splitAreaColors=null}t.rectCoordAxisBuildSplitArea=a,t.rectCoordAxisHandleRemove=o},53467:function(e,t,n){var i=n(63321),r={type:"axisAreaSelect",event:"axisAreaSelected"};i.registerAction(r,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),i.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))},49620:function(e,t,n){var i=n(63321),r=n(44463);n(6753),n(65033),n(71166),n(21494),n(81463),i.registerPreprocessor(r)},65033:function(e,t,n){var i=n(76371),r=(i.__DEV__,n(63321)),a=n(16949),o=n(87477),s=n(96753),l=["#ddd"],c=r.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(e,t){var n=this.option;!t&&o.replaceVisualOption(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:l},i.hasOwnProperty("liftZ")||(i.liftZ=5)},setAreas:function(e){e&&(this.areas=a.map(e,(function(e){return u(this.option,e)}),this))},setBrushOption:function(e){this.brushOption=u(this.option,e),this.brushType=this.brushOption.brushType}});function u(e,t){return a.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new s(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var h=c;e.exports=h},71166:function(e,t,n){var i=n(63321),r=n(16949),a=n(31387),o=n(6753),s=o.layoutCovers,l=i.extendComponentView({type:"brush",init:function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new a(t.getZr())).on("brush",r.bind(this._onBrush,this)).mount()},render:function(e){return this.model=e,c.apply(this,arguments)},updateTransform:function(e,t){return s(t),c.apply(this,arguments)},updateView:c,dispose:function(){this._brushController.dispose()},_onBrush:function(e,t){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(e,this.ecModel),(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:r.clone(e),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:r.clone(e),$from:n})}});function c(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())}e.exports=l},21494:function(e,t,n){var i=n(63321);i.registerAction({type:"brush",event:"brush"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),i.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),i.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){}))},44463:function(e,t,n){n(70252);var i=n(16949),r=["rect","polygon","keep","clear"];function a(e,t){var n=e&&e.brush;if(i.isArray(n)||(n=n?[n]:[]),n.length){var a=[];i.each(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(a=a.concat(t))}));var s=e&&e.toolbox;i.isArray(s)&&(s=s[0]),s||(s={feature:{}},e.toolbox=[s]);var l=s.feature||(s.feature={}),c=l.brush||(l.brush={}),u=c.type||(c.type=[]);u.push.apply(u,a),o(u),t&&!u.length&&u.push.apply(u,r)}}function o(e){var t={};i.each(e,(function(e){t[e]=1})),e.length=0,i.each(t,(function(t,n){e.push(n)}))}e.exports=a},59489:function(e,t,n){var i=n(4101),r=n(17913),a=n(60823),o=a.linePolygonIntersect,s={lineX:l(0),lineY:l(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&i.contain(n.range,e[0],e[1])},rect:function(e,t,n){var a=n.range;if(!e||a.length<=1)return!1;var s=e.x,l=e.y,c=e.width,u=e.height,h=a[0];return!!(i.contain(a,s,l)||i.contain(a,s+c,l)||i.contain(a,s,l+u)||i.contain(a,s+c,l+u)||r.create(e).contain(h[0],h[1])||o(s,l,s+c,l,a)||o(s,l,s,l+u,a)||o(s+c,l,s+c,l+u,a)||o(s,l+u,s+c,l+u,a))||void 0}}};function l(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var r=i.range,a=t[e];return c(a,r)}},rect:function(i,r,a){if(i){var o=a.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),c(s[0],o)||c(s[1],o)||c(o[0],s)||c(o[1],s)}}}}function c(e,t){return t[0]<=e&&e<=t[1]}var u=s;e.exports=u},6753:function(e,t,n){n(70252);var i=n(63321),r=n(16949),a=n(17913),o=n(87477),s=n(59489),l=n(1199),c=n(36284),u=["inBrush","outOfBrush"],h="__ecBrushSelect",d="__ecInBrushSelectEvent",p=i.PRIORITY.VISUAL.BRUSH;function f(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new c(t.option,e);n.setInputRanges(t.areas,e)}))}function m(e,t,n,i,r){if(r){var a=e.getZr();if(!a[d]){a[h]||(a[h]=g);var o=l.createOrUpdate(a,h,n,t);o(e,i)}}}function g(e,t){if(!e.isDisposed()){var n=e.getZr();n[d]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[d]=!1}}function v(e,t,n,i){for(var r=0,a=t.length;r<a;r++){var o=t[r];if(e[o.brushType](i,n,o.selectors,o))return!0}}function y(e){var t=e.brushSelector;if(r.isString(t)){var n=[];return r.each(s,(function(e,i){n[i]=function(n,i,r,a){var o=i.getItemLayout(n);return e[t](o,r,a)}})),n}if(r.isFunction(t)){var i={};return r.each(s,(function(e,n){i[n]=t})),i}return t}function _(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(r.isArray(n)?r.indexOf(n,t)<0:t!==n)}function x(e){var t=e.selectors={};return r.each(s[e.brushType],(function(n,i){t[i]=function(i){return n(i,t,e)}})),e}i.registerLayout(p,(function(e,t,n){e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),f(e)})),i.registerVisual(p,(function(e,t,n){var i,a,s=[];e.eachComponent({mainType:"brush"},(function(t,n){var l={brushId:t.id,brushIndex:n,brushName:t.name,areas:r.clone(t.areas),selected:[]};s.push(l);var c=t.option,h=c.brushLink,d=[],p=[],f=[],m=0;n||(i=c.throttleType,a=c.throttleDelay);var g=r.map(t.areas,(function(e){return x(r.defaults({boundingRect:b[e.brushType](e)},e))})),w=o.createVisualMappings(t.option,u,(function(e){e.mappingMethod="fixed"}));function S(e){return"all"===h||d[e]}function M(e){return!!e.length}function C(e,t){var n=e.coordinateSystem;m|=n.hasAxisBrushed(),S(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(p[t]=1)}))}function T(n,i,a){var o=y(n);if(o&&!_(t,i)&&(r.each(g,(function(i){o[i.brushType]&&t.brushTargetManager.controlSeries(i,n,e)&&a.push(i),m|=M(a)})),S(i)&&M(a))){var s=n.getData();s.each((function(e){v(o,a,s,e)&&(p[e]=1)}))}}r.isArray(h)&&r.each(h,(function(e){d[e]=1})),e.eachSeries((function(e,t){var n=f[t]=[];"parallel"===e.subType?C(e,t,n):T(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};l.selected.push(n);var i=y(e),r=f[t],a=e.getData(),s=S(t)?function(e){return p[e]?(n.dataIndex.push(a.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(e){return v(i,r,a,e)?(n.dataIndex.push(a.getRawIndex(e)),"inBrush"):"outOfBrush"};(S(t)?m:M(r))&&o.applyVisual(u,w,a,s)}))})),m(t,i,a,s,n)}));var b={lineX:r.noop,lineY:r.noop,rect:function(e){return w(e.range)},polygon:function(e){for(var t,n=e.range,i=0,r=n.length;i<r;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=n[i];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&w(t)}};function w(e){return new a(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}t.layoutCovers=f},38962:function(e,t,n){n(32648),n(51033),n(69243)},69243:function(e,t,n){n(70252);var i=n(63321),r=n(16949),a=n(60823),o=n(68331),s=n(80720),l={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},c={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},u=i.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,a=r.getRangeInfo(),o=r.getOrient();this._renderDayRect(e,a,i),this._renderLines(e,a,o,i),this._renderYearText(e,a,o,i),this._renderMonthText(e,o,i),this._renderWeekText(e,a,o,i)},_renderDayRect:function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),s=i.getCellHeight(),l=t.start.time;l<=t.end.time;l=i.getNextNDay(l,1).time){var c=i.dataToRect([l],!1).tl,u=new a.Rect({shape:{x:c[0],y:c[1],width:o,height:s},cursor:"default",style:r});n.add(u)}},_renderLines:function(e,t,n,i){var r=this,a=e.coordinateSystem,o=e.getModel("splitLine.lineStyle").getLineStyle(),s=e.get("splitLine.show"),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){d(c.formatedDate),0===u&&(c=a.getDateInfo(t.start.y+"-"+t.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=a.getDateInfo(h)}function d(t){r._firstDayOfMonth.push(a.getDateInfo(t)),r._firstDayPoints.push(a.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,o,i)}d(a.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),o,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),o,i)},_getEdgesPoints:function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},_drawSplitline:function(e,t,n){var i=new a.Polyline({z2:20,shape:{points:e},style:t});n.add(i)},_getLinePointsOfOneWeek:function(e,t,n){var i=e.coordinateSystem;t=i.getDateInfo(t);for(var r=[],a=0;a<7;a++){var o=i.getNextNDay(t.time,a),s=i.dataToRect([o.time],!1);r[2*o.day]=s.tl,r[2*o.day+1]=s["horizontal"===n?"bl":"tr"]}return r},_formatterLabel:function(e,t){return"string"===typeof e&&e?o.formatTplSimple(e,t):"function"===typeof e?e(t):t.nameMap},_yearTextPositionControl:function(e,t,n,i,r){t=t.slice();var a=["center","bottom"];"bottom"===i?(t[1]+=r,a=["center","top"]):"left"===i?t[0]-=r:"right"===i?(t[0]+=r,a=["center","top"]):t[1]-=r;var o=0;return"left"!==i&&"right"!==i||(o=Math.PI/2),{rotation:o,position:t,style:{textAlign:a[0],textVerticalAlign:a[1]}}},_renderYearText:function(e,t,n,i){var r=e.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),s=r.get("position");s||(s="horizontal"!==n?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(l[0][0]+l[1][0])/2,u=(l[0][1]+l[1][1])/2,h="horizontal"===n?0:1,d={top:[c,l[h][1]],bottom:[c,l[1-h][1]],left:[l[1-h][0],u],right:[l[h][0],u]},p=t.start.y;+t.end.y>+t.start.y&&(p=p+"-"+t.end.y);var f=r.get("formatter"),m={start:t.start.y,end:t.end.y,nameMap:p},g=this._formatterLabel(f,m),v=new a.Text({z2:30});a.setTextStyle(v.style,r,{text:g}),v.attr(this._yearTextPositionControl(v,d[s],n,s,o)),i.add(v)}},_monthTextPositionControl:function(e,t,n,i,r){var a="left",o="top",s=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(a="center"),"start"===i&&(o="bottom")):(s+=r,t&&(o="middle"),"start"===i&&(a="right")),{x:s,y:l,textAlign:a,textVerticalAlign:o}},_renderMonthText:function(e,t,n){var i=e.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),s=i.get("margin"),c=i.get("position"),u=i.get("align"),h=[this._tlpoints,this._blpoints];r.isString(o)&&(o=l[o.toUpperCase()]||[]);var d="start"===c?0:1,p="horizontal"===t?0:1;s="start"===c?-s:s;for(var f="center"===u,m=0;m<h[d].length-1;m++){var g=h[d][m].slice(),v=this._firstDayOfMonth[m];if(f){var y=this._firstDayPoints[m];g[p]=(y[p]+h[0][m+1][p])/2}var _=i.get("formatter"),x=o[+v.m-1],b={yyyy:v.y,yy:(v.y+"").slice(2),MM:v.m,M:+v.m,nameMap:x},w=this._formatterLabel(_,b),S=new a.Text({z2:30});r.extend(a.setTextStyle(S.style,i,{text:w}),this._monthTextPositionControl(g,f,t,c,s)),n.add(S)}}},_weekTextPositionControl:function(e,t,n,i,r){var a="center",o="middle",s=e[0],l=e[1],c="start"===n;return"horizontal"===t?(s=s+i+(c?1:-1)*r[0]/2,a=c?"right":"left"):(l=l+i+(c?1:-1)*r[1]/2,o=c?"bottom":"top"),{x:s,y:l,textAlign:a,textVerticalAlign:o}},_renderWeekText:function(e,t,n,i){var o=e.getModel("dayLabel");if(o.get("show")){var l=e.coordinateSystem,u=o.get("position"),h=o.get("nameMap"),d=o.get("margin"),p=l.getFirstDayOfWeek();r.isString(h)&&(h=c[h.toUpperCase()]||[]);var f=l.getNextNDay(t.end.time,7-t.lweek).time,m=[l.getCellWidth(),l.getCellHeight()];d=s.parsePercent(d,m["horizontal"===n?0:1]),"start"===u&&(f=l.getNextNDay(t.start.time,-(7+t.fweek)).time,d=-d);for(var g=0;g<7;g++){var v=l.getNextNDay(f,g),y=l.dataToRect([v.time],!1).center,_=g;_=Math.abs((g+p)%7);var x=new a.Text({z2:30});r.extend(a.setTextStyle(x.style,o,{text:h[_]}),this._weekTextPositionControl(y,n,u,d,m)),i.add(x)}}}});e.exports=u},16006:function(e,t,n){n(17655),n(18604)},18604:function(e,t,n){n(5925),n(3124),n(4469),n(22931),n(14563),n(18530),n(89884)},1542:function(e,t,n){n(5925),n(3124),n(4469),n(5789),n(21336),n(18530),n(89884)},17655:function(e,t,n){n(5925),n(3124),n(4469),n(3776),n(78478),n(18530),n(89884)},40875:function(e,t,n){n(70252);var i=n(16949),r=n(80720),a=n(43640),o=n(96180),s=i.each,l=r.asc,c=function(e,t,n,i){this._dimName=e,this._axisIndex=t,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};function u(e,t,n){var i=[1/0,-1/0];return s(n,(function(e){var n=e.getData();n&&s(n.mapDimension(t,!0),(function(e){var t=n.getApproximateExtent(e);t[0]<i[0]&&(i[0]=t[0]),t[1]>i[1]&&(i[1]=t[1])}))})),i[1]<i[0]&&(i=[NaN,NaN]),h(e,i),i}function h(e,t){var n=e.getAxisModel(),i=n.getMin(!0),r="category"===n.get("type"),a=r&&n.getCategories().length;null!=i&&"dataMin"!==i&&"function"!==typeof i?t[0]=i:r&&(t[0]=a>0?0:NaN);var o=n.getMax(!0);return null!=o&&"dataMax"!==o&&"function"!==typeof o?t[1]=o:r&&(t[1]=a>0?a-1:NaN),n.get("scale",!0)||(t[0]>0&&(t[0]=0),t[1]<0&&(t[1]=0)),t}function d(e,t){var n=e.getAxisModel(),i=e._percentWindow,a=e._valueWindow;if(i){var o=r.getPixelPrecision(a,[0,500]);o=Math.min(o,20);var s=t||0===i[0]&&100===i[1];n.setRange(s?null:+a[0].toFixed(o),s?null:+a[1].toFixed(o))}}function p(e){var t=e._minMaxSpan={},n=e._dataZoomModel,i=e._dataExtent;s(["min","max"],(function(a){var o=n.get(a+"Span"),s=n.get(a+"ValueSpan");null!=s&&(s=e.getAxisModel().axis.scale.parse(s)),null!=s?o=r.linearMap(i[0]+s,i,[0,100],!0):null!=o&&(s=r.linearMap(o,[0,100],i,!0)-i[0]),t[a+"Span"]=o,t[a+"ValueSpan"]=s}))}c.prototype={constructor:c,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],t=this.ecModel;return t.eachSeries((function(n){if(a.isCoordSupported(n.get("coordinateSystem"))){var i=this._dimName,r=t.queryComponents({mainType:i+"Axis",index:n.get(i+"AxisIndex"),id:n.get(i+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&e.push(n)}}),this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e,t,n,i=this._dimName,r=this.ecModel,a=this.getAxisModel(),o="x"===i||"y"===i;return o?(t="gridIndex",e="x"===i?"y":"x"):(t="polarIndex",e="angle"===i?"radius":"angle"),r.eachComponent(e+"Axis",(function(e){(e.get(t)||0)===(a.get(t)||0)&&(n=e)})),n},getMinMaxSpan:function(){return i.clone(this._minMaxSpan)},calculateDataWindow:function(e){var t,n=this._dataExtent,i=this.getAxisModel(),a=i.axis.scale,c=this._dataZoomModel.getRangePropMode(),u=[0,100],h=[],d=[];s(["start","end"],(function(i,o){var s=e[i],l=e[i+"Value"];"percent"===c[o]?(null==s&&(s=u[o]),l=a.parse(r.linearMap(s,u,n))):(t=!0,l=null==l?n[o]:a.parse(l),s=r.linearMap(l,n,u)),d[o]=l,h[o]=s})),l(d),l(h);var p=this._minMaxSpan;function f(e,t,n,i,s){var l=s?"Span":"ValueSpan";o(0,e,n,"all",p["min"+l],p["max"+l]);for(var c=0;c<2;c++)t[c]=r.linearMap(e[c],n,i,!0),s&&(t[c]=a.parse(t[c]))}return t?f(d,h,n,u,!1):f(h,d,u,n,!0),{valueWindow:d,percentWindow:h}},reset:function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=u(this,this._dimName,t),p(this);var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,d(this)}},restore:function(e){e===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,d(this,!0))},filterData:function(e,t){if(e===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=e.get("filterMode"),a=this._valueWindow;"none"!==r&&s(i,(function(e){var t=e.getData(),i=t.mapDimension(n,!0);i.length&&("weakFilter"===r?t.filterSelf((function(e){for(var n,r,o,s=0;s<i.length;s++){var l=t.get(i[s],e),c=!isNaN(l),u=l<a[0],h=l>a[1];if(c&&!u&&!h)return!0;c&&(o=!0),u&&(n=!0),h&&(r=!0)}return o&&n&&r})):s(i,(function(n){if("empty"===r)e.setData(t=t.map(n,(function(e){return o(e)?e:NaN})));else{var i={};i[n]=a,t.selectRange(i)}})),s(i,(function(e){t.setApproximateExtent(a,e)})))}))}function o(e){return e>=a[0]&&e<=a[1]}}};var f=c;e.exports=f},3124:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(63321)),a=n(16949),o=n(28299),s=n(75269),l=n(43640),c=n(40875),u=a.each,h=l.eachAxisDim,d=r.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(e,t,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=p(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this.doInit(i)},mergeOption:function(e){var t=p(e);a.merge(this.option,e,!0),a.merge(this.settledOption,t,!0),this.doInit(t)},doInit:function(e){var t=this.option;o.canvasSupported||(t.realtime=!1),this._setDefaultThrottle(e),f(this,e);var n=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis((function(t,n,i,r){var a=this.dependentModels[t.axis][n],o=a.__dzAxisProxy||(a.__dzAxisProxy=new c(t.name,n,this,r));e[t.name+"_"+n]=o}),this)},_resetTarget:function(){var e=this.option,t=this._judgeAutoMode();h((function(t){var n=t.axisIndex;e[n]=s.normalizeToArray(e[n])}),this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,t=!1;h((function(n){null!=e[n.axisIndex]&&(t=!0)}),this);var n=e.orient;return null==n&&t?"orient":t?void 0:(null==n&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var e=!0,t=this.get("orient",!0),n=this.option,i=this.dependentModels;if(e){var r="vertical"===t?"y":"x";i[r+"Axis"].length?(n[r+"AxisIndex"]=[0],e=!1):u(i.singleAxis,(function(i){e&&i.get("orient",!0)===t&&(n.singleAxisIndex=[i.componentIndex],e=!1)}))}e&&h((function(t){if(e){var i=[],r=this.dependentModels[t.axis];if(r.length&&!i.length)for(var a=0,o=r.length;a<o;a++)"category"===r[a].get("type")&&i.push(a);n[t.axisIndex]=i,i.length&&(e=!1)}}),this),e&&this.ecModel.eachSeries((function(e){this._isSeriesHasAllAxesTypeOf(e,"value")&&h((function(t){var i=n[t.axisIndex],r=e.get(t.axisIndex),o=e.get(t.axisId),s=e.ecModel.queryComponents({mainType:t.axis,index:r,id:o})[0];r=s.componentIndex,a.indexOf(i,r)<0&&i.push(r)}))}),this)},_autoSetOrient:function(){var e;this.eachTargetAxis((function(t){!e&&(e=t.name)}),this),this.option.orient="y"===e?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(e,t){var n=!0;return h((function(i){var r=e.get(i.axisIndex),a=this.dependentModels[i.axis][r];a&&a.get("type")===t||(n=!1)}),this),n},_setDefaultThrottle:function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var e;return h((function(t){if(null==e){var n=this.get(t.axisIndex);n.length&&(e=this.dependentModels[t.axis][n[0]])}}),this),e},eachTargetAxis:function(e,t){var n=this.ecModel;h((function(i){u(this.get(i.axisIndex),(function(r){e.call(t,i,r,this,n)}),this)}),this)},getAxisProxy:function(e,t){return this._axisProxies[e+"_"+t]},getAxisModel:function(e,t){var n=this.getAxisProxy(e,t);return n&&n.getAxisModel()},setRawRange:function(e){var t=this.option,n=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),f(this,e)},setCalculatedRange:function(e){var t=this.option;u(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},getValueRange:function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var t=this._axisProxies;for(var n in t)if(t.hasOwnProperty(n)&&t[n].hostedBy(this))return t[n];for(var n in t)if(t.hasOwnProperty(n)&&!t[n].hostedBy(this))return t[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});function p(e){var t={};return u(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function f(e,t){var n=e._rangePropMode,i=e.get("rangeMode");u([["start","startValue"],["end","endValue"]],(function(e,r){var a=null!=t[e[0]],o=null!=t[e[1]];a&&!o?n[r]="percent":!a&&o?n[r]="value":i?n[r]=i[r]:a&&(n[r]="percent")}))}var m=d;e.exports=m},4469:function(e,t,n){n(70252);var i=n(59025),r=i.extend({type:"dataZoom",render:function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},getTargetCoordInfo:function(){var e=this.dataZoomModel,t=this.ecModel,n={};function i(e,t,n,i){for(var r,a=0;a<n.length;a++)if(n[a].model===e){r=n[a];break}r||n.push(r={model:e,axisModels:[],coordIndex:i}),r.axisModels.push(t)}return e.eachTargetAxis((function(e,r){var a=t.getComponent(e.axis,r);if(a){var o=a.getCoordSysModel();o&&i(o,a,n[o.mainType]||(n[o.mainType]=[]),o.componentIndex)}}),this),n}});e.exports=r},22931:function(e,t,n){var i=n(3124),r=i.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});e.exports=r},14563:function(e,t,n){var i=n(16949),r=n(4469),a=n(96180),o=n(54050),s=i.bind,l=r.extend({type:"dataZoom.inside",init:function(e,t){this._range},render:function(e,t,n,r){l.superApply(this,"render",arguments),this._range=e.getPercentRange(),i.each(this.getTargetCoordInfo(),(function(t,r){var a=i.map(t,(function(e){return o.generateCoordId(e.model)}));i.each(t,(function(t){var l=t.model,u={};i.each(["pan","zoom","scrollMove"],(function(e){u[e]=s(c[e],this,t,r)}),this),o.register(n,{coordId:o.generateCoordId(l),allCoordIds:a,containsPoint:function(e,t,n){return l.coordinateSystem.containPoint([t,n])},dataZoomId:e.id,dataZoomModel:e,getRange:u})}),this)}),this)},dispose:function(){o.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null}}),c={zoom:function(e,t,n,i){var r=this._range,o=r.slice(),s=e.axisModels[0];if(s){var l=h[t](null,[i.originX,i.originY],s,n,e),c=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-c)*u+c,o[1]=(o[1]-c)*u+c;var d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return a(0,o,[0,100],0,d.minSpan,d.maxSpan),this._range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:u((function(e,t,n,i,r,a){var o=h[i]([a.oldX,a.oldY],[a.newX,a.newY],t,r,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength})),scrollMove:u((function(e,t,n,i,r,a){var o=h[i]([0,0],[a.scrollDelta,a.scrollDelta],t,r,n);return o.signal*(e[1]-e[0])*a.scrollDelta}))};function u(e){return function(t,n,i,r){var o=this._range,s=o.slice(),l=t.axisModels[0];if(l){var c=e(s,l,t,n,i,r);return a(c,s,[0,100],"all"),this._range=s,o[0]!==s[0]||o[1]!==s[1]?s:void 0}}}var h={grid:function(e,t,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===a.dim?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,i,r){var a=n.axis,o=r.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===a.orient?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},d=l;e.exports=d},5789:function(e,t,n){var i=n(3124),r=i.extend({type:"dataZoom.select"});e.exports=r},21336:function(e,t,n){var i=n(4469),r=i.extend({type:"dataZoom.select"});e.exports=r},3776:function(e,t,n){var i=n(3124),r=i.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"}}}),a=r;e.exports=a},78478:function(e,t,n){n(70252);var i=n(16949),r=n(11793),a=n(60823),o=n(1199),s=n(4469),l=n(80720),c=n(89317),u=n(96180),h=a.Rect,d=l.linearMap,p=l.asc,f=i.bind,m=i.each,g=7,v=1,y=30,_="horizontal",x="vertical",b=5,w=["line","bar","candlestick","scatter"],S=s.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,n,i){S.superApply(this,"render",arguments),o.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),!1!==this.dataZoomModel.get("show")?(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){S.superApply(this,"remove",arguments),o.clear(this,"_dispatchZoomAction")},dispose:function(){S.superApply(this,"dispose",arguments),o.clear(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new a.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,n=this._findCoordRect(),r={width:t.getWidth(),height:t.getHeight()},a=this._orient===_?{right:r.width-n.x-n.width,top:r.height-y-g,width:n.width,height:y}:{right:g,top:n.y,width:y,height:n.height},o=c.getLayoutParams(e.option);i.each(["right","top","width","height"],(function(e){"ph"===o[e]&&(o[e]=a[e])}));var s=c.getLayoutRect(o,r,e.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===x&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),a=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==_||r?n===_&&r?{scale:o?[-1,1]:[-1,-1]}:n!==x||r?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=e.getBoundingRect([a]);e.attr("position",[t.x-s.x,t.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.barGroup;n.add(new h({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40})),n.add(new h({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:i.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var t=this._size,n=e.series,r=n.getRawData(),o=n.getShadowDim?n.getShadowDim():e.otherDim;if(null!=o){var s=r.getDataExtent(o),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var c,u=[0,t[1]],h=[0,t[0]],p=[[t[0],0],[0,0]],f=[],m=h[1]/(r.count()-1),g=0,v=Math.round(r.count()/t[0]);r.each([o],(function(e,t){if(v>0&&t%v)g+=m;else{var n=null==e||isNaN(e)||""===e,i=n?0:d(e,s,u,!0);n&&!c&&t?(p.push([p[p.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&c&&(p.push([g,0]),f.push([g,0])),p.push([g,i]),f.push([g,i]),g+=m,c=n}}));var y=this.dataZoomModel;this._displayables.barGroup.add(new a.Polygon({shape:{points:p},style:i.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new a.Polyline({shape:{points:f},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis((function(a,o){var s=e.getAxisProxy(a.name,o).getTargetSeriesModels();i.each(s,(function(e){if(!n&&!(!0!==t&&i.indexOf(w,e.get("type"))<0)){var s,l=r.getComponent(a.axis,o).axis,c=M(a.name),u=e.coordinateSystem;null!=c&&u.getOtherAxis&&(s=u.getOtherAxis(l).inverse),c=e.getData().mapDimension(c),n={thisAxis:l,series:e,thisDim:a.name,otherDim:c,otherAxisInverse:s}}}),this)}),this),n}},_renderHandle:function(){var e=this._displayables,t=e.handles=[],n=e.handleLabels=[],i=this._displayables.barGroup,r=this._size,o=this.dataZoomModel;i.add(e.filler=new h({draggable:!0,cursor:C(this._orient),drift:f(this._onDragMove,this,"all"),ondragstart:f(this._showDataInfo,this,!0),ondragend:f(this._onDragEnd,this),onmouseover:f(this._showDataInfo,this,!0),onmouseout:f(this._showDataInfo,this,!1),style:{fill:o.get("fillerColor"),textPosition:"inside"}})),i.add(new h({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:v,fill:"rgba(0,0,0,0)"}})),m([0,1],(function(e){var r=a.createIcon(o.get("handleIcon"),{cursor:C(this._orient),draggable:!0,drift:f(this._onDragMove,this,e),ondragend:f(this._onDragEnd,this),onmouseover:f(this._showDataInfo,this,!0),onmouseout:f(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),s=r.getBoundingRect();this._handleHeight=l.parsePercent(o.get("handleSize"),this._size[1]),this._handleWidth=s.width/s.height*this._handleHeight,r.setStyle(o.getModel("handleStyle").getItemStyle());var c=o.get("handleColor");null!=c&&(r.style.fill=c),i.add(t[e]=r);var u=o.textStyleModel;this.group.add(n[e]=new a.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:u.getTextColor(),textFont:u.getFont()},z2:10}))}),this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[d(e[0],[0,100],t,!0),d(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];u(t,i,r,n.get("zoomLock")?"all":e,null!=a.minSpan?d(a.minSpan,o,r,!0):null,null!=a.maxSpan?d(a.maxSpan,o,r,!0):null);var s=this._range,l=this._range=p([d(i[0],r,o,!0),d(i[1],r,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(e){var t=this._displayables,n=this._handleEnds,i=p(n.slice()),r=this._size;m([0,1],(function(e){var i=t.handles[e],a=this._handleHeight;i.attr({scale:[a/2,a/2],position:[n[e],r[1]/2-a/2]})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(e)},_updateDataInfo:function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(t.get("showDetail")){var s=t.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,c=this._range,u=e?s.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:s.getDataValueWindow();o=[this._formatLabel(u[0],l),this._formatLabel(u[1],l)]}}var h=p(this._handleEnds.slice());function d(e){var t=a.getTransform(n.handles[e].parent,this.group),s=a.transformDirection(0===e?"right":"left",t),l=this._handleWidth/2+b,c=a.applyTransform([h[e]+(0===e?-l:l),this._size[1]/2],t);i[e].setStyle({x:c[0],y:c[1],textVerticalAlign:r===_?"middle":s,textAlign:r===_?s:"center",text:o[e]})}d.call(this,0),d.call(this,1)},_formatLabel:function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),a=n.get("labelPrecision");null!=a&&"auto"!==a||(a=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel(Math.round(e)):e.toFixed(Math.min(a,20));return i.isFunction(r)?r(e,o):i.isString(r)?r.replace("{value}",o):o},_showDataInfo:function(e){e=this._dragging||e;var t=this._displayables.handleLabels;t[0].attr("invisible",!e),t[1].attr("invisible",!e)},_onDragMove:function(e,t,n,i){this._dragging=!0,r.stop(i.event);var o=this._displayables.barGroup.getLocalTransform(),s=a.applyTransform([t,n],o,!0),l=this._updateInterval(e,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),l&&c&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction()},_onClickPanelClick:function(e){var t=this._size,n=this._displayables.barGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,a=this._updateInterval("all",n[0]-r);this._updateView(),a&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_findCoordRect:function(){var e;if(m(this.getTargetCoordInfo(),(function(t){if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}})),!e){var t=this.api.getWidth(),n=this.api.getHeight();e={x:.2*t,y:.2*n,width:.6*t,height:.6*n}}return e}});function M(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function C(e){return"vertical"===e?"ns-resize":"ew-resize"}var T=S;e.exports=T},89884:function(e,t,n){n(70252);var i=n(63321),r=n(16949),a=n(43640);i.registerAction("dataZoom",(function(e,t){var n=a.createLinkedNodesFinder(r.bind(t.eachComponent,t,"dataZoom"),a.eachAxisDim,(function(e,t){return e.get(t.axisIndex)})),i=[];t.eachComponent({mainType:"dataZoom",query:e},(function(e,t){i.push.apply(i,n(e).nodes)})),r.each(i,(function(t,n){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))},18530:function(e,t,n){var i=n(63321),r=n(16949),a=r.createHashMap,o=r.each;i.registerProcessor({getTargetSeries:function(e){var t=a();return e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,n,i){var r=i.getAxisProxy(e.name,n);o(r.getTargetSeriesModels(),(function(e){t.set(e.uid,e)}))}))})),t},modifyOutputEnd:!0,overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,n,i){i.getAxisProxy(e.name,n).reset(i,t)})),e.eachTargetAxis((function(e,n,i){i.getAxisProxy(e.name,n).filterData(i,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy(),n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}))}})},43640:function(e,t,n){n(70252);var i=n(16949),r=n(68331),a=["x","y","z","radius","angle","single"],o=["cartesian2d","polar","singleAxis"];function s(e){return i.indexOf(o,e)>=0}function l(e,t){e=e.slice();var n=i.map(e,r.capitalFirst);t=(t||[]).slice();var a=i.map(t,r.capitalFirst);return function(r,o){i.each(e,(function(e,i){for(var s={name:e,capital:n[i]},l=0;l<t.length;l++)s[t[l]]=e+a[l];r.call(o,s)}))}}var c=l(a,["axisIndex","axis","index","id"]);function u(e,t,n){return function(n){var i,s={nodes:[],records:{}};if(t((function(e){s.records[e.name]={}})),!n)return s;o(n,s);do{i=!1,e(l)}while(i);function l(e){!r(e,s)&&a(e,s)&&(o(e,s),i=!0)}return s};function r(e,t){return i.indexOf(t.nodes,e)>=0}function a(e,r){var a=!1;return t((function(t){i.each(n(e,t)||[],(function(e){r.records[t.name][e]&&(a=!0)}))})),a}function o(e,r){r.nodes.push(e),t((function(t){i.each(n(e,t)||[],(function(e){r.records[t.name][e]=!0}))}))}}t.isCoordSupported=s,t.createNameEach=l,t.eachAxisDim=c,t.createLinkedNodesFinder=u},34527:function(e,t,n){n(70252);var i=n(16949),r=i.each,a="\0_ec_hist_store";function o(e,t){var n=u(e);r(t,(function(t,i){for(var r=n.length-1;r>=0;r--){var a=n[r];if(a[i])break}if(r<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var s=o.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(t)}function s(e){var t=u(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return r(n,(function(e,n){for(var r=t.length-1;r>=0;r--){e=t[r][n];if(e){i[n]=e;break}}})),i}function l(e){e[a]=null}function c(e){return u(e).length}function u(e){var t=e[a];return t||(t=e[a]=[{}]),t}t.push=o,t.pop=s,t.clear=l,t.count=c},54050:function(e,t,n){n(70252);var i=n(16949),r=n(75249),a=n(1199),o="\0_ec_dataZoom_roams";function s(e,t){var n=u(e),r=t.dataZoomId,o=t.coordId;i.each(n,(function(e,n){var a=e.dataZoomInfos;a[r]&&i.indexOf(t.allCoordIds,o)<0&&(delete a[r],e.count--)})),d(n);var s=n[o];s||(s=n[o]={coordId:o,dataZoomInfos:{},count:0},s.controller=h(e,s),s.dispatchAction=i.curry(p,e)),!s.dataZoomInfos[r]&&s.count++,s.dataZoomInfos[r]=t;var l=f(s.dataZoomInfos);s.controller.enable(l.controlType,l.opt),s.controller.setPointerChecker(t.containsPoint),a.createOrUpdate(s,"dispatchAction",t.dataZoomModel.get("throttle",!0),"fixRate")}function l(e,t){var n=u(e);i.each(n,(function(e){e.controller.dispose();var n=e.dataZoomInfos;n[t]&&(delete n[t],e.count--)})),d(n)}function c(e){return e.type+"\0_"+e.id}function u(e){var t=e.getZr();return t[o]||(t[o]={})}function h(e,t){var n=new r(e.getZr());return i.each(["pan","zoom","scrollMove"],(function(e){n.on(e,(function(n){var r=[];i.each(t.dataZoomInfos,(function(i){if(n.isAvailableBehavior(i.dataZoomModel.option)){var a=(i.getRange||{})[e],o=a&&a(t.controller,n);!i.dataZoomModel.get("disabled",!0)&&o&&r.push({dataZoomId:i.dataZoomId,start:o[0],end:o[1]})}})),r.length&&t.dispatchAction(r)}))})),n}function d(e){i.each(e,(function(t,n){t.count||(t.controller.dispose(),delete e[n])}))}function p(e,t){e.dispatchAction({type:"dataZoom",batch:t})}function f(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return i.each(e,(function(e){var i=e.dataZoomModel,o=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");r[n+o]>r[n+t]&&(t=o),a&=i.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}t.register=s,t.unregister=l,t.generateCoordId=c},5925:function(e,t,n){var i=n(3041);i.registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))},10368:function(e,t,n){var i=n(3041),r=n(59025),a=n(59336),o=a.detectSourceFormat,s=n(62611),l=s.SERIES_LAYOUT_BY_COLUMN;i.extend({type:"dataset",defaultOption:{seriesLayoutBy:l,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){o(this)}}),r.extend({type:"dataset"})},54740:function(e,t,n){var i=n(63321),r=n(16949);function a(e,t){t.update="updateView",i.registerAction(t,(function(t,n){var i={};return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var a=n.coordinateSystem;r.each(a.regions,(function(e){i[e.name]=n.isSelected(e.name)||!1}))})),{selected:i,name:t.name}}))}n(57407),n(65954),n(7621),n(4694),a("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),a("select",{type:"geoSelect",event:"geoselected"}),a("unSelect",{type:"geoUnSelect",event:"geounselected"})},7621:function(e,t,n){var i=n(39448),r=n(63321),a=r.extendComponentView({type:"geo",init:function(e,t){var n=new i(t,!0);this._mapDraw=n,this.group.add(n.group)},render:function(e,t,n,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var r=this._mapDraw;e.get("show")?r.draw(e,t,n,this,i):this._mapDraw.group.removeAll(),this.group.silent=e.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});e.exports=a},34602:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(63321)),a=n(16949),o=n(75269),s=n(60823),l=n(89317),c=n(80720),u=c.parsePercent,h={path:null,compoundPath:null,group:s.Group,image:s.Image,text:s.Text};r.registerPreprocessor((function(e){var t=e.graphic;a.isArray(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}));var d=r.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(e){var t=this.option.elements;this.option.elements=null,d.superApply(this,"mergeOption",arguments),this.option.elements=t},optionUpdated:function(e,t){var n=this.option,i=(t?n:e).elements,r=n.elements=t?[]:n.elements,s=[];this._flatten(i,s);var l=o.mappingToExists(r,s);o.makeIdAndName(l);var c=this._elOptionsToUpdate=[];a.each(l,(function(e,t){var n=e.option;n&&(c.push(n),v(e,n),y(r,t,n),_(r[t],n))}),this);for(var u=r.length-1;u>=0;u--)null==r[u]?r.splice(u,1):delete r[u].$action},_flatten:function(e,t,n){a.each(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;"group"===e.type&&i&&this._flatten(i,t,e),delete e.children}}),this)},useElOptionsToUpdate:function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e}});function p(e,t,n,i){var r=n.type,a=h.hasOwnProperty(r)?h[r]:s.getShapeClass(r),o=new a(n);t.add(o),i.set(e,o),o.__ecGraphicId=e}function f(e,t){var n=e&&e.parent;n&&("group"===e.type&&e.traverse((function(e){f(e,t)})),t.removeKey(e.__ecGraphicId),n.remove(e))}function m(e){return e=a.extend({},e),a.each(["id","parentId","$action","hv","bounding"].concat(l.LOCATION_PARAMS),(function(t){delete e[t]})),e}function g(e,t){var n;return a.each(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function v(e,t){var n=e.exist;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function y(e,t,n){var i=a.extend({},n),r=e[t],o=n.$action||"merge";"merge"===o?r?(a.merge(r,i,!0),l.mergeLayoutParam(r,i,{ignoreSize:!0}),l.copyLayoutParams(n,r)):e[t]=i:"replace"===o?e[t]=i:"remove"===o&&r&&(e[t]=null)}function _(e,t){e&&(e.hv=t.hv=[g(t,["left","right"]),g(t,["top","bottom"])],"group"===e.type&&(null==e.width&&(e.width=t.width=0),null==e.height&&(e.height=t.height=0)))}function x(e,t,n){var i=e.eventData;e.silent||e.ignore||i||(i=e.eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=e.info)}r.extendComponentView({type:"graphic",init:function(e,t){this._elMap=a.createHashMap(),this._lastGraphicModel},render:function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},_updateElements:function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group;a.each(t,(function(t){var r=t.$action,a=t.id,o=n.get(a),s=t.parentId,l=null!=s?n.get(s):i,c=t.style;"text"===t.type&&c&&(t.hv&&t.hv[1]&&(c.textVerticalAlign=c.textBaseline=null),!c.hasOwnProperty("textFill")&&c.fill&&(c.textFill=c.fill),!c.hasOwnProperty("textStroke")&&c.stroke&&(c.textStroke=c.stroke));var u=m(t);r&&"merge"!==r?"replace"===r?(f(o,n),p(a,l,u,n)):"remove"===r&&f(o,n):o?o.attr(u):p(a,l,u,n);var h=n.get(a);h&&(h.__ecGraphicWidthOption=t.width,h.__ecGraphicHeightOption=t.height,x(h,e,t))}))}},_relocate:function(e,t){for(var n=e.option.elements,i=this.group,r=this._elMap,a=t.getWidth(),o=t.getHeight(),s=0;s<n.length;s++){var c=n[s],h=r.get(c.id);if(h&&h.isGroup){var d=h.parent,p=d===i;h.__ecGraphicWidth=u(h.__ecGraphicWidthOption,p?a:d.__ecGraphicWidth)||0,h.__ecGraphicHeight=u(h.__ecGraphicHeightOption,p?o:d.__ecGraphicHeight)||0}}for(s=n.length-1;s>=0;s--){c=n[s],h=r.get(c.id);if(h){d=h.parent;var f=d===i?{width:a,height:o}:{width:d.__ecGraphicWidth,height:d.__ecGraphicHeight};l.positionElement(h,c,f,null,{hv:c.hv,boundingMode:c.bounding})}}},_clear:function(){var e=this._elMap;e.each((function(t){f(t,e)})),this._elMap=a.createHashMap()},dispose:function(){this._clear()}})},35995:function(e,t,n){n(68115),n(31422),n(73189)},68115:function(e,t,n){var i=n(63321),r=n(16949),a=n(60823);n(88240),n(53666),i.extendComponentView({type:"grid",render:function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new a.Rect({shape:e.coordinateSystem.getRect(),style:r.defaults({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))}}),i.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))},31387:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(16949)),a=n(80443),o=n(60823),s=n(69654),l=n(60339),c=r.curry,u=r.each,h=r.map,d=Math.min,p=Math.max,f=Math.pow,m=1e4,g=6,v=6,y="globalPan",_={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},x={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},b={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},w=0;function S(e){a.call(this),this._zr=e,this.group=new o.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+w++,this._handlers={},u(re,(function(e,t){this._handlers[t]=r.bind(e,this)}),this)}function M(e,t){var n=e._zr;e._enableGlobalPan||s.take(n,y,e._uid),T(n,e._handlers),e._brushType=t.brushType,e._brushOption=r.merge(r.clone(b),t,!0)}function C(e){var t=e._zr;s.release(t,y,e._uid),E(t,e._handlers),e._brushType=e._brushOption=null}function T(e,t){u(t,(function(t,n){e.on(n,t)}))}function E(e,t){u(t,(function(t,n){e.off(n,t)}))}function A(e,t){var n=se[t.brushType].createCover(e,t);return n.__brushOption=t,I(n,t),e.group.add(n),n}function k(e,t){var n=O(t);return n.endCreating&&(n.endCreating(e,t),I(t,t.__brushOption)),t}function D(e,t){var n=t.__brushOption;O(t).updateCoverShape(e,t,n.range,n)}function I(e,t){var n=t.z;null==n&&(n=m),e.traverse((function(e){e.z=n,e.z2=n}))}function P(e,t){O(t).updateCommon(e,t),D(e,t)}function O(e){return se[e.__brushOption.brushType]}function L(e,t,n){var i,r=e._panels;if(!r)return!0;var a=e._transform;return u(r,(function(e){e.isTargetByCursor(t,n,a)&&(i=e)})),i}function R(e,t){var n=e._panels;if(!n)return!0;var i=t.__brushOption.panelId;return null==i||n[i]}function N(e){var t=e._covers,n=t.length;return u(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function F(e,t){var n=h(e._covers,(function(e){var t=e.__brushOption,n=r.clone(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",n,{isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function B(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],r=n[0]-i[0],a=n[1]-i[1],o=f(r*r+a*a,.5);return o>g}function z(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function V(e,t,n,i){var r=new o.Group;return r.add(new o.Rect({name:"main",style:j(n),silent:!0,draggable:!0,cursor:"move",drift:c(e,t,r,"nswe"),ondragend:c(F,t,{isEnd:!0})})),u(i,(function(n){r.add(new o.Rect({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:c(e,t,r,n),ondragend:c(F,t,{isEnd:!0})}))})),r}function U(e,t,n,i){var r=i.brushStyle.lineWidth||0,a=p(r,v),o=n[0][0],s=n[1][0],l=o-r/2,c=s-r/2,u=n[0][1],h=n[1][1],d=u-a+r/2,f=h-a+r/2,m=u-o,g=h-s,y=m+r,_=g+r;$(e,t,"main",o,s,m,g),i.transformable&&($(e,t,"w",l,c,a,_),$(e,t,"e",d,c,a,_),$(e,t,"n",l,c,y,a),$(e,t,"s",l,f,y,a),$(e,t,"nw",l,c,a,a),$(e,t,"ne",d,c,a,a),$(e,t,"sw",l,f,a,a),$(e,t,"se",d,f,a,a))}function H(e,t){var n=t.__brushOption,i=n.transformable,r=t.childAt(0);r.useStyle(j(n)),r.attr({silent:!i,cursor:i?"move":"default"}),u(["w","e","n","s","se","sw","ne","nw"],(function(n){var r=t.childOfName(n),a=q(e,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?x[a]+"-resize":null})}))}function $(e,t,n,i,r,a,o){var s=t.childOfName(n);s&&s.setShape(J(Z(e,t,[[i,r],[i+a,r+o]])))}function j(e){return r.defaults({strokeNoScale:!0},e.brushStyle)}function W(e,t,n,i){var r=[d(e,n),d(t,i)],a=[p(e,n),p(t,i)];return[[r[0],a[0]],[r[1],a[1]]]}function G(e){return o.getTransform(e.group)}function q(e,t){if(t.length>1){t=t.split("");var n=[q(e,t[0]),q(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}var i={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"};n=o.transformDirection(i[t],G(e));return r[n]}function X(e,t,n,i,r,a,o,s){var l=i.__brushOption,c=e(l.range),h=K(n,a,o);u(r.split(""),(function(e){var t=_[e];c[t[0]][t[1]]+=h[t[0]]})),l.range=t(W(c[0][0],c[1][0],c[0][1],c[1][1])),P(n,i),F(n,{isEnd:!1})}function Y(e,t,n,i,r){var a=t.__brushOption.range,o=K(e,n,i);u(a,(function(e){e[0]+=o[0],e[1]+=o[1]})),P(e,t),F(e,{isEnd:!1})}function K(e,t,n){var i=e.group,r=i.transformCoordToLocal(t,n),a=i.transformCoordToLocal(0,0);return[r[0]-a[0],r[1]-a[1]]}function Z(e,t,n){var i=R(e,t);return i&&!0!==i?i.clipPath(n,e._transform):r.clone(n)}function J(e){var t=d(e[0][0],e[1][0]),n=d(e[0][1],e[1][1]),i=p(e[0][0],e[1][0]),r=p(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:r-n}}function Q(e,t,n){if(e._brushType&&!oe(e,t)){var i=e._zr,r=e._covers,a=L(e,t,n);if(!e._dragging)for(var o=0;o<r.length;o++){var s=r[o].__brushOption;if(a&&(!0===a||s.panelId===a.panelId)&&se[s.brushType].contain(r[o],n[0],n[1]))return}a&&i.setCursorStyle("crosshair")}}function ee(e){var t=e.event;t.preventDefault&&t.preventDefault()}function te(e,t,n){return e.childOfName("main").contain(t,n)}function ne(e,t,n,i){var a,o=e._creatingCover,s=e._creatingPanel,l=e._brushOption;if(e._track.push(n.slice()),B(e)||o){if(s&&!o){"single"===l.brushMode&&N(e);var c=r.clone(l);c.brushType=ie(c.brushType,s),c.panelId=!0===s?null:s.panelId,o=e._creatingCover=A(e,c),e._covers.push(o)}if(o){var u=se[ie(e._brushType,s)],h=o.__brushOption;h.range=u.getCreatingRange(Z(e,o,e._track)),i&&(k(e,o),u.updateCommon(e,o)),D(e,o),a={isEnd:i}}}else i&&"single"===l.brushMode&&l.removeOnClick&&L(e,t,n)&&N(e)&&(a={isEnd:i,removeOnClick:!0});return a}function ie(e,t){return"auto"===e?t.defaultBrushType:e}S.prototype={constructor:S,enableBrush:function(e){return this._brushType&&C(this),e.brushType&&M(this,e),this},setPanels:function(e){if(e&&e.length){var t=this._panels={};r.each(e,(function(e){t[e.panelId]=r.clone(e)}))}else this._panels=null;return this},mount:function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({position:e.position||[0,0],rotation:e.rotation||0,scale:e.scale||[1,1]}),this._transform=t.getLocalTransform(),this},eachCover:function(e,t){u(this._covers,e,t)},updateCovers:function(e){e=r.map(e,(function(e){return r.merge(r.clone(b),e,!0)}));var t="\0-brush-index-",n=this._covers,i=this._covers=[],a=this,o=this._creatingCover;return new l(n,e,c,s).add(u).update(u).remove(h).execute(),this;function s(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function c(e,t){return s(e.__brushOption,t)}function u(t,r){var s=e[t];if(null!=r&&n[r]===o)i[t]=n[r];else{var l=i[t]=null!=r?(n[r].__brushOption=s,n[r]):k(a,A(a,s));P(a,l)}}function h(e){n[e]!==o&&a.group.remove(n[e])}},unmount:function(){return this.enableBrush(!1),N(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},r.mixin(S,a);var re={mousedown:function(e){if(this._dragging)ae(this,e);else if(!e.target||!e.target.draggable){ee(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=L(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(Q(this,e,i),this._dragging){ee(e);var r=ne(this,e,i,!1);r&&F(this,r)}},mouseup:function(e){ae(this,e)}};function ae(e,t){if(e._dragging){ee(t);var n=t.offsetX,i=t.offsetY,r=e.group.transformCoordToLocal(n,i),a=ne(e,t,r,!0);e._dragging=!1,e._track=[],e._creatingCover=null,a&&F(e,a)}}function oe(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}var se={lineX:le(0),lineY:le(1),rect:{createCover:function(e,t){return V(c(X,(function(e){return e}),(function(e){return e})),e,t,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(e){var t=z(e);return W(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){U(e,t,n,i)},updateCommon:H,contain:te},polygon:{createCover:function(e,t){var n=new o.Group;return n.add(new o.Polyline({name:"main",style:j(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new o.Polygon({name:"main",draggable:!0,drift:c(Y,e,t),ondragend:c(F,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:Z(e,t,n)})},updateCommon:H,contain:te}};function le(e){return{createCover:function(t,n){return V(c(X,(function(t){var n=[t,[0,100]];return e&&n.reverse(),n}),(function(t){return t[e]})),t,n,[["w","e"],["n","s"]][e])},getCreatingRange:function(t){var n=z(t),i=d(n[0][e],n[1][e]),r=p(n[0][e],n[1][e]);return[i,r]},updateCoverShape:function(t,n,i,r){var a,o=R(t,n);if(!0!==o&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e,t._transform);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,a];e&&l.reverse(),U(t,n,l,r)},updateCommon:H,contain:te}}var ce=S;e.exports=ce},36284:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(16949)),a=n(60823),o=n(75269),s=n(26627),l=r.each,c=r.indexOf,u=r.curry,h=["dataToPoint","pointToData"],d=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function p(e,t,n){var i=this._targetInfoList=[],r={},a=g(t,e);l(v,(function(e,t){(!n||!n.include||c(n.include,t)>=0)&&e(a,i,r)}))}var f=p.prototype;function m(e){return e[0]>e[1]&&e.reverse(),e}function g(e,t){return o.parseFinder(e,t,{includeMainTypes:d})}f.setOutputRanges=function(e,t){this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=x[e.brushType](0,n,t);e.__rangeOffset={offset:w[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}}))},f.matchOutputRanges=function(e,t,n){l(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&r.each(i.coordSyses,(function(i){var r=x[e.brushType](1,i,e.range);n(e,r.values,i,t)}))}),this)},f.setInputRanges=function(e,t){l(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=x[e.brushType](0,n.coordSys,e.coordRange),r=e.__rangeOffset;e.range=r?w[e.brushType](i.values,r.offset,M(i.xyMinMax,r.xyMinMax)):i.values}}),this)},f.makePanelOpts=function(e,t){return r.map(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t&&t(n),clipPath:s.makeRectPanelClipPath(i),isTargetByCursor:s.makeRectIsTargetByCursor(i,e,n.coordSysModel),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(i)}}))},f.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&c(i.coordSyses,t.coordinateSystem)>=0},f.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=g(t,e),r=0;r<n.length;r++){var a=n[r],o=e.panelId;if(o){if(a.panelId===o)return a}else for(r=0;r<y.length;r++)if(y[r](i,a))return a}return!0};var v={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,a=e.gridModels,o=r.createHashMap(),s={},u={};(n||i||a)&&(l(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),l(i,(function(e){var t=e.axis.grid.model;o.set(t.id,t),u[t.id]=!0})),l(a,(function(e){o.set(e.id,e),s[e.id]=!0,u[e.id]=!0})),o.each((function(e){var r=e.coordinateSystem,a=[];l(r.getCartesians(),(function(e,t){(c(n,e.getAxis("x").model)>=0||c(i,e.getAxis("y").model)>=0)&&a.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:_.grid,xAxisDeclared:s[e.id],yAxisDeclared:u[e.id]})})))},geo:function(e,t){l(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:_.geo})}))}},y=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,r=e.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],_={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(a.getTransform(e)),t}},x={lineX:u(b,0),lineY:u(b,1),rect:function(e,t,n){var i=t[h[e]]([n[0][0],n[1][0]]),r=t[h[e]]([n[0][1],n[1][1]]),a=[m([i[0],r[0]]),m([i[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=r.map(n,(function(n){var r=t[h[e]](n);return i[0][0]=Math.min(i[0][0],r[0]),i[1][0]=Math.min(i[1][0],r[1]),i[0][1]=Math.max(i[0][1],r[0]),i[1][1]=Math.max(i[1][1],r[1]),r}));return{values:a,xyMinMax:i}}};function b(e,t,n,i){var a=n.getAxis(["x","y"][e]),o=m(r.map([0,1],(function(e){return t?a.coordToData(a.toLocalCoord(i[e])):a.toGlobalCoord(a.dataToCoord(i[e]))}))),s=[];return s[e]=o,s[1-e]=[NaN,NaN],{values:o,xyMinMax:s}}var w={lineX:u(S,0),lineY:u(S,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return r.map(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function S(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function M(e,t){var n=C(e),i=C(t),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function C(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var T=p;e.exports=T},39448:function(e,t,n){n(70252);var i=n(16949),r=n(75249),a=n(73625),o=n(55943),s=o.onIrrelevantElement,l=n(60823),c=n(23401),u=n(30108),h=u.getUID,d=n(82548);function p(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function f(e,t,n,r,a){n.off("click"),n.off("mousedown"),t.get("selectedMode")&&(n.on("mousedown",(function(){e._mouseDownFlag=!0})),n.on("click",(function(o){if(e._mouseDownFlag){e._mouseDownFlag=!1;var s=o.target;while(!s.__regions)s=s.parent;if(s){var l={type:("geo"===t.mainType?"geo":"map")+"ToggleSelect",batch:i.map(s.__regions,(function(e){return{name:e.name,from:a.uid}}))};l[t.mainType+"Id"]=t.id,r.dispatchAction(l),m(t,n)}}})))}function m(e,t){t.eachChild((function(t){i.each(t.__regions,(function(n){t.trigger(e.isSelected(n.name)?"emphasis":"normal")}))}))}function g(e,t){var n=new l.Group;this.uid=h("ec_map_draw"),this._controller=new r(e.getZr()),this._controllerHost={target:t?n:null},this.group=n,this._updateGroup=t,this._mouseDownFlag,this._mapName,this._initialized,n.add(this._regionsGroup=new l.Group),n.add(this._backgroundGroup=new l.Group)}g.prototype={constructor:g,draw:function(e,t,n,r,a){var o="geo"===e.mainType,s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},(function(t){s||t.getHostGeoModel()!==e||(s=t.getData())}));var c=e.coordinateSystem;this._updateBackground(c);var u,h=this._regionsGroup,g=this.group,v=c.getTransformInfo(),y=!h.childAt(0)||a;if(y)g.transform=v.roamTransform,g.decomposeTransform(),g.dirty();else{var _=new d;_.transform=v.roamTransform,_.decomposeTransform();var x={scale:_.scale,position:_.position};u=_.scale,l.updateProps(g,x,e)}var b=v.rawScale,w=v.rawPosition;h.removeAll();var S=["itemStyle"],M=["emphasis","itemStyle"],C=["label"],T=["emphasis","label"],E=i.createHashMap();i.each(c.regions,(function(t){var n=E.get(t.name)||E.set(t.name,new l.Group),r=new l.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});n.add(r);var a,c=e.getRegionModel(t.name)||e,d=c.getModel(S),f=c.getModel(M),m=p(d),v=p(f),_=c.getModel(C),x=c.getModel(T);if(s){a=s.indexOfName(t.name);var A=s.getItemVisual(a,"color",!0);A&&(m.fill=A)}var k=function(e){return[e[0]*b[0]+w[0],e[1]*b[1]+w[1]]};i.each(t.geometries,(function(e){if("polygon"===e.type){for(var t=[],n=0;n<e.exterior.length;++n)t.push(k(e.exterior[n]));r.shape.paths.push(new l.Polygon({segmentIgnoreThreshold:1,shape:{points:t}}));for(n=0;n<(e.interiors?e.interiors.length:0);++n){for(var i=e.interiors[n],a=(t=[],0);a<i.length;++a)t.push(k(i[a]));r.shape.paths.push(new l.Polygon({segmentIgnoreThreshold:1,shape:{points:t}}))}}})),r.setStyle(m),r.style.strokeNoScale=!0,r.culling=!0;var D=_.get("show"),I=x.get("show"),P=s&&isNaN(s.get(s.mapDimension("value"),a)),O=s&&s.getItemLayout(a);if(o||P&&(D||I)||O&&O.showLabel){var L,R=o?t.name:a;(!s||a>=0)&&(L=e);var N=new l.Text({position:k(t.center.slice()),scale:[1/g.scale[0],1/g.scale[1]],z2:10,silent:!0});if(l.setLabelStyle(N.style,N.hoverStyle={},_,x,{labelFetcher:L,labelDataIndex:R,defaultText:t.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!y){var F=[1/u[0],1/u[1]];l.updateProps(N,{scale:F},e)}n.add(N)}if(s)s.setItemGraphicEl(a,n);else{c=e.getRegionModel(t.name);r.eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:t.name,region:c&&c.option||{}}}var B=n.__regions||(n.__regions=[]);B.push(t),n.highDownSilentOnTouch=!!e.get("selectedMode"),l.setHoverStyle(n,v),h.add(n)})),this._updateController(e,t,n),f(this,e,h,n,r),m(e,h)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&c.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(e){var t=e.map;this._mapName!==t&&i.each(c.makeGraphic(t,this.uid),(function(e){this._backgroundGroup.add(e)}),this),this._mapName=t},_updateController:function(e,t,n){var r=e.coordinateSystem,o=this._controller,l=this._controllerHost;l.zoomLimit=e.get("scaleLimit"),l.zoom=r.getZoom(),o.enable(e.get("roam")||!1);var c=e.mainType;function u(){var t={type:"geoRoam",componentType:c};return t[c+"Id"]=e.id,t}o.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,a.updateViewOnPan(l,e.dx,e.dy),n.dispatchAction(i.extend(u(),{dx:e.dx,dy:e.dy}))}),this),o.off("zoom").on("zoom",(function(e){if(this._mouseDownFlag=!1,a.updateViewOnZoom(l,e.scale,e.originX,e.originY),n.dispatchAction(i.extend(u(),{zoom:e.scale,originX:e.originX,originY:e.originY})),this._updateGroup){var t=this.group.scale;this._regionsGroup.traverse((function(e){"text"===e.type&&e.attr("scale",[1/t[0],1/t[1]])}))}}),this),o.setPointerChecker((function(t,i,a){return r.getViewRectAfterRoam().contain(i,a)&&!s(t,n,e)}))}};var v=g;e.exports=v},75249:function(e,t,n){var i=n(16949),r=n(80443),a=n(11793),o=n(69654);function s(e){this.pointerChecker,this._zr=e,this._opt={};var t=i.bind,n=t(l,this),a=t(c,this),o=t(u,this),s=t(h,this),p=t(d,this);r.call(this),this.setPointerChecker=function(e){this.pointerChecker=e},this.enable=function(t,r){this.disable(),this._opt=i.defaults(i.clone(r)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",n),e.on("mousemove",a),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",s),e.on("pinch",p))},this.disable=function(){e.off("mousedown",n),e.off("mousemove",a),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",p)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function l(e){if(!(a.isMiddleOrRightButtonOnMouseUpDown(e)||e.target&&e.target.draggable)){var t=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,n)&&(this._x=t,this._y=n,this._dragging=!0)}}function c(e){if(this._dragging&&m("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!o.isTaken(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,r=this._y,s=t-i,l=n-r;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&a.stop(e.event),f(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:i,oldY:r,newX:t,newY:n})}}function u(e){a.isMiddleOrRightButtonOnMouseUpDown(e)||(this._dragging=!1)}function h(e){var t=m("zoomOnMouseWheel",e,this._opt),n=m("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,r=Math.abs(i),a=e.offsetX,o=e.offsetY;if(0!==i&&(t||n)){if(t){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;p(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:a,originY:o})}if(n){var c=Math.abs(i),u=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);p(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:a,originY:o})}}}function d(e){if(!o.isTaken(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;p(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY})}}function p(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(a.stop(i.event),f(e,t,n,i,r))}function f(e,t,n,r,a){a.isAvailableBehavior=i.bind(m,null,n,r),e.trigger(t,a)}function m(e,t,n){var r=n[e];return!e||r&&(!i.isString(r)||t.event[r+"Key"])}i.mixin(s,r);var g=s;e.exports=g},26627:function(e,t,n){var i=n(17913),r=n(55943),a=r.onIrrelevantElement,o=n(60823);function s(e){return e=u(e),function(t,n){return o.clipPointsByRect(t,e)}}function l(e,t){return e=u(e),function(n){var i=null!=t?t:n,r=i?e.width:e.height,a=i?e.x:e.y;return[a,a+(r||0)]}}function c(e,t,n){return e=u(e),function(i,r,o){return e.contain(r[0],r[1])&&!a(i,t,n)}}function u(e){return i.create(e)}t.makeRectPanelClipPath=s,t.makeLinearBrushOtherExtent=l,t.makeRectIsTargetByCursor=c},55943:function(e,t){var n={axisPointer:1,tooltip:1,brush:1};function i(e,t,i){var r=t.getComponentByElement(e.topTarget),a=r&&r.coordinateSystem;return r&&r!==i&&!n[r.mainType]&&a&&a.model!==i}t.onIrrelevantElement=i},69654:function(e,t,n){var i=n(63321),r="\0_ec_interaction_mutex";function a(e,t,n){var i=l(e);i[t]=n}function o(e,t,n){var i=l(e),r=i[t];r===n&&(i[t]=null)}function s(e,t){return!!l(e)[t]}function l(e){return e[r]||(e[r]={})}i.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),t.take=a,t.release=o,t.isTaken=s},69582:function(e,t,n){var i=n(89317),r=i.getLayoutRect,a=i.box,o=i.positionElement,s=n(68331),l=n(60823);function c(e,t,n){var i=t.getBoxLayoutParams(),s=t.get("padding"),l={width:n.getWidth(),height:n.getHeight()},c=r(i,l,s);a(t.get("orient"),e,t.get("itemGap"),c.width,c.height),o(e,i,l,s)}function u(e,t){var n=s.normalizeCssArray(t.get("padding")),i=t.getItemStyle(["color","opacity"]);i.fill=t.get("backgroundColor");e=new l.Rect({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1});return e}t.layout=c,t.makeBackground=u},73625:function(e,t){function n(e,t,n){var i=e.target,r=i.position;r[0]+=t,r[1]+=n,i.dirty()}function i(e,t,n,i){var r=e.target,a=e.zoomLimit,o=r.position,s=r.scale,l=e.zoom=e.zoom||1;if(l*=t,a){var c=a.min||0,u=a.max||1/0;l=Math.max(Math.min(u,l),c)}var h=l/e.zoom;e.zoom=l,o[0]-=(n-o[0])*(h-1),o[1]-=(i-o[1])*(h-1),s[0]*=h,s[1]*=h,r.dirty()}t.updateViewOnPan=n,t.updateViewOnZoom=i},61159:function(e,t,n){var i=n(16949),r={updateSelectedMap:function(e){this._targetList=i.isArray(e)?e.slice():[],this._selectTargetMap=i.reduce(e||[],(function(e,t){return e.set(t.name,t),e}),i.createHashMap())},select:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e),i=this.get("selectedMode");"single"===i&&this._selectTargetMap.each((function(e){e.selected=!1})),n&&(n.selected=!0)},unSelect:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e);n&&(n.selected=!1)},toggleSelected:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e);if(null!=n)return this[n.selected?"unSelect":"select"](e,t),n.selected},isSelected:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e);return n&&n.selected}};e.exports=r},96180:function(e){function t(e,t,r,a,o,s){e=e||0;var l=r[1]-r[0];if(null!=o&&(o=i(o,[0,l])),null!=s&&(s=Math.max(s,null!=o?o:0)),"all"===a){var c=Math.abs(t[1]-t[0]);c=i(c,[0,l]),o=s=i(c,[o,s]),a=0}t[0]=i(t[0],r),t[1]=i(t[1],r);var u=n(t,a);t[a]+=e;var h=o||0,d=r.slice();u.sign<0?d[0]+=h:d[1]-=h,t[a]=i(t[a],d);var p=n(t,a);null!=o&&(p.sign!==u.sign||p.span<o)&&(t[1-a]=t[a]+u.sign*o);p=n(t,a);return null!=s&&p.span>s&&(t[1-a]=t[a]+p.sign*s),t}function n(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function i(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}e.exports=t},46280:function(e,t,n){var i=n(63321);n(64863),n(18253),n(73047);var r=n(96699),a=n(3041);i.registerProcessor(i.PRIORITY.PROCESSOR.SERIES_FILTER,r),a.registerSubTypeDefaulter("legend",(function(){return"plain"}))},38344:function(e,t,n){n(46280),n(46218),n(47200),n(49098)},64863:function(e,t,n){n(70252);var i=n(63321),r=n(16949),a=n(96753),o=n(75269),s=o.isNameSpecified,l=n(61213),c=l.legend.selector,u={all:{type:"all",title:r.clone(c.all)},inverse:{type:"inverse",title:r.clone(c.inverse)}},h=i.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},mergeOption:function(e){h.superCall(this,"mergeOption",e),this._updateSelector(e)},_updateSelector:function(e){var t=e.selector;!0===t&&(t=e.selector=["all","inverse"]),r.isArray(t)&&r.each(t,(function(e,n){r.isString(e)&&(e={type:e}),t[n]=r.merge(e,u[e.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}!t&&this.select(e[0].get("name"))}},_updateData:function(e){var t=[],n=[];e.eachRawSeries((function(i){var r,a=i.name;if(n.push(a),i.legendVisualProvider){var o=i.legendVisualProvider,l=o.getAllNames();e.isSeriesFiltered(i)||(n=n.concat(l)),l.length?t=t.concat(l):r=!0}else r=!0;r&&s(i)&&t.push(i.name)})),this._availableNames=n;var i=this.get("data")||t,o=r.map(i,(function(e){return"string"!==typeof e&&"number"!==typeof e||(e={name:e}),new a(e,this,this.ecModel)}),this);this._data=o},getData:function(){return this._data},select:function(e){var t=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;r.each(i,(function(e){t[e.get("name")]=!1}))}t[e]=!0},unSelect:function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},toggleSelected:function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},allSelect:function(){var e=this._data,t=this.option.selected;r.each(e,(function(e){t[e.get("name",!0)]=!0}))},inverseSelect:function(){var e=this._data,t=this.option.selected;r.each(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},isSelected:function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&r.indexOf(this._availableNames,e)>=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),d=h;e.exports=d},73047:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(63321)),a=n(16949),o=n(2760),s=o.createSymbol,l=n(60823),c=n(69582),u=c.makeBackground,h=n(89317),d=a.curry,p=a.each,f=l.Group,m=r.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new f),this._backgroundEl,this.group.add(this._selectorGroup=new f),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),o=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===o?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);!s||l&&"auto"!==l||(l="horizontal"===o?"end":"start"),this.renderInner(r,e,t,n,s,o,l);var c=e.getBoxLayoutParams(),d={width:n.getWidth(),height:n.getHeight()},p=e.get("padding"),f=h.getLayoutRect(c,d,p),m=this.layoutInner(e,r,f,i,s,l),g=h.getLayoutRect(a.defaults({width:m.width,height:m.height},c),d,p);this.group.attr("position",[g.x-m.x,g.y-m.y]),this.group.add(this._backgroundEl=u(m,e))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(e,t,n,i,r,o,s){var l=this.getContentGroup(),c=a.createHashMap(),u=t.get("selectedMode"),h=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&h.push(e.id)})),p(t.getData(),(function(r,a){var o=r.get("name");if(this.newlineDisabled||""!==o&&"\n"!==o){var s=n.getSeriesByName(o)[0];if(!c.get(o))if(s){var p=s.getData(),m=p.getVisual("color"),g=p.getVisual("borderColor");"function"===typeof m&&(m=m(s.getDataParams(0))),"function"===typeof g&&(g=g(s.getDataParams(0)));var x=p.getVisual("legendSymbol")||"roundRect",b=p.getVisual("symbol"),w=this._createItem(o,a,r,t,x,b,e,m,g,u);w.on("click",d(v,o,null,i,h)).on("mouseover",d(y,s.name,null,i,h)).on("mouseout",d(_,s.name,null,i,h)),c.set(o,!0)}else n.eachRawSeries((function(n){if(!c.get(o)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(o))return;var l=s.indexOfName(o),p=s.getItemVisual(l,"color"),f=s.getItemVisual(l,"borderColor"),m="roundRect",g=this._createItem(o,a,r,t,m,null,e,p,f,u);g.on("click",d(v,null,o,i,h)).on("mouseover",d(y,null,o,i,h)).on("mouseout",d(_,null,o,i,h)),c.set(o,!0)}}),this)}else l.add(new f({newline:!0}))}),this),r&&this._createSelector(r,t,i,o,s)},_createSelector:function(e,t,n,i,r){var a=this.getSelectorGroup();function o(e){var i=e.type,r=new l.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});a.add(r);var o=t.getModel("selectorLabel"),s=t.getModel("emphasis.selectorLabel");l.setLabelStyle(r.style,r.hoverStyle={},o,s,{defaultText:e.title,isRectText:!1}),l.setHoverStyle(r)}p(e,(function(e){o(e)}))},_createItem:function(e,t,n,i,r,o,c,u,h,d){var p=i.get("itemWidth"),m=i.get("itemHeight"),v=i.get("inactiveColor"),y=i.get("inactiveBorderColor"),_=i.get("symbolKeepAspect"),x=i.getModel("itemStyle"),b=i.isSelected(e),w=new f,S=n.getModel("textStyle"),M=n.get("icon"),C=n.getModel("tooltip"),T=C.parentModel;r=M||r;var E=s(r,0,0,p,m,b?u:v,null==_||_);if(w.add(g(E,r,x,h,y,b)),!M&&o&&(o!==r||"none"===o)){var A=.8*m;"none"===o&&(o="circle");var k=s(o,(p-A)/2,(m-A)/2,A,A,b?u:v,null==_||_);w.add(g(k,o,x,h,y,b))}var D="left"===c?p+5:-5,I=c,P=i.get("formatter"),O=e;"string"===typeof P&&P?O=P.replace("{name}",null!=e?e:""):"function"===typeof P&&(O=P(e)),w.add(new l.Text({style:l.setTextStyle({},S,{text:O,x:D,y:m/2,textFill:b?S.getTextColor():v,textAlign:I,textVerticalAlign:"middle"})}));var L=new l.Rect({shape:w.getBoundingRect(),invisible:!0,tooltip:C.get("show")?a.extend({content:e,formatter:T.get("formatter",!0)||function(){return e},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:e,$vars:["name"]}},C.option):null});return w.add(L),w.eachChild((function(e){e.silent=!0})),L.silent=!d,this.getContentGroup().add(w),l.setHoverStyle(w),w.__legendDataIndex=t,w},layoutInner:function(e,t,n,i,r,a){var o=this.getContentGroup(),s=this.getSelectorGroup();h.box(e.get("orient"),o,e.get("itemGap"),n.width,n.height);var l=o.getBoundingRect(),c=[-l.x,-l.y];if(r){h.box("horizontal",s,e.get("selectorItemGap",!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],p=e.get("selectorButtonGap",!0),f=e.getOrient().index,m=0===f?"width":"height",g=0===f?"height":"width",v=0===f?"y":"x";"end"===a?d[f]+=l[m]+p:c[f]+=u[m]+p,d[1-f]+=l[g]/2-u[g]/2,s.attr("position",d),o.attr("position",c);var y={x:0,y:0};return y[m]=l[m]+p+u[m],y[g]=Math.max(l[g],u[g]),y[v]=Math.min(0,u[v]+d[1-f]),y}return o.attr("position",c),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function g(e,t,n,i,r,a){var o;return"line"!==t&&t.indexOf("empty")<0?(o=n.getItemStyle(),e.style.stroke=i,a||(o.stroke=r)):o=n.getItemStyle(["borderWidth","borderColor"]),e.setStyle(o)}function v(e,t,n,i){_(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),y(e,t,n,i)}function y(e,t,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function _(e,t,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}e.exports=m},46218:function(e,t,n){var i=n(64863),r=n(89317),a=r.mergeLayoutParam,o=r.getLayoutParams,s=i.extend({type:"legend.scroll",setScrollDataIndex:function(e){this.option.scrollDataIndex=e},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(e,t,n,i){var r=o(e);s.superCall(this,"init",e,t,n,i),l(this,e,r)},mergeOption:function(e,t){s.superCall(this,"mergeOption",e,t),l(this,this.option,e)}});function l(e,t,n){var i=e.getOrient(),r=[1,1];r[i.index]=0,a(t,n,{type:"box",ignoreSize:r})}var c=s;e.exports=c},47200:function(e,t,n){var i=n(16949),r=n(60823),a=n(89317),o=n(73047),s=r.Group,l=["width","height"],c=["x","y"],u=o.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){u.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new s),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s),this._showController},resetInner:function(){u.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(e,t,n,a,o,s,l){var c=this;u.superCall(this,"renderInner",e,t,n,a,o,s,l);var h=this._controllerGroup,d=t.get("pageIconSize",!0);i.isArray(d)||(d=[d,d]),f("pagePrev",0);var p=t.getModel("pageTextStyle");function f(e,n){var o=e+"DataIndex",s=r.createIcon(t.get("pageIcons",!0)[t.getOrient().name][n],{onclick:i.bind(c._pageGo,c,o,t,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});s.name=e,h.add(s)}h.add(new r.Text({name:"pageText",style:{textFill:p.getTextColor(),font:p.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),f("pageNext",1)},layoutInner:function(e,t,n,r,o,s){var u=this.getSelectorGroup(),h=e.getOrient().index,d=l[h],p=c[h],f=l[1-h],m=c[1-h];o&&a.box("horizontal",u,e.get("selectorItemGap",!0));var g=e.get("selectorButtonGap",!0),v=u.getBoundingRect(),y=[-v.x,-v.y],_=i.clone(n);o&&(_[d]=n[d]-v[d]-g);var x=this._layoutContentAndController(e,r,_,h,d,f,m);if(o){if("end"===s)y[h]+=x[d]+g;else{var b=v[d]+g;y[h]-=b,x[p]-=b}x[d]+=v[d]+g,y[1-h]+=x[m]+x[f]/2-v[f]/2,x[f]=Math.max(x[f],v[f]),x[m]=Math.min(x[m],v[m]+y[1-h]),u.attr("position",y)}return x},_layoutContentAndController:function(e,t,n,o,s,l,c){var u=this.getContentGroup(),h=this._containerGroup,d=this._controllerGroup;a.box(e.get("orient"),u,e.get("itemGap"),o?n.width:null,o?null:n.height),a.box("horizontal",d,e.get("pageButtonItemGap",!0));var p=u.getBoundingRect(),f=d.getBoundingRect(),m=this._showController=p[s]>n[s],g=[-p.x,-p.y];t||(g[o]=u.position[o]);var v=[0,0],y=[-f.x,-f.y],_=i.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(m){var x=e.get("pageButtonPosition",!0);"end"===x?y[o]+=n[s]-f[s]:v[o]+=f[s]+_}y[1-o]+=p[l]/2-f[l]/2,u.attr("position",g),h.attr("position",v),d.attr("position",y);var b={x:0,y:0};if(b[s]=m?n[s]:p[s],b[l]=Math.max(p[l],f[l]),b[c]=Math.min(0,f[c]+y[1-o]),h.__rectSize=n[s],m){var w={x:0,y:0};w[s]=Math.max(n[s]-f[s]-_,0),w[l]=b[l],h.setClipPath(new r.Rect({shape:w})),h.__rectSize=w[s]}else d.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var S=this._getPageInfo(e);return null!=S.pageIndex&&r.updateProps(u,{position:S.contentPosition},!!m&&e),this._updatePageInfoView(e,S),b},_pageGo:function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},_updatePageInfoView:function(e,t){var n=this._controllerGroup;i.each(["pagePrev","pageNext"],(function(i){var r=null!=t[i+"DataIndex"],a=n.childOfName(i);a&&(a.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=r?"pointer":"default")}));var r=n.childOfName("pageText"),a=e.get("pageFormatter"),o=t.pageIndex,s=null!=o?o+1:0,l=t.pageCount;r&&a&&r.setStyle("text",i.isString(a)?a.replace("{current}",s).replace("{total}",l):a({current:s,total:l}))},_getPageInfo:function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,a=l[r],o=c[r],s=this._findTargetItemIndex(t),u=n.children(),h=u[s],d=u.length,p=d?1:0,f={contentPosition:n.position.slice(),pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return f;var m=x(h);f.contentPosition[r]=-m.s;for(var g=s+1,v=m,y=m,_=null;g<=d;++g)_=x(u[g]),(!_&&y.e>v.s+i||_&&!b(_,v.s))&&(v=y.i>v.i?y:_,v&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=v.i),++f.pageCount)),y=_;for(g=s-1,v=m,y=m,_=null;g>=-1;--g)_=x(u[g]),_&&b(y,_.s)||!(v.i<y.i)||(y=v,null==f.pagePrevDataIndex&&(f.pagePrevDataIndex=v.i),++f.pageCount,++f.pageIndex),v=_;return f;function x(e){if(e){var t=e.getBoundingRect(),n=t[o]+e.position[r];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function b(e,t){return e.e>=t&&e.s<=t+i}},_findTargetItemIndex:function(e){if(!this._showController)return 0;var t,n,i=this.getContentGroup();return i.eachChild((function(i,r){var a=i.__legendDataIndex;null==n&&null!=a&&(n=r),a===e&&(t=r)})),null!=t?t:n}}),h=u;e.exports=h},18253:function(e,t,n){var i=n(63321),r=n(16949);function a(e,t,n){var i,a={},o="toggleSelected"===e;return n.eachComponent("legend",(function(n){o&&null!=i?n[i?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),i=n.isSelected(t.name));var s=n.getData();r.each(s,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var i=n.isSelected(t);a.hasOwnProperty(t)?a[t]=a[t]&&i:a[t]=i}}))})),"allSelect"===e||"inverseSelect"===e?{selected:a}:{name:t.name,selected:a}}i.registerAction("legendToggleSelect","legendselectchanged",r.curry(a,"toggleSelected")),i.registerAction("legendAllSelect","legendselectall",r.curry(a,"allSelect")),i.registerAction("legendInverseSelect","legendinverseselect",r.curry(a,"inverseSelect")),i.registerAction("legendSelect","legendselected",r.curry(a,"select")),i.registerAction("legendUnSelect","legendunselected",r.curry(a,"unSelect"))},96699:function(e){function t(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}e.exports=t},49098:function(e,t,n){var i=n(63321);i.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))},67364:function(e,t,n){var i=n(63321);n(15747),n(85068),i.registerPreprocessor((function(e){e.markArea=e.markArea||{}}))},85838:function(e,t,n){var i=n(63321);n(17608),n(99510),i.registerPreprocessor((function(e){e.markLine=e.markLine||{}}))},27483:function(e,t,n){var i=n(63321);n(78697),n(79691),i.registerPreprocessor((function(e){e.markPoint=e.markPoint||{}}))},15747:function(e,t,n){var i=n(9331),r=i.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});e.exports=r},85068:function(e,t,n){var i=n(16949),r=n(35098),a=n(54111),o=n(80720),s=n(60823),l=n(5191),c=n(51974),u=function(e,t,n,r){var a=l.dataTransform(e,r[0]),o=l.dataTransform(e,r[1]),s=i.retrieve,c=a.coord,u=o.coord;c[0]=s(c[0],-1/0),c[1]=s(c[1],-1/0),u[0]=s(u[0],1/0),u[1]=s(u[1],1/0);var h=i.mergeAll([{},a,o]);return h.coord=[a.coord,o.coord],h.x0=a.x,h.y0=a.y,h.x1=o.x,h.y1=o.y,h};function h(e){return!isNaN(e)&&!isFinite(e)}function d(e,t,n,i){var r=1-e;return h(t[r])&&h(n[r])}function p(e,t){var n=t.coord[0],i=t.coord[1];return!("cartesian2d"!==e.type||!n||!i||!d(1,n,i,e)&&!d(0,n,i,e))||(l.dataFilter(e,{coord:n,x:t.x0,y:t.y0})||l.dataFilter(e,{coord:i,x:t.x1,y:t.y1}))}function f(e,t,n,i,r){var a,s=i.coordinateSystem,l=e.getItemModel(t),c=o.parsePercent(l.get(n[0]),r.getWidth()),u=o.parsePercent(l.get(n[1]),r.getHeight());if(isNaN(c)||isNaN(u)){if(i.getMarkerPosition)a=i.getMarkerPosition(e.getValues(n,t));else{var d=e.get(n[0],t),p=e.get(n[1],t),f=[d,p];s.clampData&&s.clampData(f,f),a=s.dataToPoint(f,!0)}if("cartesian2d"===s.type){var m=s.getAxis("x"),g=s.getAxis("y");d=e.get(n[0],t),p=e.get(n[1],t);h(d)?a[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):h(p)&&(a[1]=g.toGlobalCoord(g.getExtent()["y0"===n[1]?0:1]))}isNaN(c)||(a[0]=c),isNaN(u)||(a[1]=u)}else a=[c,u];return a}var m=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function g(e,t,n){var r,o,s=["x0","y0","x1","y1"];e?(r=i.map(e&&e.dimensions,(function(e){var n=t.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return i.defaults({name:e},r)})),o=new a(i.map(s,(function(e,t){return{name:e,type:r[t%2].type}})),n)):(r=[{name:"value",type:"float"}],o=new a(r,n));var l=i.map(n.get("data"),i.curry(u,t,e,n));e&&(l=i.filter(l,i.curry(p,e)));var c=e?function(e,t,n,i){return e.coord[Math.floor(i/2)][i%2]}:function(e){return e.value};return o.initData(l,null,c),o.hasItemOption=!0,o}c.extend({type:"markArea",updateTransform:function(e,t,n){t.eachSeries((function(e){var t=e.markAreaModel;if(t){var r=t.getData();r.each((function(t){var a=i.map(m,(function(i){return f(r,t,i,e,n)}));r.setItemLayout(t,a);var o=r.getItemGraphicEl(t);o.setShape("points",a)}))}}),this)},renderSeries:function(e,t,n,a){var o=e.coordinateSystem,l=e.id,c=e.getData(),u=this.markerGroupMap,d=u.get(l)||u.set(l,{group:new s.Group});this.group.add(d.group),d.__keep=!0;var p=g(o,e,t);t.setData(p),p.each((function(t){var n=i.map(m,(function(n){return f(p,t,n,e,a)})),r=!0;i.each(m,(function(e){if(r){var n=p.get(e[0],t),i=p.get(e[1],t);(h(n)||o.getAxis("x").containData(n))&&(h(i)||o.getAxis("y").containData(i))&&(r=!1)}})),p.setItemLayout(t,{points:n,allClipped:r}),p.setItemVisual(t,{color:c.getVisual("color")})})),p.diff(d.__data).add((function(e){var t=p.getItemLayout(e);if(!t.allClipped){var n=new s.Polygon({shape:{points:t.points}});p.setItemGraphicEl(e,n),d.group.add(n)}})).update((function(e,n){var i=d.__data.getItemGraphicEl(n),r=p.getItemLayout(e);r.allClipped?i&&d.group.remove(i):(i?s.updateProps(i,{shape:{points:r.points}},t,e):i=new s.Polygon({shape:{points:r.points}}),p.setItemGraphicEl(e,i),d.group.add(i))})).remove((function(e){var t=d.__data.getItemGraphicEl(e);d.group.remove(t)})).execute(),p.eachItemGraphicEl((function(e,n){var a=p.getItemModel(n),o=a.getModel("label"),l=a.getModel("emphasis.label"),c=p.getItemVisual(n,"color");e.useStyle(i.defaults(a.getModel("itemStyle").getItemStyle(),{fill:r.modifyAlpha(c,.4),stroke:c})),e.hoverStyle=a.getModel("emphasis.itemStyle").getItemStyle(),s.setLabelStyle(e.style,e.hoverStyle,o,l,{labelFetcher:t,labelDataIndex:n,defaultText:p.getName(n)||"",isRectText:!0,autoColor:c}),s.setHoverStyle(e,{}),e.dataModel=t})),d.__data=p,d.group.silent=t.get("silent")||e.get("silent")}})},17608:function(e,t,n){var i=n(9331),r=i.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});e.exports=r},99510:function(e,t,n){var i=n(16949),r=n(54111),a=n(80720),o=n(5191),s=n(57833),l=n(51974),c=n(84165),u=c.getStackedDimension,h=function(e,t,n,r){var a=e.getData(),s=r.type;if(!i.isArray(r)&&("min"===s||"max"===s||"average"===s||"median"===s||null!=r.xAxis||null!=r.yAxis)){var l,c;if(null!=r.yAxis||null!=r.xAxis)l=t.getAxis(null!=r.yAxis?"y":"x"),c=i.retrieve(r.yAxis,r.xAxis);else{var h=o.getAxisInfo(r,a,t,e);l=h.valueAxis;var d=u(a,h.valueDataDim);c=o.numCalculate(a,d,s)}var p="x"===l.dim?0:1,f=1-p,m=i.clone(r),g={};m.type=null,m.coord=[],g.coord=[],m.coord[f]=-1/0,g.coord[f]=1/0;var v=n.get("precision");v>=0&&"number"===typeof c&&(c=+c.toFixed(Math.min(v,20))),m.coord[p]=g.coord[p]=c,r=[m,g,{type:s,valueIndex:r.valueIndex,value:c}]}return r=[o.dataTransform(e,r[0]),o.dataTransform(e,r[1]),i.extend({},r[2])],r[2].type=r[2].type||"",i.merge(r[2],r[0]),i.merge(r[2],r[1]),r};function d(e){return!isNaN(e)&&!isFinite(e)}function p(e,t,n,i){var r=1-e,a=i.dimensions[e];return d(t[r])&&d(n[r])&&t[e]===n[e]&&i.getAxis(a).containData(t[e])}function f(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(p(1,n,i,e)||p(0,n,i,e)))return!0}return o.dataFilter(e,t[0])&&o.dataFilter(e,t[1])}function m(e,t,n,i,r){var o,s=i.coordinateSystem,l=e.getItemModel(t),c=a.parsePercent(l.get("x"),r.getWidth()),u=a.parsePercent(l.get("y"),r.getHeight());if(isNaN(c)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var h=s.dimensions,p=e.get(h[0],t),f=e.get(h[1],t);o=s.dataToPoint([p,f])}if("cartesian2d"===s.type){var m=s.getAxis("x"),g=s.getAxis("y");h=s.dimensions;d(e.get(h[0],t))?o[0]=m.toGlobalCoord(m.getExtent()[n?0:1]):d(e.get(h[1],t))&&(o[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(c)||(o[0]=c),isNaN(u)||(o[1]=u)}else o=[c,u];e.setItemLayout(t,o)}var g=l.extend({type:"markLine",updateTransform:function(e,t,n){t.eachSeries((function(e){var t=e.markLineModel;if(t){var i=t.getData(),r=t.__from,a=t.__to;r.each((function(t){m(r,t,!0,e,n),m(a,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[r.getItemLayout(e),a.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},renderSeries:function(e,t,n,r){var a=e.coordinateSystem,o=e.id,l=e.getData(),c=this.markerGroupMap,u=c.get(o)||c.set(o,new s);this.group.add(u.group);var h=v(a,e,t),d=h.from,p=h.to,f=h.line;t.__from=d,t.__to=p,t.setData(f);var g=t.get("symbol"),y=t.get("symbolSize");function _(t,n,i){var a=t.getItemModel(n);m(t,n,i,e,r),t.setItemVisual(n,{symbolRotate:a.get("symbolRotate"),symbolSize:a.get("symbolSize")||y[i?0:1],symbol:a.get("symbol",!0)||g[i?0:1],color:a.get("itemStyle.color")||l.getVisual("color")})}i.isArray(g)||(g=[g,g]),"number"===typeof y&&(y=[y,y]),h.from.each((function(e){_(d,e,!0),_(p,e,!1)})),f.each((function(e){var t=f.getItemModel(e).get("lineStyle.color");f.setItemVisual(e,{color:t||d.getItemVisual(e,"color")}),f.setItemLayout(e,[d.getItemLayout(e),p.getItemLayout(e)]),f.setItemVisual(e,{fromSymbolRotate:d.getItemVisual(e,"symbolRotate"),fromSymbolSize:d.getItemVisual(e,"symbolSize"),fromSymbol:d.getItemVisual(e,"symbol"),toSymbolRotate:p.getItemVisual(e,"symbolRotate"),toSymbolSize:p.getItemVisual(e,"symbolSize"),toSymbol:p.getItemVisual(e,"symbol")})})),u.updateData(f),h.line.eachItemGraphicEl((function(e,n){e.traverse((function(e){e.dataModel=t}))})),u.__keep=!0,u.group.silent=t.get("silent")||e.get("silent")}});function v(e,t,n){var a;a=e?i.map(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return i.defaults({name:e},n)})):[{name:"value",type:"float"}];var s=new r(a,n),l=new r(a,n),c=new r([],n),u=i.map(n.get("data"),i.curry(h,t,e,n));e&&(u=i.filter(u,i.curry(f,e)));var d=e?o.dimValueGetter:function(e){return e.value};return s.initData(i.map(u,(function(e){return e[0]})),null,d),l.initData(i.map(u,(function(e){return e[1]})),null,d),c.initData(i.map(u,(function(e){return e[2]}))),c.hasItemOption=!0,{from:s,to:l,line:c}}e.exports=g},78697:function(e,t,n){var i=n(9331),r=i.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});e.exports=r},79691:function(e,t,n){var i=n(16949),r=n(43871),a=n(80720),o=n(54111),s=n(5191),l=n(51974);function c(e,t,n){var i=t.coordinateSystem;e.each((function(r){var o,s=e.getItemModel(r),l=a.parsePercent(s.get("x"),n.getWidth()),c=a.parsePercent(s.get("y"),n.getHeight());if(isNaN(l)||isNaN(c)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(i){var u=e.get(i.dimensions[0],r),h=e.get(i.dimensions[1],r);o=i.dataToPoint([u,h])}}else o=[l,c];isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c),e.setItemLayout(r,o)}))}var u=l.extend({type:"markPoint",updateTransform:function(e,t,n){t.eachSeries((function(e){var t=e.markPointModel;t&&(c(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout(t))}),this)},renderSeries:function(e,t,n,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,d=u.get(s)||u.set(s,new r),p=h(o,e,t);t.setData(p),c(t.getData(),e,a),p.each((function(e){var n=p.getItemModel(e),r=n.getShallow("symbol"),a=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=i.isFunction(r),c=i.isFunction(a),u=i.isFunction(o);if(s||c||u){var h=t.getRawValue(e),d=t.getDataParams(e);s&&(r=r(h,d)),c&&(a=a(h,d)),u&&(o=o(h,d))}p.setItemVisual(e,{symbol:r,symbolSize:a,symbolRotate:o,color:n.get("itemStyle.color")||l.getVisual("color")})})),d.updateData(p),this.group.add(d.group),p.eachItemGraphicEl((function(e){e.traverse((function(e){e.dataModel=t}))})),d.__keep=!0,d.group.silent=t.get("silent")||e.get("silent")}});function h(e,t,n){var r;r=e?i.map(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return i.defaults({name:e},n)})):[{name:"value",type:"float"}];var a=new o(r,n),l=i.map(n.get("data"),i.curry(s.dataTransform,t));return e&&(l=i.filter(l,i.curry(s.dataFilter,e))),a.initData(l,null,e?s.dimValueGetter:function(e){return e.value}),a}e.exports=u},9331:function(e,t,n){var i=n(76371),r=(i.__DEV__,n(63321)),a=n(16949),o=n(28299),s=n(75269),l=n(68331),c=n(88734),u=l.addCommas,h=l.encodeHTML;function d(e){s.defaultEmphasis(e,"label",["show"])}var p=r.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},isAnimationEnabled:function(){if(o.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},mergeOption:function(e,t){this._mergeOption(e,t,!1,!1)},_mergeOption:function(e,t,n,i){var r=this.constructor,o=this.mainType+"Model";n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),s=e[o];n&&n.data?(s?s._mergeOption(n,t,!0):(i&&d(n),a.each(n.data,(function(e){e instanceof Array?(d(e[0]),d(e[1])):d(e)})),s=new r(n,this,t),a.extend(s,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),s.__hostSeries=e),e[o]=s):e[o]=null}),this)},formatTooltip:function(e,t,n,i){var r=this.getData(),o=this.getRawValue(e),s=a.isArray(o)?a.map(o,u).join(", "):u(o),l=r.getName(e),c=h(this.name),d="html"===i?"<br/>":"\n";return(null!=o||l)&&(c+=d),l&&(c+=h(l),null!=o&&(c+=" : ")),null!=o&&(c+=h(s)),c},getData:function(){return this._data},setData:function(e){this._data=e}});a.mixin(p,c);var f=p;e.exports=f},51974:function(e,t,n){var i=n(63321),r=n(16949),a=i.extendComponentView({type:"marker",init:function(){this.markerGroupMap=r.createHashMap()},render:function(e,t,n){var i=this.markerGroupMap;i.each((function(e){e.__keep=!1}));var r=this.type+"Model";t.eachSeries((function(e){var i=e[r];i&&this.renderSeries(e,i,t,n)}),this),i.each((function(e){!e.__keep&&this.group.remove(e.group)}),this)},renderSeries:function(){}});e.exports=a},5191:function(e,t,n){var i=n(16949),r=n(80720),a=n(84165),o=a.isDimensionStacked,s=i.indexOf;function l(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function c(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function u(e,t,n,i,a,s){var l=[],c=o(t,i),u=c?t.getCalculationInfo("stackResultDimension"):i,h=y(t,u,e),d=t.indicesOfNearest(u,h)[0];l[a]=t.get(n,d),l[s]=t.get(u,d);var p=t.get(i,d),f=r.getPrecision(t.get(i,d));return f=Math.min(f,20),f>=0&&(l[s]=+l[s].toFixed(f)),[l,p]}var h=i.curry,d={min:h(u,"min"),max:h(u,"max"),average:h(u,"average")};function p(e,t){var n=e.getData(),r=e.coordinateSystem;if(t&&!c(t)&&!i.isArray(t.coord)&&r){var a=r.dimensions,o=f(t,n,r,e);if(t=i.clone(t),t.type&&d[t.type]&&o.baseAxis&&o.valueAxis){var l=s(a,o.baseAxis.dim),u=s(a,o.valueAxis.dim),h=d[t.type](n,o.baseDataDim,o.valueDataDim,l,u);t.coord=h[0],t.value=h[1]}else{for(var p=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],m=0;m<2;m++)d[p[m]]&&(p[m]=y(n,n.mapDimension(a[m]),p[m]));t.coord=p}}return t}function f(e,t,n,i){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(m(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function m(e,t){var n=e.getData(),i=n.dimensions;t=n.getDimension(t);for(var r=0;r<i.length;r++){var a=n.getDimensionInfo(i[r]);if(a.name===t)return a.coordDim}}function g(e,t){return!(e&&e.containData&&t.coord&&!l(t))||e.containData(t.coord)}function v(e,t,n,i){return i<2?e.coord&&e.coord[i]:e.value}function y(e,t,n){if("average"===n){var i=0,r=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,r++)})),i/r}return"median"===n?e.getMedian(t):e.getDataExtent(t,!0)["max"===n?1:0]}t.dataTransform=p,t.getAxisInfo=f,t.dataFilter=g,t.dimValueGetter=v,t.numCalculate=y},12544:function(e,t,n){var i=n(63321),r=n(16949),a=n(1199),o=n(69258);n(35827),n(83915),n(8794);var s=5;i.extendComponentView({type:"parallel",render:function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},r.each(l,(function(e,t){n.getZr().on(t,this._handlers[t]=r.bind(e,this))}),this)),a.createOrUpdate(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},dispose:function(e,t){r.each(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},_throttledDispatchExpand:function(e){this._dispatchExpand(e)},_dispatchExpand:function(e){e&&this._api.dispatchAction(r.extend({type:"parallelAxisExpand"},e))}});var l={mousedown:function(e){c(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(c(this,"click")&&t){var n=[e.offsetX,e.offsetY],i=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(i>s)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&c(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i&&null})}}};function c(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}i.registerPreprocessor(o)},8794:function(e,t,n){n(35827),n(53467),n(30638)},95029:function(e,t,n){var i=n(63321),r=n(16949),a=n(36873);n(39765),n(56170),n(47718),n(73189),n(84596),i.registerLayout(r.curry(a,"bar")),i.extendComponentView({type:"polar"})},57358:function(e,t,n){n(63190),n(45997),n(75229)},75229:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(63321)),a=n(16949),o=n(66511),s=n(60823),l=["axisLine","axisTickLabel","axisName"],c=r.extendComponentView({type:"radar",render:function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},_buildAxes:function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=a.map(n,(function(e){var n=new o(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n}));a.each(i,(function(e){a.each(l,e.add,e),this.group.add(e.getGroup())}),this)},_buildSplitLineAndArea:function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),l=r.getModel("lineStyle"),c=o.getModel("areaStyle"),u=r.get("show"),h=o.get("show"),d=l.get("color"),p=c.get("color");d=a.isArray(d)?d:[d],p=a.isArray(p)?p:[p];var f=[],m=[];if("circle"===i)for(var g=n[0].getTicksCoords(),v=t.cx,y=t.cy,_=0;_<g.length;_++){if(u){var x=A(f,d,_);f[x].push(new s.Circle({shape:{cx:v,cy:y,r:g[_].coord}}))}if(h&&_<g.length-1){x=A(m,p,_);m[x].push(new s.Ring({shape:{cx:v,cy:y,r0:g[_].coord,r:g[_+1].coord}}))}}else{var b,w=a.map(n,(function(e,n){var i=e.getTicksCoords();return b=null==b?i.length-1:Math.min(i.length-1,b),a.map(i,(function(e){return t.coordToPoint(e.coord,n)}))})),S=[];for(_=0;_<=b;_++){for(var M=[],C=0;C<n.length;C++)M.push(w[C][_]);if(M[0]&&M.push(M[0].slice()),u){x=A(f,d,_);f[x].push(new s.Polyline({shape:{points:M}}))}if(h&&S){x=A(m,p,_-1);m[x].push(new s.Polygon({shape:{points:M.concat(S)}}))}S=M.slice().reverse()}}var T=l.getLineStyle(),E=c.getAreaStyle();a.each(m,(function(e,t){this.group.add(s.mergePath(e,{style:a.defaults({stroke:"none",fill:p[t%p.length]},E),silent:!0}))}),this),a.each(f,(function(e,t){this.group.add(s.mergePath(e,{style:a.defaults({fill:"none",stroke:d[t%d.length]},T),silent:!0}))}),this)}function A(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}}});e.exports=c},47718:function(e,t,n){n(39765),n(90175)},2589:function(e,t,n){var i=n(63321);n(81232),n(48755),n(35105),n(73189),n(70924),i.extendComponentView({type:"single"})},39219:function(e,t,n){var i=n(63321),r=n(49717);n(84251),n(73718),n(54736),n(47016),i.registerPreprocessor(r)},54736:function(e,t,n){var i=n(16949),r=n(38463),a=n(88734),o=r.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:[]}});i.mixin(o,a);var s=o;e.exports=s},47016:function(e,t,n){var i=n(16949),r=n(17913),a=n(16317),o=n(60823),s=n(89317),l=n(51731),c=n(7693),u=n(2760),h=u.createSymbol,d=n(87773),p=n(80720),f=n(68331),m=f.encodeHTML,g=i.bind,v=i.each,y=Math.PI,_=l.extend({type:"timeline.slider",init:function(e,t){this.api=t,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(e,t,n,i){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var r=this._layout(e,n),a=this._createGroup("mainGroup"),o=this._createGroup("labelGroup"),s=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return m(s.scale.getLabel(e))},v(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](r,a,s,e)}),this),this._renderAxisLabel(r,o,s,e),this._position(r,e)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(e,t){var n=e.get("label.position"),i=e.get("orient"),r=x(e,t);null==n||"auto"===n?n="horizontal"===i?r.y+r.height/2<t.getHeight()/2?"-":"+":r.x+r.width/2<t.getWidth()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]);var a,o,s,l,c={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:y/2},d="vertical"===i?r.height:r.width,p=e.getModel("controlStyle"),f=p.get("show",!0),m=f?p.get("itemSize"):0,g=f?p.get("itemGap"):0,v=m+g,_=e.get("label.rotate")||0;_=_*y/180;var b=p.get("position",!0),w=f&&p.get("showPlayBtn",!0),S=f&&p.get("showPrevBtn",!0),M=f&&p.get("showNextBtn",!0),C=0,T=d;return"left"===b||"bottom"===b?(w&&(a=[0,0],C+=v),S&&(o=[C,0],C+=v),M&&(s=[T-m,0],T-=v)):(w&&(a=[T-m,0],T-=v),S&&(o=[0,0],C+=v),M&&(s=[T-m,0],T-=v)),l=[C,T],e.get("inverse")&&l.reverse(),{viewRect:r,mainLength:d,orient:i,rotation:h[i],labelRotation:_,labelPosOpt:n,labelAlign:e.get("label.align")||c[i],labelBaseline:e.get("label.verticalAlign")||e.get("label.baseline")||u[i],playPosition:a,prevBtnPosition:o,nextBtnPosition:s,axisExtent:l,controlSize:m,controlGap:g}},_position:function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var o=a.create(),s=r.x,l=r.y+r.height;a.translate(o,o,[-s,-l]),a.rotate(o,o,-y/2),a.translate(o,o,[s,l]),r=r.clone(),r.applyTransform(o)}var c=v(r),u=v(n.getBoundingRect()),h=v(i.getBoundingRect()),d=n.position,p=i.position;p[0]=d[0]=c[0][0];var f=e.labelPosOpt;if(isNaN(f)){var m="+"===f?0:1;_(d,u,c,1,m),_(p,h,c,1,1-m)}else{m=f>=0?0:1;_(d,u,c,1,m),p[1]=d[1]+f}function g(e){var t=e.position;e.origin=[c[0][0]-t[0],c[1][0]-t[1]]}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function _(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}n.attr("position",d),i.attr("position",p),n.rotation=i.rotation=e.rotation,g(n),g(i)},_createAxis:function(e,t){var n=t.getData(),i=t.get("axisType"),r=d.createScaleByModel(t,i);r.getTicks=function(){return n.mapArray(["value"],(function(e){return e}))};var a=n.getDataExtent("value");r.setExtent(a[0],a[1]),r.niceTicks();var o=new c("value",r,e.axisExtent,i);return o.model=t,o},_createGroup:function(e){var t=this["_"+e]=new o.Group;return this.group.add(t),t},_renderAxisLine:function(e,t,n,r){var a=n.getExtent();r.get("lineStyle.show")&&t.add(new o.Line({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:i.extend({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(e,t,n,i){var r=i.getData(),a=n.scale.getTicks();v(a,(function(e){var a=n.dataToCoord(e),s=r.getItemModel(e),l=s.getModel("itemStyle"),c=s.getModel("emphasis.itemStyle"),u={position:[a,0],onclick:g(this._changeTimeline,this,e)},h=w(s,l,t,u);o.setHoverStyle(h,c.getItemStyle()),s.get("tooltip")?(h.dataIndex=e,h.dataModel=i):h.dataIndex=h.dataModel=null}),this)},_renderAxisLabel:function(e,t,n,i){var r=n.getLabelModel();if(r.get("show")){var a=i.getData(),s=n.getViewLabels();v(s,(function(i){var r=i.tickValue,s=a.getItemModel(r),l=s.getModel("label"),c=s.getModel("emphasis.label"),u=n.dataToCoord(i.tickValue),h=new o.Text({position:[u,0],rotation:e.labelRotation-e.rotation,onclick:g(this._changeTimeline,this,r),silent:!1});o.setTextStyle(h.style,l,{text:i.formattedLabel,textAlign:e.labelAlign,textVerticalAlign:e.labelBaseline}),t.add(h),o.setHoverStyle(h,o.setTextStyle({},c))}),this)}},_renderControl:function(e,t,n,i){var r=e.controlSize,a=e.rotation,s=i.getModel("controlStyle").getItemStyle(),l=i.getModel("emphasis.controlStyle").getItemStyle(),c=[0,-r/2,r,r],u=i.getPlayState(),h=i.get("inverse",!0);function d(e,n,u,h){if(e){var d={position:e,origin:[r/2,0],rotation:h?-a:0,rectHover:!0,style:s,onclick:u},p=b(i,n,c,d);t.add(p),o.setHoverStyle(p,l)}}d(e.nextBtnPosition,"controlStyle.nextIcon",g(this._changeTimeline,this,h?"-":"+")),d(e.prevBtnPosition,"controlStyle.prevIcon",g(this._changeTimeline,this,h?"+":"-")),d(e.playPosition,"controlStyle."+(u?"stopIcon":"playIcon"),g(this._handlePlayClick,this,!u),!0)},_renderCurrentPointer:function(e,t,n,i){var r=i.getData(),a=i.getCurrentIndex(),o=r.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=g(s._handlePointerDrag,s),e.ondragend=g(s._handlePointerDragend,s),S(e,a,n,i,!0)},onUpdate:function(e){S(e,a,n,i)}};this._currentPointer=w(o,o,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},_handlePointerDrag:function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},_pointerChangeTimeline:function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=p.asc(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.position[0]=n,this._currentPointer.dirty();var a=this._findNearestTick(n),o=this.model;(t||a!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(a)},_doPlayStop:function(){function e(){var e=this.model;this._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(g(e,this),this.model.get("playInterval")))},_toAxisCoord:function(e){var t=this._mainGroup.getLocalTransform();return o.applyTransform(e,t,!0)},_findNearestTick:function(e){var t,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,a){var o=r.dataToCoord(n),s=Math.abs(o-e);s<i&&(i=s,t=a)})),t},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})}});function x(e,t){return s.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function b(e,t,n,i){var a=i.style,s=o.createIcon(e.get(t),i||{},new r(n[0],n[1],n[2],n[3]));return a&&s.setStyle(a),s}function w(e,t,n,r,a,o){var s=t.get("color");if(a)a.setColor(s),n.add(a),o&&o.onUpdate(a);else{var l=e.get("symbol");a=h(l,-1,-1,2,2,s),a.setStyle("strokeNoScale",!0),n.add(a),o&&o.onCreate(a)}var c=t.getItemStyle(["color","symbol","symbolSize"]);a.setStyle(c),r=i.merge({rectHover:!0,z2:100},r,!0);var u=e.get("symbolSize");u=u instanceof Array?u.slice():[+u,+u],u[0]/=2,u[1]/=2,r.scale=u;var d=e.get("symbolOffset");if(d){var f=r.position=r.position||[0,0];f[0]+=p.parsePercent(d[0],u[0]),f[1]+=p.parsePercent(d[1],u[1])}var m=e.get("symbolRotate");return r.rotation=(m||0)*Math.PI/180||0,a.attr(r),a.updateTransform(),a}function S(e,t,n,i,r){if(!e.dragging){var a=i.getModel("checkpointStyle"),o=n.dataToCoord(i.getData().get(["value"],t));r||!a.get("animation",!0)?e.attr({position:[o,0]}):(e.stopAnimation(!0),e.animateTo({position:[o,0]},a.get("animationDuration",!0),a.get("animationEasing",!0)))}}e.exports=_},7693:function(e,t,n){var i=n(16949),r=n(86396),a=function(e,t,n,i){r.call(this,e,t,n),this.type=i||"value",this.model=null};a.prototype={constructor:a,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},i.inherits(a,r);var o=a;e.exports=o},38463:function(e,t,n){n(70252);var i=n(16949),r=n(3041),a=n(54111),o=n(75269),s=r.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(e,t,n){this._data,this._names,this.mergeDefaultAndTheme(e,n),this._initData()},mergeOption:function(e){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(e){this.option.autoPlay=!!e},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,t=e.data||[],n=e.axisType,r=this._names=[];if("category"===n){var s=[];i.each(t,(function(e,t){var n,a=o.getDataItemValue(e);i.isObject(e)?(n=i.clone(e),n.value=t):n=t,s.push(n),i.isString(a)||null!=a&&!isNaN(a)||(a=""),r.push(a+"")})),t=s}var l={category:"ordinal",time:"time"}[n]||"number",c=this._data=new a([{name:"value",type:l}],this);c.initData(t,r)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),l=s;e.exports=l},51731:function(e,t,n){var i=n(59025),r=i.extend({type:"timeline"});e.exports=r},49717:function(e,t,n){var i=n(16949);function r(e){var t=e&&e.timeline;i.isArray(t)||(t=t?[t]:[]),i.each(t,(function(e){e&&a(e)}))}function a(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),o(e),s(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});s(r,"position")||(r.position=e.controlPosition),"none"!==r.position||s(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}i.each(e.data||[],(function(e){i.isObject(e)&&!i.isArray(e)&&(!s(e,"value")&&s(e,"name")&&(e.value=e.name),o(e))}))}function o(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},a=r.normal||(r.normal={}),o={normal:1,emphasis:1};i.each(r,(function(e,t){o[t]||s(a,t)||(a[t]=e)})),n.label&&!s(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function s(e,t){return e.hasOwnProperty(t)}e.exports=r},73718:function(e,t,n){var i=n(63321),r=n(16949);i.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t){var n=t.getComponent("timeline");return n&&null!=e.currentIndex&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),t.resetOption("timeline"),r.defaults({currentIndex:n.option.currentIndex},e)})),i.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))},84251:function(e,t,n){var i=n(3041);i.registerSubTypeDefaulter("timeline",(function(){return"slider"}))},62949:function(e,t,n){var i=n(16949),r=n(63321),a=n(60823),o=n(89317),s=o.getLayoutRect,l=n(68331),c=l.windowOpen;r.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),r.extendComponentView({type:"title",render:function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,o=e.getModel("textStyle"),l=e.getModel("subtextStyle"),u=e.get("textAlign"),h=i.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),d=new a.Text({style:a.setTextStyle({},o,{text:e.get("text"),textFill:o.getTextColor()},{disableBox:!0}),z2:10}),p=d.getBoundingRect(),f=e.get("subtext"),m=new a.Text({style:a.setTextStyle({},l,{text:f,textFill:l.getTextColor(),y:p.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),g=e.get("link"),v=e.get("sublink"),y=e.get("triggerEvent",!0);d.silent=!g&&!y,m.silent=!v&&!y,g&&d.on("click",(function(){c(g,"_"+e.get("target"))})),v&&m.on("click",(function(){c(v,"_"+e.get("subtarget"))})),d.eventData=m.eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(d),f&&r.add(m);var _=r.getBoundingRect(),x=e.getBoxLayoutParams();x.width=_.width,x.height=_.height;var b=s(x,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),"middle"===u&&(u="center"),"right"===u?b.x+=b.width:"center"===u&&(b.x+=b.width/2)),h||(h=e.get("top")||e.get("bottom"),"center"===h&&(h="middle"),"bottom"===h?b.y+=b.height:"middle"===h&&(b.y+=b.height/2),h=h||"top"),r.attr("position",[b.x,b.y]);var w={textAlign:u,textVerticalAlign:h};d.setStyle(w),m.setStyle(w),_=r.getBoundingRect();var S=b.margin,M=e.getItemStyle(["color","opacity"]);M.fill=e.get("backgroundColor");var C=new a.Rect({shape:{x:_.x-S[3],y:_.y-S[0],width:_.width+S[1]+S[3],height:_.height+S[0]+S[2],r:e.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});r.add(C)}}})},69848:function(e,t,n){n(5791),n(5269),n(37974),n(24984),n(51929),n(57559),n(31684)},5791:function(e,t,n){var i=n(63321),r=n(16949),a=n(96935),o=i.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){o.superApply(this,"optionUpdated",arguments),r.each(this.option.feature,(function(e,t){var n=a.get(t);n&&r.merge(e,n.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"}},tooltip:{show:!1}}}),s=o;e.exports=s},5269:function(e,t,n){n(70252);var i=n(63321),r=n(16949),a=n(53164),o=n(96935),s=n(60823),l=n(96753),c=n(60339),u=n(69582),h=i.extendComponentView({type:"toolbox",render:function(e,t,n,i){var h=this.group;if(h.removeAll(),e.get("show")){var p=+e.get("itemSize"),f=e.get("feature")||{},m=this._features||(this._features={}),g=[];r.each(f,(function(e,t){g.push(t)})),new c(this._featureNames||[],g).add(v).update(v).remove(r.curry(v,null)).execute(),this._featureNames=g,u.layout(h,e,n),h.add(u.makeBackground(h.getBoundingRect(),e)),h.eachChild((function(e){var t=e.__title,i=e.hoverStyle;if(i&&t){var r=a.getBoundingRect(t,a.makeFont(i)),o=e.position[0]+h.position[0],s=e.position[1]+h.position[1]+p,l=!1;s+r.height>n.getHeight()&&(i.textPosition="top",l=!0);var c=l?-5-r.height:p+8;o+r.width/2>n.getWidth()?(i.textPosition=["100%",c],i.textAlign="right"):o-r.width/2<0&&(i.textPosition=[0,c],i.textAlign="left")}}))}function v(r,a){var s,c=g[r],u=g[a],h=f[c],p=new l(h,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===c&&(h.title=i.newTitle),c&&!u){if(d(c))s={model:p,onclick:p.option.onclick,featureName:c};else{var v=o.get(c);if(!v)return;s=new v(p,t,n)}m[c]=s}else{if(s=m[u],!s)return;s.model=p,s.ecModel=t,s.api=n}c||!u?p.get("show")&&!s.unusable?(y(p,s,c),p.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&i[e].trigger(t)},s.render&&s.render(p,t,n,i)):s.remove&&s.remove(t,n):s.dispose&&s.dispose(t,n)}function y(i,a,o){var l=i.getModel("iconStyle"),c=i.getModel("emphasis.iconStyle"),u=a.getIcons?a.getIcons():i.get("icon"),d=i.get("title")||{};if("string"===typeof u){var f=u,m=d;u={},d={},u[o]=f,d[o]=m}var g=i.iconPaths={};r.each(u,(function(o,u){var f=s.createIcon(o,{},{x:-p/2,y:-p/2,width:p,height:p});f.setStyle(l.getItemStyle()),f.hoverStyle=c.getItemStyle(),f.setStyle({text:d[u],textAlign:c.get("textAlign"),textBorderRadius:c.get("textBorderRadius"),textPadding:c.get("textPadding"),textFill:null});var m=e.getModel("tooltip");m&&m.get("show")&&f.attr("tooltip",r.extend({content:d[u],formatter:m.get("formatter",!0)||function(){return d[u]},formatterParams:{componentType:"toolbox",name:u,title:d[u],$vars:["name","title"]},position:m.get("position",!0)||"bottom"},m.option)),s.setHoverStyle(f),e.get("showTitle")&&(f.__title=d[u],f.on("mouseover",(function(){var t=c.getItemStyle(),n="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";f.setStyle({textFill:c.get("textFill")||t.fill||t.stroke||"#000",textBackgroundColor:c.get("textBackgroundColor"),textPosition:c.get("textPosition")||n})})).on("mouseout",(function(){f.setStyle({textFill:null,textBackgroundColor:null})}))),f.trigger(i.get("iconStatus."+u)||"normal"),h.add(f),f.on("click",r.bind(a.onclick,a,t,n,u)),g[u]=f}))}},updateView:function(e,t,n,i){r.each(this._features,(function(e){e.updateView&&e.updateView(e.model,t,n,i)}))},remove:function(e,t){r.each(this._features,(function(n){n.remove&&n.remove(e,t)})),this.group.removeAll()},dispose:function(e,t){r.each(this._features,(function(n){n.dispose&&n.dispose(e,t)}))}});function d(e){return 0===e.indexOf("my")}e.exports=h},96935:function(e,t){var n={};function i(e,t){n[e]=t}function r(e){return n[e]}t.register=i,t.get=r},81463:function(e,t,n){var i=n(16949),r=n(96935),a=n(61213),o=a.toolbox.brush;function s(e,t,n){this.model=e,this.ecModel=t,this.api=n,this._brushType,this._brushMode}s.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.clone(o.title)};var l=s.prototype;l.render=l.updateView=function(e,t,n){var r,a,o;t.eachComponent({mainType:"brush"},(function(e){r=e.brushType,a=e.brushOption.brushMode||"single",o|=e.areas.length})),this._brushType=r,this._brushMode=a,i.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===a:"clear"===t?o:t===r)?"emphasis":"normal")}))},l.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return i.each(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},l.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},r.register("brush",s);var c=s;e.exports=c},51929:function(e,t,n){n(70252);var i=n(63321),r=n(16949),a=n(11793),o=n(61213),s=n(96935),l=o.toolbox.dataView,c=new Array(60).join("-"),u="\t";function h(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var a=r.getBaseAxis();if("category"===a.type){var o=a.dim+"_"+a.index;t[o]||(t[o]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},i.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function d(e){var t=[];return r.each(e,(function(e,n){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(r.map(e.series,(function(e){return e.name}))),l=[i.model.getCategories()];r.each(e.series,(function(e){var t=e.getRawData();l.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var c=[s.join(u)],h=0;h<l[0].length;h++){for(var d=[],p=0;p<l.length;p++)d.push(l[p][h]);c.push(d.join(u))}t.push(c.join("\n"))})),t.join("\n\n"+c+"\n\n")}function p(e){return r.map(e,(function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,r=arguments[e-1],a=t.getName(r),o=0;o<e-1;o++)i[o]=arguments[o];n.push((a?a+u:"")+i.join(u))})),n.join("\n")})).join("\n\n"+c+"\n\n")}function f(e){var t=h(e);return{value:r.filter([d(t.seriesGroupByCategoryAxis),p(t.other)],(function(e){return e.replace(/[\n\t\s]/g,"")})).join("\n\n"+c+"\n\n"),meta:t.meta}}function m(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function g(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(u)>=0)return!0}var v=new RegExp("["+u+"]+","g");function y(e){for(var t=e.split(/\n+/g),n=m(t.shift()).split(v),i=[],a=r.map(n,(function(e){return{name:e,data:[]}})),o=0;o<t.length;o++){var s=m(t[o]).split(v);i.push(s.shift());for(var l=0;l<s.length;l++)a[l]&&(a[l].data[o]=s[l])}return{series:a,categories:i}}function _(e){for(var t=e.split(/\n+/g),n=m(t.shift()),i=[],r=0;r<t.length;r++){var a=m(t[r]);if(a){var o,s=a.split(v),l="",c=!1;isNaN(s[0])?(c=!0,l=s[0],s=s.slice(1),i[r]={name:l,value:[]},o=i[r].value):o=i[r]=[];for(var u=0;u<s.length;u++)o.push(+s[u]);1===o.length&&(c?i[r].value=o[0]:i[r]=o[0])}}return{name:n,data:i}}function x(e,t){var n=e.split(new RegExp("\n*"+c+"\n*","g")),i={series:[]};return r.each(n,(function(e,n){if(g(e)){var r=y(e),a=t[n],o=a.axisDim+"Axis";a&&(i[o]=i[o]||[],i[o][a.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=_(e);i.series.push(r)}})),i}function b(e){this._dom=null,this.model=e}function w(e,t){return r.map(e,(function(e,n){var i=t&&t[n];if(r.isObject(i)&&!r.isArray(i)){var a=r.isObject(e)&&!r.isArray(e);a||(e={value:e});var o=null!=i.name&&null==e.name;return e=r.defaults(e,i),o&&delete e.name,e}return e}))}b.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:r.clone(l.title),lang:r.clone(l.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},b.prototype.onclick=function(e,t){var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=i.get("textColor");var c=document.createElement("div"),u=document.createElement("textarea");c.style.cssText="display:block;width:100%;overflow:auto;";var h=i.get("optionToContent"),d=i.get("contentToOption"),p=f(e);if("function"===typeof h){var m=h(t.getOption());"string"===typeof m?c.innerHTML=m:r.isDom(m)&&c.appendChild(m)}else c.appendChild(u),u.readOnly=i.get("readOnly"),u.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",u.style.color=i.get("textColor"),u.style.borderColor=i.get("textareaBorderColor"),u.style.backgroundColor=i.get("textareaColor"),u.value=p.value;var g=p.meta,v=document.createElement("div");v.style.cssText="position:absolute;bottom:0;left:0;right:0;";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),b=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var w=this;function S(){n.removeChild(o),w._dom=null}a.addEventListener(_,"click",S),a.addEventListener(b,"click",(function(){var e;try{e="function"===typeof d?d(c,t.getOption()):x(u.value,g)}catch(n){throw S(),new Error("Data view format error "+n)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),S()})),_.innerHTML=l[1],b.innerHTML=l[2],b.style.cssText=y,_.style.cssText=y,!i.get("readOnly")&&v.appendChild(b),v.appendChild(_),o.appendChild(s),o.appendChild(c),o.appendChild(v),c.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},b.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},b.prototype.dispose=function(e,t){this.remove(e,t)},s.register("dataView",b),i.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];r.each(e.newOption.series,(function(e){var i=t.getSeriesByName(e.name)[0];if(i){var a=i.get("data");n.push({name:e.name,data:w(e.data,a)})}else n.push(r.extend({type:"scatter"},e))})),t.mergeOption(r.defaults({series:n},e.newOption))}));var S=b;e.exports=S},57559:function(e,t,n){n(70252);var i=n(63321),r=n(16949),a=n(31387),o=n(36284),s=n(34527),l=n(96180),c=n(61213),u=n(96935);n(1542);var h=c.toolbox.dataZoom,d=r.each,p="\0_ec_\0toolbox-dataZoom_";function f(e,t,n){(this._brushController=new a(n.getZr())).on("brush",r.bind(this._onBrush,this)).mount(),this._isZoomActive}f.defaultOption={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.clone(h.title),brushStyle:{borderWidth:0,color:"rgba(0,0,0,0.2)"}};var m=f.prototype;m.render=function(e,t,n,i){this.model=e,this.ecModel=t,this.api=n,_(e,t,this,i,n),y(e,t)},m.onclick=function(e,t,n){g[n].call(this)},m.remove=function(e,t){this._brushController.unmount()},m.dispose=function(e,t){this._brushController.dispose()};var g={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(s.pop(this.ecModel))}};function v(e){var t={};return r.each(["xAxisIndex","yAxisIndex"],(function(n){t[n]=e[n],null==t[n]&&(t[n]="all"),(!1===t[n]||"none"===t[n])&&(t[n]=[])})),t}function y(e,t){e.setIconStatus("back",s.count(t)>1?"emphasis":"normal")}function _(e,t,n,i,r){var a=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(a="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var s=new o(v(e.option),t,{include:["grid"]});n._brushController.setPanels(s.makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!a&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}m._onBrush=function(e,t){if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new o(v(this.model.option),i,{include:["grid"]});r.matchOutputRanges(e,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(a("x",n,t[0]),a("y",n,t[1])):a({lineX:"x",lineY:"y"}[i],n,t)}})),s.push(i,n),this._dispatchZoomAction(n)}function a(e,t,r){var a=t.getAxis(e),o=a.model,s=c(e,o,i),u=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=l(0,r.slice(),a.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}function c(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(e,t.componentIndex);r&&(i=n)})),i}},m._dispatchZoomAction=function(e){var t=[];d(e,(function(e,n){t.push(r.clone(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},u.register("dataZoom",f),i.registerPreprocessor((function(e){if(e){var t=e.dataZoom||(e.dataZoom=[]);r.isArray(t)||(e.dataZoom=t=[t]);var n=e.toolbox;if(n&&(r.isArray(n)&&(n=n[0]),n&&n.feature)){var i=n.feature.dataZoom;a("xAxis",i),a("yAxis",i)}}function a(e,n){if(n){var i=e+"Index",a=n[i];null==a||"all"===a||r.isArray(a)||(a=!1===a||"none"===a?[]:[a]),o(e,(function(o,s){if(null==a||"all"===a||-1!==r.indexOf(a,s)){var l={type:"select",$fromToolbox:!0,filterMode:n.filterMode||"filter",id:p+e+s};l[i]=s,t.push(l)}}))}}function o(t,n){var i=e[t];r.isArray(i)||(i=i?[i]:[]),d(i,n)}}));var x=f;e.exports=x},24984:function(e,t,n){n(70252);var i=n(63321),r=n(16949),a=n(61213),o=n(96935),s=a.toolbox.magicType,l="__ec_magicType_stack__";function c(e){this.model=e}c.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.clone(s.title),option:{},seriesIndex:{}};var u=c.prototype;u.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return r.each(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n};var h={line:function(e,t,n,i){if("bar"===e)return r.merge({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(e,t,n,i){if("line"===e)return r.merge({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(e,t,n,i){var a=n.get("stack")===l;if("line"===e||"bar"===e)return i.setIconStatus("stack",a?"normal":"emphasis"),r.merge({id:t,stack:a?"":l},i.get("option.stack")||{},!0)}},d=[["line","bar"],["stack"]];u.onclick=function(e,t,n){var i=this.model,a=i.get("seriesIndex."+n);if(h[n]){var o,c={series:[]},u=function(t){var a=t.subType,o=t.id,s=h[n](a,o,t,i);s&&(r.defaults(s,t.option),c.series.push(s));var l=t.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var u=l.getAxesByScale("ordinal")[0];if(u){var d=u.dim,p=d+"Axis",f=e.queryComponents({mainType:p,index:t.get(name+"Index"),id:t.get(name+"Id")})[0],m=f.componentIndex;c[p]=c[p]||[];for(var g=0;g<=m;g++)c[p][m]=c[p][m]||{};c[p][m].boundaryGap="bar"===n}}};if(r.each(d,(function(e){r.indexOf(e,n)>=0&&r.each(e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},u),"stack"===n){var p=c.series&&c.series[0]&&c.series[0].stack===l;o=p?r.merge({stack:s.title.tiled},s.title):r.clone(s.title)}t.dispatchAction({type:"changeMagicType",currentType:n,newOption:c,newTitle:o,featureName:"magicType"})}},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)})),o.register("magicType",c);var p=c;e.exports=p},31684:function(e,t,n){var i=n(63321),r=n(34527),a=n(61213),o=n(96935),s=a.toolbox.restore;function l(e){this.model=e}l.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:s.title};var c=l.prototype;c.onclick=function(e,t,n){r.clear(e),t.dispatchAction({type:"restore",from:this.uid})},o.register("restore",l),i.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var u=l;e.exports=u},37974:function(e,t,n){n(96158),n(66554),n(46293),n(6149);var i=n(28299),r=n(61213),a=n(96935),o=r.toolbox.saveAsImage;function s(e){this.model=e}s.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:o.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:o.lang.slice()},s.prototype.unusable=!i.canvasSupported;var l=s.prototype;l.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",a="svg"===t.getZr().painter.getType(),o=a?"svg":n.get("type",!0)||"png",s=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!==typeof MouseEvent||i.browser.ie||i.browser.edge)if(window.navigator.msSaveOrOpenBlob){var l=atob(s.split(",")[1]),c=l.length,u=new Uint8Array(c);while(c--)u[c]=l.charCodeAt(c);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,r+"."+o)}else{var d=n.get("lang"),p='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(d&&d[0]||"")+'" /></body>',f=window.open();f.document.write(p)}else{var m=document.createElement("a");m.download=r+"."+o,m.target="_blank",m.href=s;var g=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});m.dispatchEvent(g)}},a.register("saveAsImage",s);var c=s;e.exports=c},81573:function(e,t,n){var i=n(63321);n(73189),n(54750),n(37308),i.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),i.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},58072:function(e,t,n){n(70252);var i=n(16949),r=n(35098),a=n(11793),o=n(90076),s=n(28299),l=n(68331),c=i.each,u=l.toCamelCase,h=["","-webkit-","-moz-","-o-"],d="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function p(e){var t="cubic-bezier(0.23, 1, 0.32, 1)",n="left "+e+"s "+t+",top "+e+"s "+t;return i.map(h,(function(e){return e+"transition:"+n})).join(";")}function f(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont());var r=e.get("lineHeight");null==r&&(r=Math.round(3*n/2)),n&&t.push("line-height:"+r+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),c(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}function m(e){var t=[],n=e.get("transitionDuration"),i=e.get("backgroundColor"),a=e.getModel("textStyle"),o=e.get("padding");return n&&t.push(p(n)),i&&(s.canvasSupported?t.push("background-Color:"+i):(t.push("background-Color:#"+r.toHex(i)),t.push("filter:alpha(opacity=70)"))),c(["width","color","radius"],(function(n){var i="border-"+n,r=u(i),a=e.get(r);null!=a&&t.push(i+":"+a+("color"===n?"":"px"))})),t.push(f(a)),null!=o&&t.push("padding:"+l.normalizeCssArray(o).join("px ")+"px"),t.join(";")+";"}function g(e,t,n,i,r){var a=t&&t.painter;if(n){var s=a&&a.getViewportRoot();s&&o.transformLocalCoord(e,s,document.body,i,r)}else{e[0]=i,e[1]=r;var l=a&&a.getViewportRootOffset();l&&(e[0]+=l.offsetLeft,e[1]+=l.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}function v(e,t,n){if(s.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;this._styleCoord=[0,0,0,0],g(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e,this._show=!1,this._hideTimeout;var l=this;i.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!l._enterable){var t=r.handler,n=r.painter.getViewportRoot();a.normalizeEvent(n,e,!0),t.dispatch("mousemove",e)}},i.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}v.prototype={constructor:v,_enterable:!0,update:function(e){var t=this._container,n=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i.position&&"absolute"!==n.position&&(i.position="relative");var r=e.get("alwaysShowContent");r&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var e=this._styleCoord[2],t=this._styleCoord[3],n=e*this._zr.getWidth(),i=t*this._zr.getHeight();this.moveTo(n,i)},show:function(e){clearTimeout(this._hideTimeout);var t=this.el,n=this._styleCoord;t.style.cssText=d+m(e)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(e.get("extraCssText")||""),t.style.display=t.innerHTML?"block":"none",t.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(e){this.el.innerHTML=null==e?"":e},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el;return[e.clientWidth,e.clientHeight]},moveTo:function(e,t){var n=this._styleCoord;g(n,this._zr,this._appendToBody,e,t);var i=this.el.style;i.left=n[0]+"px",i.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(i.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var e=this.el.clientWidth,t=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(e+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),t+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:e,height:t}}};var y=v;e.exports=y},54750:function(e,t,n){var i=n(63321),r=i.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});e.exports=r},82215:function(e,t,n){var i=n(16949),r=n(70939),a=n(60823);function o(e,t,n,i){e[0]=n,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}function s(e){var t=this._zr=e.getZr();this._styleCoord=[0,0,0,0],o(this._styleCoord,t,e.getWidth()/2,e.getHeight()/2),this._show=!1,this._hideTimeout}s.prototype={constructor:s,_enterable:!0,update:function(e){var t=e.get("alwaysShowContent");t&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var e=this._styleCoord[2],t=this._styleCoord[3],n=e*this._zr.getWidth(),i=t*this._zr.getHeight();this.moveTo(n,i)},show:function(e){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(e,t,n){this.el&&this._zr.remove(this.el);var i={},o=e,s="{marker",l="|}",c=o.indexOf(s);while(c>=0){var u=o.indexOf(l),h=o.substr(c+s.length,u-c-s.length);h.indexOf("sub")>-1?i["marker"+h]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:t[h],textOffset:[3,0]}:i["marker"+h]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:t[h]},o=o.substr(u+1),c=o.indexOf("{marker")}var d=n.getModel("textStyle"),p=d.get("fontSize"),f=n.get("textLineHeight");null==f&&(f=Math.round(3*p/2)),this.el=new r({style:a.setTextStyle({},d,{rich:i,text:e,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding"),textLineHeight:f}),z:n.get("z")}),this._zr.add(this.el);var m=this;this.el.on("mouseover",(function(){m._enterable&&(clearTimeout(m._hideTimeout),m._show=!0),m._inContent=!0})),this.el.on("mouseout",(function(){m._enterable&&m._show&&m.hideLater(m._hideDelay),m._inContent=!1}))},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el.getBoundingRect();return[e.width,e.height]},moveTo:function(e,t){if(this.el){var n=this._styleCoord;o(n,this._zr,e,t),this.el.attr("position",[n[0],n[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(i.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var e=this.getSize();return{width:e[0],height:e[1]}}};var l=s;e.exports=l},37308:function(e,t,n){n(70252);var i=n(63321),r=n(16949),a=n(28299),o=n(58072),s=n(82215),l=n(68331),c=n(80720),u=n(60823),h=n(32379),d=n(89317),p=n(96753),f=n(21618),m=n(87773),g=n(1745),v=n(75269),y=v.getTooltipRenderMode,_=r.bind,x=r.each,b=c.parsePercent,w=new u.Rect({shape:{x:-1,y:-1,width:2,height:2}}),S=i.extendComponentView({type:"tooltip",init:function(e,t){if(!a.node){var n,i=e.getComponent("tooltip"),r=i.get("renderMode");this._renderMode=y(r),"html"===this._renderMode?(n=new o(t.getDom(),t,{appendToBody:i.get("appendToBody",!0)}),this._newLine="<br/>"):(n=new s(t),this._newLine="\n"),this._tooltipContent=n}},render:function(e,t,n){if(!a.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=e.get("alwaysShowContent");var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var e=this._tooltipModel,t=e.get("triggerOn");f.register("itemTooltip",this._api,_((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},_keepShow:function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(e,t,n,i){if(i.from!==this.uid&&!a.node){var r=C(i,n);this._ticket="";var o=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var s=w;s.position=[i.x,i.y],s.update(),s.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:s},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var l=h(i,t),c=l.point[0],u=l.point[1];null!=c&&null!=u&&this._tryShow({offsetX:c,offsetY:u,position:i.position,target:l.el},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},manuallyHideTip:function(e,t,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(C(i,n))},_manuallyAxisShowTip:function(e,t,n,i){var r=i.seriesIndex,a=i.dataIndex,o=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=o){var s=t.getSeriesByIndex(r);if(s){var l=s.getData();e=M([l.getItemModel(a),s,(s.coordinateSystem||{}).model,e]);if("axis"===e.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:i.position}),!0}}},_tryShow:function(e,t){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,e):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,n,t)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,n,t)):(this._lastDataByCoordSys=null,this._hide(t))}},_showOrMove:function(e,t){var n=e.get("showDelay");t=r.bind(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},_showAxisTooltip:function(e,t){var n=this._ecModel,i=this._tooltipModel,a=[t.offsetX,t.offsetY],o=[],s=[],c=M([t.tooltipOption,i]),u=this._renderMode,h=this._newLine,d={};x(e,(function(e){x(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value,a=[];if(t&&null!=i){var c=g.getValueLabel(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt);r.each(e.seriesDataIndices,(function(o){var l=n.getSeriesByIndex(o.seriesIndex),h=o.dataIndexInside,p=l&&l.getDataParams(h);if(p.axisDim=e.axisDim,p.axisIndex=e.axisIndex,p.axisType=e.axisType,p.axisId=e.axisId,p.axisValue=m.getAxisRawValue(t.axis,i),p.axisValueLabel=c,p){s.push(p);var f,g=l.formatTooltip(h,!0,null,u);if(r.isObject(g)){f=g.html;var v=g.markers;r.merge(d,v)}else f=g;a.push(f)}}));var p=c;"html"!==u?o.push(a.join(h)):o.push((p?l.encodeHTML(p)+h:"")+a.join(h))}}))}),this),o.reverse(),o=o.join(this._newLine+this._newLine);var p=t.position;this._showOrMove(c,(function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(c,p,a[0],a[1],this._tooltipContent,s):this._showTooltipContent(c,o,s,Math.random(),a[0],a[1],p,void 0,d)}))},_showSeriesItemTooltip:function(e,t,n){var i=this._ecModel,a=t.seriesIndex,o=i.getSeriesByIndex(a),s=t.dataModel||o,l=t.dataIndex,c=t.dataType,u=s.getData(c),h=M([u.getItemModel(l),s,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),d=h.get("trigger");if(null==d||"item"===d){var p,f,m=s.getDataParams(l,c),g=s.formatTooltip(l,!1,c,this._renderMode);r.isObject(g)?(p=g.html,f=g.markers):(p=g,f=null);var v="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,p,m,v,e.offsetX,e.offsetY,e.position,e.target,f)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:a,from:this.uid})}},_showComponentItemTooltip:function(e,t,n){var i=t.tooltip;if("string"===typeof i){var r=i;i={content:r,formatter:r}}var a=new p(i,this._tooltipModel,this._ecModel),o=a.get("content"),s=Math.random();this._showOrMove(a,(function(){this._showTooltipContent(a,o,a.get("formatterParams")||{},s,e.offsetX,e.offsetY,e.position,t)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,n,i,r,a,o,s,c){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent,h=e.get("formatter");o=o||e.get("position");var d=t;if(h&&"string"===typeof h)d=l.formatTpl(h,n,!0);else if("function"===typeof h){var p=_((function(t,i){t===this._ticket&&(u.setContent(i,c,e),this._updatePosition(e,o,r,a,u,n,s))}),this);this._ticket=i,d=h(n,i,p)}u.setContent(d,c,e),u.show(e),this._updatePosition(e,o,r,a,u,n,s)}},_updatePosition:function(e,t,n,i,a,o,s){var l=this._api.getWidth(),c=this._api.getHeight();t=t||e.get("position");var u=a.getSize(),h=e.get("align"),p=e.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),"function"===typeof t&&(t=t([n,i],o,a.el,f,{viewSize:[l,c],contentSize:u.slice()})),r.isArray(t))n=b(t[0],l),i=b(t[1],c);else if(r.isObject(t)){t.width=u[0],t.height=u[1];var m=d.getLayoutRect(t,{width:l,height:c});n=m.x,i=m.y,h=null,p=null}else if("string"===typeof t&&s){var g=A(t,f,u);n=g[0],i=g[1]}else{g=T(n,i,a,l,c,h?null:20,p?null:20);n=g[0],i=g[1]}if(h&&(n-=k(h)?u[0]/2:"right"===h?u[0]:0),p&&(i-=k(p)?u[1]/2:"bottom"===p?u[1]:0),e.get("confine")){g=E(n,i,a,l,c);n=g[0],i=g[1]}a.moveTo(n,i)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,n=!!t&&t.length===e.length;return n&&x(t,(function(t,i){var r=t.dataByAxis||{},a=e[i]||{},o=a.dataByAxis||[];n&=r.length===o.length,n&&x(r,(function(e,t){var i=o[t]||{},r=e.seriesDataIndices||[],a=i.seriesDataIndices||[];n&=e.value===i.value&&e.axisType===i.axisType&&e.axisId===i.axisId&&r.length===a.length,n&&x(r,(function(e,t){var i=a[t];n&=e.seriesIndex===i.seriesIndex&&e.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=e,!!n},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){a.node||(this._tooltipContent.dispose(),f.unregister("itemTooltip",t))}});function M(e){var t=e.pop();while(e.length){var n=e.pop();n&&(p.isInstance(n)&&(n=n.get("tooltip",!0)),"string"===typeof n&&(n={formatter:n}),t=new p(n,t,t.ecModel))}return t}function C(e,t){return e.dispatchAction||r.bind(t.dispatchAction,t)}function T(e,t,n,i,r,a,o){var s=n.getOuterSize(),l=s.width,c=s.height;return null!=a&&(e+l+a>i?e-=l+a:e+=a),null!=o&&(t+c+o>r?t-=c+o:t+=o),[e,t]}function E(e,t,n,i,r){var a=n.getOuterSize(),o=a.width,s=a.height;return e=Math.min(e+o,i)-o,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function A(e,t,n){var i=n[0],r=n[1],a=5,o=0,s=0,l=t.width,c=t.height;switch(e){case"inside":o=t.x+l/2-i/2,s=t.y+c/2-r/2;break;case"top":o=t.x+l/2-i/2,s=t.y-r-a;break;case"bottom":o=t.x+l/2-i/2,s=t.y+c+a;break;case"left":o=t.x-i-a,s=t.y+c/2-r/2;break;case"right":o=t.x+l+a,s=t.y+c/2-r/2}return[o,s]}function k(e){return"center"===e||"middle"===e}e.exports=S},51121:function(e,t,n){n(67362),n(93742)},67362:function(e,t,n){var i=n(63321),r=n(71487);n(30758),n(91825),n(84442),n(93254),n(20985),i.registerPreprocessor(r)},93742:function(e,t,n){var i=n(63321),r=n(71487);n(30758),n(91825),n(8694),n(32831),n(20985),i.registerPreprocessor(r)},84442:function(e,t,n){n(70252);var i=n(16949),r=n(71075),a=n(80720),o=[20,140],s=r.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(e,t){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var e=this.itemSize;"horizontal"===this._orient&&e.reverse(),(null==e[0]||isNaN(e[0]))&&(e[0]=o[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=o[1])},_resetRange:function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):i.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},completeVisualOption:function(){r.prototype.completeVisualOption.apply(this,arguments),i.each(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=0)}),this)},setSelected:function(e){this.option.range=e.slice(),this._resetRange()},getSelected:function(){var e=this.getExtent(),t=a.asc((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},getValueState:function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},getVisualMeta:function(e){var t=l(this,"outOfRange",this.getExtent()),n=l(this,"inRange",this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;o<c&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&r(t[o],"outOfRange");for(var u=1;a<s;a++,u=0)u&&i.length&&r(n[a],"outOfRange"),r(n[a],"inRange");for(u=1;o<c;o++)(!n.length||n[n.length-1]<t[o])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(t[o],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}}});function l(e,t,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,a=n[0],o=[],s=0;s<=i&&a<n[1];s++)o.push(a),a+=r;return o.push(n[1]),o}var c=s;e.exports=c},93254:function(e,t,n){n(70252);var i=n(16949),r=n(90377),a=n(11793),o=n(31028),s=n(60823),l=n(80720),c=n(96180),u=n(40488),h=n(75269),d=l.linearMap,p=i.each,f=Math.min,m=Math.max,g=12,v=6,y=o.extend({type:"visualMap.continuous",init:function(){y.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(e,t,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},_renderEndsText:function(e,t,n){if(t){var i=t[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,a=r.get("textGap"),o=r.itemSize,l=this._shapes.barGroup,c=this._applyTransform([o[0]/2,0===n?-a:o[1]+a],l),u=this._applyTransform(0===n?"bottom":"top",l),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new s.Text({style:{x:c[0],y:c[1],textVerticalAlign:"horizontal"===h?"middle":u,textAlign:"horizontal"===h?u:"center",text:i,textFont:d.getFont(),textFill:d.getTextColor()}}))}},_renderBar:function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,a=this._orient,o=this._useHandle,s=u.getItemAlign(t,this.api,r),l=n.barGroup=this._createBarGroup(s);l.add(n.outOfRange=_()),l.add(n.inRange=_(null,o?M(this._orient):null,i.bind(this._dragHandle,this,"all",!1),i.bind(this._dragHandle,this,"all",!0)));var c=t.textStyleModel.getTextRect("国"),h=m(c.width,c.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(l,0,r,h,a,s),this._createHandle(l,1,r,h,a,s)),this._createIndicator(l,r,h,a),e.add(l)},_createHandle:function(e,t,n,r,o){var l=i.bind(this._dragHandle,this,t,!1),c=i.bind(this._dragHandle,this,t,!0),u=_(x(t,r),M(this._orient),l,c);u.position[0]=n[0],e.add(u);var h=this.visualMapModel.textStyleModel,d=new s.Text({draggable:!0,drift:l,onmousemove:function(e){a.stop(e.event)},ondragend:c,style:{x:0,y:0,text:"",textFont:h.getFont(),textFill:h.getTextColor()}});this.group.add(d);var p=["horizontal"===o?r/2:1.5*r,"horizontal"===o?0===t?-1.5*r:1.5*r:0===t?-r/2:r/2],f=this._shapes;f.handleThumbs[t]=u,f.handleLabelPoints[t]=p,f.handleLabels[t]=d},_createIndicator:function(e,t,n,i){var r=_([[0,0]],"move");r.position[0]=t[0],r.attr({invisible:!0,silent:!0}),e.add(r);var a=this.visualMapModel.textStyleModel,o=new s.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:a.getFont(),textFill:a.getTextColor()}});this.group.add(o);var l=["horizontal"===i?n/2:v+3,0],c=this._shapes;c.indicator=r,c.indicatorLabel=o,c.indicatorLabelPoint=l},_dragHandle:function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var r=this._applyTransform([n,i],this._shapes.barGroup,!0);this._updateInterval(e,r[1]),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():S(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},_resetInterval:function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[d(t[0],n,i,!0),d(t[1],n,i,!0)]},_updateInterval:function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];c(t,i,r,e,0);var a=n.getExtent();this._dataInterval=[d(i[0],r,a,!0),d(i[1],r,a,!0)]},_updateView:function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,r=[0,t.itemSize[1]],a=e?r:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:o.barColor,opacity:o.opacity}).setShape("points",o.barPoints),i.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(a,o)},_createBarVisual:function(e,t,n,i){var a={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,a),s=[this.getControllerVisual(e[0],"symbolSize",a),this.getControllerVisual(e[1],"symbolSize",a)],l=this._createBarPoints(n,s);return{barColor:new r(0,0,0,1,o),barPoints:l,handlesColor:[o[0].color,o[o.length-1].color]}},_makeColorGradient:function(e,t){var n=100,i=[],r=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var a=1;a<n;a++){var o=e[0]+r*a;if(o>e[1])break;i.push({color:this.getControllerVisual(o,"color",t),offset:a/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},_createBarPoints:function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},_createBarGroup:function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new s.Group("horizontal"!==t||n?"horizontal"===t&&n?{scale:"bottom"===e?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==t||n?{scale:"left"===e?[1,1]:[-1,1]}:{scale:"left"===e?[1,-1]:[-1,-1]}:{scale:"bottom"===e?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,a=n.handleLabels;p([0,1],(function(o){var l=r[o];l.setStyle("fill",t.handlesColor[o]),l.position[1]=e[o];var c=s.applyTransform(n.handleLabelPoints[o],s.getTransform(l,this.group));a[o].setStyle({x:c[0],y:c[1],text:i.formatValueText(this._dataInterval[o]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===o?"bottom":"top":"left",n.barGroup)})}),this)}},_showIndicator:function(e,t,n,i){var r=this.visualMapModel,a=r.getExtent(),o=r.itemSize,l=[0,o[1]],c=d(e,a,l,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=c,h.attr("invisible",!1),h.setShape("points",b(!!n,i,c,o[1]));var p={convertOpacityToAlpha:!0},f=this.getControllerVisual(e,"color",p);h.setStyle("fill",f);var m=s.applyTransform(u.indicatorLabelPoint,s.getTransform(h,this.group)),g=u.indicatorLabel;g.attr("invisible",!1);var v=this._applyTransform("left",u.barGroup),y=this._orient;g.setStyle({text:(n||"")+r.formatValueText(t),textVerticalAlign:"horizontal"===y?v:"middle",textAlign:"horizontal"===y?"center":v,x:m[0],y:m[1]})}},_enableHoverLinkToSeries:function(){var e=this;this._shapes.barGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.barGroup,!0,!0);i[1]=f(m(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(e,t){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],a=n.getExtent();e=f(m(r[0],e),r[1]);var o=w(n,a,r),s=[e-o,e+o],l=d(e,r,a,!0),c=[d(s[0],r,a,!0),d(s[1],r,a,!0)];s[0]<r[0]&&(c[0]=-1/0),s[1]>r[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",o):c[1]===1/0?this._showIndicator(l,c[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var p=this._hoverLinkDataIndices,g=[];(t||S(n))&&(g=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var v=h.compressBatches(p,g);this._dispatchHighDown("downplay",u.makeHighDownBatch(v[0],n)),this._dispatchHighDown("highlight",u.makeHighDownBatch(v[1],n))}},_hoverLinkFromSeriesMouseOver:function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=t.dataIndex){var i=this.ecModel.getSeriesByIndex(t.seriesIndex);if(n.isTargetSeries(i)){var r=i.getData(t.dataType),a=r.get(n.getDataDimension(r),t.dataIndex,!0);isNaN(a)||this._showIndicator(a,a)}}},_hideIndicator:function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",u.makeHighDownBatch(e,this.visualMapModel)),e.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},_applyTransform:function(e,t,n,r){var a=s.getTransform(t,r?null:this.group);return s[i.isArray(e)?"applyTransform":"transformDirection"](e,a,n)},_dispatchHighDown:function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function _(e,t,n,i){return new s.Polygon({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){a.stop(e.event)},ondragend:i})}function x(e,t){return 0===e?[[0,0],[t,0],[t,-t]]:[[0,0],[t,0],[t,t]]}function b(e,t,n,i){return e?[[0,-f(t,m(n,0))],[v,0],[0,f(t,m(i-n,0))]]:[[0,0],[5,-5],[5,5]]}function w(e,t,n){var i=g/2,r=e.get("hoverLinkDataSize");return r&&(i=d(r,t,n,!0)/2),i}function S(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function M(e){return"vertical"===e?"ns-resize":"ew-resize"}var C=y;e.exports=C},8694:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(16949)),a=n(71075),o=n(9516),s=n(55366),l=n(80720),c=l.reformIntervals,u=a.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(e,t){u.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode();h[this._mode].call(this),this._resetSelected(e,t);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===n?(e.mappingMethod="category",e.categories=r.clone(i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=r.map(this._pieceList,(function(e){e=r.clone(e);return"inRange"!==t&&(e.visual=null),e})))}))},completeVisualOption:function(){var e=this.option,t={},n=o.listVisualTypes(),i=this.isCategory();function l(e,t,n){return e&&e[t]&&(r.isObject(e[t])?e[t].hasOwnProperty(n):e[t]===n)}r.each(e.pieces,(function(e){r.each(n,(function(n){e.hasOwnProperty(n)&&(t[n]=1)}))})),r.each(t,(function(t,n){var a=0;r.each(this.stateList,(function(t){a|=l(e,t,n)||l(e.target,t,n)}),this),!a&&r.each(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=s.get(n,"inRange"===t?"active":"inactive",i)}))}),this),a.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,t){var n=this.option,i=this._pieceList,a=(t?n:e).selected||{};if(n.selected=a,r.each(i,(function(e,t){var n=this.getSelectedMapKey(e);a.hasOwnProperty(n)||(a[n]=!0)}),this),"single"===n.selectedMode){var o=!1;r.each(i,(function(e,t){var n=this.getSelectedMapKey(e);a[n]&&(o?a[n]=!1:o=!0)}),this)}},getSelectedMapKey:function(e){return"categories"===this._mode?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=r.clone(e)},getValueState:function(e){var t=o.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),(function(t,n){var r=o.findPieceIndex(t,this._pieceList);r===e&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},getRepresentValue:function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},getVisualMeta:function(e){if(!this.isCategory()){var t=[],n=[],i=this,a=this._pieceList.slice();if(a.length){var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}else a.push({interval:[-1/0,1/0]});var s=-1/0;return r.each(a,(function(e){var t=e.interval;t&&(t[0]>s&&l([s,t[0]],"outOfRange"),l(t.slice()),s=t[1])}),this),{stops:t,outerColors:n}}function l(r,a){var o=i.getRepresentValue({interval:r});a||(a=i.getValueState(o));var s=e(o,a);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}}}),h={splitNumber:function(){var e=this.option,t=this._pieceList,n=Math.min(e.precision,20),i=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;var o=(i[1]-i[0])/a;while(+o.toFixed(n)!==o&&n<5)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var s=0,l=i[0];s<a;l+=o,s++){var u=s===a-1?i[1]:l+o;t.push({interval:[l,u],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),c(t),r.each(t,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(){var e=this.option;r.each(e.categories,(function(e){this._pieceList.push({text:this.formatValueText(e,!0),value:e})}),this),d(e,this._pieceList)},pieces:function(){var e=this.option,t=this._pieceList;r.each(e.pieces,(function(e,n){r.isObject(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var a=i.value=e.value;i.interval=[a,a],i.close=[1,1]}else{for(var s=i.interval=[],l=i.close=[0,0],c=[1,0,1],u=[-1/0,1/0],h=[],d=0;d<2;d++){for(var p=[["gte","gt","min"],["lte","lt","max"]][d],f=0;f<3&&null==s[d];f++)s[d]=e[p[f]],l[d]=c[f],h[d]=2===f;null==s[d]&&(s[d]=u[d])}h[0]&&s[1]===1/0&&(l[0]=0),h[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(i.value=s[0])}i.visual=o.retrieveVisuals(e),t.push(i)}),this),d(e,t),c(t),r.each(t,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function d(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var p=u;e.exports=p},32831:function(e,t,n){var i=n(16949),r=n(31028),a=n(60823),o=n(2760),s=o.createSymbol,l=n(89317),c=n(40488),u=r.extend({type:"visualMap.piecewise",doRender:function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,o=r.getFont(),s=r.getTextColor(),c=this._getItemAlign(),u=t.itemSize,h=this._getViewData(),d=h.endsText,p=i.retrieve(t.get("showLabel",!0),!d);function f(r){var l=r.piece,h=new a.Group;h.onclick=i.bind(this._onItemClick,this,l),this._enableHoverLink(h,r.indexInModelPieceList);var d=t.getRepresentValue(l);if(this._createItemSymbol(h,d,[0,0,u[0],u[1]]),p){var f=this.visualMapModel.getValueState(d);h.add(new a.Text({style:{x:"right"===c?-n:u[0]+n,y:u[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:c,textFont:o,textFill:s,opacity:"outOfRange"===f?.5:1}}))}e.add(h)}d&&this._renderEndsText(e,d[0],u,p,c),i.each(h.viewPieceList,f,this),d&&this._renderEndsText(e,d[1],u,p,c),l.box(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(e,t){function n(e){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:e,batch:c.makeHighDownBatch(n.findTargetDataIndices(t),n)})}e.on("mouseover",i.bind(n,this,"highlight")).on("mouseout",i.bind(n,this,"downplay"))},_getItemAlign:function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return c.getItemAlign(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(e,t,n,i,r){if(t){var o=new a.Group,s=this.visualMapModel.textStyleModel;o.add(new a.Text({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?r:"center",text:t,textFont:s.getFont(),textFill:s.getTextColor()}})),e.add(o)}},_getViewData:function(){var e=this.visualMapModel,t=i.map(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),a=e.get("inverse");return("horizontal"===r?a:!a)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},_createItemSymbol:function(e,t,n){e.add(s(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},_onItemClick:function(e){var t=this.visualMapModel,n=t.option,r=i.clone(n.selected),a=t.getSelectedMapKey(e);"single"===n.selectedMode?(r[a]=!0,i.each(r,(function(e,t){r[t]=t===a}))):r[a]=!r[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}}),h=u;e.exports=h},71075:function(e,t,n){n(70252);var i=n(63321),r=n(16949),a=n(28299),o=n(55366),s=n(9516),l=n(87477),c=n(75269),u=n(80720),h=s.mapVisual,d=s.eachVisual,p=r.isArray,f=r.each,m=u.asc,g=u.linearMap,v=r.noop,y=i.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(e,t,n){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(e,n)},optionUpdated:function(e,t){var n=this.option;a.canvasSupported||(n.realtime=!1),!t&&l.replaceVisualOption(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(e){var t=this.stateList;e=r.bind(e,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,t,e),this.targetVisuals=l.createVisualMappings(this.option.target,t,e)},getTargetSeriesIndices:function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=c.normalizeToArray(e),t},eachTargetSeries:function(e,t){r.each(this.getTargetSeriesIndices(),(function(n){e.call(t,this.ecModel.getSeriesByIndex(n))}),this)},isTargetSeries:function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},formatValueText:function(e,t,n){var i,a,o=this.option,s=o.precision,l=this.dataBound,c=o.formatter;return n=n||["<",">"],r.isArray(e)&&(e=e.slice(),i=!0),a=t?e:i?[u(e[0]),u(e[1])]:u(e),r.isString(c)?c.replace("{value}",i?a[0]:a).replace("{value2}",i?a[1]:a):r.isFunction(c)?i?c(e[0],e[1]):c(e):i?e[0]===l[0]?n[0]+" "+a[1]:e[1]===l[1]?n[1]+" "+a[0]:a[0]+" - "+a[1]:a;function u(e){return e===l[0]?"min":e===l[1]?"max":(+e).toFixed(Math.min(s,20))}},resetExtent:function(){var e=this.option,t=m([e.min,e.max]);this._dataExtent=t},getDataDimension:function(e){var t=this.option.dimension,n=e.dimensions;if(null!=t||n.length){if(null!=t)return e.getDimension(t);for(var i=e.dimensions,r=i.length-1;r>=0;r--){var a=i[r],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return a}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),a=t.controller||(t.controller={});r.merge(i,n),r.merge(a,n);var l=this.isCategory();function c(n){p(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")},f(this.stateList,(function(e){var t=n[e];if(r.isString(t)){var i=o.get(t,"active",l);i?(n[e]={},n[e][t]=i):delete n[e]}}),this)}function u(e,t,n){var i=e[t],r=e[n];i&&!r&&(r=e[n]={},f(i,(function(e,t){if(s.isValidType(t)){var n=o.get(t,"inactive",l);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function m(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor");f(this.stateList,(function(a){var o=this.itemSize,s=e[a];s||(s=e[a]={color:l?i:[i]}),null==s.symbol&&(s.symbol=t&&r.clone(t)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&r.clone(n)||(l?o[0]:[o[0],o[0]])),s.symbol=h(s.symbol,(function(e){return"none"===e||"square"===e?"roundRect":e}));var c=s.symbolSize;if(null!=c){var u=-1/0;d(c,(function(e){e>u&&(u=e)})),s.symbolSize=h(c,(function(e){return g(e,[0,u],[0,o[0]],!0)}))}}),this)}c.call(this,i),c.call(this,a),u.call(this,i,"inRange","outOfRange"),m.call(this,a)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:v,getValueState:v,getVisualMeta:v}),_=y;e.exports=_},31028:function(e,t,n){var i=n(63321),r=n(16949),a=n(60823),o=n(68331),s=n(89317),l=n(9516),c=i.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(e,t){this.ecModel=e,this.api=t,this.visualMapModel},render:function(e,t,n,i){this.visualMapModel=e,!1!==e.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(e){var t=this.visualMapModel,n=o.normalizeCssArray(t.get("padding")||0),i=e.getBoundingRect();e.add(new a.Rect({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},getControllerVisual:function(e,t,n){n=n||{};var i=n.forceState,a=this.visualMapModel,o={};if("symbol"===t&&(o.symbol=a.get("itemSymbol")),"color"===t){var s=a.get("contentColor");o.color=s}function c(e){return o[e]}function u(e,t){o[e]=t}var h=a.controllerVisuals[i||a.getValueState(e)],d=l.prepareVisualTypes(h);return r.each(d,(function(i){var r=h[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=h.__alphaForOpacity),l.dependsOn(i,t)&&r&&r.applyVisual(e,c,u)})),o[t]},positionGroup:function(e){var t=this.visualMapModel,n=this.api;s.positionElement(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:r.noop});e.exports=c},40488:function(e,t,n){var i=n(16949),r=n(89317),a=r.getLayoutRect;function o(e,t,n){var i=e.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:t.getWidth(),height:t.getHeight()},s="horizontal"===i.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],c=l[s],u=[0,null,10],h={},d=0;d<3;d++)h[l[1-s][d]]=u[d],h[c[d]]=2===d?n[0]:i[c[d]];var p=[["x","width",3],["y","height",0]][s],f=a(h,o,i.padding);return c[(f.margin[p[2]]||0)+f[p[0]]+.5*f[p[1]]<.5*o[p[1]]?0:1]}function s(e,t){return i.each(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}t.getItemAlign=o,t.makeHighDownBatch=s},71487:function(e,t,n){var i=n(16949),r=i.each;function a(e){var t=e&&e.visualMap;i.isArray(t)||(t=t?[t]:[]),r(t,(function(e){if(e){o(e,"splitList")&&!o(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&i.isArray(t)&&r(t,(function(e){i.isObject(e)&&(o(e,"start")&&!o(e,"min")&&(e.min=e.start),o(e,"end")&&!o(e,"max")&&(e.max=e.end))}))}}))}function o(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}e.exports=a},30758:function(e,t,n){var i=n(3041);i.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}))},91825:function(e,t,n){n(70252);var i=n(63321),r=n(16949),a=n(87477),o=n(9516),s=i.PRIORITY.VISUAL.COMPONENT;function l(e,t,n,i){for(var r=t.targetVisuals[i],a=o.prepareVisualTypes(r),s={color:e.getData().getVisual("color")},l=0,c=a.length;l<c;l++){var u=a[l],h=r["opacity"===u?"__alphaForOpacity":u];h&&h.applyVisual(n,d,p)}return s.color;function d(e){return s[e]}function p(e,t){s[e]=t}}i.registerVisual(s,{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var i=e.pipelineContext;!t.isTargetSeries(e)||i&&i.large||n.push(a.incrementalApplyVisual(t.stateList,t.targetVisuals,r.bind(t.getValueState,t),t.getDataDimension(e.getData())))})),n}}),i.registerVisual(s,{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),i=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var a=t.getVisualMeta(r.bind(l,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimension(n),s=n.getDimensionInfo(o);null!=s&&(a.dimension=s.index,i.push(a))}})),e.getData().setVisual("visualMeta",i)}})},20985:function(e,t,n){var i=n(63321),r={type:"selectDataRange",event:"dataRangeSelected",update:"update"};i.registerAction(r,(function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))}))},76371:function(e,t,n){var i;"undefined"!==typeof window?i=window.__DEV__:"undefined"!==typeof n.g&&(i=n.g.__DEV__),"undefined"===typeof i&&(i=!0);var r=i;t.__DEV__=r},86396:function(e,t,n){n(70252);var i=n(16949),r=i.each,a=i.map,o=n(80720),s=o.linearMap,l=o.getPixelPrecision,c=o.round,u=n(27141),h=u.createAxisTicks,d=u.createAxisLabels,p=u.calculateCategoryInterval,f=[0,1],m=function(e,t,n){this.dim=e,this.scale=t,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function g(e,t){var n=e[1]-e[0],i=t,r=n/i/2;e[0]+=r,e[1]-=r}function v(e,t,n,i){var a=t.length;if(e.onBand&&!n&&a){var o,s,l=e.getExtent();if(1===a)t[0].coord=l[0],o=t[1]={coord:l[0]};else{var u=t[a-1].tickValue-t[0].tickValue,h=(t[a-1].coord-t[0].coord)/u;r(t,(function(e){e.coord-=h/2}));var d=e.scale.getExtent();s=1+d[1]-t[a-1].tickValue,o={coord:t[a-1].coord+h*s},t.push(o)}var p=l[0]>l[1];f(t[0].coord,l[0])&&(i?t[0].coord=l[0]:t.shift()),i&&f(l[0],t[0].coord)&&t.unshift({coord:l[0]}),f(l[1],o.coord)&&(i?o.coord=l[1]:t.pop()),i&&f(o.coord,l[1])&&t.push({coord:l[1]})}function f(e,t){return e=c(e),t=c(t),p?e>t:e<t}}m.prototype={constructor:m,contain:function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},containData:function(e){return this.scale.contain(e)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(e){return l(e||this.scale.getExtent(),this._extent)},setExtent:function(e,t){var n=this._extent;n[0]=e,n[1]=t},dataToCoord:function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&(n=n.slice(),g(n,i.count())),s(e,f,n,t)},coordToData:function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),g(n,i.count()));var r=s(e,n,f,t);return this.scale.scale(r)},pointToData:function(e,t){},getTicksCoords:function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=h(this,t),i=n.ticks,r=a(i,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this),o=t.get("alignWithLabel");return v(this,r,o,e.clamp),r},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=a(n,(function(e){return a(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return i},getViewLabels:function(){return d(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return p(this)}};var y=m;e.exports=y},57020:function(e,t,n){var i=n(16949),r=n(89457),a=n(16317),o=n(17913),s=n(82548),l=r.applyTransform;function c(){s.call(this)}function u(e){this.name=e,this.zoomLimit,s.call(this),this._roamTransformable=new c,this._rawTransformable=new c,this._center,this._zoom}function h(e,t,n,i){var r=n.seriesModel,a=r?r.coordinateSystem:null;return a===this?a[e](i):null}i.mixin(c,s),u.prototype={constructor:u,type:"view",dimensions:["x","y"],setBoundingRect:function(e,t,n,i){return this._rect=new o(e,t,n,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(e,t,n,i){this.transformTo(e,t,n,i),this._viewRect=new o(e,t,n,i)},transformTo:function(e,t,n,i){var r=this.getBoundingRect(),a=this._rawTransformable;a.transform=r.calculateTransform(new o(e,t,n,i)),a.decomposeTransform(),this._updateTransform()},setCenter:function(e){e&&(this._center=e,this._updateCenterAndZoom())},setZoom:function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},getDefaultCenter:function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),a=this.getZoom();i=r.applyTransform([],i,e),n=r.applyTransform([],n,e),t.origin=i,t.position=[n[0]-i[0],n[1]-i[1]],t.scale=[a,a],this._updateTransform()},_updateTransform:function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),a.copy(this.transform||(this.transform=[]),t.transform||a.create()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],a.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var e=this._roamTransformable.transform,t=this._rawTransformable;return{roamTransform:e?i.slice(e):a.create(),rawScale:i.slice(t.scale),rawPosition:i.slice(t.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},dataToPoint:function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?l(n,e,i):r.copy(n,e)},pointToData:function(e){var t=this.invTransform;return t?l([],e,t):[e[0],e[1]]},convertToPixel:i.curry(h,"dataToPoint"),convertFromPixel:i.curry(h,"pointToData"),containPoint:function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])}},i.mixin(u,s);var d=u;e.exports=d},26077:function(e,t,n){var i=n(16949),r={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)"]}}},a={};a.categoryAxis=i.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r),a.valueAxis=i.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},r),a.timeAxis=i.defaults({scale:!0,min:"dataMin",max:"dataMax"},a.valueAxis),a.logAxis=i.defaults({scale:!0,logBase:10},a.valueAxis);var o=a;e.exports=o},87773:function(e,t,n){var i=n(76371),r=(i.__DEV__,n(16949)),a=n(40836),o=n(61636),s=n(84361),l=n(80720),c=n(8e4),u=c.prepareLayoutBarSeries,h=c.makeColumnLayout,d=c.retrieveColumnLayout,p=n(17913);function f(e,t){var n,i,a,o=e.type,s=t.getMin(),c=t.getMax(),d=e.getExtent();"ordinal"===o?n=t.getCategories().length:(i=t.get("boundaryGap"),r.isArray(i)||(i=[i||0,i||0]),"boolean"===typeof i[0]&&(i=[0,0]),i[0]=l.parsePercent(i[0],1),i[1]=l.parsePercent(i[1],1),a=d[1]-d[0]||Math.abs(d[0])),"dataMin"===s?s=d[0]:"function"===typeof s&&(s=s({min:d[0],max:d[1]})),"dataMax"===c?c=d[1]:"function"===typeof c&&(c=c({min:d[0],max:d[1]}));var p=null!=s,f=null!=c;null==s&&(s="ordinal"===o?n?0:NaN:d[0]-i[0]*a),null==c&&(c="ordinal"===o?n?n-1:NaN:d[1]+i[1]*a),(null==s||!isFinite(s))&&(s=NaN),(null==c||!isFinite(c))&&(c=NaN),e.setBlank(r.eqNaN(s)||r.eqNaN(c)||"ordinal"===o&&!e.getOrdinalMeta().categories.length),t.getNeedCrossZero()&&(s>0&&c>0&&!p&&(s=0),s<0&&c<0&&!f&&(c=0));var g=t.ecModel;if(g&&"time"===o){var v,y=u("bar",g);if(r.each(y,(function(e){v|=e.getBaseAxis()===t.axis})),v){var _=h(y),x=m(s,c,t,_);s=x.min,c=x.max}}return{extent:[s,c],fixMin:p,fixMax:f}}function m(e,t,n,i){var a=n.axis.getExtent(),o=a[1]-a[0],s=d(i,n.axis);if(void 0===s)return{min:e,max:t};var l=1/0;r.each(s,(function(e){l=Math.min(e.offset,l)}));var c=-1/0;r.each(s,(function(e){c=Math.max(e.offset+e.width,c)})),l=Math.abs(l),c=Math.abs(c);var u=l+c,h=t-e,p=1-(l+c)/o,f=h/p-h;return t+=f*(c/u),e-=f*(l/u),{min:e,max:t}}function g(e,t){var n=f(e,t),i=n.extent,r=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var a=e.type;e.setExtent(i[0],i[1]),e.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===a||"time"===a?t.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?t.get("maxInterval"):null});var o=t.get("interval");null!=o&&e.setInterval&&e.setInterval(o)}function v(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new a(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new o;default:return(s.getClass(t)||o).create(e)}}function y(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function _(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"string"===typeof t?(t=function(t){return function(n){return n=e.scale.getLabel(n),t.replace("{value}",null!=n?n:"")}}(t),t):"function"===typeof t?function(i,r){return null!=n&&(r=i-n),t(x(e,i),r)}:function(t){return e.scale.getLabel(t)}}function x(e,t){return"category"===e.type?e.scale.getLabel(t):t}function b(e){var t=e.model,n=e.scale;if(t.get("axisLabel.show")&&!n.isBlank()){var i,r,a="category"===e.type,o=n.getExtent();a?r=n.count():(i=n.getTicks(),r=i.length);var s,l=e.getLabelModel(),c=_(e),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;h<r;h+=u){var d=i?i[h]:o[0]+h,p=c(d),f=l.getTextRect(p),m=w(f,l.get("rotate")||0);s?s.union(m):s=m}return s}}function w(e,t){var n=t*Math.PI/180,i=e.plain(),r=i.width,a=i.height,o=r*Math.abs(Math.cos(n))+Math.abs(a*Math.sin(n)),s=r*Math.abs(Math.sin(n))+Math.abs(a*Math.cos(n)),l=new p(i.x,i.y,o,s);return l}function S(e){var t=e.get("interval");return null==t?"auto":t}function M(e){return"category"===e.type&&0===S(e.getLabelModel())}n(83567),n(34329),t.getScaleExtent=f,t.niceScaleExtent=g,t.createScaleByModel=v,t.ifAxisCrossZero=y,t.makeLabelFormatter=_,t.getAxisRawValue=x,t.estimateLabelUnionRect=b,t.getOptionCategoryInterval=S,t.shouldShowAllLabels=M},75817:function(e,t,n){var i=n(16949),r={getMin:function(e){var t=this.option,n=e||null==t.rangeStart?t.min:t.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&"function"!==typeof n&&!i.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(e){var t=this.option,n=e||null==t.rangeEnd?t.max:t.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&"function"!==typeof n&&!i.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var e=this.option;return null==e.rangeStart&&null==e.rangeEnd&&!e.scale},getCoordSysModel:i.noop,setRange:function(e,t){this.option.rangeStart=e,this.option.rangeEnd=t},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};e.exports=r},68429:function(e,t,n){var i=n(16949),r=n(26077),a=n(3041),o=n(89317),s=o.getLayoutParams,l=o.mergeLayoutParam,c=n(82721),u=["value","category","time","log"];function h(e,t,n,o){i.each(u,(function(a){t.extend({type:e+"Axis."+a,mergeDefaultAndTheme:function(t,r){var o=this.layoutMode,c=o?s(t):{},u=r.getTheme();i.merge(t,u.get(a+"Axis")),i.merge(t,this.getDefaultOption()),t.type=n(e,t),o&&l(t,c,o)},optionUpdated:function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=c.createByAxisModel(this))},getCategories:function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:i.mergeAll([{},r[a+"Axis"],o],!0)})})),a.registerSubTypeDefaulter(e+"Axis",i.curry(n,e))}e.exports=h},27141:function(e,t,n){n(70252);var i=n(16949),r=n(53164),a=n(75269),o=a.makeInner,s=n(87773),l=s.makeLabelFormatter,c=s.getOptionCategoryInterval,u=s.shouldShowAllLabels,h=o();function d(e){return"category"===e.type?f(e):v(e)}function p(e,t){return"category"===e.type?g(e,t):{ticks:e.scale.getTicks()}}function f(e){var t=e.getLabelModel(),n=m(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function m(e,t){var n,r,a=y(e,"labels"),o=c(t),s=_(a,o);return s||(i.isFunction(o)?n=C(e,o):(r="auto"===o?b(e):o,n=M(e,r)),x(a,o,{labels:n,labelCategoryInterval:r}))}function g(e,t){var n,r,a=y(e,"ticks"),o=c(t),s=_(a,o);if(s)return s;if(t.get("show")&&!e.scale.isBlank()||(n=[]),i.isFunction(o))n=C(e,o,!0);else if("auto"===o){var l=m(e,e.getLabelModel());r=l.labelCategoryInterval,n=i.map(l.labels,(function(e){return e.tickValue}))}else r=o,n=M(e,r,!0);return x(a,o,{ticks:n,tickCategoryInterval:r})}function v(e){var t=e.scale.getTicks(),n=l(e);return{labels:i.map(t,(function(t,i){return{formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t}}))}}function y(e,t){return h(e)[t]||(h(e)[t]=[])}function _(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function x(e,t,n){return e.push({key:t,value:n}),n}function b(e){var t=h(e).autoInterval;return null!=t?t:h(e).autoInterval=e.calculateCategoryInterval()}function w(e){var t=S(e),n=l(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,a=e.scale,o=a.getExtent(),s=a.count();if(o[1]-o[0]<1)return 0;var c=1;s>40&&(c=Math.max(1,Math.floor(s/40)));for(var u=o[0],d=e.dataToCoord(u+1)-e.dataToCoord(u),p=Math.abs(d*Math.cos(i)),f=Math.abs(d*Math.sin(i)),m=0,g=0;u<=o[1];u+=c){var v=0,y=0,_=r.getBoundingRect(n(u),t.font,"center","top");v=1.3*_.width,y=1.3*_.height,m=Math.max(m,v,7),g=Math.max(g,y,7)}var x=m/p,b=g/f;isNaN(x)&&(x=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(x,b))),M=h(e.model),C=e.getExtent(),T=M.lastAutoInterval,E=M.lastTickCount;return null!=T&&null!=E&&Math.abs(T-w)<=1&&Math.abs(E-s)<=1&&T>w&&M.axisExtend0===C[0]&&M.axisExtend1===C[1]?w=T:(M.lastTickCount=s,M.lastAutoInterval=w,M.axisExtend0=C[0],M.axisExtend1=C[1]),w}function S(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function M(e,t,n){var i=l(e),r=e.scale,a=r.getExtent(),o=e.getLabelModel(),s=[],c=Math.max((t||0)+1,1),h=a[0],d=r.count();0!==h&&c>1&&d/c>2&&(h=Math.round(Math.ceil(h/c)*c));var p=u(e),f=o.get("showMinLabel")||p,m=o.get("showMaxLabel")||p;f&&h!==a[0]&&v(a[0]);for(var g=h;g<=a[1];g+=c)v(g);function v(e){s.push(n?e:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:e})}return m&&g-c!==a[1]&&v(a[1]),s}function C(e,t,n){var r=e.scale,a=l(e),o=[];return i.each(r.getTicks(),(function(e){var i=r.getLabel(e);t(e,i)&&o.push(n?e:{formattedLabel:a(e),rawLabel:i,tickValue:e})})),o}t.createAxisLabels=d,t.createAxisTicks=p,t.calculateCategoryInterval=w},32648:function(e,t,n){n(70252);var i=n(16949),r=n(89317),a=n(80720),o=n(71479),s=864e5;function l(e,t,n){this._model=e}function c(e,t,n,i){var r=n.calendarModel,a=n.seriesModel,o=r?r.coordinateSystem:a?a.coordinateSystem:null;return o===this?o[e](i):null}l.prototype={constructor:l,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(e){e=a.parseDate(e);var t=e.getFullYear(),n=e.getMonth()+1;n=n<10?"0"+n:n;var i=e.getDate();i=i<10?"0"+i:i;var r=e.getDay();return r=Math.abs((r+7-this.getFirstDayOfWeek())%7),{y:t,m:n,d:i,day:r,time:e.getTime(),formatedDate:t+"-"+n+"-"+i,date:e}},getNextNDay:function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},update:function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],o=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[n,7]:[7,n];i.each([0,1],(function(e){h(o,e)&&(s[a[e]]=o[e]*l[e])}));var c={width:t.getWidth(),height:t.getHeight()},u=this._rect=r.getLayoutRect(s,c);function h(e,t){return null!=e[t]&&"auto"!==e[t]}i.each([0,1],(function(e){h(o,e)||(o[e]=u[a[e]]/l[e])})),this._sw=o[0],this._sh=o[1]},dataToPoint:function(e,t){i.isArray(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),r=this._rangeInfo,a=n.formatedDate;if(t&&!(n.time>=r.start.time&&n.time<r.end.time+s))return[NaN,NaN];var o=n.day,l=this._getRangeInfo([r.start.time,a]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]:[this._rect.x+l*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},pointToData:function(e){var t=this.pointToDate(e);return t&&t.time},dataToRect:function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},pointToDate:function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},convertToPixel:i.curry(c,"dataToPoint"),convertFromPixel:i.curry(c,"pointToData"),_initRangeOption:function(){var e=this._model.get("range"),t=e;if(i.isArray(t)&&1===t.length&&(t=t[0]),/^\d{4}$/.test(t)&&(e=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)){var n=this.getDateInfo(t),r=n.date;r.setMonth(r.getMonth()+1);var a=this.getNextNDay(r,-1);e=[n.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(e=[t,t]);var o=this._getRangeInfo(e);return o.start.time>o.end.time&&e.reverse(),e},_getRangeInfo:function(e){var t;e=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],e[0].time>e[1].time&&(t=!0,e.reverse());var n=Math.floor(e[1].time/s)-Math.floor(e[0].time/s)+1,i=new Date(e[0].time),r=i.getDate(),a=e[1].date.getDate();i.setDate(r+n-1);var o=i.getDate();if(o!==a){var l=i.getTime()-e[1].time>0?1:-1;while((o=i.getDate())!==a&&(i.getTime()-e[1].time)*l>0)n-=l,i.setDate(o-l)}var c=Math.floor((n+e[0].day+6)/7),u=t?1-c:c-1;return t&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:c,nthWeek:u,fweek:e[0].day,lweek:e[1].day}},_getDateByWeeksAndDay:function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return!1;var r=7*(e-1)-i.fweek+t,a=new Date(i.start.time);return a.setDate(i.start.d+r),this.getDateInfo(a)}},l.dimensions=l.prototype.dimensions,l.getDimensionsInfo=l.prototype.getDimensionsInfo,l.create=function(e,t){var n=[];return e.eachComponent("calendar",(function(i){var r=new l(i,e,t);n.push(r),i.coordinateSystem=r})),e.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("calendarIndex")||0])})),n},o.register("calendar",l);var u=l;e.exports=u},51033:function(e,t,n){var i=n(16949),r=n(3041),a=n(89317),o=a.getLayoutParams,s=a.sizeCalculable,l=a.mergeLayoutParam,c=r.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(e,t,n,i){var r=o(e);c.superApply(this,"init",arguments),u(e,r)},mergeOption:function(e,t){c.superApply(this,"mergeOption",arguments),u(this.option,e)}});function u(e,t){var n=e.cellSize;i.isArray(n)?1===n.length&&(n[1]=n[0]):n=e.cellSize=[n,n];var r=i.map([0,1],(function(e){return s(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));l(e,t,{type:"box",ignoreSize:r})}var h=c;e.exports=h},27163:function(e){function t(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}e.exports=t},14573:function(e,t,n){var i=n(16949),r=n(86396),a=function(e,t,n,i,a){r.call(this,e,t,n),this.type=i||"value",this.position=a||"bottom"};a.prototype={constructor:a,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},getGlobalExtent:function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},toLocalCoord:null,toGlobalCoord:null},i.inherits(a,r);var o=a;e.exports=o},53485:function(e,t,n){var i=n(16949),r=n(3041),a=n(68429),o=n(75817),s=r.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function l(e,t){return t.type||(t.data?"category":"value")}i.merge(s.prototype,o);var c={offset:0};a("x",s,l,c),a("y",s,l,c);var u=s;e.exports=u},73760:function(e,t,n){n(70252);var i=n(16949);function r(e){return this._axes[e]}var a=function(e){this._axes={},this._dimList=[],this.name=e||""};a.prototype={constructor:a,type:"cartesian",getAxis:function(e){return this._axes[e]},getAxes:function(){return i.map(this._dimList,r,this)},getAxesByScale:function(e){return e=e.toLowerCase(),i.filter(this.getAxes(),(function(t){return t.scale.type===e}))},addAxis:function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},dataToCoord:function(e){return this._dataCoordConvert(e,"dataToCoord")},coordToData:function(e){return this._dataCoordConvert(e,"coordToData")},_dataCoordConvert:function(e,t){for(var n=this._dimList,i=e instanceof Array?[]:{},r=0;r<n.length;r++){var a=n[r],o=this._axes[a];i[a]=o[t](e[a])}return i}};var o=a;e.exports=o},51840:function(e,t,n){var i=n(16949),r=n(17913),a=n(73760);function o(e){a.call(this,e)}o.prototype={constructor:o,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},containData:function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},dataToPoint:function(e,t,n){var i=this.getAxis("x"),r=this.getAxis("y");return n=n||[],n[0]=i.toGlobalCoord(i.dataToCoord(e[0])),n[1]=r.toGlobalCoord(r.dataToCoord(e[1])),n},clampData:function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),a=i.getExtent(),o=n.parse(e[0]),s=i.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(r[0],r[1]),o),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},pointToData:function(e,t){var n=this.getAxis("x"),i=this.getAxis("y");return t=t||[],t[0]=n.coordToData(n.toLocalCoord(e[0])),t[1]=i.coordToData(i.toLocalCoord(e[1])),t},getOtherAxis:function(e){return this.getAxis("x"===e.dim?"y":"x")},getArea:function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(t[0],t[1]),a=Math.max(e[0],e[1])-n,o=Math.max(t[0],t[1])-i,s=new r(n,i,a,o);return s}},i.inherits(o,a);var s=o;e.exports=s},88240:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(16949)),a=r.isObject,o=r.each,s=r.map,l=r.indexOf,c=(r.retrieve,n(89317)),u=c.getLayoutRect,h=n(87773),d=h.createScaleByModel,p=h.ifAxisCrossZero,f=h.niceScaleExtent,m=h.estimateLabelUnionRect,g=n(51840),v=n(14573),y=n(71479),_=n(84165),x=_.getStackedDimension;function b(e,t,n){return e.getCoordSysModel()===t}function w(e,t,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(e,t,n),this.model=e}n(40972);var S=w.prototype;function M(e,t,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,a=e[t],o=n.model,s=o.get("axisLine.onZero"),l=o.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)C(a[l])&&(r=a[l]);else for(var c in a)if(a.hasOwnProperty(c)&&C(a[c])&&!i[u(a[c])]){r=a[c];break}r&&(i[u(r)]=!0)}function u(e){return e.dim+"_"+e.index}}function C(e){return e&&"category"!==e.type&&"time"!==e.type&&p(e)}function T(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}S.type="grid",S.axisPointerEnabled=!0,S.getRect=function(){return this._rect},S.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model),o(n.x,(function(e){f(e.scale,e.model)})),o(n.y,(function(e){f(e.scale,e.model)}));var i={};o(n.x,(function(e){M(n,"y",e,i)})),o(n.y,(function(e){M(n,"x",e,i)})),this.resize(this.model,t)},S.resize=function(e,t,n){var i=u(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._rect=i;var r=this._axesList;function a(){o(r,(function(e){var t=e.isHorizontal(),n=t?[0,i.width]:[0,i.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),T(e,t?i.x:i.y)}))}a(),!n&&e.get("containLabel")&&(o(r,(function(e){if(!e.model.get("axisLabel.inside")){var t=m(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get("axisLabel.margin");i[n]-=t[n]+r,"top"===e.position?i.y+=t.height+r:"left"===e.position&&(i.x+=t.width+r)}}})),a())},S.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n){if(null==t)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[t]}},S.getAxes=function(){return this._axesList.slice()},S.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}a(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===e||r[i].getAxis("y").index===t)return r[i]},S.getCartesians=function(){return this._coordsList.slice()},S.convertToPixel=function(e,t,n){var i=this._findConvertTarget(e,t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},S.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(e,t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},S._findConvertTarget=function(e,t){var n,i,r=t.seriesModel,a=t.xAxisModel||r&&r.getReferringComponents("xAxis")[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=t.gridModel,c=this._coordsList;if(r)n=r.coordinateSystem,l(c,n)<0&&(n=null);else if(a&&o)n=this.getCartesian(a.componentIndex,o.componentIndex);else if(a)i=this.getAxis("x",a.componentIndex);else if(o)i=this.getAxis("y",o.componentIndex);else if(s){var u=s.coordinateSystem;u===this&&(n=this._coordsList[0])}return{cartesian:n,axis:i}},S.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},S._initCartesian=function(e,t,n){var i={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},a={x:0,y:0};if(t.eachComponent("xAxis",s("x"),this),t.eachComponent("yAxis",s("y"),this),!a.x||!a.y)return this._axesMap={},void(this._axesList=[]);function s(n){return function(o,s){if(b(o,e,t)){var l=o.get("position");"x"===n?"top"!==l&&"bottom"!==l&&(l=i.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=i.left?"right":"left"),i[l]=!0;var c=new v(n,d(o),[0,0],o.get("type"),l),u="category"===c.type;c.onBand=u&&o.get("boundaryGap"),c.inverse=o.get("inverse"),o.axis=c,c.model=o,c.grid=this,c.index=s,this._axesList.push(c),r[n][s]=c,a[n]++}}}this._axesMap=r,o(r.x,(function(t,n){o(r.y,(function(i,r){var a="x"+n+"y"+r,o=new g(a);o.grid=this,o.model=e,this._coordsMap[a]=o,this._coordsList.push(o),o.addAxis(t),o.addAxis(i)}),this)}),this)},S._updateScale=function(e,t){function n(e,t,n){o(e.mapDimension(t.dim,!0),(function(n){t.scale.unionExtentFromData(e,x(e,n))}))}o(this._axesList,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeries((function(i){if(k(i)){var r=A(i,e),a=r[0],o=r[1];if(!b(a,t,e)||!b(o,t,e))return;var s=this.getCartesian(a.componentIndex,o.componentIndex),l=i.getData(),c=s.getAxis("x"),u=s.getAxis("y");"list"===l.type&&(n(l,c,i),n(l,u,i))}}),this)},S.getTooltipAxes=function(e){var t=[],n=[];return o(this.getCartesians(),(function(i){var r=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),a=i.getOtherAxis(r);l(t,r)<0&&t.push(r),l(n,a)<0&&n.push(a)})),{baseAxes:t,otherAxes:n}};var E=["xAxis","yAxis"];function A(e,t){return s(E,(function(t){var n=e.getReferringComponents(t)[0];return n}))}function k(e){return"cartesian2d"===e.get("coordinateSystem")}w.create=function(e,t){var n=[];return e.eachComponent("grid",(function(i,r){var a=new w(i,e,t);a.name="grid_"+r,a.resize(i,t,!0),i.coordinateSystem=a,n.push(a)})),e.eachSeries((function(t){if(k(t)){var n=A(t,e),i=n[0],r=n[1],a=i.getCoordSysModel(),o=a.coordinateSystem;t.coordinateSystem=o.getCartesian(i.componentIndex,r.componentIndex)}})),n},w.dimensions=w.prototype.dimensions=g.prototype.dimensions,y.register("cartesian2d",w);var D=w;e.exports=D},40972:function(e,t,n){n(53485);var i=n(3041),r=i.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});e.exports=r},43994:function(e,t,n){var i=n(16949);function r(e,t,n){n=n||{};var r=e.coordinateSystem,a=t.axis,o={},s=a.getAxesOnZeroOf()[0],l=a.position,c=s?"onZero":l,u=a.dim,h=r.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,m="x"===u?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(s){var g=s.toGlobalCoord(s.dataToCoord(0));m[p.onZero]=Math.max(Math.min(g,m[1]),m[0])}o.position=["y"===u?m[p[c]]:d[0],"x"===u?m[p[c]]:d[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[l],o.labelOffset=s?m[p[l]]-m[p.onZero]:0,t.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),i.retrieve(n.labelInside,t.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var y=t.get("axisLabel.rotate");return o.labelRotate="top"===c?-y:y,o.z2=1,o}t.layout=r},12770:function(e,t,n){var i=n(16949);function r(e,t){return t=t||[0,0],i.map(["x","y"],(function(n,i){var r=this.getAxis(n),a=t[i],o=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o))}),this)}function a(e){var t=e.grid.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:i.bind(r,e)}}}e.exports=a},58281:function(e,t,n){var i=n(16949),r=n(17913),a=n(57020),o=n(23401);function s(e,t,n,i){a.call(this,e),this.map=t;var r=o.load(t,n);this._nameCoordMap=r.nameCoordMap,this._regionsMap=r.regionsMap,this._invertLongitute=null==i||i,this.regions=r.regions,this._rect=r.boundingRect}function l(e,t,n,i){var r=n.geoModel,a=n.seriesModel,o=r?r.coordinateSystem:a?a.coordinateSystem||(a.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return o===this?o[e](i):null}s.prototype={constructor:s,type:"geo",dimensions:["lng","lat"],containCoord:function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return!0;return!1},transformTo:function(e,t,n,i){var a=this.getBoundingRect(),o=this._invertLongitute;a=a.clone(),o&&(a.y=-a.y-a.height);var s=this._rawTransformable;if(s.transform=a.calculateTransform(new r(e,t,n,i)),s.decomposeTransform(),o){var l=s.scale;l[1]=-l[1]}s.updateTransform(),this._updateTransform()},getRegion:function(e){return this._regionsMap.get(e)},getRegionByCoord:function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return t[n]},addGeoCoord:function(e,t){this._nameCoordMap.set(e,t)},getGeoCoord:function(e){return this._nameCoordMap.get(e)},getBoundingRect:function(){return this._rect},dataToPoint:function(e,t,n){if("string"===typeof e&&(e=this.getGeoCoord(e)),e)return a.prototype.dataToPoint.call(this,e,t,n)},convertToPixel:i.curry(l,"dataToPoint"),convertFromPixel:i.curry(l,"pointToData")},i.mixin(s,a);var c=s;e.exports=c},57407:function(e,t,n){var i=n(16949),r=n(75269),a=n(3041),o=n(96753),s=n(61159),l=n(65954),c=a.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(e){a.prototype.init.apply(this,arguments),r.defaultEmphasis(e,"label",["show"])},optionUpdated:function(){var e=this.option,t=this;e.regions=l.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=i.reduce(e.regions||[],(function(e,n){return n.name&&e.set(n.name,new o(n,t)),e}),i.createHashMap()),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(e){return this._optionModelMap.get(e)||new o(null,this,this.ecModel)},getFormattedLabel:function(e,t){t=t||"normal";var n=this.getRegionModel(e),i=n.get(("normal"===t?"":t+".")+"label.formatter"),r={name:e};return"function"===typeof i?(r.status=t,i(r)):"string"===typeof i?i.replace("{a}",null!=e?e:""):void 0},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e}});i.mixin(c,s);var u=c;e.exports=u},58179:function(e,t,n){var i=n(17913),r=n(28414),a=n(89457),o=n(4101);function s(e,t,n){if(this.name=e,this.geometries=t,n)n=[n[0],n[1]];else{var i=this.getBoundingRect();n=[i.x+i.width/2,i.y+i.height/2]}this.center=n}s.prototype={constructor:s,properties:null,getBoundingRect:function(){var e=this._rect;if(e)return e;for(var t=Number.MAX_VALUE,n=[t,t],o=[-t,-t],s=[],l=[],c=this.geometries,u=0;u<c.length;u++)if("polygon"===c[u].type){var h=c[u].exterior;r.fromPoints(h,s,l),a.min(n,n,s),a.max(o,o,l)}return 0===u&&(n[0]=n[1]=o[0]=o[1]=0),this._rect=new i(n[0],n[1],o[0]-n[0],o[1]-n[1])},contain:function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i<r;i++)if("polygon"===n[i].type){var a=n[i].exterior,s=n[i].interiors;if(o.contain(a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(o.contain(s[l]))continue e;return!0}}return!1},transformTo:function(e,t,n,r){var o=this.getBoundingRect(),s=o.width/o.height;n?r||(r=n/s):n=s*r;for(var l=new i(e,t,n,r),c=o.calculateTransform(l),u=this.geometries,h=0;h<u.length;h++)if("polygon"===u[h].type){for(var d=u[h].exterior,p=u[h].interiors,f=0;f<d.length;f++)a.applyTransform(d[f],d[f],c);for(var m=0;m<(p?p.length:0);m++)for(f=0;f<p[m].length;f++)a.applyTransform(p[m][f],p[m][f],c)}o=this._rect,o.copy(l),this.center=[o.x+o.width/2,o.y+o.height/2]},cloneShallow:function(e){null==e&&(e=this.name);var t=new s(e,this.geometries,this.center);return t._rect=this._rect,t.transformTo=null,t}};var l=s;e.exports=l},92211:function(e,t,n){n(70252);var i=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function r(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:i[0]})}e.exports=r},44303:function(e){var t={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function n(e,n){if("world"===e){var i=t[n.name];if(i){var r=n.center;r[0]=i[0],r[1]=i[1]}}}e.exports=n},95427:function(e,t,n){n(70252);for(var i=n(16949),r=n(58179),a=[126,25],o=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],s=0;s<o.length;s++)for(var l=0;l<o[s].length;l++)o[s][l][0]/=10.5,o[s][l][1]/=-14,o[s][l][0]+=a[0],o[s][l][1]+=a[1];function c(e,t){"china"===e&&t.push(new r("南海诸岛",i.map(o,(function(e){return{type:"polygon",exterior:e}})),a))}e.exports=c},60395:function(e){var t={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function n(e,n){if("china"===e){var i=t[n.name];if(i){var r=n.center;r[0]+=i[0]/10.5,r[1]+=-i[1]/14}}}e.exports=n},65954:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(63321)),a=n(16949),o=n(58281),s=n(89317),l=n(80720),c=n(23401),u=n(61410);function h(e,t){var n=e.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];isNaN(i[0])||isNaN(i[1])||isNaN(r[0])||isNaN(r[1])||this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}var a,o=this.getBoundingRect(),c=e.get("layoutCenter"),u=e.get("layoutSize"),h=t.getWidth(),d=t.getHeight(),p=o.width/o.height*this.aspectScale,f=!1;if(c&&u&&(c=[l.parsePercent(c[0],h),l.parsePercent(c[1],d)],u=l.parsePercent(u,Math.min(h,d)),isNaN(c[0])||isNaN(c[1])||isNaN(u)||(f=!0)),f){var m={};p>1?(m.width=u,m.height=u/p):(m.height=u,m.width=u*p),m.y=c[1]-m.height/2,m.x=c[0]-m.width/2}else a=e.getBoxLayoutParams(),a.aspect=p,m=s.getLayoutRect(a,{width:h,height:d});this.setViewRect(m.x,m.y,m.width,m.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function d(e,t){a.each(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var p={dimensions:o.prototype.dimensions,create:function(e,t){var n=[];e.eachComponent("geo",(function(e,i){var r=e.get("map"),a=e.get("aspectScale"),s=!0,l=u.retrieveMap(r);l&&l[0]&&"svg"===l[0].type?(null==a&&(a=1),s=!1):null==a&&(a=.75);var c=new o(r+i,r,e.get("nameMap"),s);c.aspectScale=a,c.zoomLimit=e.get("scaleLimit"),n.push(c),d(c,e),e.coordinateSystem=c,c.model=e,c.resize=h,c.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),a.each(i,(function(e,i){var r=a.map(e,(function(e){return e.get("nameMap")})),s=new o(i,i,a.mergeAll(r));s.zoomLimit=a.retrieve.apply(null,a.map(e,(function(e){return e.get("scaleLimit")}))),n.push(s),s.resize=h,s.aspectScale=e[0].get("aspectScale"),s.resize(e[0],t),a.each(e,(function(e){e.coordinateSystem=s,d(s,e)}))})),n},getFilledRegions:function(e,t,n){for(var i=(e||[]).slice(),r=a.createHashMap(),o=0;o<i.length;o++)r.set(i[o].name,i[o]);var s=c.load(t,n);return a.each(s.regions,(function(e){var t=e.name;!r.get(t)&&i.push({name:t})})),i}};r.registerCoordinateSystem("geo",p);var f=p;e.exports=f},87640:function(e,t,n){var i=n(16949),r=i.each,a=n(79446),o=n(75269),s=o.makeInner,l=n(95427),c=n(60395),u=n(44303),h=n(92211),d=s(),p={load:function(e,t,n){var i=d(t).parsed;if(i)return i;var o,s=t.specialAreas||{},p=t.geoJSON;try{o=p?a(p,n):[]}catch(m){throw new Error("Invalid geoJson format\n"+m.message)}return l(e,o),r(o,(function(t){var n=t.name;c(e,t),u(e,t),h(e,t);var i=s[n];i&&t.transformTo(i.left,i.top,i.width,i.height)})),d(t).parsed={regions:o,boundingRect:f(o)}}};function f(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();t=t||i.clone(),t.union(i)}return t}e.exports=p},31570:function(e,t,n){var i=n(59826),r=i.parseSVG,a=i.makeViewBoxTransform,o=n(58511),s=n(13969),l=n(16949),c=l.assert,u=l.createHashMap,h=n(17913),d=n(75269),p=d.makeInner,f=p(),m={load:function(e,t){var n=f(t).originRoot;if(n)return{root:n,boundingRect:f(t).boundingRect};var i=g(t);return f(t).originRoot=i.root,f(t).boundingRect=i.boundingRect,i},makeGraphic:function(e,t,n){var i=f(t),r=i.rootMap||(i.rootMap=u()),a=r.get(n);if(a)return a;var o=i.originRoot,s=i.boundingRect;return i.originRootHostKey?a=g(t,s).root:(i.originRootHostKey=n,a=o),r.set(n,a)},removeGraphic:function(e,t,n){var i=f(t),r=i.rootMap;r&&r.removeKey(n),n===i.originRootHostKey&&(i.originRootHostKey=null)}};function g(e,t){var n,i,l=e.svgXML;try{n=l&&r(l,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=n.root,c(null!=i)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var u=n.width,d=n.height,p=n.viewBoxRect;if(t||(t=null==u||null==d?i.getBoundingRect():new h(0,0,0,0),null!=u&&(t.width=u),null!=d&&(t.height=d)),p){var f=a(p,t.width,t.height),m=i;i=new o,i.add(m),m.scale=f.scale,m.position=f.position}return i.setClipPath(new s({shape:t.plain()})),{root:i,boundingRect:t}}e.exports=m},23401:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(16949)),a=r.each,o=r.createHashMap,s=n(61410),l=n(87640),c=n(31570),u=n(17913),h={geoJSON:l,svg:c},d={load:function(e,t,n){var i,r=[],s=o(),l=o(),c=f(e);return a(c,(function(o){var c=h[o.type].load(e,o,n);a(c.regions,(function(e){var n=e.name;t&&t.hasOwnProperty(n)&&(e=e.cloneShallow(n=t[n])),r.push(e),s.set(n,e),l.set(n,e.center)}));var u=c.boundingRect;u&&(i?i.union(u):i=u.clone())})),{regions:r,regionsMap:s,nameCoordMap:l,boundingRect:i||new u(0,0,0,0)}},makeGraphic:p("makeGraphic"),removeGraphic:p("removeGraphic")};function p(e){return function(t,n){var i=f(t),r=[];return a(i,(function(i){var a=h[i.type][e];a&&r.push(a(t,i,n))})),r}}function f(e){var t=s.retrieveMap(e)||[];return t}e.exports=d},61410:function(e,t,n){var i=n(76371),r=(i.__DEV__,n(16949)),a=r.createHashMap,o=r.isString,s=r.isArray,l=r.each,c=(r.assert,n(59826)),u=c.parseXML,h=a(),d={registerMap:function(e,t,n){var i;return s(t)?i=t:t.svg?i=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(n=t.specialAreas,t=t.geoJson),i=[{type:"geoJSON",source:t,specialAreas:n}]),l(i,(function(e){var t=e.type;"geoJson"===t&&(t=e.type="geoJSON");var n=p[t];n(e)})),h.set(e,i)},retrieveMap:function(e){return h.get(e)}},p={geoJSON:function(e){var t=e.source;e.geoJSON=o(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(e){e.svgXML=u(e.source)}};e.exports=d},79446:function(e,t,n){n(70252);var i=n(16949),r=n(58179);function a(e){if(!e.UTF8Encoding)return e;var t=e.UTF8Scale;null==t&&(t=1024);for(var n=e.features,i=0;i<n.length;i++)for(var r=n[i],a=r.geometry,s=a.coordinates,l=a.encodeOffsets,c=0;c<s.length;c++){var u=s[c];if("Polygon"===a.type)s[c]=o(u,l[c],t);else if("MultiPolygon"===a.type)for(var h=0;h<u.length;h++){var d=u[h];u[h]=o(d,l[c][h],t)}}return e.UTF8Encoding=!1,e}function o(e,t,n){for(var i=[],r=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=a,r=s,a=l,i.push([s/n,l/n])}return i}function s(e,t){return a(e),i.map(i.filter(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,a=e.geometry,o=a.coordinates,s=[];"Polygon"===a.type&&s.push({type:"polygon",exterior:o[0],interiors:o.slice(1)}),"MultiPolygon"===a.type&&i.each(o,(function(e){e[0]&&s.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})}));var l=new r(n[t||"name"],s,n.cp);return l.properties=n,l}))}e.exports=s},6140:function(e,t,n){var i=n(16949);function r(e,t){return t=t||[0,0],i.map([0,1],(function(n){var i=t[n],r=e[n]/2,a=[],o=[];return a[n]=i-r,o[n]=i+r,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])}),this)}function a(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:i.bind(r,e)}}}e.exports=a},61443:function(e,t,n){var i=n(16949),r=n(3041),a=n(15827),o=n(68429),s=n(80720),l=n(75817),c=r.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return a([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(e){var t=this.activeIntervals=i.clone(e);if(t)for(var n=t.length-1;n>=0;n--)s.asc(t[n])},getActiveState:function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;i<r;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"}}),u={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};function h(e,t){return t.type||(t.data?"category":"value")}i.merge(c.prototype,l),o("parallel",c,h,u);var d=c;e.exports=d},90846:function(e,t,n){n(70252);var i=n(16949),r=n(16317),a=n(89317),o=n(87773),s=n(99539),l=n(60823),c=n(80720),u=n(96180),h=i.each,d=Math.min,p=Math.max,f=Math.floor,m=Math.ceil,g=c.round,v=Math.PI;function y(e,t,n){this._axesMap=i.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._rect,this._model=e,this._init(e,t,n)}function _(e,t){return d(p(e,t[0]),t[1])}function x(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function b(e,t){var n,i,r=t.layoutLength,a=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*a-t.axisExpandWindow[0],c=a,u=!0):(n=r-(o-1-e)*s,i=s),{position:n,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:i}}y.prototype={type:"parallel",constructor:y,_init:function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;h(i,(function(e,n){var i=r[n],a=t.getComponent("parallelAxis",i),l=this._axesMap.set(e,new s(e,o.createScaleByModel(a),[0,0],a.get("type"),i)),c="category"===l.type;l.onBand=c&&a.get("boundaryGap"),l.inverse=a.get("inverse"),a.axis=l,l.model=a,l.coordinateSystem=a.coordinateSystem=this}),this)},update:function(e,t){this._updateAxesFromSeries(this._model,e)},containPoint:function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,a=e[1-r],o=e[r];return a>=n&&a<=n+t.axisLength&&o>=i&&o<=i+t.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();h(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),o.niceScaleExtent(t.scale,t.model)}),this)}}),this)},resize:function(e,t){this._rect=a.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var e,t=this._model,n=this._rect,i=["x","y"],r=["width","height"],a=t.get("layout"),o="horizontal"===a?0:1,s=n[r[o]],l=[0,s],c=this.dimensions.length,u=_(t.get("axisExpandWidth"),l),h=_(t.get("axisExpandCount")||0,[0,c]),d=t.get("axisExpandable")&&c>3&&c>h&&h>1&&u>0&&s>0,p=t.get("axisExpandWindow");if(p)e=_(p[1]-p[0],l),p[1]=p[0]+e;else{e=_(u*(h-1),l);var v=t.get("axisExpandCenter")||f(c/2);p=[u*v-e/2],p[1]=p[0]+e}var y=(s-e)/(c-h);y<3&&(y=0);var x=[f(g(p[0]/u,1))+1,m(g(p[1]/u,1))-1],b=y/u*p[0];return{layout:a,pixelDimIndex:o,layoutBase:n[i[o]],layoutLength:s,axisBase:n[i[1-o]],axisLength:n[r[1-o]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:y,axisExpandWindow:p,axisCount:c,winInnerIndices:x,axisExpandWindow0Pos:b}},_layoutAxes:function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),h(n,(function(t,n){var o=(i.axisExpandable?b:x)(n,i),s={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},l={horizontal:v/2,vertical:0},c=[s[a].x+e.x,s[a].y+e.y],u=l[a],h=r.create();r.rotate(h,h,u),r.translate(h,h,c),this._axesLayout[t]={position:c,rotation:u,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(e){return this._axesMap.get(e)},dataToPoint:function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},eachActiveState:function(e,t,n,r){null==n&&(n=0),null==r&&(r=e.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];i.each(o,(function(t){s.push(e.mapDimension(t)),l.push(a.get(t).model)}));for(var c=this.hasAxisBrushed(),u=n;u<r;u++){var h;if(c){h="active";for(var d=e.getValues(s,u),p=0,f=o.length;p<f;p++){var m=l[p].getActiveState(d[p]);if("inactive"===m){h="inactive";break}}}else h="normal";t(h,u)}},hasAxisBrushed:function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,r=e.length;i<r;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},axisCoordToPoint:function(e,t){var n=this._axesLayout[t];return l.applyTransform([e,0],n.transform)},getAxisLayout:function(e){return i.clone(this._axesLayout[e])},getSlidedAxisExpandWindow:function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),r=i[1]-i[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var o,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",c=t.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),f=null!=h[0];if(c)f&&c&&s<r*h[0]?(l="jump",o=s-r*h[2]):f&&c&&s>r*(1-h[0])?(l="jump",o=s-r*(1-h[2])):(o=s-r*h[1])>=0&&(o=s-r*(1-h[1]))<=0&&(o=0),o*=t.axisExpandWidth/c,o?u(o,i,a,"all"):l="none";else{r=i[1]-i[0];var m=a[1]*s/r;i=[p(0,m-r/2)],i[1]=d(a[1],i[0]+r),i[0]=i[1]-r}return{axisExpandWindow:i,behavior:l}}};var w=y;e.exports=w},99539:function(e,t,n){var i=n(16949),r=n(86396),a=function(e,t,n,i,a){r.call(this,e,t,n),this.type=i||"value",this.axisIndex=a};a.prototype={constructor:a,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},i.inherits(a,r);var o=a;e.exports=o},83915:function(e,t,n){n(70252);var i=n(16949),r=n(3041);n(61443);var a=r.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(){r.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var t=this.option;e&&i.merge(t,e,!0),this._initDimensions()},contains:function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},setAxisExpand:function(e){i.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},_initDimensions:function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=i.filter(this.dependentModels.parallelAxis,(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);i.each(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))}});e.exports=a},35827:function(e,t,n){n(70252);var i=n(90846),r=n(71479);function a(e,t){var n=[];return e.eachComponent("parallel",(function(r,a){var o=new i(r,e,t);o.name="parallel_"+a,o.resize(r,t),r.coordinateSystem=o,o.model=r,n.push(o)})),e.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"parallel",index:t.get("parallelIndex"),id:t.get("parallelId")})[0];t.coordinateSystem=n.coordinateSystem}})),n}r.register("parallel",{create:a})},69258:function(e,t,n){var i=n(16949),r=n(75269);function a(e){o(e),s(e)}function o(e){if(!e.parallel){var t=!1;i.each(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function s(e){var t=r.normalizeToArray(e.parallelAxis);i.each(t,(function(t){if(i.isObject(t)){var n=t.parallelIndex||0,a=r.normalizeToArray(e.parallel)[n];a&&a.parallelAxisDefault&&i.merge(t,a.parallelAxisDefault,!1)}}))}e.exports=a},31978:function(e,t,n){var i=n(16949),r=n(53164),a=n(86396),o=n(75269),s=o.makeInner,l=s();function c(e,t){t=t||[0,360],a.call(this,"angle",e,t),this.type="category"}c.prototype={constructor:c,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToAngle:a.prototype.dataToCoord,angleToData:a.prototype.coordToData,calculateCategoryInterval:function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),a=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],s=e.dataToCoord(o+1)-e.dataToCoord(o),c=Math.abs(s),u=r.getBoundingRect(o,t.getFont(),"center","top"),h=Math.max(u.height,7),d=h/c;isNaN(d)&&(d=1/0);var p=Math.max(0,Math.floor(d)),f=l(e.model),m=f.lastAutoInterval,g=f.lastTickCount;return null!=m&&null!=g&&Math.abs(m-p)<=1&&Math.abs(g-a)<=1&&m>p?p=m:(f.lastTickCount=a,f.lastAutoInterval=p),p}},i.inherits(c,a);var u=c;e.exports=u},81629:function(e,t,n){var i=n(16949),r=n(3041),a=n(68429),o=n(75817),s=r.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});i.merge(s.prototype,o);var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function c(e,t){return t.type||(t.data?"category":"value")}a("angle",s,c,l.angle),a("radius",s,c,l.radius)},76781:function(e,t,n){n(70252);var i=n(7768),r=n(31978),a=function(e){this.name=e||"",this.cx=0,this.cy=0,this._radiusAxis=new i,this._angleAxis=new r,this._radiusAxis.polar=this._angleAxis.polar=this};a.prototype={type:"polar",axisPointerEnabled:!0,constructor:a,dimensions:["radius","angle"],model:null,containPoint:function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},containData:function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},getAxis:function(e){return this["_"+e+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},dataToPoint:function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},pointToData:function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},pointToCoord:function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);i.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,c=l<a?1:-1;while(l<a||l>o)l+=360*c;return[s,l]},coordToPoint:function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,r=-Math.sin(n)*t+this.cy;return[i,r]},getArea:function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,r=n*n+i*i,a=this.r,o=this.r0;return r<=a*a&&r>=o*o}}}};var o=a;e.exports=o},81912:function(e,t,n){var i=n(63321);n(81629);var r=i.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});e.exports=r},7768:function(e,t,n){var i=n(16949),r=n(86396);function a(e,t){r.call(this,"radius",e,t),this.type="category"}a.prototype={constructor:a,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToRadius:r.prototype.dataToCoord,radiusToData:r.prototype.coordToData},i.inherits(a,r);var o=a;e.exports=o},39765:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(16949)),a=n(76781),o=n(80720),s=o.parsePercent,l=n(87773),c=l.createScaleByModel,u=l.niceScaleExtent,h=n(71479),d=n(84165),p=d.getStackedDimension;function f(e,t,n){var i=t.get("center"),a=n.getWidth(),o=n.getHeight();e.cx=s(i[0],a),e.cy=s(i[1],o);var l=e.getRadiusAxis(),c=Math.min(a,o)/2,u=t.get("radius");null==u?u=[0,"100%"]:r.isArray(u)||(u=[0,u]),u=[s(u[0],c),s(u[1],c)],l.inverse?l.setExtent(u[1],u[0]):l.setExtent(u[0],u[1])}function m(e,t){var n=this,i=n.getAngleAxis(),a=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();r.each(t.mapDimension("radius",!0),(function(e){a.scale.unionExtentFromData(t,p(t,e))})),r.each(t.mapDimension("angle",!0),(function(e){i.scale.unionExtentFromData(t,p(t,e))}))}})),u(i.scale,i.model),u(a.scale,a.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),s=360/i.scale.count();i.inverse?o[1]+=s:o[1]-=s,i.setExtent(o[0],o[1])}}function g(e,t){if(e.type=t.get("type"),e.scale=c(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),"angleAxis"===t.mainType){e.inverse^=t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}n(81912);var v={dimensions:a.prototype.dimensions,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var r=new a(i);r.update=m;var o=r.getRadiusAxis(),s=r.getAngleAxis(),l=e.findAxisModel("radiusAxis"),c=e.findAxisModel("angleAxis");g(o,l),g(s,c),f(r,e,t),n.push(r),e.coordinateSystem=r,r.model=e})),e.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"polar",index:t.get("polarIndex"),id:t.get("polarId")})[0];t.coordinateSystem=n.coordinateSystem}})),n}};h.register("polar",v)},23645:function(e,t,n){n(70252);var i=n(16949);function r(e,t){return i.map(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),a=t[i],o=e[i]/2,s="dataTo"+n,l="category"===r.type?r.getBandWidth():Math.abs(r[s](a-o)-r[s](a+o));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function a(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:a[1],r0:a[0]},api:{coord:i.bind((function(i){var r=t.dataToRadius(i[0]),a=n.dataToAngle(i[1]),o=e.coordToPoint([r,a]);return o.push(r,a*Math.PI/180),o})),size:i.bind(r,e)}}}e.exports=a},25179:function(e,t,n){var i=n(16949),r=n(86396);function a(e,t,n){r.call(this,e,t,n),this.type="value",this.angle=0,this.name="",this.model}i.inherits(a,r);var o=a;e.exports=o},63190:function(e,t,n){n(70252);var i=n(16949),r=n(25179),a=n(61636),o=n(80720),s=n(87773),l=s.getScaleExtent,c=s.niceScaleExtent,u=n(71479),h=n(34329);function d(e,t,n){this._model=e,this.dimensions=[],this._indicatorAxes=i.map(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,i=new r(n,"log"===e.get("axisType")?new h:new a);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i}),this),this.resize(e,n),this.cx,this.cy,this.r,this.r0,this.startAngle}d.prototype.getIndicatorAxes=function(){return this._indicatorAxes},d.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},d.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],i=n.angle,r=this.cx+e*Math.cos(i),a=this.cy-e*Math.sin(i);return[r,a]},d.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var r,a=Math.atan2(-n,t),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(a-c.angle);u<o&&(r=c,s=l,o=u)}return[s,+(r&&r.coordToData(i))]},d.prototype.resize=function(e,t){var n=e.get("center"),r=t.getWidth(),a=t.getHeight(),s=Math.min(r,a)/2;this.cx=o.parsePercent(n[0],r),this.cy=o.parsePercent(n[1],a),this.startAngle=e.get("startAngle")*Math.PI/180;var l=e.get("radius");"string"!==typeof l&&"number"!==typeof l||(l=[0,l]),this.r0=o.parsePercent(l[0],s),this.r=o.parsePercent(l[1],s),i.each(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},d.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;i.each(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,a){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===r){var o=t.getData();i.each(n,(function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))}))}}),this);var a=r.get("splitNumber");function s(e){var t=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),n=e/t;return 2===n?n=5:n*=2,n*t}i.each(n,(function(e,t){var n=l(e.scale,e.model).extent;c(e.scale,e.model);var i=e.model,r=e.scale,u=i.getMin(),h=i.getMax(),d=r.getInterval();if(null!=u&&null!=h)r.setExtent(+u,+h),r.setInterval((h-u)/a);else if(null!=u){do{f=u+d*a,r.setExtent(+u,f),r.setInterval(d),d=s(d)}while(f<n[1]&&isFinite(f)&&isFinite(n[1]))}else if(null!=h){do{m=h-d*a,r.setExtent(m,+h),r.setInterval(d),d=s(d)}while(m>n[0]&&isFinite(m)&&isFinite(n[0]))}else{var p=r.getTicks().length-1;p>a&&(d=s(d));var f=Math.ceil(n[1]/d)*d,m=o.round(f-d*a);r.setExtent(m,f),r.setInterval(d)}}))},d.dimensions=[],d.create=function(e,t){var n=[];return e.eachComponent("radar",(function(i){var r=new d(i,e,t);n.push(r),i.coordinateSystem=r})),e.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("radarIndex")||0])})),n},u.register("radar",d);var p=d;e.exports=p},45997:function(e,t,n){var i=n(63321),r=n(16949),a=n(26077),o=n(96753),s=n(75817),l=a.valueAxis;function c(e,t){return r.defaults({show:t},e)}var u=i.extendComponentModel({type:"radar",optionUpdated:function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),a=this.get("axisTick"),l=this.get("axisType"),c=this.get("axisLabel"),u=this.get("name"),h=this.get("name.show"),d=this.get("name.formatter"),p=this.get("nameGap"),f=this.get("triggerEvent"),m=r.map(this.get("indicator")||[],(function(m){null!=m.max&&m.max>0&&!m.min?m.min=0:null!=m.min&&m.min<0&&!m.max&&(m.max=0);var g=u;if(null!=m.color&&(g=r.defaults({color:m.color},u)),m=r.merge(r.clone(m),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:a,axisType:l,axisLabel:c,name:m.text,nameLocation:"end",nameGap:p,nameTextStyle:g,triggerEvent:f},!1),h||(m.name=""),"string"===typeof d){var v=m.name;m.name=d.replace("{value}",null!=v?v:"")}else"function"===typeof d&&(m.name=d(m.name,m));var y=r.extend(new o(m,null,this.ecModel),s);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:r.merge({lineStyle:{color:"#bbb"}},l.axisLine),axisLabel:c(l.axisLabel,!1),axisTick:c(l.axisTick,!1),axisType:"interval",splitLine:c(l.splitLine,!0),splitArea:c(l.splitArea,!0),indicator:[]}}),h=u;e.exports=h},35105:function(e,t,n){var i=n(16949),r=n(3041),a=n(68429),o=n(75817),s=r.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),l={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function c(e,t){return t.type||(t.data?"category":"value")}i.merge(s.prototype,o),a("single",s,c,l);var u=s;e.exports=u},54018:function(e,t,n){var i=n(54214),r=n(87773),a=n(89317),o=a.getLayoutRect,s=n(16949),l=s.each;function c(e,t,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(e,t,n),this.model=e}c.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:c,_init:function(e,t,n){var a=this.dimension,o=new i(a,r.createScaleByModel(e),[0,0],e.get("type"),e.get("position")),s="category"===o.type;o.onBand=s&&e.get("boundaryGap"),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},update:function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();l(t.mapDimension(this.dimension,!0),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),r.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(e,t){this._rect=o({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],r=t.reverse?1:0;t.setExtent(i[r],i[1-r]),this._updateAxisTransform(t,n?e.x:e.y)},_updateAxisTransform:function(e,t){var n=e.getExtent(),i=n[0]+n[1],r=e.isHorizontal();e.toGlobalCoord=r?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=r?function(e){return e-t}:function(e){return i-e+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(e){var t=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},pointToData:function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},dataToPoint:function(e){var t=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i}};var u=c;e.exports=u},54214:function(e,t,n){var i=n(16949),r=n(86396),a=function(e,t,n,i,a){r.call(this,e,t,n),this.type=i||"value",this.position=a||"bottom",this.orient=null};a.prototype={constructor:a,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},pointToData:function(e,t){return this.coordinateSystem.pointToData(e,t)[0]},toGlobalCoord:null,toLocalCoord:null},i.inherits(a,r);var o=a;e.exports=o},7209:function(e,t,n){var i=n(16949);function r(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function a(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:i.bind(r,e)}}}e.exports=a},94763:function(e,t,n){var i=n(16949);function r(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,a={},o=r.position,s=r.orient,l=n.getRect(),c=[l.x,l.x+l.width,l.y,l.y+l.height],u={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};a.position=["vertical"===s?u.vertical[o]:c[0],"horizontal"===s?u.horizontal[o]:c[3]];var h={horizontal:0,vertical:1};a.rotation=Math.PI/2*h[s];var d={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],e.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),i.retrieve(t.labelInside,e.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var p=t.rotate;return null==p&&(p=e.get("axisLabel.rotate")),a.labelRotation="top"===o?-p:p,a.z2=1,a}t.layout=r},81232:function(e,t,n){n(70252);var i=n(54018),r=n(71479);function a(e,t){var n=[];return e.eachComponent("singleAxis",(function(r,a){var o=new i(r,e,t);o.name="single_"+a,o.resize(r,t),r.coordinateSystem=o,n.push(o)})),e.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"singleAxis",index:t.get("singleAxisIndex"),id:t.get("singleAxisId")})[0];t.coordinateSystem=n&&n.coordinateSystem}})),n}r.register("single",{create:a,dimensions:i.prototype.dimensions})},60339:function(e,t,n){function i(e){return e}function r(e,t,n,r,a){this._old=e,this._new=t,this._oldKeyGetter=n||i,this._newKeyGetter=r||i,this.context=a}function a(e,t,n,i,r){for(var a=0;a<e.length;a++){var o="_ec_"+r[i](e[a],a),s=t[o];null==s?(n.push(o),t[o]=a):(s.length||(t[o]=s=[s]),s.push(a))}}n(70252),r.prototype={constructor:r,add:function(e){return this._add=e,this},update:function(e){return this._update=e,this},remove:function(e){return this._remove=e,this},execute:function(){var e=this._old,t=this._new,n={},i={},r=[],o=[];for(a(e,n,r,"_oldKeyGetter",this),a(t,i,o,"_newKeyGetter",this),u=0;u<e.length;u++){var s=r[u],l=i[s];if(null!=l){var c=l.length;c?(1===c&&(i[s]=null),l=l.shift()):i[s]=null,this._update&&this._update(l,u)}else this._remove&&this._remove(u)}for(var u=0;u<o.length;u++){s=o[u];if(i.hasOwnProperty(s)){l=i[s];if(null==l)continue;if(l.length){var h=0;for(c=l.length;h<c;h++)this._add&&this._add(l[h])}else this._add&&this._add(l)}}}};var o=r;e.exports=o},85665:function(e,t,n){var i=n(16949);function r(e){null!=e&&i.extend(this,e),this.otherDims={}}var a=r;e.exports=a},99142:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(16949)),a=n(55480),o=a.enableClassCheck;function s(e){return"_EC_"+e}var l=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},c=l.prototype;function u(e,t){this.id=null==e?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==t?-1:t}function h(e,t,n){this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}c.type="graph",c.isDirected=function(){return this._directed},c.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[s(e)]){var i=new u(e,t);return i.hostGraph=this,this.nodes.push(i),n[s(e)]=i,i}},c.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},c.getNodeById=function(e){return this._nodesMap[s(e)]},c.addEdge=function(e,t,n){var i=this._nodesMap,r=this._edgesMap;if("number"===typeof e&&(e=this.nodes[e]),"number"===typeof t&&(t=this.nodes[t]),u.isInstance(e)||(e=i[s(e)]),u.isInstance(t)||(t=i[s(t)]),e&&t){var a=e.id+"-"+t.id,o=new h(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),r[a]=o,o}},c.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},c.getEdge=function(e,t){u.isInstance(e)&&(e=e.id),u.isInstance(t)&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},c.eachNode=function(e,t){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&e.call(t,n[r],r)},c.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&e.call(t,n[r],r)},c.breadthFirstTraverse=function(e,t,n,i){if(u.isInstance(t)||(t=this._nodesMap[s(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(i,t,null)){var o=[t];while(o.length){var l=o.shift(),c=l[r];for(a=0;a<c.length;a++){var h=c[a],d=h.node1===l?h.node2:h.node1;if(!d.__visited){if(e.call(i,d,l))return;o.push(d),d.__visited=!0}}}}}},c.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,r=0,a=n.length;r<a;r++)n[r].dataIndex=-1;for(r=0,a=e.count();r<a;r++)n[e.getRawIndex(r)].dataIndex=r;t.filterSelf((function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,a=i.length;r<a;r++)i[r].dataIndex=-1;for(r=0,a=t.count();r<a;r++)i[t.getRawIndex(r)].dataIndex=r},c.clone=function(){for(var e=new l(this._directed),t=this.nodes,n=this.edges,i=0;i<t.length;i++)e.addNode(t[i].id,t[i].dataIndex);for(i=0;i<n.length;i++){var r=n[i];e.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return e},u.prototype={constructor:u,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}}},h.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}};var d=function(e,t){return{getValue:function(n){var i=this[e][t];return i.get(i.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[e][t].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}};r.mixin(u,d("hostGraph","data")),r.mixin(h,d("hostGraph","edgeData")),l.Node=u,l.Edge=h,o(u),o(h);var p=l;e.exports=p},54111:function(e,t,n){n(66554),n(46293),n(6149),n(70252);var i=n(76371),r=(i.__DEV__,n(16949)),a=n(96753),o=n(60339),s=n(36197),l=n(3270),c=l.defaultDimValueGetters,u=l.DefaultDataProvider,h=n(48106),d=h.summarizeDimensions,p=n(85665),f=r.isObject,m="undefined",g=-1,v="e\0\0",y={float:typeof Float64Array===m?Array:Float64Array,int:typeof Int32Array===m?Array:Int32Array,ordinal:Array,number:Array,time:Array},_=typeof Uint32Array===m?Array:Uint32Array,x=typeof Int32Array===m?Array:Int32Array,b=typeof Uint16Array===m?Array:Uint16Array;function w(e){return e._rawCount>65535?_:b}function S(e){var t=e.constructor;return t===Array?e.slice():new t(e)}var M=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],C=["_extent","_approximateExtent","_rawExtent"];function T(e,t){r.each(M.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,r.each(C,(function(n){e[n]=r.clone(t[n])})),e._calculationInfo=r.extend(t._calculationInfo)}var E=function(e,t){e=e||["x","y"];for(var n={},i=[],a={},o=0;o<e.length;o++){var s=e[o];r.isString(s)?s=new p({name:s}):s instanceof p||(s=new p(s));var l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0),s.otherDims=s.otherDims||{},i.push(l),n[l]=s,s.index=o,s.createInvertedIndices&&(a[l]=[])}this.dimensions=i,this._dimensionInfos=n,this.hostModel=t,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=d(this),this._invertedIndicesMap=a,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},A=E.prototype;function k(e,t,n,i,r){var a=y[t.type],o=i-1,s=t.name,l=e[s][o];if(l&&l.length<n){for(var c=new a(Math.min(r-o*n,n)),u=0;u<l.length;u++)c[u]=l[u];e[s][o]=c}for(var h=i*n;h<r;h+=n)e[s].push(new a(Math.min(r-h,n)))}function D(e){var t=e._invertedIndicesMap;r.each(t,(function(n,i){var r=e._dimensionInfos[i],a=r.ordinalMeta;if(a){n=t[i]=new x(a.categories.length);for(var o=0;o<n.length;o++)n[o]=g;for(o=0;o<e._count;o++)n[e.get(i,o)]=o}}))}function I(e,t,n){var i;if(null!=t){var r=e._chunkSize,a=Math.floor(n/r),o=n%r,s=e.dimensions[t],l=e._storage[s][a];if(l){i=l[o];var c=e._dimensionInfos[s].ordinalMeta;c&&c.categories.length&&(i=c.categories[i])}}return i}function P(e){return e}function O(e){return e<this._count&&e>=0?this._indices[e]:-1}function L(e,t){var n=e._idList[t];return null==n&&(n=I(e,e._idDimIdx,t)),null==n&&(n=v+t),n}function R(e){return r.isArray(e)||(e=[e]),e}function N(e,t){var n=e.dimensions,i=new E(r.map(n,e.getDimensionInfo,e),e.hostModel);T(i,e);for(var a=i._storage={},o=e._storage,s=0;s<n.length;s++){var l=n[s];o[l]&&(r.indexOf(t,l)>=0?(a[l]=F(o[l]),i._rawExtent[l]=B(),i._extent[l]=null):a[l]=o[l])}return i}function F(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=S(e[n]);return t}function B(){return[1/0,-1/0]}A.type="list",A.hasItemOption=!0,A.getDimension=function(e){return"number"!==typeof e&&(isNaN(e)||this._dimensionInfos.hasOwnProperty(e))||(e=this.dimensions[e]),e},A.getDimensionInfo=function(e){return this._dimensionInfos[this.getDimension(e)]},A.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},A.mapDimension=function(e,t){var n=this._dimensionsSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return!0===t?(i||[]).slice():i&&i[t]},A.initData=function(e,t,n){var i=s.isInstance(e)||r.isArrayLike(e);i&&(e=new u(e,this.dimensions.length)),this._rawData=e,this._storage={},this._indices=null,this._nameList=t||[],this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=c[this._rawData.getSource().sourceFormat],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=c.arrayRows,this._rawExtent={},this._initDataFromProvider(0,e.count()),e.pure&&(this.hasItemOption=!1)},A.getProvider=function(){return this._rawData},A.appendData=function(e){var t=this._rawData,n=this.count();t.appendData(e);var i=t.count();t.persistent||(i+=n),this._initDataFromProvider(n,i)},A.appendValues=function(e,t){for(var n=this._chunkSize,i=this._storage,r=this.dimensions,a=r.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t?t.length:0),c=this._chunkCount,u=0;u<a;u++){var h=r[u];o[h]||(o[h]=B()),i[h]||(i[h]=[]),k(i,this._dimensionInfos[h],n,c,l),this._chunkCount=i[h].length}for(var d=new Array(a),p=s;p<l;p++){for(var f=p-s,m=Math.floor(p/n),g=p%n,v=0;v<a;v++){h=r[v];var y=this._dimValueGetterArrayRows(e[f]||d,h,f,v);i[h][m][g]=y;var _=o[h];y<_[0]&&(_[0]=y),y>_[1]&&(_[1]=y)}t&&(this._nameList[p]=t[f])}this._rawCount=this._count=l,this._extent={},D(this)},A._initDataFromProvider=function(e,t){if(!(e>=t)){for(var n,i=this._chunkSize,r=this._rawData,a=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,c=this._nameList,u=this._idList,h=this._rawExtent,d=this._nameRepeatCount={},p=this._chunkCount,f=0;f<s;f++){var m=o[f];h[m]||(h[m]=B());var g=l[m];0===g.otherDims.itemName&&(n=this._nameDimIdx=f),0===g.otherDims.itemId&&(this._idDimIdx=f),a[m]||(a[m]=[]),k(a,g,i,p,t),this._chunkCount=a[m].length}for(var v=new Array(s),y=e;y<t;y++){v=r.getItem(y,v);for(var _=Math.floor(y/i),x=y%i,b=0;b<s;b++){m=o[b];var w=a[m][_],S=this._dimValueGetter(v,m,y,b);w[x]=S;var M=h[m];S<M[0]&&(M[0]=S),S>M[1]&&(M[1]=S)}if(!r.pure){var C=c[y];if(v&&null==C)if(null!=v.name)c[y]=C=v.name;else if(null!=n){var T=o[n],E=a[T][_];if(E){C=E[x];var A=l[T].ordinalMeta;A&&A.categories.length&&(C=A.categories[C])}}var I=null==v?null:v.id;null==I&&null!=C&&(d[C]=d[C]||0,I=C,d[C]>0&&(I+="__ec__"+d[C]),d[C]++),null!=I&&(u[y]=I)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent={},D(this)}},A.count=function(){return this._count},A.getIndices=function(){var e=this._indices;if(e){var t=e.constructor,n=this._count;if(t===Array){r=new t(n);for(var i=0;i<n;i++)r[i]=e[i]}else r=new t(e.buffer,0,n)}else{t=w(this);var r=new t(this.count());for(i=0;i<r.length;i++)r[i]=i}return r},A.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._storage;if(!n[e])return NaN;t=this.getRawIndex(t);var i=Math.floor(t/this._chunkSize),r=t%this._chunkSize,a=n[e][i],o=a[r];return o},A.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._storage[e];if(!n)return NaN;var i=Math.floor(t/this._chunkSize),r=t%this._chunkSize,a=n[i];return a[r]},A._getFast=function(e,t){var n=Math.floor(t/this._chunkSize),i=t%this._chunkSize,r=this._storage[e][n];return r[i]},A.getValues=function(e,t){var n=[];r.isArray(e)||(t=e,e=this.dimensions);for(var i=0,a=e.length;i<a;i++)n.push(this.get(e[i],t));return n},A.hasValue=function(e){for(var t=this._dimensionsSummary.dataDimsOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this.get(t[n],e)))return!1;return!0},A.getDataExtent=function(e){e=this.getDimension(e);var t=this._storage[e],n=B();if(!t)return n;var i,r=this.count(),a=!this._indices;if(a)return this._rawExtent[e].slice();if(i=this._extent[e],i)return i.slice();i=n;for(var o=i[0],s=i[1],l=0;l<r;l++){var c=this._getFast(e,this.getRawIndex(l));c<o&&(o=c),c>s&&(s=c)}return i=[o,s],this._extent[e]=i,i},A.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},A.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},A.getCalculationInfo=function(e){return this._calculationInfo[e]},A.setCalculationInfo=function(e,t){f(e)?r.extend(this._calculationInfo,e):this._calculationInfo[e]=t},A.getSum=function(e){var t=this._storage[e],n=0;if(t)for(var i=0,r=this.count();i<r;i++){var a=this.get(e,i);isNaN(a)||(n+=a)}return n},A.getMedian=function(e){var t=[];this.each(e,(function(e,n){isNaN(e)||t.push(e)}));var n=[].concat(t).sort((function(e,t){return e-t})),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},A.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],i=n[t];return null==i||isNaN(i)?g:i},A.indexOfName=function(e){for(var t=0,n=this.count();t<n;t++)if(this.getName(t)===e)return t;return-1},A.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;var i=0,r=this._count-1;while(i<=r){var a=(i+r)/2|0;if(t[a]<e)i=a+1;else{if(!(t[a]>e))return a;r=a-1}}return-1},A.indicesOfNearest=function(e,t,n){var i=this._storage,r=i[e],a=[];if(!r)return a;null==n&&(n=1/0);for(var o=1/0,s=-1,l=0,c=0,u=this.count();c<u;c++){var h=t-this.get(e,c),d=Math.abs(h);d<=n&&((d<o||d===o&&h>=0&&s<0)&&(o=d,s=h,l=0),h===s&&(a[l++]=c))}return a.length=l,a},A.getRawIndex=P,A.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];t.push(this.get(i,e))}return t},A.getName=function(e){var t=this.getRawIndex(e);return this._nameList[t]||I(this,this._nameDimIdx,t)||""},A.getId=function(e){return L(this,this.getRawIndex(e))},A.each=function(e,t,n,i){"use strict";if(this._count){"function"===typeof e&&(i=n,n=t,t=e,e=[]),n=n||i||this,e=r.map(R(e),this.getDimension,this);for(var a=e.length,o=0;o<this.count();o++)switch(a){case 0:t.call(n,o);break;case 1:t.call(n,this.get(e[0],o),o);break;case 2:t.call(n,this.get(e[0],o),this.get(e[1],o),o);break;default:for(var s=0,l=[];s<a;s++)l[s]=this.get(e[s],o);l[s]=o,t.apply(n,l)}}},A.filterSelf=function(e,t,n,i){"use strict";if(this._count){"function"===typeof e&&(i=n,n=t,t=e,e=[]),n=n||i||this,e=r.map(R(e),this.getDimension,this);for(var a=this.count(),o=w(this),s=new o(a),l=[],c=e.length,u=0,h=e[0],d=0;d<a;d++){var p,f=this.getRawIndex(d);if(0===c)p=t.call(n,d);else if(1===c){var m=this._getFast(h,f);p=t.call(n,m,d)}else{for(var g=0;g<c;g++)l[g]=this._getFast(h,f);l[g]=d,p=t.apply(n,l)}p&&(s[u++]=f)}return u<a&&(this._indices=s),this._count=u,this._extent={},this.getRawIndex=this._indices?O:P,this}},A.selectRange=function(e){"use strict";if(this._count){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);var i=t.length;if(i){var r=this.count(),a=w(this),o=new a(r),s=0,l=t[0],c=e[l][0],u=e[l][1],h=!1;if(!this._indices){var d=0;if(1===i){for(var p=this._storage[t[0]],f=0;f<this._chunkCount;f++)for(var m=p[f],g=Math.min(this._count-f*this._chunkSize,this._chunkSize),v=0;v<g;v++){var y=m[v];(y>=c&&y<=u||isNaN(y))&&(o[s++]=d),d++}h=!0}else if(2===i){p=this._storage[l];var _=this._storage[t[1]],x=e[t[1]][0],b=e[t[1]][1];for(f=0;f<this._chunkCount;f++){m=p[f];var S=_[f];for(g=Math.min(this._count-f*this._chunkSize,this._chunkSize),v=0;v<g;v++){y=m[v];var M=S[v];(y>=c&&y<=u||isNaN(y))&&(M>=x&&M<=b||isNaN(M))&&(o[s++]=d),d++}}h=!0}}if(!h)if(1===i)for(v=0;v<r;v++){var C=this.getRawIndex(v);y=this._getFast(l,C);(y>=c&&y<=u||isNaN(y))&&(o[s++]=C)}else for(v=0;v<r;v++){var T=!0;for(C=this.getRawIndex(v),f=0;f<i;f++){var E=t[f];y=this._getFast(n,C);(y<e[E][0]||y>e[E][1])&&(T=!1)}T&&(o[s++]=this.getRawIndex(v))}return s<r&&(this._indices=o),this._count=s,this._extent={},this.getRawIndex=this._indices?O:P,this}}},A.mapArray=function(e,t,n,i){"use strict";"function"===typeof e&&(i=n,n=t,t=e,e=[]),n=n||i||this;var r=[];return this.each(e,(function(){r.push(t&&t.apply(this,arguments))}),n),r},A.map=function(e,t,n,i){"use strict";n=n||i||this,e=r.map(R(e),this.getDimension,this);var a=N(this,e);a._indices=this._indices,a.getRawIndex=a._indices?O:P;for(var o=a._storage,s=[],l=this._chunkSize,c=e.length,u=this.count(),h=[],d=a._rawExtent,p=0;p<u;p++){for(var f=0;f<c;f++)h[f]=this.get(e[f],p);h[c]=p;var m=t&&t.apply(n,h);if(null!=m){"object"!==typeof m&&(s[0]=m,m=s);for(var g=this.getRawIndex(p),v=Math.floor(g/l),y=g%l,_=0;_<m.length;_++){var x=e[_],b=m[_],w=d[x],S=o[x];S&&(S[v][y]=b),b<w[0]&&(w[0]=b),b>w[1]&&(w[1]=b)}}}return a},A.downSample=function(e,t,n,i){for(var r=N(this,[e]),a=r._storage,o=[],s=Math.floor(1/t),l=a[e],c=this.count(),u=this._chunkSize,h=r._rawExtent[e],d=new(w(this))(c),p=0,f=0;f<c;f+=s){s>c-f&&(s=c-f,o.length=s);for(var m=0;m<s;m++){var g=this.getRawIndex(f+m),v=Math.floor(g/u),y=g%u;o[m]=l[v][y]}var _=n(o),x=this.getRawIndex(Math.min(f+i(o,_)||0,c-1)),b=Math.floor(x/u),S=x%u;l[b][S]=_,_<h[0]&&(h[0]=_),_>h[1]&&(h[1]=_),d[p++]=x}return r._count=p,r._indices=d,r.getRawIndex=O,r},A.getItemModel=function(e){var t=this.hostModel;return new a(this.getRawDataItem(e),t,t&&t.ecModel)},A.diff=function(e){var t=this;return new o(e?e.getIndices():[],this.getIndices(),(function(t){return L(e,t)}),(function(e){return L(t,e)}))},A.getVisual=function(e){var t=this._visual;return t&&t[e]},A.setVisual=function(e,t){if(f(e))for(var n in e)e.hasOwnProperty(n)&&this.setVisual(n,e[n]);else this._visual=this._visual||{},this._visual[e]=t},A.setLayout=function(e,t){if(f(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else this._layout[e]=t},A.getLayout=function(e){return this._layout[e]},A.getItemLayout=function(e){return this._itemLayouts[e]},A.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?r.extend(this._itemLayouts[e]||{},t):t},A.clearItemLayouts=function(){this._itemLayouts.length=0},A.getItemVisual=function(e,t,n){var i=this._itemVisuals[e],r=i&&i[t];return null!=r||n?r:this.getVisual(t)},A.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{},r=this.hasItemVisual;if(this._itemVisuals[e]=i,f(t))for(var a in t)t.hasOwnProperty(a)&&(i[a]=t[a],r[a]=!0);else i[t]=n,r[t]=!0},A.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var z=function(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType};A.setItemGraphicEl=function(e,t){var n=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=n&&n.seriesIndex,"group"===t.type&&t.traverse(z,t)),this._graphicEls[e]=t},A.getItemGraphicEl=function(e){return this._graphicEls[e]},A.eachItemGraphicEl=function(e,t){r.each(this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},A.cloneShallow=function(e){if(!e){var t=r.map(this.dimensions,this.getDimensionInfo,this);e=new E(t,this.hostModel)}if(e._storage=this._storage,T(e,this),this._indices){var n=this._indices.constructor;e._indices=new n(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?O:P,e},A.wrapMethod=function(e,t){var n=this[e];"function"===typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(r.slice(arguments)))})},A.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],A.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=E;e.exports=V},82721:function(e,t,n){var i=n(16949),r=i.createHashMap,a=i.isObject,o=i.map;function s(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this._map}s.createByAxisModel=function(e){var t=e.option,n=t.data,i=n&&o(n,u);return new s({categories:i,needCollect:!i,deduplication:!1!==t.dedplication})};var l=s.prototype;function c(e){return e._map||(e._map=r(e.categories))}function u(e){return a(e)&&null!=e.value?e.value:e+""}l.getOrdinal=function(e){return c(this).get(e)},l.parseAndCollect=function(e){var t,n=this._needCollect;if("string"!==typeof e&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=c(this);return t=i.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t};var h=s;e.exports=h},36197:function(e,t,n){var i=n(16949),r=i.createHashMap,a=i.isTypedArray,o=n(55480),s=o.enableClassCheck,l=n(62611),c=l.SOURCE_FORMAT_ORIGINAL,u=l.SERIES_LAYOUT_BY_COLUMN,h=l.SOURCE_FORMAT_UNKNOWN,d=l.SOURCE_FORMAT_TYPED_ARRAY,p=l.SOURCE_FORMAT_KEYED_COLUMNS;function f(e){this.fromDataset=e.fromDataset,this.data=e.data||(e.sourceFormat===p?{}:[]),this.sourceFormat=e.sourceFormat||h,this.seriesLayoutBy=e.seriesLayoutBy||u,this.dimensionsDefine=e.dimensionsDefine,this.encodeDefine=e.encodeDefine&&r(e.encodeDefine),this.startIndex=e.startIndex||0,this.dimensionsDetectCount=e.dimensionsDetectCount}f.seriesDataToSource=function(e){return new f({data:e,sourceFormat:a(e)?d:c,fromDataset:!1})},s(f);var m=f;e.exports=m},660:function(e,t,n){n(70252);var i=n(16949),r=n(61789),a=n(54111),o=n(49261),s=function(e,t){this.name=e||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};function l(e){this.root,this.data,this._nodes=[],this.hostModel=e}function c(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}s.prototype={constructor:s,isRemoved:function(){return this.dataIndex<0},eachNode:function(e,t,n){"function"===typeof e&&(n=t,t=e,e=null),e=e||{},i.isString(e)&&(e={order:e});var r,a=e.order||"preorder",o=this[e.attr||"children"];"preorder"===a&&(r=t.call(n,this));for(var s=0;!r&&s<o.length;s++)o[s].eachNode(e,t,n);"postorder"===a&&t.call(n,this)},updateDepthAndHeight:function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},getNodeById:function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].getNodeById(e);if(r)return r}},contains:function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].contains(e);if(r)return r}},getAncestors:function(e){var t=[],n=e?this:this.parentNode;while(n)t.push(n),n=n.parentNode;return t.reverse(),t},getValue:function(e){var t=this.hostTree.data;return t.get(t.getDimension(e||"value"),this.dataIndex)},setLayout:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},setVisual:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},getVisual:function(e,t){return this.hostTree.data.getItemVisual(this.dataIndex,e,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(e){return e!==this&&e.isAncestorOf(this)}},l.prototype={constructor:l,type:"tree",eachNode:function(e,t,n){this.root.eachNode(e,t,n)},getNodeByDataIndex:function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},getNodeByName:function(e){return this.root.getNodeByName(e)},update:function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},l.createTree=function(e,t,n){var u=new l(t),h=[],d=1;function p(e,t){var n=e.value;d=Math.max(d,i.isArray(n)?n.length:1),h.push(e);var r=new s(e.name,u);t?c(r,t):u.root=r,u._nodes.push(r);var a=e.children;if(a)for(var o=0;o<a.length;o++)p(a[o],r)}p(e),u.root.updateDepthAndHeight(0);var f=o(h,{coordDimensions:["value"],dimensionsCount:d}),m=new a(f,t);return m.initData(h),n&&n(m),r({mainData:m,struct:u,structAttr:"tree"}),u.update(),u};var u=l;e.exports=u},5629:function(e,t,n){n(70252);var i=n(16949),r=i.createHashMap,a=i.each,o=i.isString,s=i.defaults,l=i.extend,c=i.isObject,u=i.clone,h=n(75269),d=h.normalizeToArray,p=n(59336),f=p.guessOrdinal,m=p.BE_ORDINAL,g=n(36197),v=n(48106),y=v.OTHER_DIMENSIONS,_=n(85665);function x(e,t,n){g.isInstance(t)||(t=g.seriesDataToSource(t)),n=n||{},e=(e||[]).slice();for(var i=(n.dimsDef||[]).slice(),h=r(),p=r(),v=[],x=b(t,e,i,n.dimCount),S=0;S<x;S++){var M=i[S]=l({},c(i[S])?i[S]:{name:i[S]}),C=M.name,T=v[S]=new _;null!=C&&null==h.get(C)&&(T.name=T.displayName=C,h.set(C,S)),null!=M.type&&(T.type=M.type),null!=M.displayName&&(T.displayName=M.displayName)}var E=n.encodeDef;!E&&n.encodeDefaulter&&(E=n.encodeDefaulter(t,x)),E=r(E),E.each((function(e,t){if(e=d(e).slice(),1===e.length&&!o(e[0])&&e[0]<0)E.set(t,!1);else{var n=E.set(t,[]);a(e,(function(e,i){o(e)&&(e=h.get(e)),null!=e&&e<x&&(n[i]=e,k(v[e],t,i))}))}}));var A=0;function k(e,t,n){null!=y.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,p.set(t,!0))}a(e,(function(e,t){var n,i,r;if(o(e))n=e,e={};else{n=e.name;var l=e.ordinalMeta;e.ordinalMeta=null,e=u(e),e.ordinalMeta=l,i=e.dimsDef,r=e.otherDims,e.name=e.coordDim=e.coordDimIndex=e.dimsDef=e.otherDims=null}var h=E.get(n);if(!1!==h){h=d(h);if(!h.length)for(var p=0;p<(i&&i.length||1);p++){while(A<v.length&&null!=v[A].coordDim)A++;A<v.length&&h.push(A++)}a(h,(function(t,a){var o=v[t];if(k(s(o,e),n,a),null==o.name&&i){var l=i[a];!c(l)&&(l={name:l}),o.name=o.displayName=l.name,o.defaultTooltip=l.defaultTooltip}r&&s(o.otherDims,r)}))}}));var D=n.generateCoord,I=n.generateCoordCount,P=null!=I;I=D?I||1:0;for(var O=D||"value",L=0;L<x;L++){T=v[L]=v[L]||new _;var R=T.coordDim;null==R&&(T.coordDim=w(O,p,P),T.coordDimIndex=0,(!D||I<=0)&&(T.isExtraCoord=!0),I--),null==T.name&&(T.name=w(T.coordDim,h)),null!=T.type||f(t,L,T.name)!==m.Must&&(!T.isExtraCoord||null==T.otherDims.itemName&&null==T.otherDims.seriesName)||(T.type="ordinal")}return v}function b(e,t,n,i){var r=Math.max(e.dimensionsDetectCount||1,t.length,n.length,i||0);return a(t,(function(e){var t=e.dimsDef;t&&(r=Math.max(r,t.length))})),r}function w(e,t,n){if(n||null!=t.get(e)){var i=0;while(null!=t.get(e+i))i++;e+=i}return t.set(e,!0),e}var S=x;e.exports=S},49261:function(e,t,n){var i=n(5629);function r(e,t){return t=t||{},i(t.coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,encodeDefaulter:t.encodeDefaulter,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})}e.exports=r},3270:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(16949)),a=(r.isTypedArray,r.extend),o=(r.assert,r.each),s=r.isObject,l=n(75269),c=l.getDataItemValue,u=l.isDataItemOption,h=n(80720),d=h.parseDate,p=n(36197),f=n(62611),m=f.SOURCE_FORMAT_TYPED_ARRAY,g=f.SOURCE_FORMAT_ARRAY_ROWS,v=f.SOURCE_FORMAT_ORIGINAL,y=f.SOURCE_FORMAT_OBJECT_ROWS;function _(e,t){p.isInstance(e)||(e=p.seriesDataToSource(e)),this._source=e;var n=this._data=e.data,i=e.sourceFormat;i===m&&(this._offset=0,this._dimSize=t,this._data=n);var r=b[i===g?i+"_"+e.seriesLayoutBy:i];a(this,r)}var x=_.prototype;x.pure=!1,x.persistent=!0,x.getSource=function(){return this._source};var b={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(e){return this._data[e+this._source.startIndex]},appendData:M},arrayRows_row:{pure:!0,count:function(){var e=this._data[0];return e?Math.max(0,e.length-this._source.startIndex):0},getItem:function(e){e+=this._source.startIndex;for(var t=[],n=this._data,i=0;i<n.length;i++){var r=n[i];t.push(r?r[e]:null)}return t},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:w,getItem:S,appendData:M},keyedColumns:{pure:!0,count:function(){var e=this._source.dimensionsDefine[0].name,t=this._data[e];return t?t.length:0},getItem:function(e){for(var t=[],n=this._source.dimensionsDefine,i=0;i<n.length;i++){var r=this._data[n[i].name];t.push(r?r[e]:null)}return t},appendData:function(e){var t=this._data;o(e,(function(e,n){for(var i=t[n]||(t[n]=[]),r=0;r<(e||[]).length;r++)i.push(e[r])}))}},original:{count:w,getItem:S,appendData:M},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(e,t){e-=this._offset,t=t||[];for(var n=this._dimSize*e,i=0;i<this._dimSize;i++)t[i]=this._data[n+i];return t},appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}}};function w(){return this._data.length}function S(e){return this._data[e]}function M(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}var C={arrayRows:T,objectRows:function(e,t,n,i){return null!=n?e[i]:e},keyedColumns:T,original:function(e,t,n,i){var r=c(e);return null!=n&&r instanceof Array?r[n]:r},typedArray:T};function T(e,t,n,i){return null!=n?e[n]:e}var E={arrayRows:A,objectRows:function(e,t,n,i){return k(e[t],this._dimensionInfos[t])},keyedColumns:A,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return!this._rawData.pure&&u(e)&&(this.hasItemOption=!0),k(r instanceof Array?r[i]:r,this._dimensionInfos[t])},typedArray:function(e,t,n,i){return e[i]}};function A(e,t,n,i){return k(e[i],this._dimensionInfos[t])}function k(e,t){var n=t&&t.type;if("ordinal"===n){var i=t&&t.ordinalMeta;return i?i.parseAndCollect(e):e}return"time"===n&&"number"!==typeof e&&null!=e&&"-"!==e&&(e=+d(e)),null==e||""===e?NaN:+e}function D(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var r,a,o=e.getProvider().getSource().sourceFormat,s=e.getDimensionInfo(n);return s&&(r=s.name,a=s.index),C[o](i,t,a,r)}}}function I(e,t,n){if(e){var i=e.getProvider().getSource().sourceFormat;if(i===v||i===y){var r=e.getRawDataItem(t);return i!==v||s(r)||(r=null),r?r[n]:void 0}}}t.DefaultDataProvider=_,t.defaultDimValueGetters=E,t.retrieveRawValue=D,t.retrieveRawAttr=I},84165:function(e,t,n){n(70252);var i=n(16949),r=i.each,a=i.isString;function o(e,t,n){n=n||{};var i,o,s,l,c=n.byIndex,u=n.stackedCoordDimension,h=!(!e||!e.get("stack"));if(r(t,(function(e,n){a(e)&&(t[n]=e={name:e}),h&&!e.isExtraCoord&&(c||i||!e.ordinalMeta||(i=e),o||"ordinal"===e.type||"time"===e.type||u&&u!==e.coordDim||(o=e))})),!o||c||i||(c=!0),o){s="__\0ecstackresult",l="__\0ecstackedover",i&&(i.createInvertedIndices=!0);var d=o.coordDim,p=o.type,f=0;r(t,(function(e){e.coordDim===d&&f++})),t.push({name:s,coordDim:d,coordDimIndex:f,type:p,isExtraCoord:!0,isCalculationCoord:!0}),f++,t.push({name:l,coordDim:l,coordDimIndex:f,type:p,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:o&&o.name,stackedByDimension:i&&i.name,isStackedByIndex:c,stackedOverDimension:l,stackResultDimension:s}}function s(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function l(e,t){return s(e,t)?e.getCalculationInfo("stackResultDimension"):t}t.enableDataStack=o,t.isDimensionStacked=s,t.getStackedDimension=l},48106:function(e,t,n){n(70252);var i=n(16949),r=i.each,a=i.createHashMap,o=(i.assert,n(76371)),s=(o.__DEV__,a(["tooltip","label","itemName","itemId","seriesName"]));function l(e){var t={},n=t.encode={},i=a(),o=[],l=[],u=t.userOutput={dimensionNames:e.dimensions.slice(),encode:{}};r(e.dimensions,(function(t){var r=e.getDimensionInfo(t),a=r.coordDim;if(a){var d=r.coordDimIndex;c(n,a)[d]=t,r.isExtraCoord||(i.set(a,1),h(r.type)&&(o[0]=t),c(u.encode,a)[d]=r.index),r.defaultTooltip&&l.push(t)}s.each((function(e,t){var i=c(n,t),a=r.otherDims[t];null!=a&&!1!==a&&(i[a]=r.name)}))}));var d=[],p={};i.each((function(e,t){var i=n[t];p[t]=i[0],d=d.concat(i)})),t.dataDimsOnCoord=d,t.encodeFirstDimNotExtra=p;var f=n.label;f&&f.length&&(o=f.slice());var m=n.tooltip;return m&&m.length?l=m.slice():l.length||(l=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=l,t}function c(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function u(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function h(e){return!("ordinal"===e||"time"===e)}t.OTHER_DIMENSIONS=s,t.summarizeDimensions=l,t.getDimensionTypeByAxis=u},61789:function(e,t,n){var i=n(16949),r=i.each,a="\0__link_datas",o="\0__link_mainData";function s(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,p(t,n,e),r(n,(function(n){r(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,i.curry(l,e))}))})),t.wrapMethod("cloneShallow",i.curry(u,e)),r(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,i.curry(c,e))})),i.assert(n[t.dataType]===t)}function l(e,t){if(d(this)){var n=i.extend({},this[a]);n[this.dataType]=t,p(t,n,e)}else f(t,this.dataType,this[o],e);return t}function c(e,t){return e.struct&&e.struct.update(this),t}function u(e,t){return r(t[a],(function(n,i){n!==t&&f(n.cloneShallow(),i,t,e)})),t}function h(e){var t=this[o];return null==e||null==t?t:t[a][e]}function d(e){return e[o]===e}function p(e,t,n){e[a]={},r(t,(function(t,i){f(t,i,e,n)}))}function f(e,t,n,i){n[a][t]=e,e[o]=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=h}var m=s;e.exports=m},59336:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(75269)),a=r.makeInner,o=r.getDataItemValue,s=n(16949),l=s.createHashMap,c=s.each,u=s.map,h=s.isArray,d=s.isString,p=s.isObject,f=s.isTypedArray,m=s.isArrayLike,g=s.extend,v=(s.assert,n(36197)),y=n(62611),_=y.SOURCE_FORMAT_ORIGINAL,x=y.SOURCE_FORMAT_ARRAY_ROWS,b=y.SOURCE_FORMAT_OBJECT_ROWS,w=y.SOURCE_FORMAT_KEYED_COLUMNS,S=y.SOURCE_FORMAT_UNKNOWN,M=y.SOURCE_FORMAT_TYPED_ARRAY,C=y.SERIES_LAYOUT_BY_ROW,T={Must:1,Might:2,Not:3},E=a();function A(e){var t=e.option.source,n=S;if(f(t))n=M;else if(h(t)){0===t.length&&(n=x);for(var i=0,r=t.length;i<r;i++){var a=t[i];if(null!=a){if(h(a)){n=x;break}if(p(a)){n=b;break}}}}else if(p(t)){for(var o in t)if(t.hasOwnProperty(o)&&m(t[o])){n=w;break}}else if(null!=t)throw new Error("Invalid data");E(e).sourceFormat=n}function k(e){return E(e).source}function D(e){E(e).datasetMap=l()}function I(e){var t=e.option,n=t.data,i=f(n)?M:_,r=!1,a=t.seriesLayoutBy,o=t.sourceHeader,s=t.dimensions,l=B(e);if(l){var c=l.option;n=c.source,i=E(l).sourceFormat,r=!0,a=a||c.seriesLayoutBy,null==o&&(o=c.sourceHeader),s=s||c.dimensions}var u=P(n,i,a,o,s);E(e).source=new v({data:n,fromDataset:r,seriesLayoutBy:a,sourceFormat:i,dimensionsDefine:u.dimensionsDefine,startIndex:u.startIndex,dimensionsDetectCount:u.dimensionsDetectCount,encodeDefine:t.encode})}function P(e,t,n,i,r){if(!e)return{dimensionsDefine:O(r)};var a,s;if(t===x)"auto"===i||null==i?L((function(e){null!=e&&"-"!==e&&(d(e)?null==s&&(s=1):s=0)}),n,e,10):s=i?1:0,r||1!==s||(r=[],L((function(e,t){r[t]=null!=e?e:""}),n,e)),a=r?r.length:n===C?e.length:e[0]?e[0].length:null;else if(t===b)r||(r=R(e));else if(t===w)r||(r=[],c(e,(function(e,t){r.push(t)})));else if(t===_){var l=o(e[0]);a=h(l)&&l.length||1}return{startIndex:s,dimensionsDefine:O(r),dimensionsDetectCount:a}}function O(e){if(e){var t=l();return u(e,(function(e,n){if(e=g({},p(e)?e:{name:e}),null==e.name)return e;e.name+="",null==e.displayName&&(e.displayName=e.name);var i=t.get(e.name);return i?e.name+="-"+i.count++:t.set(e.name,{count:1}),e}))}}function L(e,t,n,i){if(null==i&&(i=1/0),t===C)for(var r=0;r<n.length&&r<i;r++)e(n[r]?n[r][0]:null,r);else{var a=n[0]||[];for(r=0;r<a.length&&r<i;r++)e(a[r],r)}}function R(e){var t,n=0;while(n<e.length&&!(t=e[n++]));if(t){var i=[];return c(t,(function(e,t){i.push(t)})),i}}function N(e,t,n){var i={},r=B(t);if(!r||!e)return i;var a,o,s=[],l=[],u=t.ecModel,h=E(u).datasetMap,d=r.uid+"_"+n.seriesLayoutBy;e=e.slice(),c(e,(function(t,n){!p(t)&&(e[n]={name:t}),"ordinal"===t.type&&null==a&&(a=n,o=g(e[n])),i[t.name]=[]}));var f=h.get(d)||h.set(d,{categoryWayDim:o,valueWayDim:0});function m(e,t,n){for(var i=0;i<n;i++)e.push(t+i)}function g(e){var t=e.dimsDef;return t?t.length:1}return c(e,(function(e,t){var n=e.name,r=g(e);if(null==a){var o=f.valueWayDim;m(i[n],o,r),m(l,o,r),f.valueWayDim+=r}else if(a===t)m(i[n],0,r),m(s,0,r);else{o=f.categoryWayDim;m(i[n],o,r),m(l,o,r),f.categoryWayDim+=r}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function F(e,t,n){var i={},r=B(e);if(!r)return i;var a,o=t.sourceFormat,s=t.dimensionsDefine;o!==b&&o!==w||c(s,(function(e,t){"name"===(p(e)?e.name:e)&&(a=t)}));var l=function(){for(var e={},i={},r=[],l=0,c=Math.min(5,n);l<c;l++){var u=V(t.data,o,t.seriesLayoutBy,s,t.startIndex,l);r.push(u);var h=u===T.Not;if(h&&null==e.v&&l!==a&&(e.v=l),(null==e.n||e.n===e.v||!h&&r[e.n]===T.Not)&&(e.n=l),d(e)&&r[e.n]!==T.Not)return e;h||(u===T.Might&&null==i.v&&l!==a&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function d(e){return null!=e.v&&null!=e.n}return d(e)?e:d(i)?i:null}();if(l){i.value=l.v;var u=null!=a?a:l.n;i.itemName=[u],i.seriesName=[u]}return i}function B(e){var t=e.option,n=t.data;if(!n)return e.ecModel.getComponent("dataset",t.datasetIndex||0)}function z(e,t){return V(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function V(e,t,n,i,r,a){var s,l,c,u=5;if(f(e))return T.Not;if(i){var m=i[a];p(m)?(l=m.name,c=m.type):d(m)&&(l=m)}if(null!=c)return"ordinal"===c?T.Must:T.Not;if(t===x)if(n===C){for(var g=e[a],v=0;v<(g||[]).length&&v<u;v++)if(null!=(s=E(g[r+v])))return s}else for(v=0;v<e.length&&v<u;v++){var y=e[r+v];if(y&&null!=(s=E(y[a])))return s}else if(t===b){if(!l)return T.Not;for(v=0;v<e.length&&v<u;v++){var S=e[v];if(S&&null!=(s=E(S[l])))return s}}else if(t===w){if(!l)return T.Not;g=e[l];if(!g||f(g))return T.Not;for(v=0;v<g.length&&v<u;v++)if(null!=(s=E(g[v])))return s}else if(t===_)for(v=0;v<e.length&&v<u;v++){S=e[v];var M=o(S);if(!h(M))return T.Not;if(null!=(s=E(M[a])))return s}function E(e){var t=d(e);return null!=e&&isFinite(e)&&""!==e?t?T.Might:T.Not:t&&"-"!==e?T.Must:void 0}return T.Not}t.BE_ORDINAL=T,t.detectSourceFormat=A,t.getSource=k,t.resetSourceDefaulter=D,t.prepareSource=I,t.makeSeriesEncodeForAxisCoordSys=N,t.makeSeriesEncodeForNameBased=F,t.guessOrdinal=z},62611:function(e,t){var n="original",i="arrayRows",r="objectRows",a="keyedColumns",o="unknown",s="typedArray",l="column",c="row";t.SOURCE_FORMAT_ORIGINAL=n,t.SOURCE_FORMAT_ARRAY_ROWS=i,t.SOURCE_FORMAT_OBJECT_ROWS=r,t.SOURCE_FORMAT_KEYED_COLUMNS=a,t.SOURCE_FORMAT_UNKNOWN=o,t.SOURCE_FORMAT_TYPED_ARRAY=s,t.SERIES_LAYOUT_BY_COLUMN=l,t.SERIES_LAYOUT_BY_ROW=c},63321:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(8216)),a=n(16949),o=n(35098),s=n(28299),l=n(50714),c=n(80443),u=n(81457),h=n(5739),d=n(71479),p=n(43763),f=n(691),m=n(37841),g=n(3041),v=n(21987),y=n(59025),_=n(76666),x=n(60823),b=n(75269),w=n(1199),S=w.throttle,M=n(29766),C=n(47172),T=n(10904),E=n(39493),A=n(62710),k=n(61520);n(10368);var D=n(61410),I=a.assert,P=a.each,O=a.isFunction,L=a.isObject,R=g.parseClassType,N="4.9.0",F={zrender:"4.3.2"},B=1,z=1e3,V=800,U=900,H=5e3,$=1e3,j=1100,W=2e3,G=3e3,q=3500,X=4e3,Y=5e3,K={PROCESSOR:{FILTER:z,SERIES_FILTER:V,STATISTIC:H},VISUAL:{LAYOUT:$,PROGRESSIVE_LAYOUT:j,GLOBAL:W,CHART:G,POST_CHART_LAYOUT:q,COMPONENT:X,BRUSH:Y}},Z="__flagInMainProcess",J="__optionUpdated",Q=/^[a-zA-Z0-9_]+$/;function ee(e,t){return function(n,i,r){t||!this._disposed?(n=n&&n.toLowerCase(),c.prototype[e].call(this,n,i,r)):xe(this.id)}}function te(){c.call(this)}function ne(e,t,n){n=n||{},"string"===typeof t&&(t=Pe[t]),this.id,this.group,this._dom=e;var i="canvas",o=this._zr=r.init(e,{renderer:n.renderer||i,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=S(a.bind(o.flush,o),17);t=a.clone(t);t&&f(t,!0),this._theme=t,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new d;var s=this._api=Me(this);function u(e,t){return e.__prio-t.__prio}l(Ie,u),l(Ae,u),this._scheduler=new E(this,s,Ae,Ie),c.call(this,this._ecEventProcessor=new Ce),this._messageCenter=new te,this._initEvents(),this.resize=a.bind(this.resize,this),this._pendingActions=[],o.animation.on("frame",this._onframe,this),de(o,this),a.setAsPrimitive(this)}te.prototype.on=ee("on",!0),te.prototype.off=ee("off",!0),te.prototype.one=ee("one",!0),a.mixin(te,c);var ie=ne.prototype;function re(e,t,n){if(this._disposed)xe(this.id);else{var i,r=this._model,a=this._coordSysMgr.getCoordinateSystems();t=b.parseFinder(r,t);for(var o=0;o<a.length;o++){var s=a[o];if(s[e]&&null!=(i=s[e](r,t,n)))return i}}}ie._onframe=function(){if(!this._disposed){var e=this._scheduler;if(this[J]){var t=this[J].silent;this[Z]=!0,oe(this),ae.update.call(this),this[Z]=!1,this[J]=!1,ue.call(this,t),he.call(this,t)}else if(e.unfinished){var n=B,i=this._model,r=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),le(this,i),e.performVisualTasks(i),ve(this,this._model,r,"remain"),n-=+new Date-a}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},ie.getDom=function(){return this._dom},ie.getZr=function(){return this._zr},ie.setOption=function(e,t,n){if(this._disposed)xe(this.id);else{var i;if(L(t)&&(n=t.lazyUpdate,i=t.silent,t=t.notMerge),this[Z]=!0,!this._model||t){var r=new p(this._api),a=this._theme,o=this._model=new u;o.scheduler=this._scheduler,o.init(null,null,a,r)}this._model.setOption(e,ke),n?(this[J]={silent:i},this[Z]=!1):(oe(this),ae.update.call(this),this._zr.flush(),this[J]=!1,this[Z]=!1,ue.call(this,i),he.call(this,i))}},ie.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},ie.getModel=function(){return this._model},ie.getOption=function(){return this._model&&this._model.getOption()},ie.getWidth=function(){return this._zr.getWidth()},ie.getHeight=function(){return this._zr.getHeight()},ie.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},ie.getRenderedCanvas=function(e){if(s.canvasSupported){e=e||{},e.pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor");var t=this._zr;return t.painter.getRenderedCanvas(e)}},ie.getSvgDataURL=function(){if(s.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return a.each(t,(function(e){e.stopAnimation(!0)})),e.painter.toDataURL()}},ie.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,i=[],r=this;P(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return P(i,(function(e){e.group.ignore=!1})),a}xe(this.id)},ie.getConnectedDataURL=function(e){if(this._disposed)xe(this.id);else if(s.canvasSupported){var t="svg"===e.type,n=this.group,i=Math.min,o=Math.max,l=1/0;if(Re[n]){var c=l,u=l,h=-l,d=-l,p=[],f=e&&e.pixelRatio||1;a.each(Le,(function(r,s){if(r.group===n){var l=t?r.getZr().painter.getSvgDom().innerHTML:r.getRenderedCanvas(a.clone(e)),f=r.getDom().getBoundingClientRect();c=i(f.left,c),u=i(f.top,u),h=o(f.right,h),d=o(f.bottom,d),p.push({dom:l,left:f.left,top:f.top})}})),c*=f,u*=f,h*=f,d*=f;var m=h-c,g=d-u,v=a.createCanvas(),y=r.init(v,{renderer:t?"svg":"canvas"});if(y.resize({width:m,height:g}),t){var _="";return P(p,(function(e){var t=e.left-c,n=e.top-u;_+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),y.painter.getSvgRoot().innerHTML=_,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return e.connectedBackgroundColor&&y.add(new x.Rect({shape:{x:0,y:0,width:m,height:g},style:{fill:e.connectedBackgroundColor}})),P(p,(function(e){var t=new x.Image({style:{x:e.left*f-c,y:e.top*f-u,image:e.dom}});y.add(t)})),y.refreshImmediately(),v.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},ie.convertToPixel=a.curry(re,"convertToPixel"),ie.convertFromPixel=a.curry(re,"convertFromPixel"),ie.containPixel=function(e,t){if(!this._disposed){var n,i=this._model;return e=b.parseFinder(i,e),a.each(e,(function(e,i){i.indexOf("Models")>=0&&a.each(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(t);else if("seriesModels"===i){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n|=a.containPoint(t,e))}}),this)}),this),!!n}xe(this.id)},ie.getVisual=function(e,t){var n=this._model;e=b.parseFinder(n,e,{defaultMainType:"series"});var i=e.seriesModel,r=i.getData(),a=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?r.indexOfRawIndex(e.dataIndex):null;return null!=a?r.getItemVisual(a,t):r.getVisual(t)},ie.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},ie.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var ae={prepareAndUpdate:function(e){oe(this),ae.update.call(this,e)},update:function(e){var t=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,a=this._scheduler;if(t){a.restoreData(t,e),a.performSeriesTasks(t),r.create(t,n),a.performDataProcessorTasks(t,e),le(this,t),r.update(t,n),fe(t),a.performVisualTasks(t,e),me(this,t,n,e);var l=t.get("backgroundColor")||"transparent";if(s.canvasSupported)i.setBackgroundColor(l);else{var c=o.parse(l);l=o.stringify(c,"rgb"),0===c[3]&&(l="transparent")}ye(t,n)}},updateTransform:function(e){var t=this._model,n=this,i=this._api;if(t){var r=[];t.eachComponent((function(a,o){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,t,i,e);l&&l.update&&r.push(s)}else r.push(s)}));var o=a.createHashMap();t.eachSeries((function(r){var a=n._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,t,i,e);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)})),fe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:o}),ve(n,t,i,e,o),ye(t,this._api)}},updateView:function(e){var t=this._model;t&&(_.markUpdateMethod(e,"updateView"),fe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),me(this,this._model,this._api,e),ye(t,this._api))},updateVisual:function(e){ae.update.call(this,e)},updateLayout:function(e){ae.update.call(this,e)}};function oe(e){var t=e._model,n=e._scheduler;n.restorePipelines(t),n.prepareStageTasks(),pe(e,"component",t,n),pe(e,"chart",t,n),n.plan()}function se(e,t,n,i,r){var o=e._model;if(i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var c=n.excludeSeriesId;null!=c&&(c=a.createHashMap(b.normalizeToArray(c))),o&&o.eachComponent(l,(function(t){c&&null!=c.get(t.id)||u(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else P(e._componentsViews.concat(e._chartsViews),u);function u(i){i&&i.__alive&&i[t]&&i[t](i.__model,o,e._api,n)}}function le(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries((function(e){i.updateStreamModes(e,n[e.__viewId])}))}function ce(e,t){var n=e.type,i=e.escapeConnect,r=Te[n],o=r.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&R(s[0]),this[Z]=!0;var c=[e],u=!1;e.batch&&(u=!0,c=a.map(e.batch,(function(t){return t=a.defaults(a.extend({},t),e),t.batch=null,t})));var h,d=[],p="highlight"===n||"downplay"===n;P(c,(function(e){h=r.action(e,this._model,this._api),h=h||a.extend({},e),h.type=o.event||h.type,d.push(h),p?se(this,l,e,"series"):s&&se(this,l,e,s.main,s.sub)}),this),"none"===l||p||s||(this[J]?(oe(this),ae.update.call(this,e),this[J]=!1):ae[l].call(this,e)),h=u?{type:o.event||n,escapeConnect:i,batch:d}:d[0],this[Z]=!1,!t&&this._messageCenter.trigger(h.type,h)}function ue(e){var t=this._pendingActions;while(t.length){var n=t.shift();ce.call(this,n,e)}}function he(e){!e&&this.trigger("updated")}function de(e,t){e.on("rendered",(function(){t.trigger("rendered"),!e.animation.isFinished()||t[J]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))}function pe(e,t,n,i){for(var r="component"===t,a=r?e._componentsViews:e._chartsViews,o=r?e._componentsMap:e._chartsMap,s=e._zr,l=e._api,c=0;c<a.length;c++)a[c].__alive=!1;function u(e){var t="_ec_"+e.id+"_"+e.type,c=o[t];if(!c){var u=R(e.type),h=r?y.getClass(u.main,u.sub):_.getClass(u.sub);c=new h,c.init(n,l),o[t]=c,a.push(c),s.add(c.group)}e.__viewId=c.__id=t,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!r&&i.prepareView(c,e,n,l)}r?n.eachComponent((function(e,t){"series"!==e&&u(t)})):n.eachSeries(u);for(c=0;c<a.length;){var h=a[c];h.__alive?c++:(!r&&h.renderTask.dispose(),s.remove(h.group),h.dispose(n,l),a.splice(c,1),delete o[h.__id],h.__id=h.group.__ecComponentInfo=null)}}function fe(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function me(e,t,n,i){ge(e,t,n,i),P(e._chartsViews,(function(e){e.__alive=!1})),ve(e,t,n,i),P(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))}function ge(e,t,n,i,r){P(r||e._componentsViews,(function(e){var r=e.__model;e.render(r,t,n,i),Se(r,e)}))}function ve(e,t,n,i,r){var a,o=e._scheduler;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var s=n.renderTask;o.updatePayload(s,i),r&&r.get(t.uid)&&s.dirty(),a|=s.perform(o.getPerformArgs(s)),n.group.silent=!!t.get("silent"),Se(t,n),we(t,n)})),o.unfinished|=a,be(e,t),C(e._zr.dom,t)}function ye(e,t){P(De,(function(n){n(e,t)}))}ie.resize=function(e){if(this._disposed)xe(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[Z]=!0,n&&oe(this),ae.update.call(this),this[Z]=!1,ue.call(this,i),he.call(this,i)}}},ie.showLoading=function(e,t){if(this._disposed)xe(this.id);else if(L(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Oe[e]){var n=Oe[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},ie.hideLoading=function(){this._disposed?xe(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},ie.makeActionFromEvent=function(e){var t=a.extend({},e);return t.type=Ee[e.type],t},ie.dispatchAction=function(e,t){this._disposed?xe(this.id):(L(t)||(t={silent:!!t}),Te[e.type]&&this._model&&(this[Z]?this._pendingActions.push(e):(ce.call(this,e,t.silent),t.flush?this._zr.flush(!0):!1!==t.flush&&s.browser.weChat&&this._throttledZrFlush(),ue.call(this,t.silent),he.call(this,t.silent))))},ie.appendData=function(e){if(this._disposed)xe(this.id);else{var t=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(t);i.appendData(e),this._scheduler.unfinished=!0}},ie.on=ee("on",!1),ie.off=ee("off",!1),ie.one=ee("one",!1);var _e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function xe(e){}function be(e,t){var n=e._zr,i=n.storage,r=0;i.traverse((function(e){r++})),r>t.get("hoverLayerThreshold")&&!s.node&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.group.traverse((function(e){e.useHoverLayer=!0}))}}))}function we(e,t){var n=e.get("blendMode")||null;t.group.traverse((function(e){e.isGroup||e.style.blend!==n&&e.setStyle("blend",n),e.eachPendingDisplayable&&e.eachPendingDisplayable((function(e){e.setStyle("blend",n)}))}))}function Se(e,t){var n=e.get("z"),i=e.get("zlevel");t.group.traverse((function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=i&&(e.zlevel=i))}))}function Me(e){var t=e._coordSysMgr;return a.extend(new h(e),{getCoordinateSystems:a.bind(t.getCoordinateSystems,t),getComponentByElement:function(t){while(t){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}}})}function Ce(){this.eventInfo}ie._initEvents=function(){P(_e,(function(e){var t=function(t){var n,i=this.getModel(),r=t.target,o="globalout"===e;if(o)n={};else if(r&&null!=r.dataIndex){var s=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=s&&s.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(n=a.extend({},r.eventData));if(n){var l=n.componentType,c=n.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",c=n.seriesIndex);var u=l&&null!=c&&i.getComponent(l,c),h=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];n.event=t,n.type=e,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:n,model:u,view:h},this.trigger(e,n)}};t.zrEventfulCallAtLast=!0,this._zr.on(e,t,this)}),this),P(Ee,(function(e,t){this._messageCenter.on(t,(function(e){this.trigger(t,e)}),this)}),this)},ie.isDisposed=function(){return this._disposed},ie.clear=function(){this._disposed?xe(this.id):this.setOption({series:[]},!0)},ie.dispose=function(){if(this._disposed)xe(this.id);else{this._disposed=!0,b.setAttribute(this.getDom(),Be,"");var e=this._api,t=this._model;P(this._componentsViews,(function(n){n.dispose(t,e)})),P(this._chartsViews,(function(n){n.dispose(t,e)})),this._zr.dispose(),delete Le[this.id]}},a.mixin(ne,c),Ce.prototype={constructor:Ce,normalizeQuery:function(e){var t={},n={},i={};if(a.isString(e)){var r=R(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};a.each(e,(function(e,r){for(var a=!1,l=0;l<o.length;l++){var c=o[l],u=r.lastIndexOf(c);if(u>0&&u===r.length-c.length){var h=r.slice(0,u);"data"!==h&&(t.mainType=h,t[c.toLowerCase()]=e,a=!0)}}s.hasOwnProperty(r)&&(n[r]=e,a=!0),a||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},filter:function(e,t,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=t.cptQuery,c=t.dataQuery;return u(l,o,"mainType")&&u(l,o,"subType")&&u(l,o,"index","componentIndex")&&u(l,o,"name")&&u(l,o,"id")&&u(c,a,"name")&&u(c,a,"dataIndex")&&u(c,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,r,a));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},afterTrigger:function(){this.eventInfo=null}};var Te={},Ee={},Ae=[],ke=[],De=[],Ie=[],Pe={},Oe={},Le={},Re={},Ne=new Date-0,Fe=new Date-0,Be="_echarts_instance_";function ze(e){var t=0,n=1,i=2,r="__connectUpdateStatus";function a(e,t){for(var n=0;n<e.length;n++){var i=e[n];i[r]=t}}P(Ee,(function(o,s){e._messageCenter.on(s,(function(o){if(Re[e.group]&&e[r]!==t){if(o&&o.escapeConnect)return;var s=e.makeActionFromEvent(o),l=[];P(Le,(function(t){t!==e&&t.group===e.group&&l.push(t)})),a(l,t),P(l,(function(e){e[r]!==n&&e.dispatchAction(s)})),a(l,i)}}))}))}function Ve(e,t,n){var i=We(e);if(i)return i;var r=new ne(e,t,n);return r.id="ec_"+Ne++,Le[r.id]=r,b.setAttribute(e,Be,r.id),ze(r),r}function Ue(e){if(a.isArray(e)){var t=e;e=null,P(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+Fe++,P(t,(function(t){t.group=e}))}return Re[e]=!0,e}function He(e){Re[e]=!1}var $e=He;function je(e){"string"===typeof e?e=Le[e]:e instanceof ne||(e=We(e)),e instanceof ne&&!e.isDisposed()&&e.dispose()}function We(e){return Le[b.getAttribute(e,Be)]}function Ge(e){return Le[e]}function qe(e,t){Pe[e]=t}function Xe(e){ke.push(e)}function Ye(e,t){nt(Ae,e,t,z)}function Ke(e){De.push(e)}function Ze(e,t,n){"function"===typeof t&&(n=t,t="");var i=L(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,I(Q.test(i)&&Q.test(t)),Te[i]||(Te[i]={action:n,actionInfo:e}),Ee[t]=i}function Je(e,t){d.register(e,t)}function Qe(e){var t=d.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function et(e,t){nt(Ie,e,t,$,"layout")}function tt(e,t){nt(Ie,e,t,G,"visual")}function nt(e,t,n,i,r){(O(t)||L(t))&&(n=t,t=i);var a=E.wrapStageHandler(n,r);return a.__prio=t,a.__raw=n,e.push(a),a}function it(e,t){Oe[e]=t}function rt(e){return g.extend(e)}function at(e){return y.extend(e)}function ot(e){return v.extend(e)}function st(e){return _.extend(e)}function lt(e){a.$override("createCanvas",e)}function ct(e,t,n){D.registerMap(e,t,n)}function ut(e){var t=D.retrieveMap(e);return t&&t[0]&&{geoJson:t[0].geoJSON,specialAreas:t[0].specialAreas}}tt(W,M),Xe(f),Ye(U,m),it("default",T),Ze({type:"highlight",event:"highlight",update:"highlight"},a.noop),Ze({type:"downplay",event:"downplay",update:"downplay"},a.noop),qe("light",A),qe("dark",k);var ht={};t.version=N,t.dependencies=F,t.PRIORITY=K,t.init=Ve,t.connect=Ue,t.disConnect=He,t.disconnect=$e,t.dispose=je,t.getInstanceByDom=We,t.getInstanceById=Ge,t.registerTheme=qe,t.registerPreprocessor=Xe,t.registerProcessor=Ye,t.registerPostUpdate=Ke,t.registerAction=Ze,t.registerCoordinateSystem=Je,t.getCoordinateSystemDimensions=Qe,t.registerLayout=et,t.registerVisual=tt,t.registerLoading=it,t.extendComponentModel=rt,t.extendComponentView=at,t.extendSeriesModel=ot,t.extendChartView=st,t.setCanvasCreator=lt,t.registerMap=ct,t.getMap=ut,t.dataTool=ht;var dt=n(21223);(function(){for(var e in dt)dt.hasOwnProperty(e)&&(t[e]=dt[e])})()},21223:function(e,t,n){var i=n(8216);t.zrender=i;var r=n(16317);t.matrix=r;var a=n(89457);t.vector=a;var o=n(16949),s=n(35098);t.color=s;var l=n(60823),c=n(80720);t.number=c;var u=n(68331);t.format=u;var h=n(1199);h.throttle;t.throttle=h.throttle;var d=n(65602);t.helper=d;var p=n(79446);t.parseGeoJSON=p;var f=n(54111);t.List=f;var m=n(96753);t.Model=m;var g=n(86396);t.Axis=g;var v=n(28299);t.env=v;var y=p,_={};o.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(e){_[e]=o[e]}));var x={};o.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(e){x[e]=l[e]})),t.parseGeoJson=y,t.util=_,t.graphic=x},65602:function(e,t,n){var i=n(16949),r=n(84305),a=n(87773),o=n(75817),s=n(96753),l=n(89317);l.getLayoutRect;t.getLayoutRect=l.getLayoutRect;var c=n(84165),u=c.enableDataStack,h=c.isDimensionStacked,d=c.getStackedDimension,p=n(5629);t.completeDimensions=p;var f=n(49261);t.createDimensions=f;var m=n(2760);function g(e){return r(e.getSource(),e)}t.createSymbol=m.createSymbol;var v={isDimensionStacked:h,enableDataStack:u,getStackedDimension:d};function y(e,t){var n=t;s.isInstance(t)||(n=new s(t),i.mixin(n,o));var r=a.createScaleByModel(n);return r.setExtent(e[0],e[1]),a.niceScaleExtent(r,n),r}function _(e){i.mixin(e,o)}t.createList=g,t.dataStack=v,t.createScale=y,t.mixinAxisModelCommonMethods=_},61213:function(e){var t={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};e.exports=t},8e4:function(e,t,n){n(66554),n(46293),n(6149),n(70252);var i=n(16949),r=n(80720),a=r.parsePercent,o=n(84165),s=o.isDimensionStacked,l=n(38247),c="__ec_stack_",u=.5,h="undefined"!==typeof Float32Array?Float32Array:Array;function d(e){return e.get("stack")||c+e.seriesIndex}function p(e){return e.dim+e.index}function f(e){var t=[],n=e.axis,r="axis0";if("category"===n.type){for(var a=n.getBandWidth(),o=0;o<e.count;o++)t.push(i.defaults({bandWidth:a,axisKey:r,stackId:c+o},e));var s=y(t),l=[];for(o=0;o<e.count;o++){var u=s[r][c+o];u.offsetCenter=u.offset+u.width/2,l.push(u)}return l}}function m(e,t){var n=[];return t.eachSeriesByType(e,(function(e){w(e)&&!S(e)&&n.push(e)})),n}function g(e){var t={};i.each(e,(function(e){var n=e.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=e.getData(),a=i.dim+"_"+i.index,o=r.mapDimension(i.dim),s=0,l=r.count();s<l;++s){var c=r.get(o,s);t[a]?t[a].push(c):t[a]=[c]}}));var n=[];for(var r in t)if(t.hasOwnProperty(r)){var a=t[r];if(a){a.sort((function(e,t){return e-t}));for(var o=null,s=1;s<a.length;++s){var l=a[s]-a[s-1];l>0&&(o=null===o?l:Math.min(o,l))}n[r]=o}}return n}function v(e){var t=g(e),n=[];return i.each(e,(function(e){var i,r=e.coordinateSystem,o=r.getBaseAxis(),s=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var l=o.dim+"_"+o.index,c=t[l],u=Math.abs(s[1]-s[0]),h=o.scale.getExtent(),f=Math.abs(h[1]-h[0]);i=c?u/f*c:u}else{var m=e.getData();i=Math.abs(s[1]-s[0])/m.count()}var g=a(e.get("barWidth"),i),v=a(e.get("barMaxWidth"),i),y=a(e.get("barMinWidth")||1,i),_=e.get("barGap"),x=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:g,barMaxWidth:v,barMinWidth:y,barGap:_,barCategoryGap:x,axisKey:p(o),stackId:d(e)})})),y(n)}function y(e){var t={};i.each(e,(function(e,n){var i=e.axisKey,r=e.bandWidth,a=t[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=a.stacks;t[i]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var c=e.barMaxWidth;c&&(o[s].maxWidth=c);var u=e.barMinWidth;u&&(o[s].minWidth=u);var h=e.barGap;null!=h&&(a.gap=h);var d=e.barCategoryGap;null!=d&&(a.categoryGap=d)}));var n={};return i.each(t,(function(e,t){n[t]={};var r=e.stacks,o=e.bandWidth,s=a(e.categoryGap,o),l=a(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,h=(c-s)/(u+(u-1)*l);h=Math.max(h,0),i.each(r,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,c-=i+l*i,u--}else{var i=h;t&&t<i&&(i=Math.min(t,c)),n&&n>i&&(i=n),i!==h&&(e.width=i,c-=i+l*i,u--)}})),h=(c-s)/(u+(u-1)*l),h=Math.max(h,0);var d,p=0;i.each(r,(function(e,t){e.width||(e.width=h),d=e,p+=e.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;i.each(r,(function(e,i){n[t][i]=n[t][i]||{bandWidth:o,offset:f,width:e.width},f+=e.width*(1+l)}))})),n}function _(e,t,n){if(e&&t){var i=e[p(t)];return null!=i&&null!=n&&(i=i[d(n)]),i}}function x(e,t){var n=m(e,t),r=v(n),a={},o={};i.each(n,(function(e){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),l=d(e),c=r[p(i)][l],u=c.offset,h=c.width,f=n.getOtherAxis(i),m=e.get("barMinHeight")||0;a[l]=a[l]||[],o[l]=o[l]||[],t.setLayout({bandWidth:c.bandWidth,offset:u,size:h});for(var g=t.mapDimension(f.dim),v=t.mapDimension(i.dim),y=s(t,g),_=f.isHorizontal(),x=M(i,f,y),b=0,w=t.count();b<w;b++){var S,C,T,E,A=t.get(g,b),k=t.get(v,b),D=A>=0?"p":"n",I=x;if(y&&(a[l][k]||(a[l][k]={p:x,n:x}),I=a[l][k][D]),_){var P=n.dataToPoint([A,k]);S=I,C=P[1]+u,T=P[0]-x,E=h,Math.abs(T)<m&&(T=(T<0?-1:1)*m),isNaN(T)||y&&(a[l][k][D]+=T)}else{P=n.dataToPoint([k,A]);S=P[0]+u,C=I,T=h,E=P[1]-x,Math.abs(E)<m&&(E=(E<=0?-1:1)*m),isNaN(E)||y&&(a[l][k][D]+=E)}t.setItemLayout(b,{x:S,y:C,width:T,height:E})}}),this)}var b={seriesType:"bar",plan:l(),reset:function(e){if(w(e)&&S(e)){var t=e.getData(),n=e.coordinateSystem,i=n.grid.getRect(),r=n.getBaseAxis(),a=n.getOtherAxis(r),o=t.mapDimension(a.dim),s=t.mapDimension(r.dim),l=a.isHorizontal(),c=l?0:1,d=_(v([e]),r,e).width;return d>u||(d=u),{progress:p}}function p(e,t){var u,p=e.count,f=new h(2*p),m=new h(2*p),g=new h(p),v=[],y=[],_=0,x=0;while(null!=(u=e.next()))y[c]=t.get(o,u),y[1-c]=t.get(s,u),v=n.dataToPoint(y,null,v),m[_]=l?i.x+i.width:v[0],f[_++]=v[0],m[_]=l?v[1]:i.y+i.height,f[_++]=v[1],g[x++]=u;t.setLayout({largePoints:f,largeDataIndices:g,largeBackgroundPoints:m,barWidth:d,valueAxisStart:M(r,a,!1),backgroundStart:l?i.x:i.y,valueAxisHorizontal:l})}}};function w(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function S(e){return e.pipelineContext&&e.pipelineContext.large}function M(e,t,n){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}t.getLayoutOnAxis=f,t.prepareLayoutBarSeries=m,t.makeColumnLayout=v,t.retrieveColumnLayout=_,t.layout=x,t.largeLayout=b},36873:function(e,t,n){var i=n(16949),r=n(80720),a=r.parsePercent,o=n(84165),s=o.isDimensionStacked;function l(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function c(e,t){return t.dim+e.model.componentIndex}function u(e,t,n){var r={},a=h(i.filter(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),o=c(n,i),u=l(e),h=a[o][u],d=h.offset,p=h.width,f=n.getOtherAxis(i),m=e.coordinateSystem.cx,g=e.coordinateSystem.cy,v=e.get("barMinHeight")||0,y=e.get("barMinAngle")||0;r[u]=r[u]||[];for(var _=t.mapDimension(f.dim),x=t.mapDimension(i.dim),b=s(t,_),w="radius"!==i.dim||!e.get("roundCap",!0),S="radius"===f.dim?f.dataToRadius(0):f.dataToAngle(0),M=0,C=t.count();M<C;M++){var T,E,A,k,D=t.get(_,M),I=t.get(x,M),P=D>=0?"p":"n",O=S;if(b&&(r[u][I]||(r[u][I]={p:S,n:S}),O=r[u][I][P]),"radius"===f.dim){var L=f.dataToRadius(D)-S,R=i.dataToAngle(I);Math.abs(L)<v&&(L=(L<0?-1:1)*v),T=O,E=O+L,A=R-d,k=A-p,b&&(r[u][I][P]=E)}else{var N=f.dataToAngle(D,w)-S,F=i.dataToRadius(I);Math.abs(N)<y&&(N=(N<0?-1:1)*y),T=F+d,E=T+p,A=O,k=O+N,b&&(r[u][I][P]=k)}t.setItemLayout(M,{cx:m,cy:g,r0:T,r:E,startAngle:-A*Math.PI/180,endAngle:-k*Math.PI/180})}}}),this)}function h(e,t){var n={};i.each(e,(function(e,t){var i=e.getData(),r=e.coordinateSystem,o=r.getBaseAxis(),s=c(r,o),u=o.getExtent(),h="category"===o.type?o.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=n[s]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},p=d.stacks;n[s]=d;var f=l(e);p[f]||d.autoWidthCount++,p[f]=p[f]||{width:0,maxWidth:0};var m=a(e.get("barWidth"),h),g=a(e.get("barMaxWidth"),h),v=e.get("barGap"),y=e.get("barCategoryGap");m&&!p[f].width&&(m=Math.min(d.remainedWidth,m),p[f].width=m,d.remainedWidth-=m),g&&(p[f].maxWidth=g),null!=v&&(d.gap=v),null!=y&&(d.categoryGap=y)}));var r={};return i.each(n,(function(e,t){r[t]={};var n=e.stacks,o=e.bandWidth,s=a(e.categoryGap,o),l=a(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,h=(c-s)/(u+(u-1)*l);h=Math.max(h,0),i.each(n,(function(e,t){var n=e.maxWidth;n&&n<h&&(n=Math.min(n,c),e.width&&(n=Math.min(n,e.width)),c-=n,e.width=n,u--)})),h=(c-s)/(u+(u-1)*l),h=Math.max(h,0);var d,p=0;i.each(n,(function(e,t){e.width||(e.width=h),d=e,p+=e.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;i.each(n,(function(e,n){r[t][n]=r[t][n]||{offset:f,width:e.width},f+=e.width*(1+l)}))})),r}var d=u;e.exports=d},72423:function(e,t,n){n(66554),n(46293),n(6149);var i=n(16949),r=i.map,a=n(38247),o=n(84165),s=o.isDimensionStacked;function l(e){return{seriesType:e,plan:a(),reset:function(e){var t=e.getData(),n=e.coordinateSystem,i=e.pipelineContext,a=i.large;if(n){var o=r(n.dimensions,(function(e){return t.mapDimension(e)})).slice(0,2),l=o.length,c=t.getCalculationInfo("stackResultDimension");return s(t,o[0])&&(o[0]=c),s(t,o[1])&&(o[1]=c),l&&{progress:u}}function u(e,t){for(var i=e.end-e.start,r=a&&new Float32Array(i*l),s=e.start,c=0,u=[],h=[];s<e.end;s++){var d;if(1===l){var p=t.get(o[0],s);d=!isNaN(p)&&n.dataToPoint(p,null,h)}else{p=u[0]=t.get(o[0],s);var f=u[1]=t.get(o[1],s);d=!isNaN(p)&&!isNaN(f)&&n.dataToPoint(u,null,h)}a?(r[c++]=d?d[0]:NaN,r[c++]=d?d[1]:NaN):t.setItemLayout(s,d&&d.slice()||[NaN,NaN])}a&&t.setLayout("symbolPoints",r)}}}}e.exports=l},10904:function(e,t,n){var i=n(16949),r=n(60823),a=n(53164),o=Math.PI;function s(e,t){t=t||{},i.defaults(t,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new r.Group,s=new r.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(s);var l=t.fontSize+" sans-serif",c=new r.Rect({style:{fill:"none",text:t.text,font:l,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});if(n.add(c),t.showSpinner){var u=new r.Arc({shape:{startAngle:-o/2,endAngle:-o/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001});u.animateShape(!0).when(1e3,{endAngle:3*o/2}).start("circularInOut"),u.animateShape(!0).when(1e3,{startAngle:3*o/2}).delay(300).start("circularInOut"),n.add(u)}return n.resize=function(){var n=a.getWidth(t.text,l),i=t.showSpinner?t.spinnerRadius:0,r=(e.getWidth()-2*i-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner?0:n/2),o=e.getHeight()/2;t.showSpinner&&u.setShape({cx:r,cy:o}),c.setShape({x:r-i,y:o-i,width:2*i,height:2*i}),s.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}e.exports=s},3041:function(e,t,n){n(70252);var i=n(16949),r=n(96753),a=n(30108),o=n(55480),s=o.enableClassManagement,l=o.parseClassType,c=n(75269),u=c.makeInner,h=n(89317),d=n(73593),p=u(),f=r.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,t,n,i){r.call(this,e,t,n,i),this.uid=a.getUID("ec_cpt_model")},init:function(e,t,n,i){this.mergeDefaultAndTheme(e,n)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,r=n?h.getLayoutParams(e):{},a=t.getTheme();i.merge(e,a.get(this.mainType)),i.merge(e,this.getDefaultOption()),n&&h.mergeLayoutParam(e,r,n)},mergeOption:function(e,t){i.merge(this.option,e,!0);var n=this.layoutMode;n&&h.mergeLayoutParam(this.option,e,n)},optionUpdated:function(e,t){},getDefaultOption:function(){var e=p(this);if(!e.defaultOption){var t=[],n=this.constructor;while(n){var r=n.prototype.defaultOption;r&&t.push(r),n=n.superClass}for(var a={},o=t.length-1;o>=0;o--)a=i.merge(a,t[o],!0);e.defaultOption=a}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});function m(e){var t=[];return i.each(f.getClassesByMainType(e),(function(e){t=t.concat(e.prototype.dependencies||[])})),t=i.map(t,(function(e){return l(e).main})),"dataset"!==e&&i.indexOf(t,"dataset")<=0&&t.unshift("dataset"),t}s(f,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(f),a.enableTopologicalTravel(f,m),i.mixin(f,d);var g=f;e.exports=g},81457:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(16949)),a=r.each,o=r.filter,s=r.map,l=r.isArray,c=r.indexOf,u=r.isObject,h=r.isString,d=r.createHashMap,p=r.assert,f=r.clone,m=r.merge,g=r.extend,v=r.mixin,y=n(75269),_=n(96753),x=n(3041),b=n(33924),w=n(1826),S=n(59336),M=S.resetSourceDefaulter,C="\0_ec_inner",T=_.extend({init:function(e,t,n,i){n=n||{},this.option=null,this._theme=new _(n),this._optionManager=i},setOption:function(e,t){p(!(C in e),"please use chart.getOption()"),this._optionManager.setOption(e,t),this.resetOption(null)},resetOption:function(e){var t=!1,n=this._optionManager;if(!e||"recreate"===e){var i=n.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this.mergeOption(i)):k.call(this,i),t=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var r=n.getTimelineOption(this);r&&(this.mergeOption(r),t=!0)}if(!e||"recreate"===e||"media"===e){var o=n.getMediaOption(this,this._api);o.length&&a(o,(function(e){this.mergeOption(e,t=!0)}),this)}return t},mergeOption:function(e){var t=this.option,n=this._componentsMap,i=[];function r(i,r){var o=y.normalizeToArray(e[i]),s=y.mappingToExists(n.get(i),o);y.makeIdAndName(s),a(s,(function(e,t){var n=e.option;u(n)&&(e.keyInfo.mainType=i,e.keyInfo.subType=I(i,n,e.exist))}));var l=D(n,r);t[i]=[],n.set(i,[]),a(s,(function(e,r){var a=e.exist,o=e.option;if(p(u(o)||a,"Empty component definition"),o){var s=x.getClass(i,e.keyInfo.subType,!0);if(a&&a.constructor===s)a.name=e.keyInfo.name,a.mergeOption(o,this),a.optionUpdated(o,!1);else{var c=g({dependentModels:l,componentIndex:r},e.keyInfo);a=new s(o,this,this,c),g(a,c),a.init(o,this,this,c),a.optionUpdated(null,!0)}}else a.mergeOption({},this),a.optionUpdated({},!1);n.get(i)[r]=a,t[i][r]=a.option}),this),"series"===i&&P(this,n.get("series"))}M(this),a(e,(function(e,n){null!=e&&(x.hasClass(n)?n&&i.push(n):t[n]=null==t[n]?f(e):m(t[n],e,!0))})),x.topologicalTravel(i,x.getAllClassMainTypes(),r,this),this._seriesIndicesMap=d(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var e=f(this.option);return a(e,(function(t,n){if(x.hasClass(n)){t=y.normalizeToArray(t);for(var i=t.length-1;i>=0;i--)y.isIdInner(t[i])&&t.splice(i,1);e[n]=t}})),delete e[C],e},getTheme:function(){return this._theme},getComponent:function(e,t){var n=this._componentsMap.get(e);if(n)return n[t||0]},queryComponents:function(e){var t=e.mainType;if(!t)return[];var n,i=e.index,r=e.id,a=e.name,u=this._componentsMap.get(t);if(!u||!u.length)return[];if(null!=i)l(i)||(i=[i]),n=o(s(i,(function(e){return u[e]})),(function(e){return!!e}));else if(null!=r){var h=l(r);n=o(u,(function(e){return h&&c(r,e.id)>=0||!h&&e.id===r}))}else if(null!=a){var d=l(a);n=o(u,(function(e){return d&&c(a,e.name)>=0||!d&&e.name===a}))}else n=u.slice();return O(n,e)},findComponents:function(e){var t=e.query,n=e.mainType,i=a(t),r=i?this.queryComponents(i):this._componentsMap.get(n);return s(O(r,e));function a(e){var t=n+"Index",i=n+"Id",r=n+"Name";return!e||null==e[t]&&null==e[i]&&null==e[r]?null:{mainType:n,index:e[t],id:e[i],name:e[r]}}function s(t){return e.filter?o(t,e.filter):t}},eachComponent:function(e,t,n){var i=this._componentsMap;if("function"===typeof e)n=t,t=e,i.each((function(e,i){a(e,(function(e,r){t.call(n,i,e,r)}))}));else if(h(e))a(i.get(e),t,n);else if(u(e)){var r=this.findComponents(e);a(r,t,n)}},getSeriesByName:function(e){var t=this._componentsMap.get("series");return o(t,(function(t){return t.name===e}))},getSeriesByIndex:function(e){return this._componentsMap.get("series")[e]},getSeriesByType:function(e){var t=this._componentsMap.get("series");return o(t,(function(t){return t.subType===e}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(e,t){L(this),a(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)}),this)},eachRawSeries:function(e,t){a(this._componentsMap.get("series"),e,t)},eachSeriesByType:function(e,t,n){L(this),a(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===e&&t.call(n,r,i)}),this)},eachRawSeriesByType:function(e,t,n){return a(this.getSeriesByType(e),t,n)},isSeriesFiltered:function(e){return L(this),null==this._seriesIndicesMap.get(e.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(e,t){L(this);var n=o(this._componentsMap.get("series"),e,t);P(this,n)},restoreData:function(e){var t=this._componentsMap;P(this,t.get("series"));var n=[];t.each((function(e,t){n.push(t)})),x.topologicalTravel(n,x.getAllClassMainTypes(),(function(n,i){a(t.get(n),(function(t){("series"!==n||!E(t,e))&&t.restoreData()}))}))}});function E(e,t){if(t){var n=t.seiresIndex,i=t.seriesId,r=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=r&&e.name!==r}}function A(e,t){var n=e.color&&!e.colorLayer;a(t,(function(t,i){"colorLayer"===i&&n||x.hasClass(i)||("object"===typeof t?e[i]=e[i]?m(e[i],t,!1):f(t):null==e[i]&&(e[i]=t))}))}function k(e){this.option={},this.option[C]=1,this._componentsMap=d({series:[]}),this._seriesIndices,this._seriesIndicesMap,A(e,this._theme.option),m(e,b,!1),this.mergeOption(e)}function D(e,t){l(t)||(t=t?[t]:[]);var n={};return a(t,(function(t){n[t]=(e.get(t)||[]).slice()})),n}function I(e,t,n){var i=t.type?t.type:n?n.subType:x.determineSubType(e,t);return i}function P(e,t){e._seriesIndicesMap=d(e._seriesIndices=s(t,(function(e){return e.componentIndex}))||[])}function O(e,t){return t.hasOwnProperty("subType")?o(e,(function(e){return e.subType===t.subType})):e}function L(e){}v(T,w);var R=T;e.exports=R},96753:function(e,t,n){var i=n(16949),r=n(28299),a=n(75269),o=a.makeInner,s=n(55480),l=s.enableClassExtend,c=s.enableClassCheck,u=n(12941),h=n(18089),d=n(78844),p=n(64562),f=i.mixin,m=o();function g(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}function v(e,t,n){for(var i=0;i<t.length;i++)if(t[i]&&(e=e&&"object"===typeof e?e[t[i]]:null,null==e))break;return null==e&&n&&(e=n.get(t)),e}function y(e,t){var n=m(e).getParent;return n?n.call(e,t):e.parentModel}g.prototype={constructor:g,init:null,mergeOption:function(e){i.merge(this.option,e,!0)},get:function(e,t){return null==e?this.option:v(this.option,this.parsePath(e),!t&&y(this,e))},getShallow:function(e,t){var n=this.option,i=null==n?n:n[e],r=!t&&y(this,e);return null==i&&r&&(i=r.getShallow(e)),i},getModel:function(e,t){var n,i=null==e?this.option:v(this.option,e=this.parsePath(e));return t=t||(n=y(this,e))&&n.getModel(e),new g(i,t,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var e=this.constructor;return new e(i.clone(this.option))},setReadOnly:function(e){},parsePath:function(e){return"string"===typeof e&&(e=e.split(".")),e},customizeGetParent:function(e){m(this).getParent=e},isAnimationEnabled:function(){if(!r.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},l(g),c(g),f(g,u),f(g,h),f(g,d),f(g,p);var _=g;e.exports=_},43763:function(e,t,n){n(70252);var i=n(16949),r=n(75269),a=n(3041),o=i.each,s=i.clone,l=i.map,c=i.merge,u=/^(min|max)?(.+)$/;function h(e){this._api=e,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function d(e,t,n){var r,a,s=[],l=[],c=e.timeline;if(e.baseOption&&(a=e.baseOption),(c||e.options)&&(a=a||{},s=(e.options||[]).slice()),e.media){a=a||{};var u=e.media;o(u,(function(e){e&&e.option&&(e.query?l.push(e):r||(r=e))}))}return a||(a=e),a.timeline||(a.timeline=c),o([a].concat(s).concat(i.map(l,(function(e){return e.option}))),(function(e){o(t,(function(t){t(e,n)}))})),{baseOption:a,timelineOptions:s,mediaDefault:r,mediaList:l}}function p(e,t,n){var r={width:t,height:n,aspectratio:t/n},a=!0;return i.each(e,(function(e,t){var n=t.match(u);if(n&&n[1]&&n[2]){var i=n[1],o=n[2].toLowerCase();f(r[o],e,i)||(a=!1)}})),a}function f(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t}function m(e,t){return e.join(",")===t.join(",")}function g(e,t){t=t||{},o(t,(function(t,n){if(null!=t){var i=e[n];if(a.hasClass(n)){t=r.normalizeToArray(t),i=r.normalizeToArray(i);var o=r.mappingToExists(i,t);e[n]=l(o,(function(e){return e.option&&e.exist?c(e.exist,e.option,!0):e.exist||e.option}))}else e[n]=c(i,t,!0)}}))}h.prototype={constructor:h,setOption:function(e,t){e&&i.each(r.normalizeToArray(e.series),(function(e){e&&e.data&&i.isTypedArray(e.data)&&i.setAsPrimitive(e.data)})),e=s(e);var n=this._optionBackup,a=d.call(this,e,t,!n);this._newBaseOption=a.baseOption,n?(g(n.baseOption,a.baseOption),a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},mountOption:function(e){var t=this._optionBackup;return this._timelineOptions=l(t.timelineOptions,s),this._mediaList=l(t.mediaList,s),this._mediaDefault=s(t.mediaDefault),this._currentMediaIndices=[],s(e?t.baseOption:this._newBaseOption)},getTimelineOption:function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=s(n[i.getCurrentIndex()],!0))}return t},getMediaOption:function(e){var t=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,a=[],o=[];if(!i.length&&!r)return o;for(var c=0,u=i.length;c<u;c++)p(i[c].query,t,n)&&a.push(c);return!a.length&&r&&(a=[-1]),a.length&&!m(a,this._currentMediaIndices)&&(o=l(a,(function(e){return s(-1===e?r.option:i[e].option)}))),this._currentMediaIndices=a,o}};var v=h;e.exports=v},21987:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(16949)),a=n(28299),o=n(68331),s=o.formatTime,l=o.encodeHTML,c=o.addCommas,u=o.getTooltipMarker,h=n(75269),d=n(3041),p=n(1826),f=n(88734),m=n(89317),g=m.getLayoutParams,v=m.mergeLayoutParam,y=n(28205),_=y.createTask,x=n(59336),b=x.prepareSource,w=x.getSource,S=n(3270),M=S.retrieveRawValue,C=h.makeInner(),T=d.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(e,t,n,i){this.seriesIndex=this.componentIndex,this.dataTask=_({count:k,reset:D}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),b(this);var r=this.getInitialData(e,n);P(r,this),this.dataTask.context.data=r,C(this).dataBeforeProcessed=r,E(this)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,i=n?g(e):{},a=this.subType;d.hasClass(a)&&(a+="Series"),r.merge(e,t.getTheme().get(this.subType)),r.merge(e,this.getDefaultOption()),h.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&v(e,i,n)},mergeOption:function(e,t){e=r.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=this.layoutMode;n&&v(this.option,e,n),b(this);var i=this.getInitialData(e,t);P(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,C(this).dataBeforeProcessed=i,E(this)},fillDataTextStyle:function(e){if(e&&!r.isTypedArray(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&h.defaultEmphasis(e[n],"label",t)},getInitialData:function(){},appendData:function(e){var t=this.getRawData();t.appendData(e.data)},getData:function(e){var t=L(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return C(this).data},setData:function(e){var t=L(this);if(t){var n=t.context;n.data!==e&&t.modifyOutputEnd&&t.setOutputEnd(e.count()),n.outputData=e,t!==this.dataTask&&(n.data=e)}C(this).data=e},getSource:function(){return w(this)},getRawData:function(){return C(this).dataBeforeProcessed},getBaseAxis:function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},formatTooltip:function(e,t,n,i){var a=this;i=i||"html";var o="html"===i?"<br/>":"\n",d="richText"===i,p={},f=0;function m(n){var o=r.reduce(n,(function(e,t,n){var i=v.getDimensionInfo(n);return e|(i&&!1!==i.tooltip&&null!=i.displayName)}),0),h=[];function m(e,n){var r=v.getDimensionInfo(n);if(r&&!1!==r.otherDims.tooltip){var m=r.type,g="sub"+a.seriesIndex+"at"+f,y=u({color:w,type:"subItem",renderMode:i,markerId:g}),_="string"===typeof y?y:y.content,x=(o?_+l(r.displayName||"-")+": ":"")+l("ordinal"===m?e+"":"time"===m?t?"":s("yyyy/MM/dd hh:mm:ss",e):c(e));x&&h.push(x),d&&(p[g]=w,++f)}}y.length?r.each(y,(function(t){m(M(v,e,t),t)})):r.each(n,m);var g=o?d?"\n":"<br/>":"",_=g+h.join(g||", ");return{renderMode:i,content:_,style:p}}function g(e){return{renderMode:i,content:l(c(e)),style:p}}var v=this.getData(),y=v.mapDimension("defaultedTooltip",!0),_=y.length,x=this.getRawValue(e),b=r.isArray(x),w=v.getItemVisual(e,"color");r.isObject(w)&&w.colorStops&&(w=(w.colorStops[0]||{}).color),w=w||"transparent";var S=_>1||b&&!_?m(x):g(_?M(v,e,y[0]):b?x[0]:x),C=S.content,T=a.seriesIndex+"at"+f,E=u({color:w,type:"item",renderMode:i,markerId:T});p[T]=w,++f;var A=v.getName(e),k=this.name;h.isNameSpecified(this)||(k=""),k=k?l(k)+(t?": ":o):"";var D="string"===typeof E?E:E.content,I=t?D+k+C:k+D+(A?l(A)+": "+C:C);return{html:I,markers:p}},isAnimationEnabled:function(){if(a.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(e,t,n){var i=this.ecModel,r=p.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},coordDimToDataDim:function(e){return this.getRawData().mapDimension(e,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function E(e){var t=e.name;h.isNameSpecified(e)||(e.name=A(e)||t)}function A(e){var t=e.getRawData(),n=t.mapDimension("seriesName",!0),i=[];return r.each(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}function k(e){return e.model.getRawData().count()}function D(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),I}function I(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function P(e,t){r.each(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,r.curry(O,t))}))}function O(e){var t=L(e);t&&t.setOutputEnd(this.count())}function L(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}r.mixin(T,f),r.mixin(T,p);var R=T;e.exports=R},33924:function(e){var t="";"undefined"!==typeof navigator&&(t=navigator.platform||"");var n={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};e.exports=n},18089:function(e,t,n){var i=n(15827),r=i([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),a={getAreaStyle:function(e,t){return r(this,e,t)}};e.exports=a},73593:function(e){var t={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};e.exports=t},1826:function(e,t,n){var i=n(75269),r=i.makeInner,a=i.normalizeToArray,o=r();function s(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}var l={clearColorPalette:function(){o(this).colorIdx=0,o(this).colorNameMap={}},getColorFromPalette:function(e,t,n){t=t||this;var i=o(t),r=i.colorIdx||0,l=i.colorNameMap=i.colorNameMap||{};if(l.hasOwnProperty(e))return l[e];var c=a(this.get("color",!0)),u=this.get("colorLayer",!0),h=null!=n&&u?s(u,n):c;if(h=h||c,h&&h.length){var d=h[r];return e&&(l[e]=d),i.colorIdx=(r+1)%h.length,d}}};e.exports=l},88734:function(e,t,n){var i=n(3270),r=i.retrieveRawValue,a=n(68331),o=a.getTooltipMarker,s=a.formatTpl,l=n(75269),c=l.getTooltipRenderMode,u=/\{@(.+?)\}/g,h={getDataParams:function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),a=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"color"),u=n.getItemVisual(e,"borderColor"),h=this.ecModel.getComponent("tooltip"),d=h&&h.get("renderMode"),p=c(d),f=this.mainType,m="series"===f,g=n.userOutput;return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:m?this.subType:null,seriesIndex:this.seriesIndex,seriesId:m?this.id:null,seriesName:m?this.name:null,name:a,dataIndex:r,data:s,dataType:t,value:i,color:l,borderColor:u,dimensionNames:g?g.dimensionNames:null,encode:g?g.encode:null,marker:o({color:l,renderMode:p}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(e,t,n,i,a){t=t||"normal";var o=this.getData(n),l=o.getItemModel(e),c=this.getDataParams(e,n);null!=i&&c.value instanceof Array&&(c.value=c.value[i]);var h=l.get("normal"===t?[a||"label","formatter"]:[t,a||"label","formatter"]);if("function"===typeof h)return c.status=t,c.dimensionIndex=i,h(c);if("string"===typeof h){var d=s(h,c);return d.replace(u,(function(t,n){var i=n.length;return"["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),r(o,e,n)}))}},getRawValue:function(e,t){return r(this.getData(t),e)},formatTooltip:function(){}};e.exports=h},64562:function(e,t,n){var i=n(15827),r=i([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),a={getItemStyle:function(e,t){var n=r(this,e,t),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var e=this.get("borderType");return"solid"===e||null==e?null:"dashed"===e?[5,5]:[1,1]}};e.exports=a},12941:function(e,t,n){var i=n(15827),r=i([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),a={getLineStyle:function(e){var t=r(this,e);return t.lineDash=this.getLineDash(t.lineWidth),t},getLineDash:function(e){null==e&&(e=1);var t=this.get("type"),n=Math.max(e,2),i=4*e;return"solid"!==t&&null!=t&&("dashed"===t?[i,i]:[n,n])}};e.exports=a},15827:function(e,t,n){var i=n(16949);function r(e){for(var t=0;t<e.length;t++)e[t][1]||(e[t][1]=e[t][0]);return function(t,n,r){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(n&&i.indexOf(n,s)>=0||r&&i.indexOf(r,s)<0)){var l=t.getShallow(s);null!=l&&(a[e[o][0]]=l)}}return a}}e.exports=r},78844:function(e,t,n){var i=n(53164),r=n(60823),a=["textStyle","color"],o={getTextColor:function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(a):null)},getFont:function(){return r.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(e){return i.getBoundingRect(e,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};e.exports=o},63188:function(e,t,n){var i=n(76371),r=(i.__DEV__,n(16949)),a=r.createHashMap,o=(r.retrieve,r.each);function s(e){this.coordSysName=e,this.coordSysDims=[],this.axisMap=a(),this.categoryAxisMap=a(),this.firstCategoryDimIndex=null}function l(e){var t=e.get("coordinateSystem"),n=new s(t),i=c[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}var c={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis")[0],a=e.getReferringComponents("yAxis")[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",a),u(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),u(a)&&(i.set("y",a),t.firstCategoryDimIndex,t.firstCategoryDimIndex=1)},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis")[0];t.coordSysDims=["single"],n.set("single",r),u(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar")[0],a=r.findAxisModel("radiusAxis"),o=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),u(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),u(o)&&(i.set("angle",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var r=e.ecModel,a=r.getComponent("parallel",e.get("parallelIndex")),s=t.coordSysDims=a.dimensions.slice();o(a.parallelAxisIndex,(function(e,a){var o=r.getComponent("parallelAxis",e),l=s[a];n.set(l,o),u(o)&&null==t.firstCategoryDimIndex&&(i.set(l,o),t.firstCategoryDimIndex=a)}))}};function u(e){return"category"===e.get("type")}t.getCoordSysInfoBySeries=l},691:function(e,t,n){var i=n(16949),r=i.each,a=i.isArray,o=i.isObject,s=n(31398),l=n(75269),c=l.normalizeToArray;function u(e,t){t=t.split(",");for(var n=e,i=0;i<t.length;i++)if(n=n&&n[t[i]],null==n)break;return n}function h(e,t,n,i){t=t.split(",");for(var r,a=e,o=0;o<t.length-1;o++)r=t[o],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[t[o]])&&(a[t[o]]=n)}function d(e){r(p,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var p=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],f=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function m(e,t){s(e,t),e.series=c(e.series),r(e.series,(function(e){if(o(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t)null!=e.clockWise&&(e.clockwise=e.clockWise);else if("gauge"===t){var n=u(e,"pointer.color");null!=n&&h(e,"itemStyle.color",n)}d(e)}})),e.dataRange&&(e.visualMap=e.dataRange),r(f,(function(t){var n=e[t];n&&(a(n)||(n=[n]),r(n,(function(e){d(e)})))}))}e.exports=m},31398:function(e,t,n){n(70252);var i=n(16949),r=n(75269),a=i.each,o=i.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=s.length;n<r;n++){var a=s[n],o=t.normal,l=t.emphasis;o&&o[a]&&(e[a]=e[a]||{},e[a].normal?i.merge(e[a].normal,o[a]):e[a].normal=o[a],o[a]=null),l&&l[a]&&(e[a]=e[a]||{},e[a].emphasis?i.merge(e[a].emphasis,l[a]):e[a].emphasis=l[a],l[a]=null)}}function c(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,a=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,i.defaults(e[t],r)):e[t]=r),a&&(e.emphasis=e.emphasis||{},e.emphasis[t]=a)}}function u(e){c(e,"itemStyle"),c(e,"lineStyle"),c(e,"areaStyle"),c(e,"label"),c(e,"labelLine"),c(e,"upperLabel"),c(e,"edgeLabel")}function h(e,t){var n=o(e)&&e[t],i=o(n)&&n.textStyle;if(i)for(var a=0,s=r.TEXT_STYLE_OPTIONS.length;a<s;a++){t=r.TEXT_STYLE_OPTIONS[a];i.hasOwnProperty(t)&&(n[t]=i[t])}}function d(e){e&&(u(e),h(e,"label"),e.emphasis&&h(e.emphasis,"label"))}function p(e){if(o(e)){l(e),u(e),h(e,"label"),h(e,"upperLabel"),h(e,"edgeLabel"),e.emphasis&&(h(e.emphasis,"label"),h(e.emphasis,"upperLabel"),h(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(l(t),d(t));var n=e.markLine;n&&(l(n),d(n));var r=e.markArea;r&&d(r);var a=e.data;if("graph"===e.type){a=a||e.nodes;var s=e.links||e.edges;if(s&&!i.isTypedArray(s))for(var p=0;p<s.length;p++)d(s[p]);i.each(e.categories,(function(e){u(e)}))}if(a&&!i.isTypedArray(a))for(p=0;p<a.length;p++)d(a[p]);t=e.markPoint;if(t&&t.data){var f=t.data;for(p=0;p<f.length;p++)d(f[p])}n=e.markLine;if(n&&n.data){var m=n.data;for(p=0;p<m.length;p++)i.isArray(m[p])?(d(m[p][0]),d(m[p][1])):d(m[p])}"gauge"===e.type?(h(e,"axisLabel"),h(e,"title"),h(e,"detail")):"treemap"===e.type?(c(e.breadcrumb,"itemStyle"),i.each(e.levels,(function(e){u(e)}))):"tree"===e.type&&u(e.leaves)}}function f(e){return i.isArray(e)?e:e?[e]:[]}function m(e){return(i.isArray(e)?e[0]:e)||{}}function g(e,t){a(f(e.series),(function(e){o(e)&&p(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),a(n,(function(t){a(f(e[t]),(function(e){e&&(h(e,"axisLabel"),h(e.axisPointer,"label"))}))})),a(f(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;h(t,"axisLabel"),h(t&&t.axisPointer,"label")})),a(f(e.calendar),(function(e){c(e,"itemStyle"),h(e,"dayLabel"),h(e,"monthLabel"),h(e,"yearLabel")})),a(f(e.radar),(function(e){h(e,"name")})),a(f(e.geo),(function(e){o(e)&&(d(e),a(f(e.regions),(function(e){d(e)})))})),a(f(e.timeline),(function(e){d(e),c(e,"label"),c(e,"itemStyle"),c(e,"controlStyle",!0);var t=e.data;i.isArray(t)&&i.each(t,(function(e){i.isObject(e)&&(c(e,"label"),c(e,"itemStyle"))}))})),a(f(e.toolbox),(function(e){c(e,"iconStyle"),a(e.feature,(function(e){c(e,"iconStyle")}))})),h(m(e.axisPointer),"label"),h(m(e.tooltip).axisPointer,"label")}e.exports=g},8872:function(e){function t(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf((function(e){for(var t=i.getName(e),r=0;r<n.length;r++)if(!n[r].isSelected(t))return!1;return!0}))}}}}e.exports=t},212:function(e){var t={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},n=function(e,t){return Math.round(e.length/2)};function i(e){return{seriesType:e,modifyOutputEnd:!0,reset:function(e,i,r){var a=e.getData(),o=e.get("sampling"),s=e.coordinateSystem;if("cartesian2d"===s.type&&o){var l,c=s.getBaseAxis(),u=s.getOtherAxis(c),h=c.getExtent(),d=Math.abs(h[1]-h[0]),p=Math.round(a.count()/d);if(p>1)"string"===typeof o?l=t[o]:"function"===typeof o&&(l=o),l&&e.setData(a.downSample(a.mapDimension(u.dim),1/p,l,n))}}}}e.exports=i},37841:function(e,t,n){n(70252);var i=n(16949),r=i.createHashMap,a=i.each;function o(e){var t=r();e.eachSeries((function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),r=e.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:e};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}})),t.each(s)}function s(e){a(e,(function(t,n){var i=[],r=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=o.map(a,(function(a,l,c){var u,h,d=o.get(t.stackedDimension,c);if(isNaN(d))return r;s?h=o.getRawIndex(c):u=o.get(t.stackedByDimension,c);for(var p=NaN,f=n-1;f>=0;f--){var m=e[f];if(s||(h=m.data.rawIndexOf(m.stackedByDimension,u)),h>=0){var g=m.data.getByRawIndex(m.stackResultDimension,h);if(d>=0&&g>0||d<=0&&g<0){d+=g,p=g;break}}}return i[0]=d,i[1]=p,i}));o.hostModel.setData(l),t.data=l}))}e.exports=o},61636:function(e,t,n){n(70252);var i=n(80720),r=n(68331),a=n(84361),o=n(8750),s=i.round,l=a.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},unionExtent:function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),l.prototype.setExtent.call(this,t[0],t[1])},getInterval:function(){return this._interval},setInterval:function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=o.getIntervalPrecision(e)},getTicks:function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,a=[];if(!t)return a;var o=1e4;n[0]<i[0]&&(e?a.push(s(i[0]-t,r)):a.push(n[0]));var l=i[0];while(l<=i[1]){if(a.push(l),l=s(l+t,r),l===a[a.length-1])break;if(a.length>o)return[]}var c=a.length?a[a.length-1]:i[1];return n[1]>c&&(e?a.push(s(c+t,r)):a.push(n[1])),a},getMinorTicks:function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),a=1;a<t.length;a++){var o=t[a],s=t[a-1],l=0,c=[],u=o-s,h=u/e;while(l<e-1){var d=i.round(s+(l+1)*h);d>r[0]&&d<r[1]&&c.push(d),l++}n.push(c)}return n},getLabel:function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=i.getPrecisionSafe(e)||0:"auto"===n&&(n=this._intervalPrecision),e=s(e,n,!0),r.addCommas(e)},niceTicks:function(e,t,n){e=e||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var a=o.intervalScaleNiceTicks(i,e,t,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},niceExtent:function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=t[0];e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var i=t[1]-t[0];isFinite(i)||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=s(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=s(Math.ceil(t[1]/r)*r))}});l.create=function(){return new l};var c=l;e.exports=c},34329:function(e,t,n){var i=n(16949),r=n(84361),a=n(80720),o=n(61636),s=r.prototype,l=o.prototype,c=a.getPrecisionSafe,u=a.round,h=Math.floor,d=Math.ceil,p=Math.pow,f=Math.log,m=r.extend({type:"log",base:10,$constructor:function(){r.apply(this,arguments),this._originalScale=new o},getTicks:function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return i.map(l.getTicks.call(this,e),(function(e){var i=a.round(p(this.base,e));return i=e===n[0]&&t.__fixMin?g(i,r[0]):i,i=e===n[1]&&t.__fixMax?g(i,r[1]):i,i}),this)},getMinorTicks:l.getMinorTicks,getLabel:l.getLabel,scale:function(e){return e=s.scale.call(this,e),p(this.base,e)},setExtent:function(e,t){var n=this.base;e=f(e)/f(n),t=f(t)/f(n),l.setExtent.call(this,e,t)},getExtent:function(){var e=this.base,t=s.getExtent.call(this);t[0]=p(e,t[0]),t[1]=p(e,t[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(t[0]=g(t[0],i[0])),n.__fixMax&&(t[1]=g(t[1],i[1])),t},unionExtent:function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=f(e[0])/f(t),e[1]=f(e[1])/f(t),s.unionExtent.call(this,e)},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},niceTicks:function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var i=a.quantity(n),r=e/n*i;r<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var o=[a.round(d(t[0]/i)*i),a.round(h(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},niceExtent:function(e){l.niceExtent.call(this,e);var t=this._originalScale;t.__fixMin=e.fixMin,t.__fixMax=e.fixMax}});function g(e,t){return u(e,c(t))}i.each(["contain","normalize"],(function(e){m.prototype[e]=function(t){return t=f(t)/f(this.base),s[e].call(this,t)}})),m.create=function(){return new m};var v=m;e.exports=v},40836:function(e,t,n){n(70252);var i=n(16949),r=n(84361),a=n(82721),o=r.prototype,s=r.extend({type:"ordinal",init:function(e,t){e&&!i.isArray(e)||(e=new a({categories:e})),this._ordinalMeta=e,this._extent=t||[0,e.categories.length-1]},parse:function(e){return"string"===typeof e?this._ordinalMeta.getOrdinal(e):Math.round(e)},contain:function(e){return e=this.parse(e),o.contain.call(this,e)&&null!=this._ordinalMeta.categories[e]},normalize:function(e){return o.normalize.call(this,this.parse(e))},scale:function(e){return Math.round(o.scale.call(this,e))},getTicks:function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push(n),n++;return e},getLabel:function(e){if(!this.isBlank())return this._ordinalMeta.categories[e]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:i.noop,niceExtent:i.noop});s.create=function(){return new s};var l=s;e.exports=l},84361:function(e,t,n){var i=n(55480);function r(e){this._setting=e||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}r.prototype.parse=function(e){return e},r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.contain=function(e){var t=this._extent;return e>=t[0]&&e<=t[1]},r.prototype.normalize=function(e){var t=this._extent;return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},r.prototype.scale=function(e){var t=this._extent;return e*(t[1]-t[0])+t[0]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r.prototype.getLabel=null,i.enableClassExtend(r),i.enableClassManagement(r,{registerWhenExtend:!0});var a=r;e.exports=a},83567:function(e,t,n){var i=n(16949),r=n(80720),a=n(68331),o=n(8750),s=n(61636),l=s.prototype,c=Math.ceil,u=Math.floor,h=1e3,d=60*h,p=60*d,f=24*p,m=function(e,t,n,i){while(n<i){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n},g=s.extend({type:"time",getLabel:function(e){var t=this._stepLvl,n=new Date(e);return a.formatTime(t[0],n,this.getSetting("useUTC"))},niceExtent:function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=f,t[1]+=f),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-f}this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=r.round(u(t[0]/i)*i)),e.fixMax||(t[1]=r.round(c(t[1]/i)*i))},niceTicks:function(e,t,n){e=e||10;var i=this._extent,a=i[1]-i[0],s=a/e;null!=t&&s<t&&(s=t),null!=n&&s>n&&(s=n);var l=v.length,h=m(v,s,0,l),d=v[Math.min(h,l-1)],p=d[1];if("year"===d[0]){var f=a/p,g=r.nice(f/e,!0);p*=g}var y=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,_=[Math.round(c((i[0]-y)/p)*p+y),Math.round(u((i[1]-y)/p)*p+y)];o.fixExtent(_,i),this._stepLvl=d,this._interval=p,this._niceExtent=_},parse:function(e){return+r.parseDate(e)}});i.each(["contain","normalize"],(function(e){g.prototype[e]=function(t){return l[e].call(this,this.parse(t))}}));var v=[["hh:mm:ss",h],["hh:mm:ss",5*h],["hh:mm:ss",10*h],["hh:mm:ss",15*h],["hh:mm:ss",30*h],["hh:mm\nMM-dd",d],["hh:mm\nMM-dd",5*d],["hh:mm\nMM-dd",10*d],["hh:mm\nMM-dd",15*d],["hh:mm\nMM-dd",30*d],["hh:mm\nMM-dd",p],["hh:mm\nMM-dd",2*p],["hh:mm\nMM-dd",6*p],["hh:mm\nMM-dd",12*p],["MM-dd\nyyyy",f],["MM-dd\nyyyy",2*f],["MM-dd\nyyyy",3*f],["MM-dd\nyyyy",4*f],["MM-dd\nyyyy",5*f],["MM-dd\nyyyy",6*f],["week",7*f],["MM-dd\nyyyy",10*f],["week",14*f],["week",21*f],["month",31*f],["week",42*f],["month",62*f],["week",70*f],["quarter",95*f],["month",31*f*4],["month",31*f*5],["half-year",380*f/2],["month",31*f*8],["month",31*f*10],["year",380*f]];g.create=function(e){return new g({useUTC:e.ecModel.get("useUTC")})};var y=g;e.exports=y},8750:function(e,t,n){var i=n(80720),r=i.round;function a(e,t,n,a){var s={},c=e[1]-e[0],u=s.interval=i.nice(c/t,!0);null!=n&&u<n&&(u=s.interval=n),null!=a&&u>a&&(u=s.interval=a);var h=s.intervalPrecision=o(u),d=s.niceTickExtent=[r(Math.ceil(e[0]/u)*u,h),r(Math.floor(e[1]/u)*u,h)];return l(d,e),s}function o(e){return i.getPrecisionSafe(e)+2}function s(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function l(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),s(e,0,t),s(e,1,t),e[0]>e[1]&&(e[0]=e[1])}t.intervalScaleNiceTicks=a,t.getIntervalPrecision=o,t.fixExtent=l},39493:function(e,t,n){var i=n(16949),r=i.each,a=i.map,o=i.isFunction,s=i.createHashMap,l=i.noop,c=n(28205),u=c.createTask,h=n(30108),d=h.getUID,p=n(81457),f=n(5739),m=n(75269),g=m.normalizeToArray;function v(e,t,n,i){this.ecInstance=e,this.api=t,this.unfinished;n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice();this._allHandlers=n.concat(i),this._stageTaskMap=s()}var y=v.prototype;function _(e,t,n,i,a){var o;function s(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}a=a||{},r(t,(function(t,r){if(!a.visualType||a.visualType===t.visualType){var l=e._stageTaskMap.get(t.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var h,d=u.agentStubMap;d.each((function(e){s(a,e)&&(e.dirty(),h=!0)})),h&&u.dirty(),x(u,i);var p=e.getPerformArgs(u,a.block);d.each((function(e){e.perform(p)})),o|=u.perform(p)}else c&&c.each((function(r,l){s(a,r)&&r.dirty();var c=e.getPerformArgs(r,a.block);c.skip=!t.performRawSeries&&n.isSeriesFiltered(r.context.model),x(r,i),o|=r.perform(c)}))}})),e.unfinished|=o}y.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},y.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,a=r?n.step:null,o=i&&i.modDataCount,s=null!=o?Math.ceil(o/a):null;return{step:a,modBy:s,modDataCount:o}}},y.getPipeline=function(e){return this._pipelineMap.get(e)},y.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),r=i.count(),a=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,o=e.get("large")&&r>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:a,modDataCount:s,large:o}},y.restorePipelines=function(e){var t=this,n=t._pipelineMap=s();e.eachSeries((function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),P(t,e,e.dataTask)}))},y.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.ecInstance.getModel(),n=this.api;r(this._allHandlers,(function(i){var r=e.get(i.uid)||e.set(i.uid,[]);i.reset&&b(this,i,r,t,n),i.overallReset&&w(this,i,r,t,n)}),this)},y.prepareView=function(e,t,n,i){var r=e.renderTask,a=r.context;a.model=t,a.ecModel=n,a.api=i,r.__block=!e.incrementalPrepareRender,P(this,t,r)},y.performDataProcessorTasks=function(e,t){_(this,this._dataProcessorHandlers,e,t,{block:!0})},y.performVisualTasks=function(e,t,n){_(this,this._visualHandlers,e,t,n)},y.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t|=e.dataTask.perform()})),this.unfinished|=t},y.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))};var x=y.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)};function b(e,t,n,i,r){var a=n.seriesTaskMap||(n.seriesTaskMap=s()),o=t.seriesType,l=t.getTargetSeries;function c(n){var o=n.uid,s=a.get(o)||a.set(o,u({plan:E,reset:A,count:I}));s.context={model:n,ecModel:i,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:e},P(e,n,s)}t.createOnAllSeries?i.eachRawSeries(c):o?i.eachRawSeriesByType(o,c):l&&l(i,r).each(c);var h=e._pipelineMap;a.each((function(e,t){h.get(t)||(e.dispose(),a.removeKey(t))}))}function w(e,t,n,i,a){var o=n.overallTask=n.overallTask||u({reset:S});o.context={ecModel:i,api:a,overallReset:t.overallReset,scheduler:e};var l=o.agentStubMap=o.agentStubMap||s(),c=t.seriesType,h=t.getTargetSeries,d=!0,p=t.modifyOutputEnd;function f(t){var n=t.uid,i=l.get(n);i||(i=l.set(n,u({reset:M,onDirty:T})),o.dirty()),i.context={model:t,overallProgress:d,modifyOutputEnd:p},i.agent=o,i.__block=d,P(e,t,i)}c?i.eachRawSeriesByType(c,f):h?h(i,a).each(f):(d=!1,r(i.getSeries(),f));var m=e._pipelineMap;l.each((function(e,t){m.get(t)||(e.dispose(),o.dirty(),l.removeKey(t))}))}function S(e){e.overallReset(e.ecModel,e.api,e.payload)}function M(e,t){return e.overallProgress&&C}function C(){this.agent.dirty(),this.getDownstream().dirty()}function T(){this.agent&&this.agent.dirty()}function E(e){return e.plan&&e.plan(e.model,e.ecModel,e.api,e.payload)}function A(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=g(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?a(t,(function(e,t){return D(t)})):k}var k=D(0);function D(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var a=t.start;a<t.end;a++)r.dataEach(i,a);else r&&r.progress&&r.progress(t,i)}}function I(e){return e.data.count()}function P(e,t,n){var i=t.uid,r=e._pipelineMap.get(i);!r.head&&(r.head=n),r.tail&&r.tail.pipe(n),r.tail=n,n.__idxInPipeline=r.count++,n.__pipeline=r}function O(e){L=null;try{e(R,N)}catch(t){}return L}v.wrapStageHandler=function(e,t){return o(e)&&(e={overallReset:e,seriesType:O(e)}),e.uid=d("stageHandler"),t&&(e.visualType=t),e};var L,R={},N={};function F(e,t){for(var n in t.prototype)e[n]=l}F(R,p),F(N,f),R.eachSeriesByType=R.eachRawSeriesByType=function(e){L=e},R.eachComponent=function(e){"series"===e.mainType&&e.subType&&(L=e.subType)};var B=v;e.exports=B},28205:function(e,t,n){var i=n(16949),r=(i.assert,i.isArray),a=n(76371);a.__DEV__;function o(e){return new s(e)}function s(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0,this.context}var l=s.prototype;l.perform=function(e){var t,n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var o,s=p(this._modBy),l=this._modDataCount||0,c=p(e&&e.modBy),d=e&&e.modDataCount||0;function p(e){return!(e>=1)&&(e=1),e}s===c&&l===d||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=h(this,i)),this._modBy=c,this._modDataCount=d;var f=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var m=this._dueIndex,g=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!i&&(o||m<g)){var v=this._progress;if(r(v))for(var y=0;y<v.length;y++)u(this,v[y],m,g,c,d);else u(this,v,m,g,c,d)}this._dueIndex=g;var _=null!=this._settedOutputEnd?this._settedOutputEnd:g;this._outputDueEnd=_}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var c=function(){var e,t,n,i,r,a={reset:function(l,c,u,h){t=l,e=c,n=u,i=h,r=Math.ceil(i/n),a.next=n>1&&i>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%r*n+Math.ceil(t/r),o=t>=e?null:a<i?a:t;return t++,o}}();function u(e,t,n,i,r,a){c.reset(n,i,r,a),e._callingProgress=t,e._callingProgress({start:n,end:i,count:i-n,next:c.next},e.context)}function h(e,t){var n,i;e._dueIndex=e._outputDueEnd=e._dueEnd=0,e._settedOutputEnd=null,!t&&e._reset&&(n=e._reset(e.context),n&&n.progress&&(i=n.forceFirstProgress,n=n.progress),r(n)&&!n.length&&(n=null)),e._progress=n,e._modBy=e._modDataCount=null;var a=e._downstream;return a&&a.dirty(),i}l.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},l.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},l.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},l.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},l.getUpstream=function(){return this._upstream},l.getDownstream=function(){return this._downstream},l.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t.createTask=o},61520:function(e){var t="#eee",n=function(){return{axisLine:{lineStyle:{color:t}},axisTick:{lineStyle:{color:t}},axisLabel:{textStyle:{color:t}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:t}}}},i=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],r={color:i,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:t},crossStyle:{color:t},label:{color:"#000"}}},legend:{textStyle:{color:t}},textStyle:{color:t},title:{textStyle:{color:t}},toolbox:{iconStyle:{normal:{borderColor:t}}},dataZoom:{textStyle:{color:t}},visualMap:{textStyle:{color:t}},timeline:{lineStyle:{color:t},itemStyle:{normal:{color:i[1]}},label:{normal:{textStyle:{color:t}}},controlStyle:{normal:{color:t,borderColor:t}}},timeAxis:n(),logAxis:n(),valueAxis:n(),categoryAxis:n(),line:{symbol:"circle"},graph:{color:i},gauge:{title:{textStyle:{color:t}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};r.categoryAxis.splitLine.show=!1;var a=r;e.exports=a},62710:function(e){var t=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],n={color:t,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],t]};e.exports=n},71998:function(e,t,n){n(70252);var i=n(16949);function r(){var e,t=[],n={};return{add:function(e,r,a,o,s){return i.isString(o)&&(s=o,o=0),!n[e.id]&&(n[e.id]=1,t.push({el:e,target:r,time:a,delay:o,easing:s}),!0)},done:function(t){return e=t,this},start:function(){for(var i=t.length,r=0,a=t.length;r<a;r++){var o=t[r];o.el.animateTo(o.target,o.time,o.delay,o.easing,s)}return this;function s(){i--,i||(t.length=0,n={},e&&e())}}}}t.createWrap=r},55480:function(e,t,n){n(70252);var i=n(76371),r=(i.__DEV__,n(16949)),a=".",o="___EC__COMPONENT__CONTAINER___";function s(e){var t={main:"",sub:""};return e&&(e=e.split(a),t.main=e[0]||"",t.sub=e[1]||""),t}function l(e){r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function c(e,t){e.$constructor=e,e.extend=function(e){var t=this,n=function(){e.$constructor?e.$constructor.apply(this,arguments):t.apply(this,arguments)};return r.extend(n.prototype,e),n.extend=this.extend,n.superCall=d,n.superApply=p,r.inherits(n,this),n.superClass=t,n}}var u=0;function h(e){var t=["__\0is_clz",u++,Math.random().toFixed(3)].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function d(e,t){var n=r.slice(arguments,2);return this.superClass.prototype[t].apply(e,n)}function p(e,t,n){return this.superClass.prototype[t].apply(e,n)}function f(e,t){t=t||{};var n={};function i(e){var t=n[e.main];return t&&t[o]||(t=n[e.main]={},t[o]=!0),t}if(e.registerClass=function(e,t){if(t)if(l(t),t=s(t),t.sub){if(t.sub!==o){var r=i(t);r[t.sub]=e}}else n[t.main]=e;return e},e.getClass=function(e,t,i){var r=n[e];if(r&&r[o]&&(r=t?r[t]:null),i&&!r)throw new Error(t?"Component "+e+"."+(t||"")+" not exists. Load it first.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){e=s(e);var t=[],i=n[e.main];return i&&i[o]?r.each(i,(function(e,n){n!==o&&t.push(e)})):t.push(i),t},e.hasClass=function(e){return e=s(e),!!n[e.main]},e.getAllClassMainTypes=function(){var e=[];return r.each(n,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){e=s(e);var t=n[e.main];return t&&t[o]},e.parseClassType=s,t.registerWhenExtend){var a=e.extend;a&&(e.extend=function(t){var n=a.call(this,t);return e.registerClass(n,t.type)})}return e}function m(e,t){}t.parseClassType=s,t.enableClassExtend=c,t.enableClassCheck=h,t.enableClassManagement=f,t.setReadOnly=m},30108:function(e,t,n){n(70252);var i=n(16949),r=n(55480),a=r.parseClassType,o=0;function s(e){return[e||"",o++,Math.random().toFixed(5)].join("_")}function l(e){var t={};return e.registerSubTypeDefaulter=function(e,n){e=a(e),t[e.main]=n},e.determineSubType=function(n,i){var r=i.type;if(!r){var o=a(n).main;e.hasSubTypes(n)&&t[o]&&(r=t[o](i))}return r},e}function c(e,t){function n(e){var n={},o=[];return i.each(e,(function(s){var l=r(n,s),c=l.originalDeps=t(s),u=a(c,e);l.entryCount=u.length,0===l.entryCount&&o.push(s),i.each(u,(function(e){i.indexOf(l.predecessor,e)<0&&l.predecessor.push(e);var t=r(n,e);i.indexOf(t.successor,e)<0&&t.successor.push(s)}))})),{graph:n,noEntryList:o}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function a(e,t){var n=[];return i.each(e,(function(e){i.indexOf(t,e)>=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,r,a){if(e.length){var o=n(t),s=o.graph,l=o.noEntryList,c={};i.each(e,(function(e){c[e]=!0}));while(l.length){var u=l.pop(),h=s[u],d=!!c[u];d&&(r.call(a,u,h.originalDeps.slice()),delete c[u]),i.each(h.successor,d?f:p)}i.each(c,(function(){throw new Error("Circle dependency may exists")}))}function p(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function f(e){c[e]=!0,p(e)}}}t.getUID=s,t.enableSubTypeDefaulter=l,t.enableTopologicalTravel=c},68331:function(e,t,n){var i=n(16949),r=n(53164),a=n(80720);function o(e){return isNaN(e)?"-":(e=(e+"").split("."),e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:""))}function s(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var l=i.normalizeCssArray,c=/([&<>"'])/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(e){return null==e?"":(e+"").replace(c,(function(e,t){return u[t]}))}var d=["a","b","c","d","e","f","g"],p=function(e,t){return"{"+e+(null==t?"":t)+"}"};function f(e,t,n){i.isArray(t)||(t=[t]);var r=t.length;if(!r)return"";for(var a=t[0].$vars||[],o=0;o<a.length;o++){var s=d[o];e=e.replace(p(s),p(s,0))}for(var l=0;l<r;l++)for(var c=0;c<a.length;c++){var u=t[l][a[c]];e=e.replace(p(d[c],l),n?h(u):u)}return e}function m(e,t,n){return i.each(t,(function(t,i){e=e.replace("{"+i+"}",n?h(t):t)})),e}function g(e,t){e=i.isString(e)?{color:e,extraCssText:t}:e||{};var n=e.color,r=e.type,a=(t=e.extraCssText,e.renderMode||"html"),o=e.markerId||"X";return n?"html"===a?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+h(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+h(n)+";"+(t||"")+'"></span>':{renderMode:a,content:"{marker"+o+"|} ",style:{color:n}}:""}function v(e,t){return e+="","0000".substr(0,t-e.length)+e}function y(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var i=a.parseDate(t),r=n?"UTC":"",o=i["get"+r+"FullYear"](),s=i["get"+r+"Month"]()+1,l=i["get"+r+"Date"](),c=i["get"+r+"Hours"](),u=i["get"+r+"Minutes"](),h=i["get"+r+"Seconds"](),d=i["get"+r+"Milliseconds"]();return e=e.replace("MM",v(s,2)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",v(l,2)).replace("d",l).replace("hh",v(c,2)).replace("h",c).replace("mm",v(u,2)).replace("m",u).replace("ss",v(h,2)).replace("s",h).replace("SSS",v(d,3)),e}function _(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}var x=r.truncateText;function b(e){return r.getBoundingRect(e.text,e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich,e.truncate)}function w(e,t,n,i,a,o,s,l){return r.getBoundingRect(e,t,n,i,a,l,o,s)}function S(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location=e}else window.open(e,t)}t.addCommas=o,t.toCamelCase=s,t.normalizeCssArray=l,t.encodeHTML=h,t.formatTpl=f,t.formatTplSimple=m,t.getTooltipMarker=g,t.formatTime=y,t.capitalFirst=_,t.truncateText=x,t.getTextBoundingRect=b,t.getTextRect=w,t.windowOpen=S},60823:function(e,t,n){var i=n(16949),r=n(57131),a=n(35098),o=n(16317),s=n(89457),l=n(85632),c=n(82548),u=n(69406);t.Image=u;var h=n(58511);t.Group=h;var d=n(70939);t.Text=d;var p=n(52205);t.Circle=p;var f=n(19154);t.Sector=f;var m=n(11893);t.Ring=m;var g=n(37462);t.Polygon=g;var v=n(83651);t.Polyline=v;var y=n(13969);t.Rect=y;var _=n(71865);t.Line=_;var x=n(22085);t.BezierCurve=x;var b=n(49555);t.Arc=b;var w=n(50696);t.CompoundPath=w;var S=n(90377);t.LinearGradient=S;var M=n(39153);t.RadialGradient=M;var C=n(17913);t.BoundingRect=C;var T=n(89732);t.IncrementalDisplayable=T;var E=n(34073),A=Math.max,k=Math.min,D={},I=1,P={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},O="emphasis",L="normal",R=1,N={},F={};function B(e){return l.extend(e)}function z(e,t){return r.extendFromString(e,t)}function V(e,t){F[e]=t}function U(e){if(F.hasOwnProperty(e))return F[e]}function H(e,t,n,i){var a=r.createFromString(e,t);return n&&("center"===i&&(n=j(n,a.getBoundingRect())),G(a,n)),a}function $(e,t,n){var i=new u({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var r={width:e.width,height:e.height};i.setStyle(j(t,r))}}});return i}function j(e,t){var n,i=t.width/t.height,r=e.height*i;r<=e.width?n=e.height:(r=e.width,n=r/i);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-n/2,width:r,height:n}}var W=r.mergePath;function G(e,t){if(e.applyTransform){var n=e.getBoundingRect(),i=n.calculateTransform(t);e.applyTransform(i)}}function q(e){return E.subPixelOptimizeLine(e.shape,e.shape,e.style),e}function X(e){return E.subPixelOptimizeRect(e.shape,e.shape,e.style),e}var Y=E.subPixelOptimize;function K(e){return null!=e&&"none"!==e}var Z=i.createHashMap(),J=0;function Q(e){if("string"!==typeof e)return e;var t=Z.get(e);return t||(t=a.lift(e,-.1),J<1e4&&(Z.set(e,t),J++)),t}function ee(e){if(e.__hoverStlDirty){e.__hoverStlDirty=!1;var t=e.__hoverStl;if(t){var n=e.__cachedNormalStl={};e.__cachedNormalZ2=e.z2;var i=e.style;for(var r in t)null!=t[r]&&(n[r]=i[r]);n.fill=i.fill,n.stroke=i.stroke}else e.__cachedNormalStl=e.__cachedNormalZ2=null}}function te(e){var t=e.__hoverStl;if(t&&!e.__highlighted){var n=e.__zr,i=e.useHoverLayer&&n&&"canvas"===n.painter.type;if(e.__highlighted=i?"layer":"plain",!(e.isGroup||!n&&e.useHoverLayer)){var r=e,a=e.style;i&&(r=n.addHover(e),a=r.style),Me(a),i||ee(r),a.extendFrom(t),ne(a,t,"fill"),ne(a,t,"stroke"),Se(a),i||(e.dirty(!1),e.z2+=I)}}}function ne(e,t,n){!K(t[n])&&K(e[n])&&(e[n]=Q(e[n]))}function ie(e){var t=e.__highlighted;if(t&&(e.__highlighted=!1,!e.isGroup))if("layer"===t)e.__zr&&e.__zr.removeHover(e);else{var n=e.style,i=e.__cachedNormalStl;i&&(Me(n),e.setStyle(i),Se(n));var r=e.__cachedNormalZ2;null!=r&&e.z2-r===I&&(e.z2=r)}}function re(e,t,n){var i,r=L,a=L;e.__highlighted&&(r=O,i=!0),t(e,n),e.__highlighted&&(a=O,i=!0),e.isGroup&&e.traverse((function(e){!e.isGroup&&t(e,n)})),i&&e.__highDownOnUpdate&&e.__highDownOnUpdate(r,a)}function ae(e,t){t=e.__hoverStl=!1!==t&&(e.hoverStyle||t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(e.__cachedNormalStl=null,ie(e),te(e))}function oe(e){!ue(this,e)&&!this.__highByOuter&&re(this,te)}function se(e){!ue(this,e)&&!this.__highByOuter&&re(this,ie)}function le(e){this.__highByOuter|=1<<(e||0),re(this,te)}function ce(e){!(this.__highByOuter&=~(1<<(e||0)))&&re(this,ie)}function ue(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function he(e,t){de(e,!0),re(e,ae,t)}function de(e,t){var n=!1===t;if(e.__highDownSilentOnTouch=e.highDownSilentOnTouch,e.__highDownOnUpdate=e.highDownOnUpdate,!n||e.__highDownDispatcher){var i=n?"off":"on";e[i]("mouseover",oe)[i]("mouseout",se),e[i]("emphasis",le)[i]("normal",ce),e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!n}}function pe(e){return!(!e||!e.__highDownDispatcher)}function fe(e){var t=N[e];return null==t&&R<=32&&(t=N[e]=R++),t}function me(e,t,n,r,a,o,s){a=a||D;var l,c=a.labelFetcher,u=a.labelDataIndex,h=a.labelDimIndex,d=a.labelProp,p=n.getShallow("show"),f=r.getShallow("show");(p||f)&&(c&&(l=c.getFormattedLabel(u,"normal",null,h,d)),null==l&&(l=i.isFunction(a.defaultText)?a.defaultText(u,a):a.defaultText));var m=p?l:null,g=f?i.retrieve2(c?c.getFormattedLabel(u,"emphasis",null,h,d):null,l):null;null==m&&null==g||(ve(e,n,o,a),ve(t,r,s,a,!0)),e.text=m,t.text=g}function ge(e,t,n){var r=e.style;t&&(Me(r),e.setStyle(t),Se(r)),r=e.__hoverStl,n&&r&&(Me(r),i.extend(r,n),Se(r))}function ve(e,t,n,r,a){return _e(e,t,r,a),n&&i.extend(e,n),e}function ye(e,t,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,_e(e,t,r,i)}function _e(e,t,n,r){if(n=n||D,n.isRectText){var a;n.getTextPosition?a=n.getTextPosition(t,r):(a=t.getShallow("position")||(r?null:"inside"),"outside"===a&&(a="top")),e.textPosition=a,e.textOffset=t.getShallow("offset");var o=t.getShallow("rotate");null!=o&&(o*=Math.PI/180),e.textRotation=o,e.textDistance=i.retrieve2(t.getShallow("distance"),r?null:5)}var s,l=t.ecModel,c=l&&l.option.textStyle,u=xe(t);if(u)for(var h in s={},u)if(u.hasOwnProperty(h)){var d=t.getModel(["rich",h]);be(s[h]={},d,c,n,r)}return e.rich=s,be(e,t,c,n,r,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),e}function xe(e){var t;while(e&&e!==e.ecModel){var n=(e.option||D).rich;if(n)for(var i in t=t||{},n)n.hasOwnProperty(i)&&(t[i]=1);e=e.parentModel}return t}function be(e,t,n,r,a,o){n=!a&&n||D,e.textFill=we(t.getShallow("color"),r)||n.color,e.textStroke=we(t.getShallow("textBorderColor"),r)||n.textBorderColor,e.textStrokeWidth=i.retrieve2(t.getShallow("textBorderWidth"),n.textBorderWidth),a||(o&&(e.insideRollbackOpt=r,Se(e)),null==e.textFill&&(e.textFill=r.autoColor)),e.fontStyle=t.getShallow("fontStyle")||n.fontStyle,e.fontWeight=t.getShallow("fontWeight")||n.fontWeight,e.fontSize=t.getShallow("fontSize")||n.fontSize,e.fontFamily=t.getShallow("fontFamily")||n.fontFamily,e.textAlign=t.getShallow("align"),e.textVerticalAlign=t.getShallow("verticalAlign")||t.getShallow("baseline"),e.textLineHeight=t.getShallow("lineHeight"),e.textWidth=t.getShallow("width"),e.textHeight=t.getShallow("height"),e.textTag=t.getShallow("tag"),o&&r.disableBox||(e.textBackgroundColor=we(t.getShallow("backgroundColor"),r),e.textPadding=t.getShallow("padding"),e.textBorderColor=we(t.getShallow("borderColor"),r),e.textBorderWidth=t.getShallow("borderWidth"),e.textBorderRadius=t.getShallow("borderRadius"),e.textBoxShadowColor=t.getShallow("shadowColor"),e.textBoxShadowBlur=t.getShallow("shadowBlur"),e.textBoxShadowOffsetX=t.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=t.getShallow("shadowOffsetY")),e.textShadowColor=t.getShallow("textShadowColor")||n.textShadowColor,e.textShadowBlur=t.getShallow("textShadowBlur")||n.textShadowBlur,e.textShadowOffsetX=t.getShallow("textShadowOffsetX")||n.textShadowOffsetX,e.textShadowOffsetY=t.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function we(e,t){return"auto"!==e?e:t&&t.autoColor?t.autoColor:null}function Se(e){var t,n=e.textPosition,i=e.insideRollbackOpt;if(i&&null==e.textFill){var r=i.autoColor,a=i.isRectText,o=i.useInsideStyle,s=!1!==o&&(!0===o||a&&n&&"string"===typeof n&&n.indexOf("inside")>=0),l=!s&&null!=r;(s||l)&&(t={textFill:e.textFill,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth}),s&&(e.textFill="#fff",null==e.textStroke&&(e.textStroke=r,null==e.textStrokeWidth&&(e.textStrokeWidth=2))),l&&(e.textFill=r)}e.insideRollback=t}function Me(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function Ce(e,t){var n=t&&t.getModel("textStyle");return i.trim([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function Te(e,t,n,i,r,a){"function"===typeof r&&(a=r,r=null);var o=i&&i.isAnimationEnabled();if(o){var s=e?"Update":"",l=i.getShallow("animationDuration"+s),c=i.getShallow("animationEasing"+s),u=i.getShallow("animationDelay"+s);"function"===typeof u&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null)),"function"===typeof l&&(l=l(r)),l>0?t.animateTo(n,l,u||0,c,a,!!a):(t.stopAnimation(),t.attr(n),a&&a())}else t.stopAnimation(),t.attr(n),a&&a()}function Ee(e,t,n,i,r){Te(!0,e,t,n,i,r)}function Ae(e,t,n,i,r){Te(!1,e,t,n,i,r)}function ke(e,t){var n=o.identity([]);while(e&&e!==t)o.mul(n,e.getLocalTransform(),n),e=e.parent;return n}function De(e,t,n){return t&&!i.isArrayLike(t)&&(t=c.getLocalTransform(t)),n&&(t=o.invert([],t)),s.applyTransform([],e,t)}function Ie(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),r=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),a=["left"===e?-i:"right"===e?i:0,"top"===e?-r:"bottom"===e?r:0];return a=De(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Pe(e,t,n,r){if(e&&t){var a=o(e);t.traverse((function(e){if(!e.isGroup&&e.anid){var t=a[e.anid];if(t){var i=l(e);e.attr(l(t)),Ee(e,i,n,e.dataIndex)}}}))}function o(e){var t={};return e.traverse((function(e){!e.isGroup&&e.anid&&(t[e.anid]=e)})),t}function l(e){var t={position:s.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=i.extend({},e.shape)),t}}function Oe(e,t){return i.map(e,(function(e){var n=e[0];n=A(n,t.x),n=k(n,t.x+t.width);var i=e[1];return i=A(i,t.y),i=k(i,t.y+t.height),[n,i]}))}function Le(e,t){var n=A(e.x,t.x),i=k(e.x+e.width,t.x+t.width),r=A(e.y,t.y),a=k(e.y+e.height,t.y+t.height);if(i>=n&&a>=r)return{x:n,y:r,width:i-n,height:a-r}}function Re(e,t,n){t=i.extend({rectHover:!0},t);var r=t.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),i.defaults(r,n),new u(t)):H(e.replace("path://",""),t,n,"center")}function Ne(e,t,n,i,r){for(var a=0,o=r[r.length-1];a<r.length;a++){var s=r[a];if(Fe(e,t,n,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function Fe(e,t,n,i,r,a,o,s){var l=n-e,c=i-t,u=o-r,h=s-a,d=Be(u,h,l,c);if(ze(d))return!1;var p=e-r,f=t-a,m=Be(p,f,l,c)/d;if(m<0||m>1)return!1;var g=Be(p,f,u,h)/d;return!(g<0||g>1)}function Be(e,t,n,i){return e*i-n*t}function ze(e){return e<=1e-6&&e>=-1e-6}V("circle",p),V("sector",f),V("ring",m),V("polygon",g),V("polyline",v),V("rect",y),V("line",_),V("bezierCurve",x),V("arc",b),t.Z2_EMPHASIS_LIFT=I,t.CACHED_LABEL_STYLE_PROPERTIES=P,t.extendShape=B,t.extendPath=z,t.registerShape=V,t.getShapeClass=U,t.makePath=H,t.makeImage=$,t.mergePath=W,t.resizePath=G,t.subPixelOptimizeLine=q,t.subPixelOptimizeRect=X,t.subPixelOptimize=Y,t.setElementHoverStyle=ae,t.setHoverStyle=he,t.setAsHighDownDispatcher=de,t.isHighDownDispatcher=pe,t.getHighlightDigit=fe,t.setLabelStyle=me,t.modifyLabelStyle=ge,t.setTextStyle=ve,t.setText=ye,t.getFont=Ce,t.updateProps=Ee,t.initProps=Ae,t.getTransform=ke,t.applyTransform=De,t.transformDirection=Ie,t.groupTransition=Pe,t.clipPointsByRect=Oe,t.clipRectByRect=Le,t.createIcon=Re,t.linePolygonIntersect=Ne,t.lineLineIntersect=Fe},89317:function(e,t,n){var i=n(16949),r=n(17913),a=n(80720),o=a.parsePercent,s=n(68331),l=i.each,c=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function h(e,t,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild((function(l,c){var u,h,d=l.position,p=l.getBoundingRect(),f=t.childAt(c+1),m=f&&f.getBoundingRect();if("horizontal"===e){var g=p.width+(m?-m.x+p.x:0);u=a+g,u>i||l.newline?(a=0,u=g,o+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(m?-m.y+p.y:0);h=o+v,h>r||l.newline?(a+=s+n,o=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===e?a=u+n:o=h+n)}))}var d=h,p=i.curry(h,"vertical"),f=i.curry(h,"horizontal");function m(e,t,n){var i=t.width,r=t.height,a=o(e.x,i),l=o(e.y,r),c=o(e.x2,i),u=o(e.y2,r);return(isNaN(a)||isNaN(parseFloat(e.x)))&&(a=0),(isNaN(c)||isNaN(parseFloat(e.x2)))&&(c=i),(isNaN(l)||isNaN(parseFloat(e.y)))&&(l=0),(isNaN(u)||isNaN(parseFloat(e.y2)))&&(u=r),n=s.normalizeCssArray(n||0),{width:Math.max(c-a-n[1]-n[3],0),height:Math.max(u-l-n[0]-n[2],0)}}function g(e,t,n){n=s.normalizeCssArray(n||0);var i=t.width,a=t.height,l=o(e.left,i),c=o(e.top,a),u=o(e.right,i),h=o(e.bottom,a),d=o(e.width,i),p=o(e.height,a),f=n[2]+n[0],m=n[1]+n[3],g=e.aspect;switch(isNaN(d)&&(d=i-u-m-l),isNaN(p)&&(p=a-h-f-c),null!=g&&(isNaN(d)&&isNaN(p)&&(g>i/a?d=.8*i:p=.8*a),isNaN(d)&&(d=g*p),isNaN(p)&&(p=d/g)),isNaN(l)&&(l=i-u-d-m),isNaN(c)&&(c=a-h-p-f),e.left||e.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-m;break}switch(e.top||e.bottom){case"middle":case"center":c=a/2-p/2-n[0];break;case"bottom":c=a-p-f;break}l=l||0,c=c||0,isNaN(d)&&(d=i-m-l-(u||0)),isNaN(p)&&(p=a-f-c-(h||0));var v=new r(l+n[3],c+n[0],d,p);return v.margin=n,v}function v(e,t,n,a,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],c=o&&o.boundingMode||"all";if(s||l){var u;if("raw"===c)u="group"===e.type?new r(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var h=e.getLocalTransform();u=u.clone(),u.applyTransform(h)}t=g(i.defaults({width:u.width,height:u.height},t),n,a);var d=e.position,p=s?t.x-u.x:0,f=l?t.y-u.y:0;e.attr("position","raw"===c?[p,f]:[d[0]+p,d[1]+f])}}function y(e,t){return null!=e[u[t][0]]||null!=e[u[t][1]]&&null!=e[u[t][2]]}function _(e,t,n){!i.isObject(n)&&(n={});var r=n.ignoreSize;!i.isArray(r)&&(r=[r,r]);var a=s(u[0],0),o=s(u[1],1);function s(n,i){var a={},o=0,s={},u=0,d=2;if(l(n,(function(t){s[t]=e[t]})),l(n,(function(e){c(t,e)&&(a[e]=s[e]=t[e]),h(a,e)&&o++,h(s,e)&&u++})),r[i])return h(t,n[1])?s[n[2]]=null:h(t,n[2])&&(s[n[1]]=null),s;if(u!==d&&o){if(o>=d)return a;for(var p=0;p<n.length;p++){var f=n[p];if(!c(a,f)&&c(e,f)){a[f]=e[f];break}}return a}return s}function c(e,t){return e.hasOwnProperty(t)}function h(e,t){return null!=e[t]&&"auto"!==e[t]}function d(e,t,n){l(e,(function(e){t[e]=n[e]}))}d(u[0],e,a),d(u[1],e,o)}function x(e){return b({},e)}function b(e,t){return t&&e&&l(c,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}t.LOCATION_PARAMS=c,t.HV_NAMES=u,t.box=d,t.vbox=p,t.hbox=f,t.getAvailableSize=m,t.getLayoutRect=g,t.positionElement=v,t.sizeCalculable=y,t.mergeLayoutParam=_,t.getLayoutParams=x,t.copyLayoutParams=b},75269:function(e,t,n){n(70252);var i=n(16949),r=n(28299),a=i.each,o=i.isObject,s=i.isArray,l="series\0";function c(e){return e instanceof Array?e:null==e?[]:[e]}function u(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var a=n[i];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var h=["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"];function d(e){return!o(e)||s(e)||e instanceof Date?e:e.value}function p(e){return o(e)&&!(e instanceof Array)}function f(e,t){t=(t||[]).slice();var n=i.map(e||[],(function(e,t){return{exist:e}}));return a(t,(function(e,i){if(o(e)){for(var r=0;r<n.length;r++)if(!n[r].option&&null!=e.id&&n[r].exist.id===e.id+"")return n[r].option=e,void(t[i]=null);for(r=0;r<n.length;r++){var a=n[r].exist;if(!n[r].option&&(null==a.id||null==e.id)&&null!=e.name&&!v(e)&&!v(a)&&a.name===e.name+"")return n[r].option=e,void(t[i]=null)}}})),a(t,(function(e,t){if(o(e)){for(var i=0;i<n.length;i++){var r=n[i].exist;if(!n[i].option&&!v(r)&&null==e.id){n[i].option=e;break}}i>=n.length&&n.push({option:e})}})),n}function m(e){var t=i.createHashMap();a(e,(function(e,n){var i=e.exist;i&&t.set(i.id,e)})),a(e,(function(e,n){var r=e.option;i.assert(!r||null==r.id||!t.get(r.id)||t.get(r.id)===e,"id duplicates: "+(r&&r.id)),r&&null!=r.id&&t.set(r.id,e),!e.keyInfo&&(e.keyInfo={})})),a(e,(function(e,n){var i=e.exist,r=e.option,a=e.keyInfo;if(o(r)){if(a.name=null!=r.name?r.name+"":i?i.name:l+n,i)a.id=i.id;else if(null!=r.id)a.id=r.id+"";else{var s=0;do{a.id="\0"+a.name+"\0"+s++}while(t.get(a.id))}t.set(a.id,e)}}))}function g(e){var t=e.name;return!(!t||!t.indexOf(l))}function v(e){return o(e)&&e.id&&0===(e.id+"").indexOf("\0_ec_\0")}function y(e,t){var n={},i={};return r(e||[],n),r(t||[],i,n),[a(n),a(i)];function r(e,t,n){for(var i=0,r=e.length;i<r;i++)for(var a=e[i].seriesId,o=c(e[i].dataIndex),s=n&&n[a],l=0,u=o.length;l<u;l++){var h=o[l];s&&s[h]?s[h]=null:(t[a]||(t[a]={}))[h]=1}}function a(e,t){var n=[];for(var i in e)if(e.hasOwnProperty(i)&&null!=e[i])if(t)n.push(+i);else{var r=a(e[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function _(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?i.isArray(t.dataIndex)?i.map(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?i.isArray(t.name)?i.map(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function x(){var e="__\0ec_inner_"+b+++"_"+Math.random().toFixed(5);return function(t){return t[e]||(t[e]={})}}var b=0;function w(e,t,n){if(i.isString(t)){var r={};r[t+"Index"]=0,t=r}var o=n&&n.defaultMainType;!o||S(t,o+"Index")||S(t,o+"Id")||S(t,o+"Name")||(t[o+"Index"]=0);var s={};return a(t,(function(r,a){r=t[a];if("dataIndex"!==a&&"dataIndexInside"!==a){var o=a.match(/^(\w+)(Index|Id|Name)$/)||[],l=o[1],c=(o[2]||"").toLowerCase();if(!(!l||!c||null==r||"index"===c&&"none"===r||n&&n.includeMainTypes&&i.indexOf(n.includeMainTypes,l)<0)){var u={mainType:l};"index"===c&&"all"===r||(u[c]=r);var h=e.queryComponents(u);s[l+"Models"]=h,s[l+"Model"]=h[0]}}else s[a]=r})),s}function S(e,t){return e&&e.hasOwnProperty(t)}function M(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function C(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function T(e){return"auto"===e?r.domSupported?"html":"richText":e||"html"}function E(e,t){var n=i.createHashMap(),r=[];return i.each(e,(function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)})),{keys:r,buckets:n}}t.normalizeToArray=c,t.defaultEmphasis=u,t.TEXT_STYLE_OPTIONS=h,t.getDataItemValue=d,t.isDataItemOption=p,t.mappingToExists=f,t.makeIdAndName=m,t.isNameSpecified=g,t.isIdInner=v,t.compressBatches=y,t.queryDataIndex=_,t.makeInner=x,t.parseFinder=w,t.setAttribute=M,t.getAttribute=C,t.getTooltipRenderMode=T,t.groupData=E},80720:function(e,t,n){var i=n(16949),r=1e-4;function a(e){return e.replace(/^\s+|\s+$/g,"")}function o(e,t,n,i){var r=t[1]-t[0],a=n[1]-n[0];if(0===r)return 0===a?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(e<=t[0])return n[0];if(e>=t[1])return n[1]}else{if(e>=t[0])return n[0];if(e<=t[1])return n[1]}else{if(e===t[0])return n[0];if(e===t[1])return n[1]}return(e-t[0])/r*a+n[0]}function s(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return"string"===typeof e?a(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function l(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function c(e){return e.sort((function(e,t){return e-t})),e}function u(e){if(e=+e,isNaN(e))return 0;var t=1,n=0;while(Math.round(e*t)/t!==e)t*=10,n++;return n}function h(e){var t=e.toString(),n=t.indexOf("e");if(n>0){var i=+t.slice(n+1);return i<0?-i:0}var r=t.indexOf(".");return r<0?0:t.length-1-r}function d(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),a=Math.round(n(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20}function p(e,t,n){if(!e[t])return 0;var r=i.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===r)return 0;var a=Math.pow(10,n),o=i.map(e,(function(e){return(isNaN(e)?0:e)/r*a*100})),s=100*a,l=i.map(o,(function(e){return Math.floor(e)})),c=i.reduce(l,(function(e,t){return e+t}),0),u=i.map(o,(function(e,t){return e-l[t]}));while(c<s){for(var h=Number.NEGATIVE_INFINITY,d=null,p=0,f=u.length;p<f;++p)u[p]>h&&(h=u[p],d=p);++l[d],u[d]=0,++c}return l[t]/a}var f=9007199254740991;function m(e){var t=2*Math.PI;return(e%t+t)%t}function g(e){return e>-r&&e<r}var v=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function y(e){if(e instanceof Date)return e;if("string"===typeof e){var t=v.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,+t[7]||0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,+t[7]||0)}return null==e?new Date(NaN):new Date(Math.round(e))}function _(e){return Math.pow(10,x(e))}function x(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function b(e,t){var n,i=x(e),r=Math.pow(10,i),a=e/r;return n=t?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10,e=n*r,i>=-20?+e.toFixed(i<0?-i:0):e}function w(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],a=n-i;return a?r+a*(e[i]-r):r}function S(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i<e.length;){for(var r=e[i].interval,a=e[i].close,o=0;o<2;o++)r[o]<=t&&(r[o]=t,a[o]=o?1:1-n),t=r[o],n=a[o];r[0]===r[1]&&a[0]*a[1]!==1?e.splice(i,1):i++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function M(e){return e-parseFloat(e)>=0}t.linearMap=o,t.parsePercent=s,t.round=l,t.asc=c,t.getPrecision=u,t.getPrecisionSafe=h,t.getPixelPrecision=d,t.getPercentWithPrecision=p,t.MAX_SAFE_INTEGER=f,t.remRadian=m,t.isRadianAroundZero=g,t.parseDate=y,t.quantity=_,t.quantityExponent=x,t.nice=b,t.quantile=w,t.reformIntervals=S,t.isNumeric=M},28423:function(e,t,n){var i=n(60823),r=i.extendShape,a=r({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=.5*(a-r),s=r+o,l=t.startAngle,c=t.endAngle,u=t.clockwise,h=Math.cos(l),d=Math.sin(l),p=Math.cos(c),f=Math.sin(c),m=u?c-l<2*Math.PI:l-c<2*Math.PI;m&&(e.moveTo(h*r+n,d*r+i),e.arc(h*s+n,d*s+i,o,-Math.PI+l,l,!u)),e.arc(n,i,a,l,c,!u),e.moveTo(p*a+n,f*a+i),e.arc(p*s+n,f*s+i,o,c-2*Math.PI,c-Math.PI,!u),0!==r&&(e.arc(n,i,r,c,l,u),e.moveTo(h*r+n,f*r+i)),e.closePath()}});e.exports=a},2760:function(e,t,n){var i=n(16949),r=n(60823),a=n(17913),o=n(53164),s=o.calculateTextPosition,l=r.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,a=t.height/2;e.moveTo(n,i-a),e.lineTo(n+r,i+a),e.lineTo(n-r,i+a),e.closePath()}}),c=r.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,a=t.height/2;e.moveTo(n,i-a),e.lineTo(n+r,i),e.lineTo(n,i+a),e.lineTo(n-r,i),e.closePath()}}),u=r.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,a=Math.max(r,t.height),o=r/2,s=o*o/(a-o),l=i-a+o+s,c=Math.asin(s/o),u=Math.cos(c)*o,h=Math.sin(c),d=Math.cos(c),p=.6*o,f=.7*o;e.moveTo(n-u,l+s),e.arc(n,l,o,Math.PI-c,2*Math.PI+c),e.bezierCurveTo(n+u-h*p,l+s+d*p,n,i-f,n,i),e.bezierCurveTo(n,i-f,n-u+h*p,l+s+d*p,n-u,l+s),e.closePath()}}),h=r.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,a=t.y,o=i/3*2;e.moveTo(r,a),e.lineTo(r+o,a+n),e.lineTo(r,a+n/4*3),e.lineTo(r-o,a+n),e.lineTo(r,a),e.closePath()}}),d={line:r.Line,rect:r.Rect,roundRect:r.Rect,square:r.Rect,circle:r.Circle,diamond:c,pin:u,arrow:h,triangle:l},p={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var a=Math.min(n,i);r.x=e,r.y=t,r.width=a,r.height=a},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},f={};i.each(d,(function(e,t){f[t]=new e}));var m=r.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=s(e,t,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.textPosition&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var r=f[i];r||(i="rect",r=f[i]),p[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function g(e,t){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=e:this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff"):(n.fill&&(n.fill=e),n.stroke&&(n.stroke=e)),this.dirty(!1)}}function v(e,t,n,i,o,s,l){var c,u=0===e.indexOf("empty");return u&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),c=0===e.indexOf("image://")?r.makeImage(e.slice(8),new a(t,n,i,o),l?"center":"cover"):0===e.indexOf("path://")?r.makePath(e.slice(7),{},new a(t,n,i,o),l?"center":"cover"):new m({shape:{symbolType:e,x:t,y:n,width:i,height:o}}),c.__isEmptyBrush=u,c.setColor=g,c.setColor(s),c}t.createSymbol=v},1199:function(e,t){var n="\0__throttleOriginMethod",i="\0__throttleRate",r="\0__throttleType";function a(e,t,n){var i,r,a,o,s,l=0,c=0,u=null;function h(){c=(new Date).getTime(),u=null,e.apply(a,o||[])}t=t||0;var d=function(){i=(new Date).getTime(),a=this,o=arguments;var e=s||t,d=s||n;s=null,r=i-(d?l:c)-e,clearTimeout(u),d?u=setTimeout(h,e):r>=0?h():u=setTimeout(h,-r),l=i};return d.clear=function(){u&&(clearTimeout(u),u=null)},d.debounceNextCall=function(e){s=e},d}function o(e,t,o,s){var l=e[t];if(l){var c=l[n]||l,u=l[r],h=l[i];if(h!==o||u!==s){if(null==o||!s)return e[t]=c;l=e[t]=a(c,o,"debounce"===s),l[n]=c,l[r]=s,l[i]=o}return l}}function s(e,t){var i=e[t];i&&i[n]&&(e[t]=i[n])}t.throttle=a,t.createOrUpdate=o,t.clear=s},76666:function(e,t,n){var i=n(16949),r=i.each,a=n(58511),o=n(30108),s=n(55480),l=n(75269),c=n(60823),u=n(28205),h=u.createTask,d=n(38247),p=l.makeInner(),f=d();function m(){this.group=new a,this.uid=o.getUID("viewChart"),this.renderTask=h({plan:_,reset:x}),this.renderTask.context={view:this}}m.prototype={type:"chart",init:function(e,t){},render:function(e,t,n,i){},highlight:function(e,t,n,i){y(e.getData(),i,"emphasis")},downplay:function(e,t,n,i){y(e.getData(),i,"normal")},remove:function(e,t){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var g=m.prototype;function v(e,t,n){if(e&&(e.trigger(t,n),e.isGroup&&!c.isHighDownDispatcher(e)))for(var i=0,r=e.childCount();i<r;i++)v(e.childAt(i),t,n)}function y(e,t,n){var i=l.queryDataIndex(e,t),a=t&&null!=t.highlightKey?c.getHighlightDigit(t.highlightKey):null;null!=i?r(l.normalizeToArray(i),(function(t){v(e.getItemGraphicEl(t),n,a)})):e.eachItemGraphicEl((function(e){v(e,n,a)}))}function _(e){return f(e.model)}function x(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=r&&p(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,n,i,r),b[l]}g.updateView=g.updateLayout=g.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},s.enableClassExtend(m,["dispose"]),s.enableClassManagement(m,{registerWhenExtend:!0}),m.markUpdateMethod=function(e,t){p(e).updateMethod=t};var b={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},w=m;e.exports=w},59025:function(e,t,n){var i=n(58511),r=n(30108),a=n(55480),o=function(){this.group=new i,this.uid=r.getUID("viewComponent")};o.prototype={constructor:o,init:function(e,t){},render:function(e,t,n,i){},dispose:function(){},filterForExposedEvent:null};var s=o.prototype;s.updateView=s.updateLayout=s.updateVisual=function(e,t,n,i){},a.enableClassExtend(o),a.enableClassManagement(o,{registerWhenExtend:!0});var l=o;e.exports=l},72609:function(e){function t(e,t){this.getAllNames=function(){var e=t();return e.mapArray(e.getName)},this.containName=function(e){var n=t();return n.indexOfName(e)>=0},this.indexOfName=function(t){var n=e();return n.indexOfName(t)},this.getItemVisual=function(t,n){var i=e();return i.getItemVisual(t,n)}}var n=t;e.exports=n},9516:function(e,t,n){n(70252);var i=n(16949),r=n(35098),a=n(80720),o=a.linearMap,s=i.each,l=i.isObject,c=-1,u=function(e){var t=e.mappingMethod,n=e.type,r=this.option=i.clone(e);this.type=n,this.mappingMethod=t,this._normalizeData=S[t];var a=h[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._doMap=a._doMap[t],"piecewise"===t?(f(r),d(r)):"category"===t?r.categories?p(r):f(r,!0):(i.assert("linear"!==t||r.dataExtent),f(r))};u.prototype={constructor:u,mapValueToVisual:function(e){var t=this._normalizeData(e);return this._doMap(t,e)},getNormalizer:function(){return i.bind(this._normalizeData,this)}};var h=u.visualHandlers={color:{applyVisual:v("color"),getColorMapper:function(){var e=this.option;return i.bind("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),y.call(this,e)}:function(t,n,i){var a=!!i;return!n&&(t=this._normalizeData(t)),i=r.fastLerp(t,e.parsedVisual,i),a?i:r.stringify(i,"rgba")},this)},_doMap:{linear:function(e){return r.stringify(r.fastLerp(e,this.option.parsedVisual),"rgba")},category:y,piecewise:function(e,t){var n=b.call(this,t);return null==n&&(n=r.stringify(r.fastLerp(e,this.option.parsedVisual),"rgba")),n},fixed:_}},colorHue:m((function(e,t){return r.modifyHSL(e,t)})),colorSaturation:m((function(e,t){return r.modifyHSL(e,null,t)})),colorLightness:m((function(e,t){return r.modifyHSL(e,null,null,t)})),colorAlpha:m((function(e,t){return r.modifyAlpha(e,t)})),opacity:{applyVisual:v("opacity"),_doMap:x([0,1])},liftZ:{applyVisual:v("liftZ"),_doMap:{linear:_,category:_,piecewise:_,fixed:_}},symbol:{applyVisual:function(e,t,n){var r=this.mapValueToVisual(e);if(i.isString(r))n("symbol",r);else if(l(r))for(var a in r)r.hasOwnProperty(a)&&n(a,r[a])},_doMap:{linear:g,category:y,piecewise:function(e,t){var n=b.call(this,t);return null==n&&(n=g.call(this,e)),n},fixed:_}},symbolSize:{applyVisual:v("symbolSize"),_doMap:x([0,1])}};function d(e){var t=e.pieceList;e.hasSpecialVisual=!1,i.each(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function p(e){var t=e.categories,n=e.visual,r=e.categoryMap={};if(s(t,(function(e,t){r[e]=t})),!i.isArray(n)){var a=[];i.isObject(n)?s(n,(function(e,t){var n=r[t];a[null!=n?n:c]=e})):a[c]=n,n=w(e,a)}for(var o=t.length-1;o>=0;o--)null==n[o]&&(delete r[t[o]],t.pop())}function f(e,t){var n=e.visual,r=[];i.isObject(n)?s(n,(function(e){r.push(e)})):null!=n&&r.push(n);var a={color:1,symbol:1};t||1!==r.length||a.hasOwnProperty(e.type)||(r[1]=r[0]),w(e,r)}function m(e){return{applyVisual:function(t,n,i){t=this.mapValueToVisual(t),i("color",e(n("color"),t))},_doMap:x([0,1])}}function g(e){var t=this.option.visual;return t[Math.round(o(e,[0,1],[0,t.length-1],!0))]||{}}function v(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function y(e){var t=this.option.visual;return t[this.option.loop&&e!==c?e%t.length:e]}function _(){return this.option.visual[0]}function x(e){return{linear:function(t){return o(t,e,this.option.visual,!0)},category:y,piecewise:function(t,n){var i=b.call(this,n);return null==i&&(i=o(t,e,this.option.visual,!0)),i},fixed:_}}function b(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=u.findPieceIndex(e,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function w(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=i.map(t,(function(e){return r.parse(e)}))),t}var S={linear:function(e){return o(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=u.findPieceIndex(e,t,!0);if(null!=n)return o(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?c:t},fixed:i.noop};function M(e,t,n){return e?t<=n:t<n}u.listVisualTypes=function(){var e=[];return i.each(h,(function(t,n){e.push(n)})),e},u.addVisualHandler=function(e,t){h[e]=t},u.isValidType=function(e){return h.hasOwnProperty(e)},u.eachVisual=function(e,t,n){i.isObject(e)?i.each(e,t,n):t.call(n,e)},u.mapVisual=function(e,t,n){var r,a=i.isArray(e)?[]:i.isObject(e)?{}:(r=!0,null);return u.eachVisual(e,(function(e,i){var o=t.call(n,e,i);r?a=o:a[i]=o})),a},u.retrieveVisuals=function(e){var t,n={};return e&&s(h,(function(i,r){e.hasOwnProperty(r)&&(n[r]=e[r],t=!0)})),t?n:null},u.prepareVisualTypes=function(e){if(l(e)){var t=[];s(e,(function(e,n){t.push(n)})),e=t}else{if(!i.isArray(e))return[];e=e.slice()}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},u.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},u.findPieceIndex=function(e,t,n){for(var i,r=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(null!=s){if(s===e||"string"===typeof s&&s===e+"")return a;n&&h(s,a)}}for(a=0,o=t.length;a<o;a++){var l=t[a],c=l.interval,u=l.close;if(c){if(c[0]===-1/0){if(M(u[1],e,c[1]))return a}else if(c[1]===1/0){if(M(u[0],c[0],e))return a}else if(M(u[0],c[0],e)&&M(u[1],e,c[1]))return a;n&&h(c[0],a),n&&h(c[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function h(t,n){var a=Math.abs(t-e);a<r&&(r=a,i=n)}};var C=u;e.exports=C},47172:function(e,t,n){n(70252);var i=n(16949),r=n(61213),a=n(3270),o=a.retrieveRawValue;function s(e,t){var n=t.getModel("aria");if(n.get("show"))if(n.get("description"))e.setAttribute("aria-label",n.get("description"));else{var a=0;t.eachSeries((function(e,t){++a}),this);var s,l=n.get("data.maxCount")||10,c=n.get("series.maxCount")||10,u=Math.min(a,c);if(!(a<1)){var h=g();s=h?f(m("general.withTitle"),{title:h}):m("general.withoutTitle");var d=[],p=a>1?"series.multiple.prefix":"series.single.prefix";s+=f(m(p),{seriesCount:a}),t.eachSeries((function(e,t){if(t<u){var n,i=e.get("name"),r="series."+(a>1?"multiple":"single")+".";n=m(i?r+"withName":r+"withoutName"),n=f(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:v(e.subType)});var s=e.getData();window.data=s,s.count()>l?n+=f(m("data.partialData"),{displayCnt:l}):n+=m("data.allData");for(var c=[],h=0;h<s.count();h++)if(h<l){var p=s.getName(h),g=o(s,h);c.push(f(m(p?"data.withName":"data.withoutName"),{name:p,value:g}))}n+=c.join(m("data.separator.middle"))+m("data.separator.end"),d.push(n)}})),s+=d.join(m("series.multiple.separator.middle"))+m("series.multiple.separator.end"),e.setAttribute("aria-label",s)}}function f(e,t){if("string"!==typeof e)return e;var n=e;return i.each(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function m(e){var t=n.get(e);if(null==t){for(var i=e.split("."),a=r.aria,o=0;o<i.length;++o)a=a[i[o]];return a}return t}function g(){var e=t.getModel("title").option;return e&&e.length&&(e=e[0]),e&&e.text}function v(e){return r.series.typeNames[e]||"自定义图"}}e.exports=s},24032:function(e,t,n){var i=n(16949),r=i.createHashMap;function a(e){return{getTargetSeries:function(t){var n={},i=r();return t.eachSeriesByType(e,(function(e){e.__paletteScope=n,i.set(e.uid,e)})),i},reset:function(e,t){var n=e.getRawData(),i={},r=e.getData();r.each((function(e){var t=r.getRawIndex(e);i[t]=e})),n.each((function(t){var a,o=i[t],s=null!=o&&r.getItemVisual(o,"color",!0),l=null!=o&&r.getItemVisual(o,"borderColor",!0);if(s&&l||(a=n.getItemModel(t)),!s){var c=a.get("itemStyle.color")||e.getColorFromPalette(n.getName(t)||t+"",e.__paletteScope,n.count());null!=o&&r.setItemVisual(o,"color",c)}if(!l){var u=a.get("itemStyle.borderColor");null!=o&&r.setItemVisual(o,"borderColor",u)}}))}}}e.exports=a},29766:function(e,t,n){var i=n(91730),r=n(16949),a=r.isFunction,o={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=(e.visualColorAccessPath||"itemStyle.color").split("."),o=e.get(r),s=!a(o)||o instanceof i?null:o;o&&!s||(o=e.getColorFromPalette(e.name,null,t.getSeriesCount())),n.setVisual("color",o);var l=(e.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),c=e.get(l);if(n.setVisual("borderColor",c),!t.isSeriesFiltered(e)){s&&n.each((function(t){n.setItemVisual(t,"color",s(e.getDataParams(t)))}));var u=function(e,t){var n=e.getItemModel(t),i=n.get(r,!0),a=n.get(l,!0);null!=i&&e.setItemVisual(t,"color",i),null!=a&&e.setItemVisual(t,"borderColor",a)};return{dataEach:n.hasItemOption?u:null}}}};e.exports=o},97593:function(e,t,n){var i=n(16949),r=i.isFunction;function a(e,t,n){return{seriesType:e,performRawSeries:!0,reset:function(e,i,a){var o=e.getData(),s=e.get("symbol"),l=e.get("symbolSize"),c=e.get("symbolKeepAspect"),u=e.get("symbolRotate"),h=r(s),d=r(l),p=r(u),f=h||d||p,m=!h&&s?s:t,g=d?null:l;if(o.setVisual({legendSymbol:n||m,symbol:m,symbolSize:g,symbolKeepAspect:c,symbolRotate:u}),!i.isSeriesFiltered(e))return{dataEach:o.hasItemOption||f?v:null};function v(t,n){if(f){var i=e.getRawValue(n),r=e.getDataParams(n);h&&t.setItemVisual(n,"symbol",s(i,r)),d&&t.setItemVisual(n,"symbolSize",l(i,r)),p&&t.setItemVisual(n,"symbolRotate",u(i,r))}if(t.hasItemOption){var a=t.getItemModel(n),o=a.getShallow("symbol",!0),c=a.getShallow("symbolSize",!0),m=a.getShallow("symbolRotate",!0),g=a.getShallow("symbolKeepAspect",!0);null!=o&&t.setItemVisual(n,"symbol",o),null!=c&&t.setItemVisual(n,"symbolSize",c),null!=m&&t.setItemVisual(n,"symbolRotate",m),null!=g&&t.setItemVisual(n,"symbolKeepAspect",g)}}}}}e.exports=a},55366:function(e,t,n){var i=n(16949),r={get:function(e,t,n){var r=i.clone((a[e]||{})[t]);return n&&i.isArray(r)?r[r.length-1]:r}},a={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]}},o=r;e.exports=o},87477:function(e,t,n){var i=n(16949),r=n(9516),a=i.each;function o(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function s(e,t,n){var o={};return a(t,(function(t){var l=o[t]=s();a(e[t],(function(e,a){if(r.isValidType(a)){var o={type:a,visual:e};n&&n(o,t),l[a]=new r(o),"opacity"===a&&(o=i.clone(o),o.type="colorAlpha",l.__hidden.__alphaForOpacity=new r(o))}}))})),o;function s(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function l(e,t,n){var r;i.each(n,(function(e){t.hasOwnProperty(e)&&o(t[e])&&(r=!0)})),r&&i.each(n,(function(n){t.hasOwnProperty(n)&&o(t[n])?e[n]=i.clone(t[n]):delete e[n]}))}function c(e,t,n,a,o,s){var l,c={};function u(e){return n.getItemVisual(l,e)}function h(e,t){n.setItemVisual(l,e,t)}function d(e,i){l=null==s?e:i;var r=n.getRawDataItem(l);if(!r||!1!==r.visualMap)for(var d=a.call(o,e),p=t[d],f=c[d],m=0,g=f.length;m<g;m++){var v=f[m];p[v]&&p[v].applyVisual(e,u,h)}}i.each(e,(function(e){var n=r.prepareVisualTypes(t[e]);c[e]=n})),null==s?n.each(d):n.each([s],d)}function u(e,t,n,a){var o={};function s(e,i){function r(e){return i.getItemVisual(l,e)}function s(e,t){i.setItemVisual(l,e,t)}var l;null!=a&&(a=i.getDimension(a));while(null!=(l=e.next())){var c=i.getRawDataItem(l);if(!c||!1!==c.visualMap)for(var u=null!=a?i.get(a,l,!0):l,h=n(u),d=t[h],p=o[h],f=0,m=p.length;f<m;f++){var g=p[f];d[g]&&d[g].applyVisual(u,r,s)}}}return i.each(e,(function(e){var n=r.prepareVisualTypes(t[e]);o[e]=n})),{progress:s}}t.createVisualMappings=s,t.replaceVisualOption=l,t.applyVisual=c,t.incrementalApplyVisual=u},31211:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=96)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},96:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},r=[];i._withStripped=!0;var a={name:"ElButtonGroup"},o=a,s=n(0),l=Object(s["a"])(o,i,r,!1,null,null,null);l.options.__file="packages/button/src/button-group.vue";var c=l.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},95136:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=95)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},95:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])},r=[];i._withStripped=!0;var a={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},o=a,s=n(0),l=Object(s["a"])(o,i,r,!1,null,null,null);l.options.__file="packages/button/src/button.vue";var c=l.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},99451:function(e,t,n){n(70252),e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=60)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},15:function(e,t){e.exports=n(17191)},19:function(e,t){e.exports=n(45317)},21:function(e,t){e.exports=n(3743)},26:function(e,t){e.exports=n(32013)},3:function(e,t){e.exports=n(2634)},31:function(e,t){e.exports=n(17889)},40:function(e,t){e.exports=n(62918)},51:function(e,t){e.exports=n(10266)},6:function(e,t){e.exports=n(16534)},60:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-cascader-panel",e.border&&"is-bordered"],on:{keydown:e.handleKeyDown}},e._l(e.menus,(function(e,t){return n("cascader-menu",{key:t,ref:"menu",refInFor:!0,attrs:{index:t,nodes:e}})})),1)},r=[];i._withStripped=!0;var a,o,s=n(26),l=n.n(s),c=n(15),u=n.n(c),h=n(19),d=n.n(h),p=n(51),f=n.n(p),m=n(3),g=function(e){return e.stopPropagation()},v={inject:["panel"],components:{ElCheckbox:d.a,ElRadio:f.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,i=this.isDisabled,r=this.config,a=r.multiple,o=r.checkStrictly;!o&&i||n.loading||(r.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),a){var i=!!t&&n.checked;e.handleMultiCheckChange(i)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node,n=e[t.level-1]||{};return n.uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,i=this.config,r=i.checkStrictly,a=i.multiple;return a?this.renderCheckbox(e):r?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,i=this.isDisabled,r={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(r.nativeOn.click=g),e("el-checkbox",l()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:i}},r]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,i=this.isDisabled;return Object(m["isEqual"])(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:i},on:{change:this.handleCheckChange},nativeOn:{click:g}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,i=t.renderLabelFn,r=i?i({node:n,data:n.data}):null;return e("span",{class:"el-cascader-node__label"},[r||n.label])}},render:function(e){var t=this,n=this.inActivePath,i=this.inCheckedPath,r=this.isChecked,a=this.isLeaf,o=this.isDisabled,s=this.config,c=this.nodeId,u=s.expandTrigger,h=s.checkStrictly,d=s.multiple,p=!h&&o,f={on:{}};return"click"===u?f.on.click=this.handleExpand:(f.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},f.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!a||o||h||d||(f.on.click=this.handleCheckChange),e("li",l()([{attrs:{role:"menuitem",id:c,"aria-expanded":n,tabindex:p?null:-1},class:{"el-cascader-node":!0,"is-selectable":h,"in-active-path":n,"in-checked-path":i,"is-active":r,"is-disabled":p}},f]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},y=v,_=n(0),x=Object(_["a"])(y,a,o,!1,null,null,null);x.options.__file="packages/cascader-panel/src/cascader-node.vue";var b,w,S=x.exports,M=n(6),C=n.n(M),T={name:"ElCascaderMenu",mixins:[C.a],inject:["panel"],components:{ElScrollbar:u.a,CascaderNode:S},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(m["generateId"])()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,i=this.$refs.hoverZone;if(t&&i)if(t.contains(e.target)){clearTimeout(n);var r=this.$el.getBoundingClientRect(),a=r.left,o=e.clientX-a,s=this.$el,l=s.offsetWidth,c=s.offsetHeight,u=t.offsetTop,h=u+t.offsetHeight;i.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+u+" L"+l+" 0 V"+u+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+h+" L"+l+" "+c+" V"+h+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,i={on:{}};n&&(i.on.expand=this.handleExpand);var r=this.nodes.map((function(n,r){var a=n.hasChildren;return e("cascader-node",l()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+r,"aria-haspopup":a,"aria-owns":a?t:null}},i]))}));return[].concat(r,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",l()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},E=T,A=Object(_["a"])(E,b,w,!1,null,null,null);A.options.__file="packages/cascader-panel/src/cascader-menu.vue";var k=A.exports,D=n(21),I=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var O=0,L=function(){function e(t,n,i){P(this,e),this.data=t,this.config=n,this.parent=i||null,this.level=this.parent?this.parent.level+1:1,this.uid=O++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(e){return e.value})),this.pathLabels=this.pathNodes.map((function(e){return e.label})),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,i=n.children,r=this.data[i];this.hasChildren=Array.isArray(r),this.children=(r||[]).map((function(i){return new e(i,n,t)}))},e.prototype.calculatePathNodes=function(){var e=[this],t=this.parent;while(t)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some((function(e){return Object(m["isEqual"])(e,t)})):Object(m["isEqual"])(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r="onParent"+Object(m["capitalize"])(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[r]&&t[r].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(m["capitalize"])(e);if(t){for(var i=arguments.length,r=Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];t[n]&&t[n].apply(t,r),t.emit.apply(t,[e].concat(r))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children,t=e.filter((function(e){return!e.isDisabled})),n=!!t.length&&t.every((function(e){return e.checked}));this.setCheckState(n)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce((function(e,t){var n=t.checked?1:t.indeterminate?.5:0;return e+n}),0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},I(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,i=n.disabled,r=n.checkStrictly;return e[i]||!r&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,i=this.children,r=this.config,a=r.lazy,o=r.leaf;if(a){var s=Object(D["isDef"])(e[o])?e[o]:!!t&&!i.length;return this.hasChildren=!s,s}return!n}}]),e}(),R=L;function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var F=function e(t,n){return t.reduce((function(t,i){return i.isLeaf?t.push(i):(!n&&t.push(i),t=t.concat(e(i.children,n))),t}),[])},B=function(){function e(t,n){N(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(m["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new R(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new R(e,this.config,t),i=t?t.children:this.nodes;i.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(m["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:F(this.nodes,e)},e.prototype.getNodeByValue=function(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(m["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null},e}(),z=B,V=n(9),U=n.n(V),H=n(40),$=n.n(H),j=n(31),W=n.n(j),G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},q=$.a.keys,X={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:m["noop"],value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Y=function(e){return!e.getAttribute("aria-owns")},K=function(e,t){var n=e.parentNode;if(n){var i=n.querySelectorAll('.el-cascader-node[tabindex="-1"]'),r=Array.prototype.indexOf.call(i,e);return i[r+t]||null}return null},Z=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},J=function(e){e&&(e.focus(),!Y(e)&&e.click())},Q=function(e){if(e){var t=e.querySelector("input");t?t.click():Y(e)&&e.click()}},ee={name:"ElCascaderPanel",components:{CascaderMenu:k},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return U()(G({},X),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{options:{handler:function(){this.initStore()},immediate:!0,deep:!0},value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},checkedValue:function(e){Object(m["isEqual"])(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(m["isEmpty"])(t)?this.lazyLoad():(this.store=new z(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(m["isEqual"])(e,t)||(this.activePath=[],this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this,t=this.getFlattedNodes(this.leafOnly);t.forEach((function(t){t.syncCheckState(e.checkedValue)}))},isEmptyValue:function(e){var t=this.multiple,n=this.config,i=n.emitPath;return!(!t&&!i)&&Object(m["isEmpty"])(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,i=this.activePath,r=this.checkedValue;if(Object(m["isEmpty"])(i))if(this.isEmptyValue(r))this.activePath=[],this.menus=[t.getNodes()];else{var a=n?r[0]:r,o=this.getNodeByValue(a)||{},s=(o.pathNodes||[]).slice(0,-1);this.expandNodes(s)}else{var l=i.map((function(t){return e.getNodeByValue(t.getValue())}));this.expandNodes(l)}},expandNodes:function(e){var t=this;e.forEach((function(e){return t.handleExpand(e,!0)}))},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple,i=n?Object(m["coerceTruthyValueToArray"])(t):[t];this.checkedNodePaths=i.map((function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]}))},handleKeyDown:function(e){var t=e.target,n=e.keyCode;switch(n){case q.up:var i=K(t,-1);J(i);break;case q.down:var r=K(t,1);J(r);break;case q.left:var a=this.$refs.menu[Z(t)-1];if(a){var o=a.$el.querySelector('.el-cascader-node[aria-expanded="true"]');J(o)}break;case q.right:var s=this.$refs.menu[Z(t)+1];if(s){var l=s.$el.querySelector('.el-cascader-node[tabindex="-1"]');J(l)}break;case q.enter:Q(t);break;case q.esc:case q.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,i=e.level,r=n.slice(0,i-1),a=this.menus.slice(0,i);if(e.isLeaf||(r.push(e),a.push(e.children)),this.activePath=r,this.menus=a,!t){var o=r.map((function(e){return e.getValue()})),s=n.map((function(e){return e.getValue()}));Object(m["valueEquals"])(o,s)||(this.$emit("active-item-change",o),this.$emit("expand-change",o))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,i=this.config;e||(e=e||{root:!0,level:0},this.store=new z([],i),this.menus=[this.store.getNodes()]),e.loading=!0;var r=function(i){var r=e.root?null:e;if(i&&i.length&&n.store.appendNodes(i,r),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var a=n.checkedValue[n.loadCount++],o=n.config.value,s=n.config.leaf;if(Array.isArray(i)&&i.filter((function(e){return e[o]===a})).length>0){var l=n.store.getNodeByValue(a);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(i)};i.lazyLoad(e,r)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),i=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");W()(n,i)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var i=this.getFlattedNodes(e);return i.filter((function(e){return e.checked}))}return this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,i=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=i?[]:null}}},te=ee,ne=Object(_["a"])(te,i,r,!1,null,null,null);ne.options.__file="packages/cascader-panel/src/cascader-panel.vue";var ie=ne.exports;ie.install=function(e){e.component(ie.name,ie)};t["default"]=ie},9:function(e,t){e.exports=n(85032)}})},77788:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=92)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},4:function(e,t){e.exports=n(6392)},92:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)},r=[];i._withStripped=!0;var a=n(4),o=n.n(a),s={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[o.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},l=s,c=n(0),u=Object(c["a"])(l,i,r,!1,null,null,null);u.options.__file="packages/checkbox/src/checkbox-group.vue";var h=u.exports;h.install=function(e){e.component(h.name,h)};t["default"]=h}})},45317:function(e,t,n){n(70252),e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=90)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},4:function(e,t){e.exports=n(6392)},90:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var a=null,o=e._i(n,a);i.checked?o<0&&(e.model=n.concat([a])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,i=t.target,r=!!i.checked;if(Array.isArray(n)){var a=e.label,o=e._i(n,a);i.checked?o<0&&(e.model=n.concat([a])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])},r=[];i._withStripped=!0;var a=n(4),o=n.n(a),s={name:"ElCheckbox",mixins:[o.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},l=s,c=n(0),u=Object(c["a"])(l,i,r,!1,null,null,null);u.options.__file="packages/checkbox/src/checkbox.vue";var h=u.exports;h.install=function(e){e.component(h.name,h)};t["default"]=h}})},6265:function(e,t,n){n(70252),n(13296),n(28078),n(15454),e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=45)}([function(e,t){e.exports=n(32952)},function(e,t){e.exports=n(75132)},function(e,t){e.exports=n(2634)},function(e,t){e.exports=n(6392)},function(e,t){e.exports=n(16534)},function(e,t){e.exports=n(37928)},function(e,t){e.exports=n(30783)},function(e,t){e.exports=n(85032)},function(e,t){e.exports=n(49623)},function(e,t){e.exports=n(61425)},function(e,t){e.exports=n(76267)},function(e,t){e.exports=n(58312)},function(e,t){e.exports=n(53275)},function(e,t){e.exports=n(95136)},function(e,t){e.exports=n(87338)},function(e,t){e.exports=n(35817)},function(e,t){e.exports=n(74947)},function(e,t){e.exports=n(45317)},function(e,t){e.exports=n(17191)},function(e,t){e.exports=n(3743)},function(e,t){e.exports=n(48850)},function(e,t){e.exports=n(68817)},function(e,t){e.exports=n(23144)},function(e,t){e.exports=n(14852)},function(e,t){e.exports=n(32013)},function(e,t){e.exports=n(5506)},function(e,t){e.exports=n(36056)},function(e,t){e.exports=n(17889)},function(e,t){e.exports=n(31211)},function(e,t){e.exports=n(53408)},function(e,t){e.exports=n(84661)},function(e,t){e.exports=n(77788)},function(e,t){e.exports=n(39720)},function(e,t){e.exports=n(76853)},function(e,t){e.exports=n(62918)},function(e,t){e.exports=n(8172)},function(e,t){e.exports=n(50940)},function(e,t){e.exports=n(39024)},function(e,t){e.exports=n(74124)},function(e,t){e.exports=n(92169)},function(e,t){e.exports=n(68589)},function(e,t){e.exports=n(49016)},function(e,t){e.exports=n(99451)},function(e,t){e.exports=n(10266)},function(e,t){e.exports=n(15851)},function(e,t,n){e.exports=n(46)},function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"el-pager",on:{click:e.onPagerClick}},[e.pageCount>0?n("li",{staticClass:"number",class:{active:1===e.currentPage,disabled:e.disabled}},[e._v("1")]):e._e(),e.showPrevMore?n("li",{staticClass:"el-icon more btn-quickprev",class:[e.quickprevIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("left")},mouseleave:function(t){e.quickprevIconClass="el-icon-more"}}}):e._e(),e._l(e.pagers,(function(t){return n("li",{key:t,staticClass:"number",class:{active:e.currentPage===t,disabled:e.disabled}},[e._v(e._s(t))])})),e.showNextMore?n("li",{staticClass:"el-icon more btn-quicknext",class:[e.quicknextIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("right")},mouseleave:function(t){e.quicknextIconClass="el-icon-more"}}}):e._e(),e.pageCount>1?n("li",{staticClass:"number",class:{active:e.currentPage===e.pageCount,disabled:e.disabled}},[e._v(e._s(e.pageCount))]):e._e()],2)},r=[];i._withStripped=!0;var a={name:"ElPager",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(e){e||(this.quickprevIconClass="el-icon-more")},showNextMore:function(e){e||(this.quicknextIconClass="el-icon-more")}},methods:{onPagerClick:function(e){var t=e.target;if("UL"!==t.tagName&&!this.disabled){var n=Number(e.target.textContent),i=this.pageCount,r=this.currentPage,a=this.pagerCount-2;-1!==t.className.indexOf("more")&&(-1!==t.className.indexOf("quickprev")?n=r-a:-1!==t.className.indexOf("quicknext")&&(n=r+a)),isNaN(n)||(n<1&&(n=1),n>i&&(n=i)),n!==r&&this.$emit("change",n)}},onMouseenter:function(e){this.disabled||("left"===e?this.quickprevIconClass="el-icon-d-arrow-left":this.quicknextIconClass="el-icon-d-arrow-right")}},computed:{pagers:function(){var e=this.pagerCount,t=(e-1)/2,n=Number(this.currentPage),i=Number(this.pageCount),r=!1,a=!1;i>e&&(n>e-t&&(r=!0),n<i-t&&(a=!0));var o=[];if(r&&!a)for(var s=i-(e-2),l=s;l<i;l++)o.push(l);else if(!r&&a)for(var c=2;c<e;c++)o.push(c);else if(r&&a)for(var u=Math.floor(e/2)-1,h=n-u;h<=n+u;h++)o.push(h);else for(var d=2;d<i;d++)o.push(d);return this.showPrevMore=r,this.showNextMore=a,o}},data:function(){return{current:null,showPrevMore:!1,showNextMore:!1,quicknextIconClass:"el-icon-more",quickprevIconClass:"el-icon-more"}}},o=a;function s(e,t,n,i,r,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}var l=s(o,i,r,!1,null,null,null);l.options.__file="packages/pagination/src/pager.vue";var c=l.exports,u=n(36),h=n.n(u),d=n(37),p=n.n(d),f=n(8),m=n.n(f),g=n(4),v=n.n(g),y=n(2),_={name:"ElPagination",props:{pageSize:{type:Number,default:10},small:Boolean,total:Number,pageCount:Number,pagerCount:{type:Number,validator:function(e){return(0|e)===e&&e>4&&e<22&&e%2===1},default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(e){var t=this.layout;if(!t)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var n=e("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),i={prev:e("prev"),jumper:e("jumper"),pager:e("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:e("next"),sizes:e("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:e("slot",[this.$slots.default?this.$slots.default:""]),total:e("total")},r=t.split(",").map((function(e){return e.trim()})),a=e("div",{class:"el-pagination__rightwrapper"}),o=!1;return n.children=n.children||[],a.children=a.children||[],r.forEach((function(e){"->"!==e?o?a.children.push(i[e]):n.children.push(i[e]):o=!0})),o&&n.children.unshift(a),n},components:{Prev:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?e("span",[this.$parent.prevText]):e("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?e("span",[this.$parent.nextText]):e("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[v.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(e,t){Object(y["valueEquals"])(e,t)||Array.isArray(e)&&(this.$parent.internalPageSize=e.indexOf(this.$parent.pageSize)>-1?this.$parent.pageSize:this.pageSizes[0])}}},render:function(e){var t=this;return e("span",{class:"el-pagination__sizes"},[e("el-select",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||"",size:"mini",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map((function(n){return e("el-option",{attrs:{value:n,label:n+t.t("el.pagination.pagesize")}})}))])])},components:{ElSelect:h.a,ElOption:p.a},methods:{handleChange:function(e){e!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=e=parseInt(e,10),this.$parent.userChangePageSize=!0,this.$parent.$emit("update:pageSize",e),this.$parent.$emit("size-change",e))}}},Jumper:{mixins:[v.a],components:{ElInput:m.a},data:function(){return{userInput:null}},watch:{"$parent.internalCurrentPage":function(){this.userInput=null}},methods:{handleKeyup:function(e){var t=e.keyCode,n=e.target;13===t&&this.handleChange(n.value)},handleInput:function(e){this.userInput=e},handleChange:function(e){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(e),this.$parent.emitChange(),this.userInput=null}},render:function(e){return e("span",{class:"el-pagination__jump"},[this.t("el.pagination.goto"),e("el-input",{class:"el-pagination__editor is-in-pagination",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:"number",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t("el.pagination.pageClassifier")])}},Total:{mixins:[v.a],render:function(e){return"number"===typeof this.$parent.total?e("span",{class:"el-pagination__total"},[this.t("el.pagination.total",{total:this.$parent.total})]):""}},Pager:c},methods:{handleCurrentChange:function(e){this.internalCurrentPage=this.getValidCurrentPage(e),this.userChangePageSize=!0,this.emitChange()},prev:function(){if(!this.disabled){var e=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("prev-click",this.internalCurrentPage),this.emitChange()}},next:function(){if(!this.disabled){var e=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("next-click",this.internalCurrentPage),this.emitChange()}},getValidCurrentPage:function(e){e=parseInt(e,10);var t="number"===typeof this.internalPageCount,n=void 0;return t?e<1?n=1:e>this.internalPageCount&&(n=this.internalPageCount):(isNaN(e)||e<1)&&(n=1),(void 0===n&&isNaN(e)||0===n)&&(n=1),void 0===n?e:n},emitChange:function(){var e=this;this.$nextTick((function(){(e.internalCurrentPage!==e.lastEmittedPage||e.userChangePageSize)&&(e.$emit("current-change",e.internalCurrentPage),e.lastEmittedPage=e.internalCurrentPage,e.userChangePageSize=!1)}))}},computed:{internalPageCount:function(){return"number"===typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"===typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(e){this.internalCurrentPage=this.getValidCurrentPage(e)}},pageSize:{immediate:!0,handler:function(e){this.internalPageSize=isNaN(e)?10:e}},internalCurrentPage:{immediate:!0,handler:function(e){this.$emit("update:currentPage",e),this.lastEmittedPage=-1}},internalPageCount:function(e){var t=this.internalCurrentPage;e>0&&0===t?this.internalCurrentPage=1:t>e&&(this.internalCurrentPage=0===e?1:e,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}},install:function(e){e.component(_.name,_)}},x=_,b=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{key:e.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":e.fullscreen,"el-dialog--center":e.center},e.customClass],style:e.style,attrs:{role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[e._t("title",[n("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:e.handleClose}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2),e.rendered?n("div",{staticClass:"el-dialog__body"},[e._t("default")],2):e._e(),e.$slots.footer?n("div",{staticClass:"el-dialog__footer"},[e._t("footer")],2):e._e()])])])},w=[];b._withStripped=!0;var S=n(11),M=n.n(S),C=n(9),T=n.n(C),E=n(3),A=n.n(E),k={name:"ElDialog",mixins:[M.a,A.a,T.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick((function(){t.$refs.dialog.scrollTop=0})),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick((function(){t.key++})))}},computed:{style:function(){var e={};return this.fullscreen||(e.marginTop=this.top,this.width&&(e.width=this.width)),e}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},D=k,I=s(D,b,w,!1,null,null,null);I.options.__file="packages/dialog/src/component.vue";var P=I.exports;P.install=function(e){e.component(P.name,P)};var O=P,L=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":e.suggestionVisible,"aria-owns":e.id}},[n("el-input",e._b({ref:"input",on:{input:e.handleInput,change:e.handleChange,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex-1)},function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex+1)},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleKeyEnter(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.close(t)}]}},"el-input",[e.$props,e.$attrs],!1),[e.$slots.prepend?n("template",{slot:"prepend"},[e._t("prepend")],2):e._e(),e.$slots.append?n("template",{slot:"append"},[e._t("append")],2):e._e(),e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e.$slots.suffix?n("template",{slot:"suffix"},[e._t("suffix")],2):e._e()],2),n("el-autocomplete-suggestions",{ref:"suggestions",class:[e.popperClass?e.popperClass:""],attrs:{"visible-arrow":"","popper-options":e.popperOptions,"append-to-body":e.popperAppendToBody,placement:e.placement,id:e.id}},e._l(e.suggestions,(function(t,i){return n("li",{key:i,class:{highlighted:e.highlightedIndex===i},attrs:{id:e.id+"-item-"+i,role:"option","aria-selected":e.highlightedIndex===i},on:{click:function(n){e.select(t)}}},[e._t("default",[e._v("\n "+e._s(t[e.valueKey])+"\n ")],{item:t})],2)})),0)],1)},R=[];L._withStripped=!0;var N=n(16),F=n.n(N),B=n(10),z=n.n(B),V=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!e.parent.hideLoading&&e.parent.loading},style:{width:e.dropdownWidth},attrs:{role:"region"}},[n("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!e.parent.hideLoading&&e.parent.loading?n("li",[n("i",{staticClass:"el-icon-loading"})]):e._t("default")],2)],1)])},U=[];V._withStripped=!0;var H=n(5),$=n.n(H),j=n(18),W=n.n(j),G={components:{ElScrollbar:W.a},mixins:[$.a,A.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(e){this.dispatch("ElAutocomplete","item-click",e)}},updated:function(){var e=this;this.$nextTick((function(t){e.popperJS&&e.updatePopper()}))},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var e=this;this.$on("visible",(function(t,n){e.dropdownWidth=n+"px",e.showPopper=t}))}},q=G,X=s(q,V,U,!1,null,null,null);X.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var Y=X.exports,K=n(23),Z=n.n(K),J={name:"ElAutocomplete",mixins:[A.a,Z()("input"),T.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:m.a,ElAutocompleteSuggestions:Y},directives:{Clickoutside:z.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var e=this.suggestions,t=Array.isArray(e)&&e.length>0;return(t||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(y["generateId"])()}},watch:{suggestionVisible:function(e){var t=this.getInput();t&&this.broadcast("ElAutocompleteSuggestions","visible",[e,t.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(e){var t=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(e,(function(e){t.loading=!1,t.suggestionDisabled||(Array.isArray(e)?(t.suggestions=e,t.highlightedIndex=t.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))})))},handleInput:function(e){if(this.$emit("input",e),this.suggestionDisabled=!1,!this.triggerOnFocus&&!e)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(e)},handleChange:function(e){this.$emit("change",e)},handleFocus:function(e){this.activated=!0,this.$emit("focus",e),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(e){this.$emit("blur",e)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(e){this.activated=!1},handleKeyEnter:function(e){var t=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex<this.suggestions.length?(e.preventDefault(),this.select(this.suggestions[this.highlightedIndex])):this.selectWhenUnmatched&&(this.$emit("select",{value:this.value}),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1})))},select:function(e){var t=this;this.$emit("input",e[this.valueKey]),this.$emit("select",e),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1}))},highlight:function(e){if(this.suggestionVisible&&!this.loading)if(e<0)this.highlightedIndex=-1;else{e>=this.suggestions.length&&(e=this.suggestions.length-1);var t=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap"),n=t.querySelectorAll(".el-autocomplete-suggestion__list li"),i=n[e],r=t.scrollTop,a=i.offsetTop;a+i.scrollHeight>r+t.clientHeight&&(t.scrollTop+=i.scrollHeight),a<r&&(t.scrollTop-=i.scrollHeight),this.highlightedIndex=e;var o=this.getInput();o.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)}},getInput:function(){return this.$refs.input.getInput()}},mounted:function(){var e=this;this.debouncedGetData=F()(this.debounce,this.getData),this.$on("item-click",(function(t){e.select(t)}));var t=this.getInput();t.setAttribute("role","textbox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-controls","id"),t.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)},beforeDestroy:function(){this.$refs.suggestions.$destroy()}},Q=J,ee=s(Q,L,R,!1,null,null,null);ee.options.__file="packages/autocomplete/src/autocomplete.vue";var te=ee.exports;te.install=function(e){e.component(te.name,te)};var ne,ie,re=te,ae=n(13),oe=n.n(ae),se=n(28),le=n.n(se),ce={name:"ElDropdown",componentName:"ElDropdown",mixins:[A.a,T.a],directives:{Clickoutside:z.a},components:{ElButton:oe.a,ElButtonGroup:le.a},provide:function(){return{dropdown:this}},props:{trigger:{type:String,default:"hover"},type:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},placement:{type:String,default:"bottom-end"},visibleArrow:{default:!0},showTimeout:{type:Number,default:250},hideTimeout:{type:Number,default:150},tabindex:{type:Number,default:0},disabled:{type:Boolean,default:!1}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(y["generateId"])()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on("menu-item-click",this.handleMenuItemClick)},watch:{visible:function(e){this.broadcast("ElDropdownMenu","visible",e),this.$emit("visible-change",e)},focusing:function(e){var t=this.$el.querySelector(".el-dropdown-selfdefine");t&&(e?t.className+=" focusing":t.className=t.className.replace("focusing",""))}},methods:{getMigratingConfig:function(){return{props:{"menu-align":"menu-align is renamed to placement."}}},show:function(){var e=this;this.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!0}),"click"===this.trigger?0:this.showTimeout))},hide:function(){var e=this;this.disabled||(this.removeTabindex(),this.tabindex>=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!1}),"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(e){var t=e.keyCode;[38,40].indexOf(t)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),e.preventDefault(),e.stopPropagation()):13===t?this.handleClick():[9,27].indexOf(t)>-1&&this.hide()},handleItemKeyDown:function(e){var t=e.keyCode,n=e.target,i=this.menuItemsArray.indexOf(n),r=this.menuItemsArray.length-1,a=void 0;[38,40].indexOf(t)>-1?(a=38===t?0!==i?i-1:0:i<r?i+1:r,this.removeTabindex(),this.resetTabindex(this.menuItems[a]),this.menuItems[a].focus(),e.preventDefault(),e.stopPropagation()):13===t?(this.triggerElmFocus(),n.click(),this.hideOnClick&&(this.visible=!1)):[9,27].indexOf(t)>-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(e){this.removeTabindex(),e.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach((function(e){e.setAttribute("tabindex","-1")}))},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var e=this,t=this.trigger,n=this.show,i=this.hide,r=this.handleClick,a=this.splitButton,o=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=a?this.$refs.trigger.$el:this.$slots.default[0].elm;var l=this.dropdownElm;this.triggerElm.addEventListener("keydown",o),l.addEventListener("keydown",s,!0),a||(this.triggerElm.addEventListener("focus",(function(){e.focusing=!0})),this.triggerElm.addEventListener("blur",(function(){e.focusing=!1})),this.triggerElm.addEventListener("click",(function(){e.focusing=!1}))),"hover"===t?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",i),l.addEventListener("mouseenter",n),l.addEventListener("mouseleave",i)):"click"===t&&this.triggerElm.addEventListener("click",r)},handleMenuItemClick:function(e,t){this.hideOnClick&&(this.visible=!1),this.$emit("command",e,t)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(e){var t=this,n=this.hide,i=this.splitButton,r=this.type,a=this.dropdownSize,o=this.disabled,s=function(e){t.$emit("click",e),n()},l=null;if(i)l=e("el-button-group",[e("el-button",{attrs:{type:r,size:a,disabled:o},nativeOn:{click:s}},[this.$slots.default]),e("el-button",{ref:"trigger",attrs:{type:r,size:a,disabled:o},class:"el-dropdown__caret-button"},[e("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]);else{l=this.$slots.default;var c=l[0].data||{},u=c.attrs,h=void 0===u?{}:u;o&&!h.disabled&&(h.disabled=!0,c.attrs=h)}var d=o?null:this.$slots.dropdown;return e("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}],attrs:{"aria-disabled":o}},[l,d])}},ue=ce,he=s(ue,ne,ie,!1,null,null,null);he.options.__file="packages/dropdown/src/dropdown.vue";var de=he.exports;de.install=function(e){e.component(de.name,de)};var pe=de,fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[e.size&&"el-dropdown-menu--"+e.size]},[e._t("default")],2)])},me=[];fe._withStripped=!0;var ge={name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[$.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var e=this;this.$on("updatePopper",(function(){e.showPopper&&e.updatePopper()})),this.$on("visible",(function(t){e.showPopper=t}))},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(e){this.currentPlacement=e}}}},ve=ge,ye=s(ve,fe,me,!1,null,null,null);ye.options.__file="packages/dropdown/src/dropdown-menu.vue";var _e=ye.exports;_e.install=function(e){e.component(_e.name,_e)};var xe=_e,be=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":e.disabled,"el-dropdown-menu__item--divided":e.divided},attrs:{"aria-disabled":e.disabled,tabindex:e.disabled?null:-1},on:{click:e.handleClick}},[e.icon?n("i",{class:e.icon}):e._e(),e._t("default")],2)},we=[];be._withStripped=!0;var Se={name:"ElDropdownItem",mixins:[A.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(e){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},Me=Se,Ce=s(Me,be,we,!1,null,null,null);Ce.options.__file="packages/dropdown/src/dropdown-item.vue";var Te=Ce.exports;Te.install=function(e){e.component(Te.name,Te)};var Ee=Te,Ae=Ae||{};Ae.Utils=Ae.Utils||{},Ae.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(Ae.Utils.attemptFocus(n)||Ae.Utils.focusFirstDescendant(n))return!0}return!1},Ae.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(Ae.Utils.attemptFocus(n)||Ae.Utils.focusLastDescendant(n))return!0}return!1},Ae.Utils.attemptFocus=function(e){if(!Ae.Utils.isFocusable(e))return!1;Ae.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return Ae.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},Ae.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Ae.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var i=document.createEvent(n),r=arguments.length,a=Array(r>2?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o];return i.initEvent.apply(i,[t].concat(a)),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent("on"+t,i),e},Ae.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27};var ke=Ae.Utils,De=function(e,t){this.domNode=t,this.parent=e,this.subMenuItems=[],this.subIndex=0,this.init()};De.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()},De.prototype.gotoSubIndex=function(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e},De.prototype.addListeners=function(){var e=this,t=ke.keys,n=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(function(i){i.addEventListener("keydown",(function(i){var r=!1;switch(i.keyCode){case t.down:e.gotoSubIndex(e.subIndex+1),r=!0;break;case t.up:e.gotoSubIndex(e.subIndex-1),r=!0;break;case t.tab:ke.triggerEvent(n,"mouseleave");break;case t.enter:case t.space:r=!0,i.currentTarget.click();break}return r&&(i.preventDefault(),i.stopPropagation()),!1}))}))};var Ie=De,Pe=function(e){this.domNode=e,this.submenu=null,this.init()};Pe.prototype.init=function(){this.domNode.setAttribute("tabindex","0");var e=this.domNode.querySelector(".el-menu");e&&(this.submenu=new Ie(this,e)),this.addListeners()},Pe.prototype.addListeners=function(){var e=this,t=ke.keys;this.domNode.addEventListener("keydown",(function(n){var i=!1;switch(n.keyCode){case t.down:ke.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(0),i=!0;break;case t.up:ke.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(e.submenu.subMenuItems.length-1),i=!0;break;case t.tab:ke.triggerEvent(n.currentTarget,"mouseleave");break;case t.enter:case t.space:i=!0,n.currentTarget.click();break}i&&n.preventDefault()}))};var Oe=Pe,Le=function(e){this.domNode=e,this.init()};Le.prototype.init=function(){var e=this.domNode.childNodes;[].filter.call(e,(function(e){return 1===e.nodeType})).forEach((function(e){new Oe(e)}))};var Re,Ne,Fe=Le,Be=n(1),ze={name:"ElMenu",render:function(e){var t=e("ul",{attrs:{role:"menubar"},key:+this.collapse,style:{backgroundColor:this.backgroundColor||""},class:{"el-menu--horizontal":"horizontal"===this.mode,"el-menu--collapse":this.collapse,"el-menu":!0}},[this.$slots.default]);return this.collapseTransition?e("el-menu-collapse-transition",[t]):t},componentName:"ElMenu",mixins:[A.a,T.a],provide:function(){return{rootMenu:this}},components:{"el-menu-collapse-transition":{functional:!0,render:function(e,t){var n={props:{mode:"out-in"},on:{beforeEnter:function(e){e.style.opacity=.2},enter:function(e){Object(Be["addClass"])(e,"el-opacity-transition"),e.style.opacity=1},afterEnter:function(e){Object(Be["removeClass"])(e,"el-opacity-transition"),e.style.opacity=""},beforeLeave:function(e){e.dataset||(e.dataset={}),Object(Be["hasClass"])(e,"el-menu--collapse")?(Object(Be["removeClass"])(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(Be["addClass"])(e,"el-menu--collapse")):(Object(Be["addClass"])(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(Be["removeClass"])(e,"el-menu--collapse")),e.style.width=e.scrollWidth+"px",e.style.overflow="hidden"},leave:function(e){Object(Be["addClass"])(e,"horizontal-collapse-transition"),e.style.width=e.dataset.scrollWidth+"px"}}};return e("transition",n,t.children)}}},props:{mode:{type:String,default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:Array,uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0}},data:function(){return{activeIndex:this.defaultActive,openedMenus:this.defaultOpeneds&&!this.collapse?this.defaultOpeneds.slice(0):[],items:{},submenus:{}}},computed:{hoverBackground:function(){return this.backgroundColor?this.mixColor(this.backgroundColor,.2):""},isMenuPopup:function(){return"horizontal"===this.mode||"vertical"===this.mode&&this.collapse}},watch:{defaultActive:function(e){this.items[e]||(this.activeIndex=null),this.updateActiveIndex(e)},defaultOpeneds:function(e){this.collapse||(this.openedMenus=e)},collapse:function(e){e&&(this.openedMenus=[]),this.broadcast("ElSubmenu","toggle-collapse",e)}},methods:{updateActiveIndex:function(e){var t=this.items[e]||this.items[this.activeIndex]||this.items[this.defaultActive];t?(this.activeIndex=t.index,this.initOpenedMenu()):this.activeIndex=null},getMigratingConfig:function(){return{props:{theme:"theme is removed."}}},getColorChannels:function(e){if(e=e.replace("#",""),/^[0-9a-fA-F]{3}$/.test(e)){e=e.split("");for(var t=2;t>=0;t--)e.splice(t,0,e[t]);e=e.join("")}return/^[0-9a-fA-F]{6}$/.test(e)?{red:parseInt(e.slice(0,2),16),green:parseInt(e.slice(2,4),16),blue:parseInt(e.slice(4,6),16)}:{red:255,green:255,blue:255}},mixColor:function(e,t){var n=this.getColorChannels(e),i=n.red,r=n.green,a=n.blue;return t>0?(i*=1-t,r*=1-t,a*=1-t):(i+=(255-i)*t,r+=(255-r)*t,a+=(255-a)*t),"rgb("+Math.round(i)+", "+Math.round(r)+", "+Math.round(a)+")"},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},openMenu:function(e,t){var n=this.openedMenus;-1===n.indexOf(e)&&(this.uniqueOpened&&(this.openedMenus=n.filter((function(e){return-1!==t.indexOf(e)}))),this.openedMenus.push(e))},closeMenu:function(e){var t=this.openedMenus.indexOf(e);-1!==t&&this.openedMenus.splice(t,1)},handleSubmenuClick:function(e){var t=e.index,n=e.indexPath,i=-1!==this.openedMenus.indexOf(t);i?(this.closeMenu(t),this.$emit("close",t,n)):(this.openMenu(t,n),this.$emit("open",t,n))},handleItemClick:function(e){var t=this,n=e.index,i=e.indexPath,r=this.activeIndex,a=null!==e.index;a&&(this.activeIndex=e.index),this.$emit("select",n,i,e),("horizontal"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&a&&this.routeToItem(e,(function(e){if(t.activeIndex=r,e){if("NavigationDuplicated"===e.name)return;console.error(e)}}))},initOpenedMenu:function(){var e=this,t=this.activeIndex,n=this.items[t];if(n&&"horizontal"!==this.mode&&!this.collapse){var i=n.indexPath;i.forEach((function(t){var n=e.submenus[t];n&&e.openMenu(t,n.indexPath)}))}},routeToItem:function(e,t){var n=e.route||e.index;try{this.$router.push(n,(function(){}),t)}catch(i){console.error(i)}},open:function(e){var t=this,n=this.submenus[e.toString()].indexPath;n.forEach((function(e){return t.openMenu(e,n)}))},close:function(e){this.closeMenu(e)}},mounted:function(){this.initOpenedMenu(),this.$on("item-click",this.handleItemClick),this.$on("submenu-click",this.handleSubmenuClick),"horizontal"===this.mode&&new Fe(this.$el),this.$watch("items",this.updateActiveIndex)}},Ve=ze,Ue=s(Ve,Re,Ne,!1,null,null,null);Ue.options.__file="packages/menu/src/menu.vue";var He=Ue.exports;He.install=function(e){e.component(He.name,He)};var $e,je,We=He,Ge=n(21),qe=n.n(Ge),Xe={inject:["rootMenu"],computed:{indexPath:function(){var e=[this.index],t=this.$parent;while("ElMenu"!==t.$options.componentName)t.index&&e.unshift(t.index),t=t.$parent;return e},parentMenu:function(){var e=this.$parent;while(e&&-1===["ElMenu","ElSubmenu"].indexOf(e.$options.componentName))e=e.$parent;return e},paddingStyle:function(){if("vertical"!==this.rootMenu.mode)return{};var e=20,t=this.$parent;if(this.rootMenu.collapse)e=20;else while(t&&"ElMenu"!==t.$options.componentName)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return{paddingLeft:e+"px"}}}},Ye={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:$.a.props.offset,boundariesPadding:$.a.props.boundariesPadding,popperOptions:$.a.props.popperOptions},data:$.a.data,methods:$.a.methods,beforeDestroy:$.a.beforeDestroy,deactivated:$.a.deactivated},Ke={name:"ElSubmenu",componentName:"ElSubmenu",mixins:[Xe,A.a,Ye],components:{ElCollapseTransition:qe.a},props:{index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0}},data:function(){return{popperJS:null,timeout:null,items:{},submenus:{},mouseInChild:!1}},watch:{opened:function(e){var t=this;this.isMenuPopup&&this.$nextTick((function(e){t.updatePopper()}))}},computed:{appendToBody:function(){return void 0===this.popperAppendToBody?this.isFirstLevel:this.popperAppendToBody},menuTransitionName:function(){return this.rootMenu.collapse?"el-zoom-in-left":"el-zoom-in-top"},opened:function(){return this.rootMenu.openedMenus.indexOf(this.index)>-1},active:function(){var e=!1,t=this.submenus,n=this.items;return Object.keys(n).forEach((function(t){n[t].active&&(e=!0)})),Object.keys(t).forEach((function(n){t[n].active&&(e=!0)})),e},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},isMenuPopup:function(){return this.rootMenu.isMenuPopup},titleStyle:function(){return"horizontal"!==this.mode?{color:this.textColor}:{borderBottomColor:this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent",color:this.active?this.activeTextColor:this.textColor}},isFirstLevel:function(){var e=!0,t=this.$parent;while(t&&t!==this.rootMenu){if(["ElSubmenu","ElMenuItemGroup"].indexOf(t.$options.componentName)>-1){e=!1;break}t=t.$parent}return e}},methods:{handleCollapseToggle:function(e){e?this.initPopper():this.doDestroy()},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},handleClick:function(){var e=this.rootMenu,t=this.disabled;"hover"===e.menuTrigger&&"horizontal"===e.mode||e.collapse&&"vertical"===e.mode||t||this.dispatch("ElMenu","submenu-click",this)},handleMouseenter:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.showTimeout;if("ActiveXObject"in window||"focus"!==e.type||e.relatedTarget){var i=this.rootMenu,r=this.disabled;"click"===i.menuTrigger&&"horizontal"===i.mode||!i.collapse&&"vertical"===i.mode||r||(this.dispatch("ElSubmenu","mouse-enter-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.rootMenu.openMenu(t.index,t.indexPath)}),n),this.appendToBody&&this.$parent.$el.dispatchEvent(new MouseEvent("mouseenter")))}},handleMouseleave:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rootMenu;"click"===n.menuTrigger&&"horizontal"===n.mode||!n.collapse&&"vertical"===n.mode||(this.dispatch("ElSubmenu","mouse-leave-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){!e.mouseInChild&&e.rootMenu.closeMenu(e.index)}),this.hideTimeout),this.appendToBody&&t&&"ElSubmenu"===this.$parent.$options.name&&this.$parent.handleMouseleave(!0))},handleTitleMouseenter:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.hoverBackground)}},handleTitleMouseleave:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.backgroundColor||"")}},updatePlacement:function(){this.currentPlacement="horizontal"===this.mode&&this.isFirstLevel?"bottom-start":"right-start"},initPopper:function(){this.referenceElm=this.$el,this.popperElm=this.$refs.menu,this.updatePlacement()}},created:function(){var e=this;this.$on("toggle-collapse",this.handleCollapseToggle),this.$on("mouse-enter-child",(function(){e.mouseInChild=!0,clearTimeout(e.timeout)})),this.$on("mouse-leave-child",(function(){e.mouseInChild=!1,clearTimeout(e.timeout)}))},mounted:function(){this.parentMenu.addSubmenu(this),this.rootMenu.addSubmenu(this),this.initPopper()},beforeDestroy:function(){this.parentMenu.removeSubmenu(this),this.rootMenu.removeSubmenu(this)},render:function(e){var t=this,n=this.active,i=this.opened,r=this.paddingStyle,a=this.titleStyle,o=this.backgroundColor,s=this.rootMenu,l=this.currentPlacement,c=this.menuTransitionName,u=this.mode,h=this.disabled,d=this.popperClass,p=this.$slots,f=this.isFirstLevel,m=e("transition",{attrs:{name:c}},[e("div",{ref:"menu",directives:[{name:"show",value:i}],class:["el-menu--"+u,d],on:{mouseenter:function(e){return t.handleMouseenter(e,100)},mouseleave:function(){return t.handleMouseleave(!0)},focus:function(e){return t.handleMouseenter(e,100)}}},[e("ul",{attrs:{role:"menu"},class:["el-menu el-menu--popup","el-menu--popup-"+l],style:{backgroundColor:s.backgroundColor||""}},[p.default])])]),g=e("el-collapse-transition",[e("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:i}],style:{backgroundColor:s.backgroundColor||""}},[p.default])]),v="horizontal"===s.mode&&f||"vertical"===s.mode&&!s.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return e("li",{class:{"el-submenu":!0,"is-active":n,"is-opened":i,"is-disabled":h},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":i},on:{mouseenter:this.handleMouseenter,mouseleave:function(){return t.handleMouseleave(!1)},focus:this.handleMouseenter}},[e("div",{class:"el-submenu__title",ref:"submenu-title",on:{click:this.handleClick,mouseenter:this.handleTitleMouseenter,mouseleave:this.handleTitleMouseleave},style:[r,a,{backgroundColor:o}]},[p.title,e("i",{class:["el-submenu__icon-arrow",v]})]),this.isMenuPopup?m:g])}},Ze=Ke,Je=s(Ze,$e,je,!1,null,null,null);Je.options.__file="packages/menu/src/submenu.vue";var Qe=Je.exports;Qe.install=function(e){e.component(Qe.name,Qe)};var et=Qe,tt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item",class:{"is-active":e.active,"is-disabled":e.disabled},style:[e.paddingStyle,e.itemStyle,{backgroundColor:e.backgroundColor}],attrs:{role:"menuitem",tabindex:"-1"},on:{click:e.handleClick,mouseenter:e.onMouseEnter,focus:e.onMouseEnter,blur:e.onMouseLeave,mouseleave:e.onMouseLeave}},["ElMenu"===e.parentMenu.$options.componentName&&e.rootMenu.collapse&&e.$slots.title?n("el-tooltip",{attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[e._t("title")],2),n("div",{staticStyle:{position:"absolute",left:"0",top:"0",height:"100%",width:"100%",display:"inline-block","box-sizing":"border-box",padding:"0 20px"}},[e._t("default")],2)]):[e._t("default"),e._t("title")]],2)},nt=[];tt._withStripped=!0;var it=n(26),rt=n.n(it),at={name:"ElMenuItem",componentName:"ElMenuItem",mixins:[Xe,A.a],components:{ElTooltip:rt.a},props:{index:{default:null,validator:function(e){return"string"===typeof e||null===e}},route:[String,Object],disabled:Boolean},computed:{active:function(){return this.index===this.rootMenu.activeIndex},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},itemStyle:function(){var e={color:this.active?this.activeTextColor:this.textColor};return"horizontal"!==this.mode||this.isNested||(e.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent"),e},isNested:function(){return this.parentMenu!==this.rootMenu}},methods:{onMouseEnter:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.hoverBackground)},onMouseLeave:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.backgroundColor)},handleClick:function(){this.disabled||(this.dispatch("ElMenu","item-click",this),this.$emit("click",this))}},mounted:function(){this.parentMenu.addItem(this),this.rootMenu.addItem(this)},beforeDestroy:function(){this.parentMenu.removeItem(this),this.rootMenu.removeItem(this)}},ot=at,st=s(ot,tt,nt,!1,null,null,null);st.options.__file="packages/menu/src/menu-item.vue";var lt=st.exports;lt.install=function(e){e.component(lt.name,lt)};var ct=lt,ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item-group"},[n("div",{staticClass:"el-menu-item-group__title",style:{paddingLeft:e.levelPadding+"px"}},[e.$slots.title?e._t("title"):[e._v(e._s(e.title))]],2),n("ul",[e._t("default")],2)])},ht=[];ut._withStripped=!0;var dt={name:"ElMenuItemGroup",componentName:"ElMenuItemGroup",inject:["rootMenu"],props:{title:{type:String}},data:function(){return{paddingLeft:20}},computed:{levelPadding:function(){var e=20,t=this.$parent;if(this.rootMenu.collapse)return 20;while(t&&"ElMenu"!==t.$options.componentName)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return e}}},pt=dt,ft=s(pt,ut,ht,!1,null,null,null);ft.options.__file="packages/menu/src/menu-item-group.vue";var mt=ft.exports;mt.install=function(e){e.component(mt.name,mt)};var gt=mt,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},yt=[];vt._withStripped=!0;var _t=void 0,xt="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",bt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function wt(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),r=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),a=bt.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:a,paddingSize:i,borderSize:r,boxSizing:n}}function St(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;_t||(_t=document.createElement("textarea"),document.body.appendChild(_t));var i=wt(e),r=i.paddingSize,a=i.borderSize,o=i.boxSizing,s=i.contextStyle;_t.setAttribute("style",s+";"+xt),_t.value=e.value||e.placeholder||"";var l=_t.scrollHeight,c={};"border-box"===o?l+=a:"content-box"===o&&(l-=r),_t.value="";var u=_t.scrollHeight-r;if(null!==t){var h=u*t;"border-box"===o&&(h=h+r+a),l=Math.max(h,l),c.minHeight=h+"px"}if(null!==n){var d=u*n;"border-box"===o&&(d=d+r+a),l=Math.min(d,l)}return c.height=l+"px",_t.parentNode&&_t.parentNode.removeChild(_t),_t=null,c}var Mt=n(7),Ct=n.n(Mt),Tt=n(19),Et={name:"ElInput",componentName:"ElInput",mixins:[A.a,T.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return Ct()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,i=e.maxRows;this.textareaCalcStyle=St(this.$refs.textarea,n,i)}else this.textareaCalcStyle={minHeight:St(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(e){this.$emit("compositionstart",e),this.isComposing=!0},handleCompositionUpdate:function(e){this.$emit("compositionupdate",e);var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(Tt["isKorean"])(n)},handleCompositionEnd:function(e){this.$emit("compositionend",e),this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,i=0;i<t.length;i++)if(t[i].parentNode===this.$el){n=t[i];break}if(n){var r={suffix:"append",prefix:"prepend"},a=r[e];this.$slots[a]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+a).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},At=Et,kt=s(At,vt,yt,!1,null,null,null);kt.options.__file="packages/input/src/input.vue";var Dt=kt.exports;Dt.install=function(e){e.component(Dt.name,Dt)};var It=Dt,Pt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.decrease(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.increase(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.increase(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.decrease(t))}]}})],1)},Ot=[];Pt._withStripped=!0;var Lt={bind:function(e,t,n){var i=null,r=void 0,a=function(){return n.context[t.expression].apply()},o=function(){Date.now()-r<100&&a(),clearInterval(i),i=null};Object(Be["on"])(e,"mousedown",(function(e){0===e.button&&(r=Date.now(),Object(Be["once"])(document,"mouseup",o),clearInterval(i),i=setInterval(a,100))}))}},Rt={name:"ElInputNumber",mixins:[Z()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:Lt},components:{ElInput:m.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),i=Math.pow(10,n);t=Math.round(t/this.step)*i*this.step/i}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,i=this.precision,r=n(t);return void 0!==i?(r>i&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),i):Math.max(n(e),r)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"===typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),i=0;return-1!==n&&(i=t.length-n-1),i},_increase:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"===typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){var e=this.$refs.input.$refs.input;e.setAttribute("aria-valuenow",this.currentValue)}}},Nt=Rt,Ft=s(Nt,Pt,Ot,!1,null,null,null);Ft.options.__file="packages/input-number/src/input-number.vue";var Bt=Ft.exports;Bt.install=function(e){e.component(Bt.name,Bt)};var zt=Bt,Vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},Ut=[];Vt._withStripped=!0;var Ht={name:"ElRadio",mixins:[A.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},$t=Ht,jt=s($t,Vt,Ut,!1,null,null,null);jt.options.__file="packages/radio/src/radio.vue";var Wt=jt.exports;Wt.install=function(e){e.component(Wt.name,Wt)};var Gt=Wt,qt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:e.handleKeydown}},[e._t("default")],2)},Xt=[];qt._withStripped=!0;var Yt=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),Kt={name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[A.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){var e=(this.$vnode.data||{}).tag;return e&&"component"!==e||(e="div"),e},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var e=this;this.$on("handleChange",(function(t){e.$emit("change",t)}))},mounted:function(){var e=this.$el.querySelectorAll("[type=radio]"),t=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(e,(function(e){return e.checked}))&&t&&(t.tabIndex=0)},methods:{handleKeydown:function(e){var t=e.target,n="INPUT"===t.nodeName?"[type=radio]":"[role=radio]",i=this.$el.querySelectorAll(n),r=i.length,a=[].indexOf.call(i,t),o=this.$el.querySelectorAll("[role=radio]");switch(e.keyCode){case Yt.LEFT:case Yt.UP:e.stopPropagation(),e.preventDefault(),0===a?(o[r-1].click(),o[r-1].focus()):(o[a-1].click(),o[a-1].focus());break;case Yt.RIGHT:case Yt.DOWN:a===r-1?(e.stopPropagation(),e.preventDefault(),o[0].click(),o[0].focus()):(o[a+1].click(),o[a+1].focus());break;default:break}}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[this.value])}}},Zt=Kt,Jt=s(Zt,qt,Xt,!1,null,null,null);Jt.options.__file="packages/radio/src/radio-group.vue";var Qt=Jt.exports;Qt.install=function(e){e.component(Qt.name,Qt)};var en=Qt,tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio-button",class:[e.size?"el-radio-button--"+e.size:"",{"is-active":e.value===e.label},{"is-disabled":e.isDisabled},{"is-focus":e.focus}],attrs:{role:"radio","aria-checked":e.value===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.value=e.isDisabled?e.value:e.label}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"el-radio-button__orig-radio",attrs:{type:"radio",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.value,e.label)},on:{change:[function(t){e.value=e.label},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),n("span",{staticClass:"el-radio-button__inner",style:e.value===e.label?e.activeStyle:null,on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},nn=[];tn._withStripped=!0;var rn={name:"ElRadioButton",mixins:[A.a],inject:{elForm:{default:""},elFormItem:{default:""}},props:{label:{},disabled:Boolean,name:String},data:function(){return{focus:!1}},computed:{value:{get:function(){return this._radioGroup.value},set:function(e){this._radioGroup.$emit("input",e)}},_radioGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return e;e=e.$parent}return!1},activeStyle:function(){return{backgroundColor:this._radioGroup.fill||"",borderColor:this._radioGroup.fill||"",boxShadow:this._radioGroup.fill?"-1px 0 0 0 "+this._radioGroup.fill:"",color:this._radioGroup.textColor||""}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._radioGroup.radioGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isDisabled:function(){return this.disabled||this._radioGroup.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this._radioGroup&&this.value!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.dispatch("ElRadioGroup","handleChange",e.value)}))}}},an=rn,on=s(an,tn,nn,!1,null,null,null);on.options.__file="packages/radio/src/radio-button.vue";var sn=on.exports;sn.install=function(e){e.component(sn.name,sn)};var ln=sn,cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var a=null,o=e._i(n,a);i.checked?o<0&&(e.model=n.concat([a])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,i=t.target,r=!!i.checked;if(Array.isArray(n)){var a=e.label,o=e._i(n,a);i.checked?o<0&&(e.model=n.concat([a])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])},un=[];cn._withStripped=!0;var hn={name:"ElCheckbox",mixins:[A.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},dn=hn,pn=s(dn,cn,un,!1,null,null,null);pn.options.__file="packages/checkbox/src/checkbox.vue";var fn=pn.exports;fn.install=function(e){e.component(fn.name,fn)};var mn=fn,gn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox-button",class:[e.size?"el-checkbox-button--"+e.size:"",{"is-disabled":e.isDisabled},{"is-checked":e.isChecked},{"is-focus":e.focus}],attrs:{role:"checkbox","aria-checked":e.isChecked,"aria-disabled":e.isDisabled}},[e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var a=null,o=e._i(n,a);i.checked?o<0&&(e.model=n.concat([a])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,i=t.target,r=!!i.checked;if(Array.isArray(n)){var a=e.label,o=e._i(n,a);i.checked?o<0&&(e.model=n.concat([a])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox-button__inner",style:e.isChecked?e.activeStyle:null},[e._t("default",[e._v(e._s(e.label))])],2):e._e()])},vn=[];gn._withStripped=!0;var yn={name:"ElCheckboxButton",mixins:[A.a],inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},props:{value:{},label:{},disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number]},computed:{model:{get:function(){return this._checkboxGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this._checkboxGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):void 0!==this.value?this.$emit("input",e):this.selfModel=e}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},_checkboxGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return e;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},activeStyle:function(){return{backgroundColor:this._checkboxGroup.fill||"",borderColor:this._checkboxGroup.fill||"",color:this._checkboxGroup.textColor||"","box-shadow":"-1px 0 0 0 "+this._checkboxGroup.fill}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._checkboxGroup.checkboxGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t._checkboxGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()}},_n=yn,xn=s(_n,gn,vn,!1,null,null,null);xn.options.__file="packages/checkbox/src/checkbox-button.vue";var bn=xn.exports;bn.install=function(e){e.component(bn.name,bn)};var wn=bn,Sn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)},Mn=[];Sn._withStripped=!0;var Cn={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[A.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},Tn=Cn,En=s(Tn,Sn,Mn,!1,null,null,null);En.options.__file="packages/checkbox/src/checkbox-group.vue";var An=En.exports;An.install=function(e){e.component(An.name,An)};var kn=An,Dn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-switch",class:{"is-disabled":e.switchDisabled,"is-checked":e.checked},attrs:{role:"switch","aria-checked":e.checked,"aria-disabled":e.switchDisabled},on:{click:function(t){return t.preventDefault(),e.switchValue(t)}}},[n("input",{ref:"input",staticClass:"el-switch__input",attrs:{type:"checkbox",id:e.id,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:e.switchDisabled},on:{change:e.handleChange,keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.switchValue(t)}}}),e.inactiveIconClass||e.inactiveText?n("span",{class:["el-switch__label","el-switch__label--left",e.checked?"":"is-active"]},[e.inactiveIconClass?n("i",{class:[e.inactiveIconClass]}):e._e(),!e.inactiveIconClass&&e.inactiveText?n("span",{attrs:{"aria-hidden":e.checked}},[e._v(e._s(e.inactiveText))]):e._e()]):e._e(),n("span",{ref:"core",staticClass:"el-switch__core",style:{width:e.coreWidth+"px"}}),e.activeIconClass||e.activeText?n("span",{class:["el-switch__label","el-switch__label--right",e.checked?"is-active":""]},[e.activeIconClass?n("i",{class:[e.activeIconClass]}):e._e(),!e.activeIconClass&&e.activeText?n("span",{attrs:{"aria-hidden":!e.checked}},[e._v(e._s(e.activeText))]):e._e()]):e._e()])},In=[];Dn._withStripped=!0;var Pn={name:"ElSwitch",mixins:[Z()("input"),T.a,A.a],inject:{elForm:{default:""}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:String,inactiveText:String,activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit("input",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[this.value])}},methods:{handleChange:function(e){var t=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n),this.$nextTick((function(){t.$refs.input&&(t.$refs.input.checked=t.checked)}))},setBackgroundColor:function(){var e=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=e,this.$refs.core.style.backgroundColor=e},switchValue:function(){!this.switchDisabled&&this.handleChange()},getMigratingConfig:function(){return{props:{"on-color":"on-color is renamed to active-color.","off-color":"off-color is renamed to inactive-color.","on-text":"on-text is renamed to active-text.","off-text":"off-text is renamed to inactive-text.","on-value":"on-value is renamed to active-value.","off-value":"off-value is renamed to inactive-value.","on-icon-class":"on-icon-class is renamed to active-icon-class.","off-icon-class":"off-icon-class is renamed to inactive-icon-class."}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},On=Pn,Ln=s(On,Dn,In,!1,null,null,null);Ln.options.__file="packages/switch/src/component.vue";var Rn=Ln.exports;Rn.install=function(e){e.component(Rn.name,Rn)};var Nn=Rn,Fn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)},Bn=[];Fn._withStripped=!0;var zn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},Vn=[];zn._withStripped=!0;var Un={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[$.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},Hn=Un,$n=s(Hn,zn,Vn,!1,null,null,null);$n.options.__file="packages/select/src/select-dropdown.vue";var jn=$n.exports,Wn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},Gn=[];Wn._withStripped=!0;var qn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xn={mixins:[A.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===("undefined"===typeof e?"undefined":qn(e))&&"object"===("undefined"===typeof t?"undefined":qn(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(y["getValueByPath"])(e,n)===Object(y["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(y["getValueByPath"])(e,n)===Object(y["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(y["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,i=n?t:[t],r=this.select.cachedOptions.indexOf(this),a=i.indexOf(this);r>-1&&a<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},Yn=Xn,Kn=s(Yn,Wn,Gn,!1,null,null,null);Kn.options.__file="packages/select/src/option.vue";var Zn=Kn.exports,Jn=n(29),Qn=n.n(Jn),ei=n(14),ti=n(27),ni=n.n(ti),ii={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},ri={mixins:[A.a,v.a,Z()("reference"),ii],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(y["isIE"])()&&!Object(y["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:m.a,ElSelectMenu:jn,ElOption:Zn,ElTag:Qn.a,ElScrollbar:W.a},directives:{Clickoutside:z.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(y["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(e){this.isOnComposition||this.navigateOptions(e)},handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var i=n[n.length-1]||"";this.isOnComposition=!Object(Tt["isKorean"])(i)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");ni()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(y["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),i="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),a=this.cachedOptions.length-1;a>=0;a--){var o=this.cachedOptions[a],s=n?Object(y["getValueByPath"])(o.value,this.valueKey)===Object(y["getValueByPath"])(e,this.valueKey):o.value===e;if(s){t=o;break}}if(t)return t;var l=n||i||r?"":String(e),c={value:e,currentLabel:l};return this.multiple&&(c.hitState=!1),c},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],i=e.$refs.tags,r=i?Math.round(i.getBoundingClientRect().height):0,a=e.initialInputHeight||40;n.style.height=0===e.selected.length?a+"px":Math.max(i?r+(r>a?6:0):0,a)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var i=(this.value||[]).slice(),r=this.getValueIndex(i,e.value);r>-1?i.splice(r,1):(this.multipleLimit<=0||i.length<this.multipleLimit)&&i.push(e.value),this.$emit("input",i),this.emitChange(i),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(e)}))},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var i=this.valueKey,r=-1;return e.some((function(e,n){return Object(y["getValueByPath"])(e,i)===Object(y["getValueByPath"])(t,i)&&(r=n,!0)})),r}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var i=this.value.slice();i.splice(n,1),this.$emit("input",i),this.emitChange(i),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var i=this.options[n];if(this.query){if(!i.disabled&&!i.groupDisabled&&i.visible){this.hoverIndex=n;break}}else if(i.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(y["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=F()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=F()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(ei["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},i=t.$el.querySelector("input");this.initialInputHeight=i.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(ei["removeResizeListener"])(this.$el,this.handleResize)}},ai=ri,oi=s(ai,Fn,Bn,!1,null,null,null);oi.options.__file="packages/select/src/select.vue";var si=oi.exports;si.install=function(e){e.component(si.name,si)};var li=si;Zn.install=function(e){e.component(Zn.name,Zn)};var ci=Zn,ui=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[n("li",{staticClass:"el-select-group__title"},[e._v(e._s(e.label))]),n("li",[n("ul",{staticClass:"el-select-group"},[e._t("default")],2)])])},hi=[];ui._withStripped=!0;var di={mixins:[A.a],name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(e){this.broadcast("ElOption","handleGroupDisabled",e)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some((function(e){return!0===e.visible}))}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},pi=di,fi=s(pi,ui,hi,!1,null,null,null);fi.options.__file="packages/select/src/option-group.vue";var mi=fi.exports;mi.install=function(e){e.component(mi.name,mi)};var gi=mi,vi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])},yi=[];vi._withStripped=!0;var _i={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},xi=_i,bi=s(xi,vi,yi,!1,null,null,null);bi.options.__file="packages/button/src/button.vue";var wi=bi.exports;wi.install=function(e){e.component(wi.name,wi)};var Si=wi,Mi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},Ci=[];Mi._withStripped=!0;var Ti={name:"ElButtonGroup"},Ei=Ti,Ai=s(Ei,Mi,Ci,!1,null,null,null);Ai.options.__file="packages/button/src/button-group.vue";var ki=Ai.exports;ki.install=function(e){e.component(ki.name,ki)};var Di=ki,Ii=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-table",class:[{"el-table--fit":e.fit,"el-table--striped":e.stripe,"el-table--border":e.border||e.isGroup,"el-table--hidden":e.isHidden,"el-table--group":e.isGroup,"el-table--fluid-height":e.maxHeight,"el-table--scrollable-x":e.layout.scrollX,"el-table--scrollable-y":e.layout.scrollY,"el-table--enable-row-hover":!e.store.states.isComplex,"el-table--enable-row-transition":0!==(e.store.states.data||[]).length&&(e.store.states.data||[]).length<100},e.tableSize?"el-table--"+e.tableSize:""],on:{mouseleave:function(t){e.handleMouseLeave(t)}}},[n("div",{ref:"hiddenColumns",staticClass:"hidden-columns"},[e._t("default")],2),e.showHeader?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"headerWrapper",staticClass:"el-table__header-wrapper"},[n("table-header",{ref:"tableHeader",style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"default-sort":e.defaultSort}})],1):e._e(),n("div",{ref:"bodyWrapper",staticClass:"el-table__body-wrapper",class:[e.layout.scrollX?"is-scrolling-"+e.scrollPosition:"is-scrolling-none"],style:[e.bodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{context:e.context,store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.data&&0!==e.data.length?e._e():n("div",{ref:"emptyBlock",staticClass:"el-table__empty-block",style:e.emptyBlockStyle},[n("span",{staticClass:"el-table__empty-text"},[e._t("empty",[e._v(e._s(e.emptyText||e.t("el.table.emptyText")))])],2)]),e.$slots.append?n("div",{ref:"appendWrapper",staticClass:"el-table__append-wrapper"},[e._t("append")],2):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"},{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[n("table-footer",{style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,"default-sort":e.defaultSort}})],1):e._e(),e.fixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"fixedWrapper",staticClass:"el-table__fixed",style:[{width:e.layout.fixedWidth?e.layout.fixedWidth+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"fixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"fixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"fixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"left",store:e.store,stripe:e.stripe,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"row-style":e.rowStyle}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"rightFixedWrapper",staticClass:"el-table__fixed-right",style:[{width:e.layout.rightFixedWidth?e.layout.rightFixedWidth+"px":"",right:e.layout.scrollY?(e.border?e.layout.gutterWidth:e.layout.gutterWidth||0)+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"rightFixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"rightFixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"rightFixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"right",store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{ref:"rightFixedPatch",staticClass:"el-table__fixed-right-patch",style:{width:e.layout.scrollY?e.layout.gutterWidth+"px":"0",height:e.layout.headerHeight+"px"}}):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.resizeProxyVisible,expression:"resizeProxyVisible"}],ref:"resizeProxy",staticClass:"el-table__column-resize-proxy"})])},Pi=[];Ii._withStripped=!0;var Oi=n(17),Li=n.n(Oi),Ri=n(35),Ni=n(38),Fi=n.n(Ni),Bi="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,zi=function(e,t){e&&e.addEventListener&&e.addEventListener(Bi?"DOMMouseScroll":"mousewheel",(function(e){var n=Fi()(e);t&&t.apply(this,[e,n])}))},Vi={bind:function(e,t){zi(e,t.value)}},Ui=n(6),Hi=n.n(Ui),$i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ji=function(e){var t=e.target;while(t&&"HTML"!==t.tagName.toUpperCase()){if("TD"===t.tagName.toUpperCase())return t;t=t.parentNode}return null},Wi=function(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":$i(e))},Gi=function(e,t,n,i,r){if(!t&&!i&&(!r||Array.isArray(r)&&!r.length))return e;n="string"===typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var a=i?null:function(n,i){return r?(Array.isArray(r)||(r=[r]),r.map((function(t){return"string"===typeof t?Object(y["getValueByPath"])(n,t):t(n,i,e)}))):("$key"!==t&&Wi(n)&&"$value"in n&&(n=n.$value),[Wi(n)?Object(y["getValueByPath"])(n,t):n])},o=function(e,t){if(i)return i(e.value,t.value);for(var n=0,r=e.key.length;n<r;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0};return e.map((function(e,t){return{value:e,index:t,key:a?a(e,t):null}})).sort((function(e,t){var i=o(e,t);return i||(i=e.index-t.index),i*n})).map((function(e){return e.value}))},qi=function(e,t){var n=null;return e.columns.forEach((function(e){e.id===t&&(n=e)})),n},Xi=function(e,t){for(var n=null,i=0;i<e.columns.length;i++){var r=e.columns[i];if(r.columnKey===t){n=r;break}}return n},Yi=function(e,t){var n=(t.className||"").match(/el-table_[^\s]+/gm);return n?qi(e,n[0]):null},Ki=function(e,t){if(!e)throw new Error("row is required when get row identity");if("string"===typeof t){if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),i=e,r=0;r<n.length;r++)i=i[n[r]];return i}if("function"===typeof t)return t.call(null,e)},Zi=function(e,t){var n={};return(e||[]).forEach((function(e,i){n[Ki(e,t)]={row:e,index:i}})),n};function Ji(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qi(e,t){var n={},i=void 0;for(i in e)n[i]=e[i];for(i in t)if(Ji(t,i)){var r=t[i];"undefined"!==typeof r&&(n[i]=r)}return n}function er(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e}function tr(e){return"undefined"!==typeof e&&(e=er(e),isNaN(e)&&(e=80)),e}function nr(e){return"number"===typeof e?e:"string"===typeof e?/^\d+(?:px)?$/.test(e)?parseInt(e,10):e:null}function ir(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function rr(e,t,n){var i=!1,r=e.indexOf(t),a=-1!==r,o=function(){e.push(t),i=!0},s=function(){e.splice(r,1),i=!0};return"boolean"===typeof n?n&&!a?o():!n&&a&&s():a?s():o(),i}function ar(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",r=function(e){return!(Array.isArray(e)&&e.length)};function a(e,o,s){t(e,o,s),o.forEach((function(e){if(e[i])t(e,null,s+1);else{var o=e[n];r(o)||a(e,o,s+1)}}))}e.forEach((function(e){if(e[i])t(e,null,0);else{var o=e[n];r(o)||a(e,o,0)}}))}var or={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,i=e.rowKey,r=e.defaultExpandAll,a=e.expandRows;if(r)this.states.expandRows=n.slice();else if(i){var o=Zi(a,i);this.states.expandRows=n.reduce((function(e,t){var n=Ki(t,i),r=o[n];return r&&e.push(t),e}),[])}else this.states.expandRows=[]},toggleRowExpansion:function(e,t){var n=rr(this.states.expandRows,e,t);n&&(this.table.$emit("expand-change",e,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(e){this.assertRowKey();var t=this.states,n=t.data,i=t.rowKey,r=Zi(n,i);this.states.expandRows=e.reduce((function(e,t){var n=r[t];return n&&e.push(n.row),e}),[])},isRowExpanded:function(e){var t=this.states,n=t.expandRows,i=void 0===n?[]:n,r=t.rowKey;if(r){var a=Zi(i,r);return!!a[Ki(e,r)]}return-1!==i.indexOf(e)}}},sr={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(e){this.assertRowKey(),this.states._currentRowKey=e,this.setCurrentRowByKey(e)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(e){var t=this.states,n=t.data,i=void 0===n?[]:n,r=t.rowKey,a=null;r&&(a=Object(y["arrayFind"])(i,(function(t){return Ki(t,r)===e}))),t.currentRow=a},updateCurrentRow:function(e){var t=this.states,n=this.table,i=t.currentRow;if(e&&e!==i)return t.currentRow=e,void n.$emit("current-change",e,i);!e&&i&&(t.currentRow=null,n.$emit("current-change",null,i))},updateCurrentRowData:function(){var e=this.states,t=this.table,n=e.rowKey,i=e._currentRowKey,r=e.data||[],a=e.currentRow;if(-1===r.indexOf(a)&&a){if(n){var o=Ki(a,n);this.setCurrentRowByKey(o)}else e.currentRow=null;null===e.currentRow&&t.$emit("current-change",null,a)}else i&&(this.setCurrentRowByKey(i),this.restoreCurrentRowKey())}}},lr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},cr={data:function(){return{states:{expandRowKeys:[],treeData:{},indent:16,lazy:!1,lazyTreeNodeMap:{},lazyColumnIdentifier:"hasChildren",childrenColumnName:"children"}}},computed:{normalizedData:function(){if(!this.states.rowKey)return{};var e=this.states.data||[];return this.normalize(e)},normalizedLazyNode:function(){var e=this.states,t=e.rowKey,n=e.lazyTreeNodeMap,i=e.lazyColumnIdentifier,r=Object.keys(n),a={};return r.length?(r.forEach((function(e){if(n[e].length){var r={children:[]};n[e].forEach((function(e){var n=Ki(e,t);r.children.push(n),e[i]&&!a[n]&&(a[n]={children:[]})})),a[e]=r}})),a):a}},watch:{normalizedData:"updateTreeData",normalizedLazyNode:"updateTreeData"},methods:{normalize:function(e){var t=this.states,n=t.childrenColumnName,i=t.lazyColumnIdentifier,r=t.rowKey,a=t.lazy,o={};return ar(e,(function(e,t,n){var i=Ki(e,r);Array.isArray(t)?o[i]={children:t.map((function(e){return Ki(e,r)})),level:n}:a&&(o[i]={children:[],lazy:!0,level:n})}),n,i),o},updateTreeData:function(){var e=this.normalizedData,t=this.normalizedLazyNode,n=Object.keys(e),i={};if(n.length){var r=this.states,a=r.treeData,o=r.defaultExpandAll,s=r.expandRowKeys,l=r.lazy,c=[],u=function(e,t){var n=o||s&&-1!==s.indexOf(t);return!!(e&&e.expanded||n)};n.forEach((function(t){var n=a[t],r=lr({},e[t]);if(r.expanded=u(n,t),r.lazy){var o=n||{},s=o.loaded,l=void 0!==s&&s,h=o.loading,d=void 0!==h&&h;r.loaded=!!l,r.loading=!!d,c.push(t)}i[t]=r}));var h=Object.keys(t);l&&h.length&&c.length&&h.forEach((function(e){var n=a[e],r=t[e].children;if(-1!==c.indexOf(e)){if(0!==i[e].children.length)throw new Error("[ElTable]children must be an empty array.");i[e].children=r}else{var o=n||{},s=o.loaded,l=void 0!==s&&s,h=o.loading,d=void 0!==h&&h;i[e]={lazy:!0,loaded:!!l,loading:!!d,expanded:u(n,e),children:r,level:""}}}))}this.states.treeData=i,this.updateTableScrollY()},updateTreeExpandKeys:function(e){this.states.expandRowKeys=e,this.updateTreeData()},toggleTreeExpansion:function(e,t){this.assertRowKey();var n=this.states,i=n.rowKey,r=n.treeData,a=Ki(e,i),o=a&&r[a];if(a&&o&&"expanded"in o){var s=o.expanded;t="undefined"===typeof t?!o.expanded:t,r[a].expanded=t,s!==t&&this.table.$emit("expand-change",e,t),this.updateTableScrollY()}},loadOrToggle:function(e){this.assertRowKey();var t=this.states,n=t.lazy,i=t.treeData,r=t.rowKey,a=Ki(e,r),o=i[a];n&&o&&"loaded"in o&&!o.loaded?this.loadData(e,a,o):this.toggleTreeExpansion(e)},loadData:function(e,t,n){var i=this,r=this.table.load,a=this.states.treeData;r&&!a[t].loaded&&(a[t].loading=!0,r(e,n,(function(n){if(!Array.isArray(n))throw new Error("[ElTable] data must be an array");var r=i.states,a=r.lazyTreeNodeMap,o=r.treeData;o[t].loading=!1,o[t].loaded=!0,o[t].expanded=!0,n.length&&i.$set(a,t,n),i.table.$emit("expand-change",e,!0)})))}}},ur=function(e,t){var n=t.sortingColumn;return n&&"string"!==typeof n.sortable?Gi(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e},hr=function e(t){var n=[];return t.forEach((function(t){t.children?n.push.apply(n,e(t.children)):n.push(t)})),n},dr=Hi.a.extend({data:function(){return{states:{rowKey:null,data:[],isComplex:!1,_columns:[],originColumns:[],columns:[],fixedColumns:[],rightFixedColumns:[],leafColumns:[],fixedLeafColumns:[],rightFixedLeafColumns:[],leafColumnsLength:0,fixedLeafColumnsLength:0,rightFixedLeafColumnsLength:0,isAllSelected:!1,selection:[],reserveSelection:!1,selectOnIndeterminate:!1,selectable:null,filters:{},filteredData:null,sortingColumn:null,sortProp:null,sortOrder:null,hoverRow:null}}},mixins:[or,sr,cr],methods:{assertRowKey:function(){var e=this.states.rowKey;if(!e)throw new Error("[ElTable] prop row-key is required")},updateColumns:function(){var e=this.states,t=e._columns||[];e.fixedColumns=t.filter((function(e){return!0===e.fixed||"left"===e.fixed})),e.rightFixedColumns=t.filter((function(e){return"right"===e.fixed})),e.fixedColumns.length>0&&t[0]&&"selection"===t[0].type&&!t[0].fixed&&(t[0].fixed=!0,e.fixedColumns.unshift(t[0]));var n=t.filter((function(e){return!e.fixed}));e.originColumns=[].concat(e.fixedColumns).concat(n).concat(e.rightFixedColumns);var i=hr(n),r=hr(e.fixedColumns),a=hr(e.rightFixedColumns);e.leafColumnsLength=i.length,e.fixedLeafColumnsLength=r.length,e.rightFixedLeafColumnsLength=a.length,e.columns=[].concat(r).concat(i).concat(a),e.isComplex=e.fixedColumns.length>0||e.rightFixedColumns.length>0},scheduleLayout:function(e){e&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(e){var t=this.states.selection,n=void 0===t?[]:t;return n.indexOf(e)>-1},clearSelection:function(){var e=this.states;e.isAllSelected=!1;var t=e.selection;t.length&&(e.selection=[],this.table.$emit("selection-change",[]))},cleanSelection:function(){var e=this.states,t=e.data,n=e.rowKey,i=e.selection,r=void 0;if(n){r=[];var a=Zi(i,n),o=Zi(t,n);for(var s in a)a.hasOwnProperty(s)&&!o[s]&&r.push(a[s].row)}else r=i.filter((function(e){return-1===t.indexOf(e)}));if(r.length){var l=i.filter((function(e){return-1===r.indexOf(e)}));e.selection=l,this.table.$emit("selection-change",l.slice())}},toggleRowSelection:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=rr(this.states.selection,e,t);if(i){var r=(this.states.selection||[]).slice();n&&this.table.$emit("select",r,e),this.table.$emit("selection-change",r)}},_toggleAllSelection:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,i=e.selection,r=e.selectOnIndeterminate?!e.isAllSelected:!(e.isAllSelected||i.length);e.isAllSelected=r;var a=!1;n.forEach((function(t,n){e.selectable?e.selectable.call(null,t,n)&&rr(i,t,r)&&(a=!0):rr(i,t,r)&&(a=!0)})),a&&this.table.$emit("selection-change",i?i.slice():[]),this.table.$emit("select-all",i)},updateSelectionByRowKey:function(){var e=this.states,t=e.selection,n=e.rowKey,i=e.data,r=Zi(t,n);i.forEach((function(e){var i=Ki(e,n),a=r[i];a&&(t[a.index]=e)}))},updateAllSelected:function(){var e=this.states,t=e.selection,n=e.rowKey,i=e.selectable,r=e.data||[];if(0!==r.length){var a=void 0;n&&(a=Zi(t,n));for(var o=function(e){return a?!!a[Ki(e,n)]:-1!==t.indexOf(e)},s=!0,l=0,c=0,u=r.length;c<u;c++){var h=r[c],d=i&&i.call(null,h,c);if(o(h))l++;else if(!i||d){s=!1;break}}0===l&&(s=!1),e.isAllSelected=s}else e.isAllSelected=!1},updateFilters:function(e,t){Array.isArray(e)||(e=[e]);var n=this.states,i={};return e.forEach((function(e){n.filters[e.id]=t,i[e.columnKey||e.id]=t})),i},updateSort:function(e,t,n){this.states.sortingColumn&&this.states.sortingColumn!==e&&(this.states.sortingColumn.order=null),this.states.sortingColumn=e,this.states.sortProp=t,this.states.sortOrder=n},execFilter:function(){var e=this,t=this.states,n=t._data,i=t.filters,r=n;Object.keys(i).forEach((function(n){var i=t.filters[n];if(i&&0!==i.length){var a=qi(e.states,n);a&&a.filterMethod&&(r=r.filter((function(e){return i.some((function(t){return a.filterMethod.call(null,t,e,a)}))})))}})),t.filteredData=r},execSort:function(){var e=this.states;e.data=ur(e.filteredData,e)},execQuery:function(e){e&&e.filter||this.execFilter(),this.execSort()},clearFilter:function(e){var t=this.states,n=this.table.$refs,i=n.tableHeader,r=n.fixedTableHeader,a=n.rightFixedTableHeader,o={};i&&(o=Ct()(o,i.filterPanels)),r&&(o=Ct()(o,r.filterPanels)),a&&(o=Ct()(o,a.filterPanels));var s=Object.keys(o);if(s.length)if("string"===typeof e&&(e=[e]),Array.isArray(e)){var l=e.map((function(e){return Xi(t,e)}));s.forEach((function(e){var t=l.find((function(t){return t.id===e}));t&&(o[e].filteredValue=[])})),this.commit("filterChange",{column:l,values:[],silent:!0,multi:!0})}else s.forEach((function(e){o[e].filteredValue=[]})),t.filters={},this.commit("filterChange",{column:{},values:[],silent:!0})},clearSort:function(){var e=this.states;e.sortingColumn&&(this.updateSort(null,null,null),this.commit("changeSortCondition",{silent:!0}))},setExpandRowKeysAdapter:function(e){this.setExpandRowKeys(e),this.updateTreeExpandKeys(e)},toggleRowExpansionAdapter:function(e,t){var n=this.states.columns.some((function(e){var t=e.type;return"expand"===t}));n?this.toggleRowExpansion(e,t):this.toggleTreeExpansion(e,t)}}});dr.prototype.mutations={setData:function(e,t){var n=e._data!==t;e._data=t,this.execQuery(),this.updateCurrentRowData(),this.updateExpandRows(),e.reserveSelection?(this.assertRowKey(),this.updateSelectionByRowKey()):n?this.clearSelection():this.cleanSelection(),this.updateAllSelected(),this.updateTableScrollY()},insertColumn:function(e,t,n,i){var r=e._columns;i&&(r=i.children,r||(r=i.children=[])),"undefined"!==typeof n?r.splice(n,0,t):r.push(t),"selection"===t.type&&(e.selectable=t.selectable,e.reserveSelection=t.reserveSelection),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},removeColumn:function(e,t,n){var i=e._columns;n&&(i=n.children,i||(i=n.children=[])),i&&i.splice(i.indexOf(t),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(e,t){var n=t.prop,i=t.order,r=t.init;if(n){var a=Object(y["arrayFind"])(e.columns,(function(e){return e.property===n}));a&&(a.order=i,this.updateSort(a,n,i),this.commit("changeSortCondition",{init:r}))}},changeSortCondition:function(e,t){var n=e.sortingColumn,i=e.sortProp,r=e.sortOrder;null===r&&(e.sortingColumn=null,e.sortProp=null);var a={filter:!0};this.execQuery(a),t&&(t.silent||t.init)||this.table.$emit("sort-change",{column:n,prop:i,order:r}),this.updateTableScrollY()},filterChange:function(e,t){var n=t.column,i=t.values,r=t.silent,a=this.updateFilters(n,i);this.execQuery(),r||this.table.$emit("filter-change",a),this.updateTableScrollY()},toggleAllSelection:function(){this.toggleAllSelection()},rowSelectedChanged:function(e,t){this.toggleRowSelection(t),this.updateAllSelected()},setHoverRow:function(e,t){e.hoverRow=t},setCurrentRow:function(e,t){this.updateCurrentRow(t)}},dr.prototype.commit=function(e){var t=this.mutations;if(!t[e])throw new Error("Action not found: "+e);for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t[e].apply(this,[this.states].concat(i))},dr.prototype.updateTableScrollY=function(){Hi.a.nextTick(this.table.updateScrollY)};var pr=dr;function fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Table is required.");var n=new pr;return n.table=e,n.toggleAllSelection=F()(10,n._toggleAllSelection),Object.keys(t).forEach((function(e){n.states[e]=t[e]})),n}function mr(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n],r=void 0;"string"===typeof i?r=function(){return this.store.states[i]}:"function"===typeof i?r=function(){return i.call(this,this.store.states)}:console.error("invalid value type"),r&&(t[n]=r)})),t}var gr=n(30),vr=n.n(gr);function yr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _r=function(){function e(t){for(var n in yr(this,e),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=vr()(),t)t.hasOwnProperty(n)&&(this[n]=t[n]);if(!this.table)throw new Error("table is required for Table Layout");if(!this.store)throw new Error("store is required for Table Layout")}return e.prototype.updateScrollY=function(){var e=this.height;if(null===e)return!1;var t=this.table.bodyWrapper;if(this.table.$el&&t){var n=t.querySelector(".el-table__body"),i=this.scrollY,r=n.offsetHeight>this.bodyHeight;return this.scrollY=r,i!==r}return!1},e.prototype.setHeight=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!Hi.a.prototype.$isServer){var i=this.table.$el;if(e=nr(e),this.height=e,!i&&(e||0===e))return Hi.a.nextTick((function(){return t.setHeight(e,n)}));"number"===typeof e?(i.style[n]=e+"px",this.updateElsHeight()):"string"===typeof e&&(i.style[n]=e,this.updateElsHeight())}},e.prototype.setMaxHeight=function(e){this.setHeight(e,"max-height")},e.prototype.getFlattenColumns=function(){var e=[],t=this.table.columns;return t.forEach((function(t){t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e},e.prototype.updateElsHeight=function(){var e=this;if(!this.table.$ready)return Hi.a.nextTick((function(){return e.updateElsHeight()}));var t=this.table.$refs,n=t.headerWrapper,i=t.appendWrapper,r=t.footerWrapper;if(this.appendHeight=i?i.offsetHeight:0,!this.showHeader||n){var a=n?n.querySelector(".el-table__header tr"):null,o=this.headerDisplayNone(a),s=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!o&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&s<2)return Hi.a.nextTick((function(){return e.updateElsHeight()}));var l=this.tableHeight=this.table.$el.clientHeight,c=this.footerHeight=r?r.offsetHeight:0;null!==this.height&&(this.bodyHeight=l-s-c+(r?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var u=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?l-(u?0:this.gutterWidth):l,this.updateScrollY(),this.notifyObservers("scrollable")}},e.prototype.headerDisplayNone=function(e){if(!e)return!0;var t=e;while("DIV"!==t.tagName){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1},e.prototype.updateColumnsWidth=function(){if(!Hi.a.prototype.$isServer){var e=this.fit,t=this.table.$el.clientWidth,n=0,i=this.getFlattenColumns(),r=i.filter((function(e){return"number"!==typeof e.width}));if(i.forEach((function(e){"number"===typeof e.width&&e.realWidth&&(e.realWidth=null)})),r.length>0&&e){i.forEach((function(e){n+=e.width||e.minWidth||80}));var a=this.scrollY?this.gutterWidth:0;if(n<=t-a){this.scrollX=!1;var o=t-a-n;if(1===r.length)r[0].realWidth=(r[0].minWidth||80)+o;else{var s=r.reduce((function(e,t){return e+(t.minWidth||80)}),0),l=o/s,c=0;r.forEach((function(e,t){if(0!==t){var n=Math.floor((e.minWidth||80)*l);c+=n,e.realWidth=(e.minWidth||80)+n}})),r[0].realWidth=(r[0].minWidth||80)+o-c}}else this.scrollX=!0,r.forEach((function(e){e.realWidth=e.minWidth}));this.bodyWidth=Math.max(n,t),this.table.resizeState.width=this.bodyWidth}else i.forEach((function(e){e.width||e.minWidth?e.realWidth=e.width||e.minWidth:e.realWidth=80,n+=e.realWidth})),this.scrollX=n>t,this.bodyWidth=n;var u=this.store.states.fixedColumns;if(u.length>0){var h=0;u.forEach((function(e){h+=e.realWidth||e.width})),this.fixedWidth=h}var d=this.store.states.rightFixedColumns;if(d.length>0){var p=0;d.forEach((function(e){p+=e.realWidth||e.width})),this.rightFixedWidth=p}this.notifyObservers("columns")}},e.prototype.addObserver=function(e){this.observers.push(e)},e.prototype.removeObserver=function(e){var t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)},e.prototype.notifyObservers=function(e){var t=this,n=this.observers;n.forEach((function(n){switch(e){case"columns":n.onColumnsChange(t);break;case"scrollable":n.onScrollableChange(t);break;default:throw new Error("Table Layout don't have event "+e+".")}}))},e}(),xr=_r,br={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var e=this.layout;if(!e&&this.table&&(e=this.table.layout),!e)throw new Error("Can not find table layout.");return e}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(e){var t=this.$el.querySelectorAll("colgroup > col");if(t.length){var n=e.getFlattenColumns(),i={};n.forEach((function(e){i[e.id]=e}));for(var r=0,a=t.length;r<a;r++){var o=t[r],s=o.getAttribute("name"),l=i[s];l&&o.setAttribute("width",l.realWidth||l.width)}}},onScrollableChange:function(e){for(var t=this.$el.querySelectorAll("colgroup > col[name=gutter]"),n=0,i=t.length;n<i;n++){var r=t[n];r.setAttribute("width",e.scrollY?e.gutterWidth:"0")}for(var a=this.$el.querySelectorAll("th.gutter"),o=0,s=a.length;o<s;o++){var l=a[o];l.style.width=e.scrollY?e.gutterWidth+"px":"0",l.style.display=e.scrollY?"":"none"}}}},wr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Sr={name:"ElTableRow",props:["columns","row","index","isSelected","isExpanded","store","context","firstDefaultColumnIndex","treeRowData","treeIndent","columnsHidden","getSpan","getColspanRealWidth","getCellStyle","getCellClass","handleCellMouseLeave","handleCellMouseEnter","fixed"],render:function(){var e=this,t=arguments[0],n=this.columns,i=this.row,r=this.index,a=this.store,o=this.context,s=this.firstDefaultColumnIndex,l=this.treeRowData,c=this.treeIndent,u=this.columnsHidden,h=void 0===u?[]:u,d=this.isSelected,p=this.isExpanded;return t("tr",[n.map((function(u,f){var m=e.getSpan(i,u,r,f),g=m.rowspan,v=m.colspan;if(!g||!v)return null;var y=wr({},u);y.realWidth=e.getColspanRealWidth(n,v,f);var _={store:a,isSelected:d,isExpanded:p,_self:o,column:y,row:i,$index:r};return f===s&&l&&(_.treeNode={indent:l.level*c,level:l.level},"boolean"===typeof l.expanded&&(_.treeNode.expanded=l.expanded,"loading"in l&&(_.treeNode.loading=l.loading),"noLazyChildren"in l&&(_.treeNode.noLazyChildren=l.noLazyChildren))),t("td",{style:e.getCellStyle(r,f,i,u),class:e.getCellClass(r,f,i,u),attrs:{rowspan:g,colspan:v},on:{mouseenter:function(t){return e.handleCellMouseEnter(t,i)},mouseleave:e.handleCellMouseLeave}},[u.renderCell.call(e._renderProxy,e.$createElement,_,h[f])])}))])}},Mr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Tr={name:"ElTableBody",mixins:[br],components:{ElCheckbox:Li.a,ElTooltip:rt.a,TableRow:Sr},props:{store:{required:!0},stripe:Boolean,context:{},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:String,highlight:Boolean},render:function(e){var t=this,n=this.data||[];return e("table",{class:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})}))]),e("tbody",[n.reduce((function(e,n){return e.concat(t.wrappedRowRender(n,e.length))}),[]),e("el-tooltip",{attrs:{effect:this.table.tooltipEffect,placement:"top",content:this.tooltipContent},ref:"tooltip"})])])},computed:Cr({table:function(){return this.$parent}},mr({data:"data",columns:"columns",treeIndent:"indent",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length},hasExpandColumn:function(e){return e.columns.some((function(e){var t=e.type;return"expand"===t}))}}),{columnsHidden:function(){var e=this;return this.columns.map((function(t,n){return e.isColumnHidden(n)}))},firstDefaultColumnIndex:function(){return Object(y["arrayFindIndex"])(this.columns,(function(e){var t=e.type;return"default"===t}))}}),watch:{"store.states.hoverRow":function(e,t){var n=this;if(this.store.states.isComplex&&!this.$isServer){var i=window.requestAnimationFrame;i||(i=function(e){return setTimeout(e,16)}),i((function(){var i=n.$el.querySelectorAll(".el-table__row"),r=i[t],a=i[e];r&&Object(Be["removeClass"])(r,"hover-row"),a&&Object(Be["addClass"])(a,"hover-row")}))}}},data:function(){return{tooltipContent:""}},created:function(){this.activateTooltip=F()(50,(function(e){return e.handleShowPopper()}))},methods:{getKeyOfRow:function(e,t){var n=this.table.rowKey;return n?Ki(e,n):t},isColumnHidden:function(e){return!0===this.fixed||"left"===this.fixed?e>=this.leftFixedLeafCount:"right"===this.fixed?e<this.columnsCount-this.rightFixedLeafCount:e<this.leftFixedLeafCount||e>=this.columnsCount-this.rightFixedLeafCount},getSpan:function(e,t,n,i){var r=1,a=1,o=this.table.spanMethod;if("function"===typeof o){var s=o({row:e,column:t,rowIndex:n,columnIndex:i});Array.isArray(s)?(r=s[0],a=s[1]):"object"===("undefined"===typeof s?"undefined":Mr(s))&&(r=s.rowspan,a=s.colspan)}return{rowspan:r,colspan:a}},getRowStyle:function(e,t){var n=this.table.rowStyle;return"function"===typeof n?n.call(null,{row:e,rowIndex:t}):n||null},getRowClass:function(e,t){var n=["el-table__row"];this.table.highlightCurrentRow&&e===this.store.states.currentRow&&n.push("current-row"),this.stripe&&t%2===1&&n.push("el-table__row--striped");var i=this.table.rowClassName;return"string"===typeof i?n.push(i):"function"===typeof i&&n.push(i.call(null,{row:e,rowIndex:t})),this.store.states.expandRows.indexOf(e)>-1&&n.push("expanded"),n},getCellStyle:function(e,t,n,i){var r=this.table.cellStyle;return"function"===typeof r?r.call(null,{rowIndex:e,columnIndex:t,row:n,column:i}):r},getCellClass:function(e,t,n,i){var r=[i.id,i.align,i.className];this.isColumnHidden(t)&&r.push("is-hidden");var a=this.table.cellClassName;return"string"===typeof a?r.push(a):"function"===typeof a&&r.push(a.call(null,{rowIndex:e,columnIndex:t,row:n,column:i})),r.push("el-table__cell"),r.join(" ")},getColspanRealWidth:function(e,t,n){if(t<1)return e[n].realWidth;var i=e.map((function(e){var t=e.realWidth;return t})).slice(n,n+t);return i.reduce((function(e,t){return e+t}),-1)},handleCellMouseEnter:function(e,t){var n=this.table,i=ji(e);if(i){var r=Yi(n,i),a=n.hoverState={cell:i,column:r,row:t};n.$emit("cell-mouse-enter",a.row,a.column,a.cell,e)}var o=e.target.querySelector(".cell");if(Object(Be["hasClass"])(o,"el-tooltip")&&o.childNodes.length){var s=document.createRange();s.setStart(o,0),s.setEnd(o,o.childNodes.length);var l=s.getBoundingClientRect().width,c=(parseInt(Object(Be["getStyle"])(o,"paddingLeft"),10)||0)+(parseInt(Object(Be["getStyle"])(o,"paddingRight"),10)||0);if((l+c>o.offsetWidth||o.scrollWidth>o.offsetWidth)&&this.$refs.tooltip){var u=this.$refs.tooltip;this.tooltipContent=i.innerText||i.textContent,u.referenceElm=i,u.$refs.popper&&(u.$refs.popper.style.display="none"),u.doDestroy(),u.setExpectedState(!0),this.activateTooltip(u)}}},handleCellMouseLeave:function(e){var t=this.$refs.tooltip;t&&(t.setExpectedState(!1),t.handleClosePopper());var n=ji(e);if(n){var i=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",i.row,i.column,i.cell,e)}},handleMouseEnter:F()(30,(function(e){this.store.commit("setHoverRow",e)})),handleMouseLeave:F()(30,(function(){this.store.commit("setHoverRow",null)})),handleContextMenu:function(e,t){this.handleEvent(e,t,"contextmenu")},handleDoubleClick:function(e,t){this.handleEvent(e,t,"dblclick")},handleClick:function(e,t){this.store.commit("setCurrentRow",t),this.handleEvent(e,t,"click")},handleEvent:function(e,t,n){var i=this.table,r=ji(e),a=void 0;r&&(a=Yi(i,r),a&&i.$emit("cell-"+n,t,a,r,e)),i.$emit("row-"+n,t,a,e)},rowRender:function(e,t,n){var i=this,r=this.$createElement,a=this.treeIndent,o=this.columns,s=this.firstDefaultColumnIndex,l=this.getRowClass(e,t),c=!0;n&&(l.push("el-table__row--level-"+n.level),c=n.display);var u=c?null:{display:"none"};return r(Sr,{style:[u,this.getRowStyle(e,t)],class:l,key:this.getKeyOfRow(e,t),nativeOn:{dblclick:function(t){return i.handleDoubleClick(t,e)},click:function(t){return i.handleClick(t,e)},contextmenu:function(t){return i.handleContextMenu(t,e)},mouseenter:function(e){return i.handleMouseEnter(t)},mouseleave:this.handleMouseLeave},attrs:{columns:o,row:e,index:t,store:this.store,context:this.context||this.table.$vnode.context,firstDefaultColumnIndex:s,treeRowData:n,treeIndent:a,columnsHidden:this.columnsHidden,getSpan:this.getSpan,getColspanRealWidth:this.getColspanRealWidth,getCellStyle:this.getCellStyle,getCellClass:this.getCellClass,handleCellMouseEnter:this.handleCellMouseEnter,handleCellMouseLeave:this.handleCellMouseLeave,isSelected:this.store.isSelected(e),isExpanded:this.store.states.expandRows.indexOf(e)>-1,fixed:this.fixed}})},wrappedRowRender:function(e,t){var n=this,i=this.$createElement,r=this.store,a=r.isRowExpanded,o=r.assertRowKey,s=r.states,l=s.treeData,c=s.lazyTreeNodeMap,u=s.childrenColumnName,h=s.rowKey;if(this.hasExpandColumn&&a(e)){var d=this.table.renderExpanded,p=this.rowRender(e,t);return d?[[p,i("tr",{key:"expanded-row__"+p.key},[i("td",{attrs:{colspan:this.columnsCount},class:"el-table__cell el-table__expanded-cell"},[d(this.$createElement,{row:e,$index:t,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),p)}if(Object.keys(l).length){o();var f=Ki(e,h),m=l[f],g=null;m&&(g={expanded:m.expanded,level:m.level,display:!0},"boolean"===typeof m.lazy&&("boolean"===typeof m.loaded&&m.loaded&&(g.noLazyChildren=!(m.children&&m.children.length)),g.loading=m.loading));var v=[this.rowRender(e,t,g)];if(m){var y=0,_=function e(i,r){i&&i.length&&r&&i.forEach((function(i){var a={display:r.display&&r.expanded,level:r.level+1},o=Ki(i,h);if(void 0===o||null===o)throw new Error("for nested data item, row-key is required.");if(m=Cr({},l[o]),m&&(a.expanded=m.expanded,m.level=m.level||a.level,m.display=!(!m.expanded||!a.display),"boolean"===typeof m.lazy&&("boolean"===typeof m.loaded&&m.loaded&&(a.noLazyChildren=!(m.children&&m.children.length)),a.loading=m.loading)),y++,v.push(n.rowRender(i,t+y,a)),m){var s=c[o]||i[u];e(s,m)}}))};m.display=!0;var x=c[f]||e[u];_(x,m)}return v}return this.rowRender(e,t)}}},Er=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"}},[e.multiple?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("div",{staticClass:"el-table-filter__content"},[n("el-scrollbar",{attrs:{"wrap-class":"el-table-filter__wrap"}},[n("el-checkbox-group",{staticClass:"el-table-filter__checkbox-group",model:{value:e.filteredValue,callback:function(t){e.filteredValue=t},expression:"filteredValue"}},e._l(e.filters,(function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.text))])})),1)],1)],1),n("div",{staticClass:"el-table-filter__bottom"},[n("button",{class:{"is-disabled":0===e.filteredValue.length},attrs:{disabled:0===e.filteredValue.length},on:{click:e.handleConfirm}},[e._v(e._s(e.t("el.table.confirmFilter")))]),n("button",{on:{click:e.handleReset}},[e._v(e._s(e.t("el.table.resetFilter")))])])]):n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("ul",{staticClass:"el-table-filter__list"},[n("li",{staticClass:"el-table-filter__list-item",class:{"is-active":void 0===e.filterValue||null===e.filterValue},on:{click:function(t){e.handleSelect(null)}}},[e._v(e._s(e.t("el.table.clearFilter")))]),e._l(e.filters,(function(t){return n("li",{key:t.value,staticClass:"el-table-filter__list-item",class:{"is-active":e.isActive(t)},attrs:{label:t.value},on:{click:function(n){e.handleSelect(t.value)}}},[e._v(e._s(t.text))])}))],2)])])},Ar=[];Er._withStripped=!0;var kr=[];!Hi.a.prototype.$isServer&&document.addEventListener("click",(function(e){kr.forEach((function(t){var n=e.target;t&&t.$el&&(n===t.$el||t.$el.contains(n)||t.handleOutsideClick&&t.handleOutsideClick(e))}))}));var Dr={open:function(e){e&&kr.push(e)},close:function(e){var t=kr.indexOf(e);-1!==t&&kr.splice(e,1)}},Ir=n(31),Pr=n.n(Ir),Or={name:"ElTableFilterPanel",mixins:[$.a,v.a],directives:{Clickoutside:z.a},components:{ElCheckbox:Li.a,ElCheckboxGroup:Pr.a,ElScrollbar:W.a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(e){return e.value===this.filterValue},handleOutsideClick:function(){var e=this;setTimeout((function(){e.showPopper=!1}),16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(e){this.filterValue=e,"undefined"!==typeof e&&null!==e?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(e){this.table.store.commit("filterChange",{column:this.column,values:e}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(e){this.filteredValue&&("undefined"!==typeof e&&null!==e?this.filteredValue.splice(0,1,e):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(e){this.column&&(this.column.filteredValue=e)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var e=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",(function(){e.updatePopper()})),this.$watch("showPopper",(function(t){e.column&&(e.column.filterOpened=t),t?Dr.open(e):Dr.close(e)}))},watch:{showPopper:function(e){!0===e&&parseInt(this.popperJS._popper.style.zIndex,10)<S["PopupManager"].zIndex&&(this.popperJS._popper.style.zIndex=S["PopupManager"].nextZIndex())}}},Lr=Or,Rr=s(Lr,Er,Ar,!1,null,null,null);Rr.options.__file="packages/table/src/filter-panel.vue";var Nr=Rr.exports,Fr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Br=function e(t){var n=[];return t.forEach((function(t){t.children?(n.push(t),n.push.apply(n,e(t.children))):n.push(t)})),n},zr=function(e){var t=1,n=function e(n,i){if(i&&(n.level=i.level+1,t<n.level&&(t=n.level)),n.children){var r=0;n.children.forEach((function(t){e(t,n),r+=t.colSpan})),n.colSpan=r}else n.colSpan=1};e.forEach((function(e){e.level=1,n(e)}));for(var i=[],r=0;r<t;r++)i.push([]);var a=Br(e);return a.forEach((function(e){e.children?e.rowSpan=1:e.rowSpan=t-e.level+1,i[e.level-1].push(e)})),i},Vr={name:"ElTableHeader",mixins:[br],render:function(e){var t=this,n=this.store.states.originColumns,i=zr(n,this.columns),r=i.length>1;return r&&(this.$parent.isGroup=!0),e("table",{class:"el-table__header",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("thead",{class:[{"is-group":r,"has-gutter":this.hasGutter}]},[this._l(i,(function(n,i){return e("tr",{style:t.getHeaderRowStyle(i),class:t.getHeaderRowClass(i)},[n.map((function(r,a){return e("th",{attrs:{colspan:r.colSpan,rowspan:r.rowSpan},on:{mousemove:function(e){return t.handleMouseMove(e,r)},mouseout:t.handleMouseOut,mousedown:function(e){return t.handleMouseDown(e,r)},click:function(e){return t.handleHeaderClick(e,r)},contextmenu:function(e){return t.handleHeaderContextMenu(e,r)}},style:t.getHeaderCellStyle(i,a,n,r),class:t.getHeaderCellClass(i,a,n,r),key:r.id},[e("div",{class:["cell",r.filteredValue&&r.filteredValue.length>0?"highlight":"",r.labelClassName]},[r.renderHeader?r.renderHeader.call(t._renderProxy,e,{column:r,$index:a,store:t.store,_self:t.$parent.$vnode.context}):r.label,r.sortable?e("span",{class:"caret-wrapper",on:{click:function(e){return t.handleSortClick(e,r)}}},[e("i",{class:"sort-caret ascending",on:{click:function(e){return t.handleSortClick(e,r,"ascending")}}}),e("i",{class:"sort-caret descending",on:{click:function(e){return t.handleSortClick(e,r,"descending")}}})]):"",r.filterable?e("span",{class:"el-table__column-filter-trigger",on:{click:function(e){return t.handleFilterClick(e,r)}}},[e("i",{class:["el-icon-arrow-down",r.filterOpened?"el-icon-arrow-up":""]})]):""])])})),t.hasGutter?e("th",{class:"el-table__cell gutter"}):""])}))])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:Li.a},computed:Fr({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},mr({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var e=this;this.$nextTick((function(){var t=e.defaultSort,n=t.prop,i=t.order,r=!0;e.store.commit("sort",{prop:n,order:i,init:r})}))},beforeDestroy:function(){var e=this.filterPanels;for(var t in e)e.hasOwnProperty(t)&&e[t]&&e[t].$destroy(!0)},methods:{isCellHidden:function(e,t){for(var n=0,i=0;i<e;i++)n+=t[i].colSpan;var r=n+t[e].colSpan-1;return!0===this.fixed||"left"===this.fixed?r>=this.leftFixedLeafCount:"right"===this.fixed?n<this.columnsCount-this.rightFixedLeafCount:r<this.leftFixedLeafCount||n>=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(e){var t=this.table.headerRowStyle;return"function"===typeof t?t.call(null,{rowIndex:e}):t},getHeaderRowClass:function(e){var t=[],n=this.table.headerRowClassName;return"string"===typeof n?t.push(n):"function"===typeof n&&t.push(n.call(null,{rowIndex:e})),t.join(" ")},getHeaderCellStyle:function(e,t,n,i){var r=this.table.headerCellStyle;return"function"===typeof r?r.call(null,{rowIndex:e,columnIndex:t,row:n,column:i}):r},getHeaderCellClass:function(e,t,n,i){var r=[i.id,i.order,i.headerAlign,i.className,i.labelClassName];0===e&&this.isCellHidden(t,n)&&r.push("is-hidden"),i.children||r.push("is-leaf"),i.sortable&&r.push("is-sortable");var a=this.table.headerCellClassName;return"string"===typeof a?r.push(a):"function"===typeof a&&r.push(a.call(null,{rowIndex:e,columnIndex:t,row:n,column:i})),r.push("el-table__cell"),r.join(" ")},toggleAllSelection:function(){this.store.commit("toggleAllSelection")},handleFilterClick:function(e,t){e.stopPropagation();var n=e.target,i="TH"===n.tagName?n:n.parentNode;if(!Object(Be["hasClass"])(i,"noclick")){i=i.querySelector(".el-table__column-filter-trigger")||i;var r=this.$parent,a=this.filterPanels[t.id];a&&t.filterOpened?a.showPopper=!1:(a||(a=new Hi.a(Nr),this.filterPanels[t.id]=a,t.filterPlacement&&(a.placement=t.filterPlacement),a.table=r,a.cell=i,a.column=t,!this.$isServer&&a.$mount(document.createElement("div"))),setTimeout((function(){a.showPopper=!0}),16))}},handleHeaderClick:function(e,t){!t.filters&&t.sortable?this.handleSortClick(e,t):t.filterable&&!t.sortable&&this.handleFilterClick(e,t),this.$parent.$emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){this.$parent.$emit("header-contextmenu",t,e)},handleMouseDown:function(e,t){var n=this;if(!this.$isServer&&!(t.children&&t.children.length>0)&&this.draggingColumn&&this.border){this.dragging=!0,this.$parent.resizeProxyVisible=!0;var i=this.$parent,r=i.$el,a=r.getBoundingClientRect().left,o=this.$el.querySelector("th."+t.id),s=o.getBoundingClientRect(),l=s.left-a+30;Object(Be["addClass"])(o,"noclick"),this.dragState={startMouseLeft:e.clientX,startLeft:s.right-a,startColumnLeft:s.left-a,tableLeft:a};var c=i.$refs.resizeProxy;c.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var u=function(e){var t=e.clientX-n.dragState.startMouseLeft,i=n.dragState.startLeft+t;c.style.left=Math.max(l,i)+"px"},h=function r(){if(n.dragging){var a=n.dragState,s=a.startColumnLeft,l=a.startLeft,h=parseInt(c.style.left,10),d=h-s;t.width=t.realWidth=d,i.$emit("header-dragend",t.width,l-s,t,e),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},i.resizeProxyVisible=!1}document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",r),document.onselectstart=null,document.ondragstart=null,setTimeout((function(){Object(Be["removeClass"])(o,"noclick")}),0)};document.addEventListener("mousemove",u),document.addEventListener("mouseup",h)}},handleMouseMove:function(e,t){if(!(t.children&&t.children.length>0)){var n=e.target;while(n&&"TH"!==n.tagName)n=n.parentNode;if(t&&t.resizable&&!this.dragging&&this.border){var i=n.getBoundingClientRect(),r=document.body.style;i.width>12&&i.right-e.pageX<8?(r.cursor="col-resize",Object(Be["hasClass"])(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=t):this.dragging||(r.cursor="",Object(Be["hasClass"])(n,"is-sortable")&&(n.style.cursor="pointer"),this.draggingColumn=null)}}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},toggleOrder:function(e){var t=e.order,n=e.sortOrders;if(""===t)return n[0];var i=n.indexOf(t||null);return n[i>n.length-2?0:i+1]},handleSortClick:function(e,t,n){e.stopPropagation();var i=t.order===n?null:n||this.toggleOrder(t),r=e.target;while(r&&"TH"!==r.tagName)r=r.parentNode;if(r&&"TH"===r.tagName&&Object(Be["hasClass"])(r,"noclick"))Object(Be["removeClass"])(r,"noclick");else if(t.sortable){var a=this.store.states,o=a.sortProp,s=void 0,l=a.sortingColumn;(l!==t||l===t&&null===l.order)&&(l&&(l.order=null),a.sortingColumn=t,o=t.property),s=t.order=i||null,a.sortProp=o,a.sortOrder=s,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},Ur=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Hr={name:"ElTableFooter",mixins:[br],render:function(e){var t=this,n=[];return this.summaryMethod?n=this.summaryMethod({columns:this.columns,data:this.store.states.data}):this.columns.forEach((function(e,i){if(0!==i){var r=t.store.states.data.map((function(t){return Number(t[e.property])})),a=[],o=!0;r.forEach((function(e){if(!isNaN(e)){o=!1;var t=(""+e).split(".")[1];a.push(t?t.length:0)}}));var s=Math.max.apply(null,a);n[i]=o?"":r.reduce((function(e,t){var n=Number(t);return isNaN(n)?e:parseFloat((e+t).toFixed(Math.min(s,20)))}),0)}else n[i]=t.sumText})),e("table",{class:"el-table__footer",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("tbody",{class:[{"has-gutter":this.hasGutter}]},[e("tr",[this.columns.map((function(i,r){return e("td",{key:r,attrs:{colspan:i.colSpan,rowspan:i.rowSpan},class:[].concat(t.getRowClasses(i,r),["el-table__cell"])},[e("div",{class:["cell",i.labelClassName]},[n[r]])])})),this.hasGutter?e("th",{class:"el-table__cell gutter"}):""])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},computed:Ur({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},mr({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),methods:{isCellHidden:function(e,t,n){if(!0===this.fixed||"left"===this.fixed)return e>=this.leftFixedLeafCount;if("right"===this.fixed){for(var i=0,r=0;r<e;r++)i+=t[r].colSpan;return i<this.columnsCount-this.rightFixedLeafCount}return!(this.fixed||!n.fixed)||(e<this.leftFixedCount||e>=this.columnsCount-this.rightFixedCount)},getRowClasses:function(e,t){var n=[e.id,e.align,e.labelClassName];return e.className&&n.push(e.className),this.isCellHidden(t,this.columns,e)&&n.push("is-hidden"),e.children||n.push("is-leaf"),n}}},$r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},jr=1,Wr={name:"ElTable",mixins:[v.a,T.a],directives:{Mousewheel:Vi},props:{data:{type:Array,default:function(){return[]}},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],context:{},showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:"hasChildren",children:"children"}}},lazy:Boolean,load:Function},components:{TableHeader:Vr,TableFooter:Hr,TableBody:Tr,ElCheckbox:Li.a},methods:{getMigratingConfig:function(){return{events:{expand:"expand is renamed to expand-change"}}},setCurrentRow:function(e){this.store.commit("setCurrentRow",e)},toggleRowSelection:function(e,t){this.store.toggleRowSelection(e,t,!1),this.store.updateAllSelected()},toggleRowExpansion:function(e,t){this.store.toggleRowExpansionAdapter(e,t)},clearSelection:function(){this.store.clearSelection()},clearFilter:function(e){this.store.clearFilter(e)},clearSort:function(){this.store.clearSort()},handleMouseLeave:function(){this.store.commit("setHoverRow",null),this.hoverState&&(this.hoverState=null)},updateScrollY:function(){var e=this.layout.updateScrollY();e&&(this.layout.notifyObservers("scrollable"),this.layout.updateColumnsWidth())},handleFixedMousewheel:function(e,t){var n=this.bodyWrapper;if(Math.abs(t.spinY)>0){var i=n.scrollTop;t.pixelY<0&&0!==i&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>i&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)},handleHeaderFooterMousewheel:function(e,t){var n=t.pixelX,i=t.pixelY;Math.abs(n)>=Math.abs(i)&&(this.bodyWrapper.scrollLeft+=t.pixelX/5)},syncPostion:Object(Ri["throttle"])(20,(function(){var e=this.bodyWrapper,t=e.scrollLeft,n=e.scrollTop,i=e.offsetWidth,r=e.scrollWidth,a=this.$refs,o=a.headerWrapper,s=a.footerWrapper,l=a.fixedBodyWrapper,c=a.rightFixedBodyWrapper;o&&(o.scrollLeft=t),s&&(s.scrollLeft=t),l&&(l.scrollTop=n),c&&(c.scrollTop=n);var u=r-i-1;this.scrollPosition=t>=u?"right":0===t?"left":"middle"})),bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(ei["addResizeListener"])(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(ei["removeResizeListener"])(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var e=!1,t=this.$el,n=this.resizeState,i=n.width,r=n.height,a=t.offsetWidth;i!==a&&(e=!0);var o=t.offsetHeight;(this.height||this.shouldUpdateHeight)&&r!==o&&(e=!0),e&&(this.resizeState.width=a,this.resizeState.height=o,this.doLayout())}},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(e,t){this.store.commit("sort",{prop:e,order:t})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:$r({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||this.fixedColumns.length>0||this.rightFixedColumns.length>0},bodyWidth:function(){var e=this.layout,t=e.bodyWidth,n=e.scrollY,i=e.gutterWidth;return t?t-(n?i:0)+"px":""},bodyHeight:function(){var e=this.layout,t=e.headerHeight,n=void 0===t?0:t,i=e.bodyHeight,r=e.footerHeight,a=void 0===r?0:r;if(this.height)return{height:i?i+"px":""};if(this.maxHeight){var o=nr(this.maxHeight);if("number"===typeof o)return{"max-height":o-a-(this.showHeader?n:0)+"px"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+"px":""};if(this.maxHeight){var e=nr(this.maxHeight);if("number"===typeof e)return e=this.layout.scrollX?e-this.layout.gutterWidth:e,this.showHeader&&(e-=this.layout.headerHeight),e-=this.layout.footerHeight,{"max-height":e+"px"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+"px":""}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+"px":""}:{height:this.layout.viewportHeight?this.layout.viewportHeight+"px":""}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var e="100%";return this.layout.appendHeight&&(e="calc(100% - "+this.layout.appendHeight+"px)"),{width:this.bodyWidth,height:e}}},mr({selection:"selection",columns:"columns",tableData:"data",fixedColumns:"fixedColumns",rightFixedColumns:"rightFixedColumns"})),watch:{height:{immediate:!0,handler:function(e){this.layout.setHeight(e)}},maxHeight:{immediate:!0,handler:function(e){this.layout.setMaxHeight(e)}},currentRowKey:{immediate:!0,handler:function(e){this.rowKey&&this.store.setCurrentRowKey(e)}},data:{immediate:!0,handler:function(e){this.store.commit("setData",e)}},expandRowKeys:{immediate:!0,handler:function(e){e&&this.store.setExpandRowKeysAdapter(e)}}},created:function(){var e=this;this.tableId="el-table_"+jr++,this.debouncedUpdateLayout=Object(Ri["debounce"])(50,(function(){return e.doLayout()}))},mounted:function(){var e=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach((function(t){t.filteredValue&&t.filteredValue.length&&e.store.commit("filterChange",{column:t,values:t.filteredValue,silent:!0})})),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var e=this.treeProps,t=e.hasChildren,n=void 0===t?"hasChildren":t,i=e.children,r=void 0===i?"children":i;this.store=fr(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:r});var a=new xr({store:this.store,table:this,fit:this.fit,showHeader:this.showHeader});return{layout:a,isHidden:!1,renderExpanded:null,resizeProxyVisible:!1,resizeState:{width:null,height:null},isGroup:!1,scrollPosition:"left"}}},Gr=Wr,qr=s(Gr,Ii,Pi,!1,null,null,null);qr.options.__file="packages/table/src/table.vue";var Xr=qr.exports;Xr.install=function(e){e.component(Xr.name,Xr)};var Yr=Xr,Kr={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:"",className:"el-table-column--selection"},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Zr={selection:{renderHeader:function(e,t){var n=t.store;return e("el-checkbox",{attrs:{disabled:n.states.data&&0===n.states.data.length,indeterminate:n.states.selection.length>0&&!this.isAllSelected,value:this.isAllSelected},on:{input:this.toggleAllSelection}})},renderCell:function(e,t){var n=t.row,i=t.column,r=t.isSelected,a=t.store,o=t.$index;return e("el-checkbox",{nativeOn:{click:function(e){return e.stopPropagation()}},attrs:{value:r,disabled:!!i.selectable&&!i.selectable.call(null,n,o)},on:{input:function(){a.commit("rowSelectedChanged",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(e,t){var n=t.column;return n.label||"#"},renderCell:function(e,t){var n=t.$index,i=t.column,r=n+1,a=i.index;return"number"===typeof a?r=n+a:"function"===typeof a&&(r=a(n)),e("div",[r])},sortable:!1},expand:{renderHeader:function(e,t){var n=t.column;return n.label||""},renderCell:function(e,t){var n=t.row,i=t.store,r=t.isExpanded,a=["el-table__expand-icon"];r&&a.push("el-table__expand-icon--expanded");var o=function(e){e.stopPropagation(),i.toggleRowExpansion(n)};return e("div",{class:a,on:{click:o}},[e("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}};function Jr(e,t){var n=t.row,i=t.column,r=t.$index,a=i.property,o=a&&Object(y["getPropByPath"])(n,a).v;return i&&i.formatter?i.formatter(n,i,o,r):o}function Qr(e,t){var n=t.row,i=t.treeNode,r=t.store;if(!i)return null;var a=[],o=function(e){e.stopPropagation(),r.loadOrToggle(n)};if(i.indent&&a.push(e("span",{class:"el-table__indent",style:{"padding-left":i.indent+"px"}})),"boolean"!==typeof i.expanded||i.noLazyChildren)a.push(e("span",{class:"el-table__placeholder"}));else{var s=["el-table__expand-icon",i.expanded?"el-table__expand-icon--expanded":""],l=["el-icon-arrow-right"];i.loading&&(l=["el-icon-loading"]),a.push(e("div",{class:s,on:{click:o}},[e("i",{class:l})]))}return a}var ea=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ta=1,na={name:"ElTableColumn",props:{type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:function(){return["ascending","descending",null]},validator:function(e){return e.every((function(e){return["ascending","descending",null].indexOf(e)>-1}))}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){var e=this.$parent;while(e&&!e.tableId)e=e.$parent;return e},columnOrTableParent:function(){var e=this.$parent;while(e&&!e.tableId&&!e.columnId)e=e.$parent;return e},realWidth:function(){return er(this.width)},realMinWidth:function(){return tr(this.minWidth)},realAlign:function(){return this.align?"is-"+this.align:null},realHeaderAlign:function(){return this.headerAlign?"is-"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.reduce((function(t,n){return Array.isArray(n)&&n.forEach((function(n){t[n]=e[n]})),t}),{})},getColumnElIndex:function(e,t){return[].indexOf.call(e,t)},setColumnWidth:function(e){return this.realWidth&&(e.width=this.realWidth),this.realMinWidth&&(e.minWidth=this.realMinWidth),e.minWidth||(e.minWidth=80),e.realWidth=void 0===e.width?e.minWidth:e.width,e},setColumnForcedProps:function(e){var t=e.type,n=Zr[t]||{};return Object.keys(n).forEach((function(t){var i=n[t];void 0!==i&&(e[t]="className"===t?e[t]+" "+i:i)})),e},setColumnRenders:function(e){var t=this;this.$createElement;this.renderHeader?console.warn("[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==e.type&&(e.renderHeader=function(n,i){var r=t.$scopedSlots.header;return r?r(i):e.label});var n=e.renderCell;return"expand"===e.type?(e.renderCell=function(e,t){return e("div",{class:"cell"},[n(e,t)])},this.owner.renderExpanded=function(e,n){return t.$scopedSlots.default?t.$scopedSlots.default(n):t.$slots.default}):(n=n||Jr,e.renderCell=function(i,r){var a=null;a=t.$scopedSlots.default?t.$scopedSlots.default(r):n(i,r);var o=Qr(i,r),s={class:"cell",style:{}};return e.showOverflowTooltip&&(s.class+=" el-tooltip",s.style={width:(r.column.realWidth||r.column.width)-1+"px"}),i("div",s,[o,a])}),e},registerNormalWatchers:function(){var e=this,t=["label","property","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],n={prop:"property",realAlign:"align",realHeaderAlign:"headerAlign",realWidth:"width"},i=t.reduce((function(e,t){return e[t]=t,e}),n);Object.keys(i).forEach((function(t){var i=n[t];e.$watch(t,(function(t){e.columnConfig[i]=t}))}))},registerComplexWatchers:function(){var e=this,t=["fixed"],n={realWidth:"width",realMinWidth:"minWidth"},i=t.reduce((function(e,t){return e[t]=t,e}),n);Object.keys(i).forEach((function(t){var i=n[t];e.$watch(t,(function(t){e.columnConfig[i]=t;var n="fixed"===i;e.owner.store.scheduleLayout(n)}))}))}},components:{ElCheckbox:Li.a},beforeCreate:function(){this.row={},this.column={},this.$index=0,this.columnId=""},created:function(){var e=this.columnOrTableParent;this.isSubColumn=this.owner!==e,this.columnId=(e.tableId||e.columnId)+"_column_"+ta++;var t=this.type||"default",n=""===this.sortable||this.sortable,i=ea({},Kr[t],{id:this.columnId,type:t,property:this.prop||this.property,align:this.realAlign,headerAlign:this.realHeaderAlign,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,filterable:this.filters||this.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,filterOpened:!1,sortable:n,index:this.index}),r=["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],a=["sortMethod","sortBy","sortOrders"],o=["selectable","reserveSelection"],s=["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"],l=this.getPropsData(r,a,o,s);l=Qi(i,l);var c=ir(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps);l=c(l),this.columnConfig=l,this.registerNormalWatchers(),this.registerComplexWatchers()},mounted:function(){var e=this.owner,t=this.columnOrTableParent,n=this.isSubColumn?t.$el.children:t.$refs.hiddenColumns.children,i=this.getColumnElIndex(n,this.$el);e.store.commit("insertColumn",this.columnConfig,i,this.isSubColumn?t.columnConfig:null)},destroyed:function(){if(this.$parent){var e=this.$parent;this.owner.store.commit("removeColumn",this.columnConfig,this.isSubColumn?e.columnConfig:null)}},render:function(e){return e("div",this.$slots.default)},install:function(e){e.component(na.name,na)}},ia=na,ra=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.ranged?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor el-range-editor el-input__inner",class:["el-date-editor--"+e.type,e.pickerSize?"el-range-editor--"+e.pickerSize:"",e.pickerDisabled?"is-disabled":"",e.pickerVisible?"is-active":""],on:{click:e.handleRangeClick,mouseenter:e.handleMouseEnter,mouseleave:function(t){e.showClose=!1},keydown:e.handleKeydown}},[n("i",{class:["el-input__icon","el-range__icon",e.triggerClass]}),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.startPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[0]},domProps:{value:e.displayValue&&e.displayValue[0]},on:{input:e.handleStartInput,change:e.handleStartChange,focus:e.handleFocus}},"input",e.firstInputId,!1)),e._t("range-separator",[n("span",{staticClass:"el-range-separator"},[e._v(e._s(e.rangeSeparator))])]),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.endPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[1]},domProps:{value:e.displayValue&&e.displayValue[1]},on:{input:e.handleEndInput,change:e.handleEndChange,focus:e.handleFocus}},"input",e.secondInputId,!1)),e.haveTrigger?n("i",{staticClass:"el-input__icon el-range__close-icon",class:[e.showClose?""+e.clearIcon:""],on:{click:e.handleClickIcon}}):e._e()],2):n("el-input",e._b({directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor",class:"el-date-editor--"+e.type,attrs:{readonly:!e.editable||e.readonly||"dates"===e.type||"week"===e.type,disabled:e.pickerDisabled,size:e.pickerSize,name:e.name,placeholder:e.placeholder,value:e.displayValue,validateEvent:!1},on:{focus:e.handleFocus,input:function(t){return e.userInput=t},change:e.handleChange},nativeOn:{keydown:function(t){return e.handleKeydown(t)},mouseenter:function(t){return e.handleMouseEnter(t)},mouseleave:function(t){e.showClose=!1}}},"el-input",e.firstInputId,!1),[n("i",{staticClass:"el-input__icon",class:e.triggerClass,attrs:{slot:"prefix"},on:{click:e.handleFocus},slot:"prefix"}),e.haveTrigger?n("i",{staticClass:"el-input__icon",class:[e.showClose?""+e.clearIcon:""],attrs:{slot:"suffix"},on:{click:e.handleClickIcon},slot:"suffix"}):e._e()])},aa=[];ra._withStripped=!0;var oa=n(0),sa={props:{appendToBody:$.a.props.appendToBody,offset:$.a.props.offset,boundariesPadding:$.a.props.boundariesPadding,arrowOffset:$.a.props.arrowOffset},methods:$.a.methods,data:function(){return Ct()({visibleArrow:!0},$.a.data)},beforeDestroy:$.a.beforeDestroy},la={date:"yyyy-MM-dd",month:"yyyy-MM",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",week:"yyyywWW",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss",year:"yyyy"},ca=["date","datetime","time","time-select","week","month","year","daterange","monthrange","timerange","datetimerange","dates"],ua=function(e,t){return"timestamp"===t?e.getTime():Object(oa["formatDate"])(e,t)},ha=function(e,t){return"timestamp"===t?new Date(Number(e)):Object(oa["parseDate"])(e,t)},da=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],i=e[1];if(n&&i)return[ua(n,t),ua(i,t)]}return""},pa=function(e,t,n){if(Array.isArray(e)||(e=e.split(n)),2===e.length){var i=e[0],r=e[1];return[ha(i,t),ha(r,t)]}return[]},fa={default:{formatter:function(e){return e?""+e:""},parser:function(e){return void 0===e||""===e?null:e}},week:{formatter:function(e,t){var n=Object(oa["getWeekNumber"])(e),i=e.getMonth(),r=new Date(e);1===n&&11===i&&(r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7));var a=Object(oa["formatDate"])(r,t);return a=/WW/.test(a)?a.replace(/WW/,n<10?"0"+n:n):a.replace(/W/,n),a},parser:function(e,t){return fa.date.parser(e,t)}},date:{formatter:ua,parser:ha},datetime:{formatter:ua,parser:ha},daterange:{formatter:da,parser:pa},monthrange:{formatter:da,parser:pa},datetimerange:{formatter:da,parser:pa},timerange:{formatter:da,parser:pa},time:{formatter:ua,parser:ha},month:{formatter:ua,parser:ha},year:{formatter:ua,parser:ha},number:{formatter:function(e){return e?""+e:""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}},dates:{formatter:function(e,t){return e.map((function(e){return ua(e,t)}))},parser:function(e,t){return("string"===typeof e?e.split(", "):e).map((function(e){return e instanceof Date?e:ha(e,t)}))}}},ma={left:"bottom-start",center:"bottom",right:"bottom-end"},ga=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";if(!e)return null;var r=(fa[n]||fa["default"]).parser,a=t||la[n];return r(e,a,i)},va=function(e,t,n){if(!e)return null;var i=(fa[n]||fa["default"]).formatter,r=t||la[n];return i(e,r)},ya=function(e,t){var n=function(e,t){var n=e instanceof Date,i=t instanceof Date;return n&&i?e.getTime()===t.getTime():!n&&!i&&e===t},i=e instanceof Array,r=t instanceof Array;return i&&r?e.length===t.length&&e.every((function(e,i){return n(e,t[i])})):!i&&!r&&n(e,t)},_a=function(e){return"string"===typeof e||e instanceof String},xa=function(e){return null===e||void 0===e||_a(e)||Array.isArray(e)&&2===e.length&&e.every(_a)},ba={mixins:[A.a,sa],inject:{elForm:{default:""},elFormItem:{default:""}},props:{size:String,format:String,valueFormat:String,readonly:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearIcon:{type:String,default:"el-icon-circle-close"},name:{default:"",validator:xa},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:xa},popperClass:String,editable:{type:Boolean,default:!0},align:{type:String,default:"left"},value:{},defaultValue:{},defaultTime:{},rangeSeparator:{default:"-"},pickerOptions:{},unlinkPanels:Boolean,validateEvent:{type:Boolean,default:!0}},components:{ElInput:m.a},directives:{Clickoutside:z.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(e){this.readonly||this.pickerDisabled||(e?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch("ElFormItem","el.form.blur"),this.$emit("blur",this),this.blur()))},parsedValue:{immediate:!0,handler:function(e){this.picker&&(this.picker.value=e)}},defaultValue:function(e){this.picker&&(this.picker.defaultValue=e)},value:function(e,t){ya(e,t)||this.pickerVisible||!this.validateEvent||this.dispatch("ElFormItem","el.form.change",e)}},computed:{ranged:function(){return this.type.indexOf("range")>-1},reference:function(){var e=this.$refs.reference;return e.$el||e},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll("input")):[]},valueIsEmpty:function(){var e=this.value;if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1}else if(e)return!1;return!0},triggerClass:function(){return this.prefixIcon||(-1!==this.type.indexOf("time")?"el-icon-time":"el-icon-date")},selectionMode:function(){return"week"===this.type?"week":"month"===this.type?"month":"year"===this.type?"year":"dates"===this.type?"dates":"day"},haveTrigger:function(){return"undefined"!==typeof this.showTrigger?this.showTrigger:-1!==ca.indexOf(this.type)},displayValue:function(){var e=va(this.parsedValue,this.format,this.type,this.rangeSeparator);return Array.isArray(this.userInput)?[this.userInput[0]||e&&e[0]||"",this.userInput[1]||e&&e[1]||""]:null!==this.userInput?this.userInput:e?"dates"===this.type?e.join(", "):e:""},parsedValue:function(){if(!this.value)return this.value;if("time-select"===this.type)return this.value;var e=Object(oa["isDateObject"])(this.value)||Array.isArray(this.value)&&this.value.every(oa["isDateObject"]);return e?this.value:this.valueFormat?ga(this.value,this.valueFormat,this.type,this.rangeSeparator)||this.value:Array.isArray(this.value)?this.value.map((function(e){return new Date(e)})):new Date(this.value)},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},pickerSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},pickerDisabled:function(){return this.disabled||(this.elForm||{}).disabled},firstInputId:function(){var e={},t=void 0;return t=this.ranged?this.id&&this.id[0]:this.id,t&&(e.id=t),e},secondInputId:function(){var e={},t=void 0;return this.ranged&&(t=this.id&&this.id[1]),t&&(e.id=t),e}},created:function(){this.popperOptions={boundariesPadding:0,gpuAcceleration:!1},this.placement=ma[this.align]||ma.left,this.$on("fieldReset",this.handleFieldReset)},methods:{focus:function(){this.ranged?this.handleFocus():this.$refs.reference.focus()},blur:function(){this.refInput.forEach((function(e){return e.blur()}))},parseValue:function(e){var t=Object(oa["isDateObject"])(e)||Array.isArray(e)&&e.every(oa["isDateObject"]);return this.valueFormat&&!t&&ga(e,this.valueFormat,this.type,this.rangeSeparator)||e},formatToValue:function(e){var t=Object(oa["isDateObject"])(e)||Array.isArray(e)&&e.every(oa["isDateObject"]);return this.valueFormat&&t?va(e,this.valueFormat,this.type,this.rangeSeparator):e},parseString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return ga(e,this.format,t)},formatToString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return va(e,this.format,t)},handleMouseEnter:function(){this.readonly||this.pickerDisabled||!this.valueIsEmpty&&this.clearable&&(this.showClose=!0)},handleChange:function(){if(this.userInput){var e=this.parseString(this.displayValue);e&&(this.picker.value=e,this.isValidValue(e)&&(this.emitInput(e),this.userInput=null))}""===this.userInput&&(this.emitInput(null),this.emitChange(null),this.userInput=null)},handleStartInput:function(e){this.userInput?this.userInput=[e.target.value,this.userInput[1]]:this.userInput=[e.target.value,null]},handleEndInput:function(e){this.userInput?this.userInput=[this.userInput[0],e.target.value]:this.userInput=[null,e.target.value]},handleStartChange:function(e){var t=this.parseString(this.userInput&&this.userInput[0]);if(t){this.userInput=[this.formatToString(t),this.displayValue[1]];var n=[t,this.picker.value&&this.picker.value[1]];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleEndChange:function(e){var t=this.parseString(this.userInput&&this.userInput[1]);if(t){this.userInput=[this.displayValue[0],this.formatToString(t)];var n=[this.picker.value&&this.picker.value[0],t];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleClickIcon:function(e){this.readonly||this.pickerDisabled||(this.showClose?(this.valueOnOpen=this.value,e.stopPropagation(),this.emitInput(null),this.emitChange(null),this.showClose=!1,this.picker&&"function"===typeof this.picker.handleClear&&this.picker.handleClear()):this.pickerVisible=!this.pickerVisible)},handleClose:function(){if(this.pickerVisible&&(this.pickerVisible=!1,"dates"===this.type)){var e=ga(this.valueOnOpen,this.valueFormat,this.type,this.rangeSeparator)||this.valueOnOpen;this.emitInput(e)}},handleFieldReset:function(e){this.userInput=""===e?null:e},handleFocus:function(){var e=this.type;-1===ca.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},handleKeydown:function(e){var t=this,n=e.keyCode;return 27===n?(this.pickerVisible=!1,void e.stopPropagation()):9!==n?13===n?((""===this.userInput||this.isValidValue(this.parseString(this.displayValue)))&&(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur()),void e.stopPropagation()):void(this.userInput?e.stopPropagation():this.picker&&this.picker.handleKeydown&&this.picker.handleKeydown(e)):void(this.ranged?setTimeout((function(){-1===t.refInput.indexOf(document.activeElement)&&(t.pickerVisible=!1,t.blur(),e.stopPropagation())}),0):(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur(),e.stopPropagation()))},handleRangeClick:function(){var e=this.type;-1===ca.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},hidePicker:function(){this.picker&&(this.picker.resetView&&this.picker.resetView(),this.pickerVisible=this.picker.visible=!1,this.destroyPopper())},showPicker:function(){var e=this;this.$isServer||(this.picker||this.mountPicker(),this.pickerVisible=this.picker.visible=!0,this.updatePopper(),this.picker.value=this.parsedValue,this.picker.resetView&&this.picker.resetView(),this.$nextTick((function(){e.picker.adjustSpinners&&e.picker.adjustSpinners()})))},mountPicker:function(){var e=this;this.picker=new Hi.a(this.panel).$mount(),this.picker.defaultValue=this.defaultValue,this.picker.defaultTime=this.defaultTime,this.picker.popperClass=this.popperClass,this.popperElm=this.picker.$el,this.picker.width=this.reference.getBoundingClientRect().width,this.picker.showTime="datetime"===this.type||"datetimerange"===this.type,this.picker.selectionMode=this.selectionMode,this.picker.unlinkPanels=this.unlinkPanels,this.picker.arrowControl=this.arrowControl||this.timeArrowControl||!1,this.$watch("format",(function(t){e.picker.format=t}));var t=function(){var t=e.pickerOptions;if(t&&t.selectableRange){var n=t.selectableRange,i=fa.datetimerange.parser,r=la.timerange;n=Array.isArray(n)?n:[n],e.picker.selectableRange=n.map((function(t){return i(t,r,e.rangeSeparator)}))}for(var a in t)t.hasOwnProperty(a)&&"selectableRange"!==a&&(e.picker[a]=t[a]);e.format&&(e.picker.format=e.format)};t(),this.unwatchPickerOptions=this.$watch("pickerOptions",(function(){return t()}),{deep:!0}),this.$el.appendChild(this.picker.$el),this.picker.resetView&&this.picker.resetView(),this.picker.$on("dodestroy",this.doDestroy),this.picker.$on("pick",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.userInput=null,e.pickerVisible=e.picker.visible=n,e.emitInput(t),e.picker.resetView&&e.picker.resetView()})),this.picker.$on("select-range",(function(t,n,i){0!==e.refInput.length&&(i&&"min"!==i?"max"===i&&(e.refInput[1].setSelectionRange(t,n),e.refInput[1].focus()):(e.refInput[0].setSelectionRange(t,n),e.refInput[0].focus()))}))},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),"function"===typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(e){ya(e,this.valueOnOpen)||(this.$emit("change",e),this.valueOnOpen=e,this.validateEvent&&this.dispatch("ElFormItem","el.form.change",e))},emitInput:function(e){var t=this.formatToValue(e);ya(this.value,t)||this.$emit("input",t)},isValidValue:function(e){return this.picker||this.mountPicker(),!this.picker.isValidValue||e&&this.picker.isValidValue(e)}}},wa=ba,Sa=s(wa,ra,aa,!1,null,null,null);Sa.options.__file="packages/date-picker/src/picker.vue";var Ma=Sa.exports,Ca=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-enter":e.handleEnter,"after-leave":e.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,i){return n("button",{key:i,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-picker__time-header"},[n("span",{staticClass:"el-date-picker__editor-wrap"},[n("el-input",{attrs:{placeholder:e.t("el.datepicker.selectDate"),value:e.visibleDate,size:"small"},on:{input:function(t){return e.userInputDate=t},change:e.handleVisibleDateChange}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleTimePickClose,expression:"handleTimePickClose"}],staticClass:"el-date-picker__editor-wrap"},[n("el-input",{ref:"input",attrs:{placeholder:e.t("el.datepicker.selectTime"),value:e.visibleTime,size:"small"},on:{focus:function(t){e.timePickerVisible=!0},input:function(t){return e.userInputTime=t},change:e.handleVisibleTimeChange}}),n("time-picker",{ref:"timepicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.timePickerVisible},on:{pick:e.handleTimePick,mounted:e.proxyTimePickerDataProperties}})],1)]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:"time"!==e.currentView,expression:"currentView !== 'time'"}],staticClass:"el-date-picker__header",class:{"el-date-picker__header--bordered":"year"===e.currentView||"month"===e.currentView}},[n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevYear")},on:{click:e.prevYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevMonth")},on:{click:e.prevMonth}}),n("span",{staticClass:"el-date-picker__header-label",attrs:{role:"button"},on:{click:e.showYearPicker}},[e._v(e._s(e.yearLabel))]),n("span",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-date-picker__header-label",class:{active:"month"===e.currentView},attrs:{role:"button"},on:{click:e.showMonthPicker}},[e._v(e._s(e.t("el.datepicker.month"+(e.month+1))))]),n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextYear")},on:{click:e.nextYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextMonth")},on:{click:e.nextMonth}})]),n("div",{staticClass:"el-picker-panel__content"},[n("date-table",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],attrs:{"selection-mode":e.selectionMode,"first-day-of-week":e.firstDayOfWeek,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"cell-class-name":e.cellClassName,"disabled-date":e.disabledDate},on:{pick:e.handleDatePick}}),n("year-table",{directives:[{name:"show",rawName:"v-show",value:"year"===e.currentView,expression:"currentView === 'year'"}],attrs:{value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleYearPick}}),n("month-table",{directives:[{name:"show",rawName:"v-show",value:"month"===e.currentView,expression:"currentView === 'month'"}],attrs:{value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleMonthPick}})],1)])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.footerVisible&&"date"===e.currentView,expression:"footerVisible && currentView === 'date'"}],staticClass:"el-picker-panel__footer"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:"dates"!==e.selectionMode,expression:"selectionMode !== 'dates'"}],staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.changeToNow}},[e._v("\n "+e._s(e.t("el.datepicker.now"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini"},on:{click:e.confirm}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1)])])},Ta=[];Ca._withStripped=!0;var Ea=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-panel__content",class:{"has-seconds":e.showSeconds}},[n("time-spinner",{ref:"spinner",attrs:{"arrow-control":e.useArrow,"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,date:e.date},on:{change:e.handleChange,"select-range":e.setSelectionRange}})],1),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:e.handleCancel}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn",class:{confirm:!e.disabled},attrs:{type:"button"},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])},Aa=[];Ea._withStripped=!0;var ka=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-time-spinner",class:{"has-seconds":e.showSeconds}},[e.arrowControl?e._e():[n("el-scrollbar",{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("hours")},mousemove:function(t){e.adjustCurrentSpinner("hours")}}},e._l(e.hoursList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.hours,disabled:t},on:{click:function(n){e.handleClick("hours",{value:i,disabled:t})}}},[e._v(e._s(("0"+(e.amPmMode?i%12||12:i)).slice(-2))+e._s(e.amPm(i)))])})),0),n("el-scrollbar",{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("minutes")},mousemove:function(t){e.adjustCurrentSpinner("minutes")}}},e._l(e.minutesList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.minutes,disabled:!t},on:{click:function(t){e.handleClick("minutes",{value:i,disabled:!1})}}},[e._v(e._s(("0"+i).slice(-2)))])})),0),n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.showSeconds,expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("seconds")},mousemove:function(t){e.adjustCurrentSpinner("seconds")}}},e._l(60,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.seconds},on:{click:function(t){e.handleClick("seconds",{value:i,disabled:!1})}}},[e._v(e._s(("0"+i).slice(-2)))])})),0)],e.arrowControl?[n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("hours")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"hours",staticClass:"el-time-spinner__list"},e._l(e.arrowHourList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:t===e.hours,disabled:e.hoursList[t]}},[e._v(e._s(void 0===t?"":("0"+(e.amPmMode?t%12||12:t)).slice(-2)+e.amPm(t)))])})),0)]),n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("minutes")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"minutes",staticClass:"el-time-spinner__list"},e._l(e.arrowMinuteList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:t===e.minutes}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])})),0)]),e.showSeconds?n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("seconds")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"seconds",staticClass:"el-time-spinner__list"},e._l(e.arrowSecondList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:t===e.seconds}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])})),0)]):e._e()]:e._e()],2)},Da=[];ka._withStripped=!0;var Ia={components:{ElScrollbar:W.a},directives:{repeatClick:Lt},props:{date:{},defaultValue:{},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""}},computed:{hours:function(){return this.date.getHours()},minutes:function(){return this.date.getMinutes()},seconds:function(){return this.date.getSeconds()},hoursList:function(){return Object(oa["getRangeHours"])(this.selectableRange)},minutesList:function(){return Object(oa["getRangeMinutes"])(this.selectableRange,this.hours)},arrowHourList:function(){var e=this.hours;return[e>0?e-1:void 0,e,e<23?e+1:void 0]},arrowMinuteList:function(){var e=this.minutes;return[e>0?e-1:void 0,e,e<59?e+1:void 0]},arrowSecondList:function(){var e=this.seconds;return[e>0?e-1:void 0,e,e<59?e+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var e=this;this.$nextTick((function(){!e.arrowControl&&e.bindScrollEvent()}))},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(e,t){switch(e){case"hours":this.$emit("change",Object(oa["modifyTime"])(this.date,t,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(oa["modifyTime"])(this.date,this.hours,t,this.seconds));break;case"seconds":this.$emit("change",Object(oa["modifyTime"])(this.date,this.hours,this.minutes,t));break}},handleClick:function(e,t){var n=t.value,i=t.disabled;i||(this.modifyDateField(e,n),this.emitSelectRange(e),this.adjustSpinner(e,n))},emitSelectRange:function(e){"hours"===e?this.$emit("select-range",0,2):"minutes"===e?this.$emit("select-range",3,5):"seconds"===e&&this.$emit("select-range",6,8),this.currentScrollbar=e},bindScrollEvent:function(){var e=this,t=function(t){e.$refs[t].wrap.onscroll=function(n){e.handleScroll(t,n)}};t("hours"),t("minutes"),t("seconds")},handleScroll:function(e){var t=Math.min(Math.round((this.$refs[e].wrap.scrollTop-(.5*this.scrollBarHeight(e)-10)/this.typeItemHeight(e)+3)/this.typeItemHeight(e)),"hours"===e?23:59);this.modifyDateField(e,t)},adjustSpinners:function(){this.adjustSpinner("hours",this.hours),this.adjustSpinner("minutes",this.minutes),this.adjustSpinner("seconds",this.seconds)},adjustCurrentSpinner:function(e){this.adjustSpinner(e,this[e])},adjustSpinner:function(e,t){if(!this.arrowControl){var n=this.$refs[e].wrap;n&&(n.scrollTop=Math.max(0,t*this.typeItemHeight(e)))}},scrollDown:function(e){var t=this;this.currentScrollbar||this.emitSelectRange("hours");var n=this.currentScrollbar,i=this.hoursList,r=this[n];if("hours"===this.currentScrollbar){var a=Math.abs(e);e=e>0?1:-1;var o=i.length;while(o--&&a)r=(r+e+i.length)%i.length,i[r]||a--;if(i[r])return}else r=(r+e+60)%60;this.modifyDateField(n,r),this.adjustSpinner(n,r),this.$nextTick((function(){return t.emitSelectRange(t.currentScrollbar)}))},amPm:function(e){var t="a"===this.amPmMode.toLowerCase();if(!t)return"";var n="A"===this.amPmMode,i=e<12?" am":" pm";return n&&(i=i.toUpperCase()),i},typeItemHeight:function(e){return this.$refs[e].$el.querySelector("li").offsetHeight},scrollBarHeight:function(e){return this.$refs[e].$el.offsetHeight}}},Pa=Ia,Oa=s(Pa,ka,Da,!1,null,null,null);Oa.options.__file="packages/date-picker/src/basic/time-spinner.vue";var La=Oa.exports,Ra={mixins:[v.a],components:{TimeSpinner:La},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(e){var t=this;e?(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.spinner.emitSelectRange("hours")}))):this.needInitAdjust=!0},value:function(e){var t=this,n=void 0;e instanceof Date?n=Object(oa["limitTimeRange"])(e,this.selectableRange,this.format):e||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick((function(e){return t.adjustSpinners()})),this.needInitAdjust=!1)},selectableRange:function(e){this.$refs.spinner.selectableRange=e},defaultValue:function(e){Object(oa["isDate"])(this.value)||(this.date=e?new Date(e):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},methods:{handleCancel:function(){this.$emit("pick",this.oldValue,!1)},handleChange:function(e){this.visible&&(this.date=Object(oa["clearMilliseconds"])(e),this.isValidValue(this.date)&&this.$emit("pick",this.date,!0))},setSelectionRange:function(e,t){this.$emit("select-range",e,t),this.selectionRange=[e,t]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(!t){var n=Object(oa["clearMilliseconds"])(Object(oa["limitTimeRange"])(this.date,this.selectableRange,this.format));this.$emit("pick",n,e,t)}},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var i=n[t];return this.changeSelectionRange(i),void e.preventDefault()}if(38===t||40===t){var r=n[t];return this.$refs.spinner.scrollDown(r),void e.preventDefault()}},isValidValue:function(e){return Object(oa["timeWithinRange"])(e,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(e){var t=[0,3].concat(this.showSeconds?[6]:[]),n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),i=t.indexOf(this.selectionRange[0]),r=(i+e+t.length)%t.length;this.$refs.spinner.emitSelectRange(n[r])}},mounted:function(){var e=this;this.$nextTick((function(){return e.handleConfirm(!0,!0)})),this.$emit("mounted")}},Na=Ra,Fa=s(Na,Ea,Aa,!1,null,null,null);Fa.options.__file="packages/date-picker/src/panel/time.vue";var Ba=Fa.exports,za=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-year-table",on:{click:e.handleYearTableClick}},[n("tbody",[n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+0)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+1)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+1))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+2)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+2))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+3)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+3))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+4)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+4))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+5)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+5))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+6)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+6))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+7)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+7))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+8)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+8))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+9)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+9))])]),n("td"),n("td")])])])},Va=[];za._withStripped=!0;var Ua=function(e){var t=Object(oa["getDayCountOfYear"])(e),n=new Date(e,0,1);return Object(oa["range"])(t).map((function(e){return Object(oa["nextDate"])(n,e)}))},Ha={props:{disabledDate:{},value:{},defaultValue:{validator:function(e){return null===e||e instanceof Date&&Object(oa["isDate"])(e)}},date:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(e){var t={},n=new Date;return t.disabled="function"===typeof this.disabledDate&&Ua(e).every(this.disabledDate),t.current=Object(y["arrayFindIndex"])(Object(y["coerceTruthyValueToArray"])(this.value),(function(t){return t.getFullYear()===e}))>=0,t.today=n.getFullYear()===e,t.default=this.defaultValue&&this.defaultValue.getFullYear()===e,t},handleYearTableClick:function(e){var t=e.target;if("A"===t.tagName){if(Object(Be["hasClass"])(t.parentNode,"disabled"))return;var n=t.textContent||t.innerText;this.$emit("pick",Number(n))}}}},$a=Ha,ja=s($a,za,Va,!1,null,null,null);ja.options.__file="packages/date-picker/src/basic/year-table.vue";var Wa=ja.exports,Ga=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-month-table",on:{click:e.handleMonthTableClick,mousemove:e.handleMouseMove}},[n("tbody",e._l(e.rows,(function(t,i){return n("tr",{key:i},e._l(t,(function(t,i){return n("td",{key:i,class:e.getCellStyle(t)},[n("div",[n("a",{staticClass:"cell"},[e._v(e._s(e.t("el.datepicker.months."+e.months[t.text])))])])])})),0)})),0)])},qa=[];Ga._withStripped=!0;var Xa=function(e,t){var n=Object(oa["getDayCountOfMonth"])(e,t),i=new Date(e,t,1);return Object(oa["range"])(n).map((function(e){return Object(oa["nextDate"])(i,e)}))},Ya=function(e){return new Date(e.getFullYear(),e.getMonth())},Ka=function(e){return"number"===typeof e||"string"===typeof e?Ya(new Date(e)).getTime():e instanceof Date?Ya(e).getTime():NaN},Za={props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(e){return null===e||Object(oa["isDate"])(e)||Array.isArray(e)&&e.every(oa["isDate"])}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[v.a],watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){Ka(e)!==Ka(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){Ka(e)!==Ka(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.date.getFullYear()===n.getFullYear()&&Number(e.text)===n.getMonth()},getCellStyle:function(e){var t=this,n={},i=this.date.getFullYear(),r=new Date,a=e.text,o=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled="function"===typeof this.disabledDate&&Xa(i,a).every(this.disabledDate),n.current=Object(y["arrayFindIndex"])(Object(y["coerceTruthyValueToArray"])(this.value),(function(e){return e.getFullYear()===i&&e.getMonth()===a}))>=0,n.today=r.getFullYear()===i&&r.getMonth()===a,n.default=o.some((function(n){return t.cellMatchesDate(e,n)})),e.inRange&&(n["in-range"]=!0,e.start&&(n["start-date"]=!0),e.end&&(n["end-date"]=!0)),n},getMonthOfCell:function(e){var t=this.date.getFullYear();return new Date(t,e,1)},markRange:function(e,t){e=Ka(e),t=Ka(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var i=this.rows,r=0,a=i.length;r<a;r++)for(var o=i[r],s=0,l=o.length;s<l;s++){var c=o[s],u=4*r+s,h=new Date(this.date.getFullYear(),u).getTime();c.inRange=e&&h>=e&&h<=t,c.start=e&&h===e,c.end=t&&h===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex,i=t.cellIndex;this.rows[n][i].disabled||n===this.lastRow&&i===this.lastColumn||(this.lastRow=n,this.lastColumn=i,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+i)}}))}}},handleMonthTableClick:function(e){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName&&!Object(Be["hasClass"])(t,"disabled")){var n=t.cellIndex,i=t.parentNode.rowIndex,r=4*i+n,a=this.getMonthOfCell(r);"range"===this.selectionMode?this.rangeState.selecting?(a>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:a}):this.$emit("pick",{minDate:a,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:a,maxDate:null}),this.rangeState.selecting=!0):this.$emit("pick",r)}}},computed:{rows:function(){for(var e=this,t=this.tableRows,n=this.disabledDate,i=[],r=Ka(new Date),a=0;a<3;a++)for(var o=t[a],s=function(t){var s=o[t];s||(s={row:a,column:t,type:"normal",inRange:!1,start:!1,end:!1}),s.type="normal";var l=4*a+t,c=new Date(e.date.getFullYear(),l).getTime();s.inRange=c>=Ka(e.minDate)&&c<=Ka(e.maxDate),s.start=e.minDate&&c===Ka(e.minDate),s.end=e.maxDate&&c===Ka(e.maxDate);var u=c===r;u&&(s.type="today"),s.text=l;var h=new Date(c);s.disabled="function"===typeof n&&n(h),s.selected=Object(y["arrayFind"])(i,(function(e){return e.getTime()===h.getTime()})),e.$set(o,t,s)},l=0;l<4;l++)s(l);return t}}},Ja=Za,Qa=s(Ja,Ga,qa,!1,null,null,null);Qa.options.__file="packages/date-picker/src/basic/month-table.vue";var eo=Qa.exports,to=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-date-table",class:{"is-week-mode":"week"===e.selectionMode},attrs:{cellspacing:"0",cellpadding:"0"},on:{click:e.handleClick,mousemove:e.handleMouseMove}},[n("tbody",[n("tr",[e.showWeekNumber?n("th",[e._v(e._s(e.t("el.datepicker.week")))]):e._e(),e._l(e.WEEKS,(function(t,i){return n("th",{key:i},[e._v(e._s(e.t("el.datepicker.weeks."+t)))])}))],2),e._l(e.rows,(function(t,i){return n("tr",{key:i,staticClass:"el-date-table__row",class:{current:e.isWeekActive(t[1])}},e._l(t,(function(t,i){return n("td",{key:i,class:e.getCellClasses(t)},[n("div",[n("span",[e._v("\n "+e._s(t.text)+"\n ")])])])})),0)}))],2)])},no=[];to._withStripped=!0;var io=["sun","mon","tue","wed","thu","fri","sat"],ro=function(e){return"number"===typeof e||"string"===typeof e?Object(oa["clearTime"])(new Date(e)).getTime():e instanceof Date?Object(oa["clearTime"])(e).getTime():NaN},ao=function(e,t){var n="function"===typeof t?Object(y["arrayFindIndex"])(e,t):e.indexOf(t);return n>=0?[].concat(e.slice(0,n),e.slice(n+1)):e},oo={mixins:[v.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(e){return e>=1&&e<=7}},value:{},defaultValue:{validator:function(e){return null===e||Object(oa["isDate"])(e)||Array.isArray(e)&&e.every(oa["isDate"])}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var e=this.firstDayOfWeek;return e>3?7-e:-e},WEEKS:function(){var e=this.firstDayOfWeek;return io.concat(io).slice(e,e+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(oa["getStartDateOfMonth"])(this.year,this.month)},rows:function(){var e=this,t=new Date(this.year,this.month,1),n=Object(oa["getFirstDayOfMonth"])(t),i=Object(oa["getDayCountOfMonth"])(t.getFullYear(),t.getMonth()),r=Object(oa["getDayCountOfMonth"])(t.getFullYear(),0===t.getMonth()?11:t.getMonth()-1);n=0===n?7:n;for(var a=this.offsetDay,o=this.tableRows,s=1,l=this.startDate,c=this.disabledDate,u=this.cellClassName,h="dates"===this.selectionMode?Object(y["coerceTruthyValueToArray"])(this.value):[],d=ro(new Date),p=0;p<6;p++){var f=o[p];this.showWeekNumber&&(f[0]||(f[0]={type:"week",text:Object(oa["getWeekNumber"])(Object(oa["nextDate"])(l,7*p+1))}));for(var m=function(t){var o=f[e.showWeekNumber?t+1:t];o||(o={row:p,column:t,type:"normal",inRange:!1,start:!1,end:!1}),o.type="normal";var m=7*p+t,g=Object(oa["nextDate"])(l,m-a).getTime();o.inRange=g>=ro(e.minDate)&&g<=ro(e.maxDate),o.start=e.minDate&&g===ro(e.minDate),o.end=e.maxDate&&g===ro(e.maxDate);var v=g===d;if(v&&(o.type="today"),p>=0&&p<=1){var _=n+a<0?7+n+a:n+a;t+7*p>=_?o.text=s++:(o.text=r-(_-t%7)+1+7*p,o.type="prev-month")}else s<=i?o.text=s++:(o.text=s++-i,o.type="next-month");var x=new Date(g);o.disabled="function"===typeof c&&c(x),o.selected=Object(y["arrayFind"])(h,(function(e){return e.getTime()===x.getTime()})),o.customClass="function"===typeof u&&u(x),e.$set(f,e.showWeekNumber?t+1:t,o)},g=0;g<7;g++)m(g);if("week"===this.selectionMode){var v=this.showWeekNumber?1:0,_=this.showWeekNumber?7:6,x=this.isWeekActive(f[v+1]);f[v].inRange=x,f[v].start=x,f[_].inRange=x,f[_].end=x}}return o}},watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){ro(e)!==ro(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){ro(e)!==ro(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.year===n.getFullYear()&&this.month===n.getMonth()&&Number(e.text)===n.getDate()},getCellClasses:function(e){var t=this,n=this.selectionMode,i=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],r=[];return"normal"!==e.type&&"today"!==e.type||e.disabled?r.push(e.type):(r.push("available"),"today"===e.type&&r.push("today")),"normal"===e.type&&i.some((function(n){return t.cellMatchesDate(e,n)}))&&r.push("default"),"day"!==n||"normal"!==e.type&&"today"!==e.type||!this.cellMatchesDate(e,this.value)||r.push("current"),!e.inRange||"normal"!==e.type&&"today"!==e.type&&"week"!==this.selectionMode||(r.push("in-range"),e.start&&r.push("start-date"),e.end&&r.push("end-date")),e.disabled&&r.push("disabled"),e.selected&&r.push("selected"),e.customClass&&r.push(e.customClass),r.join(" ")},getDateOfCell:function(e,t){var n=7*e+(t-(this.showWeekNumber?1:0))-this.offsetDay;return Object(oa["nextDate"])(this.startDate,n)},isWeekActive:function(e){if("week"!==this.selectionMode)return!1;var t=new Date(this.year,this.month,1),n=t.getFullYear(),i=t.getMonth();if("prev-month"===e.type&&(t.setMonth(0===i?11:i-1),t.setFullYear(0===i?n-1:n)),"next-month"===e.type&&(t.setMonth(11===i?0:i+1),t.setFullYear(11===i?n+1:n)),t.setDate(parseInt(e.text,10)),Object(oa["isDate"])(this.value)){var r=(this.value.getDay()-this.firstDayOfWeek+7)%7-1,a=Object(oa["prevDate"])(this.value,r);return a.getTime()===t.getTime()}return!1},markRange:function(e,t){e=ro(e),t=ro(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var i=this.startDate,r=this.rows,a=0,o=r.length;a<o;a++)for(var s=r[a],l=0,c=s.length;l<c;l++)if(!this.showWeekNumber||0!==l){var u=s[l],h=7*a+l+(this.showWeekNumber?-1:0),d=Object(oa["nextDate"])(i,h-this.offsetDay).getTime();u.inRange=e&&d>=e&&d<=t,u.start=e&&d===e,u.end=t&&d===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,i=t.cellIndex;this.rows[n][i].disabled||n===this.lastRow&&i===this.lastColumn||(this.lastRow=n,this.lastColumn=i,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,i)}}))}}},handleClick:function(e){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,i="week"===this.selectionMode?1:t.cellIndex,r=this.rows[n][i];if(!r.disabled&&"week"!==r.type){var a=this.getDateOfCell(n,i);if("range"===this.selectionMode)this.rangeState.selecting?(a>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:a}):this.$emit("pick",{minDate:a,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:a,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",a);else if("week"===this.selectionMode){var o=Object(oa["getWeekNumber"])(a),s=a.getFullYear()+"w"+o;this.$emit("pick",{year:a.getFullYear(),week:o,value:s,date:a})}else if("dates"===this.selectionMode){var l=this.value||[],c=r.selected?ao(l,(function(e){return e.getTime()===a.getTime()})):[].concat(l,[a]);this.$emit("pick",c)}}}}}},so=oo,lo=s(so,to,no,!1,null,null,null);lo.options.__file="packages/date-picker/src/basic/date-table.vue";var co=lo.exports,uo={mixins:[v.a],directives:{Clickoutside:z.a},watch:{showTime:function(e){var t=this;e&&this.$nextTick((function(e){var n=t.$refs.input.$el;n&&(t.pickerWidth=n.getBoundingClientRect().width+10)}))},value:function(e){"dates"===this.selectionMode&&this.value||(Object(oa["isDate"])(e)?this.date=new Date(e):this.date=this.getDefaultValue())},defaultValue:function(e){Object(oa["isDate"])(this.value)||(this.date=e?new Date(e):new Date)},timePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){return t.$refs.timepicker.adjustSpinners()}))},selectionMode:function(e){"month"===e?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===e&&(this.currentView="date")}},methods:{proxyTimePickerDataProperties:function(){var e=this,t=function(t){e.$refs.timepicker.format=t},n=function(t){e.$refs.timepicker.value=t},i=function(t){e.$refs.timepicker.date=t},r=function(t){e.$refs.timepicker.selectableRange=t};this.$watch("value",n),this.$watch("date",i),this.$watch("selectableRange",r),t(this.timeFormat),n(this.value),i(this.date),r(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(e){for(var t=this,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];if(e)if(Array.isArray(e)){var a=e.map((function(e){return t.showTime?Object(oa["clearMilliseconds"])(e):Object(oa["clearTime"])(e)}));this.$emit.apply(this,["pick",a].concat(i))}else this.$emit.apply(this,["pick",this.showTime?Object(oa["clearMilliseconds"])(e):Object(oa["clearTime"])(e)].concat(i));else this.$emit.apply(this,["pick",e].concat(i));this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView="month"},showYearPicker:function(){this.currentView="year"},prevMonth:function(){this.date=Object(oa["prevMonth"])(this.date)},nextMonth:function(){this.date=Object(oa["nextMonth"])(this.date)},prevYear:function(){"year"===this.currentView?this.date=Object(oa["prevYear"])(this.date,10):this.date=Object(oa["prevYear"])(this.date)},nextYear:function(){"year"===this.currentView?this.date=Object(oa["nextYear"])(this.date,10):this.date=Object(oa["nextYear"])(this.date)},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleTimePick:function(e,t,n){if(Object(oa["isDate"])(e)){var i=this.value?Object(oa["modifyTime"])(this.value,e.getHours(),e.getMinutes(),e.getSeconds()):Object(oa["modifyWithTimeString"])(this.getDefaultValue(),this.defaultTime);this.date=i,this.emit(this.date,!0)}else this.emit(e,!0);n||(this.timePickerVisible=t)},handleTimePickClose:function(){this.timePickerVisible=!1},handleMonthPick:function(e){"month"===this.selectionMode?(this.date=Object(oa["modifyDate"])(this.date,this.year,e,1),this.emit(this.date)):(this.date=Object(oa["changeYearMonthAndClampDate"])(this.date,this.year,e),this.currentView="date")},handleDatePick:function(e){if("day"===this.selectionMode){var t=this.value?Object(oa["modifyDate"])(this.value,e.getFullYear(),e.getMonth(),e.getDate()):Object(oa["modifyWithTimeString"])(e,this.defaultTime);this.checkDateWithinRange(t)||(t=Object(oa["modifyDate"])(this.selectableRange[0][0],e.getFullYear(),e.getMonth(),e.getDate())),this.date=t,this.emit(this.date,this.showTime)}else"week"===this.selectionMode?this.emit(e.date):"dates"===this.selectionMode&&this.emit(e,!0)},handleYearPick:function(e){"year"===this.selectionMode?(this.date=Object(oa["modifyDate"])(this.date,e,0,1),this.emit(this.date)):(this.date=Object(oa["changeYearMonthAndClampDate"])(this.date,e,this.month),this.currentView="month")},changeToNow:function(){this.disabledDate&&this.disabledDate(new Date)||!this.checkDateWithinRange(new Date)||(this.date=new Date,this.emit(this.date))},confirm:function(){if("dates"===this.selectionMode)this.emit(this.value);else{var e=this.value?this.value:Object(oa["modifyWithTimeString"])(this.getDefaultValue(),this.defaultTime);this.date=new Date(e),this.emit(e)}},resetView:function(){"month"===this.selectionMode?this.currentView="month":"year"===this.selectionMode?this.currentView="year":this.currentView="date"},handleEnter:function(){document.body.addEventListener("keydown",this.handleKeydown)},handleLeave:function(){this.$emit("dodestroy"),document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(e){var t=e.keyCode,n=[38,40,37,39];this.visible&&!this.timePickerVisible&&(-1!==n.indexOf(t)&&(this.handleKeyControl(t),e.stopPropagation(),e.preventDefault()),13===t&&null===this.userInputDate&&null===this.userInputTime&&this.emit(this.date,!1))},handleKeyControl:function(e){var t={year:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setFullYear(e.getFullYear()+t)}},month:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setMonth(e.getMonth()+t)}},week:{38:-1,40:1,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+7*t)}},day:{38:-7,40:7,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+t)}}},n=this.selectionMode,i=31536e6,r=this.date.getTime(),a=new Date(this.date.getTime());while(Math.abs(r-a.getTime())<=i){var o=t[n];if(o.offset(a,o[e]),"function"!==typeof this.disabledDate||!this.disabledDate(a)){this.date=a,this.$emit("pick",a,!0);break}}},handleVisibleTimeChange:function(e){var t=Object(oa["parseDate"])(e,this.timeFormat);t&&this.checkDateWithinRange(t)&&(this.date=Object(oa["modifyDate"])(t,this.year,this.month,this.monthDate),this.userInputTime=null,this.$refs.timepicker.value=this.date,this.timePickerVisible=!1,this.emit(this.date,!0))},handleVisibleDateChange:function(e){var t=Object(oa["parseDate"])(e,this.dateFormat);if(t){if("function"===typeof this.disabledDate&&this.disabledDate(t))return;this.date=Object(oa["modifyTime"])(t,this.date.getHours(),this.date.getMinutes(),this.date.getSeconds()),this.userInputDate=null,this.resetView(),this.emit(this.date,!0)}},isValidValue:function(e){return e&&!isNaN(e)&&("function"!==typeof this.disabledDate||!this.disabledDate(e))&&this.checkDateWithinRange(e)},getDefaultValue:function(){return this.defaultValue?new Date(this.defaultValue):new Date},checkDateWithinRange:function(e){return!(this.selectableRange.length>0)||Object(oa["timeWithinRange"])(e,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:Ba,YearTable:Wa,MonthTable:eo,DateTable:co,ElInput:m.a,ElButton:oe.a},data:function(){return{popperClass:"",date:new Date,value:"",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:"day",shortcuts:"",visible:!1,currentView:"date",disabledDate:"",cellClassName:"",selectableRange:[],firstDayOfWeek:7,showWeekNumber:!1,timePickerVisible:!1,format:"",arrowControl:!1,userInputDate:null,userInputTime:null}},computed:{year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},week:function(){return Object(oa["getWeekNumber"])(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||"dates"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:Object(oa["formatDate"])(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(oa["formatDate"])(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var e=this.t("el.datepicker.year");if("year"===this.currentView){var t=10*Math.floor(this.year/10);return e?t+" "+e+" - "+(t+9)+" "+e:t+" - "+(t+9)}return this.year+" "+e},timeFormat:function(){return this.format?Object(oa["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(oa["extractDateFormat"])(this.format):"yyyy-MM-dd"}}},ho=uo,po=s(ho,Ca,Ta,!1,null,null,null);po.options.__file="packages/date-picker/src/panel/date.vue";var fo=po.exports,mo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,i){return n("button",{key:i,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-range-picker__time-header"},[n("span",{staticClass:"el-date-range-picker__editors-wrap"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{ref:"minInput",staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startDate"),value:e.minVisibleDate},on:{input:function(t){return e.handleDateInput(t,"min")},change:function(t){return e.handleDateChange(t,"min")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMinTimeClose,expression:"handleMinTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startTime"),value:e.minVisibleTime},on:{focus:function(t){e.minTimePickerVisible=!0},input:function(t){return e.handleTimeInput(t,"min")},change:function(t){return e.handleTimeChange(t,"min")}}}),n("time-picker",{ref:"minTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.minTimePickerVisible},on:{pick:e.handleMinTimePick,mounted:function(t){e.$refs.minTimePicker.format=e.timeFormat}}})],1)]),n("span",{staticClass:"el-icon-arrow-right"}),n("span",{staticClass:"el-date-range-picker__editors-wrap is-right"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endDate"),value:e.maxVisibleDate,readonly:!e.minDate},on:{input:function(t){return e.handleDateInput(t,"max")},change:function(t){return e.handleDateChange(t,"max")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMaxTimeClose,expression:"handleMaxTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endTime"),value:e.maxVisibleTime,readonly:!e.minDate},on:{focus:function(t){e.minDate&&(e.maxTimePickerVisible=!0)},input:function(t){return e.handleTimeInput(t,"max")},change:function(t){return e.handleTimeChange(t,"max")}}}),n("time-picker",{ref:"maxTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.maxTimePickerVisible},on:{pick:e.handleMaxTimePick,mounted:function(t){e.$refs.maxTimePicker.format=e.timeFormat}}})],1)])]):e._e(),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevMonth}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.leftNextMonth}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.rightPrevMonth}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",attrs:{type:"button"},on:{click:e.rightNextMonth}}),n("div",[e._v(e._s(e.rightLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2),e.showTime?n("div",{staticClass:"el-picker-panel__footer"},[n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.handleClear}},[e._v("\n "+e._s(e.t("el.datepicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm(!1)}}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1):e._e()])])},go=[];mo._withStripped=!0;var vo=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(oa["nextDate"])(new Date(e),1)]:[new Date,Object(oa["nextDate"])(new Date,1)]},yo={mixins:[v.a],directives:{Clickoutside:z.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.leftDate.getMonth()+1))},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.rightDate.getMonth()+1))},leftYear:function(){return this.leftDate.getFullYear()},leftMonth:function(){return this.leftDate.getMonth()},leftMonthDate:function(){return this.leftDate.getDate()},rightYear:function(){return this.rightDate.getFullYear()},rightMonth:function(){return this.rightDate.getMonth()},rightMonthDate:function(){return this.rightDate.getDate()},minVisibleDate:function(){return null!==this.dateUserInput.min?this.dateUserInput.min:this.minDate?Object(oa["formatDate"])(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(oa["formatDate"])(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(oa["formatDate"])(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(oa["formatDate"])(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(oa["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(oa["extractDateFormat"])(this.format):"yyyy-MM-dd"},enableMonthArrow:function(){var e=(this.leftMonth+1)%12,t=this.leftMonth+1>=12?1:0;return this.unlinkPanels&&new Date(this.leftYear+t,e)<new Date(this.rightYear,this.rightMonth)},enableYearArrow:function(){return this.unlinkPanels&&12*this.rightYear+this.rightMonth-(12*this.leftYear+this.leftMonth+1)>=12}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(oa["nextMonth"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",cellClassName:"",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:"",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(e){var t=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick((function(){if(t.$refs.maxTimePicker&&t.maxDate&&t.maxDate<t.minDate){var e="HH:mm:ss";t.$refs.maxTimePicker.selectableRange=[[Object(oa["parseDate"])(Object(oa["formatDate"])(t.minDate,e),e),Object(oa["parseDate"])("23:59:59",e)]]}})),e&&this.$refs.minTimePicker&&(this.$refs.minTimePicker.date=e,this.$refs.minTimePicker.value=e)},maxDate:function(e){this.dateUserInput.max=null,this.timeUserInput.max=null,e&&this.$refs.maxTimePicker&&(this.$refs.maxTimePicker.date=e,this.$refs.maxTimePicker.value=e)},minTimePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){t.$refs.minTimePicker.date=t.minDate,t.$refs.minTimePicker.value=t.minDate,t.$refs.minTimePicker.adjustSpinners()}))},maxTimePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){t.$refs.maxTimePicker.date=t.maxDate,t.$refs.maxTimePicker.value=t.maxDate,t.$refs.maxTimePicker.adjustSpinners()}))},value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(oa["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(oa["isDate"])(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.minDate.getMonth(),i=this.maxDate.getFullYear(),r=this.maxDate.getMonth();this.rightDate=t===i&&n===r?Object(oa["nextMonth"])(this.maxDate):this.maxDate}else this.rightDate=Object(oa["nextMonth"])(this.leftDate);else this.leftDate=vo(this.defaultValue)[0],this.rightDate=Object(oa["nextMonth"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=vo(e),n=t[0],i=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&this.unlinkPanels?i:Object(oa["nextMonth"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=vo(this.defaultValue)[0],this.rightDate=Object(oa["nextMonth"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleDateInput:function(e,t){if(this.dateUserInput[t]=e,e.length===this.dateFormat.length){var n=Object(oa["parseDate"])(e,this.dateFormat);if(n){if("function"===typeof this.disabledDate&&this.disabledDate(new Date(n)))return;"min"===t?(this.minDate=Object(oa["modifyDate"])(this.minDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.leftDate=new Date(n),this.unlinkPanels||(this.rightDate=Object(oa["nextMonth"])(this.leftDate))):(this.maxDate=Object(oa["modifyDate"])(this.maxDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.rightDate=new Date(n),this.unlinkPanels||(this.leftDate=Object(oa["prevMonth"])(n)))}}},handleDateChange:function(e,t){var n=Object(oa["parseDate"])(e,this.dateFormat);n&&("min"===t?(this.minDate=Object(oa["modifyDate"])(this.minDate,n.getFullYear(),n.getMonth(),n.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(oa["modifyDate"])(this.maxDate,n.getFullYear(),n.getMonth(),n.getDate()),this.maxDate<this.minDate&&(this.minDate=this.maxDate)))},handleTimeInput:function(e,t){var n=this;if(this.timeUserInput[t]=e,e.length===this.timeFormat.length){var i=Object(oa["parseDate"])(e,this.timeFormat);i&&("min"===t?(this.minDate=Object(oa["modifyTime"])(this.minDate,i.getHours(),i.getMinutes(),i.getSeconds()),this.$nextTick((function(e){return n.$refs.minTimePicker.adjustSpinners()}))):(this.maxDate=Object(oa["modifyTime"])(this.maxDate,i.getHours(),i.getMinutes(),i.getSeconds()),this.$nextTick((function(e){return n.$refs.maxTimePicker.adjustSpinners()}))))}},handleTimeChange:function(e,t){var n=Object(oa["parseDate"])(e,this.timeFormat);n&&("min"===t?(this.minDate=Object(oa["modifyTime"])(this.minDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.minDate>this.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Object(oa["modifyTime"])(this.maxDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.maxDate<this.minDate&&(this.minDate=this.maxDate),this.$refs.maxTimePicker.value=this.minDate,this.maxTimePickerVisible=!1))},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.defaultTime||[],r=Object(oa["modifyWithTimeString"])(e.minDate,i[0]),a=Object(oa["modifyWithTimeString"])(e.maxDate,i[1]);this.maxDate===a&&this.minDate===r||(this.onPick&&this.onPick(e),this.maxDate=a,this.minDate=r,setTimeout((function(){t.maxDate=a,t.minDate=r}),10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleMinTimePick:function(e,t,n){this.minDate=this.minDate||new Date,e&&(this.minDate=Object(oa["modifyTime"])(this.minDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.minTimePickerVisible=t),(!this.maxDate||this.maxDate&&this.maxDate.getTime()<this.minDate.getTime())&&(this.maxDate=new Date(this.minDate))},handleMinTimeClose:function(){this.minTimePickerVisible=!1},handleMaxTimePick:function(e,t,n){this.maxDate&&e&&(this.maxDate=Object(oa["modifyTime"])(this.maxDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.maxTimePickerVisible=t),this.maxDate&&this.minDate&&this.minDate.getTime()>this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(oa["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(oa["nextMonth"])(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(oa["prevMonth"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(oa["nextMonth"])(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(oa["nextYear"])(this.rightDate):(this.leftDate=Object(oa["nextYear"])(this.leftDate),this.rightDate=Object(oa["nextMonth"])(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(oa["nextMonth"])(this.rightDate):(this.leftDate=Object(oa["nextMonth"])(this.leftDate),this.rightDate=Object(oa["nextMonth"])(this.leftDate))},leftNextYear:function(){this.leftDate=Object(oa["nextYear"])(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(oa["nextMonth"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(oa["prevYear"])(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(oa["prevMonth"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(oa["isDate"])(e[0])&&Object(oa["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&Object(oa["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(oa["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:Ba,DateTable:co,ElInput:m.a,ElButton:oe.a}},_o=yo,xo=s(_o,mo,go,!1,null,null,null);xo.options.__file="packages/date-picker/src/panel/date-range.vue";var bo=xo.exports,wo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,i){return n("button",{key:i,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("div",[e._v(e._s(e.rightLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2)])])},So=[];wo._withStripped=!0;var Mo=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(oa["nextMonth"])(new Date(e))]:[new Date,Object(oa["nextMonth"])(new Date)]},Co={mixins:[v.a],directives:{Clickoutside:z.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")},leftYear:function(){return this.leftDate.getFullYear()},rightYear:function(){return this.rightDate.getFullYear()===this.leftDate.getFullYear()?this.leftDate.getFullYear()+1:this.rightDate.getFullYear()},enableYearArrow:function(){return this.unlinkPanels&&this.rightYear>this.leftYear+1}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(oa["nextYear"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(oa["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(oa["isDate"])(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.maxDate.getFullYear();this.rightDate=t===n?Object(oa["nextYear"])(this.maxDate):this.maxDate}else this.rightDate=Object(oa["nextYear"])(this.leftDate);else this.leftDate=Mo(this.defaultValue)[0],this.rightDate=Object(oa["nextYear"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=Mo(e),n=t[0],i=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&n.getFullYear()!==i.getFullYear()&&this.unlinkPanels?i:Object(oa["nextYear"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=Mo(this.defaultValue)[0],this.rightDate=Object(oa["nextYear"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.defaultTime||[],r=Object(oa["modifyWithTimeString"])(e.minDate,i[0]),a=Object(oa["modifyWithTimeString"])(e.maxDate,i[1]);this.maxDate===a&&this.minDate===r||(this.onPick&&this.onPick(e),this.maxDate=a,this.minDate=r,setTimeout((function(){t.maxDate=a,t.minDate=r}),10),n&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},leftPrevYear:function(){this.leftDate=Object(oa["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(oa["prevYear"])(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(oa["nextYear"])(this.leftDate)),this.rightDate=Object(oa["nextYear"])(this.rightDate)},leftNextYear:function(){this.leftDate=Object(oa["nextYear"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(oa["prevYear"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(oa["isDate"])(e[0])&&Object(oa["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate=this.value&&Object(oa["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(oa["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:eo,ElInput:m.a,ElButton:oe.a}},To=Co,Eo=s(To,wo,So,!1,null,null,null);Eo.options.__file="packages/date-picker/src/panel/month-range.vue";var Ao=Eo.exports,ko=function(e){return"daterange"===e||"datetimerange"===e?bo:"monthrange"===e?Ao:fo},Do={mixins:[Ma],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(e){this.picker?(this.unmountPicker(),this.panel=ko(e),this.mountPicker()):this.panel=ko(e)}},created:function(){this.panel=ko(this.type)},install:function(e){e.component(Do.name,Do)}},Io=Do,Po=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],ref:"popper",staticClass:"el-picker-panel time-select el-popper",class:e.popperClass,style:{width:e.width+"px"}},[n("el-scrollbar",{attrs:{noresize:"","wrap-class":"el-picker-panel__content"}},e._l(e.items,(function(t){return n("div",{key:t.value,staticClass:"time-select-item",class:{selected:e.value===t.value,disabled:t.disabled,default:t.value===e.defaultValue},attrs:{disabled:t.disabled},on:{click:function(n){e.handleClick(t)}}},[e._v(e._s(t.value))])})),0)],1)])},Oo=[];Po._withStripped=!0;var Lo=function(e){var t=(e||"").split(":");if(t.length>=2){var n=parseInt(t[0],10),i=parseInt(t[1],10);return{hours:n,minutes:i}}return null},Ro=function(e,t){var n=Lo(e),i=Lo(t),r=n.minutes+60*n.hours,a=i.minutes+60*i.hours;return r===a?0:r>a?1:-1},No=function(e){return(e.hours<10?"0"+e.hours:e.hours)+":"+(e.minutes<10?"0"+e.minutes:e.minutes)},Fo=function(e,t){var n=Lo(e),i=Lo(t),r={hours:n.hours,minutes:n.minutes};return r.minutes+=i.minutes,r.hours+=i.hours,r.hours+=Math.floor(r.minutes/60),r.minutes=r.minutes%60,No(r)},Bo={components:{ElScrollbar:W.a},watch:{value:function(e){var t=this;e&&this.$nextTick((function(){return t.scrollToOption()}))}},methods:{handleClick:function(e){e.disabled||this.$emit("pick",e.value)},handleClear:function(){this.$emit("pick",null)},scrollToOption:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".selected",t=this.$refs.popper.querySelector(".el-picker-panel__content");ni()(t,t.querySelector(e))},handleMenuEnter:function(){var e=this,t=-1!==this.items.map((function(e){return e.value})).indexOf(this.value),n=-1!==this.items.map((function(e){return e.value})).indexOf(this.defaultValue),i=(t?".selected":n&&".default")||".time-select-item:not(.disabled)";this.$nextTick((function(){return e.scrollToOption(i)}))},scrollDown:function(e){var t=this.items,n=t.length,i=t.length,r=t.map((function(e){return e.value})).indexOf(this.value);while(i--)if(r=(r+e+n)%n,!t[r].disabled)return void this.$emit("pick",t[r].value,!0)},isValidValue:function(e){return-1!==this.items.filter((function(e){return!e.disabled})).map((function(e){return e.value})).indexOf(e)},handleKeydown:function(e){var t=e.keyCode;if(38===t||40===t){var n={40:1,38:-1},i=n[t.toString()];return this.scrollDown(i),void e.stopPropagation()}}},data:function(){return{popperClass:"",start:"09:00",end:"18:00",step:"00:30",value:"",defaultValue:"",visible:!1,minTime:"",maxTime:"",width:0}},computed:{items:function(){var e=this.start,t=this.end,n=this.step,i=[];if(e&&t&&n){var r=e;while(Ro(r,t)<=0)i.push({value:r,disabled:Ro(r,this.minTime||"-1:-1")<=0||Ro(r,this.maxTime||"100:100")>=0}),r=Fo(r,n)}return i}}},zo=Bo,Vo=s(zo,Po,Oo,!1,null,null,null);Vo.options.__file="packages/date-picker/src/panel/time-select.vue";var Uo=Vo.exports,Ho={mixins:[Ma],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=Uo},install:function(e){e.component(Ho.name,Ho)}},$o=Ho,jo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-range-picker el-picker-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-range-picker__content"},[n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.startTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"minSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.minDate},on:{change:e.handleMinChange,"select-range":e.setMinSelectionRange}})],1)]),n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.endTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"maxSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.maxDate},on:{change:e.handleMaxChange,"select-range":e.setMaxSelectionRange}})],1)])]),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:function(t){e.handleCancel()}}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn confirm",attrs:{type:"button",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])},Wo=[];jo._withStripped=!0;var Go=Object(oa["parseDate"])("00:00:00","HH:mm:ss"),qo=Object(oa["parseDate"])("23:59:59","HH:mm:ss"),Xo=function(e){return Object(oa["modifyDate"])(Go,e.getFullYear(),e.getMonth(),e.getDate())},Yo=function(e){return Object(oa["modifyDate"])(qo,e.getFullYear(),e.getMonth(),e.getDate())},Ko=function(e,t){return new Date(Math.min(e.getTime()+t,Yo(e).getTime()))},Zo={mixins:[v.a],components:{TimeSpinner:La},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},offset:function(){return this.showSeconds?11:8},spinner:function(){return this.selectionRange[0]<this.offset?this.$refs.minSpinner:this.$refs.maxSpinner},btnDisabled:function(){return this.minDate.getTime()>this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},data:function(){return{popperClass:"",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:"HH:mm:ss",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(e){Array.isArray(e)?(this.minDate=new Date(e[0]),this.maxDate=new Date(e[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=Ko(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=Ko(new Date,36e5))},visible:function(e){var t=this;e&&(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.minSpinner.emitSelectRange("hours")})))}},methods:{handleClear:function(){this.$emit("pick",null)},handleCancel:function(){this.$emit("pick",this.oldValue)},handleMinChange:function(e){this.minDate=Object(oa["clearMilliseconds"])(e),this.handleChange()},handleMaxChange:function(e){this.maxDate=Object(oa["clearMilliseconds"])(e),this.handleChange()},handleChange:function(){this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[Xo(this.minDate),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,Yo(this.maxDate)]],this.$emit("pick",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(e,t){this.$emit("select-range",e,t,"min"),this.selectionRange=[e,t]},setMaxSelectionRange:function(e,t){this.$emit("select-range",e,t,"max"),this.selectionRange=[e+this.offset,t+this.offset]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.$refs.minSpinner.selectableRange,n=this.$refs.maxSpinner.selectableRange;this.minDate=Object(oa["limitTimeRange"])(this.minDate,t,this.format),this.maxDate=Object(oa["limitTimeRange"])(this.maxDate,n,this.format),this.$emit("pick",[this.minDate,this.maxDate],e)},adjustSpinners:function(){this.$refs.minSpinner.adjustSpinners(),this.$refs.maxSpinner.adjustSpinners()},changeSelectionRange:function(e){var t=this.showSeconds?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),i=t.indexOf(this.selectionRange[0]),r=(i+e+t.length)%t.length,a=t.length/2;r<a?this.$refs.minSpinner.emitSelectRange(n[r]):this.$refs.maxSpinner.emitSelectRange(n[r-a])},isValidValue:function(e){return Array.isArray(e)&&Object(oa["timeWithinRange"])(this.minDate,this.$refs.minSpinner.selectableRange)&&Object(oa["timeWithinRange"])(this.maxDate,this.$refs.maxSpinner.selectableRange)},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var i=n[t];return this.changeSelectionRange(i),void e.preventDefault()}if(38===t||40===t){var r=n[t];return this.spinner.scrollDown(r),void e.preventDefault()}}}},Jo=Zo,Qo=s(Jo,jo,Wo,!1,null,null,null);Qo.options.__file="packages/date-picker/src/panel/time-range.vue";var es=Qo.exports,ts={mixins:[Ma],name:"ElTimePicker",props:{isRange:Boolean,arrowControl:Boolean},data:function(){return{type:""}},watch:{isRange:function(e){this.picker?(this.unmountPicker(),this.type=e?"timerange":"time",this.panel=e?es:Ba,this.mountPicker()):(this.type=e?"timerange":"time",this.panel=e?es:Ba)}},created:function(){this.type=this.isRange?"timerange":"time",this.panel=this.isRange?es:Ba},install:function(e){e.component(ts.name,ts)}},ns=ts,is=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)},rs=[];is._withStripped=!0;var as={name:"ElPopover",mixins:[$.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(y["generateId"])()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(Be["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(Be["on"])(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(Be["on"])(n,"focusin",this.handleFocus),Object(Be["on"])(t,"focusout",this.handleBlur),Object(Be["on"])(n,"focusout",this.handleBlur)),Object(Be["on"])(t,"keydown",this.handleKeydown),Object(Be["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(Be["on"])(t,"click",this.doToggle),Object(Be["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(Be["on"])(t,"mouseenter",this.handleMouseEnter),Object(Be["on"])(n,"mouseenter",this.handleMouseEnter),Object(Be["on"])(t,"mouseleave",this.handleMouseLeave),Object(Be["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(Be["on"])(t,"focusin",this.doShow),Object(Be["on"])(t,"focusout",this.doClose)):(Object(Be["on"])(t,"mousedown",this.doShow),Object(Be["on"])(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(Be["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(Be["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(Be["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(Be["off"])(e,"click",this.doToggle),Object(Be["off"])(e,"mouseup",this.doClose),Object(Be["off"])(e,"mousedown",this.doShow),Object(Be["off"])(e,"focusin",this.doShow),Object(Be["off"])(e,"focusout",this.doClose),Object(Be["off"])(e,"mousedown",this.doShow),Object(Be["off"])(e,"mouseup",this.doClose),Object(Be["off"])(e,"mouseleave",this.handleMouseLeave),Object(Be["off"])(e,"mouseenter",this.handleMouseEnter),Object(Be["off"])(document,"click",this.handleDocumentClick)}},os=as,ss=s(os,is,rs,!1,null,null,null);ss.options.__file="packages/popover/src/main.vue";var ls=ss.exports,cs=function(e,t,n){var i=t.expression?t.value:t.arg,r=n.context.$refs[i];r&&(Array.isArray(r)?r[0].$refs.reference=e:r.$refs.reference=e)},us={bind:function(e,t,n){cs(e,t,n)},inserted:function(e,t,n){cs(e,t,n)}};Hi.a.directive("popover",us),ls.install=function(e){e.directive("popover",us),e.component(ls.name,ls)},ls.directive=us;var hs=ls,ds={name:"ElTooltip",mixins:[$.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(y["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new Hi.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=F()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var i=n.data=n.data||{};return i.staticClass=this.addTooltipClass(i.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(Be["on"])(this.referenceElm,"mouseenter",this.show),Object(Be["on"])(this.referenceElm,"mouseleave",this.hide),Object(Be["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(Be["on"])(this.referenceElm,"blur",this.handleBlur),Object(Be["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(Be["addClass"])(this.referenceElm,"focusing"):Object(Be["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n<e.length;n++)e[n]&&e[n].tag&&(t=e[n]);return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(Be["off"])(e,"mouseenter",this.show),Object(Be["off"])(e,"mouseleave",this.hide),Object(Be["off"])(e,"focus",this.handleFocus),Object(Be["off"])(e,"blur",this.handleBlur),Object(Be["off"])(e,"click",this.removeFocusing))},install:function(e){e.component(ds.name,ds)}},ps=ds,fs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"msgbox-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-message-box__wrapper",attrs:{tabindex:"-1",role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{staticClass:"el-message-box",class:[e.customClass,e.center&&"el-message-box--center"]},[null!==e.title?n("div",{staticClass:"el-message-box__header"},[n("div",{staticClass:"el-message-box__title"},[e.icon&&e.center?n("div",{class:["el-message-box__status",e.icon]}):e._e(),n("span",[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-message-box__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:function(t){e.handleAction(e.distinguishCancelAndClose?"close":"cancel")},keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction(e.distinguishCancelAndClose?"close":"cancel")}}},[n("i",{staticClass:"el-message-box__close el-icon-close"})]):e._e()]):e._e(),n("div",{staticClass:"el-message-box__content"},[n("div",{staticClass:"el-message-box__container"},[e.icon&&!e.center&&""!==e.message?n("div",{class:["el-message-box__status",e.icon]}):e._e(),""!==e.message?n("div",{staticClass:"el-message-box__message"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2):e._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showInput,expression:"showInput"}],staticClass:"el-message-box__input"},[n("el-input",{ref:"input",attrs:{type:e.inputType,placeholder:e.inputPlaceholder},nativeOn:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputEnter(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),n("div",{staticClass:"el-message-box__errormsg",style:{visibility:e.editorErrorMessage?"visible":"hidden"}},[e._v(e._s(e.editorErrorMessage))])],1)]),n("div",{staticClass:"el-message-box__btns"},[e.showCancelButton?n("el-button",{class:[e.cancelButtonClasses],attrs:{loading:e.cancelButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("cancel")}},nativeOn:{click:function(t){e.handleAction("cancel")}}},[e._v("\n "+e._s(e.cancelButtonText||e.t("el.messagebox.cancel"))+"\n ")]):e._e(),n("el-button",{directives:[{name:"show",rawName:"v-show",value:e.showConfirmButton,expression:"showConfirmButton"}],ref:"confirm",class:[e.confirmButtonClasses],attrs:{loading:e.confirmButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("confirm")}},nativeOn:{click:function(t){e.handleAction("confirm")}}},[e._v("\n "+e._s(e.confirmButtonText||e.t("el.messagebox.confirm"))+"\n ")])],1)])])])},ms=[];fs._withStripped=!0;var gs=n(12),vs=n.n(gs),ys=n(39),_s=n.n(ys),xs=void 0,bs={success:"success",info:"info",warning:"warning",error:"error"},ws={mixins:[M.a,v.a],props:{modal:{default:!0},lockScroll:{default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},closeOnHashChange:{default:!0},center:{default:!1,type:Boolean},roundButton:{default:!1,type:Boolean}},components:{ElInput:m.a,ElButton:oe.a},computed:{icon:function(){var e=this.type,t=this.iconClass;return t||(e&&bs[e]?"el-icon-"+bs[e]:"")},confirmButtonClasses:function(){return"el-button--primary "+this.confirmButtonClass},cancelButtonClasses:function(){return""+this.cancelButtonClass}},methods:{getSafeClose:function(){var e=this,t=this.uid;return function(){e.$nextTick((function(){t===e.uid&&e.doClose()}))}},doClose:function(){var e=this;this.visible&&(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),xs.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout((function(){e.action&&e.callback(e.action,e)})))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?"close":"cancel")},handleInputEnter:function(){if("textarea"!==this.inputType)return this.handleAction("confirm")},handleAction:function(e){("prompt"!==this.$type||"confirm"!==e||this.validate())&&(this.action=e,"function"===typeof this.beforeClose?(this.close=this.getSafeClose(),this.beforeClose(e,this,this.close)):this.doClose())},validate:function(){if("prompt"===this.$type){var e=this.inputPattern;if(e&&!e.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||Object(gs["t"])("el.messagebox.error"),Object(Be["addClass"])(this.getInputElement(),"invalid"),!1;var t=this.inputValidator;if("function"===typeof t){var n=t(this.inputValue);if(!1===n)return this.editorErrorMessage=this.inputErrorMessage||Object(gs["t"])("el.messagebox.error"),Object(Be["addClass"])(this.getInputElement(),"invalid"),!1;if("string"===typeof n)return this.editorErrorMessage=n,Object(Be["addClass"])(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(Be["removeClass"])(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var e=this.$el.querySelector(".el-message-box__btns .el-button"),t=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return e||t},getInputElement:function(){var e=this.$refs.input.$refs;return e.input||e.textarea},handleClose:function(){this.handleAction("close")}},watch:{inputValue:{immediate:!0,handler:function(e){var t=this;this.$nextTick((function(n){"prompt"===t.$type&&null!==e&&t.validate()}))}},visible:function(e){var t=this;e&&(this.uid++,"alert"!==this.$type&&"confirm"!==this.$type||this.$nextTick((function(){t.$refs.confirm.$el.focus()})),this.focusAfterClosed=document.activeElement,xs=new _s.a(this.$el,this.focusAfterClosed,this.getFirstFocus())),"prompt"===this.$type&&(e?setTimeout((function(){t.$refs.input&&t.$refs.input.$el&&t.getInputElement().focus()}),500):(this.editorErrorMessage="",Object(Be["removeClass"])(this.getInputElement(),"invalid")))}},mounted:function(){var e=this;this.$nextTick((function(){e.closeOnHashChange&&window.addEventListener("hashchange",e.close)}))},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener("hashchange",this.close),setTimeout((function(){xs.closeDialog()}))},data:function(){return{uid:1,title:void 0,message:"",type:"",iconClass:"",customClass:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,action:"",confirmButtonText:"",cancelButtonText:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",editorErrorMessage:null,callback:null,dangerouslyUseHTMLString:!1,focusAfterClosed:null,isOnComposition:!1,distinguishCancelAndClose:!1}}},Ss=ws,Ms=s(Ss,fs,ms,!1,null,null,null);Ms.options.__file="packages/message-box/src/main.vue";var Cs=Ms.exports,Ts=n(22),Es="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},As={title:null,message:"",type:"",iconClass:"",showInput:!1,showClose:!0,modalFade:!0,lockScroll:!0,closeOnClickModal:!0,closeOnPressEscape:!0,closeOnHashChange:!0,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:"",cancelButtonText:"",confirmButtonClass:"",cancelButtonClass:"",customClass:"",beforeClose:null,dangerouslyUseHTMLString:!1,center:!1,roundButton:!1,distinguishCancelAndClose:!1},ks=Hi.a.extend(Cs),Ds=void 0,Is=void 0,Ps=[],Os=function(e){if(Ds){var t=Ds.callback;"function"===typeof t&&(Is.showInput?t(Is.inputValue,e):t(e)),Ds.resolve&&("confirm"===e?Is.showInput?Ds.resolve({value:Is.inputValue,action:e}):Ds.resolve(e):!Ds.reject||"cancel"!==e&&"close"!==e||Ds.reject(e))}},Ls=function(){Is=new ks({el:document.createElement("div")}),Is.callback=Os},Rs=function e(){if(Is||Ls(),Is.action="",(!Is.visible||Is.closeTimer)&&Ps.length>0){Ds=Ps.shift();var t=Ds.options;for(var n in t)t.hasOwnProperty(n)&&(Is[n]=t[n]);void 0===t.callback&&(Is.callback=Os);var i=Is.callback;Is.callback=function(t,n){i(t,n),e()},Object(Ts["isVNode"])(Is.message)?(Is.$slots.default=[Is.message],Is.message=null):delete Is.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach((function(e){void 0===Is[e]&&(Is[e]=!0)})),document.body.appendChild(Is.$el),Hi.a.nextTick((function(){Is.visible=!0}))}},Ns=function e(t,n){if(!Hi.a.prototype.$isServer){if("string"===typeof t||Object(Ts["isVNode"])(t)?(t={message:t},"string"===typeof arguments[1]&&(t.title=arguments[1])):t.callback&&!n&&(n=t.callback),"undefined"!==typeof Promise)return new Promise((function(i,r){Ps.push({options:Ct()({},As,e.defaults,t),callback:n,resolve:i,reject:r}),Rs()}));Ps.push({options:Ct()({},As,e.defaults,t),callback:n}),Rs()}};Ns.setDefaults=function(e){Ns.defaults=e},Ns.alert=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Es(t))?(n=t,t=""):void 0===t&&(t=""),Ns(Ct()({title:t,message:e,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},Ns.confirm=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Es(t))?(n=t,t=""):void 0===t&&(t=""),Ns(Ct()({title:t,message:e,$type:"confirm",showCancelButton:!0},n))},Ns.prompt=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Es(t))?(n=t,t=""):void 0===t&&(t=""),Ns(Ct()({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},Ns.close=function(){Is.doClose(),Is.visible=!1,Ps=[],Ds=null};var Fs=Ns,Bs=Fs,zs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[e._t("default")],2)},Vs=[];zs._withStripped=!0;var Us={name:"ElBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var e=this.$el.querySelectorAll(".el-breadcrumb__item");e.length&&e[e.length-1].setAttribute("aria-current","page")}},Hs=Us,$s=s(Hs,zs,Vs,!1,null,null,null);$s.options.__file="packages/breadcrumb/src/breadcrumb.vue";var js=$s.exports;js.install=function(e){e.component(js.name,js)};var Ws=js,Gs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-breadcrumb__item"},[n("span",{ref:"link",class:["el-breadcrumb__inner",e.to?"is-link":""],attrs:{role:"link"}},[e._t("default")],2),e.separatorClass?n("i",{staticClass:"el-breadcrumb__separator",class:e.separatorClass}):n("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[e._v(e._s(e.separator))])])},qs=[];Gs._withStripped=!0;var Xs={name:"ElBreadcrumbItem",props:{to:{},replace:Boolean},data:function(){return{separator:"",separatorClass:""}},inject:["elBreadcrumb"],mounted:function(){var e=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var t=this.$refs.link;t.setAttribute("role","link"),t.addEventListener("click",(function(t){var n=e.to,i=e.$router;n&&i&&(e.replace?i.replace(n):i.push(n))}))}},Ys=Xs,Ks=s(Ys,Gs,qs,!1,null,null,null);Ks.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var Zs=Ks.exports;Zs.install=function(e){e.component(Zs.name,Zs)};var Js=Zs,Qs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{staticClass:"el-form",class:[e.labelPosition?"el-form--label-"+e.labelPosition:"",{"el-form--inline":e.inline}]},[e._t("default")],2)},el=[];Qs._withStripped=!0;var tl={name:"ElForm",componentName:"ElForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach((function(e){e.removeValidateEvents(),e.addValidateEvents()})),this.validateOnRuleChange&&this.validate((function(){}))}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var e=Math.max.apply(Math,this.potentialLabelWidthArr);return e?e+"px":""}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var e=this;this.$on("el.form.addField",(function(t){t&&e.fields.push(t)})),this.$on("el.form.removeField",(function(t){t.prop&&e.fields.splice(e.fields.indexOf(t),1)}))},methods:{resetFields:function(){this.model?this.fields.forEach((function(e){e.resetField()})):console.warn("[Element Warn][Form]model is required for resetFields to work.")},clearValidate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length?"string"===typeof e?this.fields.filter((function(t){return e===t.prop})):this.fields.filter((function(t){return e.indexOf(t.prop)>-1})):this.fields;t.forEach((function(e){e.clearValidate()}))},validate:function(e){var t=this;if(this.model){var n=void 0;"function"!==typeof e&&window.Promise&&(n=new window.Promise((function(t,n){e=function(e,i){e?t(e):n(i)}})));var i=!0,r=0;0===this.fields.length&&e&&e(!0);var a={};return this.fields.forEach((function(n){n.validate("",(function(n,o){n&&(i=!1),a=Ct()({},a,o),"function"===typeof e&&++r===t.fields.length&&e(i,a)}))})),n||void 0}console.warn("[Element Warn][Form]model is required for validate to work!")},validateField:function(e,t){e=[].concat(e);var n=this.fields.filter((function(t){return-1!==e.indexOf(t.prop)}));n.length?n.forEach((function(e){e.validate("",t)})):console.warn("[Element Warn]please pass correct props!")},getLabelWidthIndex:function(e){var t=this.potentialLabelWidthArr.indexOf(e);if(-1===t)throw new Error("[ElementForm]unpected width ",e);return t},registerLabelWidth:function(e,t){if(e&&t){var n=this.getLabelWidthIndex(t);this.potentialLabelWidthArr.splice(n,1,e)}else e&&this.potentialLabelWidthArr.push(e)},deregisterLabelWidth:function(e){var t=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(t,1)}}},nl=tl,il=s(nl,Qs,el,!1,null,null,null);il.options.__file="packages/form/src/form.vue";var rl=il.exports;rl.install=function(e){e.component(rl.name,rl)};var al=rl,ol=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-form-item",class:[{"el-form-item--feedback":e.elForm&&e.elForm.statusIcon,"is-error":"error"===e.validateState,"is-validating":"validating"===e.validateState,"is-success":"success"===e.validateState,"is-required":e.isRequired||e.required,"is-no-asterisk":e.elForm&&e.elForm.hideRequiredAsterisk},e.sizeClass?"el-form-item--"+e.sizeClass:""]},[n("label-wrap",{attrs:{"is-auto-width":e.labelStyle&&"auto"===e.labelStyle.width,"update-all":"auto"===e.form.labelWidth}},[e.label||e.$slots.label?n("label",{staticClass:"el-form-item__label",style:e.labelStyle,attrs:{for:e.labelFor}},[e._t("label",[e._v(e._s(e.label+e.form.labelSuffix))])],2):e._e()]),n("div",{staticClass:"el-form-item__content",style:e.contentStyle},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-top"}},["error"===e.validateState&&e.showMessage&&e.form.showMessage?e._t("error",[n("div",{staticClass:"el-form-item__error",class:{"el-form-item__error--inline":"boolean"===typeof e.inlineMessage?e.inlineMessage:e.elForm&&e.elForm.inlineMessage||!1}},[e._v("\n "+e._s(e.validateMessage)+"\n ")])],{error:e.validateMessage}):e._e()],2)],2)],1)},sl=[];ol._withStripped=!0;var ll,cl,ul=n(40),hl=n.n(ul),dl={props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["elForm","elFormItem"],render:function(){var e=arguments[0],t=this.$slots.default;if(!t)return null;if(this.isAutoWidth){var n=this.elForm.autoLabelWidth,i={};if(n&&"auto"!==n){var r=parseInt(n,10)-this.computedWidth;r&&(i.marginLeft=r+"px")}return e("div",{class:"el-form-item__label-wrap",style:i},[t])}return t[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var e=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(e))}return 0},updateLabelWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&("update"===e?this.computedWidth=this.getLabelWidth():"remove"===e&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(e,t){this.updateAll&&(this.elForm.registerLabelWidth(e,t),this.elFormItem.updateComputedLabelWidth(e))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}},pl=dl,fl=s(pl,ll,cl,!1,null,null,null);fl.options.__file="packages/form/src/label-wrap.vue";var ml=fl.exports,gl={name:"ElFormItem",componentName:"ElFormItem",mixins:[A.a],provide:function(){return{elFormItem:this}},inject:["elForm"],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String},components:{LabelWrap:ml},watch:{error:{immediate:!0,handler:function(e){this.validateMessage=e,this.validateState=e?"error":""}},validateStatus:function(e){this.validateState=e}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var e={};if("top"===this.form.labelPosition)return e;var t=this.labelWidth||this.form.labelWidth;return t&&(e.width=t),e},contentStyle:function(){var e={},t=this.label;if("top"===this.form.labelPosition||this.form.inline)return e;if(!t&&!this.labelWidth&&this.isNested)return e;var n=this.labelWidth||this.form.labelWidth;return"auto"===n?"auto"===this.labelWidth?e.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(e.marginLeft=this.elForm.autoLabelWidth):e.marginLeft=n,e},form:function(){var e=this.$parent,t=e.$options.componentName;while("ElForm"!==t)"ElFormItem"===t&&(this.isNested=!0),e=e.$parent,t=e.$options.componentName;return e},fieldValue:function(){var e=this.form.model;if(e&&this.prop){var t=this.prop;return-1!==t.indexOf(":")&&(t=t.replace(/:/,".")),Object(y["getPropByPath"])(e,t,!0).v}},isRequired:function(){var e=this.getRules(),t=!1;return e&&e.length&&e.every((function(e){return!e.required||(t=!0,!1)})),t},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}},methods:{validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y["noop"];this.validateDisabled=!1;var i=this.getFilteredRule(e);if((!i||0===i.length)&&void 0===this.required)return n(),!0;this.validateState="validating";var r={};i&&i.length>0&&i.forEach((function(e){delete e.trigger})),r[this.prop]=i;var a=new hl.a(r),o={};o[this.prop]=this.fieldValue,a.validate(o,{firstFields:!0},(function(e,i){t.validateState=e?"error":"success",t.validateMessage=e?e[0].message:"",n(t.validateMessage,i),t.elForm&&t.elForm.$emit("validate",t.prop,!e,t.validateMessage||null)}))},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var e=this;this.validateState="",this.validateMessage="";var t=this.form.model,n=this.fieldValue,i=this.prop;-1!==i.indexOf(":")&&(i=i.replace(/:/,"."));var r=Object(y["getPropByPath"])(t,i,!0);this.validateDisabled=!0,Array.isArray(n)?r.o[r.k]=[].concat(this.initialValue):r.o[r.k]=this.initialValue,this.$nextTick((function(){e.validateDisabled=!1})),this.broadcast("ElTimeSelect","fieldReset",this.initialValue)},getRules:function(){var e=this.form.rules,t=this.rules,n=void 0!==this.required?{required:!!this.required}:[],i=Object(y["getPropByPath"])(e,this.prop||"");return e=e?i.o[this.prop||""]||i.v:[],[].concat(t||e||[]).concat(n)},getFilteredRule:function(e){var t=this.getRules();return t.filter((function(t){return!t.trigger||""===e||(Array.isArray(t.trigger)?t.trigger.indexOf(e)>-1:t.trigger===e)})).map((function(e){return Ct()({},e)}))},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){this.validateDisabled?this.validateDisabled=!1:this.validate("change")},updateComputedLabelWidth:function(e){this.computedLabelWidth=e?e+"px":""},addValidateEvents:function(){var e=this.getRules();(e.length||void 0!==this.required)&&(this.$on("el.form.blur",this.onFieldBlur),this.$on("el.form.change",this.onFieldChange))},removeValidateEvents:function(){this.$off()}},mounted:function(){if(this.prop){this.dispatch("ElForm","el.form.addField",[this]);var e=this.fieldValue;Array.isArray(e)&&(e=[].concat(e)),Object.defineProperty(this,"initialValue",{value:e}),this.addValidateEvents()}},beforeDestroy:function(){this.dispatch("ElForm","el.form.removeField",[this])}},vl=gl,yl=s(vl,ol,sl,!1,null,null,null);yl.options.__file="packages/form/src/form-item.vue";var _l=yl.exports;_l.install=function(e){e.component(_l.name,_l)};var xl=_l,bl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tabs__active-bar",class:"is-"+e.rootTabs.tabPosition,style:e.barStyle})},wl=[];bl._withStripped=!0;var Sl={name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var e=this,t={},n=0,i=0,r=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",a="width"===r?"x":"y",o=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))};this.tabs.every((function(t,a){var s=Object(y["arrayFind"])(e.$parent.$refs.tabs||[],(function(e){return e.id.replace("tab-","")===t.paneName}));if(!s)return!1;if(t.active){i=s["client"+o(r)];var l=window.getComputedStyle(s);return"width"===r&&e.tabs.length>1&&(i-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),"width"===r&&(n+=parseFloat(l.paddingLeft)),!1}return n+=s["client"+o(r)],!0}));var s="translate"+o(a)+"("+n+"px)";return t[r]=i+"px",t.transform=s,t.msTransform=s,t.webkitTransform=s,t}}}},Ml=Sl,Cl=s(Ml,bl,wl,!1,null,null,null);Cl.options.__file="packages/tabs/src/tab-bar.vue";var Tl=Cl.exports;function El(){}var Al,kl,Dl=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))},Il={name:"TabNav",components:{TabBar:Tl},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:El},onTabRemove:{type:Function,default:El},type:String,stretch:Boolean},data:function(){return{scrollable:!1,navOffset:0,isFocus:!1,focusable:!0}},computed:{navStyle:function(){var e=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"X":"Y";return{transform:"translate"+e+"(-"+this.navOffset+"px)"}},sizeName:function(){return-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height"}},methods:{scrollPrev:function(){var e=this.$refs.navScroll["offset"+Dl(this.sizeName)],t=this.navOffset;if(t){var n=t>e?t-e:0;this.navOffset=n}},scrollNext:function(){var e=this.$refs.nav["offset"+Dl(this.sizeName)],t=this.$refs.navScroll["offset"+Dl(this.sizeName)],n=this.navOffset;if(!(e-n<=t)){var i=e-n>2*t?n+t:e-t;this.navOffset=i}},scrollToActiveTab:function(){if(this.scrollable){var e=this.$refs.nav,t=this.$el.querySelector(".is-active");if(t){var n=this.$refs.navScroll,i=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=i?e.offsetWidth-a.width:e.offsetHeight-a.height,s=this.navOffset,l=s;i?(r.left<a.left&&(l=s-(a.left-r.left)),r.right>a.right&&(l=s+r.right-a.right)):(r.top<a.top&&(l=s-(a.top-r.top)),r.bottom>a.bottom&&(l=s+(r.bottom-a.bottom))),l=Math.max(l,0),this.navOffset=Math.min(l,o)}}},update:function(){if(this.$refs.nav){var e=this.sizeName,t=this.$refs.nav["offset"+Dl(e)],n=this.$refs.navScroll["offset"+Dl(e)],i=this.navOffset;if(n<t){var r=this.navOffset;this.scrollable=this.scrollable||{},this.scrollable.prev=r,this.scrollable.next=r+n<t,t-r<n&&(this.navOffset=t-n)}else this.scrollable=!1,i>0&&(this.navOffset=0)}},changeTab:function(e){var t=e.keyCode,n=void 0,i=void 0,r=void 0;-1!==[37,38,39,40].indexOf(t)&&(r=e.currentTarget.querySelectorAll("[role=tab]"),i=Array.prototype.indexOf.call(r,e.target),n=37===t||38===t?0===i?r.length-1:i-1:i<r.length-1?i+1:0,r[n].focus(),r[n].click(),this.setFocus())},setFocus:function(){this.focusable&&(this.isFocus=!0)},removeFocus:function(){this.isFocus=!1},visibilityChangeHandler:function(){var e=this,t=document.visibilityState;"hidden"===t?this.focusable=!1:"visible"===t&&setTimeout((function(){e.focusable=!0}),50)},windowBlurHandler:function(){this.focusable=!1},windowFocusHandler:function(){var e=this;setTimeout((function(){e.focusable=!0}),50)}},updated:function(){this.update()},render:function(e){var t=this,n=this.type,i=this.panes,r=this.editable,a=this.stretch,o=this.onTabClick,s=this.onTabRemove,l=this.navStyle,c=this.scrollable,u=this.scrollNext,h=this.scrollPrev,d=this.changeTab,p=this.setFocus,f=this.removeFocus,m=c?[e("span",{class:["el-tabs__nav-prev",c.prev?"":"is-disabled"],on:{click:h}},[e("i",{class:"el-icon-arrow-left"})]),e("span",{class:["el-tabs__nav-next",c.next?"":"is-disabled"],on:{click:u}},[e("i",{class:"el-icon-arrow-right"})])]:null,g=this._l(i,(function(n,i){var a,l=n.name||n.index||i,c=n.isClosable||r;n.index=""+i;var u=c?e("span",{class:"el-icon-close",on:{click:function(e){s(n,e)}}}):null,h=n.$slots.label||n.label,d=n.active?0:-1;return e("div",{class:(a={"el-tabs__item":!0},a["is-"+t.rootTabs.tabPosition]=!0,a["is-active"]=n.active,a["is-disabled"]=n.disabled,a["is-closable"]=c,a["is-focus"]=t.isFocus,a),attrs:{id:"tab-"+l,"aria-controls":"pane-"+l,role:"tab","aria-selected":n.active,tabindex:d},key:"tab-"+l,ref:"tabs",refInFor:!0,on:{focus:function(){p()},blur:function(){f()},click:function(e){f(),o(n,l,e)},keydown:function(e){!c||46!==e.keyCode&&8!==e.keyCode||s(n,e)}}},[h,u])}));return e("div",{class:["el-tabs__nav-wrap",c?"is-scrollable":"","is-"+this.rootTabs.tabPosition]},[m,e("div",{class:["el-tabs__nav-scroll"],ref:"navScroll"},[e("div",{class:["el-tabs__nav","is-"+this.rootTabs.tabPosition,a&&-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"is-stretch":""],ref:"nav",style:l,attrs:{role:"tablist"},on:{keydown:d}},[n?null:e("tab-bar",{attrs:{tabs:i}}),g])])])},mounted:function(){var e=this;Object(ei["addResizeListener"])(this.$el,this.update),document.addEventListener("visibilitychange",this.visibilityChangeHandler),window.addEventListener("blur",this.windowBlurHandler),window.addEventListener("focus",this.windowFocusHandler),setTimeout((function(){e.scrollToActiveTab()}),0)},beforeDestroy:function(){this.$el&&this.update&&Object(ei["removeResizeListener"])(this.$el,this.update),document.removeEventListener("visibilitychange",this.visibilityChangeHandler),window.removeEventListener("blur",this.windowBlurHandler),window.removeEventListener("focus",this.windowFocusHandler)}},Pl=Il,Ol=s(Pl,Al,kl,!1,null,null,null);Ol.options.__file="packages/tabs/src/tab-nav.vue";var Ll,Rl,Nl=Ol.exports,Fl={name:"ElTabs",components:{TabNav:Nl},props:{type:String,activeName:String,closable:Boolean,addable:Boolean,value:{},editable:Boolean,tabPosition:{type:String,default:"top"},beforeLeave:Function,stretch:Boolean},provide:function(){return{rootTabs:this}},data:function(){return{currentName:this.value||this.activeName,panes:[]}},watch:{activeName:function(e){this.setCurrentName(e)},value:function(e){this.setCurrentName(e)},currentName:function(e){var t=this;this.$refs.nav&&this.$nextTick((function(){t.$refs.nav.$nextTick((function(e){t.$refs.nav.scrollToActiveTab()}))}))}},methods:{calcPaneInstances:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.$slots.default){var n=this.$slots.default.filter((function(e){return e.tag&&e.componentOptions&&"ElTabPane"===e.componentOptions.Ctor.options.name})),i=n.map((function(e){var t=e.componentInstance;return t})),r=!(i.length===this.panes.length&&i.every((function(t,n){return t===e.panes[n]})));(t||r)&&(this.panes=i)}else 0!==this.panes.length&&(this.panes=[])},handleTabClick:function(e,t,n){e.disabled||(this.setCurrentName(t),this.$emit("tab-click",e,n))},handleTabRemove:function(e,t){e.disabled||(t.stopPropagation(),this.$emit("edit",e.name,"remove"),this.$emit("tab-remove",e.name))},handleTabAdd:function(){this.$emit("edit",null,"add"),this.$emit("tab-add")},setCurrentName:function(e){var t=this,n=function(){t.currentName=e,t.$emit("input",e)};if(this.currentName!==e&&this.beforeLeave){var i=this.beforeLeave(e,this.currentName);i&&i.then?i.then((function(){n(),t.$refs.nav&&t.$refs.nav.removeFocus()}),(function(){})):!1!==i&&n()}else n()}},render:function(e){var t,n=this.type,i=this.handleTabClick,r=this.handleTabRemove,a=this.handleTabAdd,o=this.currentName,s=this.panes,l=this.editable,c=this.addable,u=this.tabPosition,h=this.stretch,d=l||c?e("span",{class:"el-tabs__new-tab",on:{click:a,keydown:function(e){13===e.keyCode&&a()}},attrs:{tabindex:"0"}},[e("i",{class:"el-icon-plus"})]):null,p={props:{currentName:o,onTabClick:i,onTabRemove:r,editable:l,type:n,panes:s,stretch:h},ref:"nav"},f=e("div",{class:["el-tabs__header","is-"+u]},[d,e("tab-nav",p)]),m=e("div",{class:"el-tabs__content"},[this.$slots.default]);return e("div",{class:(t={"el-tabs":!0,"el-tabs--card":"card"===n},t["el-tabs--"+u]=!0,t["el-tabs--border-card"]="border-card"===n,t)},["bottom"!==u?[f,m]:[m,f]])},created:function(){this.currentName||this.setCurrentName("0"),this.$on("tab-nav-update",this.calcPaneInstances.bind(null,!0))},mounted:function(){this.calcPaneInstances()},updated:function(){this.calcPaneInstances()}},Bl=Fl,zl=s(Bl,Ll,Rl,!1,null,null,null);zl.options.__file="packages/tabs/src/tabs.vue";var Vl=zl.exports;Vl.install=function(e){e.component(Vl.name,Vl)};var Ul=Vl,Hl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return!e.lazy||e.loaded||e.active?n("div",{directives:[{name:"show",rawName:"v-show",value:e.active,expression:"active"}],staticClass:"el-tab-pane",attrs:{role:"tabpanel","aria-hidden":!e.active,id:"pane-"+e.paneName,"aria-labelledby":"tab-"+e.paneName}},[e._t("default")],2):e._e()},$l=[];Hl._withStripped=!0;var jl={name:"ElTabPane",componentName:"ElTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var e=this.$parent.currentName===(this.name||this.index);return e&&(this.loaded=!0),e},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit("tab-nav-update")}},Wl=jl,Gl=s(Wl,Hl,$l,!1,null,null,null);Gl.options.__file="packages/tabs/src/tab-pane.vue";var ql=Gl.exports;ql.install=function(e){e.component(ql.name,ql)};var Xl,Yl,Kl=ql,Zl={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,i=this.hit,r=this.effect,a=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",r?"el-tag--"+r:"",i&&"is-hit"],o=e("span",{class:a,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?o:e("transition",{attrs:{name:"el-zoom-in-center"}},[o])}},Jl=Zl,Ql=s(Jl,Xl,Yl,!1,null,null,null);Ql.options.__file="packages/tag/src/tag.vue";var ec=Ql.exports;ec.install=function(e){e.component(ec.name,ec)};var tc=ec,nc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":e.highlightCurrent,"is-dragging":!!e.dragState.draggingNode,"is-drop-not-allow":!e.dragState.allowDrop,"is-drop-inner":"inner"===e.dragState.dropType},attrs:{role:"tree"}},[e._l(e.root.childNodes,(function(t){return n("el-tree-node",{key:e.getNodeKey(t),attrs:{node:t,props:e.props,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent},on:{"node-expand":e.handleNodeExpand}})})),e.isEmpty?n("div",{staticClass:"el-tree__empty-block"},[n("span",{staticClass:"el-tree__empty-text"},[e._v(e._s(e.emptyText))])]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)},ic=[];nc._withStripped=!0;var rc="$treeNodeId",ac=function(e,t){t&&!t[rc]&&Object.defineProperty(t,rc,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},oc=function(e,t){return e?t[e]:t[rc]},sc=function(e,t){var n=e;while(n&&"BODY"!==n.tagName){if(n.__vue__&&n.__vue__.$options.name===t)return n.__vue__;n=n.parentNode}return null},lc=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function cc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var uc=function(e){for(var t=!0,n=!0,i=!0,r=0,a=e.length;r<a;r++){var o=e[r];(!0!==o.checked||o.indeterminate)&&(t=!1,o.disabled||(i=!1)),(!1!==o.checked||o.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:i,half:!t&&!n}},hc=function e(t){if(0!==t.childNodes.length){var n=uc(t.childNodes),i=n.all,r=n.none,a=n.half;i?(t.checked=!0,t.indeterminate=!1):a?(t.checked=!1,t.indeterminate=!0):r&&(t.checked=!1,t.indeterminate=!1);var o=t.parent;o&&0!==o.level&&(t.store.checkStrictly||e(o))}},dc=function(e,t){var n=e.store.props,i=e.data||{},r=n[t];if("function"===typeof r)return r(i,e);if("string"===typeof r)return i[r];if("undefined"===typeof r){var a=i[t];return void 0===a?"":a}},pc=0,fc=function(){function e(t){for(var n in cc(this,e),this.id=pc++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,t)t.hasOwnProperty(n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1);var i=this.store;if(!i)throw new Error("[Node]store is required!");i.registerNode(this);var r=i.props;if(r&&"undefined"!==typeof r.isLeaf){var a=dc(this,"isLeaf");"boolean"===typeof a&&(this.isLeafByUser=a)}if(!0!==i.lazy&&this.data?(this.setData(this.data),i.defaultExpandAll&&(this.expanded=!0)):this.level>0&&i.lazy&&i.defaultExpandAll&&this.expand(),Array.isArray(this.data)||ac(this,this.data),this.data){var o=i.defaultExpandedKeys,s=i.key;s&&o&&-1!==o.indexOf(this.key)&&this.expand(null,i.autoExpandParent),s&&void 0!==i.currentNodeKey&&this.key===i.currentNodeKey&&(i.currentNode=this,i.currentNode.isCurrent=!0),i.lazy&&i._initDefaultCheckedNode(this),this.updateLeafState()}}return e.prototype.setData=function(e){Array.isArray(e)||ac(this,e),this.data=e,this.childNodes=[];var t=void 0;t=0===this.level&&this.data instanceof Array?this.data:dc(this,"children")||[];for(var n=0,i=t.length;n<i;n++)this.insertChild({data:t[n]})},e.prototype.contains=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function n(i){for(var r=i.childNodes||[],a=!1,o=0,s=r.length;o<s;o++){var l=r[o];if(l===e||t&&n(l)){a=!0;break}}return a};return n(this)},e.prototype.remove=function(){var e=this.parent;e&&e.removeChild(this)},e.prototype.insertChild=function(t,n,i){if(!t)throw new Error("insertChild error: child is required.");if(!(t instanceof e)){if(!i){var r=this.getChildren(!0)||[];-1===r.indexOf(t.data)&&("undefined"===typeof n||n<0?r.push(t.data):r.splice(n,0,t.data))}Ct()(t,{parent:this,store:this.store}),t=new e(t)}t.level=this.level+1,"undefined"===typeof n||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()},e.prototype.insertBefore=function(e,t){var n=void 0;t&&(n=this.childNodes.indexOf(t)),this.insertChild(e,n)},e.prototype.insertAfter=function(e,t){var n=void 0;t&&(n=this.childNodes.indexOf(t),-1!==n&&(n+=1)),this.insertChild(e,n)},e.prototype.removeChild=function(e){var t=this.getChildren()||[],n=t.indexOf(e.data);n>-1&&t.splice(n,1);var i=this.childNodes.indexOf(e);i>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(i,1)),this.updateLeafState()},e.prototype.removeChildByData=function(e){for(var t=null,n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===e){t=this.childNodes[n];break}t&&this.removeChild(t)},e.prototype.expand=function(e,t){var n=this,i=function(){if(t){var i=n.parent;while(i.level>0)i.expanded=!0,i=i.parent}n.expanded=!0,e&&e()};this.shouldLoadData()?this.loadData((function(e){e instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||hc(n),i())})):i()},e.prototype.doCreateChildren=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){t.insertChild(Ct()({data:e},n),void 0,!0)}))},e.prototype.collapse=function(){this.expanded=!1},e.prototype.shouldLoadData=function(){return!0===this.store.lazy&&this.store.load&&!this.loaded},e.prototype.updateLeafState=function(){if(!0!==this.store.lazy||!0===this.loaded||"undefined"===typeof this.isLeafByUser){var e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}else this.isLeaf=this.isLeafByUser},e.prototype.setChecked=function(e,t,n,i){var r=this;if(this.indeterminate="half"===e,this.checked=!0===e,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var a=uc(this.childNodes),o=a.all,s=a.allWithoutDisable;this.isLeaf||o||!s||(this.checked=!1,e=!1);var l=function(){if(t){for(var n=r.childNodes,a=0,o=n.length;a<o;a++){var s=n[a];i=i||!1!==e;var l=s.disabled?s.checked:i;s.setChecked(l,t,!0,i)}var c=uc(n),u=c.half,h=c.all;h||(r.checked=h,r.indeterminate=u)}};if(this.shouldLoadData())return void this.loadData((function(){l(),hc(r)}),{checked:!1!==e});l()}var c=this.parent;c&&0!==c.level&&(n||hc(c))}},e.prototype.getChildren=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var t=this.data;if(!t)return null;var n=this.store.props,i="children";return n&&(i=n.children||"children"),void 0===t[i]&&(t[i]=null),e&&!t[i]&&(t[i]=[]),t[i]},e.prototype.updateChildren=function(){var e=this,t=this.getChildren()||[],n=this.childNodes.map((function(e){return e.data})),i={},r=[];t.forEach((function(e,t){var a=e[rc],o=!!a&&Object(y["arrayFindIndex"])(n,(function(e){return e[rc]===a}))>=0;o?i[a]={index:t,data:e}:r.push({index:t,data:e})})),this.store.lazy||n.forEach((function(t){i[t[rc]]||e.removeChildByData(t)})),r.forEach((function(t){var n=t.index,i=t.data;e.insertChild({data:i},n)})),this.updateLeafState()},e.prototype.loadData=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(n).length)e&&e.call(this);else{this.loading=!0;var i=function(i){t.loaded=!0,t.loading=!1,t.childNodes=[],t.doCreateChildren(i,n),t.updateLeafState(),e&&e.call(t,i)};this.store.load(this,i)}},lc(e,[{key:"label",get:function(){return dc(this,"label")}},{key:"key",get:function(){var e=this.store.key;return this.data?this.data[e]:null}},{key:"disabled",get:function(){return dc(this,"disabled")}},{key:"nextSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}},{key:"previousSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}}]),e}(),mc=fc,gc="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function vc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var yc=function(){function e(t){var n=this;for(var i in vc(this,e),this.currentNode=null,this.currentNodeKey=null,t)t.hasOwnProperty(i)&&(this[i]=t[i]);if(this.nodesMap={},this.root=new mc({data:this.data,store:this}),this.lazy&&this.load){var r=this.load;r(this.root,(function(e){n.root.doCreateChildren(e),n._initDefaultCheckedNodes()}))}else this._initDefaultCheckedNodes()}return e.prototype.filter=function(e){var t=this.filterNodeMethod,n=this.lazy,i=function i(r){var a=r.root?r.root.childNodes:r.childNodes;if(a.forEach((function(n){n.visible=t.call(n,e,n.data,n),i(n)})),!r.visible&&a.length){var o=!0;o=!a.some((function(e){return e.visible})),r.root?r.root.visible=!1===o:r.visible=!1===o}e&&(!r.visible||r.isLeaf||n||r.expand())};i(this)},e.prototype.setData=function(e){var t=e!==this.root.data;t?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()},e.prototype.getNode=function(e){if(e instanceof mc)return e;var t="object"!==("undefined"===typeof e?"undefined":gc(e))?e:oc(this.key,e);return this.nodesMap[t]||null},e.prototype.insertBefore=function(e,t){var n=this.getNode(t);n.parent.insertBefore({data:e},n)},e.prototype.insertAfter=function(e,t){var n=this.getNode(t);n.parent.insertAfter({data:e},n)},e.prototype.remove=function(e){var t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))},e.prototype.append=function(e,t){var n=t?this.getNode(t):this.root;n&&n.insertChild({data:e})},e.prototype._initDefaultCheckedNodes=function(){var e=this,t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach((function(t){var i=n[t];i&&i.setChecked(!0,!e.checkStrictly)}))},e.prototype._initDefaultCheckedNode=function(e){var t=this.defaultCheckedKeys||[];-1!==t.indexOf(e.key)&&e.setChecked(!0,!this.checkStrictly)},e.prototype.setDefaultCheckedKey=function(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())},e.prototype.registerNode=function(e){var t=this.key;if(t&&e&&e.data){var n=e.key;void 0!==n&&(this.nodesMap[e.key]=e)}},e.prototype.deregisterNode=function(e){var t=this,n=this.key;n&&e&&e.data&&(e.childNodes.forEach((function(e){t.deregisterNode(e)})),delete this.nodesMap[e.key])},e.prototype.getCheckedNodes=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],i=function i(r){var a=r.root?r.root.childNodes:r.childNodes;a.forEach((function(r){(r.checked||t&&r.indeterminate)&&(!e||e&&r.isLeaf)&&n.push(r.data),i(r)}))};return i(this),n},e.prototype.getCheckedKeys=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getCheckedNodes(t).map((function(t){return(t||{})[e.key]}))},e.prototype.getHalfCheckedNodes=function(){var e=[],t=function t(n){var i=n.root?n.root.childNodes:n.childNodes;i.forEach((function(n){n.indeterminate&&e.push(n.data),t(n)}))};return t(this),e},e.prototype.getHalfCheckedKeys=function(){var e=this;return this.getHalfCheckedNodes().map((function(t){return(t||{})[e.key]}))},e.prototype._getAllNodes=function(){var e=[],t=this.nodesMap;for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e},e.prototype.updateChildren=function(e,t){var n=this.nodesMap[e];if(n){for(var i=n.childNodes,r=i.length-1;r>=0;r--){var a=i[r];this.remove(a.data)}for(var o=0,s=t.length;o<s;o++){var l=t[o];this.append(l,n.data)}}},e.prototype._setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=this._getAllNodes().sort((function(e,t){return t.level-e.level})),r=Object.create(null),a=Object.keys(n);i.forEach((function(e){return e.setChecked(!1,!1)}));for(var o=0,s=i.length;o<s;o++){var l=i[o],c=l.data[e].toString(),u=a.indexOf(c)>-1;if(u){var h=l.parent;while(h&&h.level>0)r[h.data[e]]=!0,h=h.parent;l.isLeaf||this.checkStrictly?l.setChecked(!0,!1):(l.setChecked(!0,!0),t&&function(){l.setChecked(!1,!1);var e=function e(t){var n=t.childNodes;n.forEach((function(t){t.isLeaf||t.setChecked(!1,!1),e(t)}))};e(l)}())}else l.checked&&!r[c]&&l.setChecked(!1,!1)}},e.prototype.setCheckedNodes=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,i={};e.forEach((function(e){i[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,i)},e.prototype.setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=e;var n=this.key,i={};e.forEach((function(e){i[e]=!0})),this._setCheckedKeys(n,t,i)},e.prototype.setDefaultExpandedKeys=function(e){var t=this;e=e||[],this.defaultExpandedKeys=e,e.forEach((function(e){var n=t.getNode(e);n&&n.expand(null,t.autoExpandParent)}))},e.prototype.setChecked=function(e,t,n){var i=this.getNode(e);i&&i.setChecked(!!t,n)},e.prototype.getCurrentNode=function(){return this.currentNode},e.prototype.setCurrentNode=function(e){var t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0},e.prototype.setUserCurrentNode=function(e){var t=e[this.key],n=this.nodesMap[t];this.setCurrentNode(n)},e.prototype.setCurrentNodeKey=function(e){if(null===e||void 0===e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var t=this.getNode(e);t&&this.setCurrentNode(t)},e}(),_c=yc,xc=function(){var e=this,t=this,n=t.$createElement,i=t._self._c||n;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":t.expanded,"is-current":t.node.isCurrent,"is-hidden":!t.node.visible,"is-focusable":!t.node.disabled,"is-checked":!t.node.disabled&&t.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.draggable},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)},contextmenu:function(t){return e.handleContextMenu(t)},dragstart:function(e){return e.stopPropagation(),t.handleDragStart(e)},dragover:function(e){return e.stopPropagation(),t.handleDragOver(e)},dragend:function(e){return e.stopPropagation(),t.handleDragEnd(e)},drop:function(e){return e.stopPropagation(),t.handleDrop(e)}}},[i("div",{staticClass:"el-tree-node__content",style:{"padding-left":(t.node.level-1)*t.tree.indent+"px"}},[i("span",{class:[{"is-leaf":t.node.isLeaf,expanded:!t.node.isLeaf&&t.expanded},"el-tree-node__expand-icon",t.tree.iconClass?t.tree.iconClass:"el-icon-caret-right"],on:{click:function(e){return e.stopPropagation(),t.handleExpandIconClick(e)}}}),t.showCheckbox?i("el-checkbox",{attrs:{indeterminate:t.node.indeterminate,disabled:!!t.node.disabled},on:{change:t.handleCheckChange},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:t.node.checked,callback:function(e){t.$set(t.node,"checked",e)},expression:"node.checked"}}):t._e(),t.node.loading?i("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):t._e(),i("node-content",{attrs:{node:t.node}})],1),i("el-collapse-transition",[!t.renderAfterExpand||t.childNodeRendered?i("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":t.expanded}},t._l(t.node.childNodes,(function(e){return i("el-tree-node",{key:t.getNodeKey(e),attrs:{"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:e},on:{"node-expand":t.handleChildNodeExpand}})})),1):t._e()])],1)},bc=[];xc._withStripped=!0;var wc={name:"ElTreeNode",componentName:"ElTreeNode",mixins:[A.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:qe.a,ElCheckbox:Li.a,NodeContent:{props:{node:{required:!0}},render:function(e){var t=this.$parent,n=t.tree,i=this.node,r=i.data,a=i.store;return t.renderContent?t.renderContent.call(t._renderProxy,e,{_self:n.$vnode.context,node:i,data:r,store:a}):n.$scopedSlots.default?n.$scopedSlots.default({node:i,data:r}):e("span",{class:"el-tree-node__label"},[i.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(e){this.handleSelectChange(this.node.checked,e)},"node.checked":function(e){this.handleSelectChange(e,this.node.indeterminate)},"node.expanded":function(e){var t=this;this.$nextTick((function(){return t.expanded=e})),e&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(e){return oc(this.tree.nodeKey,e.data)},handleSelectChange:function(e,t){this.oldChecked!==e&&this.oldIndeterminate!==t&&this.tree.$emit("check-change",this.node.data,e,t),this.oldChecked=e,this.indeterminate=t},handleClick:function(){var e=this.tree.store;e.setCurrentNode(this.node),this.tree.$emit("current-change",e.currentNode?e.currentNode.data:null,e.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(e){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(e.stopPropagation(),e.preventDefault()),this.tree.$emit("node-contextmenu",e,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(e,t){var n=this;this.node.setChecked(t.target.checked,!this.tree.checkStrictly),this.$nextTick((function(){var e=n.tree.store;n.tree.$emit("check",n.node.data,{checkedNodes:e.getCheckedNodes(),checkedKeys:e.getCheckedKeys(),halfCheckedNodes:e.getHalfCheckedNodes(),halfCheckedKeys:e.getHalfCheckedKeys()})}))},handleChildNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.tree.$emit("node-expand",e,t,n)},handleDragStart:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-start",e,this)},handleDragOver:function(e){this.tree.draggable&&(this.tree.$emit("tree-node-drag-over",e,this),e.preventDefault())},handleDrop:function(e){e.preventDefault()},handleDragEnd:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-end",e,this)}},created:function(){var e=this,t=this.$parent;t.isTree?this.tree=t:this.tree=t.tree;var n=this.tree;n||console.warn("Can not find node's tree.");var i=n.props||{},r=i["children"]||"children";this.$watch("node.data."+r,(function(){e.node.updateChildren()})),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",(function(t){e.node!==t&&e.node.collapse()}))}},Sc=wc,Mc=s(Sc,xc,bc,!1,null,null,null);Mc.options.__file="packages/tree/src/tree-node.vue";var Cc=Mc.exports,Tc={name:"ElTree",mixins:[A.a],components:{ElTreeNode:Cc},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(gs["t"])("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(e){this.data=e},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var e=this.root.childNodes;return!e||0===e.length||e.every((function(e){var t=e.visible;return!t}))}},watch:{defaultCheckedKeys:function(e){this.store.setDefaultCheckedKey(e)},defaultExpandedKeys:function(e){this.store.defaultExpandedKeys=e,this.store.setDefaultExpandedKeys(e)},data:function(e){this.store.setData(e)},checkboxItems:function(e){Array.prototype.forEach.call(e,(function(e){e.setAttribute("tabindex",-1)}))},checkStrictly:function(e){this.store.checkStrictly=e}},methods:{filter:function(e){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(e)},getNodeKey:function(e){return oc(this.nodeKey,e.data)},getNodePath:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var t=this.store.getNode(e);if(!t)return[];var n=[t.data],i=t.parent;while(i&&i!==this.root)n.push(i.data),i=i.parent;return n.reverse()},getCheckedNodes:function(e,t){return this.store.getCheckedNodes(e,t)},getCheckedKeys:function(e){return this.store.getCheckedKeys(e)},getCurrentNode:function(){var e=this.store.getCurrentNode();return e?e.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var e=this.getCurrentNode();return e?e[this.nodeKey]:null},setCheckedNodes:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(e,t)},setCheckedKeys:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(e,t)},setChecked:function(e,t,n){this.store.setChecked(e,t,n)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(e)},setCurrentKey:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(e)},getNode:function(e){return this.store.getNode(e)},remove:function(e){this.store.remove(e)},append:function(e,t){this.store.append(e,t)},insertBefore:function(e,t){this.store.insertBefore(e,t)},insertAfter:function(e,t){this.store.insertAfter(e,t)},handleNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.$emit("node-expand",e,t,n)},updateKeyChildren:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(e,t)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var e=this.$el.querySelectorAll(".is-checked[role=treeitem]");e.length?e[0].setAttribute("tabindex",0):this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(e){var t=e.target;if(-1!==t.className.indexOf("el-tree-node")){var n=e.keyCode;this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]");var i=this.treeItemArray.indexOf(t),r=void 0;[38,40].indexOf(n)>-1&&(e.preventDefault(),r=38===n?0!==i?i-1:0:i<this.treeItemArray.length-1?i+1:0,this.treeItemArray[r].focus()),[37,39].indexOf(n)>-1&&(e.preventDefault(),t.click());var a=t.querySelector('[type="checkbox"]');[13,32].indexOf(n)>-1&&a&&(e.preventDefault(),a.click())}}},created:function(){var e=this;this.isTree=!0,this.store=new _c({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var t=this.dragState;this.$on("tree-node-drag-start",(function(n,i){if("function"===typeof e.allowDrag&&!e.allowDrag(i.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(r){}t.draggingNode=i,e.$emit("node-drag-start",i.node,n)})),this.$on("tree-node-drag-over",(function(n,i){var r=sc(n.target,"ElTreeNode"),a=t.dropNode;a&&a!==r&&Object(Be["removeClass"])(a.$el,"is-drop-inner");var o=t.draggingNode;if(o&&r){var s=!0,l=!0,c=!0,u=!0;"function"===typeof e.allowDrop&&(s=e.allowDrop(o.node,r.node,"prev"),u=l=e.allowDrop(o.node,r.node,"inner"),c=e.allowDrop(o.node,r.node,"next")),n.dataTransfer.dropEffect=l?"move":"none",(s||l||c)&&a!==r&&(a&&e.$emit("node-drag-leave",o.node,a.node,n),e.$emit("node-drag-enter",o.node,r.node,n)),(s||l||c)&&(t.dropNode=r),r.node.nextSibling===o.node&&(c=!1),r.node.previousSibling===o.node&&(s=!1),r.node.contains(o.node,!1)&&(l=!1),(o.node===r.node||o.node.contains(r.node))&&(s=!1,l=!1,c=!1);var h=r.$el.getBoundingClientRect(),d=e.$el.getBoundingClientRect(),p=void 0,f=s?l?.25:c?.45:1:-1,m=c?l?.75:s?.55:0:1,g=-9999,v=n.clientY-h.top;p=v<h.height*f?"before":v>h.height*m?"after":l?"inner":"none";var y=r.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),_=e.$refs.dropIndicator;"before"===p?g=y.top-d.top:"after"===p&&(g=y.bottom-d.top),_.style.top=g+"px",_.style.left=y.right-d.left+"px","inner"===p?Object(Be["addClass"])(r.$el,"is-drop-inner"):Object(Be["removeClass"])(r.$el,"is-drop-inner"),t.showDropIndicator="before"===p||"after"===p,t.allowDrop=t.showDropIndicator||u,t.dropType=p,e.$emit("node-drag-over",o.node,r.node,n)}})),this.$on("tree-node-drag-end",(function(n){var i=t.draggingNode,r=t.dropType,a=t.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect="move",i&&a){var o={data:i.node.data};"none"!==r&&i.node.remove(),"before"===r?a.node.parent.insertBefore(o,a.node):"after"===r?a.node.parent.insertAfter(o,a.node):"inner"===r&&a.node.insertChild(o),"none"!==r&&e.store.registerNode(o),Object(Be["removeClass"])(a.$el,"is-drop-inner"),e.$emit("node-drag-end",i.node,a.node,r,n),"none"!==r&&e.$emit("node-drop",i.node,a.node,r,n)}i&&!a&&e.$emit("node-drag-end",i.node,null,r,n),t.showDropIndicator=!1,t.draggingNode=null,t.dropNode=null,t.allowDrop=!0}))},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},Ec=Tc,Ac=s(Ec,nc,ic,!1,null,null,null);Ac.options.__file="packages/tree/src/tree.vue";var kc=Ac.exports;kc.install=function(e){e.component(kc.name,kc)};var Dc=kc,Ic=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-alert-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-alert",class:[e.typeClass,e.center?"is-center":"","is-"+e.effect],attrs:{role:"alert"}},[e.showIcon?n("i",{staticClass:"el-alert__icon",class:[e.iconClass,e.isBigIcon]}):e._e(),n("div",{staticClass:"el-alert__content"},[e.title||e.$slots.title?n("span",{staticClass:"el-alert__title",class:[e.isBoldTitle]},[e._t("title",[e._v(e._s(e.title))])],2):e._e(),e.$slots.default&&!e.description?n("p",{staticClass:"el-alert__description"},[e._t("default")],2):e._e(),e.description&&!e.$slots.default?n("p",{staticClass:"el-alert__description"},[e._v(e._s(e.description))]):e._e(),n("i",{directives:[{name:"show",rawName:"v-show",value:e.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==e.closeText,"el-icon-close":""===e.closeText},on:{click:function(t){e.close()}}},[e._v(e._s(e.closeText))])])])])},Pc=[];Ic._withStripped=!0;var Oc={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},Lc={name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(e){return-1!==["light","dark"].indexOf(e)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return Oc[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},Rc=Lc,Nc=s(Rc,Ic,Pc,!1,null,null,null);Nc.options.__file="packages/alert/src/main.vue";var Fc=Nc.exports;Fc.install=function(e){e.component(Fc.name,Fc)};var Bc=Fc,zc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-notification-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-notification",e.customClass,e.horizontalClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:function(t){e.clearTimer()},mouseleave:function(t){e.startTimer()},click:e.click}},[e.type||e.iconClass?n("i",{staticClass:"el-notification__icon",class:[e.typeClass,e.iconClass]}):e._e(),n("div",{staticClass:"el-notification__group",class:{"is-with-icon":e.typeClass||e.iconClass}},[n("h2",{staticClass:"el-notification__title",domProps:{textContent:e._s(e.title)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.message,expression:"message"}],staticClass:"el-notification__content"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2),e.showClose?n("div",{staticClass:"el-notification__closeBtn el-icon-close",on:{click:function(t){return t.stopPropagation(),e.close(t)}}}):e._e()])])])},Vc=[];zc._withStripped=!0;var Uc={success:"success",info:"info",warning:"warning",error:"error"},Hc={data:function(){return{visible:!1,title:"",message:"",duration:4500,type:"",showClose:!0,customClass:"",iconClass:"",onClose:null,onClick:null,closed:!1,verticalOffset:0,timer:null,dangerouslyUseHTMLString:!1,position:"top-right"}},computed:{typeClass:function(){return this.type&&Uc[this.type]?"el-icon-"+Uc[this.type]:""},horizontalClass:function(){return this.position.indexOf("right")>-1?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},positionStyle:function(){var e;return e={},e[this.verticalProperty]=this.verticalOffset+"px",e}},watch:{closed:function(e){e&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){"function"===typeof this.onClick&&this.onClick()},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){46===e.keyCode||8===e.keyCode?this.clearTimer():27===e.keyCode?this.closed||this.close():this.startTimer()}},mounted:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration)),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},$c=Hc,jc=s($c,zc,Vc,!1,null,null,null);jc.options.__file="packages/notification/src/main.vue";var Wc=jc.exports,Gc=Hi.a.extend(Wc),qc=void 0,Xc=[],Yc=1,Kc=function e(t){if(!Hi.a.prototype.$isServer){t=Ct()({},t);var n=t.onClose,i="notification_"+Yc++,r=t.position||"top-right";t.onClose=function(){e.close(i,n)},qc=new Gc({data:t}),Object(Ts["isVNode"])(t.message)&&(qc.$slots.default=[t.message],t.message="REPLACED_BY_VNODE"),qc.id=i,qc.$mount(),document.body.appendChild(qc.$el),qc.visible=!0,qc.dom=qc.$el,qc.dom.style.zIndex=S["PopupManager"].nextZIndex();var a=t.offset||0;return Xc.filter((function(e){return e.position===r})).forEach((function(e){a+=e.$el.offsetHeight+16})),a+=16,qc.verticalOffset=a,Xc.push(qc),qc}};["success","warning","info","error"].forEach((function(e){Kc[e]=function(t){return("string"===typeof t||Object(Ts["isVNode"])(t))&&(t={message:t}),t.type=e,Kc(t)}})),Kc.close=function(e,t){var n=-1,i=Xc.length,r=Xc.filter((function(t,i){return t.id===e&&(n=i,!0)}))[0];if(r&&("function"===typeof t&&t(r),Xc.splice(n,1),!(i<=1)))for(var a=r.position,o=r.dom.offsetHeight,s=n;s<i-1;s++)Xc[s].position===a&&(Xc[s].dom.style[r.verticalProperty]=parseInt(Xc[s].dom.style[r.verticalProperty],10)-o-16+"px")},Kc.closeAll=function(){for(var e=Xc.length-1;e>=0;e--)Xc[e].close()};var Zc=Kc,Jc=Zc,Qc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-slider",class:{"is-vertical":e.vertical,"el-slider--with-input":e.showInput},attrs:{role:"slider","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":e.sliderDisabled}},[e.showInput&&!e.range?n("el-input-number",{ref:"input",staticClass:"el-slider__input",attrs:{step:e.step,disabled:e.sliderDisabled,controls:e.showInputControls,min:e.min,max:e.max,debounce:e.debounce,size:e.inputSize},on:{change:e.emitChange},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}):e._e(),n("div",{ref:"slider",staticClass:"el-slider__runway",class:{"show-input":e.showInput,disabled:e.sliderDisabled},style:e.runwayStyle,on:{click:e.onSliderClick}},[n("div",{staticClass:"el-slider__bar",style:e.barStyle}),n("slider-button",{ref:"button1",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}),e.range?n("slider-button",{ref:"button2",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.secondValue,callback:function(t){e.secondValue=t},expression:"secondValue"}}):e._e(),e._l(e.stops,(function(t,i){return e.showStops?n("div",{key:i,staticClass:"el-slider__stop",style:e.getStopStyle(t)}):e._e()})),e.markList.length>0?[n("div",e._l(e.markList,(function(t,i){return n("div",{key:i,staticClass:"el-slider__stop el-slider__marks-stop",style:e.getStopStyle(t.position)})})),0),n("div",{staticClass:"el-slider__marks"},e._l(e.markList,(function(t,i){return n("slider-marker",{key:i,style:e.getStopStyle(t.position),attrs:{mark:t.mark}})})),1)]:e._e()],2)],1)},eu=[];Qc._withStripped=!0;var tu=n(41),nu=n.n(tu),iu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"button",staticClass:"el-slider__button-wrapper",class:{hover:e.hovering,dragging:e.dragging},style:e.wrapperStyle,attrs:{tabindex:"0"},on:{mouseenter:e.handleMouseEnter,mouseleave:e.handleMouseLeave,mousedown:e.onButtonDown,touchstart:e.onButtonDown,focus:e.handleMouseEnter,blur:e.handleMouseLeave,keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.onLeftKeyDown(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button?null:e.onRightKeyDown(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.onLeftKeyDown(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.onRightKeyDown(t))}]}},[n("el-tooltip",{ref:"tooltip",attrs:{placement:"top","popper-class":e.tooltipClass,disabled:!e.showTooltip}},[n("span",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.formatValue))]),n("div",{staticClass:"el-slider__button",class:{hover:e.hovering,dragging:e.dragging}})])],1)},ru=[];iu._withStripped=!0;var au={name:"ElSliderButton",components:{ElTooltip:rt.a},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+"%"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(e){this.$parent.dragging=e}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(e){this.disabled||(e.preventDefault(),this.onDragStart(e),window.addEventListener("mousemove",this.onDragging),window.addEventListener("touchmove",this.onDragging),window.addEventListener("mouseup",this.onDragEnd),window.addEventListener("touchend",this.onDragEnd),window.addEventListener("contextmenu",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(e){this.dragging=!0,this.isClick=!0,"touchstart"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?this.startY=e.clientY:this.startX=e.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(e){if(this.dragging){this.isClick=!1,this.displayTooltip(),this.$parent.resetSize();var t=0;"touchmove"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?(this.currentY=e.clientY,t=(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=e.clientX,t=(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+t,this.setPosition(this.newPosition)}},onDragEnd:function(){var e=this;this.dragging&&(setTimeout((function(){e.dragging=!1,e.hideTooltip(),e.isClick||(e.setPosition(e.newPosition),e.$parent.emitChange())}),0),window.removeEventListener("mousemove",this.onDragging),window.removeEventListener("touchmove",this.onDragging),window.removeEventListener("mouseup",this.onDragEnd),window.removeEventListener("touchend",this.onDragEnd),window.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(e){var t=this;if(null!==e&&!isNaN(e)){e<0?e=0:e>100&&(e=100);var n=100/((this.max-this.min)/this.step),i=Math.round(e/n),r=i*n*(this.max-this.min)*.01+this.min;r=parseFloat(r.toFixed(this.precision)),this.$emit("input",r),this.$nextTick((function(){t.displayTooltip(),t.$refs.tooltip&&t.$refs.tooltip.updatePopper()})),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},ou=au,su=s(ou,iu,ru,!1,null,null,null);su.options.__file="packages/slider/src/button.vue";var lu=su.exports,cu={name:"ElMarker",props:{mark:{type:[String,Object]}},render:function(){var e=arguments[0],t="string"===typeof this.mark?this.mark:this.mark.label;return e("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[t])}},uu={name:"ElSlider",mixins:[A.a],inject:{elForm:{default:""}},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},value:{type:[Number,Array],default:0},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},inputSize:{type:String,default:"small"},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:Function,disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String},debounce:{type:Number,default:300},label:{type:String},tooltipClass:String,marks:Object},components:{ElInputNumber:nu.a,SliderButton:lu,SliderMarker:cu},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(e,t){this.dragging||Array.isArray(e)&&Array.isArray(t)&&e.every((function(e,n){return e===t[n]}))||this.setValues()},dragging:function(e){e||this.setValues()},firstValue:function(e){this.range?this.$emit("input",[this.minValue,this.maxValue]):this.$emit("input",e)},secondValue:function(){this.range&&this.$emit("input",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var e=this;return this.range?![this.minValue,this.maxValue].every((function(t,n){return t===e.oldValue[n]})):this.value!==this.oldValue},setValues:function(){if(this.min>this.max)console.error("[Element Error][Slider]min should not be greater than max.");else{var e=this.value;this.range&&Array.isArray(e)?e[1]<this.min?this.$emit("input",[this.min,this.min]):e[0]>this.max?this.$emit("input",[this.max,this.max]):e[0]<this.min?this.$emit("input",[this.min,e[1]]):e[1]>this.max?this.$emit("input",[e[0],this.max]):(this.firstValue=e[0],this.secondValue=e[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=e.slice())):this.range||"number"!==typeof e||isNaN(e)||(e<this.min?this.$emit("input",this.min):e>this.max?this.$emit("input",this.max):(this.firstValue=e,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",e),this.oldValue=e)))}},setPosition:function(e){var t=this.min+e*(this.max-this.min)/100;if(this.range){var n=void 0;n=Math.abs(this.minValue-t)<Math.abs(this.maxValue-t)?this.firstValue<this.secondValue?"button1":"button2":this.firstValue>this.secondValue?"button1":"button2",this.$refs[n].setPosition(e)}else this.$refs.button1.setPosition(e)},onSliderClick:function(e){if(!this.sliderDisabled&&!this.dragging){if(this.resetSize(),this.vertical){var t=this.$refs.slider.getBoundingClientRect().bottom;this.setPosition((t-e.clientY)/this.sliderSize*100)}else{var n=this.$refs.slider.getBoundingClientRect().left;this.setPosition((e.clientX-n)/this.sliderSize*100)}this.emitChange()}},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.range?[e.minValue,e.maxValue]:e.value)}))},getStopStyle:function(e){return this.vertical?{bottom:e+"%"}:{left:e+"%"}}},computed:{stops:function(){var e=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var t=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),i=[],r=1;r<t;r++)i.push(r*n);return this.range?i.filter((function(t){return t<100*(e.minValue-e.min)/(e.max-e.min)||t>100*(e.maxValue-e.min)/(e.max-e.min)})):i.filter((function(t){return t>100*(e.firstValue-e.min)/(e.max-e.min)}))},markList:function(){var e=this;if(!this.marks)return[];var t=Object.keys(this.marks);return t.map(parseFloat).sort((function(e,t){return e-t})).filter((function(t){return t<=e.max&&t>=e.min})).map((function(t){return{point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]}}))},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var e=[this.min,this.max,this.step].map((function(e){var t=(""+e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,e)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var e=void 0;this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],e=this.firstValue+"-"+this.secondValue):("number"!==typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,e=this.firstValue),this.$el.setAttribute("aria-valuetext",e),this.$el.setAttribute("aria-label",this.label?this.label:"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},hu=uu,du=s(hu,Qc,eu,!1,null,null,null);du.options.__file="packages/slider/src/main.vue";var pu=du.exports;pu.install=function(e){e.component(pu.name,pu)};var fu=pu,mu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},gu=[];mu._withStripped=!0;var vu={data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(e){this.text=e}}},yu=vu,_u=s(yu,mu,gu,!1,null,null,null);_u.options.__file="packages/loading/src/loading.vue";var xu=_u.exports,bu=n(32),wu=n.n(bu),Su=Hi.a.extend(xu),Mu={install:function(e){if(!e.prototype.$isServer){var t=function(t,i){i.value?e.nextTick((function(){i.modifiers.fullscreen?(t.originalPosition=Object(Be["getStyle"])(document.body,"position"),t.originalOverflow=Object(Be["getStyle"])(document.body,"overflow"),t.maskStyle.zIndex=S["PopupManager"].nextZIndex(),Object(Be["addClass"])(t.mask,"is-fullscreen"),n(document.body,t,i)):(Object(Be["removeClass"])(t.mask,"is-fullscreen"),i.modifiers.body?(t.originalPosition=Object(Be["getStyle"])(document.body,"position"),["top","left"].forEach((function(e){var n="top"===e?"scrollTop":"scrollLeft";t.maskStyle[e]=t.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]-parseInt(Object(Be["getStyle"])(document.body,"margin-"+e),10)+"px"})),["height","width"].forEach((function(e){t.maskStyle[e]=t.getBoundingClientRect()[e]+"px"})),n(document.body,t,i)):(t.originalPosition=Object(Be["getStyle"])(t,"position"),n(t,t,i)))})):(wu()(t.instance,(function(e){if(t.instance.hiding){t.domVisible=!1;var n=i.modifiers.fullscreen||i.modifiers.body?document.body:t;Object(Be["removeClass"])(n,"el-loading-parent--relative"),Object(Be["removeClass"])(n,"el-loading-parent--hidden"),t.instance.hiding=!1}}),300,!0),t.instance.visible=!1,t.instance.hiding=!0)},n=function(t,n,i){n.domVisible||"none"===Object(Be["getStyle"])(n,"display")||"hidden"===Object(Be["getStyle"])(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach((function(e){n.mask.style[e]=n.maskStyle[e]})),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(Be["addClass"])(t,"el-loading-parent--relative"),i.modifiers.fullscreen&&i.modifiers.lock&&Object(Be["addClass"])(t,"el-loading-parent--hidden"),n.domVisible=!0,t.appendChild(n.mask),e.nextTick((function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0})),n.domInserted=!0)};e.directive("loading",{bind:function(e,n,i){var r=e.getAttribute("element-loading-text"),a=e.getAttribute("element-loading-spinner"),o=e.getAttribute("element-loading-background"),s=e.getAttribute("element-loading-custom-class"),l=i.context,c=new Su({el:document.createElement("div"),data:{text:l&&l[r]||r,spinner:l&&l[a]||a,background:l&&l[o]||o,customClass:l&&l[s]||s,fullscreen:!!n.modifiers.fullscreen}});e.instance=c,e.mask=c.$el,e.maskStyle={},n.value&&t(e,n)},update:function(e,n){e.instance.setText(e.getAttribute("element-loading-text")),n.oldValue!==n.value&&t(e,n)},unbind:function(e,n){e.domInserted&&(e.mask&&e.mask.parentNode&&e.mask.parentNode.removeChild(e.mask),t(e,{value:!1,modifiers:n.modifiers})),e.instance&&e.instance.$destroy()}})}}},Cu=Mu,Tu=Hi.a.extend(xu),Eu={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Au=void 0;Tu.prototype.originalPosition="",Tu.prototype.originalOverflow="",Tu.prototype.close=function(){var e=this;this.fullscreen&&(Au=void 0),wu()(this,(function(t){var n=e.fullscreen||e.body?document.body:e.target;Object(Be["removeClass"])(n,"el-loading-parent--relative"),Object(Be["removeClass"])(n,"el-loading-parent--hidden"),e.$el&&e.$el.parentNode&&e.$el.parentNode.removeChild(e.$el),e.$destroy()}),300),this.visible=!1};var ku=function(e,t,n){var i={};e.fullscreen?(n.originalPosition=Object(Be["getStyle"])(document.body,"position"),n.originalOverflow=Object(Be["getStyle"])(document.body,"overflow"),i.zIndex=S["PopupManager"].nextZIndex()):e.body?(n.originalPosition=Object(Be["getStyle"])(document.body,"position"),["top","left"].forEach((function(t){var n="top"===t?"scrollTop":"scrollLeft";i[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]+"px"})),["height","width"].forEach((function(t){i[t]=e.target.getBoundingClientRect()[t]+"px"}))):n.originalPosition=Object(Be["getStyle"])(t,"position"),Object.keys(i).forEach((function(e){n.$el.style[e]=i[e]}))},Du=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Hi.a.prototype.$isServer){if(e=Ct()({},Eu,e),"string"===typeof e.target&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,e.target!==document.body?e.fullscreen=!1:e.body=!0,e.fullscreen&&Au)return Au;var t=e.body?document.body:e.target,n=new Tu({el:document.createElement("div"),data:e});return ku(e,t,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(Be["addClass"])(t,"el-loading-parent--relative"),e.fullscreen&&e.lock&&Object(Be["addClass"])(t,"el-loading-parent--hidden"),t.appendChild(n.$el),Hi.a.nextTick((function(){n.visible=!0})),e.fullscreen&&(Au=n),n}},Iu=Du,Pu={install:function(e){e.use(Cu),e.prototype.$loading=Iu},directive:Cu,service:Iu},Ou=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("i",{class:"el-icon-"+e.name})},Lu=[];Ou._withStripped=!0;var Ru={name:"ElIcon",props:{name:String}},Nu=Ru,Fu=s(Nu,Ou,Lu,!1,null,null,null);Fu.options.__file="packages/icon/src/icon.vue";var Bu=Fu.exports;Bu.install=function(e){e.component(Bu.name,Bu)};var zu=Bu,Vu={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:String},computed:{style:function(){var e={};return this.gutter&&(e.marginLeft="-"+this.gutter/2+"px",e.marginRight=e.marginLeft),e}},render:function(e){return e(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"",this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)},install:function(e){e.component(Vu.name,Vu)}},Uu=Vu,Hu="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$u={name:"ElCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){var e=this.$parent;while(e&&"ElRow"!==e.$options.componentName)e=e.$parent;return e?e.gutter:0}},render:function(e){var t=this,n=[],i={};return this.gutter&&(i.paddingLeft=this.gutter/2+"px",i.paddingRight=i.paddingLeft),["span","offset","pull","push"].forEach((function(e){(t[e]||0===t[e])&&n.push("span"!==e?"el-col-"+e+"-"+t[e]:"el-col-"+t[e])})),["xs","sm","md","lg","xl"].forEach((function(e){if("number"===typeof t[e])n.push("el-col-"+e+"-"+t[e]);else if("object"===Hu(t[e])){var i=t[e];Object.keys(i).forEach((function(t){n.push("span"!==t?"el-col-"+e+"-"+t+"-"+i[t]:"el-col-"+e+"-"+i[t])}))}})),e(this.tag,{class:["el-col",n],style:i},this.$slots.default)},install:function(e){e.component($u.name,$u)}},ju=$u,Wu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition-group",{class:["el-upload-list","el-upload-list--"+e.listType,{"is-disabled":e.disabled}],attrs:{tag:"ul",name:"el-list"}},e._l(e.files,(function(t){return n("li",{key:t.uid,class:["el-upload-list__item","is-"+t.status,e.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(n){if(!("button"in n)&&e._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"]))return null;!e.disabled&&e.$emit("remove",t)},focus:function(t){e.focusing=!0},blur:function(t){e.focusing=!1},click:function(t){e.focusing=!1}}},[e._t("default",["uploading"!==t.status&&["picture-card","picture"].indexOf(e.listType)>-1?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:t.url,alt:""}}):e._e(),n("a",{staticClass:"el-upload-list__item-name",on:{click:function(n){e.handleClick(t)}}},[n("i",{staticClass:"el-icon-document"}),e._v(e._s(t.name)+"\n ")]),n("label",{staticClass:"el-upload-list__item-status-label"},[n("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===e.listType,"el-icon-check":["picture-card","picture"].indexOf(e.listType)>-1}})]),e.disabled?e._e():n("i",{staticClass:"el-icon-close",on:{click:function(n){e.$emit("remove",t)}}}),e.disabled?e._e():n("i",{staticClass:"el-icon-close-tip"},[e._v(e._s(e.t("el.upload.deleteTip")))]),"uploading"===t.status?n("el-progress",{attrs:{type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:e.parsePercentage(t.percentage)}}):e._e(),"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-actions"},[e.handlePreview&&"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(n){e.handlePreview(t)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):e._e(),e.disabled?e._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(n){e.$emit("remove",t)}}},[n("i",{staticClass:"el-icon-delete"})])]):e._e()],{file:t})],2)})),0)},Gu=[];Wu._withStripped=!0;var qu=n(33),Xu=n.n(qu),Yu={name:"ElUploadList",mixins:[v.a],data:function(){return{focusing:!1}},components:{ElProgress:Xu.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(e){return parseInt(e,10)},handleClick:function(e){this.handlePreview&&this.handlePreview(e)}}},Ku=Yu,Zu=s(Ku,Wu,Gu,!1,null,null,null);Zu.options.__file="packages/upload/src/upload-list.vue";var Ju=Zu.exports,Qu=n(24),eh=n.n(Qu);function th(e,t,n){var i=void 0;i=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:"fail to post "+e+" "+n.status;var r=new Error(i);return r.status=n.status,r.method="post",r.url=e,r}function nh(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function ih(e){if("undefined"!==typeof XMLHttpRequest){var t=new XMLHttpRequest,n=e.action;t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var i=new FormData;e.data&&Object.keys(e.data).forEach((function(t){i.append(t,e.data[t])})),i.append(e.filename,e.file,e.file.name),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300)return e.onError(th(n,e,t));e.onSuccess(nh(t))},t.open("post",n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};for(var a in r)r.hasOwnProperty(a)&&null!==r[a]&&t.setRequestHeader(a,r[a]);return t.send(i),t}}var rh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-upload-dragger",class:{"is-dragover":e.dragover},on:{drop:function(t){return t.preventDefault(),e.onDrop(t)},dragover:function(t){return t.preventDefault(),e.onDragover(t)},dragleave:function(t){t.preventDefault(),e.dragover=!1}}},[e._t("default")],2)},ah=[];rh._withStripped=!0;var oh={name:"ElUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(e){if(!this.disabled&&this.uploader){var t=this.uploader.accept;this.dragover=!1,t?this.$emit("file",[].slice.call(e.dataTransfer.files).filter((function(e){var n=e.type,i=e.name,r=i.indexOf(".")>-1?"."+i.split(".").pop():"",a=n.replace(/\/.*$/,"");return t.split(",").map((function(e){return e.trim()})).filter((function(e){return e})).some((function(e){return/\..+$/.test(e)?r===e:/\/\*$/.test(e)?a===e.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(e)&&n===e}))}))):this.$emit("file",e.dataTransfer.files)}}}},sh=oh,lh=s(sh,rh,ah,!1,null,null,null);lh.options.__file="packages/upload/src/upload-dragger.vue";var ch,uh,hh=lh.exports,dh={inject:["uploader"],components:{UploadDragger:hh},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:ih},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(e){return-1!==e.indexOf("image")},handleChange:function(e){var t=e.target.files;t&&this.uploadFiles(t)},uploadFiles:function(e){var t=this;if(this.limit&&this.fileList.length+e.length>this.limit)this.onExceed&&this.onExceed(e,this.fileList);else{var n=Array.prototype.slice.call(e);this.multiple||(n=n.slice(0,1)),0!==n.length&&n.forEach((function(e){t.onStart(e),t.autoUpload&&t.upload(e)}))}},upload:function(e){var t=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(e);var n=this.beforeUpload(e);n&&n.then?n.then((function(n){var i=Object.prototype.toString.call(n);if("[object File]"===i||"[object Blob]"===i){for(var r in"[object Blob]"===i&&(n=new File([n],e.name,{type:e.type})),e)e.hasOwnProperty(r)&&(n[r]=e[r]);t.post(n)}else t.post(e)}),(function(){t.onRemove(null,e)})):!1!==n?this.post(e):this.onRemove(null,e)},abort:function(e){var t=this.reqs;if(e){var n=e;e.uid&&(n=e.uid),t[n]&&t[n].abort()}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort(),delete t[e]}))},post:function(e){var t=this,n=e.uid,i={headers:this.headers,withCredentials:this.withCredentials,file:e,data:this.data,filename:this.name,action:this.action,onProgress:function(n){t.onProgress(n,e)},onSuccess:function(i){t.onSuccess(i,e),delete t.reqs[n]},onError:function(i){t.onError(i,e),delete t.reqs[n]}},r=this.httpRequest(i);this.reqs[n]=r,r&&r.then&&r.then(i.onSuccess,i.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(e){e.target===e.currentTarget&&(13!==e.keyCode&&32!==e.keyCode||this.handleClick())}},render:function(e){var t=this.handleClick,n=this.drag,i=this.name,r=this.handleChange,a=this.multiple,o=this.accept,s=this.listType,l=this.uploadFiles,c=this.disabled,u=this.handleKeydown,h={class:{"el-upload":!0},on:{click:t,keydown:u}};return h.class["el-upload--"+s]=!0,e("div",eh()([h,{attrs:{tabindex:"0"}}]),[n?e("upload-dragger",{attrs:{disabled:c},on:{file:l}},[this.$slots.default]):this.$slots.default,e("input",{class:"el-upload__input",attrs:{type:"file",name:i,multiple:a,accept:o},ref:"input",on:{change:r}})])}},ph=dh,fh=s(ph,ch,uh,!1,null,null,null);fh.options.__file="packages/upload/src/upload.vue";var mh=fh.exports;function gh(){}var vh,yh,_h={name:"ElUpload",mixins:[T.a],components:{ElProgress:Xu.a,UploadList:Ju,Upload:mh},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:gh},onChange:{type:Function,default:gh},onPreview:{type:Function},onSuccess:{type:Function,default:gh},onProgress:{type:Function,default:gh},onError:{type:Function,default:gh},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:gh}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(e){"picture-card"!==e&&"picture"!==e||(this.uploadFiles=this.uploadFiles.map((function(e){if(!e.url&&e.raw)try{e.url=URL.createObjectURL(e.raw)}catch(t){console.error("[Element Error][Upload]",t)}return e})))},fileList:{immediate:!0,handler:function(e){var t=this;this.uploadFiles=e.map((function(e){return e.uid=e.uid||Date.now()+t.tempIndex++,e.status=e.status||"success",e}))}}},methods:{handleStart:function(e){e.uid=Date.now()+this.tempIndex++;var t={status:"ready",name:e.name,size:e.size,percentage:0,uid:e.uid,raw:e};if("picture-card"===this.listType||"picture"===this.listType)try{t.url=URL.createObjectURL(e)}catch(n){return void console.error("[Element Error][Upload]",n)}this.uploadFiles.push(t),this.onChange(t,this.uploadFiles)},handleProgress:function(e,t){var n=this.getFile(t);this.onProgress(e,n,this.uploadFiles),n.status="uploading",n.percentage=e.percent||0},handleSuccess:function(e,t){var n=this.getFile(t);n&&(n.status="success",n.response=e,this.onSuccess(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles))},handleError:function(e,t){var n=this.getFile(t),i=this.uploadFiles;n.status="fail",i.splice(i.indexOf(n),1),this.onError(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles)},handleRemove:function(e,t){var n=this;t&&(e=this.getFile(t));var i=function(){n.abort(e);var t=n.uploadFiles;t.splice(t.indexOf(e),1),n.onRemove(e,t)};if(this.beforeRemove){if("function"===typeof this.beforeRemove){var r=this.beforeRemove(e,this.uploadFiles);r&&r.then?r.then((function(){i()}),gh):!1!==r&&i()}}else i()},getFile:function(e){var t=this.uploadFiles,n=void 0;return t.every((function(t){return n=e.uid===t.uid?t:null,!n})),n},abort:function(e){this.$refs["upload-inner"].abort(e)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var e=this;this.uploadFiles.filter((function(e){return"ready"===e.status})).forEach((function(t){e.$refs["upload-inner"].upload(t.raw)}))},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach((function(e){e.url&&0===e.url.indexOf("blob:")&&URL.revokeObjectURL(e.url)}))},render:function(e){var t=this,n=void 0;this.showFileList&&(n=e(Ju,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(e){if(t.$scopedSlots.file)return t.$scopedSlots.file({file:e.file})}]));var i={props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"},r=this.$slots.trigger||this.$slots.default,a=e("upload",i,[r]);return e("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[a,this.$slots.default]:a,this.$slots.tip,"picture-card"!==this.listType?n:""])}},xh=_h,bh=s(xh,vh,yh,!1,null,null,null);bh.options.__file="packages/upload/src/index.vue";var wh=bh.exports;wh.install=function(e){e.component(wh.name,wh)};var Sh=wh,Mh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:"#e5e9f2","stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px"}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])},Ch=[];Mh._withStripped=!0;var Th={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){var e=-1*this.perimeter*(1-this.rate)/2;return e+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"===typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"===typeof this.color?this.color(e):"string"===typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort((function(e,t){return e.percentage-t.percentage})),n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map((function(e,n){return"string"===typeof e?{color:e,percentage:(n+1)*t}:e}))}}},Eh=Th,Ah=s(Eh,Mh,Ch,!1,null,null,null);Ah.options.__file="packages/progress/src/progress.vue";var kh=Ah.exports;kh.install=function(e){e.component(kh.name,kh)};var Dh=kh,Ih=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-spinner"},[n("svg",{staticClass:"el-spinner-inner",style:{width:e.radius/2+"px",height:e.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:e.strokeColor,"stroke-width":e.strokeWidth}})])])},Ph=[];Ih._withStripped=!0;var Oh={name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},Lh=Oh,Rh=s(Lh,Ih,Ph,!1,null,null,null);Rh.options.__file="packages/spinner/src/spinner.vue";var Nh=Rh.exports;Nh.install=function(e){e.component(Nh.name,Nh)};var Fh=Nh,Bh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-message",e.type&&!e.iconClass?"el-message--"+e.type:"",e.center?"is-center":"",e.showClose?"is-closable":"",e.customClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:e.clearTimer,mouseleave:e.startTimer}},[e.iconClass?n("i",{class:e.iconClass}):n("i",{class:e.typeClass}),e._t("default",[e.dangerouslyUseHTMLString?n("p",{staticClass:"el-message__content",domProps:{innerHTML:e._s(e.message)}}):n("p",{staticClass:"el-message__content"},[e._v(e._s(e.message))])]),e.showClose?n("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:e.close}}):e._e()],2)])},zh=[];Bh._withStripped=!0;var Vh={success:"success",info:"info",warning:"warning",error:"error"},Uh={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+Vh[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(e){e&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){27===e.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},Hh=Uh,$h=s(Hh,Bh,zh,!1,null,null,null);$h.options.__file="packages/message/src/main.vue";var jh=$h.exports,Wh=n(15),Gh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},qh=Hi.a.extend(jh),Xh=void 0,Yh=[],Kh=1,Zh=function e(t){if(!Hi.a.prototype.$isServer){t=t||{},"string"===typeof t&&(t={message:t});var n=t.onClose,i="message_"+Kh++;t.onClose=function(){e.close(i,n)},Xh=new qh({data:t}),Xh.id=i,Object(Ts["isVNode"])(Xh.message)&&(Xh.$slots.default=[Xh.message],Xh.message=null),Xh.$mount(),document.body.appendChild(Xh.$el);var r=t.offset||20;return Yh.forEach((function(e){r+=e.$el.offsetHeight+16})),Xh.verticalOffset=r,Xh.visible=!0,Xh.$el.style.zIndex=S["PopupManager"].nextZIndex(),Yh.push(Xh),Xh}};["success","warning","info","error"].forEach((function(e){Zh[e]=function(t){return Object(Wh["isObject"])(t)&&!Object(Ts["isVNode"])(t)?Zh(Gh({},t,{type:e})):Zh({type:e,message:t})}})),Zh.close=function(e,t){for(var n=Yh.length,i=-1,r=void 0,a=0;a<n;a++)if(e===Yh[a].id){r=Yh[a].$el.offsetHeight,i=a,"function"===typeof t&&t(Yh[a]),Yh.splice(a,1);break}if(!(n<=1||-1===i||i>Yh.length-1))for(var o=i;o<n-1;o++){var s=Yh[o].$el;s.style["top"]=parseInt(s.style["top"],10)-r-16+"px"}},Zh.closeAll=function(){for(var e=Yh.length-1;e>=0;e--)Yh[e].close()};var Jh=Zh,Qh=Jh,ed=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-badge"},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-center"}},[n("sup",{directives:[{name:"show",rawName:"v-show",value:!e.hidden&&(e.content||0===e.content||e.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:[e.type?"el-badge__content--"+e.type:null,{"is-fixed":e.$slots.default,"is-dot":e.isDot}],domProps:{textContent:e._s(e.content)}})])],2)},td=[];ed._withStripped=!0;var nd={name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(e){return["primary","success","warning","info","danger"].indexOf(e)>-1}}},computed:{content:function(){if(!this.isDot){var e=this.value,t=this.max;return"number"===typeof e&&"number"===typeof t&&t<e?t+"+":e}}}},id=nd,rd=s(id,ed,td,!1,null,null,null);rd.options.__file="packages/badge/src/main.vue";var ad=rd.exports;ad.install=function(e){e.component(ad.name,ad)};var od=ad,sd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-card",class:e.shadow?"is-"+e.shadow+"-shadow":"is-always-shadow"},[e.$slots.header||e.header?n("div",{staticClass:"el-card__header"},[e._t("header",[e._v(e._s(e.header))])],2):e._e(),n("div",{staticClass:"el-card__body",style:e.bodyStyle},[e._t("default")],2)])},ld=[];sd._withStripped=!0;var cd={name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},ud=cd,hd=s(ud,sd,ld,!1,null,null,null);hd.options.__file="packages/card/src/main.vue";var dd=hd.exports;dd.install=function(e){e.component(dd.name,dd)};var pd=dd,fd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-rate",attrs:{role:"slider","aria-valuenow":e.currentValue,"aria-valuetext":e.text,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0"},on:{keydown:e.handleKey}},[e._l(e.max,(function(t,i){return n("span",{key:i,staticClass:"el-rate__item",style:{cursor:e.rateDisabled?"auto":"pointer"},on:{mousemove:function(n){e.setCurrentValue(t,n)},mouseleave:e.resetCurrentValue,click:function(n){e.selectValue(t)}}},[n("i",{staticClass:"el-rate__icon",class:[e.classes[t-1],{hover:e.hoverIndex===t}],style:e.getIconStyle(t)},[e.showDecimalIcon(t)?n("i",{staticClass:"el-rate__decimal",class:e.decimalIconClass,style:e.decimalStyle}):e._e()])])})),e.showText||e.showScore?n("span",{staticClass:"el-rate__text",style:{color:e.textColor}},[e._v(e._s(e.text))]):e._e()],2)},md=[];fd._withStripped=!0;var gd={name:"ElRate",mixins:[T.a],inject:{elForm:{default:""}},data:function(){return{pointerAtLeftHalf:!0,currentValue:this.value,hoverIndex:-1}},props:{value:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:[Array,Object],default:function(){return["#F7BA2A","#F7BA2A","#F7BA2A"]}},voidColor:{type:String,default:"#C6D1DE"},disabledVoidColor:{type:String,default:"#EFF2F7"},iconClasses:{type:[Array,Object],default:function(){return["el-icon-star-on","el-icon-star-on","el-icon-star-on"]}},voidIconClass:{type:String,default:"el-icon-star-off"},disabledVoidIconClass:{type:String,default:"el-icon-star-on"},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:"#1f2d3d"},texts:{type:Array,default:function(){return["极差","失望","一般","满意","惊喜"]}},scoreTemplate:{type:String,default:"{value}"}},computed:{text:function(){var e="";return this.showScore?e=this.scoreTemplate.replace(/\{\s*value\s*\}/,this.rateDisabled?this.value:this.currentValue):this.showText&&(e=this.texts[Math.ceil(this.currentValue)-1]),e},decimalStyle:function(){var e="";return this.rateDisabled?e=this.valueDecimal+"%":this.allowHalf&&(e="50%"),{color:this.activeColor,width:e}},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)},classMap:function(){var e;return Array.isArray(this.iconClasses)?(e={},e[this.lowThreshold]=this.iconClasses[0],e[this.highThreshold]={value:this.iconClasses[1],excluded:!0},e[this.max]=this.iconClasses[2],e):this.iconClasses},decimalIconClass:function(){return this.getValueFromMap(this.value,this.classMap)},voidClass:function(){return this.rateDisabled?this.disabledVoidIconClass:this.voidIconClass},activeClass:function(){return this.getValueFromMap(this.currentValue,this.classMap)},colorMap:function(){var e;return Array.isArray(this.colors)?(e={},e[this.lowThreshold]=this.colors[0],e[this.highThreshold]={value:this.colors[1],excluded:!0},e[this.max]=this.colors[2],e):this.colors},activeColor:function(){return this.getValueFromMap(this.currentValue,this.colorMap)},classes:function(){var e=[],t=0,n=this.currentValue;for(this.allowHalf&&this.currentValue!==Math.floor(this.currentValue)&&n--;t<n;t++)e.push(this.activeClass);for(;t<this.max;t++)e.push(this.voidClass);return e},rateDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){this.currentValue=e,this.pointerAtLeftHalf=this.value!==Math.floor(this.value)}},methods:{getMigratingConfig:function(){return{props:{"text-template":"text-template is renamed to score-template."}}},getValueFromMap:function(e,t){var n=Object.keys(t).filter((function(n){var i=t[n],r=!!Object(Wh["isObject"])(i)&&i.excluded;return r?e<n:e<=n})).sort((function(e,t){return e-t})),i=t[n[0]];return Object(Wh["isObject"])(i)?i.value:i||""},showDecimalIcon:function(e){var t=this.rateDisabled&&this.valueDecimal>0&&e-1<this.value&&e>this.value,n=this.allowHalf&&this.pointerAtLeftHalf&&e-.5<=this.currentValue&&e>this.currentValue;return t||n},getIconStyle:function(e){var t=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:e<=this.currentValue?this.activeColor:t}},selectValue:function(e){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",e),this.$emit("change",e)))},handleKey:function(e){if(!this.rateDisabled){var t=this.currentValue,n=e.keyCode;38===n||39===n?(this.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):37!==n&&40!==n||(this.allowHalf?t-=.5:t-=1,e.stopPropagation(),e.preventDefault()),t=t<0?0:t,t=t>this.max?this.max:t,this.$emit("input",t),this.$emit("change",t)}},setCurrentValue:function(e,t){if(!this.rateDisabled){if(this.allowHalf){var n=t.target;Object(Be["hasClass"])(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(Be["hasClass"])(n,"el-rate__decimal")&&(n=n.parentNode),this.pointerAtLeftHalf=2*t.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?e-.5:e}else this.currentValue=e;this.hoverIndex=e}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},vd=gd,yd=s(vd,fd,md,!1,null,null,null);yd.options.__file="packages/rate/src/main.vue";var _d=yd.exports;_d.install=function(e){e.component(_d.name,_d)};var xd=_d,bd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-steps",class:[!e.simple&&"el-steps--"+e.direction,e.simple&&"el-steps--simple"]},[e._t("default")],2)},wd=[];bd._withStripped=!0;var Sd={name:"ElSteps",mixins:[T.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(e,t){this.$emit("change",e,t)},steps:function(e){e.forEach((function(e,t){e.index=t}))}}},Md=Sd,Cd=s(Md,bd,wd,!1,null,null,null);Cd.options.__file="packages/steps/src/steps.vue";var Td=Cd.exports;Td.install=function(e){e.component(Td.name,Td)};var Ed=Td,Ad=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-step",class:[!e.isSimple&&"is-"+e.$parent.direction,e.isSimple&&"is-simple",e.isLast&&!e.space&&!e.isCenter&&"is-flex",e.isCenter&&!e.isVertical&&!e.isSimple&&"is-center"],style:e.style},[n("div",{staticClass:"el-step__head",class:"is-"+e.currentStatus},[n("div",{staticClass:"el-step__line",style:e.isLast?"":{marginRight:e.$parent.stepOffset+"px"}},[n("i",{staticClass:"el-step__line-inner",style:e.lineStyle})]),n("div",{staticClass:"el-step__icon",class:"is-"+(e.icon?"icon":"text")},["success"!==e.currentStatus&&"error"!==e.currentStatus?e._t("icon",[e.icon?n("i",{staticClass:"el-step__icon-inner",class:[e.icon]}):e._e(),e.icon||e.isSimple?e._e():n("div",{staticClass:"el-step__icon-inner"},[e._v(e._s(e.index+1))])]):n("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===e.currentStatus?"check":"close")]})],2)]),n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+e.currentStatus]},[e._t("title",[e._v(e._s(e.title))])],2),e.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+e.currentStatus]},[e._t("description",[e._v(e._s(e.description))])],2)])])},kd=[];Ad._withStripped=!0;var Dd={name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var e=this.$parent.steps,t=e.indexOf(this);t>=0&&e.splice(t,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var e=this.$parent.steps[this.index-1];return e?e.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return"vertical"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var e=this.$parent;return e.steps[e.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e={},t=this.$parent,n=t.steps.length,i="number"===typeof this.space?this.space+"px":this.space?this.space:100/(n-(this.isCenter?0:1))+"%";return e.flexBasis=i,this.isVertical||(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px"),e}},methods:{updateStatus:function(e){var t=this.$parent.$children[this.index-1];e>this.index?this.internalStatus=this.$parent.finishStatus:e===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",t&&t.calcProgress(this.internalStatus)},calcProgress:function(e){var t=100,n={};n.transitionDelay=150*this.index+"ms",e===this.$parent.processStatus?(this.currentStatus,t=0):"wait"===e&&(t=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=t&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=t+"%":n.width=t+"%",this.lineStyle=n}},mounted:function(){var e=this,t=this.$watch("index",(function(n){e.$watch("$parent.active",e.updateStatus,{immediate:!0}),e.$watch("$parent.processStatus",(function(){var t=e.$parent.active;e.updateStatus(t)}),{immediate:!0}),t()}))}},Id=Dd,Pd=s(Id,Ad,kd,!1,null,null,null);Pd.options.__file="packages/steps/src/step.vue";var Od=Pd.exports;Od.install=function(e){e.component(Od.name,Od)};var Ld=Od,Rd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.carouselClasses,on:{mouseenter:function(t){return t.stopPropagation(),e.handleMouseEnter(t)},mouseleave:function(t){return t.stopPropagation(),e.handleMouseLeave(t)}}},[n("div",{staticClass:"el-carousel__container",style:{height:e.height}},[e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-left"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex>0),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("left")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex-1)}}},[n("i",{staticClass:"el-icon-arrow-left"})])]):e._e(),e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-right"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex<e.items.length-1),expression:"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"}],staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("right")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex+1)}}},[n("i",{staticClass:"el-icon-arrow-right"})])]):e._e(),e._t("default")],2),"none"!==e.indicatorPosition?n("ul",{class:e.indicatorsClasses},e._l(e.items,(function(t,i){return n("li",{key:i,class:["el-carousel__indicator","el-carousel__indicator--"+e.direction,{"is-active":i===e.activeIndex}],on:{mouseenter:function(t){e.throttledIndicatorHover(i)},click:function(t){t.stopPropagation(),e.handleIndicatorClick(i)}}},[n("button",{staticClass:"el-carousel__button"},[e.hasLabel?n("span",[e._v(e._s(t.label))]):e._e()])])})),0):e._e()])},Nd=[];Rd._withStripped=!0;var Fd=n(25),Bd=n.n(Fd),zd={name:"ElCarousel",props:{initialIndex:{type:Number,default:0},height:String,trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:String,indicator:{type:Boolean,default:!0},arrow:{type:String,default:"hover"},type:String,loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}}},data:function(){return{items:[],activeIndex:-1,containerWidth:0,timer:null,hover:!1}},computed:{arrowDisplay:function(){return"never"!==this.arrow&&"vertical"!==this.direction},hasLabel:function(){return this.items.some((function(e){return e.label.toString().length>0}))},carouselClasses:function(){var e=["el-carousel","el-carousel--"+this.direction];return"card"===this.type&&e.push("el-carousel--card"),e},indicatorsClasses:function(){var e=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&e.push("el-carousel__indicators--labels"),"outside"!==this.indicatorPosition&&"card"!==this.type||e.push("el-carousel__indicators--outside"),e}},watch:{items:function(e){e.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(e,t){this.resetItemPosition(t),t>-1&&this.$emit("change",e,t)},autoplay:function(e){e?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)},interval:function(){this.pauseTimer(),this.startTimer()}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(e,t){var n=this.items.length;return t===n-1&&e.inStage&&this.items[0].active||e.inStage&&this.items[t+1]&&this.items[t+1].active?"left":!!(0===t&&e.inStage&&this.items[n-1].active||e.inStage&&this.items[t-1]&&this.items[t-1].active)&&"right"},handleButtonEnter:function(e){var t=this;"vertical"!==this.direction&&this.items.forEach((function(n,i){e===t.itemInStage(n,i)&&(n.hover=!0)}))},handleButtonLeave:function(){"vertical"!==this.direction&&this.items.forEach((function(e){e.hover=!1}))},updateItems:function(){this.items=this.$children.filter((function(e){return"ElCarouselItem"===e.$options.name}))},resetItemPosition:function(e){var t=this;this.items.forEach((function(n,i){n.translateItem(i,t.activeIndex,e)}))},playSlides:function(){this.activeIndex<this.items.length-1?this.activeIndex++:this.loop&&(this.activeIndex=0)},pauseTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},startTimer:function(){this.interval<=0||!this.autoplay||this.timer||(this.timer=setInterval(this.playSlides,this.interval))},resetTimer:function(){this.pauseTimer(),this.startTimer()},setActiveItem:function(e){if("string"===typeof e){var t=this.items.filter((function(t){return t.name===e}));t.length>0&&(e=this.items.indexOf(t[0]))}if(e=Number(e),isNaN(e)||e!==Math.floor(e))console.warn("[Element Warn][Carousel]index must be an integer.");else{var n=this.items.length,i=this.activeIndex;this.activeIndex=e<0?this.loop?n-1:0:e>=n?this.loop?0:n-1:e,i===this.activeIndex&&this.resetItemPosition(i),this.resetTimer()}},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(e){this.activeIndex=e},handleIndicatorHover:function(e){"hover"===this.trigger&&e!==this.activeIndex&&(this.activeIndex=e)}},created:function(){var e=this;this.throttledArrowClick=Bd()(300,!0,(function(t){e.setActiveItem(t)})),this.throttledIndicatorHover=Bd()(300,(function(t){e.handleIndicatorHover(t)}))},mounted:function(){var e=this;this.updateItems(),this.$nextTick((function(){Object(ei["addResizeListener"])(e.$el,e.resetItemPosition),e.initialIndex<e.items.length&&e.initialIndex>=0&&(e.activeIndex=e.initialIndex),e.startTimer()}))},beforeDestroy:function(){this.$el&&Object(ei["removeResizeListener"])(this.$el,this.resetItemPosition),this.pauseTimer()}},Vd=zd,Ud=s(Vd,Rd,Nd,!1,null,null,null);Ud.options.__file="packages/carousel/src/main.vue";var Hd=Ud.exports;Hd.install=function(e){e.component(Hd.name,Hd)};var $d=Hd,jd={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function Wd(e){var t=e.move,n=e.size,i=e.bar,r={},a="translate"+i.axis+"("+t+"%)";return r[i.size]=n,r.transform=a,r.msTransform=a,r.webkitTransform=a,r}var Gd={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return jd[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,i=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+i.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:Wd({size:t,move:n,bar:i})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,i=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(Be["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(Be["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),i=this.$refs.thumb[this.bar.offset]-t,r=100*(n-i)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(Be["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(Be["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},qd={name:"ElScrollbar",components:{Bar:Gd},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=vr()(),n=this.wrapStyle;if(t){var i="-"+t+"px",r="margin-bottom: "+i+"; margin-right: "+i+";";Array.isArray(this.wrapStyle)?(n=Object(y["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=i):"string"===typeof this.wrapStyle?n+=r:n=r}var a=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),o=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[a]]),s=void 0;return s=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[a]])]:[o,e(Gd,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(Gd,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},s)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(ei["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(ei["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(qd.name,qd)}},Xd=qd,Yd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":e.active,"el-carousel__item--card":"card"===e.$parent.type,"is-in-stage":e.inStage,"is-hover":e.hover,"is-animating":e.animating},style:e.itemStyle,on:{click:e.handleItemClick}},["card"===e.$parent.type?n("div",{directives:[{name:"show",rawName:"v-show",value:!e.active,expression:"!active"}],staticClass:"el-carousel__mask"}):e._e(),e._t("default")],2)},Kd=[];Yd._withStripped=!0;var Zd=.83,Jd={name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(e,t,n){return 0===t&&e===n-1?-1:t===n-1&&0===e?n:e<t-1&&t-e>=n/2?n+1:e>t+1&&e-t>=n/2?-2:e},calcCardTranslate:function(e,t){var n=this.$parent.$el.offsetWidth;return this.inStage?n*((2-Zd)*(e-t)+1)/4:e<t?-(1+Zd)*n/4:(3+Zd)*n/4},calcTranslate:function(e,t,n){var i=this.$parent.$el[n?"offsetHeight":"offsetWidth"];return i*(e-t)},translateItem:function(e,t,n){var i=this.$parent.type,r=this.parentDirection,a=this.$parent.items.length;if("card"!==i&&void 0!==n&&(this.animating=e===t||e===n),e!==t&&a>2&&this.$parent.loop&&(e=this.processIndex(e,t,a)),"card"===i)"vertical"===r&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(e-t))<=1,this.active=e===t,this.translate=this.calcCardTranslate(e,t),this.scale=this.active?1:Zd;else{this.active=e===t;var o="vertical"===r;this.translate=this.calcTranslate(e,t,o),this.scale=1}this.ready=!0},handleItemClick:function(){var e=this.$parent;if(e&&"card"===e.type){var t=e.items.indexOf(this);e.setActiveItem(t)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var e="vertical"===this.parentDirection?"translateY":"translateX",t=e+"("+this.translate+"px) scale("+this.scale+")",n={transform:t};return Object(y["autoprefixer"])(n)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},Qd=Jd,ep=s(Qd,Yd,Kd,!1,null,null,null);ep.options.__file="packages/carousel/src/item.vue";var tp=ep.exports;tp.install=function(e){e.component(tp.name,tp)};var np=tp,ip=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[e._t("default")],2)},rp=[];ip._withStripped=!0;var ap={name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(e){this.activeNames=[].concat(e)}},methods:{setActiveNames:function(e){e=[].concat(e);var t=this.accordion?e[0]:e;this.activeNames=e,this.$emit("input",t),this.$emit("change",t)},handleItemClick:function(e){if(this.accordion)this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==e.name?e.name:"");else{var t=this.activeNames.slice(0),n=t.indexOf(e.name);n>-1?t.splice(n,1):t.push(e.name),this.setActiveNames(t)}}},created:function(){this.$on("item-click",this.handleItemClick)}},op=ap,sp=s(op,ip,rp,!1,null,null,null);sp.options.__file="packages/collapse/src/collapse.vue";var lp=sp.exports;lp.install=function(e){e.component(lp.name,lp)};var cp=lp,up=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse-item",class:{"is-active":e.isActive,"is-disabled":e.disabled}},[n("div",{attrs:{role:"tab","aria-expanded":e.isActive,"aria-controls":"el-collapse-content-"+e.id,"aria-describedby":"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__header",class:{focusing:e.focusing,"is-active":e.isActive},attrs:{role:"button",id:"el-collapse-head-"+e.id,tabindex:e.disabled?void 0:0},on:{click:e.handleHeaderClick,keyup:function(t){return!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.handleEnterClick(t))},focus:e.handleFocus,blur:function(t){e.focusing=!1}}},[e._t("title",[e._v(e._s(e.title))]),n("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":e.isActive}})],2)]),n("el-collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!e.isActive,"aria-labelledby":"el-collapse-head-"+e.id,id:"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__content"},[e._t("default")],2)])])],1)},hp=[];up._withStripped=!0;var dp={name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[A.a],components:{ElCollapseTransition:qe.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(y["generateId"])()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var e=this;setTimeout((function(){e.isClick?e.isClick=!1:e.focusing=!0}),50)},handleHeaderClick:function(){this.disabled||(this.dispatch("ElCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("ElCollapse","item-click",this)}}},pp=dp,fp=s(pp,up,hp,!1,null,null,null);fp.options.__file="packages/collapse/src/collapse-item.vue";var mp=fp.exports;mp.install=function(e){e.component(mp.name,mp)};var gp=mp,vp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return e.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",e.realSize&&"el-cascader--"+e.realSize,{"is-disabled":e.isDisabled}],on:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1},click:function(){return e.toggleDropDownVisible(!e.readonly||void 0)},keydown:e.handleKeyDown}},[n("el-input",{ref:"input",class:{"is-focus":e.dropDownVisible},attrs:{size:e.realSize,placeholder:e.placeholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.handleInput},model:{value:e.multiple?e.presentText:e.inputValue,callback:function(t){e.multiple?e.presentText:e.inputValue=t},expression:"multiple ? presentText : inputValue"}},[n("template",{slot:"suffix"},[e.clearBtnVisible?n("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.handleClear(t)}}}):n("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",e.dropDownVisible&&"is-reverse"],on:{click:function(t){t.stopPropagation(),e.toggleDropDownVisible()}}})])],2),e.multiple?n("div",{staticClass:"el-cascader__tags"},[e._l(e.presentTags,(function(t){return n("el-tag",{key:t.key,attrs:{type:"info",size:e.tagSize,hit:t.hitState,closable:t.closable,"disable-transitions":""},on:{close:function(n){e.deleteTag(t)}}},[n("span",[e._v(e._s(t.text))])])})),e.filterable&&!e.isDisabled?n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:e.presentTags.length?"":e.placeholder},domProps:{value:e.inputValue},on:{input:[function(t){t.target.composing||(e.inputValue=t.target.value.trim())},function(t){return e.handleInput(e.inputValue,t)}],click:function(t){t.stopPropagation(),e.toggleDropDownVisible(!0)},keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.handleDelete(t)},blur:function(t){e.$forceUpdate()}}}):e._e()],2):e._e(),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.handleDropdownLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",e.popperClass]},[n("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!e.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:e.options,props:e.config,border:!1,"render-label":e.$scopedSlots.default},on:{"expand-change":e.handleExpandChange,close:function(t){e.toggleDropDownVisible(!1)}},model:{value:e.checkedValue,callback:function(t){e.checkedValue=t},expression:"checkedValue"}}),e.filterable?n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(t){return e.handleSuggestionKeyDown(t)}}},[e.suggestions.length?e._l(e.suggestions,(function(t,i){return n("li",{key:t.uid,class:["el-cascader__suggestion-item",t.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(t){e.handleSuggestionClick(i)}}},[n("span",[e._v(e._s(t.text))]),t.checked?n("i",{staticClass:"el-icon-check"}):e._e()])})):e._t("empty",[n("li",{staticClass:"el-cascader__empty-text"},[e._v(e._s(e.t("el.cascader.noMatch")))])])],2):e._e()],1)])],1)},yp=[];vp._withStripped=!0;var _p=n(42),xp=n.n(_p),bp=n(34),wp=n.n(bp),Sp=wp.a.keys,Mp={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},Cp={props:{placement:{type:String,default:"bottom-start"},appendToBody:$.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:$.a.props.arrowOffset,offset:$.a.props.offset,boundariesPadding:$.a.props.boundariesPadding,popperOptions:$.a.props.popperOptions},methods:$.a.methods,data:$.a.data,beforeDestroy:$.a.beforeDestroy},Tp={medium:36,small:32,mini:28},Ep={name:"ElCascader",directives:{Clickoutside:z.a},mixins:[Cp,A.a,v.a,T.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:m.a,ElTag:Qn.a,ElScrollbar:W.a,ElCascaderPanel:xp.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(gs["t"])("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var e=(this.elFormItem||{}).elFormItemSize;return this.size||e||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var e=this.props||{},t=this.$attrs;return Object.keys(Mp).forEach((function(n){var i=Mp[n],r=i.newProp,a=i.type,o=t[n]||t[Object(y["kebabCase"])(n)];Object(Tt["isDef"])(n)&&!Object(Tt["isDef"])(e[r])&&(a===Boolean&&""===o&&(o=!0),e[r]=o)})),e},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover)&&(this.multiple?!!this.checkedNodes.filter((function(e){return!e.isDisabled})).length:!!this.presentText)},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(e){Object(y["isEqual"])(e,this.checkedValue)||(this.checkedValue=e,this.computePresentContent())},checkedValue:function(e){var t=this.value,n=this.dropDownVisible,i=this.config,r=i.checkStrictly,a=i.multiple;Object(y["isEqual"])(e,t)&&!Object(Wh["isUndefined"])(t)||(this.computePresentContent(),a||r||!n||this.toggleDropDownVisible(!1),this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",[e]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(e){this.inputValue=e},presentTags:function(e,t){this.multiple&&(e.length||t.length)&&this.$nextTick(this.updateStyle)},filtering:function(e){this.$nextTick(this.updatePopper)}},mounted:function(){var e=this,t=this.$refs.input;t&&t.$el&&(this.inputInitialHeight=t.$el.offsetHeight||Tp[this.realSize]||40),this.isEmptyValue(this.value)||this.computePresentContent(),this.filterHandler=F()(this.debounce,(function(){var t=e.inputValue;if(t){var n=e.beforeFilter(t);n&&n.then?n.then(e.getSuggestions):!1!==n?e.getSuggestions():e.filtering=!1}else e.filtering=!1})),Object(ei["addResizeListener"])(this.$el,this.updateStyle)},beforeDestroy:function(){Object(ei["removeResizeListener"])(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(e){var t=this;if(!this.isDisabled){var n=this.dropDownVisible,i=this.$refs.input;e=Object(Tt["isDef"])(e)?e:!n,e!==n&&(this.dropDownVisible=e,e&&this.$nextTick((function(){t.updatePopper(),t.panel.scrollIntoView()})),i.$refs.input.setAttribute("aria-expanded",e),this.$emit("visible-change",e))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText,this.doDestroy()},handleKeyDown:function(e){switch(e.keyCode){case Sp.enter:this.toggleDropDownVisible();break;case Sp.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),e.preventDefault();break;case Sp.esc:case Sp.tab:this.toggleDropDownVisible(!1);break}},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){this.$emit("blur",e)},handleInput:function(e,t){!this.dropDownVisible&&this.toggleDropDownVisible(!0),t&&t.isComposing||(e?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(e){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",e),this.$emit("active-item-change",e)},focusFirstNode:function(){var e=this;this.$nextTick((function(){var t=e.filtering,n=e.$refs,i=n.popper,r=n.suggestionPanel,a=null;if(t&&r)a=r.$el.querySelector(".el-cascader__suggestion-item");else{var o=i.querySelector(".el-cascader-menu");a=o.querySelector('.el-cascader-node[tabindex="-1"]')}a&&(a.focus(),!t&&a.click())}))},computePresentContent:function(){var e=this;this.$nextTick((function(){e.config.multiple?(e.computePresentTags(),e.presentText=e.presentTags.length?" ":null):e.computePresentText()}))},isEmptyValue:function(e){var t=this.multiple,n=this.panel.config.emitPath;return!(!t&&!n)&&Object(y["isEmpty"])(e)},computePresentText:function(){var e=this.checkedValue,t=this.config;if(!this.isEmptyValue(e)){var n=this.panel.getNodeByValue(e);if(n&&(t.checkStrictly||n.isLeaf))return void(this.presentText=n.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){var e=this.isDisabled,t=this.leafOnly,n=this.showAllLevels,i=this.separator,r=this.collapseTags,a=this.getCheckedNodes(t),o=[],s=function(t){return{node:t,key:t.uid,text:t.getText(n,i),hitState:!1,closable:!e&&!t.isDisabled}};if(a.length){var l=a[0],c=a.slice(1),u=c.length;o.push(s(l)),u&&(r?o.push({key:-1,text:"+ "+u,closable:!1}):c.forEach((function(e){return o.push(s(e))})))}this.checkedNodes=a,this.presentTags=o},getSuggestions:function(){var e=this,t=this.filterMethod;Object(Wh["isFunction"])(t)||(t=function(e,t){return e.text.includes(t)});var n=this.panel.getFlattedNodes(this.leafOnly).filter((function(n){return!n.isDisabled&&(n.text=n.getText(e.showAllLevels,e.separator)||"",t(n,e.inputValue))}));this.multiple?this.presentTags.forEach((function(e){e.hitState=!1})):n.forEach((function(t){t.checked=Object(y["isEqual"])(e.checkedValue,t.getValueByOption())})),this.filtering=!0,this.suggestions=n,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(e){var t=e.keyCode,n=e.target;switch(t){case Sp.enter:n.click();break;case Sp.up:var i=n.previousElementSibling;i&&i.focus();break;case Sp.down:var r=n.nextElementSibling;r&&r.focus();break;case Sp.esc:case Sp.tab:this.toggleDropDownVisible(!1);break}},handleDelete:function(){var e=this.inputValue,t=this.pressDeleteCount,n=this.presentTags,i=n.length-1,r=n[i];this.pressDeleteCount=e?0:t+1,r&&this.pressDeleteCount&&(r.hitState?this.deleteTag(r):r.hitState=!0)},handleSuggestionClick:function(e){var t=this.multiple,n=this.suggestions[e];if(t){var i=n.checked;n.doCheck(!i),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(e){var t=this.checkedValue,n=e.node.getValueByOption(),i=t.find((function(e){return Object(y["isEqual"])(e,n)}));this.checkedValue=t.filter((function(e){return!Object(y["isEqual"])(e,n)})),this.$emit("remove-tag",i)},updateStyle:function(){var e=this.$el,t=this.inputInitialHeight;if(!this.$isServer&&e){var n=this.$refs.suggestionPanel,i=e.querySelector(".el-input__inner");if(i){var r=e.querySelector(".el-cascader__tags"),a=null;if(n&&(a=n.$el)){var o=a.querySelector(".el-cascader__suggestion-list");o.style.minWidth=i.offsetWidth+"px"}if(r){var s=Math.round(r.getBoundingClientRect().height),l=Math.max(s+6,t)+"px";i.style.height=l,this.dropDownVisible&&this.updatePopper()}}}},getCheckedNodes:function(e){return this.panel.getCheckedNodes(e)}}},Ap=Ep,kp=s(Ap,vp,yp,!1,null,null,null);kp.options.__file="packages/cascader/src/cascader.vue";var Dp=kp.exports;Dp.install=function(e){e.component(Dp.name,Dp)};var Ip=Dp,Pp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hide,expression:"hide"}],class:["el-color-picker",e.colorDisabled?"is-disabled":"",e.colorSize?"el-color-picker--"+e.colorSize:""]},[e.colorDisabled?n("div",{staticClass:"el-color-picker__mask"}):e._e(),n("div",{staticClass:"el-color-picker__trigger",on:{click:e.handleTrigger}},[n("span",{staticClass:"el-color-picker__color",class:{"is-alpha":e.showAlpha}},[n("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:e.displayedColor}}),e.value||e.showPanelColor?e._e():n("span",{staticClass:"el-color-picker__empty el-icon-close"})]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.value||e.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),n("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",e.popperClass||""],attrs:{color:e.color,"show-alpha":e.showAlpha,predefine:e.predefine},on:{pick:e.confirmValue,clear:e.clearValue},model:{value:e.showPicker,callback:function(t){e.showPicker=t},expression:"showPicker"}})],1)},Op=[];Pp._withStripped=!0;var Lp="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Rp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Np=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Fp=function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)},Bp=function(e){return"string"===typeof e&&-1!==e.indexOf("%")},zp=function(e,t){Fp(e)&&(e="100%");var n=Bp(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)},Vp={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Up=function(e){var t=e.r,n=e.g,i=e.b,r=function(e){e=Math.min(Math.round(e),255);var t=Math.floor(e/16),n=e%16;return""+(Vp[t]||t)+(Vp[n]||n)};return isNaN(t)||isNaN(n)||isNaN(i)?"":"#"+r(t)+r(n)+r(i)},Hp={A:10,B:11,C:12,D:13,E:14,F:15},$p=function(e){return 2===e.length?16*(Hp[e[0].toUpperCase()]||+e[0])+(Hp[e[1].toUpperCase()]||+e[1]):Hp[e[1].toUpperCase()]||+e[1]},jp=function(e,t,n){t/=100,n/=100;var i=t,r=Math.max(n,.01),a=void 0,o=void 0;return n*=2,t*=n<=1?n:2-n,i*=r<=1?r:2-r,o=(n+t)/2,a=0===n?2*i/(r+i):2*t/(n+t),{h:e,s:100*a,v:100*o}},Wp=function(e,t,n){e=zp(e,255),t=zp(t,255),n=zp(n,255);var i=Math.max(e,t,n),r=Math.min(e,t,n),a=void 0,o=void 0,s=i,l=i-r;if(o=0===i?0:l/i,i===r)a=0;else{switch(i){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:360*a,s:100*o,v:100*s}},Gp=function(e,t,n){e=6*zp(e,360),t=zp(t,100),n=zp(n,100);var i=Math.floor(e),r=e-i,a=n*(1-t),o=n*(1-r*t),s=n*(1-(1-r)*t),l=i%6,c=[n,o,a,a,s,n][l],u=[s,n,n,o,a,a][l],h=[a,a,s,n,n,o][l];return{r:Math.round(255*c),g:Math.round(255*u),b:Math.round(255*h)}},qp=function(){function e(t){for(var n in Rp(this,e),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",t=t||{},t)t.hasOwnProperty(n)&&(this[n]=t[n]);this.doOnChange()}return e.prototype.set=function(e,t){if(1!==arguments.length||"object"!==("undefined"===typeof e?"undefined":Lp(e)))this["_"+e]=t,this.doOnChange();else for(var n in e)e.hasOwnProperty(n)&&this.set(n,e[n])},e.prototype.get=function(e){return this["_"+e]},e.prototype.toRgb=function(){return Gp(this._hue,this._saturation,this._value)},e.prototype.fromString=function(e){var t=this;if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();var n=function(e,n,i){t._hue=Math.max(0,Math.min(360,e)),t._saturation=Math.max(0,Math.min(100,n)),t._value=Math.max(0,Math.min(100,i)),t.doOnChange()};if(-1!==e.indexOf("hsl")){var i=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));if(4===i.length?this._alpha=Math.floor(100*parseFloat(i[3])):3===i.length&&(this._alpha=100),i.length>=3){var r=jp(i[0],i[1],i[2]),a=r.h,o=r.s,s=r.v;n(a,o,s)}}else if(-1!==e.indexOf("hsv")){var l=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));4===l.length?this._alpha=Math.floor(100*parseFloat(l[3])):3===l.length&&(this._alpha=100),l.length>=3&&n(l[0],l[1],l[2])}else if(-1!==e.indexOf("rgb")){var c=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));if(4===c.length?this._alpha=Math.floor(100*parseFloat(c[3])):3===c.length&&(this._alpha=100),c.length>=3){var u=Wp(c[0],c[1],c[2]),h=u.h,d=u.s,p=u.v;n(h,d,p)}}else if(-1!==e.indexOf("#")){var f=e.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(f))return;var m=void 0,g=void 0,v=void 0;3===f.length?(m=$p(f[0]+f[0]),g=$p(f[1]+f[1]),v=$p(f[2]+f[2])):6!==f.length&&8!==f.length||(m=$p(f.substring(0,2)),g=$p(f.substring(2,4)),v=$p(f.substring(4,6))),8===f.length?this._alpha=Math.floor($p(f.substring(6))/255*100):3!==f.length&&6!==f.length||(this._alpha=100);var y=Wp(m,g,v),_=y.h,x=y.s,b=y.v;n(_,x,b)}},e.prototype.compare=function(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1},e.prototype.doOnChange=function(){var e=this._hue,t=this._saturation,n=this._value,i=this._alpha,r=this.format;if(this.enableAlpha)switch(r){case"hsl":var a=Np(e,t/100,n/100);this.value="hsla("+e+", "+Math.round(100*a[1])+"%, "+Math.round(100*a[2])+"%, "+i/100+")";break;case"hsv":this.value="hsva("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%, "+i/100+")";break;default:var o=Gp(e,t,n),s=o.r,l=o.g,c=o.b;this.value="rgba("+s+", "+l+", "+c+", "+i/100+")"}else switch(r){case"hsl":var u=Np(e,t/100,n/100);this.value="hsl("+e+", "+Math.round(100*u[1])+"%, "+Math.round(100*u[2])+"%)";break;case"hsv":this.value="hsv("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%)";break;case"rgb":var h=Gp(e,t,n),d=h.r,p=h.g,f=h.b;this.value="rgb("+d+", "+p+", "+f+")";break;default:this.value=Up(Gp(e,t,n))}},e}(),Xp=qp,Yp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[n("div",{staticClass:"el-color-dropdown__main-wrapper"},[n("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:e.color,vertical:""}}),n("sv-panel",{ref:"sl",attrs:{color:e.color}})],1),e.showAlpha?n("alpha-slider",{ref:"alpha",attrs:{color:e.color}}):e._e(),e.predefine?n("predefine",{attrs:{color:e.color,colors:e.predefine}}):e._e(),n("div",{staticClass:"el-color-dropdown__btns"},[n("span",{staticClass:"el-color-dropdown__value"},[n("el-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:e.handleConfirm},nativeOn:{keyup:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleConfirm(t)}},model:{value:e.customInput,callback:function(t){e.customInput=t},expression:"customInput"}})],1),n("el-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(t){e.$emit("clear")}}},[e._v("\n "+e._s(e.t("el.colorpicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-color-dropdown__btn",attrs:{plain:"",size:"mini"},on:{click:e.confirmValue}},[e._v("\n "+e._s(e.t("el.colorpicker.confirm"))+"\n ")])],1)],1)])},Kp=[];Yp._withStripped=!0;var Zp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-svpanel",style:{backgroundColor:e.background}},[n("div",{staticClass:"el-color-svpanel__white"}),n("div",{staticClass:"el-color-svpanel__black"}),n("div",{staticClass:"el-color-svpanel__cursor",style:{top:e.cursorTop+"px",left:e.cursorLeft+"px"}},[n("div")])])},Jp=[];Zp._withStripped=!0;var Qp=!1,ef=function(e,t){if(!Hi.a.prototype.$isServer){var n=function(e){t.drag&&t.drag(e)},i=function e(i){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",e),document.onselectstart=null,document.ondragstart=null,Qp=!1,t.end&&t.end(i)};e.addEventListener("mousedown",(function(e){Qp||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",i),Qp=!0,t.start&&t.start(e))}))}},tf={name:"el-sl-panel",props:{color:{required:!0}},computed:{colorValue:function(){var e=this.color.get("hue"),t=this.color.get("value");return{hue:e,value:t}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var e=this.color.get("saturation"),t=this.color.get("value"),n=this.$el,i=n.clientWidth,r=n.clientHeight;this.cursorLeft=e*i/100,this.cursorTop=(100-t)*r/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(e){var t=this.$el,n=t.getBoundingClientRect(),i=e.clientX-n.left,r=e.clientY-n.top;i=Math.max(0,i),i=Math.min(i,n.width),r=Math.max(0,r),r=Math.min(r,n.height),this.cursorLeft=i,this.cursorTop=r,this.color.set({saturation:i/n.width*100,value:100-r/n.height*100})}},mounted:function(){var e=this;ef(this.$el,{drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},nf=tf,rf=s(nf,Zp,Jp,!1,null,null,null);rf.options.__file="packages/color-picker/src/components/sv-panel.vue";var af=rf.exports,of=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])},sf=[];of._withStripped=!0;var lf={name:"el-color-hue-slider",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){var e=this.color.get("hue");return e}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb,n=e.target;n!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb,i=void 0;if(this.vertical){var r=e.clientY-t.top;r=Math.min(r,t.height-n.offsetHeight/2),r=Math.max(n.offsetHeight/2,r),i=Math.round((r-n.offsetHeight/2)/(t.height-n.offsetHeight)*360)}else{var a=e.clientX-t.left;a=Math.min(a,t.width-n.offsetWidth/2),a=Math.max(n.offsetWidth/2,a),i=Math.round((a-n.offsetWidth/2)/(t.width-n.offsetWidth)*360)}this.color.set("hue",i)},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var e=this,t=this.$refs,n=t.bar,i=t.thumb,r={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};ef(n,r),ef(i,r),this.update()}},cf=lf,uf=s(cf,of,sf,!1,null,null,null);uf.options.__file="packages/color-picker/src/components/hue-slider.vue";var hf=uf.exports,df=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:e.background},on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])},pf=[];df._withStripped=!0;var ff={name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb,n=e.target;n!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb;if(this.vertical){var i=e.clientY-t.top;i=Math.max(n.offsetHeight/2,i),i=Math.min(i,t.height-n.offsetHeight/2),this.color.set("alpha",Math.round((i-n.offsetHeight/2)/(t.height-n.offsetHeight)*100))}else{var r=e.clientX-t.left;r=Math.max(n.offsetWidth/2,r),r=Math.min(r,t.width-n.offsetWidth/2),this.color.set("alpha",Math.round((r-n.offsetWidth/2)/(t.width-n.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var e=this.color.toRgb(),t=e.r,n=e.g,i=e.b;return"linear-gradient(to right, rgba("+t+", "+n+", "+i+", 0) 0%, rgba("+t+", "+n+", "+i+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var e=this,t=this.$refs,n=t.bar,i=t.thumb,r={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};ef(n,r),ef(i,r),this.update()}},mf=ff,gf=s(mf,df,pf,!1,null,null,null);gf.options.__file="packages/color-picker/src/components/alpha-slider.vue";var vf=gf.exports,yf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-predefine"},[n("div",{staticClass:"el-color-predefine__colors"},e._l(e.rgbaColors,(function(t,i){return n("div",{key:e.colors[i],staticClass:"el-color-predefine__color-selector",class:{selected:t.selected,"is-alpha":t._alpha<100},on:{click:function(t){e.handleSelect(i)}}},[n("div",{style:{"background-color":t.value}})])})),0)])},_f=[];yf._withStripped=!0;var xf={props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(e){this.color.fromString(this.colors[e])},parseColors:function(e,t){return e.map((function(e){var n=new Xp;return n.enableAlpha=!0,n.format="rgba",n.fromString(e),n.selected=n.value===t.value,n}))}},watch:{"$parent.currentColor":function(e){var t=new Xp;t.fromString(e),this.rgbaColors.forEach((function(e){e.selected=t.compare(e)}))},colors:function(e){this.rgbaColors=this.parseColors(e,this.color)},color:function(e){this.rgbaColors=this.parseColors(this.colors,e)}}},bf=xf,wf=s(bf,yf,_f,!1,null,null,null);wf.options.__file="packages/color-picker/src/components/predefine.vue";var Sf=wf.exports,Mf={name:"el-color-picker-dropdown",mixins:[$.a,v.a],components:{SvPanel:af,HueSlider:hf,AlphaSlider:vf,ElInput:m.a,ElButton:oe.a,Predefine:Sf},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var e=this.$parent;return e.value||e.showPanelColor?e.color.value:""}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(e){var t=this;!0===e&&this.$nextTick((function(){var e=t.$refs,n=e.sl,i=e.hue,r=e.alpha;n&&n.update(),i&&i.update(),r&&r.update()}))},currentColor:{immediate:!0,handler:function(e){this.customInput=e}}}},Cf=Mf,Tf=s(Cf,Yp,Kp,!1,null,null,null);Tf.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var Ef=Tf.exports,Af={name:"ElColorPicker",mixins:[A.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:z.a},computed:{displayedColor:function(){return this.value||this.showPanelColor?this.displayedRgb(this.color,this.showAlpha):"transparent"},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){e?e&&e!==this.color.value&&this.color.fromString(e):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(e){if(this.showPicker){var t=new Xp({enableAlpha:this.showAlpha,format:this.colorFormat});t.fromString(this.value);var n=this.displayedRgb(t,this.showAlpha);e!==n&&this.$emit("active-change",e)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var e=this.color.value;this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",e),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),null!==this.value&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var e=this;this.$nextTick((function(t){e.value?e.color.fromString(e.value):e.showPanelColor=!1}))},displayedRgb:function(e,t){if(!(e instanceof Xp))throw Error("color should be instance of Color Class");var n=e.toRgb(),i=n.r,r=n.g,a=n.b;return t?"rgba("+i+", "+r+", "+a+", "+e.get("alpha")/100+")":"rgb("+i+", "+r+", "+a+")"}},mounted:function(){var e=this.value;e&&this.color.fromString(e),this.popperElm=this.$refs.dropdown.$el},data:function(){var e=new Xp({enableAlpha:this.showAlpha,format:this.colorFormat});return{color:e,showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:Ef}},kf=Af,Df=s(kf,Pp,Op,!1,null,null,null);Df.options.__file="packages/color-picker/src/main.vue";var If=Df.exports;If.install=function(e){e.component(If.name,If)};var Pf=If,Of=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer"},[n("transfer-panel",e._b({ref:"leftPanel",attrs:{data:e.sourceData,title:e.titles[0]||e.t("el.transfer.titles.0"),"default-checked":e.leftDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onSourceCheckedChange}},"transfer-panel",e.$props,!1),[e._t("left-footer")],2),n("div",{staticClass:"el-transfer__buttons"},[n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.rightChecked.length},nativeOn:{click:function(t){return e.addToLeft(t)}}},[n("i",{staticClass:"el-icon-arrow-left"}),void 0!==e.buttonTexts[0]?n("span",[e._v(e._s(e.buttonTexts[0]))]):e._e()]),n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.leftChecked.length},nativeOn:{click:function(t){return e.addToRight(t)}}},[void 0!==e.buttonTexts[1]?n("span",[e._v(e._s(e.buttonTexts[1]))]):e._e(),n("i",{staticClass:"el-icon-arrow-right"})])],1),n("transfer-panel",e._b({ref:"rightPanel",attrs:{data:e.targetData,title:e.titles[1]||e.t("el.transfer.titles.1"),"default-checked":e.rightDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onTargetCheckedChange}},"transfer-panel",e.$props,!1),[e._t("right-footer")],2)],1)},Lf=[];Of._withStripped=!0;var Rf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer-panel"},[n("p",{staticClass:"el-transfer-panel__header"},[n("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleAllCheckedChange},model:{value:e.allChecked,callback:function(t){e.allChecked=t},expression:"allChecked"}},[e._v("\n "+e._s(e.title)+"\n "),n("span",[e._v(e._s(e.checkedSummary))])])],1),n("div",{class:["el-transfer-panel__body",e.hasFooter?"is-with-footer":""]},[e.filterable?n("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:e.placeholder},nativeOn:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}},[n("i",{class:["el-input__icon","el-icon-"+e.inputIcon],attrs:{slot:"prefix"},on:{click:e.clearQuery},slot:"prefix"})]):e._e(),n("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!e.hasNoMatch&&e.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":e.filterable},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},e._l(e.filteredData,(function(t){return n("el-checkbox",{key:t[e.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:t[e.keyProp],disabled:t[e.disabledProp]}},[n("option-content",{attrs:{option:t}})],1)})),1),n("p",{directives:[{name:"show",rawName:"v-show",value:e.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noMatch")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===e.data.length&&!e.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noData")))])],1),e.hasFooter?n("p",{staticClass:"el-transfer-panel__footer"},[e._t("default")],2):e._e()])},Nf=[];Rf._withStripped=!0;var Ff={mixins:[v.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:Pr.a,ElCheckbox:Li.a,ElInput:m.a,OptionContent:{props:{option:Object},render:function(e){var t=function e(t){return"ElTransferPanel"===t.$options.componentName?t:t.$parent?e(t.$parent):t},n=t(this),i=n.$parent||n;return n.renderContent?n.renderContent(e,this.option):i.$scopedSlots.default?i.$scopedSlots.default({option:this.option}):e("span",[this.option[n.labelProp]||this.option[n.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(e,t){if(this.updateAllChecked(),this.checkChangeByUser){var n=e.concat(t).filter((function(n){return-1===e.indexOf(n)||-1===t.indexOf(n)}));this.$emit("checked-change",e,n)}else this.$emit("checked-change",e),this.checkChangeByUser=!0},data:function(){var e=this,t=[],n=this.filteredData.map((function(t){return t[e.keyProp]}));this.checked.forEach((function(e){n.indexOf(e)>-1&&t.push(e)})),this.checkChangeByUser=!1,this.checked=t},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(e,t){var n=this;if(!t||e.length!==t.length||!e.every((function(e){return t.indexOf(e)>-1}))){var i=[],r=this.checkableData.map((function(e){return e[n.keyProp]}));e.forEach((function(e){r.indexOf(e)>-1&&i.push(e)})),this.checkChangeByUser=!1,this.checked=i}}}},computed:{filteredData:function(){var e=this;return this.data.filter((function(t){if("function"===typeof e.filterMethod)return e.filterMethod(e.query,t);var n=t[e.labelProp]||t[e.keyProp].toString();return n.toLowerCase().indexOf(e.query.toLowerCase())>-1}))},checkableData:function(){var e=this;return this.filteredData.filter((function(t){return!t[e.disabledProp]}))},checkedSummary:function(){var e=this.checked.length,t=this.data.length,n=this.format,i=n.noChecked,r=n.hasChecked;return i&&r?e>0?r.replace(/\${checked}/g,e).replace(/\${total}/g,t):i.replace(/\${total}/g,t):e+"/"+t},isIndeterminate:function(){var e=this.checked.length;return e>0&&e<this.checkableData.length},hasNoMatch:function(){return this.query.length>0&&0===this.filteredData.length},inputIcon:function(){return this.query.length>0&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var e=this,t=this.checkableData.map((function(t){return t[e.keyProp]}));this.allChecked=t.length>0&&t.every((function(t){return e.checked.indexOf(t)>-1}))},handleAllCheckedChange:function(e){var t=this;this.checked=e?this.checkableData.map((function(e){return e[t.keyProp]})):[]},clearQuery:function(){"circle-close"===this.inputIcon&&(this.query="")}}},Bf=Ff,zf=s(Bf,Rf,Nf,!1,null,null,null);zf.options.__file="packages/transfer/src/transfer-panel.vue";var Vf=zf.exports,Uf={name:"ElTransfer",mixins:[A.a,v.a,T.a],components:{TransferPanel:Vf,ElButton:oe.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var e=this.props.key;return this.data.reduce((function(t,n){return(t[n[e]]=n)&&t}),{})},sourceData:function(){var e=this;return this.data.filter((function(t){return-1===e.value.indexOf(t[e.props.key])}))},targetData:function(){var e=this;return"original"===this.targetOrder?this.data.filter((function(t){return e.value.indexOf(t[e.props.key])>-1})):this.value.reduce((function(t,n){var i=e.dataObj[n];return i&&t.push(i),t}),[])},hasButtonTexts:function(){return 2===this.buttonTexts.length}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(e,t){this.leftChecked=e,void 0!==t&&this.$emit("left-check-change",e,t)},onTargetCheckedChange:function(e,t){this.rightChecked=e,void 0!==t&&this.$emit("right-check-change",e,t)},addToLeft:function(){var e=this.value.slice();this.rightChecked.forEach((function(t){var n=e.indexOf(t);n>-1&&e.splice(n,1)})),this.$emit("input",e),this.$emit("change",e,"left",this.rightChecked)},addToRight:function(){var e=this,t=this.value.slice(),n=[],i=this.props.key;this.data.forEach((function(t){var r=t[i];e.leftChecked.indexOf(r)>-1&&-1===e.value.indexOf(r)&&n.push(r)})),t="unshift"===this.targetOrder?n.concat(t):t.concat(n),this.$emit("input",t),this.$emit("change",t,"right",this.leftChecked)},clearQuery:function(e){"left"===e?this.$refs.leftPanel.query="":"right"===e&&(this.$refs.rightPanel.query="")}}},Hf=Uf,$f=s(Hf,Of,Lf,!1,null,null,null);$f.options.__file="packages/transfer/src/main.vue";var jf=$f.exports;jf.install=function(e){e.component(jf.name,jf)};var Wf=jf,Gf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"el-container",class:{"is-vertical":e.isVertical}},[e._t("default")],2)},qf=[];Gf._withStripped=!0;var Xf={name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return"vertical"===this.direction||"horizontal"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some((function(e){var t=e.componentOptions&&e.componentOptions.tag;return"el-header"===t||"el-footer"===t})))}}},Yf=Xf,Kf=s(Yf,Gf,qf,!1,null,null,null);Kf.options.__file="packages/container/src/main.vue";var Zf=Kf.exports;Zf.install=function(e){e.component(Zf.name,Zf)};var Jf=Zf,Qf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",{staticClass:"el-header",style:{height:e.height}},[e._t("default")],2)},em=[];Qf._withStripped=!0;var tm={name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},nm=tm,im=s(nm,Qf,em,!1,null,null,null);im.options.__file="packages/header/src/main.vue";var rm=im.exports;rm.install=function(e){e.component(rm.name,rm)};var am=rm,om=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("aside",{staticClass:"el-aside",style:{width:e.width}},[e._t("default")],2)},sm=[];om._withStripped=!0;var lm={name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},cm=lm,um=s(cm,om,sm,!1,null,null,null);um.options.__file="packages/aside/src/main.vue";var hm=um.exports;hm.install=function(e){e.component(hm.name,hm)};var dm=hm,pm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticClass:"el-main"},[e._t("default")],2)},fm=[];pm._withStripped=!0;var mm={name:"ElMain",componentName:"ElMain"},gm=mm,vm=s(gm,pm,fm,!1,null,null,null);vm.options.__file="packages/main/src/main.vue";var ym=vm.exports;ym.install=function(e){e.component(ym.name,ym)};var _m=ym,xm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("footer",{staticClass:"el-footer",style:{height:e.height}},[e._t("default")],2)},bm=[];xm._withStripped=!0;var wm={name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},Sm=wm,Mm=s(Sm,xm,bm,!1,null,null,null);Mm.options.__file="packages/footer/src/main.vue";var Cm=Mm.exports;Cm.install=function(e){e.component(Cm.name,Cm)};var Tm,Em,Am=Cm,km={name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var e=arguments[0],t=this.reverse,n={"el-timeline":!0,"is-reverse":t},i=this.$slots.default||[];return t&&(i=i.reverse()),e("ul",{class:n},[i])}},Dm=km,Im=s(Dm,Tm,Em,!1,null,null,null);Im.options.__file="packages/timeline/src/main.vue";var Pm=Im.exports;Pm.install=function(e){e.component(Pm.name,Pm)};var Om=Pm,Lm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-timeline-item"},[n("div",{staticClass:"el-timeline-item__tail"}),e.$slots.dot?e._e():n("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(e.size||""),"el-timeline-item__node--"+(e.type||"")],style:{backgroundColor:e.color}},[e.icon?n("i",{staticClass:"el-timeline-item__icon",class:e.icon}):e._e()]),e.$slots.dot?n("div",{staticClass:"el-timeline-item__dot"},[e._t("dot")],2):e._e(),n("div",{staticClass:"el-timeline-item__wrapper"},[e.hideTimestamp||"top"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-top"},[e._v("\n "+e._s(e.timestamp)+"\n ")]),n("div",{staticClass:"el-timeline-item__content"},[e._t("default")],2),e.hideTimestamp||"bottom"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-bottom"},[e._v("\n "+e._s(e.timestamp)+"\n ")])])])},Rm=[];Lm._withStripped=!0;var Nm={name:"ElTimelineItem",inject:["timeline"],props:{timestamp:String,hideTimestamp:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:String,color:String,size:{type:String,default:"normal"},icon:String}},Fm=Nm,Bm=s(Fm,Lm,Rm,!1,null,null,null);Bm.options.__file="packages/timeline/src/item.vue";var zm=Bm.exports;zm.install=function(e){e.component(zm.name,zm)};var Vm=zm,Um=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._b({class:["el-link",e.type?"el-link--"+e.type:"",e.disabled&&"is-disabled",e.underline&&!e.disabled&&"is-underline"],attrs:{href:e.disabled?null:e.href},on:{click:e.handleClick}},"a",e.$attrs,!1),[e.icon?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",{staticClass:"el-link--inner"},[e._t("default")],2):e._e(),e.$slots.icon?[e.$slots.icon?e._t("icon"):e._e()]:e._e()],2)},Hm=[];Um._withStripped=!0;var $m={name:"ElLink",props:{type:{type:String,default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick:function(e){this.disabled||this.href||this.$emit("click",e)}}},jm=$m,Wm=s(jm,Um,Hm,!1,null,null,null);Wm.options.__file="packages/link/src/main.vue";var Gm=Wm.exports;Gm.install=function(e){e.component(Gm.name,Gm)};var qm=Gm,Xm=function(e,t){var n=t._c;return n("div",t._g(t._b({class:[t.data.staticClass,"el-divider","el-divider--"+t.props.direction]},"div",t.data.attrs,!1),t.listeners),[t.slots().default&&"vertical"!==t.props.direction?n("div",{class:["el-divider__text","is-"+t.props.contentPosition]},[t._t("default")],2):t._e()])},Ym=[];Xm._withStripped=!0;var Km={name:"ElDivider",props:{direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},contentPosition:{type:String,default:"center",validator:function(e){return-1!==["left","center","right"].indexOf(e)}}}},Zm=Km,Jm=s(Zm,Xm,Ym,!0,null,null,null);Jm.options.__file="packages/divider/src/main.vue";var Qm=Jm.exports;Qm.install=function(e){e.component(Qm.name,Qm)};var eg=Qm,tg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-image"},[e.loading?e._t("placeholder",[n("div",{staticClass:"el-image__placeholder"})]):e.error?e._t("error",[n("div",{staticClass:"el-image__error"},[e._v(e._s(e.t("el.image.error")))])]):n("img",e._g(e._b({staticClass:"el-image__inner",class:{"el-image__inner--center":e.alignCenter,"el-image__preview":e.preview},style:e.imageStyle,attrs:{src:e.src},on:{click:e.clickHandler}},"img",e.$attrs,!1),e.$listeners)),e.preview?[e.showViewer?n("image-viewer",{attrs:{"z-index":e.zIndex,"initial-index":e.imageIndex,"on-close":e.closeViewer,"url-list":e.previewSrcList}}):e._e()]:e._e()],2)},ng=[];tg._withStripped=!0;var ig=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"viewer-fade"}},[n("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":e.viewerZIndex},attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-image-viewer__mask",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleMaskClick(t)}}}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:e.hide}},[n("i",{staticClass:"el-icon-close"})]),e.isSingle?e._e():[n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[n("i",{staticClass:"el-icon-arrow-left"})]),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[n("i",{staticClass:"el-icon-arrow-right"})])],n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){e.handleActions("zoomOut")}}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){e.handleActions("zoomIn")}}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{class:e.mode.icon,on:{click:e.toggleMode}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){e.handleActions("anticlocelise")}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){e.handleActions("clocelise")}}})])]),n("div",{staticClass:"el-image-viewer__canvas"},e._l(e.urlList,(function(t,i){return i===e.index?n("img",{key:t,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()})),0)],2)])},rg=[];ig._withStripped=!0;var ag=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},og={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},sg=Object(y["isFirefox"])()?"DOMMouseScroll":"mousewheel",lg={name:"elImageViewer",props:{urlList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0},appendToBody:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0}},data:function(){return{index:this.initialIndex,isShow:!1,infinite:!0,loading:!1,mode:og.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},currentImg:function(){return this.urlList[this.index]},imgStyle:function(){var e=this.transform,t=e.scale,n=e.deg,i=e.offsetX,r=e.offsetY,a=e.enableTransition,o={transform:"scale("+t+") rotate("+n+"deg)",transition:a?"transform .3s":"","margin-left":i+"px","margin-top":r+"px"};return this.mode===og.CONTAIN&&(o.maxWidth=o.maxHeight="100%"),o},viewerZIndex:function(){var e=S["PopupManager"].nextZIndex();return this.zIndex>e?this.zIndex:e}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},currentImg:function(e){var t=this;this.$nextTick((function(e){var n=t.$refs.img[0];n.complete||(t.loading=!0)}))}},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var e=this;this._keyDownHandler=function(t){t.stopPropagation();var n=t.keyCode;switch(n){case 27:e.hide();break;case 32:e.toggleMode();break;case 37:e.prev();break;case 38:e.handleActions("zoomIn");break;case 39:e.next();break;case 40:e.handleActions("zoomOut");break}},this._mouseWheelHandler=Object(y["rafThrottle"])((function(t){var n=t.wheelDelta?t.wheelDelta:-t.detail;n>0?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(Be["on"])(document,"keydown",this._keyDownHandler),Object(Be["on"])(document,sg,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(Be["off"])(document,"keydown",this._keyDownHandler),Object(Be["off"])(document,sg,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},handleMouseDown:function(e){var t=this;if(!this.loading&&0===e.button){var n=this.transform,i=n.offsetX,r=n.offsetY,a=e.pageX,o=e.pageY;this._dragHandler=Object(y["rafThrottle"])((function(e){t.transform.offsetX=i+e.pageX-a,t.transform.offsetY=r+e.pageY-o})),Object(Be["on"])(document,"mousemove",this._dragHandler),Object(Be["on"])(document,"mouseup",(function(e){Object(Be["off"])(document,"mousemove",t._dragHandler)})),e.preventDefault()}},handleMaskClick:function(){this.maskClosable&&this.hide()},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){if(!this.loading){var e=Object.keys(og),t=Object.values(og),n=t.indexOf(this.mode),i=(n+1)%e.length;this.mode=og[e[i]],this.reset()}},prev:function(){if(!this.isFirst||this.infinite){var e=this.urlList.length;this.index=(this.index-1+e)%e}},next:function(){if(!this.isLast||this.infinite){var e=this.urlList.length;this.index=(this.index+1)%e}},handleActions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var n=ag({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),i=n.zoomRate,r=n.rotateDeg,a=n.enableTransition,o=this.transform;switch(e){case"zoomOut":o.scale>.2&&(o.scale=parseFloat((o.scale-i).toFixed(3)));break;case"zoomIn":o.scale=parseFloat((o.scale+i).toFixed(3));break;case"clocelise":o.deg+=r;break;case"anticlocelise":o.deg-=r;break}o.enableTransition=a}}},mounted:function(){this.deviceSupportInstall(),this.appendToBody&&document.body.appendChild(this.$el),this.$refs["el-image-viewer__wrapper"].focus()},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},cg=lg,ug=s(cg,ig,rg,!1,null,null,null);ug.options.__file="packages/image/src/image-viewer.vue";var hg=ug.exports,dg=function(){return void 0!==document.documentElement.style.objectFit},pg={NONE:"none",CONTAIN:"contain",COVER:"cover",FILL:"fill",SCALE_DOWN:"scale-down"},fg="",mg={name:"ElImage",mixins:[v.a],inheritAttrs:!1,components:{ImageViewer:hg},props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},data:function(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0,showViewer:!1}},computed:{imageStyle:function(){var e=this.fit;return!this.$isServer&&e?dg()?{"object-fit":e}:this.getImageStyle(e):{}},alignCenter:function(){return!this.$isServer&&!dg()&&this.fit!==pg.FILL},preview:function(){var e=this.previewSrcList;return Array.isArray(e)&&e.length>0},imageIndex:function(){var e=0,t=this.previewSrcList.indexOf(this.src);return t>=0&&(e=t),e}},watch:{src:function(e){this.show&&this.loadImage()},show:function(e){e&&this.loadImage()}},mounted:function(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy:function(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage:function(){var e=this;if(!this.$isServer){this.loading=!0,this.error=!1;var t=new Image;t.onload=function(n){return e.handleLoad(n,t)},t.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach((function(n){var i=e.$attrs[n];t.setAttribute(n,i)})),t.src=this.src}},handleLoad:function(e,t){this.imageWidth=t.width,this.imageHeight=t.height,this.loading=!1,this.error=!1},handleError:function(e){this.loading=!1,this.error=!0,this.$emit("error",e)},handleLazyLoad:function(){Object(Be["isInContainer"])(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var e=this.scrollContainer,t=null;t=Object(Wh["isHtmlElement"])(e)?e:Object(Wh["isString"])(e)?document.querySelector(e):Object(Be["getScrollContainer"])(this.$el),t&&(this._scrollContainer=t,this._lazyLoadHandler=Bd()(200,this.handleLazyLoad),Object(Be["on"])(t,"scroll",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var e=this._scrollContainer,t=this._lazyLoadHandler;!this.$isServer&&e&&t&&(Object(Be["off"])(e,"scroll",t),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(e){var t=this.imageWidth,n=this.imageHeight,i=this.$el,r=i.clientWidth,a=i.clientHeight;if(!t||!n||!r||!a)return{};var o=t/n,s=r/a;if(e===pg.SCALE_DOWN){var l=t<r&&n<a;e=l?pg.NONE:pg.CONTAIN}switch(e){case pg.NONE:return{width:"auto",height:"auto"};case pg.CONTAIN:return o<s?{width:"auto"}:{height:"auto"};case pg.COVER:return o<s?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler:function(){this.preview&&(fg=document.body.style.overflow,document.body.style.overflow="hidden",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=fg,this.showViewer=!1}}},gg=mg,vg=s(gg,tg,ng,!1,null,null,null);vg.options.__file="packages/image/src/main.vue";var yg=vg.exports;yg.install=function(e){e.component(yg.name,yg)};var _g=yg,xg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-calendar"},[n("div",{staticClass:"el-calendar__header"},[n("div",{staticClass:"el-calendar__title"},[e._v("\n "+e._s(e.i18nDate)+"\n ")]),0===e.validatedRange.length?n("div",{staticClass:"el-calendar__button-group"},[n("el-button-group",[n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("prev-month")}}},[e._v("\n "+e._s(e.t("el.datepicker.prevMonth"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("today")}}},[e._v("\n "+e._s(e.t("el.datepicker.today"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("next-month")}}},[e._v("\n "+e._s(e.t("el.datepicker.nextMonth"))+"\n ")])],1)],1):e._e()]),0===e.validatedRange.length?n("div",{key:"no-range",staticClass:"el-calendar__body"},[n("date-table",{attrs:{date:e.date,"selected-day":e.realSelectedDay,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})],1):n("div",{key:"has-range",staticClass:"el-calendar__body"},e._l(e.validatedRange,(function(t,i){return n("date-table",{key:i,attrs:{date:t[0],"selected-day":e.realSelectedDay,range:t,"hide-header":0!==i,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})})),1)])},bg=[];xg._withStripped=!0;var wg,Sg,Mg=n(20),Cg=n.n(Mg),Tg={props:{selectedDay:String,range:{type:Array,validator:function(e){if(!e||!e.length)return!0;var t=e[0],n=e[1];return Object(oa["validateRangeInOneMonth"])(t,n)}},date:Date,hideHeader:Boolean,firstDayOfWeek:Number},inject:["elCalendar"],methods:{toNestedArr:function(e){return Object(oa["range"])(e.length/7).map((function(t,n){var i=7*n;return e.slice(i,i+7)}))},getFormateDate:function(e,t){if(!e||-1===["prev","current","next"].indexOf(t))throw new Error("invalid day or type");var n=this.curMonthDatePrefix;return"prev"===t?n=this.prevMonthDatePrefix:"next"===t&&(n=this.nextMonthDatePrefix),e=("00"+e).slice(-2),n+"-"+e},getCellClass:function(e){var t=e.text,n=e.type,i=[n];if("current"===n){var r=this.getFormateDate(t,n);r===this.selectedDay&&i.push("is-selected"),r===this.formatedToday&&i.push("is-today")}return i},pickDay:function(e){var t=e.text,n=e.type,i=this.getFormateDate(t,n);this.$emit("pick",i)},cellRenderProxy:function(e){var t=e.text,n=e.type,i=this.$createElement,r=this.elCalendar.$scopedSlots.dateCell;if(!r)return i("span",[t]);var a=this.getFormateDate(t,n),o=new Date(a),s={isSelected:this.selectedDay===a,type:n+"-month",day:a};return r({date:o,data:s})}},computed:{WEEK_DAYS:function(){return Object(oa["getI18nSettings"])().dayNames},prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),Cg.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return Cg.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return Cg.a.format(e,"yyyy-MM")},formatedToday:function(){return this.elCalendar.formatedToday},isInRange:function(){return this.range&&this.range.length},rows:function(){var e=[];if(this.isInRange){var t=this.range,n=t[0],i=t[1],r=Object(oa["range"])(i.getDate()-n.getDate()+1).map((function(e,t){return{text:n.getDate()+t,type:"current"}})),a=r.length%7;a=0===a?0:7-a;var o=Object(oa["range"])(a).map((function(e,t){return{text:t+1,type:"next"}}));e=r.concat(o)}else{var s=this.date,l=Object(oa["getFirstDayOfMonth"])(s);l=0===l?7:l;var c="number"===typeof this.firstDayOfWeek?this.firstDayOfWeek:1,u=(7+l-c)%7,h=Object(oa["getPrevMonthLastDays"])(s,u).map((function(e){return{text:e,type:"prev"}})),d=Object(oa["getMonthDays"])(s).map((function(e){return{text:e,type:"current"}}));e=[].concat(h,d);var p=Object(oa["range"])(42-e.length).map((function(e,t){return{text:t+1,type:"next"}}));e=e.concat(p)}return this.toNestedArr(e)},weekDays:function(){var e=this.firstDayOfWeek,t=this.WEEK_DAYS;return"number"!==typeof e||0===e?t.slice():t.slice(e).concat(t.slice(0,e))}},render:function(){var e=this,t=arguments[0],n=this.hideHeader?null:t("thead",[this.weekDays.map((function(e){return t("th",{key:e},[e])}))]);return t("table",{class:{"el-calendar-table":!0,"is-range":this.isInRange},attrs:{cellspacing:"0",cellpadding:"0"}},[n,t("tbody",[this.rows.map((function(n,i){return t("tr",{class:{"el-calendar-table__row":!0,"el-calendar-table__row--hide-border":0===i&&e.hideHeader},key:i},[n.map((function(n,i){return t("td",{key:i,class:e.getCellClass(n),on:{click:e.pickDay.bind(e,n)}},[t("div",{class:"el-calendar-day"},[e.cellRenderProxy(n)])])}))])}))])])}},Eg=Tg,Ag=s(Eg,wg,Sg,!1,null,null,null);Ag.options.__file="packages/calendar/src/date-table.vue";var kg=Ag.exports,Dg=["prev-month","today","next-month"],Ig=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Pg=864e5,Og={name:"ElCalendar",mixins:[v.a],components:{DateTable:kg,ElButton:oe.a,ElButtonGroup:le.a},props:{value:[Date,String,Number],range:{type:Array,validator:function(e){return!Array.isArray(e)||2===e.length&&e.every((function(e){return"string"===typeof e||"number"===typeof e||e instanceof Date}))}},firstDayOfWeek:{type:Number,default:1}},provide:function(){return{elCalendar:this}},methods:{pickDay:function(e){this.realSelectedDay=e},selectDate:function(e){if(-1===Dg.indexOf(e))throw new Error("invalid type "+e);var t="";t="prev-month"===e?this.prevMonthDatePrefix+"-01":"next-month"===e?this.nextMonthDatePrefix+"-01":this.formatedToday,t!==this.formatedDate&&this.pickDay(t)},toDate:function(e){if(!e)throw new Error("invalid val");return e instanceof Date?e:new Date(e)},rangeValidator:function(e,t){var n=this.realFirstDayOfWeek,i=t?n:0===n?6:n-1,r=(t?"start":"end")+" of range should be "+Ig[i]+".";return e.getDay()===i||(console.warn("[ElementCalendar]",r,"Invalid range will be ignored."),!1)}},computed:{prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),Cg.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return Cg.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return Cg.a.format(e,"yyyy-MM")},formatedDate:function(){return Cg.a.format(this.date,"yyyy-MM-dd")},i18nDate:function(){var e=this.date.getFullYear(),t=this.date.getMonth()+1;return e+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+t)},formatedToday:function(){return Cg.a.format(this.now,"yyyy-MM-dd")},realSelectedDay:{get:function(){return this.value?this.formatedDate:this.selectedDay},set:function(e){this.selectedDay=e;var t=new Date(e);this.$emit("input",t)}},date:function(){if(this.value)return this.toDate(this.value);if(this.realSelectedDay){var e=this.selectedDay.split("-");return new Date(e[0],e[1]-1,e[2])}return this.validatedRange.length?this.validatedRange[0][0]:this.now},validatedRange:function(){var e=this,t=this.range;if(!t)return[];if(t=t.reduce((function(t,n,i){var r=e.toDate(n);return e.rangeValidator(r,0===i)&&(t=t.concat(r)),t}),[]),2===t.length){var n=t,i=n[0],r=n[1];if(i>r)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Object(oa["validateRangeInOneMonth"])(i,r))return[[i,r]];var a=[],o=new Date(i.getFullYear(),i.getMonth()+1,1),s=this.toDate(o.getTime()-Pg);if(!Object(oa["validateRangeInOneMonth"])(o,r))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];a.push([i,s]);var l=this.realFirstDayOfWeek,c=o.getDay(),u=0;return c!==l&&(0===l?u=7-c:(u=l-c,u=u>0?u:7+u)),o=this.toDate(o.getTime()+u*Pg),o.getDate()<r.getDate()&&a.push([o,r]),a}return[]},realFirstDayOfWeek:function(){return this.firstDayOfWeek<1||this.firstDayOfWeek>6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},Lg=Og,Rg=s(Lg,xg,bg,!1,null,null,null);Rg.options.__file="packages/calendar/src/main.vue";var Ng=Rg.exports;Ng.install=function(e){e.component(Ng.name,Ng)};var Fg=Ng,Bg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-fade-in"}},[e.visible?n("div",{staticClass:"el-backtop",style:{right:e.styleRight,bottom:e.styleBottom},on:{click:function(t){return t.stopPropagation(),e.handleClick(t)}}},[e._t("default",[n("el-icon",{attrs:{name:"caret-top"}})])],2):e._e()])},zg=[];Bg._withStripped=!0;var Vg=function(e){return Math.pow(e,3)},Ug=function(e){return e<.5?Vg(2*e)/2:1-Vg(2*(1-e))/2},Hg={name:"ElBacktop",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return this.bottom+"px"},styleRight:function(){return this.right+"px"}},mounted:function(){this.init(),this.throttledScrollHandler=Bd()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll:function(){var e=this.el.scrollTop;this.visible=e>=this.visibilityHeight},handleClick:function(e){this.scrollToTop(),this.$emit("click",e)},scrollToTop:function(){var e=this.el,t=Date.now(),n=e.scrollTop,i=window.requestAnimationFrame||function(e){return setTimeout(e,16)},r=function r(){var a=(Date.now()-t)/500;a<1?(e.scrollTop=n*(1-Ug(a)),i(r)):e.scrollTop=0};i(r)}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},$g=Hg,jg=s($g,Bg,zg,!1,null,null,null);jg.options.__file="packages/backtop/src/main.vue";var Wg=jg.exports;Wg.install=function(e){e.component(Wg.name,Wg)};var Gg=Wg,qg=function(e,t){if(e===window&&(e=document.documentElement),1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n},Xg=function(e){return Object.keys(e||{}).map((function(t){return[t,e[t]]}))},Yg=function(e,t){return e===window||e===document?document.documentElement[t]:e[t]},Kg=function(e){return Yg(e,"offsetHeight")},Zg=function(e){return Yg(e,"clientHeight")},Jg="ElInfiniteScroll",Qg={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},ev=function(e,t){return Object(Wh["isHtmlElement"])(e)?Xg(Qg).reduce((function(n,i){var r=i[0],a=i[1],o=a.type,s=a.default,l=e.getAttribute("infinite-scroll-"+r);switch(l=Object(Wh["isUndefined"])(t[l])?l:t[l],o){case Number:l=Number(l),l=Number.isNaN(l)?s:l;break;case Boolean:l=Object(Wh["isDefined"])(l)?"false"!==l&&Boolean(l):s;break;default:l=o(l)}return n[r]=l,n}),{}):{}},tv=function(e){return e.getBoundingClientRect().top},nv=function(e){var t=this[Jg],n=t.el,i=t.vm,r=t.container,a=t.observer,o=ev(n,i),s=o.distance,l=o.disabled;if(!l){var c=r.getBoundingClientRect();if(c.width||c.height){var u=!1;if(r===n){var h=r.scrollTop+Zg(r);u=r.scrollHeight-h<=s}else{var d=Kg(n)+tv(n)-tv(r),p=Kg(r),f=Number.parseFloat(qg(r,"borderBottomWidth"));u=d-p+f<=s}u&&Object(Wh["isFunction"])(e)?e.call(i):a&&(a.disconnect(),this[Jg].observer=null)}}},iv={name:"InfiniteScroll",inserted:function(e,t,n){var i=t.value,r=n.context,a=Object(Be["getScrollContainer"])(e,!0),o=ev(e,r),s=o.delay,l=o.immediate,c=F()(s,nv.bind(e,i));if(e[Jg]={el:e,vm:r,container:a,onScroll:c},a&&(a.addEventListener("scroll",c),l)){var u=e[Jg].observer=new MutationObserver(c);u.observe(a,{childList:!0,subtree:!0}),c()}},unbind:function(e){var t=e[Jg],n=t.container,i=t.onScroll;n&&n.removeEventListener("scroll",i)},install:function(e){e.directive(iv.name,iv)}},rv=iv,av=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-page-header"},[n("div",{staticClass:"el-page-header__left",on:{click:function(t){e.$emit("back")}}},[n("i",{staticClass:"el-icon-back"}),n("div",{staticClass:"el-page-header__title"},[e._t("title",[e._v(e._s(e.title))])],2)]),n("div",{staticClass:"el-page-header__content"},[e._t("content",[e._v(e._s(e.content))])],2)])},ov=[];av._withStripped=!0;var sv={name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(gs["t"])("el.pageHeader.title")}},content:String}},lv=sv,cv=s(lv,av,ov,!1,null,null,null);cv.options.__file="packages/page-header/src/main.vue";var uv=cv.exports;uv.install=function(e){e.component(uv.name,uv)};var hv=uv,dv=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-cascader-panel",e.border&&"is-bordered"],on:{keydown:e.handleKeyDown}},e._l(e.menus,(function(e,t){return n("cascader-menu",{key:t,ref:"menu",refInFor:!0,attrs:{index:t,nodes:e}})})),1)},pv=[];dv._withStripped=!0;var fv,mv,gv=n(43),vv=n.n(gv),yv=function(e){return e.stopPropagation()},_v={inject:["panel"],components:{ElCheckbox:Li.a,ElRadio:vv.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,i=this.isDisabled,r=this.config,a=r.multiple,o=r.checkStrictly;!o&&i||n.loading||(r.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),a){var i=!!t&&n.checked;e.handleMultiCheckChange(i)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node,n=e[t.level-1]||{};return n.uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,i=this.config,r=i.checkStrictly,a=i.multiple;return a?this.renderCheckbox(e):r?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,i=this.isDisabled,r={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(r.nativeOn.click=yv),e("el-checkbox",eh()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:i}},r]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,i=this.isDisabled;return Object(y["isEqual"])(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:i},on:{change:this.handleCheckChange},nativeOn:{click:yv}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,i=t.renderLabelFn,r=i?i({node:n,data:n.data}):null;return e("span",{class:"el-cascader-node__label"},[r||n.label])}},render:function(e){var t=this,n=this.inActivePath,i=this.inCheckedPath,r=this.isChecked,a=this.isLeaf,o=this.isDisabled,s=this.config,l=this.nodeId,c=s.expandTrigger,u=s.checkStrictly,h=s.multiple,d=!u&&o,p={on:{}};return"click"===c?p.on.click=this.handleExpand:(p.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},p.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!a||o||u||h||(p.on.click=this.handleCheckChange),e("li",eh()([{attrs:{role:"menuitem",id:l,"aria-expanded":n,tabindex:d?null:-1},class:{"el-cascader-node":!0,"is-selectable":u,"in-active-path":n,"in-checked-path":i,"is-active":r,"is-disabled":d}},p]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},xv=_v,bv=s(xv,fv,mv,!1,null,null,null);bv.options.__file="packages/cascader-panel/src/cascader-node.vue";var wv,Sv,Mv=bv.exports,Cv={name:"ElCascaderMenu",mixins:[v.a],inject:["panel"],components:{ElScrollbar:W.a,CascaderNode:Mv},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(y["generateId"])()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,i=this.$refs.hoverZone;if(t&&i)if(t.contains(e.target)){clearTimeout(n);var r=this.$el.getBoundingClientRect(),a=r.left,o=e.clientX-a,s=this.$el,l=s.offsetWidth,c=s.offsetHeight,u=t.offsetTop,h=u+t.offsetHeight;i.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+u+" L"+l+" 0 V"+u+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+h+" L"+l+" "+c+" V"+h+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,i={on:{}};n&&(i.on.expand=this.handleExpand);var r=this.nodes.map((function(n,r){var a=n.hasChildren;return e("cascader-node",eh()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+r,"aria-haspopup":a,"aria-owns":a?t:null}},i]))}));return[].concat(r,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",eh()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},Tv=Cv,Ev=s(Tv,wv,Sv,!1,null,null,null);Ev.options.__file="packages/cascader-panel/src/cascader-menu.vue";var Av=Ev.exports,kv=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function Dv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Iv=0,Pv=function(){function e(t,n,i){Dv(this,e),this.data=t,this.config=n,this.parent=i||null,this.level=this.parent?this.parent.level+1:1,this.uid=Iv++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(e){return e.value})),this.pathLabels=this.pathNodes.map((function(e){return e.label})),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,i=n.children,r=this.data[i];this.hasChildren=Array.isArray(r),this.children=(r||[]).map((function(i){return new e(i,n,t)}))},e.prototype.calculatePathNodes=function(){var e=[this],t=this.parent;while(t)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some((function(e){return Object(y["isEqual"])(e,t)})):Object(y["isEqual"])(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r="onParent"+Object(y["capitalize"])(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[r]&&t[r].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(y["capitalize"])(e);if(t){for(var i=arguments.length,r=Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];t[n]&&t[n].apply(t,r),t.emit.apply(t,[e].concat(r))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children,t=e.filter((function(e){return!e.isDisabled})),n=!!t.length&&t.every((function(e){return e.checked}));this.setCheckState(n)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce((function(e,t){var n=t.checked?1:t.indeterminate?.5:0;return e+n}),0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},kv(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,i=n.disabled,r=n.checkStrictly;return e[i]||!r&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,i=this.children,r=this.config,a=r.lazy,o=r.leaf;if(a){var s=Object(Tt["isDef"])(e[o])?e[o]:!!t&&!i.length;return this.hasChildren=!s,s}return!n}}]),e}(),Ov=Pv;function Lv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Rv=function e(t,n){return t.reduce((function(t,i){return i.isLeaf?t.push(i):(!n&&t.push(i),t=t.concat(e(i.children,n))),t}),[])},Nv=function(){function e(t,n){Lv(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(y["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new Ov(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new Ov(e,this.config,t),i=t?t.children:this.nodes;i.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(y["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:Rv(this.nodes,e)},e.prototype.getNodeByValue=function(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(y["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null},e}(),Fv=Nv,Bv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},zv=wp.a.keys,Vv={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:y["noop"],value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Uv=function(e){return!e.getAttribute("aria-owns")},Hv=function(e,t){var n=e.parentNode;if(n){var i=n.querySelectorAll('.el-cascader-node[tabindex="-1"]'),r=Array.prototype.indexOf.call(i,e);return i[r+t]||null}return null},$v=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},jv=function(e){e&&(e.focus(),!Uv(e)&&e.click())},Wv=function(e){if(e){var t=e.querySelector("input");t?t.click():Uv(e)&&e.click()}},Gv={name:"ElCascaderPanel",components:{CascaderMenu:Av},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return Ct()(Bv({},Vv),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{options:{handler:function(){this.initStore()},immediate:!0,deep:!0},value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},checkedValue:function(e){Object(y["isEqual"])(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(y["isEmpty"])(t)?this.lazyLoad():(this.store=new Fv(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(y["isEqual"])(e,t)||(this.activePath=[],this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this,t=this.getFlattedNodes(this.leafOnly);t.forEach((function(t){t.syncCheckState(e.checkedValue)}))},isEmptyValue:function(e){var t=this.multiple,n=this.config,i=n.emitPath;return!(!t&&!i)&&Object(y["isEmpty"])(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,i=this.activePath,r=this.checkedValue;if(Object(y["isEmpty"])(i))if(this.isEmptyValue(r))this.activePath=[],this.menus=[t.getNodes()];else{var a=n?r[0]:r,o=this.getNodeByValue(a)||{},s=(o.pathNodes||[]).slice(0,-1);this.expandNodes(s)}else{var l=i.map((function(t){return e.getNodeByValue(t.getValue())}));this.expandNodes(l)}},expandNodes:function(e){var t=this;e.forEach((function(e){return t.handleExpand(e,!0)}))},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple,i=n?Object(y["coerceTruthyValueToArray"])(t):[t];this.checkedNodePaths=i.map((function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]}))},handleKeyDown:function(e){var t=e.target,n=e.keyCode;switch(n){case zv.up:var i=Hv(t,-1);jv(i);break;case zv.down:var r=Hv(t,1);jv(r);break;case zv.left:var a=this.$refs.menu[$v(t)-1];if(a){var o=a.$el.querySelector('.el-cascader-node[aria-expanded="true"]');jv(o)}break;case zv.right:var s=this.$refs.menu[$v(t)+1];if(s){var l=s.$el.querySelector('.el-cascader-node[tabindex="-1"]');jv(l)}break;case zv.enter:Wv(t);break;case zv.esc:case zv.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,i=e.level,r=n.slice(0,i-1),a=this.menus.slice(0,i);if(e.isLeaf||(r.push(e),a.push(e.children)),this.activePath=r,this.menus=a,!t){var o=r.map((function(e){return e.getValue()})),s=n.map((function(e){return e.getValue()}));Object(y["valueEquals"])(o,s)||(this.$emit("active-item-change",o),this.$emit("expand-change",o))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,i=this.config;e||(e=e||{root:!0,level:0},this.store=new Fv([],i),this.menus=[this.store.getNodes()]),e.loading=!0;var r=function(i){var r=e.root?null:e;if(i&&i.length&&n.store.appendNodes(i,r),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var a=n.checkedValue[n.loadCount++],o=n.config.value,s=n.config.leaf;if(Array.isArray(i)&&i.filter((function(e){return e[o]===a})).length>0){var l=n.store.getNodeByValue(a);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(i)};i.lazyLoad(e,r)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),i=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");ni()(n,i)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var i=this.getFlattedNodes(e);return i.filter((function(e){return e.checked}))}return this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,i=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=i?[]:null}}},qv=Gv,Xv=s(qv,dv,pv,!1,null,null,null);Xv.options.__file="packages/cascader-panel/src/cascader-panel.vue";var Yv=Xv.exports;Yv.install=function(e){e.component(Yv.name,Yv)};var Kv,Zv,Jv=Yv,Qv={name:"ElAvatar",props:{size:{type:[Number,String],validator:function(e){return"string"===typeof e?["large","medium","small"].includes(e):"number"===typeof e}},shape:{type:String,default:"circle",validator:function(e){return["circle","square"].includes(e)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var e=this.size,t=this.icon,n=this.shape,i=["el-avatar"];return e&&"string"===typeof e&&i.push("el-avatar--"+e),t&&i.push("el-avatar--icon"),n&&i.push("el-avatar--"+n),i.join(" ")}},methods:{handleError:function(){var e=this.error,t=e?e():void 0;!1!==t&&(this.isImageExist=!1)},renderAvatar:function(){var e=this.$createElement,t=this.icon,n=this.src,i=this.alt,r=this.isImageExist,a=this.srcSet,o=this.fit;return r&&n?e("img",{attrs:{src:n,alt:i,srcSet:a},on:{error:this.handleError},style:{"object-fit":o}}):t?e("i",{class:t}):this.$slots.default}},render:function(){var e=arguments[0],t=this.avatarClass,n=this.size,i="number"===typeof n?{height:n+"px",width:n+"px",lineHeight:n+"px"}:{};return e("span",{class:t,style:i},[this.renderAvatar()])}},ey=Qv,ty=s(ey,Kv,Zv,!1,null,null,null);ty.options.__file="packages/avatar/src/main.vue";var ny=ty.exports;ny.install=function(e){e.component(ny.name,ny)};var iy=ny,ry=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-drawer-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-drawer__wrapper",attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-drawer__container",class:e.visible&&"el-drawer__open",attrs:{role:"document",tabindex:"-1"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{ref:"drawer",staticClass:"el-drawer",class:[e.direction,e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,attrs:{"aria-modal":"true","aria-labelledby":"el-drawer__title","aria-label":e.title,role:"dialog",tabindex:"-1"}},[e.withHeader?n("header",{staticClass:"el-drawer__header",attrs:{id:"el-drawer__title"}},[e._t("title",[n("span",{attrs:{role:"heading",title:e.title}},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-drawer__close-btn",attrs:{"aria-label":"close "+(e.title||"drawer"),type:"button"},on:{click:e.closeDrawer}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2):e._e(),e.rendered?n("section",{staticClass:"el-drawer__body"},[e._t("default")],2):e._e()])])])])},ay=[];ry._withStripped=!0;var oy={name:"ElDrawer",mixins:[M.a,A.a],props:{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},customClass:{type:String,default:""},closeOnPressEscape:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},direction:{type:String,default:"rtl",validator:function(e){return-1!==["ltr","rtl","ttb","btt"].indexOf(e)}},modalAppendToBody:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},size:{type:[Number,String],default:"30%"},title:{type:String,default:""},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0},withHeader:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return"rtl"===this.direction||"ltr"===this.direction},drawerSize:function(){return"number"===typeof this.size?this.size+"px":this.size}},data:function(){return{closed:!1,prevActiveElement:null}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el),this.prevActiveElement=document.activeElement):(this.closed||(this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1)),this.$nextTick((function(){t.prevActiveElement&&t.prevActiveElement.focus()})))}},methods:{afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},handleClose:function(){this.closeDrawer()}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},sy=oy,ly=s(sy,ry,ay,!1,null,null,null);ly.options.__file="packages/drawer/src/main.vue";var cy=ly.exports;cy.install=function(e){e.component(cy.name,cy)};var uy=cy,hy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",e._b({attrs:{trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},"el-popover",e.$attrs,!1),[n("div",{staticClass:"el-popconfirm"},[n("p",{staticClass:"el-popconfirm__main"},[e.hideIcon?e._e():n("i",{staticClass:"el-popconfirm__icon",class:e.icon,style:{color:e.iconColor}}),e._v("\n "+e._s(e.title)+"\n ")]),n("div",{staticClass:"el-popconfirm__action"},[n("el-button",{attrs:{size:"mini",type:e.cancelButtonType},on:{click:e.cancel}},[e._v("\n "+e._s(e.displayCancelButtonText)+"\n ")]),n("el-button",{attrs:{size:"mini",type:e.confirmButtonType},on:{click:e.confirm}},[e._v("\n "+e._s(e.displayConfirmButtonText)+"\n ")])],1)]),e._t("reference",null,{slot:"reference"})],2)},dy=[];hy._withStripped=!0;var py=n(44),fy=n.n(py),my={name:"ElPopconfirm",props:{title:{type:String},confirmButtonText:{type:String},cancelButtonText:{type:String},confirmButtonType:{type:String,default:"primary"},cancelButtonType:{type:String,default:"text"},icon:{type:String,default:"el-icon-question"},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1}},components:{ElPopover:fy.a,ElButton:oe.a},data:function(){return{visible:!1}},computed:{displayConfirmButtonText:function(){return this.confirmButtonText||Object(gs["t"])("el.popconfirm.confirmButtonText")},displayCancelButtonText:function(){return this.cancelButtonText||Object(gs["t"])("el.popconfirm.cancelButtonText")}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},gy=my,vy=s(gy,hy,dy,!1,null,null,null);vy.options.__file="packages/popconfirm/src/main.vue";var yy=vy.exports;yy.install=function(e){e.component(yy.name,yy)};var _y=yy,xy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.uiLoading?[n("div",e._b({class:["el-skeleton",e.animated?"is-animated":""]},"div",e.$attrs,!1),[e._l(e.count,(function(t){return[e.loading?e._t("template",e._l(e.rows,(function(i){return n("el-skeleton-item",{key:t+"-"+i,class:{"el-skeleton__paragraph":1!==i,"is-first":1===i,"is-last":i===e.rows&&e.rows>1},attrs:{variant:"p"}})}))):e._e()]}))],2)]:[e._t("default",null,null,e.$attrs)]],2)},by=[];xy._withStripped=!0;var wy={name:"ElSkeleton",props:{animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:4},loading:{type:Boolean,default:!0},throttle:{type:Number,default:0}},watch:{loading:{handler:function(e){var t=this;this.throttle<=0?this.uiLoading=e:e?(clearTimeout(this.timeoutHandle),this.timeoutHandle=setTimeout((function(){t.uiLoading=t.loading}),this.throttle)):this.uiLoading=e},immediate:!0}},data:function(){return{uiLoading:this.throttle<=0&&this.loading}}},Sy=wy,My=s(Sy,xy,by,!1,null,null,null);My.options.__file="packages/skeleton/src/index.vue";var Cy=My.exports;Cy.install=function(e){e.component(Cy.name,Cy)};var Ty=Cy,Ey=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-skeleton__item","el-skeleton__"+e.variant]},["image"===e.variant?n("img-placeholder"):e._e()],1)},Ay=[];Ey._withStripped=!0;var ky=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M64 896V128h896v768H64z m64-128l192-192 116.352 116.352L640 448l256 307.2V192H128v576z m224-480a96 96 0 1 1-0.064 192.064A96 96 0 0 1 352 288z"}})])},Dy=[];ky._withStripped=!0;var Iy={name:"ImgPlaceholder"},Py=Iy,Oy=s(Py,ky,Dy,!1,null,null,null);Oy.options.__file="packages/skeleton/src/img-placeholder.vue";var Ly,Ry=Oy.exports,Ny={name:"ElSkeletonItem",props:{variant:{type:String,default:"text"}},components:(Ly={},Ly[Ry.name]=Ry,Ly)},Fy=Ny,By=s(Fy,Ey,Ay,!1,null,null,null);By.options.__file="packages/skeleton/src/item.vue";var zy=By.exports;zy.install=function(e){e.component(zy.name,zy)};var Vy=zy,Uy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-empty"},[n("div",{staticClass:"el-empty__image",style:e.imageStyle},[e.image?n("img",{attrs:{src:e.image,ondragstart:"return false"}}):e._t("image",[n("img-empty")])],2),n("div",{staticClass:"el-empty__description"},[e.$slots.description?e._t("description"):n("p",[e._v(e._s(e.emptyDescription))])],2),e.$slots.default?n("div",{staticClass:"el-empty__bottom"},[e._t("default")],2):e._e()])},Hy=[];Uy._withStripped=!0;var $y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("defs",[n("linearGradient",{attrs:{id:"linearGradient-1-"+e.id,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#EEEFF3",offset:"100%"}})],1),n("linearGradient",{attrs:{id:"linearGradient-2-"+e.id,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#E9EBEF",offset:"100%"}})],1),n("rect",{attrs:{id:"path-3-"+e.id,x:"0",y:"0",width:"17",height:"36"}})],1),n("g",{attrs:{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{id:"B-type",transform:"translate(-1268.000000, -535.000000)"}},[n("g",{attrs:{id:"Group-2",transform:"translate(1268.000000, 535.000000)"}},[n("path",{attrs:{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:"#F7F8FC"}}),n("polygon",{attrs:{id:"Rectangle-Copy-14",fill:"#E5E7E9",transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"}}),n("g",{attrs:{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"}},[n("polygon",{attrs:{id:"Rectangle-Copy-10",fill:"#E5E7E9",transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"}}),n("polygon",{attrs:{id:"Rectangle-Copy-11",fill:"#EDEEF2",points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"}}),n("rect",{attrs:{id:"Rectangle-Copy-12",fill:"url(#linearGradient-1-"+e.id+")",transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"}}),n("polygon",{attrs:{id:"Rectangle-Copy-13",fill:"#F8F9FB",transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"}})]),n("rect",{attrs:{id:"Rectangle-Copy-15",fill:"url(#linearGradient-2-"+e.id+")",x:"13",y:"45",width:"40",height:"36"}}),n("g",{attrs:{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"}},[n("mask",{attrs:{id:"mask-4-"+e.id,fill:"white"}},[n("use",{attrs:{"xlink:href":"#path-3-"+e.id}})]),n("use",{attrs:{id:"Mask",fill:"#E0E3E9",transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":"#path-3-"+e.id}}),n("polygon",{attrs:{id:"Rectangle-Copy",fill:"#D5D7DE",mask:"url(#mask-4-"+e.id+")",transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 -1.70530257e-13 16"}})]),n("polygon",{attrs:{id:"Rectangle-Copy-18",fill:"#F8F9FB",transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"}})])])])])},jy=[];$y._withStripped=!0;var Wy=0,Gy={name:"ImgEmpty",data:function(){return{id:++Wy}}},qy=Gy,Xy=s(qy,$y,jy,!1,null,null,null);Xy.options.__file="packages/empty/src/img-empty.vue";var Yy,Ky=Xy.exports,Zy={name:"ElEmpty",components:(Yy={},Yy[Ky.name]=Ky,Yy),props:{image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},computed:{emptyDescription:function(){return this.description||Object(gs["t"])("el.empty.description")},imageStyle:function(){return{width:this.imageSize?this.imageSize+"px":""}}}},Jy=Zy,Qy=s(Jy,Uy,Hy,!1,null,null,null);Qy.options.__file="packages/empty/src/index.vue";var e_=Qy.exports;e_.install=function(e){e.component(e_.name,e_)};var t_,n_=e_,i_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r_={name:"ElDescriptionsRow",props:{row:{type:Array}},inject:["elDescriptions"],render:function(e){var t=this.elDescriptions,n=(this.row||[]).map((function(e){return i_({},e,{label:e.slots.label||e.props.label},["labelClassName","contentClassName","labelStyle","contentStyle"].reduce((function(n,i){return n[i]=e.props[i]||t[i],n}),{}))}));return"vertical"===t.direction?e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var i;return e("th",{class:(i={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"has-colon":!t.border&&t.colon,"is-bordered-label":t.border},i[n.labelClassName]=!0,i),style:n.labelStyle,attrs:{colSpan:n.props.span}},[n.label])}))]),e("tr",{class:"el-descriptions-row"},[n.map((function(t){return e("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",t.contentClassName],style:t.contentStyle,attrs:{colSpan:t.props.span}},[t.slots.default])}))])]):t.border?e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var i;return[e("th",{class:(i={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"is-bordered-label":t.border},i[n.labelClassName]=!0,i),style:n.labelStyle,attrs:{colSpan:"1"}},[n.label]),e("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",n.contentClassName],style:n.contentStyle,attrs:{colSpan:2*n.props.span-1}},[n.slots.default])]}))])]):e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var i;return e("td",{class:"el-descriptions-item el-descriptions-item__cell",attrs:{colSpan:n.props.span}},[e("div",{class:"el-descriptions-item__container"},[e("span",{class:(i={"el-descriptions-item__label":!0,"has-colon":t.colon},i[n.labelClassName]=!0,i),style:n.labelStyle},[n.label]),e("span",{class:["el-descriptions-item__content",n.contentClassName],style:n.contentStyle},[n.slots.default])])])}))])])}},a_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o_={name:"ElDescriptions",components:(t_={},t_[r_.name]=r_,t_),props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal"},size:{type:String},title:{type:String,default:""},extra:{type:String,default:""},labelStyle:{type:Object},contentStyle:{type:Object},labelClassName:{type:String,default:""},contentClassName:{type:String,default:""},colon:{type:Boolean,default:!0}},computed:{descriptionsSize:function(){return this.size||(this.$ELEMENT||{}).size}},provide:function(){return{elDescriptions:this}},methods:{getOptionProps:function(e){if(e.componentOptions){var t=e.componentOptions,n=t.propsData,i=void 0===n?{}:n,r=t.Ctor,a=void 0===r?{}:r,o=(a.options||{}).props||{},s={};for(var l in o){var c=o[l],u=c.default;void 0!==u&&(s[l]=Object(Wh["isFunction"])(u)?u.call(e):u)}return a_({},s,i)}return{}},getSlots:function(e){var t=this,n=e.componentOptions||{},i=e.children||n.children||[],r={};return i.forEach((function(e){if(!t.isEmptyElement(e)){var n=e.data&&e.data.slot||"default";r[n]=r[n]||[],"template"===e.tag?r[n].push(e.children):r[n].push(e)}})),a_({},r)},isEmptyElement:function(e){return!(e.tag||e.text&&""!==e.text.trim())},filledNode:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.props||(e.props={}),t>n&&(e.props.span=n),i&&(e.props.span=n),e},getRows:function(){var e=this,t=(this.$slots.default||[]).filter((function(e){return e.tag&&e.componentOptions&&"ElDescriptionsItem"===e.componentOptions.Ctor.options.name})),n=t.map((function(t){return{props:e.getOptionProps(t),slots:e.getSlots(t),vnode:t}})),i=[],r=[],a=this.column;return n.forEach((function(n,o){var s=n.props.span||1;if(o===t.length-1)return r.push(e.filledNode(n,s,a,!0)),void i.push(r);s<a?(a-=s,r.push(n)):(r.push(e.filledNode(n,s,a)),i.push(r),a=e.column,r=[])})),i}},render:function(){var e=arguments[0],t=this.title,n=this.extra,i=this.border,r=this.descriptionsSize,a=this.$slots,o=this.getRows();return e("div",{class:"el-descriptions"},[t||n||a.title||a.extra?e("div",{class:"el-descriptions__header"},[e("div",{class:"el-descriptions__title"},[a.title?a.title:t]),e("div",{class:"el-descriptions__extra"},[a.extra?a.extra:n])]):null,e("div",{class:"el-descriptions__body"},[e("table",{class:["el-descriptions__table",{"is-bordered":i},r?"el-descriptions--"+r:""]},[o.map((function(t){return e(r_,{attrs:{row:t}})}))])])])},install:function(e){e.component(o_.name,o_)}},s_=o_,l_={name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},contentClassName:{type:String,default:""},contentStyle:{type:Object},labelClassName:{type:String,default:""},labelStyle:{type:Object}},render:function(){return null},install:function(e){e.component(l_.name,l_)}},c_=l_,u_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-result"},[n("div",{staticClass:"el-result__icon"},[e._t("icon",[n(e.iconElement,{tag:"component",class:e.iconElement})])],2),e.title||e.$slots.title?n("div",{staticClass:"el-result__title"},[e._t("title",[n("p",[e._v(e._s(e.title))])])],2):e._e(),e.subTitle||e.$slots.subTitle?n("div",{staticClass:"el-result__subtitle"},[e._t("subTitle",[n("p",[e._v(e._s(e.subTitle))])])],2):e._e(),e.$slots.extra?n("div",{staticClass:"el-result__extra"},[e._t("extra")],2):e._e()])},h_=[];u_._withStripped=!0;var d_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M34.5548098,16.4485711 C33.9612228,15.8504763 32.9988282,15.8504763 32.4052412,16.4485711 L32.4052412,16.4485711 L21.413757,27.5805811 L21.413757,27.5805811 L21.4034642,27.590855 C21.0097542,27.9781674 20.3766105,27.9729811 19.9892981,27.5792711 L19.9892981,27.5792711 L15.5947588,23.1121428 C15.0011718,22.514048 14.0387772,22.514048 13.4451902,23.1121428 C12.8516033,23.7102376 12.8516033,24.6799409 13.4451902,25.2780357 L13.4451902,25.2780357 L19.6260786,31.5514289 C20.2196656,32.1495237 21.1820602,32.1495237 21.7756472,31.5514289 L21.7756472,31.5514289 L34.5548098,18.614464 C35.1483967,18.0163692 35.1483967,17.0466659 34.5548098,16.4485711 Z"}})])},p_=[];d_._withStripped=!0;var f_={name:"IconSuccess"},m_=f_,g_=s(m_,d_,p_,!1,null,null,null);g_.options.__file="packages/result/src/icon-success.vue";var v_=g_.exports,y_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.57818,15.42182 C32.0157534,14.8593933 31.1038797,14.8593933 30.541453,15.42182 L30.541453,15.42182 L24.0006789,21.9625941 L17.458547,15.42182 C16.8961203,14.8593933 15.9842466,14.8593933 15.42182,15.42182 C14.8593933,15.9842466 14.8593933,16.8961203 15.42182,17.458547 L15.42182,17.458547 L21.9639519,23.9993211 L15.42182,30.541453 C14.8593933,31.1038797 14.8593933,32.0157534 15.42182,32.57818 C15.9842466,33.1406067 16.8961203,33.1406067 17.458547,32.57818 L17.458547,32.57818 L24.0006789,26.0360481 L30.541453,32.57818 C31.1038797,33.1406067 32.0157534,33.1406067 32.57818,32.57818 C33.1406067,32.0157534 33.1406067,31.1038797 32.57818,30.541453 L32.57818,30.541453 L26.0374059,23.9993211 L32.57818,17.458547 C33.1406067,16.8961203 33.1406067,15.9842466 32.57818,15.42182 Z"}})])},__=[];y_._withStripped=!0;var x_={name:"IconError"},b_=x_,w_=s(b_,y_,__,!1,null,null,null);w_.options.__file="packages/result/src/icon-error.vue";var S_=w_.exports,M_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,31 C22.8954305,31 22,31.8954305 22,33 C22,34.1045695 22.8954305,35 24,35 C25.1045695,35 26,34.1045695 26,33 C26,31.8954305 25.1045695,31 24,31 Z M24,14 C23.1715729,14 22.5,14.6715729 22.5,15.5 L22.5,15.5 L22.5,27.5 C22.5,28.3284271 23.1715729,29 24,29 C24.8284271,29 25.5,28.3284271 25.5,27.5 L25.5,27.5 L25.5,15.5 C25.5,14.6715729 24.8284271,14 24,14 Z"}})])},C_=[];M_._withStripped=!0;var T_={name:"IconWarning"},E_=T_,A_=s(E_,M_,C_,!1,null,null,null);A_.options.__file="packages/result/src/icon-warning.vue";var k_=A_.exports,D_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,19 L21,19 C20.1715729,19 19.5,19.6715729 19.5,20.5 C19.5,21.3284271 20.1715729,22 21,22 L21,22 L22.5,22 L22.5,31 L21,31 C20.1715729,31 19.5,31.6715729 19.5,32.5 C19.5,33.3284271 20.1715729,34 21,34 L21,34 L27,34 C27.8284271,34 28.5,33.3284271 28.5,32.5 C28.5,31.6715729 27.8284271,31 27,31 L27,31 L25.5,31 L25.5,20.5 C25.5,19.6715729 24.8284271,19 24,19 L24,19 Z M24,13 C22.8954305,13 22,13.8954305 22,15 C22,16.1045695 22.8954305,17 24,17 C25.1045695,17 26,16.1045695 26,15 C26,13.8954305 25.1045695,13 24,13 Z"}})])},I_=[];D_._withStripped=!0;var P_={name:"IconInfo"},O_=P_,L_=s(O_,D_,I_,!1,null,null,null);L_.options.__file="packages/result/src/icon-info.vue";var R_,N_=L_.exports,F_={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},B_={name:"ElResult",components:(R_={},R_[v_.name]=v_,R_[S_.name]=S_,R_[k_.name]=k_,R_[N_.name]=N_,R_),props:{title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,default:"info"}},computed:{iconElement:function(){var e=this.icon;return e&&F_[e]?F_[e]:"icon-info"}}},z_=B_,V_=s(z_,u_,h_,!1,null,null,null);V_.options.__file="packages/result/src/index.vue";var U_=V_.exports;U_.install=function(e){e.component(U_.name,U_)};var H_=U_,$_=[x,O,re,pe,xe,Ee,We,et,ct,gt,It,zt,Gt,en,ln,mn,wn,kn,Nn,li,ci,gi,Si,Di,Yr,ia,Io,$o,ns,hs,ps,Ws,Js,al,xl,Ul,Kl,tc,Dc,Bc,fu,zu,Uu,ju,Sh,Dh,Fh,od,pd,xd,Ed,Ld,$d,Xd,np,cp,gp,Ip,Pf,Wf,Jf,am,dm,_m,Am,Om,Vm,qm,eg,_g,Fg,Gg,hv,Jv,iy,uy,_y,Ty,Vy,n_,s_,c_,H_,qe.a],j_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};vs.a.use(t.locale),vs.a.i18n(t.i18n),$_.forEach((function(t){e.component(t.name,t)})),e.use(rv),e.use(Pu.directive),e.prototype.$ELEMENT={size:t.size||"",zIndex:t.zIndex||2e3},e.prototype.$loading=Pu.service,e.prototype.$msgbox=Bs,e.prototype.$alert=Bs.alert,e.prototype.$confirm=Bs.confirm,e.prototype.$prompt=Bs.prompt,e.prototype.$notify=Jc,e.prototype.$message=Qh};"undefined"!==typeof window&&window.Vue&&j_(window.Vue);t["default"]={version:"2.15.8",locale:vs.a.use,i18n:vs.a.i18n,install:j_,CollapseTransition:qe.a,Loading:Pu,Pagination:x,Dialog:O,Autocomplete:re,Dropdown:pe,DropdownMenu:xe,DropdownItem:Ee,Menu:We,Submenu:et,MenuItem:ct,MenuItemGroup:gt,Input:It,InputNumber:zt,Radio:Gt,RadioGroup:en,RadioButton:ln,Checkbox:mn,CheckboxButton:wn,CheckboxGroup:kn,Switch:Nn,Select:li,Option:ci,OptionGroup:gi,Button:Si,ButtonGroup:Di,Table:Yr,TableColumn:ia,DatePicker:Io,TimeSelect:$o,TimePicker:ns,Popover:hs,Tooltip:ps,MessageBox:Bs,Breadcrumb:Ws,BreadcrumbItem:Js,Form:al,FormItem:xl,Tabs:Ul,TabPane:Kl,Tag:tc,Tree:Dc,Alert:Bc,Notification:Jc,Slider:fu,Icon:zu,Row:Uu,Col:ju,Upload:Sh,Progress:Dh,Spinner:Fh,Message:Qh,Badge:od,Card:pd,Rate:xd,Steps:Ed,Step:Ld,Carousel:$d,Scrollbar:Xd,CarouselItem:np,Collapse:cp,CollapseItem:gp,Cascader:Ip,ColorPicker:Pf,Transfer:Wf,Container:Jf,Header:am,Aside:dm,Main:_m,Footer:Am,Timeline:Om,TimelineItem:Vm,Link:qm,Divider:eg,Image:_g,Calendar:Fg,Backtop:Gg,InfiniteScroll:rv,PageHeader:hv,CascaderPanel:Jv,Avatar:iy,Drawer:uy,Popconfirm:_y,Skeleton:Ty,SkeletonItem:Vy,Empty:n_,Descriptions:s_,DescriptionsItem:c_,Result:H_}}])["default"]},49016:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=86)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},10:function(e,t){e.exports=n(49623)},2:function(e,t){e.exports=n(75132)},22:function(e,t){e.exports=n(14852)},30:function(e,t,n){"use strict";var i=n(2);t["a"]={bind:function(e,t,n){var r=null,a=void 0,o=function(){return n.context[t.expression].apply()},s=function(){Date.now()-a<100&&o(),clearInterval(r),r=null};Object(i["on"])(e,"mousedown",(function(e){0===e.button&&(a=Date.now(),Object(i["once"])(document,"mouseup",s),clearInterval(r),r=setInterval(o,100))}))}}},86:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.decrease(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.increase(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.increase(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.decrease(t))}]}})],1)},r=[];i._withStripped=!0;var a=n(10),o=n.n(a),s=n(22),l=n.n(s),c=n(30),u={name:"ElInputNumber",mixins:[l()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:c["a"]},components:{ElInput:o.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),i=Math.pow(10,n);t=Math.round(t/this.step)*i*this.step/i}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,i=this.precision,r=n(t);return void 0!==i?(r>i&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),i):Math.max(n(e),r)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"===typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),i=0;return-1!==n&&(i=t.length-n-1),i},_increase:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"===typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){var e=this.$refs.input.$refs.input;e.setAttribute("aria-valuenow",this.currentValue)}}},h=u,d=n(0),p=Object(d["a"])(h,i,r,!1,null,null,null);p.options.__file="packages/input-number/src/input-number.vue";var f=p.exports;f.install=function(e){e.component(f.name,f)};t["default"]=f}})},49623:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=74)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},11:function(e,t){e.exports=n(61425)},21:function(e,t){e.exports=n(3743)},4:function(e,t){e.exports=n(6392)},74:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},r=[];i._withStripped=!0;var a=n(4),o=n.n(a),s=n(11),l=n.n(s),c=void 0,u="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",h=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function d(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),r=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),a=h.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:a,paddingSize:i,borderSize:r,boxSizing:n}}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;c||(c=document.createElement("textarea"),document.body.appendChild(c));var i=d(e),r=i.paddingSize,a=i.borderSize,o=i.boxSizing,s=i.contextStyle;c.setAttribute("style",s+";"+u),c.value=e.value||e.placeholder||"";var l=c.scrollHeight,h={};"border-box"===o?l+=a:"content-box"===o&&(l-=r),c.value="";var p=c.scrollHeight-r;if(null!==t){var f=p*t;"border-box"===o&&(f=f+r+a),l=Math.max(f,l),h.minHeight=f+"px"}if(null!==n){var m=p*n;"border-box"===o&&(m=m+r+a),l=Math.min(m,l)}return h.height=l+"px",c.parentNode&&c.parentNode.removeChild(c),c=null,h}var f=n(9),m=n.n(f),g=n(21),v={name:"ElInput",componentName:"ElInput",mixins:[o.a,l.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return m()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,i=e.maxRows;this.textareaCalcStyle=p(this.$refs.textarea,n,i)}else this.textareaCalcStyle={minHeight:p(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(e){this.$emit("compositionstart",e),this.isComposing=!0},handleCompositionUpdate:function(e){this.$emit("compositionupdate",e);var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(g["isKorean"])(n)},handleCompositionEnd:function(e){this.$emit("compositionend",e),this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,i=0;i<t.length;i++)if(t[i].parentNode===this.$el){n=t[i];break}if(n){var r={suffix:"append",prefix:"prepend"},a=r[e];this.$slots[a]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+a).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},y=v,_=n(0),x=Object(_["a"])(y,i,r,!1,null,null,null);x.options.__file="packages/input/src/input.vue";var b=x.exports;b.install=function(e){e.component(b.name,b)};t["default"]=b},9:function(e,t){e.exports=n(85032)}})},20065:function(e,t,n){"use strict";t.__esModule=!0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t["default"]=function(e){function t(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return 1===n.length&&"object"===i(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(a,(function(t,i,a,o){var s=void 0;return"{"===e[o-1]&&"}"===e[o+t.length]?a:(s=(0,r.hasOwn)(n,a)?n[a]:null,null===s||void 0===s?"":s)}))}return t};var r=n(2634),a=/(%|)\{([0-9a-zA-Z_]+)\}/g},53275:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var i=n(76656),r=h(i),a=n(30783),o=h(a),s=n(87187),l=h(s),c=n(20065),u=h(c);function h(e){return e&&e.__esModule?e:{default:e}}var d=(0,u.default)(o.default),p=r.default,f=!1,m=function(){var e=Object.getPrototypeOf(this||o.default).$t;if("function"===typeof e&&o.default.locale)return f||(f=!0,o.default.locale(o.default.config.lang,(0,l.default)(p,o.default.locale(o.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},g=t.t=function(e,t){var n=m.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var i=e.split("."),r=p,a=0,o=i.length;a<o;a++){var s=i[a];if(n=r[s],a===o-1)return d(n,t);if(!n)return"";r=n}return""},v=t.use=function(e){p=e||p},y=t.i18n=function(e){m=e||m};t["default"]={use:v,t:g,i18n:y}},76656:function(e,t){"use strict";t.__esModule=!0,t["default"]={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},6392:function(e,t){"use strict";function n(e,t,i){this.$children.forEach((function(r){var a=r.$options.componentName;a===e?r.$emit.apply(r,[t].concat(i)):n.apply(r,[e,t].concat([i]))}))}t.__esModule=!0,t["default"]={methods:{dispatch:function(e,t,n){var i=this.$parent||this.$root,r=i.$options.componentName;while(i&&(!r||r!==e))i=i.$parent,i&&(r=i.$options.componentName);i&&i.$emit.apply(i,[t].concat(n))},broadcast:function(e,t,i){n.call(this,e,t,i)}}}},14852:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},16534:function(e,t,n){"use strict";t.__esModule=!0;var i=n(53275);t["default"]={methods:{t:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.t.apply(this,t)}}}},61425:function(e,t,n){"use strict";t.__esModule=!0;n(2634);t["default"]={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},39024:function(e,t,n){n(70252),e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=53)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},3:function(e,t){e.exports=n(2634)},33:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},r=[];i._withStripped=!0;var a=n(4),o=n.n(a),s=n(3),l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c={mixins:[o.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===("undefined"===typeof e?"undefined":l(e))&&"object"===("undefined"===typeof t?"undefined":l(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(s["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,i=n?t:[t],r=this.select.cachedOptions.indexOf(this),a=i.indexOf(this);r>-1&&a<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},u=c,h=n(0),d=Object(h["a"])(u,i,r,!1,null,null,null);d.options.__file="packages/select/src/option.vue";t["a"]=d.exports},4:function(e,t){e.exports=n(6392)},53:function(e,t,n){"use strict";n.r(t);var i=n(33);i["a"].install=function(e){e.component(i["a"].name,i["a"])},t["default"]=i["a"]}})},15851:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=77)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},2:function(e,t){e.exports=n(75132)},3:function(e,t){e.exports=n(2634)},5:function(e,t){e.exports=n(37928)},7:function(e,t){e.exports=n(30783)},77:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)},r=[];i._withStripped=!0;var a=n(5),o=n.n(a),s=n(2),l=n(3),c={name:"ElPopover",mixins:[o.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(l["generateId"])()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(s["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(s["on"])(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(s["on"])(n,"focusin",this.handleFocus),Object(s["on"])(t,"focusout",this.handleBlur),Object(s["on"])(n,"focusout",this.handleBlur)),Object(s["on"])(t,"keydown",this.handleKeydown),Object(s["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(s["on"])(t,"click",this.doToggle),Object(s["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(s["on"])(t,"mouseenter",this.handleMouseEnter),Object(s["on"])(n,"mouseenter",this.handleMouseEnter),Object(s["on"])(t,"mouseleave",this.handleMouseLeave),Object(s["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(s["on"])(t,"focusin",this.doShow),Object(s["on"])(t,"focusout",this.doClose)):(Object(s["on"])(t,"mousedown",this.doShow),Object(s["on"])(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(s["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(s["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(s["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(s["off"])(e,"click",this.doToggle),Object(s["off"])(e,"mouseup",this.doClose),Object(s["off"])(e,"mousedown",this.doShow),Object(s["off"])(e,"focusin",this.doShow),Object(s["off"])(e,"focusout",this.doClose),Object(s["off"])(e,"mousedown",this.doShow),Object(s["off"])(e,"mouseup",this.doClose),Object(s["off"])(e,"mouseleave",this.handleMouseLeave),Object(s["off"])(e,"mouseenter",this.handleMouseEnter),Object(s["off"])(document,"click",this.handleDocumentClick)}},u=c,h=n(0),d=Object(h["a"])(u,i,r,!1,null,null,null);d.options.__file="packages/popover/src/main.vue";var p=d.exports,f=function(e,t,n){var i=t.expression?t.value:t.arg,r=n.context.$refs[i];r&&(Array.isArray(r)?r[0].$refs.reference=e:r.$refs.reference=e)},m={bind:function(e,t,n){f(e,t,n)},inserted:function(e,t,n){f(e,t,n)}},g=n(7),v=n.n(g);v.a.directive("popover",m),p.install=function(e){e.directive("popover",m),e.component(p.name,p)},p.directive=m;t["default"]=p}})},76853:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=103)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},103:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:"#e5e9f2","stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px"}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])},r=[];i._withStripped=!0;var a={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){var e=-1*this.perimeter*(1-this.rate)/2;return e+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"===typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"===typeof this.color?this.color(e):"string"===typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort((function(e,t){return e.percentage-t.percentage})),n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map((function(e,n){return"string"===typeof e?{color:e,percentage:(n+1)*t}:e}))}}},o=a,s=n(0),l=Object(s["a"])(o,i,r,!1,null,null,null);l.options.__file="packages/progress/src/progress.vue";var c=l.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},10266:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=87)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},4:function(e,t){e.exports=n(6392)},87:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},r=[];i._withStripped=!0;var a=n(4),o=n.n(a),s={name:"ElRadio",mixins:[o.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},l=s,c=n(0),u=Object(c["a"])(l,i,r,!1,null,null,null);u.options.__file="packages/radio/src/radio.vue";var h=u.exports;h.install=function(e){e.component(h.name,h)};t["default"]=h}})},17191:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=131)}({131:function(e,t,n){"use strict";n.r(t);var i=n(16),r=n(38),a=n.n(r),o=n(3),s=n(2),l={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function c(e){var t=e.move,n=e.size,i=e.bar,r={},a="translate"+i.axis+"("+t+"%)";return r[i.size]=n,r.transform=a,r.msTransform=a,r.webkitTransform=a,r}var u={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return l[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,i=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+i.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:c({size:t,move:n,bar:i})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,i=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(s["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(s["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),i=this.$refs.thumb[this.bar.offset]-t,r=100*(n-i)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(s["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},h={name:"ElScrollbar",components:{Bar:u},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=a()(),n=this.wrapStyle;if(t){var i="-"+t+"px",r="margin-bottom: "+i+"; margin-right: "+i+";";Array.isArray(this.wrapStyle)?(n=Object(o["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=i):"string"===typeof this.wrapStyle?n+=r:n=r}var s=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),l=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[s]]),c=void 0;return c=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[l,e(u,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(u,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},c)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(i["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(i["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(h.name,h)}};t["default"]=h},16:function(e,t){e.exports=n(87338)},2:function(e,t){e.exports=n(75132)},3:function(e,t){e.exports=n(2634)},38:function(e,t){e.exports=n(84661)}})},50940:function(e,t,n){n(70252),e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=61)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},10:function(e,t){e.exports=n(49623)},12:function(e,t){e.exports=n(76267)},15:function(e,t){e.exports=n(17191)},16:function(e,t){e.exports=n(87338)},18:function(e,t){e.exports=n(74947)},21:function(e,t){e.exports=n(3743)},22:function(e,t){e.exports=n(14852)},3:function(e,t){e.exports=n(2634)},31:function(e,t){e.exports=n(17889)},33:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},r=[];i._withStripped=!0;var a=n(4),o=n.n(a),s=n(3),l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c={mixins:[o.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===("undefined"===typeof e?"undefined":l(e))&&"object"===("undefined"===typeof t?"undefined":l(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(s["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,i=n?t:[t],r=this.select.cachedOptions.indexOf(this),a=i.indexOf(this);r>-1&&a<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},u=c,h=n(0),d=Object(h["a"])(u,i,r,!1,null,null,null);d.options.__file="packages/select/src/option.vue";t["a"]=d.exports},37:function(e,t){e.exports=n(53408)},4:function(e,t){e.exports=n(6392)},5:function(e,t){e.exports=n(37928)},6:function(e,t){e.exports=n(16534)},61:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)},r=[];i._withStripped=!0;var a=n(4),o=n.n(a),s=n(22),l=n.n(s),c=n(6),u=n.n(c),h=n(10),d=n.n(h),p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},f=[];p._withStripped=!0;var m=n(5),g=n.n(m),v={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[g.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},y=v,_=n(0),x=Object(_["a"])(y,p,f,!1,null,null,null);x.options.__file="packages/select/src/select-dropdown.vue";var b=x.exports,w=n(33),S=n(37),M=n.n(S),C=n(15),T=n.n(C),E=n(18),A=n.n(E),k=n(12),D=n.n(k),I=n(16),P=n(31),O=n.n(P),L=n(3),R={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},N=n(21),F={mixins:[o.a,u.a,l()("reference"),R],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(L["isIE"])()&&!Object(L["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:d.a,ElSelectMenu:b,ElOption:w["a"],ElTag:M.a,ElScrollbar:T.a},directives:{Clickoutside:D.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(L["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(e){this.isOnComposition||this.navigateOptions(e)},handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var i=n[n.length-1]||"";this.isOnComposition=!Object(N["isKorean"])(i)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");O()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(L["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),i="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),a=this.cachedOptions.length-1;a>=0;a--){var o=this.cachedOptions[a],s=n?Object(L["getValueByPath"])(o.value,this.valueKey)===Object(L["getValueByPath"])(e,this.valueKey):o.value===e;if(s){t=o;break}}if(t)return t;var l=n||i||r?"":String(e),c={value:e,currentLabel:l};return this.multiple&&(c.hitState=!1),c},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],i=e.$refs.tags,r=i?Math.round(i.getBoundingClientRect().height):0,a=e.initialInputHeight||40;n.style.height=0===e.selected.length?a+"px":Math.max(i?r+(r>a?6:0):0,a)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var i=(this.value||[]).slice(),r=this.getValueIndex(i,e.value);r>-1?i.splice(r,1):(this.multipleLimit<=0||i.length<this.multipleLimit)&&i.push(e.value),this.$emit("input",i),this.emitChange(i),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(e)}))},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var i=this.valueKey,r=-1;return e.some((function(e,n){return Object(L["getValueByPath"])(e,i)===Object(L["getValueByPath"])(t,i)&&(r=n,!0)})),r}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var i=this.value.slice();i.splice(n,1),this.$emit("input",i),this.emitChange(i),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var i=this.options[n];if(this.query){if(!i.disabled&&!i.groupDisabled&&i.visible){this.hoverIndex=n;break}}else if(i.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(L["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=A()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=A()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(I["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},i=t.$el.querySelector("input");this.initialInputHeight=i.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(I["removeResizeListener"])(this.$el,this.handleResize)}},B=F,z=Object(_["a"])(B,i,r,!1,null,null,null);z.options.__file="packages/select/src/select.vue";var V=z.exports;V.install=function(e){e.component(V.name,V)};t["default"]=V}})},53408:function(e){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=130)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},130:function(e,t,n){"use strict";n.r(t);var i,r,a={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,i=this.hit,r=this.effect,a=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",r?"el-tag--"+r:"",i&&"is-hit"],o=e("span",{class:a,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?o:e("transition",{attrs:{name:"el-zoom-in-center"}},[o])}},o=a,s=n(0),l=Object(s["a"])(o,i,r,!1,null,null,null);l.options.__file="packages/tag/src/tag.vue";var c=l.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},36056:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=136)}({136:function(e,t,n){"use strict";n.r(t);var i=n(5),r=n.n(i),a=n(18),o=n.n(a),s=n(2),l=n(3),c=n(7),u=n.n(c),h={name:"ElTooltip",mixins:[r.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(l["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new u.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=o()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var i=n.data=n.data||{};return i.staticClass=this.addTooltipClass(i.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(s["on"])(this.referenceElm,"mouseenter",this.show),Object(s["on"])(this.referenceElm,"mouseleave",this.hide),Object(s["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(s["on"])(this.referenceElm,"blur",this.handleBlur),Object(s["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(s["addClass"])(this.referenceElm,"focusing"):Object(s["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n<e.length;n++)e[n]&&e[n].tag&&(t=e[n]);return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(s["off"])(e,"mouseenter",this.show),Object(s["off"])(e,"mouseleave",this.hide),Object(s["off"])(e,"focus",this.handleFocus),Object(s["off"])(e,"blur",this.handleBlur),Object(s["off"])(e,"click",this.removeFocusing))},install:function(e){e.component(h.name,h)}};t["default"]=h},18:function(e,t){e.exports=n(74947)},2:function(e,t){e.exports=n(75132)},3:function(e,t){e.exports=n(2634)},5:function(e,t){e.exports=n(37928)},7:function(e,t){e.exports=n(30783)}})},68817:function(e,t,n){"use strict";t.__esModule=!0;var i=n(75132);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(){r(this,e)}return e.prototype.beforeEnter=function(e){(0,i.addClass)(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},e.prototype.enter=function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},e.prototype.afterEnter=function(e){(0,i.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},e.prototype.beforeLeave=function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},e.prototype.leave=function(e){0!==e.scrollHeight&&((0,i.addClass)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},e.prototype.afterLeave=function(e){(0,i.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},e}();t["default"]={name:"ElCollapseTransition",functional:!0,render:function(e,t){var n=t.children,i={on:new a};return e("transition",i,n)}}},39720:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");var r=!1,a=function(){r||(r=!0,t&&t.apply(null,arguments))};i?e.$once("after-leave",a):e.$on("after-leave",a),setTimeout((function(){a()}),n+100)}},92169:function(e,t,n){"use strict";t.__esModule=!0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(62918),a=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var s,l=l||{};l.Dialog=function(e,t,n){var r=this;if(this.dialogNode=e,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"===typeof t?this.focusAfterClosed=document.getElementById(t):"object"===("undefined"===typeof t?"undefined":i(t))?this.focusAfterClosed=t:this.focusAfterClosed=null,"string"===typeof n?this.focusFirst=document.getElementById(n):"object"===("undefined"===typeof n?"undefined":i(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():a.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,s=function(e){r.trapFocus(e)},this.addListeners()},l.Dialog.prototype.addListeners=function(){document.addEventListener("focus",s,!0)},l.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",s,!0)},l.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){e.focusAfterClosed.focus()}))},l.Dialog.prototype.trapFocus=function(e){a.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(a.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&a.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t["default"]=l.Dialog},62918:function(e,t){"use strict";t.__esModule=!0;var n=n||{};n.Utils=n.Utils||{},n.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var i=e.childNodes[t];if(n.Utils.attemptFocus(i)||n.Utils.focusFirstDescendant(i))return!0}return!1},n.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var i=e.childNodes[t];if(n.Utils.attemptFocus(i)||n.Utils.focusLastDescendant(i))return!0}return!1},n.Utils.attemptFocus=function(e){if(!n.Utils.isFocusable(e))return!1;n.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return n.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},n.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},n.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var i=document.createEvent(n),r=arguments.length,a=Array(r>2?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o];return i.initEvent.apply(i,[t].concat(a)),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent("on"+t,i),e},n.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},t["default"]=n.Utils},76267:function(e,t,n){"use strict";n(70252),t.__esModule=!0;var i=n(30783),r=o(i),a=n(75132);function o(e){return e&&e.__esModule?e:{default:e}}var s=[],l="@@clickoutsideContext",c=void 0,u=0;function h(e,t,n){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&i.target&&r.target)||e.contains(i.target)||e.contains(r.target)||e===i.target||n.context.popperElm&&(n.context.popperElm.contains(i.target)||n.context.popperElm.contains(r.target))||(t.expression&&e[l].methodName&&n.context[e[l].methodName]?n.context[e[l].methodName]():e[l].bindingFn&&e[l].bindingFn())}}!r.default.prototype.$isServer&&(0,a.on)(document,"mousedown",(function(e){return c=e})),!r.default.prototype.$isServer&&(0,a.on)(document,"mouseup",(function(e){s.forEach((function(t){return t[l].documentHandler(e,c)}))})),t["default"]={bind:function(e,t,n){s.push(e);var i=u++;e[l]={id:i,documentHandler:h(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[l].documentHandler=h(e,t,n),e[l].methodName=t.expression,e[l].bindingFn=t.value},unbind:function(e){for(var t=s.length,n=0;n<t;n++)if(s[n][l].id===e[l].id){s.splice(n,1);break}delete e[l]}}},32952:function(e,t,n){"use strict";n(70252),t.__esModule=!0,t.validateRangeInOneMonth=t.extractTimeFormat=t.extractDateFormat=t.nextYear=t.prevYear=t.nextMonth=t.prevMonth=t.changeYearMonthAndClampDate=t.timeWithinRange=t.limitTimeRange=t.clearMilliseconds=t.clearTime=t.modifyWithTimeString=t.modifyTime=t.modifyDate=t.range=t.getRangeMinutes=t.getMonthDays=t.getPrevMonthLastDays=t.getRangeHours=t.getWeekNumber=t.getStartDateOfMonth=t.nextDate=t.prevDate=t.getFirstDayOfMonth=t.getDayCountOfYear=t.getDayCountOfMonth=t.parseDate=t.formatDate=t.isDateObject=t.isDate=t.toDate=t.getI18nSettings=void 0;var i=n(48850),r=o(i),a=n(53275);function o(e){return e&&e.__esModule?e:{default:e}}var s=["sun","mon","tue","wed","thu","fri","sat"],l=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],c=function(e,t){for(var n=[],i=e;i<=t;i++)n.push(i);return n},u=t.getI18nSettings=function(){return{dayNamesShort:s.map((function(e){return(0,a.t)("el.datepicker.weeks."+e)})),dayNames:s.map((function(e){return(0,a.t)("el.datepicker.weeks."+e)})),monthNamesShort:l.map((function(e){return(0,a.t)("el.datepicker.months."+e)})),monthNames:l.map((function(e,t){return(0,a.t)("el.datepicker.month"+(t+1))})),amPm:["am","pm"]}},h=t.toDate=function(e){return d(e)?new Date(e):null},d=t.isDate=function(e){return null!==e&&void 0!==e&&(!isNaN(new Date(e).getTime())&&!Array.isArray(e))},p=(t.isDateObject=function(e){return e instanceof Date},t.formatDate=function(e,t){return e=h(e),e?r.default.format(e,t||"yyyy-MM-dd",u()):""},t.parseDate=function(e,t){return r.default.parse(e,t||"yyyy-MM-dd",u())}),f=t.getDayCountOfMonth=function(e,t){return 3===t||5===t||8===t||10===t?30:1===t?e%4===0&&e%100!==0||e%400===0?29:28:31},m=(t.getDayCountOfYear=function(e){var t=e%400===0||e%100!==0&&e%4===0;return t?366:365},t.getFirstDayOfMonth=function(e){var t=new Date(e.getTime());return t.setDate(1),t.getDay()},t.prevDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-t)});t.nextDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},t.getStartDateOfMonth=function(e,t){var n=new Date(e,t,1),i=n.getDay();return m(n,0===i?7:i)},t.getWeekNumber=function(e){if(!d(e))return null;var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},t.getRangeHours=function(e){var t=[],n=[];if((e||[]).forEach((function(e){var t=e.map((function(e){return e.getHours()}));n=n.concat(c(t[0],t[1]))})),n.length)for(var i=0;i<24;i++)t[i]=-1===n.indexOf(i);else for(var r=0;r<24;r++)t[r]=!1;return t},t.getPrevMonthLastDays=function(e,t){if(t<=0)return[];var n=new Date(e.getTime());n.setDate(0);var i=n.getDate();return v(t).map((function(e,n){return i-(t-n-1)}))},t.getMonthDays=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=t.getDate();return v(n).map((function(e,t){return t+1}))};function g(e,t,n,i){for(var r=t;r<n;r++)e[r]=i}t.getRangeMinutes=function(e,t){var n=new Array(60);return e.length>0?e.forEach((function(e){var i=e[0],r=e[1],a=i.getHours(),o=i.getMinutes(),s=r.getHours(),l=r.getMinutes();a===t&&s!==t?g(n,o,60,!0):a===t&&s===t?g(n,o,l+1,!0):a!==t&&s===t?g(n,0,l+1,!0):a<t&&s>t&&g(n,0,60,!0)})):g(n,0,60,!0),n};var v=t.range=function(e){return Array.apply(null,{length:e}).map((function(e,t){return t}))},y=t.modifyDate=function(e,t,n,i){return new Date(t,n,i,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},_=t.modifyTime=function(e,t,n,i){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,i,e.getMilliseconds())},x=(t.modifyWithTimeString=function(e,t){return null!=e&&t?(t=p(t,"HH:mm:ss"),_(e,t.getHours(),t.getMinutes(),t.getSeconds())):e},t.clearTime=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},t.clearMilliseconds=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),0)},t.limitTimeRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===t.length)return e;var i=function(e){return r.default.parse(r.default.format(e,n),n)},a=i(e),o=t.map((function(e){return e.map(i)}));if(o.some((function(e){return a>=e[0]&&a<=e[1]})))return e;var s=o[0][0],l=o[0][0];o.forEach((function(e){s=new Date(Math.min(e[0],s)),l=new Date(Math.max(e[1],s))}));var c=a<s?s:l;return y(c,e.getFullYear(),e.getMonth(),e.getDate())}),b=(t.timeWithinRange=function(e,t,n){var i=x(e,t,n);return i.getTime()===e.getTime()},t.changeYearMonthAndClampDate=function(e,t,n){var i=Math.min(e.getDate(),f(t,n));return y(e,t,n,i)});t.prevMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 0===n?b(e,t-1,11):b(e,t,n-1)},t.nextMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 11===n?b(e,t+1,0):b(e,t,n+1)},t.prevYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),i=e.getMonth();return b(e,n-t,i)},t.nextYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),i=e.getMonth();return b(e,n+t,i)},t.extractDateFormat=function(e){return e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},t.extractTimeFormat=function(e){return e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},t.validateRangeInOneMonth=function(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}},48850:function(e,t,n){"use strict";var i;n(70252),function(r){var a={},o=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",l="\\d{3}",c="\\d{4}",u="[^\\s]+",h=/\[([^]*?)\]/gm,d=function(){};function p(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function f(e,t){for(var n=[],i=0,r=e.length;i<r;i++)n.push(e[i].substr(0,t));return n}function m(e){return function(t,n,i){var r=i[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(t.month=r)}}function g(e,t){e=String(e),t=t||2;while(e.length<t)e="0"+e;return e}var v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],y=["January","February","March","April","May","June","July","August","September","October","November","December"],_=f(y,3),x=f(v,3);a.i18n={dayNamesShort:x,dayNames:v,monthNamesShort:_,monthNames:y,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10)*e%10]}};var b={D:function(e){return e.getDay()},DD:function(e){return g(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return g(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return g(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return g(String(e.getFullYear()),4).substr(2)},yyyy:function(e){return g(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return g(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return g(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return g(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return g(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return g(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return g(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+g(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},w={d:[s,function(e,t){e.day=t}],Do:[s+u,function(e,t){e.day=parseInt(t,10)}],M:[s,function(e,t){e.month=t-1}],yy:[s,function(e,t){var n=new Date,i=+(""+n.getFullYear()).substr(0,2);e.year=""+(t>68?i-1:i)+t}],h:[s,function(e,t){e.hour=t}],m:[s,function(e,t){e.minute=t}],s:[s,function(e,t){e.second=t}],yyyy:[c,function(e,t){e.year=t}],S:["\\d",function(e,t){e.millisecond=100*t}],SS:["\\d{2}",function(e,t){e.millisecond=10*t}],SSS:[l,function(e,t){e.millisecond=t}],D:[s,d],ddd:[u,d],MMM:[u,m("monthNamesShort")],MMMM:[u,m("monthNames")],a:[u,function(e,t,n){var i=t.toLowerCase();i===n.amPm[0]?e.isPm=!1:i===n.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var n,i=(t+"").match(/([+-]|\d\d)/gi);i&&(n=60*i[1]+parseInt(i[2],10),e.timezoneOffset="+"===i[0]?n:-n)}]};w.dd=w.d,w.dddd=w.ddd,w.DD=w.D,w.mm=w.m,w.hh=w.H=w.HH=w.h,w.MM=w.M,w.ss=w.s,w.A=w.a,a.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},a.format=function(e,t,n){var i=n||a.i18n;if("number"===typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");t=a.masks[t]||t||a.masks["default"];var r=[];return t=t.replace(h,(function(e,t){return r.push(t),"@@@"})),t=t.replace(o,(function(t){return t in b?b[t](e,i):t.slice(1,t.length-1)})),t.replace(/@@@/g,(function(){return r.shift()}))},a.parse=function(e,t,n){var i=n||a.i18n;if("string"!==typeof t)throw new Error("Invalid format in fecha.parse");if(t=a.masks[t]||t,e.length>1e3)return null;var r={},s=[],l=[];t=t.replace(h,(function(e,t){return l.push(t),"@@@"}));var c=p(t).replace(o,(function(e){if(w[e]){var t=w[e];return s.push(t[1]),"("+t[0]+")"}return e}));c=c.replace(/@@@/g,(function(){return l.shift()}));var u=e.match(new RegExp(c,"i"));if(!u)return null;for(var d=1;d<u.length;d++)s[d-1](r,u[d],i);var f,m=new Date;return!0===r.isPm&&null!=r.hour&&12!==+r.hour?r.hour=+r.hour+12:!1===r.isPm&&12===+r.hour&&(r.hour=0),null!=r.timezoneOffset?(r.minute=+(r.minute||0)-+r.timezoneOffset,f=new Date(Date.UTC(r.year||m.getFullYear(),r.month||0,r.day||1,r.hour||0,r.minute||0,r.second||0,r.millisecond||0))):f=new Date(r.year||m.getFullYear(),r.month||0,r.day||1,r.hour||0,r.minute||0,r.second||0,r.millisecond||0),f},e.exports?e.exports=a:(i=function(){return a}.call(t,n,t,e),void 0===i||(e.exports=i))}()},75132:function(e,t,n){"use strict";t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.hasClass=m,t.addClass=g,t.removeClass=v,t.setStyle=_;var r=n(30783),a=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var s=a.default.prototype.$isServer,l=/([\:\-\_]+(.))/g,c=/^moz([A-Z])/,u=s?0:Number(document.documentMode),h=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},d=function(e){return e.replace(l,(function(e,t,n,i){return i?n.toUpperCase():n})).replace(c,"Moz$1")},p=t.on=function(){return!s&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)}}(),f=t.off=function(){return!s&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)}}();t.once=function(e,t,n){var i=function i(){n&&n.apply(this,arguments),f(e,t,i)};p(e,t,i)};function m(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function g(e,t){if(e){for(var n=e.className,i=(t||"").split(" "),r=0,a=i.length;r<a;r++){var o=i[r];o&&(e.classList?e.classList.add(o):m(e,o)||(n+=" "+o))}e.classList||e.setAttribute("class",n)}}function v(e,t){if(e&&t){for(var n=t.split(" "),i=" "+e.className+" ",r=0,a=n.length;r<a;r++){var o=n[r];o&&(e.classList?e.classList.remove(o):m(e,o)&&(i=i.replace(" "+o+" "," ")))}e.classList||e.setAttribute("class",h(i))}}var y=t.getStyle=u<9?function(e,t){if(!s){if(!e||!t)return null;t=d(t),"float"===t&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(n){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(n){return e.style[t]}}}:function(e,t){if(!s){if(!e||!t)return null;t=d(t),"float"===t&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(i){return e.style[t]}}};function _(e,t,n){if(e&&t)if("object"===("undefined"===typeof t?"undefined":i(t)))for(var r in t)t.hasOwnProperty(r)&&_(e,r,t[r]);else t=d(t),"opacity"===t&&u<9?e.style.filter=isNaN(n)?"":"alpha(opacity="+100*n+")":e.style[t]=n}var x=t.isScroll=function(e,t){if(!s){var n=null!==t&&void 0!==t,i=y(e,n?t?"overflow-y":"overflow-x":"overflow");return i.match(/(scroll|auto|overlay)/)}};t.getScrollContainer=function(e,t){if(!s){var n=e;while(n){if([window,document,document.documentElement].includes(n))return window;if(x(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(s||!e||!t)return!1;var n=e.getBoundingClientRect(),i=void 0;return i=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<i.bottom&&n.bottom>i.top&&n.right>i.left&&n.left<i.right}},85032:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){for(var t=1,n=arguments.length;t<n;t++){var i=arguments[t]||{};for(var r in i)if(i.hasOwnProperty(r)){var a=i[r];void 0!==a&&(e[r]=a)}}return e}},12914:function(e,t,n){"use strict";var i,r;"function"===typeof Symbol&&Symbol.iterator;(function(a,o){i=o,r="function"===typeof i?i.call(t,n,t,e):i,void 0===r||(e.exports=r)})(0,(function(){var e=window,t={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(e,n,i){this._reference=e.jquery?e[0]:e,this.state={};var r="undefined"===typeof n||null===n,a=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=r||a?this.parse(a?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},t,i),this._options.modifiers=this._options.modifiers.map(function(e){if(-1===this._options.modifiersIgnored.indexOf(e))return"applyStyle"===e&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),h(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function i(t){var n=t.style.display,i=t.style.visibility;t.style.display="block",t.style.visibility="hidden";t.offsetWidth;var r=e.getComputedStyle(t),a=parseFloat(r.marginTop)+parseFloat(r.marginBottom),o=parseFloat(r.marginLeft)+parseFloat(r.marginRight),s={width:t.offsetWidth+o,height:t.offsetHeight+a};return t.style.display=n,t.style.visibility=i,s}function r(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function a(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function o(e,t){var n,i=0;for(n in e){if(e[n]===t)return i;i++}return null}function s(t,n){var i=e.getComputedStyle(t,null);return i[n]}function l(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function c(t){var n=t.parentNode;return n?n===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==["scroll","auto"].indexOf(s(n,"overflow"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-y"))?n:c(t.parentNode):t}function u(t){return t!==e.document.body&&("fixed"===s(t,"position")||(t.parentNode?u(t.parentNode):t))}function h(e,t){function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}Object.keys(t).forEach((function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&n(t[i])&&(r="px"),e.style[i]=t[i]+r}))}function d(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function p(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function f(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE"),i=n&&"HTML"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:i,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-i}}function m(e,t,n){var i=f(e),r=f(t);if(n){var a=c(t);r.top+=a.scrollTop,r.bottom+=a.scrollTop,r.left+=a.scrollLeft,r.right+=a.scrollLeft}var o={top:i.top-r.top,left:i.left-r.left,bottom:i.top-r.top+i.height,right:i.left-r.left+i.width,width:i.width,height:i.height};return o}function g(t){for(var n=["","ms","webkit","moz","o"],i=0;i<n.length;i++){var r=n[i]?n[i]+t.charAt(0).toUpperCase()+t.slice(1):t;if("undefined"!==typeof e.document.body.style[r])return r}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[g("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var e={instance:this,styles:{}};e.placement=this._options.placement,e._originalPlacement=this._options.placement,e.offsets=this._getOffsets(this._popper,this._reference,e.placement),e.boundaries=this._getBoundaries(e,this._options.boundariesPadding,this._options.boundariesElement),e=this.runModifiers(e,this._options.modifiers),"function"===typeof this.state.updateCallback&&this.state.updateCallback(e)},n.prototype.onCreate=function(e){return e(this),this},n.prototype.onUpdate=function(e){return this.state.updateCallback=e,this},n.prototype.parse=function(t){var n={tagName:"div",classNames:["popper"],attributes:[],parent:e.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};t=Object.assign({},n,t);var i=e.document,r=i.createElement(t.tagName);if(s(r,t.classNames),l(r,t.attributes),"node"===t.contentType?r.appendChild(t.content.jquery?t.content[0]:t.content):"html"===t.contentType?r.innerHTML=t.content:r.textContent=t.content,t.arrowTagName){var a=i.createElement(t.arrowTagName);s(a,t.arrowClassNames),l(a,t.arrowAttributes),r.appendChild(a)}var o=t.parent.jquery?t.parent[0]:t.parent;if("string"===typeof o){if(o=i.querySelectorAll(t.parent),o.length>1&&console.warn("WARNING: the given `parent` query("+t.parent+") matched more than one element, the first one will be used"),0===o.length)throw"ERROR: the given `parent` doesn't exists!";o=o[0]}return o.length>1&&o instanceof Element===!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),o=o[0]),o.appendChild(r),r;function s(e,t){t.forEach((function(t){e.classList.add(t)}))}function l(e,t){t.forEach((function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")}))}},n.prototype._getPosition=function(e,t){var n=l(t);if(this._options.forceAbsolute)return"absolute";var i=u(t,n);return i?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var r={};r.position=this.state.position;var a="fixed"===r.position,o=m(t,l(e),a),s=i(e);return-1!==["right","left"].indexOf(n)?(r.top=o.top+o.height/2-s.height/2,r.left="left"===n?o.left-s.width:o.right):(r.left=o.left+o.width/2-s.width/2,r.top="top"===n?o.top-s.height:o.bottom),r.width=s.width,r.height=s.height,{popper:r,reference:o}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=c(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(t,n,i){var r,a,o={};if("window"===i){var s=e.document.body,u=e.document.documentElement;a=Math.max(s.scrollHeight,s.offsetHeight,u.clientHeight,u.scrollHeight,u.offsetHeight),r=Math.max(s.scrollWidth,s.offsetWidth,u.clientWidth,u.scrollWidth,u.offsetWidth),o={top:0,right:r,bottom:a,left:0}}else if("viewport"===i){var h=l(this._popper),d=c(this._popper),f=p(h),m=function(e){return e==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},g=function(e){return e==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):e.scrollLeft},v="fixed"===t.offsets.popper.position?0:m(d),y="fixed"===t.offsets.popper.position?0:g(d);o={top:0-(f.top-v),right:e.document.documentElement.clientWidth-(f.left-y),bottom:e.document.documentElement.clientHeight-(f.top-v),left:0-(f.left-y)}}else o=l(this._popper)===i?{top:0,left:0,right:i.clientWidth,bottom:i.clientHeight}:p(i);return o.left+=n,o.right-=n,o.top=o.top+n,o.bottom=o.bottom-n,o},n.prototype.runModifiers=function(e,t,n){var i=t.slice();return void 0!==n&&(i=this._options.modifiers.slice(0,o(this._options.modifiers,n))),i.forEach(function(t){d(t)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=o(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter((function(e){return e===t})).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(e){var t,n={position:e.offsets.popper.position},i=Math.round(e.offsets.popper.left),r=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=g("transform"))?(n[t]="translate3d("+i+"px, "+r+"px, 0)",n.top=0,n.left=0):(n.left=i,n.top=r),Object.assign(n,e.styles),h(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&h(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets.reference,o=a(e.offsets.popper),s={y:{start:{top:r.top},end:{top:r.top+r.height-o.height}},x:{start:{left:r.left},end:{left:r.left+r.width-o.width}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=Object.assign(o,s[l][i])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=a(e.offsets.popper),i={left:function(){var t=n.left;return n.left<e.boundaries.left&&(t=Math.max(n.left,e.boundaries.left)),{left:t}},right:function(){var t=n.left;return n.right>e.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.top<e.boundaries.top&&(t=Math.max(n.top,e.boundaries.top)),{top:t}},bottom:function(){var t=n.top;return n.bottom>e.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach((function(t){e.offsets.popper=Object.assign(n,i[t]())})),e},n.prototype.modifiers.keepTogether=function(e){var t=a(e.offsets.popper),n=e.offsets.reference,i=Math.floor;return t.right<i(n.left)&&(e.offsets.popper.left=i(n.left)-t.width),t.left>i(n.right)&&(e.offsets.popper.left=i(n.right)),t.bottom<i(n.top)&&(e.offsets.popper.top=i(n.top)-t.height),t.top>i(n.bottom)&&(e.offsets.popper.top=i(n.bottom)),e},n.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],n=r(t),i=e.placement.split("-")[1]||"",o=[];return o="flip"===this._options.flipBehavior?[t,n]:this._options.flipBehavior,o.forEach(function(s,l){if(t===s&&o.length!==l+1){t=e.placement.split("-")[0],n=r(t);var c=a(e.offsets.popper),u=-1!==["right","bottom"].indexOf(t);(u&&Math.floor(e.offsets.reference[t])>Math.floor(c[n])||!u&&Math.floor(e.offsets.reference[t])<Math.floor(c[n]))&&(e.flipped=!0,e.placement=o[l+1],i&&(e.placement+="-"+i),e.offsets.popper=this._getOffsets(this._popper,this._reference,e.placement).popper,e=this.runModifiers(e,this._options.modifiers,this._flip))}}.bind(this)),e},n.prototype.modifiers.offset=function(e){var t=this._options.offset,n=e.offsets.popper;return-1!==e.placement.indexOf("left")?n.top-=t:-1!==e.placement.indexOf("right")?n.top+=t:-1!==e.placement.indexOf("top")?n.left-=t:-1!==e.placement.indexOf("bottom")&&(n.left+=t),e},n.prototype.modifiers.arrow=function(e){var t=this._options.arrowElement,n=this._options.arrowOffset;if("string"===typeof t&&(t=this._popper.querySelector(t)),!t)return e;if(!this._popper.contains(t))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),e;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),e;var r={},o=e.placement.split("-")[0],s=a(e.offsets.popper),l=e.offsets.reference,c=-1!==["left","right"].indexOf(o),u=c?"height":"width",h=c?"top":"left",d=c?"left":"top",p=c?"bottom":"right",f=i(t)[u];l[p]-f<s[h]&&(e.offsets.popper[h]-=s[h]-(l[p]-f)),l[h]+f>s[p]&&(e.offsets.popper[h]+=l[h]+f-s[p]);var m=l[h]+(n||l[u]/2-f/2),g=m-s[h];return g=Math.max(Math.min(s[u]-f-8,g),8),r[h]=g,r[d]="",e.offsets.arrow=r,e.arrowElement=t,e},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(void 0!==i&&null!==i){i=Object(i);for(var r=Object.keys(i),a=0,o=r.length;a<o;a++){var s=r[a],l=Object.getOwnPropertyDescriptor(i,s);void 0!==l&&l.enumerable&&(t[s]=i[s])}}}return t}}),n}))},58312:function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var i=n(30783),r=d(i),a=n(85032),o=d(a),s=n(88091),l=d(s),c=n(84661),u=d(c),h=n(75132);function d(e){return e&&e.__esModule?e:{default:e}}var p=1,f=void 0;t["default"]={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+p++,l.default.register(this._popupId,this)},beforeDestroy:function(){l.default.deregister(this._popupId),l.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick((function(){t.open()})))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,o.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var i=Number(n.openDelay);i>0?this._openTimer=setTimeout((function(){t._openTimer=null,t.doOpen(n)}),i):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,i=e.zIndex;if(i&&(l.default.zIndex=i),n&&(this._closing&&(l.default.closeModal(this._popupId),this._closing=!1),l.default.openModal(this._popupId,l.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,h.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,h.getStyle)(document.body,"paddingRight"),10)),f=(0,u.default)();var r=document.documentElement.clientHeight<document.body.scrollHeight,a=(0,h.getStyle)(document.body,"overflowY");f>0&&(r||"scroll"===a)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+f+"px"),(0,h.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=l.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout((function(){e._closeTimer=null,e.doClose()}),t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){l.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,h.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=l.default},88091:function(e,t,n){"use strict";n(70252),t.__esModule=!0;var i=n(30783),r=o(i),a=n(75132);function o(e){return e&&e.__esModule?e:{default:e}}var s=!1,l=!1,c=void 0,u=function(){if(!r.default.prototype.$isServer){var e=d.modalDom;return e?s=!0:(s=!1,e=document.createElement("div"),d.modalDom=e,e.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation()})),e.addEventListener("click",(function(){d.doOnModalClick&&d.doOnModalClick()}))),e}},h={},d={modalFade:!0,getInstance:function(e){return h[e]},register:function(e,t){e&&t&&(h[e]=t)},deregister:function(e){e&&(h[e]=null,delete h[e])},nextZIndex:function(){return d.zIndex++},modalStack:[],doOnModalClick:function(){var e=d.modalStack[d.modalStack.length-1];if(e){var t=d.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,i,o){if(!r.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=o;for(var l=this.modalStack,c=0,h=l.length;c<h;c++){var d=l[c];if(d.id===e)return}var p=u();if((0,a.addClass)(p,"v-modal"),this.modalFade&&!s&&(0,a.addClass)(p,"v-modal-enter"),i){var f=i.trim().split(/\s+/);f.forEach((function(e){return(0,a.addClass)(p,e)}))}setTimeout((function(){(0,a.removeClass)(p,"v-modal-enter")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(p):document.body.appendChild(p),t&&(p.style.zIndex=t),p.tabIndex=0,p.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:i})}},closeModal:function(e){var t=this.modalStack,n=u();if(t.length>0){var i=t[t.length-1];if(i.id===e){if(i.modalClass){var r=i.modalClass.trim().split(/\s+/);r.forEach((function(e){return(0,a.removeClass)(n,e)}))}t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var o=t.length-1;o>=0;o--)if(t[o].id===e){t.splice(o,1);break}}0===t.length&&(this.modalFade&&(0,a.addClass)(n,"v-modal-leave"),setTimeout((function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",d.modalDom=void 0),(0,a.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(d,"zIndex",{configurable:!0,get:function(){return l||(c=c||(r.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),c},set:function(e){c=e}});var p=function(){if(!r.default.prototype.$isServer&&d.modalStack.length>0){var e=d.modalStack[d.modalStack.length-1];if(!e)return;var t=d.getInstance(e.id);return t}};r.default.prototype.$isServer||window.addEventListener("keydown",(function(e){if(27===e.keyCode){var t=p();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}})),t["default"]=d},87338:function(e,t,n){"use strict";n(70252),t.__esModule=!0,t.removeResizeListener=t.addResizeListener=void 0;var i=n(1050),r=o(i),a=n(8172);function o(e){return e&&e.__esModule?e:{default:e}}var s="undefined"===typeof window,l=function(e){var t=e,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if(i=t.next(),i.done)break;r=i.value}var a=r,o=a.target.__resizeListeners__||[];o.length&&o.forEach((function(e){e()}))}};t.addResizeListener=function(e,t){s||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new r.default((0,a.debounce)(16,l)),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},17889:function(e,t,n){"use strict";n(70252),t.__esModule=!0,t["default"]=o;var i=n(30783),r=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!r.default.prototype.$isServer)if(t){var n=[],i=t.offsetParent;while(i&&e!==i&&e.contains(i))n.push(i),i=i.offsetParent;var a=t.offsetTop+n.reduce((function(e,t){return e+t.offsetTop}),0),o=a+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;a<s?e.scrollTop=a:o>l&&(e.scrollTop=o-e.clientHeight)}else e.scrollTop=0}},84661:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(){if(r.default.prototype.$isServer)return 0;if(void 0!==o)return o;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var i=n.offsetWidth;return e.parentNode.removeChild(e),o=t-i,o};var i=n(30783),r=a(i);function a(e){return e&&e.__esModule?e:{default:e}}var o=void 0},3743:function(e,t){"use strict";function n(e){return void 0!==e&&null!==e}function i(e){var t=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return t.test(e)}t.__esModule=!0,t.isDef=n,t.isKorean=i},35817:function(e,t,n){"use strict";n(66554),n(46293),n(6149),t.__esModule=!0,t.isDefined=t.isUndefined=t.isFunction=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isString=s,t.isObject=l,t.isHtmlElement=c;var r=n(30783),a=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return e&&e.nodeType===Node.ELEMENT_NODE}var u=function(e){var t={};return e&&"[object Function]"===t.toString.call(e)};"object"===("undefined"===typeof Int8Array?"undefined":i(Int8Array))||!a.default.prototype.$isServer&&"function"===typeof document.childNodes||(t.isFunction=u=function(e){return"function"===typeof e||!1}),t.isFunction=u;t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return void 0!==e&&null!==e}},2634:function(e,t,n){"use strict";t.__esModule=!0,t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.noop=c,t.hasOwn=u,t.toObject=d,t.getPropByPath=p,t.rafThrottle=y,t.objToArray=_;var r=n(30783),a=s(r),o=n(35817);function s(e){return e&&e.__esModule?e:{default:e}}var l=Object.prototype.hasOwnProperty;function c(){}function u(e,t){return l.call(e,t)}function h(e,t){for(var n in t)e[n]=t[n];return e}function d(e){for(var t={},n=0;n<e.length;n++)e[n]&&h(t,e[n]);return t}t.getValueByPath=function(e,t){t=t||"";for(var n=t.split("."),i=e,r=null,a=0,o=n.length;a<o;a++){var s=n[a];if(!i)break;if(a===o-1){r=i[s];break}i=i[s]}return r};function p(e,t,n){var i=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var r=t.split("."),a=0,o=r.length;a<o-1;++a){if(!i&&!n)break;var s=r[a];if(!(s in i)){if(n)throw new Error("please transfer a valid prop path to form item!");break}i=i[s]}return{o:i,k:r[a],v:i?i[r[a]]:null}}t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var f=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},m=(t.arrayFind=function(e,t){var n=f(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!a.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!a.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!a.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==("undefined"===typeof e?"undefined":i(e)))return e;var t=["transform","transition","animation"],n=["ms-","webkit-"];return t.forEach((function(t){var i=e[t];t&&i&&n.forEach((function(n){e[n+t]=i}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,o.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,o.isObject)(e),i=(0,o.isObject)(t);return n&&i?JSON.stringify(e)===JSON.stringify(t):!n&&!i&&String(e)===String(t)}),g=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!m(e[n],t[n]))return!1;return!0},v=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?g(e,t):m(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"===typeof e)return!1;if("number"===typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1});function y(e){var t=!1;return function(){for(var n=this,i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];t||(t=!0,window.requestAnimationFrame((function(i){e.apply(n,r),t=!1})))}}function _(e){return Array.isArray(e)?e:v(e)?[]:[e]}},23144:function(e,t,n){"use strict";t.__esModule=!0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isVNode=a;var r=n(2634);function a(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":i(e))&&(0,r.hasOwn)(e,"componentOptions")}},37928:function(e,t,n){"use strict";t.__esModule=!0;var i=n(30783),r=o(i),a=n(58312);function o(e){return e&&e.__esModule?e:{default:e}}var s=r.default.prototype.$isServer?function(){}:n(12914),l=function(e){return e.stopPropagation()};t["default"]={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(e){this.showPopper=e,this.$emit("input",e)}},showPopper:function(e){this.disabled||(e?this.updatePopper():this.destroyPopper(),this.$emit("input",e))}},methods:{createPopper:function(){var e=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var t=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,i=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!i&&this.$slots.reference&&this.$slots.reference[0]&&(i=this.referenceElm=this.$slots.reference[0].elm),n&&i&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),t.placement=this.currentPlacement,t.offset=this.offset,t.arrowOffset=this.arrowOffset,this.popperJS=new s(i,n,t),this.popperJS.onCreate((function(t){e.$emit("created",e),e.resetTransformOrigin(),e.$nextTick(e.updatePopper)})),"function"===typeof t.onUpdate&&this.popperJS.onUpdate(t.onUpdate),this.popperJS._popper.style.zIndex=a.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",l))}},updatePopper:function(){var e=this.popperJS;e?(e.update(),e._popper&&(e._popper.style.zIndex=a.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(e){!this.popperJS||this.showPopper&&!e||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var e={top:"bottom",bottom:"top",left:"right",right:"left"},t=this.popperJS._popper.getAttribute("x-placement").split("-")[0],n=e[t];this.popperJS._popper.style.transformOrigin="string"===typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(t)>-1?"center "+n:n+" center"}},appendArrow:function(e){var t=void 0;if(!this.appended){for(var n in this.appended=!0,e.attributes)if(/^_v-/.test(e.attributes[n].name)){t=e.attributes[n].name;break}var i=document.createElement("div");t&&i.setAttribute(t,""),i.setAttribute("x-arrow",""),i.className="popper__arrow",e.appendChild(i)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",l),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},92989:function(e,t,n){var i,r;n(70252),
- /*!
- * jQuery JavaScript Library v3.7.0
- * https://jquery.com/
- *
- * Copyright OpenJS Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2023-05-11T18:29Z
- */
- function(t,n){"use strict";"object"===typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!==typeof window?window:this,(function(n,a){"use strict";var o=[],s=Object.getPrototypeOf,l=o.slice,c=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},u=o.push,h=o.indexOf,d={},p=d.toString,f=d.hasOwnProperty,m=f.toString,g=m.call(Object),v={},y=function(e){return"function"===typeof e&&"number"!==typeof e.nodeType&&"function"!==typeof e.item},_=function(e){return null!=e&&e===e.window},x=n.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){n=n||x;var i,r,a=n.createElement("script");if(a.text=e,t)for(i in b)r=t[i]||t.getAttribute&&t.getAttribute(i),r&&a.setAttribute(i,r);n.head.appendChild(a).parentNode.removeChild(a)}function S(e){return null==e?e+"":"object"===typeof e||"function"===typeof e?d[p.call(e)]||"object":typeof e}var M="3.7.0",C=/HTML$/i,T=function(e,t){return new T.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,n=S(e);return!y(e)&&!_(e)&&("array"===n||0===t||"number"===typeof t&&t>0&&t-1 in e)}function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}T.fn=T.prototype={jquery:M,constructor:T,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},T.extend=T.fn.extend=function(){var e,t,n,i,r,a,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"===typeof o&&(c=o,o=arguments[s]||{},s++),"object"===typeof o||y(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&o!==i&&(c&&i&&(T.isPlainObject(i)||(r=Array.isArray(i)))?(n=o[t],a=r&&!Array.isArray(n)?[]:r||T.isPlainObject(n)?n:{},r=!1,o[t]=T.extend(c,a,i)):void 0!==i&&(o[t]=i));return o},T.extend({expando:"jQuery"+(M+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(t=s(e),!t||(n=f.call(t,"constructor")&&t.constructor,"function"===typeof n&&m.call(n)===g))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(E(e)){for(n=e.length;i<n;i++)if(!1===t.call(e[i],i,e[i]))break}else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r)return e.textContent;if(3===r||4===r)return e.nodeValue}else while(t=e[i++])n+=T.text(t);return n},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?T.merge(n,"string"===typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:h.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!C.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i,r=[],a=0,o=e.length,s=!n;a<o;a++)i=!t(e[a],a),i!==s&&r.push(e[a]);return r},map:function(e,t,n){var i,r,a=0,o=[];if(E(e))for(i=e.length;a<i;a++)r=t(e[a],a,n),null!=r&&o.push(r);else for(a in e)r=t(e[a],a,n),null!=r&&o.push(r);return c(o)},guid:1,support:v}),"function"===typeof Symbol&&(T.fn[Symbol.iterator]=o[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var k=o.pop,D=o.sort,I=o.splice,P="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g");T.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var L=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function R(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}T.escapeSelector=function(e){return(e+"").replace(L,R)};var N=x,F=u;(function(){var e,t,i,r,a,s,c,u,d,p,m=F,g=T.expando,y=0,_=0,x=te(),b=te(),w=te(),S=te(),M=function(e,t){return e===t&&(a=!0),0},C="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",E="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",L="\\["+P+"*("+E+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+E+"))|)"+P+"*\\]",R=":("+E+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+L+")*)|.*)\\)|)",B=new RegExp(P+"+","g"),z=new RegExp("^"+P+"*,"+P+"*"),V=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),U=new RegExp(P+"|>"),H=new RegExp(R),$=new RegExp("^"+E+"$"),j={ID:new RegExp("^#("+E+")"),CLASS:new RegExp("^\\.("+E+")"),TAG:new RegExp("^("+E+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+C+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),K=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Z=function(){ce()},J=pe((function(e){return!0===e.disabled&&A(e,"fieldset")}),{dir:"parentNode",next:"legend"});function Q(){try{return s.activeElement}catch(e){}}try{m.apply(o=l.call(N.childNodes),N.childNodes),o[N.childNodes.length].nodeType}catch(we){m={apply:function(e,t){F.apply(e,l.call(t))},call:function(e){F.apply(e,l.call(arguments,1))}}}function ee(e,t,n,i){var r,a,o,l,c,h,p,f=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!==typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!i&&(ce(t),t=t||s,u)){if(11!==y&&(c=q.exec(e)))if(r=c[1]){if(9===y){if(!(o=t.getElementById(r)))return n;if(o.id===r)return m.call(n,o),n}else if(f&&(o=f.getElementById(r))&&ee.contains(t,o)&&o.id===r)return m.call(n,o),n}else{if(c[2])return m.apply(n,t.getElementsByTagName(e)),n;if((r=c[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(r)),n}if(!S[e+" "]&&(!d||!d.test(e))){if(p=e,f=t,1===y&&(U.test(e)||V.test(e))){f=X.test(e)&&le(t.parentNode)||t,f==t&&v.scope||((l=t.getAttribute("id"))?l=T.escapeSelector(l):t.setAttribute("id",l=g)),h=he(e),a=h.length;while(a--)h[a]=(l?"#"+l:":scope")+" "+de(h[a]);p=h.join(",")}try{return m.apply(n,f.querySelectorAll(p)),n}catch(_){S(e,!0)}finally{l===g&&t.removeAttribute("id")}}}return be(e.replace(O,"$1"),t,n,i)}function te(){var e=[];function n(i,r){return e.push(i+" ")>t.cacheLength&&delete n[e.shift()],n[i+" "]=r}return n}function ne(e){return e[g]=!0,e}function ie(e){var t=s.createElement("fieldset");try{return!!e(t)}catch(we){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return A(t,"input")&&t.type===e}}function ae(e){return function(t){return(A(t,"input")||A(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&J(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function se(e){return ne((function(t){return t=+t,ne((function(n,i){var r,a=e([],n.length,t),o=a.length;while(o--)n[r=a[o]]&&(n[r]=!(i[r]=n[r]))}))}))}function le(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}function ce(e){var n,i=e?e.ownerDocument||e:N;return i!=s&&9===i.nodeType&&i.documentElement?(s=i,c=s.documentElement,u=!T.isXMLDoc(s),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,N!=s&&(n=s.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),v.getById=ie((function(e){return c.appendChild(e).id=T.expando,!s.getElementsByName||!s.getElementsByName(T.expando).length})),v.disconnectedMatch=ie((function(e){return p.call(e,"*")})),v.scope=ie((function(){return s.querySelectorAll(":scope")})),v.cssHas=ie((function(){try{return s.querySelector(":has(*,:jqfake)"),!1}catch(we){return!0}})),v.getById?(t.filter.ID=function(e){var t=e.replace(Y,K);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&u){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(Y,K);return function(e){var n="undefined"!==typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&u){var n,i,r,a=t.getElementById(e);if(a){if(n=a.getAttributeNode("id"),n&&n.value===e)return[a];r=t.getElementsByName(e),i=0;while(a=r[i++])if(n=a.getAttributeNode("id"),n&&n.value===e)return[a]}return[]}}),t.find.TAG=function(e,t){return"undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if("undefined"!==typeof t.getElementsByClassName&&u)return t.getElementsByClassName(e)},d=[],ie((function(e){var t;c.appendChild(e).innerHTML="<a id='"+g+"' href='' disabled='disabled'></a><select id='"+g+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+P+"*(?:value|"+C+")"),e.querySelectorAll("[id~="+g+"-]").length||d.push("~="),e.querySelectorAll("a#"+g+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),t=s.createElement("input"),t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),t=s.createElement("input"),t.setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")")})),v.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),M=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!v.sortDetached&&t.compareDocumentPosition(e)===n?e===s||e.ownerDocument==N&&ee.contains(N,e)?-1:t===s||t.ownerDocument==N&&ee.contains(N,t)?1:r?h.call(r,e)-h.call(r,t):0:4&n?-1:1)},s):s}for(e in ee.matches=function(e,t){return ee(e,null,null,t)},ee.matchesSelector=function(e,t){if(ce(e),u&&!S[t+" "]&&(!d||!d.test(t)))try{var n=p.call(e,t);if(n||v.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(we){S(t,!0)}return ee(t,s,null,[e]).length>0},ee.contains=function(e,t){return(e.ownerDocument||e)!=s&&ce(e),T.contains(e,t)},ee.attr=function(e,n){(e.ownerDocument||e)!=s&&ce(e);var i=t.attrHandle[n.toLowerCase()],r=i&&f.call(t.attrHandle,n.toLowerCase())?i(e,n,!u):void 0;return void 0!==r?r:e.getAttribute(n)},ee.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],i=0,o=0;if(a=!v.sortStable,r=!v.sortStable&&l.call(e,0),D.call(e,M),a){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)I.call(e,n[i],1)}return r=null,e},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(l.apply(this)))},t=T.expr={cacheLength:50,createPseudo:ne,match:j,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Y,K),e[3]=(e[3]||e[4]||e[5]||"").replace(Y,K),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ee.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ee.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return j.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&H.test(n)&&(t=he(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Y,K).toLowerCase();return"*"===e?function(){return!0}:function(e){return A(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&x(e,(function(e){return t.test("string"===typeof e.className&&e.className||"undefined"!==typeof e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=ee.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(B," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,h,d,p,f=a!==o?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),_=!l&&!s,x=!1;if(m){if(a){while(f){h=t;while(h=h[f])if(s?A(h,v):1===h.nodeType)return!1;p=f="only"===e&&!p&&"nextSibling"}return!0}if(p=[o?m.firstChild:m.lastChild],o&&_){u=m[g]||(m[g]={}),c=u[e]||[],d=c[0]===y&&c[1],x=d&&c[2],h=d&&m.childNodes[d];while(h=++d&&h&&h[f]||(x=d=0)||p.pop())if(1===h.nodeType&&++x&&h===t){u[e]=[y,d,x];break}}else if(_&&(u=t[g]||(t[g]={}),c=u[e]||[],d=c[0]===y&&c[1],x=d),!1===x)while(h=++d&&h&&h[f]||(x=d=0)||p.pop())if((s?A(h,v):1===h.nodeType)&&++x&&(_&&(u=h[g]||(h[g]={}),u[e]=[y,x]),h===t))break;return x-=r,x===i||x%i===0&&x/i>=0}}},PSEUDO:function(e,n){var i,r=t.pseudos[e]||t.setFilters[e.toLowerCase()]||ee.error("unsupported pseudo: "+e);return r[g]?r(n):r.length>1?(i=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?ne((function(e,t){var i,a=r(e,n),o=a.length;while(o--)i=h.call(e,a[o]),e[i]=!(t[i]=a[o])})):function(e){return r(e,0,i)}):r}},pseudos:{not:ne((function(e){var t=[],n=[],i=xe(e.replace(O,"$1"));return i[g]?ne((function(e,t,n,r){var a,o=i(e,null,r,[]),s=e.length;while(s--)(a=o[s])&&(e[s]=!(t[s]=a))})):function(e,r,a){return t[0]=e,i(t,null,a,n),t[0]=null,!n.pop()}})),has:ne((function(e){return function(t){return ee(e,t).length>0}})),contains:ne((function(e){return e=e.replace(Y,K),function(t){return(t.textContent||T.text(t)).indexOf(e)>-1}})),lang:ne((function(e){return $.test(e||"")||ee.error("unsupported lang: "+e),e=e.replace(Y,K).toLowerCase(),function(t){var n;do{if(n=u?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===Q()&&s.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return A(e,"input")&&!!e.checked||A(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return W.test(e.nodeName)},button:function(e){return A(e,"input")&&"button"===e.type||A(e,"button")},text:function(e){var t;return A(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:se((function(){return[0]})),last:se((function(e,t){return[t-1]})),eq:se((function(e,t,n){return[n<0?n+t:n]})),even:se((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:se((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:se((function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:se((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ae(e);function ue(){}function he(e,n){var i,r,a,o,s,l,c,u=b[e+" "];if(u)return n?0:u.slice(0);s=e,l=[],c=t.preFilter;while(s){for(o in i&&!(r=z.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(a=[])),i=!1,(r=V.exec(s))&&(i=r.shift(),a.push({value:i,type:r[0].replace(O," ")}),s=s.slice(i.length)),t.filter)!(r=j[o].exec(s))||c[o]&&!(r=c[o](r))||(i=r.shift(),a.push({value:i,type:o,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?ee.error(e):b(e,l).slice(0)}function de(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function pe(e,t,n){var i=t.dir,r=t.next,a=r||i,o=n&&"parentNode"===a,s=_++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r);return!1}:function(t,n,l){var c,u,h=[y,s];if(l){while(t=t[i])if((1===t.nodeType||o)&&e(t,n,l))return!0}else while(t=t[i])if(1===t.nodeType||o)if(u=t[g]||(t[g]={}),r&&A(t,r))t=t[i]||t;else{if((c=u[a])&&c[0]===y&&c[1]===s)return h[2]=c[2];if(u[a]=h,h[2]=e(t,n,l))return!0}return!1}}function fe(e){return e.length>1?function(t,n,i){var r=e.length;while(r--)if(!e[r](t,n,i))return!1;return!0}:e[0]}function me(e,t,n){for(var i=0,r=t.length;i<r;i++)ee(e,t[i],n);return n}function ge(e,t,n,i,r){for(var a,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,i,r)||(o.push(a),c&&t.push(s)));return o}function ve(e,t,n,i,r,a){return i&&!i[g]&&(i=ve(i)),r&&!r[g]&&(r=ve(r,a)),ne((function(a,o,s,l){var c,u,d,p,f=[],g=[],v=o.length,y=a||me(t||"*",s.nodeType?[s]:s,[]),_=!e||!a&&t?y:ge(y,f,e,s,l);if(n?(p=r||(a?e:v||i)?[]:o,n(_,p,s,l)):p=_,i){c=ge(p,g),i(c,[],s,l),u=c.length;while(u--)(d=c[u])&&(p[g[u]]=!(_[g[u]]=d))}if(a){if(r||e){if(r){c=[],u=p.length;while(u--)(d=p[u])&&c.push(_[u]=d);r(null,p=[],c,l)}u=p.length;while(u--)(d=p[u])&&(c=r?h.call(a,d):f[u])>-1&&(a[c]=!(o[c]=d))}}else p=ge(p===o?p.splice(v,p.length):p),r?r(null,o,p,l):m.apply(o,p)}))}function ye(e){for(var n,r,a,o=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,u=pe((function(e){return e===n}),l,!0),d=pe((function(e){return h.call(n,e)>-1}),l,!0),p=[function(e,t,r){var a=!s&&(r||t!=i)||((n=t).nodeType?u(e,t,r):d(e,t,r));return n=null,a}];c<o;c++)if(r=t.relative[e[c].type])p=[pe(fe(p),r)];else{if(r=t.filter[e[c].type].apply(null,e[c].matches),r[g]){for(a=++c;a<o;a++)if(t.relative[e[a].type])break;return ve(c>1&&fe(p),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(O,"$1"),r,c<a&&ye(e.slice(c,a)),a<o&&ye(e=e.slice(a)),a<o&&de(e))}p.push(r)}return fe(p)}function _e(e,n){var r=n.length>0,a=e.length>0,o=function(o,l,c,h,d){var p,f,g,v=0,_="0",x=o&&[],b=[],w=i,S=o||a&&t.find.TAG("*",d),M=y+=null==w?1:Math.random()||.1,C=S.length;for(d&&(i=l==s||l||d);_!==C&&null!=(p=S[_]);_++){if(a&&p){f=0,l||p.ownerDocument==s||(ce(p),c=!u);while(g=e[f++])if(g(p,l||s,c)){m.call(h,p);break}d&&(y=M)}r&&((p=!g&&p)&&v--,o&&x.push(p))}if(v+=_,r&&_!==v){f=0;while(g=n[f++])g(x,b,l,c);if(o){if(v>0)while(_--)x[_]||b[_]||(b[_]=k.call(h));b=ge(b)}m.apply(h,b),d&&!o&&b.length>0&&v+n.length>1&&T.uniqueSort(h)}return d&&(y=M,i=w),x};return r?ne(o):o}function xe(e,t){var n,i=[],r=[],a=w[e+" "];if(!a){t||(t=he(e)),n=t.length;while(n--)a=ye(t[n]),a[g]?i.push(a):r.push(a);a=w(e,_e(r,i)),a.selector=e}return a}function be(e,n,i,r){var a,o,s,l,c,h="function"===typeof e&&e,d=!r&&he(e=h.selector||e);if(i=i||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&9===n.nodeType&&u&&t.relative[o[1].type]){if(n=(t.find.ID(s.matches[0].replace(Y,K),n)||[])[0],!n)return i;h&&(n=n.parentNode),e=e.slice(o.shift().value.length)}a=j.needsContext.test(e)?0:o.length;while(a--){if(s=o[a],t.relative[l=s.type])break;if((c=t.find[l])&&(r=c(s.matches[0].replace(Y,K),X.test(o[0].type)&&le(n.parentNode)||n))){if(o.splice(a,1),e=r.length&&de(o),!e)return m.apply(i,r),i;break}}}return(h||xe(e,d))(r,n,!u,i,!n||X.test(e)&&le(n.parentNode)||n),i}ue.prototype=t.filters=t.pseudos,t.setFilters=new ue,v.sortStable=g.split("").sort(M).join("")===g,ce(),v.sortDetached=ie((function(e){return 1&e.compareDocumentPosition(s.createElement("fieldset"))})),T.find=ee,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,ee.compile=xe,ee.select=be,ee.setDocument=ce,ee.escape=T.escapeSelector,ee.getText=T.text,ee.isXML=T.isXMLDoc,ee.selectors=T.expr,ee.support=T.support,ee.uniqueSort=T.uniqueSort})();var B=function(e,t,n){var i=[],r=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(r&&T(e).is(n))break;i.push(e)}return i},z=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},V=T.expr.match.needsContext,U=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function H(e,t,n){return y(t)?T.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?T.grep(e,(function(e){return e===t!==n})):"string"!==typeof t?T.grep(e,(function(e){return h.call(t,e)>-1!==n})):T.filter(t,e,n)}T.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?T.find.matchesSelector(i,e)?[i]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!==typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t<i;t++)if(T.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)T.find(e,r[t],n);return i>1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(H(this,e||[],!1))},not:function(e){return this.pushStack(H(this,e||[],!0))},is:function(e){return!!H(this,"string"===typeof e&&V.test(e)?T(e):e||[],!1).length}});var $,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,W=T.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||$,"string"===typeof e){if(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:j.exec(e),!i||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:x,!0)),U.test(i[1])&&T.isPlainObject(t))for(i in t)y(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return r=x.getElementById(i[2]),r&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)};W.prototype=T.fn,$=T(x);var G=/^(?:parents|prev(?:Until|All))/,q={children:!0,contents:!0,next:!0,prev:!0};function X(e,t){while((e=e[t])&&1!==e.nodeType);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,r=this.length,a=[],o="string"!==typeof e&&T(e);if(!V.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?T.uniqueSort(a):a)},index:function(e){return e?"string"===typeof e?h.call(T(e),this[0]):h.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return B(e,"parentNode")},parentsUntil:function(e,t,n){return B(e,"parentNode",n)},next:function(e){return X(e,"nextSibling")},prev:function(e){return X(e,"previousSibling")},nextAll:function(e){return B(e,"nextSibling")},prevAll:function(e){return B(e,"previousSibling")},nextUntil:function(e,t,n){return B(e,"nextSibling",n)},prevUntil:function(e,t,n){return B(e,"previousSibling",n)},siblings:function(e){return z((e.parentNode||{}).firstChild,e)},children:function(e){return z(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(n,i){var r=T.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"===typeof i&&(r=T.filter(i,r)),this.length>1&&(q[e]||T.uniqueSort(r),G.test(e)&&r.reverse()),this.pushStack(r)}}));var Y=/[^\x20\t\r\n\f]+/g;function K(e){var t={};return T.each(e.match(Y)||[],(function(e,n){t[n]=!0})),t}function Z(e){return e}function J(e){throw e}function Q(e,t,n,i){var r;try{e&&y(r=e.promise)?r.call(e).done(t).fail(n):e&&y(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){e="string"===typeof e?K(e):T.extend({},e);var t,n,i,r,a=[],o=[],s=-1,l=function(){for(r=r||e.once,i=t=!0;o.length;s=-1){n=o.shift();while(++s<a.length)!1===a[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=a.length,n=!1)}e.memory||(n=!1),t=!1,r&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),function t(n){T.each(n,(function(n,i){y(i)?e.unique&&c.has(i)||a.push(i):i&&i.length&&"string"!==S(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return T.each(arguments,(function(e,t){var n;while((n=T.inArray(t,a,n))>-1)a.splice(n,1),n<=s&&s--})),this},has:function(e){return e?T.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return r=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return r=o=[],n||t||(a=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=n||[],n=[e,n.slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(n){T.each(t,(function(t,i){var r=y(e[i[4]])&&e[i[4]];a[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,i,r){var a=0;function o(e,t,i,r){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e<a)){if(n=i.apply(s,l),n===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"===typeof n||"function"===typeof n)&&n.then,y(c)?r?c.call(n,o(a,t,Z,r),o(a,t,J,r)):(a++,c.call(n,o(a,t,Z,r),o(a,t,J,r),o(a,t,Z,t.notifyWith))):(i!==Z&&(s=void 0,l=[n]),(r||t.resolveWith)(s,l))}},u=r?c:function(){try{c()}catch(n){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(n,u.error),e+1>=a&&(i!==J&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?u():(T.Deferred.getErrorHook?u.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(u.error=T.Deferred.getStackHook()),n.setTimeout(u))}}return T.Deferred((function(n){t[0][3].add(o(0,n,y(r)?r:Z,n.notifyWith)),t[1][3].add(o(0,n,y(e)?e:Z)),t[2][3].add(o(0,n,y(i)?i:J))})).promise()},promise:function(e){return null!=e?T.extend(e,r):r}},a={};return T.each(t,(function(e,n){var o=n[2],s=n[5];r[n[1]]=o.add,s&&o.add((function(){i=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=o.fireWith})),r.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,i=Array(n),r=l.call(arguments),a=T.Deferred(),o=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?l.call(arguments):n,--t||a.resolveWith(i,r)}};if(t<=1&&(Q(e,a.done(o(n)).resolve,a.reject,!t),"pending"===a.state()||y(r[n]&&r[n].then)))return a.then();while(n--)Q(r[n],o(n),a.reject);return a.promise()}});var ee=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&ee.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){n.setTimeout((function(){throw e}))};var te=T.Deferred();function ne(){x.removeEventListener("DOMContentLoaded",ne),n.removeEventListener("load",ne),T.ready()}T.fn.ready=function(e){return te.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||te.resolveWith(x,[T]))}}),T.ready.then=te.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?n.setTimeout(T.ready):(x.addEventListener("DOMContentLoaded",ne),n.addEventListener("load",ne));var ie=function(e,t,n,i,r,a,o){var s=0,l=e.length,c=null==n;if("object"===S(n))for(s in r=!0,n)ie(e,t,s,n[s],!0,a,o);else if(void 0!==i&&(r=!0,y(i)||(o=!0),c&&(o?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(T(e),n)})),t))for(;s<l;s++)t(e[s],n,o?i:i.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):a},re=/^-ms-/,ae=/-([a-z])/g;function oe(e,t){return t.toUpperCase()}function se(e){return e.replace(re,"ms-").replace(ae,oe)}var le=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ce(){this.expando=T.expando+ce.uid++}ce.uid=1,ce.prototype={cache:function(e){var t=e[this.expando];return t||(t={},le(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"===typeof t)r[se(t)]=n;else for(i in t)r[se(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][se(t)]},access:function(e,t,n){return void 0===t||t&&"string"===typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){Array.isArray(t)?t=t.map(se):(t=se(t),t=t in i?[t]:t.match(Y)||[]),n=t.length;while(n--)delete i[t[n]]}(void 0===t||T.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var ue=new ce,he=new ce,de=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,pe=/[A-Z]/g;function fe(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:de.test(e)?JSON.parse(e):e)}function me(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(pe,"-$&").toLowerCase(),n=e.getAttribute(i),"string"===typeof n){try{n=fe(n)}catch(r){}he.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return he.hasData(e)||ue.hasData(e)},data:function(e,t,n){return he.access(e,t,n)},removeData:function(e,t){he.remove(e,t)},_data:function(e,t,n){return ue.access(e,t,n)},_removeData:function(e,t){ue.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,i,r,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(r=he.get(a),1===a.nodeType&&!ue.get(a,"hasDataAttrs"))){n=o.length;while(n--)o[n]&&(i=o[n].name,0===i.indexOf("data-")&&(i=se(i.slice(5)),me(a,i,r[i])));ue.set(a,"hasDataAttrs",!0)}return r}return"object"===typeof e?this.each((function(){he.set(this,e)})):ie(this,(function(t){var n;if(a&&void 0===t)return n=he.get(a,e),void 0!==n?n:(n=me(a,e),void 0!==n?n:void 0);this.each((function(){he.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){he.remove(this,e)}))}}),T.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=ue.get(e,t),n&&(!i||Array.isArray(n)?i=ue.access(e,t,T.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),i=n.length,r=n.shift(),a=T._queueHooks(e,t),o=function(){T.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete a.stop,r.call(e,o,a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ue.get(e,n)||ue.access(e,n,{empty:T.Callbacks("once memory").add((function(){ue.remove(e,[t+"queue",n])}))})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each((function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){T.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=T.Deferred(),a=this,o=this.length,s=function(){--i||r.resolveWith(a,[a])};"string"!==typeof e&&(t=e,e=void 0),e=e||"fx";while(o--)n=ue.get(a[o],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});var ge=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ve=new RegExp("^(?:([+-])=|)("+ge+")([a-z%]*)$","i"),ye=["Top","Right","Bottom","Left"],_e=x.documentElement,xe=function(e){return T.contains(e.ownerDocument,e)},be={composed:!0};_e.getRootNode&&(xe=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(be)===e.ownerDocument});var we=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&xe(e)&&"none"===T.css(e,"display")};function Se(e,t,n,i){var r,a,o=20,s=i?function(){return i.cur()}:function(){return T.css(e,t,"")},l=s(),c=n&&n[3]||(T.cssNumber[t]?"":"px"),u=e.nodeType&&(T.cssNumber[t]||"px"!==c&&+l)&&ve.exec(T.css(e,t));if(u&&u[3]!==c){l/=2,c=c||u[3],u=+l||1;while(o--)T.style(e,t,u+c),(1-a)*(1-(a=s()/l||.5))<=0&&(o=0),u/=a;u*=2,T.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var Me={};function Ce(e){var t,n=e.ownerDocument,i=e.nodeName,r=Me[i];return r||(t=n.body.appendChild(n.createElement(i)),r=T.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),Me[i]=r,r)}function Te(e,t){for(var n,i,r=[],a=0,o=e.length;a<o;a++)i=e[a],i.style&&(n=i.style.display,t?("none"===n&&(r[a]=ue.get(i,"display")||null,r[a]||(i.style.display="")),""===i.style.display&&we(i)&&(r[a]=Ce(i))):"none"!==n&&(r[a]="none",ue.set(i,"display",n)));for(a=0;a<o;a++)null!=r[a]&&(e[a].style.display=r[a]);return e}T.fn.extend({show:function(){return Te(this,!0)},hide:function(){return Te(this)},toggle:function(e){return"boolean"===typeof e?e?this.show():this.hide():this.each((function(){we(this)?T(this).show():T(this).hide()}))}});var Ee=/^(?:checkbox|radio)$/i,Ae=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ke=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=x.createDocumentFragment(),t=e.appendChild(x.createElement("div")),n=x.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),v.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="<option></option>",v.option=!!t.lastChild})();var De={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ie(e,t){var n;return n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?T.merge([e],n):n}function Pe(e,t){for(var n=0,i=e.length;n<i;n++)ue.set(e[n],"globalEval",!t||ue.get(t[n],"globalEval"))}De.tbody=De.tfoot=De.colgroup=De.caption=De.thead,De.th=De.td,v.option||(De.optgroup=De.option=[1,"<select multiple='multiple'>","</select>"]);var Oe=/<|&#?\w+;/;function Le(e,t,n,i,r){for(var a,o,s,l,c,u,h=t.createDocumentFragment(),d=[],p=0,f=e.length;p<f;p++)if(a=e[p],a||0===a)if("object"===S(a))T.merge(d,a.nodeType?[a]:a);else if(Oe.test(a)){o=o||h.appendChild(t.createElement("div")),s=(Ae.exec(a)||["",""])[1].toLowerCase(),l=De[s]||De._default,o.innerHTML=l[1]+T.htmlPrefilter(a)+l[2],u=l[0];while(u--)o=o.lastChild;T.merge(d,o.childNodes),o=h.firstChild,o.textContent=""}else d.push(t.createTextNode(a));h.textContent="",p=0;while(a=d[p++])if(i&&T.inArray(a,i)>-1)r&&r.push(a);else if(c=xe(a),o=Ie(h.appendChild(a),"script"),c&&Pe(o),n){u=0;while(a=o[u++])ke.test(a.type||"")&&n.push(a)}return h}var Re=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function Fe(){return!1}function Be(e,t,n,i,r,a){var o,s;if("object"===typeof t){for(s in"string"!==typeof n&&(i=i||n,n=void 0),t)Be(e,s,n,i,t[s],a);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"===typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Fe;else if(!r)return e;return 1===a&&(o=r,r=function(e){return T().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=T.guid++)),e.each((function(){T.event.add(this,t,r,i,n)}))}function ze(e,t,n){n?(ue.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var n,i=ue.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=l.call(arguments),ue.set(this,t,i),this[t](),n=ue.get(this,t),ue.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(ue.set(this,t,T.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===ue.get(e,t)&&T.event.add(e,t,Ne)}T.event={global:{},add:function(e,t,n,i,r){var a,o,s,l,c,u,h,d,p,f,m,g=ue.get(e);if(le(e)){n.handler&&(a=n,n=a.handler,r=a.selector),r&&T.find.matchesSelector(_e,r),n.guid||(n.guid=T.guid++),(l=g.events)||(l=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return"undefined"!==typeof T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Y)||[""],c=t.length;while(c--)s=Re.exec(t[c])||[],p=m=s[1],f=(s[2]||"").split(".").sort(),p&&(h=T.event.special[p]||{},p=(r?h.delegateType:h.bindType)||p,h=T.event.special[p]||{},u=T.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&T.expr.match.needsContext.test(r),namespace:f.join(".")},a),(d=l[p])||(d=l[p]=[],d.delegateCount=0,h.setup&&!1!==h.setup.call(e,i,f,o)||e.addEventListener&&e.addEventListener(p,o)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),T.event.global[p]=!0)}},remove:function(e,t,n,i,r){var a,o,s,l,c,u,h,d,p,f,m,g=ue.hasData(e)&&ue.get(e);if(g&&(l=g.events)){t=(t||"").match(Y)||[""],c=t.length;while(c--)if(s=Re.exec(t[c])||[],p=m=s[1],f=(s[2]||"").split(".").sort(),p){h=T.event.special[p]||{},p=(i?h.delegateType:h.bindType)||p,d=l[p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=d.length;while(a--)u=d[a],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(a,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));o&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,f,g.handle)||T.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[c],n,i,!0);T.isEmptyObject(l)&&ue.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,a,o,s=new Array(arguments.length),l=T.event.fix(e),c=(ue.get(this,"events")||Object.create(null))[l.type]||[],u=T.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){o=T.event.handlers.call(this,l,c),t=0;while((r=o[t++])&&!l.isPropagationStopped()){l.currentTarget=r.elem,n=0;while((a=r.handlers[n++])&&!l.isImmediatePropagationStopped())l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,i=((T.event.special[a.origType]||{}).handle||a.handler).apply(r.elem,s),void 0!==i&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()))}return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,a,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],o={},n=0;n<l;n++)i=t[n],r=i.selector+" ",void 0===o[r]&&(o[r]=i.needsContext?T(r,this).index(c)>-1:T.find(r,this,null,[c]).length),o[r]&&a.push(i);a.length&&s.push({elem:c,handlers:a})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Ee.test(t.type)&&t.click&&A(t,"input")&&ze(t,"click",!0),!1},trigger:function(e){var t=this||e;return Ee.test(t.type)&&t.click&&A(t,"input")&&ze(t,"click"),!0},_default:function(e){var t=e.target;return Ee.test(t.type)&&t.click&&A(t,"input")&&ue.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:Fe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Fe,isPropagationStopped:Fe,isImmediatePropagationStopped:Fe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(x.documentMode){var n=ue.get(this,"handle"),i=T.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else T.event.simulate(t,e.target,T.event.fix(e))}T.event.special[e]={setup:function(){var i;if(ze(this,e,!0),!x.documentMode)return!1;i=ue.get(this,t),i||this.addEventListener(t,n),ue.set(this,t,(i||0)+1)},trigger:function(){return ze(this,e),!0},teardown:function(){var e;if(!x.documentMode)return!1;e=ue.get(this,t)-1,e?ue.set(this,t,e):(this.removeEventListener(t,n),ue.remove(this,t))},_default:function(t){return ue.get(t.target,e)},delegateType:t},T.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=x.documentMode?this:i,a=ue.get(r,t);a||(x.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),ue.set(r,t,(a||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=x.documentMode?this:i,a=ue.get(r,t)-1;a?ue.set(r,t,a):(x.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),ue.remove(r,t))}}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,a=e.handleObj;return r&&(r===i||T.contains(i,r))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),T.fn.extend({on:function(e,t,n,i){return Be(this,e,t,n,i)},one:function(e,t,n,i){return Be(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,T(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"===typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!==typeof t||(n=t,t=void 0),!1===n&&(n=Fe),this.each((function(){T.event.remove(this,e,n,t)}))}});var Ve=/<script|<style|<link/i,Ue=/checked\s*(?:[^=]|=\s*.checked.)/i,He=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function $e(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function je(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ge(e,t){var n,i,r,a,o,s,l;if(1===t.nodeType){if(ue.hasData(e)&&(a=ue.get(e),l=a.events,l))for(r in ue.remove(t,"handle events"),l)for(n=0,i=l[r].length;n<i;n++)T.event.add(t,r,l[r][n]);he.hasData(e)&&(o=he.access(e),s=T.extend({},o),he.set(t,s))}}function qe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Ee.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Xe(e,t,n,i){t=c(t);var r,a,o,s,l,u,h=0,d=e.length,p=d-1,f=t[0],m=y(f);if(m||d>1&&"string"===typeof f&&!v.checkClone&&Ue.test(f))return e.each((function(r){var a=e.eq(r);m&&(t[0]=f.call(this,r,a.html())),Xe(a,t,n,i)}));if(d&&(r=Le(t,e[0].ownerDocument,!1,e,i),a=r.firstChild,1===r.childNodes.length&&(r=a),a||i)){for(o=T.map(Ie(r,"script"),je),s=o.length;h<d;h++)l=r,h!==p&&(l=T.clone(l,!0,!0),s&&T.merge(o,Ie(l,"script"))),n.call(e[h],l,h);if(s)for(u=o[o.length-1].ownerDocument,T.map(o,We),h=0;h<s;h++)l=o[h],ke.test(l.type||"")&&!ue.access(l,"globalEval")&&T.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?T._evalUrl&&!l.noModule&&T._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):w(l.textContent.replace(He,""),l,u))}return e}function Ye(e,t,n){for(var i,r=t?T.filter(t,e):e,a=0;null!=(i=r[a]);a++)n||1!==i.nodeType||T.cleanData(Ie(i)),i.parentNode&&(n&&xe(i)&&Pe(Ie(i,"script")),i.parentNode.removeChild(i));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,a,o,s=e.cloneNode(!0),l=xe(e);if(!v.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!T.isXMLDoc(e))for(o=Ie(s),a=Ie(e),i=0,r=a.length;i<r;i++)qe(a[i],o[i]);if(t)if(n)for(a=a||Ie(e),o=o||Ie(s),i=0,r=a.length;i<r;i++)Ge(a[i],o[i]);else Ge(e,s);return o=Ie(s,"script"),o.length>0&&Pe(o,!l&&Ie(e,"script")),s},cleanData:function(e){for(var t,n,i,r=T.event.special,a=0;void 0!==(n=e[a]);a++)if(le(n)){if(t=n[ue.expando]){if(t.events)for(i in t.events)r[i]?T.event.remove(n,i):T.removeEvent(n,i,t.handle);n[ue.expando]=void 0}n[he.expando]&&(n[he.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Ye(this,e,!0)},remove:function(e){return Ye(this,e)},text:function(e){return ie(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Xe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=$e(this,e);t.appendChild(e)}}))},prepend:function(){return Xe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=$e(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Xe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Xe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(Ie(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return ie(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"===typeof e&&!Ve.test(e)&&!De[(Ae.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<i;n++)t=this[n]||{},1===t.nodeType&&(T.cleanData(Ie(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Xe(this,arguments,(function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(Ie(this)),n&&n.replaceChild(t,this))}),e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){T.fn[e]=function(e){for(var n,i=[],r=T(e),a=r.length-1,o=0;o<=a;o++)n=o===a?this:this.clone(!0),T(r[o])[t](n),u.apply(i,n.get());return this.pushStack(i)}}));var Ke=new RegExp("^("+ge+")(?!px)[a-z%]+$","i"),Ze=/^--/,Je=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Qe=function(e,t,n){var i,r,a={};for(r in t)a[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=a[r];return i},et=new RegExp(ye.join("|"),"i");function tt(e,t,n){var i,r,a,o,s=Ze.test(t),l=e.style;return n=n||Je(e),n&&(o=n.getPropertyValue(t)||n[t],s&&o&&(o=o.replace(O,"$1")||void 0),""!==o||xe(e)||(o=T.style(e,t)),!v.pixelBoxStyles()&&Ke.test(o)&&et.test(t)&&(i=l.width,r=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=o,o=n.width,l.width=i,l.minWidth=r,l.maxWidth=a)),void 0!==o?o+"":o}function nt(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}(function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",_e.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);i="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),r=36===t(e.width),u.style.position="absolute",a=12===t(u.offsetWidth/3),_e.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var i,r,a,o,s,l,c=x.createElement("div"),u=x.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,T.extend(v,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),a},reliableTrDimensions:function(){var e,t,i,r;return null==s&&(e=x.createElement("table"),t=x.createElement("tr"),i=x.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",_e.appendChild(e).appendChild(t).appendChild(i),r=n.getComputedStyle(t),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,_e.removeChild(e)),s}}))})();var it=["Webkit","Moz","ms"],rt=x.createElement("div").style,at={};function ot(e){var t=e[0].toUpperCase()+e.slice(1),n=it.length;while(n--)if(e=it[n]+t,e in rt)return e}function st(e){var t=T.cssProps[e]||at[e];return t||(e in rt?e:at[e]=ot(e)||e)}var lt=/^(none|table(?!-c[ea]).+)/,ct={position:"absolute",visibility:"hidden",display:"block"},ut={letterSpacing:"0",fontWeight:"400"};function ht(e,t,n){var i=ve.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function dt(e,t,n,i,r,a){var o="width"===t?1:0,s=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(c+=T.css(e,n+ye[o],!0,r)),i?("content"===n&&(l-=T.css(e,"padding"+ye[o],!0,r)),"margin"!==n&&(l-=T.css(e,"border"+ye[o]+"Width",!0,r))):(l+=T.css(e,"padding"+ye[o],!0,r),"padding"!==n?l+=T.css(e,"border"+ye[o]+"Width",!0,r):s+=T.css(e,"border"+ye[o]+"Width",!0,r));return!i&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))||0),l+c}function pt(e,t,n){var i=Je(e),r=!v.boxSizingReliable()||n,a=r&&"border-box"===T.css(e,"boxSizing",!1,i),o=a,s=tt(e,t,i),l="offset"+t[0].toUpperCase()+t.slice(1);if(Ke.test(s)){if(!n)return s;s="auto"}return(!v.boxSizingReliable()&&a||!v.reliableTrDimensions()&&A(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===T.css(e,"display",!1,i))&&e.getClientRects().length&&(a="border-box"===T.css(e,"boxSizing",!1,i),o=l in e,o&&(s=e[l])),s=parseFloat(s)||0,s+dt(e,t,n||(a?"border":"content"),o,i,s)+"px"}function ft(e,t,n,i,r){return new ft.prototype.init(e,t,n,i,r)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=tt(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,a,o,s=se(t),l=Ze.test(t),c=e.style;if(l||(t=st(s)),o=T.cssHooks[t]||T.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(r=o.get(e,!1,i))?r:c[t];a=typeof n,"string"===a&&(r=ve.exec(n))&&r[1]&&(n=Se(e,t,r),a="number"),null!=n&&n===n&&("number"!==a||l||(n+=r&&r[3]||(T.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,a,o,s=se(t),l=Ze.test(t);return l||(t=st(s)),o=T.cssHooks[t]||T.cssHooks[s],o&&"get"in o&&(r=o.get(e,!0,n)),void 0===r&&(r=tt(e,t,i)),"normal"===r&&t in ut&&(r=ut[t]),""===n||n?(a=parseFloat(r),!0===n||isFinite(a)?a||0:r):r}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,n,i){if(n)return!lt.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?pt(e,t,i):Qe(e,ct,(function(){return pt(e,t,i)}))},set:function(e,n,i){var r,a=Je(e),o=!v.scrollboxSize()&&"absolute"===a.position,s=o||i,l=s&&"border-box"===T.css(e,"boxSizing",!1,a),c=i?dt(e,t,i,l,a):0;return l&&o&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-dt(e,t,"border",!1,a)-.5)),c&&(r=ve.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),ht(e,n,c)}}})),T.cssHooks.marginLeft=nt(v.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(tt(e,"marginLeft"))||e.getBoundingClientRect().left-Qe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(n){for(var i=0,r={},a="string"===typeof n?n.split(" "):[n];i<4;i++)r[e+ye[i]+t]=a[i]||a[i-2]||a[0];return r}},"margin"!==e&&(T.cssHooks[e+t].set=ht)})),T.fn.extend({css:function(e,t){return ie(this,(function(e,t,n){var i,r,a={},o=0;if(Array.isArray(t)){for(i=Je(e),r=t.length;o<r;o++)a[t[o]]=T.css(e,t[o],!1,i);return a}return void 0!==n?T.style(e,t,n):T.css(e,t)}),e,t,arguments.length>1)}}),T.Tween=ft,ft.prototype={constructor:ft,init:function(e,t,n,i,r,a){this.elem=e,this.prop=n,this.easing=r||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=a||(T.cssNumber[n]?"":"px")},cur:function(){var e=ft.propHooks[this.prop];return e&&e.get?e.get(this):ft.propHooks._default.get(this)},run:function(e){var t,n=ft.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ft.propHooks._default.set(this),this}},ft.prototype.init.prototype=ft.prototype,ft.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[st(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},ft.propHooks.scrollTop=ft.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=ft.prototype.init,T.fx.step={};var mt,gt,vt=/^(?:toggle|show|hide)$/,yt=/queueHooks$/;function _t(){gt&&(!1===x.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(_t):n.setTimeout(_t,T.fx.interval),T.fx.tick())}function xt(){return n.setTimeout((function(){mt=void 0})),mt=Date.now()}function bt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)n=ye[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function wt(e,t,n){for(var i,r=(Ct.tweeners[t]||[]).concat(Ct.tweeners["*"]),a=0,o=r.length;a<o;a++)if(i=r[a].call(n,t,e))return i}function St(e,t,n){var i,r,a,o,s,l,c,u,h="width"in t||"height"in t,d=this,p={},f=e.style,m=e.nodeType&&we(e),g=ue.get(e,"fxshow");for(i in n.queue||(o=T._queueHooks(e,"fx"),null==o.unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,d.always((function(){d.always((function(){o.unqueued--,T.queue(e,"fx").length||o.empty.fire()}))}))),t)if(r=t[i],vt.test(r)){if(delete t[i],a=a||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}p[i]=g&&g[i]||T.style(e,i)}if(l=!T.isEmptyObject(t),l||!T.isEmptyObject(p))for(i in h&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],c=g&&g.display,null==c&&(c=ue.get(e,"display")),u=T.css(e,"display"),"none"===u&&(c?u=c:(Te([e],!0),c=e.style.display||c,u=T.css(e,"display"),Te([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===T.css(e,"float")&&(l||(d.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=ue.access(e,"fxshow",{display:c}),a&&(g.hidden=!m),m&&Te([e],!0),d.done((function(){for(i in m||Te([e]),ue.remove(e,"fxshow"),p)T.style(e,i,p[i])}))),l=wt(m?g[i]:0,i,d),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}function Mt(e,t){var n,i,r,a,o;for(n in e)if(i=se(n),r=t[i],a=e[n],Array.isArray(a)&&(r=a[1],a=e[n]=a[0]),n!==i&&(e[i]=a,delete e[n]),o=T.cssHooks[i],o&&"expand"in o)for(n in a=o.expand(a),delete e[i],a)n in e||(e[n]=a[n],t[n]=r);else t[i]=r}function Ct(e,t,n){var i,r,a=0,o=Ct.prefilters.length,s=T.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=mt||xt(),n=Math.max(0,c.startTime+c.duration-t),i=n/c.duration||0,a=1-i,o=0,l=c.tweens.length;o<l;o++)c.tweens[o].run(a);return s.notifyWith(e,[c,a,n]),a<1&&l?n:(l||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:mt||xt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=T.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(Mt(u,c.opts.specialEasing);a<o;a++)if(i=Ct.prefilters[a].call(c,e,u,c.opts),i)return y(i.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return T.map(u,wt,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),T.fx.timer(T.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(Ct,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Se(n.elem,e,ve.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(Y);for(var n,i=0,r=e.length;i<r;i++)n=e[i],Ct.tweeners[n]=Ct.tweeners[n]||[],Ct.tweeners[n].unshift(t)},prefilters:[St],prefilter:function(e,t){t?Ct.prefilters.unshift(e):Ct.prefilters.push(e)}}),T.speed=function(e,t,n){var i=e&&"object"===typeof e?T.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return T.fx.off?i.duration=0:"number"!==typeof i.duration&&(i.duration in T.fx.speeds?i.duration=T.fx.speeds[i.duration]:i.duration=T.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&T.dequeue(this,i.queue)},i},T.fn.extend({fadeTo:function(e,t,n,i){return this.filter(we).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=T.isEmptyObject(e),a=T.speed(t,n,i),o=function(){var t=Ct(this,T.extend({},e),a);(r||ue.get(this,"finish"))&&t.stop(!0)};return o.finish=o,r||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!==typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",a=T.timers,o=ue.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&yt.test(r)&&i(o[r]);for(r=a.length;r--;)a[r].elem!==this||null!=e&&a[r].queue!==e||(a[r].anim.stop(n),t=!1,a.splice(r,1));!t&&n||T.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=ue.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],a=T.timers,o=i?i.length:0;for(n.finish=!0,T.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(e,t){var n=T.fn[t];T.fn[t]=function(e,i,r){return null==e||"boolean"===typeof e?n.apply(this,arguments):this.animate(bt(t,!0),e,i,r)}})),T.each({slideDown:bt("show"),slideUp:bt("hide"),slideToggle:bt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){T.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(mt=Date.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),mt=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){gt||(gt=!0,_t())},T.fx.stop=function(){gt=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(e,t){return e=T.fx&&T.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,i){var r=n.setTimeout(t,e);i.stop=function(){n.clearTimeout(r)}}))},function(){var e=x.createElement("input"),t=x.createElement("select"),n=t.appendChild(x.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=n.selected,e=x.createElement("input"),e.value="t",e.type="radio",v.radioValue="t"===e.value}();var Tt,Et=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return ie(this,T.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"===typeof e.getAttribute?T.prop(e,t,n):(1===a&&T.isXMLDoc(e)||(r=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?Tt:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=T.find.attr(e,t),null==i?void 0:i))},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(Y);if(r&&1===e.nodeType)while(n=r[i++])e.removeAttribute(n)}}),Tt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=Et[t]||T.find.attr;Et[t]=function(e,t,i){var r,a,o=t.toLowerCase();return i||(a=Et[o],Et[o]=r,r=null!=n(e,t,i)?o:null,Et[o]=a),r}}));var At=/^(?:input|select|textarea|button)$/i,kt=/^(?:a|area)$/i;function Dt(e){var t=e.match(Y)||[];return t.join(" ")}function It(e){return e.getAttribute&&e.getAttribute("class")||""}function Pt(e){return Array.isArray(e)?e:"string"===typeof e&&e.match(Y)||[]}T.fn.extend({prop:function(e,t){return ie(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&T.isXMLDoc(e)||(t=T.propFix[t]||t,r=T.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):At.test(e.nodeName)||kt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,n,i,r,a,o;return y(e)?this.each((function(t){T(this).addClass(e.call(this,t,It(this)))})):(t=Pt(e),t.length?this.each((function(){if(i=It(this),n=1===this.nodeType&&" "+Dt(i)+" ",n){for(a=0;a<t.length;a++)r=t[a],n.indexOf(" "+r+" ")<0&&(n+=r+" ");o=Dt(n),i!==o&&this.setAttribute("class",o)}})):this)},removeClass:function(e){var t,n,i,r,a,o;return y(e)?this.each((function(t){T(this).removeClass(e.call(this,t,It(this)))})):arguments.length?(t=Pt(e),t.length?this.each((function(){if(i=It(this),n=1===this.nodeType&&" "+Dt(i)+" ",n){for(a=0;a<t.length;a++){r=t[a];while(n.indexOf(" "+r+" ")>-1)n=n.replace(" "+r+" "," ")}o=Dt(n),i!==o&&this.setAttribute("class",o)}})):this):this.attr("class","")},toggleClass:function(e,t){var n,i,r,a,o=typeof e,s="string"===o||Array.isArray(e);return y(e)?this.each((function(n){T(this).toggleClass(e.call(this,n,It(this),t),t)})):"boolean"===typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Pt(e),this.each((function(){if(s)for(a=T(this),r=0;r<n.length;r++)i=n[r],a.hasClass(i)?a.removeClass(i):a.addClass(i);else void 0!==e&&"boolean"!==o||(i=It(this),i&&ue.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":ue.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;t=" "+e+" ";while(n=this[i++])if(1===n.nodeType&&(" "+Dt(It(n))+" ").indexOf(t)>-1)return!0;return!1}});var Ot=/\r/g;T.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=y(e),this.each((function(n){var r;1===this.nodeType&&(r=i?e.call(this,n,T(this).val()):e,null==r?r="":"number"===typeof r?r+="":Array.isArray(r)&&(r=T.map(r,(function(e){return null==e?"":e+""}))),t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=T.valHooks[r.type]||T.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"===typeof n?n.replace(Ot,""):null==n?"":n)):void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Dt(T.text(e))}},select:{get:function(e){var t,n,i,r=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?a+1:r.length;for(i=a<0?l:o?a:0;i<l;i++)if(n=r[i],(n.selected||i===a)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=T(n).val(),o)return t;s.push(t)}return s},set:function(e,t){var n,i,r=e.options,a=T.makeArray(t),o=r.length;while(o--)i=r[o],(i.selected=T.inArray(T.valHooks.option.get(i),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},v.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Lt=n.location,Rt={guid:Date.now()},Nt=/\?/;T.parseXML=function(e){var t,i;if(!e||"string"!==typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(r){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||T.error("Invalid XML: "+(i?T.map(i.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Ft=/^(?:focusinfocus|focusoutblur)$/,Bt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,i,r){var a,o,s,l,c,u,h,d,p=[i||x],m=f.call(e,"type")?e.type:e,g=f.call(e,"namespace")?e.namespace.split("."):[];if(o=d=s=i=i||x,3!==i.nodeType&&8!==i.nodeType&&!Ft.test(m+T.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,e=e[T.expando]?e:new T.Event(m,"object"===typeof e&&e),e.isTrigger=r?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:T.makeArray(t,[e]),h=T.event.special[m]||{},r||!h.trigger||!1!==h.trigger.apply(i,t))){if(!r&&!h.noBubble&&!_(i)){for(l=h.delegateType||m,Ft.test(l+m)||(o=o.parentNode);o;o=o.parentNode)p.push(o),s=o;s===(i.ownerDocument||x)&&p.push(s.defaultView||s.parentWindow||n)}a=0;while((o=p[a++])&&!e.isPropagationStopped())d=o,e.type=a>1?l:h.bindType||m,u=(ue.get(o,"events")||Object.create(null))[e.type]&&ue.get(o,"handle"),u&&u.apply(o,t),u=c&&o[c],u&&u.apply&&le(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=m,r||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),t)||!le(i)||c&&y(i[m])&&!_(i)&&(s=i[c],s&&(i[c]=null),T.event.triggered=m,e.isPropagationStopped()&&d.addEventListener(m,Bt),i[m](),e.isPropagationStopped()&&d.removeEventListener(m,Bt),T.event.triggered=void 0,s&&(i[c]=s)),e.result}},simulate:function(e,t,n){var i=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(i,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}});var zt=/\[\]$/,Vt=/\r?\n/g,Ut=/^(?:submit|button|image|reset|file)$/i,Ht=/^(?:input|select|textarea|keygen)/i;function $t(e,t,n,i){var r;if(Array.isArray(t))T.each(t,(function(t,r){n||zt.test(e)?i(e,r):$t(e+"["+("object"===typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==S(t))i(e,t);else for(r in t)$t(e+"["+r+"]",t[r],n,i)}T.param=function(e,t){var n,i=[],r=function(e,t){var n=y(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,(function(){r(this.name,this.value)}));else for(n in e)$t(n,e[n],t,r);return i.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Ht.test(this.nodeName)&&!Ut.test(e)&&(this.checked||!Ee.test(e))})).map((function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(e){return{name:t.name,value:e.replace(Vt,"\r\n")}})):{name:t.name,value:n.replace(Vt,"\r\n")}})).get()}});var jt=/%20/g,Wt=/#.*$/,Gt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Xt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Yt=/^(?:GET|HEAD)$/,Kt=/^\/\//,Zt={},Jt={},Qt="*/".concat("*"),en=x.createElement("a");function tn(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var i,r=0,a=t.toLowerCase().match(Y)||[];if(y(n))while(i=a[r++])"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function nn(e,t,n,i){var r={},a=e===Jt;function o(s){var l;return r[s]=!0,T.each(e[s]||[],(function(e,s){var c=s(t,n,i);return"string"!==typeof c||a||r[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!r["*"]&&o("*")}function rn(e,t){var n,i,r=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&T.extend(!0,e,i),e}function an(e,t,n){var i,r,a,o,s=e.contents,l=e.dataTypes;while("*"===l[0])l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)a=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){a=r;break}o||(o=r)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),n[a]}function on(e,t,n,i){var r,a,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];a=u.shift();while(a)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=u.shift(),a)if("*"===a)a=l;else if("*"!==l&&l!==a){if(o=c[l+" "+a]||c["* "+a],!o)for(r in c)if(s=r.split(" "),s[1]===a&&(o=c[l+" "+s[0]]||c["* "+s[0]],o)){!0===o?o=c[r]:!0!==c[r]&&(a=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(h){return{state:"parsererror",error:o?h:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}en.href=Lt.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lt.href,type:"GET",isLocal:Xt.test(Lt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qt,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":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?rn(rn(e,T.ajaxSettings),t):rn(T.ajaxSettings,e)},ajaxPrefilter:tn(Zt),ajaxTransport:tn(Jt),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0),t=t||{};var i,r,a,o,s,l,c,u,h,d,p=T.ajaxSetup({},t),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?T(f):T.event,g=T.Deferred(),v=T.Callbacks("once memory"),y=p.statusCode||{},_={},b={},w="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o){o={};while(t=qt.exec(a))o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=b[e.toLowerCase()]=b[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)S.always(e[S.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||w;return i&&i.abort(t),M(0,t),this}};if(g.promise(S),p.url=((e||p.url||Lt.href)+"").replace(Kt,Lt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Y)||[""],null==p.crossDomain){l=x.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=en.protocol+"//"+en.host!==l.protocol+"//"+l.host}catch(C){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!==typeof p.data&&(p.data=T.param(p.data,p.traditional)),nn(Zt,p,t,S),c)return S;for(h in u=T.event&&p.global,u&&0===T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Yt.test(p.type),r=p.url.replace(Wt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(jt,"+")):(d=p.url.slice(r.length),p.data&&(p.processData||"string"===typeof p.data)&&(r+=(Nt.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Gt,"$1"),d=(Nt.test(r)?"&":"?")+"_="+Rt.guid+++d),p.url=r+d),p.ifModified&&(T.lastModified[r]&&S.setRequestHeader("If-Modified-Since",T.lastModified[r]),T.etag[r]&&S.setRequestHeader("If-None-Match",T.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Qt+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(f,S,p)||c))return S.abort();if(w="abort",v.add(p.complete),S.done(p.success),S.fail(p.error),i=nn(Jt,p,t,S),i){if(S.readyState=1,u&&m.trigger("ajaxSend",[S,p]),c)return S;p.async&&p.timeout>0&&(s=n.setTimeout((function(){S.abort("timeout")}),p.timeout));try{c=!1,i.send(_,M)}catch(C){if(c)throw C;M(-1,C)}}else M(-1,"No Transport");function M(e,t,o,l){var h,d,_,x,b,w=t;c||(c=!0,s&&n.clearTimeout(s),i=void 0,a=l||"",S.readyState=e>0?4:0,h=e>=200&&e<300||304===e,o&&(x=an(p,S,o)),!h&&T.inArray("script",p.dataTypes)>-1&&T.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),x=on(p,x,S,h),h?(p.ifModified&&(b=S.getResponseHeader("Last-Modified"),b&&(T.lastModified[r]=b),b=S.getResponseHeader("etag"),b&&(T.etag[r]=b)),204===e||"HEAD"===p.type?w="nocontent":304===e?w="notmodified":(w=x.state,d=x.data,_=x.error,h=!_)):(_=w,!e&&w||(w="error",e<0&&(e=0))),S.status=e,S.statusText=(t||w)+"",h?g.resolveWith(f,[d,w,S]):g.rejectWith(f,[S,w,_]),S.statusCode(y),y=void 0,u&&m.trigger(h?"ajaxSuccess":"ajaxError",[S,p,h?d:_]),v.fireWith(f,[S,w]),u&&(m.trigger("ajaxComplete",[S,p]),--T.active||T.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,n,i,r){return y(n)&&(r=r||i,i=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:r,data:n,success:i},T.isPlainObject(e)&&e))}})),T.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){T(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var sn={0:200,1223:204},ln=T.ajaxSettings.xhr();v.cors=!!ln&&"withCredentials"in ln,v.ajax=ln=!!ln,T.ajaxTransport((function(e){var t,i;if(v.cors||ln&&!e.crossDomain)return{send:function(r,a){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(o,r[o]);t=function(e){return function(){t&&(t=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!==typeof s.status?a(0,"error"):a(s.status,s.statusText):a(sn[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),i=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&i()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),x.head.appendChild(t[0])},abort:function(){n&&n()}}}));var cn=[],un=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=cn.pop()||T.expando+"_"+Rt.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",(function(e,t,i){var r,a,o,s=!1!==e.jsonp&&(un.test(e.url)?"url":"string"===typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&un.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(un,"$1"+r):!1!==e.jsonp&&(e.url+=(Nt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||T.error(r+" was not called"),o[0]},e.dataTypes[0]="json",a=n[r],n[r]=function(){o=arguments},i.always((function(){void 0===a?T(n).removeProp(r):n[r]=a,e[r]&&(e.jsonpCallback=t.jsonpCallback,cn.push(r)),o&&y(a)&&a(o[0]),o=a=void 0})),"script"})),v.createHTMLDocument=function(){var e=x.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),T.parseHTML=function(e,t,n){return"string"!==typeof e?[]:("boolean"===typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?(t=x.implementation.createHTMLDocument(""),i=t.createElement("base"),i.href=x.location.href,t.head.appendChild(i)):t=x),r=U.exec(e),a=!n&&[],r?[t.createElement(r[1])]:(r=Le([e],t,a),a&&a.length&&T(a).remove(),T.merge([],r.childNodes)));var i,r,a},T.fn.load=function(e,t,n){var i,r,a,o=this,s=e.indexOf(" ");return s>-1&&(i=Dt(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"===typeof t&&(r="POST"),o.length>0&&T.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){a=arguments,o.html(i?T("<div>").append(T.parseHTML(e)).find(i):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,(function(t){return e===t.elem})).length},T.offset={setOffset:function(e,t,n){var i,r,a,o,s,l,c,u=T.css(e,"position"),h=T(e),d={};"static"===u&&(e.style.position="relative"),s=h.offset(),a=T.css(e,"top"),l=T.css(e,"left"),c=("absolute"===u||"fixed"===u)&&(a+l).indexOf("auto")>-1,c?(i=h.position(),o=i.top,r=i.left):(o=parseFloat(a)||0,r=parseFloat(l)||0),y(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):h.css(d)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){T.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===T.css(i,"position"))t=i.getBoundingClientRect();else{t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position"))e=e.parentNode;e&&e!==i&&1===e.nodeType&&(r=T(e).offset(),r.top+=T.css(e,"borderTopWidth",!0),r.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-T.css(i,"marginTop",!0),left:t.left-r.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){var e=this.offsetParent;while(e&&"static"===T.css(e,"position"))e=e.offsetParent;return e||_e}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;T.fn[e]=function(i){return ie(this,(function(e,i,r){var a;if(_(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===r)return a?a[t]:e[i];a?a.scrollTo(n?a.pageXOffset:r,n?r:a.pageYOffset):e[i]=r}),e,i,arguments.length)}})),T.each(["top","left"],(function(e,t){T.cssHooks[t]=nt(v.pixelPosition,(function(e,n){if(n)return n=tt(e,t),Ke.test(n)?T(e).position()[t]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){T.fn[i]=function(r,a){var o=arguments.length&&(n||"boolean"!==typeof r),s=n||(!0===r||!0===a?"margin":"border");return ie(this,(function(t,n,r){var a;return _(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===r?T.css(t,n,s):T.style(t,n,r,s)}),t,o?r:void 0,o)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){T.fn[t]=function(e){return this.on(t,e)}})),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){T.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var hn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,i,r;if("string"===typeof t&&(n=e[t],t=e,e=n),y(e))return i=l.call(arguments,2),r=function(){return e.apply(t||this,i.concat(l.call(arguments)))},r.guid=e.guid=e.guid||T.guid++,r},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=A,T.isFunction=y,T.isWindow=_,T.camelCase=se,T.type=S,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(hn,"$1")},i=[],r=function(){return T}.apply(t,i),void 0===r||(e.exports=r);var dn=n.jQuery,pn=n.$;return T.noConflict=function(e){return n.$===T&&(n.$=pn),e&&n.jQuery===T&&(n.jQuery=dn),T},"undefined"===typeof a&&(n.jQuery=n.$=T),T}))},74124:function(e,t,n){e.exports=n(15642)},55705:function(e){"use strict";var t=!("undefined"===typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},67110:function(e){var t,n,i,r,a,o,s,l,c,u,h,d,p,f,m,g=!1;function v(){if(!g){g=!0;var e=navigator.userAgent,v=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),f=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),h=!!/Win64/.exec(e),v){t=v[1]?parseFloat(v[1]):v[5]?parseFloat(v[5]):NaN,t&&document&&document.documentMode&&(t=document.documentMode);var _=/(?:Trident\/(\d+.\d+))/.exec(e);o=_?parseFloat(_[1])+4:t,n=v[2]?parseFloat(v[2]):NaN,i=v[3]?parseFloat(v[3]):NaN,r=v[4]?parseFloat(v[4]):NaN,r?(v=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=v&&v[1]?parseFloat(v[1]):NaN):a=NaN}else t=n=i=a=r=NaN;if(y){if(y[1]){var x=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!x||parseFloat(x[1].replace("_","."))}else s=!1;l=!!y[2],c=!!y[3]}else s=l=c=!1}}var y={ie:function(){return v()||t},ieCompatibilityMode:function(){return v()||o>t},ie64:function(){return y.ie()&&h},firefox:function(){return v()||n},opera:function(){return v()||i},webkit:function(){return v()||r},safari:function(){return y.webkit()},chrome:function(){return v()||a},windows:function(){return v()||l},osx:function(){return v()||s},linux:function(){return v()||c},iphone:function(){return v()||d},mobile:function(){return v()||d||p||u||m},nativeApp:function(){return v()||f},android:function(){return v()||u},ipad:function(){return v()||p}};e.exports=y},55913:function(e,t,n){"use strict";var i,r=n(55705);
- /**
- * Checks if an event is supported in the current execution environment.
- *
- * NOTE: This will not work correctly for non-generic events such as `change`,
- * `reset`, `load`, `error`, and `select`.
- *
- * Borrows from Modernizr.
- *
- * @param {string} eventNameSuffix Event name, e.g. "click".
- * @param {?boolean} capture Check if the capture phase is supported.
- * @return {boolean} True if the event is supported.
- * @internal
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
- */
- function a(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var o=document.createElement("div");o.setAttribute(n,"return;"),a="function"===typeof o[n]}return!a&&i&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}r.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=a},15642:function(e,t,n){"use strict";var i=n(67110),r=n(55913),a=10,o=40,s=800;function l(e){var t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=t*a,r=n*a,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||r)&&e.deltaMode&&(1==e.deltaMode?(i*=o,r*=o):(i*=s,r*=s)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}}l.getEventType=function(){return i.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=l},1050:function(e,t,n){"use strict";n.r(t);n(70252);var i=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,a=function(){return"undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),s=2;function l(e,t){var n=!1,i=!1,r=0;function a(){n&&(n=!1,e()),i&&c()}function l(){o(a)}function c(){var e=Date.now();if(n){if(e-r<s)return;i=!0}else n=!0,i=!1,setTimeout(l,t);r=e}return c}var c=20,u=["top","right","bottom","left","width","height","size","weight"],h="undefined"!==typeof MutationObserver,d=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l(this.refresh.bind(this),c)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,i=u.some((function(e){return!!~n.indexOf(e)}));i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||a},m=C(0,0,0,0);function g(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var i=e["border-"+n+"-width"];return t+g(i)}),0)}function y(e){for(var t=["top","right","bottom","left"],n={},i=0,r=t;i<r.length;i++){var a=r[i],o=e["padding-"+a];n[a]=g(o)}return n}function _(e){var t=e.getBBox();return C(0,0,t.width,t.height)}function x(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return m;var i=f(e).getComputedStyle(e),r=y(i),a=r.left+r.right,o=r.top+r.bottom,s=g(i.width),l=g(i.height);if("border-box"===i.boxSizing&&(Math.round(s+a)!==t&&(s-=v(i,"left","right")+a),Math.round(l+o)!==n&&(l-=v(i,"top","bottom")+o)),!w(e)){var c=Math.round(s+a)-t,u=Math.round(l+o)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return C(r.left,r.top,s,l)}var b=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"===typeof e.getBBox}}();function w(e){return e===f(e).document.documentElement}function S(e){return r?b(e)?_(e):x(e):m}function M(e){var t=e.x,n=e.y,i=e.width,r=e.height,a="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(a.prototype);return p(o,{x:t,y:n,width:i,height:r,top:n,right:t+i,bottom:r+n,left:t}),o}function C(e,t,n,i){return{x:e,y:t,width:n,height:i}}var T=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=C(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=S(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),E=function(){function e(e,t){var n=M(t);p(this,{target:e,contentRect:n})}return e}(),A=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new i,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new T(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new E(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),k="undefined"!==typeof WeakMap?new WeakMap:new i,D=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),i=new A(t,n,this);k.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach((function(e){D.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}}));var I=function(){return"undefined"!==typeof a.ResizeObserver?a.ResizeObserver:D}();t["default"]=I},74947:function(e,t,n){var i=n(5506);e.exports=function(e,t,n){return void 0===n?i(e,t,!1):i(e,n,!1!==t)}},8172:function(e,t,n){var i=n(5506),r=n(74947);e.exports={throttle:i,debounce:r}},5506:function(e){e.exports=function(e,t,n,i){var r,a=0;function o(){var o=this,s=Number(new Date)-a,l=arguments;function c(){a=Number(new Date),n.apply(o,l)}function u(){r=void 0}i&&!r&&c(),r&&clearTimeout(r),void 0===i&&s>e?c():!0!==t&&(r=setTimeout(i?u:c,void 0===i?e-s:e))}return"boolean"!==typeof t&&(i=n,n=t,t=void 0),o}},98869:function(e,t,n){"use strict";n.d(t,{ZP:function(){return wt}});n(70252);function i(e,t){for(var n in t)e[n]=t[n];return e}var r=/[!'()*]/g,a=function(e){return"%"+e.charCodeAt(0).toString(16)},o=/%2C/g,s=function(e){return encodeURIComponent(e).replace(r,a).replace(o,",")};function l(e){try{return decodeURIComponent(e)}catch(t){0}return e}function c(e,t,n){void 0===t&&(t={});var i,r=n||h;try{i=r(e||"")}catch(s){i={}}for(var a in t){var o=t[a];i[a]=Array.isArray(o)?o.map(u):u(o)}return i}var u=function(e){return null==e||"object"===typeof e?e:String(e)};function h(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),i=l(n.shift()),r=n.length>0?l(n.join("=")):null;void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t}function d(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return s(t);if(Array.isArray(n)){var i=[];return n.forEach((function(e){void 0!==e&&(null===e?i.push(s(t)):i.push(s(t)+"="+s(e)))})),i.join("&")}return s(t)+"="+s(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var p=/\/?$/;function f(e,t,n,i){var r=i&&i.options.stringifyQuery,a=t.query||{};try{a=m(a)}catch(s){}var o={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:a,params:t.params||{},fullPath:y(t,r),matched:e?v(e):[]};return n&&(o.redirectedFrom=y(n,r)),Object.freeze(o)}function m(e){if(Array.isArray(e))return e.map(m);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=m(e[n]);return t}return e}var g=f(null,{path:"/"});function v(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function y(e,t){var n=e.path,i=e.query;void 0===i&&(i={});var r=e.hash;void 0===r&&(r="");var a=t||d;return(n||"/")+a(i)+r}function _(e,t,n){return t===g?e===t:!!t&&(e.path&&t.path?e.path.replace(p,"")===t.path.replace(p,"")&&(n||e.hash===t.hash&&x(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&x(e.query,t.query)&&x(e.params,t.params))))}function x(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),i=Object.keys(t).sort();return n.length===i.length&&n.every((function(n,r){var a=e[n],o=i[r];if(o!==n)return!1;var s=t[n];return null==a||null==s?a===s:"object"===typeof a&&"object"===typeof s?x(a,s):String(a)===String(s)}))}function b(e,t){return 0===e.path.replace(p,"/").indexOf(t.path.replace(p,"/"))&&(!t.hash||e.hash===t.hash)&&w(e.query,t.query)}function w(e,t){for(var n in t)if(!(n in e))return!1;return!0}function S(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var i in n.instances){var r=n.instances[i],a=n.enteredCbs[i];if(r&&a){delete n.enteredCbs[i];for(var o=0;o<a.length;o++)r._isBeingDestroyed||a[o](r)}}}}var M={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,a=t.parent,o=t.data;o.routerView=!0;var s=a.$createElement,l=n.name,c=a.$route,u=a._routerViewCache||(a._routerViewCache={}),h=0,d=!1;while(a&&a._routerRoot!==a){var p=a.$vnode?a.$vnode.data:{};p.routerView&&h++,p.keepAlive&&a._directInactive&&a._inactive&&(d=!0),a=a.$parent}if(o.routerViewDepth=h,d){var f=u[l],m=f&&f.component;return m?(f.configProps&&C(m,o,f.route,f.configProps),s(m,o,r)):s()}var g=c.matched[h],v=g&&g.components[l];if(!g||!v)return u[l]=null,s();u[l]={component:v},o.registerRouteInstance=function(e,t){var n=g.instances[l];(t&&n!==e||!t&&n===e)&&(g.instances[l]=t)},(o.hook||(o.hook={})).prepatch=function(e,t){g.instances[l]=t.componentInstance},o.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==g.instances[l]&&(g.instances[l]=e.componentInstance),S(c)};var y=g.props&&g.props[l];return y&&(i(u[l],{route:c,configProps:y}),C(v,o,c,y)),s(v,o,r)}};function C(e,t,n,r){var a=t.props=T(n,r);if(a){a=t.props=i({},a);var o=t.attrs=t.attrs||{};for(var s in a)e.props&&s in e.props||(o[s]=a[s],delete a[s])}}function T(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}function E(e,t,n){var i=e.charAt(0);if("/"===i)return e;if("?"===i||"#"===i)return t+e;var r=t.split("/");n&&r[r.length-1]||r.pop();for(var a=e.replace(/^\//,"").split("/"),o=0;o<a.length;o++){var s=a[o];".."===s?r.pop():"."!==s&&r.push(s)}return""!==r[0]&&r.unshift(""),r.join("/")}function A(e){var t="",n="",i=e.indexOf("#");i>=0&&(t=e.slice(i),e=e.slice(0,i));var r=e.indexOf("?");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{path:e,query:n,hash:t}}function k(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var D=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},I=K,P=F,O=B,L=U,R=Y,N=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function F(e,t){var n,i=[],r=0,a=0,o="",s=t&&t.delimiter||"/";while(null!=(n=N.exec(e))){var l=n[0],c=n[1],u=n.index;if(o+=e.slice(a,u),a=u+l.length,c)o+=c[1];else{var h=e[a],d=n[2],p=n[3],f=n[4],m=n[5],g=n[6],v=n[7];o&&(i.push(o),o="");var y=null!=d&&null!=h&&h!==d,_="+"===g||"*"===g,x="?"===g||"*"===g,b=n[2]||s,w=f||m;i.push({name:p||r++,prefix:d||"",delimiter:b,optional:x,repeat:_,partial:y,asterisk:!!v,pattern:w?$(w):v?".*":"[^"+H(b)+"]+?"})}}return a<e.length&&(o+=e.substr(a)),o&&i.push(o),i}function B(e,t){return U(F(e,t),t)}function z(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function V(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function U(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",W(t)));return function(t,i){for(var r="",a=t||{},o=i||{},s=o.pretty?z:encodeURIComponent,l=0;l<e.length;l++){var c=e[l];if("string"!==typeof c){var u,h=a[c.name];if(null==h){if(c.optional){c.partial&&(r+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(D(h)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<h.length;d++){if(u=s(h[d]),!n[l].test(u))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(u)+"`");r+=(0===d?c.prefix:c.delimiter)+u}}else{if(u=c.asterisk?V(h):s(h),!n[l].test(u))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+u+'"');r+=c.prefix+u}}else r+=c}return r}}function H(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function $(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function j(e,t){return e.keys=t,e}function W(e){return e&&e.sensitive?"":"i"}function G(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)t.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return j(e,t)}function q(e,t,n){for(var i=[],r=0;r<e.length;r++)i.push(K(e[r],t,n).source);var a=new RegExp("(?:"+i.join("|")+")",W(n));return j(a,t)}function X(e,t,n){return Y(F(e,n),t,n)}function Y(e,t,n){D(t)||(n=t||n,t=[]),n=n||{};for(var i=n.strict,r=!1!==n.end,a="",o=0;o<e.length;o++){var s=e[o];if("string"===typeof s)a+=H(s);else{var l=H(s.prefix),c="(?:"+s.pattern+")";t.push(s),s.repeat&&(c+="(?:"+l+c+")*"),c=s.optional?s.partial?l+"("+c+")?":"(?:"+l+"("+c+"))?":l+"("+c+")",a+=c}}var u=H(n.delimiter||"/"),h=a.slice(-u.length)===u;return i||(a=(h?a.slice(0,-u.length):a)+"(?:"+u+"(?=$))?"),a+=r?"$":i&&h?"":"(?="+u+"|$)",j(new RegExp("^"+a,W(n)),t)}function K(e,t,n){return D(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?G(e,t):D(e)?q(e,t,n):X(e,t,n)}I.parse=P,I.compile=O,I.tokensToFunction=L,I.tokensToRegExp=R;var Z=Object.create(null);function J(e,t,n){t=t||{};try{var i=Z[e]||(Z[e]=I.compile(e));return"string"===typeof t.pathMatch&&(t[0]=t.pathMatch),i(t,{pretty:!0})}catch(r){return""}finally{delete t[0]}}function Q(e,t,n,r){var a="string"===typeof e?{path:e}:e;if(a._normalized)return a;if(a.name){a=i({},e);var o=a.params;return o&&"object"===typeof o&&(a.params=i({},o)),a}if(!a.path&&a.params&&t){a=i({},a),a._normalized=!0;var s=i(i({},t.params),a.params);if(t.name)a.name=t.name,a.params=s;else if(t.matched.length){var l=t.matched[t.matched.length-1].path;a.path=J(l,s,"path "+t.path)}else 0;return a}var u=A(a.path||""),h=t&&t.path||"/",d=u.path?E(u.path,h,n||a.append):h,p=c(u.query,a.query,r&&r.options.parseQuery),f=a.hash||u.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:d,query:p,hash:f}}var ee,te=[String,Object],ne=[String,Array],ie=function(){},re={name:"RouterLink",props:{to:{type:te,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:ne,default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,a=n.resolve(this.to,r,this.append),o=a.location,s=a.route,l=a.href,c={},u=n.options.linkActiveClass,h=n.options.linkExactActiveClass,d=null==u?"router-link-active":u,p=null==h?"router-link-exact-active":h,m=null==this.activeClass?d:this.activeClass,g=null==this.exactActiveClass?p:this.exactActiveClass,v=s.redirectedFrom?f(null,Q(s.redirectedFrom),null,n):s;c[g]=_(r,v,this.exactPath),c[m]=this.exact||this.exactPath?c[g]:b(r,v);var y=c[g]?this.ariaCurrentValue:null,x=function(e){ae(e)&&(t.replace?n.replace(o,ie):n.push(o,ie))},w={click:ae};Array.isArray(this.event)?this.event.forEach((function(e){w[e]=x})):w[this.event]=x;var S={class:c},M=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:s,navigate:x,isActive:c[m],isExactActive:c[g]});if(M){if(1===M.length)return M[0];if(M.length>1||!M.length)return 0===M.length?e():e("span",{},M)}if("a"===this.tag)S.on=w,S.attrs={href:l,"aria-current":y};else{var C=oe(this.$slots.default);if(C){C.isStatic=!1;var T=C.data=i({},C.data);for(var E in T.on=T.on||{},T.on){var A=T.on[E];E in w&&(T.on[E]=Array.isArray(A)?A:[A])}for(var k in w)k in T.on?T.on[k].push(w[k]):T.on[k]=x;var D=C.data.attrs=i({},C.data.attrs);D.href=l,D["aria-current"]=y}else S.on=w}return e(this.tag,S,this.$slots.default)}};function ae(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function oe(e){if(e)for(var t,n=0;n<e.length;n++){if(t=e[n],"a"===t.tag)return t;if(t.children&&(t=oe(t.children)))return t}}function se(e){if(!se.installed||ee!==e){se.installed=!0,ee=e;var t=function(e){return void 0!==e},n=function(e,n){var i=e.$options._parentVnode;t(i)&&t(i=i.data)&&t(i=i.registerRouteInstance)&&i(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",M),e.component("RouterLink",re);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var le="undefined"!==typeof window;function ce(e,t,n,i,r){var a=t||[],o=n||Object.create(null),s=i||Object.create(null);e.forEach((function(e){ue(a,o,s,e,r)}));for(var l=0,c=a.length;l<c;l++)"*"===a[l]&&(a.push(a.splice(l,1)[0]),c--,l--);return{pathList:a,pathMap:o,nameMap:s}}function ue(e,t,n,i,r,a){var o=i.path,s=i.name;var l=i.pathToRegexpOptions||{},c=de(o,r,l.strict);"boolean"===typeof i.caseSensitive&&(l.sensitive=i.caseSensitive);var u={path:c,regex:he(c,l),components:i.components||{default:i.component},alias:i.alias?"string"===typeof i.alias?[i.alias]:i.alias:[],instances:{},enteredCbs:{},name:s,parent:r,matchAs:a,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};if(i.children&&i.children.forEach((function(i){var r=a?k(a+"/"+i.path):void 0;ue(e,t,n,i,u,r)})),t[u.path]||(e.push(u.path),t[u.path]=u),void 0!==i.alias)for(var h=Array.isArray(i.alias)?i.alias:[i.alias],d=0;d<h.length;++d){var p=h[d];0;var f={path:p,children:i.children};ue(e,t,n,f,r,u.path||"/")}s&&(n[s]||(n[s]=u))}function he(e,t){var n=I(e,[],t);return n}function de(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:k(t.path+"/"+e)}function pe(e,t){var n=ce(e),i=n.pathList,r=n.pathMap,a=n.nameMap;function o(e){ce(e,i,r,a)}function s(e,t){var n="object"!==typeof e?a[e]:void 0;ce([t||e],i,r,a,n),n&&n.alias.length&&ce(n.alias.map((function(e){return{path:e,children:[t]}})),i,r,a,n)}function l(){return i.map((function(e){return r[e]}))}function c(e,n,o){var s=Q(e,n,!1,t),l=s.name;if(l){var c=a[l];if(!c)return d(null,s);var u=c.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var h in n.params)!(h in s.params)&&u.indexOf(h)>-1&&(s.params[h]=n.params[h]);return s.path=J(c.path,s.params,'named route "'+l+'"'),d(c,s,o)}if(s.path){s.params={};for(var p=0;p<i.length;p++){var f=i[p],m=r[f];if(fe(m.regex,s.path,s.params))return d(m,s,o)}}return d(null,s)}function u(e,n){var i=e.redirect,r="function"===typeof i?i(f(e,n,null,t)):i;if("string"===typeof r&&(r={path:r}),!r||"object"!==typeof r)return d(null,n);var o=r,s=o.name,l=o.path,u=n.query,h=n.hash,p=n.params;if(u=o.hasOwnProperty("query")?o.query:u,h=o.hasOwnProperty("hash")?o.hash:h,p=o.hasOwnProperty("params")?o.params:p,s){a[s];return c({_normalized:!0,name:s,query:u,hash:h,params:p},void 0,n)}if(l){var m=me(l,e),g=J(m,p,'redirect route with path "'+m+'"');return c({_normalized:!0,path:g,query:u,hash:h},void 0,n)}return d(null,n)}function h(e,t,n){var i=J(n,t.params,'aliased route with path "'+n+'"'),r=c({_normalized:!0,path:i});if(r){var a=r.matched,o=a[a.length-1];return t.params=r.params,d(o,t)}return d(null,t)}function d(e,n,i){return e&&e.redirect?u(e,i||n):e&&e.matchAs?h(e,n,e.matchAs):f(e,n,i,t)}return{match:c,addRoute:s,getRoutes:l,addRoutes:o}}function fe(e,t,n){var i=t.match(e);if(!i)return!1;if(!n)return!0;for(var r=1,a=i.length;r<a;++r){var o=e.keys[r-1];o&&(n[o.name||"pathMatch"]="string"===typeof i[r]?l(i[r]):i[r])}return!0}function me(e,t){return E(e,t.parent?t.parent.path:"/",!0)}var ge=le&&window.performance&&window.performance.now?window.performance:Date;function ve(){return ge.now().toFixed(3)}var ye=ve();function _e(){return ye}function xe(e){return ye=e}var be=Object.create(null);function we(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=i({},window.history.state);return n.key=_e(),window.history.replaceState(n,"",t),window.addEventListener("popstate",Ce),function(){window.removeEventListener("popstate",Ce)}}function Se(e,t,n,i){if(e.app){var r=e.options.scrollBehavior;r&&e.app.$nextTick((function(){var a=Te(),o=r.call(e,t,n,i?a:null);o&&("function"===typeof o.then?o.then((function(e){Oe(e,a)})).catch((function(e){0})):Oe(o,a))}))}}function Me(){var e=_e();e&&(be[e]={x:window.pageXOffset,y:window.pageYOffset})}function Ce(e){Me(),e.state&&e.state.key&&xe(e.state.key)}function Te(){var e=_e();if(e)return be[e]}function Ee(e,t){var n=document.documentElement,i=n.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-i.left-t.x,y:r.top-i.top-t.y}}function Ae(e){return Ie(e.x)||Ie(e.y)}function ke(e){return{x:Ie(e.x)?e.x:window.pageXOffset,y:Ie(e.y)?e.y:window.pageYOffset}}function De(e){return{x:Ie(e.x)?e.x:0,y:Ie(e.y)?e.y:0}}function Ie(e){return"number"===typeof e}var Pe=/^#\d/;function Oe(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var i=Pe.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(i){var r=e.offset&&"object"===typeof e.offset?e.offset:{};r=De(r),t=Ee(i,r)}else Ae(e)&&(t=ke(e))}else n&&Ae(e)&&(t=ke(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var Le=le&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function Re(e,t){Me();var n=window.history;try{if(t){var r=i({},n.state);r.key=_e(),n.replaceState(r,"",e)}else n.pushState({key:xe(ve())},"",e)}catch(a){window.location[t?"replace":"assign"](e)}}function Ne(e){Re(e,!0)}var Fe={redirected:2,aborted:4,cancelled:8,duplicated:16};function Be(e,t){return He(e,t,Fe.redirected,'Redirected when going from "'+e.fullPath+'" to "'+je(t)+'" via a navigation guard.')}function ze(e,t){var n=He(e,t,Fe.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function Ve(e,t){return He(e,t,Fe.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function Ue(e,t){return He(e,t,Fe.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function He(e,t,n,i){var r=new Error(i);return r._isRouter=!0,r.from=e,r.to=t,r.type=n,r}var $e=["params","query","hash"];function je(e){if("string"===typeof e)return e;if("path"in e)return e.path;var t={};return $e.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}function We(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Ge(e,t){return We(e)&&e._isRouter&&(null==t||e.type===t)}function qe(e,t,n){var i=function(r){r>=e.length?n():e[r]?t(e[r],(function(){i(r+1)})):i(r+1)};i(0)}function Xe(e){return function(t,n,i){var r=!1,a=0,o=null;Ye(e,(function(e,t,n,s){if("function"===typeof e&&void 0===e.cid){r=!0,a++;var l,c=Qe((function(t){Je(t)&&(t=t.default),e.resolved="function"===typeof t?t:ee.extend(t),n.components[s]=t,a--,a<=0&&i()})),u=Qe((function(e){var t="Failed to resolve async component "+s+": "+e;o||(o=We(e)?e:new Error(t),i(o))}));try{l=e(c,u)}catch(d){u(d)}if(l)if("function"===typeof l.then)l.then(c,u);else{var h=l.component;h&&"function"===typeof h.then&&h.then(c,u)}}})),r||i()}}function Ye(e,t){return Ke(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Ke(e){return Array.prototype.concat.apply([],e)}var Ze="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Je(e){return e.__esModule||Ze&&"Module"===e[Symbol.toStringTag]}function Qe(e){var t=!1;return function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];if(!t)return t=!0,e.apply(this,n)}}var et=function(e,t){this.router=e,this.base=tt(t),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function tt(e){if(!e)if(le){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function nt(e,t){var n,i=Math.max(e.length,t.length);for(n=0;n<i;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function it(e,t,n,i){var r=Ye(e,(function(e,i,r,a){var o=rt(e,t);if(o)return Array.isArray(o)?o.map((function(e){return n(e,i,r,a)})):n(o,i,r,a)}));return Ke(i?r.reverse():r)}function rt(e,t){return"function"!==typeof e&&(e=ee.extend(e)),e.options[t]}function at(e){return it(e,"beforeRouteLeave",st,!0)}function ot(e){return it(e,"beforeRouteUpdate",st)}function st(e,t){if(t)return function(){return e.apply(t,arguments)}}function lt(e){return it(e,"beforeRouteEnter",(function(e,t,n,i){return ct(e,n,i)}))}function ct(e,t,n){return function(i,r,a){return e(i,r,(function(e){"function"===typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),a(e)}))}}et.prototype.listen=function(e){this.cb=e},et.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},et.prototype.onError=function(e){this.errorCbs.push(e)},et.prototype.transitionTo=function(e,t,n){var i,r=this;try{i=this.router.match(e,this.current)}catch(o){throw this.errorCbs.forEach((function(e){e(o)})),o}var a=this.current;this.confirmTransition(i,(function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.router.afterHooks.forEach((function(e){e&&e(i,a)})),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(i)})))}),(function(e){n&&n(e),e&&!r.ready&&(Ge(e,Fe.redirected)&&a===g||(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)}))))}))},et.prototype.confirmTransition=function(e,t,n){var i=this,r=this.current;this.pending=e;var a=function(e){!Ge(e)&&We(e)&&(i.errorCbs.length?i.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)},o=e.matched.length-1,s=r.matched.length-1;if(_(e,r)&&o===s&&e.matched[o]===r.matched[s])return this.ensureURL(),e.hash&&Se(this.router,r,e,!1),a(ze(r,e));var l=nt(this.current.matched,e.matched),c=l.updated,u=l.deactivated,h=l.activated,d=[].concat(at(u),this.router.beforeHooks,ot(c),h.map((function(e){return e.beforeEnter})),Xe(h)),p=function(t,n){if(i.pending!==e)return a(Ve(r,e));try{t(e,r,(function(t){!1===t?(i.ensureURL(!0),a(Ue(r,e))):We(t)?(i.ensureURL(!0),a(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(a(Be(r,e)),"object"===typeof t&&t.replace?i.replace(t):i.push(t)):n(t)}))}catch(o){a(o)}};qe(d,p,(function(){var n=lt(h),o=n.concat(i.router.resolveHooks);qe(o,p,(function(){if(i.pending!==e)return a(Ve(r,e));i.pending=null,t(e),i.router.app&&i.router.app.$nextTick((function(){S(e)}))}))}))},et.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},et.prototype.setupListeners=function(){},et.prototype.teardown=function(){this.listeners.forEach((function(e){e()})),this.listeners=[],this.current=g,this.pending=null};var ut=function(e){function t(t,n){e.call(this,t,n),this._startLocation=ht(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,i=Le&&n;i&&this.listeners.push(we());var r=function(){var n=e.current,r=ht(e.base);e.current===g&&r===e._startLocation||e.transitionTo(r,(function(e){i&&Se(t,e,n,!0)}))};window.addEventListener("popstate",r),this.listeners.push((function(){window.removeEventListener("popstate",r)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var i=this,r=this,a=r.current;this.transitionTo(e,(function(e){Re(k(i.base+e.fullPath)),Se(i.router,e,a,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this,r=this,a=r.current;this.transitionTo(e,(function(e){Ne(k(i.base+e.fullPath)),Se(i.router,e,a,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(ht(this.base)!==this.current.fullPath){var t=k(this.base+this.current.fullPath);e?Re(t):Ne(t)}},t.prototype.getCurrentLocation=function(){return ht(this.base)},t}(et);function ht(e){var t=window.location.pathname,n=t.toLowerCase(),i=e.toLowerCase();return!e||n!==i&&0!==n.indexOf(k(i+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var dt=function(e){function t(t,n,i){e.call(this,t,n),i&&pt(this.base)||ft()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,i=Le&&n;i&&this.listeners.push(we());var r=function(){var t=e.current;ft()&&e.transitionTo(mt(),(function(n){i&&Se(e.router,n,t,!0),Le||yt(n.fullPath)}))},a=Le?"popstate":"hashchange";window.addEventListener(a,r),this.listeners.push((function(){window.removeEventListener(a,r)}))}},t.prototype.push=function(e,t,n){var i=this,r=this,a=r.current;this.transitionTo(e,(function(e){vt(e.fullPath),Se(i.router,e,a,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this,r=this,a=r.current;this.transitionTo(e,(function(e){yt(e.fullPath),Se(i.router,e,a,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;mt()!==t&&(e?vt(t):yt(t))},t.prototype.getCurrentLocation=function(){return mt()},t}(et);function pt(e){var t=ht(e);if(!/^\/#/.test(t))return window.location.replace(k(e+"/#"+t)),!0}function ft(){var e=mt();return"/"===e.charAt(0)||(yt("/"+e),!1)}function mt(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function gt(e){var t=window.location.href,n=t.indexOf("#"),i=n>=0?t.slice(0,n):t;return i+"#"+e}function vt(e){Le?Re(gt(e)):window.location.hash=e}function yt(e){Le?Ne(gt(e)):window.location.replace(gt(e))}var _t=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index+1).concat(e),i.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,(function(){var e=t.current;t.index=n,t.updateRoute(i),t.router.afterHooks.forEach((function(t){t&&t(i,e)}))}),(function(e){Ge(e,Fe.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(et),xt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=pe(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Le&&!1!==e.fallback,this.fallback&&(t="hash"),le||(t="abstract"),this.mode=t,t){case"history":this.history=new ut(this,e.base);break;case"hash":this.history=new dt(this,e.base,this.fallback);break;case"abstract":this.history=new _t(this,e.base);break;default:0}},bt={currentRoute:{configurable:!0}};xt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},bt.currentRoute.get=function(){return this.history&&this.history.current},xt.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof ut||n instanceof dt){var i=function(e){var i=n.current,r=t.options.scrollBehavior,a=Le&&r;a&&"fullPath"in e&&Se(t,e,i,!1)},r=function(e){n.setupListeners(),i(e)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},xt.prototype.beforeEach=function(e){return St(this.beforeHooks,e)},xt.prototype.beforeResolve=function(e){return St(this.resolveHooks,e)},xt.prototype.afterEach=function(e){return St(this.afterHooks,e)},xt.prototype.onReady=function(e,t){this.history.onReady(e,t)},xt.prototype.onError=function(e){this.history.onError(e)},xt.prototype.push=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){i.history.push(e,t,n)}));this.history.push(e,t,n)},xt.prototype.replace=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){i.history.replace(e,t,n)}));this.history.replace(e,t,n)},xt.prototype.go=function(e){this.history.go(e)},xt.prototype.back=function(){this.go(-1)},xt.prototype.forward=function(){this.go(1)},xt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},xt.prototype.resolve=function(e,t,n){t=t||this.history.current;var i=Q(e,t,n,this),r=this.match(i,t),a=r.redirectedFrom||r.fullPath,o=this.history.base,s=Mt(o,a,this.mode);return{location:i,route:r,href:s,normalizedTo:i,resolved:r}},xt.prototype.getRoutes=function(){return this.matcher.getRoutes()},xt.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},xt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(xt.prototype,bt);var wt=xt;function St(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function Mt(e,t,n){var i="hash"===n?"#"+t:t;return e?k(e+"/"+i):i}xt.install=se,xt.version="3.6.5",xt.isNavigationFailure=Ge,xt.NavigationFailureType=Fe,xt.START_LOCATION=g,le&&window.Vue&&window.Vue.use(xt)},30783:function(e,t,n){"use strict";n.r(t),n.d(t,{EffectScope:function(){return hi},computed:function(){return yt},customRef:function(){return ct},default:function(){return aa},defineAsyncComponent:function(){return Ni},defineComponent:function(){return Qi},del:function(){return $e},effectScope:function(){return di},getCurrentInstance:function(){return ye},getCurrentScope:function(){return fi},h:function(){return _i},inject:function(){return yi},isProxy:function(){return Ze},isReactive:function(){return Xe},isReadonly:function(){return Ke},isRef:function(){return tt},isShallow:function(){return Ye},markRaw:function(){return Qe},mergeDefaults:function(){return pn},nextTick:function(){return Oi},onActivated:function(){return Wi},onBeforeMount:function(){return zi},onBeforeUnmount:function(){return $i},onBeforeUpdate:function(){return Ui},onDeactivated:function(){return Gi},onErrorCaptured:function(){return Zi},onMounted:function(){return Vi},onRenderTracked:function(){return Xi},onRenderTriggered:function(){return Yi},onScopeDispose:function(){return mi},onServerPrefetch:function(){return qi},onUnmounted:function(){return ji},onUpdated:function(){return Hi},provide:function(){return gi},proxyRefs:function(){return st},reactive:function(){return We},readonly:function(){return ft},ref:function(){return nt},set:function(){return He},shallowReactive:function(){return Ge},shallowReadonly:function(){return vt},shallowRef:function(){return it},toRaw:function(){return Je},toRef:function(){return ht},toRefs:function(){return ut},triggerRef:function(){return at},unref:function(){return ot},useAttrs:function(){return un},useCssModule:function(){return Li},useCssVars:function(){return Ri},useListeners:function(){return hn},useSlots:function(){return cn},version:function(){return Ji},watch:function(){return ci},watchEffect:function(){return ri},watchPostEffect:function(){return ai},watchSyncEffect:function(){return oi}});n(70252),n(32937);var i=Object.freeze({}),r=Array.isArray;function a(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function s(e){return!0===e}function l(e){return!1===e}function c(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function u(e){return"function"===typeof e}function h(e){return null!==e&&"object"===typeof e}var d=Object.prototype.toString;function p(e){return"[object Object]"===d.call(e)}function f(e){return"[object RegExp]"===d.call(e)}function m(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function g(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===d?JSON.stringify(e,null,2):String(e)}function y(e){var t=parseFloat(e);return isNaN(t)?e:t}function _(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var x=_("slot,component",!0),b=_("key,ref,slot,slot-scope,is");function w(e,t){var n=e.length;if(n){if(t===e[n-1])return void(e.length=n-1);var i=e.indexOf(t);if(i>-1)return e.splice(i,1)}}var S=Object.prototype.hasOwnProperty;function M(e,t){return S.call(e,t)}function C(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var T=/-(\w)/g,E=C((function(e){return e.replace(T,(function(e,t){return t?t.toUpperCase():""}))})),A=C((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,D=C((function(e){return e.replace(k,"-$1").toLowerCase()}));function I(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function P(e,t){return e.bind(t)}var O=Function.prototype.bind?P:I;function L(e,t){t=t||0;var n=e.length-t,i=new Array(n);while(n--)i[n]=e[n+t];return i}function R(e,t){for(var n in t)e[n]=t[n];return e}function N(e){for(var t={},n=0;n<e.length;n++)e[n]&&R(t,e[n]);return t}function F(e,t,n){}var B=function(e,t,n){return!1},z=function(e){return e};function V(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}function U(e,t){if(e===t)return!0;var n=h(e),i=h(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var r=Array.isArray(e),a=Array.isArray(t);if(r&&a)return e.length===t.length&&e.every((function(e,n){return U(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(r||a)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every((function(n){return U(e[n],t[n])}))}catch(l){return!1}}function H(e,t){for(var n=0;n<e.length;n++)if(U(e[n],t))return n;return-1}function $(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function j(e,t){return e===t?0===e&&1/e!==1/t:e===e||t===t}var W="data-server-rendered",G=["component","directive","filter"],q=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],X={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:B,isReservedAttr:B,isUnknownElement:B,getTagNamespace:F,parsePlatformTagName:z,mustUseProp:B,async:!0,_lifecycleHooks:q},Y=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function K(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function Z(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var J=new RegExp("[^".concat(Y.source,".$_\\d]"));function Q(e){if(!J.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var ee="__proto__"in{},te="undefined"!==typeof window,ne=te&&window.navigator.userAgent.toLowerCase(),ie=ne&&/msie|trident/.test(ne),re=ne&&ne.indexOf("msie 9.0")>0,ae=ne&&ne.indexOf("edge/")>0;ne&&ne.indexOf("android");var oe=ne&&/iphone|ipad|ipod|ios/.test(ne);ne&&/chrome\/\d+/.test(ne),ne&&/phantomjs/.test(ne);var se,le=ne&&ne.match(/firefox\/(\d+)/),ce={}.watch,ue=!1;if(te)try{var he={};Object.defineProperty(he,"passive",{get:function(){ue=!0}}),window.addEventListener("test-passive",null,he)}catch(Oh){}var de=function(){return void 0===se&&(se=!te&&"undefined"!==typeof n.g&&(n.g["process"]&&"server"===n.g["process"].env.VUE_ENV)),se},pe=te&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function fe(e){return"function"===typeof e&&/native code/.test(e.toString())}var me,ge="undefined"!==typeof Symbol&&fe(Symbol)&&"undefined"!==typeof Reflect&&fe(Reflect.ownKeys);me="undefined"!==typeof Set&&fe(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ve=null;function ye(){return ve&&{proxy:ve}}function _e(e){void 0===e&&(e=null),e||ve&&ve._scope.off(),ve=e,e&&e._scope.on()}var xe=function(){function e(e,t,n,i,r,a,o,s){this.tag=e,this.data=t,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,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}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),be=function(e){void 0===e&&(e="");var t=new xe;return t.text=e,t.isComment=!0,t};function we(e){return new xe(void 0,void 0,void 0,String(e))}function Se(e){var t=new xe(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Me=0,Ce=[],Te=function(){for(var e=0;e<Ce.length;e++){var t=Ce[e];t.subs=t.subs.filter((function(e){return e})),t._pending=!1}Ce.length=0},Ee=function(){function e(){this._pending=!1,this.id=Me++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,Ce.push(this))},e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){var t=this.subs.filter((function(e){return e}));for(var n=0,i=t.length;n<i;n++){var r=t[n];0,r.update()}},e}();Ee.target=null;var Ae=[];function ke(e){Ae.push(e),Ee.target=e}function De(){Ae.pop(),Ee.target=Ae[Ae.length-1]}var Ie=Array.prototype,Pe=Object.create(Ie),Oe=["push","pop","shift","unshift","splice","sort","reverse"];Oe.forEach((function(e){var t=Ie[e];Z(Pe,e,(function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r,a=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2);break}return r&&o.observeArray(r),o.dep.notify(),a}))}));var Le=Object.getOwnPropertyNames(Pe),Re={},Ne=!0;function Fe(e){Ne=e}var Be={notify:F,depend:F,addSub:F,removeSub:F},ze=function(){function e(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.value=e,this.shallow=t,this.mock=n,this.dep=n?Be:new Ee,this.vmCount=0,Z(e,"__ob__",this),r(e)){if(!n)if(ee)e.__proto__=Pe;else for(var i=0,a=Le.length;i<a;i++){var o=Le[i];Z(e,o,Pe[o])}t||this.observeArray(e)}else{var s=Object.keys(e);for(i=0;i<s.length;i++){o=s[i];Ue(e,o,Re,void 0,t,n)}}}return e.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ve(e[t],!1,this.mock)},e}();function Ve(e,t,n){return e&&M(e,"__ob__")&&e.__ob__ instanceof ze?e.__ob__:!Ne||!n&&de()||!r(e)&&!p(e)||!Object.isExtensible(e)||e.__v_skip||tt(e)||e instanceof xe?void 0:new ze(e,t,n)}function Ue(e,t,n,i,a,o){var s=new Ee,l=Object.getOwnPropertyDescriptor(e,t);if(!l||!1!==l.configurable){var c=l&&l.get,u=l&&l.set;c&&!u||n!==Re&&2!==arguments.length||(n=e[t]);var h=!a&&Ve(n,!1,o);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=c?c.call(e):n;return Ee.target&&(s.depend(),h&&(h.dep.depend(),r(t)&&je(t))),tt(t)&&!a?t.value:t},set:function(t){var i=c?c.call(e):n;if(j(i,t)){if(u)u.call(e,t);else{if(c)return;if(!a&&tt(i)&&!tt(t))return void(i.value=t);n=t}h=!a&&Ve(t,!1,o),s.notify()}}}),s}}function He(e,t,n){if(!Ke(e)){var i=e.__ob__;return r(e)&&m(t)?(e.length=Math.max(e.length,t),e.splice(t,1,n),i&&!i.shallow&&i.mock&&Ve(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||i&&i.vmCount?n:i?(Ue(i.value,t,n,void 0,i.shallow,i.mock),i.dep.notify(),n):(e[t]=n,n)}}function $e(e,t){if(r(e)&&m(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||Ke(e)||M(e,t)&&(delete e[t],n&&n.dep.notify())}}function je(e){for(var t=void 0,n=0,i=e.length;n<i;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),r(t)&&je(t)}function We(e){return qe(e,!1),e}function Ge(e){return qe(e,!0),Z(e,"__v_isShallow",!0),e}function qe(e,t){if(!Ke(e)){Ve(e,t,de());0}}function Xe(e){return Ke(e)?Xe(e["__v_raw"]):!(!e||!e.__ob__)}function Ye(e){return!(!e||!e.__v_isShallow)}function Ke(e){return!(!e||!e.__v_isReadonly)}function Ze(e){return Xe(e)||Ke(e)}function Je(e){var t=e&&e["__v_raw"];return t?Je(t):e}function Qe(e){return Object.isExtensible(e)&&Z(e,"__v_skip",!0),e}var et="__v_isRef";function tt(e){return!(!e||!0!==e.__v_isRef)}function nt(e){return rt(e,!1)}function it(e){return rt(e,!0)}function rt(e,t){if(tt(e))return e;var n={};return Z(n,et,!0),Z(n,"__v_isShallow",t),Z(n,"dep",Ue(n,"value",e,null,t,de())),n}function at(e){e.dep&&e.dep.notify()}function ot(e){return tt(e)?e.value:e}function st(e){if(Xe(e))return e;for(var t={},n=Object.keys(e),i=0;i<n.length;i++)lt(t,e,n[i]);return t}function lt(e,t,n){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];if(tt(e))return e.value;var i=e&&e.__ob__;return i&&i.dep.depend(),e},set:function(e){var i=t[n];tt(i)&&!tt(e)?i.value=e:t[n]=e}})}function ct(e){var t=new Ee,n=e((function(){t.depend()}),(function(){t.notify()})),i=n.get,r=n.set,a={get value(){return i()},set value(e){r(e)}};return Z(a,et,!0),a}function ut(e){var t=r(e)?new Array(e.length):{};for(var n in e)t[n]=ht(e,n);return t}function ht(e,t,n){var i=e[t];if(tt(i))return i;var r={get value(){var i=e[t];return void 0===i?n:i},set value(n){e[t]=n}};return Z(r,et,!0),r}var dt="__v_rawToReadonly",pt="__v_rawToShallowReadonly";function ft(e){return mt(e,!1)}function mt(e,t){if(!p(e))return e;if(Ke(e))return e;var n=t?pt:dt,i=e[n];if(i)return i;var r=Object.create(Object.getPrototypeOf(e));Z(e,n,r),Z(r,"__v_isReadonly",!0),Z(r,"__v_raw",e),tt(e)&&Z(r,et,!0),(t||Ye(e))&&Z(r,"__v_isShallow",!0);for(var a=Object.keys(e),o=0;o<a.length;o++)gt(r,e,a[o],t);return r}function gt(e,t,n,i){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];return i||!p(e)?e:ft(e)},set:function(){}})}function vt(e){return mt(e,!0)}function yt(e,t){var n,i,r=u(e);r?(n=e,i=F):(n=e.get,i=e.set);var a=de()?null:new rr(ve,n,F,{lazy:!0});var o={effect:a,get value(){return a?(a.dirty&&a.evaluate(),Ee.target&&a.depend(),a.value):n()},set value(e){i(e)}};return Z(o,et,!0),Z(o,"__v_isReadonly",r),o}var _t=C((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var i="!"===e.charAt(0);return e=i?e.slice(1):e,{name:e,once:n,capture:i,passive:t}}));function xt(e,t){function n(){var e=n.fns;if(!r(e))return bi(e,null,arguments,t,"v-on handler");for(var i=e.slice(),a=0;a<i.length;a++)bi(i[a],null,arguments,t,"v-on handler")}return n.fns=e,n}function bt(e,t,n,i,r,o){var l,c,u,h;for(l in e)c=e[l],u=t[l],h=_t(l),a(c)||(a(u)?(a(c.fns)&&(c=e[l]=xt(c,o)),s(h.once)&&(c=e[l]=r(h.name,c,h.capture)),n(h.name,c,h.capture,h.passive,h.params)):c!==u&&(u.fns=c,e[l]=u));for(l in t)a(e[l])&&(h=_t(l),i(h.name,t[l],h.capture))}function wt(e,t,n){var i;e instanceof xe&&(e=e.data.hook||(e.data.hook={}));var r=e[t];function l(){n.apply(this,arguments),w(i.fns,l)}a(r)?i=xt([l]):o(r.fns)&&s(r.merged)?(i=r,i.fns.push(l)):i=xt([r,l]),i.merged=!0,e[t]=i}function St(e,t,n){var i=t.options.props;if(!a(i)){var r={},s=e.attrs,l=e.props;if(o(s)||o(l))for(var c in i){var u=D(c);Mt(r,l,c,u,!0)||Mt(r,s,c,u,!1)}return r}}function Mt(e,t,n,i,r){if(o(t)){if(M(t,n))return e[n]=t[n],r||delete t[n],!0;if(M(t,i))return e[n]=t[i],r||delete t[i],!0}return!1}function Ct(e){for(var t=0;t<e.length;t++)if(r(e[t]))return Array.prototype.concat.apply([],e);return e}function Tt(e){return c(e)?[we(e)]:r(e)?At(e):void 0}function Et(e){return o(e)&&o(e.text)&&l(e.isComment)}function At(e,t){var n,i,l,u,h=[];for(n=0;n<e.length;n++)i=e[n],a(i)||"boolean"===typeof i||(l=h.length-1,u=h[l],r(i)?i.length>0&&(i=At(i,"".concat(t||"","_").concat(n)),Et(i[0])&&Et(u)&&(h[l]=we(u.text+i[0].text),i.shift()),h.push.apply(h,i)):c(i)?Et(u)?h[l]=we(u.text+i):""!==i&&h.push(we(i)):Et(i)&&Et(u)?h[l]=we(u.text+i.text):(s(e._isVList)&&o(i.tag)&&a(i.key)&&o(t)&&(i.key="__vlist".concat(t,"_").concat(n,"__")),h.push(i)));return h}var kt=1,Dt=2;function It(e,t,n,i,a,o){return(r(n)||c(n))&&(a=i,i=n,n=void 0),s(o)&&(a=Dt),Pt(e,t,n,i,a)}function Pt(e,t,n,i,a){if(o(n)&&o(n.__ob__))return be();if(o(n)&&o(n.is)&&(t=n.is),!t)return be();var s,l;if(r(i)&&u(i[0])&&(n=n||{},n.scopedSlots={default:i[0]},i.length=0),a===Dt?i=Tt(i):a===kt&&(i=Ct(i)),"string"===typeof t){var c=void 0;l=e.$vnode&&e.$vnode.ns||X.getTagNamespace(t),s=X.isReservedTag(t)?new xe(X.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!o(c=Jr(e.$options,"components",t))?new xe(t,n,i,void 0,void 0,e):Rr(c,n,e,i,t)}else s=Rr(t,n,e,i);return r(s)?s:o(s)?(o(l)&&Ot(s,l),o(n)&&Lt(n),s):be()}function Ot(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),o(e.children))for(var i=0,r=e.children.length;i<r;i++){var l=e.children[i];o(l.tag)&&(a(l.ns)||s(n)&&"svg"!==l.tag)&&Ot(l,t,n)}}function Lt(e){h(e.style)&&tr(e.style),h(e.class)&&tr(e.class)}function Rt(e,t){var n,i,a,s,l=null;if(r(e)||"string"===typeof e)for(l=new Array(e.length),n=0,i=e.length;n<i;n++)l[n]=t(e[n],n);else if("number"===typeof e)for(l=new Array(e),n=0;n<e;n++)l[n]=t(n+1,n);else if(h(e))if(ge&&e[Symbol.iterator]){l=[];var c=e[Symbol.iterator](),u=c.next();while(!u.done)l.push(t(u.value,l.length)),u=c.next()}else for(a=Object.keys(e),l=new Array(a.length),n=0,i=a.length;n<i;n++)s=a[n],l[n]=t(e[s],s,n);return o(l)||(l=[]),l._isVList=!0,l}function Nt(e,t,n,i){var r,a=this.$scopedSlots[e];a?(n=n||{},i&&(n=R(R({},i),n)),r=a(n)||(u(t)?t():t)):r=this.$slots[e]||(u(t)?t():t);var o=n&&n.slot;return o?this.$createElement("template",{slot:o},r):r}function Ft(e){return Jr(this.$options,"filters",e,!0)||z}function Bt(e,t){return r(e)?-1===e.indexOf(t):e!==t}function zt(e,t,n,i,r){var a=X.keyCodes[t]||n;return r&&i&&!X.keyCodes[t]?Bt(r,i):a?Bt(a,e):i?D(i)!==t:void 0===e}function Vt(e,t,n,i,a){if(n)if(h(n)){r(n)&&(n=N(n));var o=void 0,s=function(r){if("class"===r||"style"===r||b(r))o=e;else{var s=e.attrs&&e.attrs.type;o=i||X.mustUseProp(t,s,r)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=E(r),c=D(r);if(!(l in o)&&!(c in o)&&(o[r]=n[r],a)){var u=e.on||(e.on={});u["update:".concat(r)]=function(e){n[r]=e}}};for(var l in n)s(l)}else;return e}function Ut(e,t){var n=this._staticTrees||(this._staticTrees=[]),i=n[e];return i&&!t||(i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),$t(i,"__static__".concat(e),!1)),i}function Ht(e,t,n){return $t(e,"__once__".concat(t).concat(n?"_".concat(n):""),!0),e}function $t(e,t,n){if(r(e))for(var i=0;i<e.length;i++)e[i]&&"string"!==typeof e[i]&&jt(e[i],"".concat(t,"_").concat(i),n);else jt(e,t,n)}function jt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Wt(e,t){if(t)if(p(t)){var n=e.on=e.on?R({},e.on):{};for(var i in t){var r=n[i],a=t[i];n[i]=r?[].concat(r,a):a}}else;return e}function Gt(e,t,n,i){t=t||{$stable:!n};for(var a=0;a<e.length;a++){var o=e[a];r(o)?Gt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return i&&(t.$key=i),t}function qt(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];"string"===typeof i&&i&&(e[t[n]]=t[n+1])}return e}function Xt(e,t){return"string"===typeof e?t+e:e}function Yt(e){e._o=Ht,e._n=y,e._s=v,e._l=Rt,e._t=Nt,e._q=U,e._i=H,e._m=Ut,e._f=Ft,e._k=zt,e._b=Vt,e._v=we,e._e=be,e._u=Gt,e._g=Wt,e._d=qt,e._p=Xt}function Kt(e,t){if(!e||!e.length)return{};for(var n={},i=0,r=e.length;i<r;i++){var a=e[i],o=a.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,a.context!==t&&a.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(a);else{var s=o.slot,l=n[s]||(n[s]=[]);"template"===a.tag?l.push.apply(l,a.children||[]):l.push(a)}}for(var c in n)n[c].every(Zt)&&delete n[c];return n}function Zt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Jt(e){return e.isComment&&e.asyncFactory}function Qt(e,t,n,r){var a,o=Object.keys(n).length>0,s=t?!!t.$stable:!o,l=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&r&&r!==i&&l===r.$key&&!o&&!r.$hasNormal)return r;for(var c in a={},t)t[c]&&"$"!==c[0]&&(a[c]=en(e,n,c,t[c]))}else a={};for(var u in n)u in a||(a[u]=tn(n,u));return t&&Object.isExtensible(t)&&(t._normalized=a),Z(a,"$stable",s),Z(a,"$key",l),Z(a,"$hasNormal",o),a}function en(e,t,n,i){var a=function(){var t=ve;_e(e);var n=arguments.length?i.apply(null,arguments):i({});n=n&&"object"===typeof n&&!r(n)?[n]:Tt(n);var a=n&&n[0];return _e(t),n&&(!a||1===n.length&&a.isComment&&!Jt(a))?void 0:n};return i.proxy&&Object.defineProperty(t,n,{get:a,enumerable:!0,configurable:!0}),a}function tn(e,t){return function(){return e[t]}}function nn(e){var t=e.$options,n=t.setup;if(n){var i=e._setupContext=rn(e);_e(e),ke();var r=bi(n,null,[e._props||Ge({}),i],e,"setup");if(De(),_e(),u(r))t.render=r;else if(h(r))if(e._setupState=r,r.__sfc){var a=e._setupProxy={};for(var o in r)"__sfc"!==o&<(a,r,o)}else for(var o in r)K(o)||lt(e,r,o);else 0}}function rn(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};Z(t,"_v_attr_proxy",!0),an(t,e.$attrs,i,e,"$attrs")}return e._attrsProxy},get listeners(){if(!e._listenersProxy){var t=e._listenersProxy={};an(t,e.$listeners,i,e,"$listeners")}return e._listenersProxy},get slots(){return sn(e)},emit:O(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(n){return lt(e,t,n)}))}}}function an(e,t,n,i,r){var a=!1;for(var o in t)o in e?t[o]!==n[o]&&(a=!0):(a=!0,on(e,o,i,r));for(var o in e)o in t||(a=!0,delete e[o]);return a}function on(e,t,n,i){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[i][t]}})}function sn(e){return e._slotsProxy||ln(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}function ln(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function cn(){return dn().slots}function un(){return dn().attrs}function hn(){return dn().listeners}function dn(){var e=ve;return e._setupContext||(e._setupContext=rn(e))}function pn(e,t){var n=r(e)?e.reduce((function(e,t){return e[t]={},e}),{}):e;for(var i in t){var a=n[i];a?r(a)||u(a)?n[i]={type:a,default:t[i]}:a.default=t[i]:null===a&&(n[i]={default:t[i]})}return n}function fn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=Kt(t._renderChildren,r),e.$scopedSlots=n?Qt(e.$parent,n.data.scopedSlots,e.$slots):i,e._c=function(t,n,i,r){return It(e,t,n,i,r,!1)},e.$createElement=function(t,n,i,r){return It(e,t,n,i,r,!0)};var a=n&&n.data;Ue(e,"$attrs",a&&a.attrs||i,null,!0),Ue(e,"$listeners",t._parentListeners||i,null,!0)}var mn,gn=null;function vn(e){Yt(e.prototype),e.prototype.$nextTick=function(e){return Oi(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,i=n.render,a=n._parentVnode;a&&t._isMounted&&(t.$scopedSlots=Qt(t.$parent,a.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&ln(t._slotsProxy,t.$scopedSlots)),t.$vnode=a;try{_e(t),gn=t,e=i.call(t._renderProxy,t.$createElement)}catch(Oh){xi(Oh,t,"render"),e=t._vnode}finally{gn=null,_e()}return r(e)&&1===e.length&&(e=e[0]),e instanceof xe||(e=be()),e.parent=a,e}}function yn(e,t){return(e.__esModule||ge&&"Module"===e[Symbol.toStringTag])&&(e=e.default),h(e)?t.extend(e):e}function _n(e,t,n,i,r){var a=be();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:i,tag:r},a}function xn(e,t){if(s(e.error)&&o(e.errorComp))return e.errorComp;if(o(e.resolved))return e.resolved;var n=gn;if(n&&o(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),s(e.loading)&&o(e.loadingComp))return e.loadingComp;if(n&&!o(e.owners)){var i=e.owners=[n],r=!0,l=null,c=null;n.$on("hook:destroyed",(function(){return w(i,n)}));var u=function(e){for(var t=0,n=i.length;t<n;t++)i[t].$forceUpdate();e&&(i.length=0,null!==l&&(clearTimeout(l),l=null),null!==c&&(clearTimeout(c),c=null))},d=$((function(n){e.resolved=yn(n,t),r?i.length=0:u(!0)})),p=$((function(t){o(e.errorComp)&&(e.error=!0,u(!0))})),f=e(d,p);return h(f)&&(g(f)?a(e.resolved)&&f.then(d,p):g(f.component)&&(f.component.then(d,p),o(f.error)&&(e.errorComp=yn(f.error,t)),o(f.loading)&&(e.loadingComp=yn(f.loading,t),0===f.delay?e.loading=!0:l=setTimeout((function(){l=null,a(e.resolved)&&a(e.error)&&(e.loading=!0,u(!1))}),f.delay||200)),o(f.timeout)&&(c=setTimeout((function(){c=null,a(e.resolved)&&p(null)}),f.timeout)))),r=!1,e.loading?e.loadingComp:e.resolved}}function bn(e){if(r(e))for(var t=0;t<e.length;t++){var n=e[t];if(o(n)&&(o(n.componentOptions)||Jt(n)))return n}}function wn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Tn(e,t)}function Sn(e,t){mn.$on(e,t)}function Mn(e,t){mn.$off(e,t)}function Cn(e,t){var n=mn;return function i(){var r=t.apply(null,arguments);null!==r&&n.$off(e,i)}}function Tn(e,t,n){mn=e,bt(t,n||{},Sn,Mn,Cn,e),mn=void 0}function En(e){var t=/^hook:/;e.prototype.$on=function(e,n){var i=this;if(r(e))for(var a=0,o=e.length;a<o;a++)i.$on(e[a],n);else(i._events[e]||(i._events[e]=[])).push(n),t.test(e)&&(i._hasHookEvent=!0);return i},e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i),t.apply(n,arguments)}return i.fn=t,n.$on(e,i),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(r(e)){for(var i=0,a=e.length;i<a;i++)n.$off(e[i],t);return n}var o,s=n._events[e];if(!s)return n;if(!t)return n._events[e]=null,n;var l=s.length;while(l--)if(o=s[l],o===t||o.fn===t){s.splice(l,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?L(n):n;for(var i=L(arguments,1),r='event handler for "'.concat(e,'"'),a=0,o=n.length;a<o;a++)bi(n[a],t,i,t,r)}return t}}var An=null;function kn(e){var t=An;return An=e,function(){An=t}}function Dn(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function In(e){e.prototype._update=function(e,t){var n=this,i=n.$el,r=n._vnode,a=kn(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),a(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n);var o=n;while(o&&o.$vnode&&o.$parent&&o.$vnode===o.$parent._vnode)o.$parent.$el=o.$el,o=o.$parent},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Fn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||w(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Fn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Pn(e,t,n){var i;e.$el=t,e.$options.render||(e.$options.render=be),Fn(e,"beforeMount"),i=function(){e._update(e._render(),n)};var r={before:function(){e._isMounted&&!e._isDestroyed&&Fn(e,"beforeUpdate")}};new rr(e,i,F,r,!0),n=!1;var a=e._preWatchers;if(a)for(var o=0;o<a.length;o++)a[o].run();return null==e.$vnode&&(e._isMounted=!0,Fn(e,"mounted")),e}function On(e,t,n,r,a){var o=r.data.scopedSlots,s=e.$scopedSlots,l=!!(o&&!o.$stable||s!==i&&!s.$stable||o&&e.$scopedSlots.$key!==o.$key||!o&&e.$scopedSlots.$key),c=!!(a||e.$options._renderChildren||l),u=e.$vnode;e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=a;var h=r.data.attrs||i;e._attrsProxy&&an(e._attrsProxy,h,u.data&&u.data.attrs||i,e,"$attrs")&&(c=!0),e.$attrs=h,n=n||i;var d=e.$options._parentListeners;if(e._listenersProxy&&an(e._listenersProxy,n,d||i,e,"$listeners"),e.$listeners=e.$options._parentListeners=n,Tn(e,n,d),t&&e.$options.props){Fe(!1);for(var p=e._props,f=e.$options._propKeys||[],m=0;m<f.length;m++){var g=f[m],v=e.$options.props;p[g]=Qr(g,v,t,e)}Fe(!0),e.$options.propsData=t}c&&(e.$slots=Kt(a,r.context),e.$forceUpdate())}function Ln(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Rn(e,t){if(t){if(e._directInactive=!1,Ln(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Rn(e.$children[n]);Fn(e,"activated")}}function Nn(e,t){if((!t||(e._directInactive=!0,!Ln(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Nn(e.$children[n]);Fn(e,"deactivated")}}function Fn(e,t,n,i){void 0===i&&(i=!0),ke();var r=ve;i&&_e(e);var a=e.$options[t],o="".concat(t," hook");if(a)for(var s=0,l=a.length;s<l;s++)bi(a[s],e,n||null,e,o);e._hasHookEvent&&e.$emit("hook:"+t),i&&_e(r),De()}var Bn=[],zn=[],Vn={},Un=!1,Hn=!1,$n=0;function jn(){$n=Bn.length=zn.length=0,Vn={},Un=Hn=!1}var Wn=0,Gn=Date.now;if(te&&!ie){var qn=window.performance;qn&&"function"===typeof qn.now&&Gn()>document.createEvent("Event").timeStamp&&(Gn=function(){return qn.now()})}var Xn=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Yn(){var e,t;for(Wn=Gn(),Hn=!0,Bn.sort(Xn),$n=0;$n<Bn.length;$n++)e=Bn[$n],e.before&&e.before(),t=e.id,Vn[t]=null,e.run();var n=zn.slice(),i=Bn.slice();jn(),Jn(n),Kn(i),Te(),pe&&X.devtools&&pe.emit("flush")}function Kn(e){var t=e.length;while(t--){var n=e[t],i=n.vm;i&&i._watcher===n&&i._isMounted&&!i._isDestroyed&&Fn(i,"updated")}}function Zn(e){e._inactive=!1,zn.push(e)}function Jn(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Rn(e[t],!0)}function Qn(e){var t=e.id;if(null==Vn[t]&&(e!==Ee.target||!e.noRecurse)){if(Vn[t]=!0,Hn){var n=Bn.length-1;while(n>$n&&Bn[n].id>e.id)n--;Bn.splice(n+1,0,e)}else Bn.push(e);Un||(Un=!0,Oi(Yn))}}var ei="watcher",ti="".concat(ei," callback"),ni="".concat(ei," getter"),ii="".concat(ei," cleanup");function ri(e,t){return ui(e,null,t)}function ai(e,t){return ui(e,null,{flush:"post"})}function oi(e,t){return ui(e,null,{flush:"sync"})}var si,li={};function ci(e,t,n){return ui(e,t,n)}function ui(e,t,n){var a=void 0===n?i:n,o=a.immediate,s=a.deep,l=a.flush,c=void 0===l?"pre":l;a.onTrack,a.onTrigger;var h,d,p=ve,f=function(e,t,n){return void 0===n&&(n=null),bi(e,null,n,p,t)},m=!1,g=!1;if(tt(e)?(h=function(){return e.value},m=Ye(e)):Xe(e)?(h=function(){return e.__ob__.dep.depend(),e},s=!0):r(e)?(g=!0,m=e.some((function(e){return Xe(e)||Ye(e)})),h=function(){return e.map((function(e){return tt(e)?e.value:Xe(e)?tr(e):u(e)?f(e,ni):void 0}))}):h=u(e)?t?function(){return f(e,ni)}:function(){if(!p||!p._isDestroyed)return d&&d(),f(e,ei,[y])}:F,t&&s){var v=h;h=function(){return tr(v())}}var y=function(e){d=_.onStop=function(){f(e,ii)}};if(de())return y=F,t?o&&f(t,ti,[h(),g?[]:void 0,y]):h(),F;var _=new rr(ve,h,F,{lazy:!0});_.noRecurse=!t;var x=g?[]:li;return _.run=function(){if(_.active)if(t){var e=_.get();(s||m||(g?e.some((function(e,t){return j(e,x[t])})):j(e,x)))&&(d&&d(),f(t,ti,[e,x===li?void 0:x,y]),x=e)}else _.get()},"sync"===c?_.update=_.run:"post"===c?(_.post=!0,_.update=function(){return Qn(_)}):_.update=function(){if(p&&p===ve&&!p._isMounted){var e=p._preWatchers||(p._preWatchers=[]);e.indexOf(_)<0&&e.push(_)}else Qn(_)},t?o?_.run():x=_.get():"post"===c&&p?p.$once("hook:mounted",(function(){return _.get()})):_.get(),function(){_.teardown()}}var hi=function(){function e(e){void 0===e&&(e=!1),this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=si,!e&&si&&(this.index=(si.scopes||(si.scopes=[])).push(this)-1)}return e.prototype.run=function(e){if(this.active){var t=si;try{return si=this,e()}finally{si=t}}else 0},e.prototype.on=function(){si=this},e.prototype.off=function(){si=this.parent},e.prototype.stop=function(e){if(this.active){var t=void 0,n=void 0;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].teardown();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){var i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this.active=!1}},e}();function di(e){return new hi(e)}function pi(e,t){void 0===t&&(t=si),t&&t.active&&t.effects.push(e)}function fi(){return si}function mi(e){si&&si.cleanups.push(e)}function gi(e,t){ve&&(vi(ve)[e]=t)}function vi(e){var t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}function yi(e,t,n){void 0===n&&(n=!1);var i=ve;if(i){var r=i.$parent&&i.$parent._provided;if(r&&e in r)return r[e];if(arguments.length>1)return n&&u(t)?t.call(i):t}else 0}function _i(e,t,n){return It(ve,e,t,n,2,!0)}function xi(e,t,n){ke();try{if(t){var i=t;while(i=i.$parent){var r=i.$options.errorCaptured;if(r)for(var a=0;a<r.length;a++)try{var o=!1===r[a].call(i,e,t,n);if(o)return}catch(Oh){wi(Oh,i,"errorCaptured hook")}}}wi(e,t,n)}finally{De()}}function bi(e,t,n,i,r){var a;try{a=n?e.apply(t,n):e.call(t),a&&!a._isVue&&g(a)&&!a._handled&&(a.catch((function(e){return xi(e,i,r+" (Promise/async)")})),a._handled=!0)}catch(Oh){xi(Oh,i,r)}return a}function wi(e,t,n){if(X.errorHandler)try{return X.errorHandler.call(null,e,t,n)}catch(Oh){Oh!==e&&Si(Oh,null,"config.errorHandler")}Si(e,t,n)}function Si(e,t,n){if(!te||"undefined"===typeof console)throw e;console.error(e)}var Mi,Ci=!1,Ti=[],Ei=!1;function Ai(){Ei=!1;var e=Ti.slice(0);Ti.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&fe(Promise)){var ki=Promise.resolve();Mi=function(){ki.then(Ai),oe&&setTimeout(F)},Ci=!0}else if(ie||"undefined"===typeof MutationObserver||!fe(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Mi="undefined"!==typeof setImmediate&&fe(setImmediate)?function(){setImmediate(Ai)}:function(){setTimeout(Ai,0)};else{var Di=1,Ii=new MutationObserver(Ai),Pi=document.createTextNode(String(Di));Ii.observe(Pi,{characterData:!0}),Mi=function(){Di=(Di+1)%2,Pi.data=String(Di)},Ci=!0}function Oi(e,t){var n;if(Ti.push((function(){if(e)try{e.call(t)}catch(Oh){xi(Oh,t,"nextTick")}else n&&n(t)})),Ei||(Ei=!0,Mi()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}function Li(e){if(void 0===e&&(e="$style"),!ve)return i;var t=ve[e];return t||i}function Ri(e){if(te){var t=ve;t&&ai((function(){var n=t.$el,i=e(t,t._setupProxy);if(n&&1===n.nodeType){var r=n.style;for(var a in i)r.setProperty("--".concat(a),i[a])}}))}}function Ni(e){u(e)&&(e={loader:e});var t=e.loader,n=e.loadingComponent,i=e.errorComponent,r=e.delay,a=void 0===r?200:r,o=e.timeout,s=(e.suspensible,e.onError);var l=null,c=0,h=function(){return c++,l=null,d()},d=function(){var e;return l||(e=l=t().catch((function(e){if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise((function(t,n){var i=function(){return t(h())},r=function(){return n(e)};s(e,i,r,c+1)}));throw e})).then((function(t){return e!==l&&l?l:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t)})))};return function(){var e=d();return{component:e,delay:a,timeout:o,error:i,loading:n}}}function Fi(e){return function(t,n){if(void 0===n&&(n=ve),n)return Bi(n,e,t)}}function Bi(e,t,n){var i=e.$options;i[t]=jr(i[t],n)}var zi=Fi("beforeMount"),Vi=Fi("mounted"),Ui=Fi("beforeUpdate"),Hi=Fi("updated"),$i=Fi("beforeDestroy"),ji=Fi("destroyed"),Wi=Fi("activated"),Gi=Fi("deactivated"),qi=Fi("serverPrefetch"),Xi=Fi("renderTracked"),Yi=Fi("renderTriggered"),Ki=Fi("errorCaptured");function Zi(e,t){void 0===t&&(t=ve),Ki(e,t)}var Ji="2.7.14";function Qi(e){return e}var er=new me;function tr(e){return nr(e,er),er.clear(),e}function nr(e,t){var n,i,a=r(e);if(!(!a&&!h(e)||e.__v_skip||Object.isFrozen(e)||e instanceof xe)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(a){n=e.length;while(n--)nr(e[n],t)}else if(tt(e))nr(e.value,t);else{i=Object.keys(e),n=i.length;while(n--)nr(e[i[n]],t)}}}var ir=0,rr=function(){function e(e,t,n,i,r){pi(this,si&&!si._vm?si:e?e._scope:void 0),(this.vm=e)&&r&&(e._watcher=this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ir,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new me,this.newDepIds=new me,this.expression="",u(t)?this.getter=t:(this.getter=Q(t),this.getter||(this.getter=F)),this.value=this.lazy?void 0:this.get()}return e.prototype.get=function(){var e;ke(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Oh){if(!this.user)throw Oh;xi(Oh,t,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&tr(e),De(),this.cleanupDeps()}return e},e.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},e.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}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},e.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Qn(this)},e.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||h(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');bi(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},e.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},e.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},e.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&w(this.vm._scope.effects,this),this.active){var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},e}(),ar={enumerable:!0,configurable:!0,get:F,set:F};function or(e,t,n){ar.get=function(){return this[t][n]},ar.set=function(e){this[t][n]=e},Object.defineProperty(e,n,ar)}function sr(e){var t=e.$options;if(t.props&&lr(e,t.props),nn(e),t.methods&&gr(e,t.methods),t.data)cr(e);else{var n=Ve(e._data={});n&&n.vmCount++}t.computed&&dr(e,t.computed),t.watch&&t.watch!==ce&&vr(e,t.watch)}function lr(e,t){var n=e.$options.propsData||{},i=e._props=Ge({}),r=e.$options._propKeys=[],a=!e.$parent;a||Fe(!1);var o=function(a){r.push(a);var o=Qr(a,t,n,e);Ue(i,a,o),a in e||or(e,"_props",a)};for(var s in t)o(s);Fe(!0)}function cr(e){var t=e.$options.data;t=e._data=u(t)?ur(t,e):t||{},p(t)||(t={});var n=Object.keys(t),i=e.$options.props,r=(e.$options.methods,n.length);while(r--){var a=n[r];0,i&&M(i,a)||K(a)||or(e,"_data",a)}var o=Ve(t);o&&o.vmCount++}function ur(e,t){ke();try{return e.call(t,t)}catch(Oh){return xi(Oh,t,"data()"),{}}finally{De()}}var hr={lazy:!0};function dr(e,t){var n=e._computedWatchers=Object.create(null),i=de();for(var r in t){var a=t[r],o=u(a)?a:a.get;0,i||(n[r]=new rr(e,o||F,F,hr)),r in e||pr(e,r,a)}}function pr(e,t,n){var i=!de();u(n)?(ar.get=i?fr(t):mr(n),ar.set=F):(ar.get=n.get?i&&!1!==n.cache?fr(t):mr(n.get):F,ar.set=n.set||F),Object.defineProperty(e,t,ar)}function fr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Ee.target&&t.depend(),t.value}}function mr(e){return function(){return e.call(this,this)}}function gr(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?F:O(t[n],e)}function vr(e,t){for(var n in t){var i=t[n];if(r(i))for(var a=0;a<i.length;a++)yr(e,n,i[a]);else yr(e,n,i)}}function yr(e,t,n,i){return p(n)&&(i=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,i)}function _r(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=He,e.prototype.$delete=$e,e.prototype.$watch=function(e,t,n){var i=this;if(p(t))return yr(i,e,t,n);n=n||{},n.user=!0;var r=new rr(i,e,t,n);if(n.immediate){var a='callback for immediate watcher "'.concat(r.expression,'"');ke(),bi(t,i,[r.value],i,a),De()}return function(){r.teardown()}}}function xr(e){var t=e.$options.provide;if(t){var n=u(t)?t.call(e):t;if(!h(n))return;for(var i=vi(e),r=ge?Reflect.ownKeys(n):Object.keys(n),a=0;a<r.length;a++){var o=r[a];Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(n,o))}}}function br(e){var t=wr(e.$options.inject,e);t&&(Fe(!1),Object.keys(t).forEach((function(n){Ue(e,n,t[n])})),Fe(!0))}function wr(e,t){if(e){for(var n=Object.create(null),i=ge?Reflect.ownKeys(e):Object.keys(e),r=0;r<i.length;r++){var a=i[r];if("__ob__"!==a){var o=e[a].from;if(o in t._provided)n[a]=t._provided[o];else if("default"in e[a]){var s=e[a].default;n[a]=u(s)?s.call(t):s}else 0}}return n}}var Sr=0;function Mr(e){e.prototype._init=function(e){var t=this;t._uid=Sr++,t._isVue=!0,t.__v_skip=!0,t._scope=new hi(!0),t._scope._vm=!0,e&&e._isComponent?Cr(t,e):t.$options=Zr(Tr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Dn(t),wn(t),fn(t),Fn(t,"beforeCreate",void 0,!1),br(t),sr(t),xr(t),Fn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function Cr(e,t){var n=e.$options=Object.create(e.constructor.options),i=t._parentVnode;n.parent=t.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Tr(e){var t=e.options;if(e.super){var n=Tr(e.super),i=e.superOptions;if(n!==i){e.superOptions=n;var r=Er(e);r&&R(e.extendOptions,r),t=e.options=Zr(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Er(e){var t,n=e.options,i=e.sealedOptions;for(var r in n)n[r]!==i[r]&&(t||(t={}),t[r]=n[r]);return t}function Ar(e,t,n,a,o){var l,c=this,u=o.options;M(a,"_uid")?(l=Object.create(a),l._original=a):(l=a,a=a._original);var h=s(u._compiled),d=!h;this.data=e,this.props=t,this.children=n,this.parent=a,this.listeners=e.on||i,this.injections=wr(u.inject,a),this.slots=function(){return c.$slots||Qt(a,e.scopedSlots,c.$slots=Kt(n,a)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Qt(a,e.scopedSlots,this.slots())}}),h&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=Qt(a,e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,i){var o=It(l,e,t,n,i,d);return o&&!r(o)&&(o.fnScopeId=u._scopeId,o.fnContext=a),o}:this._c=function(e,t,n,i){return It(l,e,t,n,i,d)}}function kr(e,t,n,a,s){var l=e.options,c={},u=l.props;if(o(u))for(var h in u)c[h]=Qr(h,u,t||i);else o(n.attrs)&&Ir(c,n.attrs),o(n.props)&&Ir(c,n.props);var d=new Ar(n,c,s,a,e),p=l.render.call(null,d._c,d);if(p instanceof xe)return Dr(p,n,d.parent,l,d);if(r(p)){for(var f=Tt(p)||[],m=new Array(f.length),g=0;g<f.length;g++)m[g]=Dr(f[g],n,d.parent,l,d);return m}}function Dr(e,t,n,i,r){var a=Se(e);return a.fnContext=n,a.fnOptions=i,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function Ir(e,t){for(var n in t)e[E(n)]=t[n]}function Pr(e){return e.name||e.__name||e._componentTag}Yt(Ar.prototype);var Or={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Or.prepatch(n,n)}else{var i=e.componentInstance=Nr(e,An);i.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,i=t.componentInstance=e.componentInstance;On(i,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,Fn(n,"mounted")),e.data.keepAlive&&(t._isMounted?Zn(n):Rn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Nn(t,!0):t.$destroy())}},Lr=Object.keys(Or);function Rr(e,t,n,i,r){if(!a(e)){var l=n.$options._base;if(h(e)&&(e=l.extend(e)),"function"===typeof e){var c;if(a(e.cid)&&(c=e,e=xn(c,l),void 0===e))return _n(c,t,n,i,r);t=t||{},Tr(e),o(t.model)&&zr(e.options,t);var u=St(t,e,r);if(s(e.options.functional))return kr(e,u,t,n,i);var d=t.on;if(t.on=t.nativeOn,s(e.options.abstract)){var p=t.slot;t={},p&&(t.slot=p)}Fr(t);var f=Pr(e.options)||r,m=new xe("vue-component-".concat(e.cid).concat(f?"-".concat(f):""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:u,listeners:d,tag:r,children:i},c);return m}}}function Nr(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;return o(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new e.componentOptions.Ctor(n)}function Fr(e){for(var t=e.hook||(e.hook={}),n=0;n<Lr.length;n++){var i=Lr[n],r=t[i],a=Or[i];r===a||r&&r._merged||(t[i]=r?Br(a,r):a)}}function Br(e,t){var n=function(n,i){e(n,i),t(n,i)};return n._merged=!0,n}function zr(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var a=t.on||(t.on={}),s=a[i],l=t.model.callback;o(s)?(r(s)?-1===s.indexOf(l):s!==l)&&(a[i]=[l].concat(s)):a[i]=l}var Vr=F,Ur=X.optionMergeStrategies;function Hr(e,t,n){if(void 0===n&&(n=!0),!t)return e;for(var i,r,a,o=ge?Reflect.ownKeys(t):Object.keys(t),s=0;s<o.length;s++)i=o[s],"__ob__"!==i&&(r=e[i],a=t[i],n&&M(e,i)?r!==a&&p(r)&&p(a)&&Hr(r,a):He(e,i,a));return e}function $r(e,t,n){return n?function(){var i=u(t)?t.call(n,n):t,r=u(e)?e.call(n,n):e;return i?Hr(i,r):r}:t?e?function(){return Hr(u(t)?t.call(this,this):t,u(e)?e.call(this,this):e)}:t:e}function jr(e,t){var n=t?e?e.concat(t):r(t)?t:[t]:e;return n?Wr(n):n}function Wr(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function Gr(e,t,n,i){var r=Object.create(e||null);return t?R(r,t):r}Ur.data=function(e,t,n){return n?$r(e,t,n):t&&"function"!==typeof t?e:$r(e,t)},q.forEach((function(e){Ur[e]=jr})),G.forEach((function(e){Ur[e+"s"]=Gr})),Ur.watch=function(e,t,n,i){if(e===ce&&(e=void 0),t===ce&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var a={};for(var o in R(a,e),t){var s=a[o],l=t[o];s&&!r(s)&&(s=[s]),a[o]=s?s.concat(l):r(l)?l:[l]}return a},Ur.props=Ur.methods=Ur.inject=Ur.computed=function(e,t,n,i){if(!e)return t;var r=Object.create(null);return R(r,e),t&&R(r,t),r},Ur.provide=function(e,t){return e?function(){var n=Object.create(null);return Hr(n,u(e)?e.call(this):e),t&&Hr(n,u(t)?t.call(this):t,!1),n}:t};var qr=function(e,t){return void 0===t?e:t};function Xr(e,t){var n=e.props;if(n){var i,a,o,s={};if(r(n)){i=n.length;while(i--)a=n[i],"string"===typeof a&&(o=E(a),s[o]={type:null})}else if(p(n))for(var l in n)a=n[l],o=E(l),s[o]=p(a)?a:{type:a};else 0;e.props=s}}function Yr(e,t){var n=e.inject;if(n){var i=e.inject={};if(r(n))for(var a=0;a<n.length;a++)i[n[a]]={from:n[a]};else if(p(n))for(var o in n){var s=n[o];i[o]=p(s)?R({from:o},s):{from:s}}else 0}}function Kr(e){var t=e.directives;if(t)for(var n in t){var i=t[n];u(i)&&(t[n]={bind:i,update:i})}}function Zr(e,t,n){if(u(t)&&(t=t.options),Xr(t,n),Yr(t,n),Kr(t),!t._base&&(t.extends&&(e=Zr(e,t.extends,n)),t.mixins))for(var i=0,r=t.mixins.length;i<r;i++)e=Zr(e,t.mixins[i],n);var a,o={};for(a in e)s(a);for(a in t)M(e,a)||s(a);function s(i){var r=Ur[i]||qr;o[i]=r(e[i],t[i],n,i)}return o}function Jr(e,t,n,i){if("string"===typeof n){var r=e[t];if(M(r,n))return r[n];var a=E(n);if(M(r,a))return r[a];var o=A(a);if(M(r,o))return r[o];var s=r[n]||r[a]||r[o];return s}}function Qr(e,t,n,i){var r=t[e],a=!M(n,e),o=n[e],s=ra(Boolean,r.type);if(s>-1)if(a&&!M(r,"default"))o=!1;else if(""===o||o===D(e)){var l=ra(String,r.type);(l<0||s<l)&&(o=!0)}if(void 0===o){o=ea(i,r,e);var c=Ne;Fe(!0),Ve(o),Fe(c)}return o}function ea(e,t,n){if(M(t,"default")){var i=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:u(i)&&"Function"!==na(t.type)?i.call(e):i}}var ta=/^\s*function (\w+)/;function na(e){var t=e&&e.toString().match(ta);return t?t[1]:""}function ia(e,t){return na(e)===na(t)}function ra(e,t){if(!r(t))return ia(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(ia(t[n],e))return n;return-1}function aa(e){this._init(e)}function oa(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=L(arguments,1);return n.unshift(this),u(e.install)?e.install.apply(e,n):u(e)&&e.apply(null,n),t.push(e),this}}function sa(e){e.mixin=function(e){return this.options=Zr(this.options,e),this}}function la(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var a=Pr(e)||Pr(n.options);var o=function(e){this._init(e)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=t++,o.options=Zr(n.options,e),o["super"]=n,o.options.props&&ca(o),o.options.computed&&ua(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,G.forEach((function(e){o[e]=n[e]})),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=R({},o.options),r[i]=o,o}}function ca(e){var t=e.options.props;for(var n in t)or(e.prototype,"_props",n)}function ua(e){var t=e.options.computed;for(var n in t)pr(e.prototype,n,t[n])}function ha(e){G.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&p(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&u(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function da(e){return e&&(Pr(e.Ctor.options)||e.tag)}function pa(e,t){return r(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function fa(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var a in n){var o=n[a];if(o){var s=o.name;s&&!t(s)&&ma(n,a,i,r)}}}function ma(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,w(n,t)}Mr(aa),_r(aa),En(aa),In(aa),vn(aa);var ga=[String,RegExp,Array],va={name:"keep-alive",abstract:!0,props:{include:ga,exclude:ga,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,i=e.vnodeToCache,r=e.keyToCache;if(i){var a=i.tag,o=i.componentInstance,s=i.componentOptions;t[r]={name:da(s),tag:a,componentInstance:o},n.push(r),this.max&&n.length>parseInt(this.max)&&ma(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)ma(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){fa(e,(function(e){return pa(t,e)}))})),this.$watch("exclude",(function(t){fa(e,(function(e){return!pa(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=bn(e),n=t&&t.componentOptions;if(n){var i=da(n),r=this,a=r.include,o=r.exclude;if(a&&(!i||!pa(a,i))||o&&i&&pa(o,i))return t;var s=this,l=s.cache,c=s.keys,u=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;l[u]?(t.componentInstance=l[u].componentInstance,w(c,u),c.push(u)):(this.vnodeToCache=t,this.keyToCache=u),t.data.keepAlive=!0}return t||e&&e[0]}},ya={KeepAlive:va};function _a(e){var t={get:function(){return X}};Object.defineProperty(e,"config",t),e.util={warn:Vr,extend:R,mergeOptions:Zr,defineReactive:Ue},e.set=He,e.delete=$e,e.nextTick=Oi,e.observable=function(e){return Ve(e),e},e.options=Object.create(null),G.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,R(e.options.components,ya),oa(e),sa(e),la(e),ha(e)}_a(aa),Object.defineProperty(aa.prototype,"$isServer",{get:de}),Object.defineProperty(aa.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(aa,"FunctionalRenderContext",{value:Ar}),aa.version=Ji;var xa=_("style,class"),ba=_("input,textarea,option,select,progress"),wa=function(e,t,n){return"value"===n&&ba(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Sa=_("contenteditable,draggable,spellcheck"),Ma=_("events,caret,typing,plaintext-only"),Ca=function(e,t){return Da(t)||"false"===t?"false":"contenteditable"===e&&Ma(t)?t:"true"},Ta=_("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,truespeed,typemustmatch,visible"),Ea="http://www.w3.org/1999/xlink",Aa=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},ka=function(e){return Aa(e)?e.slice(6,e.length):""},Da=function(e){return null==e||!1===e};function Ia(e){var t=e.data,n=e,i=e;while(o(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(t=Pa(i.data,t));while(o(n=n.parent))n&&n.data&&(t=Pa(t,n.data));return Oa(t.staticClass,t.class)}function Pa(e,t){return{staticClass:La(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Oa(e,t){return o(e)||o(t)?La(e,Ra(t)):""}function La(e,t){return e?t?e+" "+t:e:t||""}function Ra(e){return Array.isArray(e)?Na(e):h(e)?Fa(e):"string"===typeof e?e:""}function Na(e){for(var t,n="",i=0,r=e.length;i<r;i++)o(t=Ra(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function Fa(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var Ba={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},za=_("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"),Va=_("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),Ua=function(e){return"pre"===e},Ha=function(e){return za(e)||Va(e)};function $a(e){return Va(e)?"svg":"math"===e?"math":void 0}var ja=Object.create(null);function Wa(e){if(!te)return!0;if(Ha(e))return!1;if(e=e.toLowerCase(),null!=ja[e])return ja[e];var t=document.createElement(e);return e.indexOf("-")>-1?ja[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ja[e]=/HTMLUnknownElement/.test(t.toString())}var Ga=_("text,number,password,search,email,tel,url");function qa(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function Xa(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function Ya(e,t){return document.createElementNS(Ba[e],t)}function Ka(e){return document.createTextNode(e)}function Za(e){return document.createComment(e)}function Ja(e,t,n){e.insertBefore(t,n)}function Qa(e,t){e.removeChild(t)}function eo(e,t){e.appendChild(t)}function to(e){return e.parentNode}function no(e){return e.nextSibling}function io(e){return e.tagName}function ro(e,t){e.textContent=t}function ao(e,t){e.setAttribute(t,"")}var oo=Object.freeze({__proto__:null,createElement:Xa,createElementNS:Ya,createTextNode:Ka,createComment:Za,insertBefore:Ja,removeChild:Qa,appendChild:eo,parentNode:to,nextSibling:no,tagName:io,setTextContent:ro,setStyleScope:ao}),so={create:function(e,t){lo(t)},update:function(e,t){e.data.ref!==t.data.ref&&(lo(e,!0),lo(t))},destroy:function(e){lo(e,!0)}};function lo(e,t){var n=e.data.ref;if(o(n)){var i=e.context,a=e.componentInstance||e.elm,s=t?null:a,l=t?void 0:a;if(u(n))bi(n,i,[s],i,"template ref function");else{var c=e.data.refInFor,h="string"===typeof n||"number"===typeof n,d=tt(n),p=i.$refs;if(h||d)if(c){var f=h?p[n]:n.value;t?r(f)&&w(f,a):r(f)?f.includes(a)||f.push(a):h?(p[n]=[a],co(i,n,p[n])):n.value=[a]}else if(h){if(t&&p[n]!==a)return;p[n]=l,co(i,n,s)}else if(d){if(t&&n.value!==a)return;n.value=s}else 0}}}function co(e,t,n){var i=e._setupState;i&&M(i,t)&&(tt(i[t])?i[t].value=n:i[t]=n)}var uo=new xe("",{},[]),ho=["create","activate","update","remove","destroy"];function po(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&o(e.data)===o(t.data)&&fo(e,t)||s(e.isAsyncPlaceholder)&&a(t.asyncFactory.error))}function fo(e,t){if("input"!==e.tag)return!0;var n,i=o(n=e.data)&&o(n=n.attrs)&&n.type,r=o(n=t.data)&&o(n=n.attrs)&&n.type;return i===r||Ga(i)&&Ga(r)}function mo(e,t,n){var i,r,a={};for(i=t;i<=n;++i)r=e[i].key,o(r)&&(a[r]=i);return a}function go(e){var t,n,i={},l=e.modules,u=e.nodeOps;for(t=0;t<ho.length;++t)for(i[ho[t]]=[],n=0;n<l.length;++n)o(l[n][ho[t]])&&i[ho[t]].push(l[n][ho[t]]);function h(e){return new xe(u.tagName(e).toLowerCase(),{},[],void 0,e)}function d(e,t){function n(){0===--n.listeners&&p(e)}return n.listeners=t,n}function p(e){var t=u.parentNode(e);o(t)&&u.removeChild(t,e)}function f(e,t,n,i,r,a,l){if(o(e.elm)&&o(a)&&(e=a[l]=Se(e)),e.isRootInsert=!r,!m(e,t,n,i)){var c=e.data,h=e.children,d=e.tag;o(d)?(e.elm=e.ns?u.createElementNS(e.ns,d):u.createElement(d,e),S(e),x(e,h,t),o(c)&&w(e,t),y(n,e.elm,i)):s(e.isComment)?(e.elm=u.createComment(e.text),y(n,e.elm,i)):(e.elm=u.createTextNode(e.text),y(n,e.elm,i))}}function m(e,t,n,i){var r=e.data;if(o(r)){var a=o(e.componentInstance)&&r.keepAlive;if(o(r=r.hook)&&o(r=r.init)&&r(e,!1),o(e.componentInstance))return g(e,t),y(n,e.elm,i),s(a)&&v(e,t,n,i),!0}}function g(e,t){o(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,b(e)?(w(e,t),S(e)):(lo(e),t.push(e))}function v(e,t,n,r){var a,s=e;while(s.componentInstance)if(s=s.componentInstance._vnode,o(a=s.data)&&o(a=a.transition)){for(a=0;a<i.activate.length;++a)i.activate[a](uo,s);t.push(s);break}y(n,e.elm,r)}function y(e,t,n){o(e)&&(o(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function x(e,t,n){if(r(t)){0;for(var i=0;i<t.length;++i)f(t[i],n,e.elm,null,!0,t,i)}else c(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function b(e){while(e.componentInstance)e=e.componentInstance._vnode;return o(e.tag)}function w(e,n){for(var r=0;r<i.create.length;++r)i.create[r](uo,e);t=e.data.hook,o(t)&&(o(t.create)&&t.create(uo,e),o(t.insert)&&n.push(e))}function S(e){var t;if(o(t=e.fnScopeId))u.setStyleScope(e.elm,t);else{var n=e;while(n)o(t=n.context)&&o(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent}o(t=An)&&t!==e.context&&t!==e.fnContext&&o(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function M(e,t,n,i,r,a){for(;i<=r;++i)f(n[i],a,e,t,!1,n,i)}function C(e){var t,n,r=e.data;if(o(r))for(o(t=r.hook)&&o(t=t.destroy)&&t(e),t=0;t<i.destroy.length;++t)i.destroy[t](e);if(o(t=e.children))for(n=0;n<e.children.length;++n)C(e.children[n])}function T(e,t,n){for(;t<=n;++t){var i=e[t];o(i)&&(o(i.tag)?(E(i),C(i)):p(i.elm))}}function E(e,t){if(o(t)||o(e.data)){var n,r=i.remove.length+1;for(o(t)?t.listeners+=r:t=d(e.elm,r),o(n=e.componentInstance)&&o(n=n._vnode)&&o(n.data)&&E(n,t),n=0;n<i.remove.length;++n)i.remove[n](e,t);o(n=e.data.hook)&&o(n=n.remove)?n(e,t):t()}else p(e.elm)}function A(e,t,n,i,r){var s,l,c,h,d=0,p=0,m=t.length-1,g=t[0],v=t[m],y=n.length-1,_=n[0],x=n[y],b=!r;while(d<=m&&p<=y)a(g)?g=t[++d]:a(v)?v=t[--m]:po(g,_)?(D(g,_,i,n,p),g=t[++d],_=n[++p]):po(v,x)?(D(v,x,i,n,y),v=t[--m],x=n[--y]):po(g,x)?(D(g,x,i,n,y),b&&u.insertBefore(e,g.elm,u.nextSibling(v.elm)),g=t[++d],x=n[--y]):po(v,_)?(D(v,_,i,n,p),b&&u.insertBefore(e,v.elm,g.elm),v=t[--m],_=n[++p]):(a(s)&&(s=mo(t,d,m)),l=o(_.key)?s[_.key]:k(_,t,d,m),a(l)?f(_,i,e,g.elm,!1,n,p):(c=t[l],po(c,_)?(D(c,_,i,n,p),t[l]=void 0,b&&u.insertBefore(e,c.elm,g.elm)):f(_,i,e,g.elm,!1,n,p)),_=n[++p]);d>m?(h=a(n[y+1])?null:n[y+1].elm,M(e,h,n,p,y,i)):p>y&&T(t,d,m)}function k(e,t,n,i){for(var r=n;r<i;r++){var a=t[r];if(o(a)&&po(e,a))return r}}function D(e,t,n,r,l,c){if(e!==t){o(t.elm)&&o(r)&&(t=r[l]=Se(t));var h=t.elm=e.elm;if(s(e.isAsyncPlaceholder))o(t.asyncFactory.resolved)?O(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(s(t.isStatic)&&s(e.isStatic)&&t.key===e.key&&(s(t.isCloned)||s(t.isOnce)))t.componentInstance=e.componentInstance;else{var d,p=t.data;o(p)&&o(d=p.hook)&&o(d=d.prepatch)&&d(e,t);var f=e.children,m=t.children;if(o(p)&&b(t)){for(d=0;d<i.update.length;++d)i.update[d](e,t);o(d=p.hook)&&o(d=d.update)&&d(e,t)}a(t.text)?o(f)&&o(m)?f!==m&&A(h,f,m,n,c):o(m)?(o(e.text)&&u.setTextContent(h,""),M(h,null,m,0,m.length-1,n)):o(f)?T(f,0,f.length-1):o(e.text)&&u.setTextContent(h,""):e.text!==t.text&&u.setTextContent(h,t.text),o(p)&&o(d=p.hook)&&o(d=d.postpatch)&&d(e,t)}}}function I(e,t,n){if(s(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}var P=_("attrs,class,staticClass,staticStyle,key");function O(e,t,n,i){var r,a=t.tag,l=t.data,c=t.children;if(i=i||l&&l.pre,t.elm=e,s(t.isComment)&&o(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(o(l)&&(o(r=l.hook)&&o(r=r.init)&&r(t,!0),o(r=t.componentInstance)))return g(t,n),!0;if(o(a)){if(o(c))if(e.hasChildNodes())if(o(r=l)&&o(r=r.domProps)&&o(r=r.innerHTML)){if(r!==e.innerHTML)return!1}else{for(var u=!0,h=e.firstChild,d=0;d<c.length;d++){if(!h||!O(h,c[d],n,i)){u=!1;break}h=h.nextSibling}if(!u||h)return!1}else x(t,c,n);if(o(l)){var p=!1;for(var f in l)if(!P(f)){p=!0,w(t,n);break}!p&&l["class"]&&tr(l["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,r){if(!a(t)){var l=!1,c=[];if(a(e))l=!0,f(t,c);else{var d=o(e.nodeType);if(!d&&po(e,t))D(e,t,c,null,null,r);else{if(d){if(1===e.nodeType&&e.hasAttribute(W)&&(e.removeAttribute(W),n=!0),s(n)&&O(e,t,c))return I(t,c,!0),e;e=h(e)}var p=e.elm,m=u.parentNode(p);if(f(t,c,p._leaveCb?null:m,u.nextSibling(p)),o(t.parent)){var g=t.parent,v=b(t);while(g){for(var y=0;y<i.destroy.length;++y)i.destroy[y](g);if(g.elm=t.elm,v){for(var _=0;_<i.create.length;++_)i.create[_](uo,g);var x=g.data.hook.insert;if(x.merged)for(var w=1;w<x.fns.length;w++)x.fns[w]()}else lo(g);g=g.parent}}o(m)?T([e],0,0):o(e.tag)&&C(e)}}return I(t,c,l),t.elm}o(e)&&C(e)}}var vo={create:yo,update:yo,destroy:function(e){yo(e,uo)}};function yo(e,t){(e.data.directives||t.data.directives)&&_o(e,t)}function _o(e,t){var n,i,r,a=e===uo,o=t===uo,s=bo(e.data.directives,e.context),l=bo(t.data.directives,t.context),c=[],u=[];for(n in l)i=s[n],r=l[n],i?(r.oldValue=i.value,r.oldArg=i.arg,So(r,"update",t,e),r.def&&r.def.componentUpdated&&u.push(r)):(So(r,"bind",t,e),r.def&&r.def.inserted&&c.push(r));if(c.length){var h=function(){for(var n=0;n<c.length;n++)So(c[n],"inserted",t,e)};a?wt(t,"insert",h):h()}if(u.length&&wt(t,"postpatch",(function(){for(var n=0;n<u.length;n++)So(u[n],"componentUpdated",t,e)})),!a)for(n in s)l[n]||So(s[n],"unbind",e,e,o)}var xo=Object.create(null);function bo(e,t){var n,i,r=Object.create(null);if(!e)return r;for(n=0;n<e.length;n++){if(i=e[n],i.modifiers||(i.modifiers=xo),r[wo(i)]=i,t._setupState&&t._setupState.__sfc){var a=i.def||Jr(t,"_setupState","v-"+i.name);i.def="function"===typeof a?{bind:a,update:a}:a}i.def=i.def||Jr(t.$options,"directives",i.name,!0)}return r}function wo(e){return e.rawName||"".concat(e.name,".").concat(Object.keys(e.modifiers||{}).join("."))}function So(e,t,n,i,r){var a=e.def&&e.def[t];if(a)try{a(n.elm,e,n,i,r)}catch(Oh){xi(Oh,n.context,"directive ".concat(e.name," ").concat(t," hook"))}}var Mo=[so,vo];function Co(e,t){var n=t.componentOptions;if((!o(n)||!1!==n.Ctor.options.inheritAttrs)&&(!a(e.data.attrs)||!a(t.data.attrs))){var i,r,l,c=t.elm,u=e.data.attrs||{},h=t.data.attrs||{};for(i in(o(h.__ob__)||s(h._v_attr_proxy))&&(h=t.data.attrs=R({},h)),h)r=h[i],l=u[i],l!==r&&To(c,i,r,t.data.pre);for(i in(ie||ae)&&h.value!==u.value&&To(c,"value",h.value),u)a(h[i])&&(Aa(i)?c.removeAttributeNS(Ea,ka(i)):Sa(i)||c.removeAttribute(i))}}function To(e,t,n,i){i||e.tagName.indexOf("-")>-1?Eo(e,t,n):Ta(t)?Da(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Sa(t)?e.setAttribute(t,Ca(t,n)):Aa(t)?Da(n)?e.removeAttributeNS(Ea,ka(t)):e.setAttributeNS(Ea,t,n):Eo(e,t,n)}function Eo(e,t,n){if(Da(n))e.removeAttribute(t);else{if(ie&&!re&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var Ao={create:Co,update:Co};function ko(e,t){var n=t.elm,i=t.data,r=e.data;if(!(a(i.staticClass)&&a(i.class)&&(a(r)||a(r.staticClass)&&a(r.class)))){var s=Ia(t),l=n._transitionClasses;o(l)&&(s=La(s,Ra(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Do,Io,Po,Oo,Lo,Ro,No={create:ko,update:ko},Fo=/[\w).+\-_$\]]/;function Bo(e){var t,n,i,r,a,o=!1,s=!1,l=!1,c=!1,u=0,h=0,d=0,p=0;for(i=0;i<e.length;i++)if(n=t,t=e.charCodeAt(i),o)39===t&&92!==n&&(o=!1);else if(s)34===t&&92!==n&&(s=!1);else if(l)96===t&&92!==n&&(l=!1);else if(c)47===t&&92!==n&&(c=!1);else if(124!==t||124===e.charCodeAt(i+1)||124===e.charCodeAt(i-1)||u||h||d){switch(t){case 34:s=!0;break;case 39:o=!0;break;case 96:l=!0;break;case 40:d++;break;case 41:d--;break;case 91:h++;break;case 93:h--;break;case 123:u++;break;case 125:u--;break}if(47===t){for(var f=i-1,m=void 0;f>=0;f--)if(m=e.charAt(f)," "!==m)break;m&&Fo.test(m)||(c=!0)}}else void 0===r?(p=i+1,r=e.slice(0,i).trim()):g();function g(){(a||(a=[])).push(e.slice(p,i).trim()),p=i+1}if(void 0===r?r=e.slice(0,i).trim():0!==p&&g(),a)for(i=0;i<a.length;i++)r=zo(r,a[i]);return r}function zo(e,t){var n=t.indexOf("(");if(n<0)return'_f("'.concat(t,'")(').concat(e,")");var i=t.slice(0,n),r=t.slice(n+1);return'_f("'.concat(i,'")(').concat(e).concat(")"!==r?","+r:r)}function Vo(e,t){console.error("[Vue compiler]: ".concat(e))}function Uo(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function Ho(e,t,n,i,r){(e.props||(e.props=[])).push(Jo({name:t,value:n,dynamic:r},i)),e.plain=!1}function $o(e,t,n,i,r){var a=r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[]);a.push(Jo({name:t,value:n,dynamic:r},i)),e.plain=!1}function jo(e,t,n,i){e.attrsMap[t]=n,e.attrsList.push(Jo({name:t,value:n},i))}function Wo(e,t,n,i,r,a,o,s){(e.directives||(e.directives=[])).push(Jo({name:t,rawName:n,value:i,arg:r,isDynamicArg:a,modifiers:o},s)),e.plain=!1}function Go(e,t,n){return n?"_p(".concat(t,',"').concat(e,'")'):e+t}function qo(e,t,n,r,a,o,s,l){var c;r=r||i,r.right?l?t="(".concat(t,")==='click'?'contextmenu':(").concat(t,")"):"click"===t&&(t="contextmenu",delete r.right):r.middle&&(l?t="(".concat(t,")==='click'?'mouseup':(").concat(t,")"):"click"===t&&(t="mouseup")),r.capture&&(delete r.capture,t=Go("!",t,l)),r.once&&(delete r.once,t=Go("~",t,l)),r.passive&&(delete r.passive,t=Go("&",t,l)),r.native?(delete r.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});var u=Jo({value:n.trim(),dynamic:l},s);r!==i&&(u.modifiers=r);var h=c[t];Array.isArray(h)?a?h.unshift(u):h.push(u):c[t]=h?a?[u,h]:[h,u]:u,e.plain=!1}function Xo(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}function Yo(e,t,n){var i=Ko(e,":"+t)||Ko(e,"v-bind:"+t);if(null!=i)return Bo(i);if(!1!==n){var r=Ko(e,t);if(null!=r)return JSON.stringify(r)}}function Ko(e,t,n){var i;if(null!=(i=e.attrsMap[t]))for(var r=e.attrsList,a=0,o=r.length;a<o;a++)if(r[a].name===t){r.splice(a,1);break}return n&&delete e.attrsMap[t],i}function Zo(e,t){for(var n=e.attrsList,i=0,r=n.length;i<r;i++){var a=n[i];if(t.test(a.name))return n.splice(i,1),a}}function Jo(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Qo(e,t,n){var i=n||{},r=i.number,a=i.trim,o="$$v",s=o;a&&(s="(typeof ".concat(o," === 'string'")+"? ".concat(o,".trim()")+": ".concat(o,")")),r&&(s="_n(".concat(s,")"));var l=es(t,s);e.model={value:"(".concat(t,")"),expression:JSON.stringify(t),callback:"function (".concat(o,") {").concat(l,"}")}}function es(e,t){var n=ts(e);return null===n.key?"".concat(e,"=").concat(t):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(t,")")}function ts(e){if(e=e.trim(),Do=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<Do-1)return Oo=e.lastIndexOf("."),Oo>-1?{exp:e.slice(0,Oo),key:'"'+e.slice(Oo+1)+'"'}:{exp:e,key:null};Io=e,Oo=Lo=Ro=0;while(!is())Po=ns(),rs(Po)?os(Po):91===Po&&as(Po);return{exp:e.slice(0,Lo),key:e.slice(Lo+1,Ro)}}function ns(){return Io.charCodeAt(++Oo)}function is(){return Oo>=Do}function rs(e){return 34===e||39===e}function as(e){var t=1;Lo=Oo;while(!is())if(e=ns(),rs(e))os(e);else if(91===e&&t++,93===e&&t--,0===t){Ro=Oo;break}}function os(e){var t=e;while(!is())if(e=ns(),e===t)break}var ss,ls="__r",cs="__c";function us(e,t,n){n;var i=t.value,r=t.modifiers,a=e.tag,o=e.attrsMap.type;if(e.component)return Qo(e,i,r),!1;if("select"===a)ps(e,i,r);else if("input"===a&&"checkbox"===o)hs(e,i,r);else if("input"===a&&"radio"===o)ds(e,i,r);else if("input"===a||"textarea"===a)fs(e,i,r);else{if(!X.isReservedTag(a))return Qo(e,i,r),!1}return!0}function hs(e,t,n){var i=n&&n.number,r=Yo(e,"value")||"null",a=Yo(e,"true-value")||"true",o=Yo(e,"false-value")||"false";Ho(e,"checked","Array.isArray(".concat(t,")")+"?_i(".concat(t,",").concat(r,")>-1")+("true"===a?":(".concat(t,")"):":_q(".concat(t,",").concat(a,")"))),qo(e,"change","var $$a=".concat(t,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(a,"):(").concat(o,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(i?"_n("+r+")":r,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(es(t,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(es(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(es(t,"$$c"),"}"),null,!0)}function ds(e,t,n){var i=n&&n.number,r=Yo(e,"value")||"null";r=i?"_n(".concat(r,")"):r,Ho(e,"checked","_q(".concat(t,",").concat(r,")")),qo(e,"change",es(t,r),null,!0)}function ps(e,t,n){var i=n&&n.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 ".concat(i?"_n(val)":"val","})"),a="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",o="var $$selectedVal = ".concat(r,";");o="".concat(o," ").concat(es(t,a)),qo(e,"change",o,null,!0)}function fs(e,t,n){var i=e.attrsMap.type,r=n||{},a=r.lazy,o=r.number,s=r.trim,l=!a&&"range"!==i,c=a?"change":"range"===i?ls:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),o&&(u="_n(".concat(u,")"));var h=es(t,u);l&&(h="if($event.target.composing)return;".concat(h)),Ho(e,"value","(".concat(t,")")),qo(e,c,h,null,!0),(s||o)&&qo(e,"blur","$forceUpdate()")}function ms(e){if(o(e[ls])){var t=ie?"change":"input";e[t]=[].concat(e[ls],e[t]||[]),delete e[ls]}o(e[cs])&&(e.change=[].concat(e[cs],e.change||[]),delete e[cs])}function gs(e,t,n){var i=ss;return function r(){var a=t.apply(null,arguments);null!==a&&_s(e,r,n,i)}}var vs=Ci&&!(le&&Number(le[1])<=53);function ys(e,t,n,i){if(vs){var r=Wn,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}ss.addEventListener(e,t,ue?{capture:n,passive:i}:n)}function _s(e,t,n,i){(i||ss).removeEventListener(e,t._wrapper||t,n)}function xs(e,t){if(!a(e.data.on)||!a(t.data.on)){var n=t.data.on||{},i=e.data.on||{};ss=t.elm||e.elm,ms(n),bt(n,i,ys,_s,gs,t.context),ss=void 0}}var bs,ws={create:xs,update:xs,destroy:function(e){return xs(e,uo)}};function Ss(e,t){if(!a(e.data.domProps)||!a(t.data.domProps)){var n,i,r=t.elm,l=e.data.domProps||{},c=t.data.domProps||{};for(n in(o(c.__ob__)||s(c._v_attr_proxy))&&(c=t.data.domProps=R({},c)),l)n in c||(r[n]="");for(n in c){if(i=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),i===l[n])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===n&&"PROGRESS"!==r.tagName){r._value=i;var u=a(i)?"":String(i);Ms(r,u)&&(r.value=u)}else if("innerHTML"===n&&Va(r.tagName)&&a(r.innerHTML)){bs=bs||document.createElement("div"),bs.innerHTML="<svg>".concat(i,"</svg>");var h=bs.firstChild;while(r.firstChild)r.removeChild(r.firstChild);while(h.firstChild)r.appendChild(h.firstChild)}else if(i!==l[n])try{r[n]=i}catch(Oh){}}}}function Ms(e,t){return!e.composing&&("OPTION"===e.tagName||Cs(e,t)||Ts(e,t))}function Cs(e,t){var n=!0;try{n=document.activeElement!==e}catch(Oh){}return n&&e.value!==t}function Ts(e,t){var n=e.value,i=e._vModifiers;if(o(i)){if(i.number)return y(n)!==y(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var Es={create:Ss,update:Ss},As=C((function(e){var t={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function ks(e){var t=Ds(e.style);return e.staticStyle?R(e.staticStyle,t):t}function Ds(e){return Array.isArray(e)?N(e):"string"===typeof e?As(e):e}function Is(e,t){var n,i={};if(t){var r=e;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=ks(r.data))&&R(i,n)}(n=ks(e.data))&&R(i,n);var a=e;while(a=a.parent)a.data&&(n=ks(a.data))&&R(i,n);return i}var Ps,Os=/^--/,Ls=/\s*!important$/,Rs=function(e,t,n){if(Os.test(t))e.style.setProperty(t,n);else if(Ls.test(n))e.style.setProperty(D(t),n.replace(Ls,""),"important");else{var i=Fs(t);if(Array.isArray(n))for(var r=0,a=n.length;r<a;r++)e.style[i]=n[r];else e.style[i]=n}},Ns=["Webkit","Moz","ms"],Fs=C((function(e){if(Ps=Ps||document.createElement("div").style,e=E(e),"filter"!==e&&e in Ps)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Ns.length;n++){var i=Ns[n]+t;if(i in Ps)return i}}));function Bs(e,t){var n=t.data,i=e.data;if(!(a(n.staticStyle)&&a(n.style)&&a(i.staticStyle)&&a(i.style))){var r,s,l=t.elm,c=i.staticStyle,u=i.normalizedStyle||i.style||{},h=c||u,d=Ds(t.data.style)||{};t.data.normalizedStyle=o(d.__ob__)?R({},d):d;var p=Is(t,!0);for(s in h)a(p[s])&&Rs(l,s,"");for(s in p)r=p[s],r!==h[s]&&Rs(l,s,null==r?"":r)}}var zs={create:Bs,update:Bs},Vs=/\s+/;function Us(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Vs).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Hs(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Vs).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" ".concat(e.getAttribute("class")||""," "),i=" "+t+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function $s(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&R(t,js(e.name||"v")),R(t,e),t}return"string"===typeof e?js(e):void 0}}var js=C((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),Ws=te&&!re,Gs="transition",qs="animation",Xs="transition",Ys="transitionend",Ks="animation",Zs="animationend";Ws&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Xs="WebkitTransition",Ys="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ks="WebkitAnimation",Zs="webkitAnimationEnd"));var Js=te?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Qs(e){Js((function(){Js(e)}))}function el(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Us(e,t))}function tl(e,t){e._transitionClasses&&w(e._transitionClasses,t),Hs(e,t)}function nl(e,t,n){var i=rl(e,t),r=i.type,a=i.timeout,o=i.propCount;if(!r)return n();var s=r===Gs?Ys:Zs,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=o&&c()};setTimeout((function(){l<o&&c()}),a+1),e.addEventListener(s,u)}var il=/\b(transform|all)(,|$)/;function rl(e,t){var n,i=window.getComputedStyle(e),r=(i[Xs+"Delay"]||"").split(", "),a=(i[Xs+"Duration"]||"").split(", "),o=al(r,a),s=(i[Ks+"Delay"]||"").split(", "),l=(i[Ks+"Duration"]||"").split(", "),c=al(s,l),u=0,h=0;t===Gs?o>0&&(n=Gs,u=o,h=a.length):t===qs?c>0&&(n=qs,u=c,h=l.length):(u=Math.max(o,c),n=u>0?o>c?Gs:qs:null,h=n?n===Gs?a.length:l.length:0);var d=n===Gs&&il.test(i[Xs+"Property"]);return{type:n,timeout:u,propCount:h,hasTransform:d}}function al(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return ol(t)+ol(e[n])})))}function ol(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function sl(e,t){var n=e.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=$s(e.data.transition);if(!a(i)&&!o(n._enterCb)&&1===n.nodeType){var r=i.css,s=i.type,l=i.enterClass,c=i.enterToClass,d=i.enterActiveClass,p=i.appearClass,f=i.appearToClass,m=i.appearActiveClass,g=i.beforeEnter,v=i.enter,_=i.afterEnter,x=i.enterCancelled,b=i.beforeAppear,w=i.appear,S=i.afterAppear,M=i.appearCancelled,C=i.duration,T=An,E=An.$vnode;while(E&&E.parent)T=E.context,E=E.parent;var A=!T._isMounted||!e.isRootInsert;if(!A||w||""===w){var k=A&&p?p:l,D=A&&m?m:d,I=A&&f?f:c,P=A&&b||g,O=A&&u(w)?w:v,L=A&&S||_,R=A&&M||x,N=y(h(C)?C.enter:C);0;var F=!1!==r&&!re,B=ul(O),z=n._enterCb=$((function(){F&&(tl(n,I),tl(n,D)),z.cancelled?(F&&tl(n,k),R&&R(n)):L&&L(n),n._enterCb=null}));e.data.show||wt(e,"insert",(function(){var t=n.parentNode,i=t&&t._pending&&t._pending[e.key];i&&i.tag===e.tag&&i.elm._leaveCb&&i.elm._leaveCb(),O&&O(n,z)})),P&&P(n),F&&(el(n,k),el(n,D),Qs((function(){tl(n,k),z.cancelled||(el(n,I),B||(cl(N)?setTimeout(z,N):nl(n,s,z)))}))),e.data.show&&(t&&t(),O&&O(n,z)),F||B||z()}}}function ll(e,t){var n=e.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var i=$s(e.data.transition);if(a(i)||1!==n.nodeType)return t();if(!o(n._leaveCb)){var r=i.css,s=i.type,l=i.leaveClass,c=i.leaveToClass,u=i.leaveActiveClass,d=i.beforeLeave,p=i.leave,f=i.afterLeave,m=i.leaveCancelled,g=i.delayLeave,v=i.duration,_=!1!==r&&!re,x=ul(p),b=y(h(v)?v.leave:v);0;var w=n._leaveCb=$((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),_&&(tl(n,c),tl(n,u)),w.cancelled?(_&&tl(n,l),m&&m(n)):(t(),f&&f(n)),n._leaveCb=null}));g?g(S):S()}function S(){w.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),d&&d(n),_&&(el(n,l),el(n,u),Qs((function(){tl(n,l),w.cancelled||(el(n,c),x||(cl(b)?setTimeout(w,b):nl(n,s,w)))}))),p&&p(n,w),_||x||w())}}function cl(e){return"number"===typeof e&&!isNaN(e)}function ul(e){if(a(e))return!1;var t=e.fns;return o(t)?ul(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function hl(e,t){!0!==t.data.show&&sl(t)}var dl=te?{create:hl,activate:hl,remove:function(e,t){!0!==e.data.show?ll(e,t):t()}}:{},pl=[Ao,No,ws,Es,zs,dl],fl=pl.concat(Mo),ml=go({nodeOps:oo,modules:fl});re&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Sl(e,"input")}));var gl={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?wt(n,"postpatch",(function(){gl.componentUpdated(e,t,n)})):vl(e,t,n.context),e._vOptions=[].map.call(e.options,xl)):("textarea"===n.tag||Ga(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",bl),e.addEventListener("compositionend",wl),e.addEventListener("change",wl),re&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){vl(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,xl);if(r.some((function(e,t){return!U(e,i[t])}))){var a=e.multiple?t.value.some((function(e){return _l(e,r)})):t.value!==t.oldValue&&_l(t.value,r);a&&Sl(e,"change")}}}};function vl(e,t,n){yl(e,t,n),(ie||ae)&&setTimeout((function(){yl(e,t,n)}),0)}function yl(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var a,o,s=0,l=e.options.length;s<l;s++)if(o=e.options[s],r)a=H(i,xl(o))>-1,o.selected!==a&&(o.selected=a);else if(U(xl(o),i))return void(e.selectedIndex!==s&&(e.selectedIndex=s));r||(e.selectedIndex=-1)}}function _l(e,t){return t.every((function(t){return!U(t,e)}))}function xl(e){return"_value"in e?e._value:e.value}function bl(e){e.target.composing=!0}function wl(e){e.target.composing&&(e.target.composing=!1,Sl(e.target,"input"))}function Sl(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ml(e){return!e.componentInstance||e.data&&e.data.transition?e:Ml(e.componentInstance._vnode)}var Cl={bind:function(e,t,n){var i=t.value;n=Ml(n);var r=n.data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,sl(n,(function(){e.style.display=a}))):e.style.display=i?a:"none"},update:function(e,t,n){var i=t.value,r=t.oldValue;if(!i!==!r){n=Ml(n);var a=n.data&&n.data.transition;a?(n.data.show=!0,i?sl(n,(function(){e.style.display=e.__vOriginalDisplay})):ll(n,(function(){e.style.display="none"}))):e.style.display=i?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}},Tl={model:gl,show:Cl},El={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Al(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Al(bn(t.children)):e}function kl(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var i in r)t[E(i)]=r[i];return t}function Dl(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Il(e){while(e=e.parent)if(e.data.transition)return!0}function Pl(e,t){return t.key===e.key&&t.tag===e.tag}var Ol=function(e){return e.tag||Jt(e)},Ll=function(e){return"show"===e.name},Rl={name:"transition",props:El,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Ol),n.length)){0;var i=this.mode;0;var r=n[0];if(Il(this.$vnode))return r;var a=Al(r);if(!a)return r;if(this._leaving)return Dl(e,r);var o="__transition-".concat(this._uid,"-");a.key=null==a.key?a.isComment?o+"comment":o+a.tag:c(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var s=(a.data||(a.data={})).transition=kl(this),l=this._vnode,u=Al(l);if(a.data.directives&&a.data.directives.some(Ll)&&(a.data.show=!0),u&&u.data&&!Pl(a,u)&&!Jt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=R({},s);if("out-in"===i)return this._leaving=!0,wt(h,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Dl(e,r);if("in-out"===i){if(Jt(a))return l;var d,p=function(){d()};wt(s,"afterEnter",p),wt(s,"enterCancelled",p),wt(h,"delayLeave",(function(e){d=e}))}}return r}}},Nl=R({tag:String,moveClass:String},El);delete Nl.mode;var Fl={props:Nl,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=kn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],a=this.children=[],o=kl(this),s=0;s<r.length;s++){var l=r[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))a.push(l),n[l.key]=l,(l.data||(l.data={})).transition=o;else;}if(i){var c=[],u=[];for(s=0;s<i.length;s++){l=i[s];l.data.transition=o,l.data.pos=l.elm.getBoundingClientRect(),n[l.key]?c.push(l):u.push(l)}this.kept=e(t,null,c),this.removed=u}return e(t,null,a)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Bl),e.forEach(zl),e.forEach(Vl),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,i=n.style;el(n,t),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(Ys,n._moveCb=function e(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(Ys,e),n._moveCb=null,tl(n,t))})}})))},methods:{hasMove:function(e,t){if(!Ws)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){Hs(n,e)})),Us(n,t),n.style.display="none",this.$el.appendChild(n);var i=rl(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}};function Bl(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function zl(e){e.data.newPos=e.elm.getBoundingClientRect()}function Vl(e){var t=e.data.pos,n=e.data.newPos,i=t.left-n.left,r=t.top-n.top;if(i||r){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate(".concat(i,"px,").concat(r,"px)"),a.transitionDuration="0s"}}var Ul={Transition:Rl,TransitionGroup:Fl};aa.config.mustUseProp=wa,aa.config.isReservedTag=Ha,aa.config.isReservedAttr=xa,aa.config.getTagNamespace=$a,aa.config.isUnknownElement=Wa,R(aa.options.directives,Tl),R(aa.options.components,Ul),aa.prototype.__patch__=te?ml:F,aa.prototype.$mount=function(e,t){return e=e&&te?qa(e):void 0,Pn(this,e,t)},te&&setTimeout((function(){X.devtools&&pe&&pe.emit("init",aa)}),0);var Hl=/\{\{((?:.|\r?\n)+?)\}\}/g,$l=/[-.*+?^${}()|[\]\/\\]/g,jl=C((function(e){var t=e[0].replace($l,"\\$&"),n=e[1].replace($l,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));function Wl(e,t){var n=t?jl(t):Hl;if(n.test(e)){var i,r,a,o=[],s=[],l=n.lastIndex=0;while(i=n.exec(e)){r=i.index,r>l&&(s.push(a=e.slice(l,r)),o.push(JSON.stringify(a)));var c=Bo(i[1].trim());o.push("_s(".concat(c,")")),s.push({"@binding":c}),l=r+i[0].length}return l<e.length&&(s.push(a=e.slice(l)),o.push(JSON.stringify(a))),{expression:o.join("+"),tokens:s}}}function Gl(e,t){t.warn;var n=Ko(e,"class");n&&(e.staticClass=JSON.stringify(n.replace(/\s+/g," ").trim()));var i=Yo(e,"class",!1);i&&(e.classBinding=i)}function ql(e){var t="";return e.staticClass&&(t+="staticClass:".concat(e.staticClass,",")),e.classBinding&&(t+="class:".concat(e.classBinding,",")),t}var Xl={staticKeys:["staticClass"],transformNode:Gl,genData:ql};function Yl(e,t){t.warn;var n=Ko(e,"style");n&&(e.staticStyle=JSON.stringify(As(n)));var i=Yo(e,"style",!1);i&&(e.styleBinding=i)}function Kl(e){var t="";return e.staticStyle&&(t+="staticStyle:".concat(e.staticStyle,",")),e.styleBinding&&(t+="style:(".concat(e.styleBinding,"),")),t}var Zl,Jl={staticKeys:["staticStyle"],transformNode:Yl,genData:Kl},Ql={decode:function(e){return Zl=Zl||document.createElement("div"),Zl.innerHTML=e,Zl.textContent}},ec=_("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),tc=_("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),nc=_("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"),ic=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,rc=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ac="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(Y.source,"]*"),oc="((?:".concat(ac,"\\:)?").concat(ac,")"),sc=new RegExp("^<".concat(oc)),lc=/^\s*(\/?)>/,cc=new RegExp("^<\\/".concat(oc,"[^>]*>")),uc=/^<!DOCTYPE [^>]+>/i,hc=/^<!\--/,dc=/^<!\[/,pc=_("script,style,textarea",!0),fc={},mc={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},gc=/&(?:lt|gt|quot|amp|#39);/g,vc=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,yc=_("pre,textarea",!0),_c=function(e,t){return e&&yc(e)&&"\n"===t[0]};function xc(e,t){var n=t?vc:gc;return e.replace(n,(function(e){return mc[e]}))}function bc(e,t){var n,i,r=[],a=t.expectHTML,o=t.isUnaryTag||B,s=t.canBeLeftOpenTag||B,l=0,c=function(){if(n=e,i&&pc(i)){var r=0,a=i.toLowerCase(),o=fc[a]||(fc[a]=new RegExp("([\\s\\S]*?)(</"+a+"[^>]*>)","i"));x=e.replace(o,(function(e,n,i){return r=i.length,pc(a)||"noscript"===a||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),_c(a,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));l+=e.length-x.length,e=x,f(a,l-r,l)}else{var s=e.indexOf("<");if(0===s){if(hc.test(e)){var c=e.indexOf("--\x3e");if(c>=0)return t.shouldKeepComment&&t.comment&&t.comment(e.substring(4,c),l,l+c+3),h(c+3),"continue"}if(dc.test(e)){var u=e.indexOf("]>");if(u>=0)return h(u+2),"continue"}var m=e.match(uc);if(m)return h(m[0].length),"continue";var g=e.match(cc);if(g){var v=l;return h(g[0].length),f(g[1],v,l),"continue"}var y=d();if(y)return p(y),_c(y.tagName,e)&&h(1),"continue"}var _=void 0,x=void 0,b=void 0;if(s>=0){x=e.slice(s);while(!cc.test(x)&&!sc.test(x)&&!hc.test(x)&&!dc.test(x)){if(b=x.indexOf("<",1),b<0)break;s+=b,x=e.slice(s)}_=e.substring(0,s)}s<0&&(_=e),_&&h(_.length),t.chars&&_&&t.chars(_,l-_.length,l)}if(e===n)return t.chars&&t.chars(e),"break"};while(e){var u=c();if("break"===u)break}function h(t){l+=t,e=e.substring(t)}function d(){var t=e.match(sc);if(t){var n={tagName:t[1],attrs:[],start:l};h(t[0].length);var i=void 0,r=void 0;while(!(i=e.match(lc))&&(r=e.match(rc)||e.match(ic)))r.start=l,h(r[0].length),r.end=l,n.attrs.push(r);if(i)return n.unarySlash=i[1],h(i[0].length),n.end=l,n}}function p(e){var n=e.tagName,l=e.unarySlash;a&&("p"===i&&nc(n)&&f(i),s(n)&&i===n&&f(n));for(var c=o(n)||!!l,u=e.attrs.length,h=new Array(u),d=0;d<u;d++){var p=e.attrs[d],m=p[3]||p[4]||p[5]||"",g="a"===n&&"href"===p[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;h[d]={name:p[1],value:xc(m,g)}}c||(r.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:h,start:e.start,end:e.end}),i=n),t.start&&t.start(n,h,c,e.start,e.end)}function f(e,n,a){var o,s;if(null==n&&(n=l),null==a&&(a=l),e){for(s=e.toLowerCase(),o=r.length-1;o>=0;o--)if(r[o].lowerCasedTag===s)break}else o=0;if(o>=0){for(var c=r.length-1;c>=o;c--)t.end&&t.end(r[c].tag,n,a);r.length=o,i=o&&r[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,a):"p"===s&&(t.start&&t.start(e,[],!1,n,a),t.end&&t.end(e,n,a))}f()}var wc,Sc,Mc,Cc,Tc,Ec,Ac,kc,Dc=/^@|^v-on:/,Ic=/^v-|^@|^:|^#/,Pc=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Oc=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Lc=/^\(|\)$/g,Rc=/^\[.*\]$/,Nc=/:(.*)$/,Fc=/^:|^\.|^v-bind:/,Bc=/\.[^.\]]+(?=[^\]]*$)/g,zc=/^v-slot(:|$)|^#/,Vc=/[\r\n]/,Uc=/[ \f\t\r\n]+/g,Hc=C(Ql.decode),$c="_empty_";function jc(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:hu(t),rawAttrsMap:{},parent:n,children:[]}}function Wc(e,t){wc=t.warn||Vo,Ec=t.isPreTag||B,Ac=t.mustUseProp||B,kc=t.getTagNamespace||B;var n=t.isReservedTag||B;(function(e){return!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag)))}),Mc=Uo(t.modules,"transformNode"),Cc=Uo(t.modules,"preTransformNode"),Tc=Uo(t.modules,"postTransformNode"),Sc=t.delimiters;var i,r,a=[],o=!1!==t.preserveWhitespace,s=t.whitespace,l=!1,c=!1;function u(e){if(h(e),l||e.processed||(e=Xc(e,t)),a.length||e===i||i.if&&(e.elseif||e.else)&&nu(i,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)eu(e,r);else{if(e.slotScope){var n=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[n]=e}r.children.push(e),e.parent=r}e.children=e.children.filter((function(e){return!e.slotScope})),h(e),e.pre&&(l=!1),Ec(e.tag)&&(c=!1);for(var o=0;o<Tc.length;o++)Tc[o](e,t)}function h(e){if(!c){var t=void 0;while((t=e.children[e.children.length-1])&&3===t.type&&" "===t.text)e.children.pop()}}return bc(e,{warn:wc,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,o,s,h){var d=r&&r.ns||kc(e);ie&&"svg"===d&&(n=gu(n));var p=jc(e,n,r);d&&(p.ns=d),pu(p)&&!de()&&(p.forbidden=!0);for(var f=0;f<Cc.length;f++)p=Cc[f](p,t)||p;l||(Gc(p),p.pre&&(l=!0)),Ec(p.tag)&&(c=!0),l?qc(p):p.processed||(Zc(p),Qc(p),iu(p)),i||(i=p),o?u(p):(r=p,a.push(p))},end:function(e,t,n){var i=a[a.length-1];a.length-=1,r=a[a.length-1],u(i)},chars:function(e,t,n){if(r&&(!ie||"textarea"!==r.tag||r.attrsMap.placeholder!==e)){var i=r.children;if(e=c||e.trim()?du(r)?e:Hc(e):i.length?s?"condense"===s&&Vc.test(e)?"":" ":o?" ":"":"",e){c||"condense"!==s||(e=e.replace(Uc," "));var a=void 0,u=void 0;!l&&" "!==e&&(a=Wl(e,Sc))?u={type:2,expression:a.expression,tokens:a.tokens,text:e}:" "===e&&i.length&&" "===i[i.length-1].text||(u={type:3,text:e}),u&&i.push(u)}}},comment:function(e,t,n){if(r){var i={type:3,text:e,isComment:!0};0,r.children.push(i)}}}),i}function Gc(e){null!=Ko(e,"v-pre")&&(e.pre=!0)}function qc(e){var t=e.attrsList,n=t.length;if(n)for(var i=e.attrs=new Array(n),r=0;r<n;r++)i[r]={name:t[r].name,value:JSON.stringify(t[r].value)},null!=t[r].start&&(i[r].start=t[r].start,i[r].end=t[r].end);else e.pre||(e.plain=!0)}function Xc(e,t){Yc(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,Kc(e),ru(e),ou(e),su(e);for(var n=0;n<Mc.length;n++)e=Mc[n](e,t)||e;return lu(e),e}function Yc(e){var t=Yo(e,"key");t&&(e.key=t)}function Kc(e){var t=Yo(e,"ref");t&&(e.ref=t,e.refInFor=cu(e))}function Zc(e){var t;if(t=Ko(e,"v-for")){var n=Jc(t);n&&R(e,n)}}function Jc(e){var t=e.match(Pc);if(t){var n={};n.for=t[2].trim();var i=t[1].trim().replace(Lc,""),r=i.match(Oc);return r?(n.alias=i.replace(Oc,"").trim(),n.iterator1=r[1].trim(),r[2]&&(n.iterator2=r[2].trim())):n.alias=i,n}}function Qc(e){var t=Ko(e,"v-if");if(t)e.if=t,nu(e,{exp:t,block:e});else{null!=Ko(e,"v-else")&&(e.else=!0);var n=Ko(e,"v-else-if");n&&(e.elseif=n)}}function eu(e,t){var n=tu(t.children);n&&n.if&&nu(n,{exp:e.elseif,block:e})}function tu(e){var t=e.length;while(t--){if(1===e[t].type)return e[t];e.pop()}}function nu(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function iu(e){var t=Ko(e,"v-once");null!=t&&(e.once=!0)}function ru(e){var t;"template"===e.tag?(t=Ko(e,"scope"),e.slotScope=t||Ko(e,"slot-scope")):(t=Ko(e,"slot-scope"))&&(e.slotScope=t);var n=Yo(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||$o(e,"slot",n,Xo(e,"slot"))),"template"===e.tag){var i=Zo(e,zc);if(i){0;var r=au(i),a=r.name,o=r.dynamic;e.slotTarget=a,e.slotTargetDynamic=o,e.slotScope=i.value||$c}}else{i=Zo(e,zc);if(i){0;var s=e.scopedSlots||(e.scopedSlots={}),l=au(i),c=l.name,u=(o=l.dynamic,s[c]=jc("template",[],e));u.slotTarget=c,u.slotTargetDynamic=o,u.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=u,!0})),u.slotScope=i.value||$c,e.children=[],e.plain=!1}}}function au(e){var t=e.name.replace(zc,"");return t||"#"!==e.name[0]&&(t="default"),Rc.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'.concat(t,'"'),dynamic:!1}}function ou(e){"slot"===e.tag&&(e.slotName=Yo(e,"name"))}function su(e){var t;(t=Yo(e,"is"))&&(e.component=t),null!=Ko(e,"inline-template")&&(e.inlineTemplate=!0)}function lu(e){var t,n,i,r,a,o,s,l,c=e.attrsList;for(t=0,n=c.length;t<n;t++){if(i=r=c[t].name,a=c[t].value,Ic.test(i))if(e.hasBindings=!0,o=uu(i.replace(Ic,"")),o&&(i=i.replace(Bc,"")),Fc.test(i))i=i.replace(Fc,""),a=Bo(a),l=Rc.test(i),l&&(i=i.slice(1,-1)),o&&(o.prop&&!l&&(i=E(i),"innerHtml"===i&&(i="innerHTML")),o.camel&&!l&&(i=E(i)),o.sync&&(s=es(a,"$event"),l?qo(e,'"update:"+('.concat(i,")"),s,null,!1,wc,c[t],!0):(qo(e,"update:".concat(E(i)),s,null,!1,wc,c[t]),D(i)!==E(i)&&qo(e,"update:".concat(D(i)),s,null,!1,wc,c[t])))),o&&o.prop||!e.component&&Ac(e.tag,e.attrsMap.type,i)?Ho(e,i,a,c[t],l):$o(e,i,a,c[t],l);else if(Dc.test(i))i=i.replace(Dc,""),l=Rc.test(i),l&&(i=i.slice(1,-1)),qo(e,i,a,o,!1,wc,c[t],l);else{i=i.replace(Ic,"");var u=i.match(Nc),h=u&&u[1];l=!1,h&&(i=i.slice(0,-(h.length+1)),Rc.test(h)&&(h=h.slice(1,-1),l=!0)),Wo(e,i,r,a,h,l,o,c[t])}else $o(e,i,JSON.stringify(a),c[t]),!e.component&&"muted"===i&&Ac(e.tag,e.attrsMap.type,i)&&Ho(e,i,"true",c[t])}}function cu(e){var t=e;while(t){if(void 0!==t.for)return!0;t=t.parent}return!1}function uu(e){var t=e.match(Bc);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function hu(e){for(var t={},n=0,i=e.length;n<i;n++)t[e[n].name]=e[n].value;return t}function du(e){return"script"===e.tag||"style"===e.tag}function pu(e){return"style"===e.tag||"script"===e.tag&&(!e.attrsMap.type||"text/javascript"===e.attrsMap.type)}var fu=/^xmlns:NS\d+/,mu=/^NS\d+:/;function gu(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];fu.test(i.name)||(i.name=i.name.replace(mu,""),t.push(i))}return t}function vu(e,t){if("input"===e.tag){var n=e.attrsMap;if(!n["v-model"])return;var i=void 0;if((n[":type"]||n["v-bind:type"])&&(i=Yo(e,"type")),n.type||i||!n["v-bind"]||(i="(".concat(n["v-bind"],").type")),i){var r=Ko(e,"v-if",!0),a=r?"&&(".concat(r,")"):"",o=null!=Ko(e,"v-else",!0),s=Ko(e,"v-else-if",!0),l=yu(e);Zc(l),jo(l,"type","checkbox"),Xc(l,t),l.processed=!0,l.if="(".concat(i,")==='checkbox'")+a,nu(l,{exp:l.if,block:l});var c=yu(e);Ko(c,"v-for",!0),jo(c,"type","radio"),Xc(c,t),nu(l,{exp:"(".concat(i,")==='radio'")+a,block:c});var u=yu(e);return Ko(u,"v-for",!0),jo(u,":type",i),Xc(u,t),nu(l,{exp:r,block:u}),o?l.else=!0:s&&(l.elseif=s),l}}}function yu(e){return jc(e.tag,e.attrsList.slice(),e.parent)}var _u={preTransformNode:vu},xu=[Xl,Jl,_u];function bu(e,t){t.value&&Ho(e,"textContent","_s(".concat(t.value,")"),t)}function wu(e,t){t.value&&Ho(e,"innerHTML","_s(".concat(t.value,")"),t)}var Su,Mu,Cu={model:us,text:bu,html:wu},Tu={expectHTML:!0,modules:xu,directives:Cu,isPreTag:Ua,isUnaryTag:ec,mustUseProp:wa,canBeLeftOpenTag:tc,isReservedTag:Ha,getTagNamespace:$a,staticKeys:V(xu)},Eu=C(ku);function Au(e,t){e&&(Su=Eu(t.staticKeys||""),Mu=t.isReservedTag||B,Du(e),Iu(e,!1))}function ku(e){return _("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}function Du(e){if(e.static=Pu(e),1===e.type){if(!Mu(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t<n;t++){var i=e.children[t];Du(i),i.static||(e.static=!1)}if(e.ifConditions)for(t=1,n=e.ifConditions.length;t<n;t++){var r=e.ifConditions[t].block;Du(r),r.static||(e.static=!1)}}}function Iu(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,i=e.children.length;n<i;n++)Iu(e.children[n],t||!!e.for);if(e.ifConditions)for(n=1,i=e.ifConditions.length;n<i;n++)Iu(e.ifConditions[n].block,t)}}function Pu(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||x(e.tag)||!Mu(e.tag)||Ou(e)||!Object.keys(e).every(Su))))}function Ou(e){while(e.parent){if(e=e.parent,"template"!==e.tag)return!1;if(e.for)return!0}return!1}var Lu=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Ru=/\([^)]*?\);*$/,Nu=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Fu={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Bu={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},zu=function(e){return"if(".concat(e,")return null;")},Vu={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:zu("$event.target !== $event.currentTarget"),ctrl:zu("!$event.ctrlKey"),shift:zu("!$event.shiftKey"),alt:zu("!$event.altKey"),meta:zu("!$event.metaKey"),left:zu("'button' in $event && $event.button !== 0"),middle:zu("'button' in $event && $event.button !== 1"),right:zu("'button' in $event && $event.button !== 2")};function Uu(e,t){var n=t?"nativeOn:":"on:",i="",r="";for(var a in e){var o=Hu(e[a]);e[a]&&e[a].dynamic?r+="".concat(a,",").concat(o,","):i+='"'.concat(a,'":').concat(o,",")}return i="{".concat(i.slice(0,-1),"}"),r?n+"_d(".concat(i,",[").concat(r.slice(0,-1),"])"):n+i}function Hu(e){if(!e)return"function(){}";if(Array.isArray(e))return"[".concat(e.map((function(e){return Hu(e)})).join(","),"]");var t=Nu.test(e.value),n=Lu.test(e.value),i=Nu.test(e.value.replace(Ru,""));if(e.modifiers){var r="",a="",o=[],s=function(t){if(Vu[t])a+=Vu[t],Fu[t]&&o.push(t);else if("exact"===t){var n=e.modifiers;a+=zu(["ctrl","shift","alt","meta"].filter((function(e){return!n[e]})).map((function(e){return"$event.".concat(e,"Key")})).join("||"))}else o.push(t)};for(var l in e.modifiers)s(l);o.length&&(r+=$u(o)),a&&(r+=a);var c=t?"return ".concat(e.value,".apply(null, arguments)"):n?"return (".concat(e.value,").apply(null, arguments)"):i?"return ".concat(e.value):e.value;return"function($event){".concat(r).concat(c,"}")}return t||n?e.value:"function($event){".concat(i?"return ".concat(e.value):e.value,"}")}function $u(e){return"if(!$event.type.indexOf('key')&&"+"".concat(e.map(ju).join("&&"),")return null;")}function ju(e){var t=parseInt(e,10);if(t)return"$event.keyCode!==".concat(t);var n=Fu[e],i=Bu[e];return"_k($event.keyCode,"+"".concat(JSON.stringify(e),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(i))+")"}function Wu(e,t){e.wrapListeners=function(e){return"_g(".concat(e,",").concat(t.value,")")}}function Gu(e,t){e.wrapData=function(n){return"_b(".concat(n,",'").concat(e.tag,"',").concat(t.value,",").concat(t.modifiers&&t.modifiers.prop?"true":"false").concat(t.modifiers&&t.modifiers.sync?",true":"",")")}}var qu={on:Wu,bind:Gu,cloak:F},Xu=function(){function e(e){this.options=e,this.warn=e.warn||Vo,this.transforms=Uo(e.modules,"transformCode"),this.dataGenFns=Uo(e.modules,"genData"),this.directives=R(R({},qu),e.directives);var t=e.isReservedTag||B;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1}return e}();function Yu(e,t){var n=new Xu(t),i=e?"script"===e.tag?"null":Ku(e,n):'_c("div")';return{render:"with(this){return ".concat(i,"}"),staticRenderFns:n.staticRenderFns}}function Ku(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ju(e,t);if(e.once&&!e.onceProcessed)return Qu(e,t);if(e.for&&!e.forProcessed)return nh(e,t);if(e.if&&!e.ifProcessed)return eh(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return gh(e,t);var n=void 0;if(e.component)n=vh(e.component,e,t);else{var i=void 0,r=t.maybeComponent(e);(!e.plain||e.pre&&r)&&(i=ih(e,t));var a=void 0,o=t.options.bindings;r&&o&&!1!==o.__isScriptSetup&&(a=Zu(o,e.tag)),a||(a="'".concat(e.tag,"'"));var s=e.inlineTemplate?null:uh(e,t,!0);n="_c(".concat(a).concat(i?",".concat(i):"").concat(s?",".concat(s):"",")")}for(var l=0;l<t.transforms.length;l++)n=t.transforms[l](e,n);return n}return uh(e,t)||"void 0"}function Zu(e,t){var n=E(t),i=A(n),r=function(r){return e[t]===r?t:e[n]===r?n:e[i]===r?i:void 0},a=r("setup-const")||r("setup-reactive-const");if(a)return a;var o=r("setup-let")||r("setup-ref")||r("setup-maybe-ref");return o||void 0}function Ju(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return ".concat(Ku(e,t),"}")),t.pre=n,"_m(".concat(t.staticRenderFns.length-1).concat(e.staticInFor?",true":"",")")}function Qu(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return eh(e,t);if(e.staticInFor){var n="",i=e.parent;while(i){if(i.for){n=i.key;break}i=i.parent}return n?"_o(".concat(Ku(e,t),",").concat(t.onceId++,",").concat(n,")"):Ku(e,t)}return Ju(e,t)}function eh(e,t,n,i){return e.ifProcessed=!0,th(e.ifConditions.slice(),t,n,i)}function th(e,t,n,i){if(!e.length)return i||"_e()";var r=e.shift();return r.exp?"(".concat(r.exp,")?").concat(a(r.block),":").concat(th(e,t,n,i)):"".concat(a(r.block));function a(e){return n?n(e,t):e.once?Qu(e,t):Ku(e,t)}}function nh(e,t,n,i){var r=e.for,a=e.alias,o=e.iterator1?",".concat(e.iterator1):"",s=e.iterator2?",".concat(e.iterator2):"";return e.forProcessed=!0,"".concat(i||"_l","((").concat(r,"),")+"function(".concat(a).concat(o).concat(s,"){")+"return ".concat((n||Ku)(e,t))+"})"}function ih(e,t){var n="{",i=rh(e,t);i&&(n+=i+","),e.key&&(n+="key:".concat(e.key,",")),e.ref&&(n+="ref:".concat(e.ref,",")),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'.concat(e.tag,'",'));for(var r=0;r<t.dataGenFns.length;r++)n+=t.dataGenFns[r](e);if(e.attrs&&(n+="attrs:".concat(yh(e.attrs),",")),e.props&&(n+="domProps:".concat(yh(e.props),",")),e.events&&(n+="".concat(Uu(e.events,!1),",")),e.nativeEvents&&(n+="".concat(Uu(e.nativeEvents,!0),",")),e.slotTarget&&!e.slotScope&&(n+="slot:".concat(e.slotTarget,",")),e.scopedSlots&&(n+="".concat(oh(e,e.scopedSlots,t),",")),e.model&&(n+="model:{value:".concat(e.model.value,",callback:").concat(e.model.callback,",expression:").concat(e.model.expression,"},")),e.inlineTemplate){var a=ah(e,t);a&&(n+="".concat(a,","))}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b(".concat(n,',"').concat(e.tag,'",').concat(yh(e.dynamicAttrs),")")),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function rh(e,t){var n=e.directives;if(n){var i,r,a,o,s="directives:[",l=!1;for(i=0,r=n.length;i<r;i++){a=n[i],o=!0;var c=t.directives[a.name];c&&(o=!!c(e,a,t.warn)),o&&(l=!0,s+='{name:"'.concat(a.name,'",rawName:"').concat(a.rawName,'"').concat(a.value?",value:(".concat(a.value,"),expression:").concat(JSON.stringify(a.value)):"").concat(a.arg?",arg:".concat(a.isDynamicArg?a.arg:'"'.concat(a.arg,'"')):"").concat(a.modifiers?",modifiers:".concat(JSON.stringify(a.modifiers)):"","},"))}return l?s.slice(0,-1)+"]":void 0}}function ah(e,t){var n=e.children[0];if(n&&1===n.type){var i=Yu(n,t.options);return"inlineTemplate:{render:function(){".concat(i.render,"},staticRenderFns:[").concat(i.staticRenderFns.map((function(e){return"function(){".concat(e,"}")})).join(","),"]}")}}function oh(e,t,n){var i=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||lh(n)})),r=!!e.if;if(!i){var a=e.parent;while(a){if(a.slotScope&&a.slotScope!==$c||a.for){i=!0;break}a.if&&(r=!0),a=a.parent}}var o=Object.keys(t).map((function(e){return ch(t[e],n)})).join(",");return"scopedSlots:_u([".concat(o,"]").concat(i?",null,true":"").concat(!i&&r?",null,false,".concat(sh(o)):"",")")}function sh(e){var t=5381,n=e.length;while(n)t=33*t^e.charCodeAt(--n);return t>>>0}function lh(e){return 1===e.type&&("slot"===e.tag||e.children.some(lh))}function ch(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return eh(e,t,ch,"null");if(e.for&&!e.forProcessed)return nh(e,t,ch);var i=e.slotScope===$c?"":String(e.slotScope),r="function(".concat(i,"){")+"return ".concat("template"===e.tag?e.if&&n?"(".concat(e.if,")?").concat(uh(e,t)||"undefined",":undefined"):uh(e,t)||"undefined":Ku(e,t),"}"),a=i?"":",proxy:true";return"{key:".concat(e.slotTarget||'"default"',",fn:").concat(r).concat(a,"}")}function uh(e,t,n,i,r){var a=e.children;if(a.length){var o=a[0];if(1===a.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var s=n?t.maybeComponent(o)?",1":",0":"";return"".concat((i||Ku)(o,t)).concat(s)}var l=n?hh(a,t.maybeComponent):0,c=r||ph;return"[".concat(a.map((function(e){return c(e,t)})).join(","),"]").concat(l?",".concat(l):"")}}function hh(e,t){for(var n=0,i=0;i<e.length;i++){var r=e[i];if(1===r.type){if(dh(r)||r.ifConditions&&r.ifConditions.some((function(e){return dh(e.block)}))){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}function dh(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function ph(e,t){return 1===e.type?Ku(e,t):3===e.type&&e.isComment?mh(e):fh(e)}function fh(e){return"_v(".concat(2===e.type?e.expression:_h(JSON.stringify(e.text)),")")}function mh(e){return"_e(".concat(JSON.stringify(e.text),")")}function gh(e,t){var n=e.slotName||'"default"',i=uh(e,t),r="_t(".concat(n).concat(i?",function(){return ".concat(i,"}"):""),a=e.attrs||e.dynamicAttrs?yh((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:E(e.name),value:e.value,dynamic:e.dynamic}}))):null,o=e.attrsMap["v-bind"];return!a&&!o||i||(r+=",null"),a&&(r+=",".concat(a)),o&&(r+="".concat(a?"":",null",",").concat(o)),r+")"}function vh(e,t,n){var i=t.inlineTemplate?null:uh(t,n,!0);return"_c(".concat(e,",").concat(ih(t,n)).concat(i?",".concat(i):"",")")}function yh(e){for(var t="",n="",i=0;i<e.length;i++){var r=e[i],a=_h(r.value);r.dynamic?n+="".concat(r.name,",").concat(a,","):t+='"'.concat(r.name,'":').concat(a,",")}return t="{".concat(t.slice(0,-1),"}"),n?"_d(".concat(t,",[").concat(n.slice(0,-1),"])"):t}function _h(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}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"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function xh(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),F}}function bh(e){var t=Object.create(null);return function(n,i,r){i=R({},i);i.warn;delete i.warn;var a=i.delimiters?String(i.delimiters)+n:n;if(t[a])return t[a];var o=e(n,i);var s={},l=[];return s.render=xh(o.render,l),s.staticRenderFns=o.staticRenderFns.map((function(e){return xh(e,l)})),t[a]=s}}function wh(e){return function(t){function n(n,i){var r=Object.create(t),a=[],o=[],s=function(e,t,n){(n?o:a).push(e)};if(i)for(var l in i.modules&&(r.modules=(t.modules||[]).concat(i.modules)),i.directives&&(r.directives=R(Object.create(t.directives||null),i.directives)),i)"modules"!==l&&"directives"!==l&&(r[l]=i[l]);r.warn=s;var c=e(n.trim(),r);return c.errors=a,c.tips=o,c}return{compile:n,compileToFunctions:bh(n)}}}var Sh,Mh=wh((function(e,t){var n=Wc(e.trim(),t);!1!==t.optimize&&Au(n,t);var i=Yu(n,t);return{ast:n,render:i.render,staticRenderFns:i.staticRenderFns}})),Ch=Mh(Tu),Th=Ch.compileToFunctions;function Eh(e){return Sh=Sh||document.createElement("div"),Sh.innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Sh.innerHTML.indexOf(" ")>0}var Ah=!!te&&Eh(!1),kh=!!te&&Eh(!0),Dh=C((function(e){var t=qa(e);return t&&t.innerHTML})),Ih=aa.prototype.$mount;function Ph(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}aa.prototype.$mount=function(e,t){if(e=e&&qa(e),e===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var i=n.template;if(i)if("string"===typeof i)"#"===i.charAt(0)&&(i=Dh(i));else{if(!i.nodeType)return this;i=i.innerHTML}else e&&(i=Ph(e));if(i){0;var r=Th(i,{outputSourceRange:!1,shouldDecodeNewlines:Ah,shouldDecodeNewlinesForHref:kh,delimiters:n.delimiters,comments:n.comments},this),a=r.render,o=r.staticRenderFns;n.render=a,n.staticRenderFns=o}}return Ih.call(this,e,t)},aa.compile=Th},31604:function(e,t,n){"use strict";n(70252);
- /*!
- * vuex v3.6.2
- * (c) 2021 Evan You
- * @license MIT
- */
- function i(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var r="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},a=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e){a&&(e._devtoolHook=a,a.emit("vuex:init",e),a.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){a.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){a.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){return e.filter(t)[0]}function l(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=l(e[n],t)})),i}function c(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function u(e){return null!==e&&"object"===typeof e}function h(e){return e&&"function"===typeof e.then}function d(e,t){return function(){return e(t)}}var p=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(e,t){this._children[e]=t},p.prototype.removeChild=function(e){delete this._children[e]},p.prototype.getChild=function(e){return this._children[e]},p.prototype.hasChild=function(e){return e in this._children},p.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},p.prototype.forEachChild=function(e){c(this._children,e)},p.prototype.forEachGetter=function(e){this._rawModule.getters&&c(this._rawModule.getters,e)},p.prototype.forEachAction=function(e){this._rawModule.actions&&c(this._rawModule.actions,e)},p.prototype.forEachMutation=function(e){this._rawModule.mutations&&c(this._rawModule.mutations,e)},Object.defineProperties(p.prototype,f);var m=function(e){this.register([],e,!1)};function g(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return void 0;g(e.concat(i),t.getChild(i),n.modules[i])}}m.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},m.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},m.prototype.update=function(e){g([],this.root,e)},m.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var r=new p(t,n);if(0===e.length)this.root=r;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],r)}t.modules&&c(t.modules,(function(t,r){i.register(e.concat(r),t,n)}))},m.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},m.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var v;var y=function(e){var t=this;void 0===e&&(e={}),!v&&"undefined"!==typeof window&&window.Vue&&P(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new m(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var r=this,a=this,s=a.dispatch,l=a.commit;this.dispatch=function(e,t){return s.call(r,e,t)},this.commit=function(e,t,n){return l.call(r,e,t,n)},this.strict=i;var c=this._modules.root.state;S(this,c,[],this._modules.root),w(this,c),n.forEach((function(e){return e(t)}));var u=void 0!==e.devtools?e.devtools:v.config.devtools;u&&o(this)},_={state:{configurable:!0}};function x(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function b(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;S(e,n,[],e._modules.root,!0),w(e,n,t)}function w(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,a={};c(r,(function(t,n){a[n]=d(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var o=v.config.silent;v.config.silent=!0,e._vm=new v({data:{$$state:t},computed:a}),v.config.silent=o,e.strict&&k(e),i&&(n&&e._withCommit((function(){i._data.$$state=null})),v.nextTick((function(){return i.$destroy()})))}function S(e,t,n,i,r){var a=!n.length,o=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=i),!a&&!r){var s=D(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){v.set(s,l,i.state)}))}var c=i.context=M(e,o,n);i.forEachMutation((function(t,n){var i=o+n;T(e,i,t,c)})),i.forEachAction((function(t,n){var i=t.root?n:o+n,r=t.handler||t;E(e,i,r,c)})),i.forEachGetter((function(t,n){var i=o+n;A(e,i,t,c)})),i.forEachChild((function(i,a){S(e,t,n.concat(a),i,r)}))}function M(e,t,n){var i=""===t,r={dispatch:i?e.dispatch:function(n,i,r){var a=I(n,i,r),o=a.payload,s=a.options,l=a.type;return s&&s.root||(l=t+l),e.dispatch(l,o)},commit:i?e.commit:function(n,i,r){var a=I(n,i,r),o=a.payload,s=a.options,l=a.type;s&&s.root||(l=t+l),e.commit(l,o,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return C(e,t)}},state:{get:function(){return D(e.state,n)}}}),r}function C(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,i)===t){var a=r.slice(i);Object.defineProperty(n,a,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function T(e,t,n,i){var r=e._mutations[t]||(e._mutations[t]=[]);r.push((function(t){n.call(e,i.state,t)}))}function E(e,t,n,i){var r=e._actions[t]||(e._actions[t]=[]);r.push((function(t){var r=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return h(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}function A(e,t,n,i){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)})}function k(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function D(e,t){return t.reduce((function(e,t){return e[t]}),e)}function I(e,t,n){return u(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function P(e){v&&e===v||(v=e,i(v))}_.state.get=function(){return this._vm._data.$$state},_.state.set=function(e){0},y.prototype.commit=function(e,t,n){var i=this,r=I(e,t,n),a=r.type,o=r.payload,s=(r.options,{type:a,payload:o}),l=this._mutations[a];l&&(this._withCommit((function(){l.forEach((function(e){e(o)}))})),this._subscribers.slice().forEach((function(e){return e(s,i.state)})))},y.prototype.dispatch=function(e,t){var n=this,i=I(e,t),r=i.type,a=i.payload,o={type:r,payload:a},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(o,n.state)}))}catch(c){0}var l=s.length>1?Promise.all(s.map((function(e){return e(a)}))):s[0](a);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,n.state)}))}catch(c){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(o,n.state,e)}))}catch(c){0}t(e)}))}))}},y.prototype.subscribe=function(e,t){return x(e,this._subscribers,t)},y.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return x(n,this._actionSubscribers,t)},y.prototype.watch=function(e,t,n){var i=this;return this._watcherVM.$watch((function(){return e(i.state,i.getters)}),t,n)},y.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},y.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),S(this,this.state,e,this._modules.get(e),n.preserveState),w(this,this.state)},y.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=D(t.state,e.slice(0,-1));v.delete(n,e[e.length-1])})),b(this)},y.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},y.prototype.hotUpdate=function(e){this._modules.update(e),b(this,!0)},y.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(y.prototype,_);var O=V((function(e,t){var n={};return B(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=U(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,t,n):t[r]},n[i].vuex=!0})),n})),L=V((function(e,t){var n={};return B(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.commit;if(e){var a=U(this.$store,"mapMutations",e);if(!a)return;i=a.context.commit}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),R=V((function(e,t){var n={};return B(t).forEach((function(t){var i=t.key,r=t.val;r=e+r,n[i]=function(){if(!e||U(this.$store,"mapGetters",e))return this.$store.getters[r]},n[i].vuex=!0})),n})),N=V((function(e,t){var n={};return B(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var a=U(this.$store,"mapActions",e);if(!a)return;i=a.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),F=function(e){return{mapState:O.bind(null,e),mapGetters:R.bind(null,e),mapMutations:L.bind(null,e),mapActions:N.bind(null,e)}};function B(e){return z(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function z(e){return Array.isArray(e)||u(e)}function V(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function U(e,t,n){var i=e._modulesNamespaceMap[n];return i}function H(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var i=e.transformer;void 0===i&&(i=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var o=e.actionTransformer;void 0===o&&(o=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var c=e.logActions;void 0===c&&(c=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var h=l(e.state);"undefined"!==typeof u&&(s&&e.subscribe((function(e,a){var o=l(a);if(n(e,h,o)){var s=W(),c=r(e),d="mutation "+e.type+s;$(u,d,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",i(h)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",i(o)),j(u)}h=o})),c&&e.subscribeAction((function(e,n){if(a(e,n)){var i=W(),r=o(e),s="action "+e.type+i;$(u,s,t),u.log("%c action","color: #03A9F4; font-weight: bold",r),j(u)}})))}}function $(e,t,n){var i=n?e.groupCollapsed:e.group;try{i.call(e,t)}catch(r){e.log(t)}}function j(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function W(){var e=new Date;return" @ "+q(e.getHours(),2)+":"+q(e.getMinutes(),2)+":"+q(e.getSeconds(),2)+"."+q(e.getMilliseconds(),3)}function G(e,t){return new Array(t+1).join(e)}function q(e,t){return G("0",t-e.toString().length)+e}var X={Store:y,install:P,version:"3.6.2",mapState:O,mapMutations:L,mapGetters:R,mapActions:N,createNamespacedHelpers:F,createLogger:H};t.ZP=X},28661:function(e,t,n){var i=n(66962),r=n(80443),a=n(82548),o=n(90747),s=n(16949),l=function(e){a.call(this,e),r.call(this,e),o.call(this,e),this.id=e.id||i()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,t){},attrKV:function(e,t){if("position"===e||"scale"===e||"origin"===e){if(t){var n=this[e];n||(n=this[e]=[]),n[0]=t[0],n[1]=t[1]}}else this[e]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(s.isObject(e))for(var n in e)e.hasOwnProperty(n)&&this.attrKV(n,e[n]);return this.dirty(!1),this},setClipPath:function(e){var t=this.__zr;t&&e.addSelfToZr(t),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=t,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this.clipPath&&this.clipPath.addSelfToZr(e)},removeSelfFromZr:function(e){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this.clipPath&&this.clipPath.removeSelfFromZr(e)}},s.mixin(l,o),s.mixin(l,a),s.mixin(l,r);var c=l;e.exports=c},21825:function(e,t,n){var i=n(16949),r=n(89457),a=n(34267),o=n(80443),s=n(11793),l=n(3250),c="silent";function u(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:h}}function h(){s.stop(this.event)}function d(){}d.prototype.dispose=function(){};var p=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],f=function(e,t,n,i){o.call(this),this.storage=e,this.painter=t,this.painterRoot=i,n=n||new d,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,a.call(this),this.setHandlerProxy(n)};function m(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){var i,r=e;while(r){if(r.clipPath&&!r.clipPath.contain(t,n))return!1;r.silent&&(i=!0),r=r.parent}return!i||c}return!1}function g(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}f.prototype={constructor:f,setHandlerProxy:function(e){this.proxy&&this.proxy.dispose(),e&&(i.each(p,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},mousemove:function(e){var t=e.zrX,n=e.zrY,i=g(this,t,n),r=this._hovered,a=r.target;a&&!a.__zr&&(r=this.findHover(r.x,r.y),a=r.target);var o=this._hovered=i?{x:t,y:n}:this.findHover(t,n),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==a&&this.dispatchToElement(o,"mouseover",e)},mouseout:function(e){var t=e.zrEventControl,n=e.zrIsToLocalDOM;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&!n&&this.trigger("globalout",{type:"globalout",event:e})},resize:function(e){this._hovered={}},dispatch:function(e,t){var n=this[e];n&&n.call(this,t)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},dispatchToElement:function(e,t,n){e=e||{};var i=e.target;if(!i||!i.silent){var r="on"+t,a=u(t,e,n);while(i)if(i[r]&&(a.cancelBubble=i[r].call(i,a)),i.trigger(t,a),i=i.parent,a.cancelBubble)break;a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer((function(e){"function"===typeof e[r]&&e[r].call(e,a),e.trigger&&e.trigger(t,a)})))}},findHover:function(e,t,n){for(var i=this.storage.getDisplayList(),r={x:e,y:t},a=i.length-1;a>=0;a--){var o;if(i[a]!==n&&!i[a].ignore&&(o=m(i[a],e,t))&&(!r.topTarget&&(r.topTarget=i[a]),o!==c)){r.target=i[a];break}}return r},processGesture:function(e,t){this._gestureMgr||(this._gestureMgr=new l);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var r=i.type;e.gestureEvent=r,this.dispatchToElement({target:i.target},r,i.event)}}},i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){f.prototype[e]=function(t){var n,i,a=t.zrX,o=t.zrY,s=g(this,a,o);if("mouseup"===e&&s||(n=this.findHover(a,o),i=n.target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||r.dist(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}})),i.mixin(f,o),i.mixin(f,a);var v=f;e.exports=v},88048:function(e,t,n){var i=n(16949),r=n(55270),a=r.devicePixelRatio,o=n(97745),s=n(36475);function l(){return!1}function c(e,t,n){var r=i.createCanvas(),a=t.getWidth(),o=t.getHeight(),s=r.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=a+"px",s.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=a*n,r.height=o*n,r}var u=function(e,t,n){var r;n=n||a,"string"===typeof e?r=c(e,t,n):i.isObject(e)&&(r=e,e=r.id),this.id=e,this.dom=r;var o=r.style;o&&(r.onselectstart=l,o["-webkit-user-select"]="none",o["user-select"]="none",o["-webkit-touch-callout"]="none",o["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",o["padding"]=0,o["margin"]=0,o["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=t,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};u.prototype={constructor:u,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var e=this.dpr;this.domBack=c("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},resize:function(e,t){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),i.width=e*n,i.height=t*n,a&&(a.width=e*n,a.height=t*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(e,t){var n,i=this.dom,r=this.ctx,a=i.width,l=i.height,c=(t=t||this.clearColor,this.motionBlur&&!e),u=this.lastFrameAlpha,h=this.dpr;(c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,a/h,l/h)),r.clearRect(0,0,a,l),t&&"transparent"!==t)&&(t.colorStops?(n=t.__canvasGradient||o.getGradient(r,t,{x:0,y:0,width:a,height:l}),t.__canvasGradient=n):t.image&&(n=s.prototype.getCanvasPattern.call(t,r)),r.save(),r.fillStyle=n||t,r.fillRect(0,0,a,l),r.restore());if(c){var d=this.domBack;r.save(),r.globalAlpha=u,r.drawImage(d,0,0,a,l),r.restore()}}};var h=u;e.exports=h},754:function(e,t,n){n(70252);var i=n(55270),r=i.devicePixelRatio,a=n(16949),o=n(5001),s=n(17913),l=n(50714),c=n(88048),u=n(43193),h=n(69406),d=n(28299),p=1e5,f=314159,m=.01,g=.001;function v(e){return parseInt(e,10)}function y(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}var _=new s(0,0,0,0),x=new s(0,0,0,0);function b(e,t,n){return _.copy(e.getBoundingRect()),e.transform&&_.applyTransform(e.transform),x.width=t,x.height=n,!_.intersect(x)}function w(e,t){if(e===t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function S(e,t){for(var n=0;n<e.length;n++){var i=e[n];i.setTransform(t),t.beginPath(),i.buildPath(t,i.shape),t.clip(),i.restoreTransform(t)}}function M(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var C=function(e,t,n){this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=a.extend({},n||{}),this.dpr=n.devicePixelRatio||r,this._singleCanvas=i,this.root=e;var o=e.style;o&&(o["-webkit-tap-highlight-color"]="transparent",o["-webkit-user-select"]=o["user-select"]=o["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var s=this._zlevelList=[],l=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,i){var u=e.width,h=e.height;null!=n.width&&(u=n.width),null!=n.height&&(h=n.height),this.dpr=n.devicePixelRatio||1,e.width=u*this.dpr,e.height=h*this.dpr,this._width=u,this._height=h;var d=new c(e,this,this.dpr);d.__builtin__=!0,d.initContext(),l[f]=d,d.zlevel=f,s.push(f),this._domRoot=e}else{this._width=this._getSize(0),this._height=this._getSize(1);var p=this._domRoot=M(this._width,this._height);e.appendChild(p)}this._hoverlayer=null,this._hoverElements=[]};C.prototype={constructor:C,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(e){var t=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,e,this._redrawId);for(var i=0;i<n.length;i++){var r=n[i],a=this._layers[r];if(!a.__builtin__&&a.refresh){var o=0===i?this._backgroundColor:null;a.refresh(o)}}return this.refreshHover(),this},addHover:function(e,t){if(!e.__hoverMir){var n=new e.constructor({style:e.style,shape:e.shape,z:e.z,z2:e.z2,silent:e.silent});return n.__from=e,e.__hoverMir=n,t&&n.setStyle(t),this._hoverElements.push(n),n}},removeHover:function(e){var t=e.__hoverMir,n=this._hoverElements,i=a.indexOf(n,t);i>=0&&n.splice(i,1),e.__hoverMir=null},clearHover:function(e){for(var t=this._hoverElements,n=0;n<t.length;n++){var i=t[n].__from;i&&(i.__hoverMir=null)}t.length=0},refreshHover:function(){var e=this._hoverElements,t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){l(e,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(p));var i={};n.ctx.save();for(var r=0;r<t;){var a=e[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a.transform=o.transform,a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,n,!0,i))):(e.splice(r,1),o.__hoverMir=null,t--)}n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(p)},_paintList:function(e,t,n){if(this._redrawId===n){t=t||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),!i){var r=this;u((function(){r._paintList(e,t,n)}))}}},_compositeManually:function(){var e=this.getLayer(f).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)}))},_doPaintList:function(e,t){for(var n=[],i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i],o=this._layers[r];o.__builtin__&&o!==this._hoverlayer&&(o.__dirty||t)&&n.push(o)}for(var s=!0,l=0;l<n.length;l++){o=n[l];var c=o.ctx,u={};c.save();var h=t?o.__startIndex:o.__drawIndex,p=!t&&o.incremental&&Date.now,f=p&&Date.now(),m=o.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(o.__startIndex===o.__endIndex)o.clear(!1,m);else if(h===o.__startIndex){var g=e[h];g.incremental&&g.notClear&&!t||o.clear(!1,m)}-1===h&&(console.error("For some unknown reason. drawIndex is -1"),h=o.__startIndex);for(var v=h;v<o.__endIndex;v++){var y=e[v];if(this._doPaintEl(y,o,t,u),y.__dirty=y.__dirtyText=!1,p){var _=Date.now()-f;if(_>15)break}}o.__drawIndex=v,o.__drawIndex<o.__endIndex&&(s=!1),u.prevElClipPaths&&c.restore(),c.restore()}return d.wxa&&a.each(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),s},_doPaintEl:function(e,t,n,i){var r=t.ctx,a=e.transform;if((t.__dirty||n)&&!e.invisible&&0!==e.style.opacity&&(!a||a[0]||a[3])&&(!e.culling||!b(e,this._width,this._height))){var o=e.__clipPaths,s=i.prevElClipPaths;s&&!w(o,s)||(s&&(r.restore(),i.prevElClipPaths=null,i.prevEl=null),o&&(r.save(),S(o,r),i.prevElClipPaths=o)),e.beforeBrush&&e.beforeBrush(r),e.brush(r,i.prevEl||null),i.prevEl=e,e.afterBrush&&e.afterBrush(r)}},getLayer:function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=f);var n=this._layers[e];return n||(n=new c("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?a.merge(n,this._layerConfig[e],!0):this._layerConfig[e-m]&&a.merge(n,this._layerConfig[e-m],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},insertLayer:function(e,t){var n=this._layers,i=this._zlevelList,r=i.length,a=null,s=-1,l=this._domRoot;if(n[e])o("ZLevel "+e+" has been used already");else if(y(t)){if(r>0&&e>i[0]){for(s=0;s<r-1;s++)if(i[s]<e&&i[s+1]>e)break;a=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var c=a.dom;c.nextSibling?l.insertBefore(t.dom,c.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom)}else o("Layer of zlevel "+e+" is not valid")},eachLayer:function(e,t){var n,i,r=this._zlevelList;for(i=0;i<r.length;i++)n=r[i],e.call(t,this._layers[n],n)},eachBuiltinLayer:function(e,t){var n,i,r,a=this._zlevelList;for(r=0;r<a.length;r++)i=a[r],n=this._layers[i],n.__builtin__&&e.call(t,n,i)},eachOtherLayer:function(e,t){var n,i,r,a=this._zlevelList;for(r=0;r<a.length;r++)i=a[r],n=this._layers[i],n.__builtin__||e.call(t,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(e){function t(e){a&&(a.__endIndex!==e&&(a.__dirty=!0),a.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var r,a=null,s=0;for(n=0;n<e.length;n++){i=e[n];var l,c=i.zlevel;r!==c&&(r=c,s=0),i.incremental?(l=this.getLayer(c+g,this._needsManuallyCompositing),l.incremental=!0,s=1):l=this.getLayer(c+(s>0?m:0),this._needsManuallyCompositing),l.__builtin__||o("ZLevel "+c+" has been used by unkown layer "+l.id),l!==a&&(l.__used=!0,l.__startIndex!==n&&(l.__dirty=!0),l.__startIndex=n,l.incremental?l.__drawIndex=-1:l.__drawIndex=n,t(n),a=l),i.__dirty&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=n))}t(n),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(e){e.clear()},setBackgroundColor:function(e){this._backgroundColor=e},configLayer:function(e,t){if(t){var n=this._layerConfig;n[e]?a.merge(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===e||r===e+m){var o=this._layers[r];a.merge(o,n[e],!0)}}}},delLayer:function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(a.indexOf(n,e),1))},resize:function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||t!==this._height){for(var r in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(e,t);a.each(this._progressiveLayers,(function(n){n.resize(e,t)})),this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(f).resize(e,t)}return this},clearLayer:function(e){var t=this._layers[e];t&&t.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[f].dom;var t=new c("image",this,e.pixelRatio||this.dpr);if(t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor),e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,i=t.dom.height,r=t.ctx;this.eachLayer((function(e){e.__builtin__?r.drawImage(e.dom,0,0,n,i):e.renderToCanvas&&(t.ctx.save(),e.renderToCanvas(t.ctx),t.ctx.restore())}))}else for(var a={},o=this.storage.getDisplayList(!0),s=0;s<o.length;s++){var l=o[s];this._doPaintEl(l,t,!0,a)}return t.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,n=["width","height"][e],i=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[i]||v(s[n])||v(o.style[n]))-(v(s[r])||0)-(v(s[a])||0)|0},pathToImage:function(e,t){t=t||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),r=e.getBoundingRect(),a=e.style,o=a.shadowBlur*t,s=a.shadowOffsetX*t,l=a.shadowOffsetY*t,c=a.hasStroke()?a.lineWidth:0,u=Math.max(c/2,-s+o),d=Math.max(c/2,s+o),p=Math.max(c/2,-l+o),f=Math.max(c/2,l+o),m=r.width+u+d,g=r.height+p+f;n.width=m*t,n.height=g*t,i.scale(t,t),i.clearRect(0,0,m,g),i.dpr=t;var v={position:e.position,rotation:e.rotation,scale:e.scale};e.position=[u-r.x,p-r.y],e.rotation=0,e.scale=[1,1],e.updateTransform(),e&&e.brush(i);var y=h,_=new y({style:{x:0,y:0,image:n}});return null!=v.position&&(_.position=e.position=v.position),null!=v.rotation&&(_.rotation=e.rotation=v.rotation),null!=v.scale&&(_.scale=e.scale=v.scale),_}};var T=C;e.exports=T},48933:function(e,t,n){n(70252);var i=n(16949),r=n(28299),a=n(58511),o=n(50714);function s(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},getDisplayList:function(e,t){return t=t||!1,e&&this.updateDisplayList(t),this._displayList},updateDisplayList:function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,a=t.length;i<a;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,r.canvasSupported&&o(n,s)},_updateAndAddDisplayable:function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.__dirty&&e.update(),e.afterUpdate();var i=e.clipPath;if(i){t=t?t.slice():[];var r=i,a=e;while(r)r.parent=a,r.updateTransform(),t.push(r),a=r,r=r.clipPath}if(e.isGroup){for(var o=e._children,s=0;s<o.length;s++){var l=o[s];e.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,t,n)}e.__dirty=!1}else e.__clipPaths=t,this._displayList[this._displayListLen++]=e}},addRoot:function(e){e.__storage!==this&&(e instanceof a&&e.addChildrenToStorage(this),this.addToStorage(e),this._roots.push(e))},delRoot:function(e){if(null==e){for(var t=0;t<this._roots.length;t++){var n=this._roots[t];n instanceof a&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(e instanceof Array){t=0;for(var r=e.length;t<r;t++)this.delRoot(e[t])}else{var o=i.indexOf(this._roots,e);o>=0&&(this.delFromStorage(e),this._roots.splice(o,1),e instanceof a&&e.delChildrenFromStorage(this))}},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var c=l;e.exports=c},88871:function(e,t,n){n(70252);var i=n(16949),r=n(11793),a=r.Dispatcher,o=n(43193),s=n(47824),l=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,a.call(this)};l.prototype={constructor:l,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var t=e.getClips(),n=0;n<t.length;n++)this.addClip(t[n])},removeClip:function(e){var t=i.indexOf(this._clips,e);t>=0&&this._clips.splice(t,1)},removeAnimator:function(e){for(var t=e.getClips(),n=0;n<t.length;n++)this.removeClip(t[n]);e.animation=null},_update:function(){for(var e=(new Date).getTime()-this._pausedTime,t=e-this._time,n=this._clips,i=n.length,r=[],a=[],o=0;o<i;o++){var s=n[o],l=s.step(e,t);l&&(r.push(l),a.push(s))}for(o=0;o<i;)n[o]._needsRemove?(n[o]=n[i-1],n.pop(),i--):o++;i=r.length;for(o=0;o<i;o++)a[o].fire(r[o]);this._time=e,this.onframe(t),this.trigger("frame",t),this.stage.update&&this.stage.update()},_startLoop:function(){var e=this;function t(){e._running&&(o(t),!e._paused&&e._update())}this._running=!0,o(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(e,t){t=t||{};var n=new s(e,t.loop,t.getter,t.setter);return this.addAnimator(n),n}},i.mixin(l,a);var c=l;e.exports=c},47824:function(e,t,n){n(70252);var i=n(92809),r=n(35098),a=n(16949),o=a.isArrayLike,s=Array.prototype.slice;function l(e,t){return e[t]}function c(e,t,n){e[t]=n}function u(e,t,n){return(t-e)*n+e}function h(e,t,n){return n>.5?t:e}function d(e,t,n,i,r){var a=e.length;if(1===r)for(var o=0;o<a;o++)i[o]=u(e[o],t[o],n);else{var s=a&&e[0].length;for(o=0;o<a;o++)for(var l=0;l<s;l++)i[o][l]=u(e[o][l],t[o][l],n)}}function p(e,t,n){var i=e.length,r=t.length;if(i!==r){var a=i>r;if(a)e.length=r;else for(var o=i;o<r;o++)e.push(1===n?t[o]:s.call(t[o]))}var l=e[0]&&e[0].length;for(o=0;o<e.length;o++)if(1===n)isNaN(e[o])&&(e[o]=t[o]);else for(var c=0;c<l;c++)isNaN(e[o][c])&&(e[o][c]=t[o][c])}function f(e,t,n){if(e===t)return!0;var i=e.length;if(i!==t.length)return!1;if(1===n){for(var r=0;r<i;r++)if(e[r]!==t[r])return!1}else{var a=e[0].length;for(r=0;r<i;r++)for(var o=0;o<a;o++)if(e[r][o]!==t[r][o])return!1}return!0}function m(e,t,n,i,r,a,o,s,l){var c=e.length;if(1===l)for(var u=0;u<c;u++)s[u]=g(e[u],t[u],n[u],i[u],r,a,o);else{var h=e[0].length;for(u=0;u<c;u++)for(var d=0;d<h;d++)s[u][d]=g(e[u][d],t[u][d],n[u][d],i[u][d],r,a,o)}}function g(e,t,n,i,r,a,o){var s=.5*(n-e),l=.5*(i-t);return(2*(t-n)+s+l)*o+(-3*(t-n)-2*s-l)*a+s*r+t}function v(e){if(o(e)){var t=e.length;if(o(e[0])){for(var n=[],i=0;i<t;i++)n.push(s.call(e[i]));return n}return s.call(e)}return e}function y(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}function _(e){var t=e[e.length-1].value;return o(t&&t[0])?2:1}function x(e,t,n,a,s,l){var c=e._getter,v=e._setter,x="spline"===t,b=a.length;if(b){var w,S=a[0].value,M=o(S),C=!1,T=!1,E=M?_(a):0;a.sort((function(e,t){return e.time-t.time})),w=a[b-1].time;for(var A=[],k=[],D=a[0].value,I=!0,P=0;P<b;P++){A.push(a[P].time/w);var O=a[P].value;if(M&&f(O,D,E)||!M&&O===D||(I=!1),D=O,"string"===typeof O){var L=r.parse(O);L?(O=L,C=!0):T=!0}k.push(O)}if(l||!I){var R=k[b-1];for(P=0;P<b-1;P++)M?p(k[P],R,E):!isNaN(k[P])||isNaN(R)||T||C||(k[P]=R);M&&p(c(e._target,s),R,E);var N,F,B,z,V,U,H=0,$=0;if(C)var j=[0,0,0,0];var W=function(e,t){var n;if(t<0)n=0;else if(t<$){for(N=Math.min(H+1,b-1),n=N;n>=0;n--)if(A[n]<=t)break;n=Math.min(n,b-2)}else{for(n=H;n<b;n++)if(A[n]>t)break;n=Math.min(n-1,b-2)}H=n,$=t;var i=A[n+1]-A[n];if(0!==i)if(F=(t-A[n])/i,x)if(z=k[n],B=k[0===n?n:n-1],V=k[n>b-2?b-1:n+1],U=k[n>b-3?b-1:n+2],M)m(B,z,V,U,F,F*F,F*F*F,c(e,s),E);else{if(C)r=m(B,z,V,U,F,F*F,F*F*F,j,1),r=y(j);else{if(T)return h(z,V,F);r=g(B,z,V,U,F,F*F,F*F*F)}v(e,s,r)}else if(M)d(k[n],k[n+1],F,c(e,s),E);else{var r;if(C)d(k[n],k[n+1],F,j,1),r=y(j);else{if(T)return h(k[n],k[n+1],F);r=u(k[n],k[n+1],F)}v(e,s,r)}},G=new i({target:e._target,life:w,loop:e._loop,delay:e._delay,onframe:W,ondestroy:n});return t&&"spline"!==t&&(G.easing=t),G}}}var b=function(e,t,n,i){this._tracks={},this._target=e,this._loop=t||!1,this._getter=n||l,this._setter=i||c,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};b.prototype={when:function(e,t){var n=this._tracks;for(var i in t)if(t.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==e&&n[i].push({time:0,value:v(r)})}n[i].push({time:e,value:t[i]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].pause();this._paused=!0},resume:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var e=this._doneList,t=e.length,n=0;n<t;n++)e[n].call(this)},start:function(e,t){var n,i=this,r=0,a=function(){r--,r||i._doneCallback()};for(var o in this._tracks)if(this._tracks.hasOwnProperty(o)){var s=x(this,e,a,this._tracks[o],o,t);s&&(this._clipList.push(s),r++,this.animation&&this.animation.addClip(s),n=s)}if(n){var l=n.onframe;n.onframe=function(e,t){l(e,t);for(var n=0;n<i._onframeList.length;n++)i._onframeList[n](e,t)}}return r||this._doneCallback(),this},stop:function(e){for(var t=this._clipList,n=this.animation,i=0;i<t.length;i++){var r=t[i];e&&r.onframe(this._target,1),n&&n.removeClip(r)}t.length=0},delay:function(e){return this._delay=e,this},done:function(e){return e&&this._doneList.push(e),this},getClips:function(){return this._clipList}};var w=b;e.exports=w},92809:function(e,t,n){var i=n(69979);function r(e){this._target=e.target,this._life=e.life||1e3,this._delay=e.delay||0,this._initialized=!1,this.loop=null!=e.loop&&e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart,this._pausedTime=0,this._paused=!1}r.prototype={constructor:r,step:function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),this._paused)this._pausedTime+=t;else{var n=(e-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var r=this.easing,a="string"===typeof r?i[r]:r,o="function"===typeof a?a(n):n;return this.fire("frame",o),1===n?this.loop?(this.restart(e),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(e,t){e="on"+e,this[e]&&this[e](this._target,t)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var a=r;e.exports=a},69979:function(e){var t={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i))},elasticOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-t.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5}},n=t;e.exports=n},43193:function(e){var t="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){setTimeout(e,16)};e.exports=t},55270:function(e,t){var n=1;"undefined"!==typeof window&&(n=Math.max(window.devicePixelRatio||1,1));var i=0,r=n;t.debugMode=i,t.devicePixelRatio=r},25702:function(e,t,n){var i=n(95997),r=i.normalizeRadian,a=2*Math.PI;function o(e,t,n,i,o,s,l,c,u){if(0===l)return!1;var h=l;c-=e,u-=t;var d=Math.sqrt(c*c+u*u);if(d-h>n||d+h<n)return!1;if(Math.abs(i-o)%a<1e-4)return!0;if(s){var p=i;i=r(o),o=r(p)}else i=r(i),o=r(o);i>o&&(o+=a);var f=Math.atan2(u,c);return f<0&&(f+=a),f>=i&&f<=o||f+a>=i&&f+a<=o}t.containStroke=o},78804:function(e,t,n){var i=n(96578);function r(e,t,n,r,a,o,s,l,c,u,h){if(0===c)return!1;var d=c;if(h>t+d&&h>r+d&&h>o+d&&h>l+d||h<t-d&&h<r-d&&h<o-d&&h<l-d||u>e+d&&u>n+d&&u>a+d&&u>s+d||u<e-d&&u<n-d&&u<a-d&&u<s-d)return!1;var p=i.cubicProjectPoint(e,t,n,r,a,o,s,l,u,h,null);return p<=d/2}t.containStroke=r},62411:function(e,t){function n(e,t,n,i,r,a,o){if(0===r)return!1;var s=r,l=0,c=e;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e===n)return Math.abs(a-e)<=s/2;l=(t-i)/(e-n),c=(e*i-n*t)/(e-n);var u=l*a-o+c,h=u*u/(l*l+1);return h<=s/2*s/2}t.containStroke=n},85763:function(e,t,n){var i=n(95552),r=n(62411),a=n(78804),o=n(76425),s=n(25702),l=n(95997),c=l.normalizeRadian,u=n(96578),h=n(62322),d=i.CMD,p=2*Math.PI,f=1e-4;function m(e,t){return Math.abs(e-t)<f}var g=[-1,-1,-1],v=[-1,-1];function y(){var e=v[0];v[0]=v[1],v[1]=e}function _(e,t,n,i,r,a,o,s,l,c){if(c>t&&c>i&&c>a&&c>s||c<t&&c<i&&c<a&&c<s)return 0;var h=u.cubicRootAt(t,i,a,s,c,g);if(0===h)return 0;for(var d,p,f=0,m=-1,_=0;_<h;_++){var x=g[_],b=0===x||1===x?.5:1,w=u.cubicAt(e,n,r,o,x);w<l||(m<0&&(m=u.cubicExtrema(t,i,a,s,v),v[1]<v[0]&&m>1&&y(),d=u.cubicAt(t,i,a,s,v[0]),m>1&&(p=u.cubicAt(t,i,a,s,v[1]))),2===m?x<v[0]?f+=d<t?b:-b:x<v[1]?f+=p<d?b:-b:f+=s<p?b:-b:x<v[0]?f+=d<t?b:-b:f+=s<d?b:-b)}return f}function x(e,t,n,i,r,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var l=u.quadraticRootAt(t,i,a,s,g);if(0===l)return 0;var c=u.quadraticExtremum(t,i,a);if(c>=0&&c<=1){for(var h=0,d=u.quadraticAt(t,i,a,c),p=0;p<l;p++){var f=0===g[p]||1===g[p]?.5:1,m=u.quadraticAt(e,n,r,g[p]);m<o||(g[p]<c?h+=d<t?f:-f:h+=a<d?f:-f)}return h}f=0===g[0]||1===g[0]?.5:1,m=u.quadraticAt(e,n,r,g[0]);return m<o?0:a<t?f:-f}function b(e,t,n,i,r,a,o,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);g[0]=-l,g[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u%p<1e-4){i=0,r=p;var h=a?1:-1;return o>=g[0]+e&&o<=g[1]+e?h:0}if(a){l=i;i=c(r),r=c(l)}else i=c(i),r=c(r);i>r&&(r+=p);for(var d=0,f=0;f<2;f++){var m=g[f];if(m+e>o){var v=Math.atan2(s,m);h=a?1:-1;v<0&&(v=p+v),(v>=i&&v<=r||v+p>=i&&v+p<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(h=-h),d+=h)}}return d}function w(e,t,n,i,l){for(var c=0,u=0,p=0,f=0,g=0,v=0;v<e.length;){var y=e[v++];switch(y===d.M&&v>1&&(n||(c+=h(u,p,f,g,i,l))),1===v&&(u=e[v],p=e[v+1],f=u,g=p),y){case d.M:f=e[v++],g=e[v++],u=f,p=g;break;case d.L:if(n){if(r.containStroke(u,p,e[v],e[v+1],t,i,l))return!0}else c+=h(u,p,e[v],e[v+1],i,l)||0;u=e[v++],p=e[v++];break;case d.C:if(n){if(a.containStroke(u,p,e[v++],e[v++],e[v++],e[v++],e[v],e[v+1],t,i,l))return!0}else c+=_(u,p,e[v++],e[v++],e[v++],e[v++],e[v],e[v+1],i,l)||0;u=e[v++],p=e[v++];break;case d.Q:if(n){if(o.containStroke(u,p,e[v++],e[v++],e[v],e[v+1],t,i,l))return!0}else c+=x(u,p,e[v++],e[v++],e[v],e[v+1],i,l)||0;u=e[v++],p=e[v++];break;case d.A:var w=e[v++],S=e[v++],M=e[v++],C=e[v++],T=e[v++],E=e[v++];v+=1;var A=1-e[v++],k=Math.cos(T)*M+w,D=Math.sin(T)*C+S;v>1?c+=h(u,p,k,D,i,l):(f=k,g=D);var I=(i-w)*C/M+w;if(n){if(s.containStroke(w,S,C,T,T+E,A,t,I,l))return!0}else c+=b(w,S,C,T,T+E,A,I,l);u=Math.cos(T+E)*M+w,p=Math.sin(T+E)*C+S;break;case d.R:f=u=e[v++],g=p=e[v++];var P=e[v++],O=e[v++];k=f+P,D=g+O;if(n){if(r.containStroke(f,g,k,g,t,i,l)||r.containStroke(k,g,k,D,t,i,l)||r.containStroke(k,D,f,D,t,i,l)||r.containStroke(f,D,f,g,t,i,l))return!0}else c+=h(k,g,k,D,i,l),c+=h(f,D,f,g,i,l);break;case d.Z:if(n){if(r.containStroke(u,p,f,g,t,i,l))return!0}else c+=h(u,p,f,g,i,l);u=f,p=g;break}}return n||m(p,g)||(c+=h(u,p,f,g,i,l)||0),0!==c}function S(e,t,n){return w(e,0,!1,t,n)}function M(e,t,n,i){return w(e,t,!0,n,i)}t.contain=S,t.containStroke=M},4101:function(e,t,n){var i=n(62322),r=1e-8;function a(e,t){return Math.abs(e-t)<r}function o(e,t,n){var r=0,o=e[0];if(!o)return!1;for(var s=1;s<e.length;s++){var l=e[s];r+=i(o[0],o[1],l[0],l[1],t,n),o=l}var c=e[0];return a(o[0],c[0])&&a(o[1],c[1])||(r+=i(o[0],o[1],c[0],c[1],t,n)),0!==r}t.contain=o},76425:function(e,t,n){var i=n(96578),r=i.quadraticProjectPoint;function a(e,t,n,i,a,o,s,l,c){if(0===s)return!1;var u=s;if(c>t+u&&c>i+u&&c>o+u||c<t-u&&c<i-u&&c<o-u||l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u)return!1;var h=r(e,t,n,i,a,o,l,c,null);return h<=u/2}t.containStroke=a},53164:function(e,t,n){n(70252);var i=n(17913),r=n(35690),a=n(16949),o=a.getContext,s=a.extend,l=a.retrieve2,c=a.retrieve3,u=a.trim,h={},d=0,p=5e3,f=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,m="12px sans-serif",g={};function v(e,t){g[e]=t}function y(e,t){t=t||m;var n=e+":"+t;if(h[n])return h[n];for(var i=(e+"").split("\n"),r=0,a=0,o=i.length;a<o;a++)r=Math.max(I(i[a],t).width,r);return d>p&&(d=0,h={}),d++,h[n]=r,r}function _(e,t,n,i,r,a,o,s){return o?b(e,t,n,i,r,a,o,s):x(e,t,n,i,r,a,s)}function x(e,t,n,r,a,o,s){var l=P(e,t,a,o,s),c=y(e,t);a&&(c+=a[1]+a[3]);var u=l.outerHeight,h=w(0,c,n),d=S(0,u,r),p=new i(h,d,c,u);return p.lineHeight=l.lineHeight,p}function b(e,t,n,r,a,o,s,l){var c=O(e,{rich:s,truncate:l,font:t,textAlign:n,textPadding:a,textLineHeight:o}),u=c.outerWidth,h=c.outerHeight,d=w(0,u,n),p=S(0,h,r);return new i(d,p,u,h)}function w(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function S(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function M(e,t,n){var i=t.textPosition,r=t.textDistance,a=n.x,o=n.y;r=r||0;var s=n.height,l=n.width,c=s/2,u="left",h="top";switch(i){case"left":a-=r,o+=c,u="right",h="middle";break;case"right":a+=r+l,o+=c,h="middle";break;case"top":a+=l/2,o-=r,u="center",h="bottom";break;case"bottom":a+=l/2,o+=s+r,u="center";break;case"inside":a+=l/2,o+=c,u="center",h="middle";break;case"insideLeft":a+=r,o+=c,h="middle";break;case"insideRight":a+=l-r,o+=c,u="right",h="middle";break;case"insideTop":a+=l/2,o+=r,u="center";break;case"insideBottom":a+=l/2,o+=s-r,u="center",h="bottom";break;case"insideTopLeft":a+=r,o+=r;break;case"insideTopRight":a+=l-r,o+=r,u="right";break;case"insideBottomLeft":a+=r,o+=s-r,h="bottom";break;case"insideBottomRight":a+=l-r,o+=s-r,u="right",h="bottom";break}return e=e||{},e.x=a,e.y=o,e.textAlign=u,e.textVerticalAlign=h,e}function C(e,t,n){var i={textPosition:e,textDistance:n};return M({},i,t)}function T(e,t,n,i,r){if(!t)return"";var a=(e+"").split("\n");r=E(t,n,i,r);for(var o=0,s=a.length;o<s;o++)a[o]=A(a[o],r);return a.join("\n")}function E(e,t,n,i){i=s({},i),i.font=t;n=l(n,"...");i.maxIterations=l(i.maxIterations,2);var r=i.minChar=l(i.minChar,0);i.cnCharWidth=y("国",t);var a=i.ascCharWidth=y("a",t);i.placeholder=l(i.placeholder,"");for(var o=e=Math.max(0,e-1),c=0;c<r&&o>=a;c++)o-=a;var u=y(n,t);return u>o&&(n="",u=0),o=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=o,i.containerWidth=e,i}function A(e,t){var n=t.containerWidth,i=t.font,r=t.contentWidth;if(!n)return"";var a=y(e,i);if(a<=n)return e;for(var o=0;;o++){if(a<=r||o>=t.maxIterations){e+=t.ellipsis;break}var s=0===o?k(e,r,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*r/a):0;e=e.substr(0,s),a=y(e,i)}return""===e&&(e=t.placeholder),e}function k(e,t,n,i){for(var r=0,a=0,o=e.length;a<o&&r<t;a++){var s=e.charCodeAt(a);r+=0<=s&&s<=127?n:i}return a}function D(e){return y("国",e)}function I(e,t){return g.measureText(e,t)}function P(e,t,n,i,r){null!=e&&(e+="");var a=l(i,D(t)),o=e?e.split("\n"):[],s=o.length*a,c=s,u=!0;if(n&&(c+=n[0]+n[2]),e&&r){u=!1;var h=r.outerHeight,d=r.outerWidth;if(null!=h&&c>h)e="",o=[];else if(null!=d)for(var p=E(d-(n?n[1]+n[3]:0),t,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),f=0,m=o.length;f<m;f++)o[f]=A(o[f],p)}return{lines:o,height:s,outerHeight:c,lineHeight:a,canCacheByTextString:u}}function O(e,t){var n={lines:[],width:0,height:0};if(null!=e&&(e+=""),!e)return n;var i,a=f.lastIndex=0;while(null!=(i=f.exec(e))){var o=i.index;o>a&&L(n,e.substring(a,o)),L(n,i[2],i[1]),a=f.lastIndex}a<e.length&&L(n,e.substring(a,e.length));var s=n.lines,u=0,h=0,d=[],p=t.textPadding,m=t.truncate,g=m&&m.outerWidth,v=m&&m.outerHeight;p&&(null!=g&&(g-=p[1]+p[3]),null!=v&&(v-=p[0]+p[2]));for(var _=0;_<s.length;_++){for(var x=s[_],b=0,w=0,S=0;S<x.tokens.length;S++){var M=x.tokens[S],C=M.styleName&&t.rich[M.styleName]||{},E=M.textPadding=C.textPadding,A=M.font=C.font||t.font,k=M.textHeight=l(C.textHeight,D(A));if(E&&(k+=E[0]+E[2]),M.height=k,M.lineHeight=c(C.textLineHeight,t.textLineHeight,k),M.textAlign=C&&C.textAlign||t.textAlign,M.textVerticalAlign=C&&C.textVerticalAlign||"middle",null!=v&&u+M.lineHeight>v)return{lines:[],width:0,height:0};M.textWidth=y(M.text,A);var I=C.textWidth,P=null==I||"auto"===I;if("string"===typeof I&&"%"===I.charAt(I.length-1))M.percentWidth=I,d.push(M),I=0;else{if(P){I=M.textWidth;var O=C.textBackgroundColor,R=O&&O.image;R&&(R=r.findExistImage(R),r.isImageReady(R)&&(I=Math.max(I,R.width*k/R.height)))}var N=E?E[1]+E[3]:0;I+=N;var F=null!=g?g-w:null;null!=F&&F<I&&(!P||F<N?(M.text="",M.textWidth=I=0):(M.text=T(M.text,F-N,A,m.ellipsis,{minChar:m.minChar}),M.textWidth=y(M.text,A),I=M.textWidth+N))}w+=M.width=I,C&&(b=Math.max(b,M.lineHeight))}x.width=w,x.lineHeight=b,u+=b,h=Math.max(h,w)}n.outerWidth=n.width=l(t.textWidth,h),n.outerHeight=n.height=l(t.textHeight,u),p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(_=0;_<d.length;_++){M=d[_];var B=M.percentWidth;M.width=parseInt(B,10)/100*h}return n}function L(e,t,n){for(var i=""===t,r=t.split("\n"),a=e.lines,o=0;o<r.length;o++){var s=r[o],l={styleName:n,text:s,isLineHolder:!s&&!i};if(o)a.push({tokens:[l]});else{var c=(a[a.length-1]||(a[0]={tokens:[]})).tokens,u=c.length;1===u&&c[0].isLineHolder?c[0]=l:(s||!u||i)&&c.push(l)}}}function R(e){var t=(e.fontSize||e.fontFamily)&&[e.fontStyle,e.fontWeight,(e.fontSize||12)+"px",e.fontFamily||"sans-serif"].join(" ");return t&&u(t)||e.textFont||e.font}g.measureText=function(e,t){var n=o();return n.font=t||m,n.measureText(e)},t.DEFAULT_FONT=m,t.$override=v,t.getWidth=y,t.getBoundingRect=_,t.adjustTextX=w,t.adjustTextY=S,t.calculateTextPosition=M,t.adjustTextPositionOnRect=C,t.truncateText=T,t.getLineHeight=D,t.measureText=I,t.parsePlainText=P,t.parseRichText=O,t.makeFont=R},95997:function(e,t){var n=2*Math.PI;function i(e){return e%=n,e<0&&(e+=n),e}t.normalizeRadian=i},62322:function(e){function t(e,t,n,i,r,a){if(a>t&&a>i||a<t&&a<i)return 0;if(i===t)return 0;var o=i<t?1:-1,s=(a-t)/(i-t);1!==s&&0!==s||(o=i<t?.5:-.5);var l=s*(n-e)+e;return l===r?1/0:l>r?o:0}e.exports=t},58511:function(e,t,n){n(70252);var i=n(16949),r=n(28661),a=n(17913),o=function(e){for(var t in e=e||{},r.call(this,e),e)e.hasOwnProperty(t)&&(this[t]=e[t]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},childOfName:function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},childCount:function(){return this._children.length},add:function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},addBefore:function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,i=n.indexOf(t);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},_doAdd:function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__storage,n=this.__zr;t&&t!==e.__storage&&(t.addToStorage(e),e instanceof o&&e.addChildrenToStorage(t)),n&&n.refresh()},remove:function(e){var t=this.__zr,n=this.__storage,r=this._children,a=i.indexOf(r,e);return a<0||(r.splice(a,1),e.parent=null,n&&(n.delFromStorage(e),e instanceof o&&e.delChildrenFromStorage(n)),t&&t.refresh()),this},removeAll:function(){var e,t,n=this._children,i=this.__storage;for(t=0;t<n.length;t++)e=n[t],i&&(i.delFromStorage(e),e instanceof o&&e.delChildrenFromStorage(i)),e.parent=null;return n.length=0,this},eachChild:function(e,t){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];e.call(t,r,i)}return this},traverse:function(e,t){for(var n=0;n<this._children.length;n++){var i=this._children[n];e.call(t,i),"group"===i.type&&i.traverse(e,t)}return this},addChildrenToStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.addToStorage(n),n instanceof o&&n.addChildrenToStorage(e)}},delChildrenFromStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.delFromStorage(n),n instanceof o&&n.delChildrenFromStorage(e)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(e){for(var t=null,n=new a(0,0,0,0),i=e||this._children,r=[],o=0;o<i.length;o++){var s=i[o];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),c=s.getLocalTransform(r);c?(n.copy(l),n.applyTransform(c),t=t||n.clone(),t.union(n)):(t=t||l.clone(),t.union(l))}}return t||n}},i.inherits(o,r);var s=o;e.exports=s},17913:function(e,t,n){var i=n(89457),r=n(16317),a=i.applyTransform,o=Math.min,s=Math.max;function l(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}l.prototype={constructor:l,union:function(e){var t=o(e.x,this.x),n=o(e.y,this.y);this.width=s(e.x+e.width,this.x+this.width)-t,this.height=s(e.y+e.height,this.y+this.height)-n,this.x=t,this.y=n},applyTransform:function(){var e=[],t=[],n=[],i=[];return function(r){if(r){e[0]=n[0]=this.x,e[1]=i[1]=this.y,t[0]=i[0]=this.x+this.width,t[1]=n[1]=this.y+this.height,a(e,e,r),a(t,t,r),a(n,n,r),a(i,i,r),this.x=o(e[0],t[0],n[0],i[0]),this.y=o(e[1],t[1],n[1],i[1]);var l=s(e[0],t[0],n[0],i[0]),c=s(e[1],t[1],n[1],i[1]);this.width=l-this.x,this.height=c-this.y}}}(),calculateTransform:function(e){var t=this,n=e.width/t.width,i=e.height/t.height,a=r.create();return r.translate(a,a,[-t.x,-t.y]),r.scale(a,a,[n,i]),r.translate(a,a,[e.x,e.y]),a},intersect:function(e){if(!e)return!1;e instanceof l||(e=l.create(e));var t=this,n=t.x,i=t.x+t.width,r=t.y,a=t.y+t.height,o=e.x,s=e.x+e.width,c=e.y,u=e.y+e.height;return!(i<o||s<n||a<c||u<r)},contain:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},clone:function(){return new l(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},l.create=function(e){return new l(e.x,e.y,e.width,e.height)};var c=l;e.exports=c},3250:function(e,t,n){n(70252);var i=n(11793),r=function(){this._track=[]};function a(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function o(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}r.prototype={constructor:r,recognize:function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},clear:function(){return this._track.length=0,this},_doTrack:function(e,t,n){var r=e.touches;if(r){for(var a={points:[],touches:[],target:t,event:e},o=0,s=r.length;o<s;o++){var l=r[o],c=i.clientToLocal(n,l,{});a.points.push([c.zrX,c.zrY]),a.touches.push(l)}this._track.push(a)}},_recognize:function(e){for(var t in s)if(s.hasOwnProperty(t)){var n=s[t](this._track,e);if(n)return n}}};var s={pinch:function(e,t){var n=e.length;if(n){var i=(e[n-1]||{}).points,r=(e[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var s=a(i)/a(r);!isFinite(s)&&(s=1),t.pinchScale=s;var l=o(i);return t.pinchX=l[0],t.pinchY=l[1],{type:"pinch",target:e[0].target,event:t}}}}},l=r;e.exports=l},10059:function(e){var t=function(){this.head=null,this.tail=null,this._len=0},n=t.prototype;n.insert=function(e){var t=new i(e);return this.insertEntry(t),t},n.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.len=function(){return this._len},n.clear=function(){this.head=this.tail=null,this._len=0};var i=function(e){this.value=e,this.next,this.prev},r=function(e){this._list=new t,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null},a=r.prototype;a.put=function(e,t){var n=this._list,r=this._map,a=null;if(null==r[e]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete r[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new i(t),s.key=e,n.insertEntry(s),r[e]=s}return a},a.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},a.clear=function(){this._list.clear(),this._map={}};var o=r;e.exports=o},95552:function(e,t,n){n(66554),n(46293),n(6149);var i=n(96578),r=n(89457),a=n(28414),o=n(17913),s=n(55270),l=s.devicePixelRatio,c={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],h=[],d=[],p=[],f=Math.min,m=Math.max,g=Math.cos,v=Math.sin,y=Math.sqrt,_=Math.abs,x="undefined"!==typeof Float32Array,b=function(e){this._saveData=!e,this._saveData&&(this.data=[]),this._ctx=null};b.prototype={constructor:b,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(e,t,n){n=n||0,this._ux=_(n/l/e)||0,this._uy=_(n/l/t)||0},getContext:function(){return this._ctx},beginPath:function(e){return this._ctx=e,e&&e.beginPath(),e&&(this.dpr=e.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(e,t){return this.addData(c.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},lineTo:function(e,t){var n=_(e-this._xi)>this._ux||_(t-this._yi)>this._uy||this._len<5;return this.addData(c.L,e,t),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),n&&(this._xi=e,this._yi=t),this},bezierCurveTo:function(e,t,n,i,r,a){return this.addData(c.C,e,t,n,i,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,n,i,r,a):this._ctx.bezierCurveTo(e,t,n,i,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(e,t,n,i){return this.addData(c.Q,e,t,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,n,i):this._ctx.quadraticCurveTo(e,t,n,i)),this._xi=n,this._yi=i,this},arc:function(e,t,n,i,r,a){return this.addData(c.A,e,t,n,n,i,r-i,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,a),this._xi=g(r)*n+e,this._yi=v(r)*n+t,this},arcTo:function(e,t,n,i,r){return this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},rect:function(e,t,n,i){return this._ctx&&this._ctx.rect(e,t,n,i),this.addData(c.R,e,t,n,i),this},closePath:function(){this.addData(c.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&(this._needsDash()&&this._dashedLineTo(t,n),e.closePath()),this._xi=t,this._yi=n,this},fill:function(e){e&&e.fill(),this.toStatic()},stroke:function(e){e&&e.stroke(),this.toStatic()},setLineDash:function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,n=0;n<e.length;n++)t+=e[n];this._dashSum=t}return this},setLineDashOffset:function(e){return this._dashOffset=e,this},len:function(){return this._len},setData:function(e){var t=e.length;this.data&&this.data.length===t||!x||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},appendPath:function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,r=0;r<t;r++)n+=e[r].len();x&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<t;r++)for(var a=e[r].data,o=0;o<a.length;o++)this.data[i++]=a[o];this._len=i},addData:function(e){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var n=0;n<arguments.length;n++)t[this._len++]=arguments[n];this._prevCmd=e}},_expandData:function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(e,t){var n,i,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,c=this._yi,u=e-l,h=t-c,d=y(u*u+h*h),p=l,g=c,v=o.length;u/=d,h/=d,a<0&&(a=r+a),a%=r,p-=a*u,g-=a*h;while(u>0&&p<=e||u<0&&p>=e||0===u&&(h>0&&g<=t||h<0&&g>=t))i=this._dashIdx,n=o[i],p+=u*n,g+=h*n,this._dashIdx=(i+1)%v,u>0&&p<l||u<0&&p>l||h>0&&g<c||h<0&&g>c||s[i%2?"moveTo":"lineTo"](u>=0?f(p,e):m(p,e),h>=0?f(g,t):m(g,t));u=p-e,h=g-t,this._dashOffset=-y(u*u+h*h)},_dashedBezierTo:function(e,t,n,r,a,o){var s,l,c,u,h,d=this._dashSum,p=this._dashOffset,f=this._lineDash,m=this._ctx,g=this._xi,v=this._yi,_=i.cubicAt,x=0,b=this._dashIdx,w=f.length,S=0;for(p<0&&(p=d+p),p%=d,s=0;s<1;s+=.1)l=_(g,e,n,a,s+.1)-_(g,e,n,a,s),c=_(v,t,r,o,s+.1)-_(v,t,r,o,s),x+=y(l*l+c*c);for(;b<w;b++)if(S+=f[b],S>p)break;s=(S-p)/x;while(s<=1)u=_(g,e,n,a,s),h=_(v,t,r,o,s),b%2?m.moveTo(u,h):m.lineTo(u,h),s+=f[b]/x,b=(b+1)%w;b%2!==0&&m.lineTo(a,o),l=a-u,c=o-h,this._dashOffset=-y(l*l+c*c)},_dashedQuadraticTo:function(e,t,n,i){var r=n,a=i;n=(n+2*e)/3,i=(i+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,n,i,r,a)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,x&&(this.data=new Float32Array(e)))},getBoundingRect:function(){u[0]=u[1]=d[0]=d[1]=Number.MAX_VALUE,h[0]=h[1]=p[0]=p[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,i=0,s=0,l=0;l<e.length;){var f=e[l++];switch(1===l&&(t=e[l],n=e[l+1],i=t,s=n),f){case c.M:i=e[l++],s=e[l++],t=i,n=s,d[0]=i,d[1]=s,p[0]=i,p[1]=s;break;case c.L:a.fromLine(t,n,e[l],e[l+1],d,p),t=e[l++],n=e[l++];break;case c.C:a.fromCubic(t,n,e[l++],e[l++],e[l++],e[l++],e[l],e[l+1],d,p),t=e[l++],n=e[l++];break;case c.Q:a.fromQuadratic(t,n,e[l++],e[l++],e[l],e[l+1],d,p),t=e[l++],n=e[l++];break;case c.A:var m=e[l++],y=e[l++],_=e[l++],x=e[l++],b=e[l++],w=e[l++]+b;l+=1;var S=1-e[l++];1===l&&(i=g(b)*_+m,s=v(b)*x+y),a.fromArc(m,y,_,x,b,w,S,d,p),t=g(w)*_+m,n=v(w)*x+y;break;case c.R:i=t=e[l++],s=n=e[l++];var M=e[l++],C=e[l++];a.fromLine(i,s,i+M,s+C,d,p);break;case c.Z:t=i,n=s;break}r.min(u,u,d),r.max(h,h,p)}return 0===l&&(u[0]=u[1]=h[0]=h[1]=0),new o(u[0],u[1],h[0]-u[0],h[1]-u[1])},rebuildPath:function(e){for(var t,n,i,r,a,o,s=this.data,l=this._ux,u=this._uy,h=this._len,d=0;d<h;){var p=s[d++];switch(1===d&&(i=s[d],r=s[d+1],t=i,n=r),p){case c.M:t=i=s[d++],n=r=s[d++],e.moveTo(i,r);break;case c.L:a=s[d++],o=s[d++],(_(a-i)>l||_(o-r)>u||d===h-1)&&(e.lineTo(a,o),i=a,r=o);break;case c.C:e.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),i=s[d-2],r=s[d-1];break;case c.Q:e.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),i=s[d-2],r=s[d-1];break;case c.A:var f=s[d++],m=s[d++],y=s[d++],x=s[d++],b=s[d++],w=s[d++],S=s[d++],M=s[d++],C=y>x?y:x,T=y>x?1:y/x,E=y>x?x/y:1,A=Math.abs(y-x)>.001,k=b+w;A?(e.translate(f,m),e.rotate(S),e.scale(T,E),e.arc(0,0,C,b,k,1-M),e.scale(1/T,1/E),e.rotate(-S),e.translate(-f,-m)):e.arc(f,m,C,b,k,1-M),1===d&&(t=g(b)*y+f,n=v(b)*x+m),i=g(k)*y+f,r=v(k)*x+m;break;case c.R:t=i=s[d],n=r=s[d+1],e.rect(s[d++],s[d++],s[d++],s[d++]);break;case c.Z:e.closePath(),i=t,r=n}}}},b.CMD=c;var w=b;e.exports=w},93622:function(e,t,n){function i(){}function r(e,t,n,i){for(var r=0,a=t.length,o=0,s=0;r<a;r++){var l=t[r];if(l.removed){for(c=[],u=s;u<s+l.count;u++)c.push(u);l.indices=c,s+=l.count}else{for(var c=[],u=o;u<o+l.count;u++)c.push(u);l.indices=c,o+=l.count,l.added||(s+=l.count)}}return t}function a(e){return{newPos:e.newPos,components:e.components.slice(0)}}n(70252),i.prototype={diff:function(e,t,n){n||(n=function(e,t){return e===t}),this.equals=n;var i=this;e=e.slice(),t=t.slice();var o=t.length,s=e.length,l=1,c=o+s,u=[{newPos:-1,components:[]}],h=this.extractCommon(u[0],t,e,0);if(u[0].newPos+1>=o&&h+1>=s){for(var d=[],p=0;p<t.length;p++)d.push(p);return[{indices:d,count:t.length}]}function f(){for(var n=-1*l;n<=l;n+=2){var c,h=u[n-1],d=u[n+1],p=(d?d.newPos:0)-n;h&&(u[n-1]=void 0);var f=h&&h.newPos+1<o,m=d&&0<=p&&p<s;if(f||m){if(!f||m&&h.newPos<d.newPos?(c=a(d),i.pushComponent(c.components,void 0,!0)):(c=h,c.newPos++,i.pushComponent(c.components,!0,void 0)),p=i.extractCommon(c,t,e,n),c.newPos+1>=o&&p+1>=s)return r(i,c.components,t,e);u[n]=c}else u[n]=void 0}l++}while(l<=c){var m=f();if(m)return m}},pushComponent:function(e,t,n){var i=e[e.length-1];i&&i.added===t&&i.removed===n?e[e.length-1]={count:i.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,i){var r=t.length,a=n.length,o=e.newPos,s=o-i,l=0;while(o+1<r&&s+1<a&&this.equals(t[o+1],n[s+1]))o++,s++,l++;return l&&e.components.push({count:l}),e.newPos=o,s},tokenize:function(e){return e.slice()},join:function(e){return e.slice()}};var o=new i;function s(e,t,n){return o.diff(e,t,n)}e.exports=s},28414:function(e,t,n){var i=n(89457),r=n(96578),a=Math.min,o=Math.max,s=Math.sin,l=Math.cos,c=2*Math.PI,u=i.create(),h=i.create(),d=i.create();function p(e,t,n){if(0!==e.length){var i,r=e[0],s=r[0],l=r[0],c=r[1],u=r[1];for(i=1;i<e.length;i++)r=e[i],s=a(s,r[0]),l=o(l,r[0]),c=a(c,r[1]),u=o(u,r[1]);t[0]=s,t[1]=c,n[0]=l,n[1]=u}}function f(e,t,n,i,r,s){r[0]=a(e,n),r[1]=a(t,i),s[0]=o(e,n),s[1]=o(t,i)}var m=[],g=[];function v(e,t,n,i,s,l,c,u,h,d){var p,f=r.cubicExtrema,v=r.cubicAt,y=f(e,n,s,c,m);for(h[0]=1/0,h[1]=1/0,d[0]=-1/0,d[1]=-1/0,p=0;p<y;p++){var _=v(e,n,s,c,m[p]);h[0]=a(_,h[0]),d[0]=o(_,d[0])}for(y=f(t,i,l,u,g),p=0;p<y;p++){var x=v(t,i,l,u,g[p]);h[1]=a(x,h[1]),d[1]=o(x,d[1])}h[0]=a(e,h[0]),d[0]=o(e,d[0]),h[0]=a(c,h[0]),d[0]=o(c,d[0]),h[1]=a(t,h[1]),d[1]=o(t,d[1]),h[1]=a(u,h[1]),d[1]=o(u,d[1])}function y(e,t,n,i,s,l,c,u){var h=r.quadraticExtremum,d=r.quadraticAt,p=o(a(h(e,n,s),1),0),f=o(a(h(t,i,l),1),0),m=d(e,n,s,p),g=d(t,i,l,f);c[0]=a(e,s,m),c[1]=a(t,l,g),u[0]=o(e,s,m),u[1]=o(t,l,g)}function _(e,t,n,r,a,o,p,f,m){var g=i.min,v=i.max,y=Math.abs(a-o);if(y%c<1e-4&&y>1e-4)return f[0]=e-n,f[1]=t-r,m[0]=e+n,void(m[1]=t+r);if(u[0]=l(a)*n+e,u[1]=s(a)*r+t,h[0]=l(o)*n+e,h[1]=s(o)*r+t,g(f,u,h),v(m,u,h),a%=c,a<0&&(a+=c),o%=c,o<0&&(o+=c),a>o&&!p?o+=c:a<o&&p&&(a+=c),p){var _=o;o=a,a=_}for(var x=0;x<o;x+=Math.PI/2)x>a&&(d[0]=l(x)*n+e,d[1]=s(x)*r+t,g(f,d,f),v(m,d,m))}t.fromPoints=p,t.fromLine=f,t.fromCubic=v,t.fromQuadratic=y,t.fromArc=_},96578:function(e,t,n){var i=n(89457),r=i.create,a=i.distSquare,o=Math.pow,s=Math.sqrt,l=1e-8,c=1e-4,u=s(3),h=1/3,d=r(),p=r(),f=r();function m(e){return e>-l&&e<l}function g(e){return e>l||e<-l}function v(e,t,n,i,r){var a=1-r;return a*a*(a*e+3*r*t)+r*r*(r*i+3*a*n)}function y(e,t,n,i,r){var a=1-r;return 3*(((t-e)*a+2*(n-t)*r)*a+(i-n)*r*r)}function _(e,t,n,i,r,a){var l=i+3*(t-n)-e,c=3*(n-2*t+e),d=3*(t-e),p=e-r,f=c*c-3*l*d,g=c*d-9*l*p,v=d*d-3*c*p,y=0;if(m(f)&&m(g))if(m(c))a[0]=0;else{var _=-d/c;_>=0&&_<=1&&(a[y++]=_)}else{var x=g*g-4*f*v;if(m(x)){var b=g/f,w=(_=-c/l+b,-b/2);_>=0&&_<=1&&(a[y++]=_),w>=0&&w<=1&&(a[y++]=w)}else if(x>0){var S=s(x),M=f*c+1.5*l*(-g+S),C=f*c+1.5*l*(-g-S);M=M<0?-o(-M,h):o(M,h),C=C<0?-o(-C,h):o(C,h);_=(-c-(M+C))/(3*l);_>=0&&_<=1&&(a[y++]=_)}else{var T=(2*f*c-3*l*g)/(2*s(f*f*f)),E=Math.acos(T)/3,A=s(f),k=Math.cos(E),D=(_=(-c-2*A*k)/(3*l),w=(-c+A*(k+u*Math.sin(E)))/(3*l),(-c+A*(k-u*Math.sin(E)))/(3*l));_>=0&&_<=1&&(a[y++]=_),w>=0&&w<=1&&(a[y++]=w),D>=0&&D<=1&&(a[y++]=D)}}return y}function x(e,t,n,i,r){var a=6*n-12*t+6*e,o=9*t+3*i-3*e-9*n,l=3*t-3*e,c=0;if(m(o)){if(g(a)){var u=-l/a;u>=0&&u<=1&&(r[c++]=u)}}else{var h=a*a-4*o*l;if(m(h))r[0]=-a/(2*o);else if(h>0){var d=s(h),p=(u=(-a+d)/(2*o),(-a-d)/(2*o));u>=0&&u<=1&&(r[c++]=u),p>=0&&p<=1&&(r[c++]=p)}}return c}function b(e,t,n,i,r,a){var o=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,c=(s-o)*r+o,u=(l-s)*r+s,h=(u-c)*r+c;a[0]=e,a[1]=o,a[2]=c,a[3]=h,a[4]=h,a[5]=u,a[6]=l,a[7]=i}function w(e,t,n,i,r,o,l,u,h,m,g){var y,_,x,b,w,S=.005,M=1/0;d[0]=h,d[1]=m;for(var C=0;C<1;C+=.05)p[0]=v(e,n,r,l,C),p[1]=v(t,i,o,u,C),b=a(d,p),b<M&&(y=C,M=b);M=1/0;for(var T=0;T<32;T++){if(S<c)break;_=y-S,x=y+S,p[0]=v(e,n,r,l,_),p[1]=v(t,i,o,u,_),b=a(p,d),_>=0&&b<M?(y=_,M=b):(f[0]=v(e,n,r,l,x),f[1]=v(t,i,o,u,x),w=a(f,d),x<=1&&w<M?(y=x,M=w):S*=.5)}return g&&(g[0]=v(e,n,r,l,y),g[1]=v(t,i,o,u,y)),s(M)}function S(e,t,n,i){var r=1-i;return r*(r*e+2*i*t)+i*i*n}function M(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))}function C(e,t,n,i,r){var a=e-2*t+n,o=2*(t-e),l=e-i,c=0;if(m(a)){if(g(o)){var u=-l/o;u>=0&&u<=1&&(r[c++]=u)}}else{var h=o*o-4*a*l;if(m(h)){u=-o/(2*a);u>=0&&u<=1&&(r[c++]=u)}else if(h>0){var d=s(h),p=(u=(-o+d)/(2*a),(-o-d)/(2*a));u>=0&&u<=1&&(r[c++]=u),p>=0&&p<=1&&(r[c++]=p)}}return c}function T(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function E(e,t,n,i,r){var a=(t-e)*i+e,o=(n-t)*i+t,s=(o-a)*i+a;r[0]=e,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n}function A(e,t,n,i,r,o,l,u,h){var m,g=.005,v=1/0;d[0]=l,d[1]=u;for(var y=0;y<1;y+=.05){p[0]=S(e,n,r,y),p[1]=S(t,i,o,y);var _=a(d,p);_<v&&(m=y,v=_)}v=1/0;for(var x=0;x<32;x++){if(g<c)break;var b=m-g,w=m+g;p[0]=S(e,n,r,b),p[1]=S(t,i,o,b);_=a(p,d);if(b>=0&&_<v)m=b,v=_;else{f[0]=S(e,n,r,w),f[1]=S(t,i,o,w);var M=a(f,d);w<=1&&M<v?(m=w,v=M):g*=.5}}return h&&(h[0]=S(e,n,r,m),h[1]=S(t,i,o,m)),s(v)}t.cubicAt=v,t.cubicDerivativeAt=y,t.cubicRootAt=_,t.cubicExtrema=x,t.cubicSubdivide=b,t.cubicProjectPoint=w,t.quadraticAt=S,t.quadraticDerivativeAt=M,t.quadraticRootAt=C,t.quadraticExtremum=T,t.quadraticSubdivide=E,t.quadraticProjectPoint=A},90076:function(e,t,n){n(70252);var i=n(28299),r=n(72409),a=r.buildTransformer,o="___zrEVENTSAVED",s=[];function l(e,t,n,i,r){return c(s,t,i,r,!0)&&c(e,n,s[0],s[1])}function c(e,t,n,r,a){if(t.getBoundingClientRect&&i.domSupported&&!d(t)){var s=t[o]||(t[o]={}),l=u(t,s),c=h(l,s,a);if(c)return c(e,n,r),!0}return!1}function u(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],r=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,c=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[c]+":0",i[1-l]+":auto",r[1-c]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}function h(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],o=t.srcCoords,s=!0,l=[],c=[],u=0;u<4;u++){var h=e[u].getBoundingClientRect(),d=2*u,p=h.left,f=h.top;l.push(p,f),s=s&&o&&p===o[d]&&f===o[d+1],c.push(e[u].offsetLeft,e[u].offsetTop)}return s&&r?r:(t.srcCoords=l,t[i]=n?a(c,l):a(l,c))}function d(e){return"CANVAS"===e.nodeName.toUpperCase()}t.transformLocalCoord=l,t.transformCoordWithViewport=c,t.isCanvasEl=d},28299:function(e){var t={};t="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}:i(navigator.userAgent);var n=t;function i(e){var t={},n={},i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(e);return i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),a&&(n.edge=!0,n.version=a[1]),o&&(n.weChat=!0),{browser:n,os:t,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!==typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:"undefined"!==typeof document}}e.exports=n},11793:function(e,t,n){var i=n(80443);t.Dispatcher=i;var r=n(28299),a=n(90076),o=a.isCanvasEl,s=a.transformCoordWithViewport,l="undefined"!==typeof window&&!!window.addEventListener,c=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,u=[];function h(e,t,n,i){return n=n||{},i||!r.canvasSupported?d(e,t,n):r.browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):d(e,t,n),n}function d(e,t,n){if(r.domSupported&&e.getBoundingClientRect){var i=t.clientX,a=t.clientY;if(o(e)){var l=e.getBoundingClientRect();return n.zrX=i-l.left,void(n.zrY=a-l.top)}if(s(u,e,i,a))return n.zrX=u[0],void(n.zrY=u[1])}n.zrX=n.zrY=0}function p(e){return e||window.event}function f(e,t,n){if(t=p(t),null!=t.zrX)return t;var i=t.type,r=i&&i.indexOf("touch")>=0;if(r){var a="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];a&&h(e,a,t,n)}else h(e,t,t,n),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var o=t.button;return null==t.which&&void 0!==o&&c.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}function m(e,t,n,i){l?e.addEventListener(t,n,i):e.attachEvent("on"+t,n)}function g(e,t,n,i){l?e.removeEventListener(t,n,i):e.detachEvent("on"+t,n)}var v=l?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};function y(e){return 2===e.which||3===e.which}function _(e){return e.which>1}t.clientToLocal=h,t.getNativeEvent=p,t.normalizeEvent=f,t.addEventListener=m,t.removeEventListener=g,t.stop=v,t.isMiddleOrRightButtonOnMouseUpDown=y,t.notLeftMouse=_},72409:function(e,t){var n=Math.log(2);function i(e,t,r,a,o,s){var l=a+"-"+o,c=e.length;if(s.hasOwnProperty(l))return s[l];if(1===t){var u=Math.round(Math.log((1<<c)-1&~o)/n);return e[r][u]}var h=a|1<<r,d=r+1;while(a&1<<d)d++;for(var p=0,f=0,m=0;f<c;f++){var g=1<<f;g&o||(p+=(m%2?-1:1)*e[r][f]*i(e,t-1,d,h,o|g,s),m++)}return s[l]=p,p}function r(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},a=i(n,8,0,0,0,r);if(0!==a){for(var o=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==o[l]&&(o[l]=0),o[l]+=((s+l)%2?-1:1)*i(n,7,0===s?1:0,1<<s,1<<l,r)/a*t[s];return function(e,t,n){var i=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/i,e[1]=(t*o[3]+n*o[4]+o[5])/i}}}t.buildTransformer=r},66962:function(e){var t=2311;function n(){return t++}e.exports=n},5001:function(e,t,n){var i=n(55270),r=i.debugMode,a=function(){};1===r&&(a=console.error);var o=a;e.exports=o},16317:function(e,t,n){n(66554),n(46293),n(6149);var i="undefined"===typeof Float32Array?Array:Float32Array;function r(){var e=new i(6);return a(e),e}function a(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function s(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function l(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function c(e,t,n){var i=t[0],r=t[2],a=t[4],o=t[1],s=t[3],l=t[5],c=Math.sin(n),u=Math.cos(n);return e[0]=i*u+o*c,e[1]=-i*c+o*u,e[2]=r*u+s*c,e[3]=-r*c+u*s,e[4]=u*a+c*l,e[5]=u*l-c*a,e}function u(e,t,n){var i=n[0],r=n[1];return e[0]=t[0]*i,e[1]=t[1]*r,e[2]=t[2]*i,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*r,e}function h(e,t){var n=t[0],i=t[2],r=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*i;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-o*r)*l,e[5]=(a*r-n*s)*l,e):null}function d(e){var t=r();return o(t,e),t}t.create=r,t.identity=a,t.copy=o,t.mul=s,t.translate=l,t.rotate=c,t.scale=u,t.invert=h,t.clone=d},50714:function(e){var t=32,n=7;function i(e){var n=0;while(e>=t)n|=1&e,e>>=1;return e+n}function r(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){while(r<n&&i(e[r],e[r-1])<0)r++;a(e,t,r)}else while(r<n&&i(e[r],e[r-1])>=0)r++;return r-t}function a(e,t,n){n--;while(t<n){var i=e[t];e[t++]=e[n],e[n--]=i}}function o(e,t,n,i,r){for(i===t&&i++;i<n;i++){var a,o=e[i],s=t,l=i;while(s<l)a=s+l>>>1,r(o,e[a])<0?l=a:s=a+1;var c=i-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(c>0)e[s+c]=e[s+c-1],c--}e[s]=o}}function s(e,t,n,i,r,a){var o=0,s=0,l=1;if(a(e,t[n+r])>0){s=i-r;while(l<s&&a(e,t[n+r+l])>0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{s=r+1;while(l<s&&a(e,t[n+r-l])<=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var c=o;o=r-l,l=r-c}o++;while(o<l){var u=o+(l-o>>>1);a(e,t[n+u])>0?o=u+1:l=u}return l}function l(e,t,n,i,r,a){var o=0,s=0,l=1;if(a(e,t[n+r])<0){s=r+1;while(l<s&&a(e,t[n+r-l])<0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var c=o;o=r-l,l=r-c}else{s=i-r;while(l<s&&a(e,t[n+r+l])>=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}o++;while(o<l){var u=o+(l-o>>>1);a(e,t[n+u])<0?l=u:o=u+1}return l}function c(e,t){var i,r,a=n,o=0,c=0;o=e.length;var u=[];function h(e,t){i[c]=e,r[c]=t,c+=1}function d(){while(c>1){var e=c-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;f(e)}}function p(){while(c>1){var e=c-2;e>0&&r[e-1]<r[e+1]&&e--,f(e)}}function f(n){var a=i[n],o=r[n],u=i[n+1],h=r[n+1];r[n]=o+h,n===c-3&&(i[n+1]=i[n+2],r[n+1]=r[n+2]),c--;var d=l(e[u],e,a,o,0,t);a+=d,o-=d,0!==o&&(h=s(e[a+o-1],e,u,h,h-1,t),0!==h&&(o<=h?m(a,o,u,h):g(a,o,u,h)))}function m(i,r,o,c){var h=0;for(h=0;h<r;h++)u[h]=e[i+h];var d=0,p=o,f=i;if(e[f++]=e[p++],0!==--c)if(1!==r){var m,g,v,y=a;while(1){m=0,g=0,v=!1;do{if(t(e[p],u[d])<0){if(e[f++]=e[p++],g++,m=0,0===--c){v=!0;break}}else if(e[f++]=u[d++],m++,g=0,1===--r){v=!0;break}}while((m|g)<y);if(v)break;do{if(m=l(e[p],u,d,r,0,t),0!==m){for(h=0;h<m;h++)e[f+h]=u[d+h];if(f+=m,d+=m,r-=m,r<=1){v=!0;break}}if(e[f++]=e[p++],0===--c){v=!0;break}if(g=s(u[d],e,p,c,0,t),0!==g){for(h=0;h<g;h++)e[f+h]=e[p+h];if(f+=g,p+=g,c-=g,0===c){v=!0;break}}if(e[f++]=u[d++],1===--r){v=!0;break}y--}while(m>=n||g>=n);if(v)break;y<0&&(y=0),y+=2}if(a=y,a<1&&(a=1),1===r){for(h=0;h<c;h++)e[f+h]=e[p+h];e[f+c]=u[d]}else{if(0===r)throw new Error;for(h=0;h<r;h++)e[f+h]=u[d+h]}}else{for(h=0;h<c;h++)e[f+h]=e[p+h];e[f+c]=u[d]}else for(h=0;h<r;h++)e[f+h]=u[d+h]}function g(i,r,o,c){var h=0;for(h=0;h<c;h++)u[h]=e[o+h];var d=i+r-1,p=c-1,f=o+c-1,m=0,g=0;if(e[f--]=e[d--],0!==--r)if(1!==c){var v=a;while(1){var y=0,_=0,x=!1;do{if(t(u[p],e[d])<0){if(e[f--]=e[d--],y++,_=0,0===--r){x=!0;break}}else if(e[f--]=u[p--],_++,y=0,1===--c){x=!0;break}}while((y|_)<v);if(x)break;do{if(y=r-l(u[p],e,i,r,r-1,t),0!==y){for(f-=y,d-=y,r-=y,g=f+1,m=d+1,h=y-1;h>=0;h--)e[g+h]=e[m+h];if(0===r){x=!0;break}}if(e[f--]=u[p--],1===--c){x=!0;break}if(_=c-s(e[d],u,0,c,c-1,t),0!==_){for(f-=_,p-=_,c-=_,g=f+1,m=p+1,h=0;h<_;h++)e[g+h]=u[m+h];if(c<=1){x=!0;break}}if(e[f--]=e[d--],0===--r){x=!0;break}v--}while(y>=n||_>=n);if(x)break;v<0&&(v=0),v+=2}if(a=v,a<1&&(a=1),1===c){for(f-=r,d-=r,g=f+1,m=d+1,h=r-1;h>=0;h--)e[g+h]=e[m+h];e[f]=u[p]}else{if(0===c)throw new Error;for(m=f-(c-1),h=0;h<c;h++)e[m+h]=u[h]}}else{for(f-=r,d-=r,g=f+1,m=d+1,h=r-1;h>=0;h--)e[g+h]=e[m+h];e[f]=u[p]}else for(m=f-(c-1),h=0;h<c;h++)e[m+h]=u[h]}i=[],r=[],this.mergeRuns=d,this.forceMergeRuns=p,this.pushRun=h}function u(e,n,a,s){a||(a=0),s||(s=e.length);var l=s-a;if(!(l<2)){var u=0;if(l<t)return u=r(e,a,s,n),void o(e,a,s,a+u,n);var h=new c(e,n),d=i(l);do{if(u=r(e,a,s,n),u<d){var p=l;p>d&&(p=d),o(e,a,a+p,a+u,n),u=p}h.pushRun(a,u),h.mergeRuns(),l-=u,a+=u}while(0!==l);h.forceMergeRuns()}}e.exports=u},16949:function(e,t,n){n(70252);var i={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},r={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},a=Object.prototype.toString,o=Array.prototype,s=o.forEach,l=o.filter,c=o.slice,u=o.map,h=o.reduce,d={};function p(e,t){"createCanvas"===e&&(_=null),d[e]=t}function f(e){if(null==e||"object"!==typeof e)return e;var t=e,n=a.call(e);if("[object Array]"===n){if(!K(e)){t=[];for(var o=0,s=e.length;o<s;o++)t[o]=f(e[o])}}else if(r[n]){if(!K(e)){var l=e.constructor;if(e.constructor.from)t=l.from(e);else{t=new l(e.length);for(o=0,s=e.length;o<s;o++)t[o]=f(e[o])}}}else if(!i[n]&&!K(e)&&!z(e))for(var c in t={},e)e.hasOwnProperty(c)&&(t[c]=f(e[c]));return t}function m(e,t,n){if(!N(t)||!N(e))return n?f(t):e;for(var i in t)if(t.hasOwnProperty(i)){var r=e[i],a=t[i];!N(a)||!N(r)||O(a)||O(r)||z(a)||z(r)||F(a)||F(r)||K(a)||K(r)?!n&&i in e||(e[i]=f(t[i],!0)):m(r,a,n)}return e}function g(e,t){for(var n=e[0],i=1,r=e.length;i<r;i++)n=m(n,e[i],t);return n}function v(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function y(e,t,n){for(var i in t)t.hasOwnProperty(i)&&(n?null!=t[i]:null==e[i])&&(e[i]=t[i]);return e}var _,x=function(){return d.createCanvas()};function b(){return _||(_=x().getContext("2d")),_}function w(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1}function S(e,t){var n=e.prototype;function i(){}for(var r in i.prototype=t.prototype,e.prototype=new i,n)n.hasOwnProperty(r)&&(e.prototype[r]=n[r]);e.prototype.constructor=e,e.superClass=t}function M(e,t,n){e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,y(e,t,n)}function C(e){if(e)return"string"!==typeof e&&"number"===typeof e.length}function T(e,t,n){if(e&&t)if(e.forEach&&e.forEach===s)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function E(e,t,n){if(e&&t){if(e.map&&e.map===u)return e.map(t,n);for(var i=[],r=0,a=e.length;r<a;r++)i.push(t.call(n,e[r],r,e));return i}}function A(e,t,n,i){if(e&&t){if(e.reduce&&e.reduce===h)return e.reduce(t,n,i);for(var r=0,a=e.length;r<a;r++)n=t.call(i,n,e[r],r,e);return n}}function k(e,t,n){if(e&&t){if(e.filter&&e.filter===l)return e.filter(t,n);for(var i=[],r=0,a=e.length;r<a;r++)t.call(n,e[r],r,e)&&i.push(e[r]);return i}}function D(e,t,n){if(e&&t)for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i],i,e))return e[i]}function I(e,t){var n=c.call(arguments,2);return function(){return e.apply(t,n.concat(c.call(arguments)))}}function P(e){var t=c.call(arguments,1);return function(){return e.apply(this,t.concat(c.call(arguments)))}}function O(e){return"[object Array]"===a.call(e)}function L(e){return"function"===typeof e}function R(e){return"[object String]"===a.call(e)}function N(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function F(e){return!!i[a.call(e)]}function B(e){return!!r[a.call(e)]}function z(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function V(e){return e!==e}function U(e){for(var t=0,n=arguments.length;t<n;t++)if(null!=arguments[t])return arguments[t]}function H(e,t){return null!=e?e:t}function $(e,t,n){return null!=e?e:null!=t?t:n}function j(){return Function.call.apply(c,arguments)}function W(e){if("number"===typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function G(e,t){if(!e)throw new Error(t)}function q(e){return null==e?null:"function"===typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}d.createCanvas=function(){return document.createElement("canvas")};var X="__ec_primitive__";function Y(e){e[X]=!0}function K(e){return e[X]}function Z(e){var t=O(e);this.data={};var n=this;function i(e,i){t?n.set(e,i):n.set(i,e)}e instanceof Z?e.each(i):e&&T(e,i)}function J(e){return new Z(e)}function Q(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];var r=e.length;for(i=0;i<t.length;i++)n[i+r]=t[i];return n}function ee(){}Z.prototype={constructor:Z,get:function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},set:function(e,t){return this.data[e]=t},each:function(e,t){for(var n in void 0!==t&&(e=I(e,t)),this.data)this.data.hasOwnProperty(n)&&e(this.data[n],n)},removeKey:function(e){delete this.data[e]}},t.$override=p,t.clone=f,t.merge=m,t.mergeAll=g,t.extend=v,t.defaults=y,t.createCanvas=x,t.getContext=b,t.indexOf=w,t.inherits=S,t.mixin=M,t.isArrayLike=C,t.each=T,t.map=E,t.reduce=A,t.filter=k,t.find=D,t.bind=I,t.curry=P,t.isArray=O,t.isFunction=L,t.isString=R,t.isObject=N,t.isBuiltInObject=F,t.isTypedArray=B,t.isDom=z,t.eqNaN=V,t.retrieve=U,t.retrieve2=H,t.retrieve3=$,t.slice=j,t.normalizeCssArray=W,t.assert=G,t.trim=q,t.setAsPrimitive=Y,t.isPrimitive=K,t.createHashMap=J,t.concatArray=Q,t.noop=ee},89457:function(e,t,n){n(66554),n(46293),n(6149);var i="undefined"===typeof Float32Array?Array:Float32Array;function r(e,t){var n=new i(2);return null==e&&(e=0),null==t&&(t=0),n[0]=e,n[1]=t,n}function a(e,t){return e[0]=t[0],e[1]=t[1],e}function o(e){var t=new i(2);return t[0]=e[0],t[1]=e[1],t}function s(e,t,n){return e[0]=t,e[1]=n,e}function l(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function c(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function h(e){return Math.sqrt(p(e))}var d=h;function p(e){return e[0]*e[0]+e[1]*e[1]}var f=p;function m(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function g(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function v(e,t){return e[0]*t[0]+e[1]*t[1]}function y(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function _(e,t){var n=h(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function x(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var b=x;function w(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var S=w;function M(e,t){return e[0]=-t[0],e[1]=-t[1],e}function C(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function T(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function E(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function A(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}t.create=r,t.copy=a,t.clone=o,t.set=s,t.add=l,t.scaleAndAdd=c,t.sub=u,t.len=h,t.length=d,t.lenSquare=p,t.lengthSquare=f,t.mul=m,t.div=g,t.dot=v,t.scale=y,t.normalize=_,t.distance=x,t.dist=b,t.distanceSquare=w,t.distSquare=S,t.negate=M,t.lerp=C,t.applyTransform=T,t.min=E,t.max=A},81673:function(e,t,n){var i=n(11793),r=i.addEventListener,a=i.removeEventListener,o=i.normalizeEvent,s=i.getNativeEvent,l=n(16949),c=n(80443),u=n(28299),h=300,d=u.domSupported,p=function(){var e=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=l.map(e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:i}}(),f={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function m(e){return"mousewheel"===e&&u.browser.firefox?"DOMMouseScroll":e}function g(e){var t=e.pointerType;return"pen"===t||"touch"===t}function v(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function y(e){e&&(e.zrByTouch=!0)}function _(e,t){return o(e.dom,new b(e,t),!0)}function x(e,t){var n=t,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return i}function b(e,t){this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}var w=b.prototype;w.stopPropagation=w.stopImmediatePropagation=w.preventDefault=l.noop;var S={mousedown:function(e){e=o(this.dom,e),this._mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=o(this.dom,e);var t=this._mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||k(this,!0),this.trigger("mousemove",e)},mouseup:function(e){e=o(this.dom,e),k(this,!1),this.trigger("mouseup",e)},mouseout:function(e){e=o(this.dom,e),this._pointerCapturing&&(e.zrEventControl="no_globalout");var t=e.toElement||e.relatedTarget;e.zrIsToLocalDOM=x(this,t),this.trigger("mouseout",e)},touchstart:function(e){e=o(this.dom,e),y(e),this._lastTouchMoment=new Date,this.handler.processGesture(e,"start"),S.mousemove.call(this,e),S.mousedown.call(this,e)},touchmove:function(e){e=o(this.dom,e),y(e),this.handler.processGesture(e,"change"),S.mousemove.call(this,e)},touchend:function(e){e=o(this.dom,e),y(e),this.handler.processGesture(e,"end"),S.mouseup.call(this,e),+new Date-this._lastTouchMoment<h&&S.click.call(this,e)},pointerdown:function(e){S.mousedown.call(this,e)},pointermove:function(e){g(e)||S.mousemove.call(this,e)},pointerup:function(e){S.mouseup.call(this,e)},pointerout:function(e){g(e)||S.mouseout.call(this,e)}};l.each(["click","mousewheel","dblclick","contextmenu"],(function(e){S[e]=function(t){t=o(this.dom,t),this.trigger(e,t)}}));var M={pointermove:function(e){g(e)||M.mousemove.call(this,e)},pointerup:function(e){M.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this._pointerCapturing;k(this,!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function C(e,t){var n=t.domHandlers;u.pointerEventsSupported?l.each(p.pointer,(function(i){E(t,i,(function(t){n[i].call(e,t)}))})):(u.touchEventsSupported&&l.each(p.touch,(function(i){E(t,i,(function(r){n[i].call(e,r),v(t)}))})),l.each(p.mouse,(function(i){E(t,i,(function(r){r=s(r),t.touching||n[i].call(e,r)}))})))}function T(e,t){function n(n){function i(i){i=s(i),x(e,i.target)||(i=_(e,i),t.domHandlers[n].call(e,i))}E(t,n,i,{capture:!0})}u.pointerEventsSupported?l.each(f.pointer,n):u.touchEventsSupported||l.each(f.mouse,n)}function E(e,t,n,i){e.mounted[t]=n,e.listenerOpts[t]=i,r(e.domTarget,m(t),n,i)}function A(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&a(e.domTarget,m(n),t[n],e.listenerOpts[n]);e.mounted={}}function k(e,t){if(e._mayPointerCapture=null,d&&e._pointerCapturing^t){e._pointerCapturing=t;var n=e._globalHandlerScope;t?T(e,n):A(n)}}function D(e,t){this.domTarget=e,this.domHandlers=t,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function I(e,t){c.call(this),this.dom=e,this.painterRoot=t,this._localHandlerScope=new D(e,S),d&&(this._globalHandlerScope=new D(document,M)),this._pointerCapturing=!1,this._mayPointerCapture=null,C(this,this._localHandlerScope)}var P=I.prototype;P.dispose=function(){A(this._localHandlerScope),d&&A(this._globalHandlerScope)},P.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},l.mixin(I,c);var O=I;e.exports=O},50696:function(e,t,n){var i=n(85632),r=i.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var e=this.__dirtyPath,t=this.shape.paths,n=0;n<t.length;n++)e=e||t[n].__dirtyPath;this.__dirtyPath=e,this.__dirty=this.__dirty||e},beforeBrush:function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},buildPath:function(e,t){for(var n=t.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},afterBrush:function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),i.prototype.getBoundingRect.call(this)}});e.exports=r},11294:function(e,t,n){var i=n(16949),r=n(97745),a=n(28661),o=n(81382);function s(e){for(var t in e=e||{},a.call(this,e),e)e.hasOwnProperty(t)&&"style"!==t&&(this[t]=e[t]);this.style=new r(e.style,this),this._rect=null,this.__clipPaths=null}s.prototype={constructor:s,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(e){},afterBrush:function(e){},brush:function(e,t){},getBoundingRect:function(){},contain:function(e,t){return this.rectContain(e,t)},traverse:function(e,t){e.call(t,this)},rectContain:function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return i.contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(e){return this.animate("style",e)},attrKV:function(e,t){"style"!==e?a.prototype.attrKV.call(this,e,t):this.style.set(t)},setStyle:function(e,t){return this.style.set(e,t),this.dirty(!1),this},useStyle:function(e){return this.style=new r(e,this),this.dirty(!1),this},calculateTextPosition:null},i.inherits(s,a),i.mixin(s,o);var l=s;e.exports=l},91730:function(e,t,n){n(70252);var i=function(e){this.colorStops=e||[]};i.prototype={constructor:i,addColorStop:function(e,t){this.colorStops.push({offset:e,color:t})}};var r=i;e.exports=r},69406:function(e,t,n){var i=n(11294),r=n(17913),a=n(16949),o=n(35690);function s(e){i.call(this,e)}s.prototype={constructor:s,type:"image",brush:function(e,t){var n=this.style,i=n.image;n.bind(e,this,t);var r=this._image=o.createOrUpdateImage(i,this._image,this,this.onload);if(r&&o.isImageReady(r)){var a=n.x||0,s=n.y||0,l=n.width,c=n.height,u=r.width/r.height;if(null==l&&null!=c?l=c*u:null==c&&null!=l?c=l/u:null==l&&null==c&&(l=r.width,c=r.height),this.setTransform(e),n.sWidth&&n.sHeight){var h=n.sx||0,d=n.sy||0;e.drawImage(r,h,d,n.sWidth,n.sHeight,a,s,l,c)}else if(n.sx&&n.sy){h=n.sx,d=n.sy;var p=l-h,f=c-d;e.drawImage(r,h,d,p,f,a,s,l,c)}else e.drawImage(r,a,s,l,c);null!=n.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))}},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new r(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},a.inherits(s,i);var l=s;e.exports=l},89732:function(e,t,n){n(70252);var i=n(16949),r=i.inherits,a=n(11294),o=n(17913);function s(e){a.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}s.prototype.incremental=!0,s.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},s.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},s.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},s.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},s.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},s.prototype.brush=function(e,t){for(var n=this._cursor;n<this._displayables.length;n++){var i=this._displayables[n];i.beforeBrush&&i.beforeBrush(e),i.brush(e,n===this._cursor?null:this._displayables[n-1]),i.afterBrush&&i.afterBrush(e)}this._cursor=n;for(n=0;n<this._temporaryDisplayables.length;n++){i=this._temporaryDisplayables[n];i.beforeBrush&&i.beforeBrush(e),i.brush(e,0===n?null:this._temporaryDisplayables[n-1]),i.afterBrush&&i.afterBrush(e)}this._temporaryDisplayables=[],this.notClear=!0};var l=[];s.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new o(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(l)),e.union(i)}this._rect=e}return this._rect},s.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var a=this._displayables[r];if(a.contain(e,t))return!0}return!1},r(s,a);var c=s;e.exports=c},90377:function(e,t,n){var i=n(16949),r=n(91730),a=function(e,t,n,i,a,o){this.x=null==e?0:e,this.y=null==t?0:t,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=o||!1,r.call(this,a)};a.prototype={constructor:a},i.inherits(a,r);var o=a;e.exports=o},85632:function(e,t,n){var i=n(11294),r=n(16949),a=n(95552),o=n(85763),s=n(36475),l=s.prototype.getCanvasPattern,c=Math.abs,u=new a(!0);function h(e){i.call(this,e),this.path=null}h.prototype={constructor:h,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(e,t){var n,i=this.style,r=this.path||u,a=i.hasStroke(),o=i.hasFill(),s=i.fill,c=i.stroke,h=o&&!!s.colorStops,d=a&&!!c.colorStops,p=o&&!!s.image,f=a&&!!c.image;(i.bind(e,this,t),this.setTransform(e),this.__dirty)&&(h&&(n=n||this.getBoundingRect(),this._fillGradient=i.getGradient(e,s,n)),d&&(n=n||this.getBoundingRect(),this._strokeGradient=i.getGradient(e,c,n)));h?e.fillStyle=this._fillGradient:p&&(e.fillStyle=l.call(s,e)),d?e.strokeStyle=this._strokeGradient:f&&(e.strokeStyle=l.call(c,e));var m=i.lineDash,g=i.lineDashOffset,v=!!e.setLineDash,y=this.getGlobalScale();if(r.setScale(y[0],y[1],this.segmentIgnoreThreshold),this.__dirtyPath||m&&!v&&a?(r.beginPath(e),m&&!v&&(r.setLineDash(m),r.setLineDashOffset(g)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(e.beginPath(),this.path.rebuildPath(e)),o)if(null!=i.fillOpacity){var _=e.globalAlpha;e.globalAlpha=i.fillOpacity*i.opacity,r.fill(e),e.globalAlpha=_}else r.fill(e);if(m&&v&&(e.setLineDash(m),e.lineDashOffset=g),a)if(null!=i.strokeOpacity){_=e.globalAlpha;e.globalAlpha=i.strokeOpacity*i.opacity,r.stroke(e),e.globalAlpha=_}else r.stroke(e);m&&v&&e.setLineDash([]),null!=i.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))},buildPath:function(e,t,n){},createPathProxy:function(){this.path=new a},getBoundingRect:function(){var e=this._rect,t=this.style,n=!e;if(n){var i=this.path;i||(i=this.path=new a),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),e=i.getBoundingRect()}if(this._rect=e,t.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||n){r.copy(e);var o=t.lineWidth,s=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(r.width+=o/s,r.height+=o/s,r.x-=o/s/2,r.y-=o/s/2)}return r}return e},contain:function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var a=this.path.data;if(r.hasStroke()){var s=r.lineWidth,l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(a,s/l,e,t)))return!0}if(r.hasFill())return o.contain(a,e,t)}return!1},dirty:function(e){null==e&&(e=!0),e&&(this.__dirtyPath=e,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(e){return this.animate("shape",e)},attrKV:function(e,t){"shape"===e?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):i.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var n=this.shape;if(n){if(r.isObject(e))for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);else n[e]=t;this.dirty(!0)}return this},getLineScale:function(){var e=this.transform;return e&&c(e[0]-1)>1e-10&&c(e[3]-1)>1e-10?Math.sqrt(c(e[0]*e[3]-e[2]*e[1])):1}},h.extend=function(e){var t=function(t){h.call(this,t),e.style&&this.style.extendFrom(e.style,!1);var n=e.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}e.init&&e.init.call(this,t)};for(var n in r.inherits(t,h),e)"style"!==n&&"shape"!==n&&(t.prototype[n]=e[n]);return t},r.inherits(h,i);var d=h;e.exports=d},36475:function(e){var t=function(e,t){this.image=e,this.repeat=t,this.type="pattern"};t.prototype.getCanvasPattern=function(e){return e.createPattern(this.image,this.repeat||"repeat")};var n=t;e.exports=n},39153:function(e,t,n){var i=n(16949),r=n(91730),a=function(e,t,n,i,a){this.x=null==e?.5:e,this.y=null==t?.5:t,this.r=null==n?.5:n,this.type="radial",this.global=a||!1,r.call(this,i)};a.prototype={constructor:a},i.inherits(a,r);var o=a;e.exports=o},97745:function(e,t,n){var i=n(74859),r=n(94522),a=r.ContextCachedBy,o=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],s=function(e){this.extendFrom(e,!1)};function l(e,t,n){var i=null==t.x?0:t.x,r=null==t.x2?1:t.x2,a=null==t.y?0:t.y,o=null==t.y2?0:t.y2;t.global||(i=i*n.width+n.x,r=r*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,a=isNaN(a)?0:a,o=isNaN(o)?0:o;var s=e.createLinearGradient(i,a,r,o);return s}function c(e,t,n){var i=n.width,r=n.height,a=Math.min(i,r),o=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;t.global||(o=o*i+n.x,s=s*r+n.y,l*=a);var c=e.createRadialGradient(o,s,0,o,s,l);return c}s.prototype={constructor:s,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,t,n){var r=this,s=n&&n.style,l=!s||e.__attrCachedBy!==a.STYLE_BIND;e.__attrCachedBy=a.STYLE_BIND;for(var c=0;c<o.length;c++){var u=o[c],h=u[0];(l||r[h]!==s[h])&&(e[h]=i(e,h,r[h]||u[1]))}if((l||r.fill!==s.fill)&&(e.fillStyle=r.fill),(l||r.stroke!==s.stroke)&&(e.strokeStyle=r.stroke),(l||r.opacity!==s.opacity)&&(e.globalAlpha=null==r.opacity?1:r.opacity),(l||r.blend!==s.blend)&&(e.globalCompositeOperation=r.blend||"source-over"),this.hasStroke()){var d=r.lineWidth;e.lineWidth=d/(this.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1)}},hasFill:function(){var e=this.fill;return null!=e&&"none"!==e},hasStroke:function(){var e=this.stroke;return null!=e&&"none"!==e&&this.lineWidth>0},extendFrom:function(e,t){if(e)for(var n in e)!e.hasOwnProperty(n)||!0!==t&&(!1===t?this.hasOwnProperty(n):null==e[n])||(this[n]=e[n])},set:function(e,t){"string"===typeof e?this[e]=t:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,t,n){for(var i="radial"===t.type?c:l,r=i(e,t,n),a=t.colorStops,o=0;o<a.length;o++)r.addColorStop(a[o].offset,a[o].color);return r}};for(var u=s.prototype,h=0;h<o.length;h++){var d=o[h];d[0]in u||(u[d[0]]=d[1])}s.getGradient=u.getGradient;var p=s;e.exports=p},70939:function(e,t,n){var i=n(11294),r=n(16949),a=n(53164),o=n(93682),s=n(94522),l=s.ContextCachedBy,c=function(e){i.call(this,e)};c.prototype={constructor:c,type:"text",brush:function(e,t){var n=this.style;this.__dirty&&o.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var i=n.text;null!=i&&(i+=""),o.needDrawText(i,n)?(this.setTransform(e),o.renderText(this,e,i,n,null,t),this.restoreTransform(e)):e.__attrCachedBy=l.NONE},getBoundingRect:function(){var e=this.style;if(this.__dirty&&o.normalizeTextStyle(e,!0),!this._rect){var t=e.text;null!=t?t+="":t="";var n=a.getBoundingRect(e.text+"",e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich);if(n.x+=e.x||0,n.y+=e.y||0,o.getStroke(e.textStroke,e.textStrokeWidth)){var i=e.textStrokeWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect}},r.inherits(c,i);var u=c;e.exports=u},94522:function(e,t){var n={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},i=9;t.ContextCachedBy=n,t.WILL_BE_RESTORED=i},62218:function(e,t,n){var i=n(28299),r=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function a(e){return i.browser.ie&&i.browser.version>=11?function(){var t,n=this.__clipPaths,i=this.style;if(n)for(var a=0;a<n.length;a++){var o=n[a],s=o&&o.shape,l=o&&o.type;if(s&&("sector"===l&&s.startAngle===s.endAngle||"rect"===l&&(!s.width||!s.height))){for(var c=0;c<r.length;c++)r[c][2]=i[r[c][0]],i[r[c][0]]=r[c][1];t=!0;break}}if(e.apply(this,arguments),t)for(c=0;c<r.length;c++)i[r[c][0]]=r[c][2]}:e}e.exports=a},74859:function(e){var t={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function n(e,n,i){return t.hasOwnProperty(n)?i*e.dpr:i}e.exports=n},35690:function(e,t,n){n(70252);var i=n(10059),r=new i(50);function a(e){if("string"===typeof e){var t=r.get(e);return t&&t.image}return e}function o(e,t,n,i,a){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=r.get(e),c={hostEl:n,cb:i,cbPayload:a};return o?(t=o.image,!l(t)&&o.pending.push(c)):(t=new Image,t.onload=t.onerror=s,r.put(e,t.__cachedImgObj={image:t,pending:[c]}),t.src=t.__zrImageSrc=e),t}return e}return t}function s(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function l(e){return e&&e.width&&e.height}t.findExistImage=a,t.createOrUpdateImage=o,t.isImageReady=l},44722:function(e,t,n){var i=n(91595),r=n(38862);function a(e,t,n){var a=t.points,o=t.smooth;if(a&&a.length>=2){if(o&&"spline"!==o){var s=r(a,o,n,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var l=a.length,c=0;c<(n?l:l-1);c++){var u=s[2*c],h=s[2*c+1],d=a[(c+1)%l];e.bezierCurveTo(u[0],u[1],h[0],h[1],d[0],d[1])}}else{"spline"===o&&(a=i(a,n)),e.moveTo(a[0][0],a[0][1]);c=1;for(var p=a.length;c<p;c++)e.lineTo(a[c][0],a[c][1])}n&&e.closePath()}}t.buildPath=a},57048:function(e,t){function n(e,t){var n,i,r,a,o,s=t.x,l=t.y,c=t.width,u=t.height,h=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof h?n=i=r=a=h:h instanceof Array?1===h.length?n=i=r=a=h[0]:2===h.length?(n=r=h[0],i=a=h[1]):3===h.length?(n=h[0],i=a=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],a=h[3]):n=i=r=a=0,n+i>c&&(o=n+i,n*=c/o,i*=c/o),r+a>c&&(o=r+a,r*=c/o,a*=c/o),i+r>u&&(o=i+r,i*=u/o,r*=u/o),n+a>u&&(o=n+a,n*=u/o,a*=u/o),e.moveTo(s+n,l),e.lineTo(s+c-i,l),0!==i&&e.arc(s+c-i,l+i,i,-Math.PI/2,0),e.lineTo(s+c,l+u-r),0!==r&&e.arc(s+c-r,l+u-r,r,0,Math.PI/2),e.lineTo(s+a,l+u),0!==a&&e.arc(s+a,l+u-a,a,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}t.buildPath=n},38862:function(e,t,n){n(70252);var i=n(89457),r=i.min,a=i.max,o=i.scale,s=i.distance,l=i.add,c=i.clone,u=i.sub;function h(e,t,n,i){var h,d,p,f,m=[],g=[],v=[],y=[];if(i){p=[1/0,1/0],f=[-1/0,-1/0];for(var _=0,x=e.length;_<x;_++)r(p,p,e[_]),a(f,f,e[_]);r(p,p,i[0]),a(f,f,i[1])}for(_=0,x=e.length;_<x;_++){var b=e[_];if(n)h=e[_?_-1:x-1],d=e[(_+1)%x];else{if(0===_||_===x-1){m.push(c(e[_]));continue}h=e[_-1],d=e[_+1]}u(g,d,h),o(g,g,t);var w=s(b,h),S=s(b,d),M=w+S;0!==M&&(w/=M,S/=M),o(v,g,-w),o(y,g,S);var C=l([],b,v),T=l([],b,y);i&&(a(C,C,p),r(C,C,f),a(T,T,p),r(T,T,f)),m.push(C),m.push(T)}return n&&m.push(m.shift()),m}e.exports=h},91595:function(e,t,n){n(70252);var i=n(89457),r=i.distance;function a(e,t,n,i,r,a,o){var s=.5*(n-e),l=.5*(i-t);return(2*(t-n)+s+l)*o+(-3*(t-n)-2*s-l)*a+s*r+t}function o(e,t){for(var n=e.length,i=[],o=0,s=1;s<n;s++)o+=r(e[s-1],e[s]);var l=o/2;l=l<n?n:l;for(s=0;s<l;s++){var c,u,h,d=s/(l-1)*(t?n:n-1),p=Math.floor(d),f=d-p,m=e[p%n];t?(c=e[(p-1+n)%n],u=e[(p+1)%n],h=e[(p+2)%n]):(c=e[0===p?p:p-1],u=e[p>n-2?n-1:p+1],h=e[p>n-3?n-1:p+2]);var g=f*f,v=f*g;i.push([a(c[0],m[0],u[0],h[0],f,g,v),a(c[1],m[1],u[1],h[1],f,g,v)])}return i}e.exports=o},34073:function(e,t){var n=Math.round;function i(e,t,i){if(t){var r=t.x1,o=t.x2,s=t.y1,l=t.y2;e.x1=r,e.x2=o,e.y1=s,e.y2=l;var c=i&&i.lineWidth;c&&(n(2*r)===n(2*o)&&(e.x1=e.x2=a(r,c,!0)),n(2*s)===n(2*l)&&(e.y1=e.y2=a(s,c,!0)))}}function r(e,t,n){if(t){var i=t.x,r=t.y,o=t.width,s=t.height;e.x=i,e.y=r,e.width=o,e.height=s;var l=n&&n.lineWidth;l&&(e.x=a(i,l,!0),e.y=a(r,l,!0),e.width=Math.max(a(i+o,l,!1)-e.x,0===o?0:1),e.height=Math.max(a(r+s,l,!1)-e.y,0===s?0:1))}}function a(e,t,i){if(!t)return e;var r=n(2*e);return(r+n(t))%2===0?r/2:(r+(i?1:-1))/2}t.subPixelOptimizeLine=i,t.subPixelOptimizeRect=r,t.subPixelOptimize=a},93682:function(e,t,n){var i=n(16949),r=i.retrieve2,a=i.retrieve3,o=i.each,s=i.normalizeCssArray,l=i.isString,c=i.isObject,u=n(53164),h=n(57048),d=n(35690),p=n(74859),f=n(94522),m=f.ContextCachedBy,g=f.WILL_BE_RESTORED,v=u.DEFAULT_FONT,y={left:1,right:1,center:1},_={top:1,bottom:1,middle:1},x=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],b={},w={};function S(e){return M(e),o(e.rich,M),e}function M(e){if(e){e.font=u.makeFont(e);var t=e.textAlign;"middle"===t&&(t="center"),e.textAlign=null==t||y[t]?t:"left";var n=e.textVerticalAlign||e.textBaseline;"center"===n&&(n="middle"),e.textVerticalAlign=null==n||_[n]?n:"top";var i=e.textPadding;i&&(e.textPadding=s(e.textPadding))}}function C(e,t,n,i,r,a){i.rich?E(e,t,n,i,r,a):T(e,t,n,i,r,a)}function T(e,t,n,i,r,a){"use strict";var o,s=I(i),l=!1,c=t.__attrCachedBy===m.PLAIN_TEXT;a!==g?(a&&(o=a.style,l=!s&&c&&o),t.__attrCachedBy=s?m.NONE:m.PLAIN_TEXT):c&&(t.__attrCachedBy=m.NONE);var h=i.font||v;l&&h===(o.font||v)||(t.font=h);var d=e.__computedFont;e.__styleFont!==h&&(e.__styleFont=h,d=e.__computedFont=t.font);var f=i.textPadding,y=i.textLineHeight,_=e.__textCotentBlock;_&&!e.__dirtyText||(_=e.__textCotentBlock=u.parsePlainText(n,d,f,y,i.truncate));var b=_.outerHeight,S=_.lines,M=_.lineHeight,C=L(w,e,i,r),T=C.baseX,E=C.baseY,A=C.textAlign||"left",D=C.textVerticalAlign;k(t,i,r,T,E);var O=u.adjustTextY(E,b,D),R=T,B=O;if(s||f){var V=u.getWidth(n,d),U=V;f&&(U+=f[1]+f[3]);var H=u.adjustTextX(T,U,A);s&&P(e,t,i,H,O,U,b),f&&(R=z(T,A,f),B+=f[0])}t.textAlign=A,t.textBaseline="middle",t.globalAlpha=i.opacity||1;for(var $=0;$<x.length;$++){var j=x[$],W=j[0],G=j[1],q=i[W];l&&q===o[W]||(t[G]=p(t,G,q||j[2]))}B+=M/2;var X=i.textStrokeWidth,Y=l?o.textStrokeWidth:null,K=!l||X!==Y,Z=!l||K||i.textStroke!==o.textStroke,J=N(i.textStroke,X),Q=F(i.textFill);if(J&&(K&&(t.lineWidth=X),Z&&(t.strokeStyle=J)),Q&&(l&&i.textFill===o.textFill||(t.fillStyle=Q)),1===S.length)J&&t.strokeText(S[0],R,B),Q&&t.fillText(S[0],R,B);else for($=0;$<S.length;$++)J&&t.strokeText(S[$],R,B),Q&&t.fillText(S[$],R,B),B+=M}function E(e,t,n,i,r,a){a!==g&&(t.__attrCachedBy=m.NONE);var o=e.__textCotentBlock;o&&!e.__dirtyText||(o=e.__textCotentBlock=u.parseRichText(n,i)),A(e,t,o,i,r)}function A(e,t,n,i,r){var a=n.width,o=n.outerWidth,s=n.outerHeight,l=i.textPadding,c=L(w,e,i,r),h=c.baseX,d=c.baseY,p=c.textAlign,f=c.textVerticalAlign;k(t,i,r,h,d);var m=u.adjustTextX(h,o,p),g=u.adjustTextY(d,s,f),v=m,y=g;l&&(v+=l[3],y+=l[0]);var _=v+a;I(i)&&P(e,t,i,m,g,o,s);for(var x=0;x<n.lines.length;x++){var b,S=n.lines[x],M=S.tokens,C=M.length,T=S.lineHeight,E=S.width,A=0,O=v,R=_,N=C-1;while(A<C&&(b=M[A],!b.textAlign||"left"===b.textAlign))D(e,t,b,i,T,y,O,"left"),E-=b.width,O+=b.width,A++;while(N>=0&&(b=M[N],"right"===b.textAlign))D(e,t,b,i,T,y,R,"right"),E-=b.width,R-=b.width,N--;O+=(a-(O-v)-(_-R)-E)/2;while(A<=N)b=M[A],D(e,t,b,i,T,y,O+b.width/2,"center"),O+=b.width,A++;y+=T}}function k(e,t,n,i,r){if(n&&t.textRotation){var a=t.textOrigin;"center"===a?(i=n.width/2+n.x,r=n.height/2+n.y):a&&(i=a[0]+n.x,r=a[1]+n.y),e.translate(i,r),e.rotate(-t.textRotation),e.translate(-i,-r)}}function D(e,t,n,i,o,s,l,c){var u=i.rich[n.styleName]||{};u.text=n.text;var h=n.textVerticalAlign,d=s+o/2;"top"===h?d=s+n.height/2:"bottom"===h&&(d=s+o-n.height/2),!n.isLineHolder&&I(u)&&P(e,t,u,"right"===c?l-n.width:"center"===c?l-n.width/2:l,d-n.height/2,n.width,n.height);var p=n.textPadding;p&&(l=z(l,c,p),d-=n.height/2-p[2]-n.textHeight/2),R(t,"shadowBlur",a(u.textShadowBlur,i.textShadowBlur,0)),R(t,"shadowColor",u.textShadowColor||i.textShadowColor||"transparent"),R(t,"shadowOffsetX",a(u.textShadowOffsetX,i.textShadowOffsetX,0)),R(t,"shadowOffsetY",a(u.textShadowOffsetY,i.textShadowOffsetY,0)),R(t,"textAlign",c),R(t,"textBaseline","middle"),R(t,"font",n.font||v);var f=N(u.textStroke||i.textStroke,g),m=F(u.textFill||i.textFill),g=r(u.textStrokeWidth,i.textStrokeWidth);f&&(R(t,"lineWidth",g),R(t,"strokeStyle",f),t.strokeText(n.text,l,d)),m&&(R(t,"fillStyle",m),t.fillText(n.text,l,d))}function I(e){return!!(e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor)}function P(e,t,n,i,r,a,o){var s=n.textBackgroundColor,u=n.textBorderWidth,p=n.textBorderColor,f=l(s);if(R(t,"shadowBlur",n.textBoxShadowBlur||0),R(t,"shadowColor",n.textBoxShadowColor||"transparent"),R(t,"shadowOffsetX",n.textBoxShadowOffsetX||0),R(t,"shadowOffsetY",n.textBoxShadowOffsetY||0),f||u&&p){t.beginPath();var m=n.textBorderRadius;m?h.buildPath(t,{x:i,y:r,width:a,height:o,r:m}):t.rect(i,r,a,o),t.closePath()}if(f)if(R(t,"fillStyle",s),null!=n.fillOpacity){var g=t.globalAlpha;t.globalAlpha=n.fillOpacity*n.opacity,t.fill(),t.globalAlpha=g}else t.fill();else if(c(s)){var v=s.image;v=d.createOrUpdateImage(v,null,e,O,s),v&&d.isImageReady(v)&&t.drawImage(v,i,r,a,o)}if(u&&p)if(R(t,"lineWidth",u),R(t,"strokeStyle",p),null!=n.strokeOpacity){g=t.globalAlpha;t.globalAlpha=n.strokeOpacity*n.opacity,t.stroke(),t.globalAlpha=g}else t.stroke()}function O(e,t){t.image=e}function L(e,t,n,i){var r=n.x||0,a=n.y||0,o=n.textAlign,s=n.textVerticalAlign;if(i){var l=n.textPosition;if(l instanceof Array)r=i.x+B(l[0],i.width),a=i.y+B(l[1],i.height);else{var c=t&&t.calculateTextPosition?t.calculateTextPosition(b,n,i):u.calculateTextPosition(b,n,i);r=c.x,a=c.y,o=o||c.textAlign,s=s||c.textVerticalAlign}var h=n.textOffset;h&&(r+=h[0],a+=h[1])}return e=e||{},e.baseX=r,e.baseY=a,e.textAlign=o,e.textVerticalAlign=s,e}function R(e,t,n){return e[t]=p(e,t,n),e[t]}function N(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function F(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function B(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function z(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function V(e,t){return null!=e&&(e||t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor||t.textPadding)}t.normalizeTextStyle=S,t.renderText=C,t.getBoxPosition=L,t.getStroke=N,t.getFill=F,t.parsePercent=B,t.needDrawText=V},81382:function(e,t,n){var i=n(93682),r=n(17913),a=n(94522),o=a.WILL_BE_RESTORED,s=new r,l=function(){};l.prototype={constructor:l,drawRectText:function(e,t){var n=this.style;t=n.textRect||t,this.__dirty&&i.normalizeTextStyle(n,!0);var r=n.text;if(null!=r&&(r+=""),i.needDrawText(r,n)){e.save();var a=this.transform;n.transformText?this.setTransform(e):a&&(s.copy(t),s.applyTransform(a),t=s),i.renderText(this,e,r,n,t,o),e.restore()}}};var c=l;e.exports=c},49555:function(e,t,n){var i=n(85632),r=i.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,l=Math.cos(a),c=Math.sin(a);e.moveTo(l*r+n,c*r+i),e.arc(n,i,r,a,o,!s)}});e.exports=r},22085:function(e,t,n){var i=n(85632),r=n(89457),a=n(96578),o=a.quadraticSubdivide,s=a.cubicSubdivide,l=a.quadraticAt,c=a.cubicAt,u=a.quadraticDerivativeAt,h=a.cubicDerivativeAt,d=[];function p(e,t,n){var i=e.cpx2,r=e.cpy2;return null===i||null===r?[(n?h:c)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?h:c)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?u:l)(e.x1,e.cpx1,e.x2,t),(n?u:l)(e.y1,e.cpy1,e.y2,t)]}var f=i.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.x1,i=t.y1,r=t.x2,a=t.y2,l=t.cpx1,c=t.cpy1,u=t.cpx2,h=t.cpy2,p=t.percent;0!==p&&(e.moveTo(n,i),null==u||null==h?(p<1&&(o(n,l,r,p,d),l=d[1],r=d[2],o(i,c,a,p,d),c=d[1],a=d[2]),e.quadraticCurveTo(l,c,r,a)):(p<1&&(s(n,l,u,r,p,d),l=d[1],u=d[2],r=d[3],s(i,c,h,a,p,d),c=d[1],h=d[2],a=d[3]),e.bezierCurveTo(l,c,u,h,r,a)))},pointAt:function(e){return p(this.shape,e,!1)},tangentAt:function(e){var t=p(this.shape,e,!0);return r.normalize(t,t)}});e.exports=f},52205:function(e,t,n){var i=n(85632),r=i.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(e,t,n){n&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI,!0)}});e.exports=r},69272:function(e,t,n){var i=n(85632),r=i.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(e,t){var n=.5522848,i=t.cx,r=t.cy,a=t.rx,o=t.ry,s=a*n,l=o*n;e.moveTo(i-a,r),e.bezierCurveTo(i-a,r-l,i-s,r-o,i,r-o),e.bezierCurveTo(i+s,r-o,i+a,r-l,i+a,r),e.bezierCurveTo(i+a,r+l,i+s,r+o,i,r+o),e.bezierCurveTo(i-s,r+o,i-a,r+l,i-a,r),e.closePath()}});e.exports=r},71865:function(e,t,n){var i=n(85632),r=n(34073),a=r.subPixelOptimizeLine,o={},s=i.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n,i,r,s;this.subPixelOptimize?(a(o,t,this.style),n=o.x1,i=o.y1,r=o.x2,s=o.y2):(n=t.x1,i=t.y1,r=t.x2,s=t.y2);var l=t.percent;0!==l&&(e.moveTo(n,i),l<1&&(r=n*(1-l)+r*l,s=i*(1-l)+s*l),e.lineTo(r,s))},pointAt:function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]}});e.exports=s},37462:function(e,t,n){var i=n(85632),r=n(44722),a=i.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(e,t){r.buildPath(e,t,!0)}});e.exports=a},83651:function(e,t,n){var i=n(85632),r=n(44722),a=i.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(e,t){r.buildPath(e,t,!1)}});e.exports=a},13969:function(e,t,n){var i=n(85632),r=n(57048),a=n(34073),o=a.subPixelOptimizeRect,s={},l=i.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(e,t){var n,i,a,l;this.subPixelOptimize?(o(s,t,this.style),n=s.x,i=s.y,a=s.width,l=s.height,s.r=t.r,t=s):(n=t.x,i=t.y,a=t.width,l=t.height),t.r?r.buildPath(e,t):e.rect(n,i,a,l),e.closePath()}});e.exports=l},11893:function(e,t,n){var i=n(85632),r=i.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)}});e.exports=r},19154:function(e,t,n){var i=n(85632),r=n(62218),a=i.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:r(i.prototype.brush),buildPath:function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=t.startAngle,s=t.endAngle,l=t.clockwise,c=Math.cos(o),u=Math.sin(o);e.moveTo(c*r+n,u*r+i),e.lineTo(c*a+n,u*a+i),e.arc(n,i,a,o,s,!l),e.lineTo(Math.cos(s)*r+n,Math.sin(s)*r+i),0!==r&&e.arc(n,i,r,s,o,l),e.closePath()}});e.exports=a},90747:function(e,t,n){n(70252);var i=n(47824),r=n(5001),a=n(16949),o=a.isString,s=a.isFunction,l=a.isObject,c=a.isArrayLike,u=a.indexOf,h=function(){this.animators=[]};function d(e,t,n,i,r,a,l,c){o(i)?(a=r,r=i,i=0):s(r)?(a=r,r="linear",i=0):s(i)?(a=i,i=0):s(n)?(a=n,n=500):n||(n=500),e.stopAnimation(),p(e,"",e,t,n,i,c);var u=e.animators.slice(),h=u.length;function d(){h--,h||a&&a()}h||a&&a();for(var f=0;f<u.length;f++)u[f].done(d).start(r,l)}function p(e,t,n,i,r,a,o){var s={},u=0;for(var h in i)i.hasOwnProperty(h)&&(null!=n[h]?l(i[h])&&!c(i[h])?p(e,t?t+"."+h:h,n[h],i[h],r,a,o):(o?(s[h]=n[h],f(e,t,h,i[h])):s[h]=i[h],u++):null==i[h]||o||f(e,t,h,i[h]));u>0&&e.animate(t,!1).when(null==r?500:r,s).delay(a||0)}function f(e,t,n,i){if(t){var r={};r[t]={},r[t][n]=i,e.attr(r)}else e.attr(n,i)}h.prototype={constructor:h,animate:function(e,t){var n,a=!1,o=this,s=this.__zr;if(e){var l=e.split("."),c=o;a="shape"===l[0];for(var h=0,d=l.length;h<d;h++)c&&(c=c[l[h]]);c&&(n=c)}else n=o;if(n){var p=o.animators,f=new i(n,t);return f.during((function(e){o.dirty(a)})).done((function(){p.splice(u(p,f),1)})),p.push(f),s&&s.animation.addAnimator(f),f}r('Property "'+e+'" is not existed in element '+o.id)},stopAnimation:function(e){for(var t=this.animators,n=t.length,i=0;i<n;i++)t[i].stop(e);return t.length=0,this},animateTo:function(e,t,n,i,r,a){d(this,e,t,n,i,r,a)},animateFrom:function(e,t,n,i,r,a){d(this,e,t,n,i,r,a,!0)}};var m=h;e.exports=m},34267:function(e){function t(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function n(e,t){return{target:e,topTarget:t&&t.topTarget}}t.prototype={constructor:t,_dragStart:function(e){var t=e.target;while(t&&!t.draggable)t=t.parent;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.dispatchToElement(n(t,e),"dragstart",e.event))},_drag:function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,r=e.offsetY,a=i-this._x,o=r-this._y;this._x=i,this._y=r,t.drift(a,o,e),this.dispatchToElement(n(t,e),"drag",e.event);var s=this.findHover(i,r,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.dispatchToElement(n(l,e),"dragleave",e.event),s&&s!==l&&this.dispatchToElement(n(s,e),"dragenter",e.event))}},_dragEnd:function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.dispatchToElement(n(t,e),"dragend",e.event),this._dropTarget&&this.dispatchToElement(n(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null}};var i=t;e.exports=i},80443:function(e,t,n){n(70252);var i=Array.prototype.slice,r=function(e){this._$handlers={},this._$eventProcessor=e};function a(e,t){var n=e._$eventProcessor;return null!=t&&n&&n.normalizeQuery&&(t=n.normalizeQuery(t)),t}function o(e,t,n,i,r,o){var s=e._$handlers;if("function"===typeof n&&(r=i,i=n,n=null),!i||!t)return e;n=a(e,n),s[t]||(s[t]=[]);for(var l=0;l<s[t].length;l++)if(s[t][l].h===i)return e;var c={h:i,one:o,query:n,ctx:r||e,callAtLast:i.zrEventfulCallAtLast},u=s[t].length-1,h=s[t][u];return h&&h.callAtLast?s[t].splice(u,0,c):s[t].push(c),e}r.prototype={constructor:r,one:function(e,t,n,i){return o(this,e,t,n,i,!0)},on:function(e,t,n,i){return o(this,e,t,n,i,!1)},isSilent:function(e){var t=this._$handlers;return!t[e]||!t[e].length},off:function(e,t){var n=this._$handlers;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],r=0,a=n[e].length;r<a;r++)n[e][r].h!==t&&i.push(n[e][r]);n[e]=i}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},trigger:function(e){var t=this._$handlers[e],n=this._$eventProcessor;if(t){var r=arguments,a=r.length;a>3&&(r=i.call(r,1));for(var o=t.length,s=0;s<o;){var l=t[s];if(n&&n.filter&&null!=l.query&&!n.filter(e,l.query))s++;else{switch(a){case 1:l.h.call(l.ctx);break;case 2:l.h.call(l.ctx,r[1]);break;case 3:l.h.call(l.ctx,r[1],r[2]);break;default:l.h.apply(l.ctx,r);break}l.one?(t.splice(s,1),o--):s++}}}return n&&n.afterTrigger&&n.afterTrigger(e),this},triggerWithContext:function(e){var t=this._$handlers[e],n=this._$eventProcessor;if(t){var r=arguments,a=r.length;a>4&&(r=i.call(r,1,r.length-1));for(var o=r[r.length-1],s=t.length,l=0;l<s;){var c=t[l];if(n&&n.filter&&null!=c.query&&!n.filter(e,c.query))l++;else{switch(a){case 1:c.h.call(o);break;case 2:c.h.call(o,r[1]);break;case 3:c.h.call(o,r[1],r[2]);break;default:c.h.apply(o,r);break}c.one?(t.splice(l,1),s--):l++}}}return n&&n.afterTrigger&&n.afterTrigger(e),this}};var s=r;e.exports=s},82548:function(e,t,n){var i=n(16317),r=n(89457),a=i.identity,o=5e-5;function s(e){return e>o||e<-o}var l=function(e){e=e||{},e.position||(this.position=[0,0]),null==e.rotation&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},c=l.prototype;c.transform=null,c.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var u=[];c.updateTransform=function(){var e=this.parent,t=e&&e.transform,n=this.needLocalTransform(),r=this.transform;if(n||t){r=r||i.create(),n?this.getLocalTransform(r):a(r),t&&(n?i.mul(r,e.transform,r):i.copy(r,e.transform)),this.transform=r;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(u);var s=u[0]<0?-1:1,l=u[1]<0?-1:1,c=((u[0]-s)*o+s)/u[0]||0,h=((u[1]-l)*o+l)/u[1]||0;r[0]*=c,r[1]*=c,r[2]*=h,r[3]*=h}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,r)}else r&&a(r)},c.getLocalTransform=function(e){return l.getLocalTransform(this,e)},c.setTransform=function(e){var t=this.transform,n=e.dpr||1;t?e.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):e.setTransform(n,0,0,n,0,0)},c.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var h=[],d=i.create();c.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=this.position,r=this.scale;s(t-1)&&(t=Math.sqrt(t)),s(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(t=-t),e[3]<0&&(n=-n),i[0]=e[4],i[1]=e[5],r[0]=t,r[1]=n,this.rotation=Math.atan2(-e[1]/n,e[0]/t)}},c.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(i.mul(h,e.invTransform,t),t=h);var n=this.origin;n&&(n[0]||n[1])&&(d[4]=n[0],d[5]=n[1],i.mul(h,t,d),h[4]-=n[0],h[5]-=n[1],t=h),this.setLocalTransform(t)}},c.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},c.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},c.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&r.applyTransform(n,n,i),n},l.getLocalTransform=function(e,t){t=t||[],a(t);var n=e.origin,r=e.scale||[1,1],o=e.rotation||0,s=e.position||[0,0];return n&&(t[4]-=n[0],t[5]-=n[1]),i.scale(t,t,r),o&&i.rotate(t,t,o),n&&(t[4]+=n[0],t[5]+=n[1]),t[4]+=s[0],t[5]+=s[1],t};var p=l;e.exports=p},7025:function(e,t,n){n(70252);var i=n(75389),r=i.createElement,a=n(16949),o=n(5001),s=n(85632),l=n(69406),c=n(70939),u=n(93622),h=n(42394),d=n(96030),p=n(74194),f=n(54497),m=f.path,g=f.image,v=f.text;function y(e){return parseInt(e,10)}function _(e){return e instanceof s?m:e instanceof l?g:e instanceof c?v:m}function x(e,t){return t&&e&&t.parentNode!==e}function b(e,t,n){if(x(e,t)&&n){var i=n.nextSibling;i?e.insertBefore(t,i):e.appendChild(t)}}function w(e,t){if(x(e,t)){var n=e.firstChild;n?e.insertBefore(t,n):e.appendChild(t)}}function S(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function M(e){return e.__textSvgEl}function C(e){return e.__svgEl}var T=function(e,t,n,i){this.root=e,this.storage=t,this._opts=n=a.extend({},n||{});var o=r("svg");o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("version","1.1"),o.setAttribute("baseProfile","full"),o.style.cssText="user-select:none;position:absolute;left:0;top:0;";var s=r("g");o.appendChild(s);var l=r("g");o.appendChild(l),this.gradientManager=new h(i,l),this.clipPathManager=new d(i,l),this.shadowManager=new p(i,l);var c=document.createElement("div");c.style.cssText="overflow:hidden;position:relative",this._svgDom=o,this._svgRoot=l,this._backgroundRoot=s,this._viewport=c,e.appendChild(c),c.appendChild(o),this.resize(n.width,n.height),this._visibleList=[]};function E(e){return function(){o('In SVG mode painter not support method "'+e+'"')}}T.prototype={constructor:T,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},setBackgroundColor:function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=r("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0),t.style.fill=e,this._backgroundRoot.appendChild(t),this._backgroundNode=t},_paintList:function(e){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var t,n=this._svgRoot,i=this._visibleList,r=e.length,a=[];for(t=0;t<r;t++){var o=e[t],s=_(o),l=C(o)||M(o);o.invisible||(o.__dirty&&(s&&s.brush(o),this.clipPathManager.update(o),o.style&&(this.gradientManager.update(o.style.fill),this.gradientManager.update(o.style.stroke),this.shadowManager.update(l,o)),o.__dirty=!1),a.push(o))}var c,h=u(i,a);for(t=0;t<h.length;t++){var d=h[t];if(d.removed)for(var p=0;p<d.count;p++){o=i[d.indices[p]],l=C(o);var f=M(o);S(n,l),S(n,f)}}for(t=0;t<h.length;t++){d=h[t];if(d.added)for(p=0;p<d.count;p++){o=a[d.indices[p]],l=C(o),f=M(o);c?b(n,l,c):w(n,l),l?b(n,f,l):c?b(n,f,c):w(n,f),b(n,f,l),c=f||l||c,this.gradientManager.addWithoutUpdate(l||f,o),this.shadowManager.addWithoutUpdate(l||f,o),this.clipPathManager.markUsed(o)}else if(!d.removed)for(p=0;p<d.count;p++){o=a[d.indices[p]],l=C(o),f=M(o),l=C(o),f=M(o);this.gradientManager.markUsed(o),this.gradientManager.addWithoutUpdate(l||f,o),this.shadowManager.markUsed(o),this.shadowManager.addWithoutUpdate(l||f,o),this.clipPathManager.markUsed(o),f&&b(n,f,l),c=l||f||c}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=a},_getDefs:function(e){var t=this._svgDom,n=t.getElementsByTagName("defs");if(0===n.length){if(e){n=t.insertBefore(r("defs"),t.firstChild);return n.contains||(n.contains=function(e){var t=n.children;if(!t)return!1;for(var i=t.length-1;i>=0;--i)if(t[i]===e)return!0;return!1}),n}return null}return n[0]},resize:function(e,t){var n=this._viewport;n.style.display="none";var i=this._opts;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var r=n.style;r.width=e+"px",r.height=t+"px";var a=this._svgDom;a.setAttribute("width",e),a.setAttribute("height",t)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",t))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,n=["width","height"][e],i=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[i]||y(s[n])||y(o.style[n]))-(y(s[r])||0)-(y(s[a])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var e=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,">\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+e}},a.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(e){T.prototype[e]=E(e)}));var A=T;e.exports=A},75389:function(e,t){var n="http://www.w3.org/2000/svg";function i(e){return document.createElementNS(n,e)}t.createElement=i},54497:function(e,t,n){n(70252);var i=n(75389),r=i.createElement,a=n(95552),o=n(17913),s=n(16317),l=n(53164),c=n(93682),u=n(70939),h=a.CMD,d=Array.prototype.join,p="none",f=Math.round,m=Math.sin,g=Math.cos,v=Math.PI,y=2*Math.PI,_=180/v,x=1e-4;function b(e){return f(1e4*e)/1e4}function w(e){return e<x&&e>-x}function S(e,t){var n=t?e.textFill:e.fill;return null!=n&&n!==p}function M(e,t){var n=t?e.textStroke:e.stroke;return null!=n&&n!==p}function C(e,t){t&&T(e,"transform","matrix("+d.call(t,",")+")")}function T(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function E(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function A(e,t,n,i){if(S(t,n)){var r=n?t.textFill:t.fill;r="transparent"===r?p:r,T(e,"fill",r),T(e,"fill-opacity",null!=t.fillOpacity?t.fillOpacity*t.opacity:t.opacity)}else T(e,"fill",p);if(M(t,n)){var a=n?t.textStroke:t.stroke;a="transparent"===a?p:a,T(e,"stroke",a);var o=n?t.textStrokeWidth:t.lineWidth,s=!n&&t.strokeNoScale?i.getLineScale():1;T(e,"stroke-width",o/s),T(e,"paint-order",n?"stroke":"fill"),T(e,"stroke-opacity",null!=t.strokeOpacity?t.strokeOpacity:t.opacity);var l=t.lineDash;l?(T(e,"stroke-dasharray",t.lineDash.join(",")),T(e,"stroke-dashoffset",f(t.lineDashOffset||0))):T(e,"stroke-dasharray",""),t.lineCap&&T(e,"stroke-linecap",t.lineCap),t.lineJoin&&T(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&T(e,"stroke-miterlimit",t.miterLimit)}else T(e,"stroke",p)}function k(e){for(var t=[],n=e.data,i=e.len(),r=0;r<i;){var a=n[r++],o="",s=0;switch(a){case h.M:o="M",s=2;break;case h.L:o="L",s=2;break;case h.Q:o="Q",s=4;break;case h.C:o="C",s=6;break;case h.A:var l=n[r++],c=n[r++],u=n[r++],d=n[r++],p=n[r++],x=n[r++],S=n[r++],M=n[r++],C=Math.abs(x),T=w(C-y)||(M?x>=y:-x>=y),E=x>0?x%y:x%y+y,A=!1;A=!!T||!w(C)&&E>=v===!!M;var k=b(l+u*g(p)),D=b(c+d*m(p));T&&(x=M?y-1e-4:1e-4-y,A=!0,9===r&&t.push("M",k,D));var I=b(l+u*g(p+x)),P=b(c+d*m(p+x));t.push("A",b(u),b(d),f(S*_),+A,+M,I,P);break;case h.Z:o="Z";break;case h.R:I=b(n[r++]),P=b(n[r++]);var O=b(n[r++]),L=b(n[r++]);t.push("M",I,P,"L",I+O,P,"L",I+O,P+L,"L",I,P+L,"L",I,P);break}o&&t.push(o);for(var R=0;R<s;R++)t.push(b(n[r++]))}return t.join(" ")}var D={brush:function(e){var t=e.style,n=e.__svgEl;n||(n=r("path"),e.__svgEl=n),e.path||e.createPathProxy();var i=e.path;if(e.__dirtyPath){i.beginPath(),i.subPixelOptimize=!1,e.buildPath(i,e.shape),e.__dirtyPath=!1;var a=k(i);a.indexOf("NaN")<0&&T(n,"d",a)}A(n,t,!1,e),C(n,e.transform),null!=t.text?F(e,e.getBoundingRect()):U(e)}},I={brush:function(e){var t=e.style,n=t.image;if(n instanceof HTMLImageElement){var i=n.src;n=i}if(n){var a=t.x||0,o=t.y||0,s=t.width,l=t.height,c=e.__svgEl;c||(c=r("image"),e.__svgEl=c),n!==e.__imageSrc&&(E(c,"href",n),e.__imageSrc=n),T(c,"width",s),T(c,"height",l),T(c,"x",a),T(c,"y",o),C(c,e.transform),null!=t.text?F(e,e.getBoundingRect()):U(e)}}},P={},O=new o,L={},R=[],N={left:"start",right:"end",center:"middle",middle:"middle"},F=function(e,t){var n=e.style,i=e.transform,a=e instanceof u||n.transformText;e.__dirty&&c.normalizeTextStyle(n,!0);var o=n.text;if(null!=o&&(o+=""),c.needDrawText(o,n)){null==o&&(o=""),!a&&i&&(O.copy(t),O.applyTransform(i),t=O);var s=e.__textSvgEl;s||(s=r("text"),e.__textSvgEl=s);var h=s.style,d=n.font||l.DEFAULT_FONT,p=s.__computedFont;d!==s.__styleFont&&(h.font=s.__styleFont=d,p=s.__computedFont=h.font);var f=n.textPadding,m=n.textLineHeight,g=e.__textCotentBlock;g&&!e.__dirtyText||(g=e.__textCotentBlock=l.parsePlainText(o,p,f,m,n.truncate));var v=g.outerHeight,y=g.lineHeight;c.getBoxPosition(L,e,n,t);var _=L.baseX,x=L.baseY,b=L.textAlign||"left",w=L.textVerticalAlign;B(s,a,i,n,t,_,x);var S=l.adjustTextY(x,v,w),M=_,C=S;f&&(M=z(_,b,f),C+=f[0]),C+=y/2,A(s,n,!0,e);var T=g.canCacheByTextString,E=e.__tspanList||(e.__tspanList=[]),k=E.length;if(T&&e.__canCacheByTextString&&e.__text===o){if(e.__dirtyText&&k)for(var D=0;D<k;++D)V(E[D],b,M,C+D*y)}else{e.__text=o,e.__canCacheByTextString=T;var I=g.lines,P=I.length;for(D=0;D<P;D++){var R=E[D],N=I[D];R?R.__zrText!==N&&(R.innerHTML="",R.appendChild(document.createTextNode(N))):(R=E[D]=r("tspan"),s.appendChild(R),R.appendChild(document.createTextNode(N))),V(R,b,M,C+D*y)}if(k>P){for(;D<k;D++)s.removeChild(E[D]);E.length=P}}}};function B(e,t,n,i,r,a,o){s.identity(R),t&&n&&s.copy(R,n);var l=i.textRotation;if(r&&l){var c=i.textOrigin;"center"===c?(a=r.width/2+r.x,o=r.height/2+r.y):c&&(a=c[0]+r.x,o=c[1]+r.y),R[4]-=a,R[5]-=o,s.rotate(R,R,l),R[4]+=a,R[5]+=o}C(e,R)}function z(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function V(e,t,n,i){T(e,"dominant-baseline","middle"),T(e,"text-anchor",N[t]),T(e,"x",n),T(e,"y",i)}function U(e){e&&e.__textSvgEl&&(e.__textSvgEl.parentNode&&e.__textSvgEl.parentNode.removeChild(e.__textSvgEl),e.__textSvgEl=null,e.__tspanList=[],e.__text=null)}P.drawRectText=F,P.brush=function(e){var t=e.style;null!=t.text?F(e,!1):U(e)},t.path=D,t.image=I,t.text=P},96030:function(e,t,n){var i=n(15092),r=n(16949),a=n(16317);function o(e,t){i.call(this,e,t,"clipPath","__clippath_in_use__")}r.inherits(o,i),o.prototype.update=function(e){var t=this.getSvgElement(e);t&&this.updateDom(t,e.__clipPaths,!1);var n=this.getTextSvgElement(e);n&&this.updateDom(n,e.__clipPaths,!0),this.markUsed(e)},o.prototype.updateDom=function(e,t,n){if(t&&t.length>0){var i,r,o=this.getDefs(!0),s=t[0],l=n?"_textDom":"_dom";s[l]?(r=s[l].getAttribute("id"),i=s[l],o.contains(i)||o.appendChild(i)):(r="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,i=this.createElement("clipPath"),i.setAttribute("id",r),o.appendChild(i),s[l]=i);var c=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!n){var u=Array.prototype.slice.call(s.transform);a.mul(s.transform,s.parent.invTransform,s.transform),c.brush(s),s.transform=u}else c.brush(s);var h=this.getSvgElement(s);i.innerHTML="",i.appendChild(h.cloneNode()),e.setAttribute("clip-path","url(#"+r+")"),t.length>1&&this.updateDom(i,t.slice(1),n)}else e&&e.setAttribute("clip-path","none")},o.prototype.markUsed=function(e){var t=this;e.__clipPaths&&r.each(e.__clipPaths,(function(e){e._dom&&i.prototype.markUsed.call(t,e._dom),e._textDom&&i.prototype.markUsed.call(t,e._textDom)}))};var s=o;e.exports=s},15092:function(e,t,n){var i=n(75389),r=i.createElement,a=n(16949),o=n(85632),s=n(69406),l=n(70939),c=n(54497),u=c.path,h=c.image,d=c.text,p="0",f="1";function m(e,t,n,i,r){this._zrId=e,this._svgRoot=t,this._tagNames="string"===typeof n?[n]:n,this._markLabel=i,this._domName=r||"_dom",this.nextId=0}m.prototype.createElement=r,m.prototype.getDefs=function(e){var t=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");return 0===n.length?e?(n=t.insertBefore(this.createElement("defs"),t.firstChild),n.contains||(n.contains=function(e){var t=n.children;if(!t)return!1;for(var i=t.length-1;i>=0;--i)if(t[i]===e)return!0;return!1}),n):null:n[0]},m.prototype.update=function(e,t){if(e){var n=this.getDefs(!1);if(e[this._domName]&&n.contains(e[this._domName]))"function"===typeof t&&t(e);else{var i=this.add(e);i&&(e[this._domName]=i)}}},m.prototype.addDom=function(e){var t=this.getDefs(!0);t.appendChild(e)},m.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},m.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return a.each(this._tagNames,(function(n){var i=e.getElementsByTagName(n);t=t.concat([].slice.call(i))})),t},m.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;a.each(e,(function(e){e[t._markLabel]=p}))},m.prototype.markUsed=function(e){e&&(e[this._markLabel]=f)},m.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this.getDoms(),n=this;a.each(t,(function(t){t[n._markLabel]!==f&&e.removeChild(t)}))}},m.prototype.getSvgProxy=function(e){return e instanceof o?u:e instanceof s?h:e instanceof l?d:u},m.prototype.getTextSvgElement=function(e){return e.__textSvgEl},m.prototype.getSvgElement=function(e){return e.__svgEl};var g=m;e.exports=g},42394:function(e,t,n){var i=n(15092),r=n(16949),a=n(5001),o=n(35098);function s(e,t){i.call(this,e,t,["linearGradient","radialGradient"],"__gradient_in_use__")}r.inherits(s,i),s.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;r.each(["fill","stroke"],(function(i){if(t.style[i]&&("linear"===t.style[i].type||"radial"===t.style[i].type)){var r,a=t.style[i],o=n.getDefs(!0);a._dom?(r=a._dom,o.contains(a._dom)||n.addDom(r)):r=n.add(a),n.markUsed(t);var s=r.getAttribute("id");e.setAttribute(i,"url(#"+s+")")}}))}},s.prototype.add=function(e){var t;if("linear"===e.type)t=this.createElement("linearGradient");else{if("radial"!==e.type)return a("Illegal gradient type."),null;t=this.createElement("radialGradient")}return e.id=e.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+e.id),this.updateDom(e,t),this.addDom(t),t},s.prototype.update=function(e){var t=this;i.prototype.update.call(this,e,(function(){var n=e.type,i=e._dom.tagName;"linear"===n&&"linearGradient"===i||"radial"===n&&"radialGradient"===i?t.updateDom(e,e._dom):(t.removeDom(e),t.add(e))}))},s.prototype.updateDom=function(e,t){if("linear"===e.type)t.setAttribute("x1",e.x),t.setAttribute("y1",e.y),t.setAttribute("x2",e.x2),t.setAttribute("y2",e.y2);else{if("radial"!==e.type)return void a("Illegal gradient type.");t.setAttribute("cx",e.x),t.setAttribute("cy",e.y),t.setAttribute("r",e.r)}e.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var n=e.colorStops,i=0,r=n.length;i<r;++i){var s=this.createElement("stop");s.setAttribute("offset",100*n[i].offset+"%");var l=n[i].color;if(l.indexOf("rgba")>-1){var c=o.parse(l)[3],u=o.toHex(l);s.setAttribute("stop-color","#"+u),s.setAttribute("stop-opacity",c)}else s.setAttribute("stop-color",n[i].color);t.appendChild(s)}e._dom=t},s.prototype.markUsed=function(e){if(e.style){var t=e.style.fill;t&&t._dom&&i.prototype.markUsed.call(this,t._dom),t=e.style.stroke,t&&t._dom&&i.prototype.markUsed.call(this,t._dom)}};var l=s;e.exports=l},74194:function(e,t,n){var i=n(15092),r=n(16949);function a(e,t){i.call(this,e,t,["filter"],"__filter_in_use__","_shadowDom")}function o(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY||e.textShadowBlur||e.textShadowOffsetX||e.textShadowOffsetY)}r.inherits(a,i),a.prototype.addWithoutUpdate=function(e,t){if(t&&o(t.style)){var n;if(t._shadowDom){n=t._shadowDom;var i=this.getDefs(!0);i.contains(t._shadowDom)||this.addDom(n)}else n=this.add(t);this.markUsed(t);var r=n.getAttribute("id");e.style.filter="url(#"+r+")"}},a.prototype.add=function(e){var t=this.createElement("filter");return e._shadowDomId=e._shadowDomId||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-shadow-"+e._shadowDomId),this.updateDom(e,t),this.addDom(t),t},a.prototype.update=function(e,t){var n=t.style;if(o(n)){var r=this;i.prototype.update.call(this,t,(function(){r.updateDom(t,t._shadowDom)}))}else this.remove(e,t)},a.prototype.remove=function(e,t){null!=t._shadowDomId&&(this.removeDom(e),e.style.filter="")},a.prototype.updateDom=function(e,t){var n=t.getElementsByTagName("feDropShadow");n=0===n.length?this.createElement("feDropShadow"):n[0];var i,r,a,o,s=e.style,l=e.scale&&e.scale[0]||1,c=e.scale&&e.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)i=s.shadowOffsetX||0,r=s.shadowOffsetY||0,a=s.shadowBlur,o=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(t,s);i=s.textShadowOffsetX||0,r=s.textShadowOffsetY||0,a=s.textShadowBlur,o=s.textShadowColor}n.setAttribute("dx",i/l),n.setAttribute("dy",r/c),n.setAttribute("flood-color",o);var u=a/2/l,h=a/2/c,d=u+" "+h;n.setAttribute("stdDeviation",d),t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width",Math.ceil(a/2*200)+"%"),t.setAttribute("height",Math.ceil(a/2*200)+"%"),t.appendChild(n),e._shadowDom=t},a.prototype.markUsed=function(e){e._shadowDom&&i.prototype.markUsed.call(this,e._shadowDom)};var s=a;e.exports=s},37474:function(e,t,n){n(54497);var i=n(8216),r=i.registerPainter,a=n(7025);r("svg",a)},35098:function(e,t,n){n(70252);var i=n(10059),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(e){return e=Math.round(e),e<0?0:e>255?255:e}function o(e){return e=Math.round(e),e<0?0:e>360?360:e}function s(e){return e<0?0:e>1?1:e}function l(e){return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function c(e){return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function u(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function h(e,t,n){return e+(t-e)*n}function d(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var f=new i(20),m=null;function g(e,t){m&&p(m,t),m=f.put(e,m||t.slice())}function v(e,t){if(e){t=t||[];var n=f.get(e);if(n)return p(t,n);e+="";var i=e.replace(/ /g,"").toLowerCase();if(i in r)return p(t,r[i]),g(e,t),t;if("#"!==i.charAt(0)){var a=i.indexOf("("),o=i.indexOf(")");if(-1!==a&&o+1===i.length){var s=i.substr(0,a),u=i.substr(a+1,o-(a+1)).split(","),h=1;switch(s){case"rgba":if(4!==u.length)return void d(t,0,0,0,1);h=c(u.pop());case"rgb":return 3!==u.length?void d(t,0,0,0,1):(d(t,l(u[0]),l(u[1]),l(u[2]),h),g(e,t),t);case"hsla":return 4!==u.length?void d(t,0,0,0,1):(u[3]=c(u[3]),y(u,t),g(e,t),t);case"hsl":return 3!==u.length?void d(t,0,0,0,1):(y(u,t),g(e,t),t);default:return}}d(t,0,0,0,1)}else{if(4===i.length){var m=parseInt(i.substr(1),16);return m>=0&&m<=4095?(d(t,(3840&m)>>4|(3840&m)>>8,240&m|(240&m)>>4,15&m|(15&m)<<4,1),g(e,t),t):void d(t,0,0,0,1)}if(7===i.length){m=parseInt(i.substr(1),16);return m>=0&&m<=16777215?(d(t,(16711680&m)>>16,(65280&m)>>8,255&m,1),g(e,t),t):void d(t,0,0,0,1)}}}}function y(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=c(e[1]),r=c(e[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return t=t||[],d(t,a(255*u(s,o,n+1/3)),a(255*u(s,o,n)),a(255*u(s,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function _(e){if(e){var t,n,i=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,c=(s+o)/2;if(0===l)t=0,n=0;else{n=c<.5?l/(s+o):l/(2-s-o);var u=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;i===s?t=d-h:r===s?t=1/3+u-d:a===s&&(t=2/3+h-u),t<0&&(t+=1),t>1&&(t-=1)}var p=[360*t,n,c];return null!=e[3]&&p.push(e[3]),p}}function x(e,t){var n=v(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:e[i]<0&&(n[i]=0);return A(n,4===n.length?"rgba":"rgb")}}function b(e){var t=v(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function w(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),l=t[r],c=t[o],u=i-r;return n[0]=a(h(l[0],c[0],u)),n[1]=a(h(l[1],c[1],u)),n[2]=a(h(l[2],c[2],u)),n[3]=s(h(l[3],c[3],u)),n}}var S=w;function M(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),l=v(t[r]),c=v(t[o]),u=i-r,d=A([a(h(l[0],c[0],u)),a(h(l[1],c[1],u)),a(h(l[2],c[2],u)),s(h(l[3],c[3],u))],"rgba");return n?{color:d,leftIndex:r,rightIndex:o,value:i}:d}}var C=M;function T(e,t,n,i){if(e=v(e),e)return e=_(e),null!=t&&(e[0]=o(t)),null!=n&&(e[1]=c(n)),null!=i&&(e[2]=c(i)),A(y(e),"rgba")}function E(e,t){if(e=v(e),e&&null!=t)return e[3]=s(t),A(e,"rgba")}function A(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}t.parse=v,t.lift=x,t.toHex=b,t.fastLerp=w,t.fastMapToColor=S,t.lerp=M,t.mapToColor=C,t.modifyHSL=T,t.modifyAlpha=E,t.stringify=A},59826:function(e,t,n){n(70252);var i=n(58511),r=n(69406),a=n(70939),o=n(52205),s=n(13969),l=n(69272),c=n(71865),u=n(85632),h=n(37462),d=n(83651),p=n(90377),f=n(97745),m=n(16317),g=n(57131),v=g.createFromString,y=n(16949),_=y.isString,x=y.extend,b=y.defaults,w=y.trim,S=y.each,M=/[\s,]+/;function C(e){if(_(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}9===e.nodeType&&(e=e.firstChild);while("svg"!==e.nodeName.toLowerCase()||1!==e.nodeType)e=e.nextSibling;return e}function T(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}T.prototype.parse=function(e,t){t=t||{};var n=C(e);if(!n)throw new Error("Illegal svg");var r=new i;this._root=r;var a=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(o)&&(o=null),isNaN(l)&&(l=null),O(n,r,null,!0);var c,u,h=n.firstChild;while(h)this._parseNode(h,r),h=h.nextSibling;if(a){var d=w(a).split(M);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&null!=o&&null!=l&&(u=V(c,o,l),!t.ignoreViewBox)){var p=r;r=new i,r.add(p),p.scale=u.scale.slice(),p.position=u.position.slice()}return t.ignoreRootClip||null==o||null==l||r.setClipPath(new s({shape:{x:0,y:0,width:o,height:l}})),{root:r,width:o,height:l,viewBoxRect:c,viewBoxTransform:u}},T.prototype._parseNode=function(e,t){var n,i=e.nodeName.toLowerCase();if("defs"===i?this._isDefine=!0:"text"===i&&(this._isText=!0),this._isDefine){var r=A[i];if(r){var a=r.call(this,e),o=e.getAttribute("id");o&&(this._defs[o]=a)}}else{r=E[i];r&&(n=r.call(this,e,t),t.add(n))}var s=e.firstChild;while(s)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===i?this._isDefine=!1:"text"===i&&(this._isText=!1)},T.prototype._parseText=function(e,t){if(1===e.nodeType){var n=e.getAttribute("dx")||0,i=e.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new a({style:{text:e.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});D(t,r),O(e,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 s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r};var E={g:function(e,t){var n=new i;return D(t,n),O(e,n,this._defs),n},rect:function(e,t){var n=new s;return D(t,n),O(e,n,this._defs),n.setShape({x:parseFloat(e.getAttribute("x")||0),y:parseFloat(e.getAttribute("y")||0),width:parseFloat(e.getAttribute("width")||0),height:parseFloat(e.getAttribute("height")||0)}),n},circle:function(e,t){var n=new o;return D(t,n),O(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),r:parseFloat(e.getAttribute("r")||0)}),n},line:function(e,t){var n=new c;return D(t,n),O(e,n,this._defs),n.setShape({x1:parseFloat(e.getAttribute("x1")||0),y1:parseFloat(e.getAttribute("y1")||0),x2:parseFloat(e.getAttribute("x2")||0),y2:parseFloat(e.getAttribute("y2")||0)}),n},ellipse:function(e,t){var n=new l;return D(t,n),O(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),rx:parseFloat(e.getAttribute("rx")||0),ry:parseFloat(e.getAttribute("ry")||0)}),n},polygon:function(e,t){var n=e.getAttribute("points");n&&(n=I(n));var i=new h({shape:{points:n||[]}});return D(t,i),O(e,i,this._defs),i},polyline:function(e,t){var n=new u;D(t,n),O(e,n,this._defs);var i=e.getAttribute("points");i&&(i=I(i));var r=new d({shape:{points:i||[]}});return r},image:function(e,t){var n=new r;return D(t,n),O(e,n,this._defs),n.setStyle({image:e.getAttribute("xlink:href"),x:e.getAttribute("x"),y:e.getAttribute("y"),width:e.getAttribute("width"),height:e.getAttribute("height")}),n},text:function(e,t){var n=e.getAttribute("x")||0,r=e.getAttribute("y")||0,a=e.getAttribute("dx")||0,o=e.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(r)+parseFloat(o);var s=new i;return D(t,s),O(e,s,this._defs),s},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var a=e.getAttribute("dx")||0,o=e.getAttribute("dy")||0,s=new i;return D(t,s),O(e,s,this._defs),this._textX+=a,this._textY+=o,s},path:function(e,t){var n=e.getAttribute("d")||"",i=v(n);return D(t,i),O(e,i,this._defs),i}},A={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||0,10),n=parseInt(e.getAttribute("y1")||0,10),i=parseInt(e.getAttribute("x2")||10,10),r=parseInt(e.getAttribute("y2")||0,10),a=new p(t,n,i,r);return k(e,a),a},radialgradient:function(e){}};function k(e,t){var n=e.firstChild;while(n){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";t.addColorStop(i,r)}n=n.nextSibling}}function D(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),b(t.__inheritedStyle,e.__inheritedStyle))}function I(e){for(var t=w(e).split(M),n=[],i=0;i<t.length;i+=2){var r=parseFloat(t[i]),a=parseFloat(t[i+1]);n.push([r,a])}return n}var P={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function O(e,t,n,i){var r=t.__inheritedStyle||{},a="text"===t.type;if(1===e.nodeType&&(F(e,t),x(r,z(e)),!i))for(var o in P)if(P.hasOwnProperty(o)){var s=e.getAttribute(o);null!=s&&(r[P[o]]=s)}var l=a?"textFill":"fill",c=a?"textStroke":"stroke";t.style=t.style||new f;var u=t.style;null!=r.fill&&u.set(l,R(r.fill,n)),null!=r.stroke&&u.set(c,R(r.stroke,n)),S(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){var t="lineWidth"===e&&a?"textStrokeWidth":e;null!=r[e]&&u.set(t,parseFloat(r[e]))})),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"),S(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(e){null!=r[e]&&u.set(e,r[e])})),r.lineDash&&(t.style.lineDash=w(r.lineDash).split(M)),u[c]&&"none"!==u[c]&&(t[c]=!0),t.__inheritedStyle=r}var L=/url\(\s*#(.*?)\)/;function R(e,t){var n=t&&e&&e.match(L);if(n){var i=w(n[1]),r=t[i];return r}return e}var N=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function F(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=null,r=[];n.replace(N,(function(e,t,n){r.push(t,n)}));for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1];switch(i=i||m.create(),s){case"translate":o=w(o).split(M),m.translate(i,i,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=w(o).split(M),m.scale(i,i,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=w(o).split(M),m.rotate(i,i,parseFloat(o[0]));break;case"skew":o=w(o).split(M),console.warn("Skew transform is not supported yet");break;case"matrix":o=w(o).split(M);i[0]=parseFloat(o[0]),i[1]=parseFloat(o[1]),i[2]=parseFloat(o[2]),i[3]=parseFloat(o[3]),i[4]=parseFloat(o[4]),i[5]=parseFloat(o[5]);break}}t.setLocalTransform(i)}}var B=/([^\s:;]+)\s*:\s*([^:;]+)/g;function z(e){var t=e.getAttribute("style"),n={};if(!t)return n;var i,r={};B.lastIndex=0;while(null!=(i=B.exec(t)))r[i[1]]=i[2];for(var a in P)P.hasOwnProperty(a)&&null!=r[a]&&(n[P[a]]=r[a]);return n}function V(e,t,n){var i=t/e.width,r=n/e.height,a=Math.min(i,r),o=[a,a],s=[-(e.x+e.width/2)*a+t/2,-(e.y+e.height/2)*a+n/2];return{scale:o,position:s}}function U(e,t){var n=new T;return n.parse(e,t)}t.parseXML=C,t.makeViewBoxTransform=V,t.parseSVG=U},57131:function(e,t,n){n(70252);var i=n(85632),r=n(95552),a=n(43229),o=Math.sqrt,s=Math.sin,l=Math.cos,c=Math.PI,u=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},h=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(u(e)*u(t))},d=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(h(e,t))};function p(e,t,n,i,r,a,u,p,f,m,g){var v=f*(c/180),y=l(v)*(e-n)/2+s(v)*(t-i)/2,_=-1*s(v)*(e-n)/2+l(v)*(t-i)/2,x=y*y/(u*u)+_*_/(p*p);x>1&&(u*=o(x),p*=o(x));var b=(r===a?-1:1)*o((u*u*(p*p)-u*u*(_*_)-p*p*(y*y))/(u*u*(_*_)+p*p*(y*y)))||0,w=b*u*_/p,S=b*-p*y/u,M=(e+n)/2+l(v)*w-s(v)*S,C=(t+i)/2+s(v)*w+l(v)*S,T=d([1,0],[(y-w)/u,(_-S)/p]),E=[(y-w)/u,(_-S)/p],A=[(-1*y-w)/u,(-1*_-S)/p],k=d(E,A);h(E,A)<=-1&&(k=c),h(E,A)>=1&&(k=0),0===a&&k>0&&(k-=2*c),1===a&&k<0&&(k+=2*c),g.addData(m,M,C,u,p,T,k,v,a)}var f=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,m=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function g(e){if(!e)return new r;for(var t,n=0,i=0,a=n,o=i,s=new r,l=r.CMD,c=e.match(f),u=0;u<c.length;u++){for(var h,d=c[u],g=d.charAt(0),v=d.match(m)||[],y=v.length,_=0;_<y;_++)v[_]=parseFloat(v[_]);var x=0;while(x<y){var b,w,S,M,C,T,E,A=n,k=i;switch(g){case"l":n+=v[x++],i+=v[x++],h=l.L,s.addData(h,n,i);break;case"L":n=v[x++],i=v[x++],h=l.L,s.addData(h,n,i);break;case"m":n+=v[x++],i+=v[x++],h=l.M,s.addData(h,n,i),a=n,o=i,g="l";break;case"M":n=v[x++],i=v[x++],h=l.M,s.addData(h,n,i),a=n,o=i,g="L";break;case"h":n+=v[x++],h=l.L,s.addData(h,n,i);break;case"H":n=v[x++],h=l.L,s.addData(h,n,i);break;case"v":i+=v[x++],h=l.L,s.addData(h,n,i);break;case"V":i=v[x++],h=l.L,s.addData(h,n,i);break;case"C":h=l.C,s.addData(h,v[x++],v[x++],v[x++],v[x++],v[x++],v[x++]),n=v[x-2],i=v[x-1];break;case"c":h=l.C,s.addData(h,v[x++]+n,v[x++]+i,v[x++]+n,v[x++]+i,v[x++]+n,v[x++]+i),n+=v[x-2],i+=v[x-1];break;case"S":b=n,w=i;var D=s.len(),I=s.data;t===l.C&&(b+=n-I[D-4],w+=i-I[D-3]),h=l.C,A=v[x++],k=v[x++],n=v[x++],i=v[x++],s.addData(h,b,w,A,k,n,i);break;case"s":b=n,w=i;D=s.len(),I=s.data;t===l.C&&(b+=n-I[D-4],w+=i-I[D-3]),h=l.C,A=n+v[x++],k=i+v[x++],n+=v[x++],i+=v[x++],s.addData(h,b,w,A,k,n,i);break;case"Q":A=v[x++],k=v[x++],n=v[x++],i=v[x++],h=l.Q,s.addData(h,A,k,n,i);break;case"q":A=v[x++]+n,k=v[x++]+i,n+=v[x++],i+=v[x++],h=l.Q,s.addData(h,A,k,n,i);break;case"T":b=n,w=i;D=s.len(),I=s.data;t===l.Q&&(b+=n-I[D-4],w+=i-I[D-3]),n=v[x++],i=v[x++],h=l.Q,s.addData(h,b,w,n,i);break;case"t":b=n,w=i;D=s.len(),I=s.data;t===l.Q&&(b+=n-I[D-4],w+=i-I[D-3]),n+=v[x++],i+=v[x++],h=l.Q,s.addData(h,b,w,n,i);break;case"A":S=v[x++],M=v[x++],C=v[x++],T=v[x++],E=v[x++],A=n,k=i,n=v[x++],i=v[x++],h=l.A,p(A,k,n,i,T,E,S,M,C,h,s);break;case"a":S=v[x++],M=v[x++],C=v[x++],T=v[x++],E=v[x++],A=n,k=i,n+=v[x++],i+=v[x++],h=l.A,p(A,k,n,i,T,E,S,M,C,h,s);break}}"z"!==g&&"Z"!==g||(h=l.Z,s.addData(h),n=a,i=o),t=h}return s.toStatic(),s}function v(e,t){var n=g(e);return t=t||{},t.buildPath=function(e){if(e.setData){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t)}else{t=e;n.rebuildPath(t)}},t.applyTransform=function(e){a(n,e),this.dirty(!0)},t}function y(e,t){return new i(v(e,t))}function _(e,t){return i.extend(v(e,t))}function x(e,t){for(var n=[],r=e.length,a=0;a<r;a++){var o=e[a];o.path||o.createPathProxy(),o.__dirtyPath&&o.buildPath(o.path,o.shape,!0),n.push(o.path)}var s=new i(t);return s.createPathProxy(),s.buildPath=function(e){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t)},s}t.createFromString=y,t.extendFromString=_,t.mergePath=x},43229:function(e,t,n){var i=n(95552),r=n(89457),a=r.applyTransform,o=i.CMD,s=[[],[],[]],l=Math.sqrt,c=Math.atan2;function u(e,t){var n,i,r,u,h,d=e.data,p=o.M,f=o.C,m=o.L,g=o.R,v=o.A,y=o.Q;for(r=0,u=0;r<d.length;){switch(n=d[r++],u=r,i=0,n){case p:i=1;break;case m:i=1;break;case f:i=3;break;case y:i=2;break;case v:var _=t[4],x=t[5],b=l(t[0]*t[0]+t[1]*t[1]),w=l(t[2]*t[2]+t[3]*t[3]),S=c(-t[1]/w,t[0]/b);d[r]*=b,d[r++]+=_,d[r]*=w,d[r++]+=x,d[r++]*=b,d[r++]*=w,d[r++]+=S,d[r++]+=S,r+=2,u=r;break;case g:M[0]=d[r++],M[1]=d[r++],a(M,M,t),d[u++]=M[0],d[u++]=M[1],M[0]+=d[r++],M[1]+=d[r++],a(M,M,t),d[u++]=M[0],d[u++]=M[1]}for(h=0;h<i;h++){var M=s[h];M[0]=d[r++],M[1]=d[r++],a(M,M,t),d[u++]=M[0],d[u++]=M[1]}}}e.exports=u},24332:function(e,t,n){var i=n(5001),r=n(37505),a=n(16949),o=a.each;function s(e){return parseInt(e,10)}function l(e,t){r.initVML(),this.root=e,this.storage=t;var n=document.createElement("div"),i=document.createElement("div");n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",i.style.cssText="position:absolute;left:0;top:0;",e.appendChild(n),this._vmlRoot=i,this._vmlViewport=n,this.resize();var a=t.delFromStorage,o=t.addToStorage;t.delFromStorage=function(e){a.call(t,e),e&&e.onRemove&&e.onRemove(i)},t.addToStorage=function(e){e.onAdd&&e.onAdd(i),o.call(t,e)},this._firstPaint=!0}function c(e){return function(){i('In IE8.0 VML mode painter not support method "'+e+'"')}}l.prototype={constructor:l,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0,!0);this._paintList(e)},_paintList:function(e){for(var t=this._vmlRoot,n=0;n<e.length;n++){var i=e[n];i.invisible||i.ignore?(i.__alreadyNotVisible||i.onRemove(t),i.__alreadyNotVisible=!0):(i.__alreadyNotVisible&&i.onAdd(t),i.__alreadyNotVisible=!1,i.__dirty&&(i.beforeBrush&&i.beforeBrush(),(i.brushVML||i.brush).call(i,t),i.afterBrush&&i.afterBrush())),i.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(e,t){e=null==e?this._getWidth():e,t=null==t?this._getHeight():t;if(this._width!==e||this._height!==t){this._width=e,this._height=t;var n=this._vmlViewport.style;n.width=e+"px",n.height=t+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var e=this.root,t=e.currentStyle;return(e.clientWidth||s(t.width))-s(t.paddingLeft)-s(t.paddingRight)|0},_getHeight:function(){var e=this.root,t=e.currentStyle;return(e.clientHeight||s(t.height))-s(t.paddingTop)-s(t.paddingBottom)|0}},o(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(e){l.prototype[e]=c(e)}));var u=l;e.exports=u},37505:function(e,t,n){var i,r=n(28299),a="urn:schemas-microsoft-com:vml",o="undefined"===typeof window?null:window,s=!1,l=o&&o.document;function c(e){return i(e)}if(l&&!r.canvasSupported)try{!l.namespaces.zrvml&&l.namespaces.add("zrvml",a),i=function(e){return l.createElement("<zrvml:"+e+' class="zrvml">')}}catch(h){i=function(e){return l.createElement("<"+e+' xmlns="'+a+'" class="zrvml">')}}function u(){if(!s&&l){s=!0;var e=l.styleSheets;e.length<31?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):e[0].addRule(".zrvml","behavior:url(#default#VML)")}}t.doc=l,t.createNode=c,t.initVML=u},16884:function(e,t,n){n(70252);var i=n(28299),r=n(89457),a=r.applyTransform,o=n(17913),s=n(35098),l=n(53164),c=n(93682),u=n(81382),h=n(11294),d=n(69406),p=n(70939),f=n(85632),m=n(95552),g=n(91730),v=n(37505),y=m.CMD,_=Math.round,x=Math.sqrt,b=Math.abs,w=Math.cos,S=Math.sin,M=Math.max;if(!i.canvasSupported){var C=",",T="progid:DXImageTransform.Microsoft",E=21600,A=E/2,k=1e5,D=1e3,I=function(e){e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",e.coordsize=E+","+E,e.coordorigin="0,0"},P=function(e){return String(e).replace(/&/g,"&").replace(/"/g,""")},O=function(e,t,n){return"rgb("+[e,t,n].join(",")+")"},L=function(e,t){t&&e&&t.parentNode!==e&&e.appendChild(t)},R=function(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)},N=function(e,t,n){return(parseFloat(e)||0)*k+(parseFloat(t)||0)*D+n},F=c.parsePercent,B=function(e,t,n){var i=s.parse(t);n=+n,isNaN(n)&&(n=1),i&&(e.color=O(i[0],i[1],i[2]),e.opacity=n*i[3])},z=function(e){var t=s.parse(e);return[O(t[0],t[1],t[2]),t[3]]},V=function(e,t,n){var i=t.fill;if(null!=i)if(i instanceof g){var r,o=0,s=[0,0],l=0,c=1,u=n.getBoundingRect(),h=u.width,d=u.height;if("linear"===i.type){r="gradient";var p=n.transform,f=[i.x*h,i.y*d],m=[i.x2*h,i.y2*d];p&&(a(f,f,p),a(m,m,p));var v=m[0]-f[0],y=m[1]-f[1];o=180*Math.atan2(v,y)/Math.PI,o<0&&(o+=360),o<1e-6&&(o=0)}else{r="gradientradial";f=[i.x*h,i.y*d],p=n.transform;var _=n.scale,x=h,b=d;s=[(f[0]-u.x)/x,(f[1]-u.y)/b],p&&a(f,f,p),x/=_[0]*E,b/=_[1]*E;var w=M(x,b);l=0/w,c=2*i.r/w-l}var S=i.colorStops.slice();S.sort((function(e,t){return e.offset-t.offset}));for(var C=S.length,T=[],A=[],k=0;k<C;k++){var D=S[k],I=z(D.color);A.push(D.offset*c+l+" "+I[0]),0!==k&&k!==C-1||T.push(I)}if(C>=2){var P=T[0][0],O=T[1][0],L=T[0][1]*t.opacity,R=T[1][1]*t.opacity;e.type=r,e.method="none",e.focus="100%",e.angle=o,e.color=P,e.color2=O,e.colors=A.join(","),e.opacity=R,e.opacity2=L}"radial"===r&&(e.focusposition=s.join(","))}else B(e,i,t.opacity)},U=function(e,t){t.lineDash&&(e.dashstyle=t.lineDash.join(" ")),null==t.stroke||t.stroke instanceof g||B(e,t.stroke,t.opacity)},H=function(e,t,n,i){var r="fill"===t,a=e.getElementsByTagName(t)[0];null!=n[t]&&"none"!==n[t]&&(r||!r&&n.lineWidth)?(e[r?"filled":"stroked"]="true",n[t]instanceof g&&R(e,a),a||(a=v.createNode(t)),r?V(a,n,i):U(a,n),L(e,a)):(e[r?"filled":"stroked"]="false",R(e,a))},$=[[],[],[]],j=function(e,t){var n,i,r,o,s,l,c=y.M,u=y.C,h=y.L,d=y.A,p=y.Q,f=[],m=e.data,g=e.len();for(o=0;o<g;){switch(r=m[o++],i="",n=0,r){case c:i=" m ",n=1,s=m[o++],l=m[o++],$[0][0]=s,$[0][1]=l;break;case h:i=" l ",n=1,s=m[o++],l=m[o++],$[0][0]=s,$[0][1]=l;break;case p:case u:i=" c ",n=3;var v,b,M=m[o++],T=m[o++],k=m[o++],D=m[o++];r===p?(v=k,b=D,k=(k+2*M)/3,D=(D+2*T)/3,M=(s+2*M)/3,T=(l+2*T)/3):(v=m[o++],b=m[o++]),$[0][0]=M,$[0][1]=T,$[1][0]=k,$[1][1]=D,$[2][0]=v,$[2][1]=b,s=v,l=b;break;case d:var I=0,P=0,O=1,L=1,R=0;t&&(I=t[4],P=t[5],O=x(t[0]*t[0]+t[1]*t[1]),L=x(t[2]*t[2]+t[3]*t[3]),R=Math.atan2(-t[1]/L,t[0]/O));var N=m[o++],F=m[o++],B=m[o++],z=m[o++],V=m[o++]+R,U=m[o++]+V+R;o++;var H=m[o++],j=N+w(V)*B,W=F+S(V)*z,G=(M=N+w(U)*B,T=F+S(U)*z,H?" wa ":" at ");Math.abs(j-M)<1e-4&&(Math.abs(U-V)>.01?H&&(j+=270/E):Math.abs(W-F)<1e-4?H&&j<N||!H&&j>N?T-=270/E:T+=270/E:H&&W<F||!H&&W>F?M+=270/E:M-=270/E),f.push(G,_(((N-B)*O+I)*E-A),C,_(((F-z)*L+P)*E-A),C,_(((N+B)*O+I)*E-A),C,_(((F+z)*L+P)*E-A),C,_((j*O+I)*E-A),C,_((W*L+P)*E-A),C,_((M*O+I)*E-A),C,_((T*L+P)*E-A)),s=M,l=T;break;case y.R:var q=$[0],X=$[1];q[0]=m[o++],q[1]=m[o++],X[0]=q[0]+m[o++],X[1]=q[1]+m[o++],t&&(a(q,q,t),a(X,X,t)),q[0]=_(q[0]*E-A),X[0]=_(X[0]*E-A),q[1]=_(q[1]*E-A),X[1]=_(X[1]*E-A),f.push(" m ",q[0],C,q[1]," l ",X[0],C,q[1]," l ",X[0],C,X[1]," l ",q[0],C,X[1]);break;case y.Z:f.push(" x ")}if(n>0){f.push(i);for(var Y=0;Y<n;Y++){var K=$[Y];t&&a(K,K,t),f.push(_(K[0]*E-A),C,_(K[1]*E-A),Y<n-1?C:"")}}}return f.join("")};f.prototype.brushVML=function(e){var t=this.style,n=this._vmlEl;n||(n=v.createNode("shape"),I(n),this._vmlEl=n),H(n,"fill",t,this),H(n,"stroke",t,this);var i=this.transform,r=null!=i,a=n.getElementsByTagName("stroke")[0];if(a){var o=t.lineWidth;if(r&&!t.strokeNoScale){var s=i[0]*i[3]-i[1]*i[2];o*=x(b(s))}a.weight=o+"px"}var l=this.path||(this.path=new m);this.__dirtyPath&&(l.beginPath(),l.subPixelOptimize=!1,this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),n.path=j(l,this.transform),n.style.zIndex=N(this.zlevel,this.z,this.z2),L(e,n),null!=t.text?this.drawRectText(e,this.getBoundingRect()):this.removeRectText(e)},f.prototype.onRemove=function(e){R(e,this._vmlEl),this.removeRectText(e)},f.prototype.onAdd=function(e){L(e,this._vmlEl),this.appendRectText(e)};var W=function(e){return"object"===typeof e&&e.tagName&&"IMG"===e.tagName.toUpperCase()};d.prototype.brushVML=function(e){var t,n,i=this.style,r=i.image;if(W(r)){var o=r.src;if(o===this._imageSrc)t=this._imageWidth,n=this._imageHeight;else{var s=r.runtimeStyle,l=s.width,c=s.height;s.width="auto",s.height="auto",t=r.width,n=r.height,s.width=l,s.height=c,this._imageSrc=o,this._imageWidth=t,this._imageHeight=n}r=o}else r===this._imageSrc&&(t=this._imageWidth,n=this._imageHeight);if(r){var u=i.x||0,h=i.y||0,d=i.width,p=i.height,f=i.sWidth,m=i.sHeight,g=i.sx||0,y=i.sy||0,b=f&&m,w=this._vmlEl;w||(w=v.doc.createElement("div"),I(w),this._vmlEl=w);var S,E=w.style,A=!1,k=1,D=1;if(this.transform&&(S=this.transform,k=x(S[0]*S[0]+S[1]*S[1]),D=x(S[2]*S[2]+S[3]*S[3]),A=S[1]||S[2]),A){var P=[u,h],O=[u+d,h],R=[u,h+p],F=[u+d,h+p];a(P,P,S),a(O,O,S),a(R,R,S),a(F,F,S);var B=M(P[0],O[0],R[0],F[0]),z=M(P[1],O[1],R[1],F[1]),V=[];V.push("M11=",S[0]/k,C,"M12=",S[2]/D,C,"M21=",S[1]/k,C,"M22=",S[3]/D,C,"Dx=",_(u*k+S[4]),C,"Dy=",_(h*D+S[5])),E.padding="0 "+_(B)+"px "+_(z)+"px 0",E.filter=T+".Matrix("+V.join("")+", SizingMethod=clip)"}else S&&(u=u*k+S[4],h=h*D+S[5]),E.filter="",E.left=_(u)+"px",E.top=_(h)+"px";var U=this._imageEl,H=this._cropEl;U||(U=v.doc.createElement("div"),this._imageEl=U);var $=U.style;if(b){if(t&&n)$.width=_(k*t*d/f)+"px",$.height=_(D*n*p/m)+"px";else{var j=new Image,G=this;j.onload=function(){j.onload=null,t=j.width,n=j.height,$.width=_(k*t*d/f)+"px",$.height=_(D*n*p/m)+"px",G._imageWidth=t,G._imageHeight=n,G._imageSrc=r},j.src=r}H||(H=v.doc.createElement("div"),H.style.overflow="hidden",this._cropEl=H);var q=H.style;q.width=_((d+g*d/f)*k),q.height=_((p+y*p/m)*D),q.filter=T+".Matrix(Dx="+-g*d/f*k+",Dy="+-y*p/m*D+")",H.parentNode||w.appendChild(H),U.parentNode!==H&&H.appendChild(U)}else $.width=_(k*d)+"px",$.height=_(D*p)+"px",w.appendChild(U),H&&H.parentNode&&(w.removeChild(H),this._cropEl=null);var X="",Y=i.opacity;Y<1&&(X+=".Alpha(opacity="+_(100*Y)+") "),X+=T+".AlphaImageLoader(src="+r+", SizingMethod=scale)",$.filter=X,w.style.zIndex=N(this.zlevel,this.z,this.z2),L(e,w),null!=i.text&&this.drawRectText(e,this.getBoundingRect())}},d.prototype.onRemove=function(e){R(e,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(e)},d.prototype.onAdd=function(e){L(e,this._vmlEl),this.appendRectText(e)};var G,q="normal",X={},Y=0,K=100,Z=document.createElement("div"),J=function(e){var t=X[e];if(!t){Y>K&&(Y=0,X={});var n,i=Z.style;try{i.font=e,n=i.fontFamily.split(",")[0]}catch(r){}t={style:i.fontStyle||q,variant:i.fontVariant||q,weight:i.fontWeight||q,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},X[e]=t,Y++}return t};l.$override("measureText",(function(e,t){var n=v.doc;G||(G=n.createElement("div"),G.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",v.doc.body.appendChild(G));try{G.style.font=t}catch(i){}return G.innerHTML="",G.appendChild(n.createTextNode(e)),{width:G.offsetWidth}}));for(var Q=new o,ee=function(e,t,n,i){var r=this.style;this.__dirty&&c.normalizeTextStyle(r,!0);var o=r.text;if(null!=o&&(o+=""),o){if(r.rich){var s=l.parseRichText(o,r);o=[];for(var u=0;u<s.lines.length;u++){for(var h=s.lines[u].tokens,d=[],p=0;p<h.length;p++)d.push(h[p].text);o.push(d.join(""))}o=o.join("\n")}var f,m,g=r.textAlign,y=r.textVerticalAlign,x=J(r.font),b=x.style+" "+x.variant+" "+x.weight+" "+x.size+'px "'+x.family+'"';n=n||l.getBoundingRect(o,b,g,y,r.textPadding,r.textLineHeight);var w=this.transform;if(w&&!i&&(Q.copy(t),Q.applyTransform(w),t=Q),i)f=t.x,m=t.y;else{var S=r.textPosition;if(S instanceof Array)f=t.x+F(S[0],t.width),m=t.y+F(S[1],t.height),g=g||"left";else{var M=this.calculateTextPosition?this.calculateTextPosition({},r,t):l.calculateTextPosition({},r,t);f=M.x,m=M.y,g=g||M.textAlign,y=y||M.textVerticalAlign}}f=l.adjustTextX(f,n.width,g),m=l.adjustTextY(m,n.height,y),m+=n.height/2;var T,E,A,k=v.createNode,D=this._textVmlEl;D?(A=D.firstChild,T=A.nextSibling,E=T.nextSibling):(D=k("line"),T=k("path"),E=k("textpath"),A=k("skew"),E.style["v-text-align"]="left",I(D),T.textpathok=!0,E.on=!0,D.from="0 0",D.to="1000 0.05",L(D,A),L(D,T),L(D,E),this._textVmlEl=D);var O=[f,m],R=D.style;w&&i?(a(O,O,w),A.on=!0,A.matrix=w[0].toFixed(3)+C+w[2].toFixed(3)+C+w[1].toFixed(3)+C+w[3].toFixed(3)+",0,0",A.offset=(_(O[0])||0)+","+(_(O[1])||0),A.origin="0 0",R.left="0px",R.top="0px"):(A.on=!1,R.left=_(f)+"px",R.top=_(m)+"px"),E.string=P(o);try{E.style.font=b}catch(B){}H(D,"fill",{fill:r.textFill,opacity:r.opacity},this),H(D,"stroke",{stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash||null},this),D.style.zIndex=N(this.zlevel,this.z,this.z2),L(e,D)}},te=function(e){R(e,this._textVmlEl),this._textVmlEl=null},ne=function(e){L(e,this._textVmlEl)},ie=[u,h,d,f,p],re=0;re<ie.length;re++){var ae=ie[re].prototype;ae.drawRectText=ee,ae.removeRectText=te,ae.appendRectText=ne}p.prototype.brushVML=function(e){var t=this.style;null!=t.text?this.drawRectText(e,{x:t.x||0,y:t.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(e)},p.prototype.onRemove=function(e){this.removeRectText(e)},p.prototype.onAdd=function(e){this.appendRectText(e)}}},68938:function(e,t,n){n(16884);var i=n(8216),r=i.registerPainter,a=n(24332);r("vml",a)},8216:function(e,t,n){var i=n(66962),r=n(28299),a=n(16949),o=n(21825),s=n(48933),l=n(754),c=n(88871),u=n(81673),h=!r.canvasSupported,d={canvas:l},p={},f="4.3.2";function m(e,t){var n=new x(i(),e,t);return p[n.id]=n,n}function g(e){if(e)e.dispose();else{for(var t in p)p.hasOwnProperty(t)&&p[t].dispose();p={}}return this}function v(e){return p[e]}function y(e,t){d[e]=t}function _(e){delete p[e]}var x=function(e,t,n){n=n||{},this.dom=t,this.id=e;var i=this,l=new s,p=n.renderer;if(h){if(!d.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");p="vml"}else p&&d[p]||(p="canvas");var f=new d[p](t,l,n,e);this.storage=l,this.painter=f;var m=r.node||r.worker?null:new u(f.getViewportRoot(),f.root);this.handler=new o(l,f,m,f.root),this.animation=new c({stage:{update:a.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var g=l.delFromStorage,v=l.addToStorage;l.delFromStorage=function(e){g.call(l,e),e&&e.removeSelfFromZr(i)},l.addToStorage=function(e){v.call(l,e),e.addSelfToZr(i)}};x.prototype={constructor:x,getId:function(){return this.id},add:function(e){this.storage.addRoot(e),this._needsRefresh=!0},remove:function(e){this.storage.delRoot(e),this._needsRefresh=!0},configLayer:function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this._needsRefresh=!0},setBackgroundColor:function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var e;this._needsRefresh&&(e=!0,this.refreshImmediately()),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),e&&this.trigger("rendered")},addHover:function(e,t){if(this.painter.addHover){var n=this.painter.addHover(e,t);return this.refreshHover(),n}},removeHover:function(e){this.painter.removeHover&&(this.painter.removeHover(e),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(e,t){return this.painter.pathToImage(e,t)},setCursorStyle:function(e){this.handler.setCursorStyle(e)},findHover:function(e,t){return this.handler.findHover(e,t)},on:function(e,t,n){this.handler.on(e,t,n)},off:function(e,t){this.handler.off(e,t)},trigger:function(e,t){this.handler.trigger(e,t)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,_(this.id)}},t.version=f,t.init=m,t.dispose=g,t.getInstance=v,t.registerPainter=y},38412:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,{Z:function(){return i}})},73073:function(e,t,n){"use strict";n.d(t,{$V:function(){return rp},CP7:function(){return Qu},D1R:function(){return fe},DvJ:function(){return ea},EJi:function(){return Xh},F5T:function(){return dr},FM8:function(){return Sn},Ilk:function(){return vr},KI_:function(){return Dt},Kj0:function(){return Zr},M8C:function(){return wn},Mig:function(){return Vd},N$j:function(){return mh},NMF:function(){return ft},OdW:function(){return _h},OoA:function(){return le},Ox3:function(){return zd},PMe:function(){return Pd},Pa4:function(){return Zn},QRU:function(){return Hd},QmN:function(){return a},RsA:function(){return r},SPe:function(){return Ah},Syv:function(){return pt},TUv:function(){return fh},TlE:function(){return wr},Tme:function(){return Ji},TyD:function(){return ce},UY4:function(){return Vh},UlW:function(){return bt},Wid:function(){return qh},Wl3:function(){return d},WwZ:function(){return xt},YBo:function(){return Yh},YLQ:function(){return ue},ZAu:function(){return Wu},Zp0:function(){return Ud},ZzF:function(){return ei},_12:function(){return Ca},_C8:function(){return nd},_fP:function(){return Kn},aH4:function(){return he},aLr:function(){return yi},aNw:function(){return xd},blk:function(){return zh},cPb:function(){return ua},cek:function(){return Fd},dUE:function(){return cd},dpR:function(){return Cd},ehD:function(){return f},ejS:function(){return Bh},hH6:function(){return Sd},iKG:function(){return fl},iLg:function(){return hd},iMs:function(){return tp},iUV:function(){return ep},kB5:function(){return rh},knz:function(){return Mt},m7l:function(){return fd},nls:function(){return kh},ntZ:function(){return u},pBf:function(){return Xt},qyh:function(){return pe},rpg:function(){return oe},u9r:function(){return Or},uWy:function(){return se},vBJ:function(){return _r},vpT:function(){return nh},wem:function(){return de},woe:function(){return Wh},x12:function(){return Rh},xEZ:function(){return Wn},xsS:function(){return th},yC1:function(){return pd},yGw:function(){return Ei},z$h:function(){return wt}});n(70252),n(66554),n(46293),n(6149);
- /**
- * @license
- * Copyright 2010-2023 Three.js Authors
- * SPDX-License-Identifier: MIT
- */
- const i="154",r={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},a={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},o=0,s=1,l=2,c=1,u=2,h=3,d=0,p=1,f=2,m=0,g=1,v=2,y=3,_=4,x=5,b=100,w=101,S=102,M=103,C=104,T=200,E=201,A=202,k=203,D=204,I=205,P=206,O=207,L=208,R=209,N=210,F=0,B=1,z=2,V=3,U=4,H=5,$=6,j=7,W=0,G=1,q=2,X=0,Y=1,K=2,Z=3,J=4,Q=5,ee=300,te=301,ne=302,ie=303,re=304,ae=306,oe=1e3,se=1001,le=1002,ce=1003,ue=1004,he=1005,de=1006,pe=1007,fe=1008,me=1009,ge=1010,ve=1011,ye=1012,_e=1013,xe=1014,be=1015,we=1016,Se=1017,Me=1018,Ce=1020,Te=1021,Ee=1023,Ae=1024,ke=1025,De=1026,Ie=1027,Pe=1028,Oe=1029,Le=1030,Re=1031,Ne=1033,Fe=33776,Be=33777,ze=33778,Ve=33779,Ue=35840,He=35841,$e=35842,je=35843,We=36196,Ge=37492,qe=37496,Xe=37808,Ye=37809,Ke=37810,Ze=37811,Je=37812,Qe=37813,et=37814,tt=37815,nt=37816,it=37817,rt=37818,at=37819,ot=37820,st=37821,lt=36492,ct=36283,ut=36284,ht=36285,dt=36286,pt=2300,ft=2301,mt=2302,gt=2400,vt=2401,yt=2402,_t=2500,xt=0,bt=1,wt=2,St=3e3,Mt=3001,Ct=3200,Tt=3201,Et=0,At=1,kt="",Dt="srgb",It="srgb-linear",Pt="display-p3",Ot=7680,Lt=519,Rt=512,Nt=513,Ft=514,Bt=515,zt=516,Vt=517,Ut=518,Ht=519,$t=35044,jt="300 es",Wt=1035,Gt=2e3,qt=2001;class Xt{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){if(void 0===this._listeners)return;const n=this._listeners,i=n[e];if(void 0!==i){const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}dispatchEvent(e){if(void 0===this._listeners)return;const t=this._listeners,n=t[e.type];if(void 0!==n){e.target=this;const t=n.slice(0);for(let n=0,i=t.length;n<i;n++)t[n].call(this,e);e.target=null}}}const Yt=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let Kt=1234567;const Zt=Math.PI/180,Jt=180/Math.PI;function Qt(){const e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0,r=Yt[255&e]+Yt[e>>8&255]+Yt[e>>16&255]+Yt[e>>24&255]+"-"+Yt[255&t]+Yt[t>>8&255]+"-"+Yt[t>>16&15|64]+Yt[t>>24&255]+"-"+Yt[63&n|128]+Yt[n>>8&255]+"-"+Yt[n>>16&255]+Yt[n>>24&255]+Yt[255&i]+Yt[i>>8&255]+Yt[i>>16&255]+Yt[i>>24&255];return r.toLowerCase()}function en(e,t,n){return Math.max(t,Math.min(n,e))}function tn(e,t){return(e%t+t)%t}function nn(e,t,n,i,r){return i+(e-t)*(r-i)/(n-t)}function rn(e,t,n){return e!==t?(n-e)/(t-e):0}function an(e,t,n){return(1-n)*e+n*t}function on(e,t,n,i){return an(e,t,1-Math.exp(-n*i))}function sn(e,t=1){return t-Math.abs(tn(e,2*t)-t)}function ln(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*(3-2*e))}function cn(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*e*(e*(6*e-15)+10))}function un(e,t){return e+Math.floor(Math.random()*(t-e+1))}function hn(e,t){return e+Math.random()*(t-e)}function dn(e){return e*(.5-Math.random())}function pn(e){void 0!==e&&(Kt=e);let t=Kt+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296}function fn(e){return e*Zt}function mn(e){return e*Jt}function gn(e){return 0===(e&e-1)&&0!==e}function vn(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function yn(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}function _n(e,t,n,i,r){const a=Math.cos,o=Math.sin,s=a(n/2),l=o(n/2),c=a((t+i)/2),u=o((t+i)/2),h=a((t-i)/2),d=o((t-i)/2),p=a((i-t)/2),f=o((i-t)/2);switch(r){case"XYX":e.set(s*u,l*h,l*d,s*c);break;case"YZY":e.set(l*d,s*u,l*h,s*c);break;case"ZXZ":e.set(l*h,l*d,s*u,s*c);break;case"XZX":e.set(s*u,l*f,l*p,s*c);break;case"YXY":e.set(l*p,s*u,l*f,s*c);break;case"ZYZ":e.set(l*f,l*p,s*u,s*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}function xn(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function bn(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(4294967295*e);case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int32Array:return Math.round(2147483647*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}const wn={DEG2RAD:Zt,RAD2DEG:Jt,generateUUID:Qt,clamp:en,euclideanModulo:tn,mapLinear:nn,inverseLerp:rn,lerp:an,damp:on,pingpong:sn,smoothstep:ln,smootherstep:cn,randInt:un,randFloat:hn,randFloatSpread:dn,seededRandom:pn,degToRad:fn,radToDeg:mn,isPowerOfTwo:gn,ceilPowerOfTwo:vn,floorPowerOfTwo:yn,setQuaternionFromProperEuler:_n,normalize:bn,denormalize:xn};class Sn{constructor(e=0,t=0){Sn.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6],this.y=i[1]*t+i[4]*n+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){const e=Math.atan2(-this.y,-this.x)+Math.PI;return e}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(en(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),i=Math.sin(t),r=this.x-e.x,a=this.y-e.y;return this.x=r*n-a*i+e.x,this.y=r*i+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Mn{constructor(e,t,n,i,r,a,o,s,l){Mn.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==e&&this.set(e,t,n,i,r,a,o,s,l)}set(e,t,n,i,r,a,o,s,l){const c=this.elements;return c[0]=e,c[1]=i,c[2]=o,c[3]=t,c[4]=r,c[5]=s,c[6]=n,c[7]=a,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,r=this.elements,a=n[0],o=n[3],s=n[6],l=n[1],c=n[4],u=n[7],h=n[2],d=n[5],p=n[8],f=i[0],m=i[3],g=i[6],v=i[1],y=i[4],_=i[7],x=i[2],b=i[5],w=i[8];return r[0]=a*f+o*v+s*x,r[3]=a*m+o*y+s*b,r[6]=a*g+o*_+s*w,r[1]=l*f+c*v+u*x,r[4]=l*m+c*y+u*b,r[7]=l*g+c*_+u*w,r[2]=h*f+d*v+p*x,r[5]=h*m+d*y+p*b,r[8]=h*g+d*_+p*w,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],a=e[4],o=e[5],s=e[6],l=e[7],c=e[8];return t*a*c-t*o*l-n*r*c+n*o*s+i*r*l-i*a*s}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=c*a-o*l,h=o*s-c*r,d=l*r-a*s,p=t*u+n*h+i*d;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const f=1/p;return e[0]=u*f,e[1]=(i*l-c*n)*f,e[2]=(o*n-i*a)*f,e[3]=h*f,e[4]=(c*t-i*s)*f,e[5]=(i*r-o*t)*f,e[6]=d*f,e[7]=(n*s-l*t)*f,e[8]=(a*t-n*r)*f,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,i,r,a,o){const s=Math.cos(r),l=Math.sin(r);return this.set(n*s,n*l,-n*(s*a+l*o)+a+e,-i*l,i*s,-i*(-l*a+s*o)+o+t,0,0,1),this}scale(e,t){return this.premultiply(Cn.makeScale(e,t)),this}rotate(e){return this.premultiply(Cn.makeRotation(-e)),this}translate(e,t){return this.premultiply(Cn.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let i=0;i<9;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return(new this.constructor).fromArray(this.elements)}}const Cn=new Mn;function Tn(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;function En(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}const An={};function kn(e){e in An||(An[e]=!0,console.warn(e))}function Dn(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function In(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}const Pn=(new Mn).fromArray([.8224621,.0331941,.0170827,.177538,.9668058,.0723974,-1e-7,1e-7,.9105199]),On=(new Mn).fromArray([1.2249401,-.0420569,-.0196376,-.2249404,1.0420571,-.0786361,1e-7,0,1.0982735]);function Ln(e){return e.convertSRGBToLinear().applyMatrix3(On)}function Rn(e){return e.applyMatrix3(Pn).convertLinearToSRGB()}const Nn={[It]:e=>e,[Dt]:e=>e.convertSRGBToLinear(),[Pt]:Ln},Fn={[It]:e=>e,[Dt]:e=>e.convertLinearToSRGB(),[Pt]:Rn},Bn={enabled:!0,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(e){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!e},get workingColorSpace(){return It},set workingColorSpace(e){console.warn("THREE.ColorManagement: .workingColorSpace is readonly.")},convert:function(e,t,n){if(!1===this.enabled||t===n||!t||!n)return e;const i=Nn[t],r=Fn[n];if(void 0===i||void 0===r)throw new Error(`Unsupported color space conversion, "${t}" to "${n}".`);return r(i(e))},fromWorkingColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this.workingColorSpace)}};let zn;class Vn{static getDataURL(e){if(/^data:/i.test(e.src))return e.src;if("undefined"===typeof HTMLCanvasElement)return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===zn&&(zn=En("canvas")),zn.width=e.width,zn.height=e.height;const n=zn.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=zn}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if("undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap){const t=En("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const i=n.getImageData(0,0,e.width,e.height),r=i.data;for(let e=0;e<r.length;e++)r[e]=255*Dn(r[e]/255);return n.putImageData(i,0,0),t}if(e.data){const t=e.data.slice(0);for(let e=0;e<t.length;e++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[e]=Math.floor(255*Dn(t[e]/255)):t[e]=Dn(t[e]);return{data:t,width:e.width,height:e.height}}return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}let Un=0;class Hn{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:Un++}),this.uuid=Qt(),this.data=e,this.version=0}set needsUpdate(e){!0===e&&this.version++}toJSON(e){const t=void 0===e||"string"===typeof e;if(!t&&void 0!==e.images[this.uuid])return e.images[this.uuid];const n={uuid:this.uuid,url:""},i=this.data;if(null!==i){let e;if(Array.isArray(i)){e=[];for(let t=0,n=i.length;t<n;t++)i[t].isDataTexture?e.push($n(i[t].image)):e.push($n(i[t]))}else e=$n(i);n.url=e}return t||(e.images[this.uuid]=n),n}}function $n(e){return"undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap?Vn.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let jn=0;class Wn extends Xt{constructor(e=Wn.DEFAULT_IMAGE,t=Wn.DEFAULT_MAPPING,n=se,i=se,r=de,a=fe,o=Ee,s=me,l=Wn.DEFAULT_ANISOTROPY,c=kt){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:jn++}),this.uuid=Qt(),this.name="",this.source=new Hn(e),this.mipmaps=[],this.mapping=t,this.channel=0,this.wrapS=n,this.wrapT=i,this.magFilter=r,this.minFilter=a,this.anisotropy=l,this.format=o,this.internalFormat=null,this.type=s,this.offset=new Sn(0,0),this.repeat=new Sn(1,1),this.center=new Sn(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Mn,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,"string"===typeof c?this.colorSpace=c:(kn("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=c===Mt?Dt:kt),this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.needsPMREMUpdate=!1}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return(new this.constructor).copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const t=void 0===e||"string"===typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];const n={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==ee)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case oe:e.x=e.x-Math.floor(e.x);break;case se:e.x=e.x<0?0:1;break;case le:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case oe:e.y=e.y-Math.floor(e.y);break;case se:e.y=e.y<0?0:1;break;case le:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return kn("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===Dt?Mt:St}set encoding(e){kn("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===Mt?Dt:kt}}Wn.DEFAULT_IMAGE=null,Wn.DEFAULT_MAPPING=ee,Wn.DEFAULT_ANISOTROPY=1;class Gn{constructor(e=0,t=0,n=0,i=1){Gn.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,r=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*i+a[12]*r,this.y=a[1]*t+a[5]*n+a[9]*i+a[13]*r,this.z=a[2]*t+a[6]*n+a[10]*i+a[14]*r,this.w=a[3]*t+a[7]*n+a[11]*i+a[15]*r,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,i,r;const a=.01,o=.1,s=e.elements,l=s[0],c=s[4],u=s[8],h=s[1],d=s[5],p=s[9],f=s[2],m=s[6],g=s[10];if(Math.abs(c-h)<a&&Math.abs(u-f)<a&&Math.abs(p-m)<a){if(Math.abs(c+h)<o&&Math.abs(u+f)<o&&Math.abs(p+m)<o&&Math.abs(l+d+g-3)<o)return this.set(1,0,0,0),this;t=Math.PI;const e=(l+1)/2,s=(d+1)/2,v=(g+1)/2,y=(c+h)/4,_=(u+f)/4,x=(p+m)/4;return e>s&&e>v?e<a?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(e),i=y/n,r=_/n):s>v?s<a?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(s),n=y/i,r=x/i):v<a?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(v),n=_/r,i=x/r),this.set(n,i,r,t),this}let v=Math.sqrt((m-p)*(m-p)+(u-f)*(u-f)+(h-c)*(h-c));return Math.abs(v)<.001&&(v=1),this.x=(m-p)/v,this.y=(u-f)/v,this.z=(h-c)/v,this.w=Math.acos((l+d+g-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class qn extends Xt{constructor(e=1,t=1,n={}){super(),this.isWebGLRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new Gn(0,0,e,t),this.scissorTest=!1,this.viewport=new Gn(0,0,e,t);const i={width:e,height:t,depth:1};void 0!==n.encoding&&(kn("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),n.colorSpace=n.encoding===Mt?Dt:kt),this.texture=new Wn(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=void 0!==n.generateMipmaps&&n.generateMipmaps,this.texture.internalFormat=void 0!==n.internalFormat?n.internalFormat:null,this.texture.minFilter=void 0!==n.minFilter?n.minFilter:de,this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0!==n.stencilBuffer&&n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null,this.samples=void 0!==n.samples?n.samples:0}setSize(e,t,n=1){this.width===e&&this.height===t&&this.depth===n||(this.width=e,this.height=t,this.depth=n,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=n,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return(new this.constructor).copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new Hn(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,null!==e.depthTexture&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class Xn extends Wn{constructor(e=null,t=1,n=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:n,depth:i},this.magFilter=ce,this.minFilter=ce,this.wrapR=se,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Yn extends Wn{constructor(e=null,t=1,n=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:n,depth:i},this.magFilter=ce,this.minFilter=ce,this.wrapR=se,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Kn{constructor(e=0,t=0,n=0,i=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=i}static slerpFlat(e,t,n,i,r,a,o){let s=n[i+0],l=n[i+1],c=n[i+2],u=n[i+3];const h=r[a+0],d=r[a+1],p=r[a+2],f=r[a+3];if(0===o)return e[t+0]=s,e[t+1]=l,e[t+2]=c,void(e[t+3]=u);if(1===o)return e[t+0]=h,e[t+1]=d,e[t+2]=p,void(e[t+3]=f);if(u!==f||s!==h||l!==d||c!==p){let e=1-o;const t=s*h+l*d+c*p+u*f,n=t>=0?1:-1,i=1-t*t;if(i>Number.EPSILON){const r=Math.sqrt(i),a=Math.atan2(r,t*n);e=Math.sin(e*a)/r,o=Math.sin(o*a)/r}const r=o*n;if(s=s*e+h*r,l=l*e+d*r,c=c*e+p*r,u=u*e+f*r,e===1-o){const e=1/Math.sqrt(s*s+l*l+c*c+u*u);s*=e,l*=e,c*=e,u*=e}}e[t]=s,e[t+1]=l,e[t+2]=c,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,i,r,a){const o=n[i],s=n[i+1],l=n[i+2],c=n[i+3],u=r[a],h=r[a+1],d=r[a+2],p=r[a+3];return e[t]=o*p+c*u+s*d-l*h,e[t+1]=s*p+c*h+l*u-o*d,e[t+2]=l*p+c*d+o*h-s*u,e[t+3]=c*p-o*u-s*h-l*d,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const n=e._x,i=e._y,r=e._z,a=e._order,o=Math.cos,s=Math.sin,l=o(n/2),c=o(i/2),u=o(r/2),h=s(n/2),d=s(i/2),p=s(r/2);switch(a){case"XYZ":this._x=h*c*u+l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u-h*d*p;break;case"YXZ":this._x=h*c*u+l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u+h*d*p;break;case"ZXY":this._x=h*c*u-l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u-h*d*p;break;case"ZYX":this._x=h*c*u-l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u+h*d*p;break;case"YZX":this._x=h*c*u+l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u-h*d*p;break;case"XZY":this._x=h*c*u-l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u+h*d*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return!1!==t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,i=Math.sin(n);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],i=t[4],r=t[8],a=t[1],o=t[5],s=t[9],l=t[2],c=t[6],u=t[10],h=n+o+u;if(h>0){const e=.5/Math.sqrt(h+1);this._w=.25/e,this._x=(c-s)*e,this._y=(r-l)*e,this._z=(a-i)*e}else if(n>o&&n>u){const e=2*Math.sqrt(1+n-o-u);this._w=(c-s)/e,this._x=.25*e,this._y=(i+a)/e,this._z=(r+l)/e}else if(o>u){const e=2*Math.sqrt(1+o-n-u);this._w=(r-l)/e,this._x=(i+a)/e,this._y=.25*e,this._z=(s+c)/e}else{const e=2*Math.sqrt(1+u-n-o);this._w=(a-i)/e,this._x=(r+l)/e,this._y=(s+c)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<Number.EPSILON?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(en(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(0===n)return this;const i=Math.min(1,t/n);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,i=e._y,r=e._z,a=e._w,o=t._x,s=t._y,l=t._z,c=t._w;return this._x=n*c+a*o+i*l-r*s,this._y=i*c+a*s+r*o-n*l,this._z=r*c+a*l+n*s-i*o,this._w=a*c-n*o-i*s-r*l,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,i=this._y,r=this._z,a=this._w;let o=a*e._w+n*e._x+i*e._y+r*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=a,this._x=n,this._y=i,this._z=r,this;const s=1-o*o;if(s<=Number.EPSILON){const e=1-t;return this._w=e*a+t*this._w,this._x=e*n+t*this._x,this._y=e*i+t*this._y,this._z=e*r+t*this._z,this.normalize(),this._onChangeCallback(),this}const l=Math.sqrt(s),c=Math.atan2(l,o),u=Math.sin((1-t)*c)/l,h=Math.sin(t*c)/l;return this._w=a*u+this._w*h,this._x=n*u+this._x*h,this._y=i*u+this._y*h,this._z=r*u+this._z*h,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=Math.random(),t=Math.sqrt(1-e),n=Math.sqrt(e),i=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(t*Math.cos(i),n*Math.sin(r),n*Math.cos(r),t*Math.sin(i))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class Zn{constructor(e=0,t=0,n=0){Zn.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(Qn.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Qn.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6]*i,this.y=r[1]*t+r[4]*n+r[7]*i,this.z=r[2]*t+r[5]*n+r[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,r=e.elements,a=1/(r[3]*t+r[7]*n+r[11]*i+r[15]);return this.x=(r[0]*t+r[4]*n+r[8]*i+r[12])*a,this.y=(r[1]*t+r[5]*n+r[9]*i+r[13])*a,this.z=(r[2]*t+r[6]*n+r[10]*i+r[14])*a,this}applyQuaternion(e){const t=this.x,n=this.y,i=this.z,r=e.x,a=e.y,o=e.z,s=e.w,l=s*t+a*i-o*n,c=s*n+o*t-r*i,u=s*i+r*n-a*t,h=-r*t-a*n-o*i;return this.x=l*s+h*-r+c*-o-u*-a,this.y=c*s+h*-a+u*-r-l*-o,this.z=u*s+h*-o+l*-a-c*-r,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[4]*n+r[8]*i,this.y=r[1]*t+r[5]*n+r[9]*i,this.z=r[2]*t+r[6]*n+r[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,i=e.y,r=e.z,a=t.x,o=t.y,s=t.z;return this.x=i*s-r*o,this.y=r*a-n*s,this.z=n*o-i*a,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return Jn.copy(this).projectOnVector(e),this.sub(Jn)}reflect(e){return this.sub(Jn.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(en(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,i=this.z-e.z;return t*t+n*n+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const i=Math.sin(t)*e;return this.x=i*Math.sin(n),this.y=Math.cos(t)*e,this.z=i*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=2*(Math.random()-.5),t=Math.random()*Math.PI*2,n=Math.sqrt(1-e**2);return this.x=n*Math.cos(t),this.y=n*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Jn=new Zn,Qn=new Kn;class ei{constructor(e=new Zn(1/0,1/0,1/0),t=new Zn(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t+=3)this.expandByPoint(ni.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,n=e.count;t<n;t++)this.expandByPoint(ni.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const n=ni.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return(new this.constructor).copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){if(e.updateWorldMatrix(!1,!1),void 0!==e.boundingBox)null===e.boundingBox&&e.computeBoundingBox(),ii.copy(e.boundingBox),ii.applyMatrix4(e.matrixWorld),this.union(ii);else{const n=e.geometry;if(void 0!==n)if(t&&void 0!==n.attributes&&void 0!==n.attributes.position){const t=n.attributes.position;for(let n=0,i=t.count;n<i;n++)ni.fromBufferAttribute(t,n).applyMatrix4(e.matrixWorld),this.expandByPoint(ni)}else null===n.boundingBox&&n.computeBoundingBox(),ii.copy(n.boundingBox),ii.applyMatrix4(e.matrixWorld),this.union(ii)}const n=e.children;for(let i=0,r=n.length;i<r;i++)this.expandByObject(n[i],t);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){return this.clampPoint(e.center,ni),ni.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(ui),hi.subVectors(this.max,ui),ri.subVectors(e.a,ui),ai.subVectors(e.b,ui),oi.subVectors(e.c,ui),si.subVectors(ai,ri),li.subVectors(oi,ai),ci.subVectors(ri,oi);let t=[0,-si.z,si.y,0,-li.z,li.y,0,-ci.z,ci.y,si.z,0,-si.x,li.z,0,-li.x,ci.z,0,-ci.x,-si.y,si.x,0,-li.y,li.x,0,-ci.y,ci.x,0];return!!fi(t,ri,ai,oi,hi)&&(t=[1,0,0,0,1,0,0,0,1],!!fi(t,ri,ai,oi,hi)&&(di.crossVectors(si,li),t=[di.x,di.y,di.z],fi(t,ri,ai,oi,hi)))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,ni).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(ni).length()),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(ti[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),ti[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),ti[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),ti[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),ti[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),ti[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),ti[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),ti[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(ti)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const ti=[new Zn,new Zn,new Zn,new Zn,new Zn,new Zn,new Zn,new Zn],ni=new Zn,ii=new ei,ri=new Zn,ai=new Zn,oi=new Zn,si=new Zn,li=new Zn,ci=new Zn,ui=new Zn,hi=new Zn,di=new Zn,pi=new Zn;function fi(e,t,n,i,r){for(let a=0,o=e.length-3;a<=o;a+=3){pi.fromArray(e,a);const o=r.x*Math.abs(pi.x)+r.y*Math.abs(pi.y)+r.z*Math.abs(pi.z),s=t.dot(pi),l=n.dot(pi),c=i.dot(pi);if(Math.max(-Math.max(s,l,c),Math.min(s,l,c))>o)return!1}return!0}const mi=new ei,gi=new Zn,vi=new Zn;class yi{constructor(e=new Zn,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):mi.setFromPoints(e).getCenter(n);let i=0;for(let r=0,a=e.length;r<a;r++)i=Math.max(i,n.distanceToSquared(e[r]));return this.radius=Math.sqrt(i),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){const n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;gi.subVectors(e,this.center);const t=gi.lengthSq();if(t>this.radius*this.radius){const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.addScaledVector(gi,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(vi.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(gi.copy(e.center).add(vi)),this.expandByPoint(gi.copy(e.center).sub(vi))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const _i=new Zn,xi=new Zn,bi=new Zn,wi=new Zn,Si=new Zn,Mi=new Zn,Ci=new Zn;class Ti{constructor(e=new Zn,t=new Zn(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,_i)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=_i.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(_i.copy(this.origin).addScaledVector(this.direction,t),_i.distanceToSquared(e))}distanceSqToSegment(e,t,n,i){xi.copy(e).add(t).multiplyScalar(.5),bi.copy(t).sub(e).normalize(),wi.copy(this.origin).sub(xi);const r=.5*e.distanceTo(t),a=-this.direction.dot(bi),o=wi.dot(this.direction),s=-wi.dot(bi),l=wi.lengthSq(),c=Math.abs(1-a*a);let u,h,d,p;if(c>0)if(u=a*s-o,h=a*o-s,p=r*c,u>=0)if(h>=-p)if(h<=p){const e=1/c;u*=e,h*=e,d=u*(u+a*h+2*o)+h*(a*u+h+2*s)+l}else h=r,u=Math.max(0,-(a*h+o)),d=-u*u+h*(h+2*s)+l;else h=-r,u=Math.max(0,-(a*h+o)),d=-u*u+h*(h+2*s)+l;else h<=-p?(u=Math.max(0,-(-a*r+o)),h=u>0?-r:Math.min(Math.max(-r,-s),r),d=-u*u+h*(h+2*s)+l):h<=p?(u=0,h=Math.min(Math.max(-r,-s),r),d=h*(h+2*s)+l):(u=Math.max(0,-(a*r+o)),h=u>0?r:Math.min(Math.max(-r,-s),r),d=-u*u+h*(h+2*s)+l);else h=a>0?-r:r,u=Math.max(0,-(a*h+o)),d=-u*u+h*(h+2*s)+l;return n&&n.copy(this.origin).addScaledVector(this.direction,u),i&&i.copy(xi).addScaledVector(bi,h),d}intersectSphere(e,t){_i.subVectors(e.center,this.origin);const n=_i.dot(this.direction),i=_i.dot(_i)-n*n,r=e.radius*e.radius;if(i>r)return null;const a=Math.sqrt(r-i),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);if(0===t)return!0;const n=e.normal.dot(this.direction);return n*t<0}intersectBox(e,t){let n,i,r,a,o,s;const l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,h=this.origin;return l>=0?(n=(e.min.x-h.x)*l,i=(e.max.x-h.x)*l):(n=(e.max.x-h.x)*l,i=(e.min.x-h.x)*l),c>=0?(r=(e.min.y-h.y)*c,a=(e.max.y-h.y)*c):(r=(e.max.y-h.y)*c,a=(e.min.y-h.y)*c),n>a||r>i?null:((r>n||isNaN(n))&&(n=r),(a<i||isNaN(i))&&(i=a),u>=0?(o=(e.min.z-h.z)*u,s=(e.max.z-h.z)*u):(o=(e.max.z-h.z)*u,s=(e.min.z-h.z)*u),n>s||o>i?null:((o>n||n!==n)&&(n=o),(s<i||i!==i)&&(i=s),i<0?null:this.at(n>=0?n:i,t)))}intersectsBox(e){return null!==this.intersectBox(e,_i)}intersectTriangle(e,t,n,i,r){Si.subVectors(t,e),Mi.subVectors(n,e),Ci.crossVectors(Si,Mi);let a,o=this.direction.dot(Ci);if(o>0){if(i)return null;a=1}else{if(!(o<0))return null;a=-1,o=-o}wi.subVectors(this.origin,e);const s=a*this.direction.dot(Mi.crossVectors(wi,Mi));if(s<0)return null;const l=a*this.direction.dot(Si.cross(wi));if(l<0)return null;if(s+l>o)return null;const c=-a*wi.dot(Ci);return c<0?null:this.at(c/o,r)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class Ei{constructor(e,t,n,i,r,a,o,s,l,c,u,h,d,p,f,m){Ei.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==e&&this.set(e,t,n,i,r,a,o,s,l,c,u,h,d,p,f,m)}set(e,t,n,i,r,a,o,s,l,c,u,h,d,p,f,m){const g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=i,g[1]=r,g[5]=a,g[9]=o,g[13]=s,g[2]=l,g[6]=c,g[10]=u,g[14]=h,g[3]=d,g[7]=p,g[11]=f,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new Ei).fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,i=1/Ai.setFromMatrixColumn(e,0).length(),r=1/Ai.setFromMatrixColumn(e,1).length(),a=1/Ai.setFromMatrixColumn(e,2).length();return t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i,t[3]=0,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,i=e.y,r=e.z,a=Math.cos(n),o=Math.sin(n),s=Math.cos(i),l=Math.sin(i),c=Math.cos(r),u=Math.sin(r);if("XYZ"===e.order){const e=a*c,n=a*u,i=o*c,r=o*u;t[0]=s*c,t[4]=-s*u,t[8]=l,t[1]=n+i*l,t[5]=e-r*l,t[9]=-o*s,t[2]=r-e*l,t[6]=i+n*l,t[10]=a*s}else if("YXZ"===e.order){const e=s*c,n=s*u,i=l*c,r=l*u;t[0]=e+r*o,t[4]=i*o-n,t[8]=a*l,t[1]=a*u,t[5]=a*c,t[9]=-o,t[2]=n*o-i,t[6]=r+e*o,t[10]=a*s}else if("ZXY"===e.order){const e=s*c,n=s*u,i=l*c,r=l*u;t[0]=e-r*o,t[4]=-a*u,t[8]=i+n*o,t[1]=n+i*o,t[5]=a*c,t[9]=r-e*o,t[2]=-a*l,t[6]=o,t[10]=a*s}else if("ZYX"===e.order){const e=a*c,n=a*u,i=o*c,r=o*u;t[0]=s*c,t[4]=i*l-n,t[8]=e*l+r,t[1]=s*u,t[5]=r*l+e,t[9]=n*l-i,t[2]=-l,t[6]=o*s,t[10]=a*s}else if("YZX"===e.order){const e=a*s,n=a*l,i=o*s,r=o*l;t[0]=s*c,t[4]=r-e*u,t[8]=i*u+n,t[1]=u,t[5]=a*c,t[9]=-o*c,t[2]=-l*c,t[6]=n*u+i,t[10]=e-r*u}else if("XZY"===e.order){const e=a*s,n=a*l,i=o*s,r=o*l;t[0]=s*c,t[4]=-u,t[8]=l*c,t[1]=e*u+r,t[5]=a*c,t[9]=n*u-i,t[2]=i*u-n,t[6]=o*c,t[10]=r*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(Di,e,Ii)}lookAt(e,t,n){const i=this.elements;return Li.subVectors(e,t),0===Li.lengthSq()&&(Li.z=1),Li.normalize(),Pi.crossVectors(n,Li),0===Pi.lengthSq()&&(1===Math.abs(n.z)?Li.x+=1e-4:Li.z+=1e-4,Li.normalize(),Pi.crossVectors(n,Li)),Pi.normalize(),Oi.crossVectors(Li,Pi),i[0]=Pi.x,i[4]=Oi.x,i[8]=Li.x,i[1]=Pi.y,i[5]=Oi.y,i[9]=Li.y,i[2]=Pi.z,i[6]=Oi.z,i[10]=Li.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,r=this.elements,a=n[0],o=n[4],s=n[8],l=n[12],c=n[1],u=n[5],h=n[9],d=n[13],p=n[2],f=n[6],m=n[10],g=n[14],v=n[3],y=n[7],_=n[11],x=n[15],b=i[0],w=i[4],S=i[8],M=i[12],C=i[1],T=i[5],E=i[9],A=i[13],k=i[2],D=i[6],I=i[10],P=i[14],O=i[3],L=i[7],R=i[11],N=i[15];return r[0]=a*b+o*C+s*k+l*O,r[4]=a*w+o*T+s*D+l*L,r[8]=a*S+o*E+s*I+l*R,r[12]=a*M+o*A+s*P+l*N,r[1]=c*b+u*C+h*k+d*O,r[5]=c*w+u*T+h*D+d*L,r[9]=c*S+u*E+h*I+d*R,r[13]=c*M+u*A+h*P+d*N,r[2]=p*b+f*C+m*k+g*O,r[6]=p*w+f*T+m*D+g*L,r[10]=p*S+f*E+m*I+g*R,r[14]=p*M+f*A+m*P+g*N,r[3]=v*b+y*C+_*k+x*O,r[7]=v*w+y*T+_*D+x*L,r[11]=v*S+y*E+_*I+x*R,r[15]=v*M+y*A+_*P+x*N,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],i=e[8],r=e[12],a=e[1],o=e[5],s=e[9],l=e[13],c=e[2],u=e[6],h=e[10],d=e[14],p=e[3],f=e[7],m=e[11],g=e[15];return p*(+r*s*u-i*l*u-r*o*h+n*l*h+i*o*d-n*s*d)+f*(+t*s*d-t*l*h+r*a*h-i*a*d+i*l*c-r*s*c)+m*(+t*l*u-t*o*d-r*a*u+n*a*d+r*o*c-n*l*c)+g*(-i*o*c-t*s*u+t*o*h+i*a*u-n*a*h+n*s*c)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],h=e[10],d=e[11],p=e[12],f=e[13],m=e[14],g=e[15],v=u*m*l-f*h*l+f*s*d-o*m*d-u*s*g+o*h*g,y=p*h*l-c*m*l-p*s*d+a*m*d+c*s*g-a*h*g,_=c*f*l-p*u*l+p*o*d-a*f*d-c*o*g+a*u*g,x=p*u*s-c*f*s-p*o*h+a*f*h+c*o*m-a*u*m,b=t*v+n*y+i*_+r*x;if(0===b)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const w=1/b;return e[0]=v*w,e[1]=(f*h*r-u*m*r-f*i*d+n*m*d+u*i*g-n*h*g)*w,e[2]=(o*m*r-f*s*r+f*i*l-n*m*l-o*i*g+n*s*g)*w,e[3]=(u*s*r-o*h*r-u*i*l+n*h*l+o*i*d-n*s*d)*w,e[4]=y*w,e[5]=(c*m*r-p*h*r+p*i*d-t*m*d-c*i*g+t*h*g)*w,e[6]=(p*s*r-a*m*r-p*i*l+t*m*l+a*i*g-t*s*g)*w,e[7]=(a*h*r-c*s*r+c*i*l-t*h*l-a*i*d+t*s*d)*w,e[8]=_*w,e[9]=(p*u*r-c*f*r-p*n*d+t*f*d+c*n*g-t*u*g)*w,e[10]=(a*f*r-p*o*r+p*n*l-t*f*l-a*n*g+t*o*g)*w,e[11]=(c*o*r-a*u*r-c*n*l+t*u*l+a*n*d-t*o*d)*w,e[12]=x*w,e[13]=(c*f*i-p*u*i+p*n*h-t*f*h-c*n*m+t*u*m)*w,e[14]=(p*o*i-a*f*i-p*n*s+t*f*s+a*n*m-t*o*m)*w,e[15]=(a*u*i-c*o*i+c*n*s-t*u*s-a*n*h+t*o*h)*w,this}scale(e){const t=this.elements,n=e.x,i=e.y,r=e.z;return t[0]*=n,t[4]*=i,t[8]*=r,t[1]*=n,t[5]*=i,t[9]*=r,t[2]*=n,t[6]*=i,t[10]*=r,t[3]*=n,t[7]*=i,t[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,i))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),i=Math.sin(t),r=1-n,a=e.x,o=e.y,s=e.z,l=r*a,c=r*o;return this.set(l*a+n,l*o-i*s,l*s+i*o,0,l*o+i*s,c*o+n,c*s-i*a,0,l*s-i*o,c*s+i*a,r*s*s+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,i,r,a){return this.set(1,n,r,0,e,1,a,0,t,i,1,0,0,0,0,1),this}compose(e,t,n){const i=this.elements,r=t._x,a=t._y,o=t._z,s=t._w,l=r+r,c=a+a,u=o+o,h=r*l,d=r*c,p=r*u,f=a*c,m=a*u,g=o*u,v=s*l,y=s*c,_=s*u,x=n.x,b=n.y,w=n.z;return i[0]=(1-(f+g))*x,i[1]=(d+_)*x,i[2]=(p-y)*x,i[3]=0,i[4]=(d-_)*b,i[5]=(1-(h+g))*b,i[6]=(m+v)*b,i[7]=0,i[8]=(p+y)*w,i[9]=(m-v)*w,i[10]=(1-(h+f))*w,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,n){const i=this.elements;let r=Ai.set(i[0],i[1],i[2]).length();const a=Ai.set(i[4],i[5],i[6]).length(),o=Ai.set(i[8],i[9],i[10]).length(),s=this.determinant();s<0&&(r=-r),e.x=i[12],e.y=i[13],e.z=i[14],ki.copy(this);const l=1/r,c=1/a,u=1/o;return ki.elements[0]*=l,ki.elements[1]*=l,ki.elements[2]*=l,ki.elements[4]*=c,ki.elements[5]*=c,ki.elements[6]*=c,ki.elements[8]*=u,ki.elements[9]*=u,ki.elements[10]*=u,t.setFromRotationMatrix(ki),n.x=r,n.y=a,n.z=o,this}makePerspective(e,t,n,i,r,a,o=Gt){const s=this.elements,l=2*r/(t-e),c=2*r/(n-i),u=(t+e)/(t-e),h=(n+i)/(n-i);let d,p;if(o===Gt)d=-(a+r)/(a-r),p=-2*a*r/(a-r);else{if(o!==qt)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);d=-a/(a-r),p=-a*r/(a-r)}return s[0]=l,s[4]=0,s[8]=u,s[12]=0,s[1]=0,s[5]=c,s[9]=h,s[13]=0,s[2]=0,s[6]=0,s[10]=d,s[14]=p,s[3]=0,s[7]=0,s[11]=-1,s[15]=0,this}makeOrthographic(e,t,n,i,r,a,o=Gt){const s=this.elements,l=1/(t-e),c=1/(n-i),u=1/(a-r),h=(t+e)*l,d=(n+i)*c;let p,f;if(o===Gt)p=(a+r)*u,f=-2*u;else{if(o!==qt)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);p=r*u,f=-1*u}return s[0]=2*l,s[4]=0,s[8]=0,s[12]=-h,s[1]=0,s[5]=2*c,s[9]=0,s[13]=-d,s[2]=0,s[6]=0,s[10]=f,s[14]=-p,s[3]=0,s[7]=0,s[11]=0,s[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let i=0;i<16;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const Ai=new Zn,ki=new Ei,Di=new Zn(0,0,0),Ii=new Zn(1,1,1),Pi=new Zn,Oi=new Zn,Li=new Zn,Ri=new Ei,Ni=new Kn;class Fi{constructor(e=0,t=0,n=0,i=Fi.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,i=this._order){return this._x=e,this._y=t,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const i=e.elements,r=i[0],a=i[4],o=i[8],s=i[1],l=i[5],c=i[9],u=i[2],h=i[6],d=i[10];switch(t){case"XYZ":this._y=Math.asin(en(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-c,d),this._z=Math.atan2(-a,r)):(this._x=Math.atan2(h,l),this._z=0);break;case"YXZ":this._x=Math.asin(-en(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(o,d),this._z=Math.atan2(s,l)):(this._y=Math.atan2(-u,r),this._z=0);break;case"ZXY":this._x=Math.asin(en(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-u,d),this._z=Math.atan2(-a,l)):(this._y=0,this._z=Math.atan2(s,r));break;case"ZYX":this._y=Math.asin(-en(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(h,d),this._z=Math.atan2(s,r)):(this._x=0,this._z=Math.atan2(-a,l));break;case"YZX":this._z=Math.asin(en(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,r)):(this._x=0,this._y=Math.atan2(o,d));break;case"XZY":this._z=Math.asin(-en(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(h,l),this._y=Math.atan2(o,r)):(this._x=Math.atan2(-c,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return Ri.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Ri,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return Ni.setFromEuler(this),this.setFromQuaternion(Ni,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Fi.DEFAULT_ORDER="XYZ";class Bi{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return 0!==(this.mask&e.mask)}isEnabled(e){return 0!==(this.mask&(1<<e|0))}}let zi=0;const Vi=new Zn,Ui=new Kn,Hi=new Ei,$i=new Zn,ji=new Zn,Wi=new Zn,Gi=new Kn,qi=new Zn(1,0,0),Xi=new Zn(0,1,0),Yi=new Zn(0,0,1),Ki={type:"added"},Zi={type:"removed"};class Ji extends Xt{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:zi++}),this.uuid=Qt(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Ji.DEFAULT_UP.clone();const e=new Zn,t=new Fi,n=new Kn,i=new Zn(1,1,1);function r(){n.setFromEuler(t,!1)}function a(){t.setFromQuaternion(n,void 0,!1)}t._onChange(r),n._onChange(a),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new Ei},normalMatrix:{value:new Mn}}),this.matrix=new Ei,this.matrixWorld=new Ei,this.matrixAutoUpdate=Ji.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.matrixWorldAutoUpdate=Ji.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.layers=new Bi,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return Ui.setFromAxisAngle(e,t),this.quaternion.multiply(Ui),this}rotateOnWorldAxis(e,t){return Ui.setFromAxisAngle(e,t),this.quaternion.premultiply(Ui),this}rotateX(e){return this.rotateOnAxis(qi,e)}rotateY(e){return this.rotateOnAxis(Xi,e)}rotateZ(e){return this.rotateOnAxis(Yi,e)}translateOnAxis(e,t){return Vi.copy(e).applyQuaternion(this.quaternion),this.position.add(Vi.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(qi,e)}translateY(e){return this.translateOnAxis(Xi,e)}translateZ(e){return this.translateOnAxis(Yi,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(Hi.copy(this.matrixWorld).invert())}lookAt(e,t,n){e.isVector3?$i.copy(e):$i.set(e,t,n);const i=this.parent;this.updateWorldMatrix(!0,!1),ji.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Hi.lookAt(ji,$i,this.up):Hi.lookAt($i,ji,this.up),this.quaternion.setFromRotationMatrix(Hi),i&&(Hi.extractRotation(i.matrixWorld),Ui.setFromRotationMatrix(Hi),this.quaternion.premultiply(Ui.invert()))}add(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(null!==e.parent&&e.parent.remove(e),e.parent=this,this.children.push(e),e.dispatchEvent(Ki)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}const t=this.children.indexOf(e);return-1!==t&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(Zi)),this}removeFromParent(){const e=this.parent;return null!==e&&e.remove(this),this}clear(){for(let e=0;e<this.children.length;e++){const t=this.children[e];t.parent=null,t.dispatchEvent(Zi)}return this.children.length=0,this}attach(e){return this.updateWorldMatrix(!0,!1),Hi.copy(this.matrixWorld).invert(),null!==e.parent&&(e.parent.updateWorldMatrix(!0,!1),Hi.multiply(e.parent.matrixWorld)),e.applyMatrix4(Hi),this.add(e),e.updateWorldMatrix(!1,!0),this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let n=0,i=this.children.length;n<i;n++){const i=this.children[n],r=i.getObjectByProperty(e,t);if(void 0!==r)return r}}getObjectsByProperty(e,t){let n=[];this[e]===t&&n.push(this);for(let i=0,r=this.children.length;i<r;i++){const r=this.children[i].getObjectsByProperty(e,t);r.length>0&&(n=n.concat(r))}return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ji,e,Wi),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ji,Gi,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let n=0,i=t.length;n<i;n++)t[n].traverse(e)}traverseVisible(e){if(!1===this.visible)return;e(this);const t=this.children;for(let n=0,i=t.length;n<i;n++)t[n].traverseVisible(e)}traverseAncestors(e){const t=this.parent;null!==t&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);const t=this.children;for(let n=0,i=t.length;n<i;n++){const i=t[n];!0!==i.matrixWorldAutoUpdate&&!0!==e||i.updateMatrixWorld(e)}}updateWorldMatrix(e,t){const n=this.parent;if(!0===e&&null!==n&&!0===n.matrixWorldAutoUpdate&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===t){const e=this.children;for(let t=0,n=e.length;t<n;t++){const n=e[t];!0===n.matrixWorldAutoUpdate&&n.updateWorldMatrix(!1,!0)}}}toJSON(e){const t=void 0===e||"string"===typeof e,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const i={};function r(t,n){return void 0===t[n.uuid]&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),!0===this.castShadow&&(i.castShadow=!0),!0===this.receiveShadow&&(i.receiveShadow=!0),!1===this.visible&&(i.visible=!1),!1===this.frustumCulled&&(i.frustumCulled=!1),0!==this.renderOrder&&(i.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(i.instanceColor=this.instanceColor.toJSON())),this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=r(e.geometries,this.geometry);const t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){const n=t.shapes;if(Array.isArray(n))for(let t=0,i=n.length;t<i;t++){const i=n[t];r(e.shapes,i)}else r(e.shapes,n)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(r(e.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const t=[];for(let n=0,i=this.material.length;n<i;n++)t.push(r(e.materials,this.material[n]));i.material=t}else i.material=r(e.materials,this.material);if(this.children.length>0){i.children=[];for(let t=0;t<this.children.length;t++)i.children.push(this.children[t].toJSON(e).object)}if(this.animations.length>0){i.animations=[];for(let t=0;t<this.animations.length;t++){const n=this.animations[t];i.animations.push(r(e.animations,n))}}if(t){const t=a(e.geometries),i=a(e.materials),r=a(e.textures),o=a(e.images),s=a(e.shapes),l=a(e.skeletons),c=a(e.animations),u=a(e.nodes);t.length>0&&(n.geometries=t),i.length>0&&(n.materials=i),r.length>0&&(n.textures=r),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),l.length>0&&(n.skeletons=l),c.length>0&&(n.animations=c),u.length>0&&(n.nodes=u)}return n.object=i,n;function a(e){const t=[];for(const n in e){const i=e[n];delete i.metadata,t.push(i)}return t}}clone(e){return(new this.constructor).copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations,this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(let n=0;n<e.children.length;n++){const t=e.children[n];this.add(t.clone())}return this}}Ji.DEFAULT_UP=new Zn(0,1,0),Ji.DEFAULT_MATRIX_AUTO_UPDATE=!0,Ji.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const Qi=new Zn,er=new Zn,tr=new Zn,nr=new Zn,ir=new Zn,rr=new Zn,ar=new Zn,or=new Zn,sr=new Zn,lr=new Zn;let cr=!1;class ur{constructor(e=new Zn,t=new Zn,n=new Zn){this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,i){i.subVectors(n,t),Qi.subVectors(e,t),i.cross(Qi);const r=i.lengthSq();return r>0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}static getBarycoord(e,t,n,i,r){Qi.subVectors(i,t),er.subVectors(n,t),tr.subVectors(e,t);const a=Qi.dot(Qi),o=Qi.dot(er),s=Qi.dot(tr),l=er.dot(er),c=er.dot(tr),u=a*l-o*o;if(0===u)return r.set(-2,-1,-1);const h=1/u,d=(l*s-o*c)*h,p=(a*c-o*s)*h;return r.set(1-d-p,p,d)}static containsPoint(e,t,n,i){return this.getBarycoord(e,t,n,i,nr),nr.x>=0&&nr.y>=0&&nr.x+nr.y<=1}static getUV(e,t,n,i,r,a,o,s){return!1===cr&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),cr=!0),this.getInterpolation(e,t,n,i,r,a,o,s)}static getInterpolation(e,t,n,i,r,a,o,s){return this.getBarycoord(e,t,n,i,nr),s.setScalar(0),s.addScaledVector(r,nr.x),s.addScaledVector(a,nr.y),s.addScaledVector(o,nr.z),s}static isFrontFacing(e,t,n,i){return Qi.subVectors(n,t),er.subVectors(e,t),Qi.cross(er).dot(i)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,i){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,n,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,i),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Qi.subVectors(this.c,this.b),er.subVectors(this.a,this.b),.5*Qi.cross(er).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return ur.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return ur.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,n,i,r){return!1===cr&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),cr=!0),ur.getInterpolation(e,this.a,this.b,this.c,t,n,i,r)}getInterpolation(e,t,n,i,r){return ur.getInterpolation(e,this.a,this.b,this.c,t,n,i,r)}containsPoint(e){return ur.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return ur.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,i=this.b,r=this.c;let a,o;ir.subVectors(i,n),rr.subVectors(r,n),or.subVectors(e,n);const s=ir.dot(or),l=rr.dot(or);if(s<=0&&l<=0)return t.copy(n);sr.subVectors(e,i);const c=ir.dot(sr),u=rr.dot(sr);if(c>=0&&u<=c)return t.copy(i);const h=s*u-c*l;if(h<=0&&s>=0&&c<=0)return a=s/(s-c),t.copy(n).addScaledVector(ir,a);lr.subVectors(e,r);const d=ir.dot(lr),p=rr.dot(lr);if(p>=0&&d<=p)return t.copy(r);const f=d*l-s*p;if(f<=0&&l>=0&&p<=0)return o=l/(l-p),t.copy(n).addScaledVector(rr,o);const m=c*p-d*u;if(m<=0&&u-c>=0&&d-p>=0)return ar.subVectors(r,i),o=(u-c)/(u-c+(d-p)),t.copy(i).addScaledVector(ar,o);const g=1/(m+f+h);return a=f*g,o=h*g,t.copy(n).addScaledVector(ir,a).addScaledVector(rr,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}let hr=0;class dr extends Xt{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:hr++}),this.uuid=Qt(),this.name="",this.type="Material",this.blending=g,this.side=d,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=D,this.blendDst=I,this.blendEquation=b,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=V,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=Lt,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=Ot,this.stencilZFail=Ot,this.stencilZPass=Ot,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!==e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const i=this[t];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[t]=n:console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`)}}toJSON(e){const t=void 0===e||"string"===typeof e;t&&(e={textures:{},images:{}});const n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function i(e){const t=[];for(const n in e){const i=e[n];delete i.metadata,t.push(i)}return t}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),void 0!==this.anisotropy&&(n.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==g&&(n.blending=this.blending),this.side!==d&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaHash&&(n.alphaHash=this.alphaHash),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.forceSinglePass&&(n.forceSinglePass=this.forceSinglePass),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),t){const t=i(e.textures),r=i(e.images);t.length>0&&(n.textures=t),r.length>0&&(n.images=r)}return n}clone(){return(new this.constructor).copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(null!==t){const e=t.length;n=new Array(e);for(let i=0;i!==e;++i)n[i]=t[i].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}}const pr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},fr={h:0,s:0,l:0},mr={h:0,s:0,l:0};function gr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}class vr{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(void 0===t&&void 0===n){const t=e;t&&t.isColor?this.copy(t):"number"===typeof t?this.setHex(t):"string"===typeof t&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=Dt){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,Bn.toWorkingColorSpace(this,t),this}setRGB(e,t,n,i=Bn.workingColorSpace){return this.r=e,this.g=t,this.b=n,Bn.toWorkingColorSpace(this,i),this}setHSL(e,t,n,i=Bn.workingColorSpace){if(e=tn(e,1),t=en(t,0,1),n=en(n,0,1),0===t)this.r=this.g=this.b=n;else{const i=n<=.5?n*(1+t):n+t-n*t,r=2*n-i;this.r=gr(r,i,e+1/3),this.g=gr(r,i,e),this.b=gr(r,i,e-1/3)}return Bn.toWorkingColorSpace(this,i),this}setStyle(e,t=Dt){function n(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const a=i[1],o=i[2];switch(a){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,t);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const n=i[1],r=n.length;if(3===r)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(6===r)return this.setHex(parseInt(n,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=Dt){const n=pr[e.toLowerCase()];return void 0!==n?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Dn(e.r),this.g=Dn(e.g),this.b=Dn(e.b),this}copyLinearToSRGB(e){return this.r=In(e.r),this.g=In(e.g),this.b=In(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Dt){return Bn.fromWorkingColorSpace(yr.copy(this),e),65536*Math.round(en(255*yr.r,0,255))+256*Math.round(en(255*yr.g,0,255))+Math.round(en(255*yr.b,0,255))}getHexString(e=Dt){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Bn.workingColorSpace){Bn.fromWorkingColorSpace(yr.copy(this),t);const n=yr.r,i=yr.g,r=yr.b,a=Math.max(n,i,r),o=Math.min(n,i,r);let s,l;const c=(o+a)/2;if(o===a)s=0,l=0;else{const e=a-o;switch(l=c<=.5?e/(a+o):e/(2-a-o),a){case n:s=(i-r)/e+(i<r?6:0);break;case i:s=(r-n)/e+2;break;case r:s=(n-i)/e+4;break}s/=6}return e.h=s,e.s=l,e.l=c,e}getRGB(e,t=Bn.workingColorSpace){return Bn.fromWorkingColorSpace(yr.copy(this),t),e.r=yr.r,e.g=yr.g,e.b=yr.b,e}getStyle(e=Dt){Bn.fromWorkingColorSpace(yr.copy(this),e);const t=yr.r,n=yr.g,i=yr.b;return e!==Dt?`color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${i.toFixed(3)})`:`rgb(${Math.round(255*t)},${Math.round(255*n)},${Math.round(255*i)})`}offsetHSL(e,t,n){return this.getHSL(fr),fr.h+=e,fr.s+=t,fr.l+=n,this.setHSL(fr.h,fr.s,fr.l),this}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}lerpHSL(e,t){this.getHSL(fr),e.getHSL(mr);const n=an(fr.h,mr.h,t),i=an(fr.s,mr.s,t),r=an(fr.l,mr.l,t);return this.setHSL(n,i,r),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const t=this.r,n=this.g,i=this.b,r=e.elements;return this.r=r[0]*t+r[3]*n+r[6]*i,this.g=r[1]*t+r[4]*n+r[7]*i,this.b=r[2]*t+r[5]*n+r[8]*i,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const yr=new vr;vr.NAMES=pr;class _r extends dr{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new vr(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=W,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const xr=new Zn,br=new Sn;class wr{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=n,this.usage=$t,this.updateRange={offset:0,count:-1},this.gpuType=be,this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let i=0,r=this.itemSize;i<r;i++)this.array[e+i]=t.array[n+i];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(2===this.itemSize)for(let t=0,n=this.count;t<n;t++)br.fromBufferAttribute(this,t),br.applyMatrix3(e),this.setXY(t,br.x,br.y);else if(3===this.itemSize)for(let t=0,n=this.count;t<n;t++)xr.fromBufferAttribute(this,t),xr.applyMatrix3(e),this.setXYZ(t,xr.x,xr.y,xr.z);return this}applyMatrix4(e){for(let t=0,n=this.count;t<n;t++)xr.fromBufferAttribute(this,t),xr.applyMatrix4(e),this.setXYZ(t,xr.x,xr.y,xr.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)xr.fromBufferAttribute(this,t),xr.applyNormalMatrix(e),this.setXYZ(t,xr.x,xr.y,xr.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)xr.fromBufferAttribute(this,t),xr.transformDirection(e),this.setXYZ(t,xr.x,xr.y,xr.z);return this}set(e,t=0){return this.array.set(e,t),this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=xn(t,this.array)),t}setX(e,t){return this.normalized&&(t=bn(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=xn(t,this.array)),t}setY(e,t){return this.normalized&&(t=bn(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=xn(t,this.array)),t}setZ(e,t){return this.normalized&&(t=bn(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=xn(t,this.array)),t}setW(e,t){return this.normalized&&(t=bn(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=bn(t,this.array),n=bn(n,this.array)),this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,i){return e*=this.itemSize,this.normalized&&(t=bn(t,this.array),n=bn(n,this.array),i=bn(i,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=i,this}setXYZW(e,t,n,i,r){return e*=this.itemSize,this.normalized&&(t=bn(t,this.array),n=bn(n,this.array),i=bn(i,this.array),r=bn(r,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=i,this.array[e+3]=r,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(e.name=this.name),this.usage!==$t&&(e.usage=this.usage),0===this.updateRange.offset&&-1===this.updateRange.count||(e.updateRange=this.updateRange),e}}class Sr extends wr{constructor(e,t,n){super(new Uint16Array(e),t,n)}}class Mr extends wr{constructor(e,t,n){super(new Uint32Array(e),t,n)}}class Cr extends wr{constructor(e,t,n){super(new Float32Array(e),t,n)}}let Tr=0;const Er=new Ei,Ar=new Ji,kr=new Zn,Dr=new ei,Ir=new ei,Pr=new Zn;class Or extends Xt{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:Tr++}),this.uuid=Qt(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(Tn(e)?Mr:Sr)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return void 0!==this.attributes[e]}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){const t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const t=(new Mn).getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}const i=this.attributes.tangent;return void 0!==i&&(i.transformDirection(e),i.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(e){return Er.makeRotationFromQuaternion(e),this.applyMatrix4(Er),this}rotateX(e){return Er.makeRotationX(e),this.applyMatrix4(Er),this}rotateY(e){return Er.makeRotationY(e),this.applyMatrix4(Er),this}rotateZ(e){return Er.makeRotationZ(e),this.applyMatrix4(Er),this}translate(e,t,n){return Er.makeTranslation(e,t,n),this.applyMatrix4(Er),this}scale(e,t,n){return Er.makeScale(e,t,n),this.applyMatrix4(Er),this}lookAt(e){return Ar.lookAt(e),Ar.updateMatrix(),this.applyMatrix4(Ar.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(kr).negate(),this.translate(kr.x,kr.y,kr.z),this}setFromPoints(e){const t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n];t.push(i.x,i.y,i.z||0)}return this.setAttribute("position",new Cr(t,3)),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new ei);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingBox.set(new Zn(-1/0,-1/0,-1/0),new Zn(1/0,1/0,1/0));if(void 0!==e){if(this.boundingBox.setFromBufferAttribute(e),t)for(let n=0,i=t.length;n<i;n++){const e=t[n];Dr.setFromBufferAttribute(e),this.morphTargetsRelative?(Pr.addVectors(this.boundingBox.min,Dr.min),this.boundingBox.expandByPoint(Pr),Pr.addVectors(this.boundingBox.max,Dr.max),this.boundingBox.expandByPoint(Pr)):(this.boundingBox.expandByPoint(Dr.min),this.boundingBox.expandByPoint(Dr.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new yi);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingSphere.set(new Zn,1/0);if(e){const n=this.boundingSphere.center;if(Dr.setFromBufferAttribute(e),t)for(let e=0,r=t.length;e<r;e++){const n=t[e];Ir.setFromBufferAttribute(n),this.morphTargetsRelative?(Pr.addVectors(Dr.min,Ir.min),Dr.expandByPoint(Pr),Pr.addVectors(Dr.max,Ir.max),Dr.expandByPoint(Pr)):(Dr.expandByPoint(Ir.min),Dr.expandByPoint(Ir.max))}Dr.getCenter(n);let i=0;for(let t=0,r=e.count;t<r;t++)Pr.fromBufferAttribute(e,t),i=Math.max(i,n.distanceToSquared(Pr));if(t)for(let r=0,a=t.length;r<a;r++){const a=t[r],o=this.morphTargetsRelative;for(let t=0,r=a.count;t<r;t++)Pr.fromBufferAttribute(a,t),o&&(kr.fromBufferAttribute(e,t),Pr.add(kr)),i=Math.max(i,n.distanceToSquared(Pr))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const e=this.index,t=this.attributes;if(null===e||void 0===t.position||void 0===t.normal||void 0===t.uv)return void console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");const n=e.array,i=t.position.array,r=t.normal.array,a=t.uv.array,o=i.length/3;!1===this.hasAttribute("tangent")&&this.setAttribute("tangent",new wr(new Float32Array(4*o),4));const s=this.getAttribute("tangent").array,l=[],c=[];for(let C=0;C<o;C++)l[C]=new Zn,c[C]=new Zn;const u=new Zn,h=new Zn,d=new Zn,p=new Sn,f=new Sn,m=new Sn,g=new Zn,v=new Zn;function y(e,t,n){u.fromArray(i,3*e),h.fromArray(i,3*t),d.fromArray(i,3*n),p.fromArray(a,2*e),f.fromArray(a,2*t),m.fromArray(a,2*n),h.sub(u),d.sub(u),f.sub(p),m.sub(p);const r=1/(f.x*m.y-m.x*f.y);isFinite(r)&&(g.copy(h).multiplyScalar(m.y).addScaledVector(d,-f.y).multiplyScalar(r),v.copy(d).multiplyScalar(f.x).addScaledVector(h,-m.x).multiplyScalar(r),l[e].add(g),l[t].add(g),l[n].add(g),c[e].add(v),c[t].add(v),c[n].add(v))}let _=this.groups;0===_.length&&(_=[{start:0,count:n.length}]);for(let C=0,T=_.length;C<T;++C){const e=_[C],t=e.start,i=e.count;for(let r=t,a=t+i;r<a;r+=3)y(n[r+0],n[r+1],n[r+2])}const x=new Zn,b=new Zn,w=new Zn,S=new Zn;function M(e){w.fromArray(r,3*e),S.copy(w);const t=l[e];x.copy(t),x.sub(w.multiplyScalar(w.dot(t))).normalize(),b.crossVectors(S,t);const n=b.dot(c[e]),i=n<0?-1:1;s[4*e]=x.x,s[4*e+1]=x.y,s[4*e+2]=x.z,s[4*e+3]=i}for(let C=0,T=_.length;C<T;++C){const e=_[C],t=e.start,i=e.count;for(let r=t,a=t+i;r<a;r+=3)M(n[r+0]),M(n[r+1]),M(n[r+2])}}computeVertexNormals(){const e=this.index,t=this.getAttribute("position");if(void 0!==t){let n=this.getAttribute("normal");if(void 0===n)n=new wr(new Float32Array(3*t.count),3),this.setAttribute("normal",n);else for(let e=0,t=n.count;e<t;e++)n.setXYZ(e,0,0,0);const i=new Zn,r=new Zn,a=new Zn,o=new Zn,s=new Zn,l=new Zn,c=new Zn,u=new Zn;if(e)for(let h=0,d=e.count;h<d;h+=3){const d=e.getX(h+0),p=e.getX(h+1),f=e.getX(h+2);i.fromBufferAttribute(t,d),r.fromBufferAttribute(t,p),a.fromBufferAttribute(t,f),c.subVectors(a,r),u.subVectors(i,r),c.cross(u),o.fromBufferAttribute(n,d),s.fromBufferAttribute(n,p),l.fromBufferAttribute(n,f),o.add(c),s.add(c),l.add(c),n.setXYZ(d,o.x,o.y,o.z),n.setXYZ(p,s.x,s.y,s.z),n.setXYZ(f,l.x,l.y,l.z)}else for(let e=0,h=t.count;e<h;e+=3)i.fromBufferAttribute(t,e+0),r.fromBufferAttribute(t,e+1),a.fromBufferAttribute(t,e+2),c.subVectors(a,r),u.subVectors(i,r),c.cross(u),n.setXYZ(e+0,c.x,c.y,c.z),n.setXYZ(e+1,c.x,c.y,c.z),n.setXYZ(e+2,c.x,c.y,c.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let t=0,n=e.count;t<n;t++)Pr.fromBufferAttribute(e,t),Pr.normalize(),e.setXYZ(t,Pr.x,Pr.y,Pr.z)}toNonIndexed(){function e(e,t){const n=e.array,i=e.itemSize,r=e.normalized,a=new n.constructor(t.length*i);let o=0,s=0;for(let l=0,c=t.length;l<c;l++){o=e.isInterleavedBufferAttribute?t[l]*e.data.stride+e.offset:t[l]*i;for(let e=0;e<i;e++)a[s++]=n[o++]}return new wr(a,i,r)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const t=new Or,n=this.index.array,i=this.attributes;for(const o in i){const r=i[o],a=e(r,n);t.setAttribute(o,a)}const r=this.morphAttributes;for(const o in r){const i=[],a=r[o];for(let t=0,r=a.length;t<r;t++){const r=a[t],o=e(r,n);i.push(o)}t.morphAttributes[o]=i}t.morphTargetsRelative=this.morphTargetsRelative;const a=this.groups;for(let o=0,s=a.length;o<s;o++){const e=a[o];t.addGroup(e.start,e.count,e.materialIndex)}return t}toJSON(){const e={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,""!==this.name&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),void 0!==this.parameters){const t=this.parameters;for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};const t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const s in n){const t=n[s];e.data.attributes[s]=t.toJSON(e.data)}const i={};let r=!1;for(const s in this.morphAttributes){const t=this.morphAttributes[s],n=[];for(let i=0,r=t.length;i<r;i++){const r=t[i];n.push(r.toJSON(e.data))}n.length>0&&(i[s]=n,r=!0)}r&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));const o=this.boundingSphere;return null!==o&&(e.data.boundingSphere={center:o.center.toArray(),radius:o.radius}),e}clone(){return(new this.constructor).copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;null!==n&&this.setIndex(n.clone(t));const i=e.attributes;for(const l in i){const e=i[l];this.setAttribute(l,e.clone(t))}const r=e.morphAttributes;for(const l in r){const e=[],n=r[l];for(let i=0,r=n.length;i<r;i++)e.push(n[i].clone(t));this.morphAttributes[l]=e}this.morphTargetsRelative=e.morphTargetsRelative;const a=e.groups;for(let l=0,c=a.length;l<c;l++){const e=a[l];this.addGroup(e.start,e.count,e.materialIndex)}const o=e.boundingBox;null!==o&&(this.boundingBox=o.clone());const s=e.boundingSphere;return null!==s&&(this.boundingSphere=s.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const Lr=new Ei,Rr=new Ti,Nr=new yi,Fr=new Zn,Br=new Zn,zr=new Zn,Vr=new Zn,Ur=new Zn,Hr=new Zn,$r=new Sn,jr=new Sn,Wr=new Sn,Gr=new Zn,qr=new Zn,Xr=new Zn,Yr=new Zn,Kr=new Zn;class Zr extends Ji{constructor(e=new Or,t=new _r){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=e.material,this.geometry=e.geometry,this}updateMorphTargets(){const e=this.geometry,t=e.morphAttributes,n=Object.keys(t);if(n.length>0){const e=t[n[0]];if(void 0!==e){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;t<n;t++){const n=e[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t}}}}getVertexPosition(e,t){const n=this.geometry,i=n.attributes.position,r=n.morphAttributes.position,a=n.morphTargetsRelative;t.fromBufferAttribute(i,e);const o=this.morphTargetInfluences;if(r&&o){Hr.set(0,0,0);for(let n=0,i=r.length;n<i;n++){const i=o[n],s=r[n];0!==i&&(Ur.fromBufferAttribute(s,e),a?Hr.addScaledVector(Ur,i):Hr.addScaledVector(Ur.sub(t),i))}t.add(Hr)}return t}raycast(e,t){const n=this.geometry,i=this.material,r=this.matrixWorld;if(void 0!==i){if(null===n.boundingSphere&&n.computeBoundingSphere(),Nr.copy(n.boundingSphere),Nr.applyMatrix4(r),Rr.copy(e.ray).recast(e.near),!1===Nr.containsPoint(Rr.origin)){if(null===Rr.intersectSphere(Nr,Fr))return;if(Rr.origin.distanceToSquared(Fr)>(e.far-e.near)**2)return}Lr.copy(r).invert(),Rr.copy(e.ray).applyMatrix4(Lr),null!==n.boundingBox&&!1===Rr.intersectsBox(n.boundingBox)||this._computeIntersections(e,t,Rr)}}_computeIntersections(e,t,n){let i;const r=this.geometry,a=this.material,o=r.index,s=r.attributes.position,l=r.attributes.uv,c=r.attributes.uv1,u=r.attributes.normal,h=r.groups,d=r.drawRange;if(null!==o)if(Array.isArray(a))for(let p=0,f=h.length;p<f;p++){const r=h[p],s=a[r.materialIndex],f=Math.max(r.start,d.start),m=Math.min(o.count,Math.min(r.start+r.count,d.start+d.count));for(let a=f,h=m;a<h;a+=3){const h=o.getX(a),d=o.getX(a+1),p=o.getX(a+2);i=Qr(this,s,e,n,l,c,u,h,d,p),i&&(i.faceIndex=Math.floor(a/3),i.face.materialIndex=r.materialIndex,t.push(i))}}else{const r=Math.max(0,d.start),s=Math.min(o.count,d.start+d.count);for(let h=r,d=s;h<d;h+=3){const r=o.getX(h),s=o.getX(h+1),d=o.getX(h+2);i=Qr(this,a,e,n,l,c,u,r,s,d),i&&(i.faceIndex=Math.floor(h/3),t.push(i))}}else if(void 0!==s)if(Array.isArray(a))for(let p=0,f=h.length;p<f;p++){const r=h[p],o=a[r.materialIndex],f=Math.max(r.start,d.start),m=Math.min(s.count,Math.min(r.start+r.count,d.start+d.count));for(let a=f,s=m;a<s;a+=3){const s=a,h=a+1,d=a+2;i=Qr(this,o,e,n,l,c,u,s,h,d),i&&(i.faceIndex=Math.floor(a/3),i.face.materialIndex=r.materialIndex,t.push(i))}}else{const r=Math.max(0,d.start),o=Math.min(s.count,d.start+d.count);for(let s=r,h=o;s<h;s+=3){const r=s,o=s+1,h=s+2;i=Qr(this,a,e,n,l,c,u,r,o,h),i&&(i.faceIndex=Math.floor(s/3),t.push(i))}}}}function Jr(e,t,n,i,r,a,o,s){let l;if(l=t.side===p?i.intersectTriangle(o,a,r,!0,s):i.intersectTriangle(r,a,o,t.side===d,s),null===l)return null;Kr.copy(s),Kr.applyMatrix4(e.matrixWorld);const c=n.ray.origin.distanceTo(Kr);return c<n.near||c>n.far?null:{distance:c,point:Kr.clone(),object:e}}function Qr(e,t,n,i,r,a,o,s,l,c){e.getVertexPosition(s,Br),e.getVertexPosition(l,zr),e.getVertexPosition(c,Vr);const u=Jr(e,t,n,i,Br,zr,Vr,Yr);if(u){r&&($r.fromBufferAttribute(r,s),jr.fromBufferAttribute(r,l),Wr.fromBufferAttribute(r,c),u.uv=ur.getInterpolation(Yr,Br,zr,Vr,$r,jr,Wr,new Sn)),a&&($r.fromBufferAttribute(a,s),jr.fromBufferAttribute(a,l),Wr.fromBufferAttribute(a,c),u.uv1=ur.getInterpolation(Yr,Br,zr,Vr,$r,jr,Wr,new Sn),u.uv2=u.uv1),o&&(Gr.fromBufferAttribute(o,s),qr.fromBufferAttribute(o,l),Xr.fromBufferAttribute(o,c),u.normal=ur.getInterpolation(Yr,Br,zr,Vr,Gr,qr,Xr,new Zn),u.normal.dot(i.direction)>0&&u.normal.multiplyScalar(-1));const e={a:s,b:l,c:c,normal:new Zn,materialIndex:0};ur.getNormal(Br,zr,Vr,e.normal),u.face=e}return u}class ea extends Or{constructor(e=1,t=1,n=1,i=1,r=1,a=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:i,heightSegments:r,depthSegments:a};const o=this;i=Math.floor(i),r=Math.floor(r),a=Math.floor(a);const s=[],l=[],c=[],u=[];let h=0,d=0;function p(e,t,n,i,r,a,p,f,m,g,v){const y=a/m,_=p/g,x=a/2,b=p/2,w=f/2,S=m+1,M=g+1;let C=0,T=0;const E=new Zn;for(let o=0;o<M;o++){const a=o*_-b;for(let s=0;s<S;s++){const h=s*y-x;E[e]=h*i,E[t]=a*r,E[n]=w,l.push(E.x,E.y,E.z),E[e]=0,E[t]=0,E[n]=f>0?1:-1,c.push(E.x,E.y,E.z),u.push(s/m),u.push(1-o/g),C+=1}}for(let o=0;o<g;o++)for(let e=0;e<m;e++){const t=h+e+S*o,n=h+e+S*(o+1),i=h+(e+1)+S*(o+1),r=h+(e+1)+S*o;s.push(t,n,r),s.push(n,i,r),T+=6}o.addGroup(d,T,v),d+=T,h+=C}p("z","y","x",-1,-1,n,t,e,a,r,0),p("z","y","x",1,-1,n,t,-e,a,r,1),p("x","z","y",1,1,e,n,t,i,a,2),p("x","z","y",1,-1,e,n,-t,i,a,3),p("x","y","z",1,-1,e,t,n,i,r,4),p("x","y","z",-1,-1,e,t,-n,i,r,5),this.setIndex(s),this.setAttribute("position",new Cr(l,3)),this.setAttribute("normal",new Cr(c,3)),this.setAttribute("uv",new Cr(u,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new ea(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function ta(e){const t={};for(const n in e){t[n]={};for(const i in e[n]){const r=e[n][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture||r.isQuaternion)?r.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),t[n][i]=null):t[n][i]=r.clone():Array.isArray(r)?t[n][i]=r.slice():t[n][i]=r}}return t}function na(e){const t={};for(let n=0;n<e.length;n++){const i=ta(e[n]);for(const e in i)t[e]=i[e]}return t}function ia(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].clone());return t}function ra(e){return null===e.getRenderTarget()?e.outputColorSpace:It}const aa={clone:ta,merge:na};var oa="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",sa="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}";class la extends dr{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=oa,this.fragmentShader=sa,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==e&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=ta(e.uniforms),this.uniformsGroups=ia(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const i in this.uniforms){const n=this.uniforms[i],r=n.value;r&&r.isTexture?t.uniforms[i]={type:"t",value:r.toJSON(e).uuid}:r&&r.isColor?t.uniforms[i]={type:"c",value:r.getHex()}:r&&r.isVector2?t.uniforms[i]={type:"v2",value:r.toArray()}:r&&r.isVector3?t.uniforms[i]={type:"v3",value:r.toArray()}:r&&r.isVector4?t.uniforms[i]={type:"v4",value:r.toArray()}:r&&r.isMatrix3?t.uniforms[i]={type:"m3",value:r.toArray()}:r&&r.isMatrix4?t.uniforms[i]={type:"m4",value:r.toArray()}:t.uniforms[i]={value:r}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const n={};for(const i in this.extensions)!0===this.extensions[i]&&(n[i]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class ca extends Ji{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Ei,this.projectionMatrix=new Ei,this.projectionMatrixInverse=new Ei,this.coordinateSystem=Gt}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(-t[8],-t[9],-t[10]).normalize()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}class ua extends ca{constructor(e=50,t=1,n=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=2*Jt*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(.5*Zt*this.fov);return.5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*Jt*Math.atan(Math.tan(.5*Zt*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,n,i,r,a){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*Zt*this.fov)/this.zoom,n=2*t,i=this.aspect*n,r=-.5*i;const a=this.view;if(null!==this.view&&this.view.enabled){const e=a.fullWidth,o=a.fullHeight;r+=a.offsetX*i/e,t-=a.offsetY*n/o,i*=a.width/e,n*=a.height/o}const o=this.filmOffset;0!==o&&(r+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const ha=-90,da=1;class pa extends Ji{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null;const i=new ua(ha,da,e,t);i.layers=this.layers,this.add(i);const r=new ua(ha,da,e,t);r.layers=this.layers,this.add(r);const a=new ua(ha,da,e,t);a.layers=this.layers,this.add(a);const o=new ua(ha,da,e,t);o.layers=this.layers,this.add(o);const s=new ua(ha,da,e,t);s.layers=this.layers,this.add(s);const l=new ua(ha,da,e,t);l.layers=this.layers,this.add(l)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,i,r,a,o,s]=t;for(const l of t)this.remove(l);if(e===Gt)n.up.set(0,1,0),n.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),s.up.set(0,1,0),s.lookAt(0,0,-1);else{if(e!==qt)throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);n.up.set(0,-1,0),n.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),s.up.set(0,-1,0),s.lookAt(0,0,-1)}for(const l of t)this.add(l),l.updateMatrixWorld()}update(e,t){null===this.parent&&this.updateMatrixWorld();const n=this.renderTarget;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[i,r,a,o,s,l]=this.children,c=e.getRenderTarget(),u=e.toneMapping,h=e.xr.enabled;e.toneMapping=X,e.xr.enabled=!1;const d=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0),e.render(t,i),e.setRenderTarget(n,1),e.render(t,r),e.setRenderTarget(n,2),e.render(t,a),e.setRenderTarget(n,3),e.render(t,o),e.setRenderTarget(n,4),e.render(t,s),n.texture.generateMipmaps=d,e.setRenderTarget(n,5),e.render(t,l),e.setRenderTarget(c),e.toneMapping=u,e.xr.enabled=h,n.texture.needsPMREMUpdate=!0}}class fa extends Wn{constructor(e,t,n,i,r,a,o,s,l,c){e=void 0!==e?e:[],t=void 0!==t?t:te,super(e,t,n,i,r,a,o,s,l,c),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class ma extends qn{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},i=[n,n,n,n,n,n];void 0!==t.encoding&&(kn("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===Mt?Dt:kt),this.texture=new fa(i,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==t.generateMipmaps&&t.generateMipmaps,this.texture.minFilter=void 0!==t.minFilter?t.minFilter:de}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},i=new ea(5,5,5),r=new la({name:"CubemapFromEquirect",uniforms:ta(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:p,blending:m});r.uniforms.tEquirect.value=t;const a=new Zr(i,r),o=t.minFilter;t.minFilter===fe&&(t.minFilter=de);const s=new pa(1,10,this);return s.update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(e,t,n,i){const r=e.getRenderTarget();for(let a=0;a<6;a++)e.setRenderTarget(this,a),e.clear(t,n,i);e.setRenderTarget(r)}}const ga=new Zn,va=new Zn,ya=new Mn;class _a{constructor(e=new Zn(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,i){return this.normal.set(e,t,n),this.constant=i,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){const i=ga.subVectors(n,t).cross(va.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(i,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const n=e.delta(ga),i=this.normal.dot(n);if(0===i)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;const r=-(e.start.dot(this.normal)+this.constant)/i;return r<0||r>1?null:t.copy(e.start).addScaledVector(n,r)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||ya.getNormalMatrix(e),i=this.coplanarPoint(ga).applyMatrix4(e),r=this.normal.applyMatrix3(n).normalize();return this.constant=-i.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const xa=new yi,ba=new Zn;class wa{constructor(e=new _a,t=new _a,n=new _a,i=new _a,r=new _a,a=new _a){this.planes=[e,t,n,i,r,a]}set(e,t,n,i,r,a){const o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(i),o[4].copy(r),o[5].copy(a),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=Gt){const n=this.planes,i=e.elements,r=i[0],a=i[1],o=i[2],s=i[3],l=i[4],c=i[5],u=i[6],h=i[7],d=i[8],p=i[9],f=i[10],m=i[11],g=i[12],v=i[13],y=i[14],_=i[15];if(n[0].setComponents(s-r,h-l,m-d,_-g).normalize(),n[1].setComponents(s+r,h+l,m+d,_+g).normalize(),n[2].setComponents(s+a,h+c,m+p,_+v).normalize(),n[3].setComponents(s-a,h-c,m-p,_-v).normalize(),n[4].setComponents(s-o,h-u,m-f,_-y).normalize(),t===Gt)n[5].setComponents(s+o,h+u,m+f,_+y).normalize();else{if(t!==qt)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);n[5].setComponents(o,u,f,y).normalize()}return this}intersectsObject(e){if(void 0!==e.boundingSphere)null===e.boundingSphere&&e.computeBoundingSphere(),xa.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),xa.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(xa)}intersectsSprite(e){return xa.center.set(0,0,0),xa.radius=.7071067811865476,xa.applyMatrix4(e.matrixWorld),this.intersectsSphere(xa)}intersectsSphere(e){const t=this.planes,n=e.center,i=-e.radius;for(let r=0;r<6;r++){const e=t[r].distanceToPoint(n);if(e<i)return!1}return!0}intersectsBox(e){const t=this.planes;for(let n=0;n<6;n++){const i=t[n];if(ba.x=i.normal.x>0?e.max.x:e.min.x,ba.y=i.normal.y>0?e.max.y:e.min.y,ba.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(ba)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function Sa(){let e=null,t=!1,n=null,i=null;function r(t,a){n(t,a),i=e.requestAnimationFrame(r)}return{start:function(){!0!==t&&null!==n&&(i=e.requestAnimationFrame(r),t=!0)},stop:function(){e.cancelAnimationFrame(i),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Ma(e,t){const n=t.isWebGL2,i=new WeakMap;function r(t,i){const r=t.array,a=t.usage,o=e.createBuffer();let s;if(e.bindBuffer(i,o),e.bufferData(i,r,a),t.onUploadCallback(),r instanceof Float32Array)s=e.FLOAT;else if(r instanceof Uint16Array)if(t.isFloat16BufferAttribute){if(!n)throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");s=e.HALF_FLOAT}else s=e.UNSIGNED_SHORT;else if(r instanceof Int16Array)s=e.SHORT;else if(r instanceof Uint32Array)s=e.UNSIGNED_INT;else if(r instanceof Int32Array)s=e.INT;else if(r instanceof Int8Array)s=e.BYTE;else if(r instanceof Uint8Array)s=e.UNSIGNED_BYTE;else{if(!(r instanceof Uint8ClampedArray))throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+r);s=e.UNSIGNED_BYTE}return{buffer:o,type:s,bytesPerElement:r.BYTES_PER_ELEMENT,version:t.version}}function a(t,i,r){const a=i.array,o=i.updateRange;e.bindBuffer(r,t),-1===o.count?e.bufferSubData(r,0,a):(n?e.bufferSubData(r,o.offset*a.BYTES_PER_ELEMENT,a,o.offset,o.count):e.bufferSubData(r,o.offset*a.BYTES_PER_ELEMENT,a.subarray(o.offset,o.offset+o.count)),o.count=-1),i.onUploadCallback()}function o(e){return e.isInterleavedBufferAttribute&&(e=e.data),i.get(e)}function s(t){t.isInterleavedBufferAttribute&&(t=t.data);const n=i.get(t);n&&(e.deleteBuffer(n.buffer),i.delete(t))}function l(e,t){if(e.isGLBufferAttribute){const t=i.get(e);return void((!t||t.version<e.version)&&i.set(e,{buffer:e.buffer,type:e.type,bytesPerElement:e.elementSize,version:e.version}))}e.isInterleavedBufferAttribute&&(e=e.data);const n=i.get(e);void 0===n?i.set(e,r(e,t)):n.version<e.version&&(a(n.buffer,e,t),n.version=e.version)}return{get:o,remove:s,update:l}}class Ca extends Or{constructor(e=1,t=1,n=1,i=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:n,heightSegments:i};const r=e/2,a=t/2,o=Math.floor(n),s=Math.floor(i),l=o+1,c=s+1,u=e/o,h=t/s,d=[],p=[],f=[],m=[];for(let g=0;g<c;g++){const e=g*h-a;for(let t=0;t<l;t++){const n=t*u-r;p.push(n,-e,0),f.push(0,0,1),m.push(t/o),m.push(1-g/s)}}for(let g=0;g<s;g++)for(let e=0;e<o;e++){const t=e+l*g,n=e+l*(g+1),i=e+1+l*(g+1),r=e+1+l*g;d.push(t,n,r),d.push(n,i,r)}this.setIndex(d),this.setAttribute("position",new Cr(p,3)),this.setAttribute("normal",new Cr(f,3)),this.setAttribute("uv",new Cr(m,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Ca(e.width,e.height,e.widthSegments,e.heightSegments)}}var Ta="#ifdef USE_ALPHAHASH\n\tif ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;\n#endif",Ea="#ifdef USE_ALPHAHASH\n\tconst float ALPHA_HASH_SCALE = 0.05;\n\tfloat hash2D( vec2 value ) {\n\t\treturn fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );\n\t}\n\tfloat hash3D( vec3 value ) {\n\t\treturn hash2D( vec2( hash2D( value.xy ), value.z ) );\n\t}\n\tfloat getAlphaHashThreshold( vec3 position ) {\n\t\tfloat maxDeriv = max(\n\t\t\tlength( dFdx( position.xyz ) ),\n\t\t\tlength( dFdy( position.xyz ) )\n\t\t);\n\t\tfloat pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );\n\t\tvec2 pixScales = vec2(\n\t\t\texp2( floor( log2( pixScale ) ) ),\n\t\t\texp2( ceil( log2( pixScale ) ) )\n\t\t);\n\t\tvec2 alpha = vec2(\n\t\t\thash3D( floor( pixScales.x * position.xyz ) ),\n\t\t\thash3D( floor( pixScales.y * position.xyz ) )\n\t\t);\n\t\tfloat lerpFactor = fract( log2( pixScale ) );\n\t\tfloat x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;\n\t\tfloat a = min( lerpFactor, 1.0 - lerpFactor );\n\t\tvec3 cases = vec3(\n\t\t\tx * x / ( 2.0 * a * ( 1.0 - a ) ),\n\t\t\t( x - 0.5 * a ) / ( 1.0 - a ),\n\t\t\t1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )\n\t\t);\n\t\tfloat threshold = ( x < ( 1.0 - a ) )\n\t\t\t? ( ( x < a ) ? cases.x : cases.y )\n\t\t\t: cases.z;\n\t\treturn clamp( threshold , 1.0e-6, 1.0 );\n\t}\n#endif",Aa="#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;\n#endif",ka="#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",Da="#ifdef USE_ALPHATEST\n\tif ( diffuseColor.a < alphaTest ) discard;\n#endif",Ia="#ifdef USE_ALPHATEST\n\tuniform float alphaTest;\n#endif",Pa="#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n\t#endif\n#endif",Oa="#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",La="vec3 transformed = vec3( position );\n#ifdef USE_ALPHAHASH\n\tvPosition = vec3( position );\n#endif",Ra="vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",Na="float G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, 1.0, dotVH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n} // validated",Fa="#ifdef USE_IRIDESCENCE\n\tconst mat3 XYZ_TO_REC709 = mat3(\n\t\t 3.2404542, -0.9692660, 0.0556434,\n\t\t-1.5371385, 1.8760108, -0.2040259,\n\t\t-0.4985314, 0.0415560, 1.0572252\n\t);\n\tvec3 Fresnel0ToIor( vec3 fresnel0 ) {\n\t\tvec3 sqrtF0 = sqrt( fresnel0 );\n\t\treturn ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );\n\t}\n\tvec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );\n\t}\n\tfloat IorToFresnel0( float transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));\n\t}\n\tvec3 evalSensitivity( float OPD, vec3 shift ) {\n\t\tfloat phase = 2.0 * PI * OPD * 1.0e-9;\n\t\tvec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );\n\t\tvec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );\n\t\tvec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );\n\t\tvec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );\n\t\txyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );\n\t\txyz /= 1.0685e-7;\n\t\tvec3 rgb = XYZ_TO_REC709 * xyz;\n\t\treturn rgb;\n\t}\n\tvec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {\n\t\tvec3 I;\n\t\tfloat iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );\n\t\tfloat sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );\n\t\tfloat cosTheta2Sq = 1.0 - sinTheta2Sq;\n\t\tif ( cosTheta2Sq < 0.0 ) {\n\t\t\t return vec3( 1.0 );\n\t\t}\n\t\tfloat cosTheta2 = sqrt( cosTheta2Sq );\n\t\tfloat R0 = IorToFresnel0( iridescenceIOR, outsideIOR );\n\t\tfloat R12 = F_Schlick( R0, 1.0, cosTheta1 );\n\t\tfloat R21 = R12;\n\t\tfloat T121 = 1.0 - R12;\n\t\tfloat phi12 = 0.0;\n\t\tif ( iridescenceIOR < outsideIOR ) phi12 = PI;\n\t\tfloat phi21 = PI - phi12;\n\t\tvec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );\t\tvec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );\n\t\tvec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );\n\t\tvec3 phi23 = vec3( 0.0 );\n\t\tif ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;\n\t\tif ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;\n\t\tif ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;\n\t\tfloat OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;\n\t\tvec3 phi = vec3( phi21 ) + phi23;\n\t\tvec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );\n\t\tvec3 r123 = sqrt( R123 );\n\t\tvec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );\n\t\tvec3 C0 = R12 + Rs;\n\t\tI = C0;\n\t\tvec3 Cm = Rs - T121;\n\t\tfor ( int m = 1; m <= 2; ++ m ) {\n\t\t\tCm *= r123;\n\t\t\tvec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );\n\t\t\tI += Cm * Sm;\n\t\t}\n\t\treturn max( I, vec3( 0.0 ) );\n\t}\n#endif",Ba="#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vBumpMapUv );\n\t\tvec2 dSTdy = dFdy( vBumpMapUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = dFdx( surf_pos.xyz );\n\t\tvec3 vSigmaY = dFdy( surf_pos.xyz );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",za="#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",Va="#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",Ua="#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",Ha="#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",$a="#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",ja="#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",Wa="#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",Ga="#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",qa="#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",Xa="#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_v0 0.339\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_v1 0.276\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_v4 0.046\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_v5 0.016\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_v6 0.0038\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",Ya="vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",Ka="#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",Za="#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",Ja="#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",Qa="#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",eo="gl_FragColor = linearToOutputTexel( gl_FragColor );",to="vec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}",no="#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",io="#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",ro="#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",ao="#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",oo="#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",so="#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",lo="#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",co="#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",uo="#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",ho="#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",po="#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",fo="#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",mo="LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",go="varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in GeometricContext geometry, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in GeometricContext geometry, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",vo="uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( LEGACY_LIGHTS )\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#else\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",yo="#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",_o="ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",xo="varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",bo="BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",wo="varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",So="PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tanisotropyV /= material.anisotropy;\n\tmaterial.anisotropy = saturate( material.anisotropy );\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x - tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x + tbn[ 0 ] * anisotropyV.y;\n#endif",Mo="struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#endif\n};\nvec3 clearcoatSpecular = vec3( 0.0 );\nvec3 sheenSpecular = vec3( 0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecular += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",Co="\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef USE_CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometry.viewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometry, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry.normal );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",To="#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometry.normal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometry.viewDir, geometry.normal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",Eo="#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif",Ao="#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",ko="#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",Do="#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",Io="#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",Po="#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, vMapUv );\n#endif",Oo="#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",Lo="#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",Ro="#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",No="float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",Fo="#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",Bo="#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",zo="#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",Vo="#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",Uo="#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",Ho="float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 geometryNormal = normal;",$o="#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",jo="#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",Wo="#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",Go="#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",qo="#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",Xo="#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",Yo="#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",Ko="#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",Zo="#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",Jo="#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",Qo="vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",es="#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",ts="vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",ns="#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",is="#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",rs="float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",as="#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",os="#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",ss="#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",ls="#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",cs="float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",us="#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",hs="#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tuniform int boneTextureSize;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tfloat j = i * 4.0;\n\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\ty = dy * ( y + 0.5 );\n\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\treturn bone;\n\t}\n#endif",ds="#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",ps="#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",fs="float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",ms="#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",gs="#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",vs="#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",ys="#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",_s="#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",xs="#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",bs="#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",ws="#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",Ss="#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif";const Ms="varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",Cs="uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",Ts="varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",Es="#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",As="varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",ks="uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",Ds="#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",Is="#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <logdepthbuf_fragment>\n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",Ps="#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",Os="#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",Ls="varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",Rs="uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",Ns="uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",Fs="uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",Bs="#include <common>\n#include <uv_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinbase_vertex>\n\t\t#include <skinnormal_vertex>\n\t\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",zs="uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",Vs="#define LAMBERT\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",Us="#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_lambert_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_lambert_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",Hs="#define MATCAP\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",$s="#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",js="#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",Ws="#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",Gs="#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",qs="#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",Xs="#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",Ys="#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\tuniform vec2 anisotropyVector;\n\t#ifdef USE_ANISOTROPYMAP\n\t\tuniform sampler2D anisotropyMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <iridescence_fragment>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <iridescence_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include <transmission_fragment>\n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;\n\t#endif\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",Ks="#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",Zs="#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",Js="uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",Qs="uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",el="#include <common>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",tl="uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <logdepthbuf_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\t#include <logdepthbuf_fragment>\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n}",nl="uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",il="uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n}",rl={alphahash_fragment:Ta,alphahash_pars_fragment:Ea,alphamap_fragment:Aa,alphamap_pars_fragment:ka,alphatest_fragment:Da,alphatest_pars_fragment:Ia,aomap_fragment:Pa,aomap_pars_fragment:Oa,begin_vertex:La,beginnormal_vertex:Ra,bsdfs:Na,iridescence_fragment:Fa,bumpmap_pars_fragment:Ba,clipping_planes_fragment:za,clipping_planes_pars_fragment:Va,clipping_planes_pars_vertex:Ua,clipping_planes_vertex:Ha,color_fragment:$a,color_pars_fragment:ja,color_pars_vertex:Wa,color_vertex:Ga,common:qa,cube_uv_reflection_fragment:Xa,defaultnormal_vertex:Ya,displacementmap_pars_vertex:Ka,displacementmap_vertex:Za,emissivemap_fragment:Ja,emissivemap_pars_fragment:Qa,colorspace_fragment:eo,colorspace_pars_fragment:to,envmap_fragment:no,envmap_common_pars_fragment:io,envmap_pars_fragment:ro,envmap_pars_vertex:ao,envmap_physical_pars_fragment:yo,envmap_vertex:oo,fog_vertex:so,fog_pars_vertex:lo,fog_fragment:co,fog_pars_fragment:uo,gradientmap_pars_fragment:ho,lightmap_fragment:po,lightmap_pars_fragment:fo,lights_lambert_fragment:mo,lights_lambert_pars_fragment:go,lights_pars_begin:vo,lights_toon_fragment:_o,lights_toon_pars_fragment:xo,lights_phong_fragment:bo,lights_phong_pars_fragment:wo,lights_physical_fragment:So,lights_physical_pars_fragment:Mo,lights_fragment_begin:Co,lights_fragment_maps:To,lights_fragment_end:Eo,logdepthbuf_fragment:Ao,logdepthbuf_pars_fragment:ko,logdepthbuf_pars_vertex:Do,logdepthbuf_vertex:Io,map_fragment:Po,map_pars_fragment:Oo,map_particle_fragment:Lo,map_particle_pars_fragment:Ro,metalnessmap_fragment:No,metalnessmap_pars_fragment:Fo,morphcolor_vertex:Bo,morphnormal_vertex:zo,morphtarget_pars_vertex:Vo,morphtarget_vertex:Uo,normal_fragment_begin:Ho,normal_fragment_maps:$o,normal_pars_fragment:jo,normal_pars_vertex:Wo,normal_vertex:Go,normalmap_pars_fragment:qo,clearcoat_normal_fragment_begin:Xo,clearcoat_normal_fragment_maps:Yo,clearcoat_pars_fragment:Ko,iridescence_pars_fragment:Zo,opaque_fragment:Jo,packing:Qo,premultiplied_alpha_fragment:es,project_vertex:ts,dithering_fragment:ns,dithering_pars_fragment:is,roughnessmap_fragment:rs,roughnessmap_pars_fragment:as,shadowmap_pars_fragment:os,shadowmap_pars_vertex:ss,shadowmap_vertex:ls,shadowmask_pars_fragment:cs,skinbase_vertex:us,skinning_pars_vertex:hs,skinning_vertex:ds,skinnormal_vertex:ps,specularmap_fragment:fs,specularmap_pars_fragment:ms,tonemapping_fragment:gs,tonemapping_pars_fragment:vs,transmission_fragment:ys,transmission_pars_fragment:_s,uv_pars_fragment:xs,uv_pars_vertex:bs,uv_vertex:ws,worldpos_vertex:Ss,background_vert:Ms,background_frag:Cs,backgroundCube_vert:Ts,backgroundCube_frag:Es,cube_vert:As,cube_frag:ks,depth_vert:Ds,depth_frag:Is,distanceRGBA_vert:Ps,distanceRGBA_frag:Os,equirect_vert:Ls,equirect_frag:Rs,linedashed_vert:Ns,linedashed_frag:Fs,meshbasic_vert:Bs,meshbasic_frag:zs,meshlambert_vert:Vs,meshlambert_frag:Us,meshmatcap_vert:Hs,meshmatcap_frag:$s,meshnormal_vert:js,meshnormal_frag:Ws,meshphong_vert:Gs,meshphong_frag:qs,meshphysical_vert:Xs,meshphysical_frag:Ys,meshtoon_vert:Ks,meshtoon_frag:Zs,points_vert:Js,points_frag:Qs,shadow_vert:el,shadow_frag:tl,sprite_vert:nl,sprite_frag:il},al={common:{diffuse:{value:new vr(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Mn},alphaMap:{value:null},alphaMapTransform:{value:new Mn},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Mn}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Mn}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Mn}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Mn},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Mn},normalScale:{value:new Sn(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Mn},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Mn}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Mn}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Mn}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new vr(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new vr(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Mn},alphaTest:{value:0},uvTransform:{value:new Mn}},sprite:{diffuse:{value:new vr(16777215)},opacity:{value:1},center:{value:new Sn(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Mn},alphaMap:{value:null},alphaMapTransform:{value:new Mn},alphaTest:{value:0}}},ol={basic:{uniforms:na([al.common,al.specularmap,al.envmap,al.aomap,al.lightmap,al.fog]),vertexShader:rl.meshbasic_vert,fragmentShader:rl.meshbasic_frag},lambert:{uniforms:na([al.common,al.specularmap,al.envmap,al.aomap,al.lightmap,al.emissivemap,al.bumpmap,al.normalmap,al.displacementmap,al.fog,al.lights,{emissive:{value:new vr(0)}}]),vertexShader:rl.meshlambert_vert,fragmentShader:rl.meshlambert_frag},phong:{uniforms:na([al.common,al.specularmap,al.envmap,al.aomap,al.lightmap,al.emissivemap,al.bumpmap,al.normalmap,al.displacementmap,al.fog,al.lights,{emissive:{value:new vr(0)},specular:{value:new vr(1118481)},shininess:{value:30}}]),vertexShader:rl.meshphong_vert,fragmentShader:rl.meshphong_frag},standard:{uniforms:na([al.common,al.envmap,al.aomap,al.lightmap,al.emissivemap,al.bumpmap,al.normalmap,al.displacementmap,al.roughnessmap,al.metalnessmap,al.fog,al.lights,{emissive:{value:new vr(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:rl.meshphysical_vert,fragmentShader:rl.meshphysical_frag},toon:{uniforms:na([al.common,al.aomap,al.lightmap,al.emissivemap,al.bumpmap,al.normalmap,al.displacementmap,al.gradientmap,al.fog,al.lights,{emissive:{value:new vr(0)}}]),vertexShader:rl.meshtoon_vert,fragmentShader:rl.meshtoon_frag},matcap:{uniforms:na([al.common,al.bumpmap,al.normalmap,al.displacementmap,al.fog,{matcap:{value:null}}]),vertexShader:rl.meshmatcap_vert,fragmentShader:rl.meshmatcap_frag},points:{uniforms:na([al.points,al.fog]),vertexShader:rl.points_vert,fragmentShader:rl.points_frag},dashed:{uniforms:na([al.common,al.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:rl.linedashed_vert,fragmentShader:rl.linedashed_frag},depth:{uniforms:na([al.common,al.displacementmap]),vertexShader:rl.depth_vert,fragmentShader:rl.depth_frag},normal:{uniforms:na([al.common,al.bumpmap,al.normalmap,al.displacementmap,{opacity:{value:1}}]),vertexShader:rl.meshnormal_vert,fragmentShader:rl.meshnormal_frag},sprite:{uniforms:na([al.sprite,al.fog]),vertexShader:rl.sprite_vert,fragmentShader:rl.sprite_frag},background:{uniforms:{uvTransform:{value:new Mn},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:rl.background_vert,fragmentShader:rl.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:rl.backgroundCube_vert,fragmentShader:rl.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:rl.cube_vert,fragmentShader:rl.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:rl.equirect_vert,fragmentShader:rl.equirect_frag},distanceRGBA:{uniforms:na([al.common,al.displacementmap,{referencePosition:{value:new Zn},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:rl.distanceRGBA_vert,fragmentShader:rl.distanceRGBA_frag},shadow:{uniforms:na([al.lights,al.fog,{color:{value:new vr(0)},opacity:{value:1}}]),vertexShader:rl.shadow_vert,fragmentShader:rl.shadow_frag}};ol.physical={uniforms:na([ol.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Mn},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Mn},clearcoatNormalScale:{value:new Sn(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Mn},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Mn},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Mn},sheen:{value:0},sheenColor:{value:new vr(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Mn},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Mn},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Mn},transmissionSamplerSize:{value:new Sn},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Mn},attenuationDistance:{value:0},attenuationColor:{value:new vr(0)},specularColor:{value:new vr(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Mn},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Mn},anisotropyVector:{value:new Sn},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Mn}}]),vertexShader:rl.meshphysical_vert,fragmentShader:rl.meshphysical_frag};const sl={r:0,b:0,g:0};function ll(e,t,n,i,r,a,o){const s=new vr(0);let l,c,u=!0===a?0:1,h=null,f=0,m=null;function g(a,g){let y=!1,_=!0===g.isScene?g.background:null;if(_&&_.isTexture){const e=g.backgroundBlurriness>0;_=(e?n:t).get(_)}null===_?v(s,u):_&&_.isColor&&(v(_,1),y=!0);const x=e.xr,b=x.getEnvironmentBlendMode();switch(b){case"opaque":y=!0;break;case"additive":i.buffers.color.setClear(0,0,0,1,o),y=!0;break;case"alpha-blend":i.buffers.color.setClear(0,0,0,0,o),y=!0;break}(e.autoClear||y)&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),_&&(_.isCubeTexture||_.mapping===ae)?(void 0===c&&(c=new Zr(new ea(1,1,1),new la({name:"BackgroundCubeMaterial",uniforms:ta(ol.backgroundCube.uniforms),vertexShader:ol.backgroundCube.vertexShader,fragmentShader:ol.backgroundCube.fragmentShader,side:p,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),c.geometry.deleteAttribute("uv"),c.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(c.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(c)),c.material.uniforms.envMap.value=_,c.material.uniforms.flipEnvMap.value=_.isCubeTexture&&!1===_.isRenderTargetTexture?-1:1,c.material.uniforms.backgroundBlurriness.value=g.backgroundBlurriness,c.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,c.material.toneMapped=_.colorSpace!==Dt,h===_&&f===_.version&&m===e.toneMapping||(c.material.needsUpdate=!0,h=_,f=_.version,m=e.toneMapping),c.layers.enableAll(),a.unshift(c,c.geometry,c.material,0,0,null)):_&&_.isTexture&&(void 0===l&&(l=new Zr(new Ca(2,2),new la({name:"BackgroundMaterial",uniforms:ta(ol.background.uniforms),vertexShader:ol.background.vertexShader,fragmentShader:ol.background.fragmentShader,side:d,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),Object.defineProperty(l.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(l)),l.material.uniforms.t2D.value=_,l.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,l.material.toneMapped=_.colorSpace!==Dt,!0===_.matrixAutoUpdate&&_.updateMatrix(),l.material.uniforms.uvTransform.value.copy(_.matrix),h===_&&f===_.version&&m===e.toneMapping||(l.material.needsUpdate=!0,h=_,f=_.version,m=e.toneMapping),l.layers.enableAll(),a.unshift(l,l.geometry,l.material,0,0,null))}function v(t,n){t.getRGB(sl,ra(e)),i.buffers.color.setClear(sl.r,sl.g,sl.b,n,o)}return{getClearColor:function(){return s},setClearColor:function(e,t=1){s.set(e),u=t,v(s,u)},getClearAlpha:function(){return u},setClearAlpha:function(e){u=e,v(s,u)},render:g}}function cl(e,t,n,i){const r=e.getParameter(e.MAX_VERTEX_ATTRIBS),a=i.isWebGL2?null:t.get("OES_vertex_array_object"),o=i.isWebGL2||null!==a,s={},l=g(null);let c=l,u=!1;function h(t,i,r,a,s){let l=!1;if(o){const e=m(a,r,i);c!==e&&(c=e,p(c.object)),l=v(t,a,r,s),l&&y(t,a,r,s)}else{const e=!0===i.wireframe;c.geometry===a.id&&c.program===r.id&&c.wireframe===e||(c.geometry=a.id,c.program=r.id,c.wireframe=e,l=!0)}null!==s&&n.update(s,e.ELEMENT_ARRAY_BUFFER),(l||u)&&(u=!1,M(t,i,r,a),null!==s&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,n.get(s).buffer))}function d(){return i.isWebGL2?e.createVertexArray():a.createVertexArrayOES()}function p(t){return i.isWebGL2?e.bindVertexArray(t):a.bindVertexArrayOES(t)}function f(t){return i.isWebGL2?e.deleteVertexArray(t):a.deleteVertexArrayOES(t)}function m(e,t,n){const i=!0===n.wireframe;let r=s[e.id];void 0===r&&(r={},s[e.id]=r);let a=r[t.id];void 0===a&&(a={},r[t.id]=a);let o=a[i];return void 0===o&&(o=g(d()),a[i]=o),o}function g(e){const t=[],n=[],i=[];for(let a=0;a<r;a++)t[a]=0,n[a]=0,i[a]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:t,enabledAttributes:n,attributeDivisors:i,object:e,attributes:{},index:null}}function v(e,t,n,i){const r=c.attributes,a=t.attributes;let o=0;const s=n.getAttributes();for(const l in s){const t=s[l];if(t.location>=0){const t=r[l];let n=a[l];if(void 0===n&&("instanceMatrix"===l&&e.instanceMatrix&&(n=e.instanceMatrix),"instanceColor"===l&&e.instanceColor&&(n=e.instanceColor)),void 0===t)return!0;if(t.attribute!==n)return!0;if(n&&t.data!==n.data)return!0;o++}}return c.attributesNum!==o||c.index!==i}function y(e,t,n,i){const r={},a=t.attributes;let o=0;const s=n.getAttributes();for(const l in s){const t=s[l];if(t.location>=0){let t=a[l];void 0===t&&("instanceMatrix"===l&&e.instanceMatrix&&(t=e.instanceMatrix),"instanceColor"===l&&e.instanceColor&&(t=e.instanceColor));const n={};n.attribute=t,t&&t.data&&(n.data=t.data),r[l]=n,o++}}c.attributes=r,c.attributesNum=o,c.index=i}function _(){const e=c.newAttributes;for(let t=0,n=e.length;t<n;t++)e[t]=0}function x(e){b(e,0)}function b(n,r){const a=c.newAttributes,o=c.enabledAttributes,s=c.attributeDivisors;if(a[n]=1,0===o[n]&&(e.enableVertexAttribArray(n),o[n]=1),s[n]!==r){const a=i.isWebGL2?e:t.get("ANGLE_instanced_arrays");a[i.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,r),s[n]=r}}function w(){const t=c.newAttributes,n=c.enabledAttributes;for(let i=0,r=n.length;i<r;i++)n[i]!==t[i]&&(e.disableVertexAttribArray(i),n[i]=0)}function S(t,n,i,r,a,o,s){!0===s?e.vertexAttribIPointer(t,n,i,a,o):e.vertexAttribPointer(t,n,i,r,a,o)}function M(r,a,o,s){if(!1===i.isWebGL2&&(r.isInstancedMesh||s.isInstancedBufferGeometry)&&null===t.get("ANGLE_instanced_arrays"))return;_();const l=s.attributes,c=o.getAttributes(),u=a.defaultAttributeValues;for(const t in c){const a=c[t];if(a.location>=0){let o=l[t];if(void 0===o&&("instanceMatrix"===t&&r.instanceMatrix&&(o=r.instanceMatrix),"instanceColor"===t&&r.instanceColor&&(o=r.instanceColor)),void 0!==o){const t=o.normalized,l=o.itemSize,c=n.get(o);if(void 0===c)continue;const u=c.buffer,h=c.type,d=c.bytesPerElement,p=!0===i.isWebGL2&&(h===e.INT||h===e.UNSIGNED_INT||o.gpuType===_e);if(o.isInterleavedBufferAttribute){const n=o.data,i=n.stride,c=o.offset;if(n.isInstancedInterleavedBuffer){for(let e=0;e<a.locationSize;e++)b(a.location+e,n.meshPerAttribute);!0!==r.isInstancedMesh&&void 0===s._maxInstanceCount&&(s._maxInstanceCount=n.meshPerAttribute*n.count)}else for(let e=0;e<a.locationSize;e++)x(a.location+e);e.bindBuffer(e.ARRAY_BUFFER,u);for(let e=0;e<a.locationSize;e++)S(a.location+e,l/a.locationSize,h,t,i*d,(c+l/a.locationSize*e)*d,p)}else{if(o.isInstancedBufferAttribute){for(let e=0;e<a.locationSize;e++)b(a.location+e,o.meshPerAttribute);!0!==r.isInstancedMesh&&void 0===s._maxInstanceCount&&(s._maxInstanceCount=o.meshPerAttribute*o.count)}else for(let e=0;e<a.locationSize;e++)x(a.location+e);e.bindBuffer(e.ARRAY_BUFFER,u);for(let e=0;e<a.locationSize;e++)S(a.location+e,l/a.locationSize,h,t,l*d,l/a.locationSize*e*d,p)}}else if(void 0!==u){const n=u[t];if(void 0!==n)switch(n.length){case 2:e.vertexAttrib2fv(a.location,n);break;case 3:e.vertexAttrib3fv(a.location,n);break;case 4:e.vertexAttrib4fv(a.location,n);break;default:e.vertexAttrib1fv(a.location,n)}}}}w()}function C(){A();for(const e in s){const t=s[e];for(const e in t){const n=t[e];for(const e in n)f(n[e].object),delete n[e];delete t[e]}delete s[e]}}function T(e){if(void 0===s[e.id])return;const t=s[e.id];for(const n in t){const e=t[n];for(const t in e)f(e[t].object),delete e[t];delete t[n]}delete s[e.id]}function E(e){for(const t in s){const n=s[t];if(void 0===n[e.id])continue;const i=n[e.id];for(const e in i)f(i[e].object),delete i[e];delete n[e.id]}}function A(){k(),u=!0,c!==l&&(c=l,p(c.object))}function k(){l.geometry=null,l.program=null,l.wireframe=!1}return{setup:h,reset:A,resetDefaultState:k,dispose:C,releaseStatesOfGeometry:T,releaseStatesOfProgram:E,initAttributes:_,enableAttribute:x,disableUnusedAttributes:w}}function ul(e,t,n,i){const r=i.isWebGL2;let a;function o(e){a=e}function s(t,i){e.drawArrays(a,t,i),n.update(i,a,1)}function l(i,o,s){if(0===s)return;let l,c;if(r)l=e,c="drawArraysInstanced";else if(l=t.get("ANGLE_instanced_arrays"),c="drawArraysInstancedANGLE",null===l)return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");l[c](a,i,o,s),n.update(o,a,s)}this.setMode=o,this.render=s,this.renderInstances=l}function hl(e,t,n){let i;function r(){if(void 0!==i)return i;if(!0===t.has("EXT_texture_filter_anisotropic")){const n=t.get("EXT_texture_filter_anisotropic");i=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i}function a(t){if("highp"===t){if(e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o="undefined"!==typeof WebGL2RenderingContext&&"WebGL2RenderingContext"===e.constructor.name;let s=void 0!==n.precision?n.precision:"highp";const l=a(s);l!==s&&(console.warn("THREE.WebGLRenderer:",s,"not supported, using",l,"instead."),s=l);const c=o||t.has("WEBGL_draw_buffers"),u=!0===n.logarithmicDepthBuffer,h=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),d=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),p=e.getParameter(e.MAX_TEXTURE_SIZE),f=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),m=e.getParameter(e.MAX_VERTEX_ATTRIBS),g=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),v=e.getParameter(e.MAX_VARYING_VECTORS),y=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),_=d>0,x=o||t.has("OES_texture_float"),b=_&&x,w=o?e.getParameter(e.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:c,getMaxAnisotropy:r,getMaxPrecision:a,precision:s,logarithmicDepthBuffer:u,maxTextures:h,maxVertexTextures:d,maxTextureSize:p,maxCubemapSize:f,maxAttributes:m,maxVertexUniforms:g,maxVaryings:v,maxFragmentUniforms:y,vertexTextures:_,floatFragmentTextures:x,floatVertexTextures:b,maxSamples:w}}function dl(e){const t=this;let n=null,i=0,r=!1,a=!1;const o=new _a,s=new Mn,l={value:null,needsUpdate:!1};function c(){l.value!==n&&(l.value=n,l.needsUpdate=i>0),t.numPlanes=i,t.numIntersection=0}function u(e,n,i,r){const a=null!==e?e.length:0;let c=null;if(0!==a){if(c=l.value,!0!==r||null===c){const t=i+4*a,r=n.matrixWorldInverse;s.getNormalMatrix(r),(null===c||c.length<t)&&(c=new Float32Array(t));for(let n=0,l=i;n!==a;++n,l+=4)o.copy(e[n]).applyMatrix4(r,s),o.normal.toArray(c,l),c[l+3]=o.constant}l.value=c,l.needsUpdate=!0}return t.numPlanes=a,t.numIntersection=0,c}this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){const n=0!==e.length||t||0!==i||r;return r=t,i=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(t,o,s){const h=t.clippingPlanes,d=t.clipIntersection,p=t.clipShadows,f=e.get(t);if(!r||null===h||0===h.length||a&&!p)a?u(null):c();else{const e=a?0:i,t=4*e;let r=f.clippingState||null;l.value=r,r=u(h,o,t,s);for(let i=0;i!==t;++i)r[i]=n[i];f.clippingState=r,this.numIntersection=d?this.numPlanes:0,this.numPlanes+=e}}}function pl(e){let t=new WeakMap;function n(e,t){return t===ie?e.mapping=te:t===re&&(e.mapping=ne),e}function i(i){if(i&&i.isTexture&&!1===i.isRenderTargetTexture){const a=i.mapping;if(a===ie||a===re){if(t.has(i)){const e=t.get(i).texture;return n(e,i.mapping)}{const a=i.image;if(a&&a.height>0){const o=new ma(a.height/2);return o.fromEquirectangularTexture(e,i),t.set(i,o),i.addEventListener("dispose",r),n(o.texture,i.mapping)}return null}}}return i}function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}function a(){t=new WeakMap}return{get:i,dispose:a}}class fl extends ca{constructor(e=-1,t=1,n=1,i=-1,r=.1,a=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=i,this.near=r,this.far=a,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}setViewOffset(e,t,n,i,r,a){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let r=n-e,a=n+e,o=i+t,s=i-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=e*this.view.offsetX,a=r+e*this.view.width,o-=t*this.view.offsetY,s=o-t*this.view.height}this.projectionMatrix.makeOrthographic(r,a,o,s,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}const ml=4,gl=[.125,.215,.35,.446,.526,.582],vl=20,yl=new fl,_l=new vr;let xl=null;const bl=(1+Math.sqrt(5))/2,wl=1/bl,Sl=[new Zn(1,1,1),new Zn(-1,1,1),new Zn(1,1,-1),new Zn(-1,1,-1),new Zn(0,bl,wl),new Zn(0,bl,-wl),new Zn(wl,0,bl),new Zn(-wl,0,bl),new Zn(bl,wl,0),new Zn(-bl,wl,0)];class Ml{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,i=100){xl=this._renderer.getRenderTarget(),this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,n,i,r),t>0&&this._blur(r,0,0,t),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=Dl(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=kl(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(xl),e.scissorTest=!1,El(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===te||e.mapping===ne?this._setSize(0===e.image.length?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),xl=this._renderer.getRenderTarget();const n=t||this._allocateTargets();return this._textureToCubeUV(e,n),this._applyPMREM(n),this._cleanup(n),n}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,n={magFilter:de,minFilter:de,generateMipmaps:!1,type:we,format:Ee,colorSpace:It,depthBuffer:!1},i=Tl(e,t,n);if(null===this._pingPongRenderTarget||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){null!==this._pingPongRenderTarget&&this._dispose(),this._pingPongRenderTarget=Tl(e,t,n);const{_lodMax:i}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=Cl(i)),this._blurMaterial=Al(i,e,t)}return i}_compileMaterial(e){const t=new Zr(this._lodPlanes[0],e);this._renderer.compile(t,yl)}_sceneToCubeUV(e,t,n,i){const r=90,a=1,o=new ua(r,a,t,n),s=[1,-1,1,1,1,1],l=[1,1,1,-1,-1,-1],c=this._renderer,u=c.autoClear,h=c.toneMapping;c.getClearColor(_l),c.toneMapping=X,c.autoClear=!1;const d=new _r({name:"PMREM.Background",side:p,depthWrite:!1,depthTest:!1}),f=new Zr(new ea,d);let m=!1;const g=e.background;g?g.isColor&&(d.color.copy(g),e.background=null,m=!0):(d.color.copy(_l),m=!0);for(let p=0;p<6;p++){const t=p%3;0===t?(o.up.set(0,s[p],0),o.lookAt(l[p],0,0)):1===t?(o.up.set(0,0,s[p]),o.lookAt(0,l[p],0)):(o.up.set(0,s[p],0),o.lookAt(0,0,l[p]));const n=this._cubeSize;El(i,t*n,p>2?n:0,n,n),c.setRenderTarget(i),m&&c.render(f,o),c.render(e,o)}f.geometry.dispose(),f.material.dispose(),c.toneMapping=h,c.autoClear=u,e.background=g}_textureToCubeUV(e,t){const n=this._renderer,i=e.mapping===te||e.mapping===ne;i?(null===this._cubemapMaterial&&(this._cubemapMaterial=Dl()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=kl());const r=i?this._cubemapMaterial:this._equirectMaterial,a=new Zr(this._lodPlanes[0],r),o=r.uniforms;o["envMap"].value=e;const s=this._cubeSize;El(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,yl)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;for(let i=1;i<this._lodPlanes.length;i++){const t=Math.sqrt(this._sigmas[i]*this._sigmas[i]-this._sigmas[i-1]*this._sigmas[i-1]),n=Sl[(i-1)%Sl.length];this._blur(e,i-1,i,t,n)}t.autoClear=n}_blur(e,t,n,i,r){const a=this._pingPongRenderTarget;this._halfBlur(e,a,t,n,i,"latitudinal",r),this._halfBlur(a,e,n,n,i,"longitudinal",r)}_halfBlur(e,t,n,i,r,a,o){const s=this._renderer,l=this._blurMaterial;"latitudinal"!==a&&"longitudinal"!==a&&console.error("blur direction must be either latitudinal or longitudinal!");const c=3,u=new Zr(this._lodPlanes[i],l),h=l.uniforms,d=this._sizeLods[n]-1,p=isFinite(r)?Math.PI/(2*d):2*Math.PI/(2*vl-1),f=r/p,m=isFinite(r)?1+Math.floor(c*f):vl;m>vl&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${m} samples when the maximum is set to ${vl}`);const g=[];let v=0;for(let w=0;w<vl;++w){const e=w/f,t=Math.exp(-e*e/2);g.push(t),0===w?v+=t:w<m&&(v+=2*t)}for(let w=0;w<g.length;w++)g[w]=g[w]/v;h["envMap"].value=e.texture,h["samples"].value=m,h["weights"].value=g,h["latitudinal"].value="latitudinal"===a,o&&(h["poleAxis"].value=o);const{_lodMax:y}=this;h["dTheta"].value=p,h["mipInt"].value=y-n;const _=this._sizeLods[i],x=3*_*(i>y-ml?i-y+ml:0),b=4*(this._cubeSize-_);El(t,x,b,3*_,2*_),s.setRenderTarget(t),s.render(u,yl)}}function Cl(e){const t=[],n=[],i=[];let r=e;const a=e-ml+1+gl.length;for(let o=0;o<a;o++){const a=Math.pow(2,r);n.push(a);let s=1/a;o>e-ml?s=gl[o-e+ml-1]:0===o&&(s=0),i.push(s);const l=1/(a-2),c=-l,u=1+l,h=[c,c,u,c,u,u,c,c,u,u,c,u],d=6,p=6,f=3,m=2,g=1,v=new Float32Array(f*p*d),y=new Float32Array(m*p*d),_=new Float32Array(g*p*d);for(let e=0;e<d;e++){const t=e%3*2/3-1,n=e>2?0:-1,i=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];v.set(i,f*p*e),y.set(h,m*p*e);const r=[e,e,e,e,e,e];_.set(r,g*p*e)}const x=new Or;x.setAttribute("position",new wr(v,f)),x.setAttribute("uv",new wr(y,m)),x.setAttribute("faceIndex",new wr(_,g)),t.push(x),r>ml&&r--}return{lodPlanes:t,sizeLods:n,sigmas:i}}function Tl(e,t,n){const i=new qn(e,t,n);return i.texture.mapping=ae,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function El(e,t,n,i,r){e.viewport.set(t,n,i,r),e.scissor.set(t,n,i,r)}function Al(e,t,n){const i=new Float32Array(vl),r=new Zn(0,1,0),a=new la({name:"SphericalGaussianBlur",defines:{n:vl,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:Il(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:m,depthTest:!1,depthWrite:!1});return a}function kl(){return new la({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:Il(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:m,depthTest:!1,depthWrite:!1})}function Dl(){return new la({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Il(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:m,depthTest:!1,depthWrite:!1})}function Il(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function Pl(e){let t=new WeakMap,n=null;function i(i){if(i&&i.isTexture){const o=i.mapping,s=o===ie||o===re,l=o===te||o===ne;if(s||l){if(i.isRenderTargetTexture&&!0===i.needsPMREMUpdate){i.needsPMREMUpdate=!1;let r=t.get(i);return null===n&&(n=new Ml(e)),r=s?n.fromEquirectangular(i,r):n.fromCubemap(i,r),t.set(i,r),r.texture}if(t.has(i))return t.get(i).texture;{const o=i.image;if(s&&o&&o.height>0||l&&o&&r(o)){null===n&&(n=new Ml(e));const r=s?n.fromEquirectangular(i):n.fromCubemap(i);return t.set(i,r),i.addEventListener("dispose",a),r.texture}return null}}}return i}function r(e){let t=0;const n=6;for(let i=0;i<n;i++)void 0!==e[i]&&t++;return t===n}function a(e){const n=e.target;n.removeEventListener("dispose",a);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}function o(){t=new WeakMap,null!==n&&(n.dispose(),n=null)}return{get:i,dispose:o}}function Ol(e){const t={};function n(n){if(void 0!==t[n])return t[n];let i;switch(n){case"WEBGL_depth_texture":i=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=e.getExtension(n)}return t[n]=i,i}return{has:function(e){return null!==n(e)},init:function(e){e.isWebGL2?n("EXT_color_buffer_float"):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture")},get:function(e){const t=n(e);return null===t&&console.warn("THREE.WebGLRenderer: "+e+" extension not supported."),t}}}function Ll(e,t,n,i){const r={},a=new WeakMap;function o(e){const s=e.target;null!==s.index&&t.remove(s.index);for(const n in s.attributes)t.remove(s.attributes[n]);for(const n in s.morphAttributes){const e=s.morphAttributes[n];for(let n=0,i=e.length;n<i;n++)t.remove(e[n])}s.removeEventListener("dispose",o),delete r[s.id];const l=a.get(s);l&&(t.remove(l),a.delete(s)),i.releaseStatesOfGeometry(s),!0===s.isInstancedBufferGeometry&&delete s._maxInstanceCount,n.memory.geometries--}function s(e,t){return!0===r[t.id]||(t.addEventListener("dispose",o),r[t.id]=!0,n.memory.geometries++),t}function l(n){const i=n.attributes;for(const a in i)t.update(i[a],e.ARRAY_BUFFER);const r=n.morphAttributes;for(const a in r){const n=r[a];for(let i=0,r=n.length;i<r;i++)t.update(n[i],e.ARRAY_BUFFER)}}function c(e){const n=[],i=e.index,r=e.attributes.position;let o=0;if(null!==i){const e=i.array;o=i.version;for(let t=0,i=e.length;t<i;t+=3){const i=e[t+0],r=e[t+1],a=e[t+2];n.push(i,r,r,a,a,i)}}else{const e=r.array;o=r.version;for(let t=0,i=e.length/3-1;t<i;t+=3){const e=t+0,i=t+1,r=t+2;n.push(e,i,i,r,r,e)}}const s=new(Tn(n)?Mr:Sr)(n,1);s.version=o;const l=a.get(e);l&&t.remove(l),a.set(e,s)}function u(e){const t=a.get(e);if(t){const n=e.index;null!==n&&t.version<n.version&&c(e)}else c(e);return a.get(e)}return{get:s,update:l,getWireframeAttribute:u}}function Rl(e,t,n,i){const r=i.isWebGL2;let a,o,s;function l(e){a=e}function c(e){o=e.type,s=e.bytesPerElement}function u(t,i){e.drawElements(a,i,o,t*s),n.update(i,a,1)}function h(i,l,c){if(0===c)return;let u,h;if(r)u=e,h="drawElementsInstanced";else if(u=t.get("ANGLE_instanced_arrays"),h="drawElementsInstancedANGLE",null===u)return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");u[h](a,l,o,i*s,c),n.update(l,a,c)}this.setMode=l,this.setIndex=c,this.render=u,this.renderInstances=h}function Nl(e){const t={geometries:0,textures:0},n={frame:0,calls:0,triangles:0,points:0,lines:0};function i(t,i,r){switch(n.calls++,i){case e.TRIANGLES:n.triangles+=r*(t/3);break;case e.LINES:n.lines+=r*(t/2);break;case e.LINE_STRIP:n.lines+=r*(t-1);break;case e.LINE_LOOP:n.lines+=r*t;break;case e.POINTS:n.points+=r*t;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",i);break}}function r(){n.calls=0,n.triangles=0,n.points=0,n.lines=0}return{memory:t,render:n,programs:null,autoReset:!0,reset:r,update:i}}function Fl(e,t){return e[0]-t[0]}function Bl(e,t){return Math.abs(t[1])-Math.abs(e[1])}function zl(e,t,n){const i={},r=new Float32Array(8),a=new WeakMap,o=new Gn,s=[];for(let c=0;c<8;c++)s[c]=[c,0];function l(l,c,u){const h=l.morphTargetInfluences;if(!0===t.isWebGL2){const d=c.morphAttributes.position||c.morphAttributes.normal||c.morphAttributes.color,p=void 0!==d?d.length:0;let f=a.get(c);if(void 0===f||f.count!==p){void 0!==f&&f.texture.dispose();const v=void 0!==c.morphAttributes.position,y=void 0!==c.morphAttributes.normal,_=void 0!==c.morphAttributes.color,x=c.morphAttributes.position||[],b=c.morphAttributes.normal||[],w=c.morphAttributes.color||[];let S=0;!0===v&&(S=1),!0===y&&(S=2),!0===_&&(S=3);let M=c.attributes.position.count*S,C=1;M>t.maxTextureSize&&(C=Math.ceil(M/t.maxTextureSize),M=t.maxTextureSize);const T=new Float32Array(M*C*4*p),E=new Xn(T,M,C,p);E.type=be,E.needsUpdate=!0;const A=4*S;for(let D=0;D<p;D++){const I=x[D],P=b[D],O=w[D],L=M*C*4*D;for(let R=0;R<I.count;R++){const N=R*A;!0===v&&(o.fromBufferAttribute(I,R),T[L+N+0]=o.x,T[L+N+1]=o.y,T[L+N+2]=o.z,T[L+N+3]=0),!0===y&&(o.fromBufferAttribute(P,R),T[L+N+4]=o.x,T[L+N+5]=o.y,T[L+N+6]=o.z,T[L+N+7]=0),!0===_&&(o.fromBufferAttribute(O,R),T[L+N+8]=o.x,T[L+N+9]=o.y,T[L+N+10]=o.z,T[L+N+11]=4===O.itemSize?o.w:1)}}function k(){E.dispose(),a.delete(c),c.removeEventListener("dispose",k)}f={count:p,texture:E,size:new Sn(M,C)},a.set(c,f),c.addEventListener("dispose",k)}let m=0;for(let F=0;F<h.length;F++)m+=h[F];const g=c.morphTargetsRelative?1:1-m;u.getUniforms().setValue(e,"morphTargetBaseInfluence",g),u.getUniforms().setValue(e,"morphTargetInfluences",h),u.getUniforms().setValue(e,"morphTargetsTexture",f.texture,n),u.getUniforms().setValue(e,"morphTargetsTextureSize",f.size)}else{const B=void 0===h?0:h.length;let z=i[c.id];if(void 0===z||z.length!==B){z=[];for(let j=0;j<B;j++)z[j]=[j,0];i[c.id]=z}for(let W=0;W<B;W++){const G=z[W];G[0]=W,G[1]=h[W]}z.sort(Bl);for(let q=0;q<8;q++)q<B&&z[q][1]?(s[q][0]=z[q][0],s[q][1]=z[q][1]):(s[q][0]=Number.MAX_SAFE_INTEGER,s[q][1]=0);s.sort(Fl);const V=c.morphAttributes.position,U=c.morphAttributes.normal;let H=0;for(let X=0;X<8;X++){const Y=s[X],K=Y[0],Z=Y[1];K!==Number.MAX_SAFE_INTEGER&&Z?(V&&c.getAttribute("morphTarget"+X)!==V[K]&&c.setAttribute("morphTarget"+X,V[K]),U&&c.getAttribute("morphNormal"+X)!==U[K]&&c.setAttribute("morphNormal"+X,U[K]),r[X]=Z,H+=Z):(V&&!0===c.hasAttribute("morphTarget"+X)&&c.deleteAttribute("morphTarget"+X),U&&!0===c.hasAttribute("morphNormal"+X)&&c.deleteAttribute("morphNormal"+X),r[X]=0)}const $=c.morphTargetsRelative?1:1-H;u.getUniforms().setValue(e,"morphTargetBaseInfluence",$),u.getUniforms().setValue(e,"morphTargetInfluences",r)}}return{update:l}}function Vl(e,t,n,i){let r=new WeakMap;function a(a){const o=i.render.frame,l=a.geometry,c=t.get(a,l);if(r.get(c)!==o&&(t.update(c),r.set(c,o)),a.isInstancedMesh&&(!1===a.hasEventListener("dispose",s)&&a.addEventListener("dispose",s),r.get(a)!==o&&(n.update(a.instanceMatrix,e.ARRAY_BUFFER),null!==a.instanceColor&&n.update(a.instanceColor,e.ARRAY_BUFFER),r.set(a,o))),a.isSkinnedMesh){const e=a.skeleton;r.get(e)!==o&&(e.update(),r.set(e,o))}return c}function o(){r=new WeakMap}function s(e){const t=e.target;t.removeEventListener("dispose",s),n.remove(t.instanceMatrix),null!==t.instanceColor&&n.remove(t.instanceColor)}return{update:a,dispose:o}}const Ul=new Wn,Hl=new Xn,$l=new Yn,jl=new fa,Wl=[],Gl=[],ql=new Float32Array(16),Xl=new Float32Array(9),Yl=new Float32Array(4);function Kl(e,t,n){const i=e[0];if(i<=0||i>0)return e;const r=t*n;let a=Wl[r];if(void 0===a&&(a=new Float32Array(r),Wl[r]=a),0!==t){i.toArray(a,0);for(let i=1,r=0;i!==t;++i)r+=n,e[i].toArray(a,r)}return a}function Zl(e,t){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(e[n]!==t[n])return!1;return!0}function Jl(e,t){for(let n=0,i=t.length;n<i;n++)e[n]=t[n]}function Ql(e,t){let n=Gl[t];void 0===n&&(n=new Int32Array(t),Gl[t]=n);for(let i=0;i!==t;++i)n[i]=e.allocateTextureUnit();return n}function ec(e,t){const n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}function tc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2f(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Zl(n,t))return;e.uniform2fv(this.addr,t),Jl(n,t)}}function nc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3f(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else if(void 0!==t.r)n[0]===t.r&&n[1]===t.g&&n[2]===t.b||(e.uniform3f(this.addr,t.r,t.g,t.b),n[0]=t.r,n[1]=t.g,n[2]=t.b);else{if(Zl(n,t))return;e.uniform3fv(this.addr,t),Jl(n,t)}}function ic(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4f(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Zl(n,t))return;e.uniform4fv(this.addr,t),Jl(n,t)}}function rc(e,t){const n=this.cache,i=t.elements;if(void 0===i){if(Zl(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),Jl(n,t)}else{if(Zl(n,i))return;Yl.set(i),e.uniformMatrix2fv(this.addr,!1,Yl),Jl(n,i)}}function ac(e,t){const n=this.cache,i=t.elements;if(void 0===i){if(Zl(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),Jl(n,t)}else{if(Zl(n,i))return;Xl.set(i),e.uniformMatrix3fv(this.addr,!1,Xl),Jl(n,i)}}function oc(e,t){const n=this.cache,i=t.elements;if(void 0===i){if(Zl(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),Jl(n,t)}else{if(Zl(n,i))return;ql.set(i),e.uniformMatrix4fv(this.addr,!1,ql),Jl(n,i)}}function sc(e,t){const n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}function lc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2i(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Zl(n,t))return;e.uniform2iv(this.addr,t),Jl(n,t)}}function cc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3i(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(Zl(n,t))return;e.uniform3iv(this.addr,t),Jl(n,t)}}function uc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4i(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Zl(n,t))return;e.uniform4iv(this.addr,t),Jl(n,t)}}function hc(e,t){const n=this.cache;n[0]!==t&&(e.uniform1ui(this.addr,t),n[0]=t)}function dc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2ui(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Zl(n,t))return;e.uniform2uiv(this.addr,t),Jl(n,t)}}function pc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3ui(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(Zl(n,t))return;e.uniform3uiv(this.addr,t),Jl(n,t)}}function fc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4ui(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Zl(n,t))return;e.uniform4uiv(this.addr,t),Jl(n,t)}}function mc(e,t,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTexture2D(t||Ul,r)}function gc(e,t,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTexture3D(t||$l,r)}function vc(e,t,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTextureCube(t||jl,r)}function yc(e,t,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTexture2DArray(t||Hl,r)}function _c(e){switch(e){case 5126:return ec;case 35664:return tc;case 35665:return nc;case 35666:return ic;case 35674:return rc;case 35675:return ac;case 35676:return oc;case 5124:case 35670:return sc;case 35667:case 35671:return lc;case 35668:case 35672:return cc;case 35669:case 35673:return uc;case 5125:return hc;case 36294:return dc;case 36295:return pc;case 36296:return fc;case 35678:case 36198:case 36298:case 36306:case 35682:return mc;case 35679:case 36299:case 36307:return gc;case 35680:case 36300:case 36308:case 36293:return vc;case 36289:case 36303:case 36311:case 36292:return yc}}function xc(e,t){e.uniform1fv(this.addr,t)}function bc(e,t){const n=Kl(t,this.size,2);e.uniform2fv(this.addr,n)}function wc(e,t){const n=Kl(t,this.size,3);e.uniform3fv(this.addr,n)}function Sc(e,t){const n=Kl(t,this.size,4);e.uniform4fv(this.addr,n)}function Mc(e,t){const n=Kl(t,this.size,4);e.uniformMatrix2fv(this.addr,!1,n)}function Cc(e,t){const n=Kl(t,this.size,9);e.uniformMatrix3fv(this.addr,!1,n)}function Tc(e,t){const n=Kl(t,this.size,16);e.uniformMatrix4fv(this.addr,!1,n)}function Ec(e,t){e.uniform1iv(this.addr,t)}function Ac(e,t){e.uniform2iv(this.addr,t)}function kc(e,t){e.uniform3iv(this.addr,t)}function Dc(e,t){e.uniform4iv(this.addr,t)}function Ic(e,t){e.uniform1uiv(this.addr,t)}function Pc(e,t){e.uniform2uiv(this.addr,t)}function Oc(e,t){e.uniform3uiv(this.addr,t)}function Lc(e,t){e.uniform4uiv(this.addr,t)}function Rc(e,t,n){const i=this.cache,r=t.length,a=Ql(n,r);Zl(i,a)||(e.uniform1iv(this.addr,a),Jl(i,a));for(let o=0;o!==r;++o)n.setTexture2D(t[o]||Ul,a[o])}function Nc(e,t,n){const i=this.cache,r=t.length,a=Ql(n,r);Zl(i,a)||(e.uniform1iv(this.addr,a),Jl(i,a));for(let o=0;o!==r;++o)n.setTexture3D(t[o]||$l,a[o])}function Fc(e,t,n){const i=this.cache,r=t.length,a=Ql(n,r);Zl(i,a)||(e.uniform1iv(this.addr,a),Jl(i,a));for(let o=0;o!==r;++o)n.setTextureCube(t[o]||jl,a[o])}function Bc(e,t,n){const i=this.cache,r=t.length,a=Ql(n,r);Zl(i,a)||(e.uniform1iv(this.addr,a),Jl(i,a));for(let o=0;o!==r;++o)n.setTexture2DArray(t[o]||Hl,a[o])}function zc(e){switch(e){case 5126:return xc;case 35664:return bc;case 35665:return wc;case 35666:return Sc;case 35674:return Mc;case 35675:return Cc;case 35676:return Tc;case 5124:case 35670:return Ec;case 35667:case 35671:return Ac;case 35668:case 35672:return kc;case 35669:case 35673:return Dc;case 5125:return Ic;case 36294:return Pc;case 36295:return Oc;case 36296:return Lc;case 35678:case 36198:case 36298:case 36306:case 35682:return Rc;case 35679:case 36299:case 36307:return Nc;case 35680:case 36300:case 36308:case 36293:return Fc;case 36289:case 36303:case 36311:case 36292:return Bc}}class Vc{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.setValue=_c(t.type)}}class Uc{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.size=t.size,this.setValue=zc(t.type)}}class Hc{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,n){const i=this.seq;for(let r=0,a=i.length;r!==a;++r){const a=i[r];a.setValue(e,t[a.id],n)}}}const $c=/(\w+)(\])?(\[|\.)?/g;function jc(e,t){e.seq.push(t),e.map[t.id]=t}function Wc(e,t,n){const i=e.name,r=i.length;$c.lastIndex=0;while(1){const a=$c.exec(i),o=$c.lastIndex;let s=a[1];const l="]"===a[2],c=a[3];if(l&&(s|=0),void 0===c||"["===c&&o+2===r){jc(n,void 0===c?new Vc(s,e,t):new Uc(s,e,t));break}{const e=n.map;let t=e[s];void 0===t&&(t=new Hc(s),jc(n,t)),n=t}}}class Gc{constructor(e,t){this.seq=[],this.map={};const n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let i=0;i<n;++i){const n=e.getActiveUniform(t,i),r=e.getUniformLocation(t,n.name);Wc(n,r,this)}}setValue(e,t,n,i){const r=this.map[t];void 0!==r&&r.setValue(e,n,i)}setOptional(e,t,n){const i=t[n];void 0!==i&&this.setValue(e,n,i)}static upload(e,t,n,i){for(let r=0,a=t.length;r!==a;++r){const a=t[r],o=n[a.id];!1!==o.needsUpdate&&a.setValue(e,o.value,i)}}static seqWithValue(e,t){const n=[];for(let i=0,r=e.length;i!==r;++i){const r=e[i];r.id in t&&n.push(r)}return n}}function qc(e,t,n){const i=e.createShader(t);return e.shaderSource(i,n),e.compileShader(i),i}let Xc=0;function Yc(e,t){const n=e.split("\n"),i=[],r=Math.max(t-6,0),a=Math.min(t+6,n.length);for(let o=r;o<a;o++){const e=o+1;i.push(`${e===t?">":" "} ${e}: ${n[o]}`)}return i.join("\n")}function Kc(e){switch(e){case It:return["Linear","( value )"];case Dt:return["sRGB","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",e),["Linear","( value )"]}}function Zc(e,t,n){const i=e.getShaderParameter(t,e.COMPILE_STATUS),r=e.getShaderInfoLog(t).trim();if(i&&""===r)return"";const a=/ERROR: 0:(\d+)/.exec(r);if(a){const i=parseInt(a[1]);return n.toUpperCase()+"\n\n"+r+"\n\n"+Yc(e.getShaderSource(t),i)}return r}function Jc(e,t){const n=Kc(t);return"vec4 "+e+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function Qc(e,t){let n;switch(t){case Y:n="Linear";break;case K:n="Reinhard";break;case Z:n="OptimizedCineon";break;case J:n="ACESFilmic";break;case Q:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function eu(e){const t=[e.extensionDerivatives||e.envMapCubeUVHeight||e.bumpMap||e.normalMapTangentSpace||e.clearcoatNormalMap||e.flatShading||"physical"===e.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(e.extensionFragDepth||e.logarithmicDepthBuffer)&&e.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",e.extensionDrawBuffers&&e.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(e.extensionShaderTextureLOD||e.envMap||e.transmission)&&e.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""];return t.filter(iu).join("\n")}function tu(e){const t=[];for(const n in e){const i=e[n];!1!==i&&t.push("#define "+n+" "+i)}return t.join("\n")}function nu(e,t){const n={},i=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let r=0;r<i;r++){const i=e.getActiveAttrib(t,r),a=i.name;let o=1;i.type===e.FLOAT_MAT2&&(o=2),i.type===e.FLOAT_MAT3&&(o=3),i.type===e.FLOAT_MAT4&&(o=4),n[a]={type:i.type,location:e.getAttribLocation(t,a),locationSize:o}}return n}function iu(e){return""!==e}function ru(e,t){const n=t.numSpotLightShadows+t.numSpotLightMaps-t.numSpotLightShadowsWithMaps;return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,t.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,t.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function au(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}const ou=/^[ \t]*#include +<([\w\d./]+)>/gm;function su(e){return e.replace(ou,cu)}const lu=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function cu(e,t){let n=rl[t];if(void 0===n){const e=lu.get(t);if(void 0===e)throw new Error("Can not resolve #include <"+t+">");n=rl[e],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',t,e)}return su(n)}const uu=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function hu(e){return e.replace(uu,du)}function du(e,t,n,i){let r="";for(let a=parseInt(t);a<parseInt(n);a++)r+=i.replace(/\[\s*i\s*\]/g,"[ "+a+" ]").replace(/UNROLLED_LOOP_INDEX/g,a);return r}function pu(e){let t="precision "+e.precision+" float;\nprecision "+e.precision+" int;";return"highp"===e.precision?t+="\n#define HIGH_PRECISION":"mediump"===e.precision?t+="\n#define MEDIUM_PRECISION":"lowp"===e.precision&&(t+="\n#define LOW_PRECISION"),t}function fu(e){let t="SHADOWMAP_TYPE_BASIC";return e.shadowMapType===c?t="SHADOWMAP_TYPE_PCF":e.shadowMapType===u?t="SHADOWMAP_TYPE_PCF_SOFT":e.shadowMapType===h&&(t="SHADOWMAP_TYPE_VSM"),t}function mu(e){let t="ENVMAP_TYPE_CUBE";if(e.envMap)switch(e.envMapMode){case te:case ne:t="ENVMAP_TYPE_CUBE";break;case ae:t="ENVMAP_TYPE_CUBE_UV";break}return t}function gu(e){let t="ENVMAP_MODE_REFLECTION";if(e.envMap)switch(e.envMapMode){case ne:t="ENVMAP_MODE_REFRACTION";break}return t}function vu(e){let t="ENVMAP_BLENDING_NONE";if(e.envMap)switch(e.combine){case W:t="ENVMAP_BLENDING_MULTIPLY";break;case G:t="ENVMAP_BLENDING_MIX";break;case q:t="ENVMAP_BLENDING_ADD";break}return t}function yu(e){const t=e.envMapCubeUVHeight;if(null===t)return null;const n=Math.log2(t)-2,i=1/t,r=1/(3*Math.max(Math.pow(2,n),112));return{texelWidth:r,texelHeight:i,maxMip:n}}function _u(e,t,n,i){const r=e.getContext(),a=n.defines;let o=n.vertexShader,s=n.fragmentShader;const l=fu(n),c=mu(n),u=gu(n),h=vu(n),d=yu(n),p=n.isWebGL2?"":eu(n),f=tu(a),m=r.createProgram();let g,v,y=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(g=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,f].filter(iu).join("\n"),g.length>0&&(g+="\n"),v=[p,"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,f].filter(iu).join("\n"),v.length>0&&(v+="\n")):(g=[pu(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,f,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","\tattribute vec2 uv1;","#endif","#ifdef USE_UV2","\tattribute vec2 uv2;","#endif","#ifdef USE_UV3","\tattribute vec2 uv3;","#endif","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(iu).join("\n"),v=[p,pu(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,f,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+u:"",n.envMap?"#define "+h:"",d?"#define CUBEUV_TEXEL_WIDTH "+d.texelWidth:"",d?"#define CUBEUV_TEXEL_HEIGHT "+d.texelHeight:"",d?"#define CUBEUV_MAX_MIP "+d.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==X?"#define TONE_MAPPING":"",n.toneMapping!==X?rl["tonemapping_pars_fragment"]:"",n.toneMapping!==X?Qc("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",rl["colorspace_pars_fragment"],Jc("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(iu).join("\n")),o=su(o),o=ru(o,n),o=au(o,n),s=su(s),s=ru(s,n),s=au(s,n),o=hu(o),s=hu(s),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(y="#version 300 es\n",g=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+g,v=["#define varying in",n.glslVersion===jt?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===jt?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+v);const _=y+g+o,x=y+v+s,b=qc(r,r.VERTEX_SHADER,_),w=qc(r,r.FRAGMENT_SHADER,x);if(r.attachShader(m,b),r.attachShader(m,w),void 0!==n.index0AttributeName?r.bindAttribLocation(m,0,n.index0AttributeName):!0===n.morphTargets&&r.bindAttribLocation(m,0,"position"),r.linkProgram(m),e.debug.checkShaderErrors){const t=r.getProgramInfoLog(m).trim(),n=r.getShaderInfoLog(b).trim(),i=r.getShaderInfoLog(w).trim();let a=!0,o=!0;if(!1===r.getProgramParameter(m,r.LINK_STATUS))if(a=!1,"function"===typeof e.debug.onShaderError)e.debug.onShaderError(r,m,b,w);else{const e=Zc(r,b,"vertex"),n=Zc(r,w,"fragment");console.error("THREE.WebGLProgram: Shader Error "+r.getError()+" - VALIDATE_STATUS "+r.getProgramParameter(m,r.VALIDATE_STATUS)+"\n\nProgram Info Log: "+t+"\n"+e+"\n"+n)}else""!==t?console.warn("THREE.WebGLProgram: Program Info Log:",t):""!==n&&""!==i||(o=!1);o&&(this.diagnostics={runnable:a,programLog:t,vertexShader:{log:n,prefix:g},fragmentShader:{log:i,prefix:v}})}let S,M;return r.deleteShader(b),r.deleteShader(w),this.getUniforms=function(){return void 0===S&&(S=new Gc(r,m)),S},this.getAttributes=function(){return void 0===M&&(M=nu(r,m)),M},this.destroy=function(){i.releaseStatesOfProgram(this),r.deleteProgram(m),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=Xc++,this.cacheKey=t,this.usedTimes=1,this.program=m,this.vertexShader=b,this.fragmentShader=w,this}let xu=0;class bu{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,i=this._getShaderStage(t),r=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return!1===a.has(i)&&(a.add(i),i.usedTimes++),!1===a.has(r)&&(a.add(r),r.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const n of t)n.usedTimes--,0===n.usedTimes&&this.shaderCache.delete(n.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return void 0===n&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return void 0===n&&(n=new wu(e),t.set(e,n)),n}}class wu{constructor(e){this.id=xu++,this.code=e,this.usedTimes=0}}function Su(e,t,n,i,r,a,o){const s=new Bi,l=new bu,c=[],u=r.isWebGL2,h=r.logarithmicDepthBuffer,d=r.vertexTextures;let m=r.precision;const v={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function y(e){return 0===e?"uv":`uv${e}`}function _(a,s,c,_,x){const b=_.fog,w=x.geometry,S=a.isMeshStandardMaterial?_.environment:null,M=(a.isMeshStandardMaterial?n:t).get(a.envMap||S),C=M&&M.mapping===ae?M.image.height:null,T=v[a.type];null!==a.precision&&(m=r.getMaxPrecision(a.precision),m!==a.precision&&console.warn("THREE.WebGLProgram.getParameters:",a.precision,"not supported, using",m,"instead."));const E=w.morphAttributes.position||w.morphAttributes.normal||w.morphAttributes.color,A=void 0!==E?E.length:0;let k,D,I,P,O=0;if(void 0!==w.morphAttributes.position&&(O=1),void 0!==w.morphAttributes.normal&&(O=2),void 0!==w.morphAttributes.color&&(O=3),T){const e=ol[T];k=e.vertexShader,D=e.fragmentShader}else k=a.vertexShader,D=a.fragmentShader,l.update(a),I=l.getVertexShaderID(a),P=l.getFragmentShaderID(a);const L=e.getRenderTarget(),R=!0===x.isInstancedMesh,N=!!a.map,F=!!a.matcap,B=!!M,z=!!a.aoMap,V=!!a.lightMap,U=!!a.bumpMap,H=!!a.normalMap,$=!!a.displacementMap,j=!!a.emissiveMap,W=!!a.metalnessMap,G=!!a.roughnessMap,q=a.anisotropy>0,Y=a.clearcoat>0,K=a.iridescence>0,Z=a.sheen>0,J=a.transmission>0,Q=q&&!!a.anisotropyMap,ee=Y&&!!a.clearcoatMap,te=Y&&!!a.clearcoatNormalMap,ne=Y&&!!a.clearcoatRoughnessMap,ie=K&&!!a.iridescenceMap,re=K&&!!a.iridescenceThicknessMap,oe=Z&&!!a.sheenColorMap,se=Z&&!!a.sheenRoughnessMap,le=!!a.specularMap,ce=!!a.specularColorMap,ue=!!a.specularIntensityMap,he=J&&!!a.transmissionMap,de=J&&!!a.thicknessMap,pe=!!a.gradientMap,fe=!!a.alphaMap,me=a.alphaTest>0,ge=!!a.alphaHash,ve=!!a.extensions,ye=!!w.attributes.uv1,_e=!!w.attributes.uv2,xe=!!w.attributes.uv3,be={isWebGL2:u,shaderID:T,shaderType:a.type,shaderName:a.name,vertexShader:k,fragmentShader:D,defines:a.defines,customVertexShaderID:I,customFragmentShaderID:P,isRawShaderMaterial:!0===a.isRawShaderMaterial,glslVersion:a.glslVersion,precision:m,instancing:R,instancingColor:R&&null!==x.instanceColor,supportsVertexTextures:d,outputColorSpace:null===L?e.outputColorSpace:!0===L.isXRRenderTarget?L.texture.colorSpace:It,map:N,matcap:F,envMap:B,envMapMode:B&&M.mapping,envMapCubeUVHeight:C,aoMap:z,lightMap:V,bumpMap:U,normalMap:H,displacementMap:d&&$,emissiveMap:j,normalMapObjectSpace:H&&a.normalMapType===At,normalMapTangentSpace:H&&a.normalMapType===Et,metalnessMap:W,roughnessMap:G,anisotropy:q,anisotropyMap:Q,clearcoat:Y,clearcoatMap:ee,clearcoatNormalMap:te,clearcoatRoughnessMap:ne,iridescence:K,iridescenceMap:ie,iridescenceThicknessMap:re,sheen:Z,sheenColorMap:oe,sheenRoughnessMap:se,specularMap:le,specularColorMap:ce,specularIntensityMap:ue,transmission:J,transmissionMap:he,thicknessMap:de,gradientMap:pe,opaque:!1===a.transparent&&a.blending===g,alphaMap:fe,alphaTest:me,alphaHash:ge,combine:a.combine,mapUv:N&&y(a.map.channel),aoMapUv:z&&y(a.aoMap.channel),lightMapUv:V&&y(a.lightMap.channel),bumpMapUv:U&&y(a.bumpMap.channel),normalMapUv:H&&y(a.normalMap.channel),displacementMapUv:$&&y(a.displacementMap.channel),emissiveMapUv:j&&y(a.emissiveMap.channel),metalnessMapUv:W&&y(a.metalnessMap.channel),roughnessMapUv:G&&y(a.roughnessMap.channel),anisotropyMapUv:Q&&y(a.anisotropyMap.channel),clearcoatMapUv:ee&&y(a.clearcoatMap.channel),clearcoatNormalMapUv:te&&y(a.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:ne&&y(a.clearcoatRoughnessMap.channel),iridescenceMapUv:ie&&y(a.iridescenceMap.channel),iridescenceThicknessMapUv:re&&y(a.iridescenceThicknessMap.channel),sheenColorMapUv:oe&&y(a.sheenColorMap.channel),sheenRoughnessMapUv:se&&y(a.sheenRoughnessMap.channel),specularMapUv:le&&y(a.specularMap.channel),specularColorMapUv:ce&&y(a.specularColorMap.channel),specularIntensityMapUv:ue&&y(a.specularIntensityMap.channel),transmissionMapUv:he&&y(a.transmissionMap.channel),thicknessMapUv:de&&y(a.thicknessMap.channel),alphaMapUv:fe&&y(a.alphaMap.channel),vertexTangents:!!w.attributes.tangent&&(H||q),vertexColors:a.vertexColors,vertexAlphas:!0===a.vertexColors&&!!w.attributes.color&&4===w.attributes.color.itemSize,vertexUv1s:ye,vertexUv2s:_e,vertexUv3s:xe,pointsUvs:!0===x.isPoints&&!!w.attributes.uv&&(N||fe),fog:!!b,useFog:!0===a.fog,fogExp2:b&&b.isFogExp2,flatShading:!0===a.flatShading,sizeAttenuation:!0===a.sizeAttenuation,logarithmicDepthBuffer:h,skinning:!0===x.isSkinnedMesh,morphTargets:void 0!==w.morphAttributes.position,morphNormals:void 0!==w.morphAttributes.normal,morphColors:void 0!==w.morphAttributes.color,morphTargetsCount:A,morphTextureStride:O,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numSpotLightMaps:s.spotLightMap.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numSpotLightShadowsWithMaps:s.numSpotLightShadowsWithMaps,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:a.dithering,shadowMapEnabled:e.shadowMap.enabled&&c.length>0,shadowMapType:e.shadowMap.type,toneMapping:a.toneMapped?e.toneMapping:X,useLegacyLights:e.useLegacyLights,premultipliedAlpha:a.premultipliedAlpha,doubleSided:a.side===f,flipSided:a.side===p,useDepthPacking:a.depthPacking>=0,depthPacking:a.depthPacking||0,index0AttributeName:a.index0AttributeName,extensionDerivatives:ve&&!0===a.extensions.derivatives,extensionFragDepth:ve&&!0===a.extensions.fragDepth,extensionDrawBuffers:ve&&!0===a.extensions.drawBuffers,extensionShaderTextureLOD:ve&&!0===a.extensions.shaderTextureLOD,rendererExtensionFragDepth:u||i.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||i.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||i.has("EXT_shader_texture_lod"),customProgramCacheKey:a.customProgramCacheKey()};return be}function x(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(b(n,t),w(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()}function b(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function w(e,t){s.disableAll(),t.isWebGL2&&s.enable(0),t.supportsVertexTextures&&s.enable(1),t.instancing&&s.enable(2),t.instancingColor&&s.enable(3),t.matcap&&s.enable(4),t.envMap&&s.enable(5),t.normalMapObjectSpace&&s.enable(6),t.normalMapTangentSpace&&s.enable(7),t.clearcoat&&s.enable(8),t.iridescence&&s.enable(9),t.alphaTest&&s.enable(10),t.vertexColors&&s.enable(11),t.vertexAlphas&&s.enable(12),t.vertexUv1s&&s.enable(13),t.vertexUv2s&&s.enable(14),t.vertexUv3s&&s.enable(15),t.vertexTangents&&s.enable(16),t.anisotropy&&s.enable(17),e.push(s.mask),s.disableAll(),t.fog&&s.enable(0),t.useFog&&s.enable(1),t.flatShading&&s.enable(2),t.logarithmicDepthBuffer&&s.enable(3),t.skinning&&s.enable(4),t.morphTargets&&s.enable(5),t.morphNormals&&s.enable(6),t.morphColors&&s.enable(7),t.premultipliedAlpha&&s.enable(8),t.shadowMapEnabled&&s.enable(9),t.useLegacyLights&&s.enable(10),t.doubleSided&&s.enable(11),t.flipSided&&s.enable(12),t.useDepthPacking&&s.enable(13),t.dithering&&s.enable(14),t.transmission&&s.enable(15),t.sheen&&s.enable(16),t.opaque&&s.enable(17),t.pointsUvs&&s.enable(18),e.push(s.mask)}function S(e){const t=v[e.type];let n;if(t){const e=ol[t];n=aa.clone(e.uniforms)}else n=e.uniforms;return n}function M(t,n){let i;for(let e=0,r=c.length;e<r;e++){const t=c[e];if(t.cacheKey===n){i=t,++i.usedTimes;break}}return void 0===i&&(i=new _u(e,n,t,a),c.push(i)),i}function C(e){if(0===--e.usedTimes){const t=c.indexOf(e);c[t]=c[c.length-1],c.pop(),e.destroy()}}function T(e){l.remove(e)}function E(){l.dispose()}return{getParameters:_,getProgramCacheKey:x,getUniforms:S,acquireProgram:M,releaseProgram:C,releaseShaderCache:T,programs:c,dispose:E}}function Mu(){let e=new WeakMap;function t(t){let n=e.get(t);return void 0===n&&(n={},e.set(t,n)),n}function n(t){e.delete(t)}function i(t,n,i){e.get(t)[n]=i}function r(){e=new WeakMap}return{get:t,remove:n,update:i,dispose:r}}function Cu(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.material.id!==t.material.id?e.material.id-t.material.id:e.z!==t.z?e.z-t.z:e.id-t.id}function Tu(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.z!==t.z?t.z-e.z:e.id-t.id}function Eu(){const e=[];let t=0;const n=[],i=[],r=[];function a(){t=0,n.length=0,i.length=0,r.length=0}function o(n,i,r,a,o,s){let l=e[t];return void 0===l?(l={id:n.id,object:n,geometry:i,material:r,groupOrder:a,renderOrder:n.renderOrder,z:o,group:s},e[t]=l):(l.id=n.id,l.object=n,l.geometry=i,l.material=r,l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=o,l.group=s),t++,l}function s(e,t,a,s,l,c){const u=o(e,t,a,s,l,c);a.transmission>0?i.push(u):!0===a.transparent?r.push(u):n.push(u)}function l(e,t,a,s,l,c){const u=o(e,t,a,s,l,c);a.transmission>0?i.unshift(u):!0===a.transparent?r.unshift(u):n.unshift(u)}function c(e,t){n.length>1&&n.sort(e||Cu),i.length>1&&i.sort(t||Tu),r.length>1&&r.sort(t||Tu)}function u(){for(let n=t,i=e.length;n<i;n++){const t=e[n];if(null===t.id)break;t.id=null,t.object=null,t.geometry=null,t.material=null,t.group=null}}return{opaque:n,transmissive:i,transparent:r,init:a,push:s,unshift:l,finish:u,sort:c}}function Au(){let e=new WeakMap;function t(t,n){const i=e.get(t);let r;return void 0===i?(r=new Eu,e.set(t,[r])):n>=i.length?(r=new Eu,i.push(r)):r=i[n],r}function n(){e=new WeakMap}return{get:t,dispose:n}}function ku(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new Zn,color:new vr};break;case"SpotLight":n={position:new Zn,direction:new Zn,color:new vr,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Zn,color:new vr,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Zn,skyColor:new vr,groundColor:new vr};break;case"RectAreaLight":n={color:new vr,position:new Zn,halfWidth:new Zn,halfHeight:new Zn};break}return e[t.id]=n,n}}}function Du(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Sn};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Sn};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Sn,shadowCameraNear:1,shadowCameraFar:1e3};break}return e[t.id]=n,n}}}let Iu=0;function Pu(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function Ou(e,t){const n=new ku,i=Du(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0};for(let u=0;u<9;u++)r.probe.push(new Zn);const a=new Zn,o=new Ei,s=new Ei;function l(a,o){let s=0,l=0,c=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let u=0,h=0,d=0,p=0,f=0,m=0,g=0,v=0,y=0,_=0;a.sort(Pu);const x=!0===o?Math.PI:1;for(let e=0,t=a.length;e<t;e++){const t=a[e],o=t.color,b=t.intensity,w=t.distance,S=t.shadow&&t.shadow.map?t.shadow.map.texture:null;if(t.isAmbientLight)s+=o.r*b*x,l+=o.g*b*x,c+=o.b*b*x;else if(t.isLightProbe)for(let e=0;e<9;e++)r.probe[e].addScaledVector(t.sh.coefficients[e],b);else if(t.isDirectionalLight){const e=n.get(t);if(e.color.copy(t.color).multiplyScalar(t.intensity*x),t.castShadow){const e=t.shadow,n=i.get(t);n.shadowBias=e.bias,n.shadowNormalBias=e.normalBias,n.shadowRadius=e.radius,n.shadowMapSize=e.mapSize,r.directionalShadow[u]=n,r.directionalShadowMap[u]=S,r.directionalShadowMatrix[u]=t.shadow.matrix,m++}r.directional[u]=e,u++}else if(t.isSpotLight){const e=n.get(t);e.position.setFromMatrixPosition(t.matrixWorld),e.color.copy(o).multiplyScalar(b*x),e.distance=w,e.coneCos=Math.cos(t.angle),e.penumbraCos=Math.cos(t.angle*(1-t.penumbra)),e.decay=t.decay,r.spot[d]=e;const a=t.shadow;if(t.map&&(r.spotLightMap[y]=t.map,y++,a.updateMatrices(t),t.castShadow&&_++),r.spotLightMatrix[d]=a.matrix,t.castShadow){const e=i.get(t);e.shadowBias=a.bias,e.shadowNormalBias=a.normalBias,e.shadowRadius=a.radius,e.shadowMapSize=a.mapSize,r.spotShadow[d]=e,r.spotShadowMap[d]=S,v++}d++}else if(t.isRectAreaLight){const e=n.get(t);e.color.copy(o).multiplyScalar(b),e.halfWidth.set(.5*t.width,0,0),e.halfHeight.set(0,.5*t.height,0),r.rectArea[p]=e,p++}else if(t.isPointLight){const e=n.get(t);if(e.color.copy(t.color).multiplyScalar(t.intensity*x),e.distance=t.distance,e.decay=t.decay,t.castShadow){const e=t.shadow,n=i.get(t);n.shadowBias=e.bias,n.shadowNormalBias=e.normalBias,n.shadowRadius=e.radius,n.shadowMapSize=e.mapSize,n.shadowCameraNear=e.camera.near,n.shadowCameraFar=e.camera.far,r.pointShadow[h]=n,r.pointShadowMap[h]=S,r.pointShadowMatrix[h]=t.shadow.matrix,g++}r.point[h]=e,h++}else if(t.isHemisphereLight){const e=n.get(t);e.skyColor.copy(t.color).multiplyScalar(b*x),e.groundColor.copy(t.groundColor).multiplyScalar(b*x),r.hemi[f]=e,f++}}p>0&&(t.isWebGL2||!0===e.has("OES_texture_float_linear")?(r.rectAreaLTC1=al.LTC_FLOAT_1,r.rectAreaLTC2=al.LTC_FLOAT_2):!0===e.has("OES_texture_half_float_linear")?(r.rectAreaLTC1=al.LTC_HALF_1,r.rectAreaLTC2=al.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),r.ambient[0]=s,r.ambient[1]=l,r.ambient[2]=c;const b=r.hash;b.directionalLength===u&&b.pointLength===h&&b.spotLength===d&&b.rectAreaLength===p&&b.hemiLength===f&&b.numDirectionalShadows===m&&b.numPointShadows===g&&b.numSpotShadows===v&&b.numSpotMaps===y||(r.directional.length=u,r.spot.length=d,r.rectArea.length=p,r.point.length=h,r.hemi.length=f,r.directionalShadow.length=m,r.directionalShadowMap.length=m,r.pointShadow.length=g,r.pointShadowMap.length=g,r.spotShadow.length=v,r.spotShadowMap.length=v,r.directionalShadowMatrix.length=m,r.pointShadowMatrix.length=g,r.spotLightMatrix.length=v+y-_,r.spotLightMap.length=y,r.numSpotLightShadowsWithMaps=_,b.directionalLength=u,b.pointLength=h,b.spotLength=d,b.rectAreaLength=p,b.hemiLength=f,b.numDirectionalShadows=m,b.numPointShadows=g,b.numSpotShadows=v,b.numSpotMaps=y,r.version=Iu++)}function c(e,t){let n=0,i=0,l=0,c=0,u=0;const h=t.matrixWorldInverse;for(let d=0,p=e.length;d<p;d++){const t=e[d];if(t.isDirectionalLight){const e=r.directional[n];e.direction.setFromMatrixPosition(t.matrixWorld),a.setFromMatrixPosition(t.target.matrixWorld),e.direction.sub(a),e.direction.transformDirection(h),n++}else if(t.isSpotLight){const e=r.spot[l];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(h),e.direction.setFromMatrixPosition(t.matrixWorld),a.setFromMatrixPosition(t.target.matrixWorld),e.direction.sub(a),e.direction.transformDirection(h),l++}else if(t.isRectAreaLight){const e=r.rectArea[c];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(h),s.identity(),o.copy(t.matrixWorld),o.premultiply(h),s.extractRotation(o),e.halfWidth.set(.5*t.width,0,0),e.halfHeight.set(0,.5*t.height,0),e.halfWidth.applyMatrix4(s),e.halfHeight.applyMatrix4(s),c++}else if(t.isPointLight){const e=r.point[i];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(h),i++}else if(t.isHemisphereLight){const e=r.hemi[u];e.direction.setFromMatrixPosition(t.matrixWorld),e.direction.transformDirection(h),u++}}}return{setup:l,setupView:c,state:r}}function Lu(e,t){const n=new Ou(e,t),i=[],r=[];function a(){i.length=0,r.length=0}function o(e){i.push(e)}function s(e){r.push(e)}function l(e){n.setup(i,e)}function c(e){n.setupView(i,e)}const u={lightsArray:i,shadowsArray:r,lights:n};return{init:a,state:u,setupLights:l,setupLightsView:c,pushLight:o,pushShadow:s}}function Ru(e,t){let n=new WeakMap;function i(i,r=0){const a=n.get(i);let o;return void 0===a?(o=new Lu(e,t),n.set(i,[o])):r>=a.length?(o=new Lu(e,t),a.push(o)):o=a[r],o}function r(){n=new WeakMap}return{get:i,dispose:r}}class Nu extends dr{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Ct,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class Fu extends dr{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const Bu="void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",zu="uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}";function Vu(e,t,n){let i=new wa;const r=new Sn,a=new Sn,o=new Gn,s=new Nu({depthPacking:Tt}),l=new Fu,u={},g=n.maxTextureSize,v={[d]:p,[p]:d,[f]:f},y=new la({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Sn},radius:{value:4}},vertexShader:Bu,fragmentShader:zu}),_=y.clone();_.defines.HORIZONTAL_PASS=1;const x=new Or;x.setAttribute("position",new wr(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const b=new Zr(x,y),w=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=c;let S=this.type;function M(n,i){const a=t.update(b);y.defines.VSM_SAMPLES!==n.blurSamples&&(y.defines.VSM_SAMPLES=n.blurSamples,_.defines.VSM_SAMPLES=n.blurSamples,y.needsUpdate=!0,_.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new qn(r.x,r.y)),y.uniforms.shadow_pass.value=n.map.texture,y.uniforms.resolution.value=n.mapSize,y.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(i,null,a,y,b,null),_.uniforms.shadow_pass.value=n.mapPass.texture,_.uniforms.resolution.value=n.mapSize,_.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(i,null,a,_,b,null)}function C(t,n,i,r){let a=null;const o=!0===i.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(void 0!==o)a=o;else if(a=!0===i.isPointLight?l:s,e.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){const e=a.uuid,t=n.uuid;let i=u[e];void 0===i&&(i={},u[e]=i);let r=i[t];void 0===r&&(r=a.clone(),i[t]=r),a=r}if(a.visible=n.visible,a.wireframe=n.wireframe,a.side=r===h?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:v[n.side],a.alphaMap=n.alphaMap,a.alphaTest=n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,!0===i.isPointLight&&!0===a.isMeshDistanceMaterial){const t=e.properties.get(a);t.light=i}return a}function T(n,r,a,o,s){if(!1===n.visible)return;const l=n.layers.test(r.layers);if(l&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===h)&&(!n.frustumCulled||i.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);const i=t.update(n),r=n.material;if(Array.isArray(r)){const t=i.groups;for(let l=0,c=t.length;l<c;l++){const c=t[l],u=r[c.materialIndex];if(u&&u.visible){const t=C(n,u,o,s);e.renderBufferDirect(a,null,i,t,n,c)}}}else if(r.visible){const t=C(n,r,o,s);e.renderBufferDirect(a,null,i,t,n,null)}}const c=n.children;for(let e=0,t=c.length;e<t;e++)T(c[e],r,a,o,s)}this.render=function(t,n,s){if(!1===w.enabled)return;if(!1===w.autoUpdate&&!1===w.needsUpdate)return;if(0===t.length)return;const l=e.getRenderTarget(),c=e.getActiveCubeFace(),u=e.getActiveMipmapLevel(),d=e.state;d.setBlending(m),d.buffers.color.setClear(1,1,1,1),d.buffers.depth.setTest(!0),d.setScissorTest(!1);const p=S!==h&&this.type===h,f=S===h&&this.type!==h;for(let m=0,v=t.length;m<v;m++){const l=t[m],c=l.shadow;if(void 0===c){console.warn("THREE.WebGLShadowMap:",l,"has no shadow.");continue}if(!1===c.autoUpdate&&!1===c.needsUpdate)continue;r.copy(c.mapSize);const u=c.getFrameExtents();if(r.multiply(u),a.copy(c.mapSize),(r.x>g||r.y>g)&&(r.x>g&&(a.x=Math.floor(g/u.x),r.x=a.x*u.x,c.mapSize.x=a.x),r.y>g&&(a.y=Math.floor(g/u.y),r.y=a.y*u.y,c.mapSize.y=a.y)),null===c.map||!0===p||!0===f){const e=this.type!==h?{minFilter:ce,magFilter:ce}:{};null!==c.map&&c.map.dispose(),c.map=new qn(r.x,r.y,e),c.map.texture.name=l.name+".shadowMap",c.camera.updateProjectionMatrix()}e.setRenderTarget(c.map),e.clear();const v=c.getViewportCount();for(let e=0;e<v;e++){const t=c.getViewport(e);o.set(a.x*t.x,a.y*t.y,a.x*t.z,a.y*t.w),d.viewport(o),c.updateMatrices(l,e),i=c.getFrustum(),T(n,s,c.camera,l,this.type)}!0!==c.isPointLightShadow&&this.type===h&&M(c,s),c.needsUpdate=!1}S=this.type,w.needsUpdate=!1,e.setRenderTarget(l,c,u)}}function Uu(e,t,n){const i=n.isWebGL2;function r(){let t=!1;const n=new Gn;let i=null;const r=new Gn(0,0,0,0);return{setMask:function(n){i===n||t||(e.colorMask(n,n,n,n),i=n)},setLocked:function(e){t=e},setClear:function(t,i,a,o,s){!0===s&&(t*=o,i*=o,a*=o),n.set(t,i,a,o),!1===r.equals(n)&&(e.clearColor(t,i,a,o),r.copy(n))},reset:function(){t=!1,i=null,r.set(-1,0,0,0)}}}function a(){let t=!1,n=null,i=null,r=null;return{setTest:function(t){t?Me(e.DEPTH_TEST):Ce(e.DEPTH_TEST)},setMask:function(i){n===i||t||(e.depthMask(i),n=i)},setFunc:function(t){if(i!==t){switch(t){case F:e.depthFunc(e.NEVER);break;case B:e.depthFunc(e.ALWAYS);break;case z:e.depthFunc(e.LESS);break;case V:e.depthFunc(e.LEQUAL);break;case U:e.depthFunc(e.EQUAL);break;case H:e.depthFunc(e.GEQUAL);break;case $:e.depthFunc(e.GREATER);break;case j:e.depthFunc(e.NOTEQUAL);break;default:e.depthFunc(e.LEQUAL)}i=t}},setLocked:function(e){t=e},setClear:function(t){r!==t&&(e.clearDepth(t),r=t)},reset:function(){t=!1,n=null,i=null,r=null}}}function c(){let t=!1,n=null,i=null,r=null,a=null,o=null,s=null,l=null,c=null;return{setTest:function(n){t||(n?Me(e.STENCIL_TEST):Ce(e.STENCIL_TEST))},setMask:function(i){n===i||t||(e.stencilMask(i),n=i)},setFunc:function(t,n,o){i===t&&r===n&&a===o||(e.stencilFunc(t,n,o),i=t,r=n,a=o)},setOp:function(t,n,i){o===t&&s===n&&l===i||(e.stencilOp(t,n,i),o=t,s=n,l=i)},setLocked:function(e){t=e},setClear:function(t){c!==t&&(e.clearStencil(t),c=t)},reset:function(){t=!1,n=null,i=null,r=null,a=null,o=null,s=null,l=null,c=null}}}const u=new r,h=new a,d=new c,W=new WeakMap,G=new WeakMap;let q={},X={},Y=new WeakMap,K=[],Z=null,J=!1,Q=null,ee=null,te=null,ne=null,ie=null,re=null,ae=null,oe=!1,se=null,le=null,ce=null,ue=null,he=null;const de=e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let pe=!1,fe=0;const me=e.getParameter(e.VERSION);-1!==me.indexOf("WebGL")?(fe=parseFloat(/^WebGL (\d)/.exec(me)[1]),pe=fe>=1):-1!==me.indexOf("OpenGL ES")&&(fe=parseFloat(/^OpenGL ES (\d)/.exec(me)[1]),pe=fe>=2);let ge=null,ve={};const ye=e.getParameter(e.SCISSOR_BOX),_e=e.getParameter(e.VIEWPORT),xe=(new Gn).fromArray(ye),be=(new Gn).fromArray(_e);function we(t,n,r,a){const o=new Uint8Array(4),s=e.createTexture();e.bindTexture(t,s),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let l=0;l<r;l++)!i||t!==e.TEXTURE_3D&&t!==e.TEXTURE_2D_ARRAY?e.texImage2D(n+l,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,o):e.texImage3D(n,0,e.RGBA,1,1,a,0,e.RGBA,e.UNSIGNED_BYTE,o);return s}const Se={};function Me(t){!0!==q[t]&&(e.enable(t),q[t]=!0)}function Ce(t){!1!==q[t]&&(e.disable(t),q[t]=!1)}function Te(t,n){return X[t]!==n&&(e.bindFramebuffer(t,n),X[t]=n,i&&(t===e.DRAW_FRAMEBUFFER&&(X[e.FRAMEBUFFER]=n),t===e.FRAMEBUFFER&&(X[e.DRAW_FRAMEBUFFER]=n)),!0)}function Ee(i,r){let a=K,o=!1;if(i)if(a=Y.get(r),void 0===a&&(a=[],Y.set(r,a)),i.isWebGLMultipleRenderTargets){const t=i.texture;if(a.length!==t.length||a[0]!==e.COLOR_ATTACHMENT0){for(let n=0,i=t.length;n<i;n++)a[n]=e.COLOR_ATTACHMENT0+n;a.length=t.length,o=!0}}else a[0]!==e.COLOR_ATTACHMENT0&&(a[0]=e.COLOR_ATTACHMENT0,o=!0);else a[0]!==e.BACK&&(a[0]=e.BACK,o=!0);o&&(n.isWebGL2?e.drawBuffers(a):t.get("WEBGL_draw_buffers").drawBuffersWEBGL(a))}function Ae(t){return Z!==t&&(e.useProgram(t),Z=t,!0)}Se[e.TEXTURE_2D]=we(e.TEXTURE_2D,e.TEXTURE_2D,1),Se[e.TEXTURE_CUBE_MAP]=we(e.TEXTURE_CUBE_MAP,e.TEXTURE_CUBE_MAP_POSITIVE_X,6),i&&(Se[e.TEXTURE_2D_ARRAY]=we(e.TEXTURE_2D_ARRAY,e.TEXTURE_2D_ARRAY,1,1),Se[e.TEXTURE_3D]=we(e.TEXTURE_3D,e.TEXTURE_3D,1,1)),u.setClear(0,0,0,1),h.setClear(1),d.setClear(0),Me(e.DEPTH_TEST),h.setFunc(V),Oe(!1),Le(s),Me(e.CULL_FACE),Ie(m);const ke={[b]:e.FUNC_ADD,[w]:e.FUNC_SUBTRACT,[S]:e.FUNC_REVERSE_SUBTRACT};if(i)ke[M]=e.MIN,ke[C]=e.MAX;else{const e=t.get("EXT_blend_minmax");null!==e&&(ke[M]=e.MIN_EXT,ke[C]=e.MAX_EXT)}const De={[T]:e.ZERO,[E]:e.ONE,[A]:e.SRC_COLOR,[D]:e.SRC_ALPHA,[N]:e.SRC_ALPHA_SATURATE,[L]:e.DST_COLOR,[P]:e.DST_ALPHA,[k]:e.ONE_MINUS_SRC_COLOR,[I]:e.ONE_MINUS_SRC_ALPHA,[R]:e.ONE_MINUS_DST_COLOR,[O]:e.ONE_MINUS_DST_ALPHA};function Ie(t,n,i,r,a,o,s,l){if(t!==m){if(!1===J&&(Me(e.BLEND),J=!0),t===x)a=a||n,o=o||i,s=s||r,n===ee&&a===ie||(e.blendEquationSeparate(ke[n],ke[a]),ee=n,ie=a),i===te&&r===ne&&o===re&&s===ae||(e.blendFuncSeparate(De[i],De[r],De[o],De[s]),te=i,ne=r,re=o,ae=s),Q=t,oe=!1;else if(t!==Q||l!==oe){if(ee===b&&ie===b||(e.blendEquation(e.FUNC_ADD),ee=b,ie=b),l)switch(t){case g:e.blendFuncSeparate(e.ONE,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case v:e.blendFunc(e.ONE,e.ONE);break;case y:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case _:e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ZERO,e.SRC_ALPHA);break;default:console.error("THREE.WebGLState: Invalid blending: ",t);break}else switch(t){case g:e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case v:e.blendFunc(e.SRC_ALPHA,e.ONE);break;case y:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case _:e.blendFunc(e.ZERO,e.SRC_COLOR);break;default:console.error("THREE.WebGLState: Invalid blending: ",t);break}te=null,ne=null,re=null,ae=null,Q=t,oe=l}}else!0===J&&(Ce(e.BLEND),J=!1)}function Pe(t,n){t.side===f?Ce(e.CULL_FACE):Me(e.CULL_FACE);let i=t.side===p;n&&(i=!i),Oe(i),t.blending===g&&!1===t.transparent?Ie(m):Ie(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.premultipliedAlpha),h.setFunc(t.depthFunc),h.setTest(t.depthTest),h.setMask(t.depthWrite),u.setMask(t.colorWrite);const r=t.stencilWrite;d.setTest(r),r&&(d.setMask(t.stencilWriteMask),d.setFunc(t.stencilFunc,t.stencilRef,t.stencilFuncMask),d.setOp(t.stencilFail,t.stencilZFail,t.stencilZPass)),Ne(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits),!0===t.alphaToCoverage?Me(e.SAMPLE_ALPHA_TO_COVERAGE):Ce(e.SAMPLE_ALPHA_TO_COVERAGE)}function Oe(t){se!==t&&(t?e.frontFace(e.CW):e.frontFace(e.CCW),se=t)}function Le(t){t!==o?(Me(e.CULL_FACE),t!==le&&(t===s?e.cullFace(e.BACK):t===l?e.cullFace(e.FRONT):e.cullFace(e.FRONT_AND_BACK))):Ce(e.CULL_FACE),le=t}function Re(t){t!==ce&&(pe&&e.lineWidth(t),ce=t)}function Ne(t,n,i){t?(Me(e.POLYGON_OFFSET_FILL),ue===n&&he===i||(e.polygonOffset(n,i),ue=n,he=i)):Ce(e.POLYGON_OFFSET_FILL)}function Fe(t){t?Me(e.SCISSOR_TEST):Ce(e.SCISSOR_TEST)}function Be(t){void 0===t&&(t=e.TEXTURE0+de-1),ge!==t&&(e.activeTexture(t),ge=t)}function ze(t,n,i){void 0===i&&(i=null===ge?e.TEXTURE0+de-1:ge);let r=ve[i];void 0===r&&(r={type:void 0,texture:void 0},ve[i]=r),r.type===t&&r.texture===n||(ge!==i&&(e.activeTexture(i),ge=i),e.bindTexture(t,n||Se[t]),r.type=t,r.texture=n)}function Ve(){const t=ve[ge];void 0!==t&&void 0!==t.type&&(e.bindTexture(t.type,null),t.type=void 0,t.texture=void 0)}function Ue(){try{e.compressedTexImage2D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}}function He(){try{e.compressedTexImage3D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}}function $e(){try{e.texSubImage2D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}}function je(){try{e.texSubImage3D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}}function We(){try{e.compressedTexSubImage2D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}}function Ge(){try{e.compressedTexSubImage3D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}}function qe(){try{e.texStorage2D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}}function Xe(){try{e.texStorage3D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}}function Ye(){try{e.texImage2D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}}function Ke(){try{e.texImage3D.apply(e,arguments)}catch(t){console.error("THREE.WebGLState:",t)}}function Ze(t){!1===xe.equals(t)&&(e.scissor(t.x,t.y,t.z,t.w),xe.copy(t))}function Je(t){!1===be.equals(t)&&(e.viewport(t.x,t.y,t.z,t.w),be.copy(t))}function Qe(t,n){let i=G.get(n);void 0===i&&(i=new WeakMap,G.set(n,i));let r=i.get(t);void 0===r&&(r=e.getUniformBlockIndex(n,t.name),i.set(t,r))}function et(t,n){const i=G.get(n),r=i.get(t);W.get(n)!==r&&(e.uniformBlockBinding(n,r,t.__bindingPointIndex),W.set(n,r))}function tt(){e.disable(e.BLEND),e.disable(e.CULL_FACE),e.disable(e.DEPTH_TEST),e.disable(e.POLYGON_OFFSET_FILL),e.disable(e.SCISSOR_TEST),e.disable(e.STENCIL_TEST),e.disable(e.SAMPLE_ALPHA_TO_COVERAGE),e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO),e.blendFuncSeparate(e.ONE,e.ZERO,e.ONE,e.ZERO),e.colorMask(!0,!0,!0,!0),e.clearColor(0,0,0,0),e.depthMask(!0),e.depthFunc(e.LESS),e.clearDepth(1),e.stencilMask(4294967295),e.stencilFunc(e.ALWAYS,0,4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP),e.clearStencil(0),e.cullFace(e.BACK),e.frontFace(e.CCW),e.polygonOffset(0,0),e.activeTexture(e.TEXTURE0),e.bindFramebuffer(e.FRAMEBUFFER,null),!0===i&&(e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),e.bindFramebuffer(e.READ_FRAMEBUFFER,null)),e.useProgram(null),e.lineWidth(1),e.scissor(0,0,e.canvas.width,e.canvas.height),e.viewport(0,0,e.canvas.width,e.canvas.height),q={},ge=null,ve={},X={},Y=new WeakMap,K=[],Z=null,J=!1,Q=null,ee=null,te=null,ne=null,ie=null,re=null,ae=null,oe=!1,se=null,le=null,ce=null,ue=null,he=null,xe.set(0,0,e.canvas.width,e.canvas.height),be.set(0,0,e.canvas.width,e.canvas.height),u.reset(),h.reset(),d.reset()}return{buffers:{color:u,depth:h,stencil:d},enable:Me,disable:Ce,bindFramebuffer:Te,drawBuffers:Ee,useProgram:Ae,setBlending:Ie,setMaterial:Pe,setFlipSided:Oe,setCullFace:Le,setLineWidth:Re,setPolygonOffset:Ne,setScissorTest:Fe,activeTexture:Be,bindTexture:ze,unbindTexture:Ve,compressedTexImage2D:Ue,compressedTexImage3D:He,texImage2D:Ye,texImage3D:Ke,updateUBOMapping:Qe,uniformBlockBinding:et,texStorage2D:qe,texStorage3D:Xe,texSubImage2D:$e,texSubImage3D:je,compressedTexSubImage2D:We,compressedTexSubImage3D:Ge,scissor:Ze,viewport:Je,reset:tt}}function Hu(e,t,n,i,r,a,o){const s=r.isWebGL2,l=r.maxTextures,c=r.maxCubemapSize,u=r.maxTextureSize,h=r.maxSamples,d=t.has("WEBGL_multisampled_render_to_texture")?t.get("WEBGL_multisampled_render_to_texture"):null,p="undefined"!==typeof navigator&&/OculusBrowser/g.test(navigator.userAgent),f=new WeakMap;let m;const g=new WeakMap;let v=!1;try{v="undefined"!==typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(ae){}function y(e,t){return v?new OffscreenCanvas(e,t):En("canvas")}function _(e,t,n,i){let r=1;if((e.width>i||e.height>i)&&(r=i/Math.max(e.width,e.height)),r<1||!0===t){if("undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap){const i=t?yn:Math.floor,a=i(r*e.width),o=i(r*e.height);void 0===m&&(m=y(a,o));const s=n?y(a,o):m;s.width=a,s.height=o;const l=s.getContext("2d");return l.drawImage(e,0,0,a,o),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+e.width+"x"+e.height+") to ("+a+"x"+o+")."),s}return"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+e.width+"x"+e.height+")."),e}return e}function x(e){return gn(e.width)&&gn(e.height)}function b(e){return!s&&(e.wrapS!==se||e.wrapT!==se||e.minFilter!==ce&&e.minFilter!==de)}function w(e,t){return e.generateMipmaps&&t&&e.minFilter!==ce&&e.minFilter!==de}function S(t){e.generateMipmap(t)}function M(n,i,r,a,o=!1){if(!1===s)return i;if(null!==n){if(void 0!==e[n])return e[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let l=i;return i===e.RED&&(r===e.FLOAT&&(l=e.R32F),r===e.HALF_FLOAT&&(l=e.R16F),r===e.UNSIGNED_BYTE&&(l=e.R8)),i===e.RG&&(r===e.FLOAT&&(l=e.RG32F),r===e.HALF_FLOAT&&(l=e.RG16F),r===e.UNSIGNED_BYTE&&(l=e.RG8)),i===e.RGBA&&(r===e.FLOAT&&(l=e.RGBA32F),r===e.HALF_FLOAT&&(l=e.RGBA16F),r===e.UNSIGNED_BYTE&&(l=a===Dt&&!1===o?e.SRGB8_ALPHA8:e.RGBA8),r===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),r===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)),l!==e.R16F&&l!==e.R32F&&l!==e.RG16F&&l!==e.RG32F&&l!==e.RGBA16F&&l!==e.RGBA32F||t.get("EXT_color_buffer_float"),l}function C(e,t,n){return!0===w(e,n)||e.isFramebufferTexture&&e.minFilter!==ce&&e.minFilter!==de?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function T(t){return t===ce||t===ue||t===he?e.NEAREST:e.LINEAR}function E(e){const t=e.target;t.removeEventListener("dispose",E),k(t),t.isVideoTexture&&f.delete(t)}function A(e){const t=e.target;t.removeEventListener("dispose",A),I(t)}function k(e){const t=i.get(e);if(void 0===t.__webglInit)return;const n=e.source,r=g.get(n);if(r){const i=r[t.__cacheKey];i.usedTimes--,0===i.usedTimes&&D(e),0===Object.keys(r).length&&g.delete(n)}i.remove(e)}function D(t){const n=i.get(t);e.deleteTexture(n.__webglTexture);const r=t.source,a=g.get(r);delete a[n.__cacheKey],o.memory.textures--}function I(t){const n=t.texture,r=i.get(t),a=i.get(n);if(void 0!==a.__webglTexture&&(e.deleteTexture(a.__webglTexture),o.memory.textures--),t.depthTexture&&t.depthTexture.dispose(),t.isWebGLCubeRenderTarget)for(let i=0;i<6;i++)e.deleteFramebuffer(r.__webglFramebuffer[i]),r.__webglDepthbuffer&&e.deleteRenderbuffer(r.__webglDepthbuffer[i]);else{if(e.deleteFramebuffer(r.__webglFramebuffer),r.__webglDepthbuffer&&e.deleteRenderbuffer(r.__webglDepthbuffer),r.__webglMultisampledFramebuffer&&e.deleteFramebuffer(r.__webglMultisampledFramebuffer),r.__webglColorRenderbuffer)for(let t=0;t<r.__webglColorRenderbuffer.length;t++)r.__webglColorRenderbuffer[t]&&e.deleteRenderbuffer(r.__webglColorRenderbuffer[t]);r.__webglDepthRenderbuffer&&e.deleteRenderbuffer(r.__webglDepthRenderbuffer)}if(t.isWebGLMultipleRenderTargets)for(let s=0,l=n.length;s<l;s++){const t=i.get(n[s]);t.__webglTexture&&(e.deleteTexture(t.__webglTexture),o.memory.textures--),i.remove(n[s])}i.remove(n),i.remove(t)}let P=0;function O(){P=0}function L(){const e=P;return e>=l&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+l),P+=1,e}function R(e){const t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function N(t,r){const a=i.get(t);if(t.isVideoTexture&&ie(t),!1===t.isRenderTargetTexture&&t.version>0&&a.__version!==t.version){const e=t.image;if(null===e)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==e.complete)return void W(a,t,r);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+r)}function F(t,r){const a=i.get(t);t.version>0&&a.__version!==t.version?W(a,t,r):n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+r)}function B(t,r){const a=i.get(t);t.version>0&&a.__version!==t.version?W(a,t,r):n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+r)}function z(t,r){const a=i.get(t);t.version>0&&a.__version!==t.version?G(a,t,r):n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+r)}const V={[oe]:e.REPEAT,[se]:e.CLAMP_TO_EDGE,[le]:e.MIRRORED_REPEAT},U={[ce]:e.NEAREST,[ue]:e.NEAREST_MIPMAP_NEAREST,[he]:e.NEAREST_MIPMAP_LINEAR,[de]:e.LINEAR,[pe]:e.LINEAR_MIPMAP_NEAREST,[fe]:e.LINEAR_MIPMAP_LINEAR},H={[Rt]:e.NEVER,[Ht]:e.ALWAYS,[Nt]:e.LESS,[Bt]:e.LEQUAL,[Ft]:e.EQUAL,[Ut]:e.GEQUAL,[zt]:e.GREATER,[Vt]:e.NOTEQUAL};function $(n,a,o){if(o?(e.texParameteri(n,e.TEXTURE_WRAP_S,V[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,V[a.wrapT]),n!==e.TEXTURE_3D&&n!==e.TEXTURE_2D_ARRAY||e.texParameteri(n,e.TEXTURE_WRAP_R,V[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,U[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,U[a.minFilter])):(e.texParameteri(n,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(n,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),n!==e.TEXTURE_3D&&n!==e.TEXTURE_2D_ARRAY||e.texParameteri(n,e.TEXTURE_WRAP_R,e.CLAMP_TO_EDGE),a.wrapS===se&&a.wrapT===se||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),e.texParameteri(n,e.TEXTURE_MAG_FILTER,T(a.magFilter)),e.texParameteri(n,e.TEXTURE_MIN_FILTER,T(a.minFilter)),a.minFilter!==ce&&a.minFilter!==de&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,H[a.compareFunction])),!0===t.has("EXT_texture_filter_anisotropic")){const o=t.get("EXT_texture_filter_anisotropic");if(a.magFilter===ce)return;if(a.minFilter!==he&&a.minFilter!==fe)return;if(a.type===be&&!1===t.has("OES_texture_float_linear"))return;if(!1===s&&a.type===we&&!1===t.has("OES_texture_half_float_linear"))return;(a.anisotropy>1||i.get(a).__currentAnisotropy)&&(e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,r.getMaxAnisotropy())),i.get(a).__currentAnisotropy=a.anisotropy)}}function j(t,n){let i=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",E));const r=n.source;let a=g.get(r);void 0===a&&(a={},g.set(r,a));const s=R(n);if(s!==t.__cacheKey){void 0===a[s]&&(a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,i=!0),a[s].usedTimes++;const r=a[t.__cacheKey];void 0!==r&&(a[t.__cacheKey].usedTimes--,0===r.usedTimes&&D(n)),t.__cacheKey=s,t.__webglTexture=a[s].texture}return i}function W(t,r,o){let l=e.TEXTURE_2D;(r.isDataArrayTexture||r.isCompressedArrayTexture)&&(l=e.TEXTURE_2D_ARRAY),r.isData3DTexture&&(l=e.TEXTURE_3D);const c=j(t,r),h=r.source;n.bindTexture(l,t.__webglTexture,e.TEXTURE0+o);const d=i.get(h);if(h.version!==d.__version||!0===c){n.activeTexture(e.TEXTURE0+o),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,r.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,r.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,e.NONE);const t=b(r)&&!1===x(r.image);let i=_(r.image,t,!1,u);i=re(r,i);const p=x(i)||s,f=a.convert(r.format,r.colorSpace);let m,g=a.convert(r.type),v=M(r.internalFormat,f,g,r.colorSpace);$(l,r,p);const y=r.mipmaps,T=s&&!0!==r.isVideoTexture,E=void 0===d.__version||!0===c,A=C(r,i,p);if(r.isDepthTexture)v=e.DEPTH_COMPONENT,s?v=r.type===be?e.DEPTH_COMPONENT32F:r.type===xe?e.DEPTH_COMPONENT24:r.type===Ce?e.DEPTH24_STENCIL8:e.DEPTH_COMPONENT16:r.type===be&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),r.format===De&&v===e.DEPTH_COMPONENT&&r.type!==ye&&r.type!==xe&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),r.type=xe,g=a.convert(r.type)),r.format===Ie&&v===e.DEPTH_COMPONENT&&(v=e.DEPTH_STENCIL,r.type!==Ce&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),r.type=Ce,g=a.convert(r.type))),E&&(T?n.texStorage2D(e.TEXTURE_2D,1,v,i.width,i.height):n.texImage2D(e.TEXTURE_2D,0,v,i.width,i.height,0,f,g,null));else if(r.isDataTexture)if(y.length>0&&p){T&&E&&n.texStorage2D(e.TEXTURE_2D,A,v,y[0].width,y[0].height);for(let t=0,i=y.length;t<i;t++)m=y[t],T?n.texSubImage2D(e.TEXTURE_2D,t,0,0,m.width,m.height,f,g,m.data):n.texImage2D(e.TEXTURE_2D,t,v,m.width,m.height,0,f,g,m.data);r.generateMipmaps=!1}else T?(E&&n.texStorage2D(e.TEXTURE_2D,A,v,i.width,i.height),n.texSubImage2D(e.TEXTURE_2D,0,0,0,i.width,i.height,f,g,i.data)):n.texImage2D(e.TEXTURE_2D,0,v,i.width,i.height,0,f,g,i.data);else if(r.isCompressedTexture)if(r.isCompressedArrayTexture){T&&E&&n.texStorage3D(e.TEXTURE_2D_ARRAY,A,v,y[0].width,y[0].height,i.depth);for(let t=0,a=y.length;t<a;t++)m=y[t],r.format!==Ee?null!==f?T?n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,m.width,m.height,i.depth,f,m.data,0,0):n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,t,v,m.width,m.height,i.depth,0,m.data,0,0):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):T?n.texSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,m.width,m.height,i.depth,f,g,m.data):n.texImage3D(e.TEXTURE_2D_ARRAY,t,v,m.width,m.height,i.depth,0,f,g,m.data)}else{T&&E&&n.texStorage2D(e.TEXTURE_2D,A,v,y[0].width,y[0].height);for(let t=0,i=y.length;t<i;t++)m=y[t],r.format!==Ee?null!==f?T?n.compressedTexSubImage2D(e.TEXTURE_2D,t,0,0,m.width,m.height,f,m.data):n.compressedTexImage2D(e.TEXTURE_2D,t,v,m.width,m.height,0,m.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):T?n.texSubImage2D(e.TEXTURE_2D,t,0,0,m.width,m.height,f,g,m.data):n.texImage2D(e.TEXTURE_2D,t,v,m.width,m.height,0,f,g,m.data)}else if(r.isDataArrayTexture)T?(E&&n.texStorage3D(e.TEXTURE_2D_ARRAY,A,v,i.width,i.height,i.depth),n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,i.width,i.height,i.depth,f,g,i.data)):n.texImage3D(e.TEXTURE_2D_ARRAY,0,v,i.width,i.height,i.depth,0,f,g,i.data);else if(r.isData3DTexture)T?(E&&n.texStorage3D(e.TEXTURE_3D,A,v,i.width,i.height,i.depth),n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,i.width,i.height,i.depth,f,g,i.data)):n.texImage3D(e.TEXTURE_3D,0,v,i.width,i.height,i.depth,0,f,g,i.data);else if(r.isFramebufferTexture){if(E)if(T)n.texStorage2D(e.TEXTURE_2D,A,v,i.width,i.height);else{let t=i.width,r=i.height;for(let i=0;i<A;i++)n.texImage2D(e.TEXTURE_2D,i,v,t,r,0,f,g,null),t>>=1,r>>=1}}else if(y.length>0&&p){T&&E&&n.texStorage2D(e.TEXTURE_2D,A,v,y[0].width,y[0].height);for(let t=0,i=y.length;t<i;t++)m=y[t],T?n.texSubImage2D(e.TEXTURE_2D,t,0,0,f,g,m):n.texImage2D(e.TEXTURE_2D,t,v,f,g,m);r.generateMipmaps=!1}else T?(E&&n.texStorage2D(e.TEXTURE_2D,A,v,i.width,i.height),n.texSubImage2D(e.TEXTURE_2D,0,0,0,f,g,i)):n.texImage2D(e.TEXTURE_2D,0,v,f,g,i);w(r,p)&&S(l),d.__version=h.version,r.onUpdate&&r.onUpdate(r)}t.__version=r.version}function G(t,r,o){if(6!==r.image.length)return;const l=j(t,r),u=r.source;n.bindTexture(e.TEXTURE_CUBE_MAP,t.__webglTexture,e.TEXTURE0+o);const h=i.get(u);if(u.version!==h.__version||!0===l){n.activeTexture(e.TEXTURE0+o),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,r.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,r.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,e.NONE);const t=r.isCompressedTexture||r.image[0].isCompressedTexture,i=r.image[0]&&r.image[0].isDataTexture,d=[];for(let e=0;e<6;e++)d[e]=t||i?i?r.image[e].image:r.image[e]:_(r.image[e],!1,!0,c),d[e]=re(r,d[e]);const p=d[0],f=x(p)||s,m=a.convert(r.format,r.colorSpace),g=a.convert(r.type),v=M(r.internalFormat,m,g,r.colorSpace),y=s&&!0!==r.isVideoTexture,b=void 0===h.__version||!0===l;let T,E=C(r,p,f);if($(e.TEXTURE_CUBE_MAP,r,f),t){y&&b&&n.texStorage2D(e.TEXTURE_CUBE_MAP,E,v,p.width,p.height);for(let t=0;t<6;t++){T=d[t].mipmaps;for(let i=0;i<T.length;i++){const a=T[i];r.format!==Ee?null!==m?y?n.compressedTexSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,0,0,a.width,a.height,m,a.data):n.compressedTexImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,v,a.width,a.height,0,a.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):y?n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,0,0,a.width,a.height,m,g,a.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,v,a.width,a.height,0,m,g,a.data)}}}else{T=r.mipmaps,y&&b&&(T.length>0&&E++,n.texStorage2D(e.TEXTURE_CUBE_MAP,E,v,d[0].width,d[0].height));for(let t=0;t<6;t++)if(i){y?n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,d[t].width,d[t].height,m,g,d[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,v,d[t].width,d[t].height,0,m,g,d[t].data);for(let i=0;i<T.length;i++){const r=T[i],a=r.image[t].image;y?n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,0,0,a.width,a.height,m,g,a.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,v,a.width,a.height,0,m,g,a.data)}}else{y?n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m,g,d[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,v,m,g,d[t]);for(let i=0;i<T.length;i++){const r=T[i];y?n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,0,0,m,g,r.image[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,v,m,g,r.image[t])}}}w(r,f)&&S(e.TEXTURE_CUBE_MAP),h.__version=u.version,r.onUpdate&&r.onUpdate(r)}t.__version=r.version}function q(t,r,o,s,l){const c=a.convert(o.format,o.colorSpace),u=a.convert(o.type),h=M(o.internalFormat,c,u,o.colorSpace),p=i.get(r);p.__hasExternalTextures||(l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,0,h,r.width,r.height,r.depth,0,c,u,null):n.texImage2D(l,0,h,r.width,r.height,0,c,u,null)),n.bindFramebuffer(e.FRAMEBUFFER,t),ne(r)?d.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,s,l,i.get(o).__webglTexture,0,te(r)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,s,l,i.get(o).__webglTexture,0),n.bindFramebuffer(e.FRAMEBUFFER,null)}function X(t,n,i){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer&&!n.stencilBuffer){let r=e.DEPTH_COMPONENT16;if(i||ne(n)){const t=n.depthTexture;t&&t.isDepthTexture&&(t.type===be?r=e.DEPTH_COMPONENT32F:t.type===xe&&(r=e.DEPTH_COMPONENT24));const i=te(n);ne(n)?d.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,i,r,n.width,n.height):e.renderbufferStorageMultisample(e.RENDERBUFFER,i,r,n.width,n.height)}else e.renderbufferStorage(e.RENDERBUFFER,r,n.width,n.height);e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t)}else if(n.depthBuffer&&n.stencilBuffer){const r=te(n);i&&!1===ne(n)?e.renderbufferStorageMultisample(e.RENDERBUFFER,r,e.DEPTH24_STENCIL8,n.width,n.height):ne(n)?d.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,r,e.DEPTH24_STENCIL8,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.RENDERBUFFER,t)}else{const t=!0===n.isWebGLMultipleRenderTargets?n.texture:[n.texture];for(let r=0;r<t.length;r++){const o=t[r],s=a.convert(o.format,o.colorSpace),l=a.convert(o.type),c=M(o.internalFormat,s,l,o.colorSpace),u=te(n);i&&!1===ne(n)?e.renderbufferStorageMultisample(e.RENDERBUFFER,u,c,n.width,n.height):ne(n)?d.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,u,c,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,c,n.width,n.height)}}e.bindRenderbuffer(e.RENDERBUFFER,null)}function Y(t,r){const a=r&&r.isWebGLCubeRenderTarget;if(a)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(e.FRAMEBUFFER,t),!r.depthTexture||!r.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");i.get(r.depthTexture).__webglTexture&&r.depthTexture.image.width===r.width&&r.depthTexture.image.height===r.height||(r.depthTexture.image.width=r.width,r.depthTexture.image.height=r.height,r.depthTexture.needsUpdate=!0),N(r.depthTexture,0);const o=i.get(r.depthTexture).__webglTexture,s=te(r);if(r.depthTexture.format===De)ne(r)?d.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,o,0,s):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,o,0);else{if(r.depthTexture.format!==Ie)throw new Error("Unknown depthTexture format");ne(r)?d.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,o,0,s):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,o,0)}}function K(t){const r=i.get(t),a=!0===t.isWebGLCubeRenderTarget;if(t.depthTexture&&!r.__autoAllocateDepthBuffer){if(a)throw new Error("target.depthTexture not supported in Cube render targets");Y(r.__webglFramebuffer,t)}else if(a){r.__webglDepthbuffer=[];for(let i=0;i<6;i++)n.bindFramebuffer(e.FRAMEBUFFER,r.__webglFramebuffer[i]),r.__webglDepthbuffer[i]=e.createRenderbuffer(),X(r.__webglDepthbuffer[i],t,!1)}else n.bindFramebuffer(e.FRAMEBUFFER,r.__webglFramebuffer),r.__webglDepthbuffer=e.createRenderbuffer(),X(r.__webglDepthbuffer,t,!1);n.bindFramebuffer(e.FRAMEBUFFER,null)}function Z(t,n,r){const a=i.get(t);void 0!==n&&q(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D),void 0!==r&&K(t)}function J(t){const l=t.texture,c=i.get(t),u=i.get(l);t.addEventListener("dispose",A),!0!==t.isWebGLMultipleRenderTargets&&(void 0===u.__webglTexture&&(u.__webglTexture=e.createTexture()),u.__version=l.version,o.memory.textures++);const h=!0===t.isWebGLCubeRenderTarget,d=!0===t.isWebGLMultipleRenderTargets,p=x(t)||s;if(h){c.__webglFramebuffer=[];for(let t=0;t<6;t++)c.__webglFramebuffer[t]=e.createFramebuffer()}else{if(c.__webglFramebuffer=e.createFramebuffer(),d)if(r.drawBuffers){const n=t.texture;for(let t=0,r=n.length;t<r;t++){const r=i.get(n[t]);void 0===r.__webglTexture&&(r.__webglTexture=e.createTexture(),o.memory.textures++)}}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");if(s&&t.samples>0&&!1===ne(t)){const i=d?l:[l];c.__webglMultisampledFramebuffer=e.createFramebuffer(),c.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,c.__webglMultisampledFramebuffer);for(let n=0;n<i.length;n++){const r=i[n];c.__webglColorRenderbuffer[n]=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,c.__webglColorRenderbuffer[n]);const o=a.convert(r.format,r.colorSpace),s=a.convert(r.type),l=M(r.internalFormat,o,s,r.colorSpace,!0===t.isXRRenderTarget),u=te(t);e.renderbufferStorageMultisample(e.RENDERBUFFER,u,l,t.width,t.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+n,e.RENDERBUFFER,c.__webglColorRenderbuffer[n])}e.bindRenderbuffer(e.RENDERBUFFER,null),t.depthBuffer&&(c.__webglDepthRenderbuffer=e.createRenderbuffer(),X(c.__webglDepthRenderbuffer,t,!0)),n.bindFramebuffer(e.FRAMEBUFFER,null)}}if(h){n.bindTexture(e.TEXTURE_CUBE_MAP,u.__webglTexture),$(e.TEXTURE_CUBE_MAP,l,p);for(let n=0;n<6;n++)q(c.__webglFramebuffer[n],t,l,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n);w(l,p)&&S(e.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(d){const r=t.texture;for(let a=0,o=r.length;a<o;a++){const o=r[a],s=i.get(o);n.bindTexture(e.TEXTURE_2D,s.__webglTexture),$(e.TEXTURE_2D,o,p),q(c.__webglFramebuffer,t,o,e.COLOR_ATTACHMENT0+a,e.TEXTURE_2D),w(o,p)&&S(e.TEXTURE_2D)}n.unbindTexture()}else{let i=e.TEXTURE_2D;(t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&(s?i=t.isWebGL3DRenderTarget?e.TEXTURE_3D:e.TEXTURE_2D_ARRAY:console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")),n.bindTexture(i,u.__webglTexture),$(i,l,p),q(c.__webglFramebuffer,t,l,e.COLOR_ATTACHMENT0,i),w(l,p)&&S(i),n.unbindTexture()}t.depthBuffer&&K(t)}function Q(t){const r=x(t)||s,a=!0===t.isWebGLMultipleRenderTargets?t.texture:[t.texture];for(let o=0,s=a.length;o<s;o++){const s=a[o];if(w(s,r)){const r=t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:e.TEXTURE_2D,a=i.get(s).__webglTexture;n.bindTexture(r,a),S(r),n.unbindTexture()}}}function ee(t){if(s&&t.samples>0&&!1===ne(t)){const r=t.isWebGLMultipleRenderTargets?t.texture:[t.texture],a=t.width,o=t.height;let s=e.COLOR_BUFFER_BIT;const l=[],c=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=i.get(t),h=!0===t.isWebGLMultipleRenderTargets;if(h)for(let t=0;t<r.length;t++)n.bindFramebuffer(e.FRAMEBUFFER,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,null),n.bindFramebuffer(e.FRAMEBUFFER,u.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,null,0);n.bindFramebuffer(e.READ_FRAMEBUFFER,u.__webglMultisampledFramebuffer),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n<r.length;n++){l.push(e.COLOR_ATTACHMENT0+n),t.depthBuffer&&l.push(c);const d=void 0!==u.__ignoreDepthValues&&u.__ignoreDepthValues;if(!1===d&&(t.depthBuffer&&(s|=e.DEPTH_BUFFER_BIT),t.stencilBuffer&&(s|=e.STENCIL_BUFFER_BIT)),h&&e.framebufferRenderbuffer(e.READ_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.RENDERBUFFER,u.__webglColorRenderbuffer[n]),!0===d&&(e.invalidateFramebuffer(e.READ_FRAMEBUFFER,[c]),e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,[c])),h){const t=i.get(r[n]).__webglTexture;e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0)}e.blitFramebuffer(0,0,a,o,0,0,a,o,s,e.NEAREST),p&&e.invalidateFramebuffer(e.READ_FRAMEBUFFER,l)}if(n.bindFramebuffer(e.READ_FRAMEBUFFER,null),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),h)for(let t=0;t<r.length;t++){n.bindFramebuffer(e.FRAMEBUFFER,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,u.__webglColorRenderbuffer[t]);const a=i.get(r[t]).__webglTexture;n.bindFramebuffer(e.FRAMEBUFFER,u.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,a,0)}n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglMultisampledFramebuffer)}}function te(e){return Math.min(h,e.samples)}function ne(e){const n=i.get(e);return s&&e.samples>0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function ie(e){const t=o.render.frame;f.get(e)!==t&&(f.set(e,t),e.update())}function re(e,n){const i=e.colorSpace,r=e.format,a=e.type;return!0===e.isCompressedTexture||e.format===Wt||i!==It&&i!==kt&&(i===Dt?!1===s?!0===t.has("EXT_sRGB")&&r===Ee?(e.format=Wt,e.minFilter=de,e.generateMipmaps=!1):n=Vn.sRGBToLinear(n):r===Ee&&a===me||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",i)),n}this.allocateTextureUnit=L,this.resetTextureUnits=O,this.setTexture2D=N,this.setTexture2DArray=F,this.setTexture3D=B,this.setTextureCube=z,this.rebindTextures=Z,this.setupRenderTarget=J,this.updateRenderTargetMipmap=Q,this.updateMultisampleRenderTarget=ee,this.setupDepthRenderbuffer=K,this.setupFrameBufferTexture=q,this.useMultisampledRTT=ne}function $u(e,t,n){const i=n.isWebGL2;function r(n,r=kt){let a;if(n===me)return e.UNSIGNED_BYTE;if(n===Se)return e.UNSIGNED_SHORT_4_4_4_4;if(n===Me)return e.UNSIGNED_SHORT_5_5_5_1;if(n===ge)return e.BYTE;if(n===ve)return e.SHORT;if(n===ye)return e.UNSIGNED_SHORT;if(n===_e)return e.INT;if(n===xe)return e.UNSIGNED_INT;if(n===be)return e.FLOAT;if(n===we)return i?e.HALF_FLOAT:(a=t.get("OES_texture_half_float"),null!==a?a.HALF_FLOAT_OES:null);if(n===Te)return e.ALPHA;if(n===Ee)return e.RGBA;if(n===Ae)return e.LUMINANCE;if(n===ke)return e.LUMINANCE_ALPHA;if(n===De)return e.DEPTH_COMPONENT;if(n===Ie)return e.DEPTH_STENCIL;if(n===Wt)return a=t.get("EXT_sRGB"),null!==a?a.SRGB_ALPHA_EXT:null;if(n===Pe)return e.RED;if(n===Oe)return e.RED_INTEGER;if(n===Le)return e.RG;if(n===Re)return e.RG_INTEGER;if(n===Ne)return e.RGBA_INTEGER;if(n===Fe||n===Be||n===ze||n===Ve)if(r===Dt){if(a=t.get("WEBGL_compressed_texture_s3tc_srgb"),null===a)return null;if(n===Fe)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===Be)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===ze)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===Ve)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(a=t.get("WEBGL_compressed_texture_s3tc"),null===a)return null;if(n===Fe)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===Be)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===ze)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===Ve)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(n===Ue||n===He||n===$e||n===je){if(a=t.get("WEBGL_compressed_texture_pvrtc"),null===a)return null;if(n===Ue)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===He)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===$e)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===je)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(n===We)return a=t.get("WEBGL_compressed_texture_etc1"),null!==a?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(n===Ge||n===qe){if(a=t.get("WEBGL_compressed_texture_etc"),null===a)return null;if(n===Ge)return r===Dt?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(n===qe)return r===Dt?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}if(n===Xe||n===Ye||n===Ke||n===Ze||n===Je||n===Qe||n===et||n===tt||n===nt||n===it||n===rt||n===at||n===ot||n===st){if(a=t.get("WEBGL_compressed_texture_astc"),null===a)return null;if(n===Xe)return r===Dt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===Ye)return r===Dt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===Ke)return r===Dt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===Ze)return r===Dt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===Je)return r===Dt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===Qe)return r===Dt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===et)return r===Dt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===tt)return r===Dt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===nt)return r===Dt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===it)return r===Dt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===rt)return r===Dt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===at)return r===Dt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===ot)return r===Dt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===st)return r===Dt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}if(n===lt){if(a=t.get("EXT_texture_compression_bptc"),null===a)return null;if(n===lt)return r===Dt?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT}if(n===ct||n===ut||n===ht||n===dt){if(a=t.get("EXT_texture_compression_rgtc"),null===a)return null;if(n===lt)return a.COMPRESSED_RED_RGTC1_EXT;if(n===ut)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===ht)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===dt)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}return n===Ce?i?e.UNSIGNED_INT_24_8:(a=t.get("WEBGL_depth_texture"),null!==a?a.UNSIGNED_INT_24_8_WEBGL:null):void 0!==e[n]?e[n]:null}return{convert:r}}class ju extends ua{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Wu extends Ji{constructor(){super(),this.isGroup=!0,this.type="Group"}}const Gu={type:"move"};class qu{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new Wu,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new Wu,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new Zn,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new Zn),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new Wu,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new Zn,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new Zn),this._grip}dispatchEvent(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(e,t,n){let i=null,r=null,a=null;const o=this._targetRay,s=this._grip,l=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState){if(l&&e.hand){a=!0;for(const a of e.hand.values()){const e=t.getJointPose(a,n),i=this._getHandJoint(l,a);null!==e&&(i.matrix.fromArray(e.transform.matrix),i.matrix.decompose(i.position,i.rotation,i.scale),i.matrixWorldNeedsUpdate=!0,i.jointRadius=e.radius),i.visible=null!==e}const i=l.joints["index-finger-tip"],r=l.joints["thumb-tip"],o=i.position.distanceTo(r.position),s=.02,c=.005;l.inputState.pinching&&o>s+c?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!l.inputState.pinching&&o<=s-c&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==s&&e.gripSpace&&(r=t.getPose(e.gripSpace,n),null!==r&&(s.matrix.fromArray(r.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,r.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(r.linearVelocity)):s.hasLinearVelocity=!1,r.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(r.angularVelocity)):s.hasAngularVelocity=!1));null!==o&&(i=t.getPose(e.targetRaySpace,n),null===i&&null!==r&&(i=r),null!==i&&(o.matrix.fromArray(i.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,i.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(i.linearVelocity)):o.hasLinearVelocity=!1,i.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(i.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(Gu)))}return null!==o&&(o.visible=null!==i),null!==s&&(s.visible=null!==r),null!==l&&(l.visible=null!==a),this}_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){const n=new Wu;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class Xu extends Wn{constructor(e,t,n,i,r,a,o,s,l,c){if(c=void 0!==c?c:De,c!==De&&c!==Ie)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===De&&(n=xe),void 0===n&&c===Ie&&(n=Ce),super(null,i,r,a,o,s,c,n,l),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=void 0!==o?o:ce,this.minFilter=void 0!==s?s:ce,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const t=super.toJSON(e);return null!==this.compareFunction&&(t.compareFunction=this.compareFunction),t}}class Yu extends Xt{constructor(e,t){super();const n=this;let i=null,r=1,a=null,o="local-floor",s=1,l=null,c=null,u=null,h=null,d=null,p=null;const f=t.getContextAttributes();let m=null,g=null;const v=[],y=[],_=new ua;_.layers.enable(1),_.viewport=new Gn;const x=new ua;x.layers.enable(2),x.viewport=new Gn;const b=[_,x],w=new ju;w.layers.enable(1),w.layers.enable(2);let S=null,M=null;function C(e){const t=y.indexOf(e.inputSource);if(-1===t)return;const n=v[t];void 0!==n&&(n.update(e.inputSource,e.frame,l||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function T(){i.removeEventListener("select",C),i.removeEventListener("selectstart",C),i.removeEventListener("selectend",C),i.removeEventListener("squeeze",C),i.removeEventListener("squeezestart",C),i.removeEventListener("squeezeend",C),i.removeEventListener("end",T),i.removeEventListener("inputsourceschange",E);for(let e=0;e<v.length;e++){const t=y[e];null!==t&&(y[e]=null,v[e].disconnect(t))}S=null,M=null,e.setRenderTarget(m),d=null,h=null,u=null,i=null,g=null,R.stop(),n.isPresenting=!1,n.dispatchEvent({type:"sessionend"})}function E(e){for(let t=0;t<e.removed.length;t++){const n=e.removed[t],i=y.indexOf(n);i>=0&&(y[i]=null,v[i].disconnect(n))}for(let t=0;t<e.added.length;t++){const n=e.added[t];let i=y.indexOf(n);if(-1===i){for(let e=0;e<v.length;e++){if(e>=y.length){y.push(n),i=e;break}if(null===y[e]){y[e]=n,i=e;break}}if(-1===i)break}const r=v[i];r&&r.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=v[e];return void 0===t&&(t=new qu,v[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=v[e];return void 0===t&&(t=new qu,v[e]=t),t.getGripSpace()},this.getHand=function(e){let t=v[e];return void 0===t&&(t=new qu,v[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){r=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(e){o=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return l||a},this.setReferenceSpace=function(e){l=e},this.getBaseLayer=function(){return null!==h?h:d},this.getBinding=function(){return u},this.getFrame=function(){return p},this.getSession=function(){return i},this.setSession=async function(c){if(i=c,null!==i){if(m=e.getRenderTarget(),i.addEventListener("select",C),i.addEventListener("selectstart",C),i.addEventListener("selectend",C),i.addEventListener("squeeze",C),i.addEventListener("squeezestart",C),i.addEventListener("squeezeend",C),i.addEventListener("end",T),i.addEventListener("inputsourceschange",E),!0!==f.xrCompatible&&await t.makeXRCompatible(),void 0===i.renderState.layers||!1===e.capabilities.isWebGL2){const n={antialias:void 0!==i.renderState.layers||f.antialias,alpha:!0,depth:f.depth,stencil:f.stencil,framebufferScaleFactor:r};d=new XRWebGLLayer(i,t,n),i.updateRenderState({baseLayer:d}),g=new qn(d.framebufferWidth,d.framebufferHeight,{format:Ee,type:me,colorSpace:e.outputColorSpace,stencilBuffer:f.stencil})}else{let n=null,a=null,o=null;f.depth&&(o=f.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,n=f.stencil?Ie:De,a=f.stencil?Ce:xe);const s={colorFormat:t.RGBA8,depthFormat:o,scaleFactor:r};u=new XRWebGLBinding(i,t),h=u.createProjectionLayer(s),i.updateRenderState({layers:[h]}),g=new qn(h.textureWidth,h.textureHeight,{format:Ee,type:me,depthTexture:new Xu(h.textureWidth,h.textureHeight,a,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:f.stencil,colorSpace:e.outputColorSpace,samples:f.antialias?4:0});const l=e.properties.get(g);l.__ignoreDepthValues=h.ignoreDepthValues}g.isXRRenderTarget=!0,this.setFoveation(s),l=null,a=await i.requestReferenceSpace(o),R.setContext(i),R.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(null!==i)return i.environmentBlendMode};const A=new Zn,k=new Zn;function D(e,t,n){A.setFromMatrixPosition(t.matrixWorld),k.setFromMatrixPosition(n.matrixWorld);const i=A.distanceTo(k),r=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=r[14]/(r[10]-1),s=r[14]/(r[10]+1),l=(r[9]+1)/r[5],c=(r[9]-1)/r[5],u=(r[8]-1)/r[0],h=(a[8]+1)/a[0],d=o*u,p=o*h,f=i/(-u+h),m=f*-u;t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(m),e.translateZ(f),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert();const g=o+f,v=s+f,y=d-m,_=p+(i-m),x=l*s/v*g,b=c*s/v*g;e.projectionMatrix.makePerspective(y,_,x,b,g,v),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}function I(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}function P(e,t,n){null===n?e.matrix.copy(t.matrixWorld):(e.matrix.copy(n.matrixWorld),e.matrix.invert(),e.matrix.multiply(t.matrixWorld)),e.matrix.decompose(e.position,e.quaternion,e.scale),e.updateMatrixWorld(!0);const i=e.children;for(let r=0,a=i.length;r<a;r++)i[r].updateMatrixWorld(!0);e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse),e.isPerspectiveCamera&&(e.fov=2*Jt*Math.atan(1/e.projectionMatrix.elements[5]),e.zoom=1)}this.updateCamera=function(e){if(null===i)return;w.near=x.near=_.near=e.near,w.far=x.far=_.far=e.far,S===w.near&&M===w.far||(i.updateRenderState({depthNear:w.near,depthFar:w.far}),S=w.near,M=w.far);const t=e.parent,n=w.cameras;I(w,t);for(let i=0;i<n.length;i++)I(n[i],t);2===n.length?D(w,_,x):w.projectionMatrix.copy(_.projectionMatrix),P(e,w,t)},this.getCamera=function(){return w},this.getFoveation=function(){if(null!==h||null!==d)return s},this.setFoveation=function(e){s=e,null!==h&&(h.fixedFoveation=e),null!==d&&void 0!==d.fixedFoveation&&(d.fixedFoveation=e)};let O=null;function L(t,i){if(c=i.getViewerPose(l||a),p=i,null!==c){const t=c.views;null!==d&&(e.setRenderTargetFramebuffer(g,d.framebuffer),e.setRenderTarget(g));let n=!1;t.length!==w.cameras.length&&(w.cameras.length=0,n=!0);for(let i=0;i<t.length;i++){const r=t[i];let a=null;if(null!==d)a=d.getViewport(r);else{const t=u.getViewSubImage(h,r);a=t.viewport,0===i&&(e.setRenderTargetTextures(g,t.colorTexture,h.ignoreDepthValues?void 0:t.depthStencilTexture),e.setRenderTarget(g))}let o=b[i];void 0===o&&(o=new ua,o.layers.enable(i),o.viewport=new Gn,b[i]=o),o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.quaternion,o.scale),o.projectionMatrix.fromArray(r.projectionMatrix),o.projectionMatrixInverse.copy(o.projectionMatrix).invert(),o.viewport.set(a.x,a.y,a.width,a.height),0===i&&(w.matrix.copy(o.matrix),w.matrix.decompose(w.position,w.quaternion,w.scale)),!0===n&&w.cameras.push(o)}}for(let e=0;e<v.length;e++){const t=y[e],n=v[e];null!==t&&void 0!==n&&n.update(t,i,l||a)}O&&O(t,i),i.detectedPlanes&&n.dispatchEvent({type:"planesdetected",data:i}),p=null}const R=new Sa;R.setAnimationLoop(L),this.setAnimationLoop=function(e){O=e},this.dispose=function(){}}}function Ku(e,t){function n(e,t){!0===e.matrixAutoUpdate&&e.updateMatrix(),t.value.copy(e.matrix)}function i(t,n){n.color.getRGB(t.fogColor.value,ra(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)}function r(e,t,n,i,r){t.isMeshBasicMaterial||t.isMeshLambertMaterial?a(e,t):t.isMeshToonMaterial?(a(e,t),h(e,t)):t.isMeshPhongMaterial?(a(e,t),u(e,t)):t.isMeshStandardMaterial?(a(e,t),d(e,t),t.isMeshPhysicalMaterial&&f(e,t,r)):t.isMeshMatcapMaterial?(a(e,t),m(e,t)):t.isMeshDepthMaterial?a(e,t):t.isMeshDistanceMaterial?(a(e,t),g(e,t)):t.isMeshNormalMaterial?a(e,t):t.isLineBasicMaterial?(o(e,t),t.isLineDashedMaterial&&s(e,t)):t.isPointsMaterial?l(e,t,n,i):t.isSpriteMaterial?c(e,t):t.isShadowMaterial?(e.color.value.copy(t.color),e.opacity.value=t.opacity):t.isShaderMaterial&&(t.uniformsNeedUpdate=!1)}function a(i,r){i.opacity.value=r.opacity,r.color&&i.diffuse.value.copy(r.color),r.emissive&&i.emissive.value.copy(r.emissive).multiplyScalar(r.emissiveIntensity),r.map&&(i.map.value=r.map,n(r.map,i.mapTransform)),r.alphaMap&&(i.alphaMap.value=r.alphaMap,n(r.alphaMap,i.alphaMapTransform)),r.bumpMap&&(i.bumpMap.value=r.bumpMap,n(r.bumpMap,i.bumpMapTransform),i.bumpScale.value=r.bumpScale,r.side===p&&(i.bumpScale.value*=-1)),r.normalMap&&(i.normalMap.value=r.normalMap,n(r.normalMap,i.normalMapTransform),i.normalScale.value.copy(r.normalScale),r.side===p&&i.normalScale.value.negate()),r.displacementMap&&(i.displacementMap.value=r.displacementMap,n(r.displacementMap,i.displacementMapTransform),i.displacementScale.value=r.displacementScale,i.displacementBias.value=r.displacementBias),r.emissiveMap&&(i.emissiveMap.value=r.emissiveMap,n(r.emissiveMap,i.emissiveMapTransform)),r.specularMap&&(i.specularMap.value=r.specularMap,n(r.specularMap,i.specularMapTransform)),r.alphaTest>0&&(i.alphaTest.value=r.alphaTest);const a=t.get(r).envMap;if(a&&(i.envMap.value=a,i.flipEnvMap.value=a.isCubeTexture&&!1===a.isRenderTargetTexture?-1:1,i.reflectivity.value=r.reflectivity,i.ior.value=r.ior,i.refractionRatio.value=r.refractionRatio),r.lightMap){i.lightMap.value=r.lightMap;const t=!0===e.useLegacyLights?Math.PI:1;i.lightMapIntensity.value=r.lightMapIntensity*t,n(r.lightMap,i.lightMapTransform)}r.aoMap&&(i.aoMap.value=r.aoMap,i.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,i.aoMapTransform))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function l(e,t,i,r){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*i,e.scale.value=.5*r,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function c(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function h(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function d(e,i){e.metalness.value=i.metalness,i.metalnessMap&&(e.metalnessMap.value=i.metalnessMap,n(i.metalnessMap,e.metalnessMapTransform)),e.roughness.value=i.roughness,i.roughnessMap&&(e.roughnessMap.value=i.roughnessMap,n(i.roughnessMap,e.roughnessMapTransform));const r=t.get(i).envMap;r&&(e.envMapIntensity.value=i.envMapIntensity)}function f(e,t,i){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===p&&e.clearcoatNormalScale.value.negate())),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=i.texture,e.transmissionSamplerSize.value.set(i.width,i.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function m(e,t){t.matcap&&(e.matcap.value=t.matcap)}function g(e,n){const i=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(i.matrixWorld),e.nearDistance.value=i.shadow.camera.near,e.farDistance.value=i.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:r}}function Zu(e,t,n,i){let r={},a={},o=[];const s=n.isWebGL2?e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS):0;function l(e,t){const n=t.program;i.uniformBlockBinding(e,n)}function c(e,n){let o=r[e.id];void 0===o&&(f(e),o=u(e),r[e.id]=o,e.addEventListener("dispose",g));const s=n.program;i.updateUBOMapping(e,s);const l=t.render.frame;a[e.id]!==l&&(d(e),a[e.id]=l)}function u(t){const n=h();t.__bindingPointIndex=n;const i=e.createBuffer(),r=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,i),e.bufferData(e.UNIFORM_BUFFER,r,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,i),i}function h(){for(let e=0;e<s;e++)if(-1===o.indexOf(e))return o.push(e),e;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}function d(t){const n=r[t.id],i=t.uniforms,a=t.__cache;e.bindBuffer(e.UNIFORM_BUFFER,n);for(let r=0,o=i.length;r<o;r++){const t=i[r];if(!0===p(t,r,a)){const n=t.__offset,i=Array.isArray(t.value)?t.value:[t.value];let r=0;for(let a=0;a<i.length;a++){const o=i[a],s=m(o);"number"===typeof o?(t.__data[0]=o,e.bufferSubData(e.UNIFORM_BUFFER,n+r,t.__data)):o.isMatrix3?(t.__data[0]=o.elements[0],t.__data[1]=o.elements[1],t.__data[2]=o.elements[2],t.__data[3]=o.elements[0],t.__data[4]=o.elements[3],t.__data[5]=o.elements[4],t.__data[6]=o.elements[5],t.__data[7]=o.elements[0],t.__data[8]=o.elements[6],t.__data[9]=o.elements[7],t.__data[10]=o.elements[8],t.__data[11]=o.elements[0]):(o.toArray(t.__data,r),r+=s.storage/Float32Array.BYTES_PER_ELEMENT)}e.bufferSubData(e.UNIFORM_BUFFER,n,t.__data)}}e.bindBuffer(e.UNIFORM_BUFFER,null)}function p(e,t,n){const i=e.value;if(void 0===n[t]){if("number"===typeof i)n[t]=i;else{const e=Array.isArray(i)?i:[i],r=[];for(let t=0;t<e.length;t++)r.push(e[t].clone());n[t]=r}return!0}if("number"===typeof i){if(n[t]!==i)return n[t]=i,!0}else{const e=Array.isArray(n[t])?n[t]:[n[t]],r=Array.isArray(i)?i:[i];for(let t=0;t<e.length;t++){const n=e[t];if(!1===n.equals(r[t]))return n.copy(r[t]),!0}}return!1}function f(e){const t=e.uniforms;let n=0;const i=16;let r=0;for(let a=0,o=t.length;a<o;a++){const e=t[a],o={boundary:0,storage:0},s=Array.isArray(e.value)?e.value:[e.value];for(let t=0,n=s.length;t<n;t++){const e=s[t],n=m(e);o.boundary+=n.boundary,o.storage+=n.storage}if(e.__data=new Float32Array(o.storage/Float32Array.BYTES_PER_ELEMENT),e.__offset=n,a>0){r=n%i;const t=i-r;0!==r&&t-o.boundary<0&&(n+=i-r,e.__offset=n)}n+=o.storage}return r=n%i,r>0&&(n+=i-r),e.__size=n,e.__cache={},this}function m(e){const t={boundary:0,storage:0};return"number"===typeof e?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",e),t}function g(t){const n=t.target;n.removeEventListener("dispose",g);const i=o.indexOf(n.__bindingPointIndex);o.splice(i,1),e.deleteBuffer(r[n.id]),delete r[n.id],delete a[n.id]}function v(){for(const t in r)e.deleteBuffer(r[t]);o=[],r={},a={}}return{bind:l,update:c,dispose:v}}function Ju(){const e=En("canvas");return e.style.display="block",e}class Qu{constructor(e={}){const{canvas:t=Ju(),context:n=null,depth:r=!0,stencil:a=!0,alpha:o=!1,antialias:s=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:h=!1}=e;let m;this.isWebGLRenderer=!0,m=null!==n?n.getContextAttributes().alpha:o;const g=new Uint32Array(4),v=new Int32Array(4);let y=null,_=null;const x=[],b=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.outputColorSpace=Dt,this.useLegacyLights=!0,this.toneMapping=X,this.toneMappingExposure=1;const w=this;let S=!1,M=0,C=0,T=null,E=-1,A=null;const k=new Gn,D=new Gn;let I=null;const P=new vr(0);let O=0,L=t.width,R=t.height,N=1,F=null,B=null;const z=new Gn(0,0,L,R),V=new Gn(0,0,L,R);let U=!1;const H=new wa;let $=!1,j=!1,W=null;const G=new Ei,q=new Sn,Y=new Zn,K={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Z(){return null===T?N:1}let J,Q,ee,te,ne,ie,re,ae,oe,se,le,ce,ue,he,de,pe,ge,ve,_e,Te,Ae,ke,De,Ie,Pe=n;function Le(e,n){for(let i=0;i<e.length;i++){const r=e[i],a=t.getContext(r,n);if(null!==a)return a}return null}try{const e={alpha:!0,depth:r,stencil:a,antialias:s,premultipliedAlpha:l,preserveDrawingBuffer:c,powerPreference:u,failIfMajorPerformanceCaveat:h};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${i}`),t.addEventListener("webglcontextlost",ze,!1),t.addEventListener("webglcontextrestored",Ve,!1),t.addEventListener("webglcontextcreationerror",Ue,!1),null===Pe){const t=["webgl2","webgl","experimental-webgl"];if(!0===w.isWebGL1Renderer&&t.shift(),Pe=Le(t,e),null===Pe)throw Le(t)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}"undefined"!==typeof WebGLRenderingContext&&Pe instanceof WebGLRenderingContext&&console.warn("THREE.WebGLRenderer: WebGL 1 support was deprecated in r153 and will be removed in r163."),void 0===Pe.getShaderPrecisionFormat&&(Pe.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(ot){throw console.error("THREE.WebGLRenderer: "+ot.message),ot}function Fe(){J=new Ol(Pe),Q=new hl(Pe,J,e),J.init(Q),ke=new $u(Pe,J,Q),ee=new Uu(Pe,J,Q),te=new Nl(Pe),ne=new Mu,ie=new Hu(Pe,J,ee,ne,Q,ke,te),re=new pl(w),ae=new Pl(w),oe=new Ma(Pe,Q),De=new cl(Pe,J,oe,Q),se=new Ll(Pe,oe,te,De),le=new Vl(Pe,se,oe,te),_e=new zl(Pe,Q,ie),pe=new dl(ne),ce=new Su(w,re,ae,J,Q,De,pe),ue=new Ku(w,ne),he=new Au,de=new Ru(J,Q),ve=new ll(w,re,ae,ee,le,m,l),ge=new Vu(w,le,Q),Ie=new Zu(Pe,te,Q,ee),Te=new ul(Pe,J,te,Q),Ae=new Rl(Pe,J,te,Q),te.programs=ce.programs,w.capabilities=Q,w.extensions=J,w.properties=ne,w.renderLists=he,w.shadowMap=ge,w.state=ee,w.info=te}Fe();const Be=new Yu(w,Pe);function ze(e){e.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),S=!0}function Ve(){console.log("THREE.WebGLRenderer: Context Restored."),S=!1;const e=te.autoReset,t=ge.enabled,n=ge.autoUpdate,i=ge.needsUpdate,r=ge.type;Fe(),te.autoReset=e,ge.enabled=t,ge.autoUpdate=n,ge.needsUpdate=i,ge.type=r}function Ue(e){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",e.statusMessage)}function He(e){const t=e.target;t.removeEventListener("dispose",He),$e(t)}function $e(e){je(e),ne.remove(e)}function je(e){const t=ne.get(e).programs;void 0!==t&&(t.forEach((function(e){ce.releaseProgram(e)})),e.isShaderMaterial&&ce.releaseShaderCache(e))}this.xr=Be,this.getContext=function(){return Pe},this.getContextAttributes=function(){return Pe.getContextAttributes()},this.forceContextLoss=function(){const e=J.get("WEBGL_lose_context");e&&e.loseContext()},this.forceContextRestore=function(){const e=J.get("WEBGL_lose_context");e&&e.restoreContext()},this.getPixelRatio=function(){return N},this.setPixelRatio=function(e){void 0!==e&&(N=e,this.setSize(L,R,!1))},this.getSize=function(e){return e.set(L,R)},this.setSize=function(e,n,i=!0){Be.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(L=e,R=n,t.width=Math.floor(e*N),t.height=Math.floor(n*N),!0===i&&(t.style.width=e+"px",t.style.height=n+"px"),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(L*N,R*N).floor()},this.setDrawingBufferSize=function(e,n,i){L=e,R=n,N=i,t.width=Math.floor(e*i),t.height=Math.floor(n*i),this.setViewport(0,0,e,n)},this.getCurrentViewport=function(e){return e.copy(k)},this.getViewport=function(e){return e.copy(z)},this.setViewport=function(e,t,n,i){e.isVector4?z.set(e.x,e.y,e.z,e.w):z.set(e,t,n,i),ee.viewport(k.copy(z).multiplyScalar(N).floor())},this.getScissor=function(e){return e.copy(V)},this.setScissor=function(e,t,n,i){e.isVector4?V.set(e.x,e.y,e.z,e.w):V.set(e,t,n,i),ee.scissor(D.copy(V).multiplyScalar(N).floor())},this.getScissorTest=function(){return U},this.setScissorTest=function(e){ee.setScissorTest(U=e)},this.setOpaqueSort=function(e){F=e},this.setTransparentSort=function(e){B=e},this.getClearColor=function(e){return e.copy(ve.getClearColor())},this.setClearColor=function(){ve.setClearColor.apply(ve,arguments)},this.getClearAlpha=function(){return ve.getClearAlpha()},this.setClearAlpha=function(){ve.setClearAlpha.apply(ve,arguments)},this.clear=function(e=!0,t=!0,n=!0){let i=0;if(e){let e=!1;if(null!==T){const t=T.texture.format;e=t===Ne||t===Re||t===Oe}if(e){const e=T.texture.type,t=e===me||e===xe||e===ye||e===Ce||e===Se||e===Me,n=ve.getClearColor(),i=ve.getClearAlpha(),r=n.r,a=n.g,o=n.b;t?(g[0]=r,g[1]=a,g[2]=o,g[3]=i,Pe.clearBufferuiv(Pe.COLOR,0,g)):(v[0]=r,v[1]=a,v[2]=o,v[3]=i,Pe.clearBufferiv(Pe.COLOR,0,v))}else i|=Pe.COLOR_BUFFER_BIT}t&&(i|=Pe.DEPTH_BUFFER_BIT),n&&(i|=Pe.STENCIL_BUFFER_BIT),Pe.clear(i)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",ze,!1),t.removeEventListener("webglcontextrestored",Ve,!1),t.removeEventListener("webglcontextcreationerror",Ue,!1),he.dispose(),de.dispose(),ne.dispose(),re.dispose(),ae.dispose(),le.dispose(),De.dispose(),Ie.dispose(),ce.dispose(),Be.dispose(),Be.removeEventListener("sessionstart",qe),Be.removeEventListener("sessionend",Xe),W&&(W.dispose(),W=null),Ye.stop()},this.renderBufferDirect=function(e,t,n,i,r,a){null===t&&(t=K);const o=r.isMesh&&r.matrixWorld.determinant()<0,s=it(e,t,n,i,r);ee.setMaterial(i,o);let l=n.index,c=1;!0===i.wireframe&&(l=se.getWireframeAttribute(n),c=2);const u=n.drawRange,h=n.attributes.position;let d=u.start*c,p=(u.start+u.count)*c;null!==a&&(d=Math.max(d,a.start*c),p=Math.min(p,(a.start+a.count)*c)),null!==l?(d=Math.max(d,0),p=Math.min(p,l.count)):void 0!==h&&null!==h&&(d=Math.max(d,0),p=Math.min(p,h.count));const f=p-d;if(f<0||f===1/0)return;let m;De.setup(r,i,s,n,l);let g=Te;if(null!==l&&(m=oe.get(l),g=Ae,g.setIndex(m)),r.isMesh)!0===i.wireframe?(ee.setLineWidth(i.wireframeLinewidth*Z()),g.setMode(Pe.LINES)):g.setMode(Pe.TRIANGLES);else if(r.isLine){let e=i.linewidth;void 0===e&&(e=1),ee.setLineWidth(e*Z()),r.isLineSegments?g.setMode(Pe.LINES):r.isLineLoop?g.setMode(Pe.LINE_LOOP):g.setMode(Pe.LINE_STRIP)}else r.isPoints?g.setMode(Pe.POINTS):r.isSprite&&g.setMode(Pe.TRIANGLES);if(r.isInstancedMesh)g.renderInstances(d,f,r.count);else if(n.isInstancedBufferGeometry){const e=void 0!==n._maxInstanceCount?n._maxInstanceCount:1/0,t=Math.min(n.instanceCount,e);g.renderInstances(d,f,t)}else g.render(d,f)},this.compile=function(e,t){function n(e,t,n){!0===e.transparent&&e.side===f&&!1===e.forceSinglePass?(e.side=p,e.needsUpdate=!0,tt(e,t,n),e.side=d,e.needsUpdate=!0,tt(e,t,n),e.side=f):tt(e,t,n)}_=de.get(e),_.init(),b.push(_),e.traverseVisible((function(e){e.isLight&&e.layers.test(t.layers)&&(_.pushLight(e),e.castShadow&&_.pushShadow(e))})),_.setupLights(w.useLegacyLights),e.traverse((function(t){const i=t.material;if(i)if(Array.isArray(i))for(let r=0;r<i.length;r++){const a=i[r];n(a,e,t)}else n(i,e,t)})),b.pop(),_=null};let We=null;function Ge(e){We&&We(e)}function qe(){Ye.stop()}function Xe(){Ye.start()}const Ye=new Sa;function Ke(e,t,n,i){if(!1===e.visible)return;const r=e.layers.test(t.layers);if(r)if(e.isGroup)n=e.renderOrder;else if(e.isLOD)!0===e.autoUpdate&&e.update(t);else if(e.isLight)_.pushLight(e),e.castShadow&&_.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||H.intersectsSprite(e)){i&&Y.setFromMatrixPosition(e.matrixWorld).applyMatrix4(G);const t=le.update(e),r=e.material;r.visible&&y.push(e,t,r,n,Y.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||H.intersectsObject(e))){const t=le.update(e),r=e.material;if(i&&(void 0!==e.boundingSphere?(null===e.boundingSphere&&e.computeBoundingSphere(),Y.copy(e.boundingSphere.center)):(null===t.boundingSphere&&t.computeBoundingSphere(),Y.copy(t.boundingSphere.center)),Y.applyMatrix4(e.matrixWorld).applyMatrix4(G)),Array.isArray(r)){const i=t.groups;for(let a=0,o=i.length;a<o;a++){const o=i[a],s=r[o.materialIndex];s&&s.visible&&y.push(e,t,s,n,Y.z,o)}}else r.visible&&y.push(e,t,r,n,Y.z,null)}const a=e.children;for(let o=0,s=a.length;o<s;o++)Ke(a[o],t,n,i)}function Ze(e,t,n,i){const r=e.opaque,a=e.transmissive,o=e.transparent;_.setupLightsView(n),!0===$&&pe.setGlobalState(w.clippingPlanes,n),a.length>0&&Je(r,a,t,n),i&&ee.viewport(k.copy(i)),r.length>0&&Qe(r,t,n),a.length>0&&Qe(a,t,n),o.length>0&&Qe(o,t,n),ee.buffers.depth.setTest(!0),ee.buffers.depth.setMask(!0),ee.buffers.color.setMask(!0),ee.setPolygonOffset(!1)}function Je(e,t,n,i){const r=Q.isWebGL2;null===W&&(W=new qn(1,1,{generateMipmaps:!0,type:J.has("EXT_color_buffer_half_float")?we:me,minFilter:fe,samples:r?4:0})),w.getDrawingBufferSize(q),r?W.setSize(q.x,q.y):W.setSize(yn(q.x),yn(q.y));const a=w.getRenderTarget();w.setRenderTarget(W),w.getClearColor(P),O=w.getClearAlpha(),O<1&&w.setClearColor(16777215,.5),w.clear();const o=w.toneMapping;w.toneMapping=X,Qe(e,n,i),ie.updateMultisampleRenderTarget(W),ie.updateRenderTargetMipmap(W);let s=!1;for(let l=0,c=t.length;l<c;l++){const e=t[l],r=e.object,a=e.geometry,o=e.material,c=e.group;if(o.side===f&&r.layers.test(i.layers)){const e=o.side;o.side=p,o.needsUpdate=!0,et(r,n,i,a,o,c),o.side=e,o.needsUpdate=!0,s=!0}}!0===s&&(ie.updateMultisampleRenderTarget(W),ie.updateRenderTargetMipmap(W)),w.setRenderTarget(a),w.setClearColor(P,O),w.toneMapping=o}function Qe(e,t,n){const i=!0===t.isScene?t.overrideMaterial:null;for(let r=0,a=e.length;r<a;r++){const a=e[r],o=a.object,s=a.geometry,l=null===i?a.material:i,c=a.group;o.layers.test(n.layers)&&et(o,t,n,s,l,c)}}function et(e,t,n,i,r,a){e.onBeforeRender(w,t,n,i,r,a),e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),e.normalMatrix.getNormalMatrix(e.modelViewMatrix),r.onBeforeRender(w,t,n,i,e,a),!0===r.transparent&&r.side===f&&!1===r.forceSinglePass?(r.side=p,r.needsUpdate=!0,w.renderBufferDirect(n,t,i,r,e,a),r.side=d,r.needsUpdate=!0,w.renderBufferDirect(n,t,i,r,e,a),r.side=f):w.renderBufferDirect(n,t,i,r,e,a),e.onAfterRender(w,t,n,i,r,a)}function tt(e,t,n){!0!==t.isScene&&(t=K);const i=ne.get(e),r=_.state.lights,a=_.state.shadowsArray,o=r.state.version,s=ce.getParameters(e,r.state,a,t,n),l=ce.getProgramCacheKey(s);let c=i.programs;i.environment=e.isMeshStandardMaterial?t.environment:null,i.fog=t.fog,i.envMap=(e.isMeshStandardMaterial?ae:re).get(e.envMap||i.environment),void 0===c&&(e.addEventListener("dispose",He),c=new Map,i.programs=c);let u=c.get(l);if(void 0!==u){if(i.currentProgram===u&&i.lightsStateVersion===o)return nt(e,s),u}else s.uniforms=ce.getUniforms(e),e.onBuild(n,s,w),e.onBeforeCompile(s,w),u=ce.acquireProgram(s,l),c.set(l,u),i.uniforms=s.uniforms;const h=i.uniforms;(e.isShaderMaterial||e.isRawShaderMaterial)&&!0!==e.clipping||(h.clippingPlanes=pe.uniform),nt(e,s),i.needsLights=at(e),i.lightsStateVersion=o,i.needsLights&&(h.ambientLightColor.value=r.state.ambient,h.lightProbe.value=r.state.probe,h.directionalLights.value=r.state.directional,h.directionalLightShadows.value=r.state.directionalShadow,h.spotLights.value=r.state.spot,h.spotLightShadows.value=r.state.spotShadow,h.rectAreaLights.value=r.state.rectArea,h.ltc_1.value=r.state.rectAreaLTC1,h.ltc_2.value=r.state.rectAreaLTC2,h.pointLights.value=r.state.point,h.pointLightShadows.value=r.state.pointShadow,h.hemisphereLights.value=r.state.hemi,h.directionalShadowMap.value=r.state.directionalShadowMap,h.directionalShadowMatrix.value=r.state.directionalShadowMatrix,h.spotShadowMap.value=r.state.spotShadowMap,h.spotLightMatrix.value=r.state.spotLightMatrix,h.spotLightMap.value=r.state.spotLightMap,h.pointShadowMap.value=r.state.pointShadowMap,h.pointShadowMatrix.value=r.state.pointShadowMatrix);const d=u.getUniforms(),p=Gc.seqWithValue(d.seq,h);return i.currentProgram=u,i.uniformsList=p,u}function nt(e,t){const n=ne.get(e);n.outputColorSpace=t.outputColorSpace,n.instancing=t.instancing,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}function it(e,t,n,i,r){!0!==t.isScene&&(t=K),ie.resetTextureUnits();const a=t.fog,o=i.isMeshStandardMaterial?t.environment:null,s=null===T?w.outputColorSpace:!0===T.isXRRenderTarget?T.texture.colorSpace:It,l=(i.isMeshStandardMaterial?ae:re).get(i.envMap||o),c=!0===i.vertexColors&&!!n.attributes.color&&4===n.attributes.color.itemSize,u=!!n.attributes.tangent&&(!!i.normalMap||i.anisotropy>0),h=!!n.morphAttributes.position,d=!!n.morphAttributes.normal,p=!!n.morphAttributes.color,f=i.toneMapped?w.toneMapping:X,m=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,g=void 0!==m?m.length:0,v=ne.get(i),y=_.state.lights;if(!0===$&&(!0===j||e!==A)){const t=e===A&&i.id===E;pe.setState(i,e,t)}let x=!1;i.version===v.__version?v.needsLights&&v.lightsStateVersion!==y.state.version||v.outputColorSpace!==s||r.isInstancedMesh&&!1===v.instancing?x=!0:r.isInstancedMesh||!0!==v.instancing?r.isSkinnedMesh&&!1===v.skinning?x=!0:r.isSkinnedMesh||!0!==v.skinning?v.envMap!==l||!0===i.fog&&v.fog!==a?x=!0:void 0===v.numClippingPlanes||v.numClippingPlanes===pe.numPlanes&&v.numIntersection===pe.numIntersection?(v.vertexAlphas!==c||v.vertexTangents!==u||v.morphTargets!==h||v.morphNormals!==d||v.morphColors!==p||v.toneMapping!==f||!0===Q.isWebGL2&&v.morphTargetsCount!==g)&&(x=!0):x=!0:x=!0:x=!0:(x=!0,v.__version=i.version);let b=v.currentProgram;!0===x&&(b=tt(i,t,r));let S=!1,M=!1,C=!1;const k=b.getUniforms(),D=v.uniforms;if(ee.useProgram(b.program)&&(S=!0,M=!0,C=!0),i.id!==E&&(E=i.id,M=!0),S||A!==e){if(k.setValue(Pe,"projectionMatrix",e.projectionMatrix),Q.logarithmicDepthBuffer&&k.setValue(Pe,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),A!==e&&(A=e,M=!0,C=!0),i.isShaderMaterial||i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshStandardMaterial||i.envMap){const t=k.map.cameraPosition;void 0!==t&&t.setValue(Pe,Y.setFromMatrixPosition(e.matrixWorld))}(i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshLambertMaterial||i.isMeshBasicMaterial||i.isMeshStandardMaterial||i.isShaderMaterial)&&k.setValue(Pe,"isOrthographic",!0===e.isOrthographicCamera),(i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshLambertMaterial||i.isMeshBasicMaterial||i.isMeshStandardMaterial||i.isShaderMaterial||i.isShadowMaterial||r.isSkinnedMesh)&&k.setValue(Pe,"viewMatrix",e.matrixWorldInverse)}if(r.isSkinnedMesh){k.setOptional(Pe,r,"bindMatrix"),k.setOptional(Pe,r,"bindMatrixInverse");const e=r.skeleton;e&&(Q.floatVertexTextures?(null===e.boneTexture&&e.computeBoneTexture(),k.setValue(Pe,"boneTexture",e.boneTexture,ie),k.setValue(Pe,"boneTextureSize",e.boneTextureSize)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}const I=n.morphAttributes;if((void 0!==I.position||void 0!==I.normal||void 0!==I.color&&!0===Q.isWebGL2)&&_e.update(r,n,b),(M||v.receiveShadow!==r.receiveShadow)&&(v.receiveShadow=r.receiveShadow,k.setValue(Pe,"receiveShadow",r.receiveShadow)),i.isMeshGouraudMaterial&&null!==i.envMap&&(D.envMap.value=l,D.flipEnvMap.value=l.isCubeTexture&&!1===l.isRenderTargetTexture?-1:1),M&&(k.setValue(Pe,"toneMappingExposure",w.toneMappingExposure),v.needsLights&&rt(D,C),a&&!0===i.fog&&ue.refreshFogUniforms(D,a),ue.refreshMaterialUniforms(D,i,N,R,W),Gc.upload(Pe,v.uniformsList,D,ie)),i.isShaderMaterial&&!0===i.uniformsNeedUpdate&&(Gc.upload(Pe,v.uniformsList,D,ie),i.uniformsNeedUpdate=!1),i.isSpriteMaterial&&k.setValue(Pe,"center",r.center),k.setValue(Pe,"modelViewMatrix",r.modelViewMatrix),k.setValue(Pe,"normalMatrix",r.normalMatrix),k.setValue(Pe,"modelMatrix",r.matrixWorld),i.isShaderMaterial||i.isRawShaderMaterial){const e=i.uniformsGroups;for(let t=0,n=e.length;t<n;t++)if(Q.isWebGL2){const n=e[t];Ie.update(n,b),Ie.bind(n,b)}else console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2.")}return b}function rt(e,t){e.ambientLightColor.needsUpdate=t,e.lightProbe.needsUpdate=t,e.directionalLights.needsUpdate=t,e.directionalLightShadows.needsUpdate=t,e.pointLights.needsUpdate=t,e.pointLightShadows.needsUpdate=t,e.spotLights.needsUpdate=t,e.spotLightShadows.needsUpdate=t,e.rectAreaLights.needsUpdate=t,e.hemisphereLights.needsUpdate=t}function at(e){return e.isMeshLambertMaterial||e.isMeshToonMaterial||e.isMeshPhongMaterial||e.isMeshStandardMaterial||e.isShadowMaterial||e.isShaderMaterial&&!0===e.lights}Ye.setAnimationLoop(Ge),"undefined"!==typeof self&&Ye.setContext(self),this.setAnimationLoop=function(e){We=e,Be.setAnimationLoop(e),null===e?Ye.stop():Ye.start()},Be.addEventListener("sessionstart",qe),Be.addEventListener("sessionend",Xe),this.render=function(e,t){if(void 0!==t&&!0!==t.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");if(!0===S)return;!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld(),null===t.parent&&!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),!0===Be.enabled&&!0===Be.isPresenting&&(!0===Be.cameraAutoUpdate&&Be.updateCamera(t),t=Be.getCamera()),!0===e.isScene&&e.onBeforeRender(w,e,t,T),_=de.get(e,b.length),_.init(),b.push(_),G.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),H.setFromProjectionMatrix(G),j=this.localClippingEnabled,$=pe.init(this.clippingPlanes,j),y=he.get(e,x.length),y.init(),x.push(y),Ke(e,t,0,w.sortObjects),y.finish(),!0===w.sortObjects&&y.sort(F,B),this.info.render.frame++,!0===$&&pe.beginShadows();const n=_.state.shadowsArray;if(ge.render(n,e,t),!0===$&&pe.endShadows(),!0===this.info.autoReset&&this.info.reset(),ve.render(y,e),_.setupLights(w.useLegacyLights),t.isArrayCamera){const n=t.cameras;for(let t=0,i=n.length;t<i;t++){const i=n[t];Ze(y,e,i,i.viewport)}}else Ze(y,e,t);null!==T&&(ie.updateMultisampleRenderTarget(T),ie.updateRenderTargetMipmap(T)),!0===e.isScene&&e.onAfterRender(w,e,t),De.resetDefaultState(),E=-1,A=null,b.pop(),_=b.length>0?b[b.length-1]:null,x.pop(),y=x.length>0?x[x.length-1]:null},this.getActiveCubeFace=function(){return M},this.getActiveMipmapLevel=function(){return C},this.getRenderTarget=function(){return T},this.setRenderTargetTextures=function(e,t,n){ne.get(e.texture).__webglTexture=t,ne.get(e.depthTexture).__webglTexture=n;const i=ne.get(e);i.__hasExternalTextures=!0,i.__hasExternalTextures&&(i.__autoAllocateDepthBuffer=void 0===n,i.__autoAllocateDepthBuffer||!0===J.has("WEBGL_multisampled_render_to_texture")&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),i.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(e,t){const n=ne.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e,t=0,n=0){T=e,M=t,C=n;let i=!0,r=null,a=!1,o=!1;if(e){const n=ne.get(e);void 0!==n.__useDefaultFramebuffer?(ee.bindFramebuffer(Pe.FRAMEBUFFER,null),i=!1):void 0===n.__webglFramebuffer?ie.setupRenderTarget(e):n.__hasExternalTextures&&ie.rebindTextures(e,ne.get(e.texture).__webglTexture,ne.get(e.depthTexture).__webglTexture);const s=e.texture;(s.isData3DTexture||s.isDataArrayTexture||s.isCompressedArrayTexture)&&(o=!0);const l=ne.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(r=l[t],a=!0):r=Q.isWebGL2&&e.samples>0&&!1===ie.useMultisampledRTT(e)?ne.get(e).__webglMultisampledFramebuffer:l,k.copy(e.viewport),D.copy(e.scissor),I=e.scissorTest}else k.copy(z).multiplyScalar(N).floor(),D.copy(V).multiplyScalar(N).floor(),I=U;const s=ee.bindFramebuffer(Pe.FRAMEBUFFER,r);if(s&&Q.drawBuffers&&i&&ee.drawBuffers(e,r),ee.viewport(k),ee.scissor(D),ee.setScissorTest(I),a){const i=ne.get(e.texture);Pe.framebufferTexture2D(Pe.FRAMEBUFFER,Pe.COLOR_ATTACHMENT0,Pe.TEXTURE_CUBE_MAP_POSITIVE_X+t,i.__webglTexture,n)}else if(o){const i=ne.get(e.texture),r=t||0;Pe.framebufferTextureLayer(Pe.FRAMEBUFFER,Pe.COLOR_ATTACHMENT0,i.__webglTexture,n||0,r)}E=-1},this.readRenderTargetPixels=function(e,t,n,i,r,a,o){if(!e||!e.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let s=ne.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==o&&(s=s[o]),s){ee.bindFramebuffer(Pe.FRAMEBUFFER,s);try{const o=e.texture,s=o.format,l=o.type;if(s!==Ee&&ke.convert(s)!==Pe.getParameter(Pe.IMPLEMENTATION_COLOR_READ_FORMAT))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const c=l===we&&(J.has("EXT_color_buffer_half_float")||Q.isWebGL2&&J.has("EXT_color_buffer_float"));if(l!==me&&ke.convert(l)!==Pe.getParameter(Pe.IMPLEMENTATION_COLOR_READ_TYPE)&&(l!==be||!(Q.isWebGL2||J.has("OES_texture_float")||J.has("WEBGL_color_buffer_float")))&&!c)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");t>=0&&t<=e.width-i&&n>=0&&n<=e.height-r&&Pe.readPixels(t,n,i,r,ke.convert(s),ke.convert(l),a)}finally{const e=null!==T?ne.get(T).__webglFramebuffer:null;ee.bindFramebuffer(Pe.FRAMEBUFFER,e)}}},this.copyFramebufferToTexture=function(e,t,n=0){const i=Math.pow(2,-n),r=Math.floor(t.image.width*i),a=Math.floor(t.image.height*i);ie.setTexture2D(t,0),Pe.copyTexSubImage2D(Pe.TEXTURE_2D,n,0,0,e.x,e.y,r,a),ee.unbindTexture()},this.copyTextureToTexture=function(e,t,n,i=0){const r=t.image.width,a=t.image.height,o=ke.convert(n.format),s=ke.convert(n.type);ie.setTexture2D(n,0),Pe.pixelStorei(Pe.UNPACK_FLIP_Y_WEBGL,n.flipY),Pe.pixelStorei(Pe.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.premultiplyAlpha),Pe.pixelStorei(Pe.UNPACK_ALIGNMENT,n.unpackAlignment),t.isDataTexture?Pe.texSubImage2D(Pe.TEXTURE_2D,i,e.x,e.y,r,a,o,s,t.image.data):t.isCompressedTexture?Pe.compressedTexSubImage2D(Pe.TEXTURE_2D,i,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,o,t.mipmaps[0].data):Pe.texSubImage2D(Pe.TEXTURE_2D,i,e.x,e.y,o,s,t.image),0===i&&n.generateMipmaps&&Pe.generateMipmap(Pe.TEXTURE_2D),ee.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n,i,r=0){if(w.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const a=e.max.x-e.min.x+1,o=e.max.y-e.min.y+1,s=e.max.z-e.min.z+1,l=ke.convert(i.format),c=ke.convert(i.type);let u;if(i.isData3DTexture)ie.setTexture3D(i,0),u=Pe.TEXTURE_3D;else{if(!i.isDataArrayTexture)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");ie.setTexture2DArray(i,0),u=Pe.TEXTURE_2D_ARRAY}Pe.pixelStorei(Pe.UNPACK_FLIP_Y_WEBGL,i.flipY),Pe.pixelStorei(Pe.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.premultiplyAlpha),Pe.pixelStorei(Pe.UNPACK_ALIGNMENT,i.unpackAlignment);const h=Pe.getParameter(Pe.UNPACK_ROW_LENGTH),d=Pe.getParameter(Pe.UNPACK_IMAGE_HEIGHT),p=Pe.getParameter(Pe.UNPACK_SKIP_PIXELS),f=Pe.getParameter(Pe.UNPACK_SKIP_ROWS),m=Pe.getParameter(Pe.UNPACK_SKIP_IMAGES),g=n.isCompressedTexture?n.mipmaps[0]:n.image;Pe.pixelStorei(Pe.UNPACK_ROW_LENGTH,g.width),Pe.pixelStorei(Pe.UNPACK_IMAGE_HEIGHT,g.height),Pe.pixelStorei(Pe.UNPACK_SKIP_PIXELS,e.min.x),Pe.pixelStorei(Pe.UNPACK_SKIP_ROWS,e.min.y),Pe.pixelStorei(Pe.UNPACK_SKIP_IMAGES,e.min.z),n.isDataTexture||n.isData3DTexture?Pe.texSubImage3D(u,r,t.x,t.y,t.z,a,o,s,l,c,g.data):n.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),Pe.compressedTexSubImage3D(u,r,t.x,t.y,t.z,a,o,s,l,g.data)):Pe.texSubImage3D(u,r,t.x,t.y,t.z,a,o,s,l,c,g),Pe.pixelStorei(Pe.UNPACK_ROW_LENGTH,h),Pe.pixelStorei(Pe.UNPACK_IMAGE_HEIGHT,d),Pe.pixelStorei(Pe.UNPACK_SKIP_PIXELS,p),Pe.pixelStorei(Pe.UNPACK_SKIP_ROWS,f),Pe.pixelStorei(Pe.UNPACK_SKIP_IMAGES,m),0===r&&i.generateMipmaps&&Pe.generateMipmap(u),ee.unbindTexture()},this.initTexture=function(e){e.isCubeTexture?ie.setTextureCube(e,0):e.isData3DTexture?ie.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?ie.setTexture2DArray(e,0):ie.setTexture2D(e,0),ee.unbindTexture()},this.resetState=function(){M=0,C=0,T=null,ee.reset(),De.reset()},"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Gt}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: the property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(e){console.warn("THREE.WebGLRenderer: the property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!e}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===Dt?Mt:St}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===Mt?Dt:It}}class eh extends Qu{}eh.prototype.isWebGL1Renderer=!0;class th extends Ji{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(t.object.backgroundIntensity=this.backgroundIntensity),t}}class nh{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.usage=$t,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Qt()}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let i=0,r=this.stride;i<r;i++)this.array[e+i]=t.array[n+i];return this}set(e,t=0){return this.array.set(e,t),this}clone(e){void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Qt()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const t=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),n=new this.constructor(t,this.stride);return n.setUsage(this.usage),n}onUpload(e){return this.onUploadCallback=e,this}toJSON(e){return void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Qt()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=Array.from(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}const ih=new Zn;class rh{constructor(e,t,n,i=!1){this.isInterleavedBufferAttribute=!0,this.name="",this.data=e,this.itemSize=t,this.offset=n,this.normalized=i}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let t=0,n=this.data.count;t<n;t++)ih.fromBufferAttribute(this,t),ih.applyMatrix4(e),this.setXYZ(t,ih.x,ih.y,ih.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)ih.fromBufferAttribute(this,t),ih.applyNormalMatrix(e),this.setXYZ(t,ih.x,ih.y,ih.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)ih.fromBufferAttribute(this,t),ih.transformDirection(e),this.setXYZ(t,ih.x,ih.y,ih.z);return this}setX(e,t){return this.normalized&&(t=bn(t,this.array)),this.data.array[e*this.data.stride+this.offset]=t,this}setY(e,t){return this.normalized&&(t=bn(t,this.array)),this.data.array[e*this.data.stride+this.offset+1]=t,this}setZ(e,t){return this.normalized&&(t=bn(t,this.array)),this.data.array[e*this.data.stride+this.offset+2]=t,this}setW(e,t){return this.normalized&&(t=bn(t,this.array)),this.data.array[e*this.data.stride+this.offset+3]=t,this}getX(e){let t=this.data.array[e*this.data.stride+this.offset];return this.normalized&&(t=xn(t,this.array)),t}getY(e){let t=this.data.array[e*this.data.stride+this.offset+1];return this.normalized&&(t=xn(t,this.array)),t}getZ(e){let t=this.data.array[e*this.data.stride+this.offset+2];return this.normalized&&(t=xn(t,this.array)),t}getW(e){let t=this.data.array[e*this.data.stride+this.offset+3];return this.normalized&&(t=xn(t,this.array)),t}setXY(e,t,n){return e=e*this.data.stride+this.offset,this.normalized&&(t=bn(t,this.array),n=bn(n,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this}setXYZ(e,t,n,i){return e=e*this.data.stride+this.offset,this.normalized&&(t=bn(t,this.array),n=bn(n,this.array),i=bn(i,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=i,this}setXYZW(e,t,n,i,r){return e=e*this.data.stride+this.offset,this.normalized&&(t=bn(t,this.array),n=bn(n,this.array),i=bn(i,this.array),r=bn(r,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=i,this.data.array[e+3]=r,this}clone(e){if(void 0===e){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.");const e=[];for(let t=0;t<this.count;t++){const n=t*this.data.stride+this.offset;for(let t=0;t<this.itemSize;t++)e.push(this.data.array[n+t])}return new wr(new this.array.constructor(e),this.itemSize,this.normalized)}return void 0===e.interleavedBuffers&&(e.interleavedBuffers={}),void 0===e.interleavedBuffers[this.data.uuid]&&(e.interleavedBuffers[this.data.uuid]=this.data.clone(e)),new rh(e.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(e){if(void 0===e){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.");const e=[];for(let t=0;t<this.count;t++){const n=t*this.data.stride+this.offset;for(let t=0;t<this.itemSize;t++)e.push(this.data.array[n+t])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:e,normalized:this.normalized}}return void 0===e.interleavedBuffers&&(e.interleavedBuffers={}),void 0===e.interleavedBuffers[this.data.uuid]&&(e.interleavedBuffers[this.data.uuid]=this.data.toJSON(e)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}const ah=new Zn,oh=new Gn,sh=new Gn,lh=new Zn,ch=new Ei,uh=new Zn,hh=new yi,dh=new Ei,ph=new Ti;class fh extends Zr{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new Ei,this.bindMatrixInverse=new Ei,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const e=this.geometry;null===this.boundingBox&&(this.boundingBox=new ei),this.boundingBox.makeEmpty();const t=e.getAttribute("position");for(let n=0;n<t.count;n++)uh.fromBufferAttribute(t,n),this.applyBoneTransform(n,uh),this.boundingBox.expandByPoint(uh)}computeBoundingSphere(){const e=this.geometry;null===this.boundingSphere&&(this.boundingSphere=new yi),this.boundingSphere.makeEmpty();const t=e.getAttribute("position");for(let n=0;n<t.count;n++)uh.fromBufferAttribute(t,n),this.applyBoneTransform(n,uh),this.boundingSphere.expandByPoint(uh)}copy(e,t){return super.copy(e,t),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone()),null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),this}raycast(e,t){const n=this.material,i=this.matrixWorld;void 0!==n&&(null===this.boundingSphere&&this.computeBoundingSphere(),hh.copy(this.boundingSphere),hh.applyMatrix4(i),!1!==e.ray.intersectsSphere(hh)&&(dh.copy(i).invert(),ph.copy(e.ray).applyMatrix4(dh),null!==this.boundingBox&&!1===ph.intersectsBox(this.boundingBox)||this._computeIntersections(e,t,ph)))}getVertexPosition(e,t){return super.getVertexPosition(e,t),this.applyBoneTransform(e,t),t}bind(e,t){this.skeleton=e,void 0===t&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.copy(t).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const e=new Gn,t=this.geometry.attributes.skinWeight;for(let n=0,i=t.count;n<i;n++){e.fromBufferAttribute(t,n);const i=1/e.manhattanLength();i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0),t.setXYZW(n,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(e),"attached"===this.bindMode?this.bindMatrixInverse.copy(this.matrixWorld).invert():"detached"===this.bindMode?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)}applyBoneTransform(e,t){const n=this.skeleton,i=this.geometry;oh.fromBufferAttribute(i.attributes.skinIndex,e),sh.fromBufferAttribute(i.attributes.skinWeight,e),ah.copy(t).applyMatrix4(this.bindMatrix),t.set(0,0,0);for(let r=0;r<4;r++){const e=sh.getComponent(r);if(0!==e){const i=oh.getComponent(r);ch.multiplyMatrices(n.bones[i].matrixWorld,n.boneInverses[i]),t.addScaledVector(lh.copy(ah).applyMatrix4(ch),e)}}return t.applyMatrix4(this.bindMatrixInverse)}boneTransform(e,t){return console.warn("THREE.SkinnedMesh: .boneTransform() was renamed to .applyBoneTransform() in r151."),this.applyBoneTransform(e,t)}}class mh extends Ji{constructor(){super(),this.isBone=!0,this.type="Bone"}}class gh extends Wn{constructor(e=null,t=1,n=1,i,r,a,o,s,l=ce,c=ce,u,h){super(null,a,o,s,l,c,i,r,u,h),this.isDataTexture=!0,this.image={data:e,width:t,height:n},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}const vh=new Ei,yh=new Ei;class _h{constructor(e=[],t=[]){this.uuid=Qt(),this.bones=e.slice(0),this.boneInverses=t,this.boneMatrices=null,this.boneTexture=null,this.boneTextureSize=0,this.init()}init(){const e=this.bones,t=this.boneInverses;if(this.boneMatrices=new Float32Array(16*e.length),0===t.length)this.calculateInverses();else if(e.length!==t.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(let e=0,t=this.bones.length;e<t;e++)this.boneInverses.push(new Ei)}}calculateInverses(){this.boneInverses.length=0;for(let e=0,t=this.bones.length;e<t;e++){const t=new Ei;this.bones[e]&&t.copy(this.bones[e].matrixWorld).invert(),this.boneInverses.push(t)}}pose(){for(let e=0,t=this.bones.length;e<t;e++){const t=this.bones[e];t&&t.matrixWorld.copy(this.boneInverses[e]).invert()}for(let e=0,t=this.bones.length;e<t;e++){const t=this.bones[e];t&&(t.parent&&t.parent.isBone?(t.matrix.copy(t.parent.matrixWorld).invert(),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))}}update(){const e=this.bones,t=this.boneInverses,n=this.boneMatrices,i=this.boneTexture;for(let r=0,a=e.length;r<a;r++){const i=e[r]?e[r].matrixWorld:yh;vh.multiplyMatrices(i,t[r]),vh.toArray(n,16*r)}null!==i&&(i.needsUpdate=!0)}clone(){return new _h(this.bones,this.boneInverses)}computeBoneTexture(){let e=Math.sqrt(4*this.bones.length);e=vn(e),e=Math.max(e,4);const t=new Float32Array(e*e*4);t.set(this.boneMatrices);const n=new gh(t,e,e,Ee,be);return n.needsUpdate=!0,this.boneMatrices=t,this.boneTexture=n,this.boneTextureSize=e,this}getBoneByName(e){for(let t=0,n=this.bones.length;t<n;t++){const n=this.bones[t];if(n.name===e)return n}}dispose(){null!==this.boneTexture&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(e,t){this.uuid=e.uuid;for(let n=0,i=e.bones.length;n<i;n++){const i=e.bones[n];let r=t[i];void 0===r&&(console.warn("THREE.Skeleton: No bone found with UUID:",i),r=new mh),this.bones.push(r),this.boneInverses.push((new Ei).fromArray(e.boneInverses[n]))}return this.init(),this}toJSON(){const e={metadata:{version:4.6,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};e.uuid=this.uuid;const t=this.bones,n=this.boneInverses;for(let i=0,r=t.length;i<r;i++){const r=t[i];e.bones.push(r.uuid);const a=n[i];e.boneInverses.push(a.toArray())}return e}}class xh extends wr{constructor(e,t,n,i=1){super(e,t,n),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=i}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}toJSON(){const e=super.toJSON();return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}const bh=new Ei,wh=new Ei,Sh=[],Mh=new ei,Ch=new Ei,Th=new Zr,Eh=new yi;class Ah extends Zr{constructor(e,t,n){super(e,t),this.isInstancedMesh=!0,this.instanceMatrix=new xh(new Float32Array(16*n),16),this.instanceColor=null,this.count=n,this.boundingBox=null,this.boundingSphere=null;for(let i=0;i<n;i++)this.setMatrixAt(i,Ch)}computeBoundingBox(){const e=this.geometry,t=this.count;null===this.boundingBox&&(this.boundingBox=new ei),null===e.boundingBox&&e.computeBoundingBox(),this.boundingBox.makeEmpty();for(let n=0;n<t;n++)this.getMatrixAt(n,bh),Mh.copy(e.boundingBox).applyMatrix4(bh),this.boundingBox.union(Mh)}computeBoundingSphere(){const e=this.geometry,t=this.count;null===this.boundingSphere&&(this.boundingSphere=new yi),null===e.boundingSphere&&e.computeBoundingSphere(),this.boundingSphere.makeEmpty();for(let n=0;n<t;n++)this.getMatrixAt(n,bh),Eh.copy(e.boundingSphere).applyMatrix4(bh),this.boundingSphere.union(Eh)}copy(e,t){return super.copy(e,t),this.instanceMatrix.copy(e.instanceMatrix),null!==e.instanceColor&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone()),null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),this}getColorAt(e,t){t.fromArray(this.instanceColor.array,3*e)}getMatrixAt(e,t){t.fromArray(this.instanceMatrix.array,16*e)}raycast(e,t){const n=this.matrixWorld,i=this.count;if(Th.geometry=this.geometry,Th.material=this.material,void 0!==Th.material&&(null===this.boundingSphere&&this.computeBoundingSphere(),Eh.copy(this.boundingSphere),Eh.applyMatrix4(n),!1!==e.ray.intersectsSphere(Eh)))for(let r=0;r<i;r++){this.getMatrixAt(r,bh),wh.multiplyMatrices(n,bh),Th.matrixWorld=wh,Th.raycast(e,Sh);for(let e=0,n=Sh.length;e<n;e++){const n=Sh[e];n.instanceId=r,n.object=this,t.push(n)}Sh.length=0}}setColorAt(e,t){null===this.instanceColor&&(this.instanceColor=new xh(new Float32Array(3*this.instanceMatrix.count),3)),t.toArray(this.instanceColor.array,3*e)}setMatrixAt(e,t){t.toArray(this.instanceMatrix.array,16*e)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"})}}class kh extends dr{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new vr(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const Dh=new Zn,Ih=new Zn,Ph=new Ei,Oh=new Ti,Lh=new yi;class Rh extends Ji{constructor(e=new Or,t=new kh){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(null===e.index){const t=e.attributes.position,n=[0];for(let e=1,i=t.count;e<i;e++)Dh.fromBufferAttribute(t,e-1),Ih.fromBufferAttribute(t,e),n[e]=n[e-1],n[e]+=Dh.distanceTo(Ih);e.setAttribute("lineDistance",new Cr(n,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}raycast(e,t){const n=this.geometry,i=this.matrixWorld,r=e.params.Line.threshold,a=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Lh.copy(n.boundingSphere),Lh.applyMatrix4(i),Lh.radius+=r,!1===e.ray.intersectsSphere(Lh))return;Ph.copy(i).invert(),Oh.copy(e.ray).applyMatrix4(Ph);const o=r/((this.scale.x+this.scale.y+this.scale.z)/3),s=o*o,l=new Zn,c=new Zn,u=new Zn,h=new Zn,d=this.isLineSegments?2:1,p=n.index,f=n.attributes,m=f.position;if(null!==p){const n=Math.max(0,a.start),i=Math.min(p.count,a.start+a.count);for(let r=n,a=i-1;r<a;r+=d){const n=p.getX(r),i=p.getX(r+1);l.fromBufferAttribute(m,n),c.fromBufferAttribute(m,i);const a=Oh.distanceSqToSegment(l,c,h,u);if(a>s)continue;h.applyMatrix4(this.matrixWorld);const o=e.ray.origin.distanceTo(h);o<e.near||o>e.far||t.push({distance:o,point:u.clone().applyMatrix4(this.matrixWorld),index:r,face:null,faceIndex:null,object:this})}}else{const n=Math.max(0,a.start),i=Math.min(m.count,a.start+a.count);for(let r=n,a=i-1;r<a;r+=d){l.fromBufferAttribute(m,r),c.fromBufferAttribute(m,r+1);const n=Oh.distanceSqToSegment(l,c,h,u);if(n>s)continue;h.applyMatrix4(this.matrixWorld);const i=e.ray.origin.distanceTo(h);i<e.near||i>e.far||t.push({distance:i,point:u.clone().applyMatrix4(this.matrixWorld),index:r,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const e=this.geometry,t=e.morphAttributes,n=Object.keys(t);if(n.length>0){const e=t[n[0]];if(void 0!==e){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;t<n;t++){const n=e[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t}}}}}const Nh=new Zn,Fh=new Zn;class Bh extends Rh{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(null===e.index){const t=e.attributes.position,n=[];for(let e=0,i=t.count;e<i;e+=2)Nh.fromBufferAttribute(t,e),Fh.fromBufferAttribute(t,e+1),n[e]=0===e?0:n[e-1],n[e+1]=n[e]+Nh.distanceTo(Fh);e.setAttribute("lineDistance",new Cr(n,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}class zh extends Rh{constructor(e,t){super(e,t),this.isLineLoop=!0,this.type="LineLoop"}}class Vh extends dr{constructor(e){super(),this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new vr(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}const Uh=new Ei,Hh=new Ti,$h=new yi,jh=new Zn;class Wh extends Ji{constructor(e=new Or,t=new Vh){super(),this.isPoints=!0,this.type="Points",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=e.material,this.geometry=e.geometry,this}raycast(e,t){const n=this.geometry,i=this.matrixWorld,r=e.params.Points.threshold,a=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),$h.copy(n.boundingSphere),$h.applyMatrix4(i),$h.radius+=r,!1===e.ray.intersectsSphere($h))return;Uh.copy(i).invert(),Hh.copy(e.ray).applyMatrix4(Uh);const o=r/((this.scale.x+this.scale.y+this.scale.z)/3),s=o*o,l=n.index,c=n.attributes,u=c.position;if(null!==l){const n=Math.max(0,a.start),r=Math.min(l.count,a.start+a.count);for(let a=n,o=r;a<o;a++){const n=l.getX(a);jh.fromBufferAttribute(u,n),Gh(jh,n,s,i,e,t,this)}}else{const n=Math.max(0,a.start),r=Math.min(u.count,a.start+a.count);for(let a=n,o=r;a<o;a++)jh.fromBufferAttribute(u,a),Gh(jh,a,s,i,e,t,this)}}updateMorphTargets(){const e=this.geometry,t=e.morphAttributes,n=Object.keys(t);if(n.length>0){const e=t[n[0]];if(void 0!==e){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;t<n;t++){const n=e[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t}}}}}function Gh(e,t,n,i,r,a,o){const s=Hh.distanceSqToPoint(e);if(s<n){const n=new Zn;Hh.closestPointToPoint(e,n),n.applyMatrix4(i);const l=r.ray.origin.distanceTo(n);if(l<r.near||l>r.far)return;a.push({distance:l,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,object:o})}}class qh extends dr{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new vr(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new vr(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Et,this.normalScale=new Sn(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Xh extends qh{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new Sn(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return en(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(e){this.ior=(1+.4*e)/(1-.4*e)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new vr(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new vr(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new vr(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!==e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!==e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!==e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!==e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!==e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class Yh extends dr{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new vr(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new vr(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Et,this.normalScale=new Sn(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=W,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}function Kh(e,t,n){return Jh(e)?new e.constructor(e.subarray(t,void 0!==n?n:e.length)):e.slice(t,n)}function Zh(e,t,n){return!e||!n&&e.constructor===t?e:"number"===typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)}function Jh(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Qh(e){function t(t,n){return e[t]-e[n]}const n=e.length,i=new Array(n);for(let r=0;r!==n;++r)i[r]=r;return i.sort(t),i}function ed(e,t,n){const i=e.length,r=new e.constructor(i);for(let a=0,o=0;o!==i;++a){const i=n[a]*t;for(let n=0;n!==t;++n)r[o++]=e[i+n]}return r}function td(e,t,n,i){let r=1,a=e[0];while(void 0!==a&&void 0===a[i])a=e[r++];if(void 0===a)return;let o=a[i];if(void 0!==o)if(Array.isArray(o))do{o=a[i],void 0!==o&&(t.push(a.time),n.push.apply(n,o)),a=e[r++]}while(void 0!==a);else if(void 0!==o.toArray)do{o=a[i],void 0!==o&&(t.push(a.time),o.toArray(n,n.length)),a=e[r++]}while(void 0!==a);else do{o=a[i],void 0!==o&&(t.push(a.time),n.push(o)),a=e[r++]}while(void 0!==a)}class nd{constructor(e,t,n,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new t.constructor(n),this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let n=this._cachedIndex,i=t[n],r=t[n-1];e:{t:{let a;n:{i:if(!(e<i)){for(let a=n+2;;){if(void 0===i){if(e<r)break i;return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}if(n===a)break;if(r=i,i=t[++n],e<i)break t}a=t.length;break n}if(e>=r)break e;{const o=t[1];e<o&&(n=2,r=o);for(let a=n-2;;){if(void 0===r)return this._cachedIndex=0,this.copySampleValue_(0);if(n===a)break;if(i=r,r=t[--n-1],e>=r)break t}a=n,n=0}}while(n<a){const i=n+a>>>1;e<t[i]?a=i:n=i+1}if(i=t[n],r=t[n-1],void 0===r)return this._cachedIndex=0,this.copySampleValue_(0);if(void 0===i)return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}this._cachedIndex=n,this.intervalChanged_(n,r,i)}return this.interpolate_(n,r,e,i)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){const t=this.resultBuffer,n=this.sampleValues,i=this.valueSize,r=e*i;for(let a=0;a!==i;++a)t[a]=n[r+a];return t}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}class id extends nd{constructor(e,t,n,i){super(e,t,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:gt,endingEnd:gt}}intervalChanged_(e,t,n){const i=this.parameterPositions;let r=e-2,a=e+1,o=i[r],s=i[a];if(void 0===o)switch(this.getSettings_().endingStart){case vt:r=e,o=2*t-n;break;case yt:r=i.length-2,o=t+i[r]-i[r+1];break;default:r=e,o=n}if(void 0===s)switch(this.getSettings_().endingEnd){case vt:a=e,s=2*n-t;break;case yt:a=1,s=n+i[1]-i[0];break;default:a=e-1,s=t}const l=.5*(n-t),c=this.valueSize;this._weightPrev=l/(t-o),this._weightNext=l/(s-n),this._offsetPrev=r*c,this._offsetNext=a*c}interpolate_(e,t,n,i){const r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,l=s-o,c=this._offsetPrev,u=this._offsetNext,h=this._weightPrev,d=this._weightNext,p=(n-t)/(i-t),f=p*p,m=f*p,g=-h*m+2*h*f-h*p,v=(1+h)*m+(-1.5-2*h)*f+(-.5+h)*p+1,y=(-1-d)*m+(1.5+d)*f+.5*p,_=d*m-d*f;for(let x=0;x!==o;++x)r[x]=g*a[c+x]+v*a[l+x]+y*a[s+x]+_*a[u+x];return r}}class rd extends nd{constructor(e,t,n,i){super(e,t,n,i)}interpolate_(e,t,n,i){const r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=e*o,l=s-o,c=(n-t)/(i-t),u=1-c;for(let h=0;h!==o;++h)r[h]=a[l+h]*u+a[s+h]*c;return r}}class ad extends nd{constructor(e,t,n,i){super(e,t,n,i)}interpolate_(e){return this.copySampleValue_(e-1)}}class od{constructor(e,t,n,i){if(void 0===e)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===t||0===t.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=Zh(t,this.TimeBufferType),this.values=Zh(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation)}static toJSON(e){const t=e.constructor;let n;if(t.toJSON!==this.toJSON)n=t.toJSON(e);else{n={name:e.name,times:Zh(e.times,Array),values:Zh(e.values,Array)};const t=e.getInterpolation();t!==e.DefaultInterpolation&&(n.interpolation=t)}return n.type=e.ValueTypeName,n}InterpolantFactoryMethodDiscrete(e){return new ad(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new rd(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new id(this.times,this.values,this.getValueSize(),e)}setInterpolation(e){let t;switch(e){case pt:t=this.InterpolantFactoryMethodDiscrete;break;case ft:t=this.InterpolantFactoryMethodLinear;break;case mt:t=this.InterpolantFactoryMethodSmooth;break}if(void 0===t){const t="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(e===this.DefaultInterpolation)throw new Error(t);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",t),this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return pt;case this.InterpolantFactoryMethodLinear:return ft;case this.InterpolantFactoryMethodSmooth:return mt}}getValueSize(){return this.values.length/this.times.length}shift(e){if(0!==e){const t=this.times;for(let n=0,i=t.length;n!==i;++n)t[n]+=e}return this}scale(e){if(1!==e){const t=this.times;for(let n=0,i=t.length;n!==i;++n)t[n]*=e}return this}trim(e,t){const n=this.times,i=n.length;let r=0,a=i-1;while(r!==i&&n[r]<e)++r;while(-1!==a&&n[a]>t)--a;if(++a,0!==r||a!==i){r>=a&&(a=Math.max(a,1),r=a-1);const e=this.getValueSize();this.times=Kh(n,r,a),this.values=Kh(this.values,r*e,a*e)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,i=this.values,r=n.length;0===r&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let a=null;for(let o=0;o!==r;o++){const t=n[o];if("number"===typeof t&&isNaN(t)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,o,t),e=!1;break}if(null!==a&&a>t){console.error("THREE.KeyframeTrack: Out of order keys.",this,o,t,a),e=!1;break}a=t}if(void 0!==i&&Jh(i))for(let o=0,s=i.length;o!==s;++o){const t=i[o];if(isNaN(t)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,o,t),e=!1;break}}return e}optimize(){const e=Kh(this.times),t=Kh(this.values),n=this.getValueSize(),i=this.getInterpolation()===mt,r=e.length-1;let a=1;for(let o=1;o<r;++o){let r=!1;const s=e[o],l=e[o+1];if(s!==l&&(1!==o||s!==e[0]))if(i)r=!0;else{const e=o*n,i=e-n,a=e+n;for(let o=0;o!==n;++o){const n=t[e+o];if(n!==t[i+o]||n!==t[a+o]){r=!0;break}}}if(r){if(o!==a){e[a]=e[o];const i=o*n,r=a*n;for(let e=0;e!==n;++e)t[r+e]=t[i+e]}++a}}if(r>0){e[a]=e[r];for(let e=r*n,i=a*n,o=0;o!==n;++o)t[i+o]=t[e+o];++a}return a!==e.length?(this.times=Kh(e,0,a),this.values=Kh(t,0,a*n)):(this.times=e,this.values=t),this}clone(){const e=Kh(this.times,0),t=Kh(this.values,0),n=this.constructor,i=new n(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}od.prototype.TimeBufferType=Float32Array,od.prototype.ValueBufferType=Float32Array,od.prototype.DefaultInterpolation=ft;class sd extends od{}sd.prototype.ValueTypeName="bool",sd.prototype.ValueBufferType=Array,sd.prototype.DefaultInterpolation=pt,sd.prototype.InterpolantFactoryMethodLinear=void 0,sd.prototype.InterpolantFactoryMethodSmooth=void 0;class ld extends od{}ld.prototype.ValueTypeName="color";class cd extends od{}cd.prototype.ValueTypeName="number";class ud extends nd{constructor(e,t,n,i){super(e,t,n,i)}interpolate_(e,t,n,i){const r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(i-t);let l=e*o;for(let c=l+o;l!==c;l+=4)Kn.slerpFlat(r,0,a,l-o,a,l,s);return r}}class hd extends od{InterpolantFactoryMethodLinear(e){return new ud(this.times,this.values,this.getValueSize(),e)}}hd.prototype.ValueTypeName="quaternion",hd.prototype.DefaultInterpolation=ft,hd.prototype.InterpolantFactoryMethodSmooth=void 0;class dd extends od{}dd.prototype.ValueTypeName="string",dd.prototype.ValueBufferType=Array,dd.prototype.DefaultInterpolation=pt,dd.prototype.InterpolantFactoryMethodLinear=void 0,dd.prototype.InterpolantFactoryMethodSmooth=void 0;class pd extends od{}pd.prototype.ValueTypeName="vector";class fd{constructor(e,t=-1,n,i=_t){this.name=e,this.tracks=n,this.duration=t,this.blendMode=i,this.uuid=Qt(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,i=1/(e.fps||1);for(let a=0,o=n.length;a!==o;++a)t.push(gd(n[a]).scale(i));const r=new this(e.name,e.duration,t,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){const t=[],n=e.tracks,i={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let r=0,a=n.length;r!==a;++r)t.push(od.toJSON(n[r]));return i}static CreateFromMorphTargetSequence(e,t,n,i){const r=t.length,a=[];for(let o=0;o<r;o++){let e=[],s=[];e.push((o+r-1)%r,o,(o+1)%r),s.push(0,1,0);const l=Qh(e);e=ed(e,1,l),s=ed(s,1,l),i||0!==e[0]||(e.push(r),s.push(s[0])),a.push(new cd(".morphTargetInfluences["+t[o].name+"]",e,s).scale(1/n))}return new this(e,-1,a)}static findByName(e,t){let n=e;if(!Array.isArray(e)){const t=e;n=t.geometry&&t.geometry.animations||t.animations}for(let i=0;i<n.length;i++)if(n[i].name===t)return n[i];return null}static CreateClipsFromMorphTargetSequences(e,t,n){const i={},r=/^([\w-]*?)([\d]+)$/;for(let o=0,s=e.length;o<s;o++){const t=e[o],n=t.name.match(r);if(n&&n.length>1){const e=n[1];let r=i[e];r||(i[e]=r=[]),r.push(t)}}const a=[];for(const o in i)a.push(this.CreateFromMorphTargetSequence(o,i[o],t,n));return a}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(e,t,n,i,r){if(0!==n.length){const a=[],o=[];td(n,a,o,i),0!==a.length&&r.push(new e(t,a,o))}},i=[],r=e.name||"default",a=e.fps||30,o=e.blendMode;let s=e.length||-1;const l=e.hierarchy||[];for(let u=0;u<l.length;u++){const e=l[u].keys;if(e&&0!==e.length)if(e[0].morphTargets){const t={};let n;for(n=0;n<e.length;n++)if(e[n].morphTargets)for(let i=0;i<e[n].morphTargets.length;i++)t[e[n].morphTargets[i]]=-1;for(const r in t){const t=[],a=[];for(let i=0;i!==e[n].morphTargets.length;++i){const i=e[n];t.push(i.time),a.push(i.morphTarget===r?1:0)}i.push(new cd(".morphTargetInfluence["+r+"]",t,a))}s=t.length*a}else{const r=".bones["+t[u].name+"]";n(pd,r+".position",e,"pos",i),n(hd,r+".quaternion",e,"rot",i),n(pd,r+".scale",e,"scl",i)}}if(0===i.length)return null;const c=new this(r,s,i,o);return c}resetDuration(){const e=this.tracks;let t=0;for(let n=0,i=e.length;n!==i;++n){const e=this.tracks[n];t=Math.max(t,e.times[e.times.length-1])}return this.duration=t,this}trim(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}validate(){let e=!0;for(let t=0;t<this.tracks.length;t++)e=e&&this.tracks[t].validate();return e}optimize(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}clone(){const e=[];for(let t=0;t<this.tracks.length;t++)e.push(this.tracks[t].clone());return new this.constructor(this.name,this.duration,e,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function md(e){switch(e.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return cd;case"vector":case"vector2":case"vector3":case"vector4":return pd;case"color":return ld;case"quaternion":return hd;case"bool":case"boolean":return sd;case"string":return dd}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+e)}function gd(e){if(void 0===e.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const t=md(e.type);if(void 0===e.times){const t=[],n=[];td(e.keys,t,n,"value"),e.times=t,e.values=n}return void 0!==t.parse?t.parse(e):new t(e.name,e.times,e.values,e.interpolation)}const vd={enabled:!1,files:{},add:function(e,t){!1!==this.enabled&&(this.files[e]=t)},get:function(e){if(!1!==this.enabled)return this.files[e]},remove:function(e){delete this.files[e]},clear:function(){this.files={}}};class yd{constructor(e,t,n){const i=this;let r,a=!1,o=0,s=0;const l=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){s++,!1===a&&void 0!==i.onStart&&i.onStart(e,o,s),a=!0},this.itemEnd=function(e){o++,void 0!==i.onProgress&&i.onProgress(e,o,s),o===s&&(a=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(e){void 0!==i.onError&&i.onError(e)},this.resolveURL=function(e){return r?r(e):e},this.setURLModifier=function(e){return r=e,this},this.addHandler=function(e,t){return l.push(e,t),this},this.removeHandler=function(e){const t=l.indexOf(e);return-1!==t&&l.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=l.length;t<n;t+=2){const n=l[t],i=l[t+1];if(n.global&&(n.lastIndex=0),n.test(e))return i}return null}}}const _d=new yd;class xd{constructor(e){this.manager=void 0!==e?e:_d,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,t){const n=this;return new Promise((function(i,r){n.load(e,i,t,r)}))}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}xd.DEFAULT_MATERIAL_NAME="__DEFAULT";const bd={};class wd extends Error{constructor(e,t){super(e),this.response=t}}class Sd extends xd{constructor(e){super(e)}load(e,t,n,i){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const r=vd.get(e);if(void 0!==r)return this.manager.itemStart(e),setTimeout((()=>{t&&t(r),this.manager.itemEnd(e)}),0),r;if(void 0!==bd[e])return void bd[e].push({onLoad:t,onProgress:n,onError:i});bd[e]=[],bd[e].push({onLoad:t,onProgress:n,onError:i});const a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),o=this.mimeType,s=this.responseType;fetch(a).then((t=>{if(200===t.status||0===t.status){if(0===t.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"===typeof ReadableStream||void 0===t.body||void 0===t.body.getReader)return t;const n=bd[e],i=t.body.getReader(),r=t.headers.get("Content-Length")||t.headers.get("X-File-Size"),a=r?parseInt(r):0,o=0!==a;let s=0;const l=new ReadableStream({start(e){function t(){i.read().then((({done:i,value:r})=>{if(i)e.close();else{s+=r.byteLength;const i=new ProgressEvent("progress",{lengthComputable:o,loaded:s,total:a});for(let e=0,t=n.length;e<t;e++){const t=n[e];t.onProgress&&t.onProgress(i)}e.enqueue(r),t()}}))}t()}});return new Response(l)}throw new wd(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)})).then((e=>{switch(s){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then((e=>{const t=new DOMParser;return t.parseFromString(e,o)}));case"json":return e.json();default:if(void 0===o)return e.text();{const t=/charset="?([^;"\s]*)"?/i,n=t.exec(o),i=n&&n[1]?n[1].toLowerCase():void 0,r=new TextDecoder(i);return e.arrayBuffer().then((e=>r.decode(e)))}}})).then((t=>{vd.add(e,t);const n=bd[e];delete bd[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];i.onLoad&&i.onLoad(t)}})).catch((t=>{const n=bd[e];if(void 0===n)throw this.manager.itemError(e),t;delete bd[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];i.onError&&i.onError(t)}this.manager.itemError(e)})).finally((()=>{this.manager.itemEnd(e)})),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class Md extends xd{constructor(e){super(e)}load(e,t,n,i){void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,a=vd.get(e);if(void 0!==a)return r.manager.itemStart(e),setTimeout((function(){t&&t(a),r.manager.itemEnd(e)}),0),a;const o=En("img");function s(){c(),vd.add(e,this),t&&t(this),r.manager.itemEnd(e)}function l(t){c(),i&&i(t),r.manager.itemError(e),r.manager.itemEnd(e)}function c(){o.removeEventListener("load",s,!1),o.removeEventListener("error",l,!1)}return o.addEventListener("load",s,!1),o.addEventListener("error",l,!1),"data:"!==e.slice(0,5)&&void 0!==this.crossOrigin&&(o.crossOrigin=this.crossOrigin),r.manager.itemStart(e),o.src=e,o}}class Cd extends xd{constructor(e){super(e)}load(e,t,n,i){const r=new Wn,a=new Md(this.manager);return a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(e,(function(e){r.image=e,r.needsUpdate=!0,void 0!==t&&t(r)}),n,i),r}}class Td extends Ji{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new vr(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,void 0!==this.groundColor&&(t.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(t.object.distance=this.distance),void 0!==this.angle&&(t.object.angle=this.angle),void 0!==this.decay&&(t.object.decay=this.decay),void 0!==this.penumbra&&(t.object.penumbra=this.penumbra),void 0!==this.shadow&&(t.object.shadow=this.shadow.toJSON()),t}}const Ed=new Ei,Ad=new Zn,kd=new Zn;class Dd{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Sn(512,512),this.map=null,this.mapPass=null,this.matrix=new Ei,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new wa,this._frameExtents=new Sn(1,1),this._viewportCount=1,this._viewports=[new Gn(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,n=this.matrix;Ad.setFromMatrixPosition(e.matrixWorld),t.position.copy(Ad),kd.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(kd),t.updateMatrixWorld(),Ed.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Ed),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(Ed)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const e={};return 0!==this.bias&&(e.bias=this.bias),0!==this.normalBias&&(e.normalBias=this.normalBias),1!==this.radius&&(e.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class Id extends Dd{constructor(){super(new ua(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,n=2*Jt*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height,r=e.distance||t.far;n===t.fov&&i===t.aspect&&r===t.far||(t.fov=n,t.aspect=i,t.far=r,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class Pd extends Td{constructor(e,t,n=0,i=Math.PI/3,r=0,a=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Ji.DEFAULT_UP),this.updateMatrix(),this.target=new Ji,this.distance=n,this.angle=i,this.penumbra=r,this.decay=a,this.map=null,this.shadow=new Id}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const Od=new Ei,Ld=new Zn,Rd=new Zn;class Nd extends Dd{constructor(){super(new ua(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Sn(4,2),this._viewportCount=6,this._viewports=[new Gn(2,1,1,1),new Gn(0,1,1,1),new Gn(3,1,1,1),new Gn(1,1,1,1),new Gn(3,0,1,1),new Gn(1,0,1,1)],this._cubeDirections=[new Zn(1,0,0),new Zn(-1,0,0),new Zn(0,0,1),new Zn(0,0,-1),new Zn(0,1,0),new Zn(0,-1,0)],this._cubeUps=[new Zn(0,1,0),new Zn(0,1,0),new Zn(0,1,0),new Zn(0,1,0),new Zn(0,0,1),new Zn(0,0,-1)]}updateMatrices(e,t=0){const n=this.camera,i=this.matrix,r=e.distance||n.far;r!==n.far&&(n.far=r,n.updateProjectionMatrix()),Ld.setFromMatrixPosition(e.matrixWorld),n.position.copy(Ld),Rd.copy(n.position),Rd.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(Rd),n.updateMatrixWorld(),i.makeTranslation(-Ld.x,-Ld.y,-Ld.z),Od.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Od)}}class Fd extends Td{constructor(e,t,n=0,i=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=i,this.shadow=new Nd}get power(){return 4*this.intensity*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class Bd extends Dd{constructor(){super(new fl(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class zd extends Td{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Ji.DEFAULT_UP),this.updateMatrix(),this.target=new Ji,this.shadow=new Bd}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class Vd extends Td{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class Ud{static decodeText(e){if("undefined"!==typeof TextDecoder)return(new TextDecoder).decode(e);let t="";for(let i=0,r=e.length;i<r;i++)t+=String.fromCharCode(e[i]);try{return decodeURIComponent(escape(t))}catch(n){return t}}static extractUrlBase(e){const t=e.lastIndexOf("/");return-1===t?"./":e.slice(0,t+1)}static resolveURL(e,t){return"string"!==typeof e||""===e?"":(/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:t+e)}}class Hd extends xd{constructor(e){super(e),this.isImageBitmapLoader=!0,"undefined"===typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"===typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,n,i){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,a=vd.get(e);if(void 0!==a)return r.manager.itemStart(e),setTimeout((function(){t&&t(a),r.manager.itemEnd(e)}),0),a;const o={};o.credentials="anonymous"===this.crossOrigin?"same-origin":"include",o.headers=this.requestHeader,fetch(e,o).then((function(e){return e.blob()})).then((function(e){return createImageBitmap(e,Object.assign(r.options,{colorSpaceConversion:"none"}))})).then((function(n){vd.add(e,n),t&&t(n),r.manager.itemEnd(e)})).catch((function(t){i&&i(t),r.manager.itemError(e),r.manager.itemEnd(e)})),r.manager.itemStart(e)}}const $d="\\[\\]\\.:\\/",jd=new RegExp("["+$d+"]","g"),Wd="[^"+$d+"]",Gd="[^"+$d.replace("\\.","")+"]",qd=/((?:WC+[\/:])*)/.source.replace("WC",Wd),Xd=/(WCOD+)?/.source.replace("WCOD",Gd),Yd=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Wd),Kd=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Wd),Zd=new RegExp("^"+qd+Xd+Yd+Kd+"$"),Jd=["material","materials","bones","map"];class Qd{constructor(e,t,n){const i=n||ep.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}getValue(e,t){this.bind();const n=this._targetGroup.nCachedObjects_,i=this._bindings[n];void 0!==i&&i.getValue(e,t)}setValue(e,t){const n=this._bindings;for(let i=this._targetGroup.nCachedObjects_,r=n.length;i!==r;++i)n[i].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}}class ep{constructor(e,t,n){this.path=t,this.parsedPath=n||ep.parseTrackName(t),this.node=ep.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new ep.Composite(e,t,n):new ep(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(jd,"")}static parseTrackName(e){const t=Zd.exec(e);if(null===t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==i&&-1!==i){const e=n.nodeName.substring(i+1);-1!==Jd.indexOf(e)&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=e)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(void 0===t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){const n=function(e){for(let i=0;i<e.length;i++){const r=e[i];if(r.name===t||r.uuid===t)return r;const a=n(r.children);if(a)return a}return null},i=n(e.children);if(i)return i}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)e[t++]=n[i]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=e[t++]}_setValue_array_setNeedsUpdate(e,t){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=e[t++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,t){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let e=this.node;const t=this.parsedPath,n=t.objectName,i=t.propertyName;let r=t.propertyIndex;if(e||(e=ep.findNode(this.rootNode,t.nodeName),this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e)return void console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.");if(n){let i=t.objectIndex;switch(n){case"materials":if(!e.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!e.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);e=e.material.materials;break;case"bones":if(!e.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);e=e.skeleton.bones;for(let t=0;t<e.length;t++)if(e[t].name===i){i=t;break}break;case"map":if("map"in e){e=e.map;break}if(!e.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!e.material.map)return void console.error("THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.",this);e=e.material.map;break;default:if(void 0===e[n])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);e=e[n]}if(void 0!==i){if(void 0===e[i])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,e);e=e[i]}}const a=e[i];if(void 0===a){const n=t.nodeName;return void console.error("THREE.PropertyBinding: Trying to update property for track: "+n+"."+i+" but it wasn't found.",e)}let o=this.Versioning.None;this.targetObject=e,void 0!==e.needsUpdate?o=this.Versioning.NeedsUpdate:void 0!==e.matrixWorldNeedsUpdate&&(o=this.Versioning.MatrixWorldNeedsUpdate);let s=this.BindingType.Direct;if(void 0!==r){if("morphTargetInfluences"===i){if(!e.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(!e.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);void 0!==e.morphTargetDictionary[r]&&(r=e.morphTargetDictionary[r])}s=this.BindingType.ArrayElement,this.resolvedProperty=a,this.propertyIndex=r}else void 0!==a.fromArray&&void 0!==a.toArray?(s=this.BindingType.HasFromToArray,this.resolvedProperty=a):Array.isArray(a)?(s=this.BindingType.EntireArray,this.resolvedProperty=a):this.propertyName=i;this.getValue=this.GetterByBindingType[s],this.setValue=this.SetterByBindingTypeAndVersioning[s][o]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}ep.Composite=Qd,ep.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},ep.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},ep.prototype.GetterByBindingType=[ep.prototype._getValue_direct,ep.prototype._getValue_array,ep.prototype._getValue_arrayElement,ep.prototype._getValue_toArray],ep.prototype.SetterByBindingTypeAndVersioning=[[ep.prototype._setValue_direct,ep.prototype._setValue_direct_setNeedsUpdate,ep.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[ep.prototype._setValue_array,ep.prototype._setValue_array_setNeedsUpdate,ep.prototype._setValue_array_setMatrixWorldNeedsUpdate],[ep.prototype._setValue_arrayElement,ep.prototype._setValue_arrayElement_setNeedsUpdate,ep.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[ep.prototype._setValue_fromArray,ep.prototype._setValue_fromArray_setNeedsUpdate,ep.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];new Float32Array(1);class tp{constructor(e,t,n=0,i=1/0){this.ray=new Ti(e,t),this.near=n,this.far=i,this.camera=null,this.layers=new Bi,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(e,t){this.ray.set(e,t)}setFromCamera(e,t){t.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(t.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(t).sub(this.ray.origin).normalize(),this.camera=t):t.isOrthographicCamera?(this.ray.origin.set(e.x,e.y,(t.near+t.far)/(t.near-t.far)).unproject(t),this.ray.direction.set(0,0,-1).transformDirection(t.matrixWorld),this.camera=t):console.error("THREE.Raycaster: Unsupported camera type: "+t.type)}intersectObject(e,t=!0,n=[]){return ip(e,this,n,t),n.sort(np),n}intersectObjects(e,t=!0,n=[]){for(let i=0,r=e.length;i<r;i++)ip(e[i],this,n,t);return n.sort(np),n}}function np(e,t){return e.distance-t.distance}function ip(e,t,n,i){if(e.layers.test(t.layers)&&e.raycast(t,n),!0===i){const i=e.children;for(let e=0,r=i.length;e<r;e++)ip(i[e],t,n,!0)}}class rp{constructor(e=1,t=0,n=0){return this.radius=e,this.phi=t,this.theta=n,this}set(e,t,n){return this.radius=e,this.phi=t,this.theta=n,this}copy(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}makeSafe(){const e=1e-6;return this.phi=Math.max(e,Math.min(Math.PI-e,this.phi)),this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,t,n){return this.radius=Math.sqrt(e*e+t*t+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,n),this.phi=Math.acos(en(t/this.radius,-1,1))),this}clone(){return(new this.constructor).copy(this)}}"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:i}})),"undefined"!==typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=i)},30911:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});n(70252);var i=n(73073);const r={type:"change"},a={type:"start"},o={type:"end"};class s extends i.pBf{constructor(e,t){super(),this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new i.Pa4,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:i.RsA.ROTATE,MIDDLE:i.RsA.DOLLY,RIGHT:i.RsA.PAN},this.touches={ONE:i.QmN.ROTATE,TWO:i.QmN.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return u.phi},this.getAzimuthalAngle=function(){return u.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(e){e.addEventListener("keydown",ae),this._domElementKeyEvents=e},this.stopListenToKeyEvents=function(){this._domElementKeyEvents.removeEventListener("keydown",ae),this._domElementKeyEvents=null},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(r),n.update(),l=s.NONE},this.update=function(){const t=new i.Pa4,a=(new i._fP).setFromUnitVectors(e.up,new i.Pa4(0,1,0)),o=a.clone().invert(),m=new i.Pa4,g=new i._fP,v=new i.Pa4,y=2*Math.PI;return function(){const e=n.object.position;t.copy(e).sub(n.target),t.applyQuaternion(a),u.setFromVector3(t),n.autoRotate&&l===s.NONE&&A(T()),n.enableDamping?(u.theta+=h.theta*n.dampingFactor,u.phi+=h.phi*n.dampingFactor):(u.theta+=h.theta,u.phi+=h.phi);let i=n.minAzimuthAngle,_=n.maxAzimuthAngle;return isFinite(i)&&isFinite(_)&&(i<-Math.PI?i+=y:i>Math.PI&&(i-=y),_<-Math.PI?_+=y:_>Math.PI&&(_-=y),u.theta=i<=_?Math.max(i,Math.min(_,u.theta)):u.theta>(i+_)/2?Math.max(i,u.theta):Math.min(_,u.theta)),u.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,u.phi)),u.makeSafe(),u.radius*=d,u.radius=Math.max(n.minDistance,Math.min(n.maxDistance,u.radius)),!0===n.enableDamping?n.target.addScaledVector(p,n.dampingFactor):n.target.add(p),t.setFromSpherical(u),t.applyQuaternion(o),e.copy(n.target).add(t),n.object.lookAt(n.target),!0===n.enableDamping?(h.theta*=1-n.dampingFactor,h.phi*=1-n.dampingFactor,p.multiplyScalar(1-n.dampingFactor)):(h.set(0,0,0),p.set(0,0,0)),d=1,!!(f||m.distanceToSquared(n.object.position)>c||8*(1-g.dot(n.object.quaternion))>c||v.distanceToSquared(n.target)>0)&&(n.dispatchEvent(r),m.copy(n.object.position),g.copy(n.object.quaternion),v.copy(n.target),f=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",le),n.domElement.removeEventListener("pointerdown",Q),n.domElement.removeEventListener("pointercancel",te),n.domElement.removeEventListener("wheel",re),n.domElement.removeEventListener("pointermove",ee),n.domElement.removeEventListener("pointerup",te),null!==n._domElementKeyEvents&&(n._domElementKeyEvents.removeEventListener("keydown",ae),n._domElementKeyEvents=null)};const n=this,s={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=s.NONE;const c=1e-6,u=new i.$V,h=new i.$V;let d=1;const p=new i.Pa4;let f=!1;const m=new i.FM8,g=new i.FM8,v=new i.FM8,y=new i.FM8,_=new i.FM8,x=new i.FM8,b=new i.FM8,w=new i.FM8,S=new i.FM8,M=[],C={};function T(){return 2*Math.PI/60/60*n.autoRotateSpeed}function E(){return Math.pow(.95,n.zoomSpeed)}function A(e){h.theta-=e}function k(e){h.phi-=e}const D=function(){const e=new i.Pa4;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),p.add(e)}}(),I=function(){const e=new i.Pa4;return function(t,i){!0===n.screenSpacePanning?e.setFromMatrixColumn(i,1):(e.setFromMatrixColumn(i,0),e.crossVectors(n.object.up,e)),e.multiplyScalar(t),p.add(e)}}(),P=function(){const e=new i.Pa4;return function(t,i){const r=n.domElement;if(n.object.isPerspectiveCamera){const a=n.object.position;e.copy(a).sub(n.target);let o=e.length();o*=Math.tan(n.object.fov/2*Math.PI/180),D(2*t*o/r.clientHeight,n.object.matrix),I(2*i*o/r.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(D(t*(n.object.right-n.object.left)/n.object.zoom/r.clientWidth,n.object.matrix),I(i*(n.object.top-n.object.bottom)/n.object.zoom/r.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function O(e){n.object.isPerspectiveCamera?d/=e:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*e)),n.object.updateProjectionMatrix(),f=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function L(e){n.object.isPerspectiveCamera?d*=e:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/e)),n.object.updateProjectionMatrix(),f=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function R(e){m.set(e.clientX,e.clientY)}function N(e){b.set(e.clientX,e.clientY)}function F(e){y.set(e.clientX,e.clientY)}function B(e){g.set(e.clientX,e.clientY),v.subVectors(g,m).multiplyScalar(n.rotateSpeed);const t=n.domElement;A(2*Math.PI*v.x/t.clientHeight),k(2*Math.PI*v.y/t.clientHeight),m.copy(g),n.update()}function z(e){w.set(e.clientX,e.clientY),S.subVectors(w,b),S.y>0?O(E()):S.y<0&&L(E()),b.copy(w),n.update()}function V(e){_.set(e.clientX,e.clientY),x.subVectors(_,y).multiplyScalar(n.panSpeed),P(x.x,x.y),y.copy(_),n.update()}function U(e){e.deltaY<0?L(E()):e.deltaY>0&&O(E()),n.update()}function H(e){let t=!1;switch(e.code){case n.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?k(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):P(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?k(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):P(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?A(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):P(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?A(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):P(-n.keyPanSpeed,0),t=!0;break}t&&(e.preventDefault(),n.update())}function $(){if(1===M.length)m.set(M[0].pageX,M[0].pageY);else{const e=.5*(M[0].pageX+M[1].pageX),t=.5*(M[0].pageY+M[1].pageY);m.set(e,t)}}function j(){if(1===M.length)y.set(M[0].pageX,M[0].pageY);else{const e=.5*(M[0].pageX+M[1].pageX),t=.5*(M[0].pageY+M[1].pageY);y.set(e,t)}}function W(){const e=M[0].pageX-M[1].pageX,t=M[0].pageY-M[1].pageY,n=Math.sqrt(e*e+t*t);b.set(0,n)}function G(){n.enableZoom&&W(),n.enablePan&&j()}function q(){n.enableZoom&&W(),n.enableRotate&&$()}function X(e){if(1==M.length)g.set(e.pageX,e.pageY);else{const t=de(e),n=.5*(e.pageX+t.x),i=.5*(e.pageY+t.y);g.set(n,i)}v.subVectors(g,m).multiplyScalar(n.rotateSpeed);const t=n.domElement;A(2*Math.PI*v.x/t.clientHeight),k(2*Math.PI*v.y/t.clientHeight),m.copy(g)}function Y(e){if(1===M.length)_.set(e.pageX,e.pageY);else{const t=de(e),n=.5*(e.pageX+t.x),i=.5*(e.pageY+t.y);_.set(n,i)}x.subVectors(_,y).multiplyScalar(n.panSpeed),P(x.x,x.y),y.copy(_)}function K(e){const t=de(e),i=e.pageX-t.x,r=e.pageY-t.y,a=Math.sqrt(i*i+r*r);w.set(0,a),S.set(0,Math.pow(w.y/b.y,n.zoomSpeed)),O(S.y),b.copy(w)}function Z(e){n.enableZoom&&K(e),n.enablePan&&Y(e)}function J(e){n.enableZoom&&K(e),n.enableRotate&&X(e)}function Q(e){!1!==n.enabled&&(0===M.length&&(n.domElement.setPointerCapture(e.pointerId),n.domElement.addEventListener("pointermove",ee),n.domElement.addEventListener("pointerup",te)),ce(e),"touch"===e.pointerType?oe(e):ne(e))}function ee(e){!1!==n.enabled&&("touch"===e.pointerType?se(e):ie(e))}function te(e){ue(e),0===M.length&&(n.domElement.releasePointerCapture(e.pointerId),n.domElement.removeEventListener("pointermove",ee),n.domElement.removeEventListener("pointerup",te)),n.dispatchEvent(o),l=s.NONE}function ne(e){let t;switch(e.button){case 0:t=n.mouseButtons.LEFT;break;case 1:t=n.mouseButtons.MIDDLE;break;case 2:t=n.mouseButtons.RIGHT;break;default:t=-1}switch(t){case i.RsA.DOLLY:if(!1===n.enableZoom)return;N(e),l=s.DOLLY;break;case i.RsA.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enablePan)return;F(e),l=s.PAN}else{if(!1===n.enableRotate)return;R(e),l=s.ROTATE}break;case i.RsA.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enableRotate)return;R(e),l=s.ROTATE}else{if(!1===n.enablePan)return;F(e),l=s.PAN}break;default:l=s.NONE}l!==s.NONE&&n.dispatchEvent(a)}function ie(e){switch(l){case s.ROTATE:if(!1===n.enableRotate)return;B(e);break;case s.DOLLY:if(!1===n.enableZoom)return;z(e);break;case s.PAN:if(!1===n.enablePan)return;V(e);break}}function re(e){!1!==n.enabled&&!1!==n.enableZoom&&l===s.NONE&&(e.preventDefault(),n.dispatchEvent(a),U(e),n.dispatchEvent(o))}function ae(e){!1!==n.enabled&&!1!==n.enablePan&&H(e)}function oe(e){switch(he(e),M.length){case 1:switch(n.touches.ONE){case i.QmN.ROTATE:if(!1===n.enableRotate)return;$(),l=s.TOUCH_ROTATE;break;case i.QmN.PAN:if(!1===n.enablePan)return;j(),l=s.TOUCH_PAN;break;default:l=s.NONE}break;case 2:switch(n.touches.TWO){case i.QmN.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;G(),l=s.TOUCH_DOLLY_PAN;break;case i.QmN.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;q(),l=s.TOUCH_DOLLY_ROTATE;break;default:l=s.NONE}break;default:l=s.NONE}l!==s.NONE&&n.dispatchEvent(a)}function se(e){switch(he(e),l){case s.TOUCH_ROTATE:if(!1===n.enableRotate)return;X(e),n.update();break;case s.TOUCH_PAN:if(!1===n.enablePan)return;Y(e),n.update();break;case s.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;Z(e),n.update();break;case s.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;J(e),n.update();break;default:l=s.NONE}}function le(e){!1!==n.enabled&&e.preventDefault()}function ce(e){M.push(e)}function ue(e){delete C[e.pointerId];for(let t=0;t<M.length;t++)if(M[t].pointerId==e.pointerId)return void M.splice(t,1)}function he(e){let t=C[e.pointerId];void 0===t&&(t=new i.FM8,C[e.pointerId]=t),t.set(e.pageX,e.pageY)}function de(e){const t=e.pointerId===M[0].pointerId?M[1]:M[0];return C[t.pointerId]}n.domElement.addEventListener("contextmenu",le),n.domElement.addEventListener("pointerdown",Q),n.domElement.addEventListener("pointercancel",te),n.domElement.addEventListener("wheel",re,{passive:!1}),this.update()}}},227:function(e,t,n){"use strict";n.d(t,{XS:function(){return v}});n(70252);
- /**
- * lil-gui
- * https://lil-gui.georgealways.com
- * @version 0.17.0
- * @author George Michael Brower
- * @license MIT
- */class i{constructor(e,t,n,r,a="div"){this.parent=e,this.object=t,this.property=n,this._disabled=!1,this._hidden=!1,this.initialValue=this.getValue(),this.domElement=document.createElement("div"),this.domElement.classList.add("controller"),this.domElement.classList.add(r),this.$name=document.createElement("div"),this.$name.classList.add("name"),i.nextNameID=i.nextNameID||0,this.$name.id="lil-gui-name-"+ ++i.nextNameID,this.$widget=document.createElement(a),this.$widget.classList.add("widget"),this.$disable=this.$widget,this.domElement.appendChild(this.$name),this.domElement.appendChild(this.$widget),this.parent.children.push(this),this.parent.controllers.push(this),this.parent.$children.appendChild(this.domElement),this._listenCallback=this._listenCallback.bind(this),this.name(n)}name(e){return this._name=e,this.$name.innerHTML=e,this}onChange(e){return this._onChange=e,this}_callOnChange(){this.parent._callOnChange(this),void 0!==this._onChange&&this._onChange.call(this,this.getValue()),this._changed=!0}onFinishChange(e){return this._onFinishChange=e,this}_callOnFinishChange(){this._changed&&(this.parent._callOnFinishChange(this),void 0!==this._onFinishChange&&this._onFinishChange.call(this,this.getValue())),this._changed=!1}reset(){return this.setValue(this.initialValue),this._callOnFinishChange(),this}enable(e=!0){return this.disable(!e)}disable(e=!0){return e===this._disabled||(this._disabled=e,this.domElement.classList.toggle("disabled",e),this.$disable.toggleAttribute("disabled",e)),this}show(e=!0){return this._hidden=!e,this.domElement.style.display=this._hidden?"none":"",this}hide(){return this.show(!1)}options(e){const t=this.parent.add(this.object,this.property,e);return t.name(this._name),this.destroy(),t}min(e){return this}max(e){return this}step(e){return this}decimals(e){return this}listen(e=!0){return this._listening=e,void 0!==this._listenCallbackID&&(cancelAnimationFrame(this._listenCallbackID),this._listenCallbackID=void 0),this._listening&&this._listenCallback(),this}_listenCallback(){this._listenCallbackID=requestAnimationFrame(this._listenCallback);const e=this.save();e!==this._listenPrevValue&&this.updateDisplay(),this._listenPrevValue=e}getValue(){return this.object[this.property]}setValue(e){return this.object[this.property]=e,this._callOnChange(),this.updateDisplay(),this}updateDisplay(){return this}load(e){return this.setValue(e),this._callOnFinishChange(),this}save(){return this.getValue()}destroy(){this.listen(!1),this.parent.children.splice(this.parent.children.indexOf(this),1),this.parent.controllers.splice(this.parent.controllers.indexOf(this),1),this.parent.$children.removeChild(this.domElement)}}class r extends i{constructor(e,t,n){super(e,t,n,"boolean","label"),this.$input=document.createElement("input"),this.$input.setAttribute("type","checkbox"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$widget.appendChild(this.$input),this.$input.addEventListener("change",(()=>{this.setValue(this.$input.checked),this._callOnFinishChange()})),this.$disable=this.$input,this.updateDisplay()}updateDisplay(){return this.$input.checked=this.getValue(),this}}function a(e){let t,n;return(t=e.match(/(#|0x)?([a-f0-9]{6})/i))?n=t[2]:(t=e.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/))?n=parseInt(t[1]).toString(16).padStart(2,0)+parseInt(t[2]).toString(16).padStart(2,0)+parseInt(t[3]).toString(16).padStart(2,0):(t=e.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i))&&(n=t[1]+t[1]+t[2]+t[2]+t[3]+t[3]),!!n&&"#"+n}const o={isPrimitive:!0,match:e=>"string"==typeof e,fromHexString:a,toHexString:a},s={isPrimitive:!0,match:e=>"number"==typeof e,fromHexString:e=>parseInt(e.substring(1),16),toHexString:e=>"#"+e.toString(16).padStart(6,0)},l={isPrimitive:!1,match:Array.isArray,fromHexString(e,t,n=1){const i=s.fromHexString(e);t[0]=(i>>16&255)/255*n,t[1]=(i>>8&255)/255*n,t[2]=(255&i)/255*n},toHexString:([e,t,n],i=1)=>s.toHexString(e*(i=255/i)<<16^t*i<<8^n*i<<0)},c={isPrimitive:!1,match:e=>Object(e)===e,fromHexString(e,t,n=1){const i=s.fromHexString(e);t.r=(i>>16&255)/255*n,t.g=(i>>8&255)/255*n,t.b=(255&i)/255*n},toHexString:({r:e,g:t,b:n},i=1)=>s.toHexString(e*(i=255/i)<<16^t*i<<8^n*i<<0)},u=[o,s,l,c];class h extends i{constructor(e,t,n,i){var r;super(e,t,n,"color"),this.$input=document.createElement("input"),this.$input.setAttribute("type","color"),this.$input.setAttribute("tabindex",-1),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$text=document.createElement("input"),this.$text.setAttribute("type","text"),this.$text.setAttribute("spellcheck","false"),this.$text.setAttribute("aria-labelledby",this.$name.id),this.$display=document.createElement("div"),this.$display.classList.add("display"),this.$display.appendChild(this.$input),this.$widget.appendChild(this.$display),this.$widget.appendChild(this.$text),this._format=(r=this.initialValue,u.find((e=>e.match(r)))),this._rgbScale=i,this._initialValueHexString=this.save(),this._textFocused=!1,this.$input.addEventListener("input",(()=>{this._setValueFromHexString(this.$input.value)})),this.$input.addEventListener("blur",(()=>{this._callOnFinishChange()})),this.$text.addEventListener("input",(()=>{const e=a(this.$text.value);e&&this._setValueFromHexString(e)})),this.$text.addEventListener("focus",(()=>{this._textFocused=!0,this.$text.select()})),this.$text.addEventListener("blur",(()=>{this._textFocused=!1,this.updateDisplay(),this._callOnFinishChange()})),this.$disable=this.$text,this.updateDisplay()}reset(){return this._setValueFromHexString(this._initialValueHexString),this}_setValueFromHexString(e){if(this._format.isPrimitive){const t=this._format.fromHexString(e);this.setValue(t)}else this._format.fromHexString(e,this.getValue(),this._rgbScale),this._callOnChange(),this.updateDisplay()}save(){return this._format.toHexString(this.getValue(),this._rgbScale)}load(e){return this._setValueFromHexString(e),this._callOnFinishChange(),this}updateDisplay(){return this.$input.value=this._format.toHexString(this.getValue(),this._rgbScale),this._textFocused||(this.$text.value=this.$input.value.substring(1)),this.$display.style.backgroundColor=this.$input.value,this}}class d extends i{constructor(e,t,n){super(e,t,n,"function"),this.$button=document.createElement("button"),this.$button.appendChild(this.$name),this.$widget.appendChild(this.$button),this.$button.addEventListener("click",(e=>{e.preventDefault(),this.getValue().call(this.object)})),this.$button.addEventListener("touchstart",(()=>{}),{passive:!0}),this.$disable=this.$button}}class p extends i{constructor(e,t,n,i,r,a){super(e,t,n,"number"),this._initInput(),this.min(i),this.max(r);const o=void 0!==a;this.step(o?a:this._getImplicitStep(),o),this.updateDisplay()}decimals(e){return this._decimals=e,this.updateDisplay(),this}min(e){return this._min=e,this._onUpdateMinMax(),this}max(e){return this._max=e,this._onUpdateMinMax(),this}step(e,t=!0){return this._step=e,this._stepExplicit=t,this}updateDisplay(){const e=this.getValue();if(this._hasSlider){let t=(e-this._min)/(this._max-this._min);t=Math.max(0,Math.min(t,1)),this.$fill.style.width=100*t+"%"}return this._inputFocused||(this.$input.value=void 0===this._decimals?e:e.toFixed(this._decimals)),this}_initInput(){this.$input=document.createElement("input"),this.$input.setAttribute("type","number"),this.$input.setAttribute("step","any"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$widget.appendChild(this.$input),this.$disable=this.$input;const e=e=>{const t=parseFloat(this.$input.value);isNaN(t)||(this._snapClampSetValue(t+e),this.$input.value=this.getValue())};let t,n,i,r,a,o=!1;const s=e=>{if(o){const i=e.clientX-t,r=e.clientY-n;Math.abs(r)>5?(e.preventDefault(),this.$input.blur(),o=!1,this._setDraggingStyle(!0,"vertical")):Math.abs(i)>5&&l()}if(!o){const t=e.clientY-i;a-=t*this._step*this._arrowKeyMultiplier(e),r+a>this._max?a=this._max-r:r+a<this._min&&(a=this._min-r),this._snapClampSetValue(r+a)}i=e.clientY},l=()=>{this._setDraggingStyle(!1,"vertical"),this._callOnFinishChange(),window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",l)};this.$input.addEventListener("input",(()=>{let e=parseFloat(this.$input.value);isNaN(e)||(this._stepExplicit&&(e=this._snap(e)),this.setValue(this._clamp(e)))})),this.$input.addEventListener("keydown",(t=>{"Enter"===t.code&&this.$input.blur(),"ArrowUp"===t.code&&(t.preventDefault(),e(this._step*this._arrowKeyMultiplier(t))),"ArrowDown"===t.code&&(t.preventDefault(),e(this._step*this._arrowKeyMultiplier(t)*-1))})),this.$input.addEventListener("wheel",(t=>{this._inputFocused&&(t.preventDefault(),e(this._step*this._normalizeMouseWheel(t)))}),{passive:!1}),this.$input.addEventListener("mousedown",(e=>{t=e.clientX,n=i=e.clientY,o=!0,r=this.getValue(),a=0,window.addEventListener("mousemove",s),window.addEventListener("mouseup",l)})),this.$input.addEventListener("focus",(()=>{this._inputFocused=!0})),this.$input.addEventListener("blur",(()=>{this._inputFocused=!1,this.updateDisplay(),this._callOnFinishChange()}))}_initSlider(){this._hasSlider=!0,this.$slider=document.createElement("div"),this.$slider.classList.add("slider"),this.$fill=document.createElement("div"),this.$fill.classList.add("fill"),this.$slider.appendChild(this.$fill),this.$widget.insertBefore(this.$slider,this.$input),this.domElement.classList.add("hasSlider");const e=e=>{const t=this.$slider.getBoundingClientRect();let n=(i=e,r=t.left,a=t.right,o=this._min,s=this._max,(i-r)/(a-r)*(s-o)+o);var i,r,a,o,s;this._snapClampSetValue(n)},t=t=>{e(t.clientX)},n=()=>{this._callOnFinishChange(),this._setDraggingStyle(!1),window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};let i,r,a=!1;const o=t=>{t.preventDefault(),this._setDraggingStyle(!0),e(t.touches[0].clientX),a=!1},s=t=>{if(a){const e=t.touches[0].clientX-i,n=t.touches[0].clientY-r;Math.abs(e)>Math.abs(n)?o(t):(window.removeEventListener("touchmove",s),window.removeEventListener("touchend",l))}else t.preventDefault(),e(t.touches[0].clientX)},l=()=>{this._callOnFinishChange(),this._setDraggingStyle(!1),window.removeEventListener("touchmove",s),window.removeEventListener("touchend",l)},c=this._callOnFinishChange.bind(this);let u;this.$slider.addEventListener("mousedown",(i=>{this._setDraggingStyle(!0),e(i.clientX),window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)})),this.$slider.addEventListener("touchstart",(e=>{e.touches.length>1||(this._hasScrollBar?(i=e.touches[0].clientX,r=e.touches[0].clientY,a=!0):o(e),window.addEventListener("touchmove",s,{passive:!1}),window.addEventListener("touchend",l))}),{passive:!1}),this.$slider.addEventListener("wheel",(e=>{if(Math.abs(e.deltaX)<Math.abs(e.deltaY)&&this._hasScrollBar)return;e.preventDefault();const t=this._normalizeMouseWheel(e)*this._step;this._snapClampSetValue(this.getValue()+t),this.$input.value=this.getValue(),clearTimeout(u),u=setTimeout(c,400)}),{passive:!1})}_setDraggingStyle(e,t="horizontal"){this.$slider&&this.$slider.classList.toggle("active",e),document.body.classList.toggle("lil-gui-dragging",e),document.body.classList.toggle("lil-gui-"+t,e)}_getImplicitStep(){return this._hasMin&&this._hasMax?(this._max-this._min)/1e3:.1}_onUpdateMinMax(){!this._hasSlider&&this._hasMin&&this._hasMax&&(this._stepExplicit||this.step(this._getImplicitStep(),!1),this._initSlider(),this.updateDisplay())}_normalizeMouseWheel(e){let{deltaX:t,deltaY:n}=e;return Math.floor(e.deltaY)!==e.deltaY&&e.wheelDelta&&(t=0,n=-e.wheelDelta/120,n*=this._stepExplicit?1:10),t+-n}_arrowKeyMultiplier(e){let t=this._stepExplicit?1:10;return e.shiftKey?t*=10:e.altKey&&(t/=10),t}_snap(e){const t=Math.round(e/this._step)*this._step;return parseFloat(t.toPrecision(15))}_clamp(e){return e<this._min&&(e=this._min),e>this._max&&(e=this._max),e}_snapClampSetValue(e){this.setValue(this._clamp(this._snap(e)))}get _hasScrollBar(){const e=this.parent.root.$children;return e.scrollHeight>e.clientHeight}get _hasMin(){return void 0!==this._min}get _hasMax(){return void 0!==this._max}}class f extends i{constructor(e,t,n,i){super(e,t,n,"option"),this.$select=document.createElement("select"),this.$select.setAttribute("aria-labelledby",this.$name.id),this.$display=document.createElement("div"),this.$display.classList.add("display"),this._values=Array.isArray(i)?i:Object.values(i),this._names=Array.isArray(i)?i:Object.keys(i),this._names.forEach((e=>{const t=document.createElement("option");t.innerHTML=e,this.$select.appendChild(t)})),this.$select.addEventListener("change",(()=>{this.setValue(this._values[this.$select.selectedIndex]),this._callOnFinishChange()})),this.$select.addEventListener("focus",(()=>{this.$display.classList.add("focus")})),this.$select.addEventListener("blur",(()=>{this.$display.classList.remove("focus")})),this.$widget.appendChild(this.$select),this.$widget.appendChild(this.$display),this.$disable=this.$select,this.updateDisplay()}updateDisplay(){const e=this.getValue(),t=this._values.indexOf(e);return this.$select.selectedIndex=t,this.$display.innerHTML=-1===t?e:this._names[t],this}}class m extends i{constructor(e,t,n){super(e,t,n,"string"),this.$input=document.createElement("input"),this.$input.setAttribute("type","text"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$input.addEventListener("input",(()=>{this.setValue(this.$input.value)})),this.$input.addEventListener("keydown",(e=>{"Enter"===e.code&&this.$input.blur()})),this.$input.addEventListener("blur",(()=>{this._callOnFinishChange()})),this.$widget.appendChild(this.$input),this.$disable=this.$input,this.updateDisplay()}updateDisplay(){return this.$input.value=this.getValue(),this}}let g=!1;class v{constructor({parent:e,autoPlace:t=void 0===e,container:n,width:i,title:r="Controls",injectStyles:a=!0,touchStyles:o=!0}={}){if(this.parent=e,this.root=e?e.root:this,this.children=[],this.controllers=[],this.folders=[],this._closed=!1,this._hidden=!1,this.domElement=document.createElement("div"),this.domElement.classList.add("lil-gui"),this.$title=document.createElement("div"),this.$title.classList.add("title"),this.$title.setAttribute("role","button"),this.$title.setAttribute("aria-expanded",!0),this.$title.setAttribute("tabindex",0),this.$title.addEventListener("click",(()=>this.openAnimated(this._closed))),this.$title.addEventListener("keydown",(e=>{"Enter"!==e.code&&"Space"!==e.code||(e.preventDefault(),this.$title.click())})),this.$title.addEventListener("touchstart",(()=>{}),{passive:!0}),this.$children=document.createElement("div"),this.$children.classList.add("children"),this.domElement.appendChild(this.$title),this.domElement.appendChild(this.$children),this.title(r),o&&this.domElement.classList.add("allow-touch-styles"),this.parent)return this.parent.children.push(this),this.parent.folders.push(this),void this.parent.$children.appendChild(this.domElement);this.domElement.classList.add("root"),!g&&a&&(function(e){const t=document.createElement("style");t.innerHTML=e;const n=document.querySelector("head link[rel=stylesheet], head style");n?document.head.insertBefore(t,n):document.head.appendChild(t)}('.lil-gui{--background-color:#1f1f1f;--text-color:#ebebeb;--title-background-color:#111;--title-text-color:#ebebeb;--widget-color:#424242;--hover-color:#4f4f4f;--focus-color:#595959;--number-color:#2cc9ff;--string-color:#a2db3c;--font-size:11px;--input-font-size:11px;--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;--font-family-mono:Menlo,Monaco,Consolas,"Droid Sans Mono",monospace;--padding:4px;--spacing:4px;--widget-height:20px;--name-width:45%;--slider-knob-width:2px;--slider-input-width:27%;--color-input-width:27%;--slider-input-min-width:45px;--color-input-min-width:45px;--folder-indent:7px;--widget-padding:0 0 0 3px;--widget-border-radius:2px;--checkbox-size:calc(var(--widget-height)*0.75);--scrollbar-width:5px;background-color:var(--background-color);color:var(--text-color);font-family:var(--font-family);font-size:var(--font-size);font-style:normal;font-weight:400;line-height:1;text-align:left;touch-action:manipulation;user-select:none;-webkit-user-select:none}.lil-gui,.lil-gui *{box-sizing:border-box;margin:0;padding:0}.lil-gui.root{display:flex;flex-direction:column;width:var(--width,245px)}.lil-gui.root>.title{background:var(--title-background-color);color:var(--title-text-color)}.lil-gui.root>.children{overflow-x:hidden;overflow-y:auto}.lil-gui.root>.children::-webkit-scrollbar{background:var(--background-color);height:var(--scrollbar-width);width:var(--scrollbar-width)}.lil-gui.root>.children::-webkit-scrollbar-thumb{background:var(--focus-color);border-radius:var(--scrollbar-width)}.lil-gui.force-touch-styles{--widget-height:28px;--padding:6px;--spacing:6px;--font-size:13px;--input-font-size:16px;--folder-indent:10px;--scrollbar-width:7px;--slider-input-min-width:50px;--color-input-min-width:65px}.lil-gui.autoPlace{max-height:100%;position:fixed;right:15px;top:0;z-index:1001}.lil-gui .controller{align-items:center;display:flex;margin:var(--spacing) 0;padding:0 var(--padding)}.lil-gui .controller.disabled{opacity:.5}.lil-gui .controller.disabled,.lil-gui .controller.disabled *{pointer-events:none!important}.lil-gui .controller>.name{flex-shrink:0;line-height:var(--widget-height);min-width:var(--name-width);padding-right:var(--spacing);white-space:pre}.lil-gui .controller .widget{align-items:center;display:flex;min-height:var(--widget-height);position:relative;width:100%}.lil-gui .controller.string input{color:var(--string-color)}.lil-gui .controller.boolean .widget{cursor:pointer}.lil-gui .controller.color .display{border-radius:var(--widget-border-radius);height:var(--widget-height);position:relative;width:100%}.lil-gui .controller.color input[type=color]{cursor:pointer;height:100%;opacity:0;width:100%}.lil-gui .controller.color input[type=text]{flex-shrink:0;font-family:var(--font-family-mono);margin-left:var(--spacing);min-width:var(--color-input-min-width);width:var(--color-input-width)}.lil-gui .controller.option select{max-width:100%;opacity:0;position:absolute;width:100%}.lil-gui .controller.option .display{background:var(--widget-color);border-radius:var(--widget-border-radius);height:var(--widget-height);line-height:var(--widget-height);max-width:100%;overflow:hidden;padding-left:.55em;padding-right:1.75em;pointer-events:none;position:relative;word-break:break-all}.lil-gui .controller.option .display.active{background:var(--focus-color)}.lil-gui .controller.option .display:after{bottom:0;content:"↕";font-family:lil-gui;padding-right:.375em;position:absolute;right:0;top:0}.lil-gui .controller.option .widget,.lil-gui .controller.option select{cursor:pointer}.lil-gui .controller.number input{color:var(--number-color)}.lil-gui .controller.number.hasSlider input{flex-shrink:0;margin-left:var(--spacing);min-width:var(--slider-input-min-width);width:var(--slider-input-width)}.lil-gui .controller.number .slider{background-color:var(--widget-color);border-radius:var(--widget-border-radius);cursor:ew-resize;height:var(--widget-height);overflow:hidden;padding-right:var(--slider-knob-width);touch-action:pan-y;width:100%}.lil-gui .controller.number .slider.active{background-color:var(--focus-color)}.lil-gui .controller.number .slider.active .fill{opacity:.95}.lil-gui .controller.number .fill{border-right:var(--slider-knob-width) solid var(--number-color);box-sizing:content-box;height:100%}.lil-gui-dragging .lil-gui{--hover-color:var(--widget-color)}.lil-gui-dragging *{cursor:ew-resize!important}.lil-gui-dragging.lil-gui-vertical *{cursor:ns-resize!important}.lil-gui .title{--title-height:calc(var(--widget-height) + var(--spacing)*1.25);-webkit-tap-highlight-color:transparent;text-decoration-skip:objects;cursor:pointer;font-weight:600;height:var(--title-height);line-height:calc(var(--title-height) - 4px);outline:none;padding:0 var(--padding)}.lil-gui .title:before{content:"▾";display:inline-block;font-family:lil-gui;padding-right:2px}.lil-gui .title:active{background:var(--title-background-color);opacity:.75}.lil-gui.root>.title:focus{text-decoration:none!important}.lil-gui.closed>.title:before{content:"▸"}.lil-gui.closed>.children{opacity:0;transform:translateY(-7px)}.lil-gui.closed:not(.transition)>.children{display:none}.lil-gui.transition>.children{overflow:hidden;pointer-events:none;transition-duration:.3s;transition-property:height,opacity,transform;transition-timing-function:cubic-bezier(.2,.6,.35,1)}.lil-gui .children:empty:before{content:"Empty";display:block;font-style:italic;height:var(--widget-height);line-height:var(--widget-height);margin:var(--spacing) 0;opacity:.5;padding:0 var(--padding)}.lil-gui.root>.children>.lil-gui>.title{border-width:0;border-bottom:1px solid var(--widget-color);border-left:0 solid var(--widget-color);border-right:0 solid var(--widget-color);border-top:1px solid var(--widget-color);transition:border-color .3s}.lil-gui.root>.children>.lil-gui.closed>.title{border-bottom-color:transparent}.lil-gui+.controller{border-top:1px solid var(--widget-color);margin-top:0;padding-top:var(--spacing)}.lil-gui .lil-gui .lil-gui>.title{border:none}.lil-gui .lil-gui .lil-gui>.children{border:none;border-left:2px solid var(--widget-color);margin-left:var(--folder-indent)}.lil-gui .lil-gui .controller{border:none}.lil-gui input{-webkit-tap-highlight-color:transparent;background:var(--widget-color);border:0;border-radius:var(--widget-border-radius);color:var(--text-color);font-family:var(--font-family);font-size:var(--input-font-size);height:var(--widget-height);outline:none;width:100%}.lil-gui input:disabled{opacity:1}.lil-gui input[type=number],.lil-gui input[type=text]{padding:var(--widget-padding)}.lil-gui input[type=number]:focus,.lil-gui input[type=text]:focus{background:var(--focus-color)}.lil-gui input::-webkit-inner-spin-button,.lil-gui input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.lil-gui input[type=number]{-moz-appearance:textfield}.lil-gui input[type=checkbox]{appearance:none;-webkit-appearance:none;border-radius:var(--widget-border-radius);cursor:pointer;height:var(--checkbox-size);text-align:center;width:var(--checkbox-size)}.lil-gui input[type=checkbox]:checked:before{content:"✓";font-family:lil-gui;font-size:var(--checkbox-size);line-height:var(--checkbox-size)}.lil-gui button{-webkit-tap-highlight-color:transparent;background:var(--widget-color);border:1px solid var(--widget-color);border-radius:var(--widget-border-radius);color:var(--text-color);cursor:pointer;font-family:var(--font-family);font-size:var(--font-size);height:var(--widget-height);line-height:calc(var(--widget-height) - 4px);outline:none;text-align:center;text-transform:none;width:100%}.lil-gui button:active{background:var(--focus-color)}@font-face{font-family:lil-gui;src:url("data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAUsAAsAAAAACJwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAH4AAADAImwmYE9TLzIAAAGIAAAAPwAAAGBKqH5SY21hcAAAAcgAAAD0AAACrukyyJBnbHlmAAACvAAAAF8AAACEIZpWH2hlYWQAAAMcAAAAJwAAADZfcj2zaGhlYQAAA0QAAAAYAAAAJAC5AHhobXR4AAADXAAAABAAAABMAZAAAGxvY2EAAANsAAAAFAAAACgCEgIybWF4cAAAA4AAAAAeAAAAIAEfABJuYW1lAAADoAAAASIAAAIK9SUU/XBvc3QAAATEAAAAZgAAAJCTcMc2eJxVjbEOgjAURU+hFRBK1dGRL+ALnAiToyMLEzFpnPz/eAshwSa97517c/MwwJmeB9kwPl+0cf5+uGPZXsqPu4nvZabcSZldZ6kfyWnomFY/eScKqZNWupKJO6kXN3K9uCVoL7iInPr1X5baXs3tjuMqCtzEuagm/AAlzQgPAAB4nGNgYRBlnMDAysDAYM/gBiT5oLQBAwuDJAMDEwMrMwNWEJDmmsJwgCFeXZghBcjlZMgFCzOiKOIFAB71Bb8AeJy1kjFuwkAQRZ+DwRAwBtNQRUGKQ8OdKCAWUhAgKLhIuAsVSpWz5Bbkj3dEgYiUIszqWdpZe+Z7/wB1oCYmIoboiwiLT2WjKl/jscrHfGg/pKdMkyklC5Zs2LEfHYpjcRoPzme9MWWmk3dWbK9ObkWkikOetJ554fWyoEsmdSlt+uR0pCJR34b6t/TVg1SY3sYvdf8vuiKrpyaDXDISiegp17p7579Gp3p++y7HPAiY9pmTibljrr85qSidtlg4+l25GLCaS8e6rRxNBmsnERunKbaOObRz7N72ju5vdAjYpBXHgJylOAVsMseDAPEP8LYoUHicY2BiAAEfhiAGJgZWBgZ7RnFRdnVJELCQlBSRlATJMoLV2DK4glSYs6ubq5vbKrJLSbGrgEmovDuDJVhe3VzcXFwNLCOILB/C4IuQ1xTn5FPilBTj5FPmBAB4WwoqAHicY2BkYGAA4sk1sR/j+W2+MnAzpDBgAyEMQUCSg4EJxAEAwUgFHgB4nGNgZGBgSGFggJMhDIwMqEAYAByHATJ4nGNgAIIUNEwmAABl3AGReJxjYAACIQYlBiMGJ3wQAEcQBEV4nGNgZGBgEGZgY2BiAAEQyQWEDAz/wXwGAAsPATIAAHicXdBNSsNAHAXwl35iA0UQXYnMShfS9GPZA7T7LgIu03SSpkwzYTIt1BN4Ak/gKTyAeCxfw39jZkjymzcvAwmAW/wgwHUEGDb36+jQQ3GXGot79L24jxCP4gHzF/EIr4jEIe7wxhOC3g2TMYy4Q7+Lu/SHuEd/ivt4wJd4wPxbPEKMX3GI5+DJFGaSn4qNzk8mcbKSR6xdXdhSzaOZJGtdapd4vVPbi6rP+cL7TGXOHtXKll4bY1Xl7EGnPtp7Xy2n00zyKLVHfkHBa4IcJ2oD3cgggWvt/V/FbDrUlEUJhTn/0azVWbNTNr0Ens8de1tceK9xZmfB1CPjOmPH4kitmvOubcNpmVTN3oFJyjzCvnmrwhJTzqzVj9jiSX911FjeAAB4nG3HMRKCMBBA0f0giiKi4DU8k0V2GWbIZDOh4PoWWvq6J5V8If9NVNQcaDhyouXMhY4rPTcG7jwYmXhKq8Wz+p762aNaeYXom2n3m2dLTVgsrCgFJ7OTmIkYbwIbC6vIB7WmFfAAAA==") format("woff")}@media (pointer:coarse){.lil-gui.allow-touch-styles{--widget-height:28px;--padding:6px;--spacing:6px;--font-size:13px;--input-font-size:16px;--folder-indent:10px;--scrollbar-width:7px;--slider-input-min-width:50px;--color-input-min-width:65px}}@media (hover:hover){.lil-gui .controller.color .display:hover:before{border:1px solid #fff9;border-radius:var(--widget-border-radius);bottom:0;content:" ";display:block;left:0;position:absolute;right:0;top:0}.lil-gui .controller.option .display.focus{background:var(--focus-color)}.lil-gui .controller.option .widget:hover .display{background:var(--hover-color)}.lil-gui .controller.number .slider:hover{background-color:var(--hover-color)}body:not(.lil-gui-dragging) .lil-gui .title:hover{background:var(--title-background-color);opacity:.85}.lil-gui .title:focus{text-decoration:underline var(--focus-color)}.lil-gui input:hover{background:var(--hover-color)}.lil-gui input:active{background:var(--focus-color)}.lil-gui input[type=checkbox]:focus{box-shadow:inset 0 0 0 1px var(--focus-color)}.lil-gui button:hover{background:var(--hover-color);border-color:var(--hover-color)}.lil-gui button:focus{border-color:var(--focus-color)}}'),g=!0),n?n.appendChild(this.domElement):t&&(this.domElement.classList.add("autoPlace"),document.body.appendChild(this.domElement)),i&&this.domElement.style.setProperty("--width",i+"px"),this.domElement.addEventListener("keydown",(e=>e.stopPropagation())),this.domElement.addEventListener("keyup",(e=>e.stopPropagation()))}add(e,t,n,i,a){if(Object(n)===n)return new f(this,e,t,n);const o=e[t];switch(typeof o){case"number":return new p(this,e,t,n,i,a);case"boolean":return new r(this,e,t);case"string":return new m(this,e,t);case"function":return new d(this,e,t)}console.error("gui.add failed\n\tproperty:",t,"\n\tobject:",e,"\n\tvalue:",o)}addColor(e,t,n=1){return new h(this,e,t,n)}addFolder(e){return new v({parent:this,title:e})}load(e,t=!0){return e.controllers&&this.controllers.forEach((t=>{t instanceof d||t._name in e.controllers&&t.load(e.controllers[t._name])})),t&&e.folders&&this.folders.forEach((t=>{t._title in e.folders&&t.load(e.folders[t._title])})),this}save(e=!0){const t={controllers:{},folders:{}};return this.controllers.forEach((e=>{if(!(e instanceof d)){if(e._name in t.controllers)throw new Error(`Cannot save GUI with duplicate property "${e._name}"`);t.controllers[e._name]=e.save()}})),e&&this.folders.forEach((e=>{if(e._title in t.folders)throw new Error(`Cannot save GUI with duplicate folder "${e._title}"`);t.folders[e._title]=e.save()})),t}open(e=!0){return this._closed=!e,this.$title.setAttribute("aria-expanded",!this._closed),this.domElement.classList.toggle("closed",this._closed),this}close(){return this.open(!1)}show(e=!0){return this._hidden=!e,this.domElement.style.display=this._hidden?"none":"",this}hide(){return this.show(!1)}openAnimated(e=!0){return this._closed=!e,this.$title.setAttribute("aria-expanded",!this._closed),requestAnimationFrame((()=>{const t=this.$children.clientHeight;this.$children.style.height=t+"px",this.domElement.classList.add("transition");const n=e=>{e.target===this.$children&&(this.$children.style.height="",this.domElement.classList.remove("transition"),this.$children.removeEventListener("transitionend",n))};this.$children.addEventListener("transitionend",n);const i=e?this.$children.scrollHeight:0;this.domElement.classList.toggle("closed",!e),requestAnimationFrame((()=>{this.$children.style.height=i+"px"}))})),this}title(e){return this._title=e,this.$title.innerHTML=e,this}reset(e=!0){return(e?this.controllersRecursive():this.controllers).forEach((e=>e.reset())),this}onChange(e){return this._onChange=e,this}_callOnChange(e){this.parent&&this.parent._callOnChange(e),void 0!==this._onChange&&this._onChange.call(this,{object:e.object,property:e.property,value:e.getValue(),controller:e})}onFinishChange(e){return this._onFinishChange=e,this}_callOnFinishChange(e){this.parent&&this.parent._callOnFinishChange(e),void 0!==this._onFinishChange&&this._onFinishChange.call(this,{object:e.object,property:e.property,value:e.getValue(),controller:e})}destroy(){this.parent&&(this.parent.children.splice(this.parent.children.indexOf(this),1),this.parent.folders.splice(this.parent.folders.indexOf(this),1)),this.domElement.parentElement&&this.domElement.parentElement.removeChild(this.domElement),Array.from(this.children).forEach((e=>e.destroy()))}controllersRecursive(){let e=Array.from(this.controllers);return this.folders.forEach((t=>{e=e.concat(t.controllersRecursive())})),e}foldersRecursive(){let e=Array.from(this.folders);return this.folders.forEach((t=>{e=e.concat(t.foldersRecursive())})),e}}},33074:function(e,t){"use strict";var n=function(){var e=0,t=document.createElement("div");function i(e){return t.appendChild(e.dom),e}function r(n){for(var i=0;i<t.children.length;i++)t.children[i].style.display=i===n?"block":"none";e=n}t.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000",t.addEventListener("click",(function(n){n.preventDefault(),r(++e%t.children.length)}),!1);var a=(performance||Date).now(),o=a,s=0,l=i(new n.Panel("FPS","#0ff","#002")),c=i(new n.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var u=i(new n.Panel("MB","#f08","#201"));return r(0),{REVISION:16,dom:t,addPanel:i,showPanel:r,begin:function(){a=(performance||Date).now()},end:function(){s++;var e=(performance||Date).now();if(c.update(e-a,200),e>=o+1e3&&(l.update(1e3*s/(e-o),100),o=e,s=0,u)){var t=performance.memory;u.update(t.usedJSHeapSize/1048576,t.jsHeapSizeLimit/1048576)}return e},update:function(){a=this.end()},domElement:t,setMode:r}};n.Panel=function(e,t,n){var i=1/0,r=0,a=Math.round,o=a(window.devicePixelRatio||1),s=80*o,l=48*o,c=3*o,u=2*o,h=3*o,d=15*o,p=74*o,f=30*o,m=document.createElement("canvas");m.width=s,m.height=l,m.style.cssText="width:80px;height:48px";var g=m.getContext("2d");return g.font="bold "+9*o+"px Helvetica,Arial,sans-serif",g.textBaseline="top",g.fillStyle=n,g.fillRect(0,0,s,l),g.fillStyle=t,g.fillText(e,c,u),g.fillRect(h,d,p,f),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(h,d,p,f),{dom:m,update:function(l,v){i=Math.min(i,l),r=Math.max(r,l),g.fillStyle=n,g.globalAlpha=1,g.fillRect(0,0,s,d),g.fillStyle=t,g.fillText(a(l)+" "+e+" ("+a(i)+"-"+a(r)+")",c,u),g.drawImage(m,h+o,d,p-o,f,h,d,p-o,f),g.fillRect(h+p-o,d,o,f),g.fillStyle=n,g.globalAlpha=.9,g.fillRect(h+p-o,d,o,a((1-l/v)*f))}}},t.Z=n},9011:function(e,t,n){"use strict";n.d(t,{E:function(){return a}});n(70252),n(66554),n(46293),n(6149),n(13296),n(28078),n(15454);var i=n(73073);function r(e,t){if(t===i.WwZ)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),e;if(t===i.z$h||t===i.UlW){let n=e.getIndex();if(null===n){const t=[],i=e.getAttribute("position");if(void 0===i)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),e;for(let e=0;e<i.count;e++)t.push(e);e.setIndex(t),n=e.getIndex()}const r=n.count-2,a=[];if(t===i.z$h)for(let e=1;e<=r;e++)a.push(n.getX(0)),a.push(n.getX(e)),a.push(n.getX(e+1));else for(let e=0;e<r;e++)e%2===0?(a.push(n.getX(e)),a.push(n.getX(e+1)),a.push(n.getX(e+2))):(a.push(n.getX(e+2)),a.push(n.getX(e+1)),a.push(n.getX(e)));a.length/3!==r&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const o=e.clone();return o.setIndex(a),o.clearGroups(),o}return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",t),e}class a extends i.aNw{constructor(e){super(e),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register((function(e){return new h(e)})),this.register((function(e){return new _(e)})),this.register((function(e){return new x(e)})),this.register((function(e){return new b(e)})),this.register((function(e){return new p(e)})),this.register((function(e){return new f(e)})),this.register((function(e){return new m(e)})),this.register((function(e){return new g(e)})),this.register((function(e){return new u(e)})),this.register((function(e){return new v(e)})),this.register((function(e){return new d(e)})),this.register((function(e){return new y(e)})),this.register((function(e){return new l(e)})),this.register((function(e){return new w(e)})),this.register((function(e){return new S(e)}))}load(e,t,n,r){const a=this;let o;o=""!==this.resourcePath?this.resourcePath:""!==this.path?this.path:i.Zp0.extractUrlBase(e),this.manager.itemStart(e);const s=function(t){r?r(t):console.error(t),a.manager.itemError(e),a.manager.itemEnd(e)},l=new i.hH6(this.manager);l.setPath(this.path),l.setResponseType("arraybuffer"),l.setRequestHeader(this.requestHeader),l.setWithCredentials(this.withCredentials),l.load(e,(function(n){try{a.parse(n,o,(function(n){t(n),a.manager.itemEnd(e)}),s)}catch(i){s(i)}}),n,s)}setDRACOLoader(e){return this.dracoLoader=e,this}setDDSLoader(){throw new Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".')}setKTX2Loader(e){return this.ktx2Loader=e,this}setMeshoptDecoder(e){return this.meshoptDecoder=e,this}register(e){return-1===this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.push(e),this}unregister(e){return-1!==this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}parse(e,t,n,i){let r;const a={},o={},l=new TextDecoder;if("string"===typeof e)r=JSON.parse(e);else if(e instanceof ArrayBuffer){const t=l.decode(new Uint8Array(e,0,4));if(t===M){try{a[s.KHR_BINARY_GLTF]=new E(e)}catch(h){return void(i&&i(h))}r=JSON.parse(a[s.KHR_BINARY_GLTF].content)}else r=JSON.parse(l.decode(e))}else r=e;if(void 0===r.asset||r.asset.version[0]<2)return void(i&&i(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported.")));const u=new Q(r,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});u.fileLoader.setRequestHeader(this.requestHeader);for(let s=0;s<this.pluginCallbacks.length;s++){const e=this.pluginCallbacks[s](u);o[e.name]=e,a[e.name]=!0}if(r.extensionsUsed)for(let d=0;d<r.extensionsUsed.length;++d){const e=r.extensionsUsed[d],t=r.extensionsRequired||[];switch(e){case s.KHR_MATERIALS_UNLIT:a[e]=new c;break;case s.KHR_DRACO_MESH_COMPRESSION:a[e]=new A(r,this.dracoLoader);break;case s.KHR_TEXTURE_TRANSFORM:a[e]=new k;break;case s.KHR_MESH_QUANTIZATION:a[e]=new D;break;default:t.indexOf(e)>=0&&void 0===o[e]&&console.warn('THREE.GLTFLoader: Unknown extension "'+e+'".')}}u.setExtensions(a),u.setPlugins(o),u.parse(n,i)}parseAsync(e,t){const n=this;return new Promise((function(i,r){n.parse(e,t,i,r)}))}}function o(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}const s={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class l{constructor(e){this.parser=e,this.name=s.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let n=0,i=t.length;n<i;n++){const i=t[n];i.extensions&&i.extensions[this.name]&&void 0!==i.extensions[this.name].light&&e._addNodeRef(this.cache,i.extensions[this.name].light)}}_loadLight(e){const t=this.parser,n="light:"+e;let r=t.cache.get(n);if(r)return r;const a=t.json,o=a.extensions&&a.extensions[this.name]||{},s=o.lights||[],l=s[e];let c;const u=new i.Ilk(16777215);void 0!==l.color&&u.fromArray(l.color);const h=void 0!==l.range?l.range:0;switch(l.type){case"directional":c=new i.Ox3(u),c.target.position.set(0,0,-1),c.add(c.target);break;case"point":c=new i.cek(u),c.distance=h;break;case"spot":c=new i.PMe(u),c.distance=h,l.spot=l.spot||{},l.spot.innerConeAngle=void 0!==l.spot.innerConeAngle?l.spot.innerConeAngle:0,l.spot.outerConeAngle=void 0!==l.spot.outerConeAngle?l.spot.outerConeAngle:Math.PI/4,c.angle=l.spot.outerConeAngle,c.penumbra=1-l.spot.innerConeAngle/l.spot.outerConeAngle,c.target.position.set(0,0,-1),c.add(c.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+l.type)}return c.position.set(0,0,0),c.decay=2,W(c,l),void 0!==l.intensity&&(c.intensity=l.intensity),c.name=t.createUniqueName(l.name||"light_"+e),r=Promise.resolve(c),t.cache.add(n,r),r}getDependency(e,t){if("light"===e)return this._loadLight(t)}createNodeAttachment(e){const t=this,n=this.parser,i=n.json,r=i.nodes[e],a=r.extensions&&r.extensions[this.name]||{},o=a.light;return void 0===o?null:this._loadLight(o).then((function(e){return n._getNodeRef(t.cache,o,e)}))}}class c{constructor(){this.name=s.KHR_MATERIALS_UNLIT}getMaterialType(){return i.vBJ}extendParams(e,t,n){const r=[];e.color=new i.Ilk(1,1,1),e.opacity=1;const a=t.pbrMetallicRoughness;if(a){if(Array.isArray(a.baseColorFactor)){const t=a.baseColorFactor;e.color.fromArray(t),e.opacity=t[3]}void 0!==a.baseColorTexture&&r.push(n.assignTexture(e,"map",a.baseColorTexture,i.KI_))}return Promise.all(r)}}class u{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=i.extensions[this.name].emissiveStrength;return void 0!==r&&(t.emissiveIntensity=r),Promise.resolve()}}class h{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_CLEARCOAT}getMaterialType(e){const t=this.parser,n=t.json.materials[e];return n.extensions&&n.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){const n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const a=[],o=r.extensions[this.name];if(void 0!==o.clearcoatFactor&&(t.clearcoat=o.clearcoatFactor),void 0!==o.clearcoatTexture&&a.push(n.assignTexture(t,"clearcoatMap",o.clearcoatTexture)),void 0!==o.clearcoatRoughnessFactor&&(t.clearcoatRoughness=o.clearcoatRoughnessFactor),void 0!==o.clearcoatRoughnessTexture&&a.push(n.assignTexture(t,"clearcoatRoughnessMap",o.clearcoatRoughnessTexture)),void 0!==o.clearcoatNormalTexture&&(a.push(n.assignTexture(t,"clearcoatNormalMap",o.clearcoatNormalTexture)),void 0!==o.clearcoatNormalTexture.scale)){const e=o.clearcoatNormalTexture.scale;t.clearcoatNormalScale=new i.FM8(e,e)}return Promise.all(a)}}class d{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_IRIDESCENCE}getMaterialType(e){const t=this.parser,n=t.json.materials[e];return n.extensions&&n.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],a=i.extensions[this.name];return void 0!==a.iridescenceFactor&&(t.iridescence=a.iridescenceFactor),void 0!==a.iridescenceTexture&&r.push(n.assignTexture(t,"iridescenceMap",a.iridescenceTexture)),void 0!==a.iridescenceIor&&(t.iridescenceIOR=a.iridescenceIor),void 0===t.iridescenceThicknessRange&&(t.iridescenceThicknessRange=[100,400]),void 0!==a.iridescenceThicknessMinimum&&(t.iridescenceThicknessRange[0]=a.iridescenceThicknessMinimum),void 0!==a.iridescenceThicknessMaximum&&(t.iridescenceThicknessRange[1]=a.iridescenceThicknessMaximum),void 0!==a.iridescenceThicknessTexture&&r.push(n.assignTexture(t,"iridescenceThicknessMap",a.iridescenceThicknessTexture)),Promise.all(r)}}class p{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_SHEEN}getMaterialType(e){const t=this.parser,n=t.json.materials[e];return n.extensions&&n.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){const n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const a=[];t.sheenColor=new i.Ilk(0,0,0),t.sheenRoughness=0,t.sheen=1;const o=r.extensions[this.name];return void 0!==o.sheenColorFactor&&t.sheenColor.fromArray(o.sheenColorFactor),void 0!==o.sheenRoughnessFactor&&(t.sheenRoughness=o.sheenRoughnessFactor),void 0!==o.sheenColorTexture&&a.push(n.assignTexture(t,"sheenColorMap",o.sheenColorTexture,i.KI_)),void 0!==o.sheenRoughnessTexture&&a.push(n.assignTexture(t,"sheenRoughnessMap",o.sheenRoughnessTexture)),Promise.all(a)}}class f{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_TRANSMISSION}getMaterialType(e){const t=this.parser,n=t.json.materials[e];return n.extensions&&n.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],a=i.extensions[this.name];return void 0!==a.transmissionFactor&&(t.transmission=a.transmissionFactor),void 0!==a.transmissionTexture&&r.push(n.assignTexture(t,"transmissionMap",a.transmissionTexture)),Promise.all(r)}}class m{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_VOLUME}getMaterialType(e){const t=this.parser,n=t.json.materials[e];return n.extensions&&n.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){const n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const a=[],o=r.extensions[this.name];t.thickness=void 0!==o.thicknessFactor?o.thicknessFactor:0,void 0!==o.thicknessTexture&&a.push(n.assignTexture(t,"thicknessMap",o.thicknessTexture)),t.attenuationDistance=o.attenuationDistance||1/0;const s=o.attenuationColor||[1,1,1];return t.attenuationColor=new i.Ilk(s[0],s[1],s[2]),Promise.all(a)}}class g{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_IOR}getMaterialType(e){const t=this.parser,n=t.json.materials[e];return n.extensions&&n.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=i.extensions[this.name];return t.ior=void 0!==r.ior?r.ior:1.5,Promise.resolve()}}class v{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_SPECULAR}getMaterialType(e){const t=this.parser,n=t.json.materials[e];return n.extensions&&n.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){const n=this.parser,r=n.json.materials[e];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const a=[],o=r.extensions[this.name];t.specularIntensity=void 0!==o.specularFactor?o.specularFactor:1,void 0!==o.specularTexture&&a.push(n.assignTexture(t,"specularIntensityMap",o.specularTexture));const s=o.specularColorFactor||[1,1,1];return t.specularColor=new i.Ilk(s[0],s[1],s[2]),void 0!==o.specularColorTexture&&a.push(n.assignTexture(t,"specularColorMap",o.specularColorTexture,i.KI_)),Promise.all(a)}}class y{constructor(e){this.parser=e,this.name=s.KHR_MATERIALS_ANISOTROPY}getMaterialType(e){const t=this.parser,n=t.json.materials[e];return n.extensions&&n.extensions[this.name]?i.EJi:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],a=i.extensions[this.name];return void 0!==a.anisotropyStrength&&(t.anisotropy=a.anisotropyStrength),void 0!==a.anisotropyRotation&&(t.anisotropyRotation=a.anisotropyRotation),void 0!==a.anisotropyTexture&&r.push(n.assignTexture(t,"anisotropyMap",a.anisotropyTexture)),Promise.all(r)}}class _{constructor(e){this.parser=e,this.name=s.KHR_TEXTURE_BASISU}loadTexture(e){const t=this.parser,n=t.json,i=n.textures[e];if(!i.extensions||!i.extensions[this.name])return null;const r=i.extensions[this.name],a=t.options.ktx2Loader;if(!a){if(n.extensionsRequired&&n.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,r.source,a)}}class x{constructor(e){this.parser=e,this.name=s.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,n=this.parser,i=n.json,r=i.textures[e];if(!r.extensions||!r.extensions[t])return null;const a=r.extensions[t],o=i.images[a.source];let s=n.textureLoader;if(o.uri){const e=n.options.manager.getHandler(o.uri);null!==e&&(s=e)}return this.detectSupport().then((function(r){if(r)return n.loadTextureImage(e,a.source,s);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return n.loadTexture(e)}))}detectSupport(){return this.isSupported||(this.isSupported=new Promise((function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(1===t.height)}}))),this.isSupported}}class b{constructor(e){this.parser=e,this.name=s.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,n=this.parser,i=n.json,r=i.textures[e];if(!r.extensions||!r.extensions[t])return null;const a=r.extensions[t],o=i.images[a.source];let s=n.textureLoader;if(o.uri){const e=n.options.manager.getHandler(o.uri);null!==e&&(s=e)}return this.detectSupport().then((function(r){if(r)return n.loadTextureImage(e,a.source,s);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return n.loadTexture(e)}))}detectSupport(){return this.isSupported||(this.isSupported=new Promise((function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(1===t.height)}}))),this.isSupported}}class w{constructor(e){this.name=s.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){const e=n.extensions[this.name],i=this.parser.getDependency("buffer",e.buffer),r=this.parser.options.meshoptDecoder;if(!r||!r.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return i.then((function(t){const n=e.byteOffset||0,i=e.byteLength||0,a=e.count,o=e.byteStride,s=new Uint8Array(t,n,i);return r.decodeGltfBufferAsync?r.decodeGltfBufferAsync(a,o,s,e.mode,e.filter).then((function(e){return e.buffer})):r.ready.then((function(){const t=new ArrayBuffer(a*o);return r.decodeGltfBuffer(new Uint8Array(t),a,o,s,e.mode,e.filter),t}))}))}return null}}class S{constructor(e){this.name=s.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||void 0===n.mesh)return null;const r=t.meshes[n.mesh];for(const i of r.primitives)if(i.mode!==L.TRIANGLES&&i.mode!==L.TRIANGLE_STRIP&&i.mode!==L.TRIANGLE_FAN&&void 0!==i.mode)return null;const a=n.extensions[this.name],o=a.attributes,s=[],l={};for(const i in o)s.push(this.parser.getDependency("accessor",o[i]).then((e=>(l[i]=e,l[i]))));return s.length<1?null:(s.push(this.parser.createNodeMesh(e)),Promise.all(s).then((e=>{const t=e.pop(),n=t.isGroup?t.children:[t],r=e[0].count,a=[];for(const o of n){const e=new i.yGw,t=new i.Pa4,n=new i._fP,s=new i.Pa4(1,1,1),c=new i.SPe(o.geometry,o.material,r);for(let i=0;i<r;i++)l.TRANSLATION&&t.fromBufferAttribute(l.TRANSLATION,i),l.ROTATION&&n.fromBufferAttribute(l.ROTATION,i),l.SCALE&&s.fromBufferAttribute(l.SCALE,i),c.setMatrixAt(i,e.compose(t,n,s));for(const i in l)"TRANSLATION"!==i&&"ROTATION"!==i&&"SCALE"!==i&&o.geometry.setAttribute(i,l[i]);i.Tme.prototype.copy.call(c,o),this.parser.assignFinalMaterial(c),a.push(c)}return t.isGroup?(t.clear(),t.add(...a),t):a[0]})))}}const M="glTF",C=12,T={JSON:1313821514,BIN:5130562};class E{constructor(e){this.name=s.KHR_BINARY_GLTF,this.content=null,this.body=null;const t=new DataView(e,0,C),n=new TextDecoder;if(this.header={magic:n.decode(new Uint8Array(e.slice(0,4))),version:t.getUint32(4,!0),length:t.getUint32(8,!0)},this.header.magic!==M)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const i=this.header.length-C,r=new DataView(e,C);let a=0;while(a<i){const t=r.getUint32(a,!0);a+=4;const i=r.getUint32(a,!0);if(a+=4,i===T.JSON){const i=new Uint8Array(e,C+a,t);this.content=n.decode(i)}else if(i===T.BIN){const n=C+a;this.body=e.slice(n,n+t)}a+=t}if(null===this.content)throw new Error("THREE.GLTFLoader: JSON content not found.")}}class A{constructor(e,t){if(!t)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=s.KHR_DRACO_MESH_COMPRESSION,this.json=e,this.dracoLoader=t,this.dracoLoader.preload()}decodePrimitive(e,t){const n=this.json,i=this.dracoLoader,r=e.extensions[this.name].bufferView,a=e.extensions[this.name].attributes,o={},s={},l={};for(const c in a){const e=z[c]||c.toLowerCase();o[e]=a[c]}for(const c in e.attributes){const t=z[c]||c.toLowerCase();if(void 0!==a[c]){const i=n.accessors[e.attributes[c]],r=R[i.componentType];l[t]=r.name,s[t]=!0===i.normalized}}return t.getDependency("bufferView",r).then((function(e){return new Promise((function(t){i.decodeDracoFile(e,(function(e){for(const t in e.attributes){const n=e.attributes[t],i=s[t];void 0!==i&&(n.normalized=i)}t(e)}),o,l)}))}))}}class k{constructor(){this.name=s.KHR_TEXTURE_TRANSFORM}extendTexture(e,t){return void 0!==t.texCoord&&t.texCoord!==e.channel||void 0!==t.offset||void 0!==t.rotation||void 0!==t.scale?(e=e.clone(),void 0!==t.texCoord&&(e.channel=t.texCoord),void 0!==t.offset&&e.offset.fromArray(t.offset),void 0!==t.rotation&&(e.rotation=t.rotation),void 0!==t.scale&&e.repeat.fromArray(t.scale),e.needsUpdate=!0,e):e}}class D{constructor(){this.name=s.KHR_MESH_QUANTIZATION}}class I extends i._C8{constructor(e,t,n,i){super(e,t,n,i)}copySampleValue_(e){const t=this.resultBuffer,n=this.sampleValues,i=this.valueSize,r=e*i*3+i;for(let a=0;a!==i;a++)t[a]=n[r+a];return t}interpolate_(e,t,n,i){const r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=2*o,l=3*o,c=i-t,u=(n-t)/c,h=u*u,d=h*u,p=e*l,f=p-l,m=-2*d+3*h,g=d-h,v=1-m,y=g-h+u;for(let _=0;_!==o;_++){const e=a[f+_+o],t=a[f+_+s]*c,n=a[p+_+o],i=a[p+_]*c;r[_]=v*e+y*t+m*n+g*i}return r}}const P=new i._fP;class O extends I{interpolate_(e,t,n,i){const r=super.interpolate_(e,t,n,i);return P.fromArray(r).normalize().toArray(r),r}}const L={FLOAT:5126,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123},R={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},N={9728:i.TyD,9729:i.wem,9984:i.YLQ,9985:i.qyh,9986:i.aH4,9987:i.D1R},F={33071:i.uWy,33648:i.OoA,10497:i.rpg},B={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},z={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv1",TEXCOORD_2:"uv2",TEXCOORD_3:"uv3",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},V={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},U={CUBICSPLINE:void 0,LINEAR:i.NMF,STEP:i.Syv},H={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function $(e){return void 0===e["DefaultMaterial"]&&(e["DefaultMaterial"]=new i.Wid({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:i.Wl3})),e["DefaultMaterial"]}function j(e,t,n){for(const i in n.extensions)void 0===e[i]&&(t.userData.gltfExtensions=t.userData.gltfExtensions||{},t.userData.gltfExtensions[i]=n.extensions[i])}function W(e,t){void 0!==t.extras&&("object"===typeof t.extras?Object.assign(e.userData,t.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+t.extras))}function G(e,t,n){let i=!1,r=!1,a=!1;for(let c=0,u=t.length;c<u;c++){const e=t[c];if(void 0!==e.POSITION&&(i=!0),void 0!==e.NORMAL&&(r=!0),void 0!==e.COLOR_0&&(a=!0),i&&r&&a)break}if(!i&&!r&&!a)return Promise.resolve(e);const o=[],s=[],l=[];for(let c=0,u=t.length;c<u;c++){const u=t[c];if(i){const t=void 0!==u.POSITION?n.getDependency("accessor",u.POSITION):e.attributes.position;o.push(t)}if(r){const t=void 0!==u.NORMAL?n.getDependency("accessor",u.NORMAL):e.attributes.normal;s.push(t)}if(a){const t=void 0!==u.COLOR_0?n.getDependency("accessor",u.COLOR_0):e.attributes.color;l.push(t)}}return Promise.all([Promise.all(o),Promise.all(s),Promise.all(l)]).then((function(t){const n=t[0],o=t[1],s=t[2];return i&&(e.morphAttributes.position=n),r&&(e.morphAttributes.normal=o),a&&(e.morphAttributes.color=s),e.morphTargetsRelative=!0,e}))}function q(e,t){if(e.updateMorphTargets(),void 0!==t.weights)for(let n=0,i=t.weights.length;n<i;n++)e.morphTargetInfluences[n]=t.weights[n];if(t.extras&&Array.isArray(t.extras.targetNames)){const n=t.extras.targetNames;if(e.morphTargetInfluences.length===n.length){e.morphTargetDictionary={};for(let t=0,i=n.length;t<i;t++)e.morphTargetDictionary[n[t]]=t}else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}function X(e){let t;const n=e.extensions&&e.extensions[s.KHR_DRACO_MESH_COMPRESSION];if(t=n?"draco:"+n.bufferView+":"+n.indices+":"+Y(n.attributes):e.indices+":"+Y(e.attributes)+":"+e.mode,void 0!==e.targets)for(let i=0,r=e.targets.length;i<r;i++)t+=":"+Y(e.targets[i]);return t}function Y(e){let t="";const n=Object.keys(e).sort();for(let i=0,r=n.length;i<r;i++)t+=n[i]+":"+e[n[i]]+";";return t}function K(e){switch(e){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}function Z(e){return e.search(/\.jpe?g($|\?)/i)>0||0===e.search(/^data\:image\/jpeg/)?"image/jpeg":e.search(/\.webp($|\?)/i)>0||0===e.search(/^data\:image\/webp/)?"image/webp":"image/png"}const J=new i.yGw;class Q{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new o,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let n=!1,r=!1,a=-1;"undefined"!==typeof navigator&&(n=!0===/^((?!chrome|android).)*safari/i.test(navigator.userAgent),r=navigator.userAgent.indexOf("Firefox")>-1,a=r?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),"undefined"===typeof createImageBitmap||n||r&&a<98?this.textureLoader=new i.dpR(this.options.manager):this.textureLoader=new i.QRU(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new i.hH6(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),"use-credentials"===this.options.crossOrigin&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const n=this,i=this.json,r=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll((function(e){return e._markDefs&&e._markDefs()})),Promise.all(this._invokeAll((function(e){return e.beforeRoot&&e.beforeRoot()}))).then((function(){return Promise.all([n.getDependencies("scene"),n.getDependencies("animation"),n.getDependencies("camera")])})).then((function(t){const a={scene:t[0][i.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:i.asset,parser:n,userData:{}};j(r,a,i),W(a,i),Promise.all(n._invokeAll((function(e){return e.afterRoot&&e.afterRoot(a)}))).then((function(){e(a)}))})).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];for(let i=0,r=t.length;i<r;i++){const n=t[i].joints;for(let t=0,i=n.length;t<i;t++)e[n[t]].isBone=!0}for(let i=0,r=e.length;i<r;i++){const t=e[i];void 0!==t.mesh&&(this._addNodeRef(this.meshCache,t.mesh),void 0!==t.skin&&(n[t.mesh].isSkinnedMesh=!0)),void 0!==t.camera&&this._addNodeRef(this.cameraCache,t.camera)}}_addNodeRef(e,t){void 0!==t&&(void 0===e.refs[t]&&(e.refs[t]=e.uses[t]=0),e.refs[t]++)}_getNodeRef(e,t,n){if(e.refs[t]<=1)return n;const i=n.clone(),r=(e,t)=>{const n=this.associations.get(e);null!=n&&this.associations.set(t,n);for(const[i,a]of e.children.entries())r(a,t.children[i])};return r(n,i),i.name+="_instance_"+e.uses[t]++,i}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let n=0;n<t.length;n++){const i=e(t[n]);if(i)return i}return null}_invokeAll(e){const t=Object.values(this.plugins);t.unshift(this);const n=[];for(let i=0;i<t.length;i++){const r=e(t[i]);r&&n.push(r)}return n}getDependency(e,t){const n=e+":"+t;let i=this.cache.get(n);if(!i){switch(e){case"scene":i=this.loadScene(t);break;case"node":i=this._invokeOne((function(e){return e.loadNode&&e.loadNode(t)}));break;case"mesh":i=this._invokeOne((function(e){return e.loadMesh&&e.loadMesh(t)}));break;case"accessor":i=this.loadAccessor(t);break;case"bufferView":i=this._invokeOne((function(e){return e.loadBufferView&&e.loadBufferView(t)}));break;case"buffer":i=this.loadBuffer(t);break;case"material":i=this._invokeOne((function(e){return e.loadMaterial&&e.loadMaterial(t)}));break;case"texture":i=this._invokeOne((function(e){return e.loadTexture&&e.loadTexture(t)}));break;case"skin":i=this.loadSkin(t);break;case"animation":i=this._invokeOne((function(e){return e.loadAnimation&&e.loadAnimation(t)}));break;case"camera":i=this.loadCamera(t);break;default:if(i=this._invokeOne((function(n){return n!=this&&n.getDependency&&n.getDependency(e,t)})),!i)throw new Error("Unknown type: "+e);break}this.cache.add(n,i)}return i}getDependencies(e){let t=this.cache.get(e);if(!t){const n=this,i=this.json[e+("mesh"===e?"es":"s")]||[];t=Promise.all(i.map((function(t,i){return n.getDependency(e,i)}))),this.cache.add(e,t)}return t}loadBuffer(e){const t=this.json.buffers[e],n=this.fileLoader;if(t.type&&"arraybuffer"!==t.type)throw new Error("THREE.GLTFLoader: "+t.type+" buffer type is not supported.");if(void 0===t.uri&&0===e)return Promise.resolve(this.extensions[s.KHR_BINARY_GLTF].body);const r=this.options;return new Promise((function(e,a){n.load(i.Zp0.resolveURL(t.uri,r.path),e,void 0,(function(){a(new Error('THREE.GLTFLoader: Failed to load buffer "'+t.uri+'".'))}))}))}loadBufferView(e){const t=this.json.bufferViews[e];return this.getDependency("buffer",t.buffer).then((function(e){const n=t.byteLength||0,i=t.byteOffset||0;return e.slice(i,i+n)}))}loadAccessor(e){const t=this,n=this.json,r=this.json.accessors[e];if(void 0===r.bufferView&&void 0===r.sparse){const e=B[r.type],t=R[r.componentType],n=!0===r.normalized,a=new t(r.count*e);return Promise.resolve(new i.TlE(a,e,n))}const a=[];return void 0!==r.bufferView?a.push(this.getDependency("bufferView",r.bufferView)):a.push(null),void 0!==r.sparse&&(a.push(this.getDependency("bufferView",r.sparse.indices.bufferView)),a.push(this.getDependency("bufferView",r.sparse.values.bufferView))),Promise.all(a).then((function(e){const a=e[0],o=B[r.type],s=R[r.componentType],l=s.BYTES_PER_ELEMENT,c=l*o,u=r.byteOffset||0,h=void 0!==r.bufferView?n.bufferViews[r.bufferView].byteStride:void 0,d=!0===r.normalized;let p,f;if(h&&h!==c){const e=Math.floor(u/h),n="InterleavedBuffer:"+r.bufferView+":"+r.componentType+":"+e+":"+r.count;let c=t.cache.get(n);c||(p=new s(a,e*h,r.count*h/l),c=new i.vpT(p,h/l),t.cache.add(n,c)),f=new i.kB5(c,o,u%h/l,d)}else p=null===a?new s(r.count*o):new s(a,u,r.count*o),f=new i.TlE(p,o,d);if(void 0!==r.sparse){const t=B.SCALAR,n=R[r.sparse.indices.componentType],l=r.sparse.indices.byteOffset||0,c=r.sparse.values.byteOffset||0,u=new n(e[1],l,r.sparse.count*t),h=new s(e[2],c,r.sparse.count*o);null!==a&&(f=new i.TlE(f.array.slice(),f.itemSize,f.normalized));for(let e=0,i=u.length;e<i;e++){const t=u[e];if(f.setX(t,h[e*o]),o>=2&&f.setY(t,h[e*o+1]),o>=3&&f.setZ(t,h[e*o+2]),o>=4&&f.setW(t,h[e*o+3]),o>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return f}))}loadTexture(e){const t=this.json,n=this.options,i=t.textures[e],r=i.source,a=t.images[r];let o=this.textureLoader;if(a.uri){const e=n.manager.getHandler(a.uri);null!==e&&(o=e)}return this.loadTextureImage(e,r,o)}loadTextureImage(e,t,n){const r=this,a=this.json,o=a.textures[e],s=a.images[t],l=(s.uri||s.bufferView)+":"+o.sampler;if(this.textureCache[l])return this.textureCache[l];const c=this.loadImageSource(t,n).then((function(t){t.flipY=!1,t.name=o.name||s.name||"",""===t.name&&"string"===typeof s.uri&&!1===s.uri.startsWith("data:image/")&&(t.name=s.uri);const n=a.samplers||{},l=n[o.sampler]||{};return t.magFilter=N[l.magFilter]||i.wem,t.minFilter=N[l.minFilter]||i.D1R,t.wrapS=F[l.wrapS]||i.rpg,t.wrapT=F[l.wrapT]||i.rpg,r.associations.set(t,{textures:e}),t})).catch((function(){return null}));return this.textureCache[l]=c,c}loadImageSource(e,t){const n=this,r=this.json,a=this.options;if(void 0!==this.sourceCache[e])return this.sourceCache[e].then((e=>e.clone()));const o=r.images[e],s=self.URL||self.webkitURL;let l=o.uri||"",c=!1;if(void 0!==o.bufferView)l=n.getDependency("bufferView",o.bufferView).then((function(e){c=!0;const t=new Blob([e],{type:o.mimeType});return l=s.createObjectURL(t),l}));else if(void 0===o.uri)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const u=Promise.resolve(l).then((function(e){return new Promise((function(n,r){let o=n;!0===t.isImageBitmapLoader&&(o=function(e){const t=new i.xEZ(e);t.needsUpdate=!0,n(t)}),t.load(i.Zp0.resolveURL(e,a.path),o,void 0,r)}))})).then((function(e){return!0===c&&s.revokeObjectURL(l),e.userData.mimeType=o.mimeType||Z(o.uri),e})).catch((function(e){throw console.error("THREE.GLTFLoader: Couldn't load texture",l),e}));return this.sourceCache[e]=u,u}assignTexture(e,t,n,i){const r=this;return this.getDependency("texture",n.index).then((function(a){if(!a)return null;if(void 0!==n.texCoord&&n.texCoord>0&&(a=a.clone(),a.channel=n.texCoord),r.extensions[s.KHR_TEXTURE_TRANSFORM]){const e=void 0!==n.extensions?n.extensions[s.KHR_TEXTURE_TRANSFORM]:void 0;if(e){const t=r.associations.get(a);a=r.extensions[s.KHR_TEXTURE_TRANSFORM].extendTexture(a,e),r.associations.set(a,t)}}return void 0!==i&&(a.colorSpace=i),e[t]=a,a}))}assignFinalMaterial(e){const t=e.geometry;let n=e.material;const r=void 0===t.attributes.tangent,a=void 0!==t.attributes.color,o=void 0===t.attributes.normal;if(e.isPoints){const e="PointsMaterial:"+n.uuid;let t=this.cache.get(e);t||(t=new i.UY4,i.F5T.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,this.cache.add(e,t)),n=t}else if(e.isLine){const e="LineBasicMaterial:"+n.uuid;let t=this.cache.get(e);t||(t=new i.nls,i.F5T.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,this.cache.add(e,t)),n=t}if(r||a||o){let e="ClonedMaterial:"+n.uuid+":";r&&(e+="derivative-tangents:"),a&&(e+="vertex-colors:"),o&&(e+="flat-shading:");let t=this.cache.get(e);t||(t=n.clone(),a&&(t.vertexColors=!0),o&&(t.flatShading=!0),r&&(t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}e.material=n}getMaterialType(){return i.Wid}loadMaterial(e){const t=this,n=this.json,r=this.extensions,a=n.materials[e];let o;const l={},c=a.extensions||{},u=[];if(c[s.KHR_MATERIALS_UNLIT]){const e=r[s.KHR_MATERIALS_UNLIT];o=e.getMaterialType(),u.push(e.extendParams(l,a,t))}else{const n=a.pbrMetallicRoughness||{};if(l.color=new i.Ilk(1,1,1),l.opacity=1,Array.isArray(n.baseColorFactor)){const e=n.baseColorFactor;l.color.fromArray(e),l.opacity=e[3]}void 0!==n.baseColorTexture&&u.push(t.assignTexture(l,"map",n.baseColorTexture,i.KI_)),l.metalness=void 0!==n.metallicFactor?n.metallicFactor:1,l.roughness=void 0!==n.roughnessFactor?n.roughnessFactor:1,void 0!==n.metallicRoughnessTexture&&(u.push(t.assignTexture(l,"metalnessMap",n.metallicRoughnessTexture)),u.push(t.assignTexture(l,"roughnessMap",n.metallicRoughnessTexture))),o=this._invokeOne((function(t){return t.getMaterialType&&t.getMaterialType(e)})),u.push(Promise.all(this._invokeAll((function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,l)}))))}!0===a.doubleSided&&(l.side=i.ehD);const h=a.alphaMode||H.OPAQUE;if(h===H.BLEND?(l.transparent=!0,l.depthWrite=!1):(l.transparent=!1,h===H.MASK&&(l.alphaTest=void 0!==a.alphaCutoff?a.alphaCutoff:.5)),void 0!==a.normalTexture&&o!==i.vBJ&&(u.push(t.assignTexture(l,"normalMap",a.normalTexture)),l.normalScale=new i.FM8(1,1),void 0!==a.normalTexture.scale)){const e=a.normalTexture.scale;l.normalScale.set(e,e)}return void 0!==a.occlusionTexture&&o!==i.vBJ&&(u.push(t.assignTexture(l,"aoMap",a.occlusionTexture)),void 0!==a.occlusionTexture.strength&&(l.aoMapIntensity=a.occlusionTexture.strength)),void 0!==a.emissiveFactor&&o!==i.vBJ&&(l.emissive=(new i.Ilk).fromArray(a.emissiveFactor)),void 0!==a.emissiveTexture&&o!==i.vBJ&&u.push(t.assignTexture(l,"emissiveMap",a.emissiveTexture,i.KI_)),Promise.all(u).then((function(){const n=new o(l);return a.name&&(n.name=a.name),W(n,a),t.associations.set(n,{materials:e}),a.extensions&&j(r,n,a),n}))}createUniqueName(e){const t=i.iUV.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,n=this.extensions,r=this.primitiveCache;function a(e){return n[s.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then((function(n){return te(n,e,t)}))}const o=[];for(let l=0,c=e.length;l<c;l++){const n=e[l],c=X(n),u=r[c];if(u)o.push(u.promise);else{let e;e=n.extensions&&n.extensions[s.KHR_DRACO_MESH_COMPRESSION]?a(n):te(new i.u9r,n,t),r[c]={primitive:n,promise:e},o.push(e)}}return Promise.all(o)}loadMesh(e){const t=this,n=this.json,a=this.extensions,o=n.meshes[e],s=o.primitives,l=[];for(let i=0,r=s.length;i<r;i++){const e=void 0===s[i].material?$(this.cache):this.getDependency("material",s[i].material);l.push(e)}return l.push(t.loadGeometries(s)),Promise.all(l).then((function(n){const l=n.slice(0,n.length-1),c=n[n.length-1],u=[];for(let d=0,p=c.length;d<p;d++){const n=c[d],h=s[d];let p;const f=l[d];if(h.mode===L.TRIANGLES||h.mode===L.TRIANGLE_STRIP||h.mode===L.TRIANGLE_FAN||void 0===h.mode)p=!0===o.isSkinnedMesh?new i.TUv(n,f):new i.Kj0(n,f),!0===p.isSkinnedMesh&&p.normalizeSkinWeights(),h.mode===L.TRIANGLE_STRIP?p.geometry=r(p.geometry,i.UlW):h.mode===L.TRIANGLE_FAN&&(p.geometry=r(p.geometry,i.z$h));else if(h.mode===L.LINES)p=new i.ejS(n,f);else if(h.mode===L.LINE_STRIP)p=new i.x12(n,f);else if(h.mode===L.LINE_LOOP)p=new i.blk(n,f);else{if(h.mode!==L.POINTS)throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+h.mode);p=new i.woe(n,f)}Object.keys(p.geometry.morphAttributes).length>0&&q(p,o),p.name=t.createUniqueName(o.name||"mesh_"+e),W(p,o),h.extensions&&j(a,p,h),t.assignFinalMaterial(p),u.push(p)}for(let i=0,r=u.length;i<r;i++)t.associations.set(u[i],{meshes:e,primitives:i});if(1===u.length)return o.extensions&&j(a,u[0],o),u[0];const h=new i.ZAu;o.extensions&&j(a,h,o),t.associations.set(h,{meshes:e});for(let e=0,t=u.length;e<t;e++)h.add(u[e]);return h}))}loadCamera(e){let t;const n=this.json.cameras[e],r=n[n.type];if(r)return"perspective"===n.type?t=new i.cPb(i.M8C.radToDeg(r.yfov),r.aspectRatio||1,r.znear||1,r.zfar||2e6):"orthographic"===n.type&&(t=new i.iKG(-r.xmag,r.xmag,r.ymag,-r.ymag,r.znear,r.zfar)),n.name&&(t.name=this.createUniqueName(n.name)),W(t,n),Promise.resolve(t);console.warn("THREE.GLTFLoader: Missing camera parameters.")}loadSkin(e){const t=this.json.skins[e],n=[];for(let i=0,r=t.joints.length;i<r;i++)n.push(this._loadNodeShallow(t.joints[i]));return void 0!==t.inverseBindMatrices?n.push(this.getDependency("accessor",t.inverseBindMatrices)):n.push(null),Promise.all(n).then((function(e){const n=e.pop(),r=e,a=[],o=[];for(let s=0,l=r.length;s<l;s++){const e=r[s];if(e){a.push(e);const t=new i.yGw;null!==n&&t.fromArray(n.array,16*s),o.push(t)}else console.warn('THREE.GLTFLoader: Joint "%s" could not be found.',t.joints[s])}return new i.OdW(a,o)}))}loadAnimation(e){const t=this.json,n=this,r=t.animations[e],a=r.name?r.name:"animation_"+e,o=[],s=[],l=[],c=[],u=[];for(let i=0,h=r.channels.length;i<h;i++){const e=r.channels[i],t=r.samplers[e.sampler],n=e.target,a=n.node,h=void 0!==r.parameters?r.parameters[t.input]:t.input,d=void 0!==r.parameters?r.parameters[t.output]:t.output;void 0!==n.node&&(o.push(this.getDependency("node",a)),s.push(this.getDependency("accessor",h)),l.push(this.getDependency("accessor",d)),c.push(t),u.push(n))}return Promise.all([Promise.all(o),Promise.all(s),Promise.all(l),Promise.all(c),Promise.all(u)]).then((function(e){const t=e[0],r=e[1],o=e[2],s=e[3],l=e[4],c=[];for(let i=0,a=t.length;i<a;i++){const e=t[i],a=r[i],u=o[i],h=s[i],d=l[i];if(void 0===e)continue;e.updateMatrix&&(e.updateMatrix(),e.matrixAutoUpdate=!0);const p=n._createAnimationTracks(e,a,u,h,d);if(p)for(let t=0;t<p.length;t++)c.push(p[t])}return new i.m7l(a,void 0,c)}))}createNodeMesh(e){const t=this.json,n=this,i=t.nodes[e];return void 0===i.mesh?null:n.getDependency("mesh",i.mesh).then((function(e){const t=n._getNodeRef(n.meshCache,i.mesh,e);return void 0!==i.weights&&t.traverse((function(e){if(e.isMesh)for(let t=0,n=i.weights.length;t<n;t++)e.morphTargetInfluences[t]=i.weights[t]})),t}))}loadNode(e){const t=this.json,n=this,i=t.nodes[e],r=n._loadNodeShallow(e),a=[],o=i.children||[];for(let l=0,c=o.length;l<c;l++)a.push(n.getDependency("node",o[l]));const s=void 0===i.skin?Promise.resolve(null):n.getDependency("skin",i.skin);return Promise.all([r,Promise.all(a),s]).then((function(e){const t=e[0],n=e[1],i=e[2];null!==i&&t.traverse((function(e){e.isSkinnedMesh&&e.bind(i,J)}));for(let r=0,a=n.length;r<a;r++)t.add(n[r]);return t}))}_loadNodeShallow(e){const t=this.json,n=this.extensions,r=this;if(void 0!==this.nodeCache[e])return this.nodeCache[e];const a=t.nodes[e],o=a.name?r.createUniqueName(a.name):"",s=[],l=r._invokeOne((function(t){return t.createNodeMesh&&t.createNodeMesh(e)}));return l&&s.push(l),void 0!==a.camera&&s.push(r.getDependency("camera",a.camera).then((function(e){return r._getNodeRef(r.cameraCache,a.camera,e)}))),r._invokeAll((function(t){return t.createNodeAttachment&&t.createNodeAttachment(e)})).forEach((function(e){s.push(e)})),this.nodeCache[e]=Promise.all(s).then((function(t){let s;if(s=!0===a.isBone?new i.N$j:t.length>1?new i.ZAu:1===t.length?t[0]:new i.Tme,s!==t[0])for(let e=0,n=t.length;e<n;e++)s.add(t[e]);if(a.name&&(s.userData.name=a.name,s.name=o),W(s,a),a.extensions&&j(n,s,a),void 0!==a.matrix){const e=new i.yGw;e.fromArray(a.matrix),s.applyMatrix4(e)}else void 0!==a.translation&&s.position.fromArray(a.translation),void 0!==a.rotation&&s.quaternion.fromArray(a.rotation),void 0!==a.scale&&s.scale.fromArray(a.scale);return r.associations.has(s)||r.associations.set(s,{}),r.associations.get(s).nodes=e,s})),this.nodeCache[e]}loadScene(e){const t=this.extensions,n=this.json.scenes[e],r=this,a=new i.ZAu;n.name&&(a.name=r.createUniqueName(n.name)),W(a,n),n.extensions&&j(t,a,n);const o=n.nodes||[],s=[];for(let i=0,l=o.length;i<l;i++)s.push(r.getDependency("node",o[i]));return Promise.all(s).then((function(e){for(let n=0,i=e.length;n<i;n++)a.add(e[n]);const t=e=>{const t=new Map;for(const[n,a]of r.associations)(n instanceof i.F5T||n instanceof i.xEZ)&&t.set(n,a);return e.traverse((e=>{const n=r.associations.get(e);null!=n&&t.set(e,n)})),t};return r.associations=t(a),a}))}_createAnimationTracks(e,t,n,r,a){const o=[],s=e.name?e.name:e.uuid,l=[];let c;switch(V[a.path]===V.weights?e.traverse((function(e){e.morphTargetInfluences&&l.push(e.name?e.name:e.uuid)})):l.push(s),V[a.path]){case V.weights:c=i.dUE;break;case V.rotation:c=i.iLg;break;case V.position:case V.scale:default:switch(n.itemSize){case 1:c=i.dUE;break;case 2:case 3:c=i.yC1;break}break}const u=void 0!==r.interpolation?U[r.interpolation]:i.NMF,h=this._getArrayFromAccessor(n);for(let i=0,d=l.length;i<d;i++){const e=new c(l[i]+"."+V[a.path],t.array,h,u);"CUBICSPLINE"===u&&this._createCubicSplineTrackInterpolant(e),o.push(e)}return o}_getArrayFromAccessor(e){let t=e.array;if(e.normalized){const e=K(t.constructor),n=new Float32Array(t.length);for(let i=0,r=t.length;i<r;i++)n[i]=t[i]*e;t=n}return t}_createCubicSplineTrackInterpolant(e){e.createInterpolant=function(e){const t=this instanceof i.iLg?O:I;return new t(this.times,this.values,this.getValueSize()/3,e)},e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0}}function ee(e,t,n){const r=t.attributes,a=new i.ZzF;if(void 0===r.POSITION)return;{const e=n.json.accessors[r.POSITION],t=e.min,o=e.max;if(void 0===t||void 0===o)return void console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");if(a.set(new i.Pa4(t[0],t[1],t[2]),new i.Pa4(o[0],o[1],o[2])),e.normalized){const t=K(R[e.componentType]);a.min.multiplyScalar(t),a.max.multiplyScalar(t)}}const o=t.targets;if(void 0!==o){const e=new i.Pa4,t=new i.Pa4;for(let i=0,r=o.length;i<r;i++){const r=o[i];if(void 0!==r.POSITION){const i=n.json.accessors[r.POSITION],a=i.min,o=i.max;if(void 0!==a&&void 0!==o){if(t.setX(Math.max(Math.abs(a[0]),Math.abs(o[0]))),t.setY(Math.max(Math.abs(a[1]),Math.abs(o[1]))),t.setZ(Math.max(Math.abs(a[2]),Math.abs(o[2]))),i.normalized){const e=K(R[i.componentType]);t.multiplyScalar(e)}e.max(t)}else console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}a.expandByVector(e)}e.boundingBox=a;const s=new i.aLr;a.getCenter(s.center),s.radius=a.min.distanceTo(a.max)/2,e.boundingSphere=s}function te(e,t,n){const i=t.attributes,r=[];function a(t,i){return n.getDependency("accessor",t).then((function(t){e.setAttribute(i,t)}))}for(const o in i){const t=z[o]||o.toLowerCase();t in e.attributes||r.push(a(i[o],t))}if(void 0!==t.indices&&!e.index){const i=n.getDependency("accessor",t.indices).then((function(t){e.setIndex(t)}));r.push(i)}return W(e,t),ee(e,t,n),Promise.all(r).then((function(){return void 0!==t.targets?G(e,t.targets,n):e}))}},73293:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"__npminstall_done":true,"_from":"axios@0.21.4","_resolved":"https://registry.npmmirror.com/axios/-/axios-0.21.4.tgz"}')}}]);
|