chunk-5b685476.b75a5e67.js 2.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*!
  2. * build: vue-admin-better
  3. * vue-admin-beautiful.com
  4. * https://gitee.com/chu1204505056/vue-admin-better
  5. * time: 2022-9-30 17:05:29
  6. */
  7. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5b685476"],{"00fd":function(e,t,n){var r=n("9e69"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function l(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}e.exports=l},"04f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=32,i=7;function o(e){var t=0;while(e>=r)t|=1&e,e>>=1;return e+t}function a(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){while(i<n&&r(e[i],e[i-1])<0)i++;s(e,t,i)}else while(i<n&&r(e[i],e[i-1])>=0)i++;return i-t}function s(e,t,n){n--;while(t<n){var r=e[t];e[t++]=e[n],e[n--]=r}}function l(e,t,n,r,i){for(r===t&&r++;r<n;r++){var o,a=e[r],s=t,l=r;while(s<l)o=s+l>>>1,i(a,e[o])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(u>0)e[s+u]=e[s+u-1],u--}e[s]=a}}function u(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){s=r-i;while(l<s&&o(e,t[n+i+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(l<s&&o(e,t[n+i-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}a++;while(a<l){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function c(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){s=i+1;while(l<s&&o(e,t[n+i-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{s=r-i;while(l<s&&o(e,t[n+i+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a<l){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function d(e,t){var n,r,o=i,a=0,s=0;a=e.length;var l=[];function d(e,t){n[s]=e,r[s]=t,s+=1}function f(){while(s>1){var e=s-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;p(e)}}function h(){while(s>1){var e=s-2;e>0&&r[e-1]<r[e+1]&&e--,p(e)}}function p(i){var o=n[i],a=r[i],l=n[i+1],d=r[i+1];r[i]=a+d,i===s-3&&(n[i+1]=n[i+2],r[i+1]=r[i+2]),s--;var f=c(e[l],e,o,a,0,t);o+=f,a-=f,0!==a&&(d=u(e[o+a-1],e,l,d,d-1,t),0!==d&&(a<=d?g(o,a,l,d):v(o,a,l,d)))}function g(n,r,a,s){var d=0;for(d=0;d<r;d++)l[d]=e[n+d];var f=0,h=a,p=n;if(e[p++]=e[h++],0!==--s)if(1!==r){var g,v,y,m=o;while(1){g=0,v=0,y=!1;do{if(t(e[h],l[f])<0){if(e[p++]=e[h++],v++,g=0,0===--s){y=!0;break}}else if(e[p++]=l[f++],g++,v=0,1===--r){y=!0;break}}while((g|v)<m);if(y)break;do{if(g=c(e[h],l,f,r,0,t),0!==g){for(d=0;d<g;d++)e[p+d]=l[f+d];if(p+=g,f+=g,r-=g,r<=1){y=!0;break}}if(e[p++]=e[h++],0===--s){y=!0;break}if(v=u(l[f],e,h,s,0,t),0!==v){for(d=0;d<v;d++)e[p+d]=e[h+d];if(p+=v,h+=v,s-=v,0===s){y=!0;break}}if(e[p++]=l[f++],1===--r){y=!0;break}m--}while(g>=i||v>=i);if(y)break;m<0&&(m=0),m+=2}if(o=m,o<1&&(o=1),1===r){for(d=0;d<s;d++)e[p+d]=e[h+d];e[p+s]=l[f]}else{if(0===r)throw new Error;for(d=0;d<r;d++)e[p+d]=l[f+d]}}else{for(d=0;d<s;d++)e[p+d]=e[h+d];e[p+s]=l[f]}else for(d=0;d<r;d++)e[p+d]=l[f+d]}function v(n,r,a,s){var d=0;for(d=0;d<s;d++)l[d]=e[a+d];var f=n+r-1,h=s-1,p=a+s-1,g=0,v=0;if(e[p--]=e[f--],0!==--r)if(1!==s){var y=o;while(1){var m=0,b=0,x=!1;do{if(t(l[h],e[f])<0){if(e[p--]=e[f--],m++,b=0,0===--r){x=!0;break}}else if(e[p--]=l[h--],b++,m=0,1===--s){x=!0;break}}while((m|b)<y);if(x)break;do{if(m=r-c(l[h],e,n,r,r-1,t),0!==m){for(p-=m,f-=m,r-=m,v=p+1,g=f+1,d=m-1;d>=0;d--)e[v+d]=e[g+d];if(0===r){x=!0;break}}if(e[p--]=l[h--],1===--s){x=!0;break}if(b=s-u(e[f],l,0,s,s-1,t),0!==b){for(p-=b,h-=b,s-=b,v=p+1,g=h+1,d=0;d<b;d++)e[v+d]=l[g+d];if(s<=1){x=!0;break}}if(e[p--]=e[f--],0===--r){x=!0;break}y--}while(m>=i||b>=i);if(x)break;y<0&&(y=0),y+=2}if(o=y,o<1&&(o=1),1===s){for(p-=r,f-=r,v=p+1,g=f+1,d=r-1;d>=0;d--)e[v+d]=e[g+d];e[p]=l[h]}else{if(0===s)throw new Error;for(g=p-(s-1),d=0;d<s;d++)e[g+d]=l[d]}}else{for(p-=r,f-=r,v=p+1,g=f+1,d=r-1;d>=0;d--)e[v+d]=e[g+d];e[p]=l[h]}else for(g=p-(s-1),d=0;d<s;d++)e[g+d]=l[d]}return a<120?5:a<1542?10:a<119151?19:40,n=[],r=[],{mergeRuns:f,forceMergeRuns:h,pushRun:d}}function f(e,t,n,i){n||(n=0),i||(i=e.length);var s=i-n;if(!(s<2)){var u=0;if(s<r)return u=a(e,n,i,t),void l(e,n,i,n+u,t);var c=d(e,t),f=o(s);do{if(u=a(e,n,i,t),u<f){var h=s;h>f&&(h=f),l(e,n,n+h,n+u,t),u=h}c.pushRun(n,u),c.mergeRuns(),s-=u,n+=u}while(0!==s);c.forceMergeRuns()}}},"04f7":function(e,t,n){"use strict";n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return m}));var r=n("07fd"),i=n("e0d3"),o=n("6d8b"),a=n("2b17"),s=n("b7d9"),l=n("edae"),u=n("ec6f"),c=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Object(s["d"])(e,t)},e}();function d(e,t){var n=new c,i=e.data,s=n.sourceFormat=e.sourceFormat,u=e.startIndex,d="";e.seriesLayoutBy!==r["a"]&&Object(l["c"])(d);var v=[],y={},m=e.dimensionsDefine;if(m)Object(o["k"])(m,(function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(v.push(r),null!=n){var i="";Object(o["q"])(y,n)&&Object(l["c"])(i),y[n]=r}}));else for(var b=0;b<e.dimensionsDetectedCount;b++)v.push({index:b});var x=Object(a["c"])(s,r["a"]);t.__isBuiltIn&&(n.getRawDataItem=function(e){return x(i,u,v,e)},n.getRawData=Object(o["c"])(f,null,e)),n.cloneRawData=Object(o["c"])(h,null,e);var _=Object(a["b"])(s,r["a"]);n.count=Object(o["c"])(_,null,i,u,v);var w=Object(a["d"])(s);n.retrieveValue=function(e,t){var n=x(i,u,v,e);return S(n,t)};var S=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=v[t];return n?w(e,t,n.name):void 0}};return n.getDimensionInfo=Object(o["c"])(p,null,v,y),n.cloneAllDimensionInfo=Object(o["c"])(g,null,v),n}function f(e){var t=e.sourceFormat;if(!x(t)){var n="";0,Object(l["c"])(n)}return e.data}function h(e){var t=e.sourceFormat,n=e.data;if(!x(t)){var i="";0,Object(l["c"])(i)}if(t===r["c"]){for(var a=[],s=0,u=n.length;s<u;s++)a.push(n[s].slice());return a}if(t===r["e"]){for(a=[],s=0,u=n.length;s<u;s++)a.push(Object(o["m"])({},n[s]));return a}}function p(e,t,n){if(null!=n)return Object(o["z"])(n)||!isNaN(n)&&!Object(o["q"])(t,n)?e[n]:Object(o["q"])(t,n)?t[n]:void 0}function g(e){return Object(o["d"])(e)}var v=Object(o["f"])();function y(e){e=Object(o["d"])(e);var t=e.type,n="";t||Object(l["c"])(n);var r=t.split(":");2!==r.length&&Object(l["c"])(n);var i=!1;"echarts"===r[0]&&(t=r[1],i=!0),e.__isBuiltIn=i,v.set(t,e)}function m(e,t,n){var r=Object(i["r"])(e),o=r.length,a="";o||Object(l["c"])(a);for(var s=0,u=o;s<u;s++){var c=r[s];t=b(c,t,n,1===o?null:s),s!==u-1&&(t.length=Math.max(t.length,1))}return t}function b(e,t,n,a){var s="";t.length||Object(l["c"])(s),Object(o["A"])(e)||Object(l["c"])(s);var c=e.type,f=v.get(c);f||Object(l["c"])(s);var h=Object(o["H"])(t,(function(e){return d(e,f)})),p=Object(i["r"])(f.transform({upstream:h[0],upstreamList:h,config:Object(o["d"])(e.config)}));return Object(o["H"])(p,(function(e,n){var i="";Object(o["A"])(e)||Object(l["c"])(i),e.data||Object(l["c"])(i);var a,s=Object(u["d"])(e.data);x(s)||Object(l["c"])(i);var c=t[0];if(c&&0===n&&!e.dimensions){var d=c.startIndex;d&&(e.data=c.data.slice(0,d).concat(e.data)),a={seriesLayoutBy:r["a"],sourceHeader:d,dimensions:c.metaRawOption.dimensions}}else a={seriesLayoutBy:r["a"],sourceHeader:0,dimensions:e.dimensions};return Object(u["b"])(e.data,a,null)}))}function x(e){return e===r["c"]||e===r["e"]}},"06ad":function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r={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,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},elasticOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-r.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*r.bounceIn(2*e):.5*r.bounceOut(2*e-1)+.5}},i=r,o=n("6d8b"),a=n("b362"),s=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||o["L"],this.ondestroy=e.ondestroy||o["L"],this.onrestart=e.onrestart||o["L"],e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Object(o["w"])(e)?e:i[e]||Object(a["a"])(e)},e}(),l=s,u=n("41ef"),c=n("7a29"),d=Array.prototype.slice;function f(e,t,n){return(t-e)*n+e}function h(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=f(t[o],n[o],r);return e}function p(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=f(t[a][s],n[a][s],r)}return e}function g(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function v(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function y(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function m(e,t,n){var r=e,i=t;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(1===n?i[l]:d.call(i[l]))}var u=r[0]&&r[0].length;for(l=0;l<r.length;l++)if(1===n)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function b(e){if(Object(o["u"])(e)){var t=e.length;if(Object(o["u"])(e[0])){for(var n=[],r=0;r<t;r++)n.push(d.call(e[r]));return n}return d.call(e)}return e}function x(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function _(e){return Object(o["u"])(e&&e[0])?2:1}var w=0,S=1,k=2,O=3,T=4,E=5,C=6;function A(e){return e===T||e===E}function M(e){return e===S||e===k}var L=[0,0,0,0],I=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,s=r.length,l=!1,d=C,f=t;if(Object(o["u"])(t)){var h=_(t);d=h,(1===h&&!Object(o["z"])(t[0])||2===h&&!Object(o["z"])(t[0][0]))&&(l=!0)}else if(Object(o["z"])(t)&&!Object(o["l"])(t))d=w;else if(Object(o["C"])(t))if(isNaN(+t)){var p=u["g"](t);p&&(f=p,d=O)}else d=w;else if(Object(o["x"])(t)){var g=Object(o["m"])({},f);g.colorStops=Object(o["H"])(t.colorStops,(function(e){return{offset:e.offset,color:u["g"](e.color)}})),Object(c["m"])(t)?d=T:Object(c["o"])(t)&&(d=E),f=g}0===s?this.valType=d:d===this.valType&&d!==C||(l=!0),this.discrete=this.discrete||l;var v={time:e,value:f,rawValue:t,percent:0};return n&&(v.easing=n,v.easingFunc=Object(o["w"])(n)?n:i[n]||Object(a["a"])(n)),r.push(v),v},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=M(r),l=A(r),u=0;u<i;u++){var c=n[u],d=c.value,f=o.value;c.percent=c.time/e,a||(s&&u!==i-1?m(d,f,r):l&&y(d.colorStops,f.colorStops))}if(!a&&r!==E&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var h=n[0].value;for(u=0;u<i;u++)r===w?n[u].additiveValue=n[u].value-h:r===O?n[u].additiveValue=g([],n[u].value,h,-1):M(r)&&(n[u].additiveValue=r===S?g([],n[u].value,h,-1):v([],n[u].value,h,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,c=u.length,d=this.propName,g=l===O,v=this._lastFr,y=Math.min;if(1===c)r=i=u[0];else{if(t<0)n=0;else if(t<this._lastFrP){var m=y(v+1,c-1);for(n=m;n>=0;n--)if(u[n].percent<=t)break;n=y(n,c-2)}else{for(n=v;n<c;n++)if(u[n].percent>t)break;n=y(n-1,c-2)}i=u[n+1],r=u[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var b=i.percent-r.percent,_=0===b?1:y((t-r.percent)/b,1);i.easingFunc&&(_=i.easingFunc(_));var w=a?this._additiveValue:g?L:e[d];if(!M(l)&&!g||w||(w=this._additiveValue=[]),this.discrete)e[d]=_<1?r.rawValue:i.rawValue;else if(M(l))l===S?h(w,r[s],i[s],_):p(w,r[s],i[s],_);else if(A(l)){var k=r[s],E=i[s],C=l===T;e[d]={type:C?"linear":"radial",x:f(k.x,E.x,_),y:f(k.y,E.y,_),colorStops:Object(o["H"])(k.colorStops,(function(e,t){var n=E.colorStops[t];return{offset:f(e.offset,n.offset,_),color:x(h([],e.color,n.color,_))}})),global:E.global},C?(e[d].x2=f(k.x2,E.x2,_),e[d].y2=f(k.y2,E.y2,_)):e[d].r=f(k.r,E.r,_)}else if(g)h(w,r[s],i[s],_),a||(e[d]=x(w));else{var I=f(r[s],i[s],_);a?this._additiveValue=I:e[d]=I}a&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===w?e[n]=e[n]+r:t===O?(u["g"](e[n],L),g(L,L,r,1),e[n]=x(L)):t===S?g(e[n],e[n],r,1):t===k&&v(e[n],e[n],r,1)},e}(),D=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?Object(o["G"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Object(o["F"])(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new I(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,d=c[c.length-1];l=d&&d.value,u.valType===O&&l&&(l=x(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,b(l),r),this._trackKeys.push(a)}s.addKeyframe(e,b(t[a]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),u=a.keyframes,c=u.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var d=u[c-1];d&&(t._target[a.propName]=d.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var f=new l({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(t._target,e);var a=t._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),e&&f.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return Object(o["H"])(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(e[i]=b(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||Object(o["F"])(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var s=a.pop();i.addKeyframe(s.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();t["b"]=D},"07fd":function(e,t,n){"use strict";n.d(t,"i",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return f}));var r=n("6d8b"),i=Object(r["f"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),o="original",a="arrayRows",s="objectRows",l="keyedColumns",u="typedArray",c="unknown",d="column",f="row"},"0924":function(e,t,n){"use strict";function r(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function i(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function o(e,t,n,r){switch(n){case"color":var i=e.ensureUniqueItemVisual(t,"style");i[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break;default:0}}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}))},"0da8":function(e,t,n){"use strict";var r=n("9ab4"),i=n("19eb"),o=n("9850"),a=n("6d8b"),s=Object(a["i"])({x:0,y:0},i["b"]),l={style:Object(a["i"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i["a"].style)};function u(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["a"])(t,e),t.prototype.createStyle=function(e){return Object(a["g"])(s,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r=u(t.image)?t.image:this.__image;if(!r)return 0;var i="width"===e?"height":"width",o=t[i];return null==o?r[e]:r[e]/r[i]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return l},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new o["a"](e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(i["c"]);c.prototype.type="image",t["a"]=c},"0f99":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"b",(function(){return h}));var r=n("e0d3"),i=n("6d8b"),o=n("07fd"),a={Must:1,Might:2,Not:3},s=Object(r["o"])();function l(e){s(e).datasetMap=Object(i["f"])()}function u(e,t,n){var r={},o=d(t);if(!o||!e)return r;var a,l,u=[],c=[],f=t.ecModel,h=s(f).datasetMap,p=o.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(i["k"])(e,(function(t,n){var o=Object(i["A"])(t)?t:e[n]={name:t};"ordinal"===o.type&&null==a&&(a=n,l=y(o)),r[o.name]=[]}));var g=h.get(p)||h.set(p,{categoryWayDim:l,valueWayDim:0});function v(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function y(e){var t=e.dimsDef;return t?t.length:1}return Object(i["k"])(e,(function(e,t){var n=e.name,i=y(e);if(null==a){var o=g.valueWayDim;v(r[n],o,i),v(c,o,i),g.valueWayDim+=i}else if(a===t)v(r[n],0,i),v(u,0,i);else{o=g.categoryWayDim;v(r[n],o,i),v(c,o,i),g.categoryWayDim+=i}})),u.length&&(r.itemName=u),c.length&&(r.seriesName=c),r}function c(e,t,n){var r={},s=d(e);if(!s)return r;var l,u=t.sourceFormat,c=t.dimensionsDefine;u!==o["e"]&&u!==o["d"]||Object(i["k"])(c,(function(e,t){"name"===(Object(i["A"])(e)?e.name:e)&&(l=t)}));var f=function(){for(var e={},r={},i=[],o=0,s=Math.min(5,n);o<s;o++){var d=p(t.data,u,t.seriesLayoutBy,c,t.startIndex,o);i.push(d);var f=d===a.Not;if(f&&null==e.v&&o!==l&&(e.v=o),(null==e.n||e.n===e.v||!f&&i[e.n]===a.Not)&&(e.n=o),h(e)&&i[e.n]!==a.Not)return e;f||(d===a.Might&&null==r.v&&o!==l&&(r.v=o),null!=r.n&&r.n!==r.v||(r.n=o))}function h(e){return null!=e.v&&null!=e.n}return h(e)?e:h(r)?r:null}();if(f){r.value=[f.v];var h=null!=l?l:f.n;r.itemName=[h],r.seriesName=[h]}return r}function d(e){var t=e.get("data",!0);if(!t)return Object(r["v"])(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},r["b"]).models[0]}function f(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?Object(r["v"])(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},r["b"]).models:[]}function h(e,t){return p(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function p(e,t,n,s,l,u){var c,d,f,h=5;if(Object(i["E"])(e))return a.Not;if(s){var p=s[u];Object(i["A"])(p)?(d=p.name,f=p.type):Object(i["C"])(p)&&(d=p)}if(null!=f)return"ordinal"===f?a.Must:a.Not;if(t===o["c"]){var g=e;if(n===o["b"]){for(var v=g[u],y=0;y<(v||[]).length&&y<h;y++)if(null!=(c=k(v[l+y])))return c}else for(y=0;y<g.length&&y<h;y++){var m=g[l+y];if(m&&null!=(c=k(m[u])))return c}}else if(t===o["e"]){var b=e;if(!d)return a.Not;for(y=0;y<b.length&&y<h;y++){var x=b[y];if(x&&null!=(c=k(x[d])))return c}}else if(t===o["d"]){var _=e;if(!d)return a.Not;v=_[d];if(!v||Object(i["E"])(v))return a.Not;for(y=0;y<v.length&&y<h;y++)if(null!=(c=k(v[y])))return c}else if(t===o["f"]){var w=e;for(y=0;y<w.length&&y<h;y++){x=w[y];var S=Object(r["h"])(x);if(!Object(i["t"])(S))return a.Not;if(null!=(c=k(S[u])))return c}}function k(e){var t=Object(i["C"])(e);return null!=e&&isFinite(e)&&""!==e?t?a.Might:a.Not:t&&"-"!==e?a.Must:void 0}return a.Not}},1310:function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},1687:function(e,t,n){"use strict";function r(){return[1,0,0,1,0,0]}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function a(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function s(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 l(e,t,n){var r=t[0],i=t[2],o=t[4],a=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=r*c+a*u,e[1]=-r*u+a*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*o+u*l,e[5]=c*l-u*o,e}function u(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function c(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}function d(e){var t=r();return o(t,e),t}n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return d}))},"19eb":function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n("9ab4"),i=n("d5b7"),o=n("9850"),a=n("6d8b"),s=n("4bc4"),l="__zr_style_"+Math.round(10*Math.random()),u={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},c={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};u[l]=!0;var d=["z","z2","invisible"],f=["invisible"],h=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype._init=function(t){for(var n=Object(a["F"])(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&v(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent){var a=this.parent;while(a){if(a.ignore)return!1;a=a.parent}}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return r.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,s=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new o["a"](0,0,0,0)),t?o["a"].applyTransform(e,n,t):e.copy(n),(i||a||s)&&(e.width+=2*i+Math.abs(a),e.height+=2*i+Math.abs(s),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+s-i));var l=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-l),e.y=Math.floor(e.y-l),e.width=Math.ceil(e.width+1+2*l),e.height=Math.ceil(e.height+1+2*l))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new o["a"](0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"===typeof e?this.style[e]=t:Object(a["m"])(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=s["c"],this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&s["c"])},t.prototype.styleUpdated=function(){this.__dirty&=~s["c"]},t.prototype.createStyle=function(e){return Object(a["g"])(u,e)},t.prototype.useStyle=function(e){e[l]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[l]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,d)},t.prototype._applyStateObj=function(t,n,r,i,o,s){e.prototype._applyStateObj.call(this,t,n,r,i,o,s);var l,u=!(n&&i);if(n&&n.style?o?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):u&&(l=r.style),l)if(o){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var h=Object(a["F"])(c),p=0;p<h.length;p++){var g=h[p];g in l&&(l[g]=l[g],this.style[g]=c[g])}var v=Object(a["F"])(l);for(p=0;p<v.length;p++){g=v[p];this.style[g]=this.style[g]}this._transitionState(t,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);var y=this.__inHover?f:d;for(p=0;p<y.length;p++){g=y[p];n&&null!=n[g]?this[g]=n[g]:u&&null!=r[g]&&(this[g]=r[g])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return Object(a["m"])(e,t),e},t.prototype.getAnimationStyleProps=function(){return c},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=s["a"]|s["c"]}(),t}(i["a"]),p=new o["a"](0,0,0,0),g=new o["a"](0,0,0,0);function v(e,t,n){return p.copy(e.getBoundingRect()),e.transform&&p.applyTransform(e.transform),g.width=t,g.height=n,!p.intersect(g)}t["c"]=h},"1a8c":function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},"1be7":function(e,t,n){"use strict";n.d(t,"a",(function(){return Kt})),n.d(t,"b",(function(){return Hn})),n.d(t,"j",(function(){return qn})),n.d(t,"k",(function(){return Wn})),n.d(t,"h",(function(){return Yn})),n.d(t,"i",(function(){return Kn})),n.d(t,"m",(function(){return Xn})),n.d(t,"c",(function(){return Zn})),n.d(t,"d",(function(){return $n})),n.d(t,"e",(function(){return Jn})),n.d(t,"n",(function(){return Qn})),n.d(t,"f",(function(){return nr})),n.d(t,"g",(function(){return rr})),n.d(t,"l",(function(){return ir}));var r=n("9ab4"),i=n("697e"),o=n("6d8b"),a=n("22d1"),s=n("04f6"),l=n("6fd3"),u=n("e0d3"),c=n("4319"),d=n("6cb7"),f="";"undefined"!==typeof navigator&&(f=navigator.platform||"");var h,p,g,v="rgba(0, 0, 0, 0.2)",y={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:v,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:v,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:v,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:v,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:v,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:v,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:f.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},m=n("0f99"),b=n("2f1f"),x=n("4041"),_=n("edae"),w="\0_ec_inner",S=1;var k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["a"])(t,e),t.prototype.init=function(e,t,n,r,i,o){r=r||{},this.option=null,this._theme=new c["a"](r),this._locale=new c["a"](i),this._optionManager=o},t.prototype.setOption=function(e,t,n){var r=A(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,A(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):g(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var s=r.getMediaOption(this);s.length&&Object(o["k"])(s,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],s=Object(o["f"])(),l=t&&t.replaceMergeMainTypeMap;function c(t){var a=Object(b["a"])(this,t,u["r"](e[t])),s=r.get(t),c=s?l&&l.get(t)?"replaceMerge":"normalMerge":"replaceAll",f=u["q"](s,a,c);u["x"](f,t,d["a"]),n[t]=null,r.set(t,null),i.set(t,0);var p,g=[],v=[],y=0;Object(o["k"])(f,(function(e,n){var r=e.existing,i=e.newOption;if(i){var a="series"===t,s=d["a"].getClass(t,e.keyInfo.subType,!a);if(!s)return;if("tooltip"===t){if(p)return void 0;p=!0}if(r&&r.constructor===s)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var l=Object(o["m"])({componentIndex:n},e.keyInfo);r=new s(i,this,this,l),Object(o["m"])(r,l),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(g.push(r.option),v.push(r),y++):(g.push(void 0),v.push(void 0))}),this),n[t]=g,r.set(t,v),i.set(t,y),"series"===t&&h(this)}Object(m["g"])(this),Object(o["k"])(e,(function(e,t){null!=e&&(d["a"].hasClass(t)?t&&(a.push(t),s.set(t,!0)):n[t]=null==n[t]?Object(o["d"])(e):Object(o["I"])(n[t],e,!0))})),l&&l.each((function(e,t){d["a"].hasClass(t)&&!s.get(t)&&(a.push(t),s.set(t,!0))})),d["a"].topologicalTravel(a,d["a"].getAllClassMainTypes(),c,this),this._seriesIndices||h(this)},t.prototype.getOption=function(){var e=Object(o["d"])(this.option);return Object(o["k"])(e,(function(t,n){if(d["a"].hasClass(n)){for(var r=u["r"](t),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!u["l"](r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,e[n]=r}})),delete e[w],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,a=e.name,s=this._componentsMap.get(t);return s&&s.length?(null!=r?(n=[],Object(o["k"])(u["r"](r),(function(e){s[e]&&n.push(s[e])}))):n=null!=i?E("id",i,s):null!=a?E("name",a,s):Object(o["n"])(s,(function(e){return!!e})),C(n,e)):[]},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=a(t),i=r?this.queryComponents(r):Object(o["n"])(this._componentsMap.get(n),(function(e){return!!e}));return s(C(i,e));function a(e){var t=n+"Index",r=n+"Id",i=n+"Name";return!e||null==e[t]&&null==e[r]&&null==e[i]?null:{mainType:n,index:e[t],id:e[r],name:e[i]}}function s(t){return e.filter?Object(o["n"])(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(Object(o["w"])(e)){var i=t,a=e;r.each((function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}}))}else for(var s=Object(o["C"])(e)?r.get(e):Object(o["A"])(e)?this.findComponents(e):null,l=0;s&&l<s.length;l++){var u=s[l];u&&t.call(n,u,u.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=u["e"](e,null);return Object(o["n"])(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Object(o["n"])(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return Object(o["n"])(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){p(this),Object(o["k"])(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)}),this)},t.prototype.eachRawSeries=function(e,t){Object(o["k"])(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){p(this),Object(o["k"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return Object(o["k"])(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return p(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){p(this);var n=[];Object(o["k"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(o["f"])(n)},t.prototype.restoreData=function(e){h(this);var t=this._componentsMap,n=[];t.each((function(e,t){d["a"].hasClass(t)&&n.push(t)})),d["a"].topologicalTravel(n,d["a"].getAllClassMainTypes(),(function(n){Object(o["k"])(t.get(n),(function(t){!t||"series"===n&&O(t,e)||t.restoreData()}))}))},t.internalField=function(){h=function(e){var t=e._seriesIndices=[];Object(o["k"])(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=Object(o["f"])(t)},p=function(e){0},g=function(e,t){e.option={},e.option[w]=S,e._componentsMap=Object(o["f"])({series:[]}),e._componentsCount=Object(o["f"])();var n=t.aria;Object(o["A"])(n)&&null==n.enabled&&(n.enabled=!0),T(t,e._theme.option),Object(o["I"])(t,y,!1),e._mergeOption(t,null)}}(),t}(c["a"]);function O(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}function T(e,t){var n=e.color&&!e.colorLayer;Object(o["k"])(t,(function(t,r){"colorLayer"===r&&n||d["a"].hasClass(r)||("object"===typeof t?e[r]=e[r]?Object(o["I"])(e[r],t,!1):Object(o["d"])(t):null==e[r]&&(e[r]=t))}))}function E(e,t,n){if(Object(o["t"])(t)){var r=Object(o["f"])();return Object(o["k"])(t,(function(e){if(null!=e){var t=u["e"](e,null);null!=t&&r.set(e,!0)}})),Object(o["n"])(n,(function(t){return t&&r.get(t[e])}))}var i=u["e"](t,null);return Object(o["n"])(n,(function(t){return t&&null!=i&&t[e]===i}))}function C(e,t){return t.hasOwnProperty("subType")?Object(o["n"])(e,(function(e){return e&&e.subType===t.subType})):e}function A(e){var t=Object(o["f"])();return e&&Object(o["k"])(u["r"](e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}Object(o["K"])(k,x["a"]);var M=k,L=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],I=function(){function e(e){o["k"](L,(function(t){this[t]=o["c"](e[t],e)}),this)}return e}(),D=I,j=n("1f39"),P=/^(min|max)?(.+)$/,R=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(Object(o["k"])(Object(u["r"])(e.series),(function(e){e&&e.data&&Object(o["E"])(e.data)&&Object(o["R"])(e.data)})),Object(o["k"])(Object(u["r"])(e.dataset),(function(e){e&&e.source&&Object(o["E"])(e.source)&&Object(o["R"])(e.source)}))),e=Object(o["d"])(e);var r=this._optionBackup,i=N(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Object(o["d"])(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=Object(o["d"])(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],s=[];if(!r.length&&!i)return s;for(var l=0,u=r.length;l<u;l++)B(r[l].query,t,n)&&a.push(l);return!a.length&&i&&(a=[-1]),a.length&&!z(a,this._currentMediaIndices)&&(s=Object(o["H"])(a,(function(e){return Object(o["d"])(-1===e?i.option:r[e].option)}))),this._currentMediaIndices=a,s},e}();function N(e,t,n){var r,i,a=[],s=e.baseOption,l=e.timeline,u=e.options,c=e.media,d=!!e.media,f=!!(u||l||s&&s.timeline);function h(e){Object(o["k"])(t,(function(t){t(e,n)}))}return s?(i=s,i.timeline||(i.timeline=l)):((f||d)&&(e.options=e.media=null),i=e),d&&Object(o["t"])(c)&&Object(o["k"])(c,(function(e){e&&e.option&&(e.query?a.push(e):r||(r=e))})),h(i),Object(o["k"])(u,(function(e){return h(e)})),Object(o["k"])(a,(function(e){return h(e.option)})),{baseOption:i,timelineOptions:u||[],mediaDefault:r,mediaList:a}}function B(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return Object(o["k"])(e,(function(e,t){var n=t.match(P);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();F(r[a],e,o)||(i=!1)}})),i}function F(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t}function z(e,t){return e.join(",")===t.join(",")}var U=R,H=o["k"],V=o["A"],G=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function q(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=G.length;n<r;n++){var i=G[n],a=t.normal,s=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?o["I"](e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),s&&s[i]&&(e[i]=e[i]||{},e[i].emphasis?o["I"](e[i].emphasis,s[i]):e[i].emphasis=s[i],s[i]=null)}}function W(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,o["i"](e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Y(e){W(e,"itemStyle"),W(e,"lineStyle"),W(e,"areaStyle"),W(e,"label"),W(e,"labelLine"),W(e,"upperLabel"),W(e,"edgeLabel")}function K(e,t){var n=V(e)&&e[t],r=V(n)&&n.textStyle;if(r){0;for(var i=0,o=u["c"].length;i<o;i++){var a=u["c"][i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function X(e){e&&(Y(e),K(e,"label"),e.emphasis&&K(e.emphasis,"label"))}function Z(e){if(V(e)){q(e),Y(e),K(e,"label"),K(e,"upperLabel"),K(e,"edgeLabel"),e.emphasis&&(K(e.emphasis,"label"),K(e.emphasis,"upperLabel"),K(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(q(t),X(t));var n=e.markLine;n&&(q(n),X(n));var r=e.markArea;r&&X(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var a=e.links||e.edges;if(a&&!o["E"](a))for(var s=0;s<a.length;s++)X(a[s]);o["k"](e.categories,(function(e){Y(e)}))}if(i&&!o["E"](i))for(s=0;s<i.length;s++)X(i[s]);if(t=e.markPoint,t&&t.data){var l=t.data;for(s=0;s<l.length;s++)X(l[s])}if(n=e.markLine,n&&n.data){var u=n.data;for(s=0;s<u.length;s++)o["t"](u[s])?(X(u[s][0]),X(u[s][1])):X(u[s])}"gauge"===e.type?(K(e,"axisLabel"),K(e,"title"),K(e,"detail")):"treemap"===e.type?(W(e.breadcrumb,"itemStyle"),o["k"](e.levels,(function(e){Y(e)}))):"tree"===e.type&&Y(e.leaves)}}function $(e){return o["t"](e)?e:e?[e]:[]}function J(e){return(o["t"](e)?e[0]:e)||{}}function Q(e,t){H($(e.series),(function(e){V(e)&&Z(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),H(n,(function(t){H($(e[t]),(function(e){e&&(K(e,"axisLabel"),K(e.axisPointer,"label"))}))})),H($(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;K(t,"axisLabel"),K(t&&t.axisPointer,"label")})),H($(e.calendar),(function(e){W(e,"itemStyle"),K(e,"dayLabel"),K(e,"monthLabel"),K(e,"yearLabel")})),H($(e.radar),(function(e){K(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),H($(e.geo),(function(e){V(e)&&(X(e),H($(e.regions),(function(e){X(e)})))})),H($(e.timeline),(function(e){X(e),W(e,"label"),W(e,"itemStyle"),W(e,"controlStyle",!0);var t=e.data;o["t"](t)&&o["k"](t,(function(e){o["A"](e)&&(W(e,"label"),W(e,"itemStyle"))}))})),H($(e.toolbox),(function(e){W(e,"iconStyle"),H(e.feature,(function(e){W(e,"iconStyle")}))})),K(J(e.axisPointer),"label"),K(J(e.tooltip).axisPointer,"label")}function ee(e,t){for(var n=t.split(","),r=e,i=0;i<n.length;i++)if(r=r&&r[n[i]],null==r)break;return r}function te(e,t,n,r){for(var i,o=t.split(","),a=e,s=0;s<o.length-1;s++)i=o[s],null==a[i]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}function ne(e){e&&Object(o["k"])(re,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var re=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ie=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],oe=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ae(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<oe.length;n++){var r=oe[n][1],i=oe[n][0];null!=t[r]&&(t[i]=t[r])}}function se(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function le(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function ue(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}function ce(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&ce(e[n].children,t)}function de(e,t){Q(e,t),e.series=Object(u["r"])(e.series),Object(o["k"])(e.series,(function(e){if(Object(o["A"])(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){null!=e.clockWise&&(e.clockwise=e.clockWise),se(e.label);var n=e.data;if(n&&!Object(o["E"])(n))for(var r=0;r<n.length;r++)se(n[r]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var i=ee(e,"pointer.color");null!=i&&te(e,"itemStyle.color",i)}else if("bar"===t){ae(e),ae(e.backgroundStyle),ae(e.emphasis);n=e.data;if(n&&!Object(o["E"])(n))for(r=0;r<n.length;r++)"object"===typeof n[r]&&(ae(n[r]),ae(n[r]&&n[r].emphasis))}else if("sunburst"===t){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),le(e),ce(e.data,le)}else"graph"===t||"sankey"===t?ue(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Object(o["i"])(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),ne(e)}})),e.dataRange&&(e.visualMap=e.dataRange),Object(o["k"])(ie,(function(t){var n=e[t];n&&(Object(o["t"])(n)||(n=[n]),Object(o["k"])(n,(function(e){ne(e)})))}))}var fe=n("3842");function he(e){var t=Object(o["f"])();e.eachSeries((function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),t.each(pe)}function pe(e){Object(o["k"])(e,(function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var d,f,h=a.get(t.stackedDimension,c);if(isNaN(h))return i;s?f=a.getRawIndex(c):d=a.get(t.stackedByDimension,c);for(var p=NaN,g=n-1;g>=0;g--){var v=e[g];if(s||(f=v.data.rawIndexOf(v.stackedByDimension,d)),f>=0){var y=v.data.getByRawIndex(v.stackResultDimension,f);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&h>=0&&y>0||"samesign"===l&&h<=0&&y<0){h=Object(fe["b"])(h,y),p=y;break}}}return r[0]=h,r[1]=p,r}))}))}var ge=n("4f85"),ve=n("b12f"),ye=n("e887"),me=n("c7a2"),be=n("0da8"),xe=n("deab"),_e=n("cbe5"),we=n("861c"),Se=n("7d6c"),ke=n("88b3"),Oe=n("282b"),Te=n("551f"),Ee=n("3901"),Ce=Object(u["o"])(),Ae={itemStyle:Object(Oe["a"])(Te["a"],!0),lineStyle:Object(Oe["a"])(Ee["a"],!0)},Me={lineStyle:"stroke",itemStyle:"fill"};function Le(e,t){var n=e.visualStyleMapper||Ae[t];return n||(console.warn("Unkown style type '"+t+"'."),Ae.itemStyle)}function Ie(e,t){var n=e.visualDrawType||Me[t];return n||(console.warn("Unkown style type '"+t+"'."),"fill")}var De={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),a=Le(e,r),s=a(i),l=i.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var u=Ie(e,r),c=s[u],d=Object(o["w"])(c)?c:null,f="auto"===s.fill||"auto"===s.stroke;if(!s[u]||d||f){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());s[u]||(s[u]=h,n.setVisual("colorFromPalette",!0)),s.fill="auto"===s.fill||Object(o["w"])(s.fill)?h:s.fill,s.stroke="auto"===s.stroke||Object(o["w"])(s.stroke)?h:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",u),!t.isSeriesFiltered(e)&&d)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=Object(o["m"])({},s);i[u]=d(r),t.setItemVisual(n,"style",i)}}}},je=new c["a"],Pe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=Le(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){je.option=n[r];var s=i(je),l=e.ensureUniqueItemVisual(t,"style");Object(o["m"])(l,s),je.option.decal&&(e.setItemVisual(t,"decal",je.option.decal),je.option.decal.dirty=!0),a in s&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Re={performRawSeries:!0,overallReset:function(e){var t=Object(o["f"])();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),Ce(e).scope=i}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),o=Ce(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=Ie(t,a);i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),n.each((function(e){var a=r[e],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",d=n.count();u[s]=t.getColorFromPalette(c,o,d)}}))}}))}},Ne=n("2dc5"),Be=n("76a5"),Fe=n("8d32"),ze=Math.PI;function Ue(e,t){t=t||{},o["i"](t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ne["a"],r=new me["a"]({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,a=new Be["a"]({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),s=new me["a"]({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(s),t.showSpinner&&(i=new Fe["a"]({shape:{startAngle:-ze/2,endAngle:-ze/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*ze/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*ze/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=a.getBoundingRect().width,o=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*o-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:o),u=e.getHeight()/2;t.showSpinner&&i.setShape({cx:l,cy:u}),s.setShape({x:l-o,y:u-o,width:2*o,height:2*o}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var He=n("9fbc"),Ve=n("8918"),Ge=function(){function e(e,t,n,r){this._stageTaskMap=Object(o["f"])(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData(),i=r.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,a=e.get("large")&&i>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Object(o["f"])();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Object(o["k"])(this._allHandlers,(function(r){var i=e.get(r.uid)||e.set(r.uid,{}),a="";Object(o["b"])(!(r.reset&&r.overallReset),a),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)}),this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,a=this;function s(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(o["k"])(e,(function(e,o){if(!r.visualType||r.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,f=c.agentStubMap;f.each((function(e){s(r,e)&&(e.dirty(),d=!0)})),d&&c.dirty(),a.updatePayload(c,n);var h=a.getPerformArgs(c,r.block);f.each((function(e){e.perform(h)})),c.perform(h)&&(i=!0)}else u&&u.each((function(o,l){s(r,o)&&o.dirty();var u=a.getPerformArgs(o,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(o.context.model),a.updatePayload(o,n),o.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.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)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,s=t.seriesTaskMap=Object(o["f"])(),l=e.seriesType,u=e.getTargetSeries;function c(t){var o=t.uid,l=s.set(o,a&&a.get(o)||Object(He["a"])({plan:Xe,reset:Ze,count:Qe}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,r).each(c)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||Object(He["a"])({reset:qe});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var s=a.agentStubMap,l=a.agentStubMap=Object(o["f"])(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=!1,h="";function p(e){var t=e.uid,n=l.set(t,s&&s.get(t)||(f=!0,Object(He["a"])({reset:We,onDirty:Ke})));n.context={model:e,overallProgress:d},n.agent=a,n.__block=d,i._pipe(e,n)}Object(o["b"])(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,r).each(p):(d=!1,Object(o["k"])(n.getSeries(),p)),f&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return Object(o["w"])(e)&&(e={overallReset:e,seriesType:et(e)}),e.uid=Object(Ve["c"])("stageHandler"),t&&(e.visualType=t),e},e}();function qe(e){e.overallReset(e.ecModel,e.api,e.payload)}function We(e){return e.overallProgress&&Ye}function Ye(){this.agent.dirty(),this.getDownstream().dirty()}function Ke(){this.agent&&this.agent.dirty()}function Xe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Ze(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Object(u["r"])(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(o["H"])(t,(function(e,t){return Je(t)})):$e}var $e=Je(0);function Je(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function Qe(e){return e.data.count()}function et(e){tt=null;try{e(nt,rt)}catch(t){}return tt}var tt,nt={},rt={};function it(e,t){for(var n in t.prototype)e[n]=o["L"]}it(nt,M),it(rt,D),nt.eachSeriesByType=nt.eachRawSeriesByType=function(e){tt=e},nt.eachComponent=function(e){"series"===e.mainType&&e.subType&&(tt=e.subType)};var ot=Ge,at=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],st={color:at,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],at]},lt="#B9B8CE",ut="#100C2A",ct=function(){return{axisLine:{lineStyle:{color:lt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},dt=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],ft={darkMode:!0,color:dt,backgroundColor:ut,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:lt}},textStyle:{color:lt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:lt}},dataZoom:{borderColor:"#71708A",textStyle:{color:lt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:lt}},timeline:{lineStyle:{color:lt},label:{color:lt},controlStyle:{color:lt,borderColor:lt}},calendar:{itemStyle:{color:ut},dayLabel:{color:lt},monthLabel:{color:lt},yearLabel:{color:lt}},timeAxis:ct(),logAxis:ct(),valueAxis:ct(),categoryAxis:ct(),line:{symbol:"circle"},graph:{color:dt},gauge:{title:{color:lt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:lt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};ft.categoryAxis.splitLine.show=!1;var ht=ft,pt=n("625e"),gt=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(o["C"](e)){var i=Object(pt["f"])(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o["k"](e,(function(e,i){for(var o=!1,l=0;l<a.length;l++){var u=a[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var d=i.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,o=!0)}}s.hasOwnProperty(i)&&(n[i]=e,o=!0),o||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),vt=["symbol","symbolSize","symbolRotate","symbolOffset"],yt=vt.concat(["symbolKeepAspect"]),mt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},a=!1,s=0;s<vt.length;s++){var l=vt[s],u=e.get(l);Object(o["w"])(u)?(a=!0,i[l]=u):r[l]=u}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Object(o["m"])({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var c=Object(o["F"])(i);return{dataEach:a?d:null}}}function d(t,n){for(var r=e.getRawValue(n),o=e.getDataParams(n),a=0;a<c.length;a++){var s=c[a];t.setItemVisual(n,s,i[s](r,o))}}}},bt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e)){var n=e.getData();return{dataEach:n.hasItemOption?r:null}}function r(e,t){for(var n=e.getItemModel(t),r=0;r<yt.length;r++){var i=yt[r],o=n.getShallow(i,!0);null!=o&&e.setItemVisual(t,i,o)}}}},xt=n("0924"),_t=n("f3bb"),wt=n("04f7"),St=n("ef59"),kt=n("fadd"),Ot=n("b3c1");function Tt(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(e){var n=r.getItemVisual(e,"decal");if(n){var i=r.ensureUniqueItemVisual(e,"style");i.decal=Object(Ot["a"])(n,t)}}));var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=Object(Ot["a"])(i,t)}}}))}var Et=new l["a"],Ct=Et,At=n("726e"),Mt=n("58c9"),Lt="undefined"!==typeof window,It=1,Dt=800,jt=900,Pt=1e3,Rt=2e3,Nt=5e3,Bt=1e3,Ft=1100,zt=2e3,Ut=3e3,Ht=4e3,Vt=4500,Gt=4600,qt=5e3,Wt=6e3,Yt=7e3,Kt={PROCESSOR:{FILTER:Pt,SERIES_FILTER:Dt,STATISTIC:Nt},VISUAL:{LAYOUT:Bt,PROGRESSIVE_LAYOUT:Ft,GLOBAL:zt,CHART:Ut,POST_CHART_LAYOUT:Gt,COMPONENT:Ht,BRUSH:qt,CHART_ITEM:Vt,ARIA:Wt,DECAL:Yt}},Xt="__flagInMainProcess",Zt="__pendingUpdate",$t="__needsUpdateStatus",Jt=/^[a-zA-Z0-9_]+$/,Qt="__connectUpdateStatus",en=0,tn=1,nn=2;function rn(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return an(this,e,t);Mn(this.id)}}function on(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return an(this,e,t)}}function an(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),l["a"].prototype[t].apply(e,n)}var sn,ln,un,cn,dn,fn,hn,pn,gn,vn,yn,mn,bn,xn,_n,wn,Sn,kn,On=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["a"])(t,e),t}(l["a"]),Tn=On.prototype;Tn.on=on("on"),Tn.off=on("off");var En=function(e){function t(t,n,r){var a=e.call(this,new gt)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],r=r||{},Object(o["C"])(n)&&(n=Rn[n]),a._dom=t;var l="canvas",u=!1,c=a._zr=i["a"](t,{renderer:r.renderer||l,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:null==r.useDirtyRect?u:r.useDirtyRect});a._ssr=r.ssr,a._throttledZrFlush=Object(ke["c"])(Object(o["c"])(c.flush,c),17),n=Object(o["d"])(n),n&&de(n,!0),a._theme=n,a._locale=Object(St["b"])(r.locale||St["a"]),a._coordSysMgr=new j["a"];var d=a._api=_n(a);function f(e,t){return e.__prio-t.__prio}return Object(s["a"])(Pn,f),Object(s["a"])(Dn,f),a._scheduler=new ot(a,d,Dn,Pn),a._messageCenter=new On,a._initEvents(),a.resize=Object(o["c"])(a.resize,a),c.animation.on("frame",a._onframe,a),vn(c,a),yn(c,a),Object(o["R"])(a),a}return Object(r["a"])(t,e),t.prototype._onframe=function(){if(!this._disposed){kn(this);var e=this._scheduler;if(this[Zt]){var t=this[Zt].silent;this[Xt]=!0;try{sn(this),cn.update.call(this,null,this[Zt].updateParams)}catch(a){throw this[Xt]=!1,this[Zt]=null,a}this._zr.flush(),this[Xt]=!1,this[Zt]=null,pn.call(this,t),gn.call(this,t)}else if(e.unfinished){var n=It,r=this._model,i=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),fn(this,r),e.performVisualTasks(r),xn(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[Xt])if(this._disposed)Mn(this.id);else{var r,i,a;if(Object(o["A"])(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[Xt]=!0,!this._model||t){var s=new U(this._api),l=this._theme,u=this._model=new M;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(e,{replaceMerge:i},jn);var c={seriesTransition:a,optionChanged:!0};if(n)this[Zt]={silent:r,updateParams:c},this[Xt]=!1,this.getZr().wakeUp();else{try{sn(this),cn.update.call(this,null,c)}catch(d){throw this[Zt]=null,this[Xt]=!1,d}this._ssr||this._zr.flush(),this[Zt]=null,this[Xt]=!1,pn.call(this,r),gn.call(this,r)}}},t.prototype.setTheme=function(){Object(_["a"])("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Lt&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(a["a"].svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Object(o["k"])(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,r=[],i=this;Object(o["k"])(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(o["k"])(r,(function(e){e.group.ignore=!1})),a}Mn(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,a=Math.max,s=1/0;if(Fn[n]){var l=s,u=s,c=-s,d=-s,f=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();Object(o["k"])(Bn,(function(i,s){if(i.group===n){var h=t?i.getZr().painter.getSvgDom().innerHTML:i.renderToCanvas(Object(o["d"])(e)),p=i.getDom().getBoundingClientRect();l=r(p.left,l),u=r(p.top,u),c=a(p.right,c),d=a(p.bottom,d),f.push({dom:h,left:p.left,top:p.top})}})),l*=h,u*=h,c*=h,d*=h;var p=c-l,g=d-u,v=At["d"].createCanvas(),y=i["a"](v,{renderer:t?"svg":"canvas"});if(y.resize({width:p,height:g}),t){var m="";return Object(o["k"])(f,(function(e){var t=e.left-l,n=e.top-u;m+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return e.connectedBackgroundColor&&y.add(new me["a"]({shape:{x:0,y:0,width:p,height:g},style:{fill:e.connectedBackgroundColor}})),Object(o["k"])(f,(function(e){var t=new be["a"]({style:{x:e.left*h-l,y:e.top*h-u,image:e.dom}});y.add(t)})),y.refreshImmediately(),v.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}Mn(this.id)},t.prototype.convertToPixel=function(e,t){return dn(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return dn(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,r=this._model,i=u["s"](r,e);return Object(o["k"])(i,(function(e,r){r.indexOf("Models")>=0&&Object(o["k"])(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}Mn(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,r=u["s"](n,e,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?Object(xt["a"])(o,a,t):Object(xt["b"])(o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Object(o["k"])(An,(function(t){var n=function(n){var r,i=e.getModel(),a=n.target,s="globalout"===t;if(s?r={}:a&&Object(kt["a"])(a,(function(e){var t=Object(we["a"])(e);if(t&&null!=t.dataIndex){var n=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return r=Object(o["m"])({},t.eventData),!0}),!0),r){var l=r.componentType,u=r.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",u=r.seriesIndex);var c=l&&null!=u&&i.getComponent(l,u),d=c&&e["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:a,packedEvent:r,model:c,view:d},e.trigger(t,r)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),Object(o["k"])(In,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),Object(o["k"])(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),Object(_t["b"])(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Mn(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Mn(this.id);else{this._disposed=!0;var e=this.getDom();e&&u["w"](this.getDom(),Un,"");var t=this,n=t._api,r=t._model;Object(o["k"])(t._componentsViews,(function(e){e.dispose(r,n)})),Object(o["k"])(t._chartsViews,(function(e){e.dispose(r,n)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Bn[t.id]}},t.prototype.resize=function(e){if(!this[Xt])if(this._disposed)Mn(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[Zt]&&(null==r&&(r=this[Zt].silent),n=!0,this[Zt]=null),this[Xt]=!0;try{n&&sn(this),cn.update.call(this,{type:"resize",animation:Object(o["m"])({duration:0},e&&e.animation)})}catch(i){throw this[Xt]=!1,i}this[Xt]=!1,pn.call(this,r),gn.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)Mn(this.id);else if(Object(o["A"])(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Nn[e]){var n=Nn[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?Mn(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(o["m"])({},e);return t.type=In[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)Mn(this.id);else if(Object(o["A"])(t)||(t={silent:!!t}),Ln[e.type]&&this._model)if(this[Xt])this._pendingActions.push(e);else{var n=t.silent;hn.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&a["a"].browser.weChat&&this._throttledZrFlush(),pn.call(this,n),gn.call(this,n)}},t.prototype.updateLabelLayout=function(){Ct.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Mn(this.id);else{var t=e.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(t);0,r.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){var t=[],n=[],r=!1;if(e.eachComponent((function(e,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:i.componentIndex,type:e,key:s})})),r){var i,a,l=t.concat(n);Object(s["a"])(l,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Object(o["k"])(l,(function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,o=t.key;null!=i&&(r=Math.max(i,r)),o?(r===i&&o!==a&&r++,a=o):a&&(r===i&&r++,a=""),i=r,n.setZLevel(r)}))}}function n(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),e.hoverState===Se["e"]&&e.states.emphasis?t.push("emphasis"):e.hoverState===Se["d"]&&e.states.blur&&t.push("blur"),e.useStates(t)}function i(e,t){var n=e._zr,r=n.storage,i=0;r.traverse((function(e){e.isGroup||i++})),i>t.get("hoverLayerThreshold")&&!a["a"].node&&!a["a"].worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function l(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function c(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,r=e.get("zlevel")||0;t.eachRendered((function(e){return d(e,n,r,-1/0),!0}))}}function d(e,t,n,r){var i=e.getTextContent(),o=e.getTextGuideLine(),a=e.isGroup;if(a)for(var s=e.childrenRef(),l=0;l<s.length;l++)r=Math.max(d(s[l],t,n,r),r);else e.z=t,e.zlevel=n,r=Math.max(e.z2,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),o){var u=e.textGuideLineConfig;o.z=t,o.zlevel=n,isFinite(r)&&(o.z2=r+(u&&u.showAbove?1:-1))}return r}function f(e,t){t.eachRendered((function(e){if(!xe["d"](e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function h(e,t){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(xe["d"](e))return;if(e instanceof _e["b"]&&Object(Se["E"])(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=a;var r=e.getTextContent(),o=e.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&n(e)}}))}sn=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),ln(e,!0),ln(e,!1),t.plan()},ln=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var d=Object(pt["f"])(e.type),f=t?ve["a"].getClass(d.main,d.sub):ye["a"].getClass(d.sub);0,c=new f,c.init(n,s),o[u]=c,i.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(c,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&u(t)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},un=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),r){var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var l={mainType:r,query:s};i&&(l.subType=i);var c,d=n.excludeSeriesId;null!=d&&(c=Object(o["f"])(),Object(o["k"])(u["r"](d),(function(e){var t=u["e"](e,null);null!=t&&c.set(t,!0)}))),a&&a.eachComponent(l,(function(t){var r=c&&null!==c.get(t.id);if(!r)if(Object(Se["z"])(n))if(t instanceof ge["b"])n.type!==Se["c"]||n.notBlur||t.get(["emphasis","disabled"])||Object(Se["m"])(t,n,e._api);else{var i=Object(Se["t"])(t.mainType,t.componentIndex,n.name,e._api),a=i.focusSelf,s=i.dispatchers;n.type===Se["c"]&&a&&!n.notBlur&&Object(Se["l"])(t.mainType,t.componentIndex,e._api),s&&Object(o["k"])(s,(function(e){n.type===Se["c"]?Object(Se["r"])(e):Object(Se["C"])(e)}))}else Object(Se["A"])(n)&&t instanceof ge["b"]&&(Object(Se["K"])(t,n,e._api),Object(Se["L"])(t),Sn(e))}),e),a&&a.eachComponent(l,(function(t){var n=c&&null!==c.get(t.id);n||f(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else Object(o["k"])([].concat(e._componentsViews).concat(e._chartsViews),f);function f(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},cn={prepareAndUpdate:function(e){sn(this),cn.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,t),fn(this,r),a.update(r,i),e(r),s.performVisualTasks(r,t),mn(this,r,i,t,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),Ct.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var a=[];r.eachComponent((function(e,o){if("series"!==e){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,r,i,t);l&&l.update&&a.push(s)}else a.push(s)}}));var s=Object(o["f"])();r.eachSeries((function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var a=o.updateTransform(e,r,i,t);a&&a.update&&s.set(e.uid,1)}else s.set(e.uid,1)})),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:s}),xn(this,r,i,t,{},s),Ct.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),ye["a"].markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),mn(this,n,this._api,t,{}),Ct.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries((function(e){e.getData().clearAllVisual()})),ye["a"].markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent((function(e,i){if("series"!==e){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,t)}})),r.eachSeries((function(e){var i=n._chartsMap[e.__viewId];i.updateVisual(e,r,n._api,t)})),Ct.trigger("afterupdate",r,this._api))},updateLayout:function(e){cn.update.call(this,e)}},dn=function(e,t,n,r){if(e._disposed)Mn(e.id);else{for(var i,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=u["s"](o,n),l=0;l<a.length;l++){var c=a[l];if(c[t]&&null!=(i=c[t](o,s,r)))return i}0}},fn=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))},hn=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,s=Ln[i],l=s.actionInfo,c=(l.update||"update").split(":"),d=c.pop(),f=null!=c[0]&&Object(pt["f"])(c[0]);this[Xt]=!0;var h=[e],p=!1;e.batch&&(p=!0,h=Object(o["H"])(e.batch,(function(t){return t=Object(o["i"])(Object(o["m"])({},t),e),t.batch=null,t})));var g,v=[],y=Object(Se["A"])(e),m=Object(Se["z"])(e);if(m&&Object(Se["k"])(this._api),Object(o["k"])(h,(function(t){if(g=s.action(t,n._model,n._api),g=g||Object(o["m"])({},t),g.type=l.event||g.type,v.push(g),m){var r=u["t"](e),i=r.queryOptionMap,a=r.mainTypeSpecified,c=a?i.keys()[0]:"series";un(n,d,t,c),Sn(n)}else y?(un(n,d,t,"series"),Sn(n)):f&&un(n,d,t,f.main,f.sub)})),"none"!==d&&!m&&!y&&!f)try{this[Zt]?(sn(this),cn.update.call(this,e),this[Zt]=null):cn[d].call(this,e)}catch(_){throw this[Xt]=!1,_}if(g=p?{type:l.event||i,escapeConnect:a,batch:v}:v[0],this[Xt]=!1,!t){var b=this._messageCenter;if(b.trigger(g.type,g),y){var x={type:"selectchanged",escapeConnect:a,selected:Object(Se["u"])(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};b.trigger(x.type,x)}}},pn=function(e){var t=this._pendingActions;while(t.length){var n=t.shift();hn.call(this,n,e)}},gn=function(e){!e&&this.trigger("updated")},vn=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[Zt]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},yn=function(e,t){e.on("mouseover",(function(e){var n=e.target,r=Object(kt["a"])(n,Se["y"]);r&&(Object(Se["x"])(r,e,t._api),Sn(t))})).on("mouseout",(function(e){var n=e.target,r=Object(kt["a"])(n,Se["y"]);r&&(Object(Se["w"])(r,e,t._api),Sn(t))})).on("click",(function(e){var n=e.target,r=Object(kt["a"])(n,(function(e){return null!=Object(we["a"])(e).dataIndex}),!0);if(r){var i=r.selected?"unselect":"select",o=Object(we["a"])(r);t._api.dispatchAction({type:i,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},mn=function(e,n,r,i,a){t(n),bn(e,n,r,i,a),Object(o["k"])(e._chartsViews,(function(e){e.__alive=!1})),xn(e,n,r,i,a),Object(o["k"])(e._chartsViews,(function(e){e.__alive||e.remove(n,r)}))},bn=function(e,t,n,r,i,a){Object(o["k"])(a||e._componentsViews,(function(e){var i=e.__model;f(i,e),e.render(i,t,n,r),c(i,e),h(i,e)}))},xn=function(e,t,n,r,a,s){var u=e._scheduler;a=Object(o["m"])(a||{},{updatedSeries:t.getSeries()}),Ct.trigger("series:beforeupdate",t,n,a);var d=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;u.updatePayload(i,r),f(t,n),s&&s.get(t.uid)&&i.dirty(),i.perform(u.getPerformArgs(i))&&(d=!0),n.group.silent=!!t.get("silent"),l(t,n),Object(Se["L"])(t)})),u.unfinished=d||u.unfinished,Ct.trigger("series:layoutlabels",t,n,a),Ct.trigger("series:transition",t,n,a),t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];c(t,n),h(t,n)})),i(e,t),Ct.trigger("series:afterupdate",t,n,a)},Sn=function(e){e[$t]=!0,e.getZr().wakeUp()},kn=function(e){e[$t]&&(e.getZr().storage.traverse((function(e){xe["d"](e)||n(e)})),e[$t]=!1)},_n=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(r["a"])(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){while(t){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Object(Se["r"])(t,n),Sn(e)},n.prototype.leaveEmphasis=function(t,n){Object(Se["C"])(t,n),Sn(e)},n.prototype.enterBlur=function(t){Object(Se["q"])(t),Sn(e)},n.prototype.leaveBlur=function(t){Object(Se["B"])(t),Sn(e)},n.prototype.enterSelect=function(t){Object(Se["s"])(t),Sn(e)},n.prototype.leaveSelect=function(t){Object(Se["D"])(t),Sn(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(D))(e)},wn=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[Qt]=t}}Object(o["k"])(In,(function(n,r){e._messageCenter.on(r,(function(n){if(Fn[e.group]&&e[Qt]!==en){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];Object(o["k"])(Bn,(function(t){t!==e&&t.group===e.group&&i.push(t)})),t(i,en),Object(o["k"])(i,(function(e){e[Qt]!==tn&&e.dispatchAction(r)})),t(i,nn)}}))}))}}(),t}(l["a"]),Cn=En.prototype;Cn.on=rn("on"),Cn.off=rn("off"),Cn.one=function(e,t,n){var r=this;function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];t&&t.apply&&t.apply(this,n),r.off(e,i)}Object(_["a"])("ECharts#one is deprecated."),this.on.call(this,e,i,n)};var An=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Mn(e){0}var Ln={},In={},Dn=[],jn=[],Pn=[],Rn={},Nn={},Bn={},Fn={},zn=+new Date-0,Un=(new Date,"_echarts_instance_");function Hn(e,t,n){var r=!(n&&n.ssr);if(r){0;var i=Vn(e);if(i)return i;0}var o=new En(e,t,n);return o.id="ec_"+zn++,Bn[o.id]=o,r&&u["w"](e,Un,o.id),wn(o),Ct.trigger("afterinit",o),o}function Vn(e){return Bn[u["g"](e,Un)]}function Gn(e,t){Rn[e]=t}function qn(e){Object(o["r"])(jn,e)<0&&jn.push(e)}function Wn(e,t){tr(Dn,e,t,Rt)}function Yn(e){Xn("afterinit",e)}function Kn(e){Xn("afterupdate",e)}function Xn(e,t){Ct.on(e,t)}function Zn(e,t,n){Object(o["w"])(t)&&(n=t,t="");var r=Object(o["A"])(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,In[t]||(Object(o["b"])(Jt.test(r)&&Jt.test(t)),Ln[r]||(Ln[r]={action:n,actionInfo:e}),In[t]=r)}function $n(e,t){j["a"].register(e,t)}function Jn(e,t){tr(Pn,e,t,Bt,"layout")}function Qn(e,t){tr(Pn,e,t,Ut,"visual")}var er=[];function tr(e,t,n,r,i){if((Object(o["w"])(t)||Object(o["A"])(t))&&(n=t,t=r),!(Object(o["r"])(er,n)>=0)){er.push(n);var a=ot.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function nr(e,t){Nn[e]=t}function rr(e,t,n){var r=Object(Mt["a"])("registerMap");r&&r(e,t,n)}var ir=wt["b"];Qn(zt,De),Qn(Vt,Pe),Qn(Vt,Re),Qn(zt,mt),Qn(Vt,bt),Qn(Yt,Tt),qn(de),Wn(jt,he),nr("default",Ue),Zn({type:Se["c"],event:Se["c"],update:Se["c"]},o["L"]),Zn({type:Se["b"],event:Se["b"],update:Se["b"]},o["L"]),Zn({type:Se["f"],event:Se["f"],update:Se["f"]},o["L"]),Zn({type:Se["i"],event:Se["i"],update:Se["i"]},o["L"]),Zn({type:Se["h"],event:Se["h"],update:Se["h"]},o["L"]),Gn("light",st),Gn("dark",ht)},"1e3c":function(e,t,n){"use strict";n("2a44")},"1f39":function(e,t,n){"use strict";var r=n("6d8b"),i={},o=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];r["k"](i,(function(r,i){var o=r.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){r["k"](this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){i[e]=t},e.get=function(e){return i[e]},e}();t["a"]=o},"20c8":function(e,t,n){"use strict";n.d(t,"b",(function(){return O}));var r=n("401b"),i=n("9850"),o=n("2cf4c"),a=n("e263"),s=n("4a3f"),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],d=[],f=[],h=[],p=[],g=Math.min,v=Math.max,y=Math.cos,m=Math.sin,b=Math.abs,x=Math.PI,_=2*x,w="undefined"!==typeof Float32Array,S=[];function k(e){var t=Math.round(e/x*1e8)/1e8;return t%2*x}function O(e,t){var n=k(e[0]);n<0&&(n+=_);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=_?i=n+_:t&&n-i>=_?i=n-_:!t&&n>i?i=n+(_-k(n-i)):t&&n<i&&(i=n-(_-k(i-n))),e[0]=n,e[1]=i}var T=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=b(n/o["e"]/e)||0,this._uy=b(n/o["e"]/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(l.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=b(e-this._xi),r=b(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(l.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(l.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(l.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,o){this._drawPendingPt(),S[0]=r,S[1]=i,O(S,o),r=S[0],i=S[1];var a=i-r;return this.addData(l.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=y(i)*n+e,this._yi=m(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(l.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!w||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();w&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var o=e[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},e.prototype.addData=function(e,t,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,w&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){d[0]=d[1]=h[0]=h[1]=Number.MAX_VALUE,f[0]=f[1]=p[0]=p[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,o=0,s=0,u=0;for(e=0;e<this._len;){var c=t[e++],g=1===e;switch(g&&(n=t[e],o=t[e+1],s=n,u=o),c){case l.M:n=s=t[e++],o=u=t[e++],h[0]=s,h[1]=u,p[0]=s,p[1]=u;break;case l.L:Object(a["c"])(n,o,t[e],t[e+1],h,p),n=t[e++],o=t[e++];break;case l.C:Object(a["b"])(n,o,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],h,p),n=t[e++],o=t[e++];break;case l.Q:Object(a["e"])(n,o,t[e++],t[e++],t[e],t[e+1],h,p),n=t[e++],o=t[e++];break;case l.A:var v=t[e++],b=t[e++],x=t[e++],_=t[e++],w=t[e++],S=t[e++]+w;e+=1;var k=!t[e++];g&&(s=y(w)*x+v,u=m(w)*_+b),Object(a["a"])(v,b,x,_,w,S,k,h,p),n=y(S)*x+v,o=m(S)*_+b;break;case l.R:s=n=t[e++],u=o=t[e++];var O=t[e++],T=t[e++];Object(a["c"])(s,u,s+O,u+T,h,p);break;case l.Z:n=s,o=u;break}r["l"](d,d,h),r["k"](f,f,p)}return 0===e&&(d[0]=d[1]=f[0]=f[1]=0),new i["a"](d[0],d[1],f[0]-d[0],f[1]-d[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,d=0,f=0,h=0;h<t;){var p=e[h++],x=1===h;x&&(i=e[h],o=e[h+1],a=i,u=o);var w=-1;switch(p){case l.M:i=a=e[h++],o=u=e[h++];break;case l.L:var S=e[h++],k=e[h++],O=S-i,T=k-o;(b(O)>n||b(T)>r||h===t-1)&&(w=Math.sqrt(O*O+T*T),i=S,o=k);break;case l.C:var E=e[h++],C=e[h++],A=(S=e[h++],k=e[h++],e[h++]),M=e[h++];w=Object(s["d"])(i,o,E,C,S,k,A,M,10),i=A,o=M;break;case l.Q:E=e[h++],C=e[h++],S=e[h++],k=e[h++];w=Object(s["k"])(i,o,E,C,S,k,10),i=S,o=k;break;case l.A:var L=e[h++],I=e[h++],D=e[h++],j=e[h++],P=e[h++],R=e[h++],N=R+P;h+=1;e[h++];x&&(a=y(P)*D+L,u=m(P)*j+I),w=v(D,j)*g(_,Math.abs(R)),i=y(N)*D+L,o=m(N)*j+I;break;case l.R:a=i=e[h++],u=o=e[h++];var B=e[h++],F=e[h++];w=2*B+2*F;break;case l.Z:O=a-i,T=u-o;w=Math.sqrt(O*O+T*T),i=a,o=u;break}w>=0&&(c[f++]=w,d+=w)}return this._pathLen=d,d},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,d,f,h,p,x,_,w=this.data,S=this._ux,k=this._uy,O=this._len,T=t<1,E=0,C=0,A=0;if(!T||(this._pathSegLen||this._calculateLength(),f=this._pathSegLen,h=this._pathLen,p=t*h,p))e:for(var M=0;M<O;){var L=w[M++],I=1===M;switch(I&&(i=w[M],o=w[M+1],n=i,r=o),L!==l.L&&A>0&&(e.lineTo(x,_),A=0),L){case l.M:n=i=w[M++],r=o=w[M++],e.moveTo(i,o);break;case l.L:a=w[M++],d=w[M++];var D=b(a-i),j=b(d-o);if(D>S||j>k){if(T){var P=f[C++];if(E+P>p){var R=(p-E)/P;e.lineTo(i*(1-R)+a*R,o*(1-R)+d*R);break e}E+=P}e.lineTo(a,d),i=a,o=d,A=0}else{var N=D*D+j*j;N>A&&(x=a,_=d,A=N)}break;case l.C:var B=w[M++],F=w[M++],z=w[M++],U=w[M++],H=w[M++],V=w[M++];if(T){P=f[C++];if(E+P>p){R=(p-E)/P;Object(s["g"])(i,B,z,H,R,u),Object(s["g"])(o,F,U,V,R,c),e.bezierCurveTo(u[1],c[1],u[2],c[2],u[3],c[3]);break e}E+=P}e.bezierCurveTo(B,F,z,U,H,V),i=H,o=V;break;case l.Q:B=w[M++],F=w[M++],z=w[M++],U=w[M++];if(T){P=f[C++];if(E+P>p){R=(p-E)/P;Object(s["n"])(i,B,z,R,u),Object(s["n"])(o,F,U,R,c),e.quadraticCurveTo(u[1],c[1],u[2],c[2]);break e}E+=P}e.quadraticCurveTo(B,F,z,U),i=z,o=U;break;case l.A:var G=w[M++],q=w[M++],W=w[M++],Y=w[M++],K=w[M++],X=w[M++],Z=w[M++],$=!w[M++],J=W>Y?W:Y,Q=b(W-Y)>.001,ee=K+X,te=!1;if(T){P=f[C++];E+P>p&&(ee=K+X*(p-E)/P,te=!0),E+=P}if(Q&&e.ellipse?e.ellipse(G,q,W,Y,Z,K,ee,$):e.arc(G,q,J,K,ee,$),te)break e;I&&(n=y(K)*W+G,r=m(K)*Y+q),i=y(ee)*W+G,o=m(ee)*Y+q;break;case l.R:n=i=w[M],r=o=w[M+1],a=w[M++],d=w[M++];var ne=w[M++],re=w[M++];if(T){P=f[C++];if(E+P>p){var ie=p-E;e.moveTo(a,d),e.lineTo(a+g(ie,ne),d),ie-=ne,ie>0&&e.lineTo(a+ne,d+g(ie,re)),ie-=re,ie>0&&e.lineTo(a+v(ne-ie,0),d+re),ie-=ne,ie>0&&e.lineTo(a,d+v(re-ie,0));break e}E+=P}e.rect(a,d,ne,re);break;case l.Z:if(T){P=f[C++];if(E+P>p){R=(p-E)/P;e.lineTo(i*(1-R)+n*R,o*(1-R)+r*R);break e}E+=P}e.closePath(),i=n,o=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=l,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();t["a"]=T},"217c":function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return y})),n.d(t,"e",(function(){return k})),n.d(t,"d",(function(){return O})),n.d(t,"a",(function(){return T}));var r=n("eda2"),i=n("6d8b"),o=n("b7d9"),a=n("3842"),s="line-height:1";function l(e,t){var n=e.color||"#6e7079",i=e.fontSize||12,o=e.fontWeight||"400",a=e.color||"#464646",s=e.fontSize||14,l=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+Object(r["c"])(i+"")+"px;color:"+Object(r["c"])(n)+";font-weight:"+Object(r["c"])(o+""),valueStyle:"font-size:"+Object(r["c"])(s+"")+"px;color:"+Object(r["c"])(a)+";font-weight:"+Object(r["c"])(l+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var u=[0,10,20,30],c=["","\n","\n\n","\n\n\n"];function d(e,t){return t.type=e,t}function f(e){return"section"===e.type}function h(e){return f(e)?g:v}function p(e){if(f(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return Object(i["k"])(e.blocks,(function(e){var n=p(e);n>=t&&(t=n+ +(r&&(!n||f(e)&&!e.noHeader)))})),t}return 0}function g(e,t,n,a){var u=t.noHeader,c=m(p(t)),d=[],f=t.blocks||[];Object(i["b"])(!f||Object(i["t"])(f)),f=f||[];var g=e.orderMode;if(t.sortBlocks&&g){f=f.slice();var v={valueAsc:"asc",valueDesc:"desc"};if(Object(i["q"])(v,g)){var y=new o["a"](v[g],null);f.sort((function(e,t){return y.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===g&&f.reverse()}Object(i["k"])(f,(function(n,r){var o=t.valueFormatter,s=h(n)(o?Object(i["m"])(Object(i["m"])({},e),{valueFormatter:o}):e,n,r>0?c.html:0,a);null!=s&&d.push(s)}));var x="richText"===e.renderMode?d.join(c.richText):b(d.join(""),u?n:c.html);if(u)return x;var _=Object(r["g"])(t.header,"ordinal",e.useUTC),S=l(a,e.renderMode).nameStyle;return"richText"===e.renderMode?w(e,_,S)+c.richText+x:b('<div style="'+S+";"+s+';">'+Object(r["c"])(_)+"</div>"+x,n)}function v(e,t,n,o){var a=e.renderMode,s=t.noName,u=t.noValue,c=!t.markerType,d=t.name,f=e.useUTC,h=t.valueFormatter||e.valueFormatter||function(e){return e=Object(i["t"])(e)?e:[e],Object(i["H"])(e,(function(e,t){return Object(r["g"])(e,Object(i["t"])(v)?v[t]:v,f)}))};if(!s||!u){var p=c?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),g=s?"":Object(r["g"])(d,"ordinal",f),v=t.valueType,y=u?[]:h(t.value),m=!c||!s,k=!c&&s,O=l(o,a),T=O.nameStyle,E=O.valueStyle;return"richText"===a?(c?"":p)+(s?"":w(e,g,T))+(u?"":S(e,y,m,k,E)):b((c?"":p)+(s?"":x(g,!c,T))+(u?"":_(y,m,k,E)),n)}}function y(e,t,n,r,i,o){if(e){var a=h(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function m(e){return{html:u[e],richText:c[e]}}function b(e,t){var n='<div style="clear:both"></div>',r="margin: "+t+"px 0 0";return'<div style="'+r+";"+s+';">'+e+n+"</div>"}function x(e,t,n){var i=t?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+Object(r["c"])(e)+"</span>"}function _(e,t,n,o){var a=n?"10px":"20px",s=t?"float:right;margin-left:"+a:"";return e=Object(i["t"])(e)?e:[e],'<span style="'+s+";"+o+'">'+Object(i["H"])(e,(function(e){return Object(r["c"])(e)})).join("&nbsp;&nbsp;")+"</span>"}function w(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function S(e,t,n,r,o){var a=[o],s=r?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(i["t"])(t)?t.join(" "):t,a)}function k(e,t){var n=e.getData().getItemVisual(t,"style"),i=n[e.visualDrawType];return Object(r["b"])(i)}function O(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var T=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Object(a["h"])()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var o="richText"===n?this._generateStyleName():null,a=Object(r["f"])({color:t,type:e,renderMode:n,markerId:o});return Object(i["C"])(a)?a:(this.richTextStyles[o]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(i["t"])(t)?Object(i["k"])(t,(function(e){return Object(i["m"])(n,e)})):Object(i["m"])(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}()},"22b4":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("1be7"),i=n("b12f"),o=n("e887"),a=n("6cb7"),s=n("4f85"),l=n("6d8b"),u=n("58c9"),c=n("697e"),d=[],f={registerPreprocessor:r["j"],registerProcessor:r["k"],registerPostInit:r["h"],registerPostUpdate:r["i"],registerUpdateLifecycle:r["m"],registerAction:r["c"],registerCoordinateSystem:r["d"],registerLayout:r["e"],registerVisual:r["n"],registerTransform:r["l"],registerLoading:r["f"],registerMap:r["g"],registerImpl:u["b"],PRIORITY:r["a"],ComponentModel:a["a"],ComponentView:i["a"],SeriesModel:s["b"],ChartView:o["a"],registerComponentModel:function(e){a["a"].registerClass(e)},registerComponentView:function(e){i["a"].registerClass(e)},registerSeriesModel:function(e){s["b"].registerClass(e)},registerChartView:function(e){o["a"].registerClass(e)},registerSubTypeDefaulter:function(e,t){a["a"].registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Object(c["b"])(e,t)}};function h(e){Object(l["t"])(e)?Object(l["k"])(e,(function(e){h(e)})):Object(l["r"])(d,e)>=0||(d.push(e),Object(l["w"])(e)&&(e={install:e}),e.install(f))}},"22d1":function(e,t,n){"use strict";var r=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),i=function(){function e(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return e}(),o=new i;function a(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),t["a"]=o},2306:function(e,t,n){"use strict";n.r(t),n.d(t,"updateProps",(function(){return P["h"]})),n.d(t,"initProps",(function(){return P["c"]})),n.d(t,"removeElement",(function(){return P["e"]})),n.d(t,"removeElementWithFadeOut",(function(){return P["f"]})),n.d(t,"isElementRemoved",(function(){return P["d"]})),n.d(t,"extendShape",(function(){return F})),n.d(t,"extendPath",(function(){return U})),n.d(t,"registerShape",(function(){return H})),n.d(t,"getShapeClass",(function(){return V})),n.d(t,"makePath",(function(){return G})),n.d(t,"makeImage",(function(){return q})),n.d(t,"mergePath",(function(){return Y})),n.d(t,"resizePath",(function(){return K})),n.d(t,"subPixelOptimizeLine",(function(){return X})),n.d(t,"subPixelOptimizeRect",(function(){return Z})),n.d(t,"subPixelOptimize",(function(){return $})),n.d(t,"getTransform",(function(){return J})),n.d(t,"applyTransform",(function(){return Q})),n.d(t,"transformDirection",(function(){return ee})),n.d(t,"groupTransition",(function(){return re})),n.d(t,"clipPointsByRect",(function(){return ie})),n.d(t,"clipRectByRect",(function(){return oe})),n.d(t,"createIcon",(function(){return ae})),n.d(t,"linePolygonIntersect",(function(){return se})),n.d(t,"lineLineIntersect",(function(){return le})),n.d(t,"setTooltipConfig",(function(){return de})),n.d(t,"traverseElements",(function(){return he})),n.d(t,"Group",(function(){return u["a"]})),n.d(t,"Image",(function(){return l["a"]})),n.d(t,"Text",(function(){return c["a"]})),n.d(t,"Circle",(function(){return d["a"]})),n.d(t,"Ellipse",(function(){return f["a"]})),n.d(t,"Sector",(function(){return h["a"]})),n.d(t,"Ring",(function(){return p["a"]})),n.d(t,"Polygon",(function(){return g["a"]})),n.d(t,"Polyline",(function(){return v["a"]})),n.d(t,"Rect",(function(){return y["a"]})),n.d(t,"Line",(function(){return m["a"]})),n.d(t,"BezierCurve",(function(){return b["a"]})),n.d(t,"Arc",(function(){return x["a"]})),n.d(t,"IncrementalDisplayable",(function(){return L})),n.d(t,"CompoundPath",(function(){return _["a"]})),n.d(t,"LinearGradient",(function(){return w["a"]})),n.d(t,"RadialGradient",(function(){return S["a"]})),n.d(t,"BoundingRect",(function(){return k["a"]})),n.d(t,"OrientedBoundingRect",(function(){return O["a"]})),n.d(t,"Point",(function(){return T["a"]})),n.d(t,"Path",(function(){return a["b"]}));var r=n("342d"),i=n("1687"),o=n("401b"),a=n("cbe5"),s=n("8582"),l=n("0da8"),u=n("2dc5"),c=n("76a5"),d=n("d9fc"),f=n("ae69"),h=n("4aa2"),p=n("4573"),g=n("87b1"),v=n("d498"),y=n("c7a2"),m=n("cb11"),b=n("ac0f"),x=n("8d32"),_=n("d4c6"),w=n("48a9"),S=n("dded"),k=n("9850"),O=n("ca80"),T=n("dce8"),E=n("9ab4"),C=n("19eb"),A=[],M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return Object(E["a"])(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.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])},t.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}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new k["a"](1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(A)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(r.contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var o=this._displayables[i];if(o.contain(e,t))return!0}return!1},t}(C["c"]),L=M,I=n("9cf9"),D=n("6d8b"),j=n("861c"),P=n("deab"),R=Math.max,N=Math.min,B={};function F(e){return a["b"].extend(e)}var z=r["c"];function U(e,t){return z(e,t)}function H(e,t){B[e]=t}function V(e){if(B.hasOwnProperty(e))return B[e]}function G(e,t,n,i){var o=r["b"](e,t);return n&&("center"===i&&(n=W(n,o.getBoundingRect())),K(o,n)),o}function q(e,t,n){var r=new l["a"]({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(W(t,i))}}});return r}function W(e,t){var n,r=t.width/t.height,i=e.height*r;i<=e.width?n=e.height:(i=e.width,n=i/r);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-i/2,y:a-n/2,width:i,height:n}}var Y=r["d"];function K(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function X(e){return I["b"](e.shape,e.shape,e.style),e}function Z(e){return I["c"](e.shape,e.shape,e.style),e}var $=I["a"];function J(e,t){var n=i["d"]([]);while(e&&e!==t)i["f"](n,e.getLocalTransform(),n),e=e.parent;return n}function Q(e,t,n){return t&&!Object(D["u"])(t)&&(t=s["c"].getLocalTransform(t)),n&&(t=i["e"]([],t)),o["b"]([],e,t)}function ee(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return o=Q(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function te(e){return!e.isGroup}function ne(e){return null!=e.shape}function re(e,t,n){if(e&&t){var r=i(e);t.traverse((function(e){if(te(e)&&e.anid){var t=r[e.anid];if(t){var i=o(e);e.attr(o(t)),Object(P["h"])(e,i,n,Object(j["a"])(e).dataIndex)}}}))}function i(e){var t={};return e.traverse((function(e){te(e)&&e.anid&&(t[e.anid]=e)})),t}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return ne(e)&&(t.shape=Object(D["m"])({},e.shape)),t}}function ie(e,t){return Object(D["H"])(e,(function(e){var n=e[0];n=R(n,t.x),n=N(n,t.x+t.width);var r=e[1];return r=R(r,t.y),r=N(r,t.y+t.height),[n,r]}))}function oe(e,t){var n=R(e.x,t.x),r=N(e.x+e.width,t.x+t.width),i=R(e.y,t.y),o=N(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function ae(e,t,n){var r=Object(D["m"])({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),Object(D["i"])(i,n),new l["a"](r)):G(e.replace("path://",""),r,n,"center")}function se(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(le(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function le(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,d=s-o,f=ue(c,d,l,u);if(ce(f))return!1;var h=e-i,p=t-o,g=ue(h,p,l,u)/f;if(g<0||g>1)return!1;var v=ue(h,p,c,d)/f;return!(v<0||v>1)}function ue(e,t,n,r){return e*r-n*t}function ce(e){return e<=1e-6&&e>=-1e-6}function de(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=Object(D["C"])(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&Object(D["k"])(Object(D["F"])(l),(function(e){Object(D["q"])(s,e)||(s[e]=l[e],s.$vars.push(e))}));var u=Object(j["a"])(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Object(D["i"])({content:r,formatterParams:s},i)}}function fe(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function he(e,t){if(e)if(Object(D["t"])(e))for(var n=0;n<e.length;n++)fe(e[n],t);else fe(e,t)}H("circle",d["a"]),H("ellipse",f["a"]),H("sector",h["a"]),H("ring",p["a"]),H("polygon",g["a"]),H("polyline",v["a"]),H("rect",y["a"]),H("line",m["a"]),H("bezierCurve",b["a"]),H("arc",x["a"])},2355:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n("ca80"),i=n("9850");function o(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if(!i.defaultAttr.ignore){var o=i.label,a=o.getComputedTransform(),s=o.getBoundingRect(),l=!a||a[1]<1e-5&&a[2]<1e-5,u=o.style.margin||0,c=s.clone();c.applyTransform(a),c.x-=u/2,c.y-=u/2,c.width+=u,c.height+=u;var d=l?new r["a"](s,a):null;t.push({label:o,labelLine:i.labelLine,rect:c,localRect:s,obb:d,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:l,transform:a})}}return t}function a(e,t,n,r,i,o){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,u=!1,c=[],d=0,f=0;f<a;f++){var h=e[f],p=h.rect;s=p[t]-l,s<0&&(p[t]-=s,h.label[t]-=s,u=!0);var g=Math.max(-s,0);c.push(g),d+=g,l=p[t]+p[n]}d>0&&o&&w(-d/a,0,a);var v,y,m=e[0],b=e[a-1];return x(),v<0&&S(-v,.8),y<0&&S(y,.8),x(),_(v,y,1),_(y,v,-1),x(),v<0&&k(-v),y<0&&k(y),u}function x(){v=m.rect[t]-r,y=i-b.rect[t]-b.rect[n]}function _(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){w(r*n,0,a);var i=r+e;i<0&&S(-i*n,1)}else S(-e*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=e[o],s=a.rect;s[t]+=n,a.label[t]+=n}}function S(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);o.push(c),s+=c}if(s){var d=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++){var f=o[l]*d;w(f,0,l+1)}else for(l=a-1;l>0;l--){f=o[l-1]*d;w(-f,l,a)}}}function k(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?w(n,0,r+1):w(-n,a-r-1,a),e-=n,e<=0)return}}function s(e,t,n,r){return a(e,"x","width",t,n,r)}function l(e,t,n,r){return a(e,"y","height",t,n,r)}function u(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new i["a"](0,0,0,0);function o(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var a=0;a<e.length;a++){var s=e[a],l=s.axisAligned,u=s.localRect,c=s.transform,d=s.label,f=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=s.obb,p=!1,g=0;g<t.length;g++){var v=t[g];if(n.intersect(v.rect)){if(l&&v.axisAligned){p=!0;break}if(v.obb||(v.obb=new r["a"](v.localRect,v.transform)),h||(h=new r["a"](u,c)),h.intersect(v.obb)){p=!0;break}}}p?(o(d),f&&o(f)):(d.attr("ignore",s.defaultAttr.ignore),f&&f.attr("ignore",s.defaultAttr.labelGuideIgnore),t.push(s))}}},"282b":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("6d8b");function i(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,i,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&r["r"](i,l)>=0||o&&r["r"](o,l)<0)){var u=n.getShallow(l,t);null!=u&&(a[e[s][0]]=u)}}return a}}},"29f3":function(e,t){var n=Object.prototype,r=n.toString;function i(e){return r.call(e)}e.exports=i},"2a44":function(e,t,n){},"2b17":function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return _})),n.d(t,"e",(function(){return S}));var r,i,o,a,s,l=n("6d8b"),u=n("e0d3"),c=n("ec6f"),d=n("07fd"),f=function(){function e(e,t){var n=Object(c["e"])(e)?e:Object(c["c"])(e);this._source=n;var r=this._data=n.data;n.sourceFormat===d["g"]&&(this._offset=0,this._dimSize=t,this._data=r),s(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;s=function(e,i,o){var s=o.sourceFormat,u=o.seriesLayoutBy,c=o.startIndex,f=o.dimensionsDefine,h=a[w(s,u)];if(Object(l["m"])(e,h),s===d["g"])e.getItem=t,e.count=r,e.fillStorage=n;else{var p=g(s,u);e.getItem=Object(l["c"])(p,null,i,c,f);var v=m(s,u);e.count=Object(l["c"])(v,null,i,c,f)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,o=0;o<r;o++)t[o]=n[i+o];return t},n=function(e,t,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,d=n[a],f=0;f<c;f++){var h=i[f*o+a];d[e+f]=h,h<l&&(l=h),h>u&&(u=h)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}e={},e[d["c"]+"_"+d["a"]]={pure:!0,appendData:i},e[d["c"]+"_"+d["b"]]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[d["e"]]={pure:!0,appendData:i},e[d["d"]]={pure:!0,appendData:function(e){var t=this._data;Object(l["k"])(e,(function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])}))}},e[d["f"]]={appendData:i},e[d["g"]]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},a=e}(),e}(),h=function(e,t,n,r){return e[r]},p=(r={},r[d["c"]+"_"+d["a"]]=function(e,t,n,r){return e[r+t]},r[d["c"]+"_"+d["b"]]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},r[d["e"]]=h,r[d["d"]]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=e[s];o[a]=l?l[r]:null}return o},r[d["f"]]=h,r);function g(e,t){var n=p[w(e,t)];return n}var v=function(e,t,n){return e.length},y=(i={},i[d["c"]+"_"+d["a"]]=function(e,t,n){return Math.max(0,e.length-t)},i[d["c"]+"_"+d["b"]]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},i[d["e"]]=v,i[d["d"]]=function(e,t,n){var r=n[0].name;var i=e[r];return i?i.length:0},i[d["f"]]=v,i);function m(e,t){var n=y[w(e,t)];return n}var b=function(e,t,n){return e[t]},x=(o={},o[d["c"]]=b,o[d["e"]]=function(e,t,n){return e[n]},o[d["d"]]=b,o[d["f"]]=function(e,t,n){var r=Object(u["h"])(e);return r instanceof Array?r[t]:r},o[d["g"]]=b,o);function _(e){var t=x[e];return t}function w(e,t){return e===d["c"]?e+"_"+t:e}function S(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return _(o)(r,a,s)}var l=r;return o===d["f"]&&(l=Object(u["h"])(r)),l}}}},"2b3e":function(e,t,n){var r=n("585a"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},"2cf4c":function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return u}));var r=n("22d1"),i=1;r["a"].hasGlobalWindow&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var o=i,a=.4,s="#333",l="#ccc",u="#eee"},"2dc5":function(e,t,n){"use strict";var r=n("9ab4"),i=n("6d8b"),o=n("d5b7"),a=n("9850"),s=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return Object(r["a"])(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=i["r"](this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=i["r"](n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new a["a"](0,0,0,0),n=e||this._children,r=[],i=null,o=0;o<n.length;o++){var s=n[o];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(r);u?(a["a"].applyTransform(t,l,u),i=i||t.clone(),i.union(t)):(i=i||l.clone(),i.union(l))}}return i||t},t}(o["a"]);s.prototype.type="group",t["a"]=s},"2f1f":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n("6d8b"),i=Object(r["f"])();function o(e,t){Object(r["b"])(null==i.get(e)&&t),i.set(e,t)}function a(e,t,n){var r=i.get(t);if(!r)return n;var o=r(e);return o?n.concat(o):n}},"313e":function(e,t,n){"use strict";var r=n("22b4"),i=n("f95e"),o=n("7a29"),a=n("cbe5"),s=n("0da8"),l=n("e86a"),u=n("dd4f"),c=Math.sin,d=Math.cos,f=Math.PI,h=2*Math.PI,p=180/f,g=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){this._add("C",e,t,n,r,i,o)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,o){this.ellipse(e,t,n,n,0,r,i,o)},e.prototype.ellipse=function(e,t,n,r,i,a,s,l){var u=s-a,g=!l,v=Math.abs(u),y=Object(o["j"])(v-h)||(g?u>=h:-u>=h),m=u>0?u%h:u%h+h,b=!1;b=!!y||!Object(o["j"])(v)&&m>=f===!!g;var x=e+n*d(a),_=t+r*c(a);this._start&&this._add("M",x,_);var w=Math.round(i*p);if(y){var S=1/this._p,k=(g?1:-1)*(h-S);this._add("A",n,r,w,1,+g,e+n*d(a+k),t+r*c(a+k)),S>.01&&this._add("A",n,r,w,0,+g,x,_)}else{var O=e+n*d(s),T=t+r*c(s);this._add("A",n,r,w,+b,+g,O,T)}},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,r,i,o,a,s,l){for(var u=[],c=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f))return void(this._invalid=!0);u.push(Math.round(f*c)/c)}this._d.push(e+u.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),v=g,y=n("8d1d"),m=n("6d8b"),b="none",x=Math.round;function _(e){var t=e.fill;return null!=t&&t!==b}function w(e){var t=e.stroke;return null!=t&&t!==b}var S=["lineCap","miterLimit","lineJoin"],k=Object(m["H"])(S,(function(e){return"stroke-"+e.toLowerCase()}));function O(e,t,n,r){var i=null==t.opacity?1:t.opacity;if(n instanceof s["a"])e("opacity",i);else{if(_(t)){var l=Object(o["p"])(t.fill);e("fill",l.color);var u=null!=t.fillOpacity?t.fillOpacity*l.opacity*i:l.opacity*i;(r||u<1)&&e("fill-opacity",u)}else e("fill",b);if(w(t)){var c=Object(o["p"])(t.stroke);e("stroke",c.color);var d=t.strokeNoScale?n.getLineScale():1,f=d?(t.lineWidth||0)/d:0,h=null!=t.strokeOpacity?t.strokeOpacity*c.opacity*i:c.opacity*i,p=t.strokeFirst;if((r||1!==f)&&e("stroke-width",f),(r||p)&&e("paint-order",p?"stroke":"fill"),(r||h<1)&&e("stroke-opacity",h),t.lineDash){var g=Object(y["a"])(n),v=g[0],m=g[1];v&&(m=x(m||0),e("stroke-dasharray",v.join(",")),(m||r)&&e("stroke-dashoffset",m))}else r&&e("stroke-dasharray",b);for(var O=0;O<S.length;O++){var T=S[O];if(r||t[T]!==a["a"][T]){var E=t[T]||a["a"][T];E&&e(k[O],E)}}}else r&&e("stroke",b)}}var T="http://www.w3.org/2000/svg",E="http://www.w3.org/1999/xlink",C="http://www.w3.org/2000/xmlns/",A="http://www.w3.org/XML/1998/namespace";function M(e){return document.createElementNS(T,e)}function L(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function I(e,t){var n=[];if(t)for(var r in t){var i=t[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+e+" "+n.join(" ")+">"}function D(e){return"</"+e+">"}function j(e,t){t=t||{};var n=t.newline?"\n":"";function r(e){var t=e.children,i=e.tag,o=e.attrs;return I(i,o)+(e.text||"")+(t?""+n+Object(m["H"])(t,(function(e){return r(e)})).join(n)+n:"")+D(i)}return r(e)}function P(e,t,n){n=n||{};var r=n.newline?"\n":"",i=" {"+r,o=r+"}",a=Object(m["H"])(Object(m["F"])(e),(function(t){return t+i+Object(m["H"])(Object(m["F"])(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(r)+o})).join(r),s=Object(m["H"])(Object(m["F"])(t),(function(e){return"@keyframes "+e+i+Object(m["H"])(Object(m["F"])(t[e]),(function(n){return n+i+Object(m["H"])(Object(m["F"])(t[e][n]),(function(r){var i=t[e][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+o})).join(r)+o})).join(r);return a||s?["<![CDATA[",a,s,"]]>"].join(r):""}function R(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function N(e,t,n,r){return L("svg","root",{width:e,height:t,xmlns:T,"xmlns:xlink":E,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}var B=n("5e76"),F=n("8582"),z=n("20c8"),U=n("d4c6"),H=n("b362"),V={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},G="transform-origin";function q(e,t,n){var r=Object(m["m"])({},e.shape);Object(m["m"])(r,t),e.buildPath(n,r);var i=new v;return i.reset(Object(o["f"])(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function W(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[G]=n+"px "+r+"px")}var Y={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function K(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function X(e,t,n){var r,i,o=e.shape.paths,a={};if(Object(m["k"])(o,(function(e){var t=R(n.zrId);t.animation=!0,$(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,l=Object(m["F"])(o),u=l.length;if(u){i=l[u-1];var c=o[i];for(var d in c){var f=c[d];a[d]=a[d]||{d:""},a[d].d+=f.d||""}for(var h in s){var p=s[h].animation;p.indexOf(i)>=0&&(r=p)}}})),r){t.d=!1;var s=K(a,n);return r.replace(i,s)}}function Z(e){return Object(m["C"])(e)?V[e]?"cubic-bezier("+V[e]+")":Object(H["a"])(e)?e:"":""}function $(e,t,n,r){var i=e.animators,a=i.length,s=[];if(e instanceof U["a"]){var l=X(e,t,n);if(l)s.push(l);else if(!a)return}else if(!a)return;for(var u={},c=0;c<a;c++){var d=i[c],f=[d.getMaxTime()/1e3+"s"],h=Z(d.getClip().easing),p=d.getDelay();h?f.push(h):f.push("linear"),p&&f.push(p/1e3+"s"),d.getLoop()&&f.push("infinite");var g=f.join(" ");u[g]=u[g]||[g,[]],u[g][1].push(d)}function v(i){var a,s=i[1],l=s.length,u={},c={},d={},f="animation-timing-function";function h(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),o=0;o<r.length;o++){var a=r[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],d=Math.round(c.time/i*100)+"%",h=Z(c.easing),p=c.rawValue;(Object(m["C"])(p)||Object(m["z"])(p))&&(t[d]=t[d]||{},t[d][l]=c.rawValue,h&&(t[d][f]=h))}}}}for(var p=0;p<l;p++){var g=s[p],v=g.targetName;v?"shape"===v&&h(g,c):!r&&h(g,u)}for(var y in u){var b={};Object(F["b"])(b,e),Object(m["m"])(b,u[y]);var x=Object(o["g"])(b),_=u[y][f];d[y]=x?{transform:x}:{},W(d[y],b),_&&(d[y][f]=_)}var w=!0;for(var y in c){d[y]=d[y]||{};var S=!a;_=c[y][f];S&&(a=new z["a"]);var k=a.len();a.reset(),d[y].d=q(e,c[y],a);var O=a.len();if(!S&&k!==O){w=!1;break}_&&(d[y][f]=_)}if(!w)for(var y in d)delete d[y].d;if(!r)for(p=0;p<l;p++){g=s[p],v=g.targetName;"style"===v&&h(g,d,(function(e){return Y[e]}))}var T,E=Object(m["F"])(d),C=!0;for(p=1;p<E.length;p++){var A=E[p-1],M=E[p];if(d[A][G]!==d[M][G]){C=!1;break}T=d[A][G]}if(C&&T){for(var y in d)d[y][G]&&delete d[y][G];t[G]=T}if(Object(m["n"])(E,(function(e){return Object(m["F"])(d[e]).length>0})).length){var L=K(d,n);return L+" "+i[0]+" both"}}for(var y in u){l=v(u[y]);l&&s.push(l)}if(s.length){var b=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+b]={animation:s.join(",")},t["class"]=b}}var J=n("76a5"),Q=n("726e"),ee=Math.round;function te(e){return e&&Object(m["C"])(e.src)}function ne(e){return e&&Object(m["w"])(e.toDataURL)}function re(e,t,n,r){O((function(i,a){var s="fill"===i||"stroke"===i;s&&Object(o["k"])(a)?ye(t,e,i,r):s&&Object(o["n"])(a)?me(n,e,i,r):e[i]=a}),t,n,!1),ve(n,e,r)}function ie(e){return Object(o["j"])(e[0]-1)&&Object(o["j"])(e[1])&&Object(o["j"])(e[2])&&Object(o["j"])(e[3]-1)}function oe(e){return Object(o["j"])(e[4])&&Object(o["j"])(e[5])}function ae(e,t,n){if(t&&(!oe(t)||!ie(t))){var r=n?10:1e4;e.transform=ie(t)?"translate("+ee(t[4]*r)/r+" "+ee(t[5]*r)/r+")":Object(o["e"])(t)}}function se(e,t,n){for(var r=e.points,i=[],o=0;o<r.length;o++)i.push(ee(r[o][0]*n)/n),i.push(ee(r[o][1]*n)/n);t.points=i.join(" ")}function le(e){return!e.smooth}function ue(e){var t=Object(m["H"])(e,(function(e){return"string"===typeof e?[e,e]:e}));return function(e,n,r){for(var i=0;i<t.length;i++){var o=t[i],a=e[o[0]];null!=a&&(n[o[1]]=ee(a*r)/r)}}}var ce={circle:[ue(["cx","cy","r"])],polyline:[se,le],polygon:[se,le]};function de(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}function fe(e,t){var n=e.style,r=e.shape,i=ce[e.type],a={},s=t.animation,l="path",u=e.style.strokePercent,c=t.compress&&Object(o["f"])(e)||4;if(!i||t.willUpdate||i[1]&&!i[1](r)||s&&de(e)||u<1){e.path||e.createPathProxy();var d=e.path;e.shapeChanged()&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var f=d.getVersion(),h=e,p=h.__svgPathBuilder;h.__svgPathVersion===f&&p&&u===h.__svgPathStrokePercent||(p||(p=h.__svgPathBuilder=new v),p.reset(c),d.rebuildPath(p,u),p.generateStr(),h.__svgPathVersion=f,h.__svgPathStrokePercent=u),a.d=p.getStr()}else{l=e.type;var g=Math.pow(10,c);i[0](r,a,g)}return ae(a,e.transform),re(a,n,e,t),t.animation&&$(e,a,t),L(l,e.id+"",a)}function he(e,t){var n=e.style,r=n.image;if(r&&!Object(m["C"])(r)&&(te(r)?r=r.src:ne(r)&&(r=r.toDataURL())),r){var i=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:r,width:a,height:s};return i&&(l.x=i),o&&(l.y=o),ae(l,e.transform),re(l,n,e,t),t.animation&&$(e,l,t),L("image",e.id+"",l)}}function pe(e,t){var n=e.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||Q["a"],a=n.x||0,s=Object(o["b"])(n.y||0,Object(l["e"])(i),n.textBaseline),u=o["a"][n.textAlign]||n.textAlign,c={"dominant-baseline":"central","text-anchor":u};if(Object(J["b"])(n)){var d="",f=n.fontStyle,h=Object(J["c"])(n.fontSize);if(!parseFloat(h))return;var p=n.fontFamily||Q["b"],g=n.fontWeight;d+="font-size:"+h+";font-family:"+p+";",f&&"normal"!==f&&(d+="font-style:"+f+";"),g&&"normal"!==g&&(d+="font-weight:"+g+";"),c.style=d}else c.style="font: "+i;return r.match(/\s/)&&(c["xml:space"]="preserve"),a&&(c.x=a),s&&(c.y=s),ae(c,e.transform),re(c,n,e,t),t.animation&&$(e,c,t),L("text",e.id+"",c,void 0,r)}}function ge(e,t){return e instanceof a["b"]?fe(e,t):e instanceof s["a"]?he(e,t):e instanceof u["a"]?pe(e,t):void 0}function ve(e,t,n){var r=e.style;if(Object(o["i"])(r)){var i=Object(o["h"])(e),a=n.shadowCache,s=a[i];if(!s){var l=e.getGlobalScale(),u=l[0],c=l[1];if(!u||!c)return;var d=r.shadowOffsetX||0,f=r.shadowOffsetY||0,h=r.shadowBlur,p=Object(o["p"])(r.shadowColor),g=p.opacity,v=p.color,y=h/2/u,m=h/2/c,b=y+" "+m;s=n.zrId+"-s"+n.shadowIdx++,n.defs[s]=L("filter",s,{id:s,x:"-100%",y:"-100%",width:"300%",height:"300%"},[L("feDropShadow","",{dx:d/u,dy:f/c,stdDeviation:b,"flood-color":v,"flood-opacity":g})]),a[i]=s}t.filter=Object(o["d"])(s)}}function ye(e,t,n,r){var i,a=e[n],s={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(o["m"])(a))i="linearGradient",s.x1=a.x,s.y1=a.y,s.x2=a.x2,s.y2=a.y2;else{if(!Object(o["o"])(a))return void 0;i="radialGradient",s.cx=Object(m["P"])(a.x,.5),s.cy=Object(m["P"])(a.y,.5),s.r=Object(m["P"])(a.r,.5)}for(var l=a.colorStops,u=[],c=0,d=l.length;c<d;++c){var f=100*Object(o["q"])(l[c].offset)+"%",h=l[c].color,p=Object(o["p"])(h),g=p.color,v=p.opacity,y={offset:f};y["stop-color"]=g,v<1&&(y["stop-opacity"]=v),u.push(L("stop",c+"",y))}var b=L(i,"",s,u),x=j(b),_=r.gradientCache,w=_[x];w||(w=r.zrId+"-g"+r.gradientIdx++,_[x]=w,s.id=w,r.defs[w]=L(i,w,s,u)),t[n]=Object(o["d"])(w)}function me(e,t,n,r){var i,a=e.style[n],s={patternUnits:"userSpaceOnUse"};if(Object(o["l"])(a)){var l=a.imageWidth,u=a.imageHeight,c=void 0,d=a.image;if(Object(m["C"])(d)?c=d:te(d)?c=d.src:ne(d)&&(c=d.toDataURL()),"undefined"===typeof Image){var f="Image width/height must been given explictly in svg-ssr renderer.";Object(m["b"])(l,f),Object(m["b"])(u,f)}else if(null==l||null==u){var h=function(e,t){if(e){var n=e.elm,r=e.attrs.width=l||t.width,i=e.attrs.height=u||t.height;n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},p=Object(B["a"])(c,null,e,(function(e){h(g,e),h(i,e)}));p&&p.width&&p.height&&(l=l||p.width,u=u||p.height)}i=L("image","img",{href:c,width:l,height:u}),s.width=l,s.height=u}else a.svgElement&&(i=Object(m["d"])(a.svgElement),s.width=a.svgWidth,s.height=a.svgHeight);if(i){s.patternTransform=Object(o["g"])(a);var g=L("pattern","",s,[i]),v=j(g),y=r.patternCache,b=y[v];b||(b=r.zrId+"-p"+r.patternIdx++,y[v]=b,s.id=b,g=r.defs[b]=L("pattern",b,s,[i])),t[n]=Object(o["d"])(b)}}function be(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+"-c"+n.clipPathIdx++;var s={id:a};r[e.id]=a,i[a]=L("clipPath",a,s,[fe(e,n)])}t["clip-path"]=Object(o["d"])(a)}function xe(e){return document.createTextNode(e)}function _e(e,t,n){e.insertBefore(t,n)}function we(e,t){e.removeChild(t)}function Se(e,t){e.appendChild(t)}function ke(e){return e.parentNode}function Oe(e){return e.nextSibling}function Te(e,t){e.textContent=t}var Ee=58,Ce=120,Ae=L("","");function Me(e){return void 0===e}function Le(e){return void 0!==e}function Ie(e,t,n){for(var r={},i=t;i<=n;++i){var o=e[i].key;void 0!==o&&(r[o]=i)}return r}function De(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function je(e){var t,n=e.children,r=e.tag;if(Le(r)){var i=e.elm=M(r);if(Ne(Ae,e),Object(m["t"])(n))for(t=0;t<n.length;++t){var o=n[t];null!=o&&Se(i,je(o))}else Le(e.text)&&!Object(m["A"])(e.text)&&Se(i,xe(e.text))}else e.elm=xe(e.text);return e.elm}function Pe(e,t,n,r,i){for(;r<=i;++r){var o=n[r];null!=o&&_e(e,je(o),t)}}function Re(e,t,n,r){for(;n<=r;++n){var i=t[n];if(null!=i)if(Le(i.tag)){var o=ke(i.elm);we(o,i.elm)}else we(e,i.elm)}}function Ne(e,t){var n,r=t.elm,i=e&&e.attrs||{},o=t.attrs||{};if(i!==o){for(n in o){var a=o[n],s=i[n];s!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):n.charCodeAt(0)!==Ce?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS(C,n,a):n.charCodeAt(3)===Ee?r.setAttributeNS(A,n,a):n.charCodeAt(5)===Ee?r.setAttributeNS(E,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function Be(e,t,n){var r,i,o,a,s=0,l=0,u=t.length-1,c=t[0],d=t[u],f=n.length-1,h=n[0],p=n[f];while(s<=u&&l<=f)null==c?c=t[++s]:null==d?d=t[--u]:null==h?h=n[++l]:null==p?p=n[--f]:De(c,h)?(Fe(c,h),c=t[++s],h=n[++l]):De(d,p)?(Fe(d,p),d=t[--u],p=n[--f]):De(c,p)?(Fe(c,p),_e(e,c.elm,Oe(d.elm)),c=t[++s],p=n[--f]):De(d,h)?(Fe(d,h),_e(e,d.elm,c.elm),d=t[--u],h=n[++l]):(Me(r)&&(r=Ie(t,s,u)),i=r[h.key],Me(i)?_e(e,je(h),c.elm):(o=t[i],o.tag!==h.tag?_e(e,je(h),c.elm):(Fe(o,h),t[i]=void 0,_e(e,o.elm,c.elm))),h=n[++l]);(s<=u||l<=f)&&(s>u?(a=null==n[f+1]?null:n[f+1].elm,Pe(e,a,n,l,f)):Re(e,t,s,u))}function Fe(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(Ne(e,t),Me(t.text)?Le(r)&&Le(i)?r!==i&&Be(n,r,i):Le(i)?(Le(e.text)&&Te(n,""),Pe(n,null,i,0,i.length-1)):Le(r)?Re(n,r,0,r.length-1):Le(e.text)&&Te(n,""):e.text!==t.text&&(Le(r)&&Re(n,r,0,r.length-1),Te(n,t.text)))}function ze(e,t){if(De(e,t))Fe(e,t);else{var n=e.elm,r=ke(n);je(t),null!==r&&(_e(r,t.elm,Oe(n)),Re(r,[e],0,0))}return t}var Ue=n("3437"),He=0,Ve=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=Ge("refreshHover"),this.configLayer=Ge("configLayer"),this.storage=t,this._opts=n=Object(m["m"])({},n),this.root=e,this._id="zr"+He++,this._oldVNode=N(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=M("svg");Ne(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",ze(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return ge(e,R(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._backgroundColor,r=this._width,i=this._height,a=R(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress;var s=[];if(n&&"none"!==n){var l=Object(o["p"])(n),u=l.color,c=l.opacity;this._bgVNode=L("rect","bg",{width:r,height:i,x:"0",y:"0",id:"0",fill:u,"fill-opacity":c}),s.push(this._bgVNode)}else this._bgVNode=null;var d=e.compress?null:this._mainVNode=L("g","main",{},[]);this._paintList(t,a,d?d.children:s),d&&s.push(d);var f=Object(m["H"])(Object(m["F"])(a.defs),(function(e){return a.defs[e]}));if(f.length&&s.push(L("defs","defs",{},f)),e.animation){var h=P(a.cssNodes,a.cssAnims,{newline:!0});if(h){var p=L("style","stl",{},[],h);s.push(p)}}return N(r,i,s,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},j(this.renderToVNode({animation:Object(m["P"])(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(m["P"])(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var n=Object(o["p"])(e),r=n.color,i=n.opacity;t.elm.setAttribute("fill",r),i<1&&t.elm.setAttribute("fill-opacity",i)}},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r,i,o=e.length,a=[],s=0,l=0,u=0;u<o;u++){var c=e[u];if(!c.invisible){var d=c.__clipPaths,f=d&&d.length||0,h=i&&i.length||0,p=void 0;for(p=Math.max(f-1,h-1);p>=0;p--)if(d&&i&&d[p]===i[p])break;for(var g=h-1;g>p;g--)s--,r=a[s-1];for(var v=p+1;v<f;v++){var y={};be(d[v],y,t);var m=L("g","clip-g-"+l++,y,[]);(r?r.children:n).push(m),a[s++]=m,r=m}i=d;var b=ge(c,t);b&&(r?r.children:n).push(b)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),r&&i&&(i.style.display="none",e=Object(Ue["b"])(r,0,n),t=Object(Ue["b"])(r,1,n),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}var a=this._svgDom;a&&(a.setAttribute("width",e),a.setAttribute("height",t))}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return e?(t=Object(o["c"])(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+t},e}();function Ge(e){return function(){0}}var qe=Ve;function We(e){e.registerPainter("svg",qe)}var Ye=n("9ab4"),Ke=n("4319");function Xe(e){return null==e?0:e.length||1}function Ze(e){return e}var $e=function(){function e(e,t,n,r,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||Ze,this._newKeyGetter=r||Ze,this.context=i,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=r[o],s=n[a],l=Xe(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=Xe(l),d=Xe(u);if(c>1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),r[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var f=0;f<c;f++)this._remove&&this._remove(l[f]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],o=Xe(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[r](e[o],o);if(i||(n[o]=a),t){var s=t[a],l=Xe(s);0===l?(t[a]=o,i&&n.push(a)):1===l?t[a]=[s,o]:s.push(o)}}},e}(),Je=$e,Qe=n("2b17"),et=n("07fd"),tt=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function nt(e,t){var n={},r=n.encode={},i=Object(m["f"])(),o=[],a=[],s={};Object(m["k"])(e.dimensions,(function(t){var n=e.getDimensionInfo(t),l=n.coordDim;if(l){0;var u=n.coordDimIndex;rt(r,l)[u]=t,n.isExtraCoord||(i.set(l,1),ot(n.type)&&(o[0]=t),rt(s,l)[u]=e.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(t)}et["i"].each((function(e,t){var i=rt(r,t),o=n.otherDims[t];null!=o&&!1!==o&&(i[o]=n.name)}))}));var l=[],u={};i.each((function(e,t){var n=r[t];u[t]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Object(m["H"])(l,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var d=r.tooltip;return d&&d.length?a=d.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new tt(s,t),n}function rt(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function it(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function ot(e){return!("ordinal"===e||"time"===e)}var at=function(){function e(e){this.otherDims={},null!=e&&m["m"](this,e)}return e}(),st=at,lt=n("e0d3"),ut=n("861c"),ct=n("ec6f"),dt=n("d0ce"),ft=Object(lt["o"])(),ht={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},pt=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=yt(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return Object(m["P"])(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Object(ct["f"])(this.source),n=!mt(e),r="",i=[],o=0,a=0;o<e;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=t?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var d=this.getSourceDimension(o);d&&(s=t?d.name:null,l=d.type)}i.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=ht[l]||"f",u&&(r+=u.uid),r+="$"}var f=this.source,h=[f.seriesLayoutBy,f.startIndex,r].join("$$");return{dimensions:i,hash:h}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(t);o&&(r=o.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function gt(e){return e instanceof pt}function vt(e){for(var t=Object(m["f"])(),n=0;n<(e||[]).length;n++){var r=e[n],i=Object(m["A"])(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function yt(e){var t=ft(e);return t.dimNameMap||(t.dimNameMap=vt(e.dimensionsDefine))}function mt(e){return e>30}var bt,xt,_t,wt,St,kt,Ot,Tt=m["A"],Et=m["H"],Ct="undefined"===typeof Int32Array?Array:Int32Array,At="e\0\0",Mt=-1,Lt=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],It=["_approximateExtent"],Dt=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;gt(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],d=m["C"](c)?new st({name:c}):c instanceof st?c:new st(c),f=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var h=d.otherDims=d.otherDims||{};o.push(f),i[f]=d,null!=l[f]&&(s=!0),d.createInvertedIndices&&(a[f]=[]),0===h.itemName&&(this._nameDimIdx=u),0===h.itemId&&(this._idDimIdx=u),r&&(d.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var p=this._dimIdxToName=m["f"]();m["k"](o,(function(e){p.set(i[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(m["z"](e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r,i=this;if(e instanceof dt["b"]&&(r=e),!r){var o=this.dimensions,a=Object(ct["e"])(e)||m["u"](e)?new Qe["a"](e,o.length):e;r=new dt["b"];var s=Et(o,(function(e){return{type:i._dimInfos[e].type,property:e}}));r.initData(a,s,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=nt(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=t[s],o&&Ot(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==et["g"]&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===et["f"];if(s&&!r.pure)for(var l=[],u=e;u<t;u++){var c=r.getItem(u,l);if(!this.hasItemOption&&Object(lt["m"])(c)&&(this.hasItemOption=!0),c){var d=c.name;null==i[u]&&null!=d&&(i[u]=Object(lt["e"])(d,null));var f=c.id;null==o[u]&&null!=f&&(o[u]=Object(lt["e"])(f,null))}}if(this._shouldMakeIdFromName())for(u=e;u<t;u++)Ot(this,u);bt(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){Tt(e)?m["m"](this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=_t(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return xt(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return m["t"](e)?r.getValues(Et(e,(function(e){return n._getStoreDimIndex(e)})),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];var r=n[t];return null==r||isNaN(r)?Mt:r},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){m["w"](e)&&(n=t,t=e,e=[]);var r=n||this,i=Et(wt(e),this._getStoreDimIndex,this);this._store.each(i,r?m["c"](t,r):t)},e.prototype.filterSelf=function(e,t,n){m["w"](e)&&(n=t,t=e,e=[]);var r=n||this,i=Et(wt(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?m["c"](t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=m["F"](e),i=[];return m["k"](r,(function(r){var o=t._getStoreDimIndex(r);n[o]=e[r],i.push(o)})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){m["w"](e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,(function(){r.push(t&&t.apply(this,arguments))}),n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,o=Et(wt(e),this._getStoreDimIndex,this),a=kt(this);return a._store=this._store.map(o,i?m["c"](t,i):t),a},e.prototype.modify=function(e,t,n,r){var i=n||r||this;var o=Et(wt(e),this._getStoreDimIndex,this);this._store.modify(o,i?m["c"](t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=kt(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.lttbDownSample=function(e,t){var n=kt(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Ke["a"](n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new Je(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return xt(e,t)}),(function(e){return xt(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},Tt(e)?m["m"](this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(i=this.getVisual(t),m["t"](i)?i=i.slice():Tt(i)&&(i=m["m"]({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Tt(t)?m["m"](r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Tt(e)?m["m"](this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?m["m"](this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Object(ut["b"])(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){m["k"](this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Et(this.dimensions,this._getDimInfo,this),this.hostModel)),St(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];m["w"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(m["S"](arguments)))})},e.internalField=function(){bt=function(e){var t=e._invertedIndicesMap;m["k"](t,(function(n,r){var i=e._dimInfos[r],o=i.ordinalMeta,a=e._store;if(o){n=t[r]=new Ct(o.categories.length);for(var s=0;s<n.length;s++)n[s]=Mt;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},_t=function(e,t,n){return Object(lt["e"])(e._getCategory(t,n),null)},xt=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=_t(e,e._idDimIdx,t)),null==n&&(n=At+t),n},wt=function(e){return m["t"](e)||(e=null!=e?[e]:[]),e},kt=function(t){var n=new e(t._schema?t._schema:Et(t.dimensions,t._getDimInfo,t),t.hostModel);return St(n,t),n},St=function(e,t){m["k"](Lt.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,m["k"](It,(function(n){e[n]=m["d"](t[n])})),e._calculationInfo=m["m"]({},t._calculationInfo)},Ot=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=r[t];if(null==a&&null!=i&&(n[t]=a=_t(e,i,t)),null==s&&null!=o&&(r[t]=s=_t(e,o,t)),null==s&&null!=a){var l=e._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[t]=s}}}(),e}(),jt=Dt,Pt=n("0f99");function Rt(e,t){Object(ct["e"])(e)||(e=Object(ct["c"])(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Object(m["f"])(),o=[],a=Bt(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&mt(a),l=r===e.dimensionsDefine,u=l?yt(e):vt(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var d=Object(m["f"])(c),f=new dt["a"](a),h=0;h<f.length;h++)f[h]=-1;function p(e){var t=f[e];if(t<0){var n=r[e],i=Object(m["A"])(n)?n:{name:n},a=new st,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return f[e]=l,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(h=0;h<a;h++)p(h);d.each((function(e,t){var n=Object(lt["r"])(e).slice();if(1===n.length&&!Object(m["C"])(n[0])&&n[0]<0)d.set(t,!1);else{var r=d.set(t,[]);Object(m["k"])(n,(function(e,n){var i=Object(m["C"])(e)?u.get(e):e;null!=i&&i<a&&(r[n]=i,v(p(i),t,n))}))}}));var g=0;function v(e,t,n){null!=et["i"].get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0))}Object(m["k"])(n,(function(e){var t,n,r,i;if(Object(m["C"])(e))t=e,i={};else{i=e,t=i.name;var o=i.ordinalMeta;i.ordinalMeta=null,i=Object(m["m"])({},i),i.ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(!1!==s){if(s=Object(lt["r"])(s),!s.length)for(var u=0;u<(n&&n.length||1);u++){while(g<a&&null!=p(g).coordDim)g++;g<a&&s.push(g++)}Object(m["k"])(s,(function(e,o){var a=p(e);if(l&&null!=i.type&&(a.type=i.type),v(Object(m["i"])(a,i),t,o),null==a.name&&n){var s=n[o];!Object(m["A"])(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&Object(m["i"])(a.otherDims,r)}))}}));var y=t.generateCoord,b=t.generateCoordCount,x=null!=b;b=y?b||1:0;var _=y||"value";function w(e){null==e.name&&(e.name=e.coordDim)}if(s)Object(m["k"])(o,(function(e){w(e)})),o.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var S=0;S<a;S++){var k=p(S),O=k.coordDim;null==O&&(k.coordDim=Ft(_,i,x),k.coordDimIndex=0,(!y||b<=0)&&(k.isExtraCoord=!0),b--),w(k),null!=k.type||Object(Pt["b"])(e,S)!==Pt["a"].Must&&(!k.isExtraCoord||null==k.otherDims.itemName&&null==k.otherDims.seriesName)||(k.type="ordinal")}return Nt(o),new pt({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Nt(e){for(var t=Object(m["f"])(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function Bt(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Object(m["k"])(t,(function(e){var t;Object(m["A"])(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))})),i}function Ft(e,t,n){var r=t.data;if(n||r.hasOwnProperty(e)){var i=0;while(r.hasOwnProperty(e+i))i++;e+=i}return t.set(e,!0),e}var zt=n("1f39"),Ut=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(m["f"])(),this.categoryAxisMap=Object(m["f"])(),this.coordSysName=e}return e}();function Ht(e){var t=e.get("coordinateSystem"),n=new Ut(t),r=Vt[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Vt={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",lt["b"]).models[0],o=e.getReferringComponents("yAxis",lt["b"]).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Gt(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),Gt(o)&&(r.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",lt["b"]).models[0];t.coordSysDims=["single"],n.set("single",i),Gt(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",lt["b"]).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Gt(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),Gt(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();Object(m["k"])(o.parallelAxisIndex,(function(e,o){var s=i.getComponent("parallelAxis",e),l=a[o];n.set(l,s),Gt(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function Gt(e){return"category"===e.get("type")}function qt(e,t,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;Wt(t)?r=t:(i=t.schema,r=i.dimensions,o=t.store);var l,u,c,d,f=!(!e||!e.get("stack"));if(Object(m["k"])(r,(function(e,t){Object(m["C"])(e)&&(r[t]=e={name:e}),f&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,p=u.type,g=0;Object(m["k"])(r,(function(e){e.coordDim===h&&g++}));var v={name:c,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:d,coordDim:d,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(d,p),y.storeDimIndex=o.ensureCalculationDimension(c,p)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:c}}function Wt(e){return!gt(e.schema)}function Yt(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Kt(e,t){return Yt(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Xt(e,t){var n,r=e.get("coordinateSystem"),i=zt["a"].get(r);return t&&t.coordSysDims&&(n=m["H"](t.coordSysDims,(function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=it(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function Zt(e,t,n){var r,i;return n&&m["k"](e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)})),i||null==r||(e[r].otherDims.itemName=0),r}function $t(e,t,n){n=n||{};var r,i=t.getSourceManager(),o=!1;e?(o=!0,r=Object(ct["c"])(e)):(r=i.getSource(),o=r.sourceFormat===et["f"]);var a=Ht(t),s=Xt(t,a),l=n.useEncodeDefaulter,u=m["w"](l)?l:l?m["h"](Pt["c"],s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},d=Rt(r,c),f=Zt(d.dimensions,n.createInvertedIndices,a),h=o?null:i.getSharedDataStore(d),p=qt(t,{schema:d,store:h}),g=new jt(d,t);g.setCalculationInfo(p);var v=null!=f&&Jt(r)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:h,null,v),g}function Jt(e){if(e.sourceFormat===et["f"]){var t=Qt(e.data||[]);return!m["t"](Object(lt["h"])(t))}}function Qt(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}var en=$t,tn=n("4f85"),nn=n("a15a"),rn=n("2dc5"),on=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Ye["a"])(t,e),t.prototype.getInitialData=function(e){return en(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new rn["a"],n=Object(nn["a"])("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*e.itemHeight,s=Object(nn["a"])(o,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?i:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(tn["b"]),an=on,sn=n("deab"),ln=n("2306"),un=n("7d6c");function cn(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Object(Qe["e"])(e,t,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(Object(Qe["e"])(e,t,n[a]));return o.join(" ")}}function dn(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Object(m["t"])(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}var fn=n("7837"),hn=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.updateData(t,n,r,i),o}return Object(Ye["a"])(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var o=Object(nn["a"])(e,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=pn,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Object(un["r"])(this.childAt(0))},t.prototype.downplay=function(){Object(un["C"])(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{var d=this.childAt(0);d.silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(f):sn["h"](d,f,a,n),Object(sn["g"])(d)}if(this._updateCommon(e,n,s,r,i),l){d=this.childAt(0);if(!u){f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,sn["c"](d,f,a,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var o,a,l,u,c,d,f,h,p,g=this.childAt(0),v=e.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,c=r.blurScope,f=r.labelStatesModels,h=r.hoverScale,p=r.cursorStyle,d=r.emphasisDisabled),!r||e.hasItemOption){var y=r&&r.itemModel?r.itemModel:e.getItemModel(t),b=y.getModel("emphasis");o=b.getModel("itemStyle").getItemStyle(),l=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),u=b.get("focus"),c=b.get("blurScope"),d=b.get("disabled"),f=Object(fn["e"])(y),h=b.getShallow("scale"),p=y.getShallow("cursor")}var x=e.getItemVisual(t,"symbolRotate");g.attr("rotation",(x||0)*Math.PI/180||0);var _=Object(nn["b"])(e.getItemVisual(t,"symbolOffset"),n);_&&(g.x=_[0],g.y=_[1]),p&&g.attr("cursor",p);var w=e.getItemVisual(t,"style"),S=w.fill;if(g instanceof s["a"]){var k=g.style;g.useStyle(Object(m["m"])({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},w))}else g.__isEmptyBrush?g.useStyle(Object(m["m"])({},w)):g.useStyle(w),g.style.decal=null,g.setColor(S,i&&i.symbolInnerColor),g.style.strokeNoScale=!0;var O=e.getItemVisual(t,"liftZ"),T=this._z2;null!=O?null==T&&(this._z2=g.z2,g.z2+=O):null!=T&&(g.z2=T,this._z2=null);var E=i&&i.useNameLabel;function C(t){return E?e.getName(t):cn(e,t)}Object(fn["g"])(g,f,{labelFetcher:v,labelDataIndex:t,defaultText:C,inheritColor:S,defaultOpacity:w.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var A=g.ensureState("emphasis");if(A.style=o,g.ensureState("select").style=l,g.ensureState("blur").style=a,h){var M=Math.max(Object(m["z"])(h)?h:1.1,3/this._sizeY);A.scaleX=this._sizeX*M,A.scaleY=this._sizeY*M}this.setSymbolScale(1),Object(un["J"])(this,u,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Object(ut["a"])(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&sn["e"](a,{style:{opacity:0}},t,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();sn["e"](r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return Object(nn["c"])(e.getItemVisual(t,"symbolSize"))},t}(rn["a"]);function pn(e,t){this.parent.drift(e,t)}var gn=hn;function vn(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function yn(e){return null==e||Object(m["A"])(e)||(e={isIgnore:e}),e||{}}function mn(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Object(fn["e"])(t),cursorStyle:t.get("cursor")}}var bn=function(){function e(e){this.group=new rn["a"],this._SymbolCtor=e||gn}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=yn(t);var n=this.group,r=e.hostModel,i=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=mn(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add((function(r){var i=u(r);if(vn(e,i,r,t)){var a=new o(e,r,s,l);a.setPosition(i),e.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,d){var f=i.getItemGraphicEl(d),h=u(c);if(vn(e,h,c,t)){var p=e.getItemVisual(c,"symbol")||"circle",g=f&&f.getSymbolType&&f.getSymbolType();if(!f||g&&g!==p)n.remove(f),f=new o(e,c,s,l),f.setPosition(h);else{f.updateData(e,c,s,l);var v={x:h[0],y:h[1]};a?f.attr(v):sn["h"](f,v,r)}n.add(f),e.setItemGraphicEl(c,f)}else n.remove(f)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),r)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=mn(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=yn(n);for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(vn(t,o,i,n)){var a=new this._SymbolCtor(t,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){ln["traverseElements"](this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}(),xn=bn;function _n(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=wn(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(a),c="x"===s||"radius"===s?1:0,d=Object(m["H"])(e.dimensions,(function(e){return t.mapDimension(e)})),f=!1,h=t.getCalculationInfo("stackResultDimension");return Yt(t,d[0])&&(f=!0,d[0]=h),Yt(t,d[1])&&(f=!0,d[1]=h),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function wn(e,t){var n=0,r=e.scale.getExtent();return"start"===t?n=r[0]:"end"===t?n=r[1]:Object(m["z"])(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function Sn(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var kn="undefined"!==typeof Float32Array,On=kn?Float32Array:Array;function Tn(e){return Object(m["t"])(e)?kn?new Float32Array(e):e:new On(e)}function En(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 Cn(e,t,n,r,i,o,a,s){for(var l=En(e,t),u=[],c=[],d=[],f=[],h=[],p=[],g=[],v=_n(i,t,a),y=e.getLayout("points")||[],m=t.getLayout("points")||[],b=0;b<l.length;b++){var x=l[b],_=!0,w=void 0,S=void 0;switch(x.cmd){case"=":w=2*x.idx,S=2*x.idx1;var k=y[w],O=y[w+1],T=m[S],E=m[S+1];(isNaN(k)||isNaN(O))&&(k=T,O=E),u.push(k,O),c.push(T,E),d.push(n[w],n[w+1]),f.push(r[S],r[S+1]),g.push(t.getRawIndex(x.idx1));break;case"+":var C=x.idx,A=v.dataDimsForPoint,M=i.dataToPoint([t.get(A[0],C),t.get(A[1],C)]);S=2*C,u.push(M[0],M[1]),c.push(m[S],m[S+1]);var L=Sn(v,i,t,C);d.push(L[0],L[1]),f.push(r[S],r[S+1]),g.push(t.getRawIndex(C));break;case"-":_=!1}_&&(h.push(x),p.push(p.length))}p.sort((function(e,t){return g[e]-g[t]}));var I=u.length,D=Tn(I),j=Tn(I),P=Tn(I),R=Tn(I),N=[];for(b=0;b<p.length;b++){var B=p[b],F=2*b,z=2*B;D[F]=u[z],D[F+1]=u[z+1],j[F]=c[z],j[F+1]=c[z+1],P[F]=d[z],P[F+1]=d[z+1],R[F]=f[z],R[F+1]=f[z+1],N[b]=h[B]}return{current:D,next:j,stackedOnCurrent:P,stackedOnNext:R,status:N}}var An=n("48a9"),Mn=n("4a3f"),Ln=Math.min,In=Math.max;function Dn(e,t){return isNaN(e)||isNaN(t)}function jn(e,t,n,r,i,o,a,s,l){for(var u,c,d,f,h,p,g=n,v=0;v<r;v++){var y=t[2*g],m=t[2*g+1];if(g>=i||g<0)break;if(Dn(y,m)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](y,m),d=y,f=m;else{var b=y-u,x=m-c;if(b*b+x*x<.5){g+=o;continue}if(a>0){var _=g+o,w=t[2*_],S=t[2*_+1];while(w===y&&S===m&&v<r)v++,_+=o,g+=o,w=t[2*_],S=t[2*_+1],y=t[2*g],m=t[2*g+1],b=y-u,x=m-c;var k=v+1;if(l)while(Dn(w,S)&&k<r)k++,_+=o,w=t[2*_],S=t[2*_+1];var O=.5,T=0,E=0,C=void 0,A=void 0;if(k>=r||Dn(w,S))h=y,p=m;else{T=w-u,E=S-c;var M=y-u,L=w-y,I=m-c,D=S-m,j=void 0,P=void 0;if("x"===s){j=Math.abs(M),P=Math.abs(L);var R=T>0?1:-1;h=y-R*j*a,p=m,C=y+R*P*a,A=m}else if("y"===s){j=Math.abs(I),P=Math.abs(D);var N=E>0?1:-1;h=y,p=m-N*j*a,C=y,A=m+N*P*a}else j=Math.sqrt(M*M+I*I),P=Math.sqrt(L*L+D*D),O=P/(P+j),h=y-T*a*(1-O),p=m-E*a*(1-O),C=y+T*a*O,A=m+E*a*O,C=Ln(C,In(w,y)),A=Ln(A,In(S,m)),C=In(C,Ln(w,y)),A=In(A,Ln(S,m)),T=C-y,E=A-m,h=y-T*j/P,p=m-E*j/P,h=Ln(h,In(u,y)),p=Ln(p,In(c,m)),h=In(h,Ln(u,y)),p=In(p,Ln(c,m)),T=y-h,E=m-p,C=y+T*P/j,A=m+E*P/j}e.bezierCurveTo(d,f,h,p,y,m),d=C,f=A}else e.lineTo(y,m)}u=y,c=m,g+=o}return v}var Pn=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Rn=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return Object(Ye["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Pn},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0;i--)if(!Dn(n[2*i-2],n[2*i-1]))break;for(;r<i;r++)if(!Dn(n[2*r],n[2*r+1]))break}while(r<i)r+=jn(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path,o=i.data,a=z["a"].CMD,s="x"===t,l=[],u=0;u<o.length;){var c=o[u++],d=void 0,f=void 0,h=void 0,p=void 0,g=void 0,v=void 0,y=void 0;switch(c){case a.M:n=o[u++],r=o[u++];break;case a.L:if(d=o[u++],f=o[u++],y=s?(e-n)/(d-n):(e-r)/(f-r),y<=1&&y>=0){var m=s?(f-r)*y+r:(d-n)*y+n;return s?[e,m]:[m,e]}n=d,r=f;break;case a.C:d=o[u++],f=o[u++],h=o[u++],p=o[u++],g=o[u++],v=o[u++];var b=s?Object(Mn["f"])(n,d,h,g,e,l):Object(Mn["f"])(r,f,p,v,e,l);if(b>0)for(var x=0;x<b;x++){var _=l[x];if(_<=1&&_>=0){m=s?Object(Mn["a"])(r,f,p,v,_):Object(Mn["a"])(n,d,h,g,_);return s?[e,m]:[m,e]}}n=g,r=v;break}}},t}(a["b"]),Nn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t}(Pn),Bn=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return Object(Ye["a"])(t,e),t.prototype.getDefaultShape=function(){return new Nn},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!Dn(n[2*o-2],n[2*o-1]))break;for(;i<o;i++)if(!Dn(n[2*i],n[2*i+1]))break}while(i<o){var s=jn(e,n,i,o,o,1,t.smooth,a,t.connectNulls);jn(e,r,i+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),i+=s+1,e.closePath()}},t}(a["b"]),Fn=n("e887"),zn=n("c7a2"),Un=n("4aa2"),Hn=n("3842");function Vn(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var d=new zn["a"]({shape:{x:a,y:s,width:l,height:u}});if(t){var f=e.getBaseAxis(),h=f.isHorizontal(),p=f.inverse;h?(p&&(d.shape.x+=l),d.shape.width=0):(p||(d.shape.y+=u),d.shape.height=0);var g=Object(m["w"])(i)?function(e){i(e,d)}:null;sn["c"](d,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return d}function Gn(e,t,n){var r=e.getArea(),i=Object(Hn["u"])(r.r0,1),o=Object(Hn["u"])(r.r,1),a=new Un["a"]({shape:{cx:Object(Hn["u"])(e.cx,1),cy:Object(Hn["u"])(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s="angle"===e.getBaseAxis().dim;s?a.shape.endAngle=r.startAngle:a.shape.r=i,sn["c"](a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function qn(e,t,n,r,i){return e?"polar"===e.type?Gn(e,t,n):"cartesian2d"===e.type?Vn(e,t,n,r,i):null:null}function Wn(e,t){return e.type===t}var Yn=n("eda2"),Kn=n("41ef");function Xn(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function Zn(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function $n(e,t){var n=Zn(e),r=n[0],i=n[1],o=Zn(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Jn(e){return m["z"](e)?e:e?.5:0}function Qn(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=Tn(2*r),o=0;o<r;o++){var a=Sn(n,e,t,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}function er(e,t,n,r){var i=t.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],d=[];if(r){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||d.push(e[s],e[s+1]);e=d}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var f=(u[o]+c[o])/2,h=[];l[o]=h[o]=f,l[1-o]=u[1-o],h[1-o]=c[1-o],a.push(l[0],l[1]),a.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function tr(e,t){var n,r,i=[],o=e.length;function a(e,t,n){var r=e.coord,i=(n-r)/(t.coord-r),o=Object(Kn["b"])(i,[e.color,t.color]);return{coord:n,color:o}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){r?i.push(a(r,l,t)):n&&i.push(a(n,l,0),a(n,l,t));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function nr(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,"x"===i||"y"===i){o=r[a];break}}if(o){var l=t.getAxis(i),u=m["H"](o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),c=u.length,d=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=tr(u,"x"===i?n.getWidth():n.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=f[0].coord-p,v=f[h-1].coord+p,y=v-g;if(y<.001)return"transparent";m["k"](f,(function(e){e.offset=(e.coord-g)/y})),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var b=new An["a"](0,0,0,0,f,!0);return b[i]=g,b[i+"2"]=v,b}}}function rr(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!ir(o,t))){var a=t.mapDimension(o.dim),s={};return m["k"](o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function ir(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*gn.getSymbolSize(t,a)[e.isHorizontal()?1:0]>r)return!1;return!0}function or(e,t){return isNaN(e)||isNaN(t)}function ar(e){for(var t=e.length/2;t>0;t--)if(!or(e[2*t-2],e[2*t-1]))break;return t-1}function sr(e,t){return[e[2*t],e[2*t+1]]}function lr(e,t,n){for(var r,i,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=e[2*u+a],!isNaN(i)&&!isNaN(e[2*u+1-a]))if(0!==u){if(r<=t&&i>=t||r>=t&&i<=t){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}function ur(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<un["g"].length;t++)if(e.get([un["g"][t],"endLabel","show"]))return!0;return!1}function cr(e,t,n,r){if(Wn(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=ur(r)?function(n,r){e._endLabelOnDuring(n,r,a,s,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Vn(t,n,r,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!r.get("clip",!0)){var d=c.shape,f=Math.max(d.width,d.height);u?(d.y-=f,d.height+=2*f):(d.x-=f,d.width+=2*f)}return l&&l(1,c),c}return Gn(t,n,r)}function dr(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var fr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t.prototype.init=function(){var e=new rn["a"],t=new xn;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,d=this._coordSys,f=this._symbolDraw,h=this._polyline,p=this._polygon,g=this._lineGroup,v=e.get("animation"),y=!l.isEmpty(),b=l.get("origin"),x=_n(i,a,b),_=y&&Qn(i,a,x),w=e.get("showSymbol"),S=e.get("connectNulls"),k=w&&!c&&rr(e,a,i),O=this._data;O&&O.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),O.setItemGraphicEl(t,null))})),w||f.remove(),o.add(g);var T,E=!c&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(T=i.getArea(),null!=T.width?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var C=nr(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(h&&d.type===i.type&&E===this._step){y&&!p?p=this._newPolygon(u,_):p&&!y&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,Object(Yn["b"])(C));var A=g.getClipPath();if(A){var M=cr(this,i,!1,e);sn["c"](A,{shape:M.shape},e)}else g.setClipPath(cr(this,i,!0,e));w&&f.updateData(a,{isIgnore:k,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),Xn(this._stackedOnPoints,_)&&Xn(this._points,u)||(v?this._doUpdateAnimation(a,_,i,n,E,b,S):(E&&(u=er(u,i,E,S),_&&(_=er(_,i,E,S))),h.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:_})))}else w&&f.updateData(a,{isIgnore:k,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),v&&this._initSymbolLabelAnimation(a,i,T),E&&(u=er(u,i,E,S),_&&(_=er(_,i,E,S))),h=this._newPolyline(u),y?p=this._newPolygon(u,_):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,Object(Yn["b"])(C)),g.setClipPath(cr(this,i,!0,e));var L=e.getModel("emphasis"),I=L.get("focus"),D=L.get("blurScope"),j=L.get("disabled");if(h.useStyle(m["i"](s.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),Object(un["I"])(h,e,"lineStyle"),h.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var P=h.getState("emphasis").style;P.lineWidth=+h.style.lineWidth+1}Object(ut["a"])(h).seriesIndex=e.seriesIndex,Object(un["J"])(h,I,D,j);var R=Jn(e.get("smooth")),N=e.get("smoothMonotone");if(h.setShape({smooth:R,smoothMonotone:N,connectNulls:S}),p){var B=a.getCalculationInfo("stackedOnSeries"),F=0;p.useStyle(m["i"](l.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),B&&(F=Jn(B.get("smooth"))),p.setShape({smooth:R,stackedOnSmooth:F,smoothMonotone:N,connectNulls:S}),Object(un["I"])(p,e,"areaStyle"),Object(ut["a"])(p).seriesIndex=e.seriesIndex,Object(un["J"])(p,I,D,j)}var z=function(e){r._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=i,this._stackedOnPoints=_,this._points=u,this._step=E,this._valueOrigin=b,e.get("triggerLineEvent")&&(this.packEventData(e,h),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){Object(ut["a"])(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),o=lt["u"](i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel"),d=e.get("z");s=new gn(i,o),s.x=l,s.y=u,s.setZ(c,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=c,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Fn["a"].prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),o=lt["u"](i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Fn["a"].prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Object(un["H"])(this._polyline,e),t&&Object(un["H"])(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new Rn({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Bn({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(r=o.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===o.dim,i=!0);var s=e.hostModel,l=s.get("animationDuration");m["w"](l)&&(l=l(null));var u=s.get("animationDelay")||0,c=m["w"](u)?u(null):u;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var d=[e.x,e.y],f=void 0,h=void 0,p=void 0;if(n)if(i){var g=n,v=t.pointToCoord(d);r?(f=g.startAngle,h=g.endAngle,p=-v[1]/180*Math.PI):(f=g.r0,h=g.r,p=v[0])}else{var y=n;r?(f=y.x,h=y.x+y.width,p=e.x):(f=y.y+y.height,h=y.y,p=e.y)}var b=h===f?0:(p-f)/(h-f);a&&(b=1-b);var x=m["w"](u)?u(o):l*b+c,_=s.getSymbolPath(),w=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(ur(e)){var i=e.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new J["a"]({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=ar(a);l>=0&&(Object(fn["g"])(o,Object(fn["e"])(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?dn(i,n):cn(i,e)},enableTextSetter:!0},dr(r,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),f=o.get("precision"),h=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),v=p.inverse,y=t.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,b=(g?h:0)*(v?-1:1),x=(g?0:-h)*(v?-1:1),_=g?"x":"y",w=lr(u,m,_),S=w.range,k=S[1]-S[0],O=void 0;if(k>=1){if(k>1&&!d){var T=sr(u,S[0]);s.attr({x:T[0]+b,y:T[1]+x}),i&&(O=c.getRawValue(S[0]))}else{T=l.getPointOn(m,_);T&&s.attr({x:T[0]+b,y:T[1]+x});var E=c.getRawValue(S[0]),C=c.getRawValue(S[1]);i&&(O=lt["k"](n,f,E,C,w.t))}r.lastFrameIndex=S[0]}else{var A=1===e||r.lastFrameIndex>0?S[0]:0;T=sr(u,A);i&&(O=c.getRawValue(A)),s.attr({x:T[0]+b,y:T[1]+x})}i&&Object(fn["f"])(s).setLabelText(O)}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=Cn(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),d=c.current,f=c.stackedOnCurrent,h=c.next,p=c.stackedOnNext;if(i&&(d=er(c.current,n,i,a),f=er(c.stackedOnCurrent,n,i,a),h=er(c.next,n,i,a),p=er(c.stackedOnNext,n,i,a)),$n(d,h)>3e3||l&&$n(f,p)>3e3)return s.stopAnimation(),s.setShape({points:h}),void(l&&(l.stopAnimation(),l.setShape({points:h,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=d;var g={shape:{points:h}};c.current!==d&&(g.shape.__points=c.next),s.stopAnimation(),sn["h"](s,g,u),l&&(l.setShape({points:d,stackedOnPoints:f}),l.stopAnimation(),sn["h"](l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;m<y.length;m++){var b=y[m].cmd;if("="===b){var x=e.getItemGraphicEl(y[m].idx1);x&&v.push({el:x,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<v.length;t++){var n=v[t].el,r=2*v[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Fn["a"]),hr=fr,pr=n("cccd");function gr(e,t){return{seriesType:e,plan:Object(pr["a"])(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(r){var a=Object(m["H"])(r.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Yt(n,a[0])&&(a[0]=l),Yt(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),d=n.getDimensionIndex(a[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=o&&Tn(n*s),a=[],l=[],f=e.start,h=0;f<e.end;f++){var p=void 0;if(1===s){var g=u.get(c,f);p=r.dataToPoint(g,null,l)}else a[0]=u.get(c,f),a[1]=u.get(d,f),p=r.dataToPoint(a,null,l);o?(i[h++]=p[0],i[h++]=p[1]):t.setItemLayout(f,p.slice())}o&&t.setLayout("points",i)}}}}}}var vr={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},yr=function(e){return Math.round(e.length/2)};function mr(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(c||1),f=Math.round(a/d);if(isFinite(f)&&f>1){"lttb"===i&&e.setData(r.lttbDownSample(r.mapDimension(l.dim),1/f));var h=void 0;Object(m["C"])(i)?h=vr[i]:Object(m["w"])(i)&&(h=i),h&&e.setData(r.downSample(r.mapDimension(l.dim),1/f,h,yr))}}}}}function br(e){e.registerChartView(hr),e.registerSeriesModel(an),e.registerLayout(gr("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,mr("line"))}var xr="__ec_stack_";function _r(e){return e.get("stack")||xr+e.seriesIndex}function wr(e){return e.dim+e.index}function Sr(e){var t=[],n=e.axis,r="axis0";if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<e.count;o++)t.push(Object(m["i"])({bandWidth:i,axisKey:r,stackId:xr+o},e));var a=Er(t),s=[];for(o=0;o<e.count;o++){var l=a[r][xr+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function kr(e,t){var n=[];return t.eachSeriesByType(e,(function(e){Lr(e)&&n.push(e)})),n}function Or(e){var t={};Object(m["k"])(e,(function(e){var n=e.coordinateSystem,r=n.getBaseAxis();if("time"===r.type||"value"===r.type)for(var i=e.getData(),o=r.dim+"_"+r.index,a=i.getDimensionIndex(i.mapDimension(r.dim)),s=i.getStore(),l=0,u=s.count();l<u;++l){var c=s.get(a,l);t[o]?t[o].push(c):t[o]=[c]}}));var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort((function(e,t){return e-t}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function Tr(e){var t=Or(e),n=[];return Object(m["k"])(e,(function(e){var r,i=e.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=t[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),d=Math.abs(c[1]-c[0]);r=l?u/d*l:u}else{var f=e.getData();r=Math.abs(a[1]-a[0])/f.count()}var h=Object(Hn["o"])(e.get("barWidth"),r),p=Object(Hn["o"])(e.get("barMaxWidth"),r),g=Object(Hn["o"])(e.get("barMinWidth")||(Ir(e)?.5:1),r),v=e.get("barGap"),y=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:h,barMaxWidth:p,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:wr(o),stackId:_r(e)})})),Er(n)}function Er(e){var t={};Object(m["k"])(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,o=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[r]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var d=e.barGap;null!=d&&(o.gap=d);var f=e.barCategoryGap;null!=f&&(o.categoryGap=f)}));var n={};return Object(m["k"])(t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=e.categoryGap;if(null==o){var a=Object(m["F"])(r).length;o=Math.max(35-4*a,15)+"%"}var s=Object(Hn["o"])(o,i),l=Object(Hn["o"])(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),Object(m["k"])(r,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,u-=r+l*r,c--}else{var r=d;t&&t<r&&(r=Math.min(t,u)),n&&n>r&&(r=n),r!==d&&(e.width=r,u-=r+l*r,c--)}})),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var f,h=0;Object(m["k"])(r,(function(e,t){e.width||(e.width=d),f=e,h+=e.width*(1+l)})),f&&(h-=f.width*l);var p=-h/2;Object(m["k"])(r,(function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:p,width:e.width},p+=e.width*(1+l)}))})),n}function Cr(e,t,n){if(e&&t){var r=e[wr(t)];return null!=r&&null!=n?r[_r(n)]:r}}function Ar(e,t){var n=kr(e,t),r=Tr(n);Object(m["k"])(n,(function(e){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),o=_r(e),a=r[wr(i)][o],s=a.offset,l=a.width;t.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function Mr(e){return{seriesType:e,plan:Object(pr["a"])(),reset:function(e){if(Lr(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=t.getDimensionIndex(t.mapDimension(i.dim)),a=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get("showBackground",!0),l=t.mapDimension(i.dim),u=t.getCalculationInfo("stackResultDimension"),c=Yt(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),f=Dr(r,i),h=Ir(e),p=e.get("barMinHeight")||0,g=u&&t.getDimensionIndex(u),v=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(e,t){var r,i=e.count,l=h&&Tn(3*i),u=h&&s&&Tn(3*i),m=h&&Tn(i),b=n.master.getRect(),x=d?b.width:b.height,_=t.getStore(),w=0;while(null!=(r=e.next())){var S=_.get(c?g:o,r),k=_.get(a,r),O=f,T=void 0;c&&(T=+S-_.get(o,r));var E=void 0,C=void 0,A=void 0,M=void 0;if(d){var L=n.dataToPoint([S,k]);if(c){var I=n.dataToPoint([T,k]);O=I[0]}E=O,C=L[1]+y,A=L[0]-O,M=v,Math.abs(A)<p&&(A=(A<0?-1:1)*p)}else{L=n.dataToPoint([k,S]);if(c){I=n.dataToPoint([k,T]);O=I[1]}E=L[0]+y,C=O,A=v,M=L[1]-O,Math.abs(M)<p&&(M=(M<=0?-1:1)*p)}h?(l[w]=E,l[w+1]=C,l[w+2]=d?A:M,u&&(u[w]=d?b.x:E,u[w+1]=d?C:b.y,u[w+2]=x),m[r]=r):t.setItemLayout(r,{x:E,y:C,width:A,height:M}),w+=3}h&&t.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:d})}}}}}}function Lr(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function Ir(e){return e.pipelineContext&&e.pipelineContext.large}function Dr(e,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}var jr=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.getInitialData=function(e,t){return en(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var t=this.coordinateSystem;if(t&&t.clampData){var n=t.dataToPoint(t.clampData(e)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size"),a=t.getBaseAxis().isHorizontal()?0:1;return n[a]+=i+o/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(tn["b"]);tn["b"].registerClass(jr);var Pr=jr,Rr=n("8918"),Nr=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.getInitialData=function(){return en(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Object(Rr["d"])(Pr.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Pr),Br=Nr,Fr=n("88b3"),zr=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),Ur=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return Object(Ye["a"])(t,e),t.prototype.getDefaultShape=function(){return new zr},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-i),s=i+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,d=2*Math.PI,f=c?u-l<d:l-u<d;f||(l=u-(c?d:-d));var h=Math.cos(l),p=Math.sin(l),g=Math.cos(u),v=Math.sin(u);f?(e.moveTo(h*i+n,p*i+r),e.arc(h*s+n,p*s+r,a,-Math.PI+l,l,!c)):e.moveTo(h*o+n,p*o+r),e.arc(n,r,o,l,u,!c),e.arc(g*s+n,v*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&e.arc(n,r,i,u,l,c)},t}(a["b"]),Hr=Ur;function Vr(e,t){t=t||{};var n=t.isRoundCap;return function(t,r,i){var o=r.position;if(!o||o instanceof Array)return Object(l["c"])(t,r,i);var a=e(o),s=null!=r.distance?r.distance:5,u=this.shape,c=u.cx,d=u.cy,f=u.r,h=u.r0,p=(f+h)/2,g=u.startAngle,v=u.endAngle,y=(g+v)/2,m=n?Math.abs(f-h)/2:0,b=Math.cos,x=Math.sin,_=c+f*b(g),w=d+f*x(g),S="left",k="top";switch(a){case"startArc":_=c+(h-s)*b(y),w=d+(h-s)*x(y),S="center",k="top";break;case"insideStartArc":_=c+(h+s)*b(y),w=d+(h+s)*x(y),S="center",k="bottom";break;case"startAngle":_=c+p*b(g)+qr(g,s+m,!1),w=d+p*x(g)+Wr(g,s+m,!1),S="right",k="middle";break;case"insideStartAngle":_=c+p*b(g)+qr(g,-s+m,!1),w=d+p*x(g)+Wr(g,-s+m,!1),S="left",k="middle";break;case"middle":_=c+p*b(y),w=d+p*x(y),S="center",k="middle";break;case"endArc":_=c+(f+s)*b(y),w=d+(f+s)*x(y),S="center",k="bottom";break;case"insideEndArc":_=c+(f-s)*b(y),w=d+(f-s)*x(y),S="center",k="top";break;case"endAngle":_=c+p*b(v)+qr(v,s+m,!0),w=d+p*x(v)+Wr(v,s+m,!0),S="left",k="middle";break;case"insideEndAngle":_=c+p*b(v)+qr(v,-s+m,!0),w=d+p*x(v)+Wr(v,-s+m,!0),S="right",k="middle";break;default:return Object(l["c"])(t,r,i)}return t=t||{},t.x=_,t.y=w,t.align=S,t.verticalAlign=k,t}}function Gr(e,t,n,r){if(Object(m["z"])(r))e.setTextConfig({rotation:r});else if(Object(m["t"])(t))e.setTextConfig({rotation:0});else{var i,o=e.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void e.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}}function qr(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Wr(e,t,n){return t*Math.cos(e)*(n?1:-1)}var Yr=Math.max,Kr=Math.min;function Xr(e,t){var n=e.getArea&&e.getArea();if(Wn(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}var Zr=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Object(ln["traverseElements"])(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,d=Qr(e,l);d&&this._enableRealtimeSort(d,a,n);var f=e.get("clip",!0)||d,h=Xr(l,a);o.removeClipPath();var p=e.get("roundCap",!0),g=e.get("showBackground",!0),v=e.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],b=this._backgroundEls,x=r&&r.isInitSort,_=r&&"changeAxisOrder"===r.type;function w(e){var t=oi[l.type](a,e),n=vi(l,i,t);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",y),m[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),r=oi[l.type](a,t,n);if(g&&w(t),a.hasValue(t)&&ii[l.type](r)){var s=!1;f&&(s=$r[l.type](h,r));var v=Jr[l.type](e,a,t,r,i,c,u.model,!1,p);d&&(v.forceLabelAnimation=!0),li(v,a,t,n,r,e,i,"polar"===l.type),x?v.attr({shape:r}):d?ei(d,c,v,r,t,i,!1,!1):Object(sn["c"])(v,{shape:r},e,t),a.setItemGraphicEl(t,v),o.add(v),v.ignore=s}})).update((function(t,n){var r=a.getItemModel(t),S=oi[l.type](a,t,r);if(g){var k=void 0;0===b.length?k=w(n):(k=b[n],k.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&k.setShape("r",y),m[t]=k);var O=oi[l.type](a,t),T=gi(i,O,l);Object(sn["h"])(k,{shape:T},c,t)}var E=s.getItemGraphicEl(n);if(a.hasValue(t)&&ii[l.type](S)){var C=!1;if(f&&(C=$r[l.type](h,S),C&&o.remove(E)),E?Object(sn["g"])(E):E=Jr[l.type](e,a,t,S,i,c,u.model,!!E,p),d&&(E.forceLabelAnimation=!0),_){var A=E.getTextContent();if(A){var M=Object(fn["f"])(A);null!=M.prevValue&&(M.prevValue=M.value)}}else li(E,a,t,r,S,e,i,"polar"===l.type);x?E.attr({shape:S}):d?ei(d,c,E,S,t,i,!0,_):Object(sn["h"])(E,{shape:S},e,t,null),a.setItemGraphicEl(t,E),E.ignore=C,o.add(E)}else o.remove(E)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&Object(sn["f"])(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new rn["a"]);S.removeAll();for(var k=0;k<m.length;++k)S.add(m[k]);o.add(S),this._backgroundEls=m,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),fi(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),fi(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&qn(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),(function(e,t){var i=n(t);i=null==i?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})})),r.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:Object(m["H"])(r,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){Object(sn["f"])(t,e,Object(ut["a"])(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Fn["a"]),$r={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,o=e.y+e.height,a=Yr(t.x,e.x),s=Kr(t.x+t.width,i),l=Yr(t.y,e.y),u=Kr(t.y+t.height,o),c=s<a,d=u<l;return t.x=c&&a>i?s:a,t.y=d&&l>o?u:l,t.width=c?0:s-a,t.height=d?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=Kr(t.r,e.r),o=Yr(t.r0,e.r0);t.r=i,t.r0=o;var a=i-o<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return a}},Jr={cartesian2d:function(e,t,n,r,i,o,a,s,l){var u=new zn["a"]({shape:Object(m["m"])({},r),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,d=i?"height":"width";c[d]=0}return u},polar:function(e,t,n,r,i,o,a,s,l){var u=!i&&l?Hr:Un["a"],c=new u({shape:r,z2:1});c.name="item";var d=si(i);if(c.calculateTextPosition=Vr(d,{isRoundCap:u===Hr}),o){var f=c.shape,h=i?"r":"endAngle",p={};f[h]=i?0:r.startAngle,p[h]=r[h],(s?sn["h"]:sn["c"])(c,{shape:p},o)}return c}};function Qr(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function ei(e,t,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?sn["h"]:sn["c"])(n,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(a?sn["h"]:sn["c"])(n,{shape:u},c,i)}function ti(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var ni=["x","y","width","height"],ri=["cx","cy","r","startAngle","endAngle"],ii={cartesian2d:function(e){return!ti(e,ni)},polar:function(e){return!ti(e,ri)}},oi={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?ui(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function ai(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function si(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function li(e,t,n,r,i,o,a,s){var l=t.getItemVisual(n,"style");s||e.setShape("r",r.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=r.getShallow("cursor");u&&e.attr("cursor",u);var c=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=Object(fn["e"])(r);Object(fn["g"])(e,d,{labelFetcher:o,labelDataIndex:n,defaultText:cn(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var f=e.getTextContent();if(s&&f){var h=r.get(["label","position"]);e.textConfig.inside="middle"===h||null,Gr(e,"outside"===h?c:h,si(a),r.get(["label","rotate"]))}Object(fn["h"])(f,d,o.getRawValue(n),(function(e){return dn(t,e)}));var p=r.getModel(["emphasis"]);Object(un["J"])(e,p.get("focus"),p.get("blurScope"),p.get("disabled")),Object(un["I"])(e,r),ai(i)&&(e.style.fill="none",e.style.stroke="none",Object(m["k"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function ui(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,o)}var ci=function(){function e(){}return e}(),di=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return Object(Ye["a"])(t,e),t.prototype.getDefaultShape=function(){return new ci},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],e.rect(o[0],o[1],a[0],a[1])},t}(a["b"]);function fi(e,t,n,r){var i=e.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new di({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var d=new di({shape:{points:i.getLayout("largePoints")},incremental:!!r,z2:1});d.baseDimIdx=o,d.largeDataIndices=a,d.barWidth=s,t.add(d),d.useStyle(i.getVisual("style")),Object(ut["a"])(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",hi),d.on("mousemove",hi)),n&&n.push(d)}var hi=Object(Fr["c"])((function(e){var t=this,n=pi(t,e.offsetX,e.offsetY);Object(ut["a"])(t).dataIndex=n>=0?n:null}),30,!1);function pi(e,t,n){for(var r=e.baseDimIdx,i=1-r,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,d=o.length/3;c<d;c++){var f=3*c;if(l[r]=u,l[i]=o[f+2],s[r]=o[f+r],s[i]=o[f+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function gi(e,t,n){if(Wn(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}i=n.getArea();var o=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:o.r0,r:e?i.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function vi(e,t,n){var r="polar"===e.type?Un["a"]:zn["a"];return new r({shape:gi(t,n,e),silent:!0,z2:0})}var yi=Zr;function mi(e){e.registerChartView(yi),e.registerSeriesModel(Br),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,m["h"](Ar,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Mr("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,mr("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var bi=n("f3bb"),xi=n("f934"),_i=2*Math.PI,wi=Math.PI/180;function Si(e,t){return xi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ki(e,t){var n=Si(e,t),r=e.get("center"),i=e.get("radius");m["t"](i)||(i=[0,i]),m["t"](r)||(r=[r,r]);var o=Object(Hn["o"])(n.width,t.getWidth()),a=Object(Hn["o"])(n.height,t.getHeight()),s=Math.min(o,a),l=Object(Hn["o"])(r[0],o)+n.x,u=Object(Hn["o"])(r[1],a)+n.y,c=Object(Hn["o"])(i[0],s/2),d=Object(Hn["o"])(i[1],s/2);return{cx:l,cy:u,r0:c,r:d}}function Oi(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),i=Si(e,n),o=ki(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*wi,d=e.get("minAngle")*wi,f=0;t.each(r,(function(e){!isNaN(e)&&f++}));var h=t.getSum(r),p=Math.PI/(h||f)*2,g=e.get("clockwise"),v=e.get("roseType"),y=e.get("stillShowZeroSum"),m=t.getDataExtent(r);m[0]=0;var b=_i,x=0,_=c,w=g?1:-1;if(t.setLayout({viewRect:i,r:l}),t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:v?NaN:l});else{r="area"!==v?0===h&&y?p:e*p:_i/f,r<d?(r=d,b-=d):x+=e;var i=_+w*r;t.setItemLayout(n,{angle:r,startAngle:_,endAngle:i,clockwise:g,cx:a,cy:s,r0:u,r:v?Object(Hn["k"])(e,m,[u,l]):l}),_=i}})),b<_i&&f)if(b<=.001){var S=_i/f;t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=S,r.startAngle=c+w*n*S,r.endAngle=c+w*(n+1)*S}}))}else p=b/x,_=c,t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===d?d:e*p;r.startAngle=_,r.endAngle=_+w*i,_+=w*i}}))}))}function Ti(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf((function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0}))}}}}var Ei=n("d498"),Ci=n("dce8"),Ai=n("89b6"),Mi=n("2355"),Li=Math.PI/180;function Ii(e,t,n,r,i,o,a,s,l,u){if(!(e.length<2)){for(var c=e.length,d=0;d<c;d++)if("outer"===e[d].position&&"labelLine"===e[d].labelAlignTo){var f=e[d].label.x-u;e[d].linePoints[1][0]+=f,e[d].label.x=u}Object(Mi["d"])(e,l,l+a)&&p(e)}function h(e){for(var o=e.rB,a=o*o,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-n),c=r+l.len,d=c*c,f=Math.sqrt((1-Math.abs(u*u/a))*d),h=t+(f+l.len2)*i,p=h-l.label.x,g=l.targetTextWidth-p*i;ji(l,g,!0),l.label.x=h}}function p(e){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var d=l.label.x-t-l.len2*i,f=r+l.len,p=Math.abs(d)<f?Math.sqrt(c*c/(1-d*d/f/f)):f;u.rB=p,u.maxY=c}u.list.push(l)}h(o),h(a)}}function Di(e,t,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var h=e[f].label;Pi(e[f])||(h.x<t?(c=Math.min(c,h.x),l.push(e[f])):(d=Math.max(d,h.x),u.push(e[f])))}for(f=0;f<e.length;f++){var p=e[f];if(!Pi(p)&&p.linePoints){if(null!=p.labelStyleWidth)continue;h=p.label;var g=p.linePoints,v=void 0;v="edge"===p.labelAlignTo?h.x<t?g[2][0]-p.labelDistance-a-p.edgeDistance:a+i-p.edgeDistance-g[2][0]-p.labelDistance:"labelLine"===p.labelAlignTo?h.x<t?c-a-p.bleedMargin:a+i-d-p.bleedMargin:h.x<t?h.x-a-p.bleedMargin:a+i-h.x-p.bleedMargin,p.targetTextWidth=v,ji(p,v)}}Ii(u,t,n,r,1,i,o,a,s,d),Ii(l,t,n,r,-1,i,o,a,s,c);for(f=0;f<e.length;f++){p=e[f];if(!Pi(p)&&p.linePoints){h=p.label,g=p.linePoints;var y="edge"===p.labelAlignTo,m=h.style.padding,b=m?m[1]+m[3]:0,x=h.style.backgroundColor?0:b,_=p.rect.width+x,w=g[1][0]-g[2][0];y?h.x<t?g[2][0]=a+p.edgeDistance+_+p.labelDistance:g[2][0]=a+i-p.edgeDistance-_-p.labelDistance:(h.x<t?g[2][0]=h.x+p.labelDistance:g[2][0]=h.x-p.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=h.y}}}function ji(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var r=e.label,i=r.style,o=e.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(t<c||n){var d=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",t-l);var f=r.getBoundingRect();r.setStyle("width",Math.ceil(f.width)),r.setStyle("backgroundColor",a)}else{var h=t-l,p=t<c?h:n?h>e.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-d)/2}}}function Pi(e){return"center"===e.position}function Ri(e){var t,n,r=e.getData(),i=[],o=!1,a=(e.get("minShowLabelAngle")||0)*Li,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(e){e.ignore=!0}function p(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}r.each((function(e){var s=r.getItemGraphicEl(e),d=s.shape,f=s.getTextContent(),g=s.getTextGuideLine(),v=r.getItemModel(e),y=v.getModel("label"),b=y.get("position")||v.get(["emphasis","label","position"]),x=y.get("distanceToLabelLine"),_=y.get("alignTo"),w=Object(Hn["o"])(y.get("edgeDistance"),u),S=y.get("bleedMargin"),k=v.getModel("labelLine"),O=k.get("length");O=Object(Hn["o"])(O,u);var T=k.get("length2");if(T=Object(Hn["o"])(T,u),Math.abs(d.endAngle-d.startAngle)<a)return Object(m["k"])(f.states,h),void(f.ignore=!0);if(p(f)){var E,C,A,M,L=(d.startAngle+d.endAngle)/2,I=Math.cos(L),D=Math.sin(L);t=d.cx,n=d.cy;var j="inside"===b||"inner"===b;if("center"===b)E=d.cx,C=d.cy,M="center";else{var P=(j?(d.r+d.r0)/2*I:d.r*I)+t,R=(j?(d.r+d.r0)/2*D:d.r*D)+n;if(E=P+3*I,C=R+3*D,!j){var N=P+I*(O+l-d.r),B=R+D*(O+l-d.r),F=N+(I<0?-1:1)*T,z=B;E="edge"===_?I<0?c+w:c+u-w:F+(I<0?-x:x),C=z,A=[[P,R],[N,B],[F,z]]}M=j?"center":"edge"===_?I>0?"right":"left":I>0?"left":"right"}var U=Math.PI,H=0,V=y.get("rotate");if(Object(m["z"])(V))H=V*(U/180);else if("center"===b)H=0;else if("radial"===V||!0===V){var G=I<0?-L+U:-L;H=G}else if("tangential"===V&&"outside"!==b&&"outer"!==b){var q=Math.atan2(I,D);q<0&&(q=2*U+q);var W=D>0;W&&(q=U+q),H=q-U}if(o=!!H,f.x=E,f.y=C,f.rotation=H,f.setStyle({verticalAlign:"middle"}),j){f.setStyle({align:M});var Y=f.states.select;Y&&(Y.x+=f.x,Y.y+=f.y)}else{var K=f.getBoundingRect().clone();K.applyTransform(f.getComputedTransform());var X=(f.style.margin||0)+2.1;K.y-=X/2,K.height+=X,i.push({label:f,labelLine:g,position:b,len:O,len2:T,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new Ci["a"](I,D),linePoints:A,textAlign:M,labelDistance:x,labelAlignTo:_,edgeDistance:w,bleedMargin:S,rect:K,unconstrainedWidth:K.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:j})}})),!o&&e.get("avoidLabelOverlap")&&Di(i,t,n,l,u,f,c,d);for(var g=0;g<i.length;g++){var v=i[g],y=v.label,b=v.labelLine,x=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),x&&(Object(m["k"])(y.states,h),y.ignore=!0);var _=y.states.select;_&&(_.x+=y.x,_.y+=y.y)}if(b){var w=v.linePoints;x||!w?(Object(m["k"])(b.states,h),b.ignore=!0):(Object(Ai["c"])(w,v.minTurnAngle),Object(Ai["b"])(w,v.surfaceNormal,v.maxSurfaceAngle),b.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new Ci["a"](w[0][0],w[0][1])})}}}function Ni(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Object(m["t"])(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(m["H"])(r,(function(e){return Object(l["g"])(e,i)}))}}var Bi=function(e){function t(t,n,r){var i=e.call(this)||this;i.z2=2;var o=new J["a"];return i.setTextContent(o),i.updateData(t,n,r,!0),i}return Object(Ye["a"])(t,e),t.prototype.updateData=function(e,t,n,r){var i=this,o=e.hostModel,a=e.getItemModel(t),s=a.getModel("emphasis"),l=e.getItemLayout(t),u=Object(m["m"])(Ni(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(sn["c"](i,{scaleX:0,scaleY:0},o,{dataIndex:t,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,sn["c"](i,{shape:{r:l.r}},o,t)):null!=n?(i.setShape({startAngle:n,endAngle:n}),sn["c"](i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,t)):(i.shape.endAngle=l.startAngle,sn["h"](i,{shape:{endAngle:l.endAngle}},o,t))}else Object(sn["g"])(i),sn["h"](i,{shape:u},o,t);i.useStyle(e.getItemVisual(t,"style")),Object(un["I"])(i,a);var d=(l.startAngle+l.endAngle)/2,f=o.get("selectedOffset"),h=Math.cos(d)*f,p=Math.sin(d)*f,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(o,e,t),i.ensureState("emphasis").shape=Object(m["m"])({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},Ni(s.getModel("itemStyle"),l)),Object(m["m"])(i.ensureState("select"),{x:h,y:p,shape:Ni(a.getModel(["select","itemStyle"]),l)}),Object(m["m"])(i.ensureState("blur"),{shape:Ni(a.getModel(["blur","itemStyle"]),l)});var v=i.getTextGuideLine(),y=i.getTextContent();v&&Object(m["m"])(v.ensureState("select"),{x:h,y:p}),Object(m["m"])(y.ensureState("select"),{x:h,y:p}),Object(un["J"])(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),o=i.getModel("labelLine"),a=t.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;Object(fn["g"])(r,Object(fn["e"])(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Ei["a"],this.setTextGuideLine(d)),Object(Ai["d"])(this,Object(Ai["a"])(i),{stroke:s,opacity:Object(m["Q"])(o.get(["lineStyle","opacity"]),l,1)})}},t}(Un["a"]),Fi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n,r){var i,o=e.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&e.get("showEmptyCircle")){var c=new Un["a"]({shape:ki(e,n)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(e){var t=new Bi(o,e,i);o.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(o,e,i),n.off("click"),s.add(n),o.setItemGraphicEl(e,n)})).remove((function(t){var n=a.getItemGraphicEl(t);sn["f"](n,e,t)})).execute(),Ri(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var i=e[0]-r.cx,o=e[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},t.type="pie",t}(Fn["a"]),zi=Fi;function Ui(e,t,n){t=Object(m["t"])(t)&&{coordDimensions:t}||Object(m["m"])({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=Rt(r,t).dimensions,o=new jt(i,e);return o.initData(r,n),o}var Hi=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}(),Vi=Hi,Gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Vi(m["c"](this.getData,this),m["c"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Ui(this,{coordDimensions:["value"],encodeDefaulter:m["h"](Pt["d"],this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=[];return n.each(n.mapDimension("value"),(function(e){i.push(e)})),r.percent=Object(Hn["e"])(i,t,n.hostModel.get("percentPrecision")),r.$vars.push("percent"),r},t.prototype._defaultLabelLine=function(e){lt["f"](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},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(tn["b"]),qi=Gi;function Wi(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),r=n.get(t,e);return!(Object(m["z"])(r)&&!isNaN(r)&&r<0)}))}}}function Yi(e){e.registerChartView(zi),e.registerSeriesModel(qi),Object(bi["a"])("pie",e.registerAction),e.registerLayout(Object(m["h"])(Oi,"pie")),e.registerProcessor(Ti("pie")),e.registerProcessor(Wi("pie"))}var Ki=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Ye["a"])(t,e),t.prototype.getInitialData=function(e,t){return en(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(tn["b"]),Xi=Ki,Zi=n("9850"),$i=4,Ji=function(){function e(){}return e}(),Qi=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(Ye["a"])(t,e),t.prototype.getDefaultShape=function(){return new Ji},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,r=t.points,i=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&i[0]<$i,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],d=r[n++];isNaN(c)||isNaN(d)||(u&&!u.contain(c,d)||(a.x=c-i[0]/2,a.y=d-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(e,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,r=t.size,i=this._ctx,o=this.softClipShape;if(i){for(e=this._off;e<n.length;){var a=n[e++],s=n[e++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(e>=u&&t>=c&&e<=u+o&&t<=c+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(e=n[0],t=n[1],r.contain(e,t)){var i=this.hoverDataIdx=this.findDataIndex(e,t);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var d=n[c++],f=n[c++];a=Math.min(d,a),l=Math.max(d,l),s=Math.min(f,s),u=Math.max(f,u)}e=this._rect=new Zi["a"](a-i/2,s-o/2,l-a+i,u-s+o)}return e},t}(a["b"]),eo=function(){function e(){this.group=new rn["a"]}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),r=4*e.startIndex*2;t=new Float32Array(t.buffer,r,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var r=this._newAdded[0],i=t.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=e.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new Qi({cursor:"default"});return this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=Object(nn["a"])(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<$i;e.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),s=a&&a.fill;s&&e.setColor(s);var l=Object(ut["a"])(e);l.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),to=eo,no=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=gr("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext,i=r.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new to:new xn,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Fn["a"]),ro=no,io=n("b12f"),oo=n("6cb7"),ao=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(oo["a"]),so=ao,lo=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}(),uo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",lt["b"]).models[0]},t.type="cartesian2dAxis",t}(oo["a"]);m["K"](uo,lo);var co={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},fo=m["I"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},co),ho=m["I"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},co),po=m["I"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ho),go=m["i"]({logBase:10},ho),vo={category:fo,value:ho,time:po,log:go},yo=0,mo=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++yo}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Object(m["H"])(r,bo);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Object(m["C"])(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return t=r.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(m["f"])(this.categories))},e}();function bo(e){return Object(m["A"])(e)&&null!=e.value?e.value:e+""}var xo=mo,_o={value:1,category:1,time:1,log:1};function wo(e,t,n,r){Object(m["k"])(_o,(function(i,o){var a=Object(m["I"])(Object(m["I"])({},vo[o],!0),r,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return Object(Ye["a"])(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(xi["d"])(this),r=n?Object(xi["f"])(e):{},i=t.getTheme();Object(m["I"])(e,i.get(o+"Axis")),Object(m["I"])(e,this.getDefaultOption()),e.type=So(e),n&&Object(xi["h"])(e,r,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=xo.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=a,n}(n);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",So)}function So(e){return e.type||(e.data?"category":"value")}var ko=n("625e"),Oo=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();ko["c"](Oo);var To=Oo;function Eo(e){return"interval"===e.type||"log"===e.type}function Co(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=Object(Hn["l"])(o/t,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=Mo(a),l=i.niceTickExtent=[Object(Hn["u"])(Math.ceil(e[0]/a)*a,s),Object(Hn["u"])(Math.floor(e[1]/a)*a,s)];return Io(l,e),i}function Ao(e){var t=Math.pow(10,Object(Hn["r"])(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Object(Hn["u"])(n*t)}function Mo(e){return Object(Hn["g"])(e)+2}function Lo(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Io(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Lo(e,0,t),Lo(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Do(e,t){return e>=t[0]&&e<=t[1]}function jo(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Po(e,t){return e*(t[1]-t[0])+t[0]}var Ro=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new xo({})),Object(m["t"])(r)&&(r=new xo({categories:Object(m["H"])(r,(function(e){return Object(m["A"])(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return Object(Ye["a"])(t,e),t.prototype.parse=function(e){return null==e?NaN:Object(m["C"])(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Do(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),jo(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Po(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);i<a;++i){var s=t[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){while(null!=r[l])l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(To);To.registerClass(Ro);var No=Ro,Bo=Hn["u"],Fo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return Object(Ye["a"])(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Do(e,this._extent)},t.prototype.normalize=function(e){return jo(e,this._extent)},t.prototype.scale=function(e){return Po(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Mo(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!t)return o;var a=1e4;n[0]<r[0]&&(e?o.push({value:Bo(r[0]-t,i)}):o.push({value:n[0]}));var s=r[0];while(s<=r[1]){if(o.push({value:s}),s=Bo(s+t,i),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(e?o.push({value:Bo(l+t,i)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){var o=t[i],a=t[i-1],s=0,l=[],u=o.value-a.value,c=u/e;while(s<e-1){var d=Bo(a.value+(s+1)*c);d>r[0]&&d<r[1]&&l.push(d),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=Hn["g"](e.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=Bo(e.value,n,!0);return Yn["a"](r)},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=Co(r,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=t[0];e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=Bo(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=Bo(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(To);To.registerClass(Fo);var zo=Fo,Uo=n("f876"),Ho=function(e,t,n,r){while(n<r){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},Vo=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return Object(Ye["a"])(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return Object(Uo["h"])(e.value,Uo["i"][Object(Uo["l"])(Object(Uo["m"])(this._minLevelUnit))]||Uo["i"].second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return Object(Uo["r"])(e,t,n,i,r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),i=Jo(this._minLevelUnit,this._approxInterval,r,t);return n=n.concat(i),n.push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=Uo["a"],t[1]+=Uo["a"]),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]-Uo["a"]}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=Go.length,a=Math.min(Ho(Go,this._approxInterval,0,o),o-1);this._interval=Go[a][1],this._minLevelUnit=Go[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return Object(m["z"])(e)?e:+Hn["n"](e)},t.prototype.contain=function(e){return Do(this.parse(e),this._extent)},t.prototype.normalize=function(e){return jo(this.parse(e),this._extent)},t.prototype.scale=function(e){return Po(e,this._extent)},t.type="time",t}(zo),Go=[["second",Uo["d"]],["minute",Uo["c"]],["hour",Uo["b"]],["quarter-day",6*Uo["b"]],["half-day",12*Uo["b"]],["day",1.2*Uo["a"]],["half-week",3.5*Uo["a"]],["week",7*Uo["a"]],["month",31*Uo["a"]],["quarter",95*Uo["a"]],["half-year",Uo["e"]/2],["year",Uo["e"]]];function qo(e,t,n,r){var i=Hn["n"](t),o=Hn["n"](n),a=function(e){return Object(Uo["n"])(i,e,r)===Object(Uo["n"])(o,e,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},d=function(){return c()&&a("minute")},f=function(){return d()&&a("second")},h=function(){return f()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function Wo(e,t){return e/=Uo["a"],e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Yo(e){var t=30*Uo["a"];return e/=t,e>6?6:e>3?3:e>2?2:1}function Ko(e){return e/=Uo["b"],e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Xo(e,t){return e/=t?Uo["c"]:Uo["d"],e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Zo(e){return Hn["l"](e,!0)}function $o(e,t,n){var r=new Date(e);switch(Object(Uo["m"])(t)){case"year":case"month":r[Object(Uo["x"])(n)](0);case"day":r[Object(Uo["g"])(n)](1);case"hour":r[Object(Uo["p"])(n)](0);case"minute":r[Object(Uo["v"])(n)](0);case"second":r[Object(Uo["A"])(n)](0),r[Object(Uo["t"])(n)](0)}return r.getTime()}function Jo(e,t,n,r){var i=1e4,o=Uo["B"],a=0;function s(e,t,n,i,o,a,s){var l=new Date(t),u=t,c=l[i]();while(u<n&&u<=r[1])s.push({value:u}),c+=e,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(e,i,o){var a=[],l=!i.length;if(!qo(Object(Uo["m"])(e),r[0],r[1],n)){l&&(i=[{value:$o(new Date(r[0]),e,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,d=i[u+1].value;if(c!==d){var f=void 0,h=void 0,p=void 0,g=!1;switch(e){case"year":f=Math.max(1,Math.round(t/Uo["a"]/365)),h=Object(Uo["j"])(n),p=Object(Uo["k"])(n);break;case"half-year":case"quarter":case"month":f=Yo(t),h=Object(Uo["w"])(n),p=Object(Uo["x"])(n);break;case"week":case"half-week":case"day":f=Wo(t,31),h=Object(Uo["f"])(n),p=Object(Uo["g"])(n),g=!0;break;case"half-day":case"quarter-day":case"hour":f=Ko(t),h=Object(Uo["o"])(n),p=Object(Uo["p"])(n);break;case"minute":f=Xo(t,!0),h=Object(Uo["u"])(n),p=Object(Uo["v"])(n);break;case"second":f=Xo(t,!1),h=Object(Uo["z"])(n),p=Object(Uo["A"])(n);break;case"millisecond":f=Zo(t),h=Object(Uo["s"])(n),p=Object(Uo["t"])(n);break}s(f,c,d,h,p,g,a),"year"===e&&o.length>1&&0===u&&o.unshift({value:o[0].value-f})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],d=0,f=0,h=0;h<o.length&&a++<i;++h){var p=Object(Uo["m"])(o[h]);if(Object(Uo["q"])(o[h])){l(o[h],u[u.length-1]||[],c);var g=o[h+1]?Object(Uo["m"])(o[h+1]):null;if(p!==g){if(c.length){f=d,c.sort((function(e,t){return e.value-t.value}));for(var v=[],y=0;y<c.length;++y){var b=c[y].value;0!==y&&c[y-1].value===b||(v.push(c[y]),b>=r[0]&&b<=r[1]&&d++)}var x=(r[1]-r[0])/t;if(d>1.5*x&&f>x/1.5)break;if(u.push(v),d>x||e===o[h])break}c=[]}}}var _=Object(m["n"])(Object(m["H"])(u,(function(e){return Object(m["n"])(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),w=[],S=_.length-1;for(h=0;h<_.length;++h)for(var k=_[h],O=0;O<k.length;++O)w.push({value:k[O].value,level:S-h});w.sort((function(e,t){return e.value-t.value}));var T=[];for(h=0;h<w.length;++h)0!==h&&w[h].value===w[h-1].value||T.push(w[h]);return T}To.registerClass(Vo);var Qo=Vo,ea=To.prototype,ta=zo.prototype,na=Hn["u"],ra=Math.floor,ia=Math.ceil,oa=Math.pow,aa=Math.log,sa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new zo,t._interval=0,t}return Object(Ye["a"])(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent(),i=ta.getTicks.call(this,e);return m["H"](i,(function(e){var t=e.value,i=Hn["u"](oa(this.base,t));return i=t===n[0]&&this._fixMin?ua(i,r[0]):i,i=t===n[1]&&this._fixMax?ua(i,r[1]):i,{value:i}}),this)},t.prototype.setExtent=function(e,t){var n=this.base;e=aa(e)/aa(n),t=aa(t)/aa(n),ta.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=ea.getExtent.call(this);t[0]=oa(e,t[0]),t[1]=oa(e,t[1]);var n=this._originalScale,r=n.getExtent();return this._fixMin&&(t[0]=ua(t[0],r[0])),this._fixMax&&(t[1]=ua(t[1],r[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=aa(e[0])/aa(t),e[1]=aa(e[1])/aa(t),ea.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r=Hn["q"](n),i=e/n*r;i<=.5&&(r*=10);while(!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0)r*=10;var o=[Hn["u"](ia(t[0]/r)*r),Hn["u"](ra(t[1]/r)*r)];this._interval=r,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){ta.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=aa(e)/aa(this.base),Do(e,this._extent)},t.prototype.normalize=function(e){return e=aa(e)/aa(this.base),jo(e,this._extent)},t.prototype.scale=function(e){return e=Po(e,this._extent),oa(this.base,e)},t.type="log",t}(To),la=sa.prototype;function ua(e,t){return na(e,Hn["g"](t))}la.getMinorTicks=ta.getMinorTicks,la.getLabel=ta.getLabel,To.registerClass(sa);var ca=sa,da=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=this._modelMinRaw=t.get("min",!0);Object(m["w"])(i)?this._modelMinNum=ga(e,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=ga(e,i));var o=this._modelMaxRaw=t.get("max",!0);if(Object(m["w"])(o)?this._modelMaxNum=ga(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=ga(e,o)),r)this._axisDataLen=t.getCategories().length;else{var a=t.get("boundaryGap"),s=Object(m["t"])(a)?a:[a||0,a||0];"boolean"===typeof s[0]||"boolean"===typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Object(l["g"])(s[0],1),Object(l["g"])(s[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=e?r?0:NaN:t-i[0]*o),null==s&&(s=e?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=Object(m["l"])(a)||Object(m["l"])(s)||e&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var d=this._determinedMin,f=this._determinedMax;return null!=d&&(a=d,l=!0),null!=f&&(s=f,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[ha[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=fa[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),fa={min:"_determinedMin",max:"_determinedMax"},ha={min:"_dataMin",max:"_dataMax"};function pa(e,t,n){var r=e.rawExtentInfo;return r||(r=new da(e,t,n),e.rawExtentInfo=r,r)}function ga(e,t){return null==t?null:Object(m["l"])(t)?NaN:e.parse(t)}function va(e,t){var n=e.type,r=pa(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&"time"===n){var s=kr("bar",a),l=!1;if(m["k"](s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var u=Tr(s),c=ya(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function ya(e,t,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=Cr(r,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;m["k"](a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;m["k"](a,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,d=1-(s+l)/o,f=c/d-c;return t+=f*(l/u),e-=f*(s/u),{min:e,max:t}}function ma(e,t){var n=t,r=va(e,n),i=r.extent,o=n.get("splitNumber");e instanceof ca&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function ba(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new No({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Qo({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(To.getClass(t)||zo)}}function xa(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function _a(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,r){return e.scale.getFormattedLabel(n,r,t)}}(t):m["C"](t)?function(t){return function(n){var r=e.scale.getLabel(n),i=t.replace("{value}",null!=r?r:"");return i}}(t):m["w"](t)?function(t){return function(r,i){return null!=n&&(i=r.value-n),t(wa(e,r),i,null!=r.level?{level:r.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function wa(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function Sa(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();n instanceof No?i=n.count():(r=n.getTicks(),i=r.length);var a,s=e.getLabelModel(),l=_a(e),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var d=r?r[c]:{value:o[0]+c},f=l(d,c),h=s.getTextRect(f),p=ka(h,s.get("rotate")||0);a?a.union(p):a=p}return a}}function ka(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new Zi["a"](e.x,e.y,o,a);return s}function Oa(e){var t=e.get("interval");return null==t?"auto":t}function Ta(e){return"category"===e.type&&0===Oa(e.getLabelModel())}function Ea(e,t){var n={};return m["k"](e.mapDimensionsAll(t),(function(t){n[Kt(e,t)]=!0})),m["F"](n)}function Ca(e,t,n){t&&m["k"](Ea(t,n),(function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])}))}var Aa=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return m["H"](this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),m["n"](this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),Ma=Aa,La=n("1687"),Ia=n("401b"),Da=["x","y"];function ja(e){return"interval"===e.type||"time"===e.type}var Pa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Da,t}return Object(Ye["a"])(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(ja(e)&&ja(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,d=i[1]-r[0]*u,f=this._transform=[l,0,0,u,c,d];this._invTransform=Object(La["e"])([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.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]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),o=new Zi["a"](n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Object(Ia["b"])(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,t)),n[1]=a.toGlobalCoord(a.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return Object(Ia["b"])(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),r=Math.min(t[0],t[1]),i=Math.max(e[0],e[1])-n,o=Math.max(t[0],t[1])-r;return new Zi["a"](n,r,i,o)},t}(Ma),Ra=Pa,Na=Object(lt["o"])();function Ba(e){return"category"===e.type?za(e):Va(e)}function Fa(e,t){return"category"===e.type?Ha(e,t):{ticks:m["H"](e.scale.getTicks(),(function(e){return e.value}))}}function za(e){var t=e.getLabelModel(),n=Ua(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Ua(e,t){var n,r,i=Ga(e,"labels"),o=Oa(t),a=qa(i,o);return a||(m["w"](o)?n=$a(e,o):(r="auto"===o?Ya(e):o,n=Za(e,r)),Wa(i,o,{labels:n,labelCategoryInterval:r}))}function Ha(e,t){var n,r,i=Ga(e,"ticks"),o=Oa(t),a=qa(i,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),m["w"](o))n=$a(e,o,!0);else if("auto"===o){var s=Ua(e,e.getLabelModel());r=s.labelCategoryInterval,n=m["H"](s.labels,(function(e){return e.tickValue}))}else r=o,n=Za(e,r,!0);return Wa(i,o,{ticks:n,tickCategoryInterval:r})}function Va(e){var t=e.scale.getTicks(),n=_a(e);return{labels:m["H"](t,(function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function Ga(e,t){return Na(e)[t]||(Na(e)[t]=[])}function qa(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function Wa(e,t,n){return e.push({key:t,value:n}),n}function Ya(e){var t=Na(e).autoInterval;return null!=t?t:Na(e).autoInterval=e.calculateCategoryInterval()}function Ka(e){var t=Xa(e),n=_a(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var u=o[0],c=e.dataToCoord(u+1)-e.dataToCoord(u),d=Math.abs(c*Math.cos(r)),f=Math.abs(c*Math.sin(r)),h=0,p=0;u<=o[1];u+=s){var g=0,v=0,y=l["d"](n({value:u}),t.font,"center","top");g=1.3*y.width,v=1.3*y.height,h=Math.max(h,g,7),p=Math.max(p,v,7)}var m=h/d,b=p/f;isNaN(m)&&(m=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(m,b))),_=Na(e.model),w=e.getExtent(),S=_.lastAutoInterval,k=_.lastTickCount;return null!=S&&null!=k&&Math.abs(S-x)<=1&&Math.abs(k-a)<=1&&S>x&&_.axisExtent0===w[0]&&_.axisExtent1===w[1]?x=S:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=w[0],_.axisExtent1=w[1]),x}function Xa(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 Za(e,t,n){var r=_a(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Ta(e),f=a.get("showMinLabel")||d,h=a.get("showMaxLabel")||d;f&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return h&&p-l!==o[1]&&g(o[1]),s}function $a(e,t,n){var r=e.scale,i=_a(e),o=[];return m["k"](r.getTicks(),(function(e){var a=r.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:i(e),rawLabel:a,tickValue:s})})),o}var Ja=[0,1],Qa=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Object(Hn["f"])(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&(n=n.slice(),es(n,r.count())),Object(Hn["k"])(e,Ja,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),es(n,r.count()));var i=Object(Hn["k"])(e,n,Ja,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=Fa(this,t),r=n.ticks,i=Object(m["H"])(r,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),o=t.get("alignWithLabel");return ts(this,i,o,e.clamp),i},e.prototype.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),r=Object(m["H"])(n,(function(e){return Object(m["H"])(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return r},e.prototype.getViewLabels=function(){return Ba(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return Ka(this)},e}();function es(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function ts(e,t,n,r){var i=t.length;if(e.onBand&&!n&&i){var o,a,s=e.getExtent();if(1===i)t[0].coord=s[0],o=t[1]={coord:s[0]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;Object(m["k"])(t,(function(e){e.coord-=u/2}));var c=e.scale.getExtent();a=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*a},t.push(o)}var d=s[0]>s[1];f(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift()),r&&f(s[0],t[0].coord)&&t.unshift({coord:s[0]}),f(s[1],o.coord)&&(r?o.coord=s[1]:t.pop()),r&&f(o.coord,s[1])&&t.push({coord:s[1]})}function f(e,t){return e=Object(Hn["u"])(e),t=Object(Hn["u"])(t),d?e>t:e<t}}var ns=Qa,rs=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return Object(Ye["a"])(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.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},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(ns),is=rs;function os(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p="x"===u?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===u?p[f[l]]:d[0],"x"===u?p[f[l]]: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[s],o.labelOffset=a?p[f[s]]-p[f.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),m["O"](n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function as(e){return"cartesian2d"===e.get("coordinateSystem")}function ss(e){var t={xAxisModel:null,yAxisModel:null};return m["k"](t,(function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,lt["b"]).models[0];t[r]=o})),t}var ls=Math.log;function us(e,t,n){var r=zo.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=va(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var f=ls(e.base);u=[ls(u[0])/f,ls(u[1])/f]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var h=r.getExtent.call(e);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(e),g=u[0],v=u[1];if(c&&d)p=(v-g)/a;else if(c){v=u[0]+p*a;while(v<u[1]&&isFinite(v)&&isFinite(u[1]))p=Ao(p),v=u[0]+p*a}else if(d){g=u[1]-p*a;while(g>u[0]&&isFinite(g)&&isFinite(u[0]))p=Ao(p),g=u[1]-p*a}else{var y=e.getTicks().length-1;y>a&&(p=Ao(p));var m=p*a;v=Math.ceil(u[1]/p)*p,g=Object(Hn["u"])(v-m),g<0&&u[0]>=0?(g=0,v=Object(Hn["u"])(m)):v>0&&u[1]<=0&&(v=0,g=-Object(Hn["u"])(m))}var b=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;r.setExtent.call(e,g+p*b,v+p*x),r.setInterval.call(e,p),(b||x)&&r.setNiceExtent.call(e,g+p,v-p)}var cs=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Da,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=Object(m["F"])(e),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=+n[o],s=e[a],l=s.model,u=s.scale;Eo(u)&&l.get("alignTicks")&&null==l.get("interval")?i.push(s):(ma(u,l),Eo(u)&&(t=s))}i.length&&(t||(t=i.pop(),ma(t.scale,t.model)),Object(m["k"])(i,(function(e){us(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};Object(m["k"])(n.x,(function(e){fs(n,"y",e,i)})),Object(m["k"])(n.y,(function(e){fs(n,"x",e,i)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=Object(xi["g"])(r,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(m["k"])(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),ps(e,t?o.x:o.y)}))}s(),i&&(Object(m["k"])(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=Sa(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+r,"top"===e.position?o.y+=t.height+r:"left"===e.position&&(o.x+=t.width+r)}}})),s()),Object(m["k"])(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Object(m["A"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",lt["b"]).models[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis",lt["b"]).models[0],a=e.gridModel,s=this._coordsList;if(r)t=r.coordinateSystem,Object(m["r"])(s,t)<0&&(t=null);else if(i&&o)t=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,r){if(ds(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new is(t,ba(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[t][r]=u,s[t]++}}}this._axesMap=a,Object(m["k"])(a.x,(function(t,n){Object(m["k"])(a.y,(function(i,o){var a="x"+n+"y"+o,s=new Ra(a);s.master=r,s.model=e,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){Object(m["k"])(Ea(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}Object(m["k"])(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(as(e)){var r=ss(e),i=r.xAxisModel,o=r.yAxisModel;if(!ds(i,t)||!ds(o,t))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return Object(m["k"])(this.getCartesians(),(function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),o=r.getOtherAxis(i);Object(m["r"])(t,i)<0&&t.push(i),Object(m["r"])(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",(function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)})),t.eachSeries((function(e){if(as(e)){var t=ss(e),n=t.xAxisModel,r=t.yAxisModel,i=n.getCoordSysModel();0;var o=i.coordinateSystem;e.coordinateSystem=o.getCartesian(n.componentIndex,r.componentIndex)}})),r},e.dimensions=Da,e}();function ds(e,t){return e.getCoordSysModel()===t}function fs(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)hs(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&hs(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(e){return e.dim+"_"+e.index}}function hs(e){return e&&"category"!==e.type&&"time"!==e.type&&xa(e)}function ps(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}var gs=cs,vs=n("cb11"),ys=Math.PI,ms=function(){function e(e,t){this.group=new rn["a"],this.opt=t,this.axisModel=e,Object(m["i"])(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new rn["a"]({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!bs[e]},e.prototype.add=function(e){bs[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,o=Object(Hn["t"])(t-e);return Object(Hn["j"])(o)?(i=n>0?"top":"bottom",r="center"):Object(Hn["j"])(o-ys)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<ys?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),bs={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0];a&&(Object(Ia["b"])(s,s,a),Object(Ia["b"])(l,l,a));var u=Object(m["m"])({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new vs["a"]({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var d=t.get(["axisLine","symbol"]);if(null!=d){var f=t.get(["axisLine","symbolSize"]);Object(m["C"])(d)&&(d=[d,d]),(Object(m["C"])(f)||Object(m["z"])(f))&&(f=[f,f]);var h=Object(nn["b"])(t.get(["axisLine","symbolOffset"])||0,f),p=f[0],g=f[1];Object(m["k"])([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,r){if("none"!==d[r]&&null!=d[r]){var i=Object(nn["a"])(d[r],-p/2,-g/2,p,g,u.stroke,!0),o=t.r+t.offset;i.attr({rotation:t.rotate,x:s[0]+o*Math.cos(e.rotation),y:s[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(e,t,n,r){var i=Ts(n,r,t,e),o=Cs(n,r,t,e);if(_s(t,o,i),Es(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=Object(Mi["b"])(Object(m["H"])(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));Object(Mi["a"])(a)}},axisName:function(e,t,n,r){var i=Object(m["O"])(e.axisName,t.get("name"));if(i){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),f=d[0]>d[1]?-1:1,h=["start"===s?d[0]-f*c:"end"===s?d[1]+f*c:(d[0]+d[1])/2,ks(s)?e.labelOffset+l*c:0],p=t.get("nameRotate");null!=p&&(p=p*ys/180),ks(s)?o=ms.innerTextLayout(e.rotation,null!=p?p:e.rotation,l):(o=xs(e.rotation,s,p||0,d),a=e.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=t.get("nameTruncate",!0)||{},y=v.ellipsis,b=Object(m["O"])(e.nameTruncateMaxWidth,v.maxWidth,a),x=new J["a"]({x:h[0],y:h[1],rotation:o.rotation,silent:ms.isLabelSilent(t),style:Object(fn["c"])(u,{text:i,font:g,overflow:"truncate",width:b,ellipsis:y,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(ln["setTooltipConfig"]({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var _=ms.makeAxisEventDataBase(t);_.targetType="axisName",_.name=i,Object(ut["a"])(x).eventData=_}r.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function xs(e,t,n,r){var i,o,a=Object(Hn["t"])(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;return Object(Hn["j"])(a-ys/2)?(o=l?"bottom":"top",i="center"):Object(Hn["j"])(a-1.5*ys)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*ys&&a>ys/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function _s(e,t,n){if(!Ta(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],d=n[n.length-1],f=n[n.length-2];!1===r?(ws(o),ws(u)):Ss(o,a)&&(r?(ws(a),ws(c)):(ws(o),ws(u))),!1===i?(ws(s),ws(d)):Ss(l,s)&&(i?(ws(l),ws(f)):(ws(s),ws(d)))}}function ws(e){e&&(e.ignore=!0)}function Ss(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=La["d"]([]);return La["g"](i,i,-e.rotation),n.applyTransform(La["f"]([],i,e.getLocalTransform())),r.applyTransform(La["f"]([],i,t.getLocalTransform())),n.intersect(r)}}function ks(e){return"middle"===e||"center"===e}function Os(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(Object(Ia["b"])(a,a,t),Object(Ia["b"])(s,s,t));var c=new vs["a"]({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});c.anid=i+"_"+e[l].tickValue,o.push(c)}return o}function Ts(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),a&&!i.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=i.getTicksCoords(),c=Os(u,t.transform,l,Object(m["i"])(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<c.length;d++)e.add(c[d]);return c}}function Es(e,t,n,r){var i=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!i.scale.isBlank()){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=Object(m["i"])(s.getLineStyle(),Object(m["i"])(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var d=Os(a[c],t.transform,l,u,"minorticks_"+c),f=0;f<d.length;f++)e.add(d[f])}}function Cs(e,t,n,r){var i=n.axis,o=Object(m["O"])(r.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!i.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(Object(m["O"])(r.labelRotate,a.get("rotate"))||0)*ys/180,c=ms.innerTextLayout(r.rotation,u,r.labelDirection),d=n.getCategories&&n.getCategories(!0),f=[],h=ms.isLabelSilent(n),p=n.get("triggerEvent");return Object(m["k"])(l,(function(o,l){var u="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,g=o.formattedLabel,v=o.rawLabel,y=a;if(d&&d[u]){var b=d[u];Object(m["A"])(b)&&b.textStyle&&(y=new Ke["a"](b.textStyle,a,n.ecModel))}var x=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=i.dataToCoord(u),w=new J["a"]({x:_,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(o.level||0),style:Object(fn["c"])(y,{text:g,align:y.getShallow("align",!0)||c.textAlign,verticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||c.textVerticalAlign,fill:Object(m["w"])(x)?x("category"===i.type?v:"value"===i.type?u+"":u,l):x})});if(w.anid="label_"+u,p){var S=ms.makeAxisEventDataBase(n);S.targetType="axisLabel",S.value=v,S.tickIndex=l,"category"===i.type&&(S.dataIndex=u),Object(ut["a"])(w).eventData=S}t.add(w),w.updateTransform(),f.push(w),e.add(w),w.decomposeTransform()})),f}}var As=ms;function Ms(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Ls(n,e,t),n.seriesInvolved&&Ds(n,e),n}function Ls(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Object(m["k"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=zs(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",r);if(Object(m["k"])(n.getAxes(),Object(m["h"])(p,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var d="axis"===c.get("trigger"),f="cross"===c.get(["axisPointer","type"]),h=n.getTooltipAxes(c.get(["axisPointer","axis"]));(d||f)&&Object(m["k"])(h.baseAxes,Object(m["h"])(p,!f||"cross",d)),f&&Object(m["k"])(h.otherAxes,Object(m["h"])(p,"cross",!1))}}function p(r,s,u){var d=u.model.getModel("axisPointer",i),f=d.get("show");if(f&&("auto"!==f||r||Fs(d))){null==s&&(s=d.get("triggerTooltip")),d=r?Is(u,c,i,t,r,s):d;var h=d.get("snap"),p=zs(u.model),g=s||h||"category"===u.type,v=e.axesInfo[p]={key:p,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,involveSeries:g,snap:h,useHandle:Fs(d),seriesModels:[],linkGroup:null};l[p]=v,e.seriesInvolved=e.seriesInvolved||g;var y=js(o,u);if(null!=y){var m=a[y]||(a[y]={axesInfo:{}});m.axesInfo[p]=v,m.mapper=o[y].mapper,v.linkGroup=m}}}}))}function Is(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(m["k"])(s,(function(e){l[e]=Object(m["d"])(a.get(e))})),l.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===i){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var d=l.lineStyle=a.get("crossStyle");d&&Object(m["i"])(u,d.textStyle)}}return e.model.getModel("axisPointer",new Ke["a"](l,n,r))}function Ds(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&Object(m["k"])(e.coordSysAxesInfo[zs(n.model)],(function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}function js(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(Ps(o[r+"AxisId"],n.id)||Ps(o[r+"AxisIndex"],n.componentIndex)||Ps(o[r+"AxisName"],n.name))return i}}function Ps(e,t){return"all"===e||Object(m["t"])(e)&&Object(m["r"])(e,t)>=0||e===t}function Rs(e){var t=Ns(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=Fs(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Ns(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[zs(e)]}function Bs(e){var t=Ns(e);return t&&t.axisPointerModel}function Fs(e){return!!e.get(["handle","show"])}function zs(e){return e.type+"||"+e.id}var Us={},Hs=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&Rs(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=Bs(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){Us[e]=t},t.getAxisPointerClass=function(e){return e&&Us[e]},t.type="axis",t}(io["a"]),Vs=Hs,Gs=Object(lt["o"])();function qs(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,d=Gs(e).splitAreaColors,f=m["f"](),h=0;if(d)for(var p=0;p<u.length;p++){var g=d.get(u[p].tickValue);if(null!=g){h=(g+(c-1)*p)%c;break}}var v=i.toGlobalCoord(u[0].coord),y=a.getAreaStyle();s=m["t"](s)?s:[s];for(p=1;p<u.length;p++){var b=i.toGlobalCoord(u[p].coord),x=void 0,_=void 0,w=void 0,S=void 0;i.isHorizontal()?(x=v,_=l.y,w=b-x,S=l.height,v=x+w):(x=l.x,_=v,w=l.width,S=b-_,v=_+S);var k=u[p-1].tickValue;null!=k&&f.set(k,h),t.add(new zn["a"]({anid:null!=k?"area_"+k:null,shape:{x:x,y:_,width:w,height:S},style:m["i"]({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}Gs(e).splitAreaColors=f}}}function Ws(e){Gs(e).splitAreaColors=null}var Ys=["axisLine","axisTickLabel","axisName"],Ks=["splitArea","splitLine","minorSplitLine"],Xs=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return Object(Ye["a"])(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new rn["a"],this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=os(a,t),l=new As(t,m["m"]({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(Eo(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},s));m["k"](Ys,l.add,l),this._axisGroup.add(l.getGroup()),m["k"](Ks,(function(e){t.get([e,"show"])&&Zs[e](this,this._axisGroup,t,a)}),this);var u=i&&"changeAxisOrder"===i.type&&i.isInitSort;u||ln["groupTransition"](o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){Ws(this)},t.type="cartesianAxis",t}(Vs),Zs={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=m["t"](s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,d=i.getTicksCoords({tickModel:o}),f=[],h=[],p=a.getLineStyle(),g=0;g<d.length;g++){var v=i.toGlobalCoord(d[g].coord);u?(f[0]=v,f[1]=l.y,h[0]=v,h[1]=l.y+l.height):(f[0]=l.x,f[1]=v,h[0]=l.x+l.width,h[1]=v);var y=c++%s.length,b=d[g].tickValue;t.add(new vs["a"]({anid:null!=b?"line_"+d[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:m["i"]({stroke:s[y]},p),silent:!0}))}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],d=[],f=a.getLineStyle(),h=0;h<u.length;h++)for(var p=0;p<u[h].length;p++){var g=i.toGlobalCoord(u[h][p].coord);l?(c[0]=g,c[1]=s.y,d[0]=g,d[1]=s.y+s.height):(c[0]=s.x,c[1]=g,d[0]=s.x+s.width,d[1]=g),t.add(new vs["a"]({anid:"minor_line_"+u[h][p].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:f,silent:!0}))}},splitArea:function(e,t,n,r){qs(e,t,n,r)}},$s=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.type="xAxis",t}(Xs),Js=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=$s.type,t}return Object(Ye["a"])(t,e),t.type="yAxis",t}(Xs),Qs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new zn["a"]({shape:e.coordinateSystem.getRect(),style:Object(m["i"])({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(io["a"]),el={offset:0};function tl(e){e.registerComponentView(Qs),e.registerComponentModel(so),e.registerCoordinateSystem("cartesian2d",gs),wo(e,"x",uo,el),wo(e,"y",uo,el),e.registerComponentView($s),e.registerComponentView(Js),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function nl(e){Object(r["a"])(tl),e.registerSeriesModel(Xi),e.registerChartView(ro),e.registerLayout(gr("scatter"))}function rl(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();m["k"](i,(function(e,o){t.each(t.mapDimension(i[o].dim),(function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,o);n[t][o]=il(i)?i:ol(r)}))})),t.each((function(e){var i=m["o"](n[e],(function(e){return il(e)}))||ol(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])}))}}))}function il(e){return!isNaN(e[0])&&!isNaN(e[1])}function ol(e){return[e.cx,e.cy]}function al(e){var t=e.polar;if(t){m["t"](t)||(t=[t]);var n=[];m["k"](t,(function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],m["t"](e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}m["k"](e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var sl=n("87b1"),ll=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,o=e.getData(),a=this._data;function l(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var r=nn["c"](e.getItemVisual(t,"symbolSize")),i=nn["a"](n,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:o*Math.PI/180||0}),i}}function u(t,n,r,i,o,a){r.removeAll();for(var s=0;s<n.length-1;s++){var u=l(i,o);u&&(u.__dimIdx=s,t[s]?(u.setPosition(t[s]),ln[a?"initProps":"updateProps"](u,{x:n[s][0],y:n[s][1]},e,o)):u.setPosition(n[s]),r.add(u))}}function c(e){return m["H"](e,(function(e){return[r.cx,r.cy]}))}o.diff(a).add((function(t){var n=o.getItemLayout(t);if(n){var r=new sl["a"],i=new Ei["a"],a={shape:{points:n}};r.shape.points=c(n),i.shape.points=c(n),sn["c"](r,a,e,t),sn["c"](i,a,e,t);var s=new rn["a"],l=new rn["a"];s.add(i),s.add(r),s.add(l),u(i.shape.points,n,l,o,t,!0),o.setItemGraphicEl(t,s)}})).update((function(t,n){var r=a.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),c={shape:{points:o.getItemLayout(t)}};c.shape.points&&(u(i.shape.points,c.shape.points,l,o,t,!1),Object(sn["g"])(s),Object(sn["g"])(i),sn["h"](i,c,e),sn["h"](s,c,e),o.setItemGraphicEl(t,r))})).remove((function(e){i.remove(a.getItemGraphicEl(e))})).execute(),o.eachItemGraphicEl((function(e,t){var n=o.getItemModel(t),r=e.childAt(0),a=e.childAt(1),l=e.childAt(2),u=o.getItemVisual(t,"style"),c=u.fill;i.add(e),r.useStyle(m["i"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),Object(un["I"])(r,n,"lineStyle"),Object(un["I"])(a,n,"areaStyle");var d=n.getModel("areaStyle"),f=d.isEmpty()&&d.parentModel.isEmpty();a.ignore=f,m["k"](["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),r=t.isEmpty()&&t.parentModel.isEmpty();a.ensureState(e).ignore=r&&f})),a.useStyle(m["i"](d.getAreaStyle(),{fill:c,opacity:.7,decal:u.decal}));var h=n.getModel("emphasis"),p=h.getModel("itemStyle").getItemStyle();l.eachChild((function(e){if(e instanceof s["a"]){var r=e.style;e.useStyle(m["m"]({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},u))}else e.useStyle(u),e.setColor(c),e.style.strokeNoScale=!0;var i=e.ensureState("emphasis");i.style=m["d"](p);var a=o.getStore().get(o.getDimensionIndex(e.__dimIdx),t);(null==a||isNaN(a))&&(a=""),Object(fn["g"])(e,Object(fn["e"])(n),{labelFetcher:o.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:a,inheritColor:c,defaultOpacity:u.opacity})})),Object(un["J"])(e,h.get("focus"),h.get("blurScope"),h.get("disabled"))})),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Fn["a"]),ul=ll,cl=n("217c"),dl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Ye["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Vi(m["c"](this.getData,this),m["c"](this.getRawData,this))},t.prototype.getInitialData=function(e,t){return Ui(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem,o=i.getIndicatorAxes(),a=this.getData().getName(e),s=""===a?this.name:a,l=Object(cl["e"])(this,e);return Object(cl["c"])("section",{header:s,sortBlocks:!0,blocks:m["H"](o,(function(t){var n=r.get(r.mapDimension(t.dim),e);return Object(cl["c"])("nameValue",{markerType:"subItem",markerColor:l,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(m["H"](n.dimensions,(function(e){return t.mapDimension(e)})),e),i=0,o=r.length;i<o;i++)if(!isNaN(r[i])){var a=n.getIndicatorAxes();return n.coordToPoint(a[i].dataToCoord(r[i]),i)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(tn["b"]),fl=dl,hl=vo.value;function pl(e,t){return m["i"]({show:t},e)}var gl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),d=m["H"](this.get("indicator")||[],(function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var f=a;null!=d.color&&(f=m["i"]({color:d.color},a));var h=m["I"](m["d"](d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:d.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:f,triggerEvent:c},!1);if(m["C"](l)){var p=h.name;h.name=l.replace("{value}",null!=p?p:"")}else m["w"](l)&&(h.name=l(h.name,h));var g=new Ke["a"](h,null,this.ecModel);return m["K"](g,lo.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:m["I"]({lineStyle:{color:"#bbb"}},hl.axisLine),axisLabel:pl(hl.axisLabel,!1),axisTick:pl(hl.axisTick,!1),splitLine:pl(hl.splitLine,!0),splitArea:pl(hl.splitArea,!0),indicator:[]},t}(oo["a"]),vl=gl,yl=n("d9fc"),ml=n("4573"),bl=["axisLine","axisTickLabel","axisName"],xl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),r=m["H"](n,(function(e){var n=e.model.get("showName")?e.name:"",r=new As(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return r}));m["k"](r,(function(e){m["k"](bl,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var r=e.get("shape"),i=e.getModel("splitLine"),o=e.getModel("splitArea"),a=i.getModel("lineStyle"),s=o.getModel("areaStyle"),l=i.get("show"),u=o.get("show"),c=a.get("color"),d=s.get("color"),f=m["t"](c)?c:[c],h=m["t"](d)?d:[d],p=[],g=[];if("circle"===r)for(var v=n[0].getTicksCoords(),y=t.cx,b=t.cy,x=0;x<v.length;x++){if(l){var _=A(p,f,x);p[_].push(new yl["a"]({shape:{cx:y,cy:b,r:v[x].coord}}))}if(u&&x<v.length-1){_=A(g,h,x);g[_].push(new ml["a"]({shape:{cx:y,cy:b,r0:v[x].coord,r:v[x+1].coord}}))}}else{var w,S=m["H"](n,(function(e,n){var r=e.getTicksCoords();return w=null==w?r.length-1:Math.min(r.length-1,w),m["H"](r,(function(e){return t.coordToPoint(e.coord,n)}))})),k=[];for(x=0;x<=w;x++){for(var O=[],T=0;T<n.length;T++)O.push(S[T][x]);if(O[0]&&O.push(O[0].slice()),l){_=A(p,f,x);p[_].push(new Ei["a"]({shape:{points:O}}))}if(u&&k){_=A(g,h,x-1);g[_].push(new sl["a"]({shape:{points:O.concat(k)}}))}k=O.slice().reverse()}}var E=a.getLineStyle(),C=s.getAreaStyle();m["k"](g,(function(e,t){this.group.add(ln["mergePath"](e,{style:m["i"]({stroke:"none",fill:h[t%h.length]},C),silent:!0}))}),this),m["k"](p,(function(e,t){this.group.add(ln["mergePath"](e,{style:m["i"]({fill:"none",stroke:f[t%f.length]},E),silent:!0}))}),this)}function A(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}},t.type="radar",t}(io["a"]),_l=xl,wl=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return Object(Ye["a"])(t,e),t}(ns),Sl=wl,kl=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=Object(m["H"])(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,r=new Sl(n,new zo);return r.name=e.get("name"),r.model=e,e.axis=r,this.dimensions.push(n),r}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],r=n.angle,i=this.cx+e*Math.cos(r),o=this.cy-e*Math.sin(r);return[i,o]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i,o=Math.atan2(-n,t),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(i=u,s=l,a=c)}return[s,+(i&&i.coordToData(r))]},e.prototype.resize=function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i)/2;this.cx=Hn["o"](n[0],r),this.cy=Hn["o"](n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");(Object(m["C"])(a)||Object(m["z"])(a))&&(a=[0,a]),this.r0=Hn["o"](a[0],o),this.r=Hn["o"](a[1],o),Object(m["k"])(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)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;Object(m["k"])(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,i){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===r){var o=t.getData();Object(m["k"])(n,(function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))}))}}),this);var i=r.get("splitNumber"),o=new zo;o.setExtent(0,i),o.setInterval(1),Object(m["k"])(n,(function(e,t){us(e.scale,e.model,o)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",(function(i){var o=new e(i,t,n);r.push(o),i.coordinateSystem=o})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("radarIndex")||0])})),r},e.dimensions=[],e}(),Ol=kl;function Tl(e){e.registerCoordinateSystem("radar",Ol),e.registerComponentModel(vl),e.registerComponentView(_l),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}function El(e){Object(r["a"])(Tl),e.registerChartView(ul),e.registerSeriesModel(fl),e.registerLayout(rl),e.registerProcessor(Ti("radar")),e.registerPreprocessor(al)}var Cl=n("6fd3"),Al=n("607d"),Ml=n("1be7"),Ll="\0_ec_interaction_mutex";function Il(e,t,n){var r=Pl(e);r[t]=n}function Dl(e,t,n){var r=Pl(e),i=r[t];i===n&&(r[t]=null)}function jl(e,t){return!!Pl(e)[t]}function Pl(e){return e[Ll]||(e[Ll]={})}Ml["c"]({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},m["L"]);var Rl=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var r=Object(m["c"])(n._mousedownHandler,n),i=Object(m["c"])(n._mousemoveHandler,n),o=Object(m["c"])(n._mouseupHandler,n),a=Object(m["c"])(n._mousewheelHandler,n),s=Object(m["c"])(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=Object(m["i"])(Object(m["d"])(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",r),t.on("mousemove",i),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",r),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",s)},n}return Object(Ye["a"])(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(Al["d"](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)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&Fl("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!jl(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,i=this._y,o=t-r,a=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&Al["g"](e.event),Bl(this,"pan","moveOnMouseMove",e,{dx:o,dy:a,oldX:r,oldY:i,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Al["d"](e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=Fl("zoomOnMouseWheel",e,this._opt),n=Fl("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,i=Math.abs(r),o=e.offsetX,a=e.offsetY;if(0!==r&&(t||n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;Nl(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r),c=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);Nl(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!jl(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;Nl(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Cl["a"]);function Nl(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(Al["g"](r.event),Bl(e,t,n,r,i))}function Bl(e,t,n,r,i){i.isAvailableBehavior=Object(m["c"])(Fl,null,n,r),e.trigger(t,i)}function Fl(e,t,n){var r=n[e];return!e||r&&(!Object(m["C"])(r)||t.event[r+"Key"])}var zl=Rl;function Ul(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function Hl(e,t,n,r){var i=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/e.zoom;e.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Vl={axisPointer:1,tooltip:1,brush:1};function Gl(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!Vl.hasOwnProperty(r.mainType)&&i&&i.model!==n}var ql,Wl=n("ae69"),Yl=n("342d"),Kl=n("dded");function Xl(e){if(Object(m["C"])(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var Zl={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-anchor":"textAlign",visibility:"visibility",display:"display"},$l=Object(m["F"])(Zl),Jl={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Ql=Object(m["F"])(Jl),eu=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=Xl(e);this._defsUsePending=[];var r=new rn["a"];this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),au(n,r,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(cu(this._defs,this._defsUsePending),this._defsUsePending=[],o){var d=fu(o);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&null!=a&&null!=s&&(u=bu(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var f=r;r=new rn["a"],r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return t.ignoreRootClip||null==a||null==s||r.setClipPath(new zn["a"]({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,o){var a,s=e.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!i){var u=ql[s];if(u&&Object(m["q"])(ql,s)){a=u.call(this,e,t);var c=e.getAttribute("name");if(c){var d={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(d),"g"===s&&(l=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});t.add(a)}}var f=tu[s];if(f&&Object(m["q"])(tu,s)){var h=f.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=h)}}if(a&&a.isGroup){var g=e.firstChild;while(g)1===g.nodeType?this._parseNode(g,a,n,l,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling}},e.prototype._parseText=function(e,t){var n=new u["a"]({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});iu(t,n),au(e,n,this._defsUsePending,!1,!1),su(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=function(){ql={g:function(e,t){var n=new rn["a"];return iu(t,n),au(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new zn["a"];return iu(t,n),au(e,n,this._defsUsePending,!1,!1),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.silent=!0,n},circle:function(e,t){var n=new yl["a"];return iu(t,n),au(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new vs["a"];return iu(t,n),au(e,n,this._defsUsePending,!1,!1),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.silent=!0,n},ellipse:function(e,t){var n=new Wl["a"];return iu(t,n),au(e,n,this._defsUsePending,!1,!1),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.silent=!0,n},polygon:function(e,t){var n,r=e.getAttribute("points");r&&(n=ou(r));var i=new sl["a"]({shape:{points:n||[]},silent:!0});return iu(t,i),au(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=ou(r));var i=new Ei["a"]({shape:{points:n||[]},silent:!0});return iu(t,i),au(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new s["a"];return iu(t,n),au(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",r=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new rn["a"];return iu(t,a),au(e,a,this._defsUsePending,!1,!0),a},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 i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new rn["a"];return iu(t,a),au(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(e,t){var n=e.getAttribute("d")||"",r=Object(Yl["b"])(n);return iu(t,r),au(e,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),e}(),tu={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),o=new An["a"](t,n,r,i);return nu(e,o),ru(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new Kl["a"](t,n,r);return nu(e,i),ru(e,i),i}};function nu(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function ru(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};yu(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function iu(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(m["i"])(t.__inheritedStyle,e.__inheritedStyle))}function ou(e){for(var t=fu(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),o=parseFloat(t[r+1]);n.push([i,o])}return n}function au(e,t,n,r,i){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===e.nodeType&&(gu(e,t),yu(e,a,s),r||mu(e,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=uu(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=uu(o,"stroke",a.stroke,n)),Object(m["k"])(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=a[e]&&(o.style[e]=parseFloat(a[e]))})),Object(m["k"])(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=a[e]&&(o.style[e]=a[e])})),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=Object(m["H"])(fu(a.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}function su(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",e.style.textBaseline=i}var o=t.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),e.style.textAlign=s)}}var lu=/^url\(\s*#(.*?)\)/;function uu(e,t,n,r){var i=n&&n.match(lu);if(!i)return"none"===n&&(n=null),n;var o=Object(m["T"])(i[1]);r.push([e,t,o])}function cu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var du=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function fu(e){return e.match(du)||[]}var hu=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,pu=Math.PI/180;function gu(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(hu,(function(e,t,n){return r.push(t,n),""}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=fu(a);switch(i=i||La["c"](),s){case"translate":La["i"](i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":La["h"](i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":La["g"](i,i,-parseFloat(l[0])*pu);break;case"skewX":var u=Math.tan(parseFloat(l[0])*pu);La["f"](i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*pu);La["f"](i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var vu=/([^\s:;]+)\s*:\s*([^:;]+)/g;function yu(e,t,n){var r=e.getAttribute("style");if(r){var i;vu.lastIndex=0;while(null!=(i=vu.exec(r))){var o=i[1],a=Object(m["q"])(Zl,o)?Zl[o]:null;a&&(t[a]=i[2]);var s=Object(m["q"])(Jl,o)?Jl[o]:null;s&&(n[s]=i[2])}}}function mu(e,t,n){for(var r=0;r<$l.length;r++){var i=$l[r],o=e.getAttribute(i);null!=o&&(t[Zl[i]]=o)}for(r=0;r<Ql.length;r++){i=Ql[r],o=e.getAttribute(i);null!=o&&(n[Jl[i]]=o)}}function bu(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function xu(e,t){var n=new eu;return n.parse(e,t)}var _u=n("8728"),wu=1e-8;function Su(e,t){return Math.abs(e-t)<wu}function ku(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var o=1;o<e.length;o++){var a=e[o];r+=Object(_u["a"])(i[0],i[1],a[0],a[1],t,n),i=a}var s=e[0];return Su(i[0],s[0])&&Su(i[1],s[1])||(r+=Object(_u["a"])(i[0],i[1],s[0],s[1],t,n)),0!==r}var Ou=[];function Tu(e,t){for(var n=0;n<e.length;n++)Ia["b"](e[n],e[n],t)}function Eu(e,t,n,r){for(var i=0;i<e.length;i++){var o=e[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Ia["l"](t,t,o),Ia["k"](n,n,o))}}function Cu(e){for(var t=0,n=0,r=0,i=e.length,o=e[i-1][0],a=e[i-1][1],s=0;s<i;s++){var l=e[s][0],u=e[s][1],c=o*u-l*a;t+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var Au=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),Mu=function(){function e(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return e}(),Lu=function(){function e(e){this.type="linestring",this.points=e}return e}(),Iu=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return Object(Ye["a"])(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,r=0;r<t.length;r++){var i=t[r],o=i.exterior,a=o&&o.length;a>n&&(e=i,n=a)}if(e)return Cu(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(m["k"])(i,(function(t){"polygon"===t.type?Eu(t.exterior,n,r,e):Object(m["k"])(t.points,(function(t){Eu(t,n,r,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new Zi["a"](n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(ku(a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(ku(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new Zi["a"](e,t,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(Tu(c.exterior,s),Object(m["k"])(c.interiors,(function(e){Tu(e,s)}))):Object(m["k"])(c.points,(function(e){Tu(e,s)}))}i=this._rect,i.copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(Au),Du=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return Object(Ye["a"])(t,e),t.prototype.calcCenter=function(){var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=La["d"](Ou),i=e;while(i&&!i.isGeoSVGGraphicRoot)La["f"](r,i.getLocalTransform(),r),i=i.parent;return La["e"](r,r),Ia["b"](n,n,r),n},t}(Au),ju=Object(m["f"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Pu=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=Object(m["f"])(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Xl(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=Nu(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&xu(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Object(m["b"])(null!=n)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var r=new rn["a"];r.add(n),r.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,a=t.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,d=void 0;if(null!=i?(l=0,c=i):a&&(l=a.x,c=a.width),null!=o?(u=0,d=o):a&&(u=a.y,d=a.height),null==l||null==u){var f=n.getBoundingRect();null==l&&(l=f.x,c=f.width),null==u&&(u=f.y,d=f.height)}s=this._boundingRect=new Zi["a"](l,u,c,d)}if(a){var h=bu(a,s);n.scaleX=n.scaleY=h.scale,n.x=h.x,n.y=h.y}r.setClipPath(new zn["a"]({shape:s.plain()}));var p=[];return Object(m["k"])(t.named,(function(e){null!=ju.get(e.svgNodeTagLower)&&(p.push(e),Ru(e.el))})),{root:r,boundingRect:s,named:p}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function Ru(e){e.silent=!1,e.isGroup&&e.traverse((function(e){e.silent=!1}))}function Nu(e){var t=[],n=Object(m["f"])();return Object(m["k"])(e,(function(e){if(null==e.namedFrom){var r=new Du(e.name,e.el);t.push(r),n.set(e.name,r)}})),{regions:t,regionsMap:n}}function Bu(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);var r=t.features;return m["k"](r,(function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case"LineString":t.coordinates=zu(i,r,n);break;case"Polygon":Fu(i,r,n);break;case"MultiLineString":Fu(i,r,n);break;case"MultiPolygon":m["k"](i,(function(e,t){return Fu(e,r[t],n)}))}})),t.UTF8Encoding=!1,t}function Fu(e,t,n){for(var r=0;r<e.length;r++)e[r]=zu(e[r],t[r],n)}function zu(e,t,n){for(var r=[],i=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function Uu(e,t){return e=Bu(e),m["H"](m["n"](e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new Mu(o[0],o.slice(1)));break;case"MultiPolygon":m["k"](r.coordinates,(function(e){e[0]&&i.push(new Mu(e[0],e.slice(1)))}));break;case"LineString":i.push(new Lu([r.coordinates]));break;case"MultiLineString":i.push(new Lu(r.coordinates))}var a=new Iu(n[t||"name"],i,n.cp);return a.properties=n,a}))}for(var Hu=[126,25],Vu="南海诸岛",Gu=[[[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]]],qu=0;qu<Gu.length;qu++)for(var Wu=0;Wu<Gu[qu].length;Wu++)Gu[qu][Wu][0]/=10.5,Gu[qu][Wu][1]/=-14,Gu[qu][Wu][0]+=Hu[0],Gu[qu][Wu][1]+=Hu[1];function Yu(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===Vu)return;t.push(new Iu(Vu,m["H"](Gu,(function(e){return{type:"polygon",exterior:e}})),Hu))}}var Ku={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function Xu(e,t){if("china"===e){var n=Ku[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}}var Zu=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function $u(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:Zu[0]})}var Ju="name",Qu=function(){function e(e,t,n){this.type="geoJSON",this._parsedMap=Object(m["f"])(),this._mapName=e,this._specialAreas=n,this._geoJSON=tc(t)}return e.prototype.load=function(e,t){t=t||Ju;var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:ec(r)})}var i=Object(m["f"])(),o=[];return Object(m["k"])(n.regions,(function(t){var n=t.name;e&&Object(m["q"])(e,n)&&(t=t.cloneShallow(n=e[n])),o.push(t),i.set(n,t)})),{regions:o,boundingRect:n.boundingRect||new Zi["a"](0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,r=this._geoJSON;try{t=r?Uu(r,e):[]}catch(i){throw new Error("Invalid geoJson format\n"+i.message)}return Yu(n,t),Object(m["k"])(t,(function(e){var t=e.name;Xu(n,e),$u(n,e);var r=this._specialAreas&&this._specialAreas[t];r&&e.transformTo(r.left,r.top,r.width,r.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function ec(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t=t||r.clone(),t.union(r)}return t}function tc(e){return Object(m["C"])(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var nc=Object(m["f"])(),rc={registerMap:function(e,t,n){if(t.svg){var r=new Pu(e,t.svg);nc.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;r=new Qu(e,i,n);nc.set(e,r)}},getGeoResource:function(e){return nc.get(e)},getMapForUser:function(e){var t=nc.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var r=nc.get(e);if(r)return r.load(t,n)}},ic=n("b3c1"),oc=n("19eb"),ac=["rect","circle","line","ellipse","polygon","polyline","path"],sc=m["f"](ac),lc=m["f"](ac.concat(["g"])),uc=m["f"](ac.concat(["g"])),cc=Object(lt["o"])();function dc(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function fc(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var hc=function(){function e(e){var t=new rn["a"];this.uid=Object(Rr["c"])("ec_map_draw"),this._controller=new zl(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new rn["a"]),t.add(this._svgGroup=new rn["a"])}return e.prototype.draw=function(e,t,n,r,i){var o="geo"===e.mainType,a=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),d=c.raw,f=c.roam,h=!l.childAt(0)||i;h?(u.x=f.x,u.y=f.y,u.scaleX=f.scaleX,u.scaleY=f.scaleY,u.dirty()):sn["h"](u,f,e);var p=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=m["f"](),n=m["f"](),r=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function c(e){for(var t=[],n=!l&&s&&s.project,r=0;r<e.length;++r){var i=u(e[r],n);i&&t.push(i)}return t}function d(e){return{shape:{points:c(e)}}}r.removeAll(),m["k"](e.geo.regions,(function(i){var c=i.name,f=t.get(c),h=n.get(c)||{},p=h.dataIdx,g=h.regionModel;f||(f=t.set(c,new rn["a"]),r.add(f),p=a?a.indexOfName(c):null,g=e.isGeo?o.getRegionModel(c):a?a.getItemModel(p):null,n.set(c,{dataIdx:p,regionModel:g}));var v=[],y=[];m["k"](i.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=bc(t,l)),m["k"](t,(function(e){v.push(new sl["a"](d(e)))}))}else{var n=e.points;l&&(n=bc(n,l,!0)),m["k"](n,(function(e){y.push(new Ei["a"](d(e)))}))}}));var b=u(i.getCenter(),s&&s.project);function x(t,n){if(t.length){var r=new U["a"]({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});f.add(r),pc(e,r,p,g),gc(e,r,c,g,o,p,b),n&&(fc(r),m["k"](r.states,fc))}}x(v),x(y,!0)})),t.each((function(t,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;vc(e,t,r,s,o,a),yc(e,t,r,s,o),mc(e,t,r,s,o)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=m["f"](),i=!1;m["k"](this._svgGraphicRecord.named,(function(t){var n=t.name,o=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,l=t.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);if(null!=sc.get(s)&&l instanceof oc["c"]&&pc(e,l,u,c),l instanceof oc["c"]&&(l.culling=!0),l.z2EmphasisLift=0,!t.namedFrom&&(null!=uc.get(s)&&gc(e,l,n,c,o,u,null),vc(e,l,n,c,o,u),yc(e,l,n,c,o),null!=lc.get(s))){var d=mc(e,l,n,c,o);"self"===d&&(i=!0);var f=r.get(n)||r.set(n,[]);f.push(l)}}),this),this._enableBlurEntireSVG(i,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),r=n.opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){Object(un["G"])(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=r&&(t.opacity=r),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=rc.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=rc.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var r=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=r.getZoom(),i.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}i.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,Ul(o,e.dx,e.dy),n.dispatchAction(m["m"](s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,Hl(o,e.scale,e.originX,e.originY),n.dispatchAction(m["m"](s(),{zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(t,i,o){return r.containPoint([i,o])&&!Gl(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=cc(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){i._mouseDownFlag=!0})),t.on("click",(function(e){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},e}();function pc(e,t,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=dc(i),u=dc(o),c=dc(s),d=dc(a),f=e.data;if(f){var h=f.getItemVisual(n,"style"),p=f.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),p&&(l.decal=Object(ic["a"])(p,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=d,Object(un["G"])(t)}function gc(e,t,n,r,i,o,a){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var d=l?n:o,f=void 0;(!s||o>=0)&&(f=i);var h=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(fn["g"])(t,Object(fn["e"])(r),{labelFetcher:f,labelDataIndex:d,defaultText:n},h);var p=t.getTextContent();if(p&&(cc(p).ignore=p.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function vc(e,t,n,r,i,o){e.data?e.data.setItemGraphicEl(o,t):Object(ut["a"])(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function yc(e,t,n,r,i){e.data||ln["setTooltipConfig"]({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function mc(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Object(un["J"])(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&Object(un["n"])(t,i,n),a}function bc(e,t,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&r.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),m["k"](e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),i}var xc=hc,_c=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id){o=this._mapDraw;o&&i.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new xc(n);i.add(o.group),o.draw(e,t,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,i=this.group;r.each(r.mapDimension("value"),(function(t,n){if(!isNaN(t)){var o=r.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new yl["a"]({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:un["j"]+1)});if(!s){var u=e.mainSeries.getData(),c=r.getName(n),d=u.indexOfName(c),f=r.getItemModel(n),h=f.getModel("label"),p=u.getItemGraphicEl(d);Object(fn["g"])(l,Object(fn["e"])(f),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:c}),l.disableLabelAnimation=!0,h.get("position")||l.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(e){Object(un["H"])(l,e)}}i.add(l)}}}))},t.type="map",t}(Fn["a"]),wc=_c,Sc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return Object(Ye["a"])(t,e),t.prototype.getInitialData=function(e){for(var t=Ui(this,{coordDimensions:["value"],encodeDefaulter:m["h"](Pt["d"],this)}),n=m["f"](),r=[],i=0,o=t.count();i<o;i++){var a=t.getName(i);n.set(a,!0)}var s=rc.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return m["k"](s.regions,(function(e){var t=e.name;n.get(t)||r.push(t)})),t.appendValues([],r),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),i=this.getRawValue(e),o=r.getName(e),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=r.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return Object(cl["c"])("section",{header:s.join(", "),noHeader:!s.length,blocks:[Object(cl["c"])("nameValue",{name:o,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=Object(nn["a"])(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,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)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(tn["b"]),kc=Sc;function Oc(e,t){var n={};return m["k"](e,(function(e){e.each(e.mapDimension("value"),(function(t,r){var i="ec-"+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(r,i){for(var o,a="ec-"+e[0].getName(i),s=0,l=1/0,u=-1/0,c=n[a].length,d=0;d<c;d++)l=Math.min(l,n[a][d]),u=Math.max(u,n[a][d]),s+=n[a][d];return o="min"===t?l:"max"===t?u:"average"===t?s/c:s,0===c?NaN:o}))}function Tc(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)})),m["k"](t,(function(e,t){for(var n=Oc(m["H"](e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),r=0;r<e.length;r++)e[r].originalData=e[r].getData();for(r=0;r<e.length;r++)e[r].seriesGroup=e,e[r].needsDrawMap=0===r&&!e[r].getHostGeoModel(),e[r].setData(n.cloneShallow()),e[r].mainSeries=e[0]}))}function Ec(e){var t={};e.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var i={};m["k"](n.seriesGroup,(function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each(r.mapDimension("value"),(function(e,t){var o=r.getName(t),a=n.getRegion(o);if(a&&!isNaN(e)){var s=i[o]||0,l=n.dataToPoint(a.getCenter());i[o]=s+1,r.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=!i[t],o.setItemLayout(e,n)})),t[r]=!0}}))}var Cc=Ia["b"],Ac=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new F["c"],n._rawTransformable=new F["c"],n.name=t,n}return Object(Ye["a"])(t,e),t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new Zi["a"](e,t,n,r),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new Zi["a"](e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new Zi["a"](e,t,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[Object(Hn["o"])(e[0],t.getWidth()),Object(Hn["o"])(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.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()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=Ia["b"]([],r,e),n=Ia["b"]([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=i,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),La["b"](this.transform||(this.transform=[]),t.transform||La["c"]()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],La["e"](this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new F["c"];return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?Cc(n,e,r):Ia["d"](n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?Cc([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=Mc(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=Mc(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(F["c"]);function Mc(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var Lc=Ac,Ic={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Dc=["lng","lat"],jc=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.dimensions=Dc,i.type="geo",i._nameCoordMap=m["f"](),i.map=n;var o,a=r.projection,s=rc.load(n,r.nameMap,r.nameProperty),l=rc.getGeoResource(n),u=(i.resourceType=l?l.type:null,i.regions=s.regions),c=Ic[l.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=a,a)for(var d=0;d<u.length;d++){var f=u[d].getBoundingRect(a);o=o||f.clone(),o.union(f)}else o=s.boundingRect;return i.setBoundingRect(o.x,o.y,o.width,o.height),i.aspectScale=a?1:m["P"](r.aspectScale,c.aspectScale),i._invertLongitute=!a&&c.invertLongitute,i}return Object(Ye["a"])(t,e),t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new Zi["a"](e,t,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if("geoJSON"===r.type&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(m["C"](e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,r){return e.prototype.dataToPoint.call(this,t,n,r)},t.prototype.convertToPixel=function(e,t,n){var r=Pc(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=Pc(t);return r===this?r.pointToData(n):null},t}(Lc);function Pc(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",lt["b"]).models[0]||{}).coordinateSystem:null}m["K"](jc,Lc);var Rc=jc;function Nc(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(e,t,n,a){for(var s=n-e,l=a-t,u=0;u<=100;u++){var c=u/100,d=o.project([e+s*c,t+l*c]);Ia["l"](r,r,d),Ia["k"](i,i,d)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else 0}var d,f,h,p=this.getBoundingRect(),g=e.get("layoutCenter"),v=e.get("layoutSize"),y=t.getWidth(),m=t.getHeight(),b=p.width/p.height*this.aspectScale,x=!1;if(g&&v&&(d=[Hn["o"](g[0],y),Hn["o"](g[1],m)],f=Hn["o"](v,Math.min(y,m)),isNaN(d[0])||isNaN(d[1])||isNaN(f)||(x=!0)),x)h={},b>1?(h.width=f,h.height=f/b):(h.height=f,h.width=f*b),h.y=d[1]-h.height/2,h.x=d[0]-h.width/2;else{var _=e.getBoxLayoutParams();_.aspect=b,h=xi["g"](_,{width:y,height:m})}this.setViewRect(h.x,h.y,h.width,h.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function Bc(e,t){m["k"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var Fc=function(){function e(){this.dimensions=Dc}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,i){var o=e.get("map"),a=new Rc(o+i,o,m["m"]({nameMap:e.get("nameMap")},r(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=Nc,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var r=e.get("geoIndex")||0;e.coordinateSystem=n[r]}}));var i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),m["k"](i,(function(e,i){var o=m["H"](e,(function(e){return e.get("nameMap")})),a=new Rc(i,i,m["m"]({nameMap:m["J"](o)},r(e[0])));a.zoomLimit=m["O"].apply(null,m["H"](e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=Nc,a.resize(e[0],t),m["k"](e,(function(e){e.coordinateSystem=a,Bc(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),o=m["f"](),a=0;a<i.length;a++)o.set(i[a].name,i[a]);var s=rc.load(t,n,r);return m["k"](s.regions,(function(e){var t=e.name;!o.get(t)&&i.push({name:t})})),i},e}(),zc=new Fc,Uc=zc,Hc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.init=function(e,t,n){var r=rc.getGeoResource(e.map);if(r&&"geoJSON"===r.type){var i=e.itemStyle=e.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(e,n),lt["f"](e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=Uc.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=m["N"](t.regions||[],(function(t,r){var i=r.name;return i&&(t.set(i,new Ke["a"](r,e,e.ecModel)),r.selected&&(n[i]=!0)),t}),m["f"]()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Ke["a"](null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:e};return m["w"](r)?(i.status=t,r(i)):m["C"](r)?r.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){"multiple"!==n&&(t.selectedMap=null);var r=t.selectedMap||(t.selectedMap={});r[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={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"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(oo["a"]),Vc=Hc;function Gc(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function qc(e,t,n,r){var i=e.getZoom(),o=e.getCenter(),a=t.zoom,s=e.projectedToPoint?e.projectedToPoint(o):e.dataToPoint(o);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(Gc(e,s),r)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(i*a,u),l)/i}e.scaleX*=a,e.scaleY*=a;var c=(t.originX-e.x)*(a-1),d=(t.originY-e.y)*(a-1);e.x-=c,e.y-=d,e.updateTransform(),e.setCenter(Gc(e,s),r),e.setZoom(a*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var Wc=n("fadd"),Yc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return Object(Ye["a"])(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new xc(n));var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=e.get("silent"),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;Object(Wc["a"])(e.target,(function(e){return null!=(t=Object(ut["a"])(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse((function(e){var t=Object(ut["a"])(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(io["a"]),Kc=Yc;function Xc(e,t,n){rc.registerMap(e,t,n)}function Zc(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var o=n.coordinateSystem;Object(m["k"])(o.regions,(function(e){r[e.name]=n.isSelected(e.name)||!1}));var a=[];Object(m["k"])(r,(function(e,t){r[t]&&a.push(t)})),i.push({geoIndex:n.componentIndex,name:a})})),{selected:r,allSelected:i,name:e.name}}))}e.registerCoordinateSystem("geo",Uc),e.registerComponentModel(Vc),e.registerComponentView(Kc),e.registerImpl("registerMap",Xc),e.registerImpl("getMap",(function(e){return rc.getMapForUser(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},(function(t){var i=t.coordinateSystem;if("geo"===i.type){var o=qc(i,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===r&&Object(m["k"])(t.seriesGroup,(function(e){e.setCenter(o.center),e.setZoom(o.zoom)}))}}))}))}function $c(e){Object(r["a"])(Zc),e.registerChartView(wc),e.registerSeriesModel(kc),e.registerLayout(Ec),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Tc),Object(bi["a"])("map",e.registerAction)}var Jc=n("ac0f");function Qc(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,r,i=[t];while(n=i.pop())if(r=n.children,n.isExpand&&r.length)for(var o=r.length,a=o-1;a>=0;a--){var s=r[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(s)}}function ed(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){od(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=ad(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function td(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function nd(e){return arguments.length?e:dd}function rd(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function id(e,t){return xi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function od(e){var t=e.children,n=t.length,r=0,i=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function ad(e,t,n,r){if(t){var i=e,o=e,a=o.parentNode.children[0],s=t,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,d=s.hierNode.modifier;while(s=sd(s),o=ld(o),s&&o){i=sd(i),a=ld(a),i.hierNode.ancestor=e;var f=s.hierNode.prelim+d-o.hierNode.prelim-u+r(s,o);f>0&&(cd(ud(s,e,n),e,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!sd(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),o&&!ld(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}function sd(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function ld(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function ud(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function cd(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function dd(e,t){return e.parentNode===t.parentNode?1:2}var fd=n("e263"),hd=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),pd=function(e){function t(t){return e.call(this,t)||this}return Object(Ye["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hd},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,o=n[0],a=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Object(Hn["o"])(t.forkPosition,1),d=[];d[l]=i[l],d[u]=i[u]+(a[u]-i[u])*c,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(o[0],o[1]),d[l]=o[l],e.lineTo(d[0],d[1]),d[l]=a[l],e.lineTo(d[0],d[1]),e.lineTo(a[0],a[1]);for(var f=1;f<r-1;f++){var h=n[f];e.moveTo(h[0],h[1]),d[l]=h[l],e.lineTo(d[0],d[1])}},t}(a["b"]),gd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new rn["a"],n}return Object(Ye["a"])(t,e),t.prototype.init=function(e,t){this._controller=new zl(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,o=this._mainGroup,a=e.get("layout");"radial"===a?(o.x=i.x+i.width/2,o.y=i.y+i.height/2):(o.x=i.x,o.y=i.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var s=this._data;r.diff(s).add((function(t){vd(r,t)&&yd(r,t,null,o,e)})).update((function(t,n){var i=s.getItemGraphicEl(n);vd(r,t)?yd(r,t,i,o,e):i&&_d(s,n,i,o,e)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&_d(s,t,n,o,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&r.eachItemGraphicEl((function(t,r){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:r})}))})),this._data=r},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),r=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||r.push([+t.x,+t.y])}));var i=[],o=[];fd["d"](r,i,o);var a=this._min,s=this._max;o[0]-i[0]===0&&(i[0]=a?a[0]:i[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-i[1]===0&&(i[1]=a?a[1]:i[1]-1,o[1]=s?s[1]:o[1]+1);var l=e.coordinateSystem=new Lc;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=i,this._max=o},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(t,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!Gl(t,n,e)})),i.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){Ul(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){Hl(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,r=t.scaleX||1,i=t.getZoom(),o=(i-1)*n+1;return o/r},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Fn["a"]);function vd(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function yd(e,t,n,r,i){var o=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=e.tree.root,d=a.parentNode===c?a:a.parentNode||a,f=e.getItemGraphicEl(d.dataIndex),h=d.getLayout(),p=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:h,g=a.getLayout();o?(n=new gn(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=p.x,n.y=p.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,sn["h"](n,{x:g.x,y:g.y},i);var v=n.getSymbolPath();if("radial"===i.get("layout")){var y=c.children[0],b=y.getLayout(),x=y.children.length,_=void 0,w=void 0;if(g.x===b.x&&!0===a.isExpand&&y.children.length){var S={x:(y.children[0].getLayout().x+y.children[x-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[x-1].getLayout().y)/2};_=Math.atan2(S.y-b.y,S.x-b.x),_<0&&(_=2*Math.PI+_),w=S.x<b.x,w&&(_-=Math.PI)}else _=Math.atan2(g.y-b.y,g.x-b.x),_<0&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(w=g.x<b.x,w&&(_-=Math.PI)):(w=g.x>b.x,w||(_-=Math.PI));var k=w?"left":"right",O=s.getModel("label"),T=O.get("rotate"),E=T*(Math.PI/180),C=v.getTextContent();C&&(v.setTextConfig({position:O.get("position")||k,rotation:null==T?-_:E,origin:"center"}),C.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),M="relative"===A?m["e"](a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;M&&(Object(ut["a"])(n).focus=M),md(i,a,c,n,p,h,g,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var r=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);r&&r.hoverState===un["d"]||Object(un["H"])(n.__edge,t)}})}function md(e,t,n,r,i,o,a,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),d=e.getOrient(),f=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(g||(g=r.__edge=new Jc["a"]({shape:wd(c,d,f,i,i)})),sn["h"](g,{shape:wd(c,d,f,o,a)},e));else if("polyline"===u)if("orthogonal"===c){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var v=t.children,y=[],b=0;b<v.length;b++){var x=v[b].getLayout();y.push([x.x,x.y])}g||(g=r.__edge=new pd({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:d,forkPosition:h}})),sn["h"](g,{shape:{parentPoint:[a.x,a.y],childPoints:y}},e)}}else 0;g&&("polyline"!==u||t.isExpand)&&(g.useStyle(m["i"]({strokeNoScale:!0,fill:null},p)),Object(un["I"])(g,l,"lineStyle"),Object(un["G"])(g),s.add(g))}function bd(e,t,n,r,i){var o=t.tree.root,a=xd(o,e),s=a.source,l=a.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),d=c.__edge,f=u.__edge||(!1===s.isExpand||1===s.children.length?d:void 0),h=r.get("edgeShape"),p=r.get("layout"),g=r.get("orient"),v=r.get(["lineStyle","curveness"]);f&&("curve"===h?sn["e"](f,{shape:wd(p,g,v,l,l),style:{opacity:0}},r,{cb:function(){n.remove(f)},removeOpt:i}):"polyline"===h&&"orthogonal"===r.get("layout")&&sn["e"](f,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(f)},removeOpt:i}))}}function xd(e,t){var n,r=t.parentNode===e?t:t.parentNode||t;while(n=r.getLayout(),null==n)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function _d(e,t,n,r,i){var o=e.tree.getNodeByDataIndex(t),a=e.tree.root,s=xd(a,o).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};sn["e"](n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach((function(t){bd(t,e,r,i,l)})),bd(o,e,r,i,l)}function wd(e,t,n,r,i){var o,a,s,l,u,c,d,f;if("radial"===e){u=r.rawX,d=r.rawY,c=i.rawX,f=i.rawY;var h=rd(u,d),p=rd(u,d+(f-d)*n),g=rd(c,f+(d-f)*n),v=rd(c,f);return{x1:h.x||0,y1:h.y||0,x2:v.x||0,y2:v.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=r.x,d=r.y,c=i.x,f=i.y,"LR"!==t&&"RL"!==t||(o=u+(c-u)*n,a=d,s=c+(u-c)*n,l=f),"TB"!==t&&"BT"!==t||(o=u,a=d+(f-d)*n,s=c,l=f+(d-f)*n),{x1:u,y1:d,x2:c,y2:f,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var Sd=gd,kd=Object(lt["o"])();function Od(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,Id(t,n,e),Object(m["k"])(n,(function(n){Object(m["k"])(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,Object(m["h"])(Td,e))}))})),t.wrapMethod("cloneShallow",Object(m["h"])(Cd,e)),Object(m["k"])(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,Object(m["h"])(Ed,e))})),Object(m["b"])(n[t.dataType]===t)}function Td(e,t){if(Ld(this)){var n=Object(m["m"])({},kd(this).datas);n[this.dataType]=t,Id(t,n,e)}else Dd(t,this.dataType,kd(this).mainData,e);return t}function Ed(e,t){return e.struct&&e.struct.update(),t}function Cd(e,t){return Object(m["k"])(kd(t).datas,(function(n,r){n!==t&&Dd(n.cloneShallow(),r,t,e)})),t}function Ad(e){var t=kd(this).mainData;return null==e||null==t?t:kd(t).datas[e]}function Md(){var e=kd(this).mainData;return null==e?[{data:e}]:Object(m["H"])(Object(m["F"])(kd(e).datas),(function(t){return{type:t,data:kd(e).datas[t]}}))}function Ld(e){return kd(e).mainData===e}function Id(e,t,n){kd(e).datas={},Object(m["k"])(t,(function(t,r){Dd(t,r,e,n)}))}function Dd(e,t,n,r){kd(n).datas[t]=e,kd(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=Ad,e.getLinkedDataAll=Md}var jd=Od,Pd=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){m["w"](e)&&(n=t,t=e,e=null),e=e||{},m["C"](e)&&(e={order:e});var r,i=e.order||"preorder",o=this[e.attr||"children"];"preorder"===i&&(r=t.call(n,this));for(var a=0;!r&&a<o.length;a++)o[a].eachNode(e,t,n);"postorder"===i&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},e.prototype.getAncestors=function(e){var t=[],n=e?this:this.parentNode;while(n)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){var e=[],t=this;while(t)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),Rd=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),o=[],a=1;function s(e,t){var n=e.value;a=Math.max(a,m["t"](n)?n.length:1),o.push(e);var r=new Pd(Object(lt["e"])(e.name,""),i);t?Nd(r,t):i.root=r,i._nodes.push(r);var l=e.children;if(l)for(var u=0;u<l.length;u++)s(l[u],r)}s(t),i.root.updateDepthAndHeight(0);var l=Rt(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new jt(l,n);return u.initData(o),r&&r(u),jd({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},e}();function Nd(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var Bd=Rd;function Fd(e,t,n){if(e&&m["r"](t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(m["C"](i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=e.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}}function zd(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function Ud(e,t){var n=zd(e);return m["r"](n,t)>=0}function Hd(e,t){var n=[];while(e){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var Vd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return Object(Ye["a"])(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new Ke["a"](n,this,this.ecModel),i=Bd.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=r),e}))}var a=0;i.eachNode("preorder",(function(e){e.depth>a&&(a=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return i.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),i.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(e),a=o.getValue(),s=o.name;while(o&&o!==i)s=o.parentNode.name+"."+s,o=o.parentNode;return Object(cl["c"])("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Hd(r,this),n.collapsed=!r.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={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",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(tn["b"]),Gd=Vd;function qd(e,t,n){var r,i=[e],o=[];while(r=i.pop())if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s<a.length;s++)i.push(a[s])}while(r=o.pop())t(r,n)}function Wd(e,t){var n,r=[e];while(n=r.pop())if(t(n),n.isExpand){var i=n.children;if(i.length)for(var o=i.length-1;o>=0;o--)r.push(i[o])}}function Yd(e,t){e.eachSeriesByType("tree",(function(e){Kd(e,t)}))}function Kd(e,t){var n=id(e,t);e.layoutInfo=n;var r=e.get("layout"),i=0,o=0,a=null;"radial"===r?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=nd((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(i=n.width,o=n.height,a=nd());var s=e.getData().tree.root,l=s.children[0];if(l){Qc(s),qd(l,ed,a),s.hierNode.modifier=-l.hierNode.prelim,Wd(l,td);var u=l,c=l,d=l;Wd(l,(function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>c.getLayout().x&&(c=e),e.depth>d.depth&&(d=e)}));var f=u===c?1:a(u,c)/2,h=f-u.getLayout().x,p=0,g=0,v=0,y=0;if("radial"===r)p=i/(c.getLayout().x+f+h),g=o/(d.depth-1||1),Wd(l,(function(e){v=(e.getLayout().x+h)*p,y=(e.depth-1)*g;var t=rd(v,y);e.setLayout({x:t.x,y:t.y,rawX:v,rawY:y},!0)}));else{var m=e.getOrient();"RL"===m||"LR"===m?(g=o/(c.getLayout().x+f+h),p=i/(d.depth-1||1),Wd(l,(function(e){y=(e.getLayout().x+h)*g,v="LR"===m?(e.depth-1)*p:i-(e.depth-1)*p,e.setLayout({x:v,y:y},!0)}))):"TB"!==m&&"BT"!==m||(p=i/(c.getLayout().x+f+h),g=o/(d.depth-1||1),Wd(l,(function(e){v=(e.getLayout().x+h)*p,y="TB"===m?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:v,y:y},!0)})))}}}function Xd(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),r=n.getModel("itemStyle").getItemStyle(),i=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(m["m"])(i,r)}))}))}function Zd(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,r=t.getData().tree,i=r.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var r=t.coordinateSystem,i=qc(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}function $d(e){e.registerChartView(Sd),e.registerSeriesModel(Gd),e.registerLayout(Yd),e.registerVisual(Xd),Zd(e)}var Jd=["treemapZoomToNode","treemapRender","treemapMove"];function Qd(e){for(var t=0;t<Jd.length;t++)e.registerAction({type:Jd[t],update:"updateView"},m["L"]);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var r=["treemapZoomToNode","treemapRootToNode"],i=Fd(e,r,t);if(i){var o=t.getViewRoot();o&&(e.direction=Ud(o,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))}var ef=n("4041");function tf(e){var t=e.getData(),n=t.tree,r={};n.eachNode((function(t){var n=t;while(n&&n.depth>1)n=n.parentNode;var i=Object(ef["b"])(e.ecModel,n.name||n.dataIndex+"",r);t.setVisual("decal",i)}))}var nf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return Object(Ye["a"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};rf(n);var r=e.levels||[],i=this.designatedVisualItemStyle={},o=new Ke["a"]({itemStyle:i},this,t);r=e.levels=of(r,t);var a=m["H"](r||[],(function(e){return new Ke["a"](e,o,t)}),this),s=Bd.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),r=n?a[n.depth]:null;return e.parentModel=r||o,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),o=r.getName(e);return Object(cl["c"])("nameValue",{name:o,value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Hd(r,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},m["m"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=m["f"](),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.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)},t.prototype.enableAriaDecal=function(){tf(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",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)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(tn["b"]);function rf(e){var t=0;m["k"](e.children,(function(e){rf(e);var n=e.value;m["t"](n)&&(n=n[0]),t+=n}));var n=e.value;m["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),m["t"](e.value)?e.value[0]=n:e.value=n}function of(e,t){var n=Object(lt["r"])(t.get("color")),r=Object(lt["r"])(t.get(["aria","decal","decals"]));if(n){var i,o;e=e||[],m["k"](e,(function(e){var t=new Ke["a"](e),n=t.get("color"),r=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(i=!0),(t.get(["itemStyle","decal"])||r&&"none"!==r)&&(o=!0)}));var a=e[0]||(e[0]={});return i||(a.color=n.slice()),!o&&r&&(a.decal=r.slice()),e}}var af=nf,sf=8,lf=8,uf=5,cf=function(){function e(e){this.group=new rn["a"],e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(e,l,a,s,r),xi["i"](o,l.pos,l.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=Object(lt["e"])(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+2*sf,t.emptyItemWidth);t.totalWidth+=a+lf,t.renderList.push({node:r,text:i,width:a})}},e.prototype._renderContent=function(e,t,n,r,i){for(var o=0,a=t.emptyItemWidth,s=e.get(["breadcrumb","height"]),l=xi["e"](t.pos,t.box),u=t.totalWidth,c=t.renderList,d=c.length-1;d>=0;d--){var f=c[d],h=f.node,p=f.width,g=f.text;u>l.width&&(u-=p-a,p=a,g=null);var v=new sl["a"]({shape:{points:df(o,0,p,s,d===c.length-1,0===d)},style:Object(m["i"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new J["a"]({style:{text:g,fill:r.getTextColor(),font:r.getFont()}}),textConfig:{position:"inside"},z2:1e4*un["j"],onclick:Object(m["h"])(i,h)});v.disableLabelAnimation=!0,this.group.add(v),ff(v,e,h),o+=p+lf}},e.prototype.remove=function(){this.group.removeAll()},e}();function df(e,t,n,r,i,o){var a=[[i?e:e-uf,t],[e+n,t],[e+n,t+r],[i?e:e-uf,t+r]];return!o&&a.splice(2,0,[e+n+uf,t+r/2]),!i&&a.push([e,t+r/2]),a}function ff(e,t,n){Object(ut["a"])(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Hd(n,t)}}var hf=cf,pf=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var o=this._storage[r];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function gf(){return new pf}var vf=n("282b"),yf=rn["a"],mf=zn["a"],bf=3,xf="label",_f="upperLabel",wf=10*un["j"],Sf=2*un["j"],kf=3*un["j"],Of=Object(vf["a"])([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Tf=function(e){var t=Of(e);return t.stroke=t.fill=t.lineWidth=null,t},Ef=Object(lt["o"])(),Cf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=Af(),n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n,r){var i=t.findComponents({mainType:"series",subType:"treemap",query:r});if(!(Object(m["r"])(i,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var o=["treemapZoomToNode","treemapRootToNode"],a=Fd(r,o,e),s=r&&r.type,l=e.layoutInfo,u=!this._oldTree,c=this._storage,d="treemapRootToNode"===s&&a&&c?{rootNodeGroup:c.nodeGroup[a.node.getRawIndex()],direction:r.direction}:null,f=this._giveContainerGroup(l),h=e.get("animation"),p=this._doRender(f,e,d);!h||u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?p.renderFinally():this._doAnimation(f,p,e,d),this._resetController(n),this._renderBreadcrumb(e,n,a)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new yf,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,o=Af(),a=Af(),s=this._storage,l=[];function u(e,r,i,u){return Mf(t,a,s,n,o,l,e,r,i,u)}d(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var c=f(s);return this._oldTree=r,this._storage=a,{lastsForAnimation:o,willDeleteEls:c,renderFinally:h};function d(e,t,n,r,i){function o(e){return e.getId()}function a(o,a){var s=null!=o?e[o]:null,l=null!=a?t[a]:null,c=u(s,l,n,i);c&&d(s&&s.viewChildren||[],l&&l.viewChildren||[],c,r,i+1)}r?(t=e,Object(m["k"])(e,(function(e,t){!e.isRemoved()&&a(t,t)}))):new Je(t,e,o,o).add(a).update(a).remove(Object(m["h"])(a,null)).execute()}function f(e){var t=Af();return e&&Object(m["k"])(e,(function(e,n){var r=t[n];Object(m["k"])(e,(function(e){e&&(r.push(e),Ef(e).willDelete=!0)}))})),t}function h(){Object(m["k"])(c,(function(e){Object(m["k"])(e,(function(e){e.parent&&e.parent.remove(e)}))})),Object(m["k"])(l,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,n,r){var i=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Object(m["w"])(i)?0:i)||0,s=(Object(m["w"])(o)?null:o)||"cubicOut",l=gf();Object(m["k"])(t.willDeleteEls,(function(e,t){Object(m["k"])(e,(function(e,n){if(!e.invisible){var i,o=e.parent,u=Ef(o);if(r&&"drillDown"===r.direction)i=o===r.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,d=0;u.willDelete||(c=u.nodeWidth/2,d=u.nodeHeight/2),i="nodeGroup"===t?{x:c,y:d,style:{opacity:0}}:{shape:{x:c,y:d,width:0,height:0},style:{opacity:0}}}i&&l.add(e,i,a,0,s)}}))})),Object(m["k"])(this._storage,(function(e,n){Object(m["k"])(e,(function(e,r){var i=t.lastsForAnimation[n][r],o={};i&&(e instanceof rn["a"]?null!=i.oldX&&(o.x=e.x,o.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(o.shape=Object(m["m"])({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle("opacity",0),o.style={opacity:1}):1!==e.style.opacity&&(o.style={opacity:1})),l.add(e,o,a,0,s))}))}),this),this._state="animating",l.finished(Object(m["c"])((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||(t=this._controller=new zl(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",Object(m["c"])(this._onPan,this)),t.on("zoom",Object(m["c"])(this._onZoom,this)));var n=new Zi["a"](0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,r){return n.contain(t,r)}))},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>bf||Math.abs(e.dy)>bf)){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}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;var o=new Zi["a"](i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo;t-=a.x,n-=a.y;var s=La["c"]();La["i"](s,s,[-t,-n]),La["h"](s,s,[e.scale,e.scale]),La["i"](s,s,[t,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Object(Yn["j"])(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;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 hf(this.group))).render(e,t,n.node,(function(t){"animating"!==r._state&&(Ud(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Af(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(e,t),a=i.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:r,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(Fn["a"]);function Af(){return{nodeGroup:[],background:[],content:[]}}function Mf(e,t,n,r,i,o,a,s,l,u){if(a){var c=a.getLayout(),d=e.getData(),f=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var h=c.width,p=c.height,g=c.borderWidth,v=c.invisible,y=a.getRawIndex(),b=s&&s.getRawIndex(),x=a.viewChildren,_=c.upperHeight,w=x&&x.length,S=f.getModel("itemStyle"),k=f.getModel(["emphasis","itemStyle"]),O=f.getModel(["blur","itemStyle"]),T=f.getModel(["select","itemStyle"]),E=S.get("borderRadius")||0,C=U("nodeGroup",yf);if(C){if(l.add(C),C.x=c.x||0,C.y=c.y||0,C.markRedraw(),Ef(C).nodeWidth=h,Ef(C).nodeHeight=p,c.isAboveViewRoot)return C;var A=U("background",mf,u,Sf);A&&R(C,A,w&&c.upperLabelHeight);var M=f.getModel("emphasis"),L=M.get("focus"),I=M.get("blurScope"),D=M.get("disabled"),j="ancestor"===L?a.getAncestorsIndices():"descendant"===L?a.getDescendantIndices():L;if(w)Object(un["y"])(C)&&Object(un["F"])(C,!1),A&&(Object(un["F"])(A,!D),d.setItemGraphicEl(a.dataIndex,A),Object(un["p"])(A,j,I));else{var P=U("content",mf,u,kf);P&&N(C,P),A.disableMorphing=!0,A&&Object(un["y"])(A)&&Object(un["F"])(A,!1),Object(un["F"])(C,!D),d.setItemGraphicEl(a.dataIndex,C),Object(un["p"])(C,j,I)}return C}}}function R(t,n,r){var i=Object(ut["a"])(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:h,height:p,r:E}),v)B(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=Tf(S);l.fill=s;var u=Of(k);u.fill=k.get("borderColor");var c=Of(O);c.fill=O.get("borderColor");var d=Of(T);if(d.fill=T.get("borderColor"),r){var f=h-2*g;F(n,s,o.opacity,{x:g,y:0,width:f,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=d,Object(un["G"])(n)}t.add(n)}function N(t,n){var r=Object(ut["a"])(n);r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(h-2*g,0),o=Math.max(p-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:o,r:E}),v)B(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=Tf(S);u.fill=l,u.decal=s.decal;var c=Of(k),d=Of(O),f=Of(T);F(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=d,n.ensureState("select").style=f,Object(un["G"])(n)}t.add(n)}function B(e){!e.invisible&&o.push(e)}function F(t,n,r,i){var o=f.getModel(i?_f:xf),s=Object(lt["e"])(f.get("name"),null),l=o.getShallow("show");Object(fn["g"])(t,Object(fn["e"])(f,i?_f:xf),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var d=u.style,h=Object(m["M"])(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-h[1]-h[3],0),n=Math.max((i?i.height:t.shape.height)-h[0]-h[2],0);d.width===e&&d.height===n||u.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",z(d,i,c);var p=u.getState("emphasis");z(p?p.style:null,i,c)}}function z(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+i:i}}function U(e,r,o,a){var s=null!=b&&n[e][b],l=i[e];return s?(n[e][b]=null,H(l,s)):v||(s=new r,s instanceof oc["c"]&&(s.z2=Lf(o,a)),V(l,s)),t[e][y]=s}function H(e,t){var n=e[y]={};t instanceof yf?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(m["m"])({},t.shape)}function V(e,t){var n=e[y]={},o=a.parentNode,s=t instanceof rn["a"];if(o&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[o.getRawIndex()];!r&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function Lf(e,t){return e*wf+t}var If=Cf,Df=n("edae"),jf=m["k"],Pf=m["A"],Rf=-1,Nf=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=m["d"](t);this.type=r,this.mappingMethod=n,this._normalizeData=Xf[n];var o=e.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(zf(i),Bf(i)):"category"===n?i.categories?Ff(i):zf(i,!0):(m["b"]("linear"!==n||i.dataExtent),zf(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return m["c"](this._normalizeData,this)},e.listVisualTypes=function(){return m["F"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){m["A"](e)?m["k"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,o=m["t"](t)?[]:m["A"](t)?{}:(i=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(r,e,t);i?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,r={};return t&&jf(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(m["t"](e))e=e.slice();else{if(!Pf(e))return[];var t=[];jf(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===e||m["C"](s)&&s===e+"")return o;n&&d(s,o)}}for(o=0,a=t.length;o<a;o++){var l=t[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(Zf(c[1],e,u[1]))return o}else if(u[1]===1/0){if(Zf(c[0],u[0],e))return o}else if(Zf(c[0],u[0],e)&&Zf(c[1],e,u[1]))return o;n&&d(u[0],o),n&&d(u[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var o=Math.abs(t-e);o<i&&(i=o,r=n)}},e.visualHandlers={color:{applyVisual:Vf("color"),getColorMapper:function(){var e=this.option;return m["c"]("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),Gf.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=Kn["a"](t,e.parsedVisual,r),i?r:Kn["h"](r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Kn["h"](Kn["a"](e,this.option.parsedVisual),"rgba")},category:Gf,piecewise:function(e,t){var n=Yf.call(this,t);return null==n&&(n=Kn["h"](Kn["a"](e,this.option.parsedVisual),"rgba")),n},fixed:qf}},colorHue:Uf((function(e,t){return Kn["f"](e,t)})),colorSaturation:Uf((function(e,t){return Kn["f"](e,null,t)})),colorLightness:Uf((function(e,t){return Kn["f"](e,null,null,t)})),colorAlpha:Uf((function(e,t){return Kn["e"](e,t)})),decal:{applyVisual:Vf("decal"),_normalizedToVisual:{linear:null,category:Gf,piecewise:null,fixed:null}},opacity:{applyVisual:Vf("opacity"),_normalizedToVisual:Wf([0,1])},liftZ:{applyVisual:Vf("liftZ"),_normalizedToVisual:{linear:qf,category:qf,piecewise:qf,fixed:qf}},symbol:{applyVisual:function(e,t,n){var r=this.mapValueToVisual(e);n("symbol",r)},_normalizedToVisual:{linear:Hf,category:Gf,piecewise:function(e,t){var n=Yf.call(this,t);return null==n&&(n=Hf.call(this,e)),n},fixed:qf}},symbolSize:{applyVisual:Vf("symbolSize"),_normalizedToVisual:Wf([0,1])}},e}();function Bf(e){var t=e.pieceList;e.hasSpecialVisual=!1,m["k"](t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function Ff(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(jf(t,(function(e,t){n[e]=t})),!m["t"](r)){var i=[];m["A"](r)?jf(r,(function(e,t){var r=n[t];i[null!=r?r:Rf]=e})):i[Rf]=r,r=Kf(e,i)}for(var o=t.length-1;o>=0;o--)null==r[o]&&(delete n[t[o]],t.pop())}function zf(e,t){var n=e.visual,r=[];m["A"](n)?jf(n,(function(e){r.push(e)})):null!=n&&r.push(n);var i={color:1,symbol:1};t||1!==r.length||i.hasOwnProperty(e.type)||(r[1]=r[0]),Kf(e,r)}function Uf(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:Wf([0,1])}}function Hf(e){var t=this.option.visual;return t[Math.round(Object(Hn["k"])(e,[0,1],[0,t.length-1],!0))]||{}}function Vf(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function Gf(e){var t=this.option.visual;return t[this.option.loop&&e!==Rf?e%t.length:e]}function qf(){return this.option.visual[0]}function Wf(e){return{linear:function(t){return Object(Hn["k"])(t,e,this.option.visual,!0)},category:Gf,piecewise:function(t,n){var r=Yf.call(this,n);return null==r&&(r=Object(Hn["k"])(t,e,this.option.visual,!0)),r},fixed:qf}}function Yf(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=Nf.findPieceIndex(e,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function Kf(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=m["H"](t,(function(e){var t=Kn["g"](e);return t||[0,0,0,1]}))),t}var Xf={linear:function(e){return Object(Hn["k"])(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Nf.findPieceIndex(e,t,!0);if(null!=n)return Object(Hn["k"])(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?Rf:t},fixed:m["L"]};function Zf(e,t,n){return e?t<=n:t<n}var $f=Nf,Jf="itemStyle",Qf=Object(lt["o"])(),eh={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||th(n,{},e.getViewRoot().getAncestors(),e)}};function th(e,t,n,r){var i=e.getModel(),o=e.getLayout(),a=e.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=i.getModel(Jf),u=nh(l,t,r),c=a.ensureUniqueItemVisual(e.dataIndex,"style"),d=l.get("borderColor"),f=l.get("borderColorSaturation");null!=f&&(s=rh(u),d=ih(f,s)),c.stroke=d;var h=e.viewChildren;if(h&&h.length){var p=ah(e,i,o,l,u,h);Object(m["k"])(h,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var o=lh(i,u,e,t,p,r);th(e,o,n,r)}}))}else s=rh(u),c.fill=s}}function nh(e,t,n){var r=Object(m["m"])({},t),i=n.designatedVisualItemStyle;return Object(m["k"])(["color","colorAlpha","colorSaturation"],(function(n){i[n]=t[n];var o=e.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}function rh(e){var t=oh(e,"color");if(t){var n=oh(e,"colorAlpha"),r=oh(e,"colorSaturation");return r&&(t=Object(Kn["f"])(t,null,null,r)),n&&(t=Object(Kn["e"])(t,n)),t}}function ih(e,t){return null!=t?Object(Kn["f"])(t,null,null,e):null}function oh(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function ah(e,t,n,r,i,o){if(o&&o.length){var a=sh(t,"color")||null!=i.color&&"none"!==i.color&&(sh(t,"colorAlpha")||sh(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),d={type:a.name,dataExtent:u,visual:a.range};"color"!==d.type||"index"!==c&&"id"!==c?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var f=new $f(d);return Qf(f).drColorMappingBy=c,f}}}function sh(e,t){var n=e.get(t);return Object(m["t"])(n)&&n.length?{name:t,range:n}:null}function lh(e,t,n,r,i,o){var a=Object(m["m"])({},t);if(i){var s=i.type,l="color"===s&&Qf(i).drColorMappingBy,u="index"===l?r:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}var uh=Math.max,ch=Math.min,dh=m["O"],fh=m["k"],hh=["itemStyle","borderWidth"],ph=["itemStyle","gapWidth"],gh=["upperLabel","show"],vh=["upperLabel","height"],yh={seriesType:"treemap",reset:function(e,t,n,r){var i=n.getWidth(),o=n.getHeight(),a=e.option,s=xi["g"](e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Object(Hn["o"])(dh(s.width,l[0]),i),c=Object(Hn["o"])(dh(s.height,l[1]),o),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=Fd(r,f,e),p="treemapRender"===d||"treemapMove"===d?r.rootRect:null,g=e.getViewRoot(),v=zd(g);if("treemapMove"!==d){var y="treemapZoomToNode"===d?Oh(e,h,g,u,c):p?[p.width,p.height]:[u,c],b=a.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var x={squareRatio:a.squareRatio,sort:b,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var _={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(_),mh(g,x,!1,0),_=g.getLayout(),fh(v,(function(e,t){var n=(v[t+1]||g).getValue();e.setLayout(m["m"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var w=e.getData().tree.root;w.setLayout(Th(s,p,h),!0),e.setLayoutInfo(s),Eh(w,new Zi["a"](-s.x,-s.y,i,o),v,g,0)}};function mh(e,t,n,r){var i,o;if(!e.isRemoved()){var a=e.getLayout();i=a.width,o=a.height;var s=e.getModel(),l=s.get(hh),u=s.get(ph)/2,c=Ch(s),d=Math.max(l,c),f=l-u,h=d-u;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),i=uh(i-2*f,0),o=uh(o-f-h,0);var p=i*o,g=bh(e,s,p,t,n,r);if(g.length){var v={x:f,y:h,width:i,height:o},y=ch(i,o),m=1/0,b=[];b.area=0;for(var x=0,_=g.length;x<_;){var w=g[x];b.push(w),b.area+=w.getLayout().area;var S=Sh(b,y,t.squareRatio);S<=m?(x++,m=S):(b.area-=b.pop().getLayout().area,kh(b,y,v,u,!1),y=ch(v.width,v.height),b.length=b.area=0,m=1/0)}if(b.length&&kh(b,y,v,u,!0),!n){var k=s.get("childrenVisibleMin");null!=k&&p<k&&(n=!0)}for(x=0,_=g.length;x<_;x++)mh(g[x],t,n,r+1)}}}function bh(e,t,n,r,i,o){var a=e.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=r.leafDepth&&r.leafDepth<=o;if(i&&!l)return e.viewChildren=[];a=m["n"](a,(function(e){return!e.isRemoved()})),_h(a,s);var u=wh(t,a,s);if(0===u.sum)return e.viewChildren=[];if(u.sum=xh(t,n,u.sum,s,a),0===u.sum)return e.viewChildren=[];for(var c=0,d=a.length;c<d;c++){var f=a[c].getValue()/u.sum*n;a[c].setLayout({area:f})}return l&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0),e.viewChildren=a,e.setLayout({dataExtent:u.dataExtent},!0),a}function xh(e,t,n,r,i){if(!r)return n;for(var o=e.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*t<o&&(s=l,n-=u)}return"asc"===r?i.splice(0,a-s):i.splice(s,a-s),n}function _h(e,t){return t&&e.sort((function(e,n){var r="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===r?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r})),e}function wh(e,t,n){for(var r=0,i=0,o=t.length;i<o;i++)r+=t[i].getValue();var a,s=e.get("visualDimension");return t&&t.length?"value"===s&&n?(a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],fh(t,(function(e){var t=e.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:r,dataExtent:a}}function Sh(e,t,n){for(var r=0,i=1/0,o=0,a=void 0,s=e.length;o<s;o++)a=e[o].getLayout().area,a&&(a<i&&(i=a),a>r&&(r=a));var l=e.area*e.area,u=t*t*n;return l?uh(u*r/l,l/(u*i)):1/0}function kh(e,t,n,r,i){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=t?e.area/t:0;(i||c>n[l[a]])&&(c=n[l[a]]);for(var d=0,f=e.length;d<f;d++){var h=e[d],p={},g=c?h.getLayout().area/c:0,v=p[l[a]]=uh(c-2*r,0),y=n[s[o]]+n[l[o]]-u,m=d===f-1||y<g?y:g,b=p[l[o]]=uh(m-2*r,0);p[s[a]]=n[s[a]]+ch(r,v/2),p[s[o]]=u+ch(r,b/2),u+=m,h.setLayout(p,!0)}n[s[a]]+=c,n[l[a]]-=c}function Oh(e,t,n,r,i){var o,a=(t||{}).node,s=[r,i];if(!a||a===n)return s;var l=r*i,u=l*e.option.zoomToNodeRatio;while(o=a.parentNode){for(var c=0,d=o.children,f=0,h=d.length;f<h;f++)c+=d[f].getValue();var p=a.getValue();if(0===p)return s;u*=c/p;var g=o.getModel(),v=g.get(hh),y=Math.max(v,Ch(g));u+=4*v*v+(3*v+y)*Math.pow(u,.5),u>Hn["a"]&&(u=Hn["a"]),a=o}u<l&&(u=l);var m=Math.pow(u/l,.5);return[r*m,i*m]}function Th(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;var a=[o.width/2,o.height/2],s=i;while(s){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}function Eh(e,t,n,r,i){var o=e.getLayout(),a=n[i],s=a&&a===e;if(!(a&&!s||i===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(o),isAboveViewRoot:s},!0);var l=new Zi["a"](t.x-o.x,t.y-o.y,t.width,t.height);fh(e.viewChildren||[],(function(e){Eh(e,l,n,r,i+1)}))}}function Ch(e){return e.get(gh)?e.get(vh):0}function Ah(e){e.registerSeriesModel(af),e.registerChartView(If),e.registerVisual(eh),e.registerLayout(yh),Qd(e)}function Mh(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getGraph(),i=r.data,o=n.mapArray(n.getName);i.filterSelf((function(e){var n=i.getItemModel(e),r=n.getShallow("category");if(null!=r){Object(m["z"])(r)&&(r=o[r]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(r))return!1}return!0}))}))}function Lh(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each((function(r){var o=n.getName(r);i["ec-"+o]=r;var a=n.getItemModel(r),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(o,t)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}})),n.count()&&r.each((function(e){var t=r.getItemModel(e),o=t.getShallow("category");if(null!=o){Object(m["C"])(o)&&(o=i["ec-"+o]);var a=n.getItemVisual(o,"style"),s=r.ensureUniqueItemVisual(e,"style");Object(m["m"])(s,a);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)r.setItemVisual(e,l[u],n.getItemVisual(o,l[u]))}}))}))}function Ih(e){return e instanceof Array||(e=[e,e]),e}function Dh(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),r=Ih(e.get("edgeSymbol")),i=Ih(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),o=Ih(r.getShallow("symbol",!0)),a=Ih(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(Object(m["m"])(l,s),l.stroke){case"source":var u=i.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=i.node2.getVisual("style");l.stroke=u&&u.fill;break}o[0]&&i.setVisual("fromSymbol",o[0]),o[1]&&i.setVisual("toSymbol",o[1]),a[0]&&i.setVisual("fromSymbolSize",a[0]),a[1]&&i.setVisual("toSymbolSize",a[1])}))}))}var jh="--\x3e",Ph=function(e){return e.get("autoCurveness")||null},Rh=function(e,t){var n=Ph(e),r=20,i=[];if(m["z"](n))r=n;else if(m["t"](n))return void(e.__curvenessList=n);t>r&&(r=t);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=i},Nh=function(e,t,n){var r=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[n.uid,r,i].join(jh)},Bh=function(e){var t=e.split(jh);return[t[0],t[2],t[1]].join(jh)},Fh=function(e,t){var n=Nh(e.node1,e.node2,t);return t.__edgeMap[n]},zh=function(e,t){var n=Uh(Nh(e.node1,e.node2,t),t),r=Uh(Nh(e.node2,e.node1,t),t);return n+r},Uh=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function Hh(e){Ph(e)&&(e.__curvenessList=[],e.__edgeMap={},Rh(e))}function Vh(e,t,n,r){if(Ph(n)){var i=Nh(e,t,n),o=n.__edgeMap,a=o[Bh(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}function Gh(e,t,n,r){var i=Ph(t),o=m["t"](i);if(!i)return null;var a=Fh(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=zh(e,t);Rh(t,u),e.lineStyle=e.lineStyle||{};var c=Nh(e.node1,e.node2,t),d=t.__curvenessList,f=o||u%2?0:1;if(a.isForward)return d[f+s];var h=Bh(c),p=Uh(h,t),g=d[s+p+f];return r?o?i&&0===i[0]?(p+f)%2?g:-g:((p%2?0:1)+f)%2?g:-g:(p+f)%2?g:-g:d[s+p+f]}function qh(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")])})),Wh(n,e)}}function Wh(e,t){e.eachEdge((function(e,n){var r=m["Q"](e.getModel().get(["lineStyle","curveness"]),-Gh(e,t,n,!0),0),i=Ia["c"](e.node1.getLayout()),o=Ia["c"](e.node2.getLayout()),a=[i,o];+r&&a.push([(i[0]+o[0])/2-(i[1]-o[1])*r,(i[1]+o[1])/2-(o[0]-i[0])*r]),e.setLayout(a)}))}function Yh(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var r=e.getData(),i=[];Object(m["k"])(n.dimensions,(function(e){i=i.concat(r.mapDimensionsAll(e))}));for(var o=0;o<r.count();o++){for(var a=[],s=!1,l=0;l<i.length;l++){var u=r.get(i[l],o);isNaN(u)||(s=!0),a.push(u)}s?r.setItemLayout(o,n.dataToPoint(a)):r.setItemLayout(o,[NaN,NaN])}Wh(r.graph,e)}else t&&"none"!==t||qh(e)}))}function Kh(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX,i=t.getZoom(),o=(i-1)*n+1;return o/r}function Xh(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var Zh=Math.PI,$h=[];function Jh(e,t){var n=e.coordinateSystem;if(!n||"view"===n.type){var r=n.getBoundingRect(),i=e.getData(),o=i.graph,a=r.width/2+r.x,s=r.height/2+r.y,l=Math.min(r.width,r.height)/2,u=i.count();i.setLayout({cx:a,cy:s}),u&&(Qh[t](e,o,i,l,a,s,u),o.eachEdge((function(t,n){var r,i=m["Q"](t.getModel().get(["lineStyle","curveness"]),Gh(t,e,n),0),o=Ia["c"](t.node1.getLayout()),l=Ia["c"](t.node2.getLayout()),u=(o[0]+l[0])/2,c=(o[1]+l[1])/2;+i&&(i*=3,r=[a*i+u*(1-i),s*i+c*(1-i)]),t.setLayout([o,l,r])})))}}var Qh={value:function(e,t,n,r,i,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);t.eachNode((function(e){var t=e.getValue("value"),n=u*(l?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=n}))},symbolSize:function(e,t,n,r,i,o,a){var s=0;$h.length=a;var l=Kh(e);t.eachNode((function(e){var t=Xh(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/r);isNaN(n)&&(n=Zh/2),$h[e.dataIndex]=n,s+=2*n}));var u=(2*Zh-s)/a/2,c=0;t.eachNode((function(e){var t=u+$h[e.dataIndex];c+=t,e.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=t}))}};function ep(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&Jh(e,"symbolSize")}))}var tp=Ia["o"];function np(e,t,n){for(var r=e,i=t,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<r.length;c++){var d=r[c];d.p||(d.p=Ia["e"](a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=Ia["c"](d.p),d.edges=null}var f,h,p=null==n.friction?.6:n.friction,g=p;return{warmUp:function(){g=.8*p},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){f=e},afterStep:function(e){h=e},step:function(e){f&&f(r,i);for(var t=[],n=r.length,o=0;o<i.length;o++){var a=i[o];if(!a.ignoreForceLayout){var s=a.n1,c=a.n2;Ia["q"](t,c.p,s.p);var d=Ia["i"](t)-a.d,p=c.w/(s.w+c.w);isNaN(p)&&(p=0),Ia["m"](t,t),!s.fixed&&tp(s.p,s.p,t,p*d*g),!c.fixed&&tp(c.p,c.p,t,-(1-p)*d*g)}}for(o=0;o<n;o++){var v=r[o];v.fixed||(Ia["q"](t,l,v.p),tp(v.p,v.p,t,u*g))}for(o=0;o<n;o++){s=r[o];for(var y=o+1;y<n;y++){c=r[y];Ia["q"](t,c.p,s.p);d=Ia["i"](t);0===d&&(Ia["p"](t,Math.random()-.5,Math.random()-.5),d=1);var m=(s.rep+c.rep)/d/d;!s.fixed&&tp(s.pp,s.pp,t,m),!c.fixed&&tp(c.pp,c.pp,t,-m)}}var b=[];for(o=0;o<n;o++){v=r[o];v.fixed||(Ia["q"](b,v.p,v.pp),tp(v.p,v.p,b,g),Ia["d"](v.pp,v.p))}g*=.992;var x=g<.01;h&&h(r,i,x),e&&e(x)}}}function rp(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,o=r.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?i.each((function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&Jh(e,"value"):qh(e);var l=i.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),d=a.get("edgeLength"),f=m["t"](c)?c:[c,c],h=m["t"](d)?d:[d,d];h=[h[1],h[0]];var p=i.mapArray("value",(function(e,t){var n=i.getItemLayout(t),r=Object(Hn["k"])(e,l,f);return isNaN(r)&&(r=(f[0]+f[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(t,n){var i=r.getEdgeByIndex(n),o=Object(Hn["k"])(t,u,h);isNaN(o)&&(o=(h[0]+h[1])/2);var a=i.getModel(),s=m["Q"](i.getModel().get(["lineStyle","curveness"]),-Gh(i,e,n,!0),0);return{n1:p[i.node1.dataIndex],n2:p[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),v=t.getBoundingRect(),y=np(p,g,{rect:v,gravity:a.get("gravity"),friction:a.get("friction")});y.beforeStep((function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&Ia["d"](e[n].p,r.getNodeByIndex(n).getLayout())})),y.afterStep((function(e,t,o){for(var a=0,s=e.length;a<s;a++)e[a].fixed||r.getNodeByIndex(a).setLayout(e[a].p),n[i.getId(a)]=e[a].p;for(a=0,s=t.length;a<s;a++){var l=t[a],u=r.getEdgeByIndex(a),c=l.n1.p,d=l.n2.p,f=u.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],Ia["d"](f[0],c),Ia["d"](f[1],d),+l.curveness&&(f[2]=[(c[0]+d[0])/2-(c[1]-d[1])*l.curveness,(c[1]+d[1])/2-(d[0]-c[0])*l.curveness]),u.setLayout(f)}})),e.forceLayout=y,e.preservedPoints=n,y.step()}else e.forceLayout=null}))}function ip(e,t,n){var r=Object(m["m"])(e.getBoxLayoutParams(),{aspect:n});return Object(xi["g"])(r,{width:t.getWidth(),height:t.getHeight()})}function op(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var r=e.get("coordinateSystem");if(!r||"view"===r){var i=e.getData(),o=i.mapArray((function(e){var t=i.getItemModel(e);return[+t.get("x"),+t.get("y")]})),a=[],s=[];fd["d"](o,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=ip(e,t,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],d=s[1]-a[1],f=u.width,h=u.height,p=e.coordinateSystem=new Lc;p.zoomLimit=e.get("scaleLimit"),p.setBoundingRect(a[0],a[1],c,d),p.setViewRect(u.x,u.y,f,h),p.setCenter(e.get("center"),t),p.setZoom(e.get("zoom")),n.push(p)}})),n}var ap=vs["a"].prototype,sp=Jc["a"].prototype,lp=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(Ye["a"])(t,e)})(lp);function up(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var cp=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return Object(Ye["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new lp},t.prototype.buildPath=function(e,t){up(t)?ap.buildPath.call(this,e,t):sp.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return up(this.shape)?ap.pointAt.call(this,e):sp.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=up(t)?[t.x2-t.x1,t.y2-t.y1]:sp.tangentAt.call(this,e);return Ia["m"](n,n)},t}(a["b"]),dp=cp,fp=["fromSymbol","toSymbol"];function hp(e){return"_"+e+"Type"}function pp(e,t,n){var r=t.getItemVisual(n,e);if(r&&"none"!==r){var i=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=nn["c"](i),u=nn["b"](a||0,l),c=nn["a"](r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=e,c}}function gp(e){var t=new dp({name:"line",subPixelOptimize:!0});return vp(t.shape,e),t}function vp(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)}var yp=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return Object(Ye["a"])(t,e),t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=e.getItemLayout(t),o=gp(i);o.shape.percent=0,sn["c"](o,{shape:{percent:1}},r,t),this.add(o),Object(m["k"])(fp,(function(n){var r=pp(n,e,t);this.add(r),this[hp(n)]=e.getItemVisual(t,n)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),o=e.getItemLayout(t),a={shape:{}};vp(a.shape,o),sn["h"](i,a,r,t),Object(m["k"])(fp,(function(n){var r=e.getItemVisual(t,n),i=hp(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=pp(n,e,t);this.add(o)}this[i]=r}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var f=e.getItemModel(t),h=f.getModel("emphasis");o=h.getModel("lineStyle").getLineStyle(),a=f.getModel(["blur","lineStyle"]).getLineStyle(),s=f.getModel(["select","lineStyle"]).getLineStyle(),u=h.get("disabled"),c=h.get("focus"),d=h.get("blurScope"),l=Object(fn["e"])(f)}var p=e.getItemVisual(t,"style"),g=p.stroke;i.useStyle(p),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,i.ensureState("blur").style=a,i.ensureState("select").style=s,Object(m["k"])(fp,(function(e){var t=this.childOfName(e);if(t){t.setColor(g),t.style.opacity=p.opacity;for(var n=0;n<un["g"].length;n++){var r=un["g"][n],o=i.getState(r);if(o){var a=o.style||{},s=t.ensureState(r),l=s.style||(s.style={});null!=a.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}t.markRedraw()}}),this);var v=r.getRawValue(t);Object(fn["g"])(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:g||"#000",defaultOpacity:p.opacity,defaultText:(null==v?e.getName(t):isFinite(v)?Object(Hn["u"])(v):v)+""});var y=this.getTextContent();if(y){var b=l.normal;y.__align=y.style.align,y.__verticalAlign=y.style.verticalAlign,y.__position=b.get("position")||"middle";var x=b.get("distance");Object(m["t"])(x)||(x=[x,x]),y.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Object(un["J"])(this,c,d,u)},t.prototype.highlight=function(){Object(un["r"])(this)},t.prototype.downplay=function(){Object(un["C"])(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");vp(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),r=e.getTextContent();if(t||n||r&&!r.ignore){var i=1,o=this.parent;while(o)o.scaleX&&(i/=o.scaleX),o=o.parent;var a=e.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=Ia["q"]([],u,l);if(Ia["m"](c,c),t&&(t.setPosition(l),S(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&(n.setPosition(u),S(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var d=void 0,f=void 0,h=r.__labelDistance,p=h[0]*i,g=h[1]*i,v=s/2,y=a.tangentAt(v),m=[y[1],-y[0]],b=a.pointAt(v);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var x=y[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var _=-Math.atan2(y[1],y[0]);u[0]<l[0]&&(_=Math.PI+_),r.rotation=_}var w=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,f="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,f="top";break;default:w=0,f="middle"}switch(r.__position){case"end":r.x=c[0]*p+u[0],r.y=c[1]*g+u[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",f=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*p+l[0],r.y=-c[1]*g+l[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",f=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=p*x+l[0],r.y=l[1]+w,d=y[0]<0?"right":"left",r.originX=-p*x,r.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=b[0],r.y=b[1]+w,d="center",r.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-p*x+u[0],r.y=u[1]+w,d=y[0]>=0?"right":"left",r.originX=p*x,r.originY=-w;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||f,align:r.__align||d})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var r=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr("rotation",n)}},t}(rn["a"]),mp=yp,bp=function(){function e(e){this.group=new rn["a"],this._LineCtor=e||mp}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var o=_p(e);e.diff(i).add((function(n){t._doAdd(e,n,o)})).update((function(n,r){t._doUpdate(i,e,r,n,o)})).remove((function(e){r.remove(i.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=_p(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||xp(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=e.start;r<e.end;r++){var i=t.getItemLayout(r);if(Sp(i)){var o=new this._LineCtor(t,r,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(r,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){ln["traverseElements"](this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){var r=e.getItemLayout(t);if(Sp(r)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},e.prototype._doUpdate=function(e,t,n,r,i){var o=e.getItemGraphicEl(n);Sp(t.getItemLayout(r))?(o?o.updateData(t,r,i):o=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,o),this.group.add(o)):this.group.remove(o)},e}();function xp(e){return e.animators&&e.animators.length>0}function _p(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Object(fn["e"])(t)}}function wp(e){return isNaN(e[0])||isNaN(e[1])}function Sp(e){return e&&!wp(e[0])&&!wp(e[1])}var kp=bp,Op=[],Tp=[],Ep=[],Cp=Mn["h"],Ap=Ia["g"],Mp=Math.abs;function Lp(e,t,n){for(var r,i=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){Op[0]=Cp(i[0],o[0],a[0],c),Op[1]=Cp(i[1],o[1],a[1],c);var d=Mp(Ap(Op,t)-l);d<s&&(s=d,r=c)}for(var f=0;f<32;f++){var h=r+u;Tp[0]=Cp(i[0],o[0],a[0],r),Tp[1]=Cp(i[1],o[1],a[1],r),Ep[0]=Cp(i[0],o[0],a[0],h),Ep[1]=Cp(i[1],o[1],a[1],h);d=Ap(Tp,t)-l;if(Mp(d)<.01)break;var p=Ap(Ep,t)-l;u/=2,d<0?p>=0?r+=u:r-=u:p>=0?r-=u:r+=u}return r}function Ip(e,t){var n=[],r=Mn["n"],i=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[Ia["c"](l[0]),Ia["c"](l[1])],l[2]&&l.__original.push(Ia["c"](l[2])));var d=l.__original;if(null!=l[2]){if(Ia["d"](i[0],d[0]),Ia["d"](i[1],d[2]),Ia["d"](i[2],d[1]),u&&"none"!==u){var f=Xh(e.node1),h=Lp(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],h,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],h,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){f=Xh(e.node2),h=Lp(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],h,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],h,n),i[1][1]=n[1],i[2][1]=n[2]}Ia["d"](l[0],i[0]),Ia["d"](l[1],i[2]),Ia["d"](l[2],i[1])}else{if(Ia["d"](o[0],d[0]),Ia["d"](o[1],d[1]),Ia["q"](a,o[1],o[0]),Ia["m"](a,a),u&&"none"!==u){f=Xh(e.node1);Ia["o"](o[0],o[0],a,f*t)}if(c&&"none"!==c){f=Xh(e.node2);Ia["o"](o[1],o[1],a,-f*t)}Ia["d"](l[0],o[0]),Ia["d"](l[1],o[1])}}))}function Dp(e){return"view"===e.type}var jp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.init=function(e,t){var n=new xn,r=new kp,i=this.group;this._controller=new zl(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(Dp(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):sn["h"](s,l,e)}Ip(e.getGraph(),Kh(e));var u=e.getData();o.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,f=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,f),u.graph.eachNode((function(e){var t=e.dataIndex,n=e.getGraphicEl(),i=e.getModel();if(n){n.off("drag").off("dragend");var o=i.get("draggable");o&&n.on("drag",(function(){d&&(d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,f),d.setFixed(t),u.setItemLayout(t,[n.x,n.y]))})).on("dragend",(function(){d&&d.setUnfixed(t)})),n.setDraggable(o&&!!d,!!i.get("cursor"));var a=i.get(["emphasis","focus"]);"adjacency"===a&&(Object(ut["a"])(n).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Object(ut["a"])(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var h="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),p=u.getLayout("cx"),g=u.getLayout("cy");u.eachItemGraphicEl((function(e,t){var n=u.getItemModel(t),r=n.get(["label","rotate"])||0,i=e.getSymbolPath();if(h){var o=u.getItemLayout(t),a=Math.atan2(o[1]-g,o[0]-p);a<0&&(a=2*Math.PI+a);var s=o[0]<p;s&&(a-=Math.PI);var l=s?"left":"right";i.setTextConfig({rotation:-a,position:l,origin:"center"});var c=i.ensureState("emphasis");m["m"](c.textConfig||(c.textConfig={}),{position:l})}else i.setTextConfig({rotation:r*=Math.PI/180})})),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))})()},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(t,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!Gl(t,n,e)})),Dp(e.coordinateSystem)?(i.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){Ul(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){Hl(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),Ip(e.getGraph(),Kh(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=Kh(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){Ip(e.getGraph(),Kh(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Fn["a"]),Pp=jp;function Rp(e){return"_EC_"+e}var Np=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[Rp(e)]){var r=new Bp(e,t);return r.hostGraph=this,this.nodes.push(r),n[Rp(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[Rp(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(m["z"](e)&&(e=this.nodes[e]),m["z"](t)&&(t=this.nodes[t]),e instanceof Bp||(e=r[Rp(e)]),t instanceof Bp||(t=r[Rp(t)]),e&&t){var o=e.id+"-"+t.id,a=new Fp(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),i[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof Bp&&(e=e.id),t instanceof Bp&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof Bp||(t=this._nodesMap[Rp(t)]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(r,t,null)){var a=[t];while(a.length){var s=a.shift(),l=s[i];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(e.call(r,c,s))return;a.push(c),c.__visited=!0}}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf((function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var o=r[i];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),Bp=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e}(),Fp=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e}();function zp(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}m["K"](Bp,zp("hostGraph","data")),m["K"](Fp,zp("hostGraph","edgeData"));var Up=Np;function Hp(e,t,n,r,i){for(var o=new Up(r),a=0;a<e.length;a++)o.addNode(m["O"](e[a].id,e[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<t.length;a++){var c=t[a],d=c.source,f=c.target;o.addEdge(d,f,u)&&(l.push(c),s.push(m["O"](Object(lt["e"])(c.id,null),d+" > "+f)),u++)}var h,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)h=en(e,n);else{var g=zt["a"].get(p),v=g&&g.dimensions||[];m["r"](v,"value")<0&&v.concat(["value"]);var y=Rt(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;h=new jt(y,n),h.initData(e)}var b=new jt(["value"],n);return b.initData(l,s),i&&i(h,b),jd({mainData:h,struct:o,structAttr:"graph",datas:{node:h,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var Vp=n("f6d8"),Gp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Ye["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new Vi(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(lt["f"])(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){Hh(this);var o=Hp(r,n,this,!0,a);return m["k"](o.edges,(function(e){Vh(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function a(e,t){e.wrapMethod("getItemModel",(function(e){var t=i._categoriesModels,n=e.getShallow("category"),r=t[n];return r&&(r.parentModel=e.parentModel,e.parentModel=r),e}));var n=Ke["a"].prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=o,r}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=r,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(e,n),o=r.graph.getEdgeByIndex(e),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Object(cl["c"])("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var u=Object(Vp["a"])({series:this,dataIndex:e,multipleSeries:t});return u},t.prototype._updateCategoriesData=function(){var e=m["H"](this.option.categories||[],(function(e){return null!=e.value?e:m["m"]({value:0},e)})),t=new jt(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,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:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(tn["b"]),qp=Gp,Wp={type:"graphRoam",event:"graphRoam",update:"none"};function Yp(e){e.registerChartView(Pp),e.registerSeriesModel(qp),e.registerProcessor(Mh),e.registerVisual(Lh),e.registerVisual(Dh),e.registerLayout(Yh),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,ep),e.registerLayout(rp),e.registerCoordinateSystem("graphView",{dimensions:Lc.dimensions,create:op}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},m["L"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},m["L"]),e.registerAction(Wp,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var r=t.coordinateSystem,i=qc(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}var Kp=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),Xp=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return Object(Ye["a"])(t,e),t.prototype.getDefaultShape=function(){return new Kp},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=i/3?1:2),l=t.y-r(a)*o*(o>=i/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+r(a)*o),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(a)*o,t.y-r(a)*o),e.lineTo(s,l)},t}(a["b"]),Zp=Xp;function $p(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i),a=Object(Hn["o"])(n[0],t.getWidth()),s=Object(Hn["o"])(n[1],t.getHeight()),l=Object(Hn["o"])(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function Jp(e,t){var n=null==e?"":e+"";return t&&(Object(m["C"])(t)?n=t.replace("{value}",n):Object(m["w"])(t)&&(n=t(e))),n}var Qp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),i=$p(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),c=u.get("roundCap"),d=c?Hr:Un["a"],f=u.get("show"),h=u.getModel("lineStyle"),p=h.get("width"),g=[s,l];Object(z["b"])(g,!a),s=g[0],l=g[1];for(var v=l-s,y=s,m=0;f&&m<r.length;m++){var b=Math.min(Math.max(r[m][0],0),1);l=s+v*b;var x=new d({shape:{startAngle:y,endAngle:l,cx:i.cx,cy:i.cy,clockwise:a,r0:i.r-p,r:i.r},silent:!0});x.setStyle({fill:r[m][1]}),x.setStyle(h.getLineStyle(["color","width"])),o.add(x),y=l}var _=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(0===t?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};this._renderTicks(e,t,n,_,i,s,l,a,p),this._renderTitleAndDetail(e,t,n,_,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,_,i,s,l,a,p)},t.prototype._renderTicks=function(e,t,n,r,i,o,a,s,l){for(var u,c,d=this.group,f=i.cx,h=i.cy,p=i.r,g=+e.get("min"),v=+e.get("max"),y=e.getModel("splitLine"),m=e.getModel("axisTick"),b=e.getModel("axisLabel"),x=e.get("splitNumber"),_=m.get("splitNumber"),w=Object(Hn["o"])(y.get("length"),p),S=Object(Hn["o"])(m.get("length"),p),k=o,O=(a-o)/x,T=O/_,E=y.getModel("lineStyle").getLineStyle(),C=m.getModel("lineStyle").getLineStyle(),A=y.get("distance"),M=0;M<=x;M++){if(u=Math.cos(k),c=Math.sin(k),y.get("show")){var L=A?A+l:l,I=new vs["a"]({shape:{x1:u*(p-L)+f,y1:c*(p-L)+h,x2:u*(p-w-L)+f,y2:c*(p-w-L)+h},style:E,silent:!0});"auto"===E.stroke&&I.setStyle({stroke:r(M/x)}),d.add(I)}if(b.get("show")){L=b.get("distance")+A;var D=Jp(Object(Hn["u"])(M/x*(v-g)+g),b.get("formatter")),j=r(M/x);d.add(new J["a"]({style:Object(fn["c"])(b,{text:D,x:u*(p-w-L)+f,y:c*(p-w-L)+h,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:j}),silent:!0}))}if(m.get("show")&&M!==x){L=m.get("distance");L=L?L+l:l;for(var P=0;P<=_;P++){u=Math.cos(k),c=Math.sin(k);var R=new vs["a"]({shape:{x1:u*(p-L)+f,y1:c*(p-L)+h,x2:u*(p-S-L)+f,y2:c*(p-S-L)+h},silent:!0,style:C});"auto"===C.stroke&&R.setStyle({stroke:r((M+P/_)/x)}),d.add(R),k+=T}k-=T}else k+=O}},t.prototype._renderPointer=function(e,t,n,r,i,o,a,l,u){var c=this.group,d=this._data,f=this._progressEls,h=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),v=g.get("show"),y=e.getData(),b=y.mapDimension("value"),x=+e.get("min"),_=+e.get("max"),w=[x,_],S=[o,a];function k(t,n){var r,o=y.getItemModel(t),a=o.getModel("pointer"),s=Object(Hn["o"])(a.get("width"),i.r),l=Object(Hn["o"])(a.get("length"),i.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),d=Object(Hn["o"])(c[0],i.r),f=Object(Hn["o"])(c[1],i.r),h=a.get("keepAspect");return r=u?Object(nn["a"])(u,d-s/2,f-l,s,l,null,h):new Zp({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:f}}),r.rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function O(e,t){var n=g.get("roundCap"),r=n?Hr:Un["a"],a=g.get("overlap"),s=a?g.get("width"):u/y.count(),c=a?i.r-s:i.r-(e+1)*s,d=a?i.r:i.r-e*s,f=new r({shape:{startAngle:o,endAngle:t,cx:i.cx,cy:i.cy,clockwise:l,r0:c,r:d}});return a&&(f.z2=_-y.get(b,e)%_),f}(v||p)&&(y.diff(d).add((function(t){var n=y.get(b,t);if(p){var r=k(t,o);sn["c"](r,{rotation:-((isNaN(+n)?S[0]:Object(Hn["k"])(n,w,S,!0))+Math.PI/2)},e),c.add(r),y.setItemGraphicEl(t,r)}if(v){var i=O(t,o),a=g.get("clip");sn["c"](i,{shape:{endAngle:Object(Hn["k"])(n,w,S,a)}},e),c.add(i),Object(ut["b"])(e.seriesIndex,y.dataType,t,i),h[t]=i}})).update((function(t,n){var r=y.get(b,t);if(p){var i=d.getItemGraphicEl(n),a=i?i.rotation:o,s=k(t,a);s.rotation=a,sn["h"](s,{rotation:-((isNaN(+r)?S[0]:Object(Hn["k"])(r,w,S,!0))+Math.PI/2)},e),c.add(s),y.setItemGraphicEl(t,s)}if(v){var l=f[n],u=l?l.shape.endAngle:o,m=O(t,u),x=g.get("clip");sn["h"](m,{shape:{endAngle:Object(Hn["k"])(r,w,S,x)}},e),c.add(m),Object(ut["b"])(e.seriesIndex,y.dataType,t,m),h[t]=m}})).execute(),y.each((function(e){var t=y.getItemModel(e),n=t.getModel("emphasis"),i=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var l=y.getItemGraphicEl(e),u=y.getItemVisual(e,"style"),c=u.fill;if(l instanceof s["a"]){var d=l.style;l.useStyle(Object(m["m"])({image:d.image,x:d.x,y:d.y,width:d.width,height:d.height},u))}else l.useStyle(u),"pointer"!==l.type&&l.setColor(c);l.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===l.style.fill&&l.setStyle("fill",r(Object(Hn["k"])(y.get(b,e),w,[0,1],!0))),l.z2EmphasisLift=0,Object(un["I"])(l,t),Object(un["J"])(l,i,o,a)}if(v){var f=h[e];f.useStyle(y.getItemVisual(e,"style")),f.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),f.z2EmphasisLift=0,Object(un["I"])(f,t),Object(un["J"])(f,i,o,a)}})),this._progressEls=h)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),r=n.get("show");if(r){var i=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=Object(nn["a"])(o,t.cx-i/2+Object(Hn["o"])(a[0],t.r),t.cy-i/2+Object(Hn["o"])(a[1],t.r),i,i,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new rn["a"],d=[],f=[],h=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){d[e]=new J["a"]({silent:!0}),f[e]=new J["a"]({silent:!0})})).update((function(e,t){d[e]=o._titleEls[t],f[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),g=new rn["a"],v=r(Object(Hn["k"])(o,[l,u],[0,1],!0)),y=n.getModel("title");if(y.get("show")){var m=y.get("offsetCenter"),b=i.cx+Object(Hn["o"])(m[0],i.r),x=i.cy+Object(Hn["o"])(m[1],i.r),_=d[t];_.attr({z2:p?0:2,style:Object(fn["c"])(y,{x:b,y:x,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(_)}var w=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),k=i.cx+Object(Hn["o"])(S[0],i.r),O=i.cy+Object(Hn["o"])(S[1],i.r),T=Object(Hn["o"])(w.get("width"),i.r),E=Object(Hn["o"])(w.get("height"),i.r),C=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:v,A=(_=f[t],w.get("formatter"));_.attr({z2:p?0:2,style:Object(fn["c"])(w,{x:k,y:O,text:Jp(o,A),width:isNaN(T)?null:T,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:C})}),Object(fn["h"])(_,{normal:w},o,(function(e){return Jp(e,A)})),h&&Object(fn["a"])(_,t,a,e,{getFormattedLabel:function(e,t,n,r,i,a){return Jp(a?a.interpolatedValue:o,A)}}),g.add(_)}c.add(g)})),this.group.add(c),this._titleEls=d,this._detailEls=f},t.type="gauge",t}(Fn["a"]),eg=Qp,tg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return Object(Ye["a"])(t,e),t.prototype.getInitialData=function(e,t){return Ui(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(tn["b"]),ng=tg;function rg(e){e.registerChartView(eg),e.registerSeriesModel(ng)}var ig=["itemStyle","opacity"],og=function(e){function t(t,n){var r=e.call(this)||this,i=r,o=new Ei["a"],a=new J["a"];return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(t,n,!0),r}return Object(Ye["a"])(t,e),t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(ig);l=null==l?1:l,n||Object(sn["g"])(r),r.useStyle(e.getItemVisual(t,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,sn["c"](r,{style:{opacity:l}},i,t)):sn["h"](r,{style:{opacity:l},shape:{points:a.points}},i,t),Object(un["I"])(r,o),this._updateLabel(e,t),Object(un["J"])(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,u=e.getItemVisual(t,"style"),c=u.fill;Object(fn["g"])(i,Object(fn["e"])(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:u.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var d=l.linePoints;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new Ci["a"](d[0][0],d[0][1]):null},sn["h"](i,{style:{x:l.x,y:l.y}},o,t),i.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(Ai["d"])(n,Object(Ai["a"])(a),{stroke:c})},t}(sl["a"]),ag=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,o=this.group;r.diff(i).add((function(e){var t=new og(r,e);r.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),o.add(n),r.setItemGraphicEl(e,n)})).remove((function(t){var n=i.getItemGraphicEl(t);sn["f"](n,e,t)})).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Fn["a"]),sg=ag,lg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Vi(m["c"](this.getData,this),m["c"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Ui(this,{coordDimensions:["value"],encodeDefaulter:m["h"](Pt["d"],this)})},t.prototype._defaultLabelLine=function(e){Object(lt["f"])(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},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,r.$vars.push("percent"),r},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",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}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(tn["b"]),ug=lg;function cg(e,t){return xi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function dg(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,(function(e){return e})),i=[],o="ascending"===t,a=0,s=e.count();a<s;a++)i[a]=a;return Object(m["w"])(t)?i.sort(t):"none"!==t&&i.sort((function(e,t){return o?r[e]-r[t]:r[t]-r[e]})),i}function fg(e){var t=e.hostModel,n=t.get("orient");e.each((function(t){var r,i,o,a,s=e.getItemModel(t),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),d=e.getItemLayout(t),f=d.points,h="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(h)"insideLeft"===u?(i=(f[0][0]+f[3][0])/2+5,o=(f[0][1]+f[3][1])/2,r="left"):"insideRight"===u?(i=(f[1][0]+f[2][0])/2-5,o=(f[1][1]+f[2][1])/2,r="right"):(i=(f[0][0]+f[1][0]+f[2][0]+f[3][0])/4,o=(f[0][1]+f[1][1]+f[2][1]+f[3][1])/4,r="center"),a=[[i,o],[i,o]];else{var p=void 0,g=void 0,v=void 0,y=void 0,m=c.get("length");0,"left"===u?(p=(f[3][0]+f[0][0])/2,g=(f[3][1]+f[0][1])/2,v=p-m,i=v-5,r="right"):"right"===u?(p=(f[1][0]+f[2][0])/2,g=(f[1][1]+f[2][1])/2,v=p+m,i=v+5,r="left"):"top"===u?(p=(f[3][0]+f[0][0])/2,g=(f[3][1]+f[0][1])/2,y=g-m,o=y-5,r="center"):"bottom"===u?(p=(f[1][0]+f[2][0])/2,g=(f[1][1]+f[2][1])/2,y=g+m,o=y+5,r="center"):"rightTop"===u?(p="horizontal"===n?f[3][0]:f[1][0],g="horizontal"===n?f[3][1]:f[1][1],"horizontal"===n?(y=g-m,o=y-5,r="center"):(v=p+m,i=v+5,r="top")):"rightBottom"===u?(p=f[2][0],g=f[2][1],"horizontal"===n?(y=g+m,o=y+5,r="center"):(v=p+m,i=v+5,r="bottom")):"leftTop"===u?(p=f[0][0],g="horizontal"===n?f[0][1]:f[1][1],"horizontal"===n?(y=g-m,o=y-5,r="center"):(v=p-m,i=v-5,r="right")):"leftBottom"===u?(p="horizontal"===n?f[1][0]:f[3][0],g="horizontal"===n?f[1][1]:f[2][1],"horizontal"===n?(y=g+m,o=y+5,r="center"):(v=p-m,i=v-5,r="right")):(p=(f[1][0]+f[2][0])/2,g=(f[1][1]+f[2][1])/2,"horizontal"===n?(y=g+m,o=y+5,r="center"):(v=p+m,i=v+5,r="left")),"horizontal"===n?(v=p,i=v):(y=g,o=y),a=[[p,g],[v,y]]}d.label={linePoints:a,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:h}}))}function hg(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),r=n.mapDimension("value"),i=e.get("sort"),o=cg(e,t),a=e.get("orient"),s=o.width,l=o.height,u=dg(n,i),c=o.x,d=o.y,f="horizontal"===a?[Object(Hn["o"])(e.get("minSize"),l),Object(Hn["o"])(e.get("maxSize"),l)]:[Object(Hn["o"])(e.get("minSize"),s),Object(Hn["o"])(e.get("maxSize"),s)],h=n.getDataExtent(r),p=e.get("min"),g=e.get("max");null==p&&(p=Math.min(h[0],0)),null==g&&(g=h[1]);var v=e.get("funnelAlign"),y=e.get("gap"),m="horizontal"===a?s:l,b=(m-y*(n.count()-1))/n.count(),x=function(e,t){if("horizontal"===a){var i=n.get(r,e)||0,o=Object(Hn["k"])(i,[p,g],f,!0),u=void 0;switch(v){case"top":u=d;break;case"center":u=d+(l-o)/2;break;case"bottom":u=d+(l-o);break}return[[t,u],[t,u+o]]}var h,y=n.get(r,e)||0,m=Object(Hn["k"])(y,[p,g],f,!0);switch(v){case"left":h=c;break;case"center":h=c+(s-m)/2;break;case"right":h=c+s-m;break}return[[h,t],[h+m,t]]};"ascending"===i&&(b=-b,y=-y,"horizontal"===a?c+=s:d+=l,u=u.reverse());for(var _=0;_<u.length;_++){var w=u[_],S=u[_+1],k=n.getItemModel(w);if("horizontal"===a){var O=k.get(["itemStyle","width"]);null==O?O=b:(O=Object(Hn["o"])(O,s),"ascending"===i&&(O=-O));var T=x(w,c),E=x(S,c+O);c+=O+y,n.setItemLayout(w,{points:T.concat(E.slice().reverse())})}else{var C=k.get(["itemStyle","height"]);null==C?C=b:(C=Object(Hn["o"])(C,l),"ascending"===i&&(C=-C));T=x(w,d),E=x(S,d+C);d+=C+y,n.setItemLayout(w,{points:T.concat(E.slice().reverse())})}}fg(n)}))}function pg(e){e.registerChartView(sg),e.registerSeriesModel(ug),e.registerLayout(hg),e.registerProcessor(Ti("funnel"))}var gg=.3,vg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new rn["a"],n._initialized=!1,n}return Object(Ye["a"])(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._dataGroup,o=e.getData(),a=this._data,s=e.coordinateSystem,l=s.dimensions,u=xg(e);function c(e){var t=bg(o,i,e,l,s);_g(t,o,e,u)}function d(t,n){var r=a.getItemGraphicEl(n),i=mg(o,t,l,s);o.setItemGraphicEl(t,r),sn["h"](r,{shape:{points:i}},e,t),Object(sn["g"])(r),_g(r,o,t,u)}function f(e){var t=a.getItemGraphicEl(e);i.remove(t)}if(o.diff(a).add(c).update(d).remove(f).execute(),!this._initialized){this._initialized=!0;var h=yg(s,e,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(h)}this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,o=i.dimensions,a=xg(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=bg(r,this._dataGroup,l,o,i);u.incremental=!0,_g(u,r,l,a),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Fn["a"]);function yg(e,t,n){var r=e.model,i=e.getRect(),o=new zn["a"]({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a="horizontal"===r.get("layout")?"width":"height";return o.setShape(a,0),sn["c"](o,{shape:{width:i.width,height:i.height}},t,n),o}function mg(e,t,n,r){for(var i=[],o=0;o<n.length;o++){var a=n[o],s=e.get(e.mapDimension(a),t);wg(s,r.getAxis(a).type)||i.push(r.dataToPoint(s,a))}return i}function bg(e,t,n,r,i){var o=mg(e,n,r,i),a=new Ei["a"]({shape:{points:o},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function xg(e){var t=e.get("smooth",!0);return!0===t&&(t=gg),t=Object(Hn["m"])(t),Object(m["l"])(t)&&(t=0),{smooth:t}}function _g(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var i=t.getItemModel(n),o=i.getModel("emphasis");Object(un["I"])(e,i,"lineStyle"),Object(un["J"])(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function wg(e,t){return"category"===t?null==e:null==e||isNaN(e)}var Sg=vg,kg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(Ye["a"])(t,e),t.prototype.getInitialData=function(e,t){return en(null,this,{useEncodeDefaulter:Object(m["c"])(Og,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,(function(t,i){e===t&&r.push(n.getRawIndex(i))})),r},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={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"},t}(tn["b"]);function Og(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return Object(m["k"])(t.dimensions,(function(e){var t=Tg(e);n[e]=t})),n}}function Tg(e){return+e.replace("dim","")}var Eg=kg,Cg=["lineStyle","opacity"],Ag={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var i=r[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(n).get(Cg,!0);null!=o&&(i=o)}var a=t.ensureUniqueItemVisual(n,"style");a.opacity=i}),e.start,e.end)}}}},Mg=Ag;function Lg(e){Ig(e),Dg(e)}function Ig(e){if(!e.parallel){var t=!1;m["k"](e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function Dg(e){var t=lt["r"](e.parallelAxis);m["k"](t,(function(t){if(m["A"](t)){var n=t.parallelIndex||0,r=lt["r"](e.parallel)[n];r&&r.parallelAxisDefault&&m["I"](t,r.parallelAxisDefault,!1)}}))}var jg=5,Pg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},Object(m["k"])(Rg,(function(e,t){n.getZr().on(t,this._handlers[t]=Object(m["c"])(e,this))}),this)),Object(Fr["b"])(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){Object(Fr["a"])(this,"_throttledDispatchExpand"),Object(m["k"])(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(Object(m["m"])({type:"parallelAxisExpand"},e))},t.type="parallel",t}(io["a"]),Rg={mousedown:function(e){Ng(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(Ng(this,"click")&&t){var n=[e.offsetX,e.offsetY],r=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(r>jg)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&Ng(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function Ng(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var Bg=Pg,Fg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&m["I"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){m["k"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=m["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);m["k"](n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={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},t}(oo["a"]),zg=Fg,Ug=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return Object(Ye["a"])(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(ns),Hg=Ug;function Vg(e,t,n,r,i,o){e=e||0;var a=n[1]-n[0];if(null!=i&&(i=qg(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=qg(s,[0,a]),i=o=qg(s,[i,o]),r=0}t[0]=qg(t[0],n),t[1]=qg(t[1],n);var l=Gg(t,r);t[r]+=e;var u,c=i||0,d=n.slice();return l.sign<0?d[0]+=c:d[1]-=c,t[r]=qg(t[r],d),u=Gg(t,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(t[1-r]=t[r]+l.sign*i),u=Gg(t,r),null!=o&&u.span>o&&(t[1-r]=t[r]+u.sign*o),t}function Gg(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 qg(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var Wg=m["k"],Yg=Math.min,Kg=Math.max,Xg=Math.floor,Zg=Math.ceil,$g=Hn["u"],Jg=Math.PI,Qg=function(){function e(e,t,n){this.type="parallel",this._axesMap=m["f"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;Wg(r,(function(e,n){var r=i[n],o=t.getComponent("parallelAxis",r),a=this._axesMap.set(e,new Hg(e,ba(o),[0,0],o.get("type"),r)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],a=e[i];return o>=n&&o<=n+t.axisLength&&a>=r&&a<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var r=n.getData();Wg(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),ma(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=xi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=ev(t.get("axisExpandWidth"),l),d=ev(t.get("axisExpandCount")||0,[0,u]),f=t.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=t.get("axisExpandWindow");if(h)e=ev(h[1]-h[0],l),h[1]=h[0]+e;else{e=ev(c*(d-1),l);var p=t.get("axisExpandCenter")||Xg(u/2);h=[c*p-e/2],h[1]=h[0]+e}var g=(s-e)/(u-d);g<3&&(g=0);var v=[Xg($g(h[0]/c,1))+1,Zg($g(h[1]/c,1))-1],y=g/c*h[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:v,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each((function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),Wg(n,(function(t,n){var o=(r.axisExpandable?nv:tv)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:Jg/2,vertical:0},l=[a[i].x+e.x,a[i].y+e.y],u=s[i],c=La["c"]();La["g"](c,c,u),La["i"](c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){null==n&&(n=0),null==r&&(r=e.count());var i=this._axesMap,o=this.dimensions,a=[],s=[];m["k"](o,(function(t){a.push(e.mapDimension(t)),s.push(i.get(t).model)}));for(var l=this.hasAxisBrushed(),u=n;u<r;u++){var c=void 0;if(l){c="active";for(var d=e.getValues(a,u),f=0,h=o.length;f<h;f++){var p=s[f].getActiveState(d[f]);if("inactive"===p){c="inactive";break}}}else c="normal";t(c,u)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)"normal"!==t.get(e[r]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return ln["applyTransform"]([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return m["d"](this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),d=null!=c[0];if(u)d&&u&&s<i*c[0]?(l="jump",a=s-i*c[2]):d&&u&&s>i*(1-c[0])?(l="jump",a=s-i*(1-c[2])):(a=s-i*c[1])>=0&&(a=s-i*(1-c[1]))<=0&&(a=0),a*=t.axisExpandWidth/u,a?Vg(a,r,o,"all"):l="none";else{var f=r[1]-r[0],h=o[1]*s/f;r=[Kg(0,h-f/2)],r[1]=Yg(o[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:l}},e}();function ev(e,t){return Yg(Kg(e,t[0]),t[1])}function tv(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function nv(e,t){var n,r,i=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e<l[0]?(n=e*s,r=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],u=o,c=!0):(n=i-(a-1-e)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}var rv=Qg;function iv(e,t){var n=[];return e.eachComponent("parallel",(function(r,i){var o=new rv(r,e,t);o.name="parallel_"+i,o.resize(r,t),r.coordinateSystem=o,o.model=r,n.push(o)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",lt["b"]).models[0];e.coordinateSystem=t.coordinateSystem}})),n}var ov={create:iv},av=ov,sv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return Object(Ye["a"])(t,e),t.prototype.getAreaSelectStyle=function(){return Object(vf["a"])([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=m["d"](e);if(t)for(var n=t.length-1;n>=0;n--)Hn["c"](t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return"active";return"inactive"},t}(oo["a"]);m["K"](sv,lo);var lv=sv,uv=!0,cv=Math.min,dv=Math.max,fv=Math.pow,hv=1e4,pv=6,gv=6,vv="globalPan",yv={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},mv={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},bv={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},xv=0,_v=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new rn["a"],n._uid="brushController_"+xv++,Object(m["k"])(Qv,(function(e,t){this._handlers[t]=Object(m["c"])(e,this)}),n),n}return Object(Ye["a"])(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||Il(t,vv,this._uid),Object(m["k"])(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=Object(m["I"])(Object(m["d"])(bv),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Dl(e,vv,this._uid),Object(m["k"])(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};Object(m["k"])(e,(function(e){t[e.panelId]=Object(m["d"])(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Object(m["H"])(e,(function(e){return Object(m["I"])(Object(m["d"])(bv),e,!0)}));var t="\0-brush-index-",n=this._covers,r=this._covers=[],i=this,o=this._creatingCover;return new Je(n,e,s,a).add(l).update(l).remove(u).execute(),this;function a(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(e,t){return a(e.__brushOption,t)}function l(t,a){var s=e[t];if(null!=a&&n[a]===o)r[t]=n[a];else{var l=r[t]=null!=a?(n[a].__brushOption=s,n[a]):Sv(i,wv(i,s));Tv(i,l)}}function u(e){n[e]!==o&&i.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),Mv(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Cl["a"]);function wv(e,t){var n=ny[t.brushType].createCover(e,t);return n.__brushOption=t,Ov(n,t),e.group.add(n),n}function Sv(e,t){var n=Ev(t);return n.endCreating&&(n.endCreating(e,t),Ov(t,t.__brushOption)),t}function kv(e,t){var n=t.__brushOption;Ev(t).updateCoverShape(e,t,n.range,n)}function Ov(e,t){var n=t.z;null==n&&(n=hv),e.traverse((function(e){e.z=n,e.z2=n}))}function Tv(e,t){Ev(t).updateCommon(e,t),kv(e,t)}function Ev(e){return ny[e.__brushOption.brushType]}function Cv(e,t,n){var r,i=e._panels;if(!i)return uv;var o=e._transform;return Object(m["k"])(i,(function(e){e.isTargetByCursor(t,n,o)&&(r=e)})),r}function Av(e,t){var n=e._panels;if(!n)return uv;var r=t.__brushOption.panelId;return null!=r?n[r]:uv}function Mv(e){var t=e._covers,n=t.length;return Object(m["k"])(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function Lv(e,t){var n=Object(m["H"])(e._covers,(function(e){var t=e.__brushOption,n=Object(m["d"])(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Iv(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],o=n[1]-r[1],a=fv(i*i+o*o,.5);return a>pv}function Dv(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function jv(e,t,n,r){var i=new rn["a"];return i.add(new zn["a"]({name:"main",style:Bv(n),silent:!0,draggable:!0,cursor:"move",drift:Object(m["h"])(Vv,e,t,i,["n","s","w","e"]),ondragend:Object(m["h"])(Lv,t,{isEnd:!0})})),Object(m["k"])(r,(function(n){i.add(new zn["a"]({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(m["h"])(Vv,e,t,i,n),ondragend:Object(m["h"])(Lv,t,{isEnd:!0})}))})),i}function Pv(e,t,n,r){var i=r.brushStyle.lineWidth||0,o=dv(i,gv),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],d=n[1][1],f=c-o+i/2,h=d-o+i/2,p=c-a,g=d-s,v=p+i,y=g+i;Nv(e,t,"main",a,s,p,g),r.transformable&&(Nv(e,t,"w",l,u,o,y),Nv(e,t,"e",f,u,o,y),Nv(e,t,"n",l,u,v,o),Nv(e,t,"s",l,h,v,o),Nv(e,t,"nw",l,u,o,o),Nv(e,t,"ne",f,u,o,o),Nv(e,t,"sw",l,h,o,o),Nv(e,t,"se",f,h,o,o))}function Rv(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(Bv(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Object(m["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=t.childOfName(n.join("")),o=1===n.length?Uv(e,n[0]):Hv(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?mv[o]+"-resize":null})}))}function Nv(e,t,n,r,i,o,a){var s=t.childOfName(n);s&&s.setShape(Yv(Wv(e,t,[[r,i],[r+o,i+a]])))}function Bv(e){return Object(m["i"])({strokeNoScale:!0},e.brushStyle)}function Fv(e,t,n,r){var i=[cv(e,n),cv(t,r)],o=[dv(e,n),dv(t,r)];return[[i[0],o[0]],[i[1],o[1]]]}function zv(e){return ln["getTransform"](e.group)}function Uv(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=ln["transformDirection"](n[t],zv(e));return r[i]}function Hv(e,t){var n=[Uv(e,t[0]),Uv(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function Vv(e,t,n,r,i,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=qv(t,i,o);Object(m["k"])(r,(function(e){var t=yv[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(Fv(s[0][0],s[1][0],s[0][1],s[1][1])),Tv(t,n),Lv(t,{isEnd:!1})}function Gv(e,t,n,r){var i=t.__brushOption.range,o=qv(e,n,r);Object(m["k"])(i,(function(e){e[0]+=o[0],e[1]+=o[1]})),Tv(e,t),Lv(e,{isEnd:!1})}function qv(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function Wv(e,t,n){var r=Av(e,t);return r&&r!==uv?r.clipPath(n,e._transform):Object(m["d"])(n)}function Yv(e){var t=cv(e[0][0],e[1][0]),n=cv(e[0][1],e[1][1]),r=dv(e[0][0],e[1][0]),i=dv(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function Kv(e,t,n){if(e._brushType&&!ty(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,o=Cv(e,t,n);if(!e._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===uv||s.panelId===o.panelId)&&ny[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}function Xv(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Zv(e,t,n){return e.childOfName("main").contain(t,n)}function $v(e,t,n,r){var i,o=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),Iv(e)||o){if(a&&!o){"single"===s.brushMode&&Mv(e);var l=Object(m["d"])(s);l.brushType=Jv(l.brushType,a),l.panelId=a===uv?null:a.panelId,o=e._creatingCover=wv(e,l),e._covers.push(o)}if(o){var u=ny[Jv(e._brushType,a)],c=o.__brushOption;c.range=u.getCreatingRange(Wv(e,o,e._track)),r&&(Sv(e,o),u.updateCommon(e,o)),kv(e,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&Cv(e,t,n)&&Mv(e)&&(i={isEnd:r,removeOnClick:!0});return i}function Jv(e,t){return"auto"===e?t.defaultBrushType:e}var Qv={mousedown:function(e){if(this._dragging)ey(this,e);else if(!e.target||!e.target.draggable){Xv(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=Cv(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(Kv(this,e,r),this._dragging){Xv(e);var i=$v(this,e,r,!1);i&&Lv(this,i)}},mouseup:function(e){ey(this,e)}};function ey(e,t){if(e._dragging){Xv(t);var n=t.offsetX,r=t.offsetY,i=e.group.transformCoordToLocal(n,r),o=$v(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&Lv(e,o)}}function ty(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var ny={lineX:ry(0),lineY:ry(1),rect:{createCover:function(e,t){function n(e){return e}return jv({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Dv(e);return Fv(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){Pv(e,t,n,r)},updateCommon:Rv,contain:Zv},polygon:{createCover:function(e,t){var n=new rn["a"];return n.add(new Ei["a"]({name:"main",style:Bv(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new sl["a"]({name:"main",draggable:!0,drift:Object(m["h"])(Gv,e,t),ondragend:Object(m["h"])(Lv,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:Wv(e,t,n)})},updateCommon:Rv,contain:Zv}};function ry(e){return{createCover:function(t,n){return jv({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=Dv(t),r=cv(n[0][e],n[1][e]),i=dv(n[0][e],n[1][e]);return[r,i]},updateCoverShape:function(t,n,r,i){var o,a=Av(t,n);if(a!==uv&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,o];e&&l.reverse(),Pv(t,n,l,i)},updateCommon:Rv,contain:Zv}}var iy=_v;function oy(e){return e=ly(e),function(t){return ln["clipPointsByRect"](t,e)}}function ay(e,t){return e=ly(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,o=r?e.x:e.y;return[o,o+(i||0)]}}function sy(e,t,n){var r=ly(e);return function(e,i){return r.contain(i[0],i[1])&&!Gl(e,t,n)}}function ly(e){return Zi["a"].create(e)}var uy=["axisLine","axisTickLabel","axisName"],cy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new iy(n.getZr())).on("brush",m["c"](this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!dy(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new rn["a"],this.group.add(this._axisGroup),e.get("show")){var o=hy(e,t),a=o.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,u=e.axis.dim,c=a.getAxisLayout(u),d=m["m"]({strokeContainThreshold:l},c),f=new As(e,d);m["k"](uy,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(d,s,e,o,l,n),ln["groupTransition"](i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=Zi["a"].create({x:a[0],y:-i/2,width:s,height:i});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:oy(u),isTargetByCursor:sy(u,o,r),getLinearBrushOtherExtent:ay(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(fy(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=m["H"](t,(function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(io["a"]);function dy(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function fy(e){var t=e.axis;return m["H"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function hy(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var py=cy,gy={type:"axisAreaSelect",event:"axisAreaSelected"};function vy(e){e.registerAction(gy,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var yy={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function my(e){e.registerComponentView(Bg),e.registerComponentModel(zg),e.registerCoordinateSystem("parallel",av),e.registerPreprocessor(Lg),e.registerComponentModel(lv),e.registerComponentView(py),wo(e,"parallel",lv,yy),vy(e)}function by(e){Object(r["a"])(my),e.registerChartView(Sg),e.registerSeriesModel(Eg),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Mg)}var xy=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),_y=function(e){function t(t){return e.call(this,t)||this}return Object(Ye["a"])(t,e),t.prototype.getDefaultShape=function(){return new xy},t.prototype.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()},t.prototype.highlight=function(){Object(un["r"])(this)},t.prototype.downplay=function(){Object(un["C"])(this)},t}(a["b"]),wy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),o=this.group,a=e.layoutInfo,s=a.width,l=a.height,u=e.getData(),c=e.getData("edge"),d=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,i.eachEdge((function(t){var n=new _y,r=Object(ut["a"])(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var i,a,u,f,h,p,g,v,y=t.getModel(),b=y.getModel("lineStyle"),x=b.get("curveness"),_=t.node1.getLayout(),w=t.node1.getModel(),S=w.get("localX"),k=w.get("localY"),O=t.node2.getLayout(),T=t.node2.getModel(),E=T.get("localX"),C=T.get("localY"),A=t.getLayout();switch(n.shape.extent=Math.max(1,A.dy),n.shape.orient=d,"vertical"===d?(i=(null!=S?S*s:_.x)+A.sy,a=(null!=k?k*l:_.y)+_.dy,u=(null!=E?E*s:O.x)+A.ty,f=null!=C?C*l:O.y,h=i,p=a*(1-x)+f*x,g=u,v=a*x+f*(1-x)):(i=(null!=S?S*s:_.x)+_.dx,a=(null!=k?k*l:_.y)+A.sy,u=null!=E?E*s:O.x,f=(null!=C?C*l:O.y)+A.ty,h=i*(1-x)+u*x,p=a,g=i*x+u*(1-x),v=f),n.setShape({x1:i,y1:a,x2:u,y2:f,cpx1:h,cpy1:p,cpx2:g,cpy2:v}),n.useStyle(b.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var M=t.node1.getVisual("color"),L=t.node2.getVisual("color");Object(m["C"])(M)&&Object(m["C"])(L)&&(n.style.fill=new An["a"](0,0,+("horizontal"===d),+("vertical"===d),[{color:M,offset:0},{color:L,offset:1}]))}var I=y.getModel("emphasis");Object(un["I"])(n,y,"lineStyle",(function(e){return e.getItemStyle()})),o.add(n),c.setItemGraphicEl(t.dataIndex,n);var D=I.get("focus");Object(un["J"])(n,"adjacency"===D?t.getAdjacentDataIndices():D,I.get("blurScope"),I.get("disabled")),Object(ut["a"])(n).dataType="edge"})),i.eachNode((function(t){var n=t.getLayout(),r=t.getModel(),i=r.get("localX"),a=r.get("localY"),c=r.getModel("emphasis"),d=new zn["a"]({shape:{x:null!=i?i*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle(),z2:10});Object(fn["g"])(d,Object(fn["e"])(r),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),d.disableLabelAnimation=!0,d.setStyle("fill",t.getVisual("color")),d.setStyle("decal",t.getVisual("style").decal),Object(un["I"])(d,r),o.add(d),u.setItemGraphicEl(t.dataIndex,d),Object(ut["a"])(d).dataType="node";var f=c.get("focus");Object(un["J"])(d,"adjacency"===f?t.getAdjacentDataIndices():f,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(t,i){var o=u.getItemModel(i);o.get("draggable")&&(t.drift=function(t,o){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(Sy(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Fn["a"]);function Sy(e,t,n){var r=new zn["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return sn["c"](r,{shape:{width:e.width+20}},t,n),r}var ky=wy,Oy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,r=e.data||e.nodes,i=e.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<i.length;a++)null!=i[a].depth&&i[a].depth>=0&&(o[i[a].depth]=new Ke["a"](i[a],this,t));if(r&&n){var s=Hp(r,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,o=n.levelModels[i];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t),i=r.node1.getLayout();if(i){var o=i.depth,a=n.levelModels[o];a&&(e.parentModel=a)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,r=n[e];r.localX=t[0],r.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||null==e}if("edge"===n){var i=this.getDataParams(e,n),o=i.data,a=i.value,s=o.source+" -- "+o.target;return Object(cl["c"])("nameValue",{name:s,value:a,noValue:r(a)})}var l=this.getGraph().getNodeByIndex(e),u=l.getLayout().value,c=this.getDataParams(e,n).data.name;return Object(cl["c"])("nameValue",{name:null!=c?c+"":null,value:u,noValue:r(u)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;r.value=o}return r},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(tn["b"]),Ty=Oy;function Ey(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),i=Cy(e,t);e.layoutInfo=i;var o=i.width,a=i.height,s=e.getGraph(),l=s.nodes,u=s.edges;My(l);var c=m["n"](l,(function(e){return 0===e.getLayout().value})),d=0!==c.length?0:e.get("layoutIterations"),f=e.get("orient"),h=e.get("nodeAlign");Ay(l,u,n,r,o,a,d,f,h)}))}function Cy(e,t){return xi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ay(e,t,n,r,i,o,a,s,l){Ly(e,t,n,i,o,s,l),Ry(e,t,o,i,r,a,s),Xy(e,s)}function My(e){m["k"](e,(function(e){var t=Yy(e.outEdges,Wy),n=Yy(e.inEdges,Wy),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)}))}function Ly(e,t,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],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]&&u.push(e[f]);var h=-1;while(u.length){for(var p=0;p<u.length;p++){var g=u[p],v=g.hostGraph.data.getRawDataItem(g.dataIndex),y=null!=v.depth&&v.depth>=0;y&&v.depth>h&&(h=v.depth),g.setLayout({depth:y?v.depth:d},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;m<g.outEdges.length;m++){var b=g.outEdges[m],x=t.indexOf(b);s[x]=0;var _=b.node2,w=e.indexOf(_);0===--l[w]&&c.indexOf(_)<0&&c.push(_)}}++d,u=c,c=[]}for(f=0;f<s.length;f++)if(1===s[f])throw new Error("Sankey is a DAG, the original data has cycle!");var S=h>d-1?h:d-1;a&&"left"!==a&&Dy(e,a,o,S);var k="vertical"===o?(i-n)/S:(r-n)/S;Py(e,k,o)}function Iy(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function Dy(e,t,n,r){if("right"===t){var i=[],o=e,a=0;while(o.length){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}o=i,i=[],++a}m["k"](e,(function(e){Iy(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&jy(e,r)}function jy(e,t){m["k"](e,(function(e){Iy(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function Py(e,t,n){m["k"](e,(function(e){var r=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:r},!0):e.setLayout({x:r},!0)}))}function Ry(e,t,n,r,i,o,a){var s=Ny(e,a);By(s,t,n,r,i,a),Fy(s,i,n,r,a);for(var l=1;o>0;o--)l*=.99,zy(s,l,a),Fy(s,i,n,r,a),Ky(s,l,a),Fy(s,i,n,r,a)}function Ny(e,t){var n=[],r="vertical"===t?"y":"x",i=Object(lt["j"])(e,(function(e){return e.getLayout()[r]}));return i.keys.sort((function(e,t){return e-t})),m["k"](i.keys,(function(e){n.push(i.buckets.get(e))})),n}function By(e,t,n,r,i,o){var a=1/0;m["k"](e,(function(e){var t=e.length,s=0;m["k"](e,(function(e){s+=e.getLayout().value}));var l="vertical"===o?(r-(t-1)*i)/s:(n-(t-1)*i)/s;l<a&&(a=l)})),m["k"](e,(function(e){m["k"](e,(function(e,t){var n=e.getLayout().value*a;"vertical"===o?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),m["k"](t,(function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)}))}function Fy(e,t,n,r,i){var o="vertical"===i?"x":"y";m["k"](e,(function(e){var a,s,l;e.sort((function(e,t){return e.getLayout()[o]-t.getLayout()[o]}));for(var u=0,c=e.length,d="vertical"===i?"dx":"dy",f=0;f<c;f++)s=e[f],l=u-s.getLayout()[o],l>0&&(a=s.getLayout()[o]+l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[d]+t;var h="vertical"===i?r:n;if(l=u-t-h,l>0){a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(f=c-2;f>=0;--f)s=e[f],l=s.getLayout()[o]+s.getLayout()[d]+t-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function zy(e,t,n){m["k"](e.slice().reverse(),(function(e){m["k"](e,(function(e){if(e.outEdges.length){var r=Yy(e.outEdges,Uy,n)/Yy(e.outEdges,Wy);if(isNaN(r)){var i=e.outEdges.length;r=i?Yy(e.outEdges,Hy,n)/i:0}if("vertical"===n){var o=e.getLayout().x+(r-qy(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(r-qy(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function Uy(e,t){return qy(e.node2,t)*e.getValue()}function Hy(e,t){return qy(e.node2,t)}function Vy(e,t){return qy(e.node1,t)*e.getValue()}function Gy(e,t){return qy(e.node1,t)}function qy(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Wy(e){return e.getValue()}function Yy(e,t,n){var r=0,i=e.length,o=-1;while(++o<i){var a=+t(e[o],n);isNaN(a)||(r+=a)}return r}function Ky(e,t,n){m["k"](e,(function(e){m["k"](e,(function(e){if(e.inEdges.length){var r=Yy(e.inEdges,Vy,n)/Yy(e.inEdges,Wy);if(isNaN(r)){var i=e.inEdges.length;r=i?Yy(e.inEdges,Gy,n)/i:0}if("vertical"===n){var o=e.getLayout().x+(r-qy(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(r-qy(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function Xy(e,t){var n="vertical"===t?"x":"y";m["k"](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]}))})),m["k"](e,(function(e){var t=0,n=0;m["k"](e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),m["k"](e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}function Zy(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes;if(n.length){var r=1/0,i=-1/0;m["k"](n,(function(e){var t=e.getLayout().value;t<r&&(r=t),t>i&&(i=t)})),m["k"](n,(function(t){var n=new $f({type:"color",mappingMethod:"linear",dataExtent:[r,i],visual:e.get("color")}),o=n.mapValueToVisual(t.getLayout().value),a=t.getModel().get(["itemStyle","color"]);null!=a?(t.setVisual("color",a),t.setVisual("style",{fill:a})):(t.setVisual("color",o),t.setVisual("style",{fill:o}))}))}}))}function $y(e){e.registerChartView(ky),e.registerSeriesModel(Ty),e.registerLayout(Ey),e.registerVisual(Zy),e.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])}))}))}var Jy=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,r,i=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=i.getOrdinalMeta(),r=!0):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),r=!0):e.layout=e.layout||"horizontal";var l=["x","y"],u="horizontal"===e.layout?0:1,c=this._baseAxisDim=l[u],d=l[1-u],f=[i,o],h=f[u].get("type"),p=f[1-u].get("type"),g=e.data;if(g&&r){var v=[];m["k"](g,(function(e,t){var n;m["t"](e)?(n=e.slice(),e.unshift(t)):m["t"](e.value)?(n=m["m"]({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,v.push(n)})),e.data=v}var y=this.defaultValueDimensions,b=[{name:c,type:it(h),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:it(p),dimsDef:y.slice()}];return Ui(this,{coordDimensions:b,dimensionsCount:y.length+1,encodeDefaulter:m["h"](Pt["c"],b,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),Qy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return Object(Ye["a"])(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(tn["b"]);Object(m["K"])(Qy,Jy,!0);var em=Qy,tm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===e.get("layout")?1:0;r.diff(o).add((function(e){if(r.hasValue(e)){var t=r.getItemLayout(e),n=im(t,r,e,a,!0);r.setItemGraphicEl(e,n),i.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var s=r.getItemLayout(e);n?(Object(sn["g"])(n),om(s,n,r,e)):n=im(s,r,e,a),i.add(n),r.setItemGraphicEl(e,n)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(Fn["a"]),nm=function(){function e(){}return e}(),rm=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return Object(Ye["a"])(t,e),t.prototype.getDefaultShape=function(){return new nm},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(a["b"]);function im(e,t,n,r,i){var o=e.ends,a=new rm({shape:{points:i?am(o,r,e):o}});return om(e,a,t,n,i),a}function om(e,t,n,r,i){var o=n.hostModel,a=ln[i?"initProps":"updateProps"];a(t,{shape:{points:e.ends}},o,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),l=s.getModel("emphasis");Object(un["I"])(t,s),Object(un["J"])(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function am(e,t,n){return m["H"](e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}var sm=tm;function lm(e,t){}var um=m["k"];function cm(e){var t=dm(e);um(t,(function(e){var t=e.seriesModels;t.length&&(fm(e),um(t,(function(t,n){hm(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function dm(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var r=e.getBaseAxis(),i=m["r"](n,r);i<0&&(i=n.length,n[i]=r,t[i]={axis:r,seriesModels:[]}),t[i].seriesModels.push(e)})),t}function fm(e){var t,n=e.axis,r=e.seriesModels,i=r.length,o=e.boxWidthList=[],a=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;um(r,(function(e){l=Math.max(l,e.getData().count())}));var u=n.getExtent();t=Math.abs(u[1]-u[0])/l}um(r,(function(e){var n=e.get("boxWidth");m["t"](n)||(n=[n,n]),s.push([Object(Hn["o"])(n[0],t)||0,Object(Hn["o"])(n[1],t)||0])}));var c=.8*t-2,d=c/i*.3,f=(c-d*(i-1))/i,h=f/2-c/2;um(r,(function(e,t){a.push(h),h+=d+f,o.push(Math.min(Math.max(f,s[t][0]),s[t][1]))}))}function hm(e,t,n){var r=e.coordinateSystem,i=e.getData(),o=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,l=["x","y"],u=i.mapDimension(l[a]),c=i.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var d=0;d<i.count();d++){var f=i.get(u,d),h=b(f,c[2],d),p=b(f,c[0],d),g=b(f,c[1],d),v=b(f,c[3],d),y=b(f,c[4],d),m=[];x(m,g,!1),x(m,v,!0),m.push(p,g,y,v),_(m,p),_(m,y),_(m,h),i.setItemLayout(d,{initBaseline:h[s],ends:m})}function b(e,n,o){var l,u=i.get(n,o),c=[];return c[a]=e,c[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c),l[a]+=t),l}function x(e,t,n){var r=t.slice(),i=t.slice();r[a]+=o,i[a]-=o,n?e.push(r,i):e.push(i,r)}function _(e,t){var n=t.slice(),r=t.slice();n[a]-=o,r[a]+=o,e.push(n,r)}}function pm(e,t){t=t||{};for(var n=[],r=[],i=t.boundIQR,o="none"===i||0===i,a=0;a<e.length;a++){var s=Object(Hn["c"])(e[a].slice()),l=Object(Hn["p"])(s,.25),u=Object(Hn["p"])(s,.5),c=Object(Hn["p"])(s,.75),d=s[0],f=s[s.length-1],h=(null==i?1.5:i)*(c-l),p=o?d:Math.max(d,l-h),g=o?f:Math.min(f,c+h),v=t.itemNameFormatter,y=Object(m["w"])(v)?v({value:a}):Object(m["C"])(v)?v.replace("{value}",a+""):a+"";n.push([y,p,l,u,c,g]);for(var b=0;b<s.length;b++){var x=s[b];if(x<p||x>g){var _=[y,x];r.push(_)}}}return{boxData:n,outliers:r}}var gm={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==et["c"]){var n="";0,Object(Df["c"])(n)}var r=pm(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};function vm(e){e.registerSeriesModel(em),e.registerChartView(sm),e.registerVisual(lm),e.registerLayout(cm),e.registerTransform(gm)}var ym=["color","borderColor"],mm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){ln["traverseElements"](this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||r.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&wm(s,a))return;var l=_m(a,n,!0);sn["c"](l,{shape:{points:a.ends}},e,n),Sm(l,t,n,i),r.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(t.hasValue(a)){var c=t.getItemLayout(a);o&&wm(s,c)?r.remove(u):(u?(sn["h"](u,{shape:{points:c.ends}},e,a),Object(sn["g"])(u)):u=_m(c,a),Sm(u,t,a,i),r.add(u),t.setItemGraphicEl(a,u))}else r.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),Em(e,this.group);var t=e.get("clip",!0)?qn(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,r=t.getData(),i=r.getLayout("isSimpleBox");while(null!=(n=e.next())){var o=r.getItemLayout(n),a=_m(o,n);Sm(a,r,n,i),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){Em(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Fn["a"]),bm=function(){function e(){}return e}(),xm=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return Object(Ye["a"])(t,e),t.prototype.getDefaultShape=function(){return new bm},t.prototype.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]))},t}(a["b"]);function _m(e,t,n){var r=e.ends;return new xm({shape:{points:n?km(r,e):r},z2:100})}function wm(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function Sm(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,Object(un["I"])(e,i)}function km(e,t){return m["H"](e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var Om=function(){function e(){}return e}(),Tm=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return Object(Ye["a"])(t,e),t.prototype.getDefaultShape=function(){return new Om},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(a["b"]);function Em(e,t,n,r){var i=e.getData(),o=i.getLayout("largePoints"),a=new Tm({shape:{points:o},__sign:1});t.add(a);var s=new Tm({shape:{points:o},__sign:-1});t.add(s),Cm(1,a,e,i),Cm(-1,s,e,i),r&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function Cm(e,t,n,r){var i=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(ym);t.useStyle(o),t.style.fill=null,t.style.stroke=i}var Am=mm,Mm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return Object(Ye["a"])(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(tn["b"]);Object(m["K"])(Mm,Jy,!0);var Lm=Mm;function Im(e){e&&m["t"](e.series)&&m["k"](e.series,(function(e){m["A"](e)&&"k"===e.type&&(e.type="candlestick")}))}var Dm=["itemStyle","borderColor"],jm=["itemStyle","borderColor0"],Pm=["itemStyle","color"],Rm=["itemStyle","color0"],Nm={seriesType:"candlestick",plan:Object(pr["a"])(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?Pm:Rm)}function r(e,t){return t.get(e>0?Dm:jm)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(e,t){var i;while(null!=(i=e.next())){var o=t.getItemModel(i),a=t.getItemLayout(i).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=r(a,o)||s.fill;var l=t.ensureUniqueItemVisual(i,"style");Object(m["m"])(l,s)}}}}}},Bm=Nm,Fm={seriesType:"candlestick",plan:Object(pr["a"])(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=Um(e,n),i=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[i])),l=Object(m["H"])(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],d=l[2],f=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?p:h};function h(e,n){var a,l=n.getStore();while(null!=(a=e.next())){var h=l.get(s,a),p=l.get(u,a),g=l.get(c,a),v=l.get(d,a),y=l.get(f,a),m=Math.min(p,g),b=Math.max(p,g),x=O(m,h),_=O(b,h),w=O(v,h),S=O(y,h),k=[];T(k,_,0),T(k,x,1),k.push(C(S),C(_),C(w),C(x)),n.setItemLayout(a,{sign:zm(l,a,p,g,c),initBaseline:p>g?_[o]:x[o],ends:k,brushRect:E(v,y,h)})}function O(e,n){var r=[];return r[i]=n,r[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function T(e,t,n){var o=t.slice(),a=t.slice();o[i]=Object(ln["subPixelOptimize"])(o[i]+r/2,1,!1),a[i]=Object(ln["subPixelOptimize"])(a[i]-r/2,1,!0),n?e.push(o,a):e.push(a,o)}function E(e,t,n){var a=O(e,n),s=O(t,n);return a[i]-=r/2,s[i]-=r/2,{x:a[0],y:a[1],width:o?r:s[0]-a[0],height:o?s[1]-a[1]:r}}function C(e){return e[i]=Object(ln["subPixelOptimize"])(e[i],1),e}}function p(e,n){var r,a,l=Tn(4*e.count),h=0,p=[],g=[],v=n.getStore();while(null!=(a=e.next())){var y=v.get(s,a),m=v.get(u,a),b=v.get(c,a),x=v.get(d,a),_=v.get(f,a);isNaN(y)||isNaN(x)||isNaN(_)?(l[h++]=NaN,h+=3):(l[h++]=zm(v,a,m,b,c),p[i]=y,p[o]=x,r=t.dataToPoint(p,null,g),l[h++]=r?r[0]:NaN,l[h++]=r?r[1]:NaN,p[o]=_,r=t.dataToPoint(p,null,g),l[h++]=r?r[1]:NaN)}n.setLayout("largePoints",l)}}};function zm(e,t,n,r,i){var o;return o=n>r?-1:n<r?1:t>0?e.get(i,t-1)<=r?1:-1:1,o}function Um(e,t){var n,r=e.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=Object(Hn["o"])(Object(m["P"])(e.get("barMaxWidth"),i),i),a=Object(Hn["o"])(Object(m["P"])(e.get("barMinWidth"),1),i),s=e.get("barWidth");return null!=s?Object(Hn["o"])(s,i):Math.max(Math.min(i/2,o),a)}var Hm=Fm;function Vm(e){e.registerChartView(Am),e.registerSeriesModel(Lm),e.registerPreprocessor(Im),e.registerVisual(Bm),e.registerLayout(Hm)}function Gm(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}})}))}var qm=function(e){function t(t,n){var r=e.call(this)||this,i=new gn(t,n),o=new rn["a"];return r.add(i),r.add(o),r.updateData(t,n),r}return Object(Ye["a"])(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),o=0;o<r;o++){var a=Object(nn["a"])(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/r*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),i.add(a)}Gm(i,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var o=r[i];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}Gm(n,e)},t.prototype.highlight=function(){Object(un["r"])(this)},t.prototype.downplay=function(){Object(un["C"])(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),o=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=Object(nn["c"])(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),u=l&&l.fill,c=o.getModel("emphasis");i.setScale(s),i.traverse((function(e){e.setStyle("fill",u)}));var d=Object(nn["b"])(e.getItemVisual(t,"symbolOffset"),s);d&&(i.x=d[0],i.y=d[1]);var f=e.getItemVisual(t,"symbolRotate");i.rotation=(f||0)*Math.PI/180||0;var h={};h.showEffectOn=r.get("showEffectOn"),h.rippleScale=o.get(["rippleEffect","scale"]),h.brushType=o.get(["rippleEffect","brushType"]),h.period=1e3*o.get(["rippleEffect","period"]),h.effectOffset=t/e.count(),h.z=r.getShallow("z")||0,h.zlevel=r.getShallow("zlevel")||0,h.symbolType=a,h.color=u,h.rippleEffectColor=o.get(["rippleEffect","color"]),h.rippleNumber=o.get(["rippleEffect","number"]),"render"===h.showEffectOn?(this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==h.showEffectOn&&n.startEffectAnimation(h):"normal"===e&&"render"!==h.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=h,Object(un["J"])(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(rn["a"]),Wm=qm,Ym=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.init=function(){this._symbolDraw=new xn(Wm)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(e)}),this.group.add(i.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=gr("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=La["a"](t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Fn["a"]),Km=Ym,Xm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Ye["a"])(t,e),t.prototype.getInitialData=function(e,t){return en(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(tn["b"]),Zm=Xm;function $m(e){e.registerChartView(Km),e.registerSeriesModel(Zm),e.registerLayout(gr("effectScatter"))}var Jm=function(e){function t(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return Object(Ye["a"])(t,e),t.prototype.createLine=function(e,t,n){return new mp(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),r=n.getModel("effect"),i=r.get("symbolSize"),o=r.get("symbol");m["t"](i)||(i=[i,i]);var a=e.getItemVisual(t,"style"),s=r.get("color")||a&&a.stroke,l=this.childAt(1);this._symbolType!==o&&(this.remove(l),l=Object(nn["a"])(o,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(r.getItemStyle(["color"])),l.scaleX=i[0],l.scaleY=i[1],l.setColor(s),this._symbolType=o,this._symbolScale=i,this._updateEffectAnimation(e,r,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=e.getItemLayout(n),o=1e3*t.get("period"),a=t.get("loop"),s=t.get("constantSpeed"),l=m["O"](t.get("delay"),(function(t){return t/e.count()*o/3}));if(r.ignore=!0,this._updateAnimationPoints(r,i),s>0&&(o=this._getLineLength(r)/s*1e3),o!==this._period||a!==this._loop){r.stopAnimation();var u=void 0;u=m["w"](l)?l(n):l,r.__t>0&&(u=-o*r.__t),this._animateSymbol(r,o,u,a)}this._period=o,this._loop=a}},t.prototype._animateSymbol=function(e,t,n,r){if(t>0){e.__t=0;var i=this,o=e.animate("",r).when(t,{__t:1}).delay(n).during((function(){i._updateSymbolPosition(e)}));r||o.done((function(){i.remove(e)})),o.start()}},t.prototype._getLineLength=function(e){return Ia["f"](e.__p1,e.__cp1)+Ia["f"](e.__cp1,e.__p2)},t.prototype._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]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t,o=[e.x,e.y],a=o.slice(),s=Mn["h"],l=Mn["i"];o[0]=s(t[0],r[0],n[0],i),o[1]=s(t[1],r[1],n[1],i);var u=l(t[0],r[0],n[0],i),c=l(t[1],r[1],n[1],i);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*Ia["f"](a,o),1===i&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*Ia["f"](t,o):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=o[0],e.y=o[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(rn["a"]),Qm=Jm,eb=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return Object(Ye["a"])(t,e),t.prototype._createPolyline=function(e,t,n){var r=e.getItemLayout(t),i=new Ei["a"]({shape:{points:r}});this.add(i),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childAt(0),o={shape:{points:e.getItemLayout(t)}};sn["h"](i,o,r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var u=i.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.style.strokeNoScale=!0;var c=r.ensureState("emphasis");c.style=o,Object(un["J"])(this,a,s,l)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},t}(rn["a"]),tb=eb,nb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return Object(Ye["a"])(t,e),t.prototype.createLine=function(e,t,n){return new tb(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var o=t[i-1],a=t[i];r+=Ia["f"](o,a),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var o,a=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(a+1,i-1);for(o=s;o>=0;o--)if(r[o]<=t)break;o=Math.min(o,i-2)}else{for(o=a;o<i;o++)if(r[o]>t)break;o=Math.min(o-1,i-2)}var l=(t-r[o])/(r[o+1]-r[o]),u=n[o],c=n[o+1];e.x=u[0]*(1-l)+l*c[0],e.y=u[1]*(1-l)+l*c[1];var d=c[0]-u[0],f=c[1]-u[1];e.rotation=-Math.atan2(f,d)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(Qm),rb=nb,ib=n("9680"),ob=n("68ab"),ab=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),sb=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(Ye["a"])(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ab},t.prototype.buildPath=function(e,t){var n,r=t.segs,i=t.curveness;if(t.polyline)for(n=this._off;n<r.length;){var o=r[n++];if(o>0){e.moveTo(r[n++],r[n++]);for(var a=1;a<o;a++)e.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var s=r[n++],l=r[n++],u=r[n++],c=r[n++];if(e.moveTo(s,l),i>0){var d=(s+u)/2-(l-c)*i,f=(l+c)/2-(u-s)*i;e.quadraticCurveTo(d,f,u,c)}else e.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<r.length;){var l=r[s++];if(l>0)for(var u=r[s++],c=r[s++],d=1;d<l;d++){var f=r[s++],h=r[s++];if(ib["a"](u,c,f,h,o,e,t))return a}a++}else for(a=0,s=0;s<r.length;){u=r[s++],c=r[s++],f=r[s++],h=r[s++];if(i>0){var p=(u+f)/2-(c-h)*i,g=(c+h)/2-(f-u)*i;if(ob["a"](u,c,p,g,f,h,o,e,t))return a}else if(ib["a"](u,c,f,h,o,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(e=n[0],t=n[1],r.contain(e,t)){var i=this.hoverDataIdx=this.findDataIndex(e,t);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,r=1/0,i=1/0,o=-1/0,a=-1/0,s=0;s<n.length;){var l=n[s++],u=n[s++];r=Math.min(l,r),o=Math.max(l,o),i=Math.min(u,i),a=Math.max(u,a)}e=this._rect=new Zi["a"](r,i,o,a)}return e},t}(a["b"]),lb=function(){function e(){this.group=new rn["a"]}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],r=t.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,a=new Float32Array(o+r.length);a.set(i),a.set(r,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new sb({cursor:"default"});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),e.useStyle(r.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=Object(ut["a"])(e);o.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){o.dataIndex=null;var n=e.hoverDataIdx;n>0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),ub=lb,cb={seriesType:"lines",plan:Object(pr["a"])(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var d=0,f=[];for(c=i.start;c<i.end;c++){var h=e.getLineCoords(c,a);n&&(s[d++]=h);for(var p=0;p<h;p++)f=t.dataToPoint(a[p],!1,f),s[d++]=f[0],s[d++]=f[1]}o.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var g=o.getItemModel(c),v=(h=e.getLineCoords(c,a),[]);if(n)for(var y=0;y<h;y++)v.push(t.dataToPoint(a[y]));else{v[0]=t.dataToPoint(a[0]),v[1]=t.dataToPoint(a[1]);var m=g.get(["lineStyle","curveness"]);+m&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*m,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*m])}o.setItemLayout(c,v)}}}}}},db=cb,fb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e),o=e.get("zlevel"),a=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var u=e.get("clip",!0)&&qn(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e);i.incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=db.reset(e,t,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get("polyline"),o=t.pipelineContext,a=o.large;return n&&r===this._hasEffet&&i===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new ub:new kp(i?r?rb:tb:r?Qm:mp),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(Fn["a"]),hb=fb,pb="undefined"===typeof Uint32Array?Array:Uint32Array,gb="undefined"===typeof Float64Array?Array:Float64Array;function vb(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(m["H"])(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),Object(m["J"])([n,e[0],e[1]])})))}var yb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(Ye["a"])(t,e),t.prototype.init=function(t){t.data=t.data||[],vb(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(vb(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(m["e"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(m["e"])(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],r=this._flatCoordsOffset[2*e+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+2*i],t[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(e);for(i=0;i<o.length;i++)t[i]=t[i]||[],t[i][0]=o[i][0],t[i][1]=o[i][1];return o.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),Object(m["z"])(e[0])){for(var n=e.length,r=new pb(n),i=new gb(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=e[l++];r[a++]=o+t,r[a++]=u;for(var c=0;c<u;c++){var d=e[l++],f=e[l++];i[o++]=d,i[o++]=f}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,a),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new jt(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[i]:o:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=r.getItemModel(e),o=i.get("name");if(o)return o;var a=i.get("fromName"),s=i.get("toName"),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Object(cl["c"])("nameValue",{name:l.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!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}},t}(tn["b"]),mb=yb;function bb(e){return e instanceof Array||(e=[e,e]),e}var xb={seriesType:"lines",reset:function(e){var t=bb(e.get("symbol")),n=bb(e.get("symbolSize")),r=e.getData();function i(e,t){var n=e.getItemModel(t),r=bb(n.getShallow("symbol",!0)),i=bb(n.getShallow("symbolSize",!0));r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[1])}return r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?i:null}}},_b=xb;function wb(e){e.registerChartView(hb),e.registerSeriesModel(mb),e.registerLayout(db),e.registerVisual(_b)}var Sb=256,kb=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Q["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,o){var a=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,d=c.getContext("2d"),f=e.length;c.width=t,c.height=n;for(var h=0;h<f;++h){var p=e[h],g=p[0],v=p[1],y=p[2],m=r(y);d.globalAlpha=m,d.drawImage(a,g-u,v-u)}if(!c.width||!c.height)return c;var b=d.getImageData(0,0,c.width,c.height),x=b.data,_=0,w=x.length,S=this.minOpacity,k=this.maxOpacity,O=k-S;while(_<w){m=x[_+3]/256;var T=4*Math.floor(m*(Sb-1));if(m>0){var E=o(m)?s:l;m>0&&(m=m*O+S),x[_++]=E[T],x[_++]=E[T+1],x[_++]=E[T+2],x[_++]=E[T+3]*m*256}else _+=4}return d.putImageData(b,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Q["d"].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},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,i),r[o++]=i[0],r[o++]=i[1],r[o++]=i[2],r[o++]=i[3];return r},e}(),Ob=kb;function Tb(e,t,n){var r=e[1]-e[0];t=m["H"](t,(function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}}));var i=t.length,o=0;return function(e){var r;for(r=o;r<i;r++){var a=t[r].interval;if(a[0]<=e&&e<=a[1]){o=r;break}}if(r===i)for(r=o-1;r>=0;r--){a=t[r].interval;if(a[0]<=e&&e<=a[1]){o=r;break}}return r>=0&&r<i&&n[r]}}function Eb(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 Cb(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var Ab=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){var r;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(r=t)}))})),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):Cb(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(Cb(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){ln["traverseElements"](this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,i){var o,a,s,l,u=e.coordinateSystem,c=Wn(u,"cartesian2d");if(c){var d=u.getAxis("x"),f=u.getAxis("y");0,o=d.getBandWidth()+.5,a=f.getBandWidth()+.5,s=d.scale.getExtent(),l=f.scale.getExtent()}for(var h=this.group,p=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),v=e.getModel(["blur","itemStyle"]).getItemStyle(),y=e.getModel(["select","itemStyle"]).getItemStyle(),m=e.get(["itemStyle","borderRadius"]),b=Object(fn["e"])(e),x=e.getModel("emphasis"),_=x.get("focus"),w=x.get("blurScope"),S=x.get("disabled"),k=c?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],O=n;O<r;O++){var T=void 0,E=p.getItemVisual(O,"style");if(c){var C=p.get(k[0],O),A=p.get(k[1],O);if(isNaN(p.get(k[2],O))||C<s[0]||C>s[1]||A<l[0]||A>l[1])continue;var M=u.dataToPoint([C,A]);T=new zn["a"]({shape:{x:M[0]-o/2,y:M[1]-a/2,width:o,height:a},style:E})}else{if(isNaN(p.get(k[1],O)))continue;T=new zn["a"]({z2:1,shape:u.dataToRect([p.get(k[0],O)]).contentShape,style:E})}if(p.hasItemOption){var L=p.getItemModel(O),I=L.getModel("emphasis");g=I.getModel("itemStyle").getItemStyle(),v=L.getModel(["blur","itemStyle"]).getItemStyle(),y=L.getModel(["select","itemStyle"]).getItemStyle(),m=L.get(["itemStyle","borderRadius"]),_=I.get("focus"),w=I.get("blurScope"),S=I.get("disabled"),b=Object(fn["e"])(L)}T.shape.r=m;var D=e.getRawValue(O),j="-";D&&null!=D[2]&&(j=D[2]+""),Object(fn["g"])(T,b,{labelFetcher:e,labelDataIndex:O,defaultOpacity:E.opacity,defaultText:j}),T.ensureState("emphasis").style=g,T.ensureState("blur").style=v,T.ensureState("select").style=y,Object(un["J"])(T,_,w,S),T.incremental=i,i&&(T.states.emphasis.hoverLayer=!0),h.add(T),p.setItemGraphicEl(O,T),this._progressiveEls&&this._progressiveEls.push(T)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),l=this._hmLayer||this._hmLayer||new Ob;l.blurSize=t.get("blurSize"),l.pointSize=t.get("pointSize"),l.minOpacity=t.get("minOpacity"),l.maxOpacity=t.get("maxOpacity");var u=e.getViewRect().clone(),c=e.getRoamTransform();u.applyTransform(c);var d=Math.max(u.x,0),f=Math.max(u.y,0),h=Math.min(u.width+u.x,r.getWidth()),p=Math.min(u.height+u.y,r.getHeight()),g=h-d,v=p-f,y=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],m=a.mapArray(y,(function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=d,i[1]-=f,i.push(r),i})),b=n.getExtent(),x="visualMap.continuous"===n.type?Eb(b,n.option.range):Tb(b,n.getPieceList(),n.option.selected);l.update(m,g,v,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new s["a"]({style:{width:g,height:v,x:d,y:f,image:l.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(Fn["a"]),Mb=Ab,Lb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.getInitialData=function(e,t){return en(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=zt["a"].get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(tn["b"]),Ib=Lb;function Db(e){e.registerChartView(Mb),e.registerSeriesModel(Ib)}var jb=["itemStyle","borderWidth"],Pb=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Rb=new yl["a"],Nb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:Pb[+l],categoryDim:Pb[1-+l]};return i.diff(o).add((function(e){if(i.hasValue(e)){var t=Xb(i,e),n=Bb(i,e,t,c),o=Jb(i,c,n);i.setItemGraphicEl(e,o),r.add(o),ix(o,c,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var a=Xb(i,e),s=Bb(i,e,a,c),l=tx(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?Qb(n,c,s):n=Jb(i,c,s,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,r.add(n),ix(n,c,s)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&ex(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl((function(t){ex(r,Object(ut["a"])(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(Fn["a"]);function Bb(e,t,n,r){var i=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,d=n.isAnimationEnabled(),f={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?n:null,hoverScale:d&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Fb(n,o,i,r,f),Ub(e,t,i,o,a,f.boundingLength,f.pxSign,c,r,f),Hb(n,f.symbolScale,u,r,f);var h=f.symbolSize,p=Object(nn["b"])(n.get("symbolOffset"),h);return Vb(n,h,i,o,a,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Fb(e,t,n,r,i){var o,a=r.valueDim,s=e.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(m["t"](s)){var d=[zb(l,s[0])-u,zb(l,s[1])-u];d[1]<d[0]&&d.reverse(),o=d[c]}else o=null!=s?zb(l,s)-u:t?r.coordSysExtent[a.index][c]-u:n[a.wh];i.boundingLength=o,t&&(i.repeatCutLength=n[a.wh]),i.pxSign=o>0?1:-1}function zb(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Ub(e,t,n,r,i,o,a,s,l,u){var c,d=l.valueDim,f=l.categoryDim,h=Math.abs(n[f.wh]),p=e.getItemVisual(t,"symbolSize");c=m["t"](p)?p.slice():null==p?["100%","100%"]:[p,p],c[f.index]=Object(Hn["o"])(c[f.index],h),c[d.index]=Object(Hn["o"])(c[d.index],r?h:Math.abs(o)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[d.index]*=(l.isHorizontal?-1:1)*a}function Hb(e,t,n,r,i){var o=e.get(jb)||0;o&&(Rb.attr({scaleX:t[0],scaleY:t[1],rotation:n}),Rb.updateTransform(),o/=Rb.getLineScale(),o*=t[r.valueDim.index]),i.valueLineWidth=o||0}function Vb(e,t,n,r,i,o,a,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,g=Math.max(t[h.index]+s,0),v=g;if(r){var y=Math.abs(l),b=m["O"](e.get("symbolMargin"),"15%")+"",x=!1;b.lastIndexOf("!")===b.length-1&&(x=!0,b=b.slice(0,b.length-1));var _=Object(Hn["o"])(b,t[h.index]),w=Math.max(g+2*_,0),S=x?0:2*_,k=Object(Hn["i"])(r),O=k?r:ox((y+S)/w),T=y-O*g;_=T/2/(x?O:Math.max(O-1,1)),w=g+2*_,S=x?0:2*_,k||"fixed"===r||(O=u?ox((Math.abs(u)+S)/w):0),v=O*w-S,d.repeatTimes=O,d.symbolMargin=_}var E=p*(v/2),C=d.pathPosition=[];C[f.index]=n[f.wh]/2,C[h.index]="start"===a?E:"end"===a?l-E:l/2,o&&(C[0]+=o[0],C[1]+=o[1]);var A=d.bundlePosition=[];A[f.index]=n[f.xy],A[h.index]=n[h.xy];var M=d.barRectShape=m["m"]({},n);M[h.wh]=p*Math.max(Math.abs(n[h.wh]),Math.abs(C[h.index]+E)),M[f.wh]=n[f.wh];var L=d.clipShape={};L[f.xy]=-n[f.xy],L[f.wh]=c.ecSize[f.wh],L[h.xy]=0,L[h.wh]=n[h.wh]}function Gb(e){var t=e.symbolPatternSize,n=Object(nn["a"])(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function qb(e,t,n,r){var i=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,d=o[t.valueDim.index]+a+2*n.symbolMargin;for(nx(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?rx(e,null,p(c),n,r):rx(e,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(e)})),c++}));c<u;c++){var f=Gb(n);f.__pictorialAnimationIndex=c,f.__pictorialRepeatTimes=u,i.add(f);var h=p(c);rx(f,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,r)}function p(e){var t=s.slice(),r=n.pxSign,i=e;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=u-1-e),t[l.index]=d*(i-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Wb(e,t,n,r){var i=e.__pictorialBundle,o=e.__pictorialMainPath;o?rx(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=e.__pictorialMainPath=Gb(n),i.add(o),rx(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function Yb(e,t,n){var r=m["m"]({},t.barRectShape),i=e.__pictorialBarRect;i?rx(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new zn["a"]({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function Kb(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,o=m["m"]({},n.clipShape),a=t.valueDim,s=n.animationModel,l=n.dataIndex;if(i)sn["h"](i,{shape:o},s,l);else{o[a.wh]=0,i=new zn["a"]({shape:o}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[a.wh]=n.clipShape[a.wh],ln[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function Xb(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=Zb,n.isAnimationEnabled=$b,n}function Zb(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function $b(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Jb(e,t,n,r){var i=new rn["a"],o=new rn["a"];return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?qb(i,t,n):Wb(i,t,n),Yb(i,n,r),Kb(i,t,n,r),i.__pictorialShapeStr=tx(e,n),i.__pictorialSymbolMeta=n,i}function Qb(e,t,n){var r=n.animationModel,i=n.dataIndex,o=e.__pictorialBundle;sn["h"](o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?qb(e,t,n,!0):Wb(e,t,n,!0),Yb(e,n,!0),Kb(e,t,n,!0)}function ex(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];nx(r,(function(e){o.push(e)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),m["k"](o,(function(e){sn["e"](e,{scaleX:0,scaleY:0},n,t,(function(){r.parent&&r.parent.remove(r)}))})),e.setItemGraphicEl(t,null)}function tx(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function nx(e,t,n){m["k"](e.__pictorialBundle.children(),(function(r){r!==e.__pictorialBarRect&&t.call(n,r)}))}function rx(e,t,n,r,i,o){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&ln[i?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,o)}function ix(e,t,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),l=i.getModel(["blur","itemStyle"]).getItemStyle(),u=i.getModel(["select","itemStyle"]).getItemStyle(),c=i.getShallow("cursor"),d=o.get("focus"),f=o.get("blurScope"),h=o.get("scale");nx(e,(function(e){if(e instanceof s["a"]){var t=e.style;e.useStyle(m["m"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState("emphasis");r.style=a,h&&(r.scaleX=1.1*e.scaleX,r.scaleY=1.1*e.scaleY),e.ensureState("blur").style=l,e.ensureState("select").style=u,c&&(e.cursor=c),e.z2=n.z2}));var p=t.valueDim.posDesc[+(n.boundingLength>0)],g=e.__pictorialBarRect;Object(fn["g"])(g,Object(fn["e"])(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:cn(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Object(un["J"])(e,d,f,o.get("disabled"))}function ox(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var ax=Nb,sx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Object(Ye["a"])(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Object(Rr["d"])(Pr.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,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Pr),lx=sx;function ux(e){e.registerChartView(ax),e.registerSeriesModel(lx),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(m["h"])(Ar,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Mr("pictorialBar"))}var cx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this,o=this.group,a=e.getLayerSeries(),s=r.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(e){return e.name}o.x=0,o.y=l.y+u[0];var d=new Je(this._layersSeries||[],a,c,c),f=[];function h(t,n,s){var l=i._layers;if("remove"!==t){for(var u,c,d=[],h=[],p=a[n].indices,g=0;g<p.length;g++){var v=r.getItemLayout(p[g]),y=v.x,m=v.y0,b=v.y;d.push(y,m),h.push(y,m+b),u=r.getItemVisual(p[g],"style")}var x=r.getItemLayout(p[0]),_=e.getModel("label"),w=_.get("margin"),S=e.getModel("emphasis");if("add"===t){var k=f[n]=new rn["a"];c=new Bn({shape:{points:d,stackedOnPoints:h,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),k.add(c),o.add(k),e.isAnimationEnabled()&&c.setClipPath(dx(c.getBoundingRect(),e,(function(){c.removeClipPath()})))}else{k=l[s];c=k.childAt(0),o.add(k),f[n]=k,sn["h"](c,{shape:{points:d,stackedOnPoints:h}},e),Object(sn["g"])(c)}Object(fn["g"])(c,Object(fn["e"])(e),{labelDataIndex:p[g-1],defaultText:r.getName(p[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var O=c.getTextContent();O&&(O.x=x.x-w,O.y=x.y0+x.y/2),c.useStyle(u),r.setItemGraphicEl(n,c),Object(un["I"])(c,e),Object(un["J"])(c,S.get("focus"),S.get("blurScope"),S.get("disabled"))}else o.remove(l[n])}d.add(Object(m["c"])(h,this,"add")).update(Object(m["c"])(h,this,"update")).remove(Object(m["c"])(h,this,"remove")).execute(),this._layersSeries=a,this._layers=f},t.type="themeRiver",t}(Fn["a"]);function dx(e,t,n){var r=new zn["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return sn["c"](r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}var fx=cx,hx=2,px=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Vi(m["c"](this.getData,this),m["c"](this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=Object(lt["j"])(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),i=[];r.buckets.each((function(e,t){i.push({name:t,dataList:e})}));for(var o=i.length,a=0;a<o;++a){for(var s=i[a].name,l=0;l<i[a].dataList.length;++l){var u=i[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,e[t]=[u,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",lt["b"]).models[0],r=n.get("type"),i=m["n"](e.data,(function(e){return void 0!==e[2]})),o=this.fixData(i||[]),a=[],s=this.nameMap=m["f"](),l=0,u=0;u<o.length;++u)a.push(o[u][hx]),s.get(o[u][hx])||(s.set(o[u][hx],l),l++);var c=Rt(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:it(r)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new jt(c,this);return d.initData(o),d},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension("single"),o=Object(lt["j"])(n,(function(t){return e.get("name",t)})),a=[];return o.buckets.each((function(t,n){t.sort((function(t,n){return e.get(i,t)-e.get(i,n)})),a.push({name:n,indices:t})})),a},t.prototype.getAxisTooltipData=function(e,t,n){m["t"](e)||(e=e?[e]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,d=o[l].indices.length,f=0;f<d;++f){var h=i.get(e[0],o[l].indices[f]),p=Math.abs(h-t);p<=u&&(r=h,u=p,c=o[l].indices[f])}a.push(c)}return{dataIndices:a,nestestValue:r}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=r.getName(e),o=r.get(r.mapDimension("value"),e);return Object(cl["c"])("nameValue",{name:i,value:o})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(tn["b"]),gx=px;function vx(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,r={},i=n.getRect();r.rect=i;var o=e.get("boundaryGap"),a=n.getAxis();if(r.boundaryGap=o,"horizontal"===a.orient){o[0]=Hn["o"](o[0],i.height),o[1]=Hn["o"](o[1],i.height);var s=i.height-o[0]-o[1];yx(t,e,s)}else{o[0]=Hn["o"](o[0],i.width),o[1]=Hn["o"](o[1],i.width);var l=i.width-o[0]-o[1];yx(t,e,l)}t.setLayout("layoutInfo",r)}))}function yx(e,t,n){if(e.count())for(var r,i=t.coordinateSystem,o=t.getLayerSeries(),a=e.mapDimension("single"),s=e.mapDimension("value"),l=m["H"](o,(function(t){return m["H"](t.indices,(function(t){var n=i.dataToPoint(e.get(a,t));return n[1]=e.get(s,t),n}))})),u=mx(l),c=u.y0,d=n/u.max,f=o.length,h=o[0].indices.length,p=0;p<h;++p){r=c[p]*d,e.setItemLayout(o[0].indices[p],{layerIndex:0,x:l[0][p][0],y0:r,y:l[0][p][1]*d});for(var g=1;g<f;++g)r+=l[g-1][p][1]*d,e.setItemLayout(o[g].indices[p],{layerIndex:g,x:l[g][p][0],y0:r,y:l[g][p][1]*d})}}function mx(e){for(var t=e.length,n=e[0].length,r=[],i=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<t;++l)s+=e[l][a][1];s>o&&(o=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(o-r[u])/2;o=0;for(var c=0;c<n;++c){var d=r[c]+i[c];d>o&&(o=d)}return{y0:i,max:o}}function bx(e){e.registerChartView(fx),e.registerSeriesModel(gx),e.registerLayout(vx),e.registerProcessor(Ti("themeRiver"))}var xx=2,_x=4,wx=function(e){function t(t,n,r,i){var o=e.call(this)||this;o.z2=xx,o.textConfig={inside:!0},Object(ut["a"])(o).seriesIndex=n.seriesIndex;var a=new J["a"]({z2:_x,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,r,i),o}return Object(Ye["a"])(t,e),t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var o=this;Object(ut["a"])(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),u=m["m"]({},l);u.label=null;var c=t.getVisual("style");c.lineJoin="bevel";var d=t.getVisual("decal");d&&(c.decal=Object(ic["a"])(d,i));var f=Ni(a.getModel("itemStyle"),u,!0);m["m"](u,f),m["k"](un["g"],(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var r=Ni(n,u);r&&(t.shape=r)})),e?(o.setShape(u),o.shape.r=l.r0,sn["h"](o,{shape:{r:l.r}},n,t.dataIndex)):(sn["h"](o,{shape:u},n),Object(sn["g"])(o)),o.useStyle(c),this._updateLabel(n);var h=a.getShallow("cursor");h&&o.attr("cursor",h),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get("focus"),g="ancestor"===p?t.getAncestorsIndices():"descendant"===p?t.getDescendantIndices():p;Object(un["J"])(this,g,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),o=i.endAngle-i.startAngle,a=(i.startAngle+i.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),d=this.node.dataIndex,f=r.get("minAngle")/180*Math.PI,h=r.get("show")&&!(null!=f&&Math.abs(o)<f);function p(e,t){var n=e.get(t);return null==n?r.get(t):n}c.ignore=!h,m["k"](un["a"],(function(r){var f="normal"===r?n.getModel("label"):n.getModel([r,"label"]),h="normal"===r,g=h?c:c.ensureState(r),v=e.getFormattedLabel(d,r);h&&(v=v||t.node.name),g.style=Object(fn["c"])(f,{},null,"normal"!==r,!0),v&&(g.style.text=v);var y=f.get("show");null==y||h||(g.ignore=!y);var b,x=p(f,"position"),_=h?u:u.states[r],w=_.style.fill;_.textConfig={outsideFill:"inherit"===f.get("color")?w:null,inside:"outside"!==x};var S=p(f,"distance")||0,k=p(f,"align");"outside"===x?(b=i.r+S,k=a>Math.PI/2?"right":"left"):k&&"center"!==k?"left"===k?(b=i.r0+S,a>Math.PI/2&&(k="right")):"right"===k&&(b=i.r-S,a>Math.PI/2&&(k="left")):(b=o===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,k="center"),g.style.align=k,g.style.verticalAlign=p(f,"verticalAlign")||"middle",g.x=b*s+i.cx,g.y=b*l+i.cy;var O=p(f,"rotate"),T=0;"radial"===O?(T=-a,T<-Math.PI/2&&(T+=Math.PI)):"tangential"===O?(T=Math.PI/2-a,T>Math.PI/2?T-=Math.PI:T<-Math.PI/2&&(T+=Math.PI)):m["z"](O)&&(T=O*Math.PI/180),g.rotation=T})),c.dirtyStyle()},t}(Un["a"]),Sx=wx,kx="sunburstRootToNode",Ox="sunburstHighlight",Tx="sunburstUnhighlight";function Ex(e){e.registerAction({type:kx,update:"updateView"},(function(e,t){function n(t,n){var r=Fd(e,[kx],t);if(r){var i=t.getViewRoot();i&&(e.direction=Ud(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:Ox,update:"none"},(function(e,t,n){function r(t){var n=Fd(e,[Ox],t);n&&(e.dataIndex=n.node.dataIndex)}e=Object(m["m"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},r),n.dispatchAction(Object(m["m"])(e,{type:"highlight"}))})),e.registerAction({type:Tx,update:"updateView"},(function(e,t,n){e=Object(m["m"])({},e),n.dispatchAction(Object(m["m"])(e,{type:"downplay"}))}))}var Cx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n,r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),a=o.tree.root,s=e.getViewRoot(),l=this.group,u=e.get("renderLabelForZeroData"),c=[];s.eachNode((function(e){c.push(e)}));var d=this._oldChildren||[];function f(e,t){function n(e){return e.getId()}function r(n,r){var i=null==n?null:e[n],o=null==r?null:t[r];h(i,o)}0===e.length&&0===t.length||new Je(t,e,n,n).add(r).update(r).remove(m["h"](r,null)).execute()}function h(r,i){if(u||!r||r.getValue()||(r=null),r!==a&&i!==a)if(i&&i.piece)r?(i.piece.updateData(!1,r,e,t,n),o.setItemGraphicEl(r.dataIndex,i.piece)):p(i);else if(r){var s=new Sx(r,e,t,n);l.add(s),o.setItemGraphicEl(r.dataIndex,s)}}function p(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function g(r,o){o.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new Sx(r,e,t,n),l.add(i.virtualPiece)),o.piece.off("click"),i.virtualPiece.on("click",(function(e){i._rootToNode(o.parentNode)}))):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null)}f(c,d),g(a,s),this._initEvents(),this._oldChildren=c},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,r=e.seriesModel.getViewRoot();r.eachNode((function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Object(Yn["j"])(a,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:kx,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var i=e[0]-r.cx,o=e[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},t.type="sunburst",t}(Fn["a"]),Ax=Cx,Mx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return Object(Ye["a"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Lx(n);var r=this._levelModels=m["H"](e.levels||[],(function(e){return new Ke["a"](e,this,t)}),this),i=Bd.createTree(n,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t),o=r[n.depth];return o&&(e.parentModel=o),e}))}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=Hd(r,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.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)},t.prototype.enableAriaDecal=function(){tf(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,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},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(tn["b"]);function Lx(e){var t=0;m["k"](e.children,(function(e){Lx(e);var n=e.value;m["t"](n)&&(n=n[0]),t+=n}));var n=e.value;m["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),m["t"](e.value)?e.value[0]=n:e.value=n}var Ix=Mx,Dx=Math.PI/180;function jx(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),r=e.get("radius");m["t"](r)||(r=[0,r]),m["t"](t)||(t=[t,t]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=Object(Hn["o"])(t[0],i),l=Object(Hn["o"])(t[1],o),u=Object(Hn["o"])(r[0],a/2),c=Object(Hn["o"])(r[1],a/2),d=-e.get("startAngle")*Dx,f=e.get("minAngle")*Dx,h=e.getData().tree.root,p=e.getViewRoot(),g=p.depth,v=e.get("sort");null!=v&&Px(p,v);var y=0;m["k"](p.children,(function(e){!isNaN(e.getValue())&&y++}));var b=p.getValue(),x=Math.PI/(b||y)*2,_=p.depth>0,w=p.height-(_?-1:1),S=(c-u)/(w||1),k=e.get("clockwise"),O=e.get("stillShowZeroSum"),T=k?1:-1,E=function(t,n){if(t){var r=n;if(t!==h){var i=t.getValue(),o=0===b&&O?x:i*x;o<f&&(o=f),r=n+T*o;var c=t.depth-g-(_?-1:1),d=u+S*c,p=u+S*(c+1),v=e.getLevelModel(t);if(v){var y=v.get("r0",!0),w=v.get("r",!0),C=v.get("radius",!0);null!=C&&(y=C[0],w=C[1]),null!=y&&(d=Object(Hn["o"])(y,a/2)),null!=w&&(p=Object(Hn["o"])(w,a/2))}t.setLayout({angle:o,startAngle:n,endAngle:r,clockwise:k,cx:s,cy:l,r0:d,r:p})}if(t.children&&t.children.length){var A=0;m["k"](t.children,(function(e){A+=E(e,n+A)}))}return r-n}};if(_){var C=u,A=u+S,M=2*Math.PI;h.setLayout({angle:M,startAngle:d,endAngle:d+M,clockwise:k,cx:s,cy:l,r0:C,r:A})}E(p,d)}))}function Px(e,t){var n=e.children||[];e.children=Rx(n,t),n.length&&m["k"](e.children,(function(e){Px(e,t)}))}function Rx(e,t){if(m["w"](t)){var n=m["H"](e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),m["H"](n,(function(t){return e[t.index]}))}var r="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(r?-1:1):n}))}function Nx(e){var t={};function n(e,n,r){var i=e;while(i&&i.depth>1)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",t);return e.depth>1&&Object(m["C"])(o)&&(o=Object(Kn["c"])(o,(e.depth-1)/(r-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),r=t.tree;r.eachNode((function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(i,e,r.root.height));var s=t.ensureUniqueItemVisual(i.dataIndex,"style");Object(m["m"])(s,a)}))}))}function Bx(e){e.registerChartView(Ax),e.registerSeriesModel(Ix),e.registerLayout(Object(m["h"])(jx,"sunburst")),e.registerProcessor(Object(m["h"])(Ti,"sunburst")),e.registerVisual(Nx),Ex(e)}var Fx={color:"fill",borderColor:"stroke"},zx={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ux=Object(lt["o"])(),Hx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return en(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=Ux(r).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(tn["b"]),Vx=Hx;function Gx(e,t){return t=t||[0,0],m["H"](["x","y"],(function(n,r){var i=this.getAxis(n),o=t[r],a=e[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function qx(e){var t=e.master.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:m["c"](Gx,e)}}}function Wx(e,t){return t=t||[0,0],m["H"]([0,1],(function(n){var r=t[n],i=e[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function Yx(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:m["c"](Wx,e)}}}function Kx(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function Xx(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:Object(m["c"])(Kx,e)}}}function Zx(e,t){return t=t||[0,0],m["H"](["Radius","Angle"],(function(n,r){var i="get"+n+"Axis",o=this[i](),a=t[r],s=e[r]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function $x(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=e.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:m["c"](Zx,e)}}}function Jx(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function Qx(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||Object(m["q"])(e,"text")))}function e_(e,t,n){var r,i,o,a=e;if("text"===t)o=a;else{o={},Object(m["q"])(a,"text")&&(o.text=a.text),Object(m["q"])(a,"rich")&&(o.rich=a.rich),Object(m["q"])(a,"textFill")&&(o.fill=a.textFill),Object(m["q"])(a,"textStroke")&&(o.stroke=a.textStroke),Object(m["q"])(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(m["q"])(a,"fontSize")&&(o.fontSize=a.fontSize),Object(m["q"])(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(m["q"])(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},r={};var s=Object(m["q"])(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),Object(m["q"])(a,"textPosition")&&(r.position=a.textPosition),Object(m["q"])(a,"textOffset")&&(r.offset=a.textOffset),Object(m["q"])(a,"textRotation")&&(r.rotation=a.textRotation),Object(m["q"])(a,"textDistance")&&(r.distance=a.textDistance)}return t_(o,e),Object(m["k"])(o.rich,(function(e){t_(e,e)})),{textConfig:r,textContent:i}}function t_(e,t){t&&(t.font=t.textFont||t.font,Object(m["q"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(m["q"])(t,"textAlign")&&(e.align=t.textAlign),Object(m["q"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(m["q"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(m["q"])(t,"textWidth")&&(e.width=t.textWidth),Object(m["q"])(t,"textHeight")&&(e.height=t.textHeight),Object(m["q"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(m["q"])(t,"textPadding")&&(e.padding=t.textPadding),Object(m["q"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(m["q"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(m["q"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(m["q"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(m["q"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(m["q"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(m["q"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function n_(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=e.fill||"#000";r_(r,t);var a=null==r.textFill;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(a&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,Object(m["k"])(t.rich,(function(e){r_(e,e)})),r}function r_(e,t){t&&(Object(m["q"])(t,"fill")&&(e.textFill=t.fill),Object(m["q"])(t,"stroke")&&(e.textStroke=t.fill),Object(m["q"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(m["q"])(t,"font")&&(e.font=t.font),Object(m["q"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(m["q"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(m["q"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(m["q"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(m["q"])(t,"align")&&(e.textAlign=t.align),Object(m["q"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(m["q"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(m["q"])(t,"width")&&(e.textWidth=t.width),Object(m["q"])(t,"height")&&(e.textHeight=t.height),Object(m["q"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(m["q"])(t,"padding")&&(e.textPadding=t.padding),Object(m["q"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(m["q"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(m["q"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(m["q"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(m["q"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(m["q"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(m["q"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(m["q"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(m["q"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(m["q"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(m["q"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var i_=n("06ad"),o_={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},a_=Object(m["F"])(o_),s_=(Object(m["N"])(F["a"],(function(e,t){return e[t]=1,e}),{}),F["a"].join(", "),["","style","shape","extra"]),l_=Object(lt["o"])();function u_(e,t,n,r,i){var o=e+"Animation",a=Object(sn["a"])(e,r,i)||{},s=l_(t).userDuring;return a.duration>0&&(a.during=s?Object(m["c"])(b_,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),Object(m["m"])(a,n[o]),a}function c_(e,t,n,r){r=r||{};var i=r.dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=l_(e),u=t.style;l.userDuring=t.during;var c={},d={};if(S_(e,t,d),__("shape",t,d),__("extra",t,d),!o&&s&&(w_(e,t,c),x_("shape",e,t,c),x_("extra",e,t,c),k_(e,t,u,c)),d.style=u,p_(e,d,a),v_(e,t),s)if(o){var f={};Object(m["k"])(s_,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(f[e]=f[e]||{}),Object(m["m"])(e?f[e]:f,n.enterFrom))}));var h=u_("enter",e,t,n,i);h.duration>0&&e.animateFrom(f,h)}else g_(e,t,i||0,n,c);d_(e,t),u?e.dirty():e.markRedraw()}function d_(e,t){for(var n=l_(e).leaveToProps,r=0;r<s_.length;r++){var i=s_[r],o=i?t[i]:t;o&&o.leaveTo&&(n||(n=l_(e).leaveToProps={}),i&&(n[i]=n[i]||{}),Object(m["m"])(i?n[i]:n,o.leaveTo))}}function f_(e,t,n,r){if(e){var i=e.parent,o=l_(e).leaveToProps;if(o){var a=u_("update",e,t,n,0);a.done=function(){i.remove(e),r&&r()},e.animateTo(o,a)}else i.remove(e),r&&r()}}function h_(e){return"all"===e}function p_(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,o=0;o<i.length;o++){var a=i[o];"style"===a.targetName&&a.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function g_(e,t,n,r,i){if(i){var o=u_("update",e,t,r,n);o.duration>0&&e.animateFrom(i,o)}}function v_(e,t){Object(m["q"])(t,"silent")&&(e.silent=t.silent),Object(m["q"])(t,"ignore")&&(e.ignore=t.ignore),e instanceof oc["c"]&&Object(m["q"])(t,"invisible")&&(e.invisible=t.invisible),e instanceof a["b"]&&Object(m["q"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var y_={},m_={setTransform:function(e,t){return y_.el[e]=t,this},getTransform:function(e){return y_.el[e]},setShape:function(e,t){var n=y_.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=y_.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=y_.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=y_.el.style;if(t)return t[e]},setExtra:function(e,t){var n=y_.el.extra||(y_.el.extra={});return n[e]=t,this},getExtra:function(e){var t=y_.el.extra;if(t)return t[e]}};function b_(){var e=this,t=e.el;if(t){var n=l_(t).userDuring,r=e.userDuring;n===r?(y_.el=t,r(m_)):e.el=e.userDuring=null}}function x_(e,t,n,r){var i=n[e];if(i){var o,a=t[e];if(a){var s=n.transition,l=i.transition;if(l)if(!o&&(o=r[e]={}),h_(l))Object(m["m"])(o,a);else for(var u=Object(lt["r"])(l),c=0;c<u.length;c++){var d=u[c],f=a[d];o[d]=f}else if(h_(s)||Object(m["r"])(s,e)>=0){!o&&(o=r[e]={});var h=Object(m["F"])(a);for(c=0;c<h.length;c++){d=h[c],f=a[d];O_(i[d],f)&&(o[d]=f)}}}}}function __(e,t,n){var r=t[e];if(r)for(var i=n[e]={},o=Object(m["F"])(r),a=0;a<o.length;a++){var s=o[a];i[s]=Object(i_["a"])(r[s])}}function w_(e,t,n){for(var r=t.transition,i=h_(r)?F["a"]:Object(lt["r"])(r||[]),o=0;o<i.length;o++){var a=i[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=e[a];0,n[a]=s}}}function S_(e,t,n){for(var r=0;r<a_.length;r++){var i=a_[r],o=o_[i],a=t[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(r=0;r<F["a"].length;r++){var s=F["a"][r];null!=t[s]&&(n[s]=t[s])}}function k_(e,t,n,r){if(n){var i,o=e.style;if(o){var a=n.transition,s=t.transition;if(a&&!h_(a)){var l=Object(lt["r"])(a);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=l[u],d=o[c];i[c]=d}}else if(e.getAnimationStyleProps&&(h_(s)||h_(a)||Object(m["r"])(s,"style")>=0)){var f=e.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});var p=Object(m["F"])(n);for(u=0;u<p.length;u++){c=p[u];if(h[c]){d=o[c];i[c]=d}}}}}}}function O_(e,t){return Object(m["u"])(e)?e!==t:null!=e&&isFinite(e)}var T_=Object(lt["o"])(),E_=["percent","easing","shape","style","extra"];function C_(e){e.stopAnimation("keyframe"),e.attr(T_(e))}function A_(e,t,n){if(n.isAnimationEnabled()&&t)if(Object(m["t"])(t))Object(m["k"])(t,(function(t){A_(e,t,n)}));else{var r=t.keyframes,i=t.duration;if(n&&null==i){var o=Object(sn["a"])("enter",n,0);i=o&&o.duration}if(r&&i){var a=T_(e);Object(m["k"])(s_,(function(n){if(!n||e[n]){var o;r.sort((function(e,t){return e.percent-t.percent})),Object(m["k"])(r,(function(r){var s=e.animators,l=n?r[n]:r;if(l){var u=Object(m["F"])(l);if(n||(u=Object(m["n"])(u,(function(e){return Object(m["r"])(E_,e)<0}))),u.length){o||(o=e.animate(n,t.loop,!0),o.scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var d=n?a[n]:a;Object(m["k"])(u,(function(t){d[t]=((n?e[n]:e)||{})[t]})),o.whenWithKeys(i*r.percent,l,u,r.easing)}}})),o&&o.delay(t.delay||0).duration(i).start(t.easing)}}))}}}var M_="emphasis",L_="normal",I_="blur",D_="select",j_=[L_,M_,I_,D_],P_={normal:["itemStyle"],emphasis:[M_,"itemStyle"],blur:[I_,"itemStyle"],select:[D_,"itemStyle"]},R_={normal:["label"],emphasis:[M_,"label"],blur:[I_,"label"],select:[D_,"label"]},N_=["x","y"],B_="e\0\0",F_={normal:{},emphasis:{},blur:{},select:{}},z_={cartesian2d:qx,geo:Yx,single:Xx,polar:$x,calendar:Jx};function U_(e){return e instanceof a["b"]}function H_(e){return e instanceof oc["c"]}function V_(e,t){t.copyTransform(e),H_(t)&&H_(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,U_(t)&&U_(e)&&t.setShape(e.shape))}var G_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._data,o=e.getData(),a=this.group,s=$_(e,o,t,n);i||a.removeAll(),o.diff(i).add((function(t){Q_(n,null,t,s(t,r),e,a,o)})).remove((function(t){var n=i.getItemGraphicEl(t);f_(n,Ux(n).option,e)})).update((function(t,l){var u=i.getItemGraphicEl(l);Q_(n,u,t,s(t,r),e,a,o)})).execute();var l=e.get("clip",!0)?qn(e.coordinateSystem,!1,e):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var o=t.getData(),a=$_(t,o,n,r),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var u=e.start;u<e.end;u++){var c=Q_(null,null,u,a(u,i),t,this.group,o);c&&(c.traverse(l),s.push(c))}},t.prototype.eachRendered=function(e){ln["traverseElements"](this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(null==i||n.name===i)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===i)return!0;return!1},t.type="custom",t}(Fn["a"]),q_=G_;function W_(e){var t,n=e.type;if("path"===n){var r=e.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=fw(r);t=ln["makePath"](o,null,i,r.layout||"center"),Ux(t).customPathData=o}else if("image"===n)t=new s["a"]({}),Ux(t).customImagePath=e.style.image;else if("text"===n)t=new J["a"]({});else if("group"===n)t=new rn["a"];else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=ln["getShapeClass"](n);if(!a){var l="";0,Object(Df["c"])(l)}t=new a}return Ux(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Y_(e,t,n,r,i,o,a){C_(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&null==r.transition&&(r.transition=N_);var l=r&&r.style;if(l){if("text"===t.type){var u=l;Object(m["q"])(u,"textFill")&&(u.fill=u.textFill),Object(m["q"])(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,d=U_(t)?l.decal:null;e&&d&&(d.dirty=!0,c=Object(ic["a"])(d,e)),l.__decalPattern=c}if(H_(t)&&l){c=l.__decalPattern;c&&(l.decal=c)}c_(t,r,o,{dataIndex:n,isInit:a,clearStyle:!0}),A_(t,r.keyframeAnimation,o)}function K_(e,t,n,r,i){var o=t.isGroup?null:t,a=i&&i[e].cfg;if(o){var s=o.ensureState(e);if(!1===r){var l=o.getState(e);l&&(l.style=null)}else s.style=r||null;a&&(s.textConfig=a),Object(un["G"])(o)}}function X_(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,o=n.currentZLevel;r.z=i,r.zlevel=o;var a=t.z2;null!=a&&(r.z2=a||0);for(var s=0;s<j_.length;s++)Z_(r,t,j_[s])}}function Z_(e,t,n){var r,i=n===L_,o=i?t:ow(t,n),a=o?o.z2:null;null!=a&&(r=i?e:e.ensureState(n),r.z2=a||0)}function $_(e,t,n,r){var i=e.get("renderItem"),o=e.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):z_[o.type](o));for(var s,l,u=Object(m["i"])({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:_,style:S,ordinalRawValue:w,styleEmphasis:k,visual:E,barLayout:C,currentSeriesIndices:A,font:M},a.api||{}),c={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:J_(e.getData())},d={},f={},h={},p={},g=0;g<j_.length;g++){var v=j_[g];h[v]=e.getModel(P_[v]),p[v]=e.getModel(R_[v])}function y(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function b(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=y(e).getModel(P_[n])):y(e).getModel(P_[n]):h[n]}function x(e,n){return t.hasItemOption?e===s?f[n]||(f[n]=y(e).getModel(R_[n])):y(e).getModel(R_[n]):p[n]}return function(e,n){return s=e,l=null,d={},f={},i&&i(Object(m["i"])({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},c),u)};function _(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)}function w(e,n){null==n&&(n=s),e=e||0;var r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var o=t.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[o]:o}function S(n,r){null==r&&(r=s);var i=t.getItemVisual(r,"style"),o=i&&i.fill,a=i&&i.opacity,l=b(r,L_).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:Object(m["C"])(o)?o:"#000"},c=x(r,L_),d=fn["c"](c,null,u,!1,!0);d.text=c.getShallow("show")?Object(m["P"])(e.getFormattedLabel(r,L_),cn(t,r)):null;var f=fn["b"](c,u,!1);return T(n,l),l=n_(l,d,f),n&&O(l,n),l.legacy=!0,l}function k(n,r){null==r&&(r=s);var i=b(r,M_).getItemStyle(),o=x(r,M_),a=fn["c"](o,null,null,!0,!0);a.text=o.getShallow("show")?Object(m["Q"])(e.getFormattedLabel(r,M_),e.getFormattedLabel(r,L_),cn(t,r)):null;var l=fn["b"](o,null,!0);return T(n,i),i=n_(i,a,l),n&&O(i,n),i.legacy=!0,i}function O(e,t){for(var n in t)Object(m["q"])(t,n)&&(e[n]=t[n])}function T(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function E(e,n){if(null==n&&(n=s),Object(m["q"])(Fx,e)){var r=t.getItemVisual(n,"style");return r?r[Fx[e]]:null}if(Object(m["q"])(zx,e))return t.getItemVisual(n,e)}function C(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return Sr(Object(m["i"])({axis:t},e))}}function A(){return n.getCurrentSeriesIndices()}function M(e){return fn["d"](e,n)}}function J_(e){var t={};return Object(m["k"])(e.dimensions,(function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,o=t[i]=t[i]||[];o[r.coordDimIndex]=e.getDimensionIndex(n)}})),t}function Q_(e,t,n,r,i,o,a){if(r){var s=ew(e,t,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&Object(un["J"])(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(t)}function ew(e,t,n,r,i,o){var a=-1,s=t;t&&tw(t,r,i)&&(a=Object(m["r"])(o.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=W_(r),s&&V_(s,u)),!1===r.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),F_.normal.cfg=F_.normal.conOpt=F_.emphasis.cfg=F_.emphasis.conOpt=F_.blur.cfg=F_.blur.conOpt=F_.select.cfg=F_.select.conOpt=null,F_.isLegacy=!1,rw(u,n,r,i,l,F_),nw(u,n,r,i,l),Y_(e,u,n,r,F_,i,l),Object(m["q"])(r,"info")&&(Ux(u).info=r.info);for(var c=0;c<j_.length;c++){var d=j_[c];if(d!==L_){var f=ow(r,d),h=aw(r,f,d);K_(d,u,f,h,F_)}}return X_(u,r,i),"group"===r.type&&sw(e,u,n,r,i),a>=0?o.replaceAt(u,a):o.add(u),u}function tw(e,t,n){var r=Ux(e),i=t.type,o=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==r.customGraphicType||"path"===i&&hw(o)&&fw(o)!==r.customPathData||"image"===i&&Object(m["q"])(a,"image")&&a.image!==r.customImagePath}function nw(e,t,n,r,i){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&tw(a,o,r)&&(a=null),a||(a=W_(o),e.setClipPath(a)),Y_(null,a,t,o,null,r,i)}}function rw(e,t,n,r,i,o){if(!e.isGroup){iw(n,null,o),iw(n,M_,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=W_(a),e.setTextContent(c)),Y_(null,c,t,a,null,r,i);for(var d=a&&a.style,f=0;f<j_.length;f++){var h=j_[f];if(h!==L_){var p=o[h].conOpt;K_(h,c,p,aw(a,p,h),null)}}d?c.dirty():c.markRedraw()}}}}function iw(e,t,n){var r=t?ow(e,t):e,i=t?aw(e,r,M_):e.style,o=e.type,a=r?r.textConfig:null,s=e.textContent,l=s?t?ow(s,t):s:null;if(i&&(n.isLegacy||Qx(i,o,!!a,!!l))){n.isLegacy=!0;var u=e_(i,o,!t);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var d=t?n[t]:n.normal;d.cfg=a,d.conOpt=l}function ow(e,t){return t?e?e[t]:null:e}function aw(e,t,n){var r=t&&t.style;return null==r&&n===M_&&e&&(r=e.styleEmphasis),r}function sw(e,t,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,l="byName"===s||r.diffChildrenByName,u=!1===s;if(a||l||u)if(l)lw({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:t});else{u&&t.removeAll();for(var c=0;c<a;c++)o[c]&&ew(e,t.childAt(c),n,o[c],i,t);for(var d=t.childCount()-1;d>=c;d--){var f=t.childAt(d);f_(f,Ux(t).option,i)}}}function lw(e){new Je(e.oldChildren,e.newChildren,uw,uw,e).add(cw).update(cw).remove(dw).execute()}function uw(e,t){var n=e&&e.name;return null!=n?n:B_+t}function cw(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,i=null!=t?n.oldChildren[t]:null;ew(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function dw(e){var t=this.context,n=t.oldChildren[e];f_(n,Ux(n).option,t.seriesModel)}function fw(e){return e&&(e.pathData||e.d)}function hw(e){return e&&(Object(m["q"])(e,"pathData")||Object(m["q"])(e,"d"))}function pw(e){e.registerChartView(q_),e.registerSeriesModel(Vx)}var gw=Object(lt["o"])(),vw=m["d"],yw=m["c"],mw=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var d=m["h"](bw,t,c);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,t)}else a=this._group=new rn["a"],this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);Sw(a,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=Ns(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var o=gw(e).pointerEl=new ln[i.type](vw(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=gw(e).labelEl=new J["a"](vw(t.label));e.add(i),_w(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=gw(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=gw(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),_w(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=ln["createIcon"](o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){Al["g"](e.event)},onmousedown:yw(this._onHandleDragMove,this,0,0),drift:yw(this._onHandleDragMove,this),ondragend:yw(this._onHandleDragEnd,this)}),r.add(i)),Sw(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");m["t"](s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,Fr["b"](this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){bw(this._axisPointerModel,!t&&this._moveAnimation,this._handle,ww(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(ww(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(ww(r)),gw(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._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}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Fr["a"](this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function bw(e,t,n,r){xw(gw(n).lastProp,r)||(gw(n).lastProp=r,t?sn["h"](n,r,e):(n.stopAnimation(),n.attr(r)))}function xw(e,t){if(m["A"](e)&&m["A"](t)){var n=!0;return m["k"](t,(function(t,r){n=n&&xw(e[r],t)})),!!n}return e===t}function _w(e,t){e[t.get(["label","show"])?"show":"hide"]()}function ww(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Sw(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}var kw=mw;function Ow(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle(),t.fill=null):"shadow"===n&&(t=r.getAreaStyle(),t.stroke=null),t}function Tw(e,t,n,r,i){var o=n.get("value"),a=Cw(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),u=Yn["h"](s.get("padding")||0),c=s.getFont(),d=l["d"](a,c),f=i.position,h=d.width+u[1]+u[3],p=d.height+u[0]+u[2],g=i.align;"right"===g&&(f[0]-=h),"center"===g&&(f[0]-=h/2);var v=i.verticalAlign;"bottom"===v&&(f[1]-=p),"middle"===v&&(f[1]-=p/2),Ew(f,h,p,r);var y=s.get("backgroundColor");y&&"auto"!==y||(y=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Object(fn["c"])(s,{text:a,font:c,fill:s.getTextColor(),padding:u,backgroundColor:y}),z2:10}}function Ew(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Cw(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:wa(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};m["k"](r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)})),m["C"](a)?o=a.replace("{value}",o):m["w"](a)&&(o=a(s))}return o}function Aw(e,t,n){var r=La["c"]();return La["g"](r,r,n.rotation),La["i"](r,r,n.position),ln["applyTransform"]([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Mw(e,t,n,r,i,o){var a=As.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),Tw(t,r,i,o,{position:Aw(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Lw(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Iw(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function Dw(e,t,n,r,i,o){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var jw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=Pw(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=Ow(r),d=Rw[s](o,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}var f=os(a.model,n);Mw(t,e,f,n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=os(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=Aw(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=Pw(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,d=[c,c];d[l]=u[l];var f=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:d,tooltipOption:f[l]}},t}(kw);function Pw(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var Rw={line:function(e,t,n){var r=Lw([t,n[0]],[t,n[1]],Nw(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:Iw([t-r/2,n[0]],[r,i],Nw(e))}}};function Nw(e){return"x"===e.dim?0:1}var Bw=jw,Fw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},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}},t}(oo["a"]),zw=Fw,Uw=n("22d1"),Hw=Object(lt["o"])(),Vw=m["k"];function Gw(e,t,n){if(!Uw["a"].node){var r=t.getZr();Hw(r).records||(Hw(r).records={}),qw(r,t);var i=Hw(r).records[e]||(Hw(r).records[e]={});i.handler=n}}function qw(e,t){function n(n,r){e.on(n,(function(n){var i=Xw(t);Vw(Hw(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),Ww(i.pendings,t)}))}Hw(e).initialized||(Hw(e).initialized=!0,n("click",m["h"](Kw,"click")),n("mousemove",m["h"](Kw,"mousemove")),n("globalout",Yw))}function Ww(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function Yw(e,t,n){e.handler("leave",null,n)}function Kw(e,t,n,r){t.handler(e,n,r)}function Xw(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function Zw(e,t){if(!Uw["a"].node){var n=t.getZr(),r=(Hw(n).records||{})[e];r&&(Hw(n).records[e]=null)}}var $w=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";Gw("axisPointer",n,(function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){Zw("axisPointer",t)},t.prototype.dispose=function(e,t){Zw("axisPointer",t)},t.type="axisPointer",t}(io["a"]),Jw=$w;function Qw(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=lt["u"](o,e);if(null==a||a<0||m["t"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h="x"===d||"radius"===d?1:0,p=o.mapDimension(f),g=[];g[h]=o.get(p,a),g[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(m["H"](l.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var eS=Object(lt["o"])();function tS(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Object(m["c"])(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){dS(i)&&(i=Qw({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=dS(i),u=o.axesInfo,c=s.axesInfo,d="leave"===r||dS(i),f={},h={},p={list:[],map:{}},g={showPointer:Object(m["h"])(iS,h),showTooltip:Object(m["h"])(oS,p)};Object(m["k"])(s.coordSysMap,(function(e,t){var n=l||e.containPoint(i);Object(m["k"])(s.coordSysAxesInfo[t],(function(e,t){var r=e.axis,o=uS(u,e);if(!d&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&nS(e,a,g,!1,f)}}))}));var v={};return Object(m["k"])(c,(function(e,t){var n=e.linkGroup;n&&!h[t]&&Object(m["k"])(n.axesInfo,(function(t,r){var i=h[r];if(t!==e&&i){var o=i.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,cS(t),cS(e)))),v[e.key]=o}}))})),Object(m["k"])(v,(function(e,t){nS(c[t],e,g,!0,f)})),aS(h,c,f),sS(p,i,e,a),lS(c,a,n),f}}function nS(e,t,n,r,i){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=rS(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(m["m"])(i,s[0]),!r&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function rS(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return Object(m["k"])(t.seriesModels,(function(t,l){var u,c,d=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var f=t.getAxisTooltipData(d,e,n);c=f.dataIndices,u=f.nestestValue}else{if(c=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null),!c.length)return;u=t.getData().get(d[0],c[0])}if(null!=u&&isFinite(u)){var h=e-u,p=Math.abs(h);p<=a&&((p<a||h>=0&&s<0)&&(a=p,s=h,i=u,o.length=0),Object(m["k"])(c,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:i}}function iS(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function oS(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,u=zs(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function aS(e,t,n){var r=n.axesInfo=[];Object(m["k"])(t,(function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}function sS(e,t,n,r){if(!dS(t)&&e.list.length){var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}else r({type:"hideTip"})}function lS(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=eS(r)[i]||{},a=eS(r)[i]={};Object(m["k"])(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&Object(m["k"])(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];Object(m["k"])(o,(function(e,t){!a[t]&&l.push(e)})),Object(m["k"])(a,(function(e,t){!o[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function uS(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function cS(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function dS(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function fS(e){Vs.registerAxisPointerClass("CartesianAxisPointer",Bw),e.registerComponentModel(zw),e.registerComponentView(Jw),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Object(m["t"])(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=Ms(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},tS)}function hS(e){Object(r["a"])(tl),Object(r["a"])(fS)}var pS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(t),c=r.get("type");if(c&&"none"!==c){var d=Ow(r),f=vS[c](o,a,u,l);f.style=d,e.graphicKey=f.type,e.pointer=f}var h=r.get(["label","margin"]),p=gS(t,n,r,a,h);Tw(e,n,r,i,p)},t}(kw);function gS(e,t,n,r,i){var o=t.axis,a=o.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,d=r.getRadiusAxis().getExtent();if("radius"===o.dim){var f=La["c"]();La["g"](f,f,s),La["i"](f,f,[r.cx,r.cy]),l=ln["applyTransform"]([a,-i],f);var h=t.getModel("axisLabel").get("rotate")||0,p=As.innerTextLayout(s,h*Math.PI/180,-1);u=p.textAlign,c=p.textVerticalAlign}else{var g=d[1];l=r.coordToPoint([g+i,a]);var v=r.cx,y=r.cy;u=Math.abs(l[0]-v)/g<.3?"center":l[0]>v?"left":"right",c=Math.abs(l[1]-y)/g<.3?"middle":l[1]>y?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var vS={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:Lw(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:Dw(t.cx,t.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:Dw(t.cx,t.cy,n-i/2,n+i/2,0,2*Math.PI)}}},yS=pS,mS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(oo["a"]),bS=mS,xS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",lt["b"]).models[0]},t.type="polarAxis",t}(oo["a"]);m["K"](xS,lo);var _S=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.type="angleAxis",t}(xS),wS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.type="radiusAxis",t}(xS),SS=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return Object(Ye["a"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(ns);SS.prototype.dataToRadius=ns.prototype.dataToCoord,SS.prototype.radiusToData=ns.prototype.coordToData;var kS=SS,OS=Object(lt["o"])(),TS=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return Object(Ye["a"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var o=r[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),u=l["d"](null==o?"":o+"",t.getFont(),"center","top"),c=Math.max(u.height,7),d=c/s;isNaN(d)&&(d=1/0);var f=Math.max(0,Math.floor(d)),h=OS(e.model),p=h.lastAutoInterval,g=h.lastTickCount;return null!=p&&null!=g&&Math.abs(p-f)<=1&&Math.abs(g-i)<=1&&p>f?f=p:(h.lastTickCount=i,h.lastAutoInterval=f),f},t}(ns);TS.prototype.dataToAngle=ns.prototype.dataToCoord,TS.prototype.angleToData=ns.prototype.coordToData;var ES=TS,CS=["radius","angle"],AS=function(){function e(e){this.dimensions=CS,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new kS,this._angleAxis=new ES,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,u=l<o?1:-1;while(l<o||l>a)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,r=Math.cos(n)*t+this.cx,i=-Math.sin(n)*t+this.cy;return[r,i]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var r=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-r[0]*i,endAngle:-r[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,i=n*n+r*r-1e-4,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},e.prototype.convertToPixel=function(e,t,n){var r=MS(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=MS(t);return r===this?this.pointToData(n):null},e}();function MS(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var LS=AS;function IS(e,t,n){var r=t.get("center"),i=n.getWidth(),o=n.getHeight();e.cx=Object(Hn["o"])(r[0],i),e.cy=Object(Hn["o"])(r[1],o);var a=e.getRadiusAxis(),s=Math.min(i,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:m["t"](l)||(l=[0,l]);var u=[Object(Hn["o"])(l[0],s),Object(Hn["o"])(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function DS(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();m["k"](Ea(t,"radius"),(function(e){i.scale.unionExtentFromData(t,e)})),m["k"](Ea(t,"angle"),(function(e){r.scale.unionExtentFromData(t,e)}))}})),ma(r.scale,r.model),ma(i.scale,i.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function jS(e){return"angleAxis"===e.mainType}function PS(e,t){if(e.type=t.get("type"),e.scale=ba(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),jS(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var RS={dimensions:CS,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,r){var i=new LS(r+"");i.update=DS;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");PS(o,s),PS(a,l),IS(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",lt["b"]).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},NS=RS,BS=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function FS(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function zS(e){var t=e.getRadiusAxis();return t.inverse?0:1}function US(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 HS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=m["H"](n.getViewLabels(),(function(e){e=m["d"](e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e}));US(s),US(o),m["k"](BS,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||VS[t](this.group,e,r,o,a,i,s)}),this)}},t.type="angleAxis",t}(Vs),VS={axisLine:function(e,t,n,r,i,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=zS(n),u=l?0:1;a=0===o[u]?new yl["a"]({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new ml["a"]({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,e.add(a)},axisTick:function(e,t,n,r,i,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[zS(n)],u=m["H"](r,(function(e){return new vs["a"]({shape:FS(n,[l,l+s],e.coord)})}));e.add(ln["mergePath"](u,{style:m["i"](a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[zS(n)],c=[],d=0;d<i.length;d++)for(var f=0;f<i[d].length;f++)c.push(new vs["a"]({shape:FS(n,[u,u+l],i[d][f].coord)}));e.add(ln["mergePath"](c,{style:m["i"](s.getModel("lineStyle").getLineStyle(),m["i"](a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,i,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");m["k"](a,(function(r,i){var a=l,d=r.tickValue,f=o[zS(n)],h=n.coordToPoint([f+u,r.coord]),p=n.cx,g=n.cy,v=Math.abs(h[0]-p)/f<.3?"center":h[0]>p?"left":"right",y=Math.abs(h[1]-g)/f<.3?"middle":h[1]>g?"top":"bottom";if(s&&s[d]){var b=s[d];m["A"](b)&&b.textStyle&&(a=new Ke["a"](b.textStyle,l,l.ecModel))}var x=new J["a"]({silent:As.isLabelSilent(t),style:Object(fn["c"])(a,{x:h[0],y:h[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:v,verticalAlign:y})});if(e.add(x),c){var _=As.makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=r.rawLabel,Object(ut["a"])(x).eventData=_}}),this)},splitLine:function(e,t,n,r,i,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<r.length;d++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new vs["a"]({shape:FS(n,o,r[d].coord)}))}for(d=0;d<c.length;d++)e.add(ln["mergePath"](c[d],{style:m["i"]({stroke:l[d%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new vs["a"]({shape:FS(n,o,i[u][c].coord)}));e.add(ln["mergePath"](l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,i,o){if(r.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=Math.PI/180,f=-r[0].coord*d,h=Math.min(o[0],o[1]),p=Math.max(o[0],o[1]),g=t.get("clockwise"),v=1,y=r.length;v<=y;v++){var b=v===y?r[0].coord:r[v].coord,x=u++%l.length;c[x]=c[x]||[],c[x].push(new Un["a"]({shape:{cx:n.cx,cy:n.cy,r0:h,r:p,startAngle:f,endAngle:-b*d,clockwise:g},silent:!0})),f=-b*d}for(v=0;v<c.length;v++)e.add(ln["mergePath"](c[v],{style:m["i"]({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}},GS=HS,qS=["axisLine","axisTickLabel","axisName"],WS=["splitLine","splitArea","minorSplitLine"],YS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,r=this._axisGroup=new rn["a"];this.group.add(r);var i=e.axis,o=i.polar,a=o.getAngleAxis(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=a.getExtent()[0],c=i.getExtent(),d=XS(o,e,u),f=new As(e,d);m["k"](qS,f.add,f),r.add(f.getGroup()),ln["groupTransition"](n,r,e),m["k"](WS,(function(t){e.get([t,"show"])&&!i.scale.isBlank()&&KS[t](this.group,e,o,u,c,s,l)}),this)}},t.type="radiusAxis",t}(Vs),KS={splitLine:function(e,t,n,r,i,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<o.length;d++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new yl["a"]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[d].coord,0)}}))}for(d=0;d<c.length;d++)e.add(ln["mergePath"](c[d],{style:m["i"]({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,o,a){if(a.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var d=0;d<a[c].length;d++)u.push(new yl["a"]({shape:{cx:n.cx,cy:n.cy,r:a[c][d].coord}}));e.add(ln["mergePath"](u,{style:m["i"]({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,o){if(o.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=o[0].coord,f=1;f<o.length;f++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new Un["a"]({shape:{cx:n.cx,cy:n.cy,r0:d,r:o[f].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=o[f].coord}for(f=0;f<c.length;f++)e.add(ln["mergePath"](c[f],{style:m["i"]({fill:l[f%l.length]},s.getAreaStyle()),silent:!0}))}}};function XS(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}}var ZS=YS;function $S(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function JS(e,t){return t.dim+e.model.componentIndex}function QS(e,t,n){var r={},i=ek(m["n"](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,o=n.getBaseAxis(),a=JS(n,o),s=$S(e),l=i[a][s],u=l.offset,c=l.width,d=n.getOtherAxis(o),f=e.coordinateSystem.cx,h=e.coordinateSystem.cy,p=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;r[s]=r[s]||[];for(var v=t.mapDimension(d.dim),y=t.mapDimension(o.dim),m=Yt(t,v),b="radius"!==o.dim||!e.get("roundCap",!0),x=d.dataToCoord(0),_=0,w=t.count();_<w;_++){var S=t.get(v,_),k=t.get(y,_),O=S>=0?"p":"n",T=x;m&&(r[s][k]||(r[s][k]={p:x,n:x}),T=r[s][k][O]);var E=void 0,C=void 0,A=void 0,M=void 0;if("radius"===d.dim){var L=d.dataToCoord(S)-x,I=o.dataToCoord(k);Math.abs(L)<p&&(L=(L<0?-1:1)*p),E=T,C=T+L,A=I-u,M=A-c,m&&(r[s][k][O]=C)}else{var D=d.dataToCoord(S,b)-x,j=o.dataToCoord(k);Math.abs(D)<g&&(D=(D<0?-1:1)*g),E=j+u,C=E+c,A=T,M=T+D,m&&(r[s][k][O]=M)}t.setItemLayout(_,{cx:f,cy:h,r0:E,r:C,startAngle:-A*Math.PI/180,endAngle:-M*Math.PI/180,clockwise:A>=M})}}}))}function ek(e){var t={};m["k"](e,(function(e,n){var r=e.getData(),i=e.coordinateSystem,o=i.getBaseAxis(),a=JS(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[a]=u;var d=$S(e);c[d]||u.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var f=Object(Hn["o"])(e.get("barWidth"),l),h=Object(Hn["o"])(e.get("barMaxWidth"),l),p=e.get("barGap"),g=e.get("barCategoryGap");f&&!c[d].width&&(f=Math.min(u.remainedWidth,f),c[d].width=f,u.remainedWidth-=f),h&&(c[d].maxWidth=h),null!=p&&(u.gap=p),null!=g&&(u.categoryGap=g)}));var n={};return m["k"](t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=Object(Hn["o"])(e.categoryGap,i),a=Object(Hn["o"])(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),m["k"](r,(function(e,t){var n=e.maxWidth;n&&n<u&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,d=0;m["k"](r,(function(e,t){e.width||(e.width=u),c=e,d+=e.width*(1+a)})),c&&(d-=c.width*a);var f=-d/2;m["k"](r,(function(e,r){n[t][r]=n[t][r]||{offset:f,width:e.width},f+=e.width*(1+a)}))})),n}var tk=QS,nk={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},rk={splitNumber:5},ik=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.type="polar",t}(io["a"]);function ok(e){Object(r["a"])(fS),Vs.registerAxisPointerClass("PolarAxisPointer",yS),e.registerCoordinateSystem("polar",NS),e.registerComponentModel(bS),e.registerComponentView(ik),wo(e,"angle",_S,nk),wo(e,"radius",wS,rk),e.registerComponentView(GS),e.registerComponentView(ZS),e.registerLayout(Object(m["h"])(tk,"bar"))}function ak(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,i={},o=r.position,a=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[a];var d={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),m["O"](t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var f=t.rotate;return null==f&&(f=e.get(["axisLabel","rotate"])),i.labelRotation="top"===o?-f:f,i.z2=1,i}var sk=["axisLine","axisTickLabel","axisName"],lk=["splitArea","splitLine"],uk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return Object(Ye["a"])(t,e),t.prototype.render=function(t,n,r,i){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new rn["a"];var s=ak(t),l=new As(t,s);m["k"](sk,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),m["k"](lk,(function(e){t.get([e,"show"])&&ck[e](this,this.group,this._axisGroup,t)}),this),ln["groupTransition"](a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){Ws(this)},t.type="singleAxis",t}(Vs),ck={splitLine:function(e,t,n,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=[],d=0,f=i.getTicksCoords({tickModel:o}),h=[],p=[],g=0;g<f.length;++g){var v=i.toGlobalCoord(f[g].coord);u?(h[0]=v,h[1]=l.y,p[0]=v,p[1]=l.y+l.height):(h[0]=l.x,h[1]=v,p[0]=l.x+l.width,p[1]=v);var y=d++%s.length;c[y]=c[y]||[],c[y].push(new vs["a"]({subPixelOptimize:!0,shape:{x1:h[0],y1:h[1],x2:p[0],y2:p[1]},silent:!0}))}var b=a.getLineStyle(["color"]);for(g=0;g<c.length;++g)t.add(ln["mergePath"](c[g],{style:m["i"]({stroke:s[g%s.length]},b),silent:!0}))}},splitArea:function(e,t,n,r){qs(e,n,r,r)}},dk=uk,fk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(oo["a"]);Object(m["K"])(fk,lo.prototype);var hk=fk,pk=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a.position=o||"bottom",a}return Object(Ye["a"])(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(ns),gk=pk,vk=["single"],yk=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=vk,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=new gk(r,ba(e),[0,0],e.get("type"),e.get("position")),o="category"===i.type;i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();Object(m["k"])(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),ma(this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=Object(xi["g"])({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()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=t.reverse?1:0;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),r=n.orient;return"horizontal"===r?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},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){var r=mk(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=mk(t);return r===this?this.pointToData(n):null},e}();function mk(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var bk=yk;function xk(e,t){var n=[];return e.eachComponent("singleAxis",(function(r,i){var o=new bk(r,e,t);o.name="single_"+i,o.resize(r,t),r.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",lt["b"]).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var _k={create:xk,dimensions:vk},wk=_k,Sk=["x","y"],kk=["width","height"],Ok=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.coordinateSystem,s=Ck(a,1-Ek(o)),l=a.dataToPoint(t)[0],u=r.get("type");if(u&&"none"!==u){var c=Ow(r),d=Tk[u](o,l,s);d.style=c,e.graphicKey=d.type,e.pointer=d}var f=ak(n);Mw(t,e,f,n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=ak(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=Aw(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.coordinateSystem,a=Ek(i),s=Ck(o,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=Ck(o,1-a),c=(u[1]+u[0])/2,d=[c,c];return d[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(kw),Tk={line:function(e,t,n){var r=Lw([t,n[0]],[t,n[1]],Ek(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:Iw([t-r/2,n[0]],[r,i],Ek(e))}}};function Ek(e){return e.isHorizontal()?0:1}function Ck(e,t){var n=e.getRect();return[n[Sk[t]],n[Sk[t]]+n[kk[t]]]}var Ak=Ok,Mk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.type="single",t}(io["a"]);function Lk(e){Object(r["a"])(fS),Vs.registerAxisPointerClass("SingleAxisPointer",Ak),e.registerComponentView(Mk),e.registerComponentView(dk),e.registerComponentModel(hk),wo(e,"single",hk,hk.defaultOption),e.registerCoordinateSystem("single",wk)}var Ik=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.init=function(t,n,r){var i=Object(xi["f"])(t);e.prototype.init.apply(this,arguments),Dk(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),Dk(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={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%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(oo["a"]);function Dk(e,t){var n,r=e.cellSize;n=m["t"](r)?r:e.cellSize=[r,r],1===n.length&&(n[1]=n[0]);var i=m["H"]([0,1],(function(e){return Object(xi["j"])(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Object(xi["h"])(e,t,{type:"box",ignoreSize:i})}var jk=Ik,Pk=n("ef59"),Rk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,r),this._renderLines(e,o,a,r),this._renderYearText(e,o,a,r),this._renderMonthText(e,s,a,r),this._renderWeekText(e,s,o,a,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),o=r.getCellWidth(),a=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new zn["a"]({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:i});n.add(u)}},t.prototype._renderLines=function(e,t,n,r){var i=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){f(u.formatedDate),0===c&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var d=u.date;d.setMonth(d.getMonth()+1),u=o.getDateInfo(d)}function f(t){i._firstDayOfMonth.push(o.getDateInfo(t)),i._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,r)}f(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),a,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new Ei["a"]({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),o=[],a=0;a<7;a++){var s=r.getNextNDay(i.time,a),l=r.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return Object(m["C"])(e)&&e?Object(Yn["e"])(e,t):Object(m["w"])(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===r?(a+=i,s=["center","top"]):"left"===r?o-=i:"right"===r?(o+=i,s=["center","top"]):a-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,d={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+"-"+t.end.y);var h=i.get("formatter"),p={start:t.start.y,end:t.end.y,nameMap:f},g=this._formatterLabel(h,p),v=new J["a"]({z2:30,style:Object(fn["c"])(i,{text:g})});v.attr(this._yearTextPositionControl(v,d[a],n,a,o)),r.add(v)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=i,t&&(o="center"),"start"===r&&(a="bottom")):(s+=i,t&&(a="middle"),"start"===r&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),a=i.get("margin"),s=i.get("position"),l=i.get("align"),u=[this._tlpoints,this._blpoints];o&&!Object(m["C"])(o)||(o&&(t=Object(Pk["d"])(o)||t),o=t.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,d="horizontal"===n?0:1;a="start"===s?-a:a;for(var f="center"===l,h=0;h<u[c].length-1;h++){var p=u[c][h].slice(),g=this._firstDayOfMonth[h];if(f){var v=this._firstDayPoints[h];p[d]=(v[d]+u[0][h+1][d])/2}var y=i.get("formatter"),b=o[+g.m-1],x={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:b},_=this._formatterLabel(y,x),w=new J["a"]({z2:30,style:Object(m["m"])(Object(fn["c"])(i,{text:_}),this._monthTextPositionControl(p,f,n,s,a))});r.add(w)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,i){var o="center",a="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+r+(u?1:-1)*i[0]/2,o=u?"right":"left"):(l=l+r+(u?1:-1)*i[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,r,i){var o=e.getModel("dayLabel");if(o.get("show")){var a=e.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();if(!l||Object(m["C"])(l)){l&&(t=Object(Pk["d"])(l)||t);var d=t.get(["time","dayOfWeekShort"]);l=d||Object(m["H"])(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}))}var f=a.getNextNDay(n.end.time,7-n.lweek).time,h=[a.getCellWidth(),a.getCellHeight()];u=Object(Hn["o"])(u,Math.min(h[1],h[0])),"start"===s&&(f=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var p=0;p<7;p++){var g=a.getNextNDay(f,p),v=a.dataToRect([g.time],!1).center,y=p;y=Math.abs((p+c)%7);var b=new J["a"]({z2:30,style:Object(m["m"])(Object(fn["c"])(o,{text:l[y]}),this._weekTextPositionControl(v,r,s,u,h))});i.add(b)}}},t.type="calendar",t}(io["a"]),Nk=Rk,Bk=864e5,Fk=function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=Hn["n"](e);var t=e.getFullYear(),n=e.getMonth()+1,r=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,a=e.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:t+"",m:r,d:o,day:a,time:e.getTime(),formatedDate:t+"-"+r+"-"+o,date:e}},e.prototype.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)},e.prototype.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,r=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];m["k"]([0,1],(function(e){u(i,e)&&(o[r[e]]=i[e]*a[e])}));var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=xi["g"](o,s);function u(e,t){return null!=e[t]&&"auto"!==e[t]}m["k"]([0,1],(function(e){u(i,e)||(i[e]=l[r[e]]/a[e])})),this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(e,t){m["t"](e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),r=this._rangeInfo,i=n.formatedDate;if(t&&!(n.time>=r.start.time&&n.time<r.end.time+Bk))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([r.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.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]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=zk(t);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=zk(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(m["t"](t)&&1===t.length&&(t=t[0]),m["t"](t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[r.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var r=Math.floor(n[1].time/Bk)-Math.floor(n[0].time/Bk)+1,i=new Date(n[0].time),o=i.getDate(),a=n[1].date.getDate();i.setDate(o+r-1);var s=i.getDate();if(s!==a){var l=i.getTime()-n[1].time>0?1:-1;while((s=i.getDate())!==a&&(i.getTime()-n[1].time)*l>0)r-=l,i.setDate(s-l)}var u=Math.floor((r+n[0].day+6)/7),c=t?1-u:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var i=7*(e-1)-r.fweek+t,o=new Date(r.start.time);return o.setDate(+r.start.d+i),this.getDateInfo(o)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",(function(i){var o=new e(i,t,n);r.push(o),i.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("calendarIndex")||0])})),r},e.dimensions=["time","value"],e}();function zk(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}var Uk=Fk;function Hk(e){e.registerComponentModel(jk),e.registerComponentView(Nk),e.registerCoordinateSystem("calendar",Uk)}function Vk(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function Gk(e,t){var n;return m["k"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function qk(e,t,n){var r=m["m"]({},n),i=e[t],o=n.$action||"merge";"merge"===o?i?(m["I"](i,r,!0),Object(xi["h"])(i,r,{ignoreSize:!0}),Object(xi["c"])(n,i),Kk(n,i),Kk(n,i,"shape"),Kk(n,i,"style"),Kk(n,i,"extra"),n.clipPath=i.clipPath):e[t]=r:"replace"===o?e[t]=r:"remove"===o&&i&&(e[t]=null)}var Wk=["transition","enterFrom","leaveTo"],Yk=Wk.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Kk(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?Wk:Yk,i=0;i<r.length;i++){var o=r[i];null==e[o]&&null!=t[o]&&(e[o]=t[o])}}function Xk(e,t){if(e&&(e.hv=t.hv=[Gk(t,["left","right"]),Gk(t,["top","bottom"])],"group"===e.type)){var n=e,r=t;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}var Zk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return Object(Ye["a"])(t,e),t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,o=[];this._flatten(r,o,null);var a=lt["q"](i,o,"normalMerge"),s=this._elOptionsToUpdate=[];m["k"](a,(function(e,t){var n=e.newOption;n&&(s.push(n),Vk(e,n),qk(i,t,n),Xk(i[t],n))}),this),n.elements=m["n"](i,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){m["k"](e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(oo["a"]),$k={path:null,compoundPath:null,group:rn["a"],image:s["a"],text:J["a"]},Jk=lt["o"](),Qk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.init=function(){this._elMap=m["f"]()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get("z"),o=e.get("zlevel");m["k"](t,(function(t){var a=lt["e"](t.id,null),s=null!=a?n.get(a):null,l=lt["e"](t.parentId,null),u=null!=l?n.get(l):r,c=t.type,d=t.style;"text"===c&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,h=t.textConfig;if(d&&Qx(d,c,!!h,!!f)){var p=e_(d,c,!0);!h&&p.textConfig&&(h=t.textConfig=p.textConfig),!f&&p.textContent&&(f=p.textContent)}var g=iO(t);var v=t.$action||"merge",y="merge"===v,m="replace"===v;if(y){var b=!s,x=s;b?x=tO(a,u,t.type,n):(x&&(Jk(x).isNew=!1),C_(x)),x&&(c_(x,g,e,{isInit:b}),rO(x,t,i,o))}else if(m){nO(s,t,n,e);var _=tO(a,u,t.type,n);_&&(c_(_,g,e,{isInit:!0}),rO(_,t,i,o))}else"remove"===v&&(d_(s,t),nO(s,t,n,e));var w=n.get(a);if(w&&f)if(y){var S=w.getTextContent();S?S.attr(f):w.setTextContent(new J["a"](f))}else m&&w.setTextContent(new J["a"](f));if(w){var k=t.clipPath;if(k){var O=k.type,T=void 0;b=!1;if(y){var E=w.getClipPath();b=!E||Jk(E).type!==O,T=b?eO(O):E}else m&&(b=!0,T=eO(O));w.setClipPath(T),c_(T,k,e,{isInit:b}),A_(T,k.keyframeAnimation,e)}var C=Jk(w);w.setTextConfig(h),C.option=t,oO(w,e,t),ln["setTooltipConfig"]({el:w,componentModel:e,itemName:w.name,itemTooltipOption:t.tooltip}),A_(w,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,o=t.getWidth(),a=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l],c=lt["e"](u.id,null),d=null!=c?i.get(c):null;if(d&&d.isGroup){var f=d.parent,h=f===r,p=Jk(d),g=Jk(f);p.width=Object(Hn["o"])(p.option.width,h?o:g.width)||0,p.height=Object(Hn["o"])(p.option.height,h?a:g.height)||0}}for(l=n.length-1;l>=0;l--){u=n[l],c=lt["e"](u.id,null),d=null!=c?i.get(c):null;if(d){f=d.parent,g=Jk(f);var v=f===r?{width:o,height:a}:{width:g.width,height:g.height},y={},b=xi["i"](d,u,v,null,{hv:u.hv,boundingMode:u.bounding},y);if(!Jk(d).isNew&&b){for(var x=u.transition,_={},w=0;w<s.length;w++){var S=s[w],k=y[S];x&&(h_(x)||m["r"](x,S)>=0)?_[S]=k:d[S]=k}Object(sn["h"])(d,_,e,0)}else d.attr(y)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){nO(n,Jk(n).option,t,e._lastGraphicModel)})),this._elMap=m["f"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(io["a"]);function eO(e){var t=m["q"]($k,e)?$k[e]:ln["getShapeClass"](e);var n=new t({});return Jk(n).type=e,n}function tO(e,t,n,r){var i=eO(n);return t.add(i),r.set(e,i),Jk(i).id=e,Jk(i).isNew=!0,i}function nO(e,t,n,r){var i=e&&e.parent;i&&("group"===e.type&&e.traverse((function(e){nO(e,t,n,r)})),f_(e,t,r),n.removeKey(Jk(e).id))}function rO(e,t,n,r){e.isGroup||m["k"]([["cursor",oc["c"].prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];m["q"](t,r)?e[r]=m["P"](t[r],n[1]):null==e[r]&&(e[r]=n[1])})),m["k"](m["F"](t),(function(n){if(0===n.indexOf("on")){var r=t[n];e[n]=m["w"](r)?r:null}})),m["q"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function iO(e){return e=m["m"]({},e),m["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(xi["a"]),(function(t){delete e[t]})),e}function oO(e,t,n){var r=Object(ut["a"])(e).eventData;e.silent||e.ignore||r||(r=Object(ut["a"])(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function aO(e){e.registerComponentModel(Zk),e.registerComponentView(Qk),e.registerPreprocessor((function(e){var t=e.graphic;Object(m["t"])(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var sO=["x","y","radius","angle","single"],lO=["cartesian2d","polar","singleAxis"];function uO(e){var t=e.get("coordinateSystem");return Object(m["r"])(lO,t)>=0}function cO(e){return e+"Axis"}function dO(e,t){var n,r=Object(m["f"])(),i=[],o=Object(m["f"])();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&l(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),i.push(e),u(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)})),t}function u(e){e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return i}function fO(e){var t=e.ecModel,n={infoList:[],infoMap:Object(m["f"])()};return e.eachTargetAxis((function(e,r){var i=t.getComponent(cO(e),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(i)}}})),n}var hO=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),pO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Object(Ye["a"])(t,e),t.prototype.init=function(e,t,n){var r=gO(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=gO(e);Object(m["I"])(this.option,e,!0),Object(m["I"])(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Object(m["k"])([["start","startValue"],["end","endValue"]],(function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(m["f"])(),n=this._fillSpecifiedTargetAxis(t);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(m["k"])(sO,(function(n){var r=this.getReferringComponents(cO(n),lt["a"]);if(r.specified){t=!0;var i=new hO;Object(m["k"])(r.models,(function(e){i.add(e.componentIndex)})),e.set(n,i)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i="vertical"===t?"y":"x",o=n.findComponents({mainType:i+"Axis"});a(o,i)}if(r){o=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});a(o,"single")}function a(t,n){var i=t[0];if(i){var o=new hO;if(o.add(i.componentIndex),e.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",lt["b"]).models[0];a&&Object(m["k"])(t,(function(e){i.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",lt["b"]).models[0]&&o.add(e.componentIndex)}))}}}r&&Object(m["k"])(sO,(function(t){if(r){var i=n.findComponents({mainType:cO(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var o=new hO;o.add(i[0].componentIndex),e.set(t,o),r=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._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}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(m["k"])([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=e[r[0]],a=null!=e[r[1]];o&&!a?t[i]="percent":!o&&a?t[i]="value":n?t[i]=n[i]:o&&(t[i]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(cO(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){Object(m["k"])(n.indexList,(function(n){e.call(t,r,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(cO(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(m["k"])([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(m["k"])(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.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},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,o.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(oo["a"]);function gO(e){var t={};return Object(m["k"])(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var vO=pO,yO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.type="dataZoom.select",t}(vO),mO=yO,bO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(io["a"]),xO=bO,_O=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.type="dataZoom.select",t}(xO),wO=_O,SO=m["k"],kO=Hn["c"],OO=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(uO(t)){var n=cO(this._dimName),r=t.getReferringComponents(n,lt["b"]).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return m["d"](this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];SO(["start","end"],(function(r,u){var c=e[r],d=e[r+"Value"];"percent"===o[u]?(null==c&&(c=a[u]),d=i.parse(Hn["k"](c,a,n))):(t=!0,d=null==d?n[u]:i.parse(d),c=Hn["k"](d,n,a)),l[u]=d,s[u]=c})),kO(l),kO(s);var u=this._minMaxSpan;function c(e,t,n,r,o){var a=o?"Span":"ValueSpan";Vg(0,e,n,"all",u["min"+a],u["max"+a]);for(var s=0;s<2;s++)t[s]=Hn["k"](e[s],n,r,!0),o&&(t[s]=i.parse(t[s]))}return t?c(l,s,n,a,!1):c(s,l,a,n,!0),{valueWindow:l,percentWindow:s}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=TO(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;"none"!==i&&SO(r,(function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var s=t.getStore(),l=m["H"](r,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,i,a=0;a<r.length;a++){var u=s.get(l[a],e),c=!isNaN(u),d=u<o[0],f=u>o[1];if(c&&!d&&!f)return!0;c&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n}))}else SO(r,(function(n){if("empty"===i)e.setData(t=t.map(n,(function(e){return a(e)?e:NaN})));else{var r={};r[n]=o,t.selectRange(r)}}));SO(r,(function(e){t.setApproximateExtent(o,e)}))}}))}function a(e){return e>=o[0]&&e<=o[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;SO(["min","max"],(function(r){var i=t.get(r+"Span"),o=t.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=Hn["k"](n[0]+o,n,[0,100],!0):null!=i&&(o=Hn["k"](i,[0,100],n,!0)-n[0]),e[r+"Span"]=i,e[r+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=Hn["f"](n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},e}();function TO(e,t,n){var r=[1/0,-1/0];SO(n,(function(e){Ca(r,e.getData(),t)}));var i=e.getAxisModel(),o=pa(i.axis.scale,i,r).calculate();return[o.min,o.max]}var EO=OO,CO={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=e.getComponent(cO(r),i);t(r,i,o,n)}))}))}t((function(e,t,n,r){n.__dzAxisProxy=null}));var n=[];t((function(t,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new EO(t,r,o,e),n.push(i.__dzAxisProxy))}));var r=Object(m["f"])();return Object(m["k"])(n,(function(e){Object(m["k"])(e.getTargetSeriesModels(),(function(e){r.set(e.uid,e)}))})),r},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,r){e.getAxisProxy(n,r).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}},AO=CO;function MO(e){e.registerAction("dataZoom",(function(e,t){var n=dO(t,e);Object(m["k"])(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var LO=!1;function IO(e){LO||(LO=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,AO),MO(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function DO(e){e.registerComponentModel(mO),e.registerComponentView(wO),IO(e)}var jO=function(){function e(){}return e}(),PO={};function RO(e,t){PO[e]=t}function NO(e){return PO[e]}var BO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;m["k"](this.option.feature,(function(e,n){var r=NO(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),m["I"](e,r.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,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,position:"bottom"}},t}(oo["a"]),FO=BO;function zO(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Object(xi["g"])(r,o,i);Object(xi["b"])(t.get("orient"),e,t.get("itemGap"),a.width,a.height),Object(xi["i"])(e,r,o,i)}function UO(e,t){var n=Yn["h"](t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new zn["a"]({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var HO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},u=this._features||(this._features={}),c=[];m["k"](s,(function(e,t){c.push(t)})),new Je(this._featureNames||[],c).add(d).update(d).remove(m["h"](d,null)).execute(),this._featureNames=c,zO(i,e,n),i.add(UO(i.getBoundingRect(),e)),a||i.eachChild((function(e){var t=e.__title,r=e.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=e.getTextContent(),u=s&&s.ensureState("emphasis");if(u&&!m["w"](u)&&t){var c=u.style||(u.style={}),d=l["d"](t,J["a"].makeFont(c)),f=e.x+i.x,h=e.y+i.y+o,p=!1;h+d.height>n.getHeight()&&(a.position="top",p=!0);var g=p?-5-d.height:o+10;f+d.width/2>n.getWidth()?(a.position=["100%",g],c.align="right"):f-d.width/2<0&&(a.position=[0,g],c.align="left")}}))}function d(i,o){var a,l=c[i],d=c[o],h=s[l],p=new Ke["a"](h,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===l&&(h.title=r.newTitle),l&&!d){if(VO(l))a={onclick:p.option.onclick,featureName:l};else{var g=NO(l);if(!g)return;a=new g}u[l]=a}else if(a=u[d],!a)return;a.uid=Object(Rr["c"])("toolbox-feature"),a.model=p,a.ecModel=t,a.api=n;var v=a instanceof jO;l||!d?!p.get("show")||v&&a.unusable?v&&a.remove&&a.remove(t,n):(f(p,a,l),p.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?un["r"]:un["C"])(r[e])},a instanceof jO&&a.render&&a.render(p,t,n,r)):v&&a.dispose&&a.dispose(t,n)}function f(r,s,l){var u,c,d=r.getModel("iconStyle"),f=r.getModel(["emphasis","iconStyle"]),h=s instanceof jO&&s.getIcons?s.getIcons():r.get("icon"),p=r.get("title")||{};m["C"](h)?(u={},u[l]=h):u=h,m["C"](p)?(c={},c[l]=p):c=p;var g=r.iconPaths={};m["k"](u,(function(l,u){var h=ln["createIcon"](l,{},{x:-o/2,y:-o/2,width:o,height:o});h.setStyle(d.getItemStyle());var p=h.ensureState("emphasis");p.style=f.getItemStyle();var v=new J["a"]({style:{text:c[u],align:f.get("textAlign"),borderRadius:f.get("textBorderRadius"),padding:f.get("textPadding"),fill:null},ignore:!0});h.setTextContent(v),ln["setTooltipConfig"]({el:h,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),h.__title=c[u],h.on("mouseover",(function(){var t=f.getItemStyle(),r=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";v.setStyle({fill:f.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:f.get("textBackgroundColor")}),h.setTextConfig({position:f.get("textPosition")||r}),v.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===r.get(["iconStatus",u])?un["r"]:un["C"])(h),i.add(h),h.on("click",m["c"](s.onclick,s,t,n,u)),g[u]=h}))}},t.prototype.updateView=function(e,t,n,r){m["k"](this._features,(function(e){e instanceof jO&&e.updateView&&e.updateView(e.model,t,n,r)}))},t.prototype.remove=function(e,t){m["k"](this._features,(function(n){n instanceof jO&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){m["k"](this._features,(function(n){n instanceof jO&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(io["a"]);function VO(e){return 0===e.indexOf("my")}var GO=HO,qO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),o=i?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=Uw["a"].browser;if(Object(m["w"])(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=r+"."+o,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||i){var c=a.split(","),d=c[0].indexOf("base64")>-1,f=i?decodeURIComponent(c[1]):c[1];d&&(f=window.atob(f));var h=r+"."+o;if(window.navigator.msSaveOrOpenBlob){var p=f.length,g=new Uint8Array(p);while(p--)g[p]=f.charCodeAt(p);var v=new Blob([g]);window.navigator.msSaveOrOpenBlob(v,h)}else{var y=document.createElement("iframe");document.body.appendChild(y);var b=y.contentWindow,x=b.document;x.open("image/svg+xml","replace"),x.write(f),x.close(),b.focus(),x.execCommand("SaveAs",!0,h),document.body.removeChild(y)}}else{var _=n.get("lang"),w='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',S=window.open();S.document.write(w),S.document.title=r}},t.getDefaultOption=function(e){var t={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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(jO),WO=qO,YO="__ec_magicType_stack__",KO=[["line","bar"],["stack"]],XO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return m["k"](e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get(["seriesIndex",n]);if(ZO[n]){var o,a={series:[]},s=function(e){var t=e.subType,i=e.id,o=ZO[n](t,i,e,r);o&&(m["i"](o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,c=u+"Axis",d=e.getReferringComponents(c,lt["b"]).models[0],f=d.componentIndex;a[c]=a[c]||[];for(var h=0;h<=f;h++)a[c][f]=a[c][f]||{};a[c][f].boundaryGap="bar"===n}}};m["k"](KO,(function(e){m["r"](e,n)>=0&&m["k"](e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},s);var l=n;"stack"===n&&(o=m["I"]({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},t}(jO),ZO={line:function(e,t,n,r){if("bar"===e)return m["I"]({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return m["I"]({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i=n.get("stack")===YO;if("line"===e||"bar"===e)return r.setIconStatus("stack",i?"normal":"emphasis"),m["I"]({id:t,stack:i?"":YO},r.get(["option","stack"])||{},!0)}};Ml["c"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var $O=XO,JO=new Array(60).join("-"),QO="\t";function eT(e){var t={},n=[],r=[];return e.eachRawSeries((function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function tT(e){var t=[];return m["k"](e,(function(e,n){var r=e.categoryAxis,i=e.valueAxis,o=i.dim,a=[" "].concat(m["H"](e.series,(function(e){return e.name}))),s=[r.model.getCategories()];m["k"](e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var l=[a.join(QO)],u=0;u<s[0].length;u++){for(var c=[],d=0;d<s.length;d++)c.push(s[d][u]);l.push(c.join(QO))}t.push(l.join("\n"))})),t.join("\n\n"+JO+"\n\n")}function nT(e){return m["H"](e,(function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,i=arguments[e-1],o=t.getName(i),a=0;a<e-1;a++)r[a]=arguments[a];n.push((o?o+QO:"")+r.join(QO))})),n.join("\n")})).join("\n\n"+JO+"\n\n")}function rT(e){var t=eT(e);return{value:m["n"]([tT(t.seriesGroupByCategoryAxis),nT(t.other)],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+JO+"\n\n"),meta:t.meta}}function iT(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function oT(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(QO)>=0)return!0}var aT=new RegExp("["+QO+"]+","g");function sT(e){for(var t=e.split(/\n+/g),n=iT(t.shift()).split(aT),r=[],i=m["H"](n,(function(e){return{name:e,data:[]}})),o=0;o<t.length;o++){var a=iT(t[o]).split(aT);r.push(a.shift());for(var s=0;s<a.length;s++)i[s]&&(i[s].data[o]=a[s])}return{series:i,categories:r}}function lT(e){for(var t=e.split(/\n+/g),n=iT(t.shift()),r=[],i=0;i<t.length;i++){var o=iT(t[i]);if(o){var a=o.split(aT),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}function uT(e,t){var n=e.split(new RegExp("\n*"+JO+"\n*","g")),r={series:[]};return m["k"](n,(function(e,n){if(oT(e)){var i=sT(e),o=t[n],a=o.axisDim+"Axis";o&&(r[a]=r[a]||[],r[a][o.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=lT(e);r.series.push(i)}})),r}var cT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=r.get("lang")||[];o.innerHTML=a[0]||r.get("title"),o.style.cssText="margin:10px 20px",o.style.color=r.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=r.get("optionToContent"),c=r.get("contentToOption"),d=rT(e);if(m["w"](u)){var f=u(t.getOption());m["C"](f)?s.innerHTML=f:m["v"](f)&&s.appendChild(f)}else{l.readOnly=r.get("readOnly");var h=l.style;h.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",h.color=r.get("textColor"),h.borderColor=r.get("textareaBorderColor"),h.backgroundColor=r.get("textareaColor"),l.value=d.value,s.appendChild(l)}var p=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var v="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",y=document.createElement("div"),b=document.createElement("div");v+=";background-color:"+r.get("buttonColor"),v+=";color:"+r.get("buttonTextColor");var x=this;function _(){n.removeChild(i),x._dom=null}Object(Al["a"])(y,"click",_),Object(Al["a"])(b,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)_();else{var e;try{e=m["w"](c)?c(s,t.getOption()):uT(l.value,p)}catch(n){throw _(),new Error("Data view format error "+n)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),_()}})),y.innerHTML=a[1],b.innerHTML=a[2],b.style.cssText=y.style.cssText=v,!r.get("readOnly")&&g.appendChild(b),g.appendChild(y),i.appendChild(o),i.appendChild(s),i.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){var t={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:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return t},t}(jO);function dT(e,t){return m["H"](e,(function(e,n){var r=t&&t[n];if(m["A"](r)&&!m["t"](r)){var i=m["A"](e)&&!m["t"](e);i||(e={value:e});var o=null!=r.name&&null==e.name;return e=m["i"](e,r),o&&delete e.name,e}return e}))}Ml["c"]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];m["k"](e.newOption.series,(function(e){var r=t.getSeriesByName(e.name)[0];if(r){var i=r.get("data");n.push({name:e.name,data:dT(e.data,i)})}else n.push(m["m"]({type:"scatter"},e))})),t.mergeOption(m["i"]({series:n},e.newOption))}));var fT=cT,hT=m["k"],pT=Object(lt["o"])();function gT(e,t){var n=bT(e);hT(t,(function(t,r){for(var i=n.length-1;i>=0;i--){var o=n[i];if(o[r])break}if(i<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(a){var s=a.getPercentRange();n[0][r]={dataZoomId:r,start:s[0],end:s[1]}}}})),n.push(t)}function vT(e){var t=bT(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return hT(n,(function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}})),r}function yT(e){pT(e).snapshots=null}function mT(e){return bT(e).length}function bT(e){var t=pT(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var xT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t.prototype.onclick=function(e,t){yT(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={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:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(jO);Ml["c"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var _T=xT,wT=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],ST=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=OT(t,e);Object(m["k"])(TT,(function(e,t){(!n||!n.include||Object(m["r"])(n.include,t)>=0)&&e(i,r._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=AT[e.brushType](0,n,t);e.__rangeOffset={offset:LT[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(m["k"])(e,(function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&Object(m["k"])(r.coordSyses,(function(r){var i=AT[e.brushType](1,r,e.range,!0);n(e,i.values,r,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(m["k"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var r=AT[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?LT[e.brushType](r.values,i.offset,DT(r.xyMinMax,i.xyMinMax)):r.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(m["H"])(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:oy(r),isTargetByCursor:sy(r,e,n.coordSysModel),getLinearBrushOtherExtent:ay(r)}}))},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&Object(m["r"])(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=OT(t,e),i=0;i<n.length;i++){var o=n[i],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<ET.length;s++)if(ET[s](r,o))return o}return!0},e}();function kT(e){return e[0]>e[1]&&e.reverse(),e}function OT(e,t){return Object(lt["s"])(e,t,{includeMainTypes:wT})}var TT={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,o=Object(m["f"])(),a={},s={};(n||r||i)&&(Object(m["k"])(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),Object(m["k"])(r,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),Object(m["k"])(i,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var i=e.coordinateSystem,o=[];Object(m["k"])(i.getCartesians(),(function(e,t){(Object(m["r"])(n,e.getAxis("x").model)>=0||Object(m["r"])(r,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:CT.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Object(m["k"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:CT.geo})}))}},ET=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],CT={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(ln["getTransform"](e)),t}},AT={lineX:Object(m["h"])(MT,0),lineY:Object(m["h"])(MT,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),o=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),a=[kT([i[0],o[0]]),kT([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],o=Object(m["H"])(n,(function(n){var o=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o}));return{values:o,xyMinMax:i}}};function MT(e,t,n,r){var i=n.getAxis(["x","y"][e]),o=kT(Object(m["H"])([0,1],(function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var LT={lineX:Object(m["h"])(IT,0),lineY:Object(m["h"])(IT,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 Object(m["H"])(e,(function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function IT(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function DT(e,t){var n=jT(e),r=jT(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function jT(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var PT=ST,RT=n("2f1f"),NT=m["k"],BT=Object(lt["p"])("toolbox-dataZoom_"),FT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new iy(n.getZr()),this._brushController.on("brush",m["c"](this._onBrush,this)).mount()),VT(e,t,this,r,n),HT(e,t)},t.prototype.onclick=function(e,t,n){zT[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]);var i=new PT(UT(this.model),r,{include:["grid"]});i.matchOutputRanges(t,r,(function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[r],n,t)}})),gT(r,n),this._dispatchZoomAction(n)}function o(e,t,i){var o=t.getAxis(e),s=o.model,l=a(e,s,r),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=Vg(0,i.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var i=n.getAxisModel(e,t.componentIndex);i&&(r=n)})),r}},t.prototype._dispatchZoomAction=function(e){var t=[];NT(e,(function(e,n){t.push(m["d"](e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(jO),zT={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(vT(this.ecModel))}};function UT(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function HT(e,t){e.setIconStatus("back",mT(t)>1?"emphasis":"normal")}function VT(e,t,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new PT(UT(e),t,{include:["grid"]}),s=a.makePanelOpts(i,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}Object(RT["b"])("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),i=[],o=UT(r),a=Object(lt["s"])(e,o);return NT(a.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),NT(a.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),i}function s(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:BT+t+o};a[n]=o,i.push(a)}}));var GT=FT;function qT(e){e.registerComponentModel(FO),e.registerComponentView(GO),RO("saveAsImage",WO),RO("magicType",$O),RO("dataView",fT),RO("dataZoom",GT),RO("restore",_T),Object(r["a"])(DO)}var WT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(oo["a"]),YT=WT,KT=n("65ed");function XT(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function ZT(e){if(Uw["a"].domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var $T=ZT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),JT=ZT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function QT(e,t){if(!e)return t;t=Object(Yn["i"])(t,!0);var n=e.indexOf(t);return e=-1===n?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function eE(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var tE=QT(JT,"transition"),nE=QT($T,"transform"),rE="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Uw["a"].transform3dSupported?"will-change:transform;":"");function iE(e){return e="left"===e?"right":"right"===e?"left":"top"===e?"bottom":"top",e}function oE(e,t,n){if(!Object(m["C"])(n)||"inside"===n)return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=Object(Yn["b"])(t);var o,a=iE(n),s=Math.max(1.5*Math.round(i),6),l="",u=nE+":";Object(m["r"])(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,d=s+i,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(100*((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2))/100;l+=";"+a+":-"+h+"px";var p=t+" solid "+i+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+u+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'<div style="'+g.join("")+'"></div>'}function aE(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=Uw["a"].transformSupported?","+nE+r:",left"+r+",top"+r),tE+":"+i}function sE(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Uw["a"].transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Uw["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+nE+":"+a+";":[["top",0],["left",0],[$T,a]]}function lE(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Object(m["k"])(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}function uE(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),d=Object(cl["d"])(e,"html"),f=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+f),t&&i&&r.push(aE(i,n)),o&&r.push("background-color:"+o),Object(m["k"])(["width","color","radius"],(function(t){var n="border-"+t,i=Object(Yn["i"])(n),o=e.get(i);null!=o&&r.push(n+":"+o+("color"===t?"":"px"))})),r.push(lE(c)),null!=d&&r.push("padding:"+Object(Yn["h"])(d).join("px ")+"px"),r.join(";")+";"}function cE(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&Object(KT["c"])(e,a,document.body,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var dE=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,Uw["a"].wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;cE(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(r):e.appendChild(r),this._container=e;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=i.handler,n=i.painter.getViewportRoot();Object(Al["e"])(n,e,!0),t.dispatch("mousemove",e)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){var t=this._container,n=eE(t,"position"),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=rE+uE(e,!this._firstShow,this._longHide)+sE(i[0],i[1],!0)+"border-color:"+Object(Yn["b"])(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var o=this.el;if(null!=e){var a="";if(Object(m["C"])(i)&&"item"===n.get("trigger")&&!XT(n)&&(a=oE(n,r,i)),Object(m["C"])(e))o.innerHTML=e+a;else if(e){o.innerHTML="",Object(m["t"])(e)||(e=[e]);for(var s=0;s<e.length;s++)Object(m["v"])(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(cE(n,this._zr,this._appendToBody,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style,i=sE(n[0],n[1]);Object(m["k"])(i,(function(e){r[e[0]]=e[1]}))}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",Uw["a"].transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Object(m["c"])(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}(),fE=dE,hE=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),vE(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var o=this;m["A"](e)&&Object(Df["c"])(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new J["a"]({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Object(cl["d"])(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),m["k"](["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){o.el.style[e]=n.get(e)})),m["k"](["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){o.el.style[e]=a.get(e)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=gE(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;vE(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,o=pE(i.borderWidth||0),a=gE(i);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(m["c"](this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function pE(e){return Math.max(0,e)}function gE(e){var t=pE(e.shadowBlur||0),n=pE(e.shadowOffsetX||0),r=pE(e.shadowOffsetY||0);return{left:pE(t-n),right:pE(t+n),top:pE(t-r),bottom:pE(t+r)}}function vE(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var yE=hE,mE=n("38a2"),bE=new zn["a"]({shape:{x:-1,y:-1,width:2,height:2}}),xE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.init=function(e,t){if(!Uw["a"].node&&t.getDom()){var n=e.getComponent("tooltip"),r=this._renderMode=Object(lt["i"])(n.get("renderMode"));this._tooltipContent="richText"===r?new yE(t):new fE(t.getDom(),t,{appendToBody:n.get("appendToBody",!0)})}},t.prototype.render=function(e,t,n){if(!Uw["a"].node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._alwaysShowContent=e.get("alwaysShowContent");var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?Object(Fr["b"])(this,"_updatePosition",50,"fixRate"):Object(Fr["a"])(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,t=e.get("triggerOn");Gw("itemTooltip",this._api,Object(m["c"])((function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!Uw["a"].node&&n.getDom()){var i=wE(r,n);this._ticket="";var o=r.dataByCoordSys,a=EE(r,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=bE;l.x=r.x,l.y=r.y,l.update(),Object(ut["a"])(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=Qw(r,t),c=u.point[0],d=u.point[1];null!=c&&null!=d&&this._tryShow({offsetX:c,offsetY:d,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(wE(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s){var l=s.getData(),u=_E([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,r=this._tooltipModel;if(r){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,e);else if(n){var o,a;this._lastDataByCoordSys=null,Object(Wc["a"])(n,(function(e){return null!=Object(ut["a"])(e).dataIndex?(o=e,!0):null!=Object(ut["a"])(e).tooltipConfig?(a=e,!0):void 0}),!0),o?this._showSeriesItemTooltip(e,o,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=Object(m["c"])(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],o=_E([t.tooltipOption],r),a=this._renderMode,s=[],l=Object(cl["c"])("section",{blocks:[],noHeader:!0}),u=[],c=new cl["a"];Object(m["k"])(e,(function(e){Object(m["k"])(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var o=Cw(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=Object(cl["c"])("section",{header:o,noHeader:!Object(m["T"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(d),Object(m["k"])(e.seriesDataIndices,(function(l){var f=n.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,p=f.getDataParams(h);if(!(p.dataIndex<0)){p.axisDim=e.axisDim,p.axisIndex=e.axisIndex,p.axisType=e.axisType,p.axisId=e.axisId,p.axisValue=wa(t.axis,{value:i}),p.axisValueLabel=o,p.marker=c.makeTooltipMarker("item",Object(Yn["b"])(p.color),a);var g=Object(mE["b"])(f.formatTooltip(h,!0,null)),v=g.frag;if(v){var y=_E([f],r).get("valueFormatter");d.blocks.push(y?Object(m["m"])({valueFormatter:y},v):v)}g.text&&u.push(g.text),s.push(p)}}))}}))})),l.blocks.reverse(),u.reverse();var d=t.position,f=o.get("order"),h=Object(cl["b"])(l,c,a,f,n.get("useUTC"),o.get("textStyle"));h&&u.unshift(h);var p="richText"===a?"\n\n":"<br/>",g=u.join(p);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],d,null,c)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Object(ut["a"])(t),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),d=this._renderMode,f=e.positionDefault,h=_E([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),p=h.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,u),v=new cl["a"];g.marker=v.makeTooltipMarker("item",Object(Yn["b"])(g.color),d);var y=Object(mE["b"])(s.formatTooltip(l,!1,u)),b=h.get("order"),x=h.get("valueFormatter"),_=y.frag,w=_?Object(cl["b"])(x?Object(m["m"])({valueFormatter:x},_):_,v,d,b,r.get("useUTC"),h.get("textStyle")):y.text,S="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,w,g,S,e.offsetX,e.offsetY,e.position,e.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=Object(ut["a"])(t),i=r.tooltipConfig,o=i.option||{};if(Object(m["C"])(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=e.positionDefault,c=_E(s,this._tooltipModel,u?{position:u}:null),d=c.get("content"),f=Math.random()+"",h=new cl["a"];this._showOrMove(c,(function(){var n=Object(m["d"])(c.get("formatterParams")||{});this._showTooltipContent(c,d,n,f,e.offsetX,e.offsetY,e.position,t,h)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var d=t,f=this._getNearestPoint([i,o],n,e.get("trigger"),e.get("borderColor")),h=f.color;if(c)if(Object(m["C"])(c)){var p=e.ecModel.get("useUTC"),g=Object(m["t"])(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;d=c,v&&(d=Object(Uo["h"])(g.axisValue,d,p)),d=Object(Yn["d"])(d,n,!0)}else if(Object(m["w"])(c)){var y=Object(m["c"])((function(t,r){t===this._ticket&&(u.setContent(r,l,e,h,a),this._updatePosition(e,a,i,o,u,n,s))}),this);this._ticket=r,d=c(n,r,y)}else d=c;u.setContent(d,l,e,h,a),u.show(e,h),this._updatePosition(e,a,i,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||Object(m["t"])(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(m["t"])(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=i.getSize(),c=e.get("align"),d=e.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),Object(m["w"])(t)&&(t=t([n,r],o,i.el,f,{viewSize:[s,l],contentSize:u.slice()})),Object(m["t"])(t))n=Object(Hn["o"])(t[0],s),r=Object(Hn["o"])(t[1],l);else if(Object(m["A"])(t)){var h=t;h.width=u[0],h.height=u[1];var p=Object(xi["g"])(h,{width:s,height:l});n=p.x,r=p.y,c=null,d=null}else if(Object(m["C"])(t)&&a){var g=OE(t,f,u,e.get("borderWidth"));n=g[0],r=g[1]}else{g=SE(n,r,i,s,l,c?null:20,d?null:20);n=g[0],r=g[1]}if(c&&(n-=TE(c)?u[0]/2:"right"===c?u[0]:0),d&&(r-=TE(d)?u[1]/2:"bottom"===d?u[1]:0),XT(e)){g=kE(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&Object(m["k"])(n,(function(n,o){var a=n.dataByAxis||[],s=e[o]||{},l=s.dataByAxis||[];i=i&&a.length===l.length,i&&Object(m["k"])(a,(function(e,n){var o=l[n]||{},a=e.seriesDataIndices||[],s=o.seriesDataIndices||[];i=i&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===s.length,i&&Object(m["k"])(a,(function(e,t){var n=s[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),r&&Object(m["k"])(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!Uw["a"].node&&t.getDom()&&(Object(Fr["a"])(this,"_updatePosition"),this._tooltipContent.dispose(),Zw("itemTooltip",t))},t.type="tooltip",t}(io["a"]);function _E(e,t,n){var r,i=t.ecModel;n?(r=new Ke["a"](n,i,i),r=new Ke["a"](t.option,r,i)):r=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof Ke["a"]&&(a=a.get("tooltip",!0)),Object(m["C"])(a)&&(a={formatter:a}),a&&(r=new Ke["a"](a,r,i)))}return r}function wE(e,t){return e.dispatchAction||Object(m["c"])(t.dispatchAction,t)}function SE(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>r?e-=l+o:e+=o),null!=a&&(t+u+a>i?t-=u+a:t+=a),[e,t]}function kE(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function OE(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function TE(e){return"center"===e||"middle"===e}function EE(e,t,n){var r=Object(lt["t"])(e).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=Object(lt["v"])(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(t){var n=Object(ut["a"])(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var CE=xE;function AE(e){Object(r["a"])(fS),e.registerComponentModel(YT),e.registerComponentView(CE),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},m["L"]),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},m["L"])}var ME=["rect","polygon","keep","clear"];function LE(e,t){var n=Object(lt["r"])(e?e.brush:[]);if(n.length){var r=[];m["k"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))}));var i=e&&e.toolbox;m["t"](i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),IE(s),t&&!s.length&&s.push.apply(s,ME)}}function IE(e){var t={};m["k"](e,(function(e){t[e]=1})),e.length=0,m["k"](t,(function(t,n){e.push(n)}))}var DE=n("0924"),jE=m["k"];function PE(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function RE(e,t,n){var r={};return jE(t,(function(t){var o=r[t]=i();jE(e[t],(function(e,r){if($f.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),o[r]=new $f(i),"opacity"===r&&(i=m["d"](i),i.type="colorAlpha",o.__hidden.__alphaForOpacity=new $f(i))}}))})),r;function i(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function NE(e,t,n){var r;m["k"](n,(function(e){t.hasOwnProperty(e)&&PE(t[e])&&(r=!0)})),r&&m["k"](n,(function(n){t.hasOwnProperty(n)&&PE(t[n])?e[n]=m["d"](t[n]):delete e[n]}))}function BE(e,t,n,r,i,o){var a,s={};function l(e){return Object(DE["a"])(n,a,e)}function u(e,t){Object(DE["c"])(n,a,e,t)}function c(e,c){a=null==o?e:c;var d=n.getRawDataItem(a);if(!d||!1!==d.visualMap)for(var f=r.call(i,e),h=t[f],p=s[f],g=0,v=p.length;g<v;g++){var y=p[g];h[y]&&h[y].applyVisual(e,l,u)}}m["k"](e,(function(e){var n=$f.prepareVisualTypes(t[e]);s[e]=n})),null==o?n.each(c):n.each([o],c)}function FE(e,t,n,r){var i={};return m["k"](e,(function(e){var n=$f.prepareVisualTypes(t[e]);i[e]=n})),{progress:function(e,o){var a,s;function l(e){return Object(DE["a"])(o,s,e)}function u(e,t){Object(DE["c"])(o,s,e,t)}null!=r&&(a=o.getDimensionIndex(r));var c=o.getStore();while(null!=(s=e.next())){var d=o.getRawDataItem(s);if(!d||!1!==d.visualMap)for(var f=null!=r?c.get(a,s):s,h=n(f),p=t[h],g=i[h],v=0,y=g.length;v<y;v++){var m=g[v];p[m]&&p[m].applyVisual(f,l,u)}}}}}function zE(e){var t=e.brushType,n={point:function(r){return UE[t].point(r,n,e)},rect:function(r){return UE[t].rect(r,n,e)}};return n}var UE={lineX:HE(0),lineY:HE(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])&&ku(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,o=e.y,a=e.width,s=e.height,l=r[0];return!!(ku(r,i,o)||ku(r,i+a,o)||ku(r,i,o+s)||ku(r,i+a,o+s)||Zi["a"].create(e).contain(l[0],l[1])||Object(ln["linePolygonIntersect"])(i,o,i+a,o,r)||Object(ln["linePolygonIntersect"])(i,o,i,o+s,r)||Object(ln["linePolygonIntersect"])(i+a,o,i+a,o+s,r)||Object(ln["linePolygonIntersect"])(i,o+s,i+a,o+s,r))||void 0}}};function HE(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){if(t){var i=r.range,o=t[e];return VE(o,i)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),VE(s[0],a)||VE(s[1],a)||VE(a[0],s)||VE(a[1],s)}}}}function VE(e,t){return t[0]<=e&&e<=t[1]}var GE=["inBrush","outOfBrush"],qE="__ecBrushSelect",WE="__ecInBrushSelectEvent";function YE(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new PT(t.option,e);n.setInputRanges(t.areas,e)}))}function KE(e,t,n){var r,i,o=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),YE(e),e.eachComponent({mainType:"brush"},(function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:m["d"](t.areas),selected:[]};o.push(a);var s=t.option,l=s.brushLink,u=[],c=[],d=[],f=!1;n||(r=s.throttleType,i=s.throttleDelay);var h=m["H"](t.areas,(function(e){var t=QE[e.brushType],n=m["i"]({boundingRect:t?t(e):void 0},e);return n.selectors=zE(n),n})),p=RE(t.option,GE,(function(e){e.mappingMethod="fixed"}));function g(e){return"all"===l||!!u[e]}function v(e){return!!e.length}function y(e,t){var n=e.coordinateSystem;f=f||n.hasAxisBrushed(),g(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(c[t]=1)}))}function b(n,r,i){if(n.brushSelector&&!JE(t,r)&&(m["k"](h,(function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),f=f||v(i)})),g(r)&&v(i))){var o=n.getData();o.each((function(e){$E(n,i,o,e)&&(c[e]=1)}))}}m["t"](l)&&m["k"](l,(function(e){u[e]=1})),e.eachSeries((function(e,t){var n=d[t]=[];"parallel"===e.subType?y(e,t):b(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var r=d[t],i=e.getData(),o=g(t)?function(e){return c[e]?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return $E(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"};(g(t)?f:v(r))&&BE(GE,p,i,o)}))})),XE(t,r,i,o,n)}function XE(e,t,n,r,i){if(i){var o=e.getZr();if(!o[WE]){o[qE]||(o[qE]=ZE);var a=Fr["b"](o,qE,n,t);a(e,r)}}}function ZE(e,t){if(!e.isDisposed()){var n=e.getZr();n[WE]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[WE]=!1}}function $E(e,t,n,r){for(var i=0,o=t.length;i<o;i++){var a=t[i];if(e.brushSelector(r,n,a.selectors,a))return!0}}function JE(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(m["t"](n)?m["r"](n,t)<0:t!==n)}var QE={rect:function(e){return eC(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&eC(t)}};function eC(e){return new Zi["a"](e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var tC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new iy(t.getZr())).on("brush",m["c"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){YE(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:m["d"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:m["d"](n),$from:t})},t.type="brush",t}(io["a"]),nC=tC,rC="#ddd",iC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return Object(Ye["a"])(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&NE(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:rC},r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=m["H"](e,(function(e){return oC(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=oC(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(oo["a"]);function oC(e,t){return m["I"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Ke["a"](e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var aC=iC,sC=["rect","polygon","lineX","lineY","keep","clear"],lC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){var r,i,o;t.eachComponent({mainType:"brush"},(function(e){r=e.brushType,i=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=r,this._brushMode=i,m["k"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===i:"clear"===t?o:t===r)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return m["k"](e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},t.getDefaultOption=function(e){var t={show:!0,type:sC.slice(),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:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(jO),uC=lC;function cC(e){e.registerComponentView(nC),e.registerComponentModel(aC),e.registerPreprocessor(LE),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,KE),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},m["L"]),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},m["L"]),RO("brush",uC)}var dC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(Ye["a"])(t,e),t.type="title",t.defaultOption={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:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(oo["a"]),fC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=m["P"](e.get("textBaseline"),e.get("textVerticalAlign")),l=new J["a"]({style:Object(fn["c"])(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),d=new J["a"]({style:Object(fn["c"])(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=e.get("link"),h=e.get("sublink"),p=e.get("triggerEvent",!0);l.silent=!f&&!p,d.silent=!h&&!p,f&&l.on("click",(function(){Object(Yn["j"])(f,"_"+e.get("target"))})),h&&d.on("click",(function(){Object(Yn["j"])(h,"_"+e.get("subtarget"))})),Object(ut["a"])(l).eventData=Object(ut["a"])(d).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),c&&r.add(d);var g=r.getBoundingRect(),v=e.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=Object(xi["g"])(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||(a=e.get("left")||e.get("right"),"middle"===a&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||(s=e.get("top")||e.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),r.x=y.x,r.y=y.y,r.markRedraw();var b={align:a,verticalAlign:s};l.setStyle(b),d.setStyle(b),g=r.getBoundingRect();var x=y.margin,_=e.getItemStyle(["color","opacity"]);_.fill=e.get("backgroundColor");var w=new zn["a"]({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(w)}},t.type="title",t}(io["a"]);function hC(e){e.registerComponentModel(dC),e.registerComponentView(fC)}var pC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return Object(Ye["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.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},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],r=t.axisType,i=this._names=[];"category"===r?(e=[],Object(m["k"])(n,(function(t,n){var r,o=Object(lt["e"])(Object(lt["h"])(t),"");Object(m["A"])(t)?(r=Object(m["d"])(t),r.value=n):r=n,e.push(r),i.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number",a=this._data=new jt([{name:"value",type:o}],this);a.initData(e,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(oo["a"]),gC=pC,vC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.type="timeline.slider",t.defaultOption=Object(Rr["d"])(gC.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,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:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(gC);Object(m["K"])(vC,mE["a"].prototype);var yC=vC,mC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.type="timeline",t}(io["a"]),bC=mC,xC=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o}return Object(Ye["a"])(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(ns),_C=xC,wC=Math.PI,SC=Object(lt["o"])(),kC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var r=this._layout(e,n),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return Object(cl["c"])("nameValue",{noName:!0,value:t})},Object(m["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](r,i,a,e)}),this),this._renderAxisLabel(r,o,a,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,r=e.get(["label","position"]),i=e.get("orient"),o=TC(e,t);n=null==r||"auto"===r?"horizontal"===i?o.y+o.height/2<t.getHeight()/2?"-":"+":o.x+o.width/2<t.getWidth()/2?"+":"-":Object(m["C"])(r)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][r]:r;var a,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:wC/2},f="vertical"===i?o.height:o.width,h=e.getModel("controlStyle"),p=h.get("show",!0),g=p?h.get("itemSize"):0,v=p?h.get("itemGap"):0,y=g+v,b=e.get(["label","rotate"])||0;b=b*wC/180;var x=h.get("position",!0),_=p&&h.get("showPlayBtn",!0),w=p&&h.get("showPrevBtn",!0),S=p&&h.get("showNextBtn",!0),k=0,O=f;"left"===x||"bottom"===x?(_&&(a=[0,0],k+=y),w&&(s=[k,0],k+=y),S&&(l=[O-g,0],O-=y)):(_&&(a=[O-g,0],O-=y),w&&(s=[0,0],k+=y),S&&(l=[O-g,0],O-=y));var T=[k,O];return e.get("inverse")&&T.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:d[i],labelRotation:b,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||c[i],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:T,controlSize:g,controlGap:v}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){var o=La["c"](),a=i.x,s=i.y+i.height;La["i"](o,o,[-a,-s]),La["g"](o,o,-wC/2),La["i"](o,o,[a,s]),i=i.clone(),i.applyTransform(o)}var l=v(i),u=v(n.getBoundingRect()),c=v(r.getBoundingRect()),d=[n.x,n.y],f=[r.x,r.y];f[0]=d[0]=l[0][0];var h=e.labelPosOpt;if(null==h||Object(m["C"])(h)){var p="+"===h?0:1;y(d,u,l,1,p),y(f,c,l,1,1-p)}else{p=h>=0?0:1;y(d,u,l,1,p),f[1]=d[1]+h}function g(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function y(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}n.setPosition(d),r.setPosition(f),n.rotation=r.rotation=e.rotation,g(n),g(r)},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get("axisType"),i=OC(t,r);i.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var a=new _C("value",i,e.axisExtent,r);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new rn["a"];return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var o=new vs["a"]({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(m["m"])({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new vs["a"]({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(m["i"])({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,o=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(m["k"])(a,(function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:Object(m["c"])(i._changeTimeline,i,e.value)},f=CC(s,l,t,d);f.ensureState("emphasis").style=u.getItemStyle(),f.ensureState("progress").style=c.getItemStyle(),Object(un["o"])(f);var h=Object(ut["a"])(f);s.get("tooltip")?(h.dataIndex=e.value,h.dataModel=r):h.dataIndex=h.dataModel=null,i._tickSymbols.push(f)}))},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this,o=n.getLabelModel();if(o.get("show")){var a=r.getData(),s=n.getViewLabels();this._tickLabels=[],Object(m["k"])(s,(function(r){var o=r.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),d=n.dataToCoord(r.tickValue),f=new J["a"]({x:d,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(m["c"])(i._changeTimeline,i,o),silent:!1,style:Object(fn["c"])(l,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});f.ensureState("emphasis").style=Object(fn["c"])(u),f.ensureState("progress").style=Object(fn["c"])(c),t.add(f),Object(un["o"])(f),SC(f).dataIndex=o,i._tickLabels.push(f)}))}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,o=e.rotation,a=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),u=r.getPlayState(),c=r.get("inverse",!0);function d(e,n,u,c){if(e){var d=Object(l["g"])(Object(m["P"])(r.get(["controlStyle",n+"BtnSize"]),i),i),f=[0,-d/2,d,d],h=EC(r,n+"Icon",f,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:c?-o:0,rectHover:!0,style:a,onclick:u});h.ensureState("emphasis").style=s,t.add(h),Object(un["o"])(h)}}d(e.nextBtnPosition,"next",Object(m["c"])(this._changeTimeline,this,c?"-":"+")),d(e.prevBtnPosition,"prev",Object(m["c"])(this._changeTimeline,this,c?"+":"-")),d(e.playPosition,u?"stop":"play",Object(m["c"])(this._handlePlayClick,this,!u),!0)},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=Object(m["c"])(s._handlePointerDrag,s),e.ondragend=Object(m["c"])(s._handlePointerDragend,s),AC(e,s._progressLine,o,n,r,!0)},onUpdate:function(e){AC(e,s._progressLine,o,n,r)}};this._currentPointer=CC(a,a,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=Hn["c"](r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var o=this._findNearestTick(n),a=this.model;(t||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return ln["applyTransform"](e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,o){var a=i.dataToCoord(n),s=Math.abs(a-e);s<r&&(r=s,t=o)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._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})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState("progress",r<e);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",SC(n[r]).dataIndex<=e)},t.type="timeline.slider",t}(bC);function OC(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new No({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new Qo({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new zo}}function TC(e,t){return xi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function EC(e,t,n,r){var i=r.style,o=ln["createIcon"](e.get(["controlStyle",t]),r||{},new Zi["a"](n[0],n[1],n[2],n[3]));return i&&o.setStyle(i),o}function CC(e,t,n,r,i,o){var a=t.get("color");if(i)i.setColor(a),n.add(i),o&&o.onUpdate(i);else{var s=e.get("symbol");i=Object(nn["a"])(s,-1,-1,2,2,a),i.setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),r=Object(m["I"])({rectHover:!0,z2:100},r,!0);var u=Object(nn["c"])(e.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=Object(nn["b"])(e.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var d=e.get("symbolRotate");return r.rotation=(d||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function AC(e,t,n,r,i,o){if(!e.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(o||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var MC=kC;function LC(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var r=t.getComponent("timeline");return r&&null!=e.currentIndex&&(r.setCurrentIndex(e.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),Object(m["i"])({currentIndex:r.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}function IC(e){var t=e&&e.timeline;m["t"](t)||(t=t?[t]:[]),m["k"](t,(function(e){e&&DC(e)}))}function DC(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),jC(e),PC(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});PC(r,"position")||(r.position=e.controlPosition),"none"!==r.position||PC(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}m["k"](e.data||[],(function(e){m["A"](e)&&!m["t"](e)&&(!PC(e,"value")&&PC(e,"name")&&(e.value=e.name),jC(e))}))}function jC(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};m["k"](r,(function(e,t){o[t]||PC(i,t)||(i[t]=e)})),n.label&&!PC(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function PC(e,t){return e.hasOwnProperty(t)}function RC(e){e.registerComponentModel(yC),e.registerComponentView(MC),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),LC(e),e.registerPreprocessor(IC)}function NC(e,t){if(!e)return!1;for(var n=Object(m["t"])(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function BC(e){Object(lt["f"])(e,"label",["show"])}var FC=Object(lt["o"])(),zC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return Object(Ye["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Uw["a"].node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),o=FC(e)[i];n&&n.data?(o?o._mergeOption(n,t,!0):(r&&BC(n),m["k"](n.data,(function(e){e instanceof Array?(BC(e[0]),BC(e[1])):BC(e)})),o=this.createMarkerModelFromSeries(n,this,t),m["m"](o,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),o.__hostSeries=e),FC(e)[i]=o):FC(e)[i]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),o=r.getName(e);return Object(cl["c"])("section",{header:this.name,blocks:[Object(cl["c"])("nameValue",{name:o,value:i,noName:!o,noValue:null==i})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return FC(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(oo["a"]);m["K"](zC,mE["a"].prototype);var UC=zC,HC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(UC),VC=HC,GC=n("b7d9");function qC(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function WC(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function YC(e,t,n,r,i,o){var a=[],s=Yt(t,r),l=s?t.getCalculationInfo("stackResultDimension"):r,u=tA(t,l,e),c=t.indicesOfNearest(l,u)[0];a[i]=t.get(n,c),a[o]=t.get(l,c);var d=t.get(r,c),f=Hn["g"](t.get(r,c));return f=Math.min(f,20),f>=0&&(a[o]=+a[o].toFixed(f)),[a,d]}var KC={min:Object(m["h"])(YC,"min"),max:Object(m["h"])(YC,"max"),average:Object(m["h"])(YC,"average"),median:Object(m["h"])(YC,"median")};function XC(e,t){var n=e.getData(),r=e.coordinateSystem;if(t&&!WC(t)&&!Object(m["t"])(t.coord)&&r){var i=r.dimensions,o=ZC(t,n,r,e);if(t=Object(m["d"])(t),t.type&&KC[t.type]&&o.baseAxis&&o.valueAxis){var a=Object(m["r"])(i,o.baseAxis.dim),s=Object(m["r"])(i,o.valueAxis.dim),l=KC[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else{for(var u=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],c=0;c<2;c++)KC[u[c]]&&(u[c]=tA(n,n.mapDimension(i[c]),u[c]));t.coord=u}}return t}function ZC(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis($C(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function $C(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function JC(e,t){return!(e&&e.containData&&t.coord&&!qC(t))||e.containData(t.coord)}function QC(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!qC(t)&&!qC(n))||e.containZone(t.coord,n.coord)}function eA(e,t){return e?function(e,n,r,i){var o=i<2?e.coord&&e.coord[i]:e.value;return Object(GC["d"])(o,t[i])}:function(e,n,r,i){return Object(GC["d"])(e.value,t[i])}}function tA(e,t,n){if("average"===n){var r=0,i=0;return e.each(t,(function(e,t){isNaN(e)||(r+=e,i++)})),r/i}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var nA=Object(lt["o"])(),rA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.init=function(){this.markerGroupMap=Object(m["f"])()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each((function(e){nA(e).keep=!1})),t.eachSeries((function(e){var i=UC.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)})),i.each((function(e){!nA(e).keep&&r.group.remove(e.group)}))},t.prototype.markKeep=function(e){nA(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(m["k"])(e,(function(e){var r=UC.getMarkerModelFromSeries(e,n.type);if(r){var i=r.getData();i.eachItemGraphicEl((function(e){e&&(t?Object(un["q"])(e):Object(un["B"])(e))}))}}))},t.type="marker",t}(io["a"]),iA=rA;function oA(e,t,n){var r=t.coordinateSystem;e.each((function(i){var o,a=e.getItemModel(i),s=Hn["o"](a.get("x"),n.getWidth()),l=Hn["o"](a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var u=e.get(r.dimensions[0],i),c=e.get(r.dimensions[1],i);o=r.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)}))}var aA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=UC.getMarkerModelFromSeries(e,"markPoint");t&&(oA(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new xn),u=sA(i,e,t);t.setData(u),oA(t.getData(),e,r),u.each((function(e){var n=u.getItemModel(e),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(m["w"])(r)||Object(m["w"])(i)||Object(m["w"])(o)||Object(m["w"])(s)){var c=t.getRawValue(e),d=t.getDataParams(e);Object(m["w"])(r)&&(r=r(c,d)),Object(m["w"])(i)&&(i=i(c,d)),Object(m["w"])(o)&&(o=o(c,d)),Object(m["w"])(s)&&(s=s(c,d))}var f=n.getModel("itemStyle").getItemStyle(),h=Object(DE["b"])(a,"color");f.fill||(f.fill=h),u.setItemVisual(e,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:f})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(e){e.traverse((function(e){Object(ut["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(iA);function sA(e,t,n){var r;r=e?Object(m["H"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(m["m"])(Object(m["m"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new jt(r,n),o=Object(m["H"])(n.get("data"),Object(m["h"])(XC,t));e&&(o=Object(m["n"])(o,Object(m["h"])(JC,e)));var a=eA(!!e,r);return i.initData(o,null,a),i}var lA=aA;function uA(e){e.registerComponentModel(VC),e.registerComponentView(lA),e.registerPreprocessor((function(e){NC(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var cA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(UC),dA=cA,fA=Object(lt["o"])(),hA=function(e,t,n,r){var i,o=e.getData();if(Object(m["t"])(r))i=r;else{var a=r.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis){var s=void 0,l=void 0;if(null!=r.yAxis||null!=r.xAxis)s=t.getAxis(null!=r.yAxis?"y":"x"),l=Object(m["O"])(r.yAxis,r.xAxis);else{var u=ZC(r,o,t,e);s=u.valueAxis;var c=Kt(o,u.valueDataDim);l=tA(o,c,a)}var d="x"===s.dim?0:1,f=1-d,h=Object(m["d"])(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var g=n.get("precision");g>=0&&Object(m["z"])(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:a,valueIndex:r.valueIndex,value:l}]}else i=[]}var v=[XC(e,i[0]),XC(e,i[1]),Object(m["m"])({},i[2])];return v[2].type=v[2].type||null,Object(m["I"])(v[2],v[0]),Object(m["I"])(v[2],v[1]),v};function pA(e){return!isNaN(e)&&!isFinite(e)}function gA(e,t,n,r){var i=1-e,o=r.dimensions[e];return pA(t[i])&&pA(n[i])&&t[e]===n[e]&&r.getAxis(o).containData(t[e])}function vA(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(gA(1,n,r,e)||gA(0,n,r,e)))return!0}return JC(e,t[0])&&JC(e,t[1])}function yA(e,t,n,r,i){var o,a=r.coordinateSystem,s=e.getItemModel(t),l=Hn["o"](s.get("x"),i.getWidth()),u=Hn["o"](s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,d=e.get(c[0],t),f=e.get(c[1],t);o=a.dataToPoint([d,f])}if(Wn(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y");c=a.dimensions;pA(e.get(c[0],t))?o[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):pA(e.get(c[1],t))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];e.setItemLayout(t,o)}var mA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=UC.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),i=fA(t).from,o=fA(t).to;i.each((function(t){yA(i,t,!0,e,n),yA(o,t,!1,e,n)})),r.each((function(e){r.setItemLayout(e,[i.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new kp);this.group.add(l.group);var u=bA(i,e,t),c=u.from,d=u.to,f=u.line;fA(t).from=c,fA(t).to=d,t.setData(f);var h=t.get("symbol"),p=t.get("symbolSize"),g=t.get("symbolRotate"),v=t.get("symbolOffset");function y(t,n,i){var o=t.getItemModel(n);yA(t,n,i,e,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Object(DE["b"])(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(m["P"])(o.get("symbolOffset",!0),v[i?0:1]),symbolRotate:Object(m["P"])(o.get("symbolRotate",!0),g[i?0:1]),symbolSize:Object(m["P"])(o.get("symbolSize"),p[i?0:1]),symbol:Object(m["P"])(o.get("symbol",!0),h[i?0:1]),style:s})}Object(m["t"])(h)||(h=[h,h]),Object(m["t"])(p)||(p=[p,p]),Object(m["t"])(g)||(g=[g,g]),Object(m["t"])(v)||(v=[v,v]),u.from.each((function(e){y(c,e,!0),y(d,e,!1)})),f.each((function(e){var t=f.getItemModel(e).getModel("lineStyle").getLineStyle();f.setItemLayout(e,[c.getItemLayout(e),d.getItemLayout(e)]),null==t.stroke&&(t.stroke=c.getItemVisual(e,"style").fill),f.setItemVisual(e,{fromSymbolKeepAspect:c.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(e,"symbolOffset"),fromSymbolRotate:c.getItemVisual(e,"symbolRotate"),fromSymbolSize:c.getItemVisual(e,"symbolSize"),fromSymbol:c.getItemVisual(e,"symbol"),toSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(e,"symbolOffset"),toSymbolRotate:d.getItemVisual(e,"symbolRotate"),toSymbolSize:d.getItemVisual(e,"symbolSize"),toSymbol:d.getItemVisual(e,"symbol"),style:t})})),l.updateData(f),u.line.eachItemGraphicEl((function(e){Object(ut["a"])(e).dataModel=t,e.traverse((function(e){Object(ut["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(iA);function bA(e,t,n){var r;r=e?Object(m["H"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(m["m"])(Object(m["m"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new jt(r,n),o=new jt(r,n),a=new jt([],n),s=Object(m["H"])(n.get("data"),Object(m["h"])(hA,t,e,n));e&&(s=Object(m["n"])(s,Object(m["h"])(vA,e)));var l=eA(!!e,r);return i.initData(Object(m["H"])(s,(function(e){return e[0]})),null,l),o.initData(Object(m["H"])(s,(function(e){return e[1]})),null,l),a.initData(Object(m["H"])(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:i,to:o,line:a}}var xA=mA;function _A(e){e.registerComponentModel(dA),e.registerComponentView(xA),e.registerPreprocessor((function(e){NC(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var wA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(UC),SA=wA,kA=Object(lt["o"])(),OA=function(e,t,n,r){var i=XC(e,r[0]),o=XC(e,r[1]),a=i.coord,s=o.coord;a[0]=Object(m["O"])(a[0],-1/0),a[1]=Object(m["O"])(a[1],-1/0),s[0]=Object(m["O"])(s[0],1/0),s[1]=Object(m["O"])(s[1],1/0);var l=Object(m["J"])([{},i,o]);return l.coord=[i.coord,o.coord],l.x0=i.x,l.y0=i.y,l.x1=o.x,l.y1=o.y,l};function TA(e){return!isNaN(e)&&!isFinite(e)}function EA(e,t,n,r){var i=1-e;return TA(t[i])&&TA(n[i])}function CA(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},o={coord:r,x:t.x1,y:t.y1};return Wn(e,"cartesian2d")?!(!n||!r||!EA(1,n,r,e)&&!EA(0,n,r,e))||QC(e,i,o):JC(e,i)||JC(e,o)}function AA(e,t,n,r,i){var o,a=r.coordinateSystem,s=e.getItemModel(t),l=Hn["o"](s.get(n[0]),i.getWidth()),u=Hn["o"](s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(e.getValues(n,t));else{var c=e.get(n[0],t),d=e.get(n[1],t),f=[c,d];a.clampData&&a.clampData(f,f),o=a.dataToPoint(f,!0)}if(Wn(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y");c=e.get(n[0],t),d=e.get(n[1],t);TA(c)?o[0]=h.toGlobalCoord(h.getExtent()["x0"===n[0]?0:1]):TA(d)&&(o[1]=p.toGlobalCoord(p.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var MA=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],LA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=UC.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each((function(t){var i=Object(m["H"])(MA,(function(i){return AA(r,t,i,e,n)}));r.setItemLayout(t,i);var o=r.getItemGraphicEl(t);o.setShape("points",i)}))}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new rn["a"]});this.group.add(l.group),this.markKeep(l);var u=IA(i,e,t);t.setData(u),u.each((function(t){var n=Object(m["H"])(MA,(function(n){return AA(u,t,n,e,r)})),o=i.getAxis("x").scale,s=i.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),d=[o.parse(u.get("x0",t)),o.parse(u.get("x1",t))],f=[s.parse(u.get("y0",t)),s.parse(u.get("y1",t))];Hn["c"](d),Hn["c"](f);var h=!(l[0]>d[1]||l[1]<d[0]||c[0]>f[1]||c[1]<f[0]),p=!h;u.setItemLayout(t,{points:n,allClipped:p});var g=u.getItemModel(t).getModel("itemStyle").getItemStyle(),v=Object(DE["b"])(a,"color");g.fill||(g.fill=v,Object(m["C"])(g.fill)&&(g.fill=Kn["e"](g.fill,.4))),g.stroke||(g.stroke=v),u.setItemVisual(t,"style",g)})),u.diff(kA(l).data).add((function(e){var t=u.getItemLayout(e);if(!t.allClipped){var n=new sl["a"]({shape:{points:t.points}});u.setItemGraphicEl(e,n),l.group.add(n)}})).update((function(e,n){var r=kA(l).data.getItemGraphicEl(n),i=u.getItemLayout(e);i.allClipped?r&&l.group.remove(r):(r?sn["h"](r,{shape:{points:i.points}},t,e):r=new sl["a"]({shape:{points:i.points}}),u.setItemGraphicEl(e,r),l.group.add(r))})).remove((function(e){var t=kA(l).data.getItemGraphicEl(e);l.group.remove(t)})).execute(),u.eachItemGraphicEl((function(e,n){var r=u.getItemModel(n),i=u.getItemVisual(n,"style");e.useStyle(u.getItemVisual(n,"style")),Object(fn["g"])(e,Object(fn["e"])(r),{labelFetcher:t,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:Object(m["C"])(i.fill)?Kn["e"](i.fill,1):"#000"}),Object(un["I"])(e,r),Object(un["J"])(e,null,null,r.get(["emphasis","disabled"])),Object(ut["a"])(e).dataModel=t})),kA(l).data=u,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(iA);function IA(e,t,n){var r,i,o=["x0","y0","x1","y1"];if(e){var a=Object(m["H"])(e&&e.dimensions,(function(e){var n=t.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return Object(m["m"])(Object(m["m"])({},r),{name:e,ordinalMeta:null})}));i=Object(m["H"])(o,(function(e,t){return{name:e,type:a[t%2].type}})),r=new jt(i,n)}else i=[{name:"value",type:"float"}],r=new jt(i,n);var s=Object(m["H"])(n.get("data"),Object(m["h"])(OA,t,e,n));e&&(s=Object(m["n"])(s,Object(m["h"])(CA,e)));var l=e?function(e,t,n,r){var o=e.coord[Math.floor(r/2)][r%2];return Object(GC["d"])(o,i[r])}:function(e,t,n,r){return Object(GC["d"])(e.value,i[r])};return r.initData(s,null,l),r.hasItemOption=!0,r}var DA=LA;function jA(e){e.registerComponentModel(SA),e.registerComponentView(DA),e.registerPreprocessor((function(e){NC(e.series,"markArea")&&(e.markArea=e.markArea||{})}))}var PA=function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0},RA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(Ye["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),m["t"](t)&&m["k"](t,(function(e,r){m["C"](e)&&(e={type:e}),t[r]=m["I"](e,PA(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider,s=a.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(s)),s.length?t=t.concat(s):i=!0}else i=!0;i&&Object(lt["n"])(r)&&t.push(r.name)})),this._availableNames=n;var r=this.get("data")||t,i=m["H"](r,(function(e){return(m["C"](e)||m["z"](e))&&(e={name:e}),new Ke["a"](e,this,this.ecModel)}),this);this._data=i},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected,n=this.get("selectedMode");if("single"===n){var r=this._data;m["k"](r,(function(e){t[e.get("name")]=!1}))}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;m["k"](e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;m["k"](e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&m["r"](this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(oo["a"]),NA=RA,BA=m["h"],FA=m["k"],zA=rn["a"],UA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return Object(Ye["a"])(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new zA),this.group.add(this._selectorGroup=new zA),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),o=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),d=xi["g"](l,u,c),f=this.layoutInner(e,i,d,r,a,s),h=xi["g"](m["i"]({width:f.width,height:f.height},l),u,c);this.group.x=h.x-f.x,this.group.y=h.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=UO(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,o,a){var s=this.getContentGroup(),l=m["f"](),u=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&c.push(e.id)})),FA(t.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new zA;return d.newline=!0,void s.add(d)}var f=n.getSeriesByName(a)[0];if(!l.get(a)){if(f){var h=f.getData(),p=h.getVisual("legendLineStyle")||{},g=h.getVisual("legendIcon"),v=h.getVisual("style"),y=this._createItem(f,a,o,i,t,e,p,v,g,u,r);y.on("click",BA(GA,a,null,r,c)).on("mouseover",BA(WA,f.name,null,r,c)).on("mouseout",BA(YA,f.name,null,r,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var d=s.indexOfName(a),f=s.getItemVisual(d,"style"),h=s.getItemVisual(d,"legendIcon"),p=Object(Kn["g"])(f.fill);p&&0===p[3]&&(p[3]=.2,f=m["m"](m["m"]({},f),{fill:Object(Kn["h"])(p,"rgba")}));var g=this._createItem(n,a,o,i,t,e,{},f,h,u,r);g.on("click",BA(GA,null,a,r,c)).on("mouseover",BA(WA,null,a,r,c)).on("mouseout",BA(YA,null,a,r,c)),l.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,t,r,o,a)},t.prototype._createSelector=function(e,t,n,r,i){var o=this.getSelectorGroup();FA(e,(function(e){var r=e.type,i=new J["a"]({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);Object(fn["g"])(i,{normal:a,emphasis:s},{defaultText:e.title}),Object(un["o"])(i)}))},t.prototype._createItem=function(e,t,n,r,i,o,a,s,l,u,c){var d=e.visualDrawType,f=i.get("itemWidth"),h=i.get("itemHeight"),p=i.isSelected(t),g=r.get("symbolRotate"),v=r.get("symbolKeepAspect"),y=r.get("icon");l=y||l||"roundRect";var b=HA(l,r,a,s,d,p,c),x=new zA,_=r.getModel("textStyle");if(!m["w"](e.getLegendIcon)||y&&"inherit"!==y){var w="inherit"===y&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;x.add(VA({itemWidth:f,itemHeight:h,icon:l,iconRotate:w,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:v}))}else x.add(e.getLegendIcon({itemWidth:f,itemHeight:h,icon:l,iconRotate:g,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:v}));var S="left"===o?f+5:-5,k=o,O=i.get("formatter"),T=t;m["C"](O)&&O?T=O.replace("{name}",null!=t?t:""):m["w"](O)&&(T=O(t));var E=r.get("inactiveColor");x.add(new J["a"]({style:Object(fn["c"])(_,{text:T,x:S,y:h/2,fill:p?_.getTextColor():E,align:k,verticalAlign:"middle"})}));var C=new zn["a"]({shape:x.getBoundingRect(),invisible:!0}),A=r.getModel("tooltip");return A.get("show")&&ln["setTooltipConfig"]({el:C,componentModel:i,itemName:t,itemTooltipOption:A.option}),x.add(C),x.eachChild((function(e){e.silent=!0})),C.silent=!u,this.getContentGroup().add(x),Object(un["o"])(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();xi["b"](e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){xi["b"]("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],f=e.get("selectorButtonGap",!0),h=e.getOrient().index,p=0===h?"width":"height",g=0===h?"height":"width",v=0===h?"y":"x";"end"===o?d[h]+=l[p]+f:u[h]+=c[p]+f,d[1-h]+=l[g]/2-c[g]/2,s.x=d[0],s.y=d[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[p]=l[p]+f+c[p],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+d[1-h]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(io["a"]);function HA(e,t,n,r,i,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),FA(e,(function(n,r){"inherit"===e[r]&&(e[r]=t[r])}))}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");u.decal=d&&"inherit"!==d?Object(ic["a"])(d,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var f=t.getModel("lineStyle"),h=f.getLineStyle();if(s(h,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===h.stroke&&(h.stroke=r.fill),!o){var p=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===p?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function VA(e){var t=e.icon||"roundRect",n=Object(nn["a"])(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function GA(e,t,n,r){YA(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),WA(e,t,n,r)}function qA(e){var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;while(r<i&&!(t=n[r].states.emphasis))r++;return t&&t.hoverLayer}function WA(e,t,n,r){qA(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function YA(e,t,n,r){qA(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}var KA=UA;function XA(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function ZA(e,t,n){var r,i={},o="toggleSelected"===e;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name));var a=n.getData();Object(m["k"])(a,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);i.hasOwnProperty(t)?i[t]=i[t]&&r:i[t]=r}}))})),"allSelect"===e||"inverseSelect"===e?{selected:i}:{name:t.name,selected:i}}function $A(e){e.registerAction("legendToggleSelect","legendselectchanged",Object(m["h"])(ZA,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Object(m["h"])(ZA,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Object(m["h"])(ZA,"inverseSelect")),e.registerAction("legendSelect","legendselected",Object(m["h"])(ZA,"select")),e.registerAction("legendUnSelect","legendunselected",Object(m["h"])(ZA,"unSelect"))}function JA(e){e.registerComponentModel(NA),e.registerComponentView(KA),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,XA),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),$A(e)}var QA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=Object(xi["f"])(t);e.prototype.init.call(this,t,n,r),eM(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),eM(this,this.option,t)},t.type="legend.scroll",t.defaultOption=Object(Rr["d"])(NA.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}),t}(NA);function eM(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,Object(xi["h"])(t,n,{type:"box",ignoreSize:!!i})}var tM=QA,nM=rn["a"],rM=["width","height"],iM=["x","y"],oM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return Object(Ye["a"])(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new nM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new nM)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,o,a,s){var l=this;e.prototype.renderInner.call(this,t,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),d=m["t"](c)?c:[c,c];h("pagePrev",0);var f=n.getModel("pageTextStyle");function h(e,t){var r=e+"DataIndex",o=ln["createIcon"](n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:m["c"](l._pageGo,l,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});o.name=e,u.add(o)}u.add(new J["a"]({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getSelectorGroup(),s=e.getOrient().index,l=rM[s],u=iM[s],c=rM[1-s],d=iM[1-s];i&&xi["b"]("horizontal",a,e.get("selectorItemGap",!0));var f=e.get("selectorButtonGap",!0),h=a.getBoundingRect(),p=[-h.x,-h.y],g=m["d"](n);i&&(g[l]=n[l]-h[l]-f);var v=this._layoutContentAndController(e,r,g,s,l,c,d,u);if(i){if("end"===o)p[s]+=v[l]+f;else{var y=h[l]+f;p[s]-=y,v[u]-=y}v[l]+=h[l]+f,p[1-s]+=v[d]+v[c]/2-h[c]/2,v[c]=Math.max(v[c],h[c]),v[d]=Math.min(v[d],h[d]+p[1-s]),a.x=p[0],a.y=p[1],a.markRedraw()}return v},t.prototype._layoutContentAndController=function(e,t,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;xi["b"](e.get("orient"),l,e.get("itemGap"),r?n.width:null,r?null:n.height),xi["b"]("horizontal",c,e.get("pageButtonItemGap",!0));var d=l.getBoundingRect(),f=c.getBoundingRect(),h=this._showController=d[i]>n[i],p=[-d.x,-d.y];t||(p[r]=l[s]);var g=[0,0],v=[-f.x,-f.y],y=m["P"](e.get("pageButtonGap",!0),e.get("itemGap",!0));if(h){var b=e.get("pageButtonPosition",!0);"end"===b?v[r]+=n[i]-f[i]:g[r]+=f[i]+y}v[1-r]+=d[o]/2-f[o]/2,l.setPosition(p),u.setPosition(g),c.setPosition(v);var x={x:0,y:0};if(x[i]=h?n[i]:d[i],x[o]=Math.max(d[o],f[o]),x[a]=Math.min(0,f[a]+v[1-r]),u.__rectSize=n[i],h){var _={x:0,y:0};_[i]=Math.max(n[i]-f[i]-y,0),_[o]=x[o],u.setClipPath(new zn["a"]({shape:_})),u.__rectSize=_[i]}else c.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(e);return null!=w.pageIndex&&sn["h"](l,{x:w.contentPosition[0],y:w.contentPosition[1]},h?e:null),this._updatePageInfoView(e,w),x},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;m["k"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=t[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),i=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;r&&i&&r.setStyle("text",m["C"](i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,o=rM[i],a=iM[i],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,d=c?1:0,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return f;var h=m(u);f.contentPosition[i]=-h.s;for(var p=s+1,g=h,v=h,y=null;p<=c;++p)y=m(l[p]),(!y&&v.e>g.s+r||y&&!b(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=g.i),++f.pageCount)),v=y;for(p=s-1,g=h,v=h,y=null;p>=-1;--p)y=m(l[p]),y&&b(v,y.s)||!(g.i<v.i)||(v=g,null==f.pagePrevDataIndex&&(f.pagePrevDataIndex=g.i),++f.pageCount,++f.pageIndex),g=y;return f;function m(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function b(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===e&&(t=i)})),null!=t?t:n},t.type="legend.scroll",t}(KA),aM=oM;function sM(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}function lM(e){Object(r["a"])(JA),e.registerComponentModel(tM),e.registerComponentView(aM),sM(e)}function uM(e){Object(r["a"])(JA),Object(r["a"])(lM)}var cM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.type="dataZoom.inside",t.defaultOption=Object(Rr["d"])(vO.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(vO),dM=cM,fM=Object(lt["o"])();function hM(e,t,n){fM(e).coordSysRecordMap.each((function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)}))}function pM(e,t){for(var n=fM(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||gM(n,a))}}}function gM(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function vM(e,t){var n={model:t,containsPoint:Object(m["h"])(mM,t),dispatchAction:Object(m["h"])(yM,e),dataZoomInfoMap:null,controller:null},r=n.controller=new zl(e.getZr());return Object(m["k"])(["pan","zoom","scrollMove"],(function(e){r.on(e,(function(t){var r=[];n.dataZoomInfoMap.each((function(i){if(t.isAvailableBehavior(i.model.option)){var o=(i.getRange||{})[e],a=o&&o(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get("disabled",!0)&&a&&r.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}})),r.length&&n.dispatchAction(r)}))})),n}function yM(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function mM(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function bM(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each((function(e){var o=e.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");r[n+a]>r[n+t]&&(t=a),i=i&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function xM(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=fM(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=Object(m["f"])());r.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=fO(e);Object(m["k"])(n.infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,vM(t,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(m["f"])());a.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),r.each((function(e){var t,n=e.controller,i=e.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(t=i.get(o))}if(t){var a=bM(i);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),Fr["b"](e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else gM(r,e)}))}))}var _M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return Object(Ye["a"])(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),hM(r,t,{pan:Object(m["c"])(wM.pan,this),zoom:Object(m["c"])(wM.zoom,this),scrollMove:Object(m["c"])(wM.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){pM(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(xO),wM={zoom:function(e,t,n,r){var i=this.range,o=i.slice(),a=e.axisModels[0];if(a){var s=kM[t](null,[r.originX,r.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Vg(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:SM((function(e,t,n,r,i,o){var a=kM[r]([o.oldX,o.oldY],[o.newX,o.newY],t,i,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:SM((function(e,t,n,r,i,o){var a=kM[r]([0,0],[o.scrollDelta,o.scrollDelta],t,i,n);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function SM(e){return function(t,n,r,i){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,r,i);return Vg(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var kM={grid:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},OM=_M;function TM(e){IO(e),e.registerComponentModel(dM),e.registerComponentView(OM),xM(e)}var EM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Object(Rr["d"])(vO.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(vO),CM=EM,AM=zn["a"],MM=7,LM=1,IM=30,DM=7,jM="horizontal",PM="vertical",RM=5,NM=["line","bar","candlestick","scatter"],BM={easing:"cubicOut",duration:100,delay:0},FM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return Object(Ye["a"])(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(m["c"])(this._onBrush,this),this._onBrushEnd=Object(m["c"])(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),Fr["b"](this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Fr["a"](this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new rn["a"];this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),r=n?DM:0,i=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},a=this._orient===jM?{right:o.width-i.x-i.width,top:o.height-IM-MM-r,width:i.width,height:IM}:{right:MM,top:i.y,width:IM,height:i.height},s=xi["f"](e.option);Object(m["k"])(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=a[e])}));var l=xi["g"](s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===PM&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==jM||i?n===jM&&i?{scaleY:a?1:-1,scaleX:-1}:n!==PM||i?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get("brushSelect");n.add(new AM({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new AM({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(m["c"])(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),o=r.getShadowDim?r.getShadowDim():e.otherDim;if(null!=o){var a=this._shadowPolygonPts,s=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(o),u=.3*(l[1]-l[0]);l=[l[0]-u,l[1]+u];var c,d=[0,t[1]],f=[0,t[0]],h=[[t[0],0],[0,0]],p=[],g=f[1]/(i.count()-1),v=0,y=Math.round(i.count()/t[0]);i.each([o],(function(e,t){if(y>0&&t%y)v+=g;else{var n=null==e||isNaN(e)||""===e,r=n?0:Object(Hn["k"])(e,l,d,!0);n&&!c&&t?(h.push([h[h.length-1][0],0]),p.push([p[p.length-1][0],0])):!n&&c&&(h.push([v,0]),p.push([v,0])),h.push([v,r]),p.push([v,r]),v+=g,c=n}})),a=this._shadowPolygonPts=h,s=this._shadowPolylinePts=p}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];for(var m=this.dataZoomModel,b=0;b<3;b++){var x=_(1===b);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}}function _(e){var t=m.getModel(e?"selectedDataBackground":"dataBackground"),n=new rn["a"],r=new sl["a"]({shape:{points:a},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Ei["a"]({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis((function(i,o){var a=e.getAxisProxy(i,o).getTargetSeriesModels();Object(m["k"])(a,(function(e){if(!n&&!(!0!==t&&Object(m["r"])(NM,e.get("type"))<0)){var a,s=r.getComponent(cO(i),o).axis,l=zM(i),u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:i,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=t.filler=new AM({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new AM({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:LM,fill:"rgba(0,0,0,0)"}})),Object(m["k"])([0,1],(function(t){var o=a.get("handleIcon");!nn["d"][o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Object(nn["a"])(o,-1,0,2,2,null,!0);s.attr({cursor:UM(this._orient),draggable:!0,drift:Object(m["c"])(this._onDragMove,this,t),ondragend:Object(m["c"])(this._onDragEnd,this),onmouseover:Object(m["c"])(this._showDataInfo,this,!0),onmouseout:Object(m["c"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Object(Hn["o"])(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(un["o"])(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[t]=s);var d=a.getModel("textStyle");e.add(r[t]=new J["a"]({silent:!0,invisible:!0,style:Object(fn["c"])(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var d=c;if(u){var f=Object(Hn["o"])(a.get("moveHandleSize"),o[1]),h=t.moveHandle=new zn["a"]({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:f}}),p=.8*f,g=t.moveHandleIcon=Object(nn["a"])(a.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+f/2-.5,h.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(f,10));d=t.moveZone=new zn["a"]({invisible:!0,shape:{y:o[1]-v,height:f+v}}),d.on("mouseover",(function(){s.enterEmphasis(h)})).on("mouseout",(function(){s.leaveEmphasis(h)})),i.add(h),i.add(g),i.add(d)}d.attr({draggable:!0,cursor:UM(this._orient),drift:Object(m["c"])(this._onDragMove,this,"all"),ondragstart:Object(m["c"])(this._showDataInfo,this,!0),ondragend:Object(m["c"])(this._onDragEnd,this),onmouseover:Object(m["c"])(this._showDataInfo,this,!0),onmouseout:Object(m["c"])(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Object(Hn["k"])(e[0],[0,100],t,!0),Object(Hn["k"])(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];Vg(t,r,i,n.get("zoomLock")?"all":e,null!=o.minSpan?Object(Hn["k"])(o.minSpan,a,i,!0):null,null!=o.maxSpan?Object(Hn["k"])(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=Object(Hn["c"])([Object(Hn["k"])(r[0],i,a,!0),Object(Hn["k"])(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=Object(Hn["c"])(n.slice()),i=this._size;Object(m["k"])([0,1],(function(e){var r=t.handles[e],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:i[1]/2-o/2})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new zn["a"],u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,o=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=Object(Hn["c"])(this._handleEnds.slice());function d(e){var t=ln["getTransform"](n.handles[e].parent,this.group),a=ln["transformDirection"](0===e?"right":"left",t),s=this._handleWidth/2+RM,l=ln["applyTransform"]([c[e]+(0===e?-s:s),this._size[1]/2],t);r[e].setStyle({x:l[0],y:l[1],verticalAlign:i===jM?"middle":a,align:i===jM?a:"center",text:o[e]})}d.call(this,0),d.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return Object(m["w"])(r)?r(e,o):Object(m["C"])(r)?r.replace("{value}",o):o},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,Al["g"](r.event);var i=this._displayables.sliderGroup.getLocalTransform(),o=ln["applyTransform"]([t,n],i,!0),a=this._updateInterval(e,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Ci["a"](t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),o=[0,100];this._range=Object(Hn["c"])([Object(Hn["k"])(n.x,i,o,!0),Object(Hn["k"])(n.x+n.width,i,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Al["g"](e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new AM({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?BM:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=fO(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return e},t.type="dataZoom.slider",t}(xO);function zM(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function UM(e){return"vertical"===e?"ns-resize":"ew-resize"}var HM=FM;function VM(e){e.registerComponentModel(CM),e.registerComponentView(HM),IO(e)}function GM(e){Object(r["a"])(TM),Object(r["a"])(VM)}var qM={get:function(e,t,n){var r=m["d"]((WM[e]||{})[t]);return n&&m["t"](r)?r[r.length-1]:r}},WM={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]}},YM=qM,KM=$f.mapVisual,XM=$f.eachVisual,ZM=m["t"],$M=m["k"],JM=Hn["c"],QM=Hn["k"],eL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return Object(Ye["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&NE(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=m["c"](e,this),this.controllerVisuals=RE(this.option.controller,t,e),this.targetVisuals=RE(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=lt["r"](e),t},t.prototype.eachTargetSeries=function(e,t){m["k"](this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],m["t"](e)&&(e=e.slice(),r=!0);var l=t?e:r?[u(e[0]),u(e[1])]:u(e);return m["C"](s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):m["w"](s)?r?s(e[0],e[1]):s(e):r?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=JM([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=e.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),i=t.controller||(t.controller={});m["I"](r,n),m["I"](i,n);var o=this.isCategory();function a(n){ZM(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},$M(r,(function(e,t){if($f.isValidType(t)){var n=YM.get(t,"inactive",o);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol(),a=i||"roundRect";$M(this.stateList,(function(i){var s=this.itemSize,l=e[i];l||(l=e[i]={color:o?r:[r]}),null==l.symbol&&(l.symbol=t&&m["d"](t)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&m["d"](n)||(o?s[0]:[s[0],s[0]])),l.symbol=KM(l.symbol,(function(e){return"none"===e?a:e}));var u=l.symbolSize;if(null!=u){var c=-1/0;XM(u,(function(e){e>c&&(c=e)})),l.symbolSize=KM(u,(function(e){return QM(e,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,r),a.call(this,i),s.call(this,r,"inRange","outOfRange"),l.call(this,i)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(oo["a"]),tL=eL,nL=[20,140],rL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=nL[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=nL[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):m["t"](t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),m["k"](this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Hn["c"]((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},t.prototype.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"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},t.prototype.getVisualMeta=function(e){var t=iL(this,"outOfRange",this.getExtent()),n=iL(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;a<l&&(!n.length||t[a]<=n[0]);a++)t[a]<n[o]&&i(t[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<t[a])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(t[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Object(Rr["d"])(tL.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(tL);function iL(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,o=n[0],a=[],s=0;s<=r&&o<n[1];s++)a.push(o),o+=i;return a.push(n[1]),a}var oL=rL,aL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return Object(Ye["a"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,r):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Yn["h"](t.get("padding")||0),r=e.getBoundingRect();e.add(new zn["a"]({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){n=n||{};var r=n.forceState,i=this.visualMapModel,o={};if("color"===t){var a=i.get("contentColor");o.color=a}function s(e){return o[e]}function l(e,t){o[e]=t}var u=i.controllerVisuals[r||i.getValueState(e)],c=$f.prepareVisualTypes(u);return m["k"](c,(function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),$f.dependsOn(r,t)&&i&&i.applyVisual(e,s,l)})),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;xi["i"](e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type="visualMap",t}(io["a"]),sL=aL,lL=[["left","right","width"],["top","bottom","height"]];function uL(e,t,n){var r=e.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:t.getWidth(),height:t.getHeight()},a="horizontal"===r.orient?1:0,s=lL[a],l=[0,null,10],u={},c=0;c<3;c++)u[lL[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var d=[["x","width",3],["y","height",0]][a],f=Object(xi["g"])(u,o,r.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+.5*f[d[1]]<.5*o[d[1]]?0:1]}function cL(e,t){return m["k"](e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var dL=Hn["k"],fL=m["k"],hL=Math.min,pL=Math.max,gL=12,vL=6,yL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return Object(Ye["a"])(t,e),t.prototype.doRender=function(e,t,n,r){this._api=n,r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},t.prototype._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)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new J["a"]({style:Object(fn["c"])(d,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,o=this._useHandle,a=uL(t,this.api,r),s=n.mainGroup=this._createBarGroup(a),l=new rn["a"];s.add(l),l.add(n.outOfRange=mL()),l.add(n.inRange=mL(null,o?_L(this._orient):null,m["c"](this._dragHandle,this,"all",!1),m["c"](this._dragHandle,this,"all",!0))),l.setClipPath(new zn["a"]({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=t.textStyleModel.getTextRect("国"),c=pL(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,c,i),this._createHandle(t,s,1,r,c,i)),this._createIndicator(t,s,r,c,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,o){var a=m["c"](this._dragHandle,this,n,!1),s=m["c"](this._dragHandle,this,n,!0),u=Object(l["g"])(e.get("handleSize"),r[0]),c=Object(nn["a"])(e.get("handleIcon"),-u/2,-u/2,u,u,null,!0),d=_L(this._orient);c.attr({cursor:d,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){Al["g"](e.event)}}),c.x=r[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(un["F"])(c,!0),t.add(c);var f=this.visualMapModel.textStyleModel,h=new J["a"]({cursor:d,draggable:!0,drift:a,onmousemove:function(e){Al["g"](e.event)},ondragend:s,style:Object(fn["c"])(f,{x:0,y:0,text:""})});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var p=[u,0],g=this._shapes;g.handleThumbs[n]=c,g.handleLabelPoints[n]=p,g.handleLabels[n]=h},t.prototype._createIndicator=function(e,t,n,r,i){var o=Object(l["g"])(e.get("indicatorSize"),n[0]),a=Object(nn["a"])(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(a instanceof s["a"]){var c=a.style;a.useStyle(m["m"]({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else a.useStyle(u);t.add(a);var d=this.visualMapModel.textStyleModel,f=new J["a"]({silent:!0,invisible:!0,style:Object(fn["c"])(d,{x:0,y:0,text:""})});this.group.add(f);var h=[("horizontal"===i?r/2:vL)+n[0]/2,0],p=this._shapes;p.indicator=a,p.indicatorLabel=f,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),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():xL(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[dL(t[0],n,r,!0),dL(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];Vg(t,r,i,e,0);var o=n.getExtent();this._dataInterval=[dL(r[0],i,o,!0),dL(r[1],i,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],o=e?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,i),a=[this.getControllerVisual(e[0],"symbolSize",i),this.getControllerVisual(e[1],"symbolSize",i)],s=this._createBarPoints(n,a);return{barColor:new An["a"](0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;o<n;o++){var a=e[0]+i*o;if(a>e[1])break;r.push({color:this.getControllerVisual(a,"color",t),offset:o/n})}return r.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),r},t.prototype._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]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new rn["a"]("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();fL([0,1],(function(l){var u=i[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=dL(e[l],[0,a[1]],s,!0),d=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=d/a[0],u.x=a[0]-d/2;var f=ln["applyTransform"](n.handleLabelPoints[l],ln["getTransform"](u,this.group));o[l].setStyle({x:f[0],y:f[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},d=this.getControllerVisual(e,"color",c),f=this.getControllerVisual(e,"symbolSize"),h=dL(e,o,s,!0),p=a[0]-f/2,g={x:u.x,y:u.y};u.y=h,u.x=p;var v=ln["applyTransform"](l.indicatorLabelPoint,ln["getTransform"](u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),b=this._orient,x="horizontal"===b;y.setStyle({text:(n||"")+i.formatValueText(t),verticalAlign:x?m:"middle",align:x?"center":m});var _={x:p,y:h,style:{fill:d}},w={style:{x:v[0],y:v[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(_,S),y.animateTo(w,S)}else u.attr(_),y.attr(w);this._firstShowIndicator=!1;var k=this._shapes.handleLabels;if(k)for(var O=0;O<k.length;O++)this._api.enterBlur(k[O])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=hL(pL(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._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()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();e=hL(pL(i[0],e),i[1]);var a=bL(n,o,i),s=[e-a,e+a],l=dL(e,i,o,!0),u=[dL(s[0],i,o,!0),dL(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,d=[];(t||xL(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var f=lt["d"](c,d);this._dispatchHighDown("downplay",cL(f[0],n)),this._dispatchHighDown("highlight",cL(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=Object(ut["a"])(t).dataIndex){var r=Object(ut["a"])(t),i=this.ecModel.getSeriesByIndex(r.seriesIndex);if(n.isTargetSeries(i)){var o=i.getData(r.dataType),a=o.getStore().get(n.getDataDimensionIndex(o),r.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this._api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",cL(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=ln["getTransform"](t,r?null:this.group);return m["t"](e)?ln["applyTransform"](e,i,n):ln["transformDirection"](e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(sL);function mL(e,t,n,r){return new sl["a"]({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){Al["g"](e.event)},ondragend:r})}function bL(e,t,n){var r=gL/2,i=e.get("hoverLinkDataSize");return i&&(r=dL(i,t,n,!0)/2),r}function xL(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function _L(e){return"vertical"===e?"ns-resize":"ew-resize"}var wL=yL,SL={type:"selectDataRange",event:"dataRangeSelected",update:"update"},kL=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},OL=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(FE(t.stateList,t.targetVisuals,m["c"](t.getValueState,t),t.getDataDimensionIndex(e.getData())))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(m["c"](TL,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}})),e.getData().setVisual("visualMeta",r)}}];function TL(e,t,n,r){for(var i=t.targetVisuals[r],o=$f.prepareVisualTypes(i),a={color:Object(DE["b"])(e.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,d,f)}return a.color;function d(e){return a[e]}function f(e,t){a[e]=t}}var EL=m["k"];function CL(e){var t=e&&e.visualMap;m["t"](t)||(t=t?[t]:[]),EL(t,(function(e){if(e){AL(e,"splitList")&&!AL(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&m["t"](t)&&EL(t,(function(e){m["A"](e)&&(AL(e,"start")&&!AL(e,"min")&&(e.min=e.start),AL(e,"end")&&!AL(e,"max")&&(e.max=e.end))}))}}))}function AL(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var ML=!1;function LL(e){ML||(ML=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(SL,kL),Object(m["k"])(OL,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(CL))}function IL(e){e.registerComponentModel(oL),e.registerComponentView(wL),LL(e)}var DL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return Object(Ye["a"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],jL[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=m["d"](i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=m["H"](this._pieceList,(function(e){return e=m["d"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=$f.listVisualTypes(),i=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}m["k"](t.pieces,(function(e){m["k"](r,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),m["k"](n,(function(e,n){var r=!1;m["k"](this.stateList,(function(e){r=r||o(t,e,n)||o(t.target,e,n)}),this),!r&&m["k"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=YM.get(n,"inRange"===e?"active":"inactive",i)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,m["k"](r,(function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;m["k"](r,(function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(o?i[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=m["d"](e)},t.prototype.getValueState=function(e){var t=$f.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(t,r){var o=$f.findPieceIndex(t,n);o===e&&i.push(r)}),this),t.push({seriesId:r.id,dataIndex:i})}),this),t},t.prototype.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},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),o=i[i.length-1].interval[1],o!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return m["k"](i,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=e(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Object(Rr["d"])(tL.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(tL),jL={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;var o=(r[1]-r[0])/i;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),Object(Hn["s"])(e),m["k"](e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;m["k"](t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),PL(t,e)},pieces:function(e){var t=this.option;m["k"](t.pieces,(function(t,n){m["A"](t)||(t={value:t});var r={text:"",index:n};if(null!=t.label&&(r.text=t.label),t.hasOwnProperty("value")){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var d=[["gte","gt","min"],["lte","lt","max"]][c],f=0;f<3&&null==o[c];f++)o[c]=t[d[f]],a[c]=s[f],u[c]=2===f;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=$f.retrieveVisuals(t),e.push(r)}),this),PL(t,e),Object(Hn["s"])(e),m["k"](e,(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 PL(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var RL=DL,NL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Ye["a"])(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=m["O"](t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],s,c,a),m["k"](l.viewPieceList,(function(r){var l=r.piece,u=new rn["a"];u.onclick=m["c"](this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var d=t.getRepresentValue(l);if(this._createItemSymbol(u,d,[0,0,s[0],s[1]]),c){var f=this.visualMapModel.getValueState(d);u.add(new J["a"]({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===f?.5:1}}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,c,a),xi["b"](t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:cL(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return uL(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var o=new rn["a"],a=this.visualMapModel.textStyleModel;o.add(new J["a"]({style:Object(fn["c"])(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=m["H"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),i=e.get("inverse");return("horizontal"===r?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Object(nn["a"])(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=m["d"](n.selected),o=t.getSelectedMapKey(e);"single"===r||!0===r?(i[o]=!0,m["k"](i,(function(e,t){i[t]=t===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type="visualMap.piecewise",t}(sL),BL=NL;function FL(e){e.registerComponentModel(RL),e.registerComponentView(BL),LL(e)}function zL(e){Object(r["a"])(IL),Object(r["a"])(FL)}var UL={label:{enabled:!0},decal:{show:!1}},HL=Object(lt["o"])(),VL={};function GL(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=m["d"](UL);m["I"](r.label,e.getLocaleModel().get("aria"),!1),m["I"](n.option,r,!1),i(),o()}function i(){var t=n.getModel("decal"),r=t.get("show");if(r){var i=m["f"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=i.get(e.type);t||(t={},i.set(e.type,t)),HL(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(m["w"](t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var r=Object(ef["b"])(t.ecModel,t.name,VL,e.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",u(i,r))}else{var o=t.getRawData(),a={},s=HL(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var l=o.count();o.each((function(e){var r=a[e],i=o.getName(e)||e+"",c=Object(ef["b"])(t.ecModel,i,s,l),d=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",u(d,c))}))}}function u(e,t){var n=e?m["m"](m["m"]({},t),e):t;return n.dirty=!0,n}}))}}function o(){var r=e.getLocaleModel().get("aria"),i=n.getModel("label");if(i.option=m["i"](i.option,r),i.get("enabled")){var o=t.getZr().dom;if(i.get("description"))o.setAttribute("aria-label",i.get("description"));else{var u,c=e.getSeriesCount(),d=i.get(["data","maxCount"])||10,f=i.get(["series","maxCount"])||10,h=Math.min(c,f);if(!(c<1)){var p=s();if(p){var g=i.get(["general","withTitle"]);u=a(g,{title:p})}else u=i.get(["general","withoutTitle"]);var v=[],y=c>1?i.get(["series","multiple","prefix"]):i.get(["series","single","prefix"]);u+=a(y,{seriesCount:c}),e.eachSeries((function(e,t){if(t<h){var n=void 0,r=e.get("name"),o=r?"withName":"withoutName";n=c>1?i.get(["series","multiple",o]):i.get(["series","single",o]),n=a(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>d){var u=i.get(["data","partialData"]);n+=a(u,{displayCnt:d})}else n+=i.get(["data","allData"]);for(var f=i.get(["data","separator","middle"]),p=i.get(["data","separator","end"]),g=[],y=0;y<s.count();y++)if(y<d){var m=s.getName(y),b=s.getValues(y),x=i.get(["data",m?"withName":"withoutName"]);g.push(a(x,{name:m,value:b.join(f)}))}n+=g.join(f)+p,v.push(n)}}));var b=i.getModel(["series","multiple","separator"]),x=b.get("middle"),_=b.get("end");u+=v.join(x)+_,o.setAttribute("aria-label",u)}}}}function a(e,t){if(!m["C"](e))return e;var n=e;return m["k"](t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function s(){var t=e.get("title");return t&&t.length&&(t=t[0]),t&&t.text}function l(t){return e.getLocaleModel().get(["series","typeNames"])[t]||"自定义图"}}function qL(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},m["k"](["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}function WL(e){e.registerPreprocessor(qL),e.registerVisual(e.PRIORITY.VISUAL.ARIA,GL)}var YL={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},KL=function(){function e(e){var t=this._condVal=Object(m["C"])(e)?new RegExp(e):Object(m["B"])(e)?e:null;if(null==t){var n="";0,Object(Df["c"])(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(m["C"])(t)?this._condVal.test(e):!!Object(m["z"])(t)&&this._condVal.test(e+"")},e}(),XL=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),ZL=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),$L=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),JL=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),QL=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),r=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?r:n))return!1;return!0},e}();function eI(e,t){if(!0===e||!1===e){var n=new XL;return n.value=e,n}var r="";return iI(e)||Object(Df["c"])(r),e.and?tI("and",e,t):e.or?tI("or",e,t):e.not?nI(e,t):rI(e,t)}function tI(e,t,n){var r=t[e],i="";Object(m["t"])(r)||Object(Df["c"])(i),r.length||Object(Df["c"])(i);var o="and"===e?new ZL:new $L;return o.children=Object(m["H"])(r,(function(e){return eI(e,n)})),o.children.length||Object(Df["c"])(i),o}function nI(e,t){var n=e.not,r="";iI(n)||Object(Df["c"])(r);var i=new JL;return i.child=eI(n,t),i.child||Object(Df["c"])(r),i}function rI(e,t){for(var n="",r=t.prepareGetValue(e),i=[],o=Object(m["F"])(e),a=e.parser,s=a?Object(GC["c"])(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!t.valueGetterAttrMap.get(u)){var c=Object(m["q"])(YL,u)?YL[u]:u,d=e[u],f=s?s(d):d,h=Object(GC["b"])(c,f)||"reg"===c&&new KL(f);h||Object(Df["c"])(n),i.push(h)}}i.length||Object(Df["c"])(n);var p=new QL;return p.valueGetterParam=r,p.valueParser=s,p.getValue=t.getValue,p.subCondList=i,p}function iI(e){return Object(m["A"])(e)&&!Object(m["u"])(e)}var oI=function(){function e(e,t){this._cond=eI(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function aI(e,t){return new oI(e,t)}var sI={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,r=aI(e.config,{valueGetterAttrMap:Object(m["f"])({dimension:!0}),prepareGetValue:function(e){var t="",r=e.dimension;Object(m["q"])(e,"dimension")||Object(Df["c"])(t);var i=n.getDimensionInfo(r);return i||Object(Df["c"])(t),{dimIdx:i.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),i=[],o=0,a=n.count();o<a;o++)t=n.getRawDataItem(o),r.evaluate()&&i.push(t);return{data:i}}};var lI={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",i=Object(lt["r"])(n);i.length||Object(Df["c"])(r);var o=[];Object(m["k"])(i,(function(e){var n=e.dimension,i=e.order,a=e.parser,s=e.incomparable;if(null==n&&Object(Df["c"])(r),"asc"!==i&&"desc"!==i&&Object(Df["c"])(r),s&&"min"!==s&&"max"!==s){var l="";0,Object(Df["c"])(l)}if("asc"!==i&&"desc"!==i){var u="";0,Object(Df["c"])(u)}var c=t.getDimensionInfo(n);c||Object(Df["c"])(r);var d=a?Object(GC["c"])(a):null;a&&!d&&Object(Df["c"])(r),o.push({dimIdx:c.index,parser:d,comparator:new GC["a"](i,s)})}));var a=t.sourceFormat;a!==et["c"]&&a!==et["e"]&&Object(Df["c"])(r);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort((function(e,n){for(var r=0;r<o.length;r++){var i=o[r],a=t.retrieveValueFromItem(e,i.dimIdx),s=t.retrieveValueFromItem(n,i.dimIdx);i.parser&&(a=i.parser(a),s=i.parser(s));var l=i.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};function uI(e){e.registerTransform(sI),e.registerTransform(lI)}var cI=n("5e81"),dI=z["a"].CMD;function fI(e,t){return Math.abs(e-t)<1e-5}function hI(e){var t,n,r,i,o,a=e.data,s=e.len(),l=[],u=0,c=0,d=0,f=0;function h(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function p(e,n,r,i){fI(e,r)&&fI(n,i)||t.push(e,n,r,i,r,i)}function g(e,n,r,i,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=n<e?-1:1,c=Math.cos(e),d=Math.sin(e),f=Math.cos(n),h=Math.sin(n),p=c*o+r,g=d*a+i,v=f*o+r,y=h*a+i,m=o*l*u,b=a*l*u;t.push(p-m*d,g+b*c,v+m*h,y-b*f,v,y)}for(var v=0;v<s;){var y=a[v++],m=1===v;switch(m&&(u=a[v],c=a[v+1],d=u,f=c,y!==dI.L&&y!==dI.C&&y!==dI.Q||(t=[d,f])),y){case dI.M:u=d=a[v++],c=f=a[v++],h(d,f);break;case dI.L:n=a[v++],r=a[v++],p(u,c,n,r),u=n,c=r;break;case dI.C:t.push(a[v++],a[v++],a[v++],a[v++],u=a[v++],c=a[v++]);break;case dI.Q:n=a[v++],r=a[v++],i=a[v++],o=a[v++],t.push(u+2/3*(n-u),c+2/3*(r-c),i+2/3*(n-i),o+2/3*(r-o),i,o),u=i,c=o;break;case dI.A:var b=a[v++],x=a[v++],_=a[v++],w=a[v++],S=a[v++],k=a[v++]+S;v+=1;var O=!a[v++];n=Math.cos(S)*_+b,r=Math.sin(S)*w+x,m?(d=n,f=r,h(d,f)):p(u,c,n,r),u=Math.cos(k)*_+b,c=Math.sin(k)*w+x;for(var T=(O?-1:1)*Math.PI/2,E=S;O?E>k:E<k;E+=T){var C=O?Math.max(E+T,k):Math.min(E+T,k);g(E,C,b,x,_,w)}break;case dI.R:d=u=a[v++],f=c=a[v++],n=d+a[v++],r=f+a[v++],h(n,f),p(n,f,n,r),p(n,r,d,r),p(d,r,d,f),p(d,f,n,f);break;case dI.Z:t&&p(u,c,d,f),u=d,c=f;break}}return t&&t.length>2&&l.push(t),l}function pI(e,t,n,r,i,o,a,s,l,u){if(fI(e,n)&&fI(t,r)&&fI(i,a)&&fI(o,s))l.push(a,s);else{var c=2/u,d=c*c,f=a-e,h=s-t,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var g=n-e,v=r-t,y=i-a,m=o-s,b=g*g+v*v,x=y*y+m*m;if(b<d&&x<d)l.push(a,s);else{var _=f*g+h*v,w=-f*y-h*m,S=b-_*_,k=x-w*w;if(S<d&&_>=0&&k<d&&w>=0)l.push(a,s);else{var O=[],T=[];Object(Mn["g"])(e,n,i,a,.5,O),Object(Mn["g"])(t,r,o,s,.5,T),pI(O[0],T[0],O[1],T[1],O[2],T[2],O[3],T[3],l,u),pI(O[4],T[4],O[5],T[5],O[6],T[6],O[7],T[7],l,u)}}}}function gI(e,t){var n=hI(e),r=[];t=t||1;for(var i=0;i<n.length;i++){var o=n[i],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],d=o[u++],f=o[u++],h=o[u++],p=o[u++],g=o[u++];pI(s,l,c,d,f,h,p,g,a,t),s=p,l=g}r.push(a)}return r}function vI(e,t,n){var r=e[t],i=e[1-t],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var c=a*s,d=n-c;if(d>0)for(u=0;u<d;u++)l[u%a]+=1;return l}function yI(e,t,n){for(var r=e.r0,i=e.r,o=e.startAngle,a=e.endAngle,s=Math.abs(a-o),l=s*i,u=i-r,c=l>Math.abs(u),d=vI([l,u],c?0:1,t),f=(c?s:u)/d.length,h=0;h<d.length;h++)for(var p=(c?u:s)/d[h],g=0;g<d[h];g++){var v={};c?(v.startAngle=o+f*h,v.endAngle=o+f*(h+1),v.r0=r+p*g,v.r=r+p*(g+1)):(v.startAngle=o+p*g,v.endAngle=o+p*(g+1),v.r0=r+f*h,v.r=r+f*(h+1)),v.clockwise=e.clockwise,v.cx=e.cx,v.cy=e.cy,n.push(v)}}function mI(e,t,n){for(var r=e.width,i=e.height,o=r>i,a=vI([r,i],o?0:1,t),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",d=e[s]/a.length,f=0;f<a.length;f++)for(var h=e[l]/a[f],p=0;p<a[f];p++){var g={};g[u]=f*d,g[c]=p*h,g[s]=d,g[l]=h,g.x+=e.x,g.y+=e.y,n.push(g)}}function bI(e,t,n,r){return e*r-n*t}function xI(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,d=s-o,f=bI(c,d,l,u);if(Math.abs(f)<1e-6)return null;var h=e-i,p=t-o,g=bI(h,p,c,d)/f;return g<0||g>1?null:new Ci["a"](g*l+e,g*u+t)}function _I(e,t,n){var r=new Ci["a"];Ci["a"].sub(r,n,t),r.normalize();var i=new Ci["a"];Ci["a"].sub(i,e,t);var o=i.dot(r);return o}function wI(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function SI(e,t,n){for(var r=e.length,i=[],o=0;o<r;o++){var a=e[o],s=e[(o+1)%r],l=xI(a[0],a[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&i.push({projPt:_I(l,t,n),pt:l,idx:o})}if(i.length<2)return[{points:e},{points:e}];i.sort((function(e,t){return e.projPt-t.projPt}));var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var d=u;u=c,c=d}var f=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],p=[f],g=[h];for(o=u.idx+1;o<=c.idx;o++)wI(p,e[o].slice());wI(p,h),wI(p,f);for(o=c.idx+1;o<=u.idx+r;o++)wI(g,e[o%r].slice());return wI(g,f),wI(g,h),[{points:p},{points:g}]}function kI(e){var t=e.points,n=[],r=[];Object(fd["d"])(t,n,r);var i=new Zi["a"](n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,l=i.y,u=new Ci["a"],c=new Ci["a"];return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),SI(t,u,c)}function OI(e,t,n,r){if(1===n)r.push(t);else{var i=Math.floor(n/2),o=e(t);OI(e,o[0],i,r),OI(e,o[1],n-i,r)}return r}function TI(e,t){for(var n=[],r=0;r<t;r++)n.push(Object(Yl["a"])(e));return n}function EI(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function CI(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function AI(e,t){var n,r=[],i=e.shape;switch(e.type){case"rect":mI(i,t,r),n=zn["a"];break;case"sector":yI(i,t,r),n=Un["a"];break;case"circle":yI({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},t,r),n=Un["a"];break;default:var o=e.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=Object(m["H"])(gI(e.getUpdatedPathProxy(),a),(function(e){return CI(e)})),l=s.length;if(0===l)OI(kI,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,d=Object(m["H"])(s,(function(e){var t=[],n=[];Object(fd["d"])(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return c+=r,{poly:e,area:r}}));d.sort((function(e,t){return t.area-e.area}));var f=t;for(u=0;u<l;u++){var h=d[u];if(f<=0)break;var p=u===l-1?f:Math.ceil(h.area/c*t);p<0||(OI(kI,{points:h.poly},p,r),f-=p)}}n=sl["a"];break}if(!n)return TI(e,t);var g=[];for(u=0;u<r.length;u++){var v=new n;v.setShape(r[u]),EI(e,v),g.push(v)}return g}function MI(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],o=[],a=n<r?e:t,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,d=[a[0],a[1]],f=l,h=2;h<s;){var p=a[h-2],g=a[h-1],v=a[h++],y=a[h++],m=a[h++],b=a[h++],x=a[h++],_=a[h++];if(f<=0)d.push(v,y,m,b,x,_);else{for(var w=Math.min(f,c-1)+1,S=1;S<=w;S++){var k=S/w;Object(Mn["g"])(p,v,m,x,k,i),Object(Mn["g"])(g,y,b,_,k,o),p=i[3],g=o[3],d.push(i[1],o[1],i[2],o[2],p,g),v=i[5],y=o[5],m=i[6],b=o[6]}f-=w-1}}return a===e?[d,t]:[e,d]}function LI(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],o=[],a=0;a<t.length;)o[a++]=r,o[a++]=i;return o}function II(e,t){for(var n,r,i,o=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,d=void 0;l?u?(n=MI(l,u),c=n[0],d=n[1],r=c,i=d):(d=LI(i||l,l),c=l):(c=LI(r||u,u),d=u),o.push(c),a.push(d)}return[o,a]}function DI(e){for(var t=0,n=0,r=0,i=e.length,o=0,a=i-2;o<i;a=o,o+=2){var s=e[a],l=e[a+1],u=e[o],c=e[o+1],d=s*c-u*l;t+=d,n+=(s+u)*d,r+=(l+c)*d}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function jI(e,t,n,r){for(var i=(e.length-2)/6,o=1/0,a=0,s=e.length,l=s-2,u=0;u<i;u++){for(var c=6*u,d=0,f=0;f<s;f+=2){var h=0===f?c:(c+f-2)%l+2,p=e[h]-n[0],g=e[h+1]-n[1],v=t[f]-r[0],y=t[f+1]-r[1],m=v-p,b=y-g;d+=m*m+b*b}d<o&&(o=d,a=u)}return a}function PI(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function RI(e,t,n,r){for(var i,o=[],a=0;a<e.length;a++){var s=e[a],l=t[a],u=DI(s),c=DI(l);null==i&&(i=u[2]<0!==c[2]<0);var d=[],f=[],h=0,p=1/0,g=[],v=s.length;i&&(s=PI(s));for(var y=6*jI(s,l,u,c),m=v-2,b=0;b<m;b+=2){var x=(y+b)%m+2;d[b+2]=s[x]-u[0],d[b+3]=s[x+1]-u[1]}if(d[0]=s[y]-u[0],d[1]=s[y+1]-u[1],n>0)for(var _=r/n,w=-r/2;w<=r/2;w+=_){var S=Math.sin(w),k=Math.cos(w),O=0;for(b=0;b<s.length;b+=2){var T=d[b],E=d[b+1],C=l[b]-c[0],A=l[b+1]-c[1],M=C*k-A*S,L=C*S+A*k;g[b]=M,g[b+1]=L;var I=M-T,D=L-E;O+=I*I+D*D}if(O<p){p=O,h=w;for(var j=0;j<g.length;j++)f[j]=g[j]}}else for(var P=0;P<v;P+=2)f[P]=l[P]-c[0],f[P+1]=l[P+1]-c[1];o.push({from:d,to:f,fromCp:u,toCp:c,rotation:-h})}return o}function NI(e){return e.__isCombineMorphing}var BI="__mOriginal_";function FI(e,t,n){var r=BI+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var o=n.replace,a=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=o?o.apply(this,t):i.apply(this,t),a&&a.apply(this,t),e}}function zI(e,t){var n=BI+t;e[n]&&(e[t]=e[n],e[n]=null)}function UI(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=t[0]*o+t[2]*a+t[4],r[i++]=t[1]*o+t[3]*a+t[5]}}function HI(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=II(hI(n),hI(r)),o=i[0],a=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&UI(o,s),l&&UI(a,l),FI(t,"updateTransform",{replace:u}),t.transform=null;var c=RI(o,a,10,Math.PI),d=[];FI(t,"buildPath",{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],o=0;o<c.length;o++){var a=c[o],s=a.from,l=a.to,u=a.rotation*n,f=a.fromCp,h=a.toCp,p=Math.sin(u),g=Math.cos(u);Object(Ia["j"])(i,f,h,n);for(var v=0;v<s.length;v+=2){var y=s[v],m=s[v+1],b=l[v],x=l[v+1],_=y*r+b*n,w=m*r+x*n;d[v]=_*g-w*p+i[0],d[v+1]=_*p+w*g+i[1]}var S=d[0],k=d[1];e.moveTo(S,k);for(v=2;v<s.length;){b=d[v++],x=d[v++];var O=d[v++],T=d[v++],E=d[v++],C=d[v++];S===b&&k===x&&O===E&&T===C?e.lineTo(E,C):e.bezierCurveTo(b,x,O,T,E,C),S=E,k=C}}}})}function VI(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;function o(){zI(t,"buildPath"),zI(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return HI(e,t),t.__morphT=0,t.animateTo({__morphT:1},Object(m["i"])({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){o(),r&&r()}},n)),t}function GI(e,t,n,r,i,o){var a=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=o===r?0:Math.round(32767*(t-r)/(o-r));for(var s,l=0,u=(1<<a)/2;u>0;u/=2){var c=0,d=0;(e&u)>0&&(c=1),(t&u)>0&&(d=1),l+=u*u*(3*c^d),0===d&&(1===c&&(e=u-1-e,t=u-1-t),s=e,e=t,t=s)}return l}function qI(e){var t=1/0,n=1/0,r=-1/0,i=-1/0,o=Object(m["H"])(e,(function(e){var o=e.getBoundingRect(),a=e.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]})),a=Object(m["H"])(o,(function(o,a){return{cp:o,z:GI(o[0],o[1],t,n,r,i),path:e[a]}}));return a.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function WI(e){return AI(e.path,e.count)}function YI(){return{fromIndividuals:[],toIndividuals:[],count:0}}function KI(e,t,n){var r=[];function i(e){for(var t=0;t<e.length;t++){var n=e[t];NI(n)?i(n.childrenRef()):n instanceof a["b"]&&r.push(n)}}i(e);var o=r.length;if(!o)return YI();var s=n.dividePath||WI,l=s({path:t,count:o});if(l.length!==o)return console.error("Invalid morphing: unmatched splitted path"),YI();r=qI(r),l=qI(l);for(var u=n.done,c=n.during,d=n.individualDelay,f=new F["c"],h=0;h<o;h++){var p=r[h],g=l[h];g.parent=t,g.copyTransform(f),d||HI(p,g)}function v(e){for(var t=0;t<l.length;t++)l[t].addSelfToZr(e)}function y(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,zI(t,"addSelfToZr"),zI(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return l},FI(t,"addSelfToZr",{after:function(e){v(e)}}),FI(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<l.length;t++)l[t].removeSelfFromZr(e)}});var b=l.length;if(d){var x=b,_=function(){x--,0===x&&(y(),u&&u())};for(h=0;h<b;h++){var w=d?Object(m["i"])({delay:(n.delay||0)+d(h,b,r[h],l[h]),done:_},n):n;VI(r[h],l[h],w)}}else t.__morphT=0,t.animateTo({__morphT:1},Object(m["i"])({during:function(e){for(var n=0;n<b;n++){var r=l[n];r.__morphT=t.__morphT,r.dirtyShape()}c&&c(e)},done:function(){y();for(var t=0;t<e.length;t++)zI(e[t],"updateTransform");u&&u()}},n));return t.__zr&&v(t.__zr),{fromIndividuals:r,toIndividuals:l,count:b}}function XI(e,t,n){var r=t.length,i=[],o=n.dividePath||WI;function s(e){for(var t=0;t<e.length;t++){var n=e[t];NI(n)?s(n.childrenRef()):n instanceof a["b"]&&i.push(n)}}if(NI(e)){s(e.childrenRef());var l=i.length;if(l<r)for(var u=0,c=l;c<r;c++)i.push(Object(Yl["a"])(i[u++%l]));i.length=r}else{i=o({path:e,count:r});var d=e.getComputedTransform();for(c=0;c<i.length;c++)i[c].setLocalTransform(d);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),YI()}i=qI(i),t=qI(t);var f=n.individualDelay;for(c=0;c<r;c++){var h=f?Object(m["i"])({delay:(n.delay||0)+f(c,r,i[c],t[c])},n):n;VI(i[c],t[c],h)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function ZI(e){return Object(m["t"])(e[0])}function $I(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(i=0;i<t.length;i++){var o=t[i].length,a=void 0;for(a=0;a<o;a++)n[a%r].many.push(t[i][a])}var s=0;for(i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var JI={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var i=Object(Yl["a"])(e.path);i.setStyle("opacity",n),t.push(i)}return t},split:null};function QI(e,t,n,r,i,o){if(e.length&&t.length){var a=Object(sn["a"])("update",r,i);if(a&&a.duration>0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);ZI(e)&&(s=e,l=t),ZI(t)&&(s=t,l=e);for(var d=s?s===e:e.length>t.length,f=s?$I(l,s):$I(d?t:e,[d?e:t]),h=0,p=0;p<f.length;p++)h+=f[p].many.length;var g=0;for(p=0;p<f.length;p++)v(f[p],d,g,h),g+=f[p].many.length}}function v(e,t,r,i,a){var s=e.many,l=e.one;if(1!==s.length||a)for(var d=Object(m["i"])({dividePath:JI[n],individualDelay:u&&function(e,t,n,o){return u(e+r,i)}},c),f=t?KI(s,l,d):XI(l,s,d),h=f.fromIndividuals,p=f.toIndividuals,g=h.length,y=0;y<g;y++){_=u?Object(m["i"])({delay:u(y,g)},c):c;o(h[y],p[y],t?s[y]:e.one,t?e.one:s[y],_)}else{var b=t?s[0]:l,x=t?l:s[0];if(NI(b))v({many:[b],one:x},!0,r,i,!0);else{var _=u?Object(m["i"])({delay:u(r,i)},c):c;VI(b,x,_),o(b,x,b,x,_)}}}}function eD(e){if(!e)return[];if(Object(m["t"])(e)){for(var t=[],n=0;n<e.length;n++)t.push(eD(e[n]));return t}var r=[];return e.traverse((function(e){e instanceof a["b"]&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)})),r}var tD=1e4,nD=Object(lt["o"])();function rD(e){for(var t=e.dimensions,n=0;n<t.length;n++){var r=e.getDimensionInfo(t[n]);if(r&&0===r.otherDims.itemGroupId)return t[n]}}function iD(e){var t=[];return Object(m["k"])(e,(function(e){var n=e.data;if(!(n.count()>tD))for(var r=n.getIndices(),i=rD(n),o=0;o<r.length;o++)t.push({data:n,dim:e.dim||i,divide:e.divide,dataIndex:o})})),t}function oD(e,t,n){e.traverse((function(e){e instanceof a["b"]&&Object(sn["c"])(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function aD(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function sD(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function lD(e,t,n){var r=Object(sn["a"])("update",n,t);r&&e.traverse((function(e){if(e instanceof oc["c"]){var t=Object(sn["b"])(e);t&&e.animateFrom({style:t},r)}}))}function uD(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],o=t[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function cD(e,t,n){var r=iD(e),i=iD(t);function o(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?Object(m["m"])(Object(m["m"])({},n.style),e.style):e.style},i)}function s(e){for(var t=0;t<e.length;t++)if(e[t].dim)return e[t].dim}var l=s(r),u=s(i),c=!1;function d(e,t){return function(n){var r=n.data,i=n.dataIndex;if(t)return r.getId(i);var o=r.hostModel&&r.hostModel.get("dataGroupId"),a=e?l||u:u||l,s=a&&r.getDimensionInfo(a),c=s&&s.ordinalMeta;if(s){var d=r.get(s.name,i);return c&&c.categories[d]||d+""}var f=r.getRawDataItem(i);return f&&f.groupId?f.groupId+"":o||r.getId(i)}}var f=uD(r,i),h={};if(!f)for(var p=0;p<i.length;p++){var g=i[p],v=g.data.getItemGraphicEl(g.dataIndex);v&&(h[v.id]=!0)}function y(e,t){var n=r[t],a=i[e],s=a.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=a.data.getItemGraphicEl(a.dataIndex);l!==u?l&&h[l.id]||u&&(sD(u),l?(sD(l),aD(l),c=!0,QI(eD(l),eD(u),a.divide,s,e,o)):oD(u,s,e)):u&&lD(u,a.dataIndex,s)}new Je(r,i,d(!0,f),d(!1,f),null,"multiple").update(y).updateManyToOne((function(e,t){var n=i[e],a=n.data,s=a.hostModel,l=a.getItemGraphicEl(n.dataIndex),u=Object(m["n"])(Object(m["H"])(t,(function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)})),(function(e){return e&&e!==l&&!h[e.id]}));l&&(sD(l),u.length?(Object(m["k"])(u,(function(e){sD(e),aD(e)})),c=!0,QI(eD(u),eD(l),n.divide,s,e,o)):oD(l,s,n.dataIndex))})).updateOneToMany((function(e,t){var n=r[t],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!h[a.id]){var s=Object(m["n"])(Object(m["H"])(e,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==a})),l=i[e[0]].data.hostModel;s.length&&(Object(m["k"])(s,(function(e){return sD(e)})),a?(sD(a),aD(a),c=!0,QI(eD(a),eD(s),n.divide,l,e[0],o)):Object(m["k"])(s,(function(t){return oD(t,l,e[0])})))}})).updateManyToMany((function(e,t){new Je(t,e,(function(e){return r[e].data.getId(r[e].dataIndex)}),(function(e){return i[e].data.getId(i[e].dataIndex)})).update((function(n,r){y(e[n],t[r])})).execute()})).execute(),c&&Object(m["k"])(t,(function(e){var t=e.data,r=t.hostModel,i=r&&n.getViewOfSeriesModel(r),o=Object(sn["a"])("update",r,0);i&&r.isAnimationEnabled()&&o&&o.duration>0&&i.group.traverse((function(e){e instanceof a["b"]&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function dD(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function fD(e){return Object(m["t"])(e)?e.sort().join(","):e}function hD(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function pD(e,t){var n=Object(m["f"])(),r=Object(m["f"])(),i=Object(m["f"])();return Object(m["k"])(e.oldSeries,(function(t,n){var o=e.oldData[n],a=dD(t),s=fD(a);r.set(s,o),Object(m["t"])(a)&&Object(m["k"])(a,(function(e){i.set(e,{data:o,key:s})}))})),Object(m["k"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.getData(),o=dD(e),a=fD(o),s=r.get(a);if(s)n.set(a,{oldSeries:[{divide:hD(s),data:s}],newSeries:[{divide:hD(t),data:t}]});else if(Object(m["t"])(o)){0;var l=[];Object(m["k"])(o,(function(e){var t=r.get(e);t&&l.push({divide:hD(t),data:t})})),l.length&&n.set(a,{oldSeries:l,newSeries:[{data:t,divide:hD(t)}]})}else{var u=i.get(o);if(u){var c=n.get(u.key);c||(c={oldSeries:[{data:u.data,divide:hD(u.data)}],newSeries:[]},n.set(u.key,c)),c.newSeries.push({data:t,divide:hD(t)})}}}})),n}function gD(e,t){for(var n=0;n<e.length;n++){var r=null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id;if(r)return n}}function vD(e,t,n,r){var i=[],o=[];Object(m["k"])(Object(lt["r"])(e.from),(function(e){var n=gD(t.oldSeries,e);n>=0&&i.push({data:t.oldData[n],divide:hD(t.oldData[n]),dim:e.dimension})})),Object(m["k"])(Object(lt["r"])(e.to),(function(e){var t=gD(n.updatedSeries,e);if(t>=0){var r=n.updatedSeries[t].getData();o.push({data:r,divide:hD(r),dim:e.dimension})}})),i.length>0&&o.length>0&&cD(i,o,r)}function yD(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(m["k"])(Object(lt["r"])(n.seriesTransition),(function(e){Object(m["k"])(Object(lt["r"])(e.to),(function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(null!=e.seriesIndex&&e.seriesIndex===t[r].seriesIndex||null!=e.seriesId&&e.seriesId===t[r].id)&&(t[r][tn["a"]]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var r=nD(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)Object(m["k"])(Object(lt["r"])(i),(function(e){vD(e,r,n,t)}));else{var o=pD(r,n);Object(m["k"])(o.keys(),(function(e){var n=o.get(e);cD(n.oldSeries,n.newSeries,t)}))}Object(m["k"])(n.updatedSeries,(function(e){e[tn["a"]]&&(e[tn["a"]]=!1)}))}for(var a=e.getSeries(),s=r.oldSeries=[],l=r.oldData=[],u=0;u<a.length;u++){var c=a[u].getData();c.count()<tD&&(s.push(a[u]),l.push(c))}}))}var mD=n("ee29");Object(r["a"])([i["a"]]),Object(r["a"])([We]),Object(r["a"])([br,mi,Yi,nl,El,$c,$d,Ah,Yp,rg,pg,by,$y,vm,Vm,$m,wb,Db,ux,bx,Bx,pw]),Object(r["a"])(hS),Object(r["a"])(ok),Object(r["a"])(Zc),Object(r["a"])(Lk),Object(r["a"])(my),Object(r["a"])(Hk),Object(r["a"])(aO),Object(r["a"])(qT),Object(r["a"])(AE),Object(r["a"])(fS),Object(r["a"])(cC),Object(r["a"])(hC),Object(r["a"])(RC),Object(r["a"])(uA),Object(r["a"])(_A),Object(r["a"])(jA),Object(r["a"])(uM),Object(r["a"])(GM),Object(r["a"])(TM),Object(r["a"])(VM),Object(r["a"])(zL),Object(r["a"])(IL),Object(r["a"])(FL),Object(r["a"])(WL),Object(r["a"])(uI),Object(r["a"])(cI["a"]),Object(r["a"])(yD),Object(r["a"])(mD["a"])},3236:function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="e225")}({"0117":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0288":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},"13d0":function(e,t,n){var r=n("35a9"),i=n("30cf"),o=n("ef69");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"18ff":function(e,t,n){var r=n("efd0"),i=n("13d0");e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},"1b38":function(e,t,n){var r=n("aad0"),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},"1bbe":function(e,t,n){var r=n("28a9"),i=n("7a85"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},2092:function(e,t,n){var r=n("0117"),i=n("3274"),o=n("af7d").indexOf,a=n("be34");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},"21e0":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},2308:function(e,t,n){(function(t,r){e.exports=r(n("47fc"))})(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=31)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.enableLogs=void 0;var r="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},i=n(5);function o(){}var a={trace:o,debug:o,log:o,warn:o,info:o,error:o},s=a;function l(e,t){return t="["+e+"] > "+t,t}var u=(0,i.getSelfScope)();function c(e){var t=u.console[e];return t?function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];r[0]&&(r[0]=l(e,r[0])),t.apply(u.console,r)}:o}function d(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.forEach((function(t){s[t]=e[t]?e[t].bind(e):c(t)}))}t.enableLogs=function(e){if(!0===e||"object"===("undefined"===typeof e?"undefined":r(e))){d(e,"debug","log","info","warn","error");try{s.log()}catch(t){s=a}}else s=a},t.logger=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={MEDIA_ATTACHING:"hlsMediaAttaching",MEDIA_ATTACHED:"hlsMediaAttached",MEDIA_DETACHING:"hlsMediaDetaching",MEDIA_DETACHED:"hlsMediaDetached",BUFFER_RESET:"hlsBufferReset",BUFFER_CODECS:"hlsBufferCodecs",BUFFER_CREATED:"hlsBufferCreated",BUFFER_APPENDING:"hlsBufferAppending",BUFFER_APPENDED:"hlsBufferAppended",BUFFER_EOS:"hlsBufferEos",BUFFER_FLUSHING:"hlsBufferFlushing",BUFFER_FLUSHED:"hlsBufferFlushed",MANIFEST_LOADING:"hlsManifestLoading",MANIFEST_LOADED:"hlsManifestLoaded",MANIFEST_PARSED:"hlsManifestParsed",LEVEL_SWITCHING:"hlsLevelSwitching",LEVEL_SWITCHED:"hlsLevelSwitched",LEVEL_LOADING:"hlsLevelLoading",LEVEL_LOADED:"hlsLevelLoaded",LEVEL_UPDATED:"hlsLevelUpdated",LEVEL_PTS_UPDATED:"hlsLevelPtsUpdated",AUDIO_TRACKS_UPDATED:"hlsAudioTracksUpdated",AUDIO_TRACK_SWITCHING:"hlsAudioTrackSwitching",AUDIO_TRACK_SWITCHED:"hlsAudioTrackSwitched",AUDIO_TRACK_LOADING:"hlsAudioTrackLoading",AUDIO_TRACK_LOADED:"hlsAudioTrackLoaded",SUBTITLE_TRACKS_UPDATED:"hlsSubtitleTracksUpdated",SUBTITLE_TRACK_SWITCH:"hlsSubtitleTrackSwitch",SUBTITLE_TRACK_LOADING:"hlsSubtitleTrackLoading",SUBTITLE_TRACK_LOADED:"hlsSubtitleTrackLoaded",SUBTITLE_FRAG_PROCESSED:"hlsSubtitleFragProcessed",INIT_PTS_FOUND:"hlsInitPtsFound",FRAG_LOADING:"hlsFragLoading",FRAG_LOAD_PROGRESS:"hlsFragLoadProgress",FRAG_LOAD_EMERGENCY_ABORTED:"hlsFragLoadEmergencyAborted",FRAG_LOADED:"hlsFragLoaded",FRAG_DECRYPTED:"hlsFragDecrypted",FRAG_PARSING_INIT_SEGMENT:"hlsFragParsingInitSegment",FRAG_PARSING_USERDATA:"hlsFragParsingUserdata",FRAG_PARSING_METADATA:"hlsFragParsingMetadata",FRAG_PARSING_DATA:"hlsFragParsingData",FRAG_PARSED:"hlsFragParsed",FRAG_BUFFERED:"hlsFragBuffered",FRAG_CHANGED:"hlsFragChanged",FPS_DROP:"hlsFpsDrop",FPS_DROP_LEVEL_CAPPING:"hlsFpsDropLevelCapping",ERROR:"hlsError",DESTROYING:"hlsDestroying",KEY_LOADING:"hlsKeyLoading",KEY_LOADED:"hlsKeyLoaded",STREAM_STATE_TRANSITION:"hlsStreamStateTransition"};t.default=r,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorTypes={NETWORK_ERROR:"networkError",MEDIA_ERROR:"mediaError",KEY_SYSTEM_ERROR:"keySystemError",MUX_ERROR:"muxError",OTHER_ERROR:"otherError"},t.ErrorDetails={KEY_SYSTEM_NO_KEYS:"keySystemNoKeys",KEY_SYSTEM_NO_ACCESS:"keySystemNoAccess",KEY_SYSTEM_NO_SESSION:"keySystemNoSession",KEY_SYSTEM_LICENSE_REQUEST_FAILED:"keySystemLicenseRequestFailed",MANIFEST_LOAD_ERROR:"manifestLoadError",MANIFEST_LOAD_TIMEOUT:"manifestLoadTimeOut",MANIFEST_PARSING_ERROR:"manifestParsingError",MANIFEST_INCOMPATIBLE_CODECS_ERROR:"manifestIncompatibleCodecsError",LEVEL_LOAD_ERROR:"levelLoadError",LEVEL_LOAD_TIMEOUT:"levelLoadTimeOut",LEVEL_SWITCH_ERROR:"levelSwitchError",AUDIO_TRACK_LOAD_ERROR:"audioTrackLoadError",AUDIO_TRACK_LOAD_TIMEOUT:"audioTrackLoadTimeOut",FRAG_LOAD_ERROR:"fragLoadError",FRAG_LOAD_TIMEOUT:"fragLoadTimeOut",FRAG_DECRYPT_ERROR:"fragDecryptError",FRAG_PARSING_ERROR:"fragParsingError",REMUX_ALLOC_ERROR:"remuxAllocError",KEY_LOAD_ERROR:"keyLoadError",KEY_LOAD_TIMEOUT:"keyLoadTimeOut",BUFFER_ADD_CODEC_ERROR:"bufferAddCodecError",BUFFER_APPEND_ERROR:"bufferAppendError",BUFFER_APPENDING_ERROR:"bufferAppendingError",BUFFER_STALLED_ERROR:"bufferStalledError",BUFFER_FULL_ERROR:"bufferFullError",BUFFER_SEEK_OVER_HOLE:"bufferSeekOverHole",BUFFER_NUDGE_ON_STALL:"bufferNudgeOnStall",INTERNAL_EXCEPTION:"internalException"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=n(2),s=n(1),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d={hlsEventGeneric:!0,hlsHandlerDestroying:!0,hlsHandlerDestroyed:!0},f=function(){function e(t){c(this,e),this.hls=t,this.onEvent=this.onEvent.bind(this);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.handledEvents=r,this.useGenericHandler=!0,this.registerListeners()}return i(e,[{key:"destroy",value:function(){this.onHandlerDestroying(),this.unregisterListeners(),this.onHandlerDestroyed()}},{key:"onHandlerDestroying",value:function(){}},{key:"onHandlerDestroyed",value:function(){}},{key:"isEventHandler",value:function(){return"object"===r(this.handledEvents)&&this.handledEvents.length&&"function"===typeof this.onEvent}},{key:"registerListeners",value:function(){this.isEventHandler()&&this.handledEvents.forEach((function(e){if(d[e])throw new Error("Forbidden event-name: "+e);this.hls.on(e,this.onEvent)}),this)}},{key:"unregisterListeners",value:function(){this.isEventHandler()&&this.handledEvents.forEach((function(e){this.hls.off(e,this.onEvent)}),this)}},{key:"onEvent",value:function(e,t){this.onEventGeneric(e,t)}},{key:"onEventGeneric",value:function(e,t){var n=function(e,t){var n="on"+e.replace("hls","");if("function"!==typeof this[n])throw new Error("Event "+e+" has no generic handler in this "+this.constructor.name+" class (tried "+n+")");return this[n].bind(this,t)};try{n.call(this,e,t).call()}catch(r){o.logger.error("An internal error happened while handling event "+e+'. Error message: "'+r.message+'". Here is a stacktrace:',r),this.hls.trigger(l.default.ERROR,{type:a.ErrorTypes.OTHER_ERROR,details:a.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:e,err:r})}}}]),e}();t.default=f,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.BufferHelper=function(){function e(){i(this,e)}return r(e,null,[{key:"isBuffered",value:function(e,t){try{if(e)for(var n=e.buffered,r=0;r<n.length;r++)if(t>=n.start(r)&&t<=n.end(r))return!0}catch(i){}return!1}},{key:"bufferInfo",value:function(e,t,n){try{if(e){var r=e.buffered,i=[],o=void 0;for(o=0;o<r.length;o++)i.push({start:r.start(o),end:r.end(o)});return this.bufferedInfo(i,t,n)}}catch(a){}return{len:0,start:t,end:t,nextStart:void 0}}},{key:"bufferedInfo",value:function(e,t,n){var r=[],i=void 0,o=void 0,a=void 0,s=void 0,l=void 0;for(e.sort((function(e,t){var n=e.start-t.start;return n||t.end-e.end})),l=0;l<e.length;l++){var u=r.length;if(u){var c=r[u-1].end;e[l].start-c<n?e[l].end>c&&(r[u-1].end=e[l].end):r.push(e[l])}else r.push(e[l])}for(l=0,i=0,o=a=t;l<r.length;l++){var d=r[l].start,f=r[l].end;if(t+n>=d&&t<f)o=d,a=f,i=a-t;else if(t+n<d){s=d;break}}return{len:i,start:o,end:a,nextStart:s}}}]),e}()},function(e,t,n){"use strict";function r(){return"undefined"===typeof window?self:window}Object.defineProperty(t,"__esModule",{value:!0}),t.getSelfScope=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FragmentTracker=t.FragmentState=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(3),a=u(o),s=n(1),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=t.FragmentState={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};t.FragmentTracker=function(e){function t(e){c(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,l.default.BUFFER_APPENDED,l.default.FRAG_BUFFERED,l.default.FRAG_LOADED));return n.bufferPadding=.2,n.fragments=Object.create(null),n.timeRanges=Object.create(null),n.config=e.config,n}return f(t,e),r(t,[{key:"destroy",value:function(){this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.config=null,a.default.prototype.destroy.call(this),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getBufferedFrag",value:function(e,t){var n=this.fragments,r=Object.keys(n).filter((function(r){var i=n[r];if(i.body.type!==t)return!1;if(!i.buffered)return!1;var o=i.body;return o.startPTS<=e&&e<=o.endPTS}));if(0===r.length)return null;var i=r.pop();return n[i].body}},{key:"detectEvictedFragments",value:function(e,t){var n=this,r=void 0,i=void 0;Object.keys(this.fragments).forEach((function(o){var a=n.fragments[o];if(!0===a.buffered){var s=a.range[e];if(s){r=s.time;for(var l=0;l<r.length;l++)if(i=r[l],!1===n.isTimeBuffered(i.startPTS,i.endPTS,t)){n.removeFragment(a.body);break}}}}))}},{key:"detectPartialFragments",value:function(e){var t=this,n=this.getFragmentKey(e),r=this.fragments[n];r&&(r.buffered=!0,Object.keys(this.timeRanges).forEach((function(n){if(e.hasElementaryStream(n)){var i=t.timeRanges[n];r.range[n]=t.getBufferedTimes(e.startPTS,e.endPTS,i)}})))}},{key:"getBufferedTimes",value:function(e,t,n){for(var r=[],i=void 0,o=void 0,a=!1,s=0;s<n.length;s++){if(i=n.start(s)-this.bufferPadding,o=n.end(s)+this.bufferPadding,e>=i&&t<=o){r.push({startPTS:Math.max(e,n.start(s)),endPTS:Math.min(t,n.end(s))});break}if(e<o&&t>i)r.push({startPTS:Math.max(e,n.start(s)),endPTS:Math.min(t,n.end(s))}),a=!0;else if(t<=i)break}return{time:r,partial:a}}},{key:"getFragmentKey",value:function(e){return e.type+"_"+e.level+"_"+e.urlId+"_"+e.sn}},{key:"getPartialFragment",value:function(e){var t=this,n=void 0,r=void 0,i=void 0,o=null,a=0;return Object.keys(this.fragments).forEach((function(s){var l=t.fragments[s];t.isPartial(l)&&(r=l.body.startPTS-t.bufferPadding,i=l.body.endPTS+t.bufferPadding,e>=r&&e<=i&&(n=Math.min(e-r,i-e),a<=n&&(o=l.body,a=n)))})),o}},{key:"getState",value:function(e){var t=this.getFragmentKey(e),n=this.fragments[t],r=h.NOT_LOADED;return void 0!==n&&(r=n.buffered?!0===this.isPartial(n)?h.PARTIAL:h.OK:h.APPENDING),r}},{key:"isPartial",value:function(e){return!0===e.buffered&&(void 0!==e.range.video&&!0===e.range.video.partial||void 0!==e.range.audio&&!0===e.range.audio.partial)}},{key:"isTimeBuffered",value:function(e,t,n){for(var r=void 0,i=void 0,o=0;o<n.length;o++){if(r=n.start(o)-this.bufferPadding,i=n.end(o)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1}},{key:"onFragLoaded",value:function(e){var t=e.frag;Number.isFinite(t.sn)&&!t.bitrateTest&&(this.fragments[this.getFragmentKey(t)]={body:t,range:Object.create(null),buffered:!1})}},{key:"onBufferAppended",value:function(e){var t=this;this.timeRanges=e.timeRanges,Object.keys(this.timeRanges).forEach((function(e){var n=t.timeRanges[e];t.detectEvictedFragments(e,n)}))}},{key:"onFragBuffered",value:function(e){this.detectPartialFragments(e.frag)}},{key:"hasFragment",value:function(e){var t=this.getFragmentKey(e);return void 0!==this.fragments[t]}},{key:"removeFragment",value:function(e){var t=this.getFragmentKey(e);delete this.fragments[t]}},{key:"removeAllFragments",value:function(){this.fragments=Object.create(null)}}]),t}(a.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addGroupId=i,t.updatePTS=o,t.updateFragPTSDTS=a,t.mergeDetails=s,t.mergeSubtitlePlaylists=l,t.mapFragmentIntersection=u,t.adjustSliding=c,t.computeReloadInterval=d;var r=n(0);function i(e,t,n){switch(t){case"audio":e.audioGroupIds||(e.audioGroupIds=[]),e.audioGroupIds.push(n);break;case"text":e.textGroupIds||(e.textGroupIds=[]),e.textGroupIds.push(n);break}}function o(e,t,n){var i=e[t],o=e[n],a=o.startPTS;Number.isFinite(a)?n>t?(i.duration=a-i.start,i.duration<0&&r.logger.warn("negative duration computed for frag "+i.sn+",level "+i.level+", there should be some duration drift between playlist and fragment!")):(o.duration=i.start-a,o.duration<0&&r.logger.warn("negative duration computed for frag "+o.sn+",level "+o.level+", there should be some duration drift between playlist and fragment!")):o.start=n>t?i.start+i.duration:Math.max(i.start-o.duration,0)}function a(e,t,n,r,i,a){var s=n;if(Number.isFinite(t.startPTS)){var l=Math.abs(t.startPTS-n);Number.isFinite(t.deltaPTS)?t.deltaPTS=Math.max(l,t.deltaPTS):t.deltaPTS=l,s=Math.max(n,t.startPTS),n=Math.min(n,t.startPTS),r=Math.max(r,t.endPTS),i=Math.min(i,t.startDTS),a=Math.max(a,t.endDTS)}var u=n-t.start;t.start=t.startPTS=n,t.maxStartPTS=s,t.endPTS=r,t.startDTS=i,t.endDTS=a,t.duration=r-n;var c=t.sn;if(!e||c<e.startSN||c>e.endSN)return 0;var d=void 0,f=void 0,h=void 0;for(d=c-e.startSN,f=e.fragments,f[d]=t,h=d;h>0;h--)o(f,h,h-1);for(h=d;h<f.length-1;h++)o(f,h,h+1);return e.PTSKnown=!0,u}function s(e,t){t.initSegment&&e.initSegment&&(t.initSegment=e.initSegment);var n=0,i=void 0;if(u(e,t,(function(e,r){n=e.cc-r.cc,Number.isFinite(e.startPTS)&&(r.start=r.startPTS=e.startPTS,r.endPTS=e.endPTS,r.duration=e.duration,r.backtracked=e.backtracked,r.dropped=e.dropped,i=r),t.PTSKnown=!0})),t.PTSKnown){if(n){r.logger.log("discontinuity sliding from playlist, take drift into account");for(var o=t.fragments,s=0;s<o.length;s++)o[s].cc+=n}i?a(t,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS):c(e,t),t.PTSKnown=e.PTSKnown}}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1;u(e,t,(function(e,t,n){t.start=e.start,r=n}));var i=t.fragments;if(r<0)i.forEach((function(e){e.start+=n}));else for(var o=r+1;o<i.length;o++)i[o].start=i[o-1].start+i[o-1].duration}function u(e,t,n){if(e&&t)for(var r=Math.max(e.startSN,t.startSN)-t.startSN,i=Math.min(e.endSN,t.endSN)-t.startSN,o=t.startSN-e.startSN,a=r;a<=i;a++){var s=e.fragments[o+a],l=t.fragments[a];if(!s||!l)break;n(s,l,a)}}function c(e,t){var n=t.startSN-e.startSN,r=e.fragments,i=t.fragments;if(!(n<0||n>r.length))for(var o=0;o<i.length;o++)i[o].start+=r[n].start}function d(e,t,n){var r=1e3*(t.averagetargetduration?t.averagetargetduration:t.targetduration),i=r/2;return e&&t.endSN===e.endSN&&(r=i),n&&(r=Math.max(i,r-(window.performance.now()-n))),Math.round(r)}},function(e,t,n){(function(t){var n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#.*)?$/,r=/^([^\/?#]*)(.*)$/,i=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),t=t.trim(),!t){if(!n.alwaysNormalize)return e;var i=a.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=a.normalizePath(i.path),a.buildURLFromParts(i)}var o=a.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return n.alwaysNormalize?(o.path=a.normalizePath(o.path),a.buildURLFromParts(o)):t;var s=a.parseURL(e);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var l=r.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path="/");var u={scheme:s.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(u.netLoc=s.netLoc,"/"!==o.path[0]))if(o.path){var c=s.path,d=c.substring(0,c.lastIndexOf("/")+1)+o.path;u.path=a.normalizePath(d)}else u.path=s.path,o.params||(u.params=s.params,o.query||(u.query=s.query));return null===u.path&&(u.path=n.alwaysNormalize?a.normalizePath(o.path):o.path),a.buildURLFromParts(u)},parseURL:function(e){var t=n.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){e=e.split("").reverse().join("").replace(i,"");while(e.length!==(e=e.replace(o,"")).length);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};e.exports=a})()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={search:function(e,t){var n=0,r=e.length-1,i=null,o=null;while(n<=r){i=(n+r)/2|0,o=e[i];var a=t(o);if(a>0)n=i+1;else{if(!(a<0))return o;r=i-1}}return null}};t.default=r,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){i(this,e)}return r(e,null,[{key:"isHeader",value:function(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}},{key:"isFooter",value:function(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}},{key:"getID3Data",value:function(t,n){var r=n,i=0;while(e.isHeader(t,n)){i+=10;var o=e._readSize(t,n+6);i+=o,e.isFooter(t,n+10)&&(i+=10),n+=i}if(i>0)return t.subarray(r,r+i)}},{key:"_readSize",value:function(e,t){var n=0;return n=(127&e[t])<<21,n|=(127&e[t+1])<<14,n|=(127&e[t+2])<<7,n|=127&e[t+3],n}},{key:"getTimeStamp",value:function(t){for(var n=e.getID3Frames(t),r=0;r<n.length;r++){var i=n[r];if(e.isTimeStampFrame(i))return e._readTimeStamp(i)}}},{key:"isTimeStampFrame",value:function(e){return e&&"PRIV"===e.key&&"com.apple.streaming.transportStreamTimestamp"===e.info}},{key:"_getFrameData",value:function(t){var n=String.fromCharCode(t[0],t[1],t[2],t[3]),r=e._readSize(t,4),i=10;return{type:n,size:r,data:t.subarray(i,i+r)}}},{key:"getID3Frames",value:function(t){var n=0,r=[];while(e.isHeader(t,n)){var i=e._readSize(t,n+6);n+=10;var o=n+i;while(n+8<o){var a=e._getFrameData(t.subarray(n)),s=e._decodeFrame(a);s&&r.push(s),n+=a.size+10}e.isFooter(t,n)&&(n+=10)}return r}},{key:"_decodeFrame",value:function(t){return"PRIV"===t.type?e._decodePrivFrame(t):"T"===t.type[0]?e._decodeTextFrame(t):"W"===t.type[0]?e._decodeURLFrame(t):void 0}},{key:"_readTimeStamp",value:function(e){if(8===e.data.byteLength){var t=new Uint8Array(e.data),n=1&t[3],r=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return r/=45,n&&(r+=47721858.84),Math.round(r)}}},{key:"_decodePrivFrame",value:function(t){if(!(t.size<2)){var n=e._utf8ArrayToStr(t.data,!0),r=new Uint8Array(t.data.subarray(n.length+1));return{key:t.type,info:n,data:r.buffer}}}},{key:"_decodeTextFrame",value:function(t){if(!(t.size<2)){if("TXXX"===t.type){var n=1,r=e._utf8ArrayToStr(t.data.subarray(n));n+=r.length+1;var i=e._utf8ArrayToStr(t.data.subarray(n));return{key:t.type,info:r,data:i}}var o=e._utf8ArrayToStr(t.data.subarray(1));return{key:t.type,data:o}}}},{key:"_decodeURLFrame",value:function(t){if("WXXX"===t.type){if(t.size<2)return;var n=1,r=e._utf8ArrayToStr(t.data.subarray(n));n+=r.length+1;var i=e._utf8ArrayToStr(t.data.subarray(n));return{key:t.type,info:r,data:i}}var o=e._utf8ArrayToStr(t.data);return{key:t.type,data:o}}},{key:"_utf8ArrayToStr",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.length,r=void 0,i=void 0,o=void 0,a="",s=0;while(s<n){if(r=e[s++],0===r&&t)return a;if(0!==r&&3!==r)switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a+=String.fromCharCode(r);break;case 12:case 13:i=e[s++],a+=String.fromCharCode((31&r)<<6|63&i);break;case 14:i=e[s++],o=e[s++],a+=String.fromCharCode((15&r)<<12|(63&i)<<6|(63&o)<<0);break;default:}}return a}}]),e}(),a=o._utf8ArrayToStr;t.default=o,t.utf8ArrayToStr=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(8),o=u(i),a=n(17),s=l(a);function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=function(){function e(){var t;d(this,e),this._url=null,this._byteRange=null,this._decryptdata=null,this.tagList=[],this.programDateTime=null,this.rawProgramDateTime=null,this._elementaryStreams=(t={},c(t,e.ElementaryStreamTypes.AUDIO,!1),c(t,e.ElementaryStreamTypes.VIDEO,!1),t)}return r(e,[{key:"addElementaryStream",value:function(e){this._elementaryStreams[e]=!0}},{key:"hasElementaryStream",value:function(e){return!0===this._elementaryStreams[e]}},{key:"createInitializationVector",value:function(e){for(var t=new Uint8Array(16),n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}},{key:"fragmentDecryptdataFromLevelkey",value:function(e,t){var n=e;return e&&e.method&&e.uri&&!e.iv&&(n=new s.default,n.method=e.method,n.baseuri=e.baseuri,n.reluri=e.reluri,n.iv=this.createInitializationVector(t)),n}},{key:"url",get:function(){return!this._url&&this.relurl&&(this._url=o.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},set:function(e){this._url=e}},{key:"byteRange",get:function(){if(!this._byteRange&&!this.rawByteRange)return[];if(this._byteRange)return this._byteRange;var e=[];if(this.rawByteRange){var t=this.rawByteRange.split("@",2);if(1===t.length){var n=this.lastByteRangeEndOffset;e[0]=n||0}else e[0]=parseInt(t[1]);e[1]=parseInt(t[0])+e[0],this._byteRange=e}return e}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"decryptdata",get:function(){return this._decryptdata||(this._decryptdata=this.fragmentDecryptdataFromLevelkey(this.levelkey,this.sn)),this._decryptdata}},{key:"endProgramDateTime",get:function(){if(!Number.isFinite(this.programDateTime))return null;var e=Number.isFinite(this.duration)?this.duration:0;return this.programDateTime+1e3*e}},{key:"encrypted",get:function(){return!(!this.decryptdata||null===this.decryptdata.uri||null!==this.decryptdata.key)}}],[{key:"ElementaryStreamTypes",get:function(){return{AUDIO:"audio",VIDEO:"video"}}}]),e}();t.default=f,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(42),o=g(i),a=n(43),s=g(a),l=n(44),u=g(l),c=n(2),d=n(0),f=n(1),h=g(f),p=n(5);function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var y=(0,p.getSelfScope)(),m=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.removePKCS7Padding,o=void 0===i||i;if(v(this,e),this.logEnabled=!0,this.observer=t,this.config=n,this.removePKCS7Padding=o,o)try{var a=y.crypto;a&&(this.subtle=a.subtle||a.webkitSubtle)}catch(s){}this.disableWebCrypto=!this.subtle}return r(e,[{key:"isSync",value:function(){return this.disableWebCrypto&&this.config.enableSoftwareAES}},{key:"decrypt",value:function(e,t,n,r){var i=this;if(this.disableWebCrypto&&this.config.enableSoftwareAES){this.logEnabled&&(d.logger.log("JS AES decrypt"),this.logEnabled=!1);var a=this.decryptor;a||(this.decryptor=a=new u.default),a.expandKey(t),r(a.decrypt(e,0,n,this.removePKCS7Padding))}else{this.logEnabled&&(d.logger.log("WebCrypto AES decrypt"),this.logEnabled=!1);var l=this.subtle;this.key!==t&&(this.key=t,this.fastAesKey=new s.default(l,t)),this.fastAesKey.expandKey().then((function(a){var s=new o.default(l,n);s.decrypt(e,a).catch((function(o){i.onWebCryptoError(o,e,t,n,r)})).then((function(e){r(e)}))})).catch((function(o){i.onWebCryptoError(o,e,t,n,r)}))}}},{key:"onWebCryptoError",value:function(e,t,n,r,i){this.config.enableSoftwareAES?(d.logger.log("WebCrypto Error, disable WebCrypto API"),this.disableWebCrypto=!0,this.logEnabled=!0,this.decrypt(t,n,r,i)):(d.logger.error("decrypting error : "+e.message),this.observer.trigger(h.default.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.FRAG_DECRYPT_ERROR,fatal:!0,reason:e.message}))}},{key:"destroy",value:function(){var e=this.decryptor;e&&(e.destroy(),this.decryptor=void 0)}}]),e}();t.default=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(){if("undefined"!==typeof window)return window.MediaSource||window.WebKitMediaSource}Object.defineProperty(t,"__esModule",{value:!0}),t.getMediaSource=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.State=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(28),a=c(o),s=n(6),l=n(4),u=n(0);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=t.State={STOPPED:"STOPPED",STARTING:"STARTING",IDLE:"IDLE",PAUSED:"PAUSED",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BUFFER_FLUSHING:"BUFFER_FLUSHING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},g=function(e){function t(){return d(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"doTick",value:function(){}},{key:"startLoad",value:function(){}},{key:"stopLoad",value:function(){var e=this.fragCurrent;e&&(e.loader&&e.loader.abort(),this.fragmentTracker.removeFragment(e)),this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=p.STOPPED}},{key:"_streamEnded",value:function(e,t){var n=this.fragCurrent,r=this.fragmentTracker;if(!t.live&&n&&!n.backtracked&&n.sn===t.endSN&&!e.nextStart){var i=r.getState(n);return i===s.FragmentState.PARTIAL||i===s.FragmentState.OK}return!1}},{key:"onMediaSeeking",value:function(){var e=this.config,t=this.media,n=this.mediaBuffer,r=this.state,i=t?t.currentTime:null,o=l.BufferHelper.bufferInfo(n||t,i,this.config.maxBufferHole);if(Number.isFinite(i)&&u.logger.log("media seeking to "+i.toFixed(3)),r===p.FRAG_LOADING){var a=this.fragCurrent;if(0===o.len&&a){var s=e.maxFragLookUpTolerance,c=a.start-s,d=a.start+a.duration+s;i<c||i>d?(a.loader&&(u.logger.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),a.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.state=p.IDLE):u.logger.log("seeking outside of buffer but within currently loaded fragment range")}}else r===p.ENDED&&(0===o.len&&(this.fragPrevious=null,this.fragCurrent=null),this.state=p.IDLE);t&&(this.lastCurrentTime=i),this.loadedmetadata||(this.nextLoadPosition=this.startPosition=i),this.tick()}},{key:"onMediaEnded",value:function(){this.startPosition=this.lastCurrentTime=0}},{key:"onHandlerDestroying",value:function(){this.stopLoad(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onHandlerDestroying",this).call(this)}},{key:"onHandlerDestroyed",value:function(){this.state=p.STOPPED,this.fragmentTracker=null}}]),t}(a.default);t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(1),a=g(o),s=n(3),l=g(s),u=n(2),c=n(0),d=n(16),f=g(d),h=n(35),p=g(h);function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function m(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=window,x=b.performance,_={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},w={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"},S=function(e){function t(e){v(this,t);var n=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,a.default.MANIFEST_LOADING,a.default.LEVEL_LOADING,a.default.AUDIO_TRACK_LOADING,a.default.SUBTITLE_TRACK_LOADING));return n.loaders={},n}return m(t,e),r(t,[{key:"createInternalLoader",value:function(e){var t=this.hls.config,n=t.pLoader,r=t.loader,i=n||r,o=new i(t);return e.loader=o,this.loaders[e.type]=o,o}},{key:"getInternalLoader",value:function(e){return this.loaders[e.type]}},{key:"resetInternalLoader",value:function(e){this.loaders[e]&&delete this.loaders[e]}},{key:"destroyInternalLoaders",value:function(){for(var e in this.loaders){var t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}},{key:"destroy",value:function(){this.destroyInternalLoaders(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"onManifestLoading",value:function(e){this.load(e.url,{type:_.MANIFEST,level:0,id:null})}},{key:"onLevelLoading",value:function(e){this.load(e.url,{type:_.LEVEL,level:e.level,id:e.id})}},{key:"onAudioTrackLoading",value:function(e){this.load(e.url,{type:_.AUDIO_TRACK,level:null,id:e.id})}},{key:"onSubtitleTrackLoading",value:function(e){this.load(e.url,{type:_.SUBTITLE_TRACK,level:null,id:e.id})}},{key:"load",value:function(e,t){var n=this.hls.config;c.logger.debug("Loading playlist of type "+t.type+", level: "+t.level+", id: "+t.id);var r=this.getInternalLoader(t);if(r){var i=r.context;if(i&&i.url===e)return c.logger.trace("playlist request ongoing"),!1;c.logger.warn("aborting previous loader for type: "+t.type),r.abort()}var o=void 0,a=void 0,s=void 0,l=void 0;switch(t.type){case _.MANIFEST:o=n.manifestLoadingMaxRetry,a=n.manifestLoadingTimeOut,s=n.manifestLoadingRetryDelay,l=n.manifestLoadingMaxRetryTimeout;break;case _.LEVEL:o=0,a=n.levelLoadingTimeOut;break;default:o=n.levelLoadingMaxRetry,a=n.levelLoadingTimeOut,s=n.levelLoadingRetryDelay,l=n.levelLoadingMaxRetryTimeout;break}r=this.createInternalLoader(t),t.url=e,t.responseType=t.responseType||"";var u={timeout:a,maxRetry:o,retryDelay:s,maxRetryDelay:l},d={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};return c.logger.debug("Calling internal loader delegate for URL: "+e),r.load(t,u,d),!0}},{key:"loadsuccess",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(n.isSidxRequest)return this._handleSidxRequest(e,n),void this._handlePlaylistLoaded(e,t,n,r);this.resetInternalLoader(n.type);var i=e.data;t.tload=x.now(),0===i.indexOf("#EXTM3U")?i.indexOf("#EXTINF:")>0||i.indexOf("#EXT-X-TARGETDURATION:")>0?this._handleTrackOrLevelPlaylist(e,t,n,r):this._handleMasterPlaylist(e,t,n,r):this._handleManifestParsingError(e,n,"no EXTM3U delimiter",r)}},{key:"loaderror",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._handleNetworkError(t,n,!1,e)}},{key:"loadtimeout",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._handleNetworkError(t,n,!0)}},{key:"_handleMasterPlaylist",value:function(e,n,r,i){var o=this.hls,s=e.data,l=t.getResponseUrl(e,r),u=p.default.parseMasterPlaylist(s,l);if(u.length){var d=u.map((function(e){return{id:e.attrs.AUDIO,codec:e.audioCodec}})),f=p.default.parseMasterPlaylistMedia(s,l,"AUDIO",d),h=p.default.parseMasterPlaylistMedia(s,l,"SUBTITLES");if(f.length){var g=!1;f.forEach((function(e){e.url||(g=!0)})),!1===g&&u[0].audioCodec&&!u[0].attrs.AUDIO&&(c.logger.log("audio codec signaled in quality level, but no embedded audio track signaled, create one"),f.unshift({type:"main",name:"main"}))}o.trigger(a.default.MANIFEST_LOADED,{levels:u,audioTracks:f,subtitles:h,url:l,stats:n,networkDetails:i})}else this._handleManifestParsingError(e,r,"no level found in manifest",i)}},{key:"_handleTrackOrLevelPlaylist",value:function(e,n,r,i){var o=this.hls,s=r.id,l=r.level,u=r.type,c=t.getResponseUrl(e,r),d=Number.isFinite(s)?s:0,f=Number.isFinite(l)?l:d,h=t.mapContextToLevelType(r),g=p.default.parseLevelPlaylist(e.data,c,f,h,d);if(g.tload=n.tload,u===_.MANIFEST){var v={url:c,details:g};o.trigger(a.default.MANIFEST_LOADED,{levels:[v],audioTracks:[],url:c,stats:n,networkDetails:i})}if(n.tparsed=x.now(),g.needSidxRanges){var y=g.initSegment.url;this.load(y,{isSidxRequest:!0,type:u,level:l,levelDetails:g,id:s,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer"})}else r.levelDetails=g,this._handlePlaylistLoaded(e,n,r,i)}},{key:"_handleSidxRequest",value:function(e,t){var n=f.default.parseSegmentIndex(new Uint8Array(e.data));if(n){var r=n.references,i=t.levelDetails;r.forEach((function(e,t){var n=e.info,r=i.fragments[t];0===r.byteRange.length&&(r.rawByteRange=String(1+n.end-n.start)+"@"+String(n.start))})),i.initSegment.rawByteRange=String(n.moovEndOffset)+"@0"}}},{key:"_handleManifestParsingError",value:function(e,t,n,r){this.hls.trigger(a.default.ERROR,{type:u.ErrorTypes.NETWORK_ERROR,details:u.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:!0,url:e.url,reason:n,networkDetails:r})}},{key:"_handleNetworkError",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;c.logger.info("A network error occured while loading a "+e.type+"-type playlist");var i=void 0,o=void 0,s=this.getInternalLoader(e);switch(e.type){case _.MANIFEST:i=n?u.ErrorDetails.MANIFEST_LOAD_TIMEOUT:u.ErrorDetails.MANIFEST_LOAD_ERROR,o=!0;break;case _.LEVEL:i=n?u.ErrorDetails.LEVEL_LOAD_TIMEOUT:u.ErrorDetails.LEVEL_LOAD_ERROR,o=!1;break;case _.AUDIO_TRACK:i=n?u.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,o=!1;break;default:o=!1}s&&(s.abort(),this.resetInternalLoader(e.type));var l={type:u.ErrorTypes.NETWORK_ERROR,details:i,fatal:o,url:s.url,loader:s,context:e,networkDetails:t};r&&(l.response=r),this.hls.trigger(a.default.ERROR,l)}},{key:"_handlePlaylistLoaded",value:function(e,n,r,i){var o=r.type,s=r.level,l=r.id,u=r.levelDetails;if(u.targetduration){var c=t.canHaveQualityLevels(r.type);if(c)this.hls.trigger(a.default.LEVEL_LOADED,{details:u,level:s||0,id:l||0,stats:n,networkDetails:i});else switch(o){case _.AUDIO_TRACK:this.hls.trigger(a.default.AUDIO_TRACK_LOADED,{details:u,id:l,stats:n,networkDetails:i});break;case _.SUBTITLE_TRACK:this.hls.trigger(a.default.SUBTITLE_TRACK_LOADED,{details:u,id:l,stats:n,networkDetails:i});break}}else this._handleManifestParsingError(e,r,"invalid target duration",i)}}],[{key:"canHaveQualityLevels",value:function(e){return e!==_.AUDIO_TRACK&&e!==_.SUBTITLE_TRACK}},{key:"mapContextToLevelType",value:function(e){var t=e.type;switch(t){case _.AUDIO_TRACK:return w.AUDIO;case _.SUBTITLE_TRACK:return w.SUBTITLE;default:return w.MAIN}}},{key:"getResponseUrl",value:function(e,t){var n=e.url;return void 0!==n&&0!==n.indexOf("data:")||(n=t.url),n}},{key:"ContextType",get:function(){return _}},{key:"LevelType",get:function(){return w}}]),t}(l.default);t.default=S,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=n(1),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=Math.pow(2,32)-1,c=function(){function e(t,n){l(this,e),this.observer=t,this.remuxer=n}return r(e,[{key:"resetTimeStamp",value:function(e){this.initPTS=e}},{key:"resetInitSegment",value:function(t,n,r,i){if(t&&t.byteLength){var o=this.initData=e.parseInitSegment(t);null==n&&(n="mp4a.40.5"),null==r&&(r="avc1.42e01e");var s={};o.audio&&o.video?s.audiovideo={container:"video/mp4",codec:n+","+r,initSegment:i?t:null}:(o.audio&&(s.audio={container:"audio/mp4",codec:n,initSegment:i?t:null}),o.video&&(s.video={container:"video/mp4",codec:r,initSegment:i?t:null})),this.observer.trigger(a.default.FRAG_PARSING_INIT_SEGMENT,{tracks:s})}else n&&(this.audioCodec=n),r&&(this.videoCodec=r)}},{key:"append",value:function(t,n,r,i){var o=this.initData;o||(this.resetInitSegment(t,this.audioCodec,this.videoCodec,!1),o=this.initData);var s=void 0,l=this.initPTS;if(void 0===l){var u=e.getStartDTS(o,t);this.initPTS=l=u-n,this.observer.trigger(a.default.INIT_PTS_FOUND,{initPTS:l})}e.offsetStartDTS(o,t,l),s=e.getStartDTS(o,t),this.remuxer.remux(o.audio,o.video,null,null,s,r,i,t)}},{key:"destroy",value:function(){}}],[{key:"probe",value:function(t){return e.findBox({data:t,start:0,end:Math.min(t.length,16384)},["moof"]).length>0}},{key:"bin2str",value:function(e){return String.fromCharCode.apply(null,e)}},{key:"readUint16",value:function(e,t){e.data&&(t+=e.start,e=e.data);var n=e[t]<<8|e[t+1];return n<0?65536+n:n}},{key:"readUint32",value:function(e,t){e.data&&(t+=e.start,e=e.data);var n=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3];return n<0?4294967296+n:n}},{key:"writeUint32",value:function(e,t,n){e.data&&(t+=e.start,e=e.data),e[t]=n>>24,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}},{key:"findBox",value:function(t,n){var r=[],i=void 0,o=void 0,a=void 0,s=void 0,l=void 0,u=void 0,c=void 0;if(t.data?(u=t.start,s=t.end,t=t.data):(u=0,s=t.byteLength),!n.length)return null;for(i=u;i<s;)o=e.readUint32(t,i),a=e.bin2str(t.subarray(i+4,i+8)),c=o>1?i+o:s,a===n[0]&&(1===n.length?r.push({data:t,start:i+8,end:c}):(l=e.findBox({data:t,start:i+8,end:c},n.slice(1)),l.length&&(r=r.concat(l)))),i=c;return r}},{key:"parseSegmentIndex",value:function(t){var n=e.findBox(t,["moov"])[0],r=n?n.end:null,i=0,o=e.findBox(t,["sidx"]),a=void 0;if(!o||!o[0])return null;a=[],o=o[0];var s=o.data[0];i=0===s?8:16;var l=e.readUint32(o,i);i+=4;var u=0,c=0;i+=0===s?8:16,i+=2;var d=o.end+c,f=e.readUint16(o,i);i+=2;for(var h=0;h<f;h++){var p=i,g=e.readUint32(o,p);p+=4;var v=2147483647&g,y=(2147483648&g)>>>31;if(1===y)return void console.warn("SIDX has hierarchical references (not supported)");var m=e.readUint32(o,p);p+=4,a.push({referenceSize:v,subsegmentDuration:m,info:{duration:m/l,start:d,end:d+v-1}}),d+=v,p+=4,i=p}return{earliestPresentationTime:u,timescale:l,version:s,referencesCount:f,references:a,moovEndOffset:r}}},{key:"parseInitSegment",value:function(t){var n=[],r=e.findBox(t,["moov","trak"]);return r.forEach((function(t){var r=e.findBox(t,["tkhd"])[0];if(r){var o=r.data[r.start],a=0===o?12:20,s=e.readUint32(r,a),l=e.findBox(t,["mdia","mdhd"])[0];if(l){o=l.data[l.start],a=0===o?12:20;var u=e.readUint32(l,a),c=e.findBox(t,["mdia","hdlr"])[0];if(c){var d=e.bin2str(c.data.subarray(c.start+8,c.start+12)),f={soun:"audio",vide:"video"}[d];if(f){var h=e.findBox(t,["mdia","minf","stbl","stsd"]);if(h.length){h=h[0];var p=e.bin2str(h.data.subarray(h.start+12,h.start+16));i.logger.log("MP4Demuxer:"+f+":"+p+" found")}n[s]={timescale:u,type:f},n[f]={timescale:u,id:s}}}}}})),n}},{key:"getStartDTS",value:function(t,n){var r=void 0,i=void 0,o=void 0;return r=e.findBox(n,["moof","traf"]),i=[].concat.apply([],r.map((function(n){return e.findBox(n,["tfhd"]).map((function(r){var i=void 0,o=void 0,a=void 0;return i=e.readUint32(r,4),o=t[i].timescale||9e4,a=e.findBox(n,["tfdt"]).map((function(t){var n=void 0,r=void 0;return n=t.data[t.start],r=e.readUint32(t,4),1===n&&(r*=Math.pow(2,32),r+=e.readUint32(t,8)),r}))[0],a/o}))}))),o=Math.min.apply(null,i),isFinite(o)?o:0}},{key:"offsetStartDTS",value:function(t,n,r){e.findBox(n,["moof","traf"]).map((function(n){return e.findBox(n,["tfhd"]).map((function(i){var o=e.readUint32(i,4),a=t[o].timescale||9e4;e.findBox(n,["tfdt"]).map((function(t){var n=t.data[t.start],i=e.readUint32(t,4);if(0===n)e.writeUint32(t,4,i-r*a);else{i*=Math.pow(2,32),i+=e.readUint32(t,8),i-=r*a,i=Math.max(i,0);var o=Math.floor(i/(u+1)),s=Math.floor(i%(u+1));e.writeUint32(t,4,o),e.writeUint32(t,8,s)}}))}))}))}}]),e}();t.default=c,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(8),o=a(i);function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function(){function e(){s(this,e),this.method=null,this.key=null,this.iv=null,this._uri=null}return r(e,[{key:"uri",get:function(){return!this._uri&&this.reluri&&(this._uri=o.buildAbsoluteURL(this.baseuri,this.reluri,{alwaysNormalize:!0})),this._uri}}]),e}();t.default=l,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0}};function i(e,t){var n=r[t];return!!n&&!0===n[e.slice(0,4)]}function o(e,t){return window.MediaSource.isTypeSupported((t||"video")+'/mp4;codecs="'+e+'"')}t.isCodecType=i,t.isCodecSupportedInMp4=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=(n(20),n(41)),o=v(i),a=n(1),s=g(a),l=n(21),u=g(l),c=n(0),d=n(2),f=n(13),h=n(5),p=n(24);function g(e){return e&&e.__esModule?e:{default:e}}function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var m=(0,h.getSelfScope)(),b=(0,f.getMediaSource)(),x=function(){function e(t,n){var r=this;y(this,e),this.hls=t,this.id=n;var i=this.observer=new p.Observer,a=t.config,l=function(e,n){n=n||{},n.frag=r.frag,n.id=r.id,t.trigger(e,n)};i.on(s.default.FRAG_DECRYPTED,l),i.on(s.default.FRAG_PARSING_INIT_SEGMENT,l),i.on(s.default.FRAG_PARSING_DATA,l),i.on(s.default.FRAG_PARSED,l),i.on(s.default.ERROR,l),i.on(s.default.FRAG_PARSING_METADATA,l),i.on(s.default.FRAG_PARSING_USERDATA,l),i.on(s.default.INIT_PTS_FOUND,l);var f={mp4:b.isTypeSupported("video/mp4"),mpeg:b.isTypeSupported("audio/mpeg"),mp3:b.isTypeSupported('audio/mp4; codecs="mp3"')},h=navigator.vendor;if(a.enableWorker&&"undefined"!==typeof Worker){c.logger.log("demuxing in webworker");var g=void 0;try{g=this.w=o(55),this.onwmsg=this.onWorkerMessage.bind(this),g.addEventListener("message",this.onwmsg),g.onerror=function(e){t.trigger(s.default.ERROR,{type:d.ErrorTypes.OTHER_ERROR,details:d.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",err:{message:e.message+" ("+e.filename+":"+e.lineno+")"}})},g.postMessage({cmd:"init",typeSupported:f,vendor:h,id:n,config:JSON.stringify(a)})}catch(v){c.logger.warn("Error in worker:",v),c.logger.error("Error while initializing DemuxerWorker, fallback on DemuxerInline"),g&&m.URL.revokeObjectURL(g.objectURL),this.demuxer=new u.default(i,f,a,h),this.w=void 0}}else this.demuxer=new u.default(i,f,a,h)}return r(e,[{key:"destroy",value:function(){var e=this.w;if(e)e.removeEventListener("message",this.onwmsg),e.terminate(),this.w=null;else{var t=this.demuxer;t&&(t.destroy(),this.demuxer=null)}var n=this.observer;n&&(n.removeAllListeners(),this.observer=null)}},{key:"push",value:function(e,t,n,r,i,o,a,s){var l=this.w,u=Number.isFinite(i.startPTS)?i.startPTS:i.start,d=i.decryptdata,f=this.frag,h=!(f&&i.cc===f.cc),p=!(f&&i.level===f.level),g=f&&i.sn===f.sn+1,v=!p&&g;if(h&&c.logger.log(this.id+":discontinuity detected"),p&&c.logger.log(this.id+":switch detected"),this.frag=i,l)l.postMessage({cmd:"demux",data:e,decryptdata:d,initSegment:t,audioCodec:n,videoCodec:r,timeOffset:u,discontinuity:h,trackSwitch:p,contiguous:v,duration:o,accurateTimeOffset:a,defaultInitPTS:s},e instanceof ArrayBuffer?[e]:[]);else{var y=this.demuxer;y&&y.push(e,d,t,n,r,u,h,p,v,o,a,s)}}},{key:"onWorkerMessage",value:function(e){var t=e.data,n=this.hls;switch(t.event){case"init":m.URL.revokeObjectURL(this.w.objectURL);break;case s.default.FRAG_PARSING_DATA:t.data.data1=new Uint8Array(t.data1),t.data2&&(t.data.data2=new Uint8Array(t.data2));default:t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,n.trigger(t.event,t.data);break}}}]),e}();t.default=x,e.exports=t["default"]},function(e,t,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function a(e){console&&console.warn&&console.warn(e)}r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function l(){l.init.call(this)}e.exports=l,e.exports.once=x,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function d(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,s;if(c(n),o=e._events,void 0===o?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"===typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=d(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,a(l)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function g(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?b(i):y(i,i.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function b(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function x(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return d(this)},l.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"===typeof l)o(l,this,t);else{var u=l.length,c=y(l,u);for(n=0;n<u;++n)o(c[n],this,t)}return!0},l.prototype.addListener=function(e,t){return f(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return f(this,e,t,!0)},l.prototype.once=function(e,t){return c(t),this.on(e,p(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,p(this,e,t)),this},l.prototype.removeListener=function(e,t){var n,r,i,o,a;if(c(t),r=this._events,void 0===r)return this;if(n=r[e],void 0===n)return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():m(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)i=o[r],"removeListener"!==i&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],"function"===typeof t)this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return g(this,e,!0)},l.prototype.rawListeners=function(e){return g(this,e,!1)},l.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},l.prototype.listenerCount=v,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=S(i),a=n(2),s=n(12),l=S(s),u=n(45),c=S(u),d=n(16),f=S(d),h=n(46),p=S(h),g=n(49),v=S(g),y=n(50),m=S(y),b=n(53),x=S(b),_=n(5),w=n(0);function S(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var O=(0,_.getSelfScope)(),T=void 0;try{T=O.performance.now.bind(O.performance)}catch(C){w.logger.debug("Unable to use Performance API on this environment"),T=O.Date.now}var E=function(){function e(t,n,r,i){k(this,e),this.observer=t,this.typeSupported=n,this.config=r,this.vendor=i}return r(e,[{key:"destroy",value:function(){var e=this.demuxer;e&&e.destroy()}},{key:"push",value:function(e,t,n,r,i,a,s,u,c,d,f,h){var p=this;if(e.byteLength>0&&null!=t&&null!=t.key&&"AES-128"===t.method){var g=this.decrypter;null==g&&(g=this.decrypter=new l.default(this.observer,this.config));var v=T();g.decrypt(e,t.key.buffer,t.iv.buffer,(function(e){var l=T();p.observer.trigger(o.default.FRAG_DECRYPTED,{stats:{tstart:v,tdecrypt:l}}),p.pushDecrypted(new Uint8Array(e),t,new Uint8Array(n),r,i,a,s,u,c,d,f,h)}))}else this.pushDecrypted(new Uint8Array(e),t,new Uint8Array(n),r,i,a,s,u,c,d,f,h)}},{key:"pushDecrypted",value:function(e,t,n,r,i,s,l,u,d,h,g,y){var b=this.demuxer;if(!b||(l||u)&&!this.probe(e)){for(var _=this.observer,w=this.typeSupported,S=this.config,k=[{demux:p.default,remux:m.default},{demux:f.default,remux:x.default},{demux:c.default,remux:m.default},{demux:v.default,remux:m.default}],O=0,T=k.length;O<T;O++){var E=k[O],C=E.demux.probe;if(C(e)){var A=this.remuxer=new E.remux(_,S,w,this.vendor);b=new E.demux(_,A,S,w),this.probe=C;break}}if(!b)return void _.trigger(o.default.ERROR,{type:a.ErrorTypes.MEDIA_ERROR,details:a.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"});this.demuxer=b}var M=this.remuxer;(l||u)&&(b.resetInitSegment(n,r,i,h),M.resetInitSegment()),l&&(b.resetTimeStamp(y),M.resetTimeStamp(y)),"function"===typeof b.setDecryptData&&b.setDecryptData(t),b.append(e,s,d,g)}}]),e}();t.default=E,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAudioConfig=l,t.isHeaderPattern=u,t.getHeaderLength=c,t.getFullFrameLength=d,t.isHeader=f,t.probe=h,t.initTrackConfig=p,t.getFrameDuration=g,t.parseFrameHeader=v,t.appendFrame=y;var r=n(0),i=n(2),o=n(1),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n,o){var s=void 0,l=void 0,u=void 0,c=void 0,d=void 0,f=navigator.userAgent.toLowerCase(),h=o,p=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];if(s=1+((192&t[n+2])>>>6),l=(60&t[n+2])>>>2,!(l>p.length-1))return c=(1&t[n+2])<<2,c|=(192&t[n+3])>>>6,r.logger.log("manifest codec:"+o+",ADTS data:type:"+s+",sampleingIndex:"+l+"["+p[l]+"Hz],channelConfig:"+c),/firefox/i.test(f)?l>=6?(s=5,d=new Array(4),u=l-3):(s=2,d=new Array(2),u=l):-1!==f.indexOf("android")?(s=2,d=new Array(2),u=l):(s=5,d=new Array(4),o&&(-1!==o.indexOf("mp4a.40.29")||-1!==o.indexOf("mp4a.40.5"))||!o&&l>=6?u=l-3:((o&&-1!==o.indexOf("mp4a.40.2")&&(l>=6&&1===c||/vivaldi/i.test(f))||!o&&1===c)&&(s=2,d=new Array(2)),u=l)),d[0]=s<<3,d[0]|=(14&l)>>1,d[1]|=(1&l)<<7,d[1]|=c<<3,5===s&&(d[1]|=(14&u)>>1,d[2]=(1&u)<<7,d[2]|=8,d[3]=0),{config:d,samplerate:p[l],channelCount:c,codec:"mp4a.40."+s,manifestCodec:h};e.trigger(a.default.ERROR,{type:i.ErrorTypes.MEDIA_ERROR,details:i.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+l})}function u(e,t){return 255===e[t]&&240===(246&e[t+1])}function c(e,t){return 1&e[t+1]?7:9}function d(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function f(e,t){return!!(t+1<e.length&&u(e,t))}function h(e,t){if(t+1<e.length&&u(e,t)){var n=c(e,t),r=n;t+5<e.length&&(r=d(e,t));var i=t+r;if(i===e.length||i+1<e.length&&u(e,i))return!0}return!1}function p(e,t,n,i,o){if(!e.samplerate){var a=l(t,n,i,o);e.config=a.config,e.samplerate=a.samplerate,e.channelCount=a.channelCount,e.codec=a.codec,e.manifestCodec=a.manifestCodec,r.logger.log("parsed codec:"+e.codec+",rate:"+a.samplerate+",nb channel:"+a.channelCount)}}function g(e){return 9216e4/e}function v(e,t,n,r,i){var o=void 0,a=void 0,s=void 0,l=e.length;if(o=c(e,t),a=d(e,t),a-=o,a>0&&t+o+a<=l)return s=n+r*i,{headerLength:o,frameLength:a,stamp:s}}function y(e,t,n,r,i){var o=g(e.samplerate),a=v(t,n,r,i,o);if(a){var s=a.stamp,l=a.headerLength,u=a.frameLength,c={unit:t.subarray(n+l,n+l+u),pts:s,dts:s};return e.samples.push(c),e.len+=u,{sample:c,length:u+l}}}n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={BitratesMap:[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],SamplingRateMap:[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],SamplesCoefficients:[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],BytesInSlot:[0,1,1,4],appendFrame:function(e,t,n,r,i){if(!(n+24>t.length)){var o=this.parseHeader(t,n);if(o&&n+o.frameLength<=t.length){var a=9e4*o.samplesPerFrame/o.sampleRate,s=r+i*a,l={unit:t.subarray(n,n+o.frameLength),pts:s,dts:s};return e.config=[],e.channelCount=o.channelCount,e.samplerate=o.sampleRate,e.samples.push(l),e.len+=o.frameLength,{sample:l,length:o.frameLength}}}},parseHeader:function(e,t){var n=e[t+1]>>3&3,i=e[t+1]>>1&3,o=e[t+2]>>4&15,a=e[t+2]>>2&3,s=e[t+2]>>1&1;if(1!==n&&0!==o&&15!==o&&3!==a){var l=3===n?3-i:3===i?3:4,u=1e3*r.BitratesMap[14*l+o-1],c=3===n?0:2===n?1:2,d=r.SamplingRateMap[3*c+a],f=e[t+3]>>6===3?1:2,h=r.SamplesCoefficients[n][i],p=r.BytesInSlot[i],g=8*h*p,v=parseInt(h*u/d+s,10)*p;return{sampleRate:d,channelCount:f,frameLength:v,samplesPerFrame:g}}},isHeaderPattern:function(e,t){return 255===e[t]&&224===(224&e[t+1])&&0!==(6&e[t+1])},isHeader:function(e,t){return!!(t+1<e.length&&this.isHeaderPattern(e,t))},probe:function(e,t){if(t+1<e.length&&this.isHeaderPattern(e,t)){var n=4,r=this.parseHeader(e,t),i=n;r&&r.frameLength&&(i=r.frameLength);var o=t+i;if(o===e.length||o+1<e.length&&this.isHeaderPattern(e,o))return!0}return!1}};t.default=r,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observer=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(54);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.Observer=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),r(t,[{key:"trigger",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.emit.apply(this,[e,e].concat(n))}}]),t}(i.EventEmitter)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={toString:function(e){for(var t="",n=e.length,r=0;r<n;r++)t+="["+e.start(r).toFixed(3)+","+e.end(r).toFixed(3)+"]";return t}};t.default=r,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findFirstFragWithCC=s,t.findFragWithCC=l,t.shouldAlignOnDiscontinuities=u,t.findDiscontinuousReferenceFrag=c,t.adjustPts=d,t.alignStream=f,t.alignDiscontinuities=h,t.alignPDT=p;var r=n(9),i=a(r),o=n(0);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=null,r=0;r<e.length;r+=1){var i=e[r];if(i&&i.cc===t){n=i;break}}return n}function l(e,t){return i.default.search(e,(function(e){return e.cc<t?1:e.cc>t?-1:0}))}function u(e,t,n){var r=!1;return t&&t.details&&n&&(n.endCC>n.startCC||e&&e.cc<n.startCC)&&(r=!0),r}function c(e,t){var n=e.fragments,r=t.fragments;if(r.length&&n.length){var i=s(n,r[0].cc);if(i&&(!i||i.startPTS))return i;o.logger.log("No frag in previous level to align on")}else o.logger.log("No fragments to align")}function d(e,t){t.fragments.forEach((function(t){if(t){var n=t.start+e;t.start=t.startPTS=n,t.endPTS=n+t.duration}})),t.PTSKnown=!0}function f(e,t,n){h(e,n,t),!n.PTSKnown&&t&&p(n,t.details)}function h(e,t,n){if(u(e,n,t)){var r=c(n.details,t);r&&(o.logger.log("Adjusting PTS using last level due to CC increase within current level"),d(r.start,t))}}function p(e,t){if(t&&t.fragments.length){if(!e.hasProgramDateTime||!t.hasProgramDateTime)return;var n=t.fragments[0].programDateTime,r=e.fragments[0].programDateTime,i=(r-n)/1e3+t.fragments[0].start;Number.isFinite(i)&&(o.logger.log("adjusting PTS using programDateTime delta, sliding:"+i.toFixed(3)),d(i,e))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findFragmentByPDT=a,t.findFragmentByPTS=s,t.fragmentWithinToleranceTest=l,t.pdtWithinToleranceTest=u;var r=n(9),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){if(!Array.isArray(e)||!e.length||!Number.isFinite(t))return null;if(t<e[0].programDateTime)return null;if(t>=e[e.length-1].endProgramDateTime)return null;n=n||0;for(var r=0;r<e.length;++r){var i=e[r];if(u(t,n,i))return i}return null}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=e?t[e.sn-t[0].sn+1]:null;return o&&!l(n,r,o)?o:i.default.search(t,l.bind(null,n,r))}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments[2],r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=e?1:n.start-r>e&&n.start?-1:0}function u(e,t,n){var r=1e3*Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.endProgramDateTime-r>e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(3),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(e){var n;s(this,t);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=l(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this,e].concat(i)));return a._tickInterval=null,a._tickTimer=null,a._tickCallCount=0,a._boundTick=a.tick.bind(a),a}return u(t,e),r(t,[{key:"onHandlerDestroying",value:function(){this.clearNextTick(),this.clearInterval()}},{key:"hasInterval",value:function(){return!!this._tickInterval}},{key:"hasNextTick",value:function(){return!!this._tickTimer}},{key:"setInterval",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return!this._tickInterval&&(this._tickInterval=setInterval(this._boundTick,e),!0)}))},{key:"clearInterval",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return!!this._tickInterval&&(clearInterval(this._tickInterval),this._tickInterval=null,!0)}))},{key:"clearNextTick",value:function(){return!!this._tickTimer&&(clearTimeout(this._tickTimer),this._tickTimer=null,!0)}},{key:"tick",value:function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&(this.clearNextTick(),this._tickTimer=setTimeout(this._boundTick,0)),this._tickCallCount=0)}},{key:"doTick",value:function(){}}]),t}(o.default);t.default=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){var n=null;try{n=new window.Event("addtrack")}catch(r){n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}function i(e){if(e&&e.cues)while(e.cues.length>0)e.removeCue(e.cues[0])}Object.defineProperty(t,"__esModule",{value:!0}),t.sendAddTrackEvent=r,t.clearCurrentCues=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fixLineBreaks=void 0;var r=n(71),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){return{decode:function(e){if(!e)return"";if("string"!==typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}};function s(){this.window=window,this.state="INITIAL",this.buffer="",this.decoder=new a,this.regionList=[]}function l(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function u(){this.values=Object.create(null)}function c(e,t,n,r){var i=r?e.split(r):[e];for(var o in i)if("string"===typeof i[o]){var a=i[o].split(n);if(2===a.length){var s=a[0],l=a[1];t(s,l)}}}u.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t),t>=0&&t<=100))&&(this.set(e,t),!0)}};var d=new i.default(0,0,0),f="middle"===d.align?"middle":"center";function h(e,t,n){var r=e;function i(){var t=l(e);if(null===t)throw new Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function o(e,t){var r=new u;c(e,(function(e,t){switch(e){case"region":for(var i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":var o=t.split(","),a=o[0];r.integer(e,a),r.percent(e,a)&&r.set("snapToLines",!1),r.alt(e,a,["auto"]),2===o.length&&r.alt("lineAlign",o[1],["start",f,"end"]);break;case"position":o=t.split(","),r.percent(e,o[0]),2===o.length&&r.alt("positionAlign",o[1],["start",f,"end","line-left","line-right","auto"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start",f,"end","left","right"]);break}}),/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");var i=r.get("line","auto");"auto"===i&&-1===d.line&&(i=-1),t.line=i,t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100),t.align=r.get("align",f);var o=r.get("position","auto");"auto"===o&&50===d.position&&(o="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=o}function a(){e=e.replace(/^\s+/,"")}if(a(),t.startTime=i(),a(),"--\x3e"!==e.substr(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.substr(3),a(),t.endTime=i(),a(),o(e,t)}function p(e){return e.replace(/<br(?: \/)?>/gi,"\n")}s.prototype={parse:function(e){var t=this;function n(){var e=t.buffer,n=0;e=p(e);while(n<e.length&&"\r"!==e[n]&&"\n"!==e[n])++n;var r=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),r}function r(e){c(e,(function(e,t){switch(e){case"Region":break}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var o=void 0;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;o=n();var a=o.match(/^()?WEBVTT([ \t].*)?$/);if(!a||!a[0])throw new Error("Malformed WebVTT signature.");t.state="HEADER"}var s=!1;while(t.buffer){if(!/\r\n|\n/.test(t.buffer))return this;switch(s?s=!1:o=n(),t.state){case"HEADER":/:/.test(o)?r(o):o||(t.state="ID");continue;case"NOTE":o||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(o)){t.state="NOTE";break}if(!o)continue;if(t.cue=new i.default(0,0,""),t.state="CUE",-1===o.indexOf("--\x3e")){t.cue.id=o;continue}case"CUE":try{h(o,t.cue,t.regionList)}catch(u){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var l=-1!==o.indexOf("--\x3e");if(!o||l&&(s=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=o;continue;case"BADCUE":o||(t.state="ID");continue}}}catch(u){"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new Error("Malformed WebVTT signature.")}catch(t){throw t}return e.onflush&&e.onflush(),this}},t.fixLineBreaks=p,t.default=s},function(e,t,n){e.exports=n(32)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(33),s=f(a),l=n(34),u=f(l),c=n(80),d=f(c);function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function g(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(e){h(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.hlsOpts=e.hlsOpts||{};var r=s.default.util,i=n;if(i.once("complete",(function(){if(i.config.isLive&&(r.addClass(i.root,"xgplayer-is-live"),!r.findDom(i.controls,".xgplayer-live"))){var e=r.createDom("xg-live","正在直播",{},"xgplayer-live");i.controls.appendChild(e)}})),n.browser=d.default.getBrowserVersion(),void 0===i.config.useHls){if("mobile"===s.default.sniffer.device&&"MacIntel"!==navigator.platform&&"Win32"!==navigator.platform||n.browser.indexOf("Safari")>-1)return p(n)}else if(!i.config.useHls)return p(n);Number.isFinite=Number.isFinite||function(e){return"number"===typeof e&&isFinite(e)};var o=void 0;return o=new u.default(n.hlsOpts),n.hls=o,Object.defineProperty(i,"src",{get:function(){return i.currentSrc},set:function(e){r.removeClass(i.root,"xgplayer-is-live");var t=document.querySelector(".xgplayer-live");t&&t.parentNode.removeChild(t),i.autoplay=!0;var n=i.paused;n||i.pause(),i.hls.stopLoad(),i.hls.detachMedia(),i.hls.destroy(),i.hls=new u.default(i.hlsOpts),i.register(e),i.once("canplay",(function(){i.play().catch((function(e){}))})),i.hls.loadSource(e),i.hls.attachMedia(i.video)},configurable:!0}),n.register(n.config.url),n.once("complete",(function(){o.attachMedia(i.video),i.once("canplay",(function(){i.play().catch((function(e){}))}))})),n.once("destroy",(function(){o.stopLoad()})),n}return g(t,e),i(t,[{key:"switchURL",value:function(e){var t=this;t.url=e,t.config.url=e;var n=t.currentTime;s.default.util.addClass(t.root,"xgplayer-is-enter"),t.once("playing",(function(){s.default.util.removeClass(t.root,"xgplayer-is-enter")})),t.once("canplay",(function(){t.currentTime=n,t.play()})),"object"===r(t.hls)&&(t.hls.originUrl=e),t.src=e}},{key:"register",value:function(e){var t=this.hls,n=s.default.util,r=this;t.on(u.default.Events.MEDIA_ATTACHED,(function(){t.loadSource(e)})),t.on(u.default.Events.LEVEL_LOADED,(function(e,i){if(!t.inited&&(t.inited=!0,i&&i.details&&i.details.live&&(n.addClass(r.root,"xgplayer-is-live"),!n.findDom(r.root,".xgplayer-live")))){var o=n.createDom("xg-live","正在直播",{},"xgplayer-live");r.controls.appendChild(o)}})),t.on(u.default.Events.ERROR,(function(e,n){if(r.emit("HLS_ERROR",{errorType:n.type,errorDetails:n.details,errorFatal:n.fatal}),n.fatal)switch(n.type){case u.default.ErrorTypes.NETWORK_ERROR:t.startLoad();break;case u.default.ErrorTypes.MEDIA_ERROR:t.recoverMediaError();break;default:r.emit("error",n)}})),this._statistics()}},{key:"_statistics",value:function(){var e={speed:0,playerType:"HlsPlayer"},t={videoDataRate:0,audioDataRate:0},n=this.hls,r=this;n.on(u.default.Events.FRAG_LOAD_PROGRESS,(function(t,n){e.speed=n.stats.loaded/1e3})),n.on(u.default.Events.FRAG_PARSING_DATA,(function(e,n){"video"===n.type&&(t.fps=parseInt(n.nb/(n.endPTS-n.startPTS)))})),n.on(u.default.Events.FRAG_PARSING_INIT_SEGMENT,(function(e,n){if(t.hasAudio=!!(n&&n.tracks&&n.tracks.audio),t.hasVideo=!!(n&&n.tracks&&n.tracks.video),t.hasAudio&&n.tracks.audio){var i=n.tracks.audio;t.audioChannelCount=i.metadata&&i.metadata.channelCount?i.metadata.channelCount:0,t.audioCodec=i.codec}if(t.hasVideo&&n.tracks.video){var o=n.tracks.video;t.videoCodec=o.codec,t.width=o.metadata&&o.metadata.width?o.metadata.width:0,t.height=o.metadata&&o.metadata.height?o.metadata.height:0}t.duration=n.frag&&n.frag.duration?n.frag.duration:0,t.level=n.frag&&n.frag.level?n.frag.level:0,(t.videoCodec||t.audioCodec)&&(t.mimeType='video/hls; codecs="'+t.videoCodec+";"+t.audioCodec+'"'),r.mediainfo=t,r.emit("media_info",t)})),this._statisticsTimmer=setInterval((function(){r.emit("statistics_info",e),e.speed=0}),1e3)}},{key:"destroy",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),clearInterval(this._statisticsTimmer)}}]),t}(s.default);v.isSupported=u.default.isSupported,t.default=v,e.exports=t["default"]},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(8),o=E(i),a=n(2),s=n(15),l=T(s),u=n(38),c=T(u),d=n(39),f=T(d),h=n(6),p=n(40),g=T(p),v=n(57),y=T(v),m=n(58),b=T(m),x=n(59),_=n(0),w=n(60),S=n(1),k=T(S),O=n(24);function T(e){return e&&e.__esModule?e:{default:e}}function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function M(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var L=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};C(this,t);var n=A(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),r=t.DefaultConfig;if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");for(var i in r)i in e||(e[i]=r[i]);if(void 0!==e.liveMaxLatencyDurationCount&&e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount)throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be gt "liveSyncDurationCount"');if(void 0!==e.liveMaxLatencyDuration&&(e.liveMaxLatencyDuration<=e.liveSyncDuration||void 0===e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be gt "liveSyncDuration"');(0,_.enableLogs)(e.debug),n.config=e,n._autoLevelCapping=-1;var o=n.abrController=new e.abrController(n),a=new e.bufferController(n),s=new e.capLevelController(n),u=new e.fpsController(n),d=new l.default(n),p=new c.default(n),v=new f.default(n),m=new b.default(n),x=n.levelController=new y.default(n),w=new h.FragmentTracker(n),S=n.streamController=new g.default(n,w),k=[x,S],O=e.audioStreamController;O&&k.push(new O(n,w)),n.networkControllers=k;var T=[d,p,v,o,a,s,u,m,w];if(O=e.audioTrackController,O){var E=new O(n);n.audioTrackController=E,T.push(E)}if(O=e.subtitleTrackController,O){var M=new O(n);n.subtitleTrackController=M,k.push(M)}if(O=e.emeController,O){var L=new O(n);n.emeController=L,T.push(L)}return O=e.subtitleStreamController,O&&k.push(new O(n,w)),O=e.timelineController,O&&T.push(new O(n)),n.coreComponents=T,n}return M(t,e),r(t,null,[{key:"isSupported",value:function(){return(0,x.isSupported)()}},{key:"version",get:function(){return __VERSION__}},{key:"Events",get:function(){return k.default}},{key:"ErrorTypes",get:function(){return a.ErrorTypes}},{key:"ErrorDetails",get:function(){return a.ErrorDetails}},{key:"DefaultConfig",get:function(){return t.defaultConfig?t.defaultConfig:w.hlsDefaultConfig},set:function(e){t.defaultConfig=e}}]),r(t,[{key:"destroy",value:function(){_.logger.log("destroy"),this.trigger(k.default.DESTROYING),this.detachMedia(),this.coreComponents.concat(this.networkControllers).forEach((function(e){e.destroy()})),this.url=null,this.removeAllListeners(),this._autoLevelCapping=-1}},{key:"attachMedia",value:function(e){_.logger.log("attachMedia"),this.media=e,this.trigger(k.default.MEDIA_ATTACHING,{media:e})}},{key:"detachMedia",value:function(){_.logger.log("detachMedia"),this.trigger(k.default.MEDIA_DETACHING),this.media=null}},{key:"loadSource",value:function(e){e=o.buildAbsoluteURL(window.location.href,e,{alwaysNormalize:!0}),_.logger.log("loadSource:"+e),this.url=e,this.trigger(k.default.MANIFEST_LOADING,{url:e})}},{key:"startLoad",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;_.logger.log("startLoad("+e+")"),this.networkControllers.forEach((function(t){t.startLoad(e)}))}},{key:"stopLoad",value:function(){_.logger.log("stopLoad"),this.networkControllers.forEach((function(e){e.stopLoad()}))}},{key:"swapAudioCodec",value:function(){_.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}},{key:"recoverMediaError",value:function(){_.logger.log("recoverMediaError");var e=this.media;this.detachMedia(),this.attachMedia(e)}},{key:"levels",get:function(){return this.levelController.levels}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(e){_.logger.log("set currentLevel:"+e),this.loadLevel=e,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(e){_.logger.log("set nextLevel:"+e),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(e){_.logger.log("set loadLevel:"+e),this.levelController.manualLevel=e}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(e){this.levelController.nextLoadLevel=e}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(e){_.logger.log("set firstLevel:"+e),this.levelController.firstLevel=e}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(e){_.logger.log("set startLevel:"+e);var t=this;-1!==e&&(e=Math.max(e,t.minAutoLevel)),t.levelController.startLevel=e}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(e){_.logger.log("set autoLevelCapping:"+e),this._autoLevelCapping=e}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){for(var e=this,t=e.levels,n=e.config.minAutoBitrate,r=t?t.length:0,i=0;i<r;i++){var o=t[i].realBitrate?Math.max(t[i].realBitrate,t[i].bitrate):t[i].bitrate;if(o>n)return i}return 0}},{key:"maxAutoLevel",get:function(){var e=this,t=e.levels,n=e.autoLevelCapping,r=void 0;return r=-1===n&&t&&t.length?t.length-1:n,r}},{key:"nextAutoLevel",get:function(){var e=this;return Math.min(Math.max(e.abrController.nextAutoLevel,e.minAutoLevel),e.maxAutoLevel)},set:function(e){var t=this;t.abrController.nextAutoLevel=Math.max(t.minAutoLevel,e)}},{key:"audioTracks",get:function(){var e=this.audioTrackController;return e?e.audioTracks:[]}},{key:"audioTrack",get:function(){var e=this.audioTrackController;return e?e.audioTrack:-1},set:function(e){var t=this.audioTrackController;t&&(t.audioTrack=e)}},{key:"liveSyncPosition",get:function(){return this.streamController.liveSyncPosition}},{key:"subtitleTracks",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTrack:-1},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}},{key:"subtitleDisplay",get:function(){var e=this.subtitleTrackController;return!!e&&e.subtitleDisplay},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}}]),t}(O.Observer);t.default=L,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(8),o=y(i),a=n(11),s=v(a),l=n(36),u=v(l),c=n(17),d=v(c),f=n(37),h=v(f),p=n(0),g=n(18);function v(e){return e&&e.__esModule?e:{default:e}}function y(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=/#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)/g,x=/#EXT-X-MEDIA:(.*)/g,_=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)([\S+ ?]+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),w=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)([^:]*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/,S=/\.(mp4|m4s|m4v|m4a)$/i,k=function(){function e(){m(this,e)}return r(e,null,[{key:"findGroup",value:function(e,t){if(!e)return null;for(var n=null,r=0;r<e.length;r++){var i=e[r];i.id===t&&(n=i)}return n}},{key:"convertAVC1ToAVCOTI",value:function(e){var t=void 0,n=e.split(".");return n.length>2?(t=n.shift()+".",t+=parseInt(n.shift()).toString(16),t+=("000"+parseInt(n.shift()).toString(16)).substr(-4)):t=e,t}},{key:"resolve",value:function(e,t){return o.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}},{key:"parseMasterPlaylist",value:function(t,n){var r=[],i=void 0;function o(e,t){["video","audio"].forEach((function(n){var r=e.filter((function(e){return(0,g.isCodecType)(e,n)}));if(r.length){var i=r.filter((function(e){return 0===e.lastIndexOf("avc1",0)||0===e.lastIndexOf("mp4a",0)}));t[n+"Codec"]=i.length>0?i[0]:r[0],e=e.filter((function(e){return-1===r.indexOf(e)}))}})),t.unknownCodecs=e}b.lastIndex=0;while(null!=(i=b.exec(t))){var a={},s=a.attrs=new h.default(i[1]);a.url=e.resolve(i[2],n);var l=s.decimalResolution("RESOLUTION");l&&(a.width=l.width,a.height=l.height),a.bitrate=s.decimalInteger("AVERAGE-BANDWIDTH")||s.decimalInteger("BANDWIDTH"),a.name=s.NAME,o([].concat((s.CODECS||"").split(/[ ,]+/)),a),a.videoCodec&&-1!==a.videoCodec.indexOf("avc1")&&(a.videoCodec=e.convertAVC1ToAVCOTI(a.videoCodec)),r.push(a)}return r}},{key:"parseMasterPlaylistMedia",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=void 0,a=[],s=0;x.lastIndex=0;while(null!==(o=x.exec(t))){var l={},u=new h.default(o[1]);if(u.TYPE===r){if(l.groupId=u["GROUP-ID"],l.name=u.NAME,l.type=r,l.default="YES"===u.DEFAULT,l.autoselect="YES"===u.AUTOSELECT,l.forced="YES"===u.FORCED,u.URI&&(l.url=e.resolve(u.URI,n)),l.lang=u.LANGUAGE,l.name||(l.name=l.lang),i.length){var c=e.findGroup(i,l.groupId);l.audioCodec=c?c.codec:i[0].codec}l.id=s++,a.push(l)}}return a}},{key:"parseLevelPlaylist",value:function(e,t,n,r,i){var o=0,a=0,l=new u.default(t),c=new d.default,f=0,g=null,v=new s.default,y=void 0,m=void 0,b=null;_.lastIndex=0;while(null!==(y=_.exec(e))){var x=y[1];if(x){v.duration=parseFloat(x);var k=(" "+y[2]).slice(1);v.title=k||null,v.tagList.push(k?["INF",x,k]:["INF",x])}else if(y[3]){if(Number.isFinite(v.duration)){var E=o++;v.type=r,v.start=a,v.levelkey=c,v.sn=E,v.level=n,v.cc=f,v.urlId=i,v.baseurl=t,v.relurl=(" "+y[3]).slice(1),T(v,g),l.fragments.push(v),g=v,a+=v.duration,v=new s.default}}else if(y[4]){if(v.rawByteRange=(" "+y[4]).slice(1),g){var C=g.byteRangeEndOffset;C&&(v.lastByteRangeEndOffset=C)}}else if(y[5])v.rawProgramDateTime=(" "+y[5]).slice(1),v.tagList.push(["PROGRAM-DATE-TIME",v.rawProgramDateTime]),null===b&&(b=l.fragments.length);else{for(y=y[0].match(w),m=1;m<y.length;m++)if(void 0!==y[m])break;var A=(" "+y[m+1]).slice(1),M=(" "+y[m+2]).slice(1);switch(y[m]){case"#":v.tagList.push(M?[A,M]:[A]);break;case"PLAYLIST-TYPE":l.type=A.toUpperCase();break;case"MEDIA-SEQUENCE":o=l.startSN=parseInt(A);break;case"TARGETDURATION":l.targetduration=parseFloat(A);break;case"VERSION":l.version=parseInt(A);break;case"EXTM3U":break;case"ENDLIST":l.live=!1;break;case"DIS":f++,v.tagList.push(["DIS"]);break;case"DISCONTINUITY-SEQ":f=parseInt(A);break;case"KEY":var L=A,I=new h.default(L),D=I.enumeratedString("METHOD"),j=I.URI,P=I.hexadecimalInteger("IV");D&&(c=new d.default,j&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(D)>=0&&(c.method=D,c.baseuri=t,c.reluri=j,c.key=null,c.iv=P));break;case"START":var R=A,N=new h.default(R),B=N.decimalFloatingPoint("TIME-OFFSET");Number.isFinite(B)&&(l.startTimeOffset=B);break;case"MAP":var F=new h.default(A);v.relurl=F.URI,v.rawByteRange=F.BYTERANGE,v.baseurl=t,v.level=n,v.type=r,v.sn="initSegment",l.initSegment=v,v=new s.default,v.rawProgramDateTime=l.initSegment.rawProgramDateTime;break;default:p.logger.warn("line parsed but not handled: "+y);break}}}return v=g,v&&!v.relurl&&(l.fragments.pop(),a-=v.duration),l.totalduration=a,l.averagetargetduration=a/l.fragments.length,l.endSN=o-1,l.startCC=l.fragments[0]?l.fragments[0].cc:0,l.endCC=f,!l.initSegment&&l.fragments.length&&l.fragments.every((function(e){return S.test(e.relurl)}))&&(p.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),v=new s.default,v.relurl=l.fragments[0].relurl,v.baseurl=t,v.level=n,v.type=r,v.sn="initSegment",l.initSegment=v,l.needSidxRanges=!0),b&&O(l.fragments,b),l}}]),e}();function O(e,t){for(var n=e[t],r=t-1;r>=0;r--){var i=e[r];i.programDateTime=n.programDateTime-1e3*i.duration,n=i}}function T(e,t){e.rawProgramDateTime?e.programDateTime=Date.parse(e.rawProgramDateTime):t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime),Number.isFinite(e.programDateTime)||(e.programDateTime=null,e.rawProgramDateTime=null)}t.default=k,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t){i(this,e),this.endCC=0,this.endSN=0,this.fragments=[],this.initSegment=null,this.live=!0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=t,this.version=null}return r(e,[{key:"hasProgramDateTime",get:function(){return!(!this.fragments[0]||!Number.isFinite(this.fragments[0].programDateTime))}}]),e}();t.default=o,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=/^(\d+)x(\d+)$/,a=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,s=function(){function e(t){for(var n in i(this,e),"string"===typeof t&&(t=e.parseAttrList(t)),t)t.hasOwnProperty(n)&&(this[n]=t[n])}return r(e,[{key:"decimalInteger",value:function(e){var t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}},{key:"hexadecimalInteger",value:function(e){if(this[e]){var t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;for(var n=new Uint8Array(t.length/2),r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(2*r,2*r+2),16);return n}return null}},{key:"hexadecimalIntegerAsNumber",value:function(e){var t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}},{key:"decimalFloatingPoint",value:function(e){return parseFloat(this[e])}},{key:"enumeratedString",value:function(e){return this[e]}},{key:"decimalResolution",value:function(e){var t=o.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}}],[{key:"parseAttrList",value:function(e){var t=void 0,n={};a.lastIndex=0;while(null!==(t=a.exec(e))){var r=t[2],i='"';0===r.indexOf(i)&&r.lastIndexOf(i)===r.length-1&&(r=r.slice(1,-1)),n[t[1]]=r}return n}}]),e}();t.default=s,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(1),a=d(o),s=n(3),l=d(s),u=n(2),c=n(0);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(e){f(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,a.default.FRAG_LOADING));return n.loaders={},n}return p(t,e),r(t,[{key:"destroy",value:function(){var e=this.loaders;for(var n in e){var r=e[n];r&&r.destroy()}this.loaders={},i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"onFragLoading",value:function(e){var t=e.frag,n=t.type,r=this.loaders,i=this.hls.config,o=i.fLoader,a=i.loader;t.loaded=0;var s=r[n];s&&(c.logger.warn("abort previous fragment loader for type: "+n),s.abort()),s=r[n]=t.loader=i.fLoader?new o(i):new a(i);var l=void 0,u=void 0,d=void 0;l={url:t.url,frag:t,responseType:"arraybuffer",progressData:!1};var f=t.byteRangeStartOffset,h=t.byteRangeEndOffset;Number.isFinite(f)&&Number.isFinite(h)&&(l.rangeStart=f,l.rangeEnd=h),u={timeout:i.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:i.fragLoadingMaxRetryTimeout},d={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this),onProgress:this.loadprogress.bind(this)},s.load(l,u,d)}},{key:"loadsuccess",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=e.data,o=n.frag;o.loader=void 0,this.loaders[o.type]=void 0,this.hls.trigger(a.default.FRAG_LOADED,{payload:i,frag:o,stats:t,networkDetails:r})}},{key:"loaderror",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t.frag,i=r.loader;i&&i.abort(),this.loaders[r.type]=void 0,this.hls.trigger(a.default.ERROR,{type:u.ErrorTypes.NETWORK_ERROR,details:u.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:t.frag,response:e,networkDetails:n})}},{key:"loadtimeout",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t.frag,i=r.loader;i&&i.abort(),this.loaders[r.type]=void 0,this.hls.trigger(a.default.ERROR,{type:u.ErrorTypes.NETWORK_ERROR,details:u.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t.frag,networkDetails:n})}},{key:"loadprogress",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=t.frag;i.loaded=e.loaded,this.hls.trigger(a.default.FRAG_LOAD_PROGRESS,{frag:i,stats:e,networkDetails:r})}}]),t}(l.default);t.default=g,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=c(i),a=n(3),s=c(a),l=n(2),u=n(0);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e){d(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.KEY_LOADING));return n.loaders={},n.decryptkey=null,n.decrypturl=null,n}return h(t,e),r(t,[{key:"destroy",value:function(){for(var e in this.loaders){var t=this.loaders[e];t&&t.destroy()}this.loaders={},s.default.prototype.destroy.call(this)}},{key:"onKeyLoading",value:function(e){var t=e.frag,n=t.type,r=this.loaders[n],i=t.decryptdata,a=i.uri;if(a!==this.decrypturl||null===this.decryptkey){var s=this.hls.config;r&&(u.logger.warn("abort previous key loader for type:"+n),r.abort()),t.loader=this.loaders[n]=new s.loader(s),this.decrypturl=a,this.decryptkey=null;var l=void 0,c=void 0,d=void 0;l={url:a,frag:t,responseType:"arraybuffer"},c={timeout:s.fragLoadingTimeOut,maxRetry:0,retryDelay:s.fragLoadingRetryDelay,maxRetryDelay:s.fragLoadingMaxRetryTimeout},d={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)},t.loader.load(l,c,d)}else this.decryptkey&&(i.key=this.decryptkey,this.hls.trigger(o.default.KEY_LOADED,{frag:t}))}},{key:"loadsuccess",value:function(e,t,n){var r=n.frag;this.decryptkey=r.decryptdata.key=new Uint8Array(e.data),r.loader=void 0,this.loaders[r.type]=void 0,this.hls.trigger(o.default.KEY_LOADED,{frag:r})}},{key:"loaderror",value:function(e,t){var n=t.frag,r=n.loader;r&&r.abort(),this.loaders[t.type]=void 0,this.hls.trigger(o.default.ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:l.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:n,response:e})}},{key:"loadtimeout",value:function(e,t){var n=t.frag,r=n.loader;r&&r.abort(),this.loaders[t.type]=void 0,this.hls.trigger(o.default.ERROR,{type:l.ErrorTypes.NETWORK_ERROR,details:l.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:n})}}]),t}(s.default);t.default=p,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(9),a=M(o),s=n(4),l=n(19),u=M(l),c=n(1),d=M(c),f=n(6),h=n(11),p=M(h),g=n(15),v=M(g),y=n(7),m=A(y),b=n(25),x=M(b),_=n(2),w=n(0),S=n(26),k=n(27),O=n(56),T=M(O),E=n(14),C=M(E);function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function M(e){return e&&e.__esModule?e:{default:e}}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function D(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var j=100,P=function(e){function t(e,n){L(this,t);var r=I(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,d.default.MEDIA_ATTACHED,d.default.MEDIA_DETACHING,d.default.MANIFEST_LOADING,d.default.MANIFEST_PARSED,d.default.LEVEL_LOADED,d.default.KEY_LOADED,d.default.FRAG_LOADED,d.default.FRAG_LOAD_EMERGENCY_ABORTED,d.default.FRAG_PARSING_INIT_SEGMENT,d.default.FRAG_PARSING_DATA,d.default.FRAG_PARSED,d.default.ERROR,d.default.AUDIO_TRACK_SWITCHING,d.default.AUDIO_TRACK_SWITCHED,d.default.BUFFER_CREATED,d.default.BUFFER_APPENDED,d.default.BUFFER_FLUSHED));return r.fragmentTracker=n,r.config=e.config,r.audioCodecSwap=!1,r._state=E.State.STOPPED,r.stallReported=!1,r.gapController=null,r}return D(t,e),r(t,[{key:"startLoad",value:function(e){if(this.levels){var t=this.lastCurrentTime,n=this.hls;if(this.stopLoad(),this.setInterval(j),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var r=n.startLevel;-1===r&&(r=0,this.bitrateTest=!0),this.level=n.nextLoadLevel=r,this.loadedmetadata=!1}t>0&&-1===e&&(w.logger.log("override startPosition with lastCurrentTime @"+t.toFixed(3)),e=t),this.state=E.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this.forceStartLoad=!0,this.state=E.State.STOPPED}},{key:"stopLoad",value:function(){this.forceStartLoad=!1,i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"stopLoad",this).call(this)}},{key:"doTick",value:function(){switch(this.state){case E.State.BUFFER_FLUSHING:this.fragLoadError=0;break;case E.State.IDLE:this._doTickIdle();break;case E.State.WAITING_LEVEL:var e=this.levels[this.level];e&&e.details&&(this.state=E.State.IDLE);break;case E.State.FRAG_LOADING_WAITING_RETRY:var t=window.performance.now(),n=this.retryDate;(!n||t>=n||this.media&&this.media.seeking)&&(w.logger.log("mediaController: retryDate reached, switch back to IDLE state"),this.state=E.State.IDLE);break;case E.State.ERROR:case E.State.STOPPED:case E.State.FRAG_LOADING:case E.State.PARSING:case E.State.PARSED:case E.State.ENDED:break;default:break}this._checkBuffer(),this._checkFragmentChanged()}},{key:"_doTickIdle",value:function(){var e=this.hls,t=e.config,n=this.media;if(void 0!==this.levelLastLoaded&&(n||!this.startFragRequested&&t.startFragPrefetch)){var r=void 0;r=this.loadedmetadata?n.currentTime:this.nextLoadPosition;var i=e.nextLoadLevel,o=this.levels[i];if(o){var a=o.bitrate,l=void 0;l=a?Math.max(8*t.maxBufferSize/a,t.maxBufferLength):t.maxBufferLength,l=Math.min(l,t.maxMaxBufferLength);var u=s.BufferHelper.bufferInfo(this.mediaBuffer?this.mediaBuffer:n,r,t.maxBufferHole),c=u.len;if(!(c>=l)){w.logger.trace("buffer length of "+c.toFixed(3)+" is below max of "+l.toFixed(3)+". checking for more payload ..."),this.level=e.nextLoadLevel=i;var f=o.details;if(!f||f.live&&this.levelLastLoaded!==i)this.state=E.State.WAITING_LEVEL;else{if(this._streamEnded(u,f)){var h={};return this.altAudio&&(h.type="video"),this.hls.trigger(d.default.BUFFER_EOS,h),void(this.state=E.State.ENDED)}this._fetchPayloadOrEos(r,u,f)}}}}}},{key:"_fetchPayloadOrEos",value:function(e,t,n){var r=this.fragPrevious,i=this.level,o=n.fragments,a=o.length;if(0!==a){var s=o[0].start,l=o[a-1].start+o[a-1].duration,u=t.end,c=void 0;if(n.initSegment&&!n.initSegment.data)c=n.initSegment;else if(n.live){var d=this.config.initialLiveManifestSize;if(a<d)return void w.logger.warn("Can not start playback of a level, reason: not enough fragments "+a+" < "+d);if(c=this._ensureFragmentAtLivePoint(n,u,s,l,r,o,a),null===c)return}else u<s&&(c=o[0]);c||(c=this._findFragment(s,r,a,o,u,l,n)),c&&(c.encrypted?(w.logger.log("Loading key for "+c.sn+" of ["+n.startSN+" ,"+n.endSN+"],level "+i),this._loadKey(c)):(w.logger.log("Loading "+c.sn+" of ["+n.startSN+" ,"+n.endSN+"],level "+i+", currentTime:"+e.toFixed(3)+",bufferEnd:"+u.toFixed(3)),this._loadFragment(c)))}}},{key:"_ensureFragmentAtLivePoint",value:function(e,t,n,r,i,o,s){var l=this.hls.config,u=this.media,c=void 0,d=void 0!==l.liveMaxLatencyDuration?l.liveMaxLatencyDuration:l.liveMaxLatencyDurationCount*e.targetduration;if(t<Math.max(n-l.maxFragLookUpTolerance,r-d)){var f=this.liveSyncPosition=this.computeLivePosition(n,e);w.logger.log("buffer end: "+t.toFixed(3)+" is located too far from the end of live sliding playlist, reset currentTime to : "+f.toFixed(3)),t=f,u&&u.readyState&&u.duration>f&&(u.currentTime=f),this.nextLoadPosition=f}if(e.PTSKnown&&t>r&&u&&u.readyState)return null;if(this.startFragRequested&&!e.PTSKnown){if(i)if(e.hasProgramDateTime)w.logger.log("live playlist, switching playlist, load frag with same PDT: "+i.programDateTime),c=(0,k.findFragmentByPDT)(o,i.endProgramDateTime,l.maxFragLookUpTolerance);else{var h=i.sn+1;if(h>=e.startSN&&h<=e.endSN){var p=o[h-e.startSN];i.cc===p.cc&&(c=p,w.logger.log("live playlist, switching playlist, load frag with next SN: "+c.sn))}c||(c=a.default.search(o,(function(e){return i.cc-e.cc})),c&&w.logger.log("live playlist, switching playlist, load frag with same CC: "+c.sn))}c||(c=o[Math.min(s-1,Math.round(s/2))],w.logger.log("live playlist, switching playlist, unknown, load middle frag : "+c.sn))}return c}},{key:"_findFragment",value:function(e,t,n,r,i,o,a){var s=this.hls.config,l=void 0;if(i<o){var u=i>o-s.maxFragLookUpTolerance?0:s.maxFragLookUpTolerance;l=(0,k.findFragmentByPTS)(t,r,i,u)}else l=r[n-1];if(l){var c=l.sn-a.startSN,d=t&&l.level===t.level,f=r[c-1],h=r[c+1];if(t&&l.sn===t.sn)if(d&&!l.backtracked)if(l.sn<a.endSN){var p=t.deltaPTS;p&&p>s.maxBufferHole&&t.dropped&&c?(l=f,w.logger.warn("SN just loaded, with large PTS gap between audio and video, maybe frag is not starting with a keyframe ? load previous one to try to overcome this")):(l=h,w.logger.log("SN just loaded, load next one: "+l.sn,l))}else l=null;else l.backtracked&&(h&&h.backtracked?(w.logger.warn("Already backtracked from fragment "+h.sn+", will not backtrack to fragment "+l.sn+". Loading fragment "+h.sn),l=h):(w.logger.warn("Loaded fragment with dropped frames, backtracking 1 segment to find a keyframe"),l.dropped=0,f?(l=f,l.backtracked=!0):c&&(l=null)))}return l}},{key:"_loadKey",value:function(e){this.state=E.State.KEY_LOADING,this.hls.trigger(d.default.KEY_LOADING,{frag:e})}},{key:"_loadFragment",value:function(e){var t=this.fragmentTracker.getState(e);this.fragCurrent=e,this.startFragRequested=!0,Number.isFinite(e.sn)&&!e.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),e.backtracked||t===f.FragmentState.NOT_LOADED||t===f.FragmentState.PARTIAL?(e.autoLevel=this.hls.autoLevelEnabled,e.bitrateTest=this.bitrateTest,this.hls.trigger(d.default.FRAG_LOADING,{frag:e}),this.demuxer||(this.demuxer=new u.default(this.hls,"main")),this.state=E.State.FRAG_LOADING):t===f.FragmentState.APPENDING&&this._reduceMaxBufferLength(e.duration)&&this.fragmentTracker.removeFragment(e)}},{key:"getBufferedFrag",value:function(e){return this.fragmentTracker.getBufferedFrag(e,v.default.LevelType.MAIN)}},{key:"followingBufferedFrag",value:function(e){return e?this.getBufferedFrag(e.endPTS+.5):null}},{key:"_checkFragmentChanged",value:function(){var e=void 0,t=void 0,n=this.media;if(n&&n.readyState&&!1===n.seeking&&(t=n.currentTime,t>this.lastCurrentTime&&(this.lastCurrentTime=t),s.BufferHelper.isBuffered(n,t)?e=this.getBufferedFrag(t):s.BufferHelper.isBuffered(n,t+.1)&&(e=this.getBufferedFrag(t+.1)),e)){var r=e;if(r!==this.fragPlaying){this.hls.trigger(d.default.FRAG_CHANGED,{frag:r});var i=r.level;this.fragPlaying&&this.fragPlaying.level===i||this.hls.trigger(d.default.LEVEL_SWITCHED,{level:i}),this.fragPlaying=r}}}},{key:"immediateLevelSwitch",value:function(){if(w.logger.log("immediateLevelSwitch"),!this.immediateSwitch){this.immediateSwitch=!0;var e=this.media,t=void 0;e?(t=e.paused,e.pause()):t=!0,this.previouslyPaused=t}var n=this.fragCurrent;n&&n.loader&&n.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}},{key:"immediateLevelSwitchEnd",value:function(){var e=this.media;e&&e.buffered.length&&(this.immediateSwitch=!1,s.BufferHelper.isBuffered(e,e.currentTime)&&(e.currentTime-=1e-4),this.previouslyPaused||e.play())}},{key:"nextLevelSwitch",value:function(){var e=this.media;if(e&&e.readyState){var t=void 0,n=void 0,r=void 0;if(n=this.getBufferedFrag(e.currentTime),n&&n.startPTS>1&&this.flushMainBuffer(0,n.startPTS-1),e.paused)t=0;else{var i=this.hls.nextLoadLevel,o=this.levels[i],a=this.fragLastKbps;t=a&&this.fragCurrent?this.fragCurrent.duration*o.bitrate/(1e3*a)+1:0}if(r=this.getBufferedFrag(e.currentTime+t),r&&(r=this.followingBufferedFrag(r),r)){var s=this.fragCurrent;s&&s.loader&&s.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(r.maxStartPTS,Number.POSITIVE_INFINITY)}}}},{key:"flushMainBuffer",value:function(e,t){this.state=E.State.BUFFER_FLUSHING;var n={startOffset:e,endOffset:t};this.altAudio&&(n.type="video"),this.hls.trigger(d.default.BUFFER_FLUSHING,n)}},{key:"onMediaAttached",value:function(e){var t=this.media=this.mediaBuffer=e.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),this.onvended=this.onMediaEnded.bind(this),t.addEventListener("seeking",this.onvseeking),t.addEventListener("seeked",this.onvseeked),t.addEventListener("ended",this.onvended);var n=this.config;this.levels&&n.autoStartLoad&&this.hls.startLoad(n.startPosition),this.gapController=new T.default(n,t,this.fragmentTracker,this.hls)}},{key:"onMediaDetaching",value:function(){var e=this.media;e&&e.ended&&(w.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0);var t=this.levels;t&&t.forEach((function(e){e.details&&e.details.fragments.forEach((function(e){e.backtracked=void 0}))})),e&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("seeked",this.onvseeked),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.stopLoad()}},{key:"onMediaSeeked",value:function(){var e=this.media,t=e?e.currentTime:void 0;Number.isFinite(t)&&w.logger.log("media seeked to "+t.toFixed(3)),this.tick()}},{key:"onManifestLoading",value:function(){w.logger.log("trigger BUFFER_RESET"),this.hls.trigger(d.default.BUFFER_RESET),this.fragmentTracker.removeAllFragments(),this.stalled=!1,this.startPosition=this.lastCurrentTime=0}},{key:"onManifestParsed",value:function(e){var t=!1,n=!1,r=void 0;e.levels.forEach((function(e){r=e.audioCodec,r&&(-1!==r.indexOf("mp4a.40.2")&&(t=!0),-1!==r.indexOf("mp4a.40.5")&&(n=!0))})),this.audioCodecSwitch=t&&n,this.audioCodecSwitch&&w.logger.log("both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=e.levels,this.startFragRequested=!1;var i=this.config;(i.autoStartLoad||this.forceStartLoad)&&this.hls.startLoad(i.startPosition)}},{key:"onLevelLoaded",value:function(e){var t=e.details,n=e.level,r=this.levels[this.levelLastLoaded],i=this.levels[n],o=t.totalduration,a=0;if(w.logger.log("level "+n+" loaded ["+t.startSN+","+t.endSN+"],duration:"+o),t.live){var s=i.details;s&&t.fragments.length>0?(m.mergeDetails(s,t),a=t.fragments[0].start,this.liveSyncPosition=this.computeLivePosition(a,s),t.PTSKnown&&Number.isFinite(a)?w.logger.log("live playlist sliding:"+a.toFixed(3)):(w.logger.log("live playlist - outdated PTS, unknown sliding"),(0,S.alignStream)(this.fragPrevious,r,t))):(w.logger.log("live playlist - first load, unknown sliding"),t.PTSKnown=!1,(0,S.alignStream)(this.fragPrevious,r,t))}else t.PTSKnown=!1;if(i.details=t,this.levelLastLoaded=n,this.hls.trigger(d.default.LEVEL_UPDATED,{details:t,level:n}),!1===this.startFragRequested){if(-1===this.startPosition||-1===this.lastCurrentTime){var l=t.startTimeOffset;Number.isFinite(l)?(l<0&&(w.logger.log("negative start time offset "+l+", count from end of last fragment"),l=a+o+l),w.logger.log("start time offset found in playlist, adjust startPosition to "+l),this.startPosition=l):t.live?(this.startPosition=this.computeLivePosition(a,t),w.logger.log("configure startPosition to "+this.startPosition)):this.startPosition=0,this.lastCurrentTime=this.startPosition}this.nextLoadPosition=this.startPosition}this.state===E.State.WAITING_LEVEL&&(this.state=E.State.IDLE),this.tick()}},{key:"onKeyLoaded",value:function(){this.state===E.State.KEY_LOADING&&(this.state=E.State.IDLE,this.tick())}},{key:"onFragLoaded",value:function(e){var t=this.fragCurrent,n=this.hls,r=this.levels,i=this.media,o=e.frag;if(this.state===E.State.FRAG_LOADING&&t&&"main"===o.type&&o.level===t.level&&o.sn===t.sn){var a=e.stats,s=r[t.level],l=s.details;if(this.bitrateTest=!1,this.stats=a,w.logger.log("Loaded "+t.sn+" of ["+l.startSN+" ,"+l.endSN+"],level "+t.level),o.bitrateTest&&n.nextLoadLevel)this.state=E.State.IDLE,this.startFragRequested=!1,a.tparsed=a.tbuffered=window.performance.now(),n.trigger(d.default.FRAG_BUFFERED,{stats:a,frag:t,id:"main"}),this.tick();else if("initSegment"===o.sn)this.state=E.State.IDLE,a.tparsed=a.tbuffered=window.performance.now(),l.initSegment.data=e.payload,n.trigger(d.default.FRAG_BUFFERED,{stats:a,frag:t,id:"main"}),this.tick();else{w.logger.log("Parsing "+t.sn+" of ["+l.startSN+" ,"+l.endSN+"],level "+t.level+", cc "+t.cc),this.state=E.State.PARSING,this.pendingBuffering=!0,this.appended=!1,o.bitrateTest&&(o.bitrateTest=!1,this.fragmentTracker.onFragLoaded({frag:o}));var c=!(i&&i.seeking)&&(l.PTSKnown||!l.live),f=l.initSegment?l.initSegment.data:[],h=this._getAudioCodec(s),p=this.demuxer=this.demuxer||new u.default(this.hls,"main");p.push(e.payload,f,h,s.videoCodec,t,l.totalduration,c)}}this.fragLoadError=0}},{key:"onFragParsingInitSegment",value:function(e){var t=this.fragCurrent,n=e.frag;if(t&&"main"===e.id&&n.sn===t.sn&&n.level===t.level&&this.state===E.State.PARSING){var r=e.tracks,i=void 0,o=void 0;if(r.audio&&this.altAudio&&delete r.audio,o=r.audio,o){var a=this.levels[this.level].audioCodec,s=navigator.userAgent.toLowerCase();a&&this.audioCodecSwap&&(w.logger.log("swapping playlist audio codec"),a=-1!==a.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),this.audioCodecSwitch&&1!==o.metadata.channelCount&&-1===s.indexOf("firefox")&&(a="mp4a.40.5"),-1!==s.indexOf("android")&&"audio/mpeg"!==o.container&&(a="mp4a.40.2",w.logger.log("Android: force audio codec to "+a)),o.levelCodec=a,o.id=e.id}for(i in o=r.video,o&&(o.levelCodec=this.levels[this.level].videoCodec,o.id=e.id),this.hls.trigger(d.default.BUFFER_CODECS,r),r){o=r[i],w.logger.log("main track:"+i+",container:"+o.container+",codecs[level/parsed]=["+o.levelCodec+"/"+o.codec+"]");var l=o.initSegment;l&&(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(d.default.BUFFER_APPENDING,{type:i,data:l,parent:"main",content:"initSegment"}))}this.tick()}}},{key:"onFragParsingData",value:function(e){var t=this,n=this.fragCurrent,r=e.frag;if(n&&"main"===e.id&&r.sn===n.sn&&r.level===n.level&&("audio"!==e.type||!this.altAudio)&&this.state===E.State.PARSING){var i=this.levels[this.level],o=n;if(Number.isFinite(e.endPTS)||(e.endPTS=e.startPTS+n.duration,e.endDTS=e.startDTS+n.duration),!0===e.hasAudio&&o.addElementaryStream(p.default.ElementaryStreamTypes.AUDIO),!0===e.hasVideo&&o.addElementaryStream(p.default.ElementaryStreamTypes.VIDEO),w.logger.log("Parsed "+e.type+",PTS:["+e.startPTS.toFixed(3)+","+e.endPTS.toFixed(3)+"],DTS:["+e.startDTS.toFixed(3)+"/"+e.endDTS.toFixed(3)+"],nb:"+e.nb+",dropped:"+(e.dropped||0)),"video"===e.type)if(o.dropped=e.dropped,o.dropped)if(o.backtracked)w.logger.warn("Already backtracked on this fragment, appending with the gap",o.sn);else{var a=i.details;if(!a||o.sn!==a.startSN)return w.logger.warn("missing video frame(s), backtracking fragment",o.sn),this.fragmentTracker.removeFragment(o),o.backtracked=!0,this.nextLoadPosition=e.startPTS,this.state=E.State.IDLE,this.fragPrevious=o,void this.tick();w.logger.warn("missing video frame(s) on first frag, appending with gap",o.sn)}else o.backtracked=!1;var s=m.updateFragPTSDTS(i.details,o,e.startPTS,e.endPTS,e.startDTS,e.endDTS),l=this.hls;l.trigger(d.default.LEVEL_PTS_UPDATED,{details:i.details,level:this.level,drift:s,type:e.type,start:e.startPTS,end:e.endPTS}),[e.data1,e.data2].forEach((function(n){n&&n.length&&t.state===E.State.PARSING&&(t.appended=!0,t.pendingBuffering=!0,l.trigger(d.default.BUFFER_APPENDING,{type:e.type,data:n,parent:"main",content:"data"}))})),this.tick()}}},{key:"onFragParsed",value:function(e){var t=this.fragCurrent,n=e.frag;t&&"main"===e.id&&n.sn===t.sn&&n.level===t.level&&this.state===E.State.PARSING&&(this.stats.tparsed=window.performance.now(),this.state=E.State.PARSED,this._checkAppendedParsed())}},{key:"onAudioTrackSwitching",value:function(e){var t=!!e.url,n=e.id;if(!t){if(this.mediaBuffer!==this.media){w.logger.log("switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var r=this.fragCurrent;r.loader&&(w.logger.log("switching to main audio track, cancel main fragment load"),r.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=E.State.IDLE}var i=this.hls;i.trigger(d.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),i.trigger(d.default.AUDIO_TRACK_SWITCHED,{id:n}),this.altAudio=!1}}},{key:"onAudioTrackSwitched",value:function(e){var t=e.id,n=!!this.hls.audioTracks[t].url;if(n){var r=this.videoBuffer;r&&this.mediaBuffer!==r&&(w.logger.log("switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=r)}this.altAudio=n,this.tick()}},{key:"onBufferCreated",value:function(e){var t=e.tracks,n=void 0,r=void 0,i=!1;for(var o in t){var a=t[o];"main"===a.id?(r=o,n=a,"video"===o&&(this.videoBuffer=t[o].buffer)):i=!0}i&&n?(w.logger.log("alternate track found, use "+r+".buffered to schedule main fragment loading"),this.mediaBuffer=n.buffer):this.mediaBuffer=this.media}},{key:"onBufferAppended",value:function(e){if("main"===e.parent){var t=this.state;t!==E.State.PARSING&&t!==E.State.PARSED||(this.pendingBuffering=e.pending>0,this._checkAppendedParsed())}}},{key:"_checkAppendedParsed",value:function(){if(this.state===E.State.PARSED&&(!this.appended||!this.pendingBuffering)){var e=this.fragCurrent;if(e){var t=this.mediaBuffer?this.mediaBuffer:this.media;w.logger.log("main buffered : "+x.default.toString(t.buffered)),this.fragPrevious=e;var n=this.stats;n.tbuffered=window.performance.now(),this.fragLastKbps=Math.round(8*n.total/(n.tbuffered-n.tfirst)),this.hls.trigger(d.default.FRAG_BUFFERED,{stats:n,frag:e,id:"main"}),this.state=E.State.IDLE}this.tick()}}},{key:"onError",value:function(e){var t=e.frag||this.fragCurrent;if(!t||"main"===t.type){var n=!!this.media&&s.BufferHelper.isBuffered(this.media,this.media.currentTime)&&s.BufferHelper.isBuffered(this.media,this.media.currentTime+.5);switch(e.details){case _.ErrorDetails.FRAG_LOAD_ERROR:case _.ErrorDetails.FRAG_LOAD_TIMEOUT:case _.ErrorDetails.KEY_LOAD_ERROR:case _.ErrorDetails.KEY_LOAD_TIMEOUT:if(!e.fatal)if(this.fragLoadError+1<=this.config.fragLoadingMaxRetry){var r=Math.min(Math.pow(2,this.fragLoadError)*this.config.fragLoadingRetryDelay,this.config.fragLoadingMaxRetryTimeout);w.logger.warn("mediaController: frag loading failed, retry in "+r+" ms"),this.retryDate=window.performance.now()+r,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.fragLoadError++,this.state=E.State.FRAG_LOADING_WAITING_RETRY}else w.logger.error("mediaController: "+e.details+" reaches max retry, redispatch as fatal ..."),e.fatal=!0,this.state=E.State.ERROR;break;case _.ErrorDetails.LEVEL_LOAD_ERROR:case _.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==E.State.ERROR&&(e.fatal?(this.state=E.State.ERROR,w.logger.warn("streamController: "+e.details+",switch to "+this.state+" state ...")):e.levelRetry||this.state!==E.State.WAITING_LEVEL||(this.state=E.State.IDLE));break;case _.ErrorDetails.BUFFER_FULL_ERROR:"main"!==e.parent||this.state!==E.State.PARSING&&this.state!==E.State.PARSED||(n?(this._reduceMaxBufferLength(this.config.maxBufferLength),this.state=E.State.IDLE):(w.logger.warn("buffer full error also media.currentTime is not buffered, flush everything"),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)));break;default:break}}}},{key:"_reduceMaxBufferLength",value:function(e){var t=this.config;return t.maxMaxBufferLength>=e&&(t.maxMaxBufferLength/=2,w.logger.warn("main:reduce max buffer length to "+t.maxMaxBufferLength+"s"),!0)}},{key:"_checkBuffer",value:function(){var e=this.media;if(e&&0!==e.readyState){var t=this.mediaBuffer?this.mediaBuffer:e,n=t.buffered;!this.loadedmetadata&&n.length?(this.loadedmetadata=!0,this._seekToStartPos()):this.immediateSwitch?this.immediateLevelSwitchEnd():this.gapController.poll(this.lastCurrentTime,n)}}},{key:"onFragLoadEmergencyAborted",value:function(){this.state=E.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tick()}},{key:"onBufferFlushed",value:function(){var e=this.mediaBuffer?this.mediaBuffer:this.media;e&&this.fragmentTracker.detectEvictedFragments(p.default.ElementaryStreamTypes.VIDEO,e.buffered),this.state=E.State.IDLE,this.fragPrevious=null}},{key:"swapAudioCodec",value:function(){this.audioCodecSwap=!this.audioCodecSwap}},{key:"computeLivePosition",value:function(e,t){var n=void 0!==this.config.liveSyncDuration?this.config.liveSyncDuration:this.config.liveSyncDurationCount*t.targetduration;return e+Math.max(0,t.totalduration-n)}},{key:"_seekToStartPos",value:function(){var e=this.media,t=e.currentTime,n=e.seeking?t:this.startPosition;t!==n&&(w.logger.log("target start position not buffered, seek to buffered.start(0) "+n+" from current time "+t+" "),e.currentTime=n)}},{key:"_getAudioCodec",value:function(e){var t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&(w.logger.log("swapping playlist audio codec"),t&&(t=-1!==t.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5")),t}},{key:"state",set:function(e){if(this.state!==e){var t=this.state;this._state=e,w.logger.log("main stream:"+t+"->"+e),this.hls.trigger(d.default.STREAM_STATE_TRANSITION,{previousState:t,nextState:e})}},get:function(){return this._state}},{key:"currentLevel",get:function(){var e=this.media;if(e){var t=this.getBufferedFrag(e.currentTime);if(t)return t.level}return-1}},{key:"nextBufferedFrag",get:function(){var e=this.media;return e?this.followingBufferedFrag(this.getBufferedFrag(e.currentTime)):null}},{key:"nextLevel",get:function(){var e=this.nextBufferedFrag;return e?e.level:-1}},{key:"liveSyncPosition",get:function(){return this._liveSyncPosition},set:function(e){this._liveSyncPosition=e}}]),t}(C.default);t.default=P,e.exports=t["default"]},function(e,t,n){function r(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n.oe=function(e){throw console.error(e),e};var r=n(n.s=ENTRY_MODULE);return r.default||r}var i="[\\.|\\-|\\+|\\w|/|@]+",o="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+i+").*?\\)";function a(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function s(e){return!isNaN(1*e)}function l(e,t,r){var l={};l[r]=[];var u=t.toString(),c=u.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!c)return l;var d,f=c[1],h=new RegExp("(\\\\n|\\W)"+a(f)+o,"g");while(d=h.exec(u))"dll-reference"!==d[3]&&l[r].push(d[3]);h=new RegExp("\\("+a(f)+'\\("(dll-reference\\s('+i+'))"\\)\\)'+o,"g");while(d=h.exec(u))e[d[2]]||(l[r].push(d[1]),e[d[2]]=n(d[1]).m),l[d[2]]=l[d[2]]||[],l[d[2]].push(d[4]);for(var p=Object.keys(l),g=0;g<p.length;g++)for(var v=0;v<l[p[g]].length;v++)s(l[p[g]][v])&&(l[p[g]][v]=1*l[p[g]][v]);return l}function u(e){var t=Object.keys(e);return t.reduce((function(t,n){return t||e[n].length>0}),!1)}function c(e,t){var n={main:[t]},r={main:[]},i={main:{}};while(u(n))for(var o=Object.keys(n),a=0;a<o.length;a++){var s=o[a],c=n[s],d=c.pop();if(i[s]=i[s]||{},!i[s][d]&&e[s][d]){i[s][d]=!0,r[s]=r[s]||[],r[s].push(d);for(var f=l(e,e[s][d],s),h=Object.keys(f),p=0;p<h.length;p++)n[h[p]]=n[h[p]]||[],n[h[p]]=n[h[p]].concat(f[h[p]])}}return r}e.exports=function(e,t){t=t||{};var i={main:n.m},o=t.all?{main:Object.keys(i.main)}:c(i,e),a="";Object.keys(o).filter((function(e){return"main"!==e})).forEach((function(e){var t=0;while(o[e][t])t++;o[e].push(t),i[e][t]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",a=a+"var "+e+" = ("+r.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+o[e].map((function(t){return JSON.stringify(t)+": "+i[e][t].toString()})).join(",")+"});\n"})),a=a+"new (("+r.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+o.main.map((function(e){return JSON.stringify(e)+": "+i.main[e].toString()})).join(",")+"}))(self);";var s=new window.Blob([a],{type:"text/javascript"});if(t.bare)return s;var l=window.URL||window.webkitURL||window.mozURL||window.msURL,u=l.createObjectURL(s),d=new window.Worker(u);return d.objectURL=u,d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,n){i(this,e),this.subtle=t,this.aesIV=n}return r(e,[{key:"decrypt",value:function(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)}}]),e}();t.default=o,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,n){i(this,e),this.subtle=t,this.key=n}return r(e,[{key:"expandKey",value:function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}]),e}();t.default=o,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){var t=e.byteLength,n=t&&new DataView(e).getUint8(t-1);return n?e.slice(0,t-n):e}t.removePadding=o;var a=function(){function e(){i(this,e),this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.initTable()}return r(e,[{key:"uint8ArrayToUint32Array_",value:function(e){for(var t=new DataView(e),n=new Uint32Array(4),r=0;r<4;r++)n[r]=t.getUint32(4*r);return n}},{key:"initTable",value:function(){var e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],o=n[2],a=n[3],s=this.invSubMix,l=s[0],u=s[1],c=s[2],d=s[3],f=new Uint32Array(256),h=0,p=0,g=0;for(g=0;g<256;g++)f[g]=g<128?g<<1:g<<1^283;for(g=0;g<256;g++){var v=p^p<<1^p<<2^p<<3^p<<4;v=v>>>8^255&v^99,e[h]=v,t[v]=h;var y=f[h],m=f[y],b=f[m],x=257*f[v]^16843008*v;r[h]=x<<24|x>>>8,i[h]=x<<16|x>>>16,o[h]=x<<8|x>>>24,a[h]=x,x=16843009*b^65537*m^257*y^16843008*h,l[v]=x<<24|x>>>8,u[v]=x<<16|x>>>16,c[v]=x<<8|x>>>24,d[v]=x,h?(h=y^f[f[f[b^y]]],p^=f[f[p]]):h=p=1}}},{key:"expandKey",value:function(e){var t=this.uint8ArrayToUint32Array_(e),n=!0,r=0;while(r<t.length&&n)n=t[r]===this.key[r],r++;if(!n){this.key=t;var i=this.keySize=t.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);var o=this.ksRows=4*(i+6+1),a=void 0,s=void 0,l=this.keySchedule=new Uint32Array(o),u=this.invKeySchedule=new Uint32Array(o),c=this.sBox,d=this.rcon,f=this.invSubMix,h=f[0],p=f[1],g=f[2],v=f[3],y=void 0,m=void 0;for(a=0;a<o;a++)a<i?y=l[a]=t[a]:(m=y,a%i===0?(m=m<<8|m>>>24,m=c[m>>>24]<<24|c[m>>>16&255]<<16|c[m>>>8&255]<<8|c[255&m],m^=d[a/i|0]<<24):i>6&&a%i===4&&(m=c[m>>>24]<<24|c[m>>>16&255]<<16|c[m>>>8&255]<<8|c[255&m]),l[a]=y=(l[a-i]^m)>>>0);for(s=0;s<o;s++)a=o-s,m=3&s?l[a]:l[a-4],u[s]=s<4||a<=4?m:h[c[m>>>24]]^p[c[m>>>16&255]]^g[c[m>>>8&255]]^v[c[255&m]],u[s]=u[s]>>>0}}},{key:"networkToHostOrderSwap",value:function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}},{key:"decrypt",value:function(e,t,n,r){var i=this.keySize+6,a=this.invKeySchedule,s=this.invSBox,l=this.invSubMix,u=l[0],c=l[1],d=l[2],f=l[3],h=this.uint8ArrayToUint32Array_(n),p=h[0],g=h[1],v=h[2],y=h[3],m=new Int32Array(e),b=new Int32Array(m.length),x=void 0,_=void 0,w=void 0,S=void 0,k=void 0,O=void 0,T=void 0,E=void 0,C=void 0,A=void 0,M=void 0,L=void 0,I=void 0,D=void 0,j=this.networkToHostOrderSwap;while(t<m.length){for(C=j(m[t]),A=j(m[t+1]),M=j(m[t+2]),L=j(m[t+3]),k=C^a[0],O=L^a[1],T=M^a[2],E=A^a[3],I=4,D=1;D<i;D++)x=u[k>>>24]^c[O>>16&255]^d[T>>8&255]^f[255&E]^a[I],_=u[O>>>24]^c[T>>16&255]^d[E>>8&255]^f[255&k]^a[I+1],w=u[T>>>24]^c[E>>16&255]^d[k>>8&255]^f[255&O]^a[I+2],S=u[E>>>24]^c[k>>16&255]^d[O>>8&255]^f[255&T]^a[I+3],k=x,O=_,T=w,E=S,I+=4;x=s[k>>>24]<<24^s[O>>16&255]<<16^s[T>>8&255]<<8^s[255&E]^a[I],_=s[O>>>24]<<24^s[T>>16&255]<<16^s[E>>8&255]<<8^s[255&k]^a[I+1],w=s[T>>>24]<<24^s[E>>16&255]<<16^s[k>>8&255]<<8^s[255&O]^a[I+2],S=s[E>>>24]<<24^s[k>>16&255]<<16^s[O>>8&255]<<8^s[255&T]^a[I+3],I+=3,b[t]=j(x^p),b[t+1]=j(S^g),b[t+2]=j(w^v),b[t+3]=j(_^y),p=C,g=A,v=M,y=L,t+=4}return r?o(b.buffer):b.buffer}},{key:"destroy",value:function(){this.key=void 0,this.keySize=void 0,this.ksRows=void 0,this.sBox=void 0,this.invSBox=void 0,this.subMix=void 0,this.invSubMix=void 0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.rcon=void 0}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(22),o=c(i),a=n(0),s=n(10),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=function(){function e(t,n,r){d(this,e),this.observer=t,this.config=r,this.remuxer=n}return r(e,[{key:"resetInitSegment",value:function(e,t,n,r){this._audioTrack={container:"audio/adts",type:"audio",id:0,sequenceNumber:0,isAAC:!0,samples:[],len:0,manifestCodec:t,duration:r,inputTimeScale:9e4}}},{key:"resetTimeStamp",value:function(){}},{key:"append",value:function(e,t,n,r){var i=this._audioTrack,s=l.default.getID3Data(e,0)||[],u=l.default.getTimeStamp(s),c=Number.isFinite(u)?90*u:9e4*t,d=0,f=c,h=e.length,p=s.length,g=[{pts:f,dts:f,data:s}];while(p<h-1)if(o.isHeader(e,p)&&p+5<h){o.initTrackConfig(i,this.observer,e,p,i.manifestCodec);var v=o.appendFrame(i,e,p,c,d);if(!v){a.logger.log("Unable to parse AAC frame");break}p+=v.length,f=v.sample.pts,d++}else l.default.isHeader(e,p)?(s=l.default.getID3Data(e,p),g.push({pts:f,dts:f,data:s}),p+=s.length):p++;this.remuxer.remux(i,{samples:[]},{samples:g,inputTimeScale:9e4},{samples:[]},t,n,r)}},{key:"destroy",value:function(){}}],[{key:"probe",value:function(e){if(!e)return!1;for(var t=l.default.getID3Data(e,0)||[],n=t.length,r=e.length;n<r;n++)if(o.probe(e,n))return a.logger.log("ADTS sync word found !"),!0;return!1}}]),e}();t.default=f,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(22),o=y(i),a=n(23),s=v(a),l=n(1),u=v(l),c=n(47),d=v(c),f=n(48),h=v(f),p=n(0),g=n(2);function v(e){return e&&e.__esModule?e:{default:e}}function y(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b={video:1,audio:2,id3:3,text:4},x=function(){function e(t,n,r,i){m(this,e),this.observer=t,this.config=r,this.typeSupported=i,this.remuxer=n,this.sampleAes=null}return r(e,[{key:"setDecryptData",value:function(e){null!=e&&null!=e.key&&"SAMPLE-AES"===e.method?this.sampleAes=new h.default(this.observer,this.config,e,this.discardEPB):this.sampleAes=null}},{key:"resetInitSegment",value:function(t,n,r,i){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=e.createTrack("video",i),this._audioTrack=e.createTrack("audio",i),this._id3Track=e.createTrack("id3",i),this._txtTrack=e.createTrack("text",i),this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=n,this.videoCodec=r,this._duration=i}},{key:"resetTimeStamp",value:function(){}},{key:"append",value:function(t,n,r,i){var o=void 0,a=t.length,s=void 0,l=void 0,c=void 0,d=void 0,f=void 0,h=!1;this.contiguous=r;var v=this.pmtParsed,y=this._avcTrack,m=this._audioTrack,b=this._id3Track,x=y.pid,_=m.pid,w=b.pid,S=this._pmtId,k=y.pesData,O=m.pesData,T=b.pesData,E=this._parsePAT,C=this._parsePMT,A=this._parsePES,M=this._parseAVCPES.bind(this),L=this._parseAACPES.bind(this),I=this._parseMPEGPES.bind(this),D=this._parseID3PES.bind(this),j=e._syncOffset(t);for(a-=(a+j)%188,o=j;o<a;o+=188)if(71===t[o]){if(s=!!(64&t[o+1]),l=((31&t[o+1])<<8)+t[o+2],c=(48&t[o+3])>>4,c>1){if(d=o+5+t[o+4],d===o+188)continue}else d=o+4;switch(l){case x:s&&(k&&(f=A(k))&&void 0!==f.pts&&M(f,!1),k={data:[],size:0}),k&&(k.data.push(t.subarray(d,o+188)),k.size+=o+188-d);break;case _:s&&(O&&(f=A(O))&&void 0!==f.pts&&(m.isAAC?L(f):I(f)),O={data:[],size:0}),O&&(O.data.push(t.subarray(d,o+188)),O.size+=o+188-d);break;case w:s&&(T&&(f=A(T))&&void 0!==f.pts&&D(f),T={data:[],size:0}),T&&(T.data.push(t.subarray(d,o+188)),T.size+=o+188-d);break;case 0:s&&(d+=t[d]+1),S=this._pmtId=E(t,d);break;case S:s&&(d+=t[d]+1);var P=C(t,d,!0===this.typeSupported.mpeg||!0===this.typeSupported.mp3,null!=this.sampleAes);x=P.avc,x>0&&(y.pid=x),_=P.audio,_>0&&(m.pid=_,m.isAAC=P.isAAC),w=P.id3,w>0&&(b.pid=w),h&&!v&&(p.logger.log("reparse from beginning"),h=!1,o=j-188),v=this.pmtParsed=!0;break;case 17:case 8191:break;default:h=!0;break}}else this.observer.trigger(u.default.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});k&&(f=A(k))&&void 0!==f.pts?(M(f,!0),y.pesData=null):y.pesData=k,O&&(f=A(O))&&void 0!==f.pts?(m.isAAC?L(f):I(f),m.pesData=null):(O&&O.size&&p.logger.log("last AAC PES packet truncated,might overlap between fragments"),m.pesData=O),T&&(f=A(T))&&void 0!==f.pts?(D(f),b.pesData=null):b.pesData=T,null==this.sampleAes?this.remuxer.remux(m,y,b,this._txtTrack,n,r,i):this.decryptAndRemux(m,y,b,this._txtTrack,n,r,i)}},{key:"decryptAndRemux",value:function(e,t,n,r,i,o,a){if(e.samples&&e.isAAC){var s=this;this.sampleAes.decryptAacSamples(e.samples,0,(function(){s.decryptAndRemuxAvc(e,t,n,r,i,o,a)}))}else this.decryptAndRemuxAvc(e,t,n,r,i,o,a)}},{key:"decryptAndRemuxAvc",value:function(e,t,n,r,i,o,a){if(t.samples){var s=this;this.sampleAes.decryptAvcSamples(t.samples,0,0,(function(){s.remuxer.remux(e,t,n,r,i,o,a)}))}else this.remuxer.remux(e,t,n,r,i,o,a)}},{key:"destroy",value:function(){this._initPTS=this._initDTS=void 0,this._duration=0}},{key:"_parsePAT",value:function(e,t){return(31&e[t+10])<<8|e[t+11]}},{key:"_parsePMT",value:function(e,t,n,r){var i=void 0,o=void 0,a=void 0,s=void 0,l={audio:-1,avc:-1,id3:-1,isAAC:!0};i=(15&e[t+1])<<8|e[t+2],o=t+3+i-4,a=(15&e[t+10])<<8|e[t+11],t+=12+a;while(t<o){switch(s=(31&e[t+1])<<8|e[t+2],e[t]){case 207:if(!r){p.logger.log("unkown stream type:"+e[t]);break}case 15:-1===l.audio&&(l.audio=s);break;case 21:-1===l.id3&&(l.id3=s);break;case 219:if(!r){p.logger.log("unkown stream type:"+e[t]);break}case 27:-1===l.avc&&(l.avc=s);break;case 3:case 4:n?-1===l.audio&&(l.audio=s,l.isAAC=!1):p.logger.log("MPEG audio found, not supported in this browser for now");break;case 36:p.logger.warn("HEVC stream type found, not supported for now");break;default:p.logger.log("unkown stream type:"+e[t]);break}t+=5+((15&e[t+3])<<8|e[t+4])}return l}},{key:"_parsePES",value:function(e){var t=0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,l=void 0,u=void 0,c=void 0,d=e.data;if(!e||0===e.size)return null;while(d[0].length<19&&d.length>1){var f=new Uint8Array(d[0].length+d[1].length);f.set(d[0]),f.set(d[1],d[0].length),d[0]=f,d.splice(1,1)}if(n=d[0],i=(n[0]<<16)+(n[1]<<8)+n[2],1===i){if(o=(n[4]<<8)+n[5],o&&o>e.size-6)return null;r=n[7],192&r&&(l=536870912*(14&n[9])+4194304*(255&n[10])+16384*(254&n[11])+128*(255&n[12])+(254&n[13])/2,l>4294967295&&(l-=8589934592),64&r?(u=536870912*(14&n[14])+4194304*(255&n[15])+16384*(254&n[16])+128*(255&n[17])+(254&n[18])/2,u>4294967295&&(u-=8589934592),l-u>54e5&&(p.logger.warn(Math.round((l-u)/9e4)+"s delta between PTS and DTS, align them"),l=u)):u=l),a=n[8],c=a+9,e.size-=c,s=new Uint8Array(e.size);for(var h=0,g=d.length;h<g;h++){n=d[h];var v=n.byteLength;if(c){if(c>v){c-=v;continue}n=n.subarray(c),v-=c,c=0}s.set(n,t),t+=v}return o&&(o-=a+3),{data:s,pts:l,dts:u,len:o}}return null}},{key:"pushAccesUnit",value:function(e,t){if(e.units.length&&e.frame){var n=t.samples,r=n.length;!this.config.forceKeyFrameOnDiscontinuity||!0===e.key||t.sps&&(r||this.contiguous)?(e.id=r,n.push(e)):t.dropped++}e.debug.length&&p.logger.log(e.pts+"/"+e.dts+":"+e.debug)}},{key:"_parseAVCPES",value:function(e,t){var n=this,r=this._avcTrack,i=this._parseAVCNALu(e.data),o=!1,a=void 0,s=this.avcSample,l=void 0,u=!1,c=void 0,f=this.pushAccesUnit.bind(this),h=function(e,t,n,r){return{key:e,pts:t,dts:n,units:[],debug:r}};e.data=null,s&&i.length&&!r.audFound&&(f(s,r),s=this.avcSample=h(!1,e.pts,e.dts,"")),i.forEach((function(t){switch(t.type){case 1:l=!0,s||(s=n.avcSample=h(!0,e.pts,e.dts,"")),o&&(s.debug+="NDR "),s.frame=!0;var i=t.data;if(u&&i.length>4){var p=new d.default(i).readSliceType();2!==p&&4!==p&&7!==p&&9!==p||(s.key=!0)}break;case 5:l=!0,s||(s=n.avcSample=h(!0,e.pts,e.dts,"")),o&&(s.debug+="IDR "),s.key=!0,s.frame=!0;break;case 6:l=!0,o&&s&&(s.debug+="SEI "),a=new d.default(n.discardEPB(t.data)),a.readUByte();var g=0,v=0,y=!1,m=0;while(!y&&a.bytesAvailable>1){g=0;do{m=a.readUByte(),g+=m}while(255===m);v=0;do{m=a.readUByte(),v+=m}while(255===m);if(4===g&&0!==a.bytesAvailable){y=!0;var b=a.readUByte();if(181===b){var x=a.readUShort();if(49===x){var _=a.readUInt();if(1195456820===_){var w=a.readUByte();if(3===w){var S=a.readUByte(),k=a.readUByte(),O=31&S,T=[S,k];for(c=0;c<O;c++)T.push(a.readUByte()),T.push(a.readUByte()),T.push(a.readUByte());n._insertSampleInOrder(n._txtTrack.samples,{type:3,pts:e.pts,bytes:T})}}}}}else if(v<a.bytesAvailable)for(c=0;c<v;c++)a.readUByte()}break;case 7:if(l=!0,u=!0,o&&s&&(s.debug+="SPS "),!r.sps){a=new d.default(t.data);var E=a.readSPS();r.width=E.width,r.height=E.height,r.pixelRatio=E.pixelRatio,r.sps=[t.data],r.duration=n._duration;var C=t.data.subarray(1,4),A="avc1.";for(c=0;c<3;c++){var M=C[c].toString(16);M.length<2&&(M="0"+M),A+=M}r.codec=A}break;case 8:l=!0,o&&s&&(s.debug+="PPS "),r.pps||(r.pps=[t.data]);break;case 9:l=!1,r.audFound=!0,s&&f(s,r),s=n.avcSample=h(!1,e.pts,e.dts,o?"AUD ":"");break;case 12:l=!1;break;default:l=!1,s&&(s.debug+="unknown NAL "+t.type+" ");break}if(s&&l){var L=s.units;L.push(t)}})),t&&s&&(f(s,r),this.avcSample=null)}},{key:"_insertSampleInOrder",value:function(e,t){var n=e.length;if(n>0){if(t.pts>=e[n-1].pts)e.push(t);else for(var r=n-1;r>=0;r--)if(t.pts<e[r].pts){e.splice(r,0,t);break}}else e.push(t)}},{key:"_getLastNalUnit",value:function(){var e=this.avcSample,t=void 0;if(!e||0===e.units.length){var n=this._avcTrack,r=n.samples;e=r[r.length-1]}if(e){var i=e.units;t=i[i.length-1]}return t}},{key:"_parseAVCNALu",value:function(e){var t=0,n=e.byteLength,r=void 0,i=void 0,o=this._avcTrack,a=o.naluState||0,s=a,l=[],u=void 0,c=void 0,d=-1,f=void 0;-1===a&&(d=0,f=31&e[0],a=0,t=1);while(t<n)if(r=e[t++],a)if(1!==a)if(r)if(1===r){if(d>=0)u={data:e.subarray(d,t-a-1),type:f},l.push(u);else{var h=this._getLastNalUnit();if(h&&(s&&t<=4-s&&h.state&&(h.data=h.data.subarray(0,h.data.byteLength-s)),i=t-a-1,i>0)){var p=new Uint8Array(h.data.byteLength+i);p.set(h.data,0),p.set(e.subarray(0,i),h.data.byteLength),h.data=p}}t<n?(c=31&e[t],d=t,f=c,a=0):a=-1}else a=0;else a=3;else a=r?0:2;else a=r?0:1;if(d>=0&&a>=0&&(u={data:e.subarray(d,n),type:f,state:a},l.push(u)),0===l.length){var g=this._getLastNalUnit();if(g){var v=new Uint8Array(g.data.byteLength+e.byteLength);v.set(g.data,0),v.set(e,g.data.byteLength),g.data=v}}return o.naluState=a,l}},{key:"discardEPB",value:function(e){var t=e.byteLength,n=[],r=1,i=void 0,o=void 0;while(r<t-2)0===e[r]&&0===e[r+1]&&3===e[r+2]?(n.push(r+2),r+=2):r++;if(0===n.length)return e;i=t-n.length,o=new Uint8Array(i);var a=0;for(r=0;r<i;a++,r++)a===n[0]&&(a++,n.shift()),o[r]=e[a];return o}},{key:"_parseAACPES",value:function(e){var t=this._audioTrack,n=e.data,r=e.pts,i=0,a=this.aacOverFlow,s=this.aacLastPTS,l=void 0,c=void 0,d=void 0,f=void 0,h=void 0;if(a){var v=new Uint8Array(a.byteLength+n.byteLength);v.set(a,0),v.set(n,a.byteLength),n=v}for(d=i,h=n.length;d<h-1;d++)if(o.isHeader(n,d))break;if(d){var y=void 0,m=void 0;if(d<h-1?(y="AAC PES did not start with ADTS header,offset:"+d,m=!1):(y="no ADTS header found in AAC PES",m=!0),p.logger.warn("parsing error:"+y),this.observer.trigger(u.default.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:m,reason:y}),m)return}if(o.initTrackConfig(t,this.observer,n,d,this.audioCodec),c=0,l=o.getFrameDuration(t.samplerate),a&&s){var b=s+l;Math.abs(b-r)>1&&(p.logger.log("AAC: align PTS for overlapping frames by "+Math.round((b-r)/90)),r=b)}while(d<h)if(o.isHeader(n,d)&&d+5<h){var x=o.appendFrame(t,n,d,r,c);if(!x)break;d+=x.length,f=x.sample.pts,c++}else d++;a=d<h?n.subarray(d,h):null,this.aacOverFlow=a,this.aacLastPTS=f}},{key:"_parseMPEGPES",value:function(e){var t=e.data,n=t.length,r=0,i=0,o=e.pts;while(i<n)if(s.default.isHeader(t,i)){var a=s.default.appendFrame(this._audioTrack,t,i,o,r);if(!a)break;i+=a.length,r++}else i++}},{key:"_parseID3PES",value:function(e){this._id3Track.samples.push(e)}}],[{key:"probe",value:function(t){var n=e._syncOffset(t);return!(n<0)&&(n&&p.logger.warn("MPEG2-TS detected but first sync word found @ offset "+n+", junk ahead ?"),!0)}},{key:"_syncOffset",value:function(e){var t=Math.min(1e3,e.length-564),n=0;while(n<t){if(71===e[n]&&71===e[n+188]&&71===e[n+376])return n;n++}return-1}},{key:"createTrack",value:function(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:b[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],len:0,dropped:"video"===e?0:void 0,isAAC:"audio"===e||void 0,duration:"audio"===e?t:void 0}}}]),e}();t.default=x,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(t){o(this,e),this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}return r(e,[{key:"loadWord",value:function(){var e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(0===i)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i}},{key:"skipBits",value:function(e){var t=void 0;this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t>>3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}},{key:"readBits",value:function(e){var t=Math.min(this.bitsAvailable,e),n=this.word>>>32-t;return e>32&&i.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0?this.word<<=t:this.bytesAvailable>0&&this.loadWord(),t=e-t,t>0&&this.bitsAvailable?n<<t|this.readBits(t):n}},{key:"skipLZ",value:function(){var e=void 0;for(e=0;e<this.bitsAvailable;++e)if(0!==(this.word&2147483648>>>e))return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"skipEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var e=this.skipLZ();return this.readBits(e+1)-1}},{key:"readEG",value:function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}},{key:"readBoolean",value:function(){return 1===this.readBits(1)}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"readUShort",value:function(){return this.readBits(16)}},{key:"readUInt",value:function(){return this.readBits(32)}},{key:"skipScalingList",value:function(e){var t=8,n=8,r=void 0,i=void 0;for(r=0;r<e;r++)0!==n&&(i=this.readEG(),n=(t+i+256)%256),t=0===n?t:n}},{key:"readSPS",value:function(){var e=0,t=0,n=0,r=0,i=void 0,o=void 0,a=void 0,s=void 0,l=void 0,u=void 0,c=void 0,d=this.readUByte.bind(this),f=this.readBits.bind(this),h=this.readUEG.bind(this),p=this.readBoolean.bind(this),g=this.skipBits.bind(this),v=this.skipEG.bind(this),y=this.skipUEG.bind(this),m=this.skipScalingList.bind(this);if(d(),i=d(),f(5),g(3),d(),y(),100===i||110===i||122===i||244===i||44===i||83===i||86===i||118===i||128===i){var b=h();if(3===b&&g(1),y(),y(),g(1),p())for(u=3!==b?8:12,c=0;c<u;c++)p()&&m(c<6?16:64)}y();var x=h();if(0===x)h();else if(1===x)for(g(1),v(),v(),o=h(),c=0;c<o;c++)v();y(),g(1),a=h(),s=h(),l=f(1),0===l&&g(1),g(1),p()&&(e=h(),t=h(),n=h(),r=h());var _=[1,1];if(p()&&p()){var w=d();switch(w){case 1:_=[1,1];break;case 2:_=[12,11];break;case 3:_=[10,11];break;case 4:_=[16,11];break;case 5:_=[40,33];break;case 6:_=[24,11];break;case 7:_=[20,11];break;case 8:_=[32,11];break;case 9:_=[80,33];break;case 10:_=[18,11];break;case 11:_=[15,11];break;case 12:_=[64,33];break;case 13:_=[160,99];break;case 14:_=[4,3];break;case 15:_=[3,2];break;case 16:_=[2,1];break;case 255:_=[d()<<8|d(),d()<<8|d()];break}}return{width:Math.ceil(16*(a+1)-2*e-2*t),height:(2-l)*(s+1)*16-(l?2:4)*(n+r),pixelRatio:_}}},{key:"readSliceType",value:function(){return this.readUByte(),this.readUEG(),this.readUEG()}}]),e}();t.default=a,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(12),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function(){function e(t,n,r,i){s(this,e),this.decryptdata=r,this.discardEPB=i,this.decrypter=new o.default(t,n,{removePKCS7Padding:!1})}return r(e,[{key:"decryptBuffer",value:function(e,t){this.decrypter.decrypt(e,this.decryptdata.key.buffer,this.decryptdata.iv.buffer,t)}},{key:"decryptAacSample",value:function(e,t,n,r){var i=e[t].unit,o=i.subarray(16,i.length-i.length%16),a=o.buffer.slice(o.byteOffset,o.byteOffset+o.length),s=this;this.decryptBuffer(a,(function(o){o=new Uint8Array(o),i.set(o,16),r||s.decryptAacSamples(e,t+1,n)}))}},{key:"decryptAacSamples",value:function(e,t,n){for(;;t++){if(t>=e.length)return void n();if(!(e[t].unit.length<32)){var r=this.decrypter.isSync();if(this.decryptAacSample(e,t,n,r),!r)return}}}},{key:"getAvcEncryptedData",value:function(e){for(var t=16*Math.floor((e.length-48)/160)+16,n=new Int8Array(t),r=0,i=32;i<=e.length-16;i+=160,r+=16)n.set(e.subarray(i,i+16),r);return n}},{key:"getAvcDecryptedUnit",value:function(e,t){t=new Uint8Array(t);for(var n=0,r=32;r<=e.length-16;r+=160,n+=16)e.set(t.subarray(n,n+16),r);return e}},{key:"decryptAvcSample",value:function(e,t,n,r,i,o){var a=this.discardEPB(i.data),s=this.getAvcEncryptedData(a),l=this;this.decryptBuffer(s.buffer,(function(s){i.data=l.getAvcDecryptedUnit(a,s),o||l.decryptAvcSamples(e,t,n+1,r)}))}},{key:"decryptAvcSamples",value:function(e,t,n,r){for(;;t++,n=0){if(t>=e.length)return void r();for(var i=e[t].units;;n++){if(n>=i.length)break;var o=i[n];if(!(o.length<=48||1!==o.type&&5!==o.type)){var a=this.decrypter.isSync();if(this.decryptAvcSample(e,t,n,r,o,a),!a)return}}}}}]),e}();t.default=l,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(10),o=u(i),a=n(0),s=n(23),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=function(){function e(t,n,r){c(this,e),this.observer=t,this.config=r,this.remuxer=n}return r(e,[{key:"resetInitSegment",value:function(e,t,n,r){this._audioTrack={container:"audio/mpeg",type:"audio",id:-1,sequenceNumber:0,isAAC:!1,samples:[],len:0,manifestCodec:t,duration:r,inputTimeScale:9e4}}},{key:"resetTimeStamp",value:function(){}},{key:"append",value:function(e,t,n,r){var i=o.default.getID3Data(e,0),a=o.default.getTimeStamp(i),s=a?90*a:9e4*t,u=i.length,c=e.length,d=0,f=0,h=this._audioTrack,p=[{pts:s,dts:s,data:i}];while(u<c)if(l.default.isHeader(e,u)){var g=l.default.appendFrame(h,e,u,s,d);if(!g)break;u+=g.length,f=g.sample.pts,d++}else o.default.isHeader(e,u)?(i=o.default.getID3Data(e,u),p.push({pts:f,dts:f,data:i}),u+=i.length):u++;this.remuxer.remux(h,{samples:[]},{samples:p,inputTimeScale:9e4},{samples:[]},t,n,r)}},{key:"destroy",value:function(){}}],[{key:"probe",value:function(e){var t=void 0,n=void 0,r=o.default.getID3Data(e,0);if(r&&void 0!==o.default.getTimeStamp(r))for(t=r.length,n=Math.min(e.length-1,t+100);t<n;t++)if(l.default.probe(e,t))return a.logger.log("MPEG Audio sync word found !"),!0;return!1}}]),e}();t.default=d,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(51),o=f(i),a=n(52),s=f(a),l=n(1),u=f(l),c=n(2),d=n(0);function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=1e4,g=function(){function e(t,n,r,i){h(this,e),this.observer=t,this.config=n,this.typeSupported=r;var o=navigator.userAgent;this.isSafari=i&&i.indexOf("Apple")>-1&&o&&!o.match("CriOS"),this.ISGenerated=!1}return r(e,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(e){this._initPTS=this._initDTS=e}},{key:"resetInitSegment",value:function(){this.ISGenerated=!1}},{key:"remux",value:function(e,t,n,r,i,o,a){if(this.ISGenerated||this.generateIS(e,t,i),this.ISGenerated){var s=e.samples.length,l=t.samples.length,c=i,f=i;if(s&&l){var h=(e.samples[0].pts-t.samples[0].pts)/t.inputTimeScale;c+=Math.max(0,h),f+=Math.max(0,-h)}if(s){e.timescale||(d.logger.warn("regenerate InitSegment as audio detected"),this.generateIS(e,t,i));var p=this.remuxAudio(e,c,o,a);if(l){var g=void 0;p&&(g=p.endPTS-p.startPTS),t.timescale||(d.logger.warn("regenerate InitSegment as video detected"),this.generateIS(e,t,i)),this.remuxVideo(t,f,o,g,a)}}else if(l){var v=this.remuxVideo(t,f,o,0,a);v&&e.codec&&this.remuxEmptyAudio(e,c,o,v)}}n.samples.length&&this.remuxID3(n,i),r.samples.length&&this.remuxText(r,i),this.observer.trigger(u.default.FRAG_PARSED)}},{key:"generateIS",value:function(e,t,n){var r=this.observer,i=e.samples,o=t.samples,a=this.typeSupported,l="audio/mp4",f={},h={tracks:f},p=void 0===this._initPTS,g=void 0,v=void 0;if(p&&(g=v=1/0),e.config&&i.length&&(e.timescale=e.samplerate,d.logger.log("audio sampling rate : "+e.samplerate),e.isAAC||(a.mpeg?(l="audio/mpeg",e.codec=""):a.mp3&&(e.codec="mp3")),f.audio={container:l,codec:e.codec,initSegment:!e.isAAC&&a.mpeg?new Uint8Array:s.default.initSegment([e]),metadata:{channelCount:e.channelCount}},p&&(g=v=i[0].pts-e.inputTimeScale*n)),t.sps&&t.pps&&o.length){var y=t.inputTimeScale;t.timescale=y,f.video={container:"video/mp4",codec:t.codec,initSegment:s.default.initSegment([t]),metadata:{width:t.width,height:t.height}},p&&(g=Math.min(g,o[0].pts-y*n),v=Math.min(v,o[0].dts-y*n),this.observer.trigger(u.default.INIT_PTS_FOUND,{initPTS:g}))}Object.keys(f).length?(r.trigger(u.default.FRAG_PARSING_INIT_SEGMENT,h),this.ISGenerated=!0,p&&(this._initPTS=g,this._initDTS=v)):r.trigger(u.default.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"no audio/video samples found"})}},{key:"remuxVideo",value:function(e,t,n,r,i){var o=8,a=void 0,l=void 0,f=void 0,h=void 0,p=void 0,g=void 0,v=void 0,y=e.timescale,m=e.samples,b=[],x=m.length,_=this._PTSNormalize,w=this._initPTS,S=this.nextAvcDts,k=this.isSafari;if(0!==x){k&&(n|=m.length&&S&&(i&&Math.abs(t-S/y)<.1||Math.abs(m[0].pts-S-w)<y/5)),n||(S=t*y),m.forEach((function(e){e.pts=_(e.pts-w,S),e.dts=_(e.dts-w,S)})),m.sort((function(e,t){var n=e.dts-t.dts,r=e.pts-t.pts;return n||r||e.id-t.id}));var O=m.reduce((function(e,t){return Math.max(Math.min(e,t.pts-t.dts),-18e3)}),0);if(O<0){d.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Math.round(O/90)+" ms to overcome this issue");for(var T=0;T<m.length;T++)m[T].dts+=O}var E=m[0];p=Math.max(E.dts,0),h=Math.max(E.pts,0);var C=Math.round((p-S)/90);n&&C&&(C>1?d.logger.log("AVC:"+C+" ms hole between fragments detected,filling it"):C<-1&&d.logger.log("AVC:"+-C+" ms overlapping between fragments detected"),p=S,m[0].dts=p,h=Math.max(h-C,S),m[0].pts=h,d.logger.log("Video/PTS/DTS adjusted: "+Math.round(h/90)+"/"+Math.round(p/90)+",delta:"+C+" ms")),E=m[m.length-1],v=Math.max(E.dts,0),g=Math.max(E.pts,0,v),k&&(a=Math.round((v-p)/(m.length-1)));for(var A=0,M=0,L=0;L<x;L++){for(var I=m[L],D=I.units,j=D.length,P=0,R=0;R<j;R++)P+=D[R].data.length;M+=P,A+=j,I.length=P,I.dts=k?p+L*a:Math.max(I.dts,p),I.pts=Math.max(I.pts,I.dts)}var N=M+4*A+8;try{l=new Uint8Array(N)}catch(re){return void this.observer.trigger(u.default.ERROR,{type:c.ErrorTypes.MUX_ERROR,details:c.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:N,reason:"fail allocating video mdat "+N})}var B=new DataView(l.buffer);B.setUint32(0,N),l.set(s.default.types.mdat,4);for(var F=0;F<x;F++){for(var z=m[F],U=z.units,H=0,V=void 0,G=0,q=U.length;G<q;G++){var W=U[G],Y=W.data,K=W.data.byteLength;B.setUint32(o,K),o+=4,l.set(Y,o),o+=K,H+=4+K}if(k)V=Math.max(0,a*Math.round((z.pts-z.dts)/a));else{if(F<x-1)a=m[F+1].dts-z.dts;else{var X=this.config,Z=z.dts-m[F>0?F-1:F].dts;if(X.stretchShortVideoTrack){var $=X.maxBufferHole,J=Math.floor($*y),Q=(r?h+r*y:this.nextAudioPts)-z.pts;Q>J?(a=Q-Z,a<0&&(a=Z),d.logger.log("It is approximately "+Q/90+" ms to the next segment; using duration "+a/90+" ms for the last video frame.")):a=Z}else a=Z}V=Math.round(z.pts-z.dts)}b.push({size:H,duration:a,cts:V,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:z.key?2:1,isNonSync:z.key?0:1}})}this.nextAvcDts=v+a;var ee=e.dropped;if(e.len=0,e.nbNalu=0,e.dropped=0,b.length&&navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var te=b[0].flags;te.dependsOn=2,te.isNonSync=0}e.samples=b,f=s.default.moof(e.sequenceNumber++,p,e),e.samples=[];var ne={data1:f,data2:l,startPTS:h/y,endPTS:(g+a)/y,startDTS:p/y,endDTS:this.nextAvcDts/y,type:"video",hasAudio:!1,hasVideo:!0,nb:b.length,dropped:ee};return this.observer.trigger(u.default.FRAG_PARSING_DATA,ne),ne}}},{key:"remuxAudio",value:function(e,t,n,r){var i=e.inputTimeScale,a=e.timescale,l=i/a,f=e.isAAC?1024:1152,h=f*l,g=this._PTSNormalize,v=this._initPTS,y=!e.isAAC&&this.typeSupported.mpeg,m=void 0,b=void 0,x=void 0,_=void 0,w=void 0,S=void 0,k=void 0,O=e.samples,T=[],E=this.nextAudioPts;if(n|=O.length&&E&&(r&&Math.abs(t-E/i)<.1||Math.abs(O[0].pts-E-v)<20*h),O.forEach((function(e){e.pts=e.dts=g(e.pts-v,t*i)})),O=O.filter((function(e){return e.pts>=0})),0!==O.length){if(n||(E=r?t*i:O[0].pts),e.isAAC)for(var C=this.config.maxAudioFramesDrift,A=0,M=E;A<O.length;){var L,I=O[A],D=I.pts;L=D-M;var j=Math.abs(1e3*L/i);if(L<=-C*h)d.logger.warn("Dropping 1 audio frame @ "+(M/i).toFixed(3)+"s due to "+Math.round(j)+" ms overlap."),O.splice(A,1),e.len-=I.unit.length;else if(L>=C*h&&j<p&&M){var P=Math.round(L/h);d.logger.warn("Injecting "+P+" audio frame @ "+(M/i).toFixed(3)+"s due to "+Math.round(1e3*L/i)+" ms gap.");for(var R=0;R<P;R++){var N=Math.max(M,0);x=o.default.getSilentFrame(e.manifestCodec||e.codec,e.channelCount),x||(d.logger.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),x=I.unit.subarray()),O.splice(A,0,{unit:x,pts:N,dts:N}),e.len+=x.length,M+=h,A++}I.pts=I.dts=M,M+=h,A++}else Math.abs(L),I.pts=I.dts=M,M+=h,A++}for(var B=0,F=O.length;B<F;B++){var z=O[B],U=z.unit,H=z.pts;if(void 0!==k)b.duration=Math.round((H-k)/l);else{var V=Math.round(1e3*(H-E)/i),G=0;if(n&&e.isAAC&&V){if(V>0&&V<p)G=Math.round((H-E)/h),d.logger.log(V+" ms hole between AAC samples detected,filling it"),G>0&&(x=o.default.getSilentFrame(e.manifestCodec||e.codec,e.channelCount),x||(x=U.subarray()),e.len+=G*x.length);else if(V<-12){d.logger.log("drop overlapping AAC sample, expected/parsed/delta:"+(E/i).toFixed(3)+"s/"+(H/i).toFixed(3)+"s/"+-V+"ms"),e.len-=U.byteLength;continue}H=E}if(S=H,!(e.len>0))return;var q=y?e.len:e.len+8;m=y?0:8;try{_=new Uint8Array(q)}catch(ee){return void this.observer.trigger(u.default.ERROR,{type:c.ErrorTypes.MUX_ERROR,details:c.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:q,reason:"fail allocating audio mdat "+q})}if(!y){var W=new DataView(_.buffer);W.setUint32(0,q),_.set(s.default.types.mdat,4)}for(var Y=0;Y<G;Y++)x=o.default.getSilentFrame(e.manifestCodec||e.codec,e.channelCount),x||(d.logger.log("Unable to get silent frame for given audio codec; duplicating this frame instead."),x=U.subarray()),_.set(x,m),m+=x.byteLength,b={size:x.byteLength,cts:0,duration:1024,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},T.push(b)}_.set(U,m);var K=U.byteLength;m+=K,b={size:K,cts:0,duration:0,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},T.push(b),k=H}var X=0,Z=T.length;if(Z>=2&&(X=T[Z-2].duration,b.duration=X),Z){this.nextAudioPts=E=k+l*X,e.len=0,e.samples=T,w=y?new Uint8Array:s.default.moof(e.sequenceNumber++,S/l,e),e.samples=[];var $=S/i,J=E/i,Q={data1:w,data2:_,startPTS:$,endPTS:J,startDTS:$,endDTS:J,type:"audio",hasAudio:!0,hasVideo:!1,nb:Z};return this.observer.trigger(u.default.FRAG_PARSING_DATA,Q),Q}return null}}},{key:"remuxEmptyAudio",value:function(e,t,n,r){var i=e.inputTimeScale,a=e.samplerate?e.samplerate:i,s=i/a,l=this.nextAudioPts,u=(void 0!==l?l:r.startDTS*i)+this._initDTS,c=r.endDTS*i+this._initDTS,f=1024,h=s*f,p=Math.ceil((c-u)/h),g=o.default.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(d.logger.warn("remux empty Audio"),g){for(var v=[],y=0;y<p;y++){var m=u+y*h;v.push({unit:g,pts:m,dts:m}),e.len+=g.length}e.samples=v,this.remuxAudio(e,t,n)}else d.logger.trace("Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec!")}},{key:"remuxID3",value:function(e){var t=e.samples.length,n=void 0,r=e.inputTimeScale,i=this._initPTS,o=this._initDTS;if(t){for(var a=0;a<t;a++)n=e.samples[a],n.pts=(n.pts-i)/r,n.dts=(n.dts-o)/r;this.observer.trigger(u.default.FRAG_PARSING_METADATA,{samples:e.samples})}e.samples=[]}},{key:"remuxText",value:function(e){e.samples.sort((function(e,t){return e.pts-t.pts}));var t=e.samples.length,n=void 0,r=e.inputTimeScale,i=this._initPTS;if(t){for(var o=0;o<t;o++)n=e.samples[o],n.pts=(n.pts-i)/r;this.observer.trigger(u.default.FRAG_PARSING_USERDATA,{samples:e.samples})}e.samples=[]}},{key:"_PTSNormalize",value:function(e,t){var n=void 0;if(void 0===t)return e;n=t<e?-8589934592:8589934592;while(Math.abs(e-t)>4294967296)e+=n;return e}}]),e}();t.default=g,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){i(this,e)}return r(e,null,[{key:"getSilentFrame",value:function(e,t){switch(e){case"mp4a.40.2":if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return null}}]),e}();t.default=o,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=Math.pow(2,32)-1,a=function(){function e(){i(this,e)}return r(e,null,[{key:"init",value:function(){e.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var t=void 0;for(t in e.types)e.types.hasOwnProperty(t)&&(e.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);var n=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),r=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);e.HDLR_TYPES={video:n,audio:r};var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),o=new Uint8Array([0,0,0,0,0,0,0,0]);e.STTS=e.STSC=e.STCO=o,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var a=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),l=new Uint8Array([0,0,0,1]);e.FTYP=e.box(e.types.ftyp,a,l,a,s),e.DINF=e.box(e.types.dinf,e.box(e.types.dref,i))}},{key:"box",value:function(e){var t=Array.prototype.slice.call(arguments,1),n=8,r=t.length,i=r,o=void 0;while(r--)n+=t[r].byteLength;for(o=new Uint8Array(n),o[0]=n>>24&255,o[1]=n>>16&255,o[2]=n>>8&255,o[3]=255&n,o.set(e,4),r=0,n=8;r<i;r++)o.set(t[r],n),n+=t[r].byteLength;return o}},{key:"hdlr",value:function(t){return e.box(e.types.hdlr,e.HDLR_TYPES[t])}},{key:"mdat",value:function(t){return e.box(e.types.mdat,t)}},{key:"mdhd",value:function(t,n){n*=t;var r=Math.floor(n/(o+1)),i=Math.floor(n%(o+1));return e.box(e.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))}},{key:"mdia",value:function(t){return e.box(e.types.mdia,e.mdhd(t.timescale,t.duration),e.hdlr(t.type),e.minf(t))}},{key:"mfhd",value:function(t){return e.box(e.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}},{key:"minf",value:function(t){return"audio"===t.type?e.box(e.types.minf,e.box(e.types.smhd,e.SMHD),e.DINF,e.stbl(t)):e.box(e.types.minf,e.box(e.types.vmhd,e.VMHD),e.DINF,e.stbl(t))}},{key:"moof",value:function(t,n,r){return e.box(e.types.moof,e.mfhd(t),e.traf(r,n))}},{key:"moov",value:function(t){var n=t.length,r=[];while(n--)r[n]=e.trak(t[n]);return e.box.apply(null,[e.types.moov,e.mvhd(t[0].timescale,t[0].duration)].concat(r).concat(e.mvex(t)))}},{key:"mvex",value:function(t){var n=t.length,r=[];while(n--)r[n]=e.trex(t[n]);return e.box.apply(null,[e.types.mvex].concat(r))}},{key:"mvhd",value:function(t,n){n*=t;var r=Math.floor(n/(o+1)),i=Math.floor(n%(o+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return e.box(e.types.mvhd,a)}},{key:"sdtp",value:function(t){var n=t.samples||[],r=new Uint8Array(4+n.length),i=void 0,o=void 0;for(o=0;o<n.length;o++)i=n[o].flags,r[o+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return e.box(e.types.sdtp,r)}},{key:"stbl",value:function(t){return e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.STTS),e.box(e.types.stsc,e.STSC),e.box(e.types.stsz,e.STSZ),e.box(e.types.stco,e.STCO))}},{key:"avc1",value:function(t){var n=[],r=[],i=void 0,o=void 0,a=void 0;for(i=0;i<t.sps.length;i++)o=t.sps[i],a=o.byteLength,n.push(a>>>8&255),n.push(255&a),n=n.concat(Array.prototype.slice.call(o));for(i=0;i<t.pps.length;i++)o=t.pps[i],a=o.byteLength,r.push(a>>>8&255),r.push(255&a),r=r.concat(Array.prototype.slice.call(o));var s=e.box(e.types.avcC,new Uint8Array([1,n[3],n[4],n[5],255,224|t.sps.length].concat(n).concat([t.pps.length]).concat(r))),l=t.width,u=t.height,c=t.pixelRatio[0],d=t.pixelRatio[1];return e.box(e.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,255&l,u>>8&255,255&u,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,e.box(e.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),e.box(e.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,d>>24,d>>16&255,d>>8&255,255&d])))}},{key:"esds",value:function(e){var t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))}},{key:"mp4a",value:function(t){var n=t.samplerate;return e.box(e.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,n>>8&255,255&n,0,0]),e.box(e.types.esds,e.esds(t)))}},{key:"mp3",value:function(t){var n=t.samplerate;return e.box(e.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,n>>8&255,255&n,0,0]))}},{key:"stsd",value:function(t){return"audio"===t.type?t.isAAC||"mp3"!==t.codec?e.box(e.types.stsd,e.STSD,e.mp4a(t)):e.box(e.types.stsd,e.STSD,e.mp3(t)):e.box(e.types.stsd,e.STSD,e.avc1(t))}},{key:"tkhd",value:function(t){var n=t.id,r=t.duration*t.timescale,i=t.width,a=t.height,s=Math.floor(r/(o+1)),l=Math.floor(r%(o+1));return e.box(e.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,n>>24&255,n>>16&255,n>>8&255,255&n,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,l>>24,l>>16&255,l>>8&255,255&l,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,a>>8&255,255&a,0,0]))}},{key:"traf",value:function(t,n){var r=e.sdtp(t),i=t.id,a=Math.floor(n/(o+1)),s=Math.floor(n%(o+1));return e.box(e.types.traf,e.box(e.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),e.box(e.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s])),e.trun(t,r.length+16+20+8+16+8+8),r)}},{key:"trak",value:function(t){return t.duration=t.duration||4294967295,e.box(e.types.trak,e.tkhd(t),e.mdia(t))}},{key:"trex",value:function(t){var n=t.id;return e.box(e.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trun",value:function(t,n){var r=t.samples||[],i=r.length,o=12+16*i,a=new Uint8Array(o),s=void 0,l=void 0,u=void 0,c=void 0,d=void 0,f=void 0;for(n+=8+o,a.set([0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,255&i,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0),s=0;s<i;s++)l=r[s],u=l.duration,c=l.size,d=l.flags,f=l.cts,a.set([u>>>24&255,u>>>16&255,u>>>8&255,255&u,c>>>24&255,c>>>16&255,c>>>8&255,255&c,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.paddingValue<<1|d.isNonSync,61440&d.degradPrio,15&d.degradPrio,f>>>24&255,f>>>16&255,f>>>8&255,255&f],12+16*s);return e.box(e.types.trun,a)}},{key:"initSegment",value:function(t){e.types||e.init();var n=e.moov(t),r=void 0;return r=new Uint8Array(e.FTYP.byteLength+n.byteLength),r.set(e.FTYP),r.set(n,e.FTYP.byteLength),r}}]),e}();t.default=a,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function(){function e(t){s(this,e),this.observer=t}return r(e,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(){}},{key:"resetInitSegment",value:function(){}},{key:"remux",value:function(e,t,n,r,i,a,s,l){var u=this.observer,c="";e&&(c+="audio"),t&&(c+="video"),u.trigger(o.default.FRAG_PARSING_DATA,{data1:l,startPTS:i,startDTS:i,type:c,hasAudio:!!e,hasVideo:!!t,nb:1,dropped:0}),u.trigger(o.default.FRAG_PARSED)}}]),e}();t.default=l,e.exports=t["default"]},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function l(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),u.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},u.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},u.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,o),!0;case 6:return c.fn.call(c.context,t,n,r,o,a),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,r);break;default:if(!l)for(f=1,l=new Array(d-1);f<d;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},u.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},u.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},u.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return l(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||l(this,o);else{for(var s=0,u=[],c=a.length;s<c;s++)(a[s].fn!==t||r&&!a[s].once||n&&a[s].context!==n)&&u.push(a[s]);u.length?this._events[o]=1===u.length?u[0]:u:l(this,o)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&l(this,t)):(this._events=new o,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=i,u.EventEmitter=u,e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21),i=u(r),o=n(1),a=u(o),s=n(0),l=n(20);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t=new l.EventEmitter;t.trigger=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit.apply(t,[e,e].concat(r))},t.off=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.removeListener.apply(t,[e].concat(r))};var n=function(t,n){e.postMessage({event:t,data:n})};e.addEventListener("message",(function(r){var o=r.data;switch(o.cmd){case"init":var a=JSON.parse(o.config);e.demuxer=new i.default(t,o.typeSupported,a,o.vendor),(0,s.enableLogs)(a.debug),n("init",null);break;case"demux":e.demuxer.push(o.data,o.decryptdata,o.initSegment,o.audioCodec,o.videoCodec,o.timeOffset,o.discontinuity,o.trackSwitch,o.contiguous,o.duration,o.accurateTimeOffset,o.defaultInitPTS);break;default:break}})),t.on(a.default.FRAG_DECRYPTED,n),t.on(a.default.FRAG_PARSING_INIT_SEGMENT,n),t.on(a.default.FRAG_PARSED,n),t.on(a.default.ERROR,n),t.on(a.default.FRAG_PARSING_METADATA,n),t.on(a.default.FRAG_PARSING_USERDATA,n),t.on(a.default.INIT_PTS_FOUND,n),t.on(a.default.FRAG_PARSING_DATA,(function(t,n){var r=[],i={event:t,data:n};n.data1&&(i.data1=n.data1.buffer,r.push(n.data1.buffer),delete n.data1),n.data2&&(i.data2=n.data2.buffer,r.push(n.data2.buffer),delete n.data2),e.postMessage(i,r)}))};t.default=c,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4),o=n(2),a=n(1),s=u(a),l=n(0);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=1e3,f=.5,h=function(){function e(t,n,r,i){c(this,e),this.config=t,this.media=n,this.fragmentTracker=r,this.hls=i,this.stallReported=!1}return r(e,[{key:"poll",value:function(e,t){var n=this.config,r=this.media,o=r.currentTime,a=window.performance.now();if(o!==e)return this.stallReported&&(l.logger.warn("playback not stuck anymore @"+o+", after "+Math.round(a-this.stalled)+"ms"),this.stallReported=!1),this.stalled=null,void(this.nudgeRetry=0);if(!(r.ended||!r.buffered.length||r.readyState>2)&&(!r.seeking||!i.BufferHelper.isBuffered(r,o))){var s=a-this.stalled,u=i.BufferHelper.bufferInfo(r,o,n.maxBufferHole);this.stalled?(s>=d&&this._reportStall(u.len),this._tryFixBufferStall(u,s)):this.stalled=a}}},{key:"_tryFixBufferStall",value:function(e,t){var n=this.config,r=this.fragmentTracker,i=this.media,o=i.currentTime,a=r.getPartialFragment(o);a&&this._trySkipBufferHole(a),e.len>f&&t>1e3*n.highBufferWatchdogPeriod&&(this.stalled=null,this._tryNudgeBuffer())}},{key:"_reportStall",value:function(e){var t=this.hls,n=this.media,r=this.stallReported;r||(this.stallReported=!0,l.logger.warn("Playback stalling at @"+n.currentTime+" due to low buffer"),t.trigger(s.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:e}))}},{key:"_trySkipBufferHole",value:function(e){for(var t=this.hls,n=this.media,r=n.currentTime,i=0,a=0;a<n.buffered.length;a++){var u=n.buffered.start(a);if(r>=i&&r<u)return n.currentTime=Math.max(u,n.currentTime+.1),l.logger.warn("skipping hole, adjusting currentTime from "+r+" to "+n.currentTime),this.stalled=null,void t.trigger(s.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+r+" to "+n.currentTime,frag:e});i=n.buffered.end(a)}}},{key:"_tryNudgeBuffer",value:function(){var e=this.config,t=this.hls,n=this.media,r=n.currentTime,i=(this.nudgeRetry||0)+1;if(this.nudgeRetry=i,i<e.nudgeMaxRetry){var a=r+i*e.nudgeOffset;l.logger.log("adjust currentTime from "+r+" to "+a),n.currentTime=a,t.trigger(s.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else l.logger.error("still stuck in high buffer @"+r+" after "+e.nudgeMaxRetry+", raise fatal error"),t.trigger(s.default.ERROR,{type:o.ErrorTypes.MEDIA_ERROR,details:o.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})}}]),e}();t.default=h,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),a=h(o),s=n(3),l=h(s),u=n(0),c=n(2),d=n(18),f=n(7);function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function v(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=window,m=void y.performance,b=function(e){function t(e){p(this,t);var n=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,a.default.MANIFEST_LOADED,a.default.LEVEL_LOADED,a.default.AUDIO_TRACK_SWITCHED,a.default.FRAG_LOADED,a.default.ERROR));return n.canload=!1,n.currentLevelIndex=null,n.manualLevelIndex=-1,n.timer=null,m=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),n}return v(t,e),i(t,[{key:"onHandlerDestroying",value:function(){this.clearTimer(),this.manualLevelIndex=-1}},{key:"clearTimer",value:function(){null!==this.timer&&(clearTimeout(this.timer),this.timer=null)}},{key:"startLoad",value:function(){var e=this._levels;this.canload=!0,this.levelRetryCount=0,e&&e.forEach((function(e){e.loadError=0;var t=e.details;t&&t.live&&(e.details=void 0)})),null!==this.timer&&this.loadLevel()}},{key:"stopLoad",value:function(){this.canload=!1}},{key:"onManifestLoaded",value:function(e){var t=[],n=[],r=void 0,i={},o=null,s=!1,l=!1;if(e.levels.forEach((function(e){var n=e.attrs;e.loadError=0,e.fragmentError=!1,s=s||!!e.videoCodec,l=l||!!e.audioCodec,m&&e.audioCodec&&-1!==e.audioCodec.indexOf("mp4a.40.34")&&(e.audioCodec=void 0),o=i[e.bitrate],o?o.url.push(e.url):(e.url=[e.url],e.urlId=0,i[e.bitrate]=e,t.push(e)),n&&(n.AUDIO&&(l=!0,(0,f.addGroupId)(o||e,"audio",n.AUDIO)),n.SUBTITLES&&(0,f.addGroupId)(o||e,"text",n.SUBTITLES))})),s&&l&&(t=t.filter((function(e){var t=e.videoCodec;return!!t}))),t=t.filter((function(e){var t=e.audioCodec,n=e.videoCodec;return(!t||(0,d.isCodecSupportedInMp4)(t,"audio"))&&(!n||(0,d.isCodecSupportedInMp4)(n,"video"))})),e.audioTracks&&(n=e.audioTracks.filter((function(e){return!e.audioCodec||(0,d.isCodecSupportedInMp4)(e.audioCodec,"audio")})),n.forEach((function(e,t){e.id=t}))),t.length>0){r=t[0].bitrate,t.sort((function(e,t){return e.bitrate-t.bitrate})),this._levels=t;for(var h=0;h<t.length;h++)if(t[h].bitrate===r){this._firstLevel=h,u.logger.log("manifest loaded,"+t.length+" level(s) found, first bitrate:"+r);break}this.hls.trigger(a.default.MANIFEST_PARSED,{levels:t,audioTracks:n,firstLevel:this._firstLevel,stats:e.stats,audio:l,video:s,altAudio:n.some((function(e){return!!e.url}))})}else this.hls.trigger(a.default.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:this.hls.url,reason:"no level with compatible codecs found in manifest"})}},{key:"setLevelInternal",value:function(e){var t=this._levels,n=this.hls;if(e>=0&&e<t.length){if(this.clearTimer(),this.currentLevelIndex!==e){u.logger.log("switching to level "+e),this.currentLevelIndex=e;var r=t[e];r.level=e,n.trigger(a.default.LEVEL_SWITCHING,r)}var i=t[e],o=i.details;if(!o||o.live){var s=i.urlId;n.trigger(a.default.LEVEL_LOADING,{url:i.url[s],level:e,id:s})}}else n.trigger(a.default.ERROR,{type:c.ErrorTypes.OTHER_ERROR,details:c.ErrorDetails.LEVEL_SWITCH_ERROR,level:e,fatal:!1,reason:"invalid level idx"})}},{key:"onError",value:function(e){if(e.fatal)e.type===c.ErrorTypes.NETWORK_ERROR&&this.clearTimer();else{var t=!1,n=!1,r=void 0;switch(e.details){case c.ErrorDetails.FRAG_LOAD_ERROR:case c.ErrorDetails.FRAG_LOAD_TIMEOUT:case c.ErrorDetails.KEY_LOAD_ERROR:case c.ErrorDetails.KEY_LOAD_TIMEOUT:r=e.frag.level,n=!0;break;case c.ErrorDetails.LEVEL_LOAD_ERROR:case c.ErrorDetails.LEVEL_LOAD_TIMEOUT:r=e.context.level,t=!0;break;case c.ErrorDetails.REMUX_ALLOC_ERROR:r=e.level,t=!0;break}void 0!==r&&this.recoverLevel(e,r,t,n)}}},{key:"recoverLevel",value:function(e,t,n,r){var i=this,o=this.hls.config,a=e.details,s=this._levels[t],l=void 0,c=void 0,d=void 0;if(s.loadError++,s.fragmentError=r,n){if(!(this.levelRetryCount+1<=o.levelLoadingMaxRetry))return u.logger.error("level controller, cannot recover from "+a+" error"),this.currentLevelIndex=null,this.clearTimer(),void(e.fatal=!0);c=Math.min(Math.pow(2,this.levelRetryCount)*o.levelLoadingRetryDelay,o.levelLoadingMaxRetryTimeout),this.timer=setTimeout((function(){return i.loadLevel()}),c),e.levelRetry=!0,this.levelRetryCount++,u.logger.warn("level controller, "+a+", retry in "+c+" ms, current retry count is "+this.levelRetryCount)}(n||r)&&(l=s.url.length,l>1&&s.loadError<l?(s.urlId=(s.urlId+1)%l,s.details=void 0,u.logger.warn("level controller, "+a+" for level "+t+": switching to redundant URL-id "+s.urlId)):-1===this.manualLevelIndex?(d=0===t?this._levels.length-1:t-1,u.logger.warn("level controller, "+a+": switch to "+d),this.hls.nextAutoLevel=this.currentLevelIndex=d):r&&(u.logger.warn("level controller, "+a+": reload a fragment"),this.currentLevelIndex=null))}},{key:"onFragLoaded",value:function(e){var t=e.frag;if(void 0!==t&&"main"===t.type){var n=this._levels[t.level];void 0!==n&&(n.fragmentError=!1,n.loadError=0,this.levelRetryCount=0)}}},{key:"onLevelLoaded",value:function(e){var t=this,n=e.level,r=e.details;if(n===this.currentLevelIndex){var i=this._levels[n];if(i.fragmentError||(i.loadError=0,this.levelRetryCount=0),r.live){var o=(0,f.computeReloadInterval)(i.details,r,e.stats.trequest);u.logger.log("live playlist, reload in "+Math.round(o)+" ms"),this.timer=setTimeout((function(){return t.loadLevel()}),o)}else this.clearTimer()}}},{key:"onAudioTrackSwitched",value:function(e){var t=this.hls.audioTracks[e.id].groupId,n=this.hls.levels[this.currentLevelIndex];if(n&&n.audioGroupIds){for(var r=-1,i=0;i<n.audioGroupIds.length;i++)if(n.audioGroupIds[i]===t){r=i;break}r!==n.urlId&&(n.urlId=r,this.startLoad())}}},{key:"loadLevel",value:function(){if(u.logger.debug("call to loadLevel"),null!==this.currentLevelIndex&&this.canload){var e=this._levels[this.currentLevelIndex];if("object"===("undefined"===typeof e?"undefined":r(e))&&e.url.length>0){var t=this.currentLevelIndex,n=e.urlId,i=e.url[n];u.logger.log("Attempt loading level index "+t+" with URL-id "+n),this.hls.trigger(a.default.LEVEL_LOADING,{url:i,level:t,id:n})}}}},{key:"levels",get:function(){return this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(e){var t=this._levels;t&&(e=Math.min(e,t.length-1),this.currentLevelIndex===e&&t[e].details||this.setLevelInternal(e))}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(e){this._firstLevel=e}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var e=this.hls.config.startLevel;return void 0!==e?e:this._firstLevel}return this._startLevel},set:function(e){this._startLevel=e}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(e){this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}}]),t}(l.default);t.default=b,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=d(i),a=n(3),s=d(a),l=n(10),u=d(l),c=n(29);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(e){f(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.MEDIA_ATTACHED,o.default.MEDIA_DETACHING,o.default.FRAG_PARSING_METADATA));return n.id3Track=void 0,n.media=void 0,n}return p(t,e),r(t,[{key:"destroy",value:function(){s.default.prototype.destroy.call(this)}},{key:"onMediaAttached",value:function(e){this.media=e.media,this.media}},{key:"onMediaDetaching",value:function(){(0,c.clearCurrentCues)(this.id3Track),this.id3Track=void 0,this.media=void 0}},{key:"getID3Track",value:function(e){for(var t=0;t<e.length;t++){var n=e[t];if("metadata"===n.kind&&"id3"===n.label)return(0,c.sendAddTrackEvent)(n,this.media),n}return this.media.addTextTrack("metadata","id3")}},{key:"onFragParsingMetadata",value:function(e){var t=e.frag,n=e.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var r=window.WebKitDataCue||window.VTTCue||window.TextTrackCue,i=0;i<n.length;i++){var o=u.default.getID3Frames(n[i].data);if(o){var a=n[i].pts,s=i<n.length-1?n[i+1].pts:t.endPTS;a===s&&(s+=1e-4);for(var l=0;l<o.length;l++){var c=o[l];if(!u.default.isTimeStampFrame(c)){var d=new r(a,s,"");d.value=c,this.id3Track.addCue(d)}}}}}}]),t}(s.default);t.default=g,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSupported=i;var r=n(13);function i(){var e=(0,r.getMediaSource)(),t=window.SourceBuffer||window.WebKitSourceBuffer,n=e&&"function"===typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),i=!t||t.prototype&&"function"===typeof t.prototype.appendBuffer&&"function"===typeof t.prototype.remove;return!!n&&!!i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hlsDefaultConfig=void 0;var r=n(61),i=C(r),o=n(64),a=C(o),s=n(65),l=C(s),u=n(66),c=C(u),d=n(67),f=C(d),h=n(68),p=C(h),g=n(69),v=C(g),y=n(70),m=E(y),b=n(72),x=C(b),_=n(76),w=C(_),S=n(77),k=n(78),O=C(k),T=n(79);function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function C(e){return e&&e.__esModule?e:{default:e}}var A=t.hlsDefaultConfig={autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,maxBufferSize:6e7,maxBufferHole:.5,lowBufferWatchdogPeriod:.5,highBufferWatchdogPeriod:3,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,liveDurationInfinity:!1,liveBackBufferLength:1/0,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:f.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,abrController:i.default,bufferController:a.default,capLevelController:l.default,fpsController:c.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,requestMediaKeySystemAccessFunc:T.requestMediaKeySystemAccess};A.subtitleStreamController=S.SubtitleStreamController,A.subtitleTrackController=w.default,A.timelineController=x.default,A.cueHandler=m,A.enableCEA708Captions=!0,A.enableWebVTT=!0,A.captionsTextTrack1Label="English",A.captionsTextTrack1LanguageCode="en",A.captionsTextTrack2Label="Spanish",A.captionsTextTrack2LanguageCode="es",A.audioStreamController=v.default,A.audioTrackController=p.default,A.emeController=O.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=h(i),a=n(3),s=h(a),l=n(4),u=n(2),c=n(0),d=n(62),f=h(d);function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function v(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=window,m=y.performance,b=function(e){function t(e){p(this,t);var n=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.FRAG_LOADING,o.default.FRAG_LOADED,o.default.FRAG_BUFFERED,o.default.ERROR));return n.lastLoadedFragLevel=0,n._nextAutoLevel=-1,n.hls=e,n.timer=null,n._bwEstimator=null,n.onCheck=n._abandonRulesCheck.bind(n),n}return v(t,e),r(t,[{key:"destroy",value:function(){this.clearTimer(),s.default.prototype.destroy.call(this)}},{key:"onFragLoading",value:function(e){var t=e.frag;if("main"===t.type&&(this.timer||(this.fragCurrent=t,this.timer=setInterval(this.onCheck,100)),!this._bwEstimator)){var n=this.hls,r=n.config,i=t.level,o=n.levels[i].details.live,a=void 0,s=void 0;o?(a=r.abrEwmaFastLive,s=r.abrEwmaSlowLive):(a=r.abrEwmaFastVoD,s=r.abrEwmaSlowVoD),this._bwEstimator=new f.default(n,s,a,r.abrEwmaDefaultEstimate)}}},{key:"_abandonRulesCheck",value:function(){var e=this.hls,t=e.media,n=this.fragCurrent;if(n){var r=n.loader,i=e.minAutoLevel;if(!r||r.stats&&r.stats.aborted)return c.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),void(this._nextAutoLevel=-1);var a=r.stats;if(t&&a&&(!t.paused&&0!==t.playbackRate||!t.readyState)&&n.autoLevel&&n.level){var s=m.now()-a.trequest,u=Math.abs(t.playbackRate);if(s>500*n.duration/u){var d=e.levels,f=Math.max(1,a.bw?a.bw/8:1e3*a.loaded/s),h=d[n.level],p=h.realBitrate?Math.max(h.realBitrate,h.bitrate):h.bitrate,g=a.total?a.total:Math.max(a.loaded,Math.round(n.duration*p/8)),v=t.currentTime,y=(g-a.loaded)/f,b=(l.BufferHelper.bufferInfo(t,v,e.config.maxBufferHole).end-v)/u;if(b<2*n.duration/u&&y>b){var x=void 0,_=void 0;for(_=n.level-1;_>i;_--){var w=d[_].realBitrate?Math.max(d[_].realBitrate,d[_].bitrate):d[_].bitrate;if(x=n.duration*w/(6.4*f),x<b)break}x<y&&(c.logger.warn("loading too slow, abort fragment loading and switch to level "+_+":fragLoadedDelay["+_+"]<fragLoadedDelay["+(n.level-1)+"];bufferStarvationDelay:"+x.toFixed(1)+"<"+y.toFixed(1)+":"+b.toFixed(1)),e.nextLoadLevel=_,this._bwEstimator.sample(s,a.loaded),r.abort(),this.clearTimer(),e.trigger(o.default.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,stats:a}))}}}}}},{key:"onFragLoaded",value:function(e){var t=e.frag;if("main"===t.type&&Number.isFinite(t.sn)){if(this.clearTimer(),this.lastLoadedFragLevel=t.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var n=this.hls.levels[t.level],r=(n.loaded?n.loaded.bytes:0)+e.stats.loaded,i=(n.loaded?n.loaded.duration:0)+e.frag.duration;n.loaded={bytes:r,duration:i},n.realBitrate=Math.round(8*r/i)}if(e.frag.bitrateTest){var o=e.stats;o.tparsed=o.tbuffered=o.tload,this.onFragBuffered(e)}}}},{key:"onFragBuffered",value:function(e){var t=e.stats,n=e.frag;if(!0!==t.aborted&&"main"===n.type&&Number.isFinite(n.sn)&&(!n.bitrateTest||t.tload===t.tbuffered)){var r=t.tparsed-t.trequest;c.logger.log("latency/loading/parsing/append/kbps:"+Math.round(t.tfirst-t.trequest)+"/"+Math.round(t.tload-t.tfirst)+"/"+Math.round(t.tparsed-t.tload)+"/"+Math.round(t.tbuffered-t.tparsed)+"/"+Math.round(8*t.loaded/(t.tbuffered-t.trequest))),this._bwEstimator.sample(r,t.loaded),t.bwEstimate=this._bwEstimator.getEstimate(),n.bitrateTest?this.bitrateTestDelay=r/1e3:this.bitrateTestDelay=0}}},{key:"onError",value:function(e){switch(e.details){case u.ErrorDetails.FRAG_LOAD_ERROR:case u.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}}},{key:"clearTimer",value:function(){clearInterval(this.timer),this.timer=null}},{key:"_findBestLevel",value:function(e,t,n,r,i,o,a,s,l){for(var u=i;u>=r;u--){var d=l[u];if(d){var f=d.details,h=f?f.totalduration/f.fragments.length:t,p=!!f&&f.live,g=void 0;g=u<=e?a*n:s*n;var v=l[u].realBitrate?Math.max(l[u].realBitrate,l[u].bitrate):l[u].bitrate,y=v*h/g;if(c.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+u+"/"+Math.round(g)+"/"+v+"/"+h+"/"+o+"/"+y),g>v&&(!y||p&&!this.bitrateTestDelay||y<o))return u}}return-1}},{key:"nextAutoLevel",get:function(){var e=this._nextAutoLevel,t=this._bwEstimator;if(-1!==e&&(!t||!t.canEstimate()))return e;var n=this._nextABRAutoLevel;return-1!==e&&(n=Math.min(e,n)),n},set:function(e){this._nextAutoLevel=e}},{key:"_nextABRAutoLevel",get:function(){var e=this.hls,t=e.maxAutoLevel,n=e.levels,r=e.config,i=e.minAutoLevel,o=e.media,a=this.lastLoadedFragLevel,s=this.fragCurrent?this.fragCurrent.duration:0,u=o?o.currentTime:0,d=o&&0!==o.playbackRate?Math.abs(o.playbackRate):1,f=this._bwEstimator?this._bwEstimator.getEstimate():r.abrEwmaDefaultEstimate,h=(l.BufferHelper.bufferInfo(o,u,r.maxBufferHole).end-u)/d,p=this._findBestLevel(a,s,f,i,t,h,r.abrBandWidthFactor,r.abrBandWidthUpFactor,n);if(p>=0)return p;c.logger.trace("rebuffering expected to happen, lets try to find a quality level minimizing the rebuffering");var g=s?Math.min(s,r.maxStarvationDelay):r.maxStarvationDelay,v=r.abrBandWidthFactor,y=r.abrBandWidthUpFactor;if(0===h){var m=this.bitrateTestDelay;if(m){var b=s?Math.min(s,r.maxLoadingDelay):r.maxLoadingDelay;g=b-m,c.logger.trace("bitrate test took "+Math.round(1e3*m)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*g)+" ms"),v=y=1}}return p=this._findBestLevel(a,s,f,i,t,h+g,v,y,n),Math.max(p,0)}}]),t}(s.default);t.default=b,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(63),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function(){function e(t,n,r,i){s(this,e),this.hls=t,this.defaultEstimate_=i,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new o.default(n),this.fast_=new o.default(r)}return r(e,[{key:"sample",value:function(e,t){e=Math.max(e,this.minDelayMs_);var n=8e3*t/e,r=e/1e3;this.fast_.sample(r,n),this.slow_.sample(r,n)}},{key:"canEstimate",value:function(){var e=this.fast_;return e&&e.getTotalWeight()>=this.minWeight_}},{key:"getEstimate",value:function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}},{key:"destroy",value:function(){}}]),e}();t.default=l,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t){i(this,e),this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=0,this.totalWeight_=0}return r(e,[{key:"sample",value:function(e,t){var n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}},{key:"getTotalWeight",value:function(){return this.totalWeight_}},{key:"getEstimate",value:function(){if(this.alpha_){var e=1-Math.pow(this.alpha_,this.totalWeight_);return this.estimate_/e}return this.estimate_}}]),e}();t.default=o,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=d(i),a=n(3),s=d(a),l=n(0),u=n(2),c=n(13);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=(0,c.getMediaSource)(),v=function(e){function t(e){f(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.MEDIA_ATTACHING,o.default.MEDIA_DETACHING,o.default.MANIFEST_PARSED,o.default.BUFFER_RESET,o.default.BUFFER_APPENDING,o.default.BUFFER_CODECS,o.default.BUFFER_EOS,o.default.BUFFER_FLUSHING,o.default.LEVEL_PTS_UPDATED,o.default.LEVEL_UPDATED));return n._msDuration=null,n._levelDuration=null,n._levelTargetDuration=10,n._live=null,n._objectUrl=null,n.bufferCodecEventsExpected=0,n.onsbue=n.onSBUpdateEnd.bind(n),n.onsbe=n.onSBUpdateError.bind(n),n.pendingTracks={},n.tracks={},n}return p(t,e),r(t,[{key:"destroy",value:function(){s.default.prototype.destroy.call(this)}},{key:"onLevelPtsUpdated",value:function(e){var t=e.type,n=this.tracks.audio;if("audio"===t&&n&&"audio/mpeg"===n.container){var r=this.sourceBuffer.audio,i=Math.abs(r.timestampOffset-e.start);if(i>.1){var o=r.updating;try{r.abort()}catch(a){l.logger.warn("can not abort audio buffer: "+a)}o?this.audioTimestampOffset=e.start:(l.logger.warn("change mpeg audio timestamp offset from "+r.timestampOffset+" to "+e.start),r.timestampOffset=e.start)}}}},{key:"onManifestParsed",value:function(e){this.bufferCodecEventsExpected=e.altAudio?2:1,l.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")}},{key:"onMediaAttaching",value:function(e){var t=this.media=e.media;if(t){var n=this.mediaSource=new g;this.onmso=this.onMediaSourceOpen.bind(this),this.onmse=this.onMediaSourceEnded.bind(this),this.onmsc=this.onMediaSourceClose.bind(this),n.addEventListener("sourceopen",this.onmso),n.addEventListener("sourceended",this.onmse),n.addEventListener("sourceclose",this.onmsc),t.src=window.URL.createObjectURL(n),this._objectUrl=t.src}}},{key:"onMediaDetaching",value:function(){l.logger.log("media source detaching");var e=this.mediaSource;if(e){if("open"===e.readyState)try{e.endOfStream()}catch(t){l.logger.warn("onMediaDetaching:"+t.message+" while calling endOfStream")}e.removeEventListener("sourceopen",this.onmso),e.removeEventListener("sourceended",this.onmse),e.removeEventListener("sourceclose",this.onmsc),this.media&&(window.URL.revokeObjectURL(this._objectUrl),this.media.src===this._objectUrl?(this.media.removeAttribute("src"),this.media.load()):l.logger.warn("media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.pendingTracks={},this.tracks={},this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0}this.onmso=this.onmse=this.onmsc=null,this.hls.trigger(o.default.MEDIA_DETACHED)}},{key:"onMediaSourceOpen",value:function(){l.logger.log("media source opened"),this.hls.trigger(o.default.MEDIA_ATTACHED,{media:this.media});var e=this.mediaSource;e&&e.removeEventListener("sourceopen",this.onmso),this.checkPendingTracks()}},{key:"checkPendingTracks",value:function(){var e=this.bufferCodecEventsExpected,t=this.pendingTracks,n=Object.keys(t).length;(n&&!e||2===n)&&(this.createSourceBuffers(t),this.pendingTracks={},this.doAppending())}},{key:"onMediaSourceClose",value:function(){l.logger.log("media source closed")}},{key:"onMediaSourceEnded",value:function(){l.logger.log("media source ended")}},{key:"onSBUpdateEnd",value:function(){if(this.audioTimestampOffset){var e=this.sourceBuffer.audio;l.logger.warn("change mpeg audio timestamp offset from "+e.timestampOffset+" to "+this.audioTimestampOffset),e.timestampOffset=this.audioTimestampOffset,delete this.audioTimestampOffset}this._needsFlush&&this.doFlush(),this._needsEos&&this.checkEos(),this.appending=!1;var t=this.parent,n=this.segments.reduce((function(e,n){return n.parent===t?e+1:e}),0),r={},i=this.sourceBuffer;for(var a in i)r[a]=i[a].buffered;if(!1===this._paused&&r["video"]&&r["video"].length>0&&r["audio"]&&r["audio"].length>0)if(r["video"].end(0)-r["video"].start(0)>1&&r["audio"].end(0)-r["audio"].start(0)>1){var s=Math.max(r["video"].start(0),r["audio"].start(0));this.media.currentTime=s,this.media.play(),delete this["_paused"]}else{var u=Math.max(r["video"].end(0),r["audio"].end(0));this.media.currentTime=u,this.media.play()}this.hls.trigger(o.default.BUFFER_APPENDED,{parent:t,pending:n,timeRanges:r}),this._needsFlush||this.doAppending(),this.updateMediaElementDuration(),0===n&&this.flushLiveBackBuffer()}},{key:"onSBUpdateError",value:function(e){l.logger.error("sourceBuffer error:",e),this.hls.trigger(o.default.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1})}},{key:"onBufferReset",value:function(){var e=this.sourceBuffer;for(var t in e){var n=e[t];try{this.mediaSource.removeSourceBuffer(n),n.removeEventListener("updateend",this.onsbue),n.removeEventListener("error",this.onsbe)}catch(r){}}this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0}},{key:"onBufferCodecs",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.pendingTracks[n]=e[n]}));var n=this.mediaSource;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),n&&"open"===n.readyState&&this.checkPendingTracks()}},{key:"createSourceBuffers",value:function(e){var t=this.sourceBuffer,n=this.mediaSource;for(var r in e)if(!t[r]){var i=e[r],a=i.levelCodec||i.codec,s=i.container+";codecs="+a;l.logger.log("creating sourceBuffer("+s+")");try{var c=t[r]=n.addSourceBuffer(s);c.addEventListener("updateend",this.onsbue),c.addEventListener("error",this.onsbe),this.tracks[r]={codec:a,container:i.container},i.buffer=c}catch(p){if(22==p.code){l.logger.log("Found new track, try to rebuild"),this._paused=!1;var d=this.mediaSource=new g;this.onmso=this.onMediaSourceOpen.bind(this),this.onmse=this.onMediaSourceEnded.bind(this),this.onmsc=this.onMediaSourceClose.bind(this);for(var f=0;f<Object.keys(this.tracks).length;f++){var h=this.tracks[Object.keys(this.tracks)[f]];this.pendingTracks[Object.keys(this.tracks)[f]]=h}this.tracks={},this.sourceBuffer={},d.addEventListener("sourceopen",this.onmso),d.addEventListener("sourceended",this.onmse),d.addEventListener("sourceclose",this.onmsc),this.media.src=window.URL.createObjectURL(d),this._objectUrl=media.src}else l.logger.error("error while trying to add sourceBuffer:"+p.message),this.hls.trigger(o.default.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,err:p,mimeType:s})}}this.hls.trigger(o.default.BUFFER_CREATED,{tracks:e})}},{key:"onBufferAppending",value:function(e){this._needsFlush||(this.segments?this.segments.push(e):this.segments=[e],this.doAppending())}},{key:"onBufferAppendFail",value:function(e){l.logger.error("sourceBuffer error:",e.event),this.hls.trigger(o.default.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1})}},{key:"onBufferEos",value:function(e){var t=this.sourceBuffer,n=e.type;for(var r in t)n&&r!==n||t[r].ended||(t[r].ended=!0,l.logger.log(r+" sourceBuffer now EOS"));this.checkEos()}},{key:"checkEos",value:function(){var e=this.sourceBuffer,t=this.mediaSource;if(t&&"open"===t.readyState){for(var n in e){var r=e[n];if(!r.ended)return;if(r.updating)return void(this._needsEos=!0)}l.logger.log("all media data are available, signal endOfStream() to MediaSource and stop loading fragment");try{t.endOfStream()}catch(i){l.logger.warn("exception while calling mediaSource.endOfStream()")}this._needsEos=!1}else this._needsEos=!1}},{key:"onBufferFlushing",value:function(e){this.flushRange.push({start:e.startOffset,end:e.endOffset,type:e.type}),this.flushBufferCounter=0,this.doFlush()}},{key:"flushLiveBackBuffer",value:function(){if(this._live){var e=this.hls.config.liveBackBufferLength;if(isFinite(e)&&!(e<0))for(var t=this.media.currentTime,n=this.sourceBuffer,r=Object.keys(n),i=t-Math.max(e,this._levelTargetDuration),o=r.length-1;o>=0;o--){var a=r[o],s=n[a].buffered;s.length>0&&i>s.start(0)&&this.removeBufferRange(a,n[a],0,i)}}}},{key:"onLevelUpdated",value:function(e){var t=e.details;t.fragments.length>0&&(this._levelDuration=t.totalduration+t.fragments[0].start,this._levelTargetDuration=t.averagetargetduration||t.targetduration||10,this._live=t.live,this.updateMediaElementDuration())}},{key:"updateMediaElementDuration",value:function(){var e=this.hls.config,t=void 0;if(null!==this._levelDuration&&this.media&&this.mediaSource&&this.sourceBuffer&&0!==this.media.readyState&&"open"===this.mediaSource.readyState){for(var n in this.sourceBuffer)if(!0===this.sourceBuffer[n].updating)return;t=this.media.duration,null===this._msDuration&&(this._msDuration=this.mediaSource.duration),!0===this._live&&!0===e.liveDurationInfinity?(l.logger.log("Media Source duration is set to Infinity"),this._msDuration=this.mediaSource.duration=1/0):(this._levelDuration>this._msDuration&&this._levelDuration>t||!Number.isFinite(t))&&(l.logger.log("Updating Media Source duration to "+this._levelDuration.toFixed(3)),this._msDuration=this.mediaSource.duration=this._levelDuration)}}},{key:"doFlush",value:function(){while(this.flushRange.length){var e=this.flushRange[0];if(!this.flushBuffer(e.start,e.end,e.type))return void(this._needsFlush=!0);this.flushRange.shift(),this.flushBufferCounter=0}if(0===this.flushRange.length){this._needsFlush=!1;var t=0,n=this.sourceBuffer;try{for(var r in n)t+=n[r].buffered.length}catch(i){l.logger.error("error while accessing sourceBuffer.buffered")}this.appended=t,this.hls.trigger(o.default.BUFFER_FLUSHED)}}},{key:"doAppending",value:function(){var e=this.hls,t=this.segments,n=this.sourceBuffer;if(Object.keys(n).length){if(this.media.error)return this.segments=[],void l.logger.error("trying to append although a media error occured, flush segment and abort");if(this.appending)return;if(t&&t.length){var r=t.shift();try{var i=r.type,a=n[i];a?a.updating?t.unshift(r):(a.ended=!1,this.parent=r.parent,a.appendBuffer(r.data),this.appendError=0,this.appended++,this.appending=!0):this.onSBUpdateEnd()}catch(c){l.logger.error("error while trying to append buffer:"+c.message),t.unshift(r);var s={type:u.ErrorTypes.MEDIA_ERROR,parent:r.parent};22!==c.code?(this.appendError?this.appendError++:this.appendError=1,s.details=u.ErrorDetails.BUFFER_APPEND_ERROR,this.appendError>e.config.appendErrorMaxRetry?(l.logger.log("fail "+e.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),this.segments=[],s.fatal=!0,e.trigger(o.default.ERROR,s)):(s.fatal=!1,e.trigger(o.default.ERROR,s))):(this.segments=[],s.details=u.ErrorDetails.BUFFER_FULL_ERROR,s.fatal=!1,e.trigger(o.default.ERROR,s))}}}}},{key:"flushBuffer",value:function(e,t,n){var r=void 0,i=this.sourceBuffer;if(Object.keys(i).length){if(l.logger.log("flushBuffer,pos/start/end: "+this.media.currentTime.toFixed(3)+"/"+e+"/"+t),this.flushBufferCounter<this.appended){for(var o in i)if(!n||o===n){if(r=i[o],r.ended=!1,r.updating)return l.logger.warn("cannot flush, sb updating in progress"),!1;if(this.removeBufferRange(o,r,e,t))return this.flushBufferCounter++,!1}}else l.logger.warn("abort flushing too many retries");l.logger.log("buffer flushed")}return!0}},{key:"removeBufferRange",value:function(e,t,n,r){try{for(var i=0;i<t.buffered.length;i++){var o=t.buffered.start(i),a=t.buffered.end(i),s=Math.max(o,n),u=Math.min(a,r);if(Math.min(u,a)-s>.5)return l.logger.log("sb remove "+e+" ["+s+","+u+"], of ["+o+","+a+"], pos:"+this.media.currentTime),t.remove(s,u),!0}}catch(c){l.logger.warn("removeBufferRange failed",c)}return!1}}]),t}(s.default);t.default=v,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=l(i),a=n(3),s=l(a);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e){u(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.FPS_DROP_LEVEL_CAPPING,o.default.MEDIA_ATTACHING,o.default.MANIFEST_PARSED,o.default.BUFFER_CODECS,o.default.MEDIA_DETACHING));return n.autoLevelCapping=Number.POSITIVE_INFINITY,n.firstLevel=null,n.levels=[],n.media=null,n.restrictedLevels=[],n.timer=null,n}return d(t,e),r(t,[{key:"destroy",value:function(){this.hls.config.capLevelToPlayerSize&&(this.media=null,this._stopCapping())}},{key:"onFpsDropLevelCapping",value:function(e){t.isLevelAllowed(e.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(e.droppedLevel)}},{key:"onMediaAttaching",value:function(e){this.media=e.media instanceof window.HTMLVideoElement?e.media:null}},{key:"onManifestParsed",value:function(e){var t=this.hls;this.restrictedLevels=[],this.levels=e.levels,this.firstLevel=e.firstLevel,t.config.capLevelToPlayerSize&&e.video&&this._startCapping()}},{key:"onBufferCodecs",value:function(e){var t=this.hls;t.config.capLevelToPlayerSize&&e.video&&this._startCapping()}},{key:"onLevelsUpdated",value:function(e){this.levels=e.levels}},{key:"onMediaDetaching",value:function(){this._stopCapping()}},{key:"detectPlayerSize",value:function(){if(this.media){var e=this.levels?this.levels.length:0;if(e){var t=this.hls;t.autoLevelCapping=this.getMaxLevel(e-1),t.autoLevelCapping>this.autoLevelCapping&&t.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}},{key:"getMaxLevel",value:function(e){var n=this;if(!this.levels)return-1;var r=this.levels.filter((function(r,i){return t.isLevelAllowed(i,n.restrictedLevels)&&i<=e}));return t.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)}},{key:"_startCapping",value:function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),clearInterval(this.timer),this.timer=setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}},{key:"_stopCapping",value:function(){this.restrictedLevels=[],this.firstLevel=null,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(this.timer=clearInterval(this.timer),this.timer=null)}},{key:"mediaWidth",get:function(){var e=void 0,n=this.media;return n&&(e=n.width||n.clientWidth||n.offsetWidth,e*=t.contentScaleFactor),e}},{key:"mediaHeight",get:function(){var e=void 0,n=this.media;return n&&(e=n.height||n.clientHeight||n.offsetHeight,e*=t.contentScaleFactor),e}}],[{key:"isLevelAllowed",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return-1===t.indexOf(e)}},{key:"getMaxLevelByMediaSize",value:function(e,t,n){if(!e||e&&!e.length)return-1;for(var r=function(e,t){return!t||e.width!==t.width||e.height!==t.height},i=e.length-1,o=0;o<e.length;o+=1){var a=e[o];if((a.width>=t||a.height>=n)&&r(a,e[o+1])){i=o;break}}return i}},{key:"contentScaleFactor",get:function(){var e=1;try{e=window.devicePixelRatio}catch(t){}return e}}]),t}(s.default);t.default=f,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=u(i),a=n(3),s=u(a),l=n(0);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=window,p=h.performance,g=function(e){function t(e){return c(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.MEDIA_ATTACHING))}return f(t,e),r(t,[{key:"destroy",value:function(){this.timer&&clearInterval(this.timer),this.isVideoPlaybackQualityAvailable=!1}},{key:"onMediaAttaching",value:function(e){var t=this.hls.config;if(t.capLevelOnFPSDrop){var n=this.video=e.media instanceof window.HTMLVideoElement?e.media:null;"function"===typeof n.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),clearInterval(this.timer),this.timer=setInterval(this.checkFPSInterval.bind(this),t.fpsDroppedMonitoringPeriod)}}},{key:"checkFPS",value:function(e,t,n){var r=p.now();if(t){if(this.lastTime){var i=r-this.lastTime,a=n-this.lastDroppedFrames,s=t-this.lastDecodedFrames,u=1e3*a/i,c=this.hls;if(c.trigger(o.default.FPS_DROP,{currentDropped:a,currentDecoded:s,totalDroppedFrames:n}),u>0&&a>c.config.fpsDroppedMonitoringThreshold*s){var d=c.currentLevel;l.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+d),d>0&&(-1===c.autoLevelCapping||c.autoLevelCapping>=d)&&(d-=1,c.trigger(o.default.FPS_DROP_LEVEL_CAPPING,{level:d,droppedLevel:c.currentLevel}),c.autoLevelCapping=d,c.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}},{key:"checkFPSInterval",value:function(){var e=this.video;if(e)if(this.isVideoPlaybackQualityAvailable){var t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}]),t}(s.default);t.default=g,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=window,s=a.performance,l=a.XMLHttpRequest,u=function(){function e(t){o(this,e),t&&t.xhrSetup&&(this.xhrSetup=t.xhrSetup)}return r(e,[{key:"destroy",value:function(){this.abort(),this.loader=null}},{key:"abort",value:function(){var e=this.loader;e&&4!==e.readyState&&(this.stats.aborted=!0,e.abort()),window.clearTimeout(this.requestTimeout),this.requestTimeout=null,window.clearTimeout(this.retryTimeout),this.retryTimeout=null}},{key:"load",value:function(e,t,n){this.context=e,this.config=t,this.callbacks=n,this.stats={trequest:s.now(),retry:0},this.retryDelay=t.retryDelay,this.loadInternal()}},{key:"loadInternal",value:function(){var e=void 0,t=this.context;e=this.loader=new l;var n=this.stats;n.tfirst=0,n.loaded=0;var r=this.xhrSetup;try{if(r)try{r(e,t.url)}catch(i){e.open("GET",t.url,!0),r(e,t.url)}e.readyState||e.open("GET",t.url,!0)}catch(i){return void this.callbacks.onError({code:e.status,text:i.message},t,e)}t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),this.config.timeout),e.send()}},{key:"readystatechange",value:function(e){var t=e.currentTarget,n=t.readyState,r=this.stats,o=this.context,a=this.config;if(!r.aborted&&n>=2)if(window.clearTimeout(this.requestTimeout),0===r.tfirst&&(r.tfirst=Math.max(s.now(),r.trequest)),4===n){var l=t.status;if(l>=200&&l<300){r.tload=Math.max(r.tfirst,s.now());var u=void 0,c=void 0;"arraybuffer"===o.responseType?(u=t.response,c=u.byteLength):(u=t.responseText,c=u.length),r.loaded=r.total=c;var d={url:t.responseURL,data:u};this.callbacks.onSuccess(d,r,o,t)}else r.retry>=a.maxRetry||l>=400&&l<499?(i.logger.error(l+" while loading "+o.url),this.callbacks.onError({code:l,text:t.statusText},o,t)):(i.logger.warn(l+" while loading "+o.url+", retrying in "+this.retryDelay+"..."),this.destroy(),this.retryTimeout=window.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,a.maxRetryDelay),r.retry++)}else this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),a.timeout)}},{key:"loadtimeout",value:function(){i.logger.warn("timeout while loading "+this.context.url),this.callbacks.onTimeout(this.stats,this.context,null)}},{key:"loadprogress",value:function(e){var t=e.currentTarget,n=this.stats;n.loaded=e.loaded,e.lengthComputable&&(n.total=e.total);var r=this.callbacks.onProgress;r&&r(n,this.context,null,t)}}]),e}();t.default=u,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=c(i),a=n(28),s=c(a),l=n(0),u=n(2);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e){d(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.MANIFEST_LOADING,o.default.MANIFEST_PARSED,o.default.AUDIO_TRACK_LOADED,o.default.AUDIO_TRACK_SWITCHED,o.default.LEVEL_LOADED,o.default.ERROR));return n._trackId=-1,n._selectDefaultTrack=!0,n.tracks=[],n.trackIdBlacklist=Object.create(null),n.audioGroupId=null,n}return h(t,e),r(t,[{key:"onManifestLoading",value:function(){this.tracks=[],this._trackId=-1,this._selectDefaultTrack=!0}},{key:"onManifestParsed",value:function(e){var t=this.tracks=e.audioTracks||[];this.hls.trigger(o.default.AUDIO_TRACKS_UPDATED,{audioTracks:t})}},{key:"onAudioTrackLoaded",value:function(e){if(e.id>=this.tracks.length)l.logger.warn("Invalid audio track id:",e.id);else{if(l.logger.log("audioTrack "+e.id+" loaded"),this.tracks[e.id].details=e.details,e.details.live&&!this.hasInterval()){var t=1e3*e.details.targetduration;this.setInterval(t)}!e.details.live&&this.hasInterval()&&this.clearInterval()}}},{key:"onAudioTrackSwitched",value:function(e){var t=this.tracks[e.id].groupId;t&&this.audioGroupId!==t&&(this.audioGroupId=t)}},{key:"onLevelLoaded",value:function(e){var t=this.hls.levels[e.level];if(t.audioGroupIds){var n=t.audioGroupIds[t.urlId];this.audioGroupId!==n&&(this.audioGroupId=n,this._selectInitialAudioTrack())}}},{key:"onError",value:function(e){e.type===u.ErrorTypes.NETWORK_ERROR&&(e.fatal&&this.clearInterval(),e.details===u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR&&(l.logger.warn("Network failure on audio-track id:",e.context.id),this._handleLoadError()))}},{key:"_setAudioTrack",value:function(e){if(this._trackId===e&&this.tracks[this._trackId].details)l.logger.debug("Same id as current audio-track passed, and track details available -> no-op");else if(e<0||e>=this.tracks.length)l.logger.warn("Invalid id passed to audio-track controller");else{var t=this.tracks[e];l.logger.log("Now switching to audio-track index "+e),this.clearInterval(),this._trackId=e;var n=t.url,r=t.type,i=t.id;this.hls.trigger(o.default.AUDIO_TRACK_SWITCHING,{id:i,type:r,url:n}),this._loadTrackDetailsIfNeeded(t)}}},{key:"doTick",value:function(){this._updateTrack(this._trackId)}},{key:"_selectInitialAudioTrack",value:function(){var e=this,t=this.tracks;if(t.length){var n=this.tracks[this._trackId],r=null;if(n&&(r=n.name),this._selectDefaultTrack){var i=t.filter((function(e){return e.default}));i.length?t=i:l.logger.warn("No default audio tracks defined")}var a=!1,s=function(){t.forEach((function(t){a||e.audioGroupId&&t.groupId!==e.audioGroupId||r&&r!==t.name||(e._setAudioTrack(t.id),a=!0)}))};s(),a||(r=null,s()),a||(l.logger.error("No track found for running audio group-ID: "+this.audioGroupId),this.hls.trigger(o.default.ERROR,{type:u.ErrorTypes.MEDIA_ERROR,details:u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))}}},{key:"_needsTrackLoading",value:function(e){var t=e.details,n=e.url;return!(t&&!t.live)&&!!n}},{key:"_loadTrackDetailsIfNeeded",value:function(e){if(this._needsTrackLoading(e)){var t=e.url,n=e.id;l.logger.log("loading audio-track playlist for id: "+n),this.hls.trigger(o.default.AUDIO_TRACK_LOADING,{url:t,id:n})}}},{key:"_updateTrack",value:function(e){if(!(e<0||e>=this.tracks.length)){this.clearInterval(),this._trackId=e,l.logger.log("trying to update audio-track "+e);var t=this.tracks[e];this._loadTrackDetailsIfNeeded(t)}}},{key:"_handleLoadError",value:function(){this.trackIdBlacklist[this._trackId]=!0;var e=this._trackId,t=this.tracks[e],n=t.name,r=t.language,i=t.groupId;l.logger.warn("Loading failed on audio track id: "+e+", group-id: "+i+', name/language: "'+n+'" / "'+r+'"');for(var o=e,a=0;a<this.tracks.length;a++)if(!this.trackIdBlacklist[a]){var s=this.tracks[a];if(s.name===n){o=a;break}}o!==e?(l.logger.log("Attempting audio-track fallback id:",o,"group-id:",this.tracks[o].groupId),this._setAudioTrack(o)):l.logger.warn('No fallback audio-track found for name/language: "'+n+'" / "'+r+'"')}},{key:"audioTracks",get:function(){return this.tracks}},{key:"audioTrack",get:function(){return this._trackId},set:function(e){this._setAudioTrack(e),this._selectDefaultTrack=!1}}]),t}(s.default);t.default=p,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(9),o=k(i),a=n(4),s=n(19),l=k(s),u=n(1),c=k(u),d=n(7),f=S(d),h=n(25),p=k(h),g=n(2),v=n(0),y=n(26),m=n(6),b=n(11),x=k(b),_=n(14),w=k(_);function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function E(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var C=window,A=C.performance,M=100,L=function(e){function t(e,n){O(this,t);var r=T(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,c.default.MEDIA_ATTACHED,c.default.MEDIA_DETACHING,c.default.AUDIO_TRACKS_UPDATED,c.default.AUDIO_TRACK_SWITCHING,c.default.AUDIO_TRACK_LOADED,c.default.KEY_LOADED,c.default.FRAG_LOADED,c.default.FRAG_PARSING_INIT_SEGMENT,c.default.FRAG_PARSING_DATA,c.default.FRAG_PARSED,c.default.ERROR,c.default.BUFFER_RESET,c.default.BUFFER_CREATED,c.default.BUFFER_APPENDED,c.default.BUFFER_FLUSHED,c.default.INIT_PTS_FOUND));return r.fragmentTracker=n,r.config=e.config,r.audioCodecSwap=!1,r._state=_.State.STOPPED,r.initPTS=[],r.waitingFragment=null,r.videoTrackCC=null,r}return E(t,e),r(t,[{key:"onInitPtsFound",value:function(e){var t=e.id,n=e.frag.cc,r=e.initPTS;"main"===t&&(this.initPTS[n]=r,this.videoTrackCC=n,v.logger.log("InitPTS for cc: "+n+" found from video track: "+r),this.state===_.State.WAITING_INIT_PTS&&this.tick())}},{key:"startLoad",value:function(e){if(this.tracks){var t=this.lastCurrentTime;this.stopLoad(),this.setInterval(M),this.fragLoadError=0,t>0&&-1===e?(v.logger.log("audio:override startPosition with lastCurrentTime @"+t.toFixed(3)),this.state=_.State.IDLE):(this.lastCurrentTime=this.startPosition?this.startPosition:e,this.state=_.State.STARTING),this.nextLoadPosition=this.startPosition=this.lastCurrentTime,this.tick()}else this.startPosition=e,this.state=_.State.STOPPED}},{key:"doTick",value:function(){var e=void 0,t=void 0,n=void 0,r=this.hls,i=r.config;switch(this.state){case _.State.ERROR:case _.State.PAUSED:case _.State.BUFFER_FLUSHING:break;case _.State.STARTING:this.state=_.State.WAITING_TRACK,this.loadedmetadata=!1;break;case _.State.IDLE:var s=this.tracks;if(!s)break;if(!this.media&&(this.startFragRequested||!i.startFragPrefetch))break;if(this.loadedmetadata)e=this.media.currentTime;else if(e=this.nextLoadPosition,void 0===e)break;var l=this.mediaBuffer?this.mediaBuffer:this.media,u=this.videoBuffer?this.videoBuffer:this.media,d=a.BufferHelper.bufferInfo(l,e,i.maxBufferHole),f=a.BufferHelper.bufferInfo(u,e,i.maxBufferHole),h=d.len,p=d.end,g=this.fragPrevious,b=Math.min(i.maxBufferLength,i.maxMaxBufferLength),x=Math.max(b,f.len),w=this.audioSwitch,S=this.trackId;if((h<x||w)&&S<s.length){if(n=s[S].details,"undefined"===typeof n){this.state=_.State.WAITING_TRACK;break}if(!w&&this._streamEnded(d,n))return this.hls.trigger(c.default.BUFFER_EOS,{type:"audio"}),void(this.state=_.State.ENDED);var k=n.fragments,O=k.length,T=k[0].start,E=k[O-1].start+k[O-1].duration,C=void 0;if(w)if(n.live&&!n.PTSKnown)v.logger.log("switching audiotrack, live stream, unknown PTS,load first fragment"),p=0;else if(p=e,n.PTSKnown&&e<T){if(!(d.end>T||d.nextStart))return;v.logger.log("alt audio track ahead of main track, seek to start of alt audio track"),this.media.currentTime=T+.05}if(n.initSegment&&!n.initSegment.data)C=n.initSegment;else if(p<=T){if(C=k[0],null!==this.videoTrackCC&&C.cc!==this.videoTrackCC&&(C=(0,y.findFragWithCC)(k,this.videoTrackCC)),n.live&&C.loadIdx&&C.loadIdx===this.fragLoadIdx){var M=d.nextStart?d.nextStart:T;return v.logger.log("no alt audio available @currentTime:"+this.media.currentTime+", seeking @"+(M+.05)),void(this.media.currentTime=M+.05)}}else{var L=void 0,I=i.maxFragLookUpTolerance,D=g?k[g.sn-k[0].sn+1]:void 0,j=function(e){var t=Math.min(I,e.duration);return e.start+e.duration-t<=p?1:e.start-t>p&&e.start?-1:0};p<E?(p>E-I&&(I=0),L=D&&!j(D)?D:o.default.search(k,j)):L=k[O-1],L&&(C=L,T=L.start,g&&C.level===g.level&&C.sn===g.sn&&(C.sn<n.endSN?(C=k[C.sn+1-n.startSN],v.logger.log("SN just loaded, load next one: "+C.sn)):C=null))}C&&(C.encrypted?(v.logger.log("Loading key for "+C.sn+" of ["+n.startSN+" ,"+n.endSN+"],track "+S),this.state=_.State.KEY_LOADING,r.trigger(c.default.KEY_LOADING,{frag:C})):(v.logger.log("Loading "+C.sn+", cc: "+C.cc+" of ["+n.startSN+" ,"+n.endSN+"],track "+S+", currentTime:"+e+",bufferEnd:"+p.toFixed(3)),this.fragCurrent=C,(w||this.fragmentTracker.getState(C)===m.FragmentState.NOT_LOADED)&&(this.startFragRequested=!0,Number.isFinite(C.sn)&&(this.nextLoadPosition=C.start+C.duration),r.trigger(c.default.FRAG_LOADING,{frag:C}),this.state=_.State.FRAG_LOADING)))}break;case _.State.WAITING_TRACK:t=this.tracks[this.trackId],t&&t.details&&(this.state=_.State.IDLE);break;case _.State.FRAG_LOADING_WAITING_RETRY:var P=A.now(),R=this.retryDate;l=this.media;var N=l&&l.seeking;(!R||P>=R||N)&&(v.logger.log("audioStreamController: retryDate reached, switch back to IDLE state"),this.state=_.State.IDLE);break;case _.State.WAITING_INIT_PTS:var B=this.videoTrackCC;if(void 0===this.initPTS[B])break;var F=this.waitingFragment;if(F){var z=F.frag.cc;B!==z?(t=this.tracks[this.trackId],t.details&&t.details.live&&(v.logger.warn("Waiting fragment CC ("+z+") does not match video track CC ("+B+")"),this.waitingFragment=null,this.state=_.State.IDLE)):(this.state=_.State.FRAG_LOADING,this.onFragLoaded(this.waitingFragment),this.waitingFragment=null)}else this.state=_.State.IDLE;break;case _.State.STOPPED:case _.State.FRAG_LOADING:case _.State.PARSING:case _.State.PARSED:case _.State.ENDED:break;default:break}}},{key:"onMediaAttached",value:function(e){var t=this.media=this.mediaBuffer=e.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),t.addEventListener("seeking",this.onvseeking),t.addEventListener("ended",this.onvended);var n=this.config;this.tracks&&n.autoStartLoad&&this.startLoad(n.startPosition)}},{key:"onMediaDetaching",value:function(){var e=this.media;e&&e.ended&&(v.logger.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.media=this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1,this.stopLoad()}},{key:"onAudioTracksUpdated",value:function(e){v.logger.log("audio tracks updated"),this.tracks=e.audioTracks}},{key:"onAudioTrackSwitching",value:function(e){var t=!!e.url;this.trackId=e.id,this.fragCurrent=null,this.state=_.State.PAUSED,this.waitingFragment=null,t?this.setInterval(M):this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),t&&(this.audioSwitch=!0,this.state=_.State.IDLE),this.tick()}},{key:"onAudioTrackLoaded",value:function(e){var t=e.details,n=e.id,r=this.tracks[n],i=t.totalduration,o=0;if(v.logger.log("track "+n+" loaded ["+t.startSN+","+t.endSN+"],duration:"+i),t.live){var a=r.details;a&&t.fragments.length>0?(f.mergeDetails(a,t),o=t.fragments[0].start,t.PTSKnown?v.logger.log("live audio playlist sliding:"+o.toFixed(3)):v.logger.log("live audio playlist - outdated PTS, unknown sliding")):(t.PTSKnown=!1,v.logger.log("live audio playlist - first load, unknown sliding"))}else t.PTSKnown=!1;if(r.details=t,!this.startFragRequested){if(-1===this.startPosition){var s=t.startTimeOffset;Number.isFinite(s)?(v.logger.log("start time offset found in playlist, adjust startPosition to "+s),this.startPosition=s):this.startPosition=0}this.nextLoadPosition=this.startPosition}this.state===_.State.WAITING_TRACK&&(this.state=_.State.IDLE),this.tick()}},{key:"onKeyLoaded",value:function(){this.state===_.State.KEY_LOADING&&(this.state=_.State.IDLE,this.tick())}},{key:"onFragLoaded",value:function(e){var t=this.fragCurrent,n=e.frag;if(this.state===_.State.FRAG_LOADING&&t&&"audio"===n.type&&n.level===t.level&&n.sn===t.sn){var r=this.tracks[this.trackId],i=r.details,o=i.totalduration,a=t.level,s=t.sn,u=t.cc,d=this.config.defaultAudioCodec||r.audioCodec||"mp4a.40.2",f=this.stats=e.stats;if("initSegment"===s)this.state=_.State.IDLE,f.tparsed=f.tbuffered=A.now(),i.initSegment.data=e.payload,this.hls.trigger(c.default.FRAG_BUFFERED,{stats:f,frag:t,id:"audio"}),this.tick();else{this.state=_.State.PARSING,this.appended=!1,this.demuxer||(this.demuxer=new l.default(this.hls,"audio"));var h=this.initPTS[u],p=i.initSegment?i.initSegment.data:[];if(i.initSegment||void 0!==h){this.pendingBuffering=!0,v.logger.log("Demuxing "+s+" of ["+i.startSN+" ,"+i.endSN+"],track "+a);var g=!1;this.demuxer.push(e.payload,p,d,null,t,o,g,h)}else v.logger.log("unknown video PTS for continuity counter "+u+", waiting for video PTS before demuxing audio frag "+s+" of ["+i.startSN+" ,"+i.endSN+"],track "+a),this.waitingFragment=e,this.state=_.State.WAITING_INIT_PTS}}this.fragLoadError=0}},{key:"onFragParsingInitSegment",value:function(e){var t=this.fragCurrent,n=e.frag;if(t&&"audio"===e.id&&n.sn===t.sn&&n.level===t.level&&this.state===_.State.PARSING){var r=e.tracks,i=void 0;if(r.video&&delete r.video,i=r.audio,i){i.levelCodec=i.codec,i.id=e.id,this.hls.trigger(c.default.BUFFER_CODECS,r),v.logger.log("audio track:audio,container:"+i.container+",codecs[level/parsed]=["+i.levelCodec+"/"+i.codec+"]");var o=i.initSegment;if(o){var a={type:"audio",data:o,parent:"audio",content:"initSegment"};this.audioSwitch?this.pendingData=[a]:(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(c.default.BUFFER_APPENDING,a))}this.tick()}}}},{key:"onFragParsingData",value:function(e){var t=this,n=this.fragCurrent,r=e.frag;if(n&&"audio"===e.id&&"audio"===e.type&&r.sn===n.sn&&r.level===n.level&&this.state===_.State.PARSING){var i=this.trackId,o=this.tracks[i],a=this.hls;Number.isFinite(e.endPTS)||(e.endPTS=e.startPTS+n.duration,e.endDTS=e.startDTS+n.duration),n.addElementaryStream(x.default.ElementaryStreamTypes.AUDIO),v.logger.log("parsed "+e.type+",PTS:["+e.startPTS.toFixed(3)+","+e.endPTS.toFixed(3)+"],DTS:["+e.startDTS.toFixed(3)+"/"+e.endDTS.toFixed(3)+"],nb:"+e.nb),f.updateFragPTSDTS(o.details,n,e.startPTS,e.endPTS);var s=this.audioSwitch,l=this.media,u=!1;if(s&&l)if(l.readyState){var d=l.currentTime;v.logger.log("switching audio track : currentTime:"+d),d>=e.startPTS&&(v.logger.log("switching audio track : flushing all audio"),this.state=_.State.BUFFER_FLUSHING,a.trigger(c.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),u=!0,this.audioSwitch=!1,a.trigger(c.default.AUDIO_TRACK_SWITCHED,{id:i}))}else this.audioSwitch=!1,a.trigger(c.default.AUDIO_TRACK_SWITCHED,{id:i});var h=this.pendingData;if(!h)return v.logger.warn("Apparently attempt to enqueue media payload without codec initialization data upfront"),void a.trigger(c.default.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:null,fatal:!0});this.audioSwitch||([e.data1,e.data2].forEach((function(t){t&&t.length&&h.push({type:e.type,data:t,parent:"audio",content:"data"})})),!u&&h.length&&(h.forEach((function(e){t.state===_.State.PARSING&&(t.pendingBuffering=!0,t.hls.trigger(c.default.BUFFER_APPENDING,e))})),this.pendingData=[],this.appended=!0)),this.tick()}}},{key:"onFragParsed",value:function(e){var t=this.fragCurrent,n=e.frag;t&&"audio"===e.id&&n.sn===t.sn&&n.level===t.level&&this.state===_.State.PARSING&&(this.stats.tparsed=A.now(),this.state=_.State.PARSED,this._checkAppendedParsed())}},{key:"onBufferReset",value:function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}},{key:"onBufferCreated",value:function(e){var t=e.tracks.audio;t&&(this.mediaBuffer=t.buffer,this.loadedmetadata=!0),e.tracks.video&&(this.videoBuffer=e.tracks.video.buffer)}},{key:"onBufferAppended",value:function(e){if("audio"===e.parent){var t=this.state;t!==_.State.PARSING&&t!==_.State.PARSED||(this.pendingBuffering=e.pending>0,this._checkAppendedParsed())}}},{key:"_checkAppendedParsed",value:function(){if(this.state===_.State.PARSED&&(!this.appended||!this.pendingBuffering)){var e=this.fragCurrent,t=this.stats,n=this.hls;if(e){this.fragPrevious=e,t.tbuffered=A.now(),n.trigger(c.default.FRAG_BUFFERED,{stats:t,frag:e,id:"audio"});var r=this.mediaBuffer?this.mediaBuffer:this.media;v.logger.log("audio buffered : "+p.default.toString(r.buffered)),this.audioSwitch&&this.appended&&(this.audioSwitch=!1,n.trigger(c.default.AUDIO_TRACK_SWITCHED,{id:this.trackId})),this.state=_.State.IDLE}this.tick()}}},{key:"onError",value:function(e){var t=e.frag;if(!t||"audio"===t.type)switch(e.details){case g.ErrorDetails.FRAG_LOAD_ERROR:case g.ErrorDetails.FRAG_LOAD_TIMEOUT:var n=e.frag;if(n&&"audio"!==n.type)break;if(!e.fatal){var r=this.fragLoadError;r?r++:r=1;var i=this.config;if(r<=i.fragLoadingMaxRetry){this.fragLoadError=r;var o=Math.min(Math.pow(2,r-1)*i.fragLoadingRetryDelay,i.fragLoadingMaxRetryTimeout);v.logger.warn("AudioStreamController: frag loading failed, retry in "+o+" ms"),this.retryDate=A.now()+o,this.state=_.State.FRAG_LOADING_WAITING_RETRY}else v.logger.error("AudioStreamController: "+e.details+" reaches max retry, redispatch as fatal ..."),e.fatal=!0,this.state=_.State.ERROR}break;case g.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case g.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:case g.ErrorDetails.KEY_LOAD_ERROR:case g.ErrorDetails.KEY_LOAD_TIMEOUT:this.state!==_.State.ERROR&&(this.state=e.fatal?_.State.ERROR:_.State.IDLE,v.logger.warn("AudioStreamController: "+e.details+" while loading frag, now switching to "+this.state+" state ..."));break;case g.ErrorDetails.BUFFER_FULL_ERROR:if("audio"===e.parent&&(this.state===_.State.PARSING||this.state===_.State.PARSED)){var s=this.mediaBuffer,l=this.media.currentTime,u=s&&a.BufferHelper.isBuffered(s,l)&&a.BufferHelper.isBuffered(s,l+.5);if(u){var d=this.config;d.maxMaxBufferLength>=d.maxBufferLength&&(d.maxMaxBufferLength/=2,v.logger.warn("AudioStreamController: reduce max buffer length to "+d.maxMaxBufferLength+"s")),this.state=_.State.IDLE}else v.logger.warn("AudioStreamController: buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,this.state=_.State.BUFFER_FLUSHING,this.hls.trigger(c.default.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"})}break;default:break}}},{key:"onBufferFlushed",value:function(){var e=this,t=this.pendingData;t&&t.length?(v.logger.log("AudioStreamController: appending pending audio data after buffer flushed"),t.forEach((function(t){e.hls.trigger(c.default.BUFFER_APPENDING,t)})),this.appended=!0,this.pendingData=[],this.state=_.State.PARSED):(this.state=_.State.IDLE,this.fragPrevious=null,this.tick())}},{key:"state",set:function(e){if(this.state!==e){var t=this.state;this._state=e,v.logger.log("audio stream:"+t+"->"+e)}},get:function(){return this._state}}]),t}(w.default);t.default=L,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.newCue=i;var r=n(30);function i(e,t,n,i){for(var o=void 0,a=void 0,s=void 0,l=void 0,u=void 0,c=window.VTTCue||window.TextTrackCue,d=0;d<i.rows.length;d++)if(o=i.rows[d],s=!0,l=0,u="",!o.isEmpty()){for(var f=0;f<o.chars.length;f++)o.chars[f].uchar.match(/\s/)&&s?l++:(u+=o.chars[f].uchar,s=!1);o.cueStartTime=t,t===n&&(n+=1e-4),a=new c(t,n,(0,r.fixLineBreaks)(u.trim())),l>=16?l--:l++,navigator.userAgent.match(/Firefox\//)?a.line=d+1:a.line=d>7?d-2:d+1,a.align="left",a.position=Math.max(0,Math.min(100,l/32*100+(navigator.userAgent.match(/Firefox\//)?50:0))),e.addCue(a)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if("undefined"!==typeof window&&window.VTTCue)return window.VTTCue;var e="auto",t={"":!0,lr:!0,rl:!0},n={start:!0,middle:!0,end:!0,left:!0,right:!0};function r(e){if("string"!==typeof e)return!1;var n=t[e.toLowerCase()];return!!n&&e.toLowerCase()}function i(e){if("string"!==typeof e)return!1;var t=n[e.toLowerCase()];return!!t&&e.toLowerCase()}function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function a(t,n,a){var s=this,l=function(){if("undefined"!==typeof navigator)return/MSIE\s8\.0/.test(navigator.userAgent)}(),u={};l?s=document.createElement("custom"):u.enumerable=!0,s.hasBeenReset=!1;var c="",d=!1,f=t,h=n,p=a,g=null,v="",y=!0,m="auto",b="start",x=50,_="middle",w=50,S="middle";if(Object.defineProperty(s,"id",o({},u,{get:function(){return c},set:function(e){c=""+e}})),Object.defineProperty(s,"pauseOnExit",o({},u,{get:function(){return d},set:function(e){d=!!e}})),Object.defineProperty(s,"startTime",o({},u,{get:function(){return f},set:function(e){if("number"!==typeof e)throw new TypeError("Start time must be set to a number.");f=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",o({},u,{get:function(){return h},set:function(e){if("number"!==typeof e)throw new TypeError("End time must be set to a number.");h=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",o({},u,{get:function(){return p},set:function(e){p=""+e,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",o({},u,{get:function(){return g},set:function(e){g=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",o({},u,{get:function(){return v},set:function(e){var t=r(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",o({},u,{get:function(){return y},set:function(e){y=!!e,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",o({},u,{get:function(){return m},set:function(t){if("number"!==typeof t&&t!==e)throw new SyntaxError("An invalid number or illegal string was specified.");m=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",o({},u,{get:function(){return b},set:function(e){var t=i(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",o({},u,{get:function(){return x},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");x=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",o({},u,{get:function(){return _},set:function(e){var t=i(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",o({},u,{get:function(){return w},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");w=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",o({},u,{get:function(){return S},set:function(e){var t=i(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");S=t,this.hasBeenReset=!0}})),s.displayState=void 0,l)return s}return a.prototype.getCueAsHTML=function(){var e=window.WebVTT;return e.convertCueToDOMTree(window,this.text)},a}(),e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=v(i),a=n(3),s=v(a),l=n(73),u=v(l),c=n(74),d=v(c),f=n(75),h=v(f),p=n(0),g=n(29);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function b(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function x(e,t){return e&&e.label===t.name&&!(e.textTrack1||e.textTrack2)}function _(e,t,n,r){return Math.min(t,r)-Math.max(e,n)}var w=function(e){function t(e){y(this,t);var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.MEDIA_ATTACHING,o.default.MEDIA_DETACHING,o.default.FRAG_PARSING_USERDATA,o.default.FRAG_DECRYPTED,o.default.MANIFEST_LOADING,o.default.MANIFEST_LOADED,o.default.FRAG_LOADED,o.default.LEVEL_SWITCHING,o.default.INIT_PTS_FOUND));if(n.hls=e,n.config=e.config,n.enabled=!0,n.Cues=e.config.cueHandler,n.textTracks=[],n.tracks=[],n.unparsedVttFrags=[],n.initPTS=[],n.cueRanges=[],n.captionsTracks={},n.captionsProperties={textTrack1:{label:n.config.captionsTextTrack1Label,languageCode:n.config.captionsTextTrack1LanguageCode},textTrack2:{label:n.config.captionsTextTrack2Label,languageCode:n.config.captionsTextTrack2LanguageCode}},n.config.enableCEA708Captions){var r=new d.default(n,"textTrack1"),i=new d.default(n,"textTrack2");n.cea608Parser=new u.default(0,r,i)}return n}return b(t,e),r(t,[{key:"addCues",value:function(e,t,n,r){for(var i=this.cueRanges,o=!1,a=i.length;a--;){var s=i[a],l=_(s[0],s[1],t,n);if(l>=0&&(s[0]=Math.min(s[0],t),s[1]=Math.max(s[1],n),o=!0,l/(n-t)>.5))return}o||i.push([t,n]),this.Cues.newCue(this.captionsTracks[e],t,n,r)}},{key:"onInitPtsFound",value:function(e){var t=this;if("main"===e.id&&(this.initPTS[e.frag.cc]=e.initPTS),this.unparsedVttFrags.length){var n=this.unparsedVttFrags;this.unparsedVttFrags=[],n.forEach((function(e){t.onFragLoaded(e)}))}}},{key:"getExistingTrack",value:function(e){var t=this.media;if(t)for(var n=0;n<t.textTracks.length;n++){var r=t.textTracks[n];if(r[e])return r}return null}},{key:"createCaptionsTrack",value:function(e){var t=this.captionsProperties[e],n=t.label,r=t.languageCode,i=this.captionsTracks;if(!i[e]){var o=this.getExistingTrack(e);if(o)i[e]=o,(0,g.clearCurrentCues)(i[e]),(0,g.sendAddTrackEvent)(i[e],this.media);else{var a=this.createTextTrack("captions",n,r);a&&(a[e]=!0,i[e]=a)}}}},{key:"createTextTrack",value:function(e,t,n){var r=this.media;if(r)return r.addTextTrack(e,t,n)}},{key:"destroy",value:function(){s.default.prototype.destroy.call(this)}},{key:"onMediaAttaching",value:function(e){this.media=e.media,this._cleanTracks()}},{key:"onMediaDetaching",value:function(){var e=this.captionsTracks;Object.keys(e).forEach((function(t){(0,g.clearCurrentCues)(e[t]),delete e[t]}))}},{key:"onManifestLoading",value:function(){this.lastSn=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}},this._cleanTracks()}},{key:"_cleanTracks",value:function(){var e=this.media;if(e){var t=e.textTracks;if(t)for(var n=0;n<t.length;n++)(0,g.clearCurrentCues)(t[n])}}},{key:"onManifestLoaded",value:function(e){var t=this;if(this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.cueRanges=[],this.config.enableWebVTT){this.tracks=e.subtitles||[];var n=this.media?this.media.textTracks:[];this.tracks.forEach((function(e,r){var i=void 0;if(r<n.length){for(var o=null,a=0;a<n.length;a++)if(x(n[a],e)){o=n[a];break}o&&(i=o)}i||(i=t.createTextTrack("subtitles",e.name,e.lang)),e.default?i.mode=t.hls.subtitleDisplay?"showing":"hidden":i.mode="disabled",t.textTracks.push(i)}))}}},{key:"onLevelSwitching",value:function(){this.enabled="NONE"!==this.hls.currentLevel.closedCaptions}},{key:"onFragLoaded",value:function(e){var t=e.frag,n=e.payload;if("main"===t.type){var r=t.sn;if(r!==this.lastSn+1){var i=this.cea608Parser;i&&i.reset()}this.lastSn=r}else if("subtitle"===t.type)if(n.byteLength){if(!Number.isFinite(this.initPTS[t.cc]))return this.unparsedVttFrags.push(e),void(this.initPTS.length&&this.hls.trigger(o.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t}));var a=t.decryptdata;null!=a&&null!=a.key&&"AES-128"===a.method||this._parseVTTs(t,n)}else this.hls.trigger(o.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t})}},{key:"_parseVTTs",value:function(e,t){var n=this.vttCCs;n[e.cc]||(n[e.cc]={start:e.start,prevCC:this.prevCC,new:!0},this.prevCC=e.cc);var r=this.textTracks,i=this.hls;h.default.parse(t,this.initPTS[e.cc],n,e.cc,(function(t){var n=r[e.level];"disabled"!==n.mode?(t.forEach((function(e){if(!n.cues.getCueById(e.id))try{n.addCue(e)}catch(r){var t=new window.TextTrackCue(e.startTime,e.endTime,e.text);t.id=e.id,n.addCue(t)}})),i.trigger(o.default.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})):i.trigger(o.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e})}),(function(t){p.logger.log("Failed to parse VTT cue: "+t),i.trigger(o.default.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e})}))}},{key:"onFragDecrypted",value:function(e){var t=e.payload,n=e.frag;if("subtitle"===n.type){if(!Number.isFinite(this.initPTS[n.cc]))return void this.unparsedVttFrags.push(e);this._parseVTTs(n,t)}}},{key:"onFragParsingUserdata",value:function(e){if(this.enabled&&this.config.enableCEA708Captions)for(var t=0;t<e.samples.length;t++){var n=this.extractCea608Data(e.samples[t].bytes);this.cea608Parser.addData(e.samples[t].pts,n)}}},{key:"extractCea608Data",value:function(e){for(var t=31&e[0],n=2,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,l=[],u=0;u<t;u++)r=e[n++],i=127&e[n++],o=127&e[n++],a=0!==(4&r),s=3&r,0===i&&0===o||a&&0===s&&(l.push(i),l.push(o));return l}}]),t}(s.default);t.default=w,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},a=function(e){var t=e;return o.hasOwnProperty(e)&&(t=o[e]),String.fromCharCode(t)},s=15,l=100,u={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},c={17:2,18:4,21:6,22:8,23:10,19:13,20:15},d={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},f={25:2,26:4,29:6,30:8,31:10,27:13,28:15},h=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],p={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(e){this.time=e},log:function(e,t){this.verboseFilter[e],this.verboseLevel}},g=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toString(16));return t},v=function(){function e(t,n,r,o,a){i(this,e),this.foreground=t||"white",this.underline=n||!1,this.italics=r||!1,this.background=o||"black",this.flash=a||!1}return r(e,[{key:"reset",value:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}},{key:"setStyles",value:function(e){for(var t=["foreground","underline","italics","background","flash"],n=0;n<t.length;n++){var r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}}},{key:"isDefault",value:function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash}},{key:"equals",value:function(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}},{key:"copy",value:function(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}},{key:"toString",value:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}]),e}(),y=function(){function e(t,n,r,o,a,s){i(this,e),this.uchar=t||" ",this.penState=new v(n,r,o,a,s)}return r(e,[{key:"reset",value:function(){this.uchar=" ",this.penState.reset()}},{key:"setChar",value:function(e,t){this.uchar=e,this.penState.copy(t)}},{key:"setPenState",value:function(e){this.penState.copy(e)}},{key:"equals",value:function(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}},{key:"copy",value:function(e){this.uchar=e.uchar,this.penState.copy(e.penState)}},{key:"isEmpty",value:function(){return" "===this.uchar&&this.penState.isDefault()}}]),e}(),m=function(){function e(){i(this,e),this.chars=[];for(var t=0;t<l;t++)this.chars.push(new y);this.pos=0,this.currPenState=new v}return r(e,[{key:"equals",value:function(e){for(var t=!0,n=0;n<l;n++)if(!this.chars[n].equals(e.chars[n])){t=!1;break}return t}},{key:"copy",value:function(e){for(var t=0;t<l;t++)this.chars[t].copy(e.chars[t])}},{key:"isEmpty",value:function(){for(var e=!0,t=0;t<l;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e}},{key:"setCursor",value:function(e){this.pos!==e&&(this.pos=e),this.pos<0?(p.log("ERROR","Negative cursor position "+this.pos),this.pos=0):this.pos>l&&(p.log("ERROR","Too large cursor position "+this.pos),this.pos=l)}},{key:"moveCursor",value:function(e){var t=this.pos+e;if(e>1)for(var n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)}},{key:"backSpace",value:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}},{key:"insertChar",value:function(e){e>=144&&this.backSpace();var t=a(e);this.pos>=l?p.log("ERROR","Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1))}},{key:"clearFromPos",value:function(e){var t=void 0;for(t=e;t<l;t++)this.chars[t].reset()}},{key:"clear",value:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}},{key:"clearToEndOfRow",value:function(){this.clearFromPos(this.pos)}},{key:"getTextString",value:function(){for(var e=[],t=!0,n=0;n<l;n++){var r=this.chars[n].uchar;" "!==r&&(t=!1),e.push(r)}return t?"":e.join("")}},{key:"setPenStyles",value:function(e){this.currPenState.setStyles(e);var t=this.chars[this.pos];t.setPenState(this.currPenState)}}]),e}(),b=function(){function e(){i(this,e),this.rows=[];for(var t=0;t<s;t++)this.rows.push(new m);this.currRow=s-1,this.nrRollUpRows=null,this.reset()}return r(e,[{key:"reset",value:function(){for(var e=0;e<s;e++)this.rows[e].clear();this.currRow=s-1}},{key:"equals",value:function(e){for(var t=!0,n=0;n<s;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}},{key:"copy",value:function(e){for(var t=0;t<s;t++)this.rows[t].copy(e.rows[t])}},{key:"isEmpty",value:function(){for(var e=!0,t=0;t<s;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}},{key:"backSpace",value:function(){var e=this.rows[this.currRow];e.backSpace()}},{key:"clearToEndOfRow",value:function(){var e=this.rows[this.currRow];e.clearToEndOfRow()}},{key:"insertChar",value:function(e){var t=this.rows[this.currRow];t.insertChar(e)}},{key:"setPen",value:function(e){var t=this.rows[this.currRow];t.setPenStyles(e)}},{key:"moveCursor",value:function(e){var t=this.rows[this.currRow];t.moveCursor(e)}},{key:"setCursor",value:function(e){p.log("INFO","setCursor: "+e);var t=this.rows[this.currRow];t.setCursor(e)}},{key:"setPAC",value:function(e){p.log("INFO","pacData = "+JSON.stringify(e));var t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(var n=0;n<s;n++)this.rows[n].clear();var r=this.currRow+1-this.nrRollUpRows,i=this.lastOutputScreen;if(i){var o=i.rows[r].cueStartTime;if(o&&o<p.time)for(var a=0;a<this.nrRollUpRows;a++)this.rows[t-this.nrRollUpRows+a+1].copy(i.rows[r+a])}}this.currRow=t;var l=this.rows[this.currRow];if(null!==e.indent){var u=e.indent,c=Math.max(u-1,0);l.setCursor(e.indent),e.color=l.chars[c].penState.foreground}var d={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(d)}},{key:"setBkgData",value:function(e){p.log("INFO","bkgData = "+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}},{key:"setRollUpRows",value:function(e){this.nrRollUpRows=e}},{key:"rollUp",value:function(){if(null!==this.nrRollUpRows){p.log("TEXT",this.getDisplayText());var e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),p.log("INFO","Rolling up")}else p.log("DEBUG","roll_up but nrRollUpRows not set yet")}},{key:"getDisplayText",value:function(e){e=e||!1;for(var t=[],n="",r=-1,i=0;i<s;i++){var o=this.rows[i].getTextString();o&&(r=i+1,e?t.push("Row "+r+": '"+o+"'"):t.push(o.trim()))}return t.length>0&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n}},{key:"getTextAndFormat",value:function(){return this.rows}}]),e}(),x=function(){function e(t,n){i(this,e),this.chNr=t,this.outputFilter=n,this.mode=null,this.verbose=0,this.displayedMemory=new b,this.nonDisplayedMemory=new b,this.lastOutputScreen=new b,this.currRollUpRow=this.displayedMemory.rows[s-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}return r(e,[{key:"reset",value:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[s-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null}},{key:"getHandler",value:function(){return this.outputFilter}},{key:"setHandler",value:function(e){this.outputFilter=e}},{key:"setPAC",value:function(e){this.writeScreen.setPAC(e)}},{key:"setBkgData",value:function(e){this.writeScreen.setBkgData(e)}},{key:"setMode",value:function(e){e!==this.mode&&(this.mode=e,p.log("INFO","MODE="+e),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}},{key:"insertChars",value:function(e){for(var t=0;t<e.length;t++)this.writeScreen.insertChar(e[t]);var n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";p.log("INFO",n+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(p.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}},{key:"ccRCL",value:function(){p.log("INFO","RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}},{key:"ccBS",value:function(){p.log("INFO","BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}},{key:"ccAOF",value:function(){}},{key:"ccAON",value:function(){}},{key:"ccDER",value:function(){p.log("INFO","DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}},{key:"ccRU",value:function(e){p.log("INFO","RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}},{key:"ccFON",value:function(){p.log("INFO","FON - Flash On"),this.writeScreen.setPen({flash:!0})}},{key:"ccRDC",value:function(){p.log("INFO","RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}},{key:"ccTR",value:function(){p.log("INFO","TR"),this.setMode("MODE_TEXT")}},{key:"ccRTD",value:function(){p.log("INFO","RTD"),this.setMode("MODE_TEXT")}},{key:"ccEDM",value:function(){p.log("INFO","EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}},{key:"ccCR",value:function(){p.log("CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}},{key:"ccENM",value:function(){p.log("INFO","ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}},{key:"ccEOC",value:function(){if(p.log("INFO","EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,p.log("TEXT","DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}},{key:"ccTO",value:function(e){p.log("INFO","TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}},{key:"ccMIDROW",value:function(e){var t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{var n=Math.floor(e/2)-16,r=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=r[n]}p.log("INFO","MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)}},{key:"outputDataUpdate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=p.time;null!==t&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),!0===e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue()),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))}},{key:"cueSplitAtTime",value:function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}]),e}(),_=function(){function e(t,n,r){i(this,e),this.field=t||1,this.outputs=[n,r],this.channels=[new x(1,n),new x(2,r)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.bufferedData=[],this.startTime=null,this.lastTime=null,this.dataCounters={padding:0,char:0,cmd:0,other:0}}return r(e,[{key:"getHandler",value:function(e){return this.channels[e].getHandler()}},{key:"setHandler",value:function(e,t){this.channels[e].setHandler(t)}},{key:"addData",value:function(e,t){var n=void 0,r=void 0,i=void 0,o=!1;this.lastTime=e,p.setTime(e);for(var a=0;a<t.length;a+=2)if(r=127&t[a],i=127&t[a+1],0!==r||0!==i){if(p.log("DATA","["+g([t[a],t[a+1]])+"] -> ("+g([r,i])+")"),n=this.parseCmd(r,i),n||(n=this.parseMidrow(r,i)),n||(n=this.parsePAC(r,i)),n||(n=this.parseBackgroundAttributes(r,i)),!n&&(o=this.parseChars(r,i),o))if(this.currChNr&&this.currChNr>=0){var s=this.channels[this.currChNr-1];s.insertChars(o)}else p.log("WARNING","No channel found yet. TEXT-MODE?");n?this.dataCounters.cmd+=2:o?this.dataCounters.char+=2:(this.dataCounters.other+=2,p.log("WARNING","Couldn't parse cleaned data "+g([r,i])+" orig: "+g([t[a],t[a+1]])))}else this.dataCounters.padding+=2}},{key:"parseCmd",value:function(e,t){var n=null,r=(20===e||28===e)&&t>=32&&t<=47,i=(23===e||31===e)&&t>=33&&t<=35;if(!r&&!i)return!1;if(e===this.lastCmdA&&t===this.lastCmdB)return this.lastCmdA=null,this.lastCmdB=null,p.log("DEBUG","Repeated command ("+g([e,t])+") is dropped"),!0;n=20===e||23===e?1:2;var o=this.channels[n-1];return 20===e||28===e?32===t?o.ccRCL():33===t?o.ccBS():34===t?o.ccAOF():35===t?o.ccAON():36===t?o.ccDER():37===t?o.ccRU(2):38===t?o.ccRU(3):39===t?o.ccRU(4):40===t?o.ccFON():41===t?o.ccRDC():42===t?o.ccTR():43===t?o.ccRTD():44===t?o.ccEDM():45===t?o.ccCR():46===t?o.ccENM():47===t&&o.ccEOC():o.ccTO(t-32),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0}},{key:"parseMidrow",value:function(e,t){var n=null;if((17===e||25===e)&&t>=32&&t<=47){if(n=17===e?1:2,n!==this.currChNr)return p.log("ERROR","Mismatch channel in midrow parsing"),!1;var r=this.channels[n-1];return r.ccMIDROW(t),p.log("DEBUG","MIDROW ("+g([e,t])+")"),!0}return!1}},{key:"parsePAC",value:function(e,t){var n=null,r=null,i=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,o=(16===e||24===e)&&t>=64&&t<=95;if(!i&&!o)return!1;if(e===this.lastCmdA&&t===this.lastCmdB)return this.lastCmdA=null,this.lastCmdB=null,!0;n=e<=23?1:2,r=t>=64&&t<=95?1===n?u[e]:d[e]:1===n?c[e]:f[e];var a=this.interpretPAC(r,t),s=this.channels[n-1];return s.setPAC(a),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0}},{key:"interpretPAC",value:function(e,t){var n=t,r={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>95?t-96:t-64,r.underline=1===(1&n),n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r}},{key:"parseChars",value:function(e,t){var n=null,r=null,i=null;if(e>=25?(n=2,i=e-8):(n=1,i=e),i>=17&&i<=19){var o=t;o=17===i?t+80:18===i?t+112:t+144,p.log("INFO","Special char '"+a(o)+"' in channel "+n),r=[o]}else e>=32&&e<=127&&(r=0===t?[e]:[e,t]);if(r){var s=g(r);p.log("DEBUG","Char codes = "+s.join(",")),this.lastCmdA=null,this.lastCmdB=null}return r}},{key:"parseBackgroundAttributes",value:function(e,t){var n=void 0,r=void 0,i=void 0,o=void 0,a=(16===e||24===e)&&t>=32&&t<=47,s=(23===e||31===e)&&t>=45&&t<=47;return!(!a&&!s)&&(n={},16===e||24===e?(r=Math.floor((t-32)/2),n.background=h[r],t%2===1&&(n.background=n.background+"_semi")):45===t?n.background="transparent":(n.foreground="black",47===t&&(n.underline=!0)),i=e<24?1:2,o=this.channels[i-1],o.setBkgData(n),this.lastCmdA=null,this.lastCmdB=null,!0)}},{key:"reset",value:function(){for(var e=0;e<this.channels.length;e++)this.channels[e]&&this.channels[e].reset();this.lastCmdA=null,this.lastCmdB=null}},{key:"cueSplitAtTime",value:function(e){for(var t=0;t<this.channels.length;t++)this.channels[t]&&this.channels[t].cueSplitAtTime(e)}}]),e}();t.default=_,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,n){i(this,e),this.timelineController=t,this.trackName=n,this.startTime=null,this.endTime=null,this.screen=null}return r(e,[{key:"dispatchCue",value:function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen),this.startTime=null)}},{key:"newCue",value:function(e,t,n){(null===this.startTime||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}}]),e}();t.default=o,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),i=a(r),o=n(10);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,n){return e.substr(n||0,t.length)===t},l=function(e){var t=parseInt(e.substr(-3)),n=parseInt(e.substr(-6,2)),r=parseInt(e.substr(-9,2)),i=e.length>9?parseInt(e.substr(0,e.indexOf(":"))):0;return Number.isFinite(t)&&Number.isFinite(n)&&Number.isFinite(r)&&Number.isFinite(i)?(t+=1e3*n,t+=6e4*r,t+=36e5*i,t):-1},u=function(e){var t=5381,n=e.length;while(n)t=33*t^e.charCodeAt(--n);return(t>>>0).toString()},c=function(e,t,n){var r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new)return e.ccOffset=e.presentationOffset=r.start,void(r.new=!1);while(i&&i.new)e.ccOffset+=r.start-i.start,r.new=!1,r=i,i=e[r.prevCC];e.presentationOffset=n},d={parse:function(e,t,n,r,a,d){var f=/\r\n|\n\r|\n|\r/g,h=(0,o.utf8ArrayToStr)(new Uint8Array(e)).trim().replace(f,"\n").split("\n"),p="00:00.000",g=0,v=0,y=0,m=[],b=void 0,x=!0,_=new i.default;_.oncue=function(e){var t=n[r],i=n.ccOffset;t&&t.new&&(void 0!==v?i=n.ccOffset=t.start:c(n,r,y)),y&&(i=y-n.presentationOffset),e.startTime+=i-v,e.endTime+=i-v,e.id=u(e.startTime.toString())+u(e.endTime.toString())+u(e.text),e.text=decodeURIComponent(encodeURIComponent(e.text)),e.endTime>0&&m.push(e)},_.onparsingerror=function(e){b=e},_.onflush=function(){b&&d?d(b):a(m)},h.forEach((function(e){if(x){if(s(e,"X-TIMESTAMP-MAP=")){x=!1,e.substr(16).split(",").forEach((function(e){s(e,"LOCAL:")?p=e.substr(6):s(e,"MPEGTS:")&&(g=parseInt(e.substr(7)))}));try{t+(9e4*n[r].start||0)<0&&(t+=8589934592),g-=t,v=l(p)/1e3,y=g/9e4,-1===v&&(b=new Error("Malformed X-TIMESTAMP-MAP: "+e))}catch(i){b=new Error("Malformed X-TIMESTAMP-MAP: "+e)}return}""===e&&(x=!1)}_.parse(e+"\n")})),_.flush()}};t.default=d,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),o=c(i),a=n(3),s=c(a),l=n(0),u=n(7);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e){d(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,o.default.MEDIA_ATTACHED,o.default.MEDIA_DETACHING,o.default.MANIFEST_LOADED,o.default.SUBTITLE_TRACK_LOADED));return n.tracks=[],n.trackId=-1,n.media=null,n.stopped=!0,n.subtitleDisplay=!0,n}return h(t,e),r(t,[{key:"destroy",value:function(){s.default.prototype.destroy.call(this)}},{key:"onMediaAttached",value:function(e){var t=this;this.media=e.media,this.media&&(this.queuedDefaultTrack&&(this.subtitleTrack=this.queuedDefaultTrack,delete this.queuedDefaultTrack),this.trackChangeListener=this._onTextTracksChanged.bind(this),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.subtitlePollingInterval=setInterval((function(){t.trackChangeListener()}),500):this.media.textTracks.addEventListener("change",this.trackChangeListener))}},{key:"onMediaDetaching",value:function(){this.media&&(this.useTextTrackPolling?clearInterval(this.subtitlePollingInterval):this.media.textTracks.removeEventListener("change",this.trackChangeListener),this.media=null)}},{key:"onManifestLoaded",value:function(e){var t=this,n=e.subtitles||[];this.tracks=n,this.hls.trigger(o.default.SUBTITLE_TRACKS_UPDATED,{subtitleTracks:n}),n.forEach((function(e){e.default&&(t.media?t.subtitleTrack=e.id:t.queuedDefaultTrack=e.id)}))}},{key:"onSubtitleTrackLoaded",value:function(e){var t=this,n=e.id,r=e.details,i=this.trackId,o=this.tracks,a=o[i];if(n>=o.length||n!==i||!a||this.stopped)this._clearReloadTimer();else if(l.logger.log("subtitle track "+n+" loaded"),r.live){var s=(0,u.computeReloadInterval)(a.details,r,e.stats.trequest);l.logger.log("Reloading live subtitle playlist in "+s+"ms"),this.timer=setTimeout((function(){t._loadCurrentTrack()}),s)}else this._clearReloadTimer()}},{key:"startLoad",value:function(){this.stopped=!1,this._loadCurrentTrack()}},{key:"stopLoad",value:function(){this.stopped=!0,this._clearReloadTimer()}},{key:"_clearReloadTimer",value:function(){this.timer&&(clearTimeout(this.timer),this.timer=null)}},{key:"_loadCurrentTrack",value:function(){var e=this.trackId,t=this.tracks,n=this.hls,r=t[e];e<0||!r||r.details&&!r.details.live||(l.logger.log("Loading subtitle track "+e),n.trigger(o.default.SUBTITLE_TRACK_LOADING,{url:r.url,id:e}))}},{key:"_toggleTrackModes",value:function(e){var t=this.media,n=this.subtitleDisplay,r=this.trackId;if(t){var i=g(t.textTracks);if(-1===e)[].slice.call(i).forEach((function(e){e.mode="disabled"}));else{var o=i[r];o&&(o.mode="disabled")}var a=i[e];a&&(a.mode=n?"showing":"hidden")}}},{key:"_setSubtitleTrackInternal",value:function(e){var t=this.hls,n=this.tracks;!Number.isFinite(e)||e<-1||e>=n.length||(this.trackId=e,l.logger.log("Switching to subtitle track "+e),t.trigger(o.default.SUBTITLE_TRACK_SWITCH,{id:e}),this._loadCurrentTrack())}},{key:"_onTextTracksChanged",value:function(){if(this.media){for(var e=-1,t=g(this.media.textTracks),n=0;n<t.length;n++)if("hidden"===t[n].mode)e=n;else if("showing"===t[n].mode){e=n;break}this.subtitleTrack=e}}},{key:"subtitleTracks",get:function(){return this.tracks}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(e){this.trackId!==e&&(this._toggleTrackModes(e),this._setSubtitleTrackInternal(e))}}]),t}(s.default);function g(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"subtitles"===r.kind&&r.label&&t.push(e[n])}return t}t.default=p,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubtitleStreamController=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(1),a=v(o),s=n(0),l=n(12),u=v(l),c=n(4),d=n(27),f=n(6),h=n(14),p=v(h),g=n(7);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function b(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var x=window,_=x.performance,w=500;t.SubtitleStreamController=function(e){function t(e,n){y(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,a.default.MEDIA_ATTACHED,a.default.MEDIA_DETACHING,a.default.ERROR,a.default.KEY_LOADED,a.default.FRAG_LOADED,a.default.SUBTITLE_TRACKS_UPDATED,a.default.SUBTITLE_TRACK_SWITCH,a.default.SUBTITLE_TRACK_LOADED,a.default.SUBTITLE_FRAG_PROCESSED,a.default.LEVEL_UPDATED));return r.fragmentTracker=n,r.config=e.config,r.state=h.State.STOPPED,r.tracks=[],r.tracksBuffered=[],r.currentTrackId=-1,r.decrypter=new u.default(e,e.config),r.lastAVStart=0,r._onMediaSeeking=r.onMediaSeeking.bind(r),r}return b(t,e),r(t,[{key:"onSubtitleFragProcessed",value:function(e){var t=e.frag,n=e.success;if(this.fragPrevious=t,this.state=h.State.IDLE,n){var r=this.tracksBuffered[this.currentTrackId];if(r){for(var i=void 0,o=t.start,a=0;a<r.length;a++)if(o>=r[a].start&&o<=r[a].end){i=r[a];break}var s=t.start+t.duration;i?i.end=s:(i={start:o,end:s},r.push(i))}}}},{key:"onMediaAttached",value:function(e){var t=e.media;this.media=t,t.addEventListener("seeking",this._onMediaSeeking),this.state=h.State.IDLE}},{key:"onMediaDetaching",value:function(){this.media.removeEventListener("seeking",this._onMediaSeeking),this.media=null,this.state=h.State.STOPPED}},{key:"onError",value:function(e){var t=e.frag;t&&"subtitle"===t.type&&(this.state=h.State.IDLE)}},{key:"onSubtitleTracksUpdated",value:function(e){var t=this;s.logger.log("subtitle tracks updated"),this.tracksBuffered=[],this.tracks=e.subtitleTracks,this.tracks.forEach((function(e){t.tracksBuffered[e.id]=[]}))}},{key:"onSubtitleTrackSwitch",value:function(e){if(this.currentTrackId=e.id,this.tracks&&-1!==this.currentTrackId){var t=this.tracks[this.currentTrackId];t&&t.details&&this.setInterval(w)}else this.clearInterval()}},{key:"onSubtitleTrackLoaded",value:function(e){var t=e.id,n=e.details,r=this.currentTrackId,i=this.tracks,o=i[r];t>=i.length||t!==r||!o||(n.live&&(0,g.mergeSubtitlePlaylists)(o.details,n,this.lastAVStart),o.details=n,this.setInterval(w))}},{key:"onKeyLoaded",value:function(){this.state===h.State.KEY_LOADING&&(this.state=h.State.IDLE)}},{key:"onFragLoaded",value:function(e){var t=this.fragCurrent,n=e.frag.decryptdata,r=e.frag,i=this.hls;if(this.state===h.State.FRAG_LOADING&&t&&"subtitle"===e.frag.type&&t.sn===e.frag.sn&&e.payload.byteLength>0&&n&&n.key&&"AES-128"===n.method){var o=_.now();this.decrypter.decrypt(e.payload,n.key.buffer,n.iv.buffer,(function(e){var t=_.now();i.trigger(a.default.FRAG_DECRYPTED,{frag:r,payload:e,stats:{tstart:o,tdecrypt:t}})}))}}},{key:"onLevelUpdated",value:function(e){var t=e.details,n=t.fragments;this.lastAVStart=n.length?n[0].start:0}},{key:"doTick",value:function(){if(this.media)switch(this.state){case h.State.IDLE:var e=this.config,t=this.currentTrackId,n=this.fragmentTracker,r=this.media,i=this.tracks;if(!i||!i[t]||!i[t].details)break;var o=e.maxBufferHole,l=e.maxFragLookUpTolerance,u=Math.min(e.maxBufferLength,e.maxMaxBufferLength),p=c.BufferHelper.bufferedInfo(this._getBuffered(),r.currentTime,o),g=p.end,v=p.len,y=i[t].details,m=y.fragments,b=m.length,x=m[b-1].start+m[b-1].duration;if(v>u)return;var _=void 0,w=this.fragPrevious;g<x?(w&&y.hasProgramDateTime&&(_=(0,d.findFragmentByPDT)(m,w.endProgramDateTime,l)),_||(_=(0,d.findFragmentByPTS)(w,m,g,l))):_=m[b-1],_&&_.encrypted?(s.logger.log("Loading key for "+_.sn),this.state=h.State.KEY_LOADING,this.hls.trigger(a.default.KEY_LOADING,{frag:_})):_&&n.getState(_)===f.FragmentState.NOT_LOADED&&(this.fragCurrent=_,this.state=h.State.FRAG_LOADING,this.hls.trigger(a.default.FRAG_LOADING,{frag:_}))}else this.state=h.State.IDLE}},{key:"stopLoad",value:function(){this.lastAVStart=0,i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"stopLoad",this).call(this)}},{key:"_getBuffered",value:function(){return this.tracksBuffered[this.currentTrackId]||[]}},{key:"onMediaSeeking",value:function(){this.fragPrevious=null}}]),t}(p.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(3),o=c(i),a=n(1),s=c(a),l=n(2),u=n(0);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=window,g=p.XMLHttpRequest,v=3,y={WIDEVINE:"com.widevine.alpha",PLAYREADY:"com.microsoft.playready"},m=function(e,t,n){var r={videoCapabilities:[]};return t.forEach((function(e){r.videoCapabilities.push({contentType:'video/mp4; codecs="'+e+'"'})})),[r]},b=function(e,t,n){switch(e){case y.WIDEVINE:return m(t,n);default:throw Error("Unknown key-system: "+e)}},x=function(e){function t(e){d(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,s.default.MEDIA_ATTACHED,s.default.MANIFEST_PARSED));return n._widevineLicenseUrl=e.config.widevineLicenseUrl,n._licenseXhrSetup=e.config.licenseXhrSetup,n._emeEnabled=e.config.emeEnabled,n._requestMediaKeySystemAccess=e.config.requestMediaKeySystemAccessFunc,n._mediaKeysList=[],n._media=null,n._hasSetMediaKeys=!1,n._isMediaEncrypted=!1,n._requestLicenseFailureCount=0,n}return h(t,e),r(t,[{key:"getLicenseServerUrl",value:function(e){var t=void 0;switch(e){case y.WIDEVINE:t=this._widevineLicenseUrl;break;default:t=null;break}return t||(u.logger.error('No license server URL configured for key-system "'+e+'"'),this.hls.trigger(s.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})),t}},{key:"_attemptKeySystemAccess",value:function(e,t,n){var r=this,i=b(e,t,n);i?(u.logger.log("Requesting encrypted media key-system access"),this.requestMediaKeySystemAccess(e,i).then((function(t){r._onMediaKeySystemAccessObtained(e,t)})).catch((function(t){u.logger.error('Failed to obtain key-system "'+e+'" access:',t)}))):u.logger.warn("Can not create config for key-system (maybe because platform is not supported):",e)}},{key:"_onMediaKeySystemAccessObtained",value:function(e,t){var n=this;u.logger.log('Access for key-system "'+e+'" obtained');var r={mediaKeys:null,mediaKeysSession:null,mediaKeysSessionInitialized:!1,mediaKeySystemAccess:t,mediaKeySystemDomain:e};this._mediaKeysList.push(r),t.createMediaKeys().then((function(t){r.mediaKeys=t,u.logger.log('Media-keys created for key-system "'+e+'"'),n._onMediaKeysCreated()})).catch((function(e){u.logger.error("Failed to create media-keys:",e)}))}},{key:"_onMediaKeysCreated",value:function(){var e=this;this._mediaKeysList.forEach((function(t){t.mediaKeysSession||(t.mediaKeysSession=t.mediaKeys.createSession(),e._onNewMediaKeySession(t.mediaKeysSession))}))}},{key:"_onNewMediaKeySession",value:function(e){var t=this;u.logger.log("New key-system session "+e.sessionId),e.addEventListener("message",(function(n){t._onKeySessionMessage(e,n.message)}),!1)}},{key:"_onKeySessionMessage",value:function(e,t){u.logger.log("Got EME message event, creating license request"),this._requestLicense(t,(function(t){u.logger.log("Received license data, updating key-session"),e.update(t)}))}},{key:"_onMediaEncrypted",value:function(e,t){u.logger.log('Media is encrypted using "'+e+'" init data type'),this._isMediaEncrypted=!0,this._mediaEncryptionInitDataType=e,this._mediaEncryptionInitData=t,this._attemptSetMediaKeys(),this._generateRequestWithPreferredKeySession()}},{key:"_attemptSetMediaKeys",value:function(){if(!this._hasSetMediaKeys){var e=this._mediaKeysList[0];if(!e||!e.mediaKeys)return u.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),void this.hls.trigger(s.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});u.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(e.mediaKeys),this._hasSetMediaKeys=!0}}},{key:"_generateRequestWithPreferredKeySession",value:function(){var e=this,t=this._mediaKeysList[0];if(!t)return u.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),void this.hls.trigger(s.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});if(t.mediaKeysSessionInitialized)u.logger.warn("Key-Session already initialized but requested again");else{var n=t.mediaKeysSession;n||(u.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(s.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0}));var r=this._mediaEncryptionInitDataType,i=this._mediaEncryptionInitData;u.logger.log('Generating key-session request for "'+r+'" init data type'),t.mediaKeysSessionInitialized=!0,n.generateRequest(r,i).then((function(){u.logger.debug("Key-session generation succeeded")})).catch((function(t){u.logger.error("Error generating key-session request:",t),e.hls.trigger(s.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})}))}}},{key:"_createLicenseXhr",value:function(e,t,n){var r=new g,i=this._licenseXhrSetup;try{if(i)try{i(r,e)}catch(o){r.open("POST",e,!0),i(r,e)}r.readyState||r.open("POST",e,!0)}catch(o){return u.logger.error("Error setting up key-system license XHR",o),void this.hls.trigger(s.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}return r.responseType="arraybuffer",r.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,r,e,t,n),r}},{key:"_onLicenseRequestReadyStageChange",value:function(e,t,n,r){switch(e.readyState){case 4:if(200===e.status)this._requestLicenseFailureCount=0,u.logger.log("License request succeeded"),r(e.response);else{if(u.logger.error("License Request XHR failed ("+t+"). Status: "+e.status+" ("+e.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount<=v){var i=v-this._requestLicenseFailureCount+1;return u.logger.warn("Retrying license request, "+i+" attempts left"),void this._requestLicense(n,r)}this.hls.trigger(s.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}break}}},{key:"_generateLicenseRequestChallenge",value:function(e,t){var n=void 0;return e.mediaKeySystemDomain===y.PLAYREADY?u.logger.error("PlayReady is not supported (yet)"):e.mediaKeySystemDomain===y.WIDEVINE?n=t:u.logger.error("Unsupported key-system:",e.mediaKeySystemDomain),n}},{key:"_requestLicense",value:function(e,t){u.logger.log("Requesting content license for key-system");var n=this._mediaKeysList[0];if(!n)return u.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),void this.hls.trigger(s.default.ERROR,{type:l.ErrorTypes.KEY_SYSTEM_ERROR,details:l.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});var r=this.getLicenseServerUrl(n.mediaKeySystemDomain),i=this._createLicenseXhr(r,e,t);u.logger.log("Sending license request to URL: "+r),i.send(this._generateLicenseRequestChallenge(n,e))}},{key:"onMediaAttached",value:function(e){var t=this;if(this._emeEnabled){var n=e.media;this._media=n,n.addEventListener("encrypted",(function(e){t._onMediaEncrypted(e.initDataType,e.initData)}))}}},{key:"onManifestParsed",value:function(e){if(this._emeEnabled){var t=e.levels.map((function(e){return e.audioCodec})),n=e.levels.map((function(e){return e.videoCodec}));this._attemptKeySystemAccess(y.WIDEVINE,t,n)}}},{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),t}(o.default);t.default=x,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return"undefined"!==typeof window&&window.navigator&&window.navigator.requestMediaKeySystemAccess?window.navigator.requestMediaKeySystemAccess.bind(window.navigator):null}();t.requestMediaKeySystemAccess=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={getBrowserVersion:function(){var e=navigator.userAgent;if(e.toLowerCase().indexOf("mobile")>-1)return"Unknown";if(e.indexOf("Firefox")>-1){var t=e.match(/firefox\/[\d.]+/gi)[0].match(/[\d]+/)[0];return"Firefox "+t}if(e.indexOf("Edge")>-1){var n=e.match(/edge\/[\d.]+/gi)[0].match(/[\d]+/)[0];return"Edge "+n}if(e.indexOf("rv:11")>-1)return"IE 11";if(e.indexOf("Opera")>-1||e.indexOf("OPR")>-1){if(e.indexOf("Opera")>-1){var r=e.match(/opera\/[\d.]+/gi)[0].match(/[\d]+/)[0];return"Opera "+r}if(e.indexOf("OPR")>-1){var i=e.match(/opr\/[\d.]+/gi)[0].match(/[\d]+/)[0];return"Opera "+i}}else{if(e.indexOf("Chrome")>-1){var o=e.match(/chrome\/[\d.]+/gi)[0].match(/[\d]+/)[0];return"Chrome "+o}if(e.indexOf("Safari")>-1){var a=e.match(/safari\/[\d.]+/gi)[0].match(/[\d]+/)[0];return"Safari "+a}if(!(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1))return"Unknown";if(e.indexOf("MSIE")>-1){var s=e.match(/msie [\d.]+/gi)[0].match(/[\d]+/)[0];return"IE "+s}if(e.indexOf("Trident")>-1){var l=e.match(/trident\/[\d.]+/gi)[0].match(/[\d]+/)[0],u=parseInt(l)+4;return"IE "+u}}}};t.default=r,e.exports=t["default"]}])}))},"260a":function(e,t,n){var r=n("efd0"),i=n("18ff"),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},"28a9":function(e,t,n){var r=n("7fe9"),i=n("260a");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.0",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"2a94":function(e,t,n){var r=n("efd0"),i=n("c2b3"),o=r.WeakMap;e.exports="function"===typeof o&&/native code/.test(i(o))},"2fcd":function(e,t,n){var r=n("0117"),i=n("996e"),o=n("977b"),a=n("30cf");e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,u=0;u<n.length;u++){var c=n[u];r(e,c)||s(e,c,l(t,c))}}},"30cf":function(e,t,n){var r=n("35a9"),i=n("cb62"),o=n("b973"),a=n("bab3"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},3274:function(e,t,n){var r=n("4bfa"),i=n("21e0");e.exports=function(e){return r(i(e))}},"35a9":function(e,t,n){var r=n("aad0");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"3b29":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"3c6b":function(e,t,n){var r=n("21e0");e.exports=function(e){return Object(r(e))}},"47fc":function(e,t,n){!function(t,n){e.exports=n()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=g(n(8)),a=g(n(3)),s=g(n(28)),l=g(n(29)),u=g(n(4)),c=g(n(30)),d=n(35),f=g(n(36)),h=g(n(37)),p=n(5);function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(n.config=a.default.deepCopy({width:600,height:337.5,ignores:[],whitelist:[],lang:(document.documentElement.getAttribute("lang")||navigator.language||"zh-cn").toLocaleLowerCase(),inactive:3e3,volume:.6,controls:!0,controlsList:["nodownload"]},e),n.version=p.version,n.userTimer=null,n.waitTimer=null,n.database=new s.default,n.history=[],n.isProgressMoving=!1,n.root=a.default.findDom(document,"#"+n.config.id),n.controls=a.default.createDom("xg-controls","",{unselectable:"on",onselectstart:"return false"},"xgplayer-controls"),n.config.isShowControl&&(n.controls.style.display="none"),!n.root){var r=n.config.el;if(!r||1!==r.nodeType)return n.emit("error",new u.default({type:"use",errd:{line:45,handle:"Constructor",msg:"container id can't be empty"},vid:n.config.vid})),console.error("container id can't be empty"),v(n,!1);n.root=r}if(a.default.addClass(n.root,"xgplayer xgplayer-"+l.default.device+" xgplayer-nostart "+(n.config.controls?"":"no-controls")),n.root.appendChild(n.controls),n.config.fluid?(n.root.style["max-width"]="100%",n.root.style.width="100%",n.root.style.height="0",n.root.style["padding-top"]=100*n.config.height/n.config.width+"%",n.video.style.position="absolute",n.video.style.top="0",n.video.style.left="0"):(n.config.width&&("number"!=typeof n.config.width?n.root.style.width=n.config.width:n.root.style.width=n.config.width+"px"),n.config.height&&("number"!=typeof n.config.height?n.root.style.height=n.config.height:n.root.style.height=n.config.height+"px")),n.config.execBeforePluginsCall&&n.config.execBeforePluginsCall.forEach((function(e){e.call(n,n)})),n.config.controlStyle&&"String"===a.default.typeOf(n.config.controlStyle)){var i=n;fetch(i.config.controlStyle,{method:"GET",headers:{Accept:"application/json"}}).then((function(e){e.ok&&e.json().then((function(e){for(var t in e)e.hasOwnProperty(t)&&(i.config[t]=e[t]);i.pluginsCall()}))})).catch((function(e){console.log("Fetch错误:"+e)}))}else n.pluginsCall();n.ev.forEach((function(e){var t=Object.keys(e)[0],r=n[e[t]];r&&n.on(t,r)})),["focus","blur"].forEach((function(e){n.on(e,n["on"+e.charAt(0).toUpperCase()+e.slice(1)])}));var o=n;return n.mousemoveFunc=function(){o.emit("focus"),o.config.closeFocusVideoFocus||o.video.focus()},n.root.addEventListener("mousemove",n.mousemoveFunc),n.playFunc=function(){o.emit("focus"),o.config.closePlayVideoFocus||o.video.focus()},o.once("play",n.playFunc),n.getVideoSize=function(){if(this.video.videoWidth&&this.video.videoHeight){var e=o.root.getBoundingClientRect();"auto"===o.config.fitVideoSize?e.width/e.height>this.video.videoWidth/this.video.videoHeight?o.root.style.height=this.video.videoHeight/this.video.videoWidth*e.width+"px":o.root.style.width=this.video.videoWidth/this.video.videoHeight*e.height+"px":"fixWidth"===o.config.fitVideoSize?o.root.style.height=this.video.videoHeight/this.video.videoWidth*e.width+"px":"fixHeight"===o.config.fitVideoSize&&(o.root.style.width=this.video.videoWidth/this.video.videoHeight*e.height+"px")}},o.once("loadeddata",n.getVideoSize),setTimeout((function(){n.emit("ready"),n.isReady=!0}),0),n.config.videoInit&&a.default.hasClass(n.root,"xgplayer-nostart")&&n.start(),o.config.rotate&&(o.on("requestFullscreen",n.updateRotateDeg),o.on("exitFullscreen",n.updateRotateDeg)),o.once("destroy",(function e(){o.root.removeEventListener("mousemove",o.mousemoveFunc),o.off("destroy",e)})),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"start",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.url,r=this.root,i=this;n&&""!==n||this.emit("urlNull"),this.logParams.playSrc=n,this.canPlayFunc=function(){i.off("canplay",i.canPlayFunc);var e=i.video.play();void 0!==e&&e&&e.then((function(){i.emit("autoplay started")})).catch((function(){i.emit("autoplay was prevented"),t.util.addClass(i.root,"xgplayer-is-autoplay")}))},"String"===a.default.typeOf(n)?n.indexOf("blob:")>-1&&n===this.video.src||(this.video.src=n):n.forEach((function(t){e.video.appendChild(a.default.createDom("source","",{src:""+t.src,type:""+(t.type||"")}))})),this.logParams.pt=(new Date).getTime(),this.logParams.vt=this.logParams.pt,this.loadeddataFunc=function(){i.logParams.vt=(new Date).getTime(),i.logParams.pt>i.logParams.vt&&(i.logParams.pt=i.logParams.vt),i.logParams.vd=i.video.duration},this.once("loadeddata",this.loadeddataFunc),this.config.autoplay&&(l.default.os.isPhone?this.canPlayFunc():this.on("canplay",this.canPlayFunc)),this.config.disableStartLoad||this.video.load(),r.insertBefore(this.video,r.firstChild),setTimeout((function(){e.emit("complete"),e.danmu&&"function"==typeof e.danmu.resize&&e.danmu.resize()}),1)}},{key:"reload",value:function(){this.video.load(),this.reloadFunc=function(){var e=this.play();void 0!==e&&e&&e.catch((function(e){}))},this.once("loadeddata",this.reloadFunc)}},{key:"destroy",value:function(){var e=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=this;for(var o in clearInterval(this.bulletResizeTimer),this._interval)clearInterval(this._interval[o]),this._interval[o]=null;function a(){if(this.emit("destroy"),this.video.removeAttribute("src"),this.video.load(),n){this.root.innerHTML="";var e=this.root.className.split(" ");e.length>0?this.root.className=e.filter((function(e){return e.indexOf("xgplayer")<0})).join(" "):this.root.className=""}for(var t in this)delete this[t];(0,h.default)(this)}this.checkTimer&&clearInterval(this.checkTimer),this.waitTimer&&clearTimeout(this.waitTimer),this.ev.forEach((function(t){var n=Object.keys(t)[0],r=e[t[n]];r&&e.off(n,r)})),this.loadeddataFunc&&this.off("loadeddata",this.loadeddataFunc),this.reloadFunc&&this.off("loadeddata",this.reloadFunc),this.replayFunc&&this.off("play",this.replayFunc),this.playFunc&&this.off("play",this.playFunc),this.getVideoSize&&this.off("loadeddata",this.getVideoSize),["focus","blur"].forEach((function(t){e.off(t,e["on"+t.charAt(0).toUpperCase()+t.slice(1)])})),this.config.keyShortcut&&"on"!==this.config.keyShortcut||["video","controls"].forEach((function(t){e[t]&&e[t].removeEventListener("keydown",(function(e){r.onKeydown(e,r)}))})),this.paused?a.call(this):(this.pause(),this.once("pause",a)),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"replay",value:function(){var e=this,t=this._replay;if(a.default.removeClass(this.root,"xgplayer-ended"),this.logParams={bc:0,bu_acu_t:0,played:[],pt:(new Date).getTime(),vt:(new Date).getTime(),vd:0},this.logParams.pt=(new Date).getTime(),this.logParams.vt=this.logParams.pt,this.replayFunc=function(){e.logParams.vt=(new Date).getTime(),e.logParams.pt>e.logParams.vt&&(e.logParams.pt=e.logParams.vt),e.logParams.vd=e.video.duration},this.once("play",this.replayFunc),this.logParams.playSrc=this.video.currentSrc,t&&t instanceof Function)t();else{this.currentTime=0;var n=this.play();void 0!==n&&n&&n.catch((function(e){}))}}},{key:"getFullscreen",value:function(e){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT):this.video.webkitSupportsFullscreen?this.video.webkitEnterFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():a.default.addClass(e,"xgplayer-is-cssfullscreen")}},{key:"exitFullscreen",value:function(e){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),a.default.removeClass(e,"xgplayer-is-cssfullscreen")}},{key:"getCssFullscreen",value:function(){this.config.fluid&&(this.root.style["padding-top"]=""),a.default.addClass(this.root,"xgplayer-is-cssfullscreen"),this.emit("requestCssFullscreen")}},{key:"exitCssFullscreen",value:function(){this.config.fluid&&(this.root.style.width="100%",this.root.style.height="0",this.root.style["padding-top"]=100*this.config.height/this.config.width+"%"),a.default.removeClass(this.root,"xgplayer-is-cssfullscreen"),this.emit("exitCssFullscreen")}},{key:"getRotateFullscreen",value:function(){document.documentElement.style.width="100%",document.documentElement.style.height="100%",this.root&&!t.util.hasClass(this.root,"xgplayer-rotate-fullscreen")&&t.util.addClass(this.root,"xgplayer-rotate-fullscreen"),this.emit("getRotateFullscreen")}},{key:"exitRotateFullscreen",value:function(){document.documentElement.style.width="unset",document.documentElement.style.height="unset",this.root&&t.util.hasClass(this.root,"xgplayer-rotate-fullscreen")&&t.util.removeClass(this.root,"xgplayer-rotate-fullscreen"),this.emit("exitRotateFullscreen")}},{key:"download",value:function(){var e=(0,d.getAbsoluteURL)(this.config.url);(0,f.default)(e)}},{key:"pluginsCall",value:function(){var e=this,n=this;if(t.plugins){var r=this.config.ignores;Object.keys(t.plugins).forEach((function(i){var o=t.plugins[i];r.some((function(e){return i===e||i==="s_"+e}))||(["pc","tablet","mobile"].some((function(e){return e===i}))?i===l.default.device&&setTimeout((function(){n.video&&o.call(n,n)}),0):o.call(e,e))}))}}},{key:"getPIP",value:function(){var e=a.default.createDom("xg-pip-lay","<div></div>",{},"xgplayer-pip-lay");this.root.appendChild(e);var t=a.default.createDom("xg-pip-drag",'<div class="drag-handle"><span>'+this.lang.PIP_DRAG+"</span></div>",{tabindex:9},"xgplayer-pip-drag");this.root.appendChild(t),new c.default(".xgplayer",{handle:".drag-handle"}),a.default.addClass(this.root,"xgplayer-pip-active"),this.root.style.right=0,this.root.style.bottom="200px",this.root.style.top="",this.root.style.left="",this.root.style.width="320px",this.root.style.height="180px",this.config.pipConfig&&(void 0!==this.config.pipConfig.top&&(this.root.style.top=this.config.pipConfig.top+"px",this.root.style.bottom=""),void 0!==this.config.pipConfig.bottom&&(this.root.style.bottom=this.config.pipConfig.bottom+"px"),void 0!==this.config.pipConfig.left&&(this.root.style.left=this.config.pipConfig.left+"px",this.root.style.right=""),void 0!==this.config.pipConfig.right&&(this.root.style.right=this.config.pipConfig.right+"px"),void 0!==this.config.pipConfig.width&&(this.root.style.width=this.config.pipConfig.width+"px"),void 0!==this.config.pipConfig.height&&(this.root.style.height=this.config.pipConfig.height+"px")),this.config.fluid&&(this.root.style["padding-top"]="");var n=this;["click","touchend"].forEach((function(t){e.addEventListener(t,(function(e){e.preventDefault(),e.stopPropagation(),n.exitPIP()}))}))}},{key:"exitPIP",value:function(){a.default.removeClass(this.root,"xgplayer-pip-active"),this.root.style.right="",this.root.style.bottom="",this.root.style.top="",this.root.style.left="",this.config.fluid?(this.root.style.width="100%",this.root.style.height="0",this.root.style["padding-top"]=100*this.config.height/this.config.width+"%"):(this.config.width&&("number"!=typeof this.config.width?this.root.style.width=this.config.width:this.root.style.width=this.config.width+"px"),this.config.height&&("number"!=typeof this.config.height?this.root.style.height=this.config.height:this.root.style.height=this.config.height+"px"));var e=a.default.findDom(this.root,".xgplayer-pip-lay");e&&e.parentNode&&e.parentNode.removeChild(e);var t=a.default.findDom(this.root,".xgplayer-pip-drag");t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"updateRotateDeg",value:function(){this.rotateDeg||(this.rotateDeg=0);var e=this.root.offsetWidth,t=this.root.offsetHeight,n=this.video.videoWidth,r=this.video.videoHeight;!this.config.rotate.innerRotate&&this.config.rotate.controlsFix&&(this.root.style.width=t+"px",this.root.style.height=e+"px");var i=void 0;.25===this.rotateDeg||.75===this.rotateDeg?(i=this.config.rotate.innerRotate?n/r>t/e?t/(r/n>t/e?t*n/r:e):e/(r/n>t/e?t:e*r/n):e>=t?e/t:t/e,i=Number(i.toFixed(5))):i=1,this.config.rotate.innerRotate||this.config.rotate.controlsFix?(this.video.style.transformOrigin="center center",this.video.style.transform="rotate("+this.rotateDeg+"turn) scale("+i+")",this.video.style.webKitTransform="rotate("+this.rotateDeg+"turn) scale("+i+")"):(this.root.style.transformOrigin="center center",this.root.style.transform="rotate("+this.rotateDeg+"turn) scale(1)",this.root.style.webKitTransform="rotate("+this.rotateDeg+"turn) scale(1)")}},{key:"rotate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this;n.rotateDeg||(n.rotateDeg=0);var r=e?1:-1;n.rotateDeg=(n.rotateDeg+1+.25*r*t)%1,this.updateRotateDeg(),n.emit("rotate",360*n.rotateDeg)}},{key:"onFocus",value:function(){var e=this;a.default.hasClass(this.root,"xgplayer-inactive")&&e.emit("controlShow"),a.default.removeClass(this.root,"xgplayer-inactive"),e.userTimer&&clearTimeout(e.userTimer),e.userTimer=setTimeout((function(){e.emit("blur")}),e.config.inactive)}},{key:"onBlur",value:function(){!this.config.enablePausedInactive&&this.paused||this.ended||this.config.closeInactive||(a.default.hasClass(this.root,"xgplayer-inactive")||this.emit("controlHide"),a.default.addClass(this.root,"xgplayer-inactive"))}},{key:"onPlay",value:function(){a.default.addClass(this.root,"xgplayer-isloading"),a.default.addClass(this.root,"xgplayer-playing"),a.default.removeClass(this.root,"xgplayer-pause")}},{key:"onPause",value:function(){a.default.addClass(this.root,"xgplayer-pause"),this.userTimer&&clearTimeout(this.userTimer),this.emit("focus")}},{key:"onEnded",value:function(){a.default.addClass(this.root,"xgplayer-ended"),a.default.removeClass(this.root,"xgplayer-playing")}},{key:"onSeeking",value:function(){this.isSeeking=!0,this.onWaiting()}},{key:"onSeeked",value:function(){this.isSeeking=!1,this.waitTimer&&clearTimeout(this.waitTimer),a.default.removeClass(this.root,"xgplayer-isloading")}},{key:"onWaiting",value:function(){var e=this;e.waitTimer&&clearTimeout(e.waitTimer),e.checkTimer&&(clearInterval(e.checkTimer),e.checkTimer=null);var t=e.currentTime;e.waitTimer=setTimeout((function(){a.default.addClass(e.root,"xgplayer-isloading"),e.checkTimer=setInterval((function(){e.currentTime!==t&&(a.default.removeClass(this.root,"xgplayer-isloading"),clearInterval(e.checkTimer),e.checkTimer=null)}),1e3)}),500)}},{key:"onPlaying",value:function(){this.paused||(this.isSeeking=!1,this.waitTimer&&clearTimeout(this.waitTimer),a.default.removeClass(this.root,"xgplayer-isloading xgplayer-nostart xgplayer-pause xgplayer-ended xgplayer-is-error xgplayer-replay"),a.default.addClass(this.root,"xgplayer-playing"))}},{key:"cumulateTime",get:function(){if(this.logParams&&this.logParams.played instanceof Array){var e=a.default.computeWatchDur(this.logParams.played)||0;return Number(e.toFixed(3))}return 0}}],[{key:"install",value:function(e,n){t.plugins||(t.plugins={}),t.plugins[e]||(t.plugins[e]=n)}},{key:"use",value:function(e,n){t.plugins||(t.plugins={}),t.plugins[e]=n}}]),t}(o.default);y.util=a.default,y.sniffer=l.default,y.Errors=u.default,t.default=y,e.exports=t.default},function(e,t,n){"use strict";var r=n(21)();e.exports=function(e){return e!==r&&null!==e}},function(e,t,n){"use strict";e.exports=function(e){return null!=e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={createDom:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=document.createElement(e);return i.className=r,i.innerHTML=t,Object.keys(n).forEach((function(t){var r=t,o=n[t];"video"===e||"audio"===e?o&&i.setAttribute(r,o):i.setAttribute(r,o)})),i},hasClass:function(e,t){return!!e&&(e.classList?Array.prototype.some.call(e.classList,(function(e){return e===t})):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)")))},addClass:function(e,t){e&&(e.classList?t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach((function(t){t&&e.classList.add(t)})):r.hasClass(e,t)||(e.className+=" "+t))},removeClass:function(e,t){e&&(e.classList?t.split(/\s+/g).forEach((function(t){e.classList.remove(t)})):r.hasClass(e,t)&&t.split(/\s+/g).forEach((function(t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")})))},toggleClass:function(e,t){e&&t.split(/\s+/g).forEach((function(t){r.hasClass(e,t)?r.removeClass(e,t):r.addClass(e,t)}))},findDom:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=arguments[1],n=void 0;try{n=e.querySelector(t)}catch(r){0===t.indexOf("#")&&(n=e.getElementById(t.slice(1)))}return n},padStart:function(e,t,n){for(var r=String(n),i=t>>0,o=Math.ceil(i/r.length),a=[],s=String(e);o--;)a.push(r);return a.join("").substring(0,i-s.length)+s},format:function(e){if(window.isNaN(e))return"";var t=r.padStart(Math.floor(e/3600),2,0),n=r.padStart(Math.floor((e-3600*t)/60),2,0),i=r.padStart(Math.floor(e-3600*t-60*n),2,0);return("00"===t?[n,i]:[t,n,i]).join(":")},event:function(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement},typeOf:function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},deepCopy:function(e,t){if("Object"===r.typeOf(t)&&"Object"===r.typeOf(e))return Object.keys(t).forEach((function(n){"Object"!==r.typeOf(t[n])||t[n]instanceof Node?"Array"===r.typeOf(t[n])?e[n]="Array"===r.typeOf(e[n])?e[n].concat(t[n]):t[n]:e[n]=t[n]:e[n]?r.deepCopy(e[n],t[n]):e[n]=t[n]})),e},getBgImage:function(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||"none"===t)return"";var n=document.createElement("a");return n.href=t.replace(/url\("|"\)/g,""),n.href},copyDom:function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return Array.prototype.forEach.call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},setInterval:function(e,t,n,r){e._interval[t]||(e._interval[t]=setInterval(n.bind(e),r))},clearInterval:function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},createImgBtn:function(e,t,n,i){var o=r.createDom("xg-"+e,"",{},"xgplayer-"+e+"-img");if(o.style.backgroundImage='url("'+t+'")',n&&i){var a=void 0,s=void 0,l=void 0;["px","rem","em","pt","dp","vw","vh","vm","%"].every((function(e){return!(n.indexOf(e)>-1&&i.indexOf(e)>-1)||(a=Number(n.slice(0,n.indexOf(e)).trim()),s=Number(i.slice(0,i.indexOf(e)).trim()),l=e,!1)})),o.style.width=""+a+l,o.style.height=""+s+l,o.style.backgroundSize=""+a+l+" "+s+l,o.style.margin="start"===e?"-"+s/2+l+" auto auto -"+a/2+l:"auto 5px auto 5px"}return o},Hex2RGBA:function(e,t){var n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var r="#";e.replace(/[0-9A-F]/gi,(function(e){r+=e+e})),e=r}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(parseInt(e,16))})),"rgba("+n.join(",")+", "+t+")"):"rgba(255, 255, 255, 0.1)"},isWeiXin:function(){return window.navigator.userAgent.toLowerCase().indexOf("micromessenger")>-1},isUc:function(){return window.navigator.userAgent.toLowerCase().indexOf("ucbrowser")>-1},computeWatchDur:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=0;n<e.length;n++)if(!(!e[n].end||e[n].begin<0||e[n].end<0||e[n].end<e[n].begin))if(t.length<1)t.push({begin:e[n].begin,end:e[n].end});else for(var r=0;r<t.length;r++){var i=e[n].begin,o=e[n].end;if(o<t[r].begin){t.splice(r,0,{begin:i,end:o});break}if(!(i>t[r].end)){var a=t[r].begin,s=t[r].end;t[r].begin=Math.min(i,a),t[r].end=Math.max(o,s);break}if(r>t.length-2){t.push({begin:i,end:o});break}}for(var l=0,u=0;u<t.length;u++)l+=t[u].end-t[u].begin;return l},downloadFile:function(e){var t=this;return new Promise((function(n,r){var i=new XMLHttpRequest;i.open("get",e),i.responseType="arraybuffer",i.onload=function(){var r=void 0,o=i.response;try{r=new Blob([o],{type:"application/x-mpegURL"})}catch(e){window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,(r=new BlobBuilder).append(o),r=r.getBlob()}var a=URL.createObjectURL(r);t.cacheBuffer[e]={blobUrl:a,blob:r},t.options.backupUrls&&t.options.backupUrls.length&&!t.backup_download_success&&t.options.backupUrls.every((function(e){return t.cacheBuffer[e]&&!isPromise(t.cacheBuffer[e])}))&&(t.emit("backup_download_success"),t.backup_download_success=!0),n({blobUrl:a,blob:r})},i.onerror=function(r){delete t.cacheBuffer[e],n(e)},i.onprogress=function(n){-1==t.cacheBuffer[e]&&i&&(i.abort(),delete t.cacheBuffer[e])},i.send()}))},offInDestroy:function(e,t,n,r){e.once(r,(function i(){e.off(t,n),e.off(r,i)}))},on:function(e,t,n,i){i?(e.on(t,n),r.offInDestroy(e,t,n,i)):e.on(t,(function r(i){n(i),e.off(t,r)}))},once:function(e,t,n,i){i?(e.once(t,n),r.offInDestroy(e,t,n,i)):e.once(t,(function r(i){n(i),e.off(t,r)}))}};t.default=r,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o={network:{code:1,msg:"视频下载错误",remark:"只要视频下载错误就使用此类型,无论是video本身的超时还是xhr的分段请求超时或者资源不存在"},mse:{code:2,msg:"流追加错误",remark:"追加流的时候如果类型不对、无法被正确解码则会触发此类错误"},parse:{code:3,msg:"解析错误",remark:"mp4、hls、flv我们都是使用js进行格式解析,如果解析失败则会触发此类错误"},format:{code:4,msg:"格式错误",remark:"如果浏览器不支持的格式导致播放错误"},decoder:{code:5,msg:"解码错误",remark:"浏览器解码异常会抛出此类型错误"},runtime:{code:6,msg:"语法错误",remark:"播放器语法错误"},timeout:{code:7,msg:"播放超时",remark:"播放过程中无法正常请求下一个分段导致播放中断"},other:{code:8,msg:"其他错误",remark:"不可知的错误或被忽略的错误类型"}};t.default=function e(t,n,a,s,l,u,c,d){var f=arguments.length>8&&void 0!==arguments[8]?arguments[8]:{line:"",handle:"",msg:"",version:""},h=arguments[9],p=arguments[10];i(this,e);var g={};if(arguments.length>1)g.playerVersion=r.version,g.errorType=t,g.domain=document.domain,g.duration=a,g.currentTime=n,g.networkState=s,g.readyState=l,g.currentSrc=c,g.src=u,g.ended=d,g.errd=f,g.ex=(o[t]||{}).msg,g.errorCode=h,g.mediaError=p;else{var v=arguments[0];Object.keys(v).map((function(e){g[e]=v[e]})),g.ex=(v.type&&o[v.type]||{}).msg}return g},e.exports=t.default},function(e){e.exports=JSON.parse('{"version":"2.14.0"}')},function(e,t,n){e.exports=n(7)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=O(n(0)),i=O(n(40)),o=O(n(41)),a=O(n(42)),s=O(n(43)),l=O(n(44)),u=O(n(45)),c=O(n(46)),d=O(n(47)),f=O(n(48)),h=O(n(49)),p=O(n(50)),g=O(n(51)),v=O(n(52)),y=O(n(53)),m=O(n(54)),b=O(n(55)),x=O(n(56)),_=O(n(57)),w=O(n(58)),S=O(n(59)),k=O(n(60));function O(e){return e&&e.__esModule?e:{default:e}}O(n(61));var T={};function E(e,t,n){var r=e;t.map((function(e,i){r[e]=i==t.length-1?n:r[e]||{},r=r[e]}))}E(T,["controls","airplay"],k.default),E(T,["controls","cssFullscreen"],S.default),E(T,["controls","danmu"],w.default),E(T,["controls","definition"],_.default),E(T,["controls","download"],x.default),E(T,["controls","errorRetry"],b.default),E(T,["controls","fullscreen"],m.default),E(T,["controls","keyboard"],y.default),E(T,["controls","localPreview"],v.default),E(T,["controls","memoryPlay"],g.default),E(T,["controls","mobile"],p.default),E(T,["controls","pc"],h.default),E(T,["controls","pip"],f.default),E(T,["controls","play"],d.default),E(T,["controls","playNext"],c.default),E(T,["controls","reload"],u.default),E(T,["controls","replay"],l.default),E(T,["controls","rotate"],s.default),E(T,["controls","screenShot"],a.default),E(T,["controls","start"],o.default),E(T,["controls","volume"],i.default),t.default=r.default,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(9)),o=s(n(3)),a=s(n(4));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.logParams={bc:0,bu_acu_t:0,played:[]},this._hasStart=!1,this.videoConfig={controls:!!t.isShowControl,autoplay:t.autoplay,playsinline:t.playsinline,"webkit-playsinline":t.playsinline,"x5-playsinline":t.playsinline,"x5-video-player-type":t["x5-video-player-type"]||t.x5VideoPlayerType,"x5-video-player-fullscreen":t["x5-video-player-fullscreen"]||t.x5VideoPlayerFullscreen,"x5-video-orientation":t["x5-video-orientation"]||t.x5VideoOrientation,airplay:t.airplay,"webkit-airplay":t.airplay,tabindex:2,mediaType:t.mediaType||"video"},t.muted&&(this.videoConfig.muted="muted"),t.loop&&(this.videoConfig.loop="loop");var n="";if(this.textTrackShowDefault=!0,t.textTrack&&Array.isArray(t.textTrack)&&(t.textTrack.length>0&&!t.textTrack.some((function(e){return e.default}))&&(t.textTrack[0].default=!0,this.textTrackShowDefault=!1),t.textTrack.some((function(e){if(e.src&&e.label&&e.default)return n+='<track src="'+e.src+'" ',e.kind&&(n+='kind="'+e.kind+'" '),n+='label="'+e.label+'" ',e.srclang&&(n+='srclang="'+e.srclang+'" '),n+=(e.default?"default":"")+">",!0})),this.videoConfig.crossorigin="anonymous"),t.textTrackStyle){var r=document.createElement("style");this.textTrackStyle=r,document.head.appendChild(r);var a="";for(var s in t.textTrackStyle)a+=s+": "+t.textTrackStyle[s]+";";var l=t.id?"#"+t.id:t.el.id?"#"+t.el.id:"."+t.el.className;r.sheet.insertRule?r.sheet.insertRule(l+" video::cue { "+a+" }",0):r.sheet.addRule&&r.sheet.addRule(l+" video::cue",a)}this.video=o.default.createDom(this.videoConfig.mediaType,n,this.videoConfig,""),!this.textTrackShowDefault&&n&&(this.video.getElementsByTagName("Track")[0].track.mode="hidden"),t.autoplay&&(this.video.autoplay=!0,t.autoplayMuted&&(this.video.muted=!0)),this.ev=["play","playing","pause","ended","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","volumechange","loadeddata","loadstart"].map((function(e){return t={},n=e,r="on"+e.charAt(0).toUpperCase()+e.slice(1),n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t;var t,n,r})),(0,i.default)(this),this._interval={};var u="0,0",c=this;this.ev.forEach((function(e){c.evItem=Object.keys(e)[0];var t=Object.keys(e)[0];c.video.addEventListener(Object.keys(e)[0],(function(){c&&c.logParams&&("play"===t?c.hasStart=!0:"canplay"===t?o.default.removeClass(c.root,"xgplayer-is-enter"):"waiting"===t?(c.logParams.bc++,c.inWaitingStart=(new Date).getTime()):"playing"===t?(o.default.removeClass(c.root,"xgplayer-is-enter"),c.inWaitingStart&&(c.logParams.bu_acu_t+=(new Date).getTime()-c.inWaitingStart,c.inWaitingStart=void 0)):"loadeddata"===t?c.logParams.played.push({begin:0,end:-1}):"seeking"===t?c.logParams.played.push({begin:c.video.currentTime,end:-1}):c&&c.logParams&&c.logParams.played&&"timeupdate"===t&&(c.logParams.played.length<1&&c.logParams.played.push({begin:c.video.currentTime,end:-1}),c.logParams.played[c.logParams.played.length-1].end=c.video.currentTime),"error"===t?c._onError(t):c.emit(t,c),c.hasOwnProperty("_interval")&&(["ended","error","timeupdate"].indexOf(t)<0?(clearInterval(c._interval.bufferedChange),o.default.setInterval(c,"bufferedChange",(function(){if(c.video&&c.video.buffered){for(var e=[],t=0,n=c.video.buffered.length;t<n;t++)e.push([c.video.buffered.start(t),c.video.buffered.end(t)]);e.toString()!==u&&(u=e.toString(),c.emit("bufferedChange",e))}}),200)):"timeupdate"!==t&&o.default.clearInterval(c,"bufferedChange")))}),!1)}))}return r(e,[{key:"_onError",value:function(e){this.video&&this.video.error&&this.emit(e,new a.default("other",this.currentTime,this.duration,this.networkState,this.readyState,this.currentSrc,this.src,this.ended,{line:162,msg:this.error,handle:"Constructor"},this.video.error.code,this.video.error))}},{key:"destroy",value:function(){this.textTrackStyle&&this.textTrackStyle.parentNode.removeChild(this.textTrackStyle)}},{key:"play",value:function(){return this.video.play()}},{key:"pause",value:function(){this.video.pause()}},{key:"canPlayType",value:function(e){return this.video.canPlayType(e)}},{key:"getBufferedRange",value:function(){var e=[0,0],t=this.video,n=t.buffered,r=t.currentTime;if(n)for(var i=0,o=n.length;i<o&&(e[0]=n.start(i),e[1]=n.end(i),!(e[0]<=r&&r<=e[1]));i++);return e[0]-r<=0&&r-e[1]<=0?e:[0,0]}},{key:"hasStart",get:function(){return this._hasStart},set:function(e){"boolean"!=typeof e||!0!==e||this._hasStart||(this._hasStart=!0,this.emit("hasstart"))}},{key:"autoplay",set:function(e){this.video.autoplay=e},get:function(){return this.video.autoplay}},{key:"buffered",get:function(){return this.video.buffered}},{key:"crossOrigin",get:function(){return this.video.crossOrigin},set:function(e){this.video.crossOrigin=e}},{key:"currentSrc",get:function(){return this.video.currentSrc}},{key:"currentTime",get:function(){return this.video&&this.video.currentTime||0},set:function(e){var t=this;("function"!=typeof isFinite||isFinite(e))&&(o.default.hasClass(this.root,"xgplayer-ended")?(this.once("playing",(function(){t.video.currentTime=e})),this.replay()):this.video.currentTime=e,this.emit("currentTimeChange"))}},{key:"defaultMuted",get:function(){return this.video.defaultMuted},set:function(e){this.video.defaultMuted=e}},{key:"duration",get:function(){return this.video.duration}},{key:"ended",get:function(){return!this.video||this.video.ended||!1}},{key:"error",get:function(){var e=this.video.error;if(!e)return null;var t=[{en:"MEDIA_ERR_ABORTED",cn:"取回过程被用户中止"},{en:"MEDIA_ERR_NETWORK",cn:"当下载时发生错误"},{en:"MEDIA_ERR_DECODE",cn:"当解码时发生错误"},{en:"MEDIA_ERR_SRC_NOT_SUPPORTED",cn:"不支持音频/视频"}];return this.lang?this.lang[t[e.code-1].en]:t[e.code-1].en}},{key:"loop",get:function(){return this.video.loop},set:function(e){this.video.loop=e}},{key:"muted",get:function(){return this.video.muted},set:function(e){this.video.muted=e}},{key:"networkState",get:function(){var e=[{en:"NETWORK_EMPTY",cn:"音频/视频尚未初始化"},{en:"NETWORK_IDLE",cn:"音频/视频是活动的且已选取资源,但并未使用网络"},{en:"NETWORK_LOADING",cn:"浏览器正在下载数据"},{en:"NETWORK_NO_SOURCE",cn:"未找到音频/视频来源"}];return this.lang?this.lang[e[this.video.networkState].en]:e[this.video.networkState].en}},{key:"paused",get:function(){return this.video.paused}},{key:"playbackRate",get:function(){return this.video.playbackRate},set:function(e){this.video.playbackRate=e}},{key:"played",get:function(){return this.video.played}},{key:"preload",get:function(){return this.video.preload},set:function(e){this.video.preload=e}},{key:"readyState",get:function(){var e=[{en:"HAVE_NOTHING",cn:"没有关于音频/视频是否就绪的信息"},{en:"HAVE_METADATA",cn:"关于音频/视频就绪的元数据"},{en:"HAVE_CURRENT_DATA",cn:"关于当前播放位置的数据是可用的,但没有足够的数据来播放下一帧/毫秒"},{en:"HAVE_FUTURE_DATA",cn:"当前及至少下一帧的数据是可用的"},{en:"HAVE_ENOUGH_DATA",cn:"可用数据足以开始播放"}];return this.lang?this.lang[e[this.video.readyState].en]:e[this.video.readyState]}},{key:"seekable",get:function(){return this.video.seekable}},{key:"seeking",get:function(){return this.video.seeking}},{key:"src",get:function(){return this.video.src},set:function(e){var t=this;o.default.hasClass(this.root,"xgplayer-ended")||this.emit("urlchange",JSON.parse(JSON.stringify(t.logParams))),this.logParams={bc:0,bu_acu_t:0,played:[],pt:(new Date).getTime(),vt:(new Date).getTime(),vd:0},this.autoplay=!0,this.video.pause(),this.video.src=e,this.emit("srcChange"),this.logParams.playSrc=e,this.logParams.pt=(new Date).getTime(),this.logParams.vt=this.logParams.pt,this.once("loadeddata",(function e(){t.logParams.vt=(new Date).getTime(),t.logParams.pt>t.logParams.vt&&(t.logParams.pt=t.logParams.vt),t.logParams.vd=t.video.duration,t.off("loadeddata",e)}))}},{key:"poster",set:function(e){var t=o.default.findDom(this.root,".xgplayer-poster");t&&(t.style.backgroundImage="url("+e+")")}},{key:"volume",get:function(){return this.video.volume},set:function(e){this.video.volume=e}},{key:"fullscreen",get:function(){return o.default.hasClass(this.root,"xgplayer-is-fullscreen")||o.default.hasClass(this.root,"xgplayer-fullscreen-active")}},{key:"bullet",get:function(){return!!o.default.findDom(this.root,"xg-danmu")&&o.default.hasClass(o.default.findDom(this.root,"xg-danmu"),"xgplayer-has-danmu")}},{key:"textTrack",get:function(){return o.default.hasClass(this.root,"xgplayer-is-textTrack")}},{key:"pip",get:function(){return o.default.hasClass(this.root,"xgplayer-pip-active")}}]),e}();t.default=l,e.exports=t.default},function(e,t,n){"use strict";var r,i,o,a,s,l,u,c="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},d=n(10),f=n(27),h=Function.prototype.apply,p=Function.prototype.call,g=Object.create,v=Object.defineProperty,y=Object.defineProperties,m=Object.prototype.hasOwnProperty,b={configurable:!0,enumerable:!1,writable:!0};i=function(e,t){var n,i;return f(t),i=this,r.call(this,e,n=function(){o.call(i,e,n),h.call(t,this,arguments)}),n.__eeOnceListener__=t,this},s={on:r=function(e,t){var n;return f(t),m.call(this,"__ee__")?n=this.__ee__:(n=b.value=g(null),v(this,"__ee__",b),b.value=null),n[e]?"object"===c(n[e])?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:i,off:o=function(e,t){var n,r,i,o;if(f(t),!m.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"===(void 0===(r=n[e])?"undefined":c(r)))for(o=0;i=r[o];++o)i!==t&&i.__eeOnceListener__!==t||(2===r.length?n[e]=r[o?0:1]:r.splice(o,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},emit:a=function(e){var t,n,r,i,o;if(m.call(this,"__ee__")&&(i=this.__ee__[e]))if("object"===(void 0===i?"undefined":c(i))){for(n=arguments.length,o=new Array(n-1),t=1;t<n;++t)o[t-1]=arguments[t];for(i=i.slice(),t=0;r=i[t];++t)h.call(r,this,o)}else switch(arguments.length){case 1:p.call(i,this);break;case 2:p.call(i,this,arguments[1]);break;case 3:p.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),t=1;t<n;++t)o[t-1]=arguments[t];h.call(i,this,o)}}},l={on:d(r),once:d(i),off:d(o),emit:d(a)},u=y({},l),e.exports=t=function(e){return null==e?g(u):y(Object(e),l)},t.methods=s},function(e,t,n){"use strict";var r=n(2),i=n(11),o=n(15),a=n(23),s=n(24);(e.exports=function(e,t){var n,i,l,u,c;return arguments.length<2||"string"!=typeof e?(u=t,t=e,e=null):u=arguments[2],r(e)?(n=s.call(e,"c"),i=s.call(e,"e"),l=s.call(e,"w")):(n=l=!0,i=!1),c={value:t,configurable:n,enumerable:i,writable:l},u?o(a(u),c):c}).gs=function(e,t,n){var l,u,c,d;return"string"!=typeof e?(c=n,n=t,t=e,e=null):c=arguments[3],r(t)?i(t)?r(n)?i(n)||(c=n,n=void 0):n=void 0:(c=t,t=n=void 0):t=void 0,r(e)?(l=s.call(e,"c"),u=s.call(e,"e")):(l=!0,u=!1),d={get:t,set:n,configurable:l,enumerable:u},c?o(a(c),d):d}},function(e,t,n){"use strict";var r=n(12),i=/^\s*class[\s{/}]/,o=Function.prototype.toString;e.exports=function(e){return!!r(e)&&!i.test(o.call(e))}},function(e,t,n){"use strict";var r=n(13);e.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!r(e)}},function(e,t,n){"use strict";var r=n(14);e.exports=function(e){if(!r(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}},function(e,t,n){"use strict";var r="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},i=n(2),o={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!i(e)&&hasOwnProperty.call(o,void 0===e?"undefined":r(e))}},function(e,t,n){"use strict";e.exports=n(16)()?Object.assign:n(17)},function(e,t,n){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},function(e,t,n){"use strict";var r=n(18),i=n(22),o=Math.max;e.exports=function(e,t){var n,a,s,l=o(arguments.length,2);for(e=Object(i(e)),s=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},a=1;a<l;++a)r(t=arguments[a]).forEach(s);if(void 0!==n)throw n;return e}},function(e,t,n){"use strict";e.exports=n(19)()?Object.keys:n(20)},function(e,t,n){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(1),i=Object.keys;e.exports=function(e){return i(r(e)?Object(e):e)}},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e){if(!r(e))throw new TypeError("Cannot use null or undefined");return e}},function(e,t,n){"use strict";var r=n(1),i=Array.prototype.forEach,o=Object.create,a=function(e,t){var n;for(n in e)t[n]=e[n]};e.exports=function(e){var t=o(null);return i.call(arguments,(function(e){r(e)&&a(Object(e),t)})),t}},function(e,t,n){"use strict";e.exports=n(25)()?String.prototype.contains:n(26)},function(e,t,n){"use strict";var r="razdwatrzy";e.exports=function(){return"function"==typeof r.contains&&!0===r.contains("dwa")&&!1===r.contains("foo")}},function(e,t,n){"use strict";var r=String.prototype.indexOf;e.exports=function(e){return r.call(this,e,arguments[1])>-1}},function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{name:"xgplayer",version:1,db:null,ojstore:{name:"xg-m4a",keypath:"vid"}};i(this,e),this.indexedDB=window.indexedDB||window.webkitindexedDB,this.IDBKeyRange=window.IDBKeyRange||window.webkitIDBKeyRange,this.myDB=t}return r(e,[{key:"openDB",value:function(e){var t=this,n=this,r=this.myDB.version||1,i=n.indexedDB.open(n.myDB.name,r);i.onerror=function(e){},i.onsuccess=function(r){t.myDB.db=r.target.result,e.call(n)},i.onupgradeneeded=function(e){var t=e.target.result;e.target.transaction,t.objectStoreNames.contains(n.myDB.ojstore.name)||t.createObjectStore(n.myDB.ojstore.name,{keyPath:n.myDB.ojstore.keypath})}}},{key:"deletedb",value:function(){this.indexedDB.deleteDatabase(this.myDB.name)}},{key:"closeDB",value:function(){this.myDB.db.close()}},{key:"addData",value:function(e,t){for(var n=this.myDB.db.transaction(e,"readwrite").objectStore(e),r=void 0,i=0;i<t.length;i++)(r=n.add(t[i])).onerror=function(){},r.onsuccess=function(){}}},{key:"putData",value:function(e,t){for(var n=this.myDB.db.transaction(e,"readwrite").objectStore(e),r=void 0,i=0;i<t.length;i++)(r=n.put(t[i])).onerror=function(){},r.onsuccess=function(){}}},{key:"getDataByKey",value:function(e,t,n){var r=this,i=this.myDB.db.transaction(e,"readwrite").objectStore(e).get(t);i.onerror=function(){n.call(r,null)},i.onsuccess=function(e){var t=e.target.result;n.call(r,t)}}},{key:"deleteData",value:function(e,t){this.myDB.db.transaction(e,"readwrite").objectStore(e).delete(t)}},{key:"clearData",value:function(e){this.myDB.db.transaction(e,"readwrite").objectStore(e).clear()}}]),e}();t.default=o,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={get device(){return r.os.isPc?"pc":"mobile"},get browser(){var e=navigator.userAgent.toLowerCase(),t={ie:/rv:([\d.]+)\) like gecko/,firfox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return[].concat(Object.keys(t).filter((function(n){return t[n].test(e)})))[0]},get os(){var e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),n=/(?:SymbianOS)/.test(e)||t,r=/(?:Android)/.test(e),i=/(?:Firefox)/.test(e),o=/(?:iPad|PlayBook)/.test(e)||r&&!/(?:Mobile)/.test(e)||i&&/(?:Tablet)/.test(e),a=/(?:iPhone)/.test(e)&&!o;return{isTablet:o,isPhone:a,isAndroid:r,isPc:!(a||r||n||o),isSymbian:n,isWindowsPhone:t,isFireFox:i}}};t.default=r,e.exports=t.default},function(e,t,n){"use strict";var r,i;"function"==typeof Symbol&&Symbol.iterator,function(o,a){r=[n(31),n(32)],void 0===(i=function(e,t){return function(e,t,n){function r(e,t){for(var n in t)e[n]=t[n];return e}var i=e.jQuery;function o(e,t){this.element="string"==typeof e?document.querySelector(e):e,i&&(this.$element=i(this.element)),this.options=r({},this.constructor.defaults),this.option(t),this._create()}var a=o.prototype=Object.create(n.prototype);o.defaults={},a.option=function(e){r(this.options,e)};var s={relative:!0,absolute:!0,fixed:!0};function l(e,t,n){return n=n||"round",t?Math[n](e/t)*t:e}return a._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition=r({},this.position);var e=getComputedStyle(this.element);s[e.position]||(this.element.style.position="relative"),this.on("pointerMove",this.onPointerMove),this.on("pointerUp",this.onPointerUp),this.enable(),this.setHandles()},a.setHandles=function(){this.handles=this.options.handle?this.element.querySelectorAll(this.options.handle):[this.element],this.bindHandles()},a.dispatchEvent=function(e,t,n){var r=[t].concat(n);this.emitEvent(e,r),this.dispatchJQueryEvent(e,t,n)},a.dispatchJQueryEvent=function(t,n,r){var i=e.jQuery;if(i&&this.$element){var o=i.Event(n);o.type=t,this.$element.trigger(o,r)}},a._getPosition=function(){var e=getComputedStyle(this.element),t=this._getPositionCoord(e.left,"width"),n=this._getPositionCoord(e.top,"height");this.position.x=isNaN(t)?0:t,this.position.y=isNaN(n)?0:n,this._addTransformPosition(e)},a._getPositionCoord=function(e,n){if(-1!=e.indexOf("%")){var r=t(this.element.parentNode);return r?parseFloat(e)/100*r[n]:0}return parseInt(e,10)},a._addTransformPosition=function(e){var t=e.transform;if(0===t.indexOf("matrix")){var n=t.split(","),r=0===t.indexOf("matrix3d")?12:4,i=parseInt(n[r],10),o=parseInt(n[r+1],10);this.position.x+=i,this.position.y+=o}},a.onPointerDown=function(e,t){this.element.classList.add("is-pointer-down"),this.dispatchJQueryEvent("pointerDown",e,[t])},a.pointerDown=function(e,t){this.okayPointerDown(e)&&this.isEnabled?(this.pointerDownPointer={pageX:t.pageX,pageY:t.pageY},e.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(e),this.element.classList.add("is-pointer-down"),this.dispatchEvent("pointerDown",e,[t])):this._pointerReset()},a.dragStart=function(e,t){this.isEnabled&&(this._getPosition(),this.measureContainment(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.setLeftTop(),this.dragPoint.x=0,this.dragPoint.y=0,this.element.classList.add("is-dragging"),this.dispatchEvent("dragStart",e,[t]),this.animate())},a.measureContainment=function(){var e=this.getContainer();if(e){var n=t(this.element),r=t(e),i=this.element.getBoundingClientRect(),o=e.getBoundingClientRect(),a=r.borderLeftWidth+r.borderRightWidth,s=r.borderTopWidth+r.borderBottomWidth,l=this.relativeStartPosition={x:i.left-(o.left+r.borderLeftWidth),y:i.top-(o.top+r.borderTopWidth)};this.containSize={width:r.width-a-l.x-n.width,height:r.height-s-l.y-n.height}}},a.getContainer=function(){var e=this.options.containment;if(e)return e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):this.element.parentNode},a.onPointerMove=function(e,t,n){this.dispatchJQueryEvent("pointerMove",e,[t,n])},a.dragMove=function(e,t,n){if(this.isEnabled){var r=n.x,i=n.y,o=this.options.grid,a=o&&o[0],s=o&&o[1];r=l(r,a),i=l(i,s),r=this.containDrag("x",r,a),i=this.containDrag("y",i,s),r="y"==this.options.axis?0:r,i="x"==this.options.axis?0:i,this.position.x=this.startPosition.x+r,this.position.y=this.startPosition.y+i,this.dragPoint.x=r,this.dragPoint.y=i,this.dispatchEvent("dragMove",e,[t,n])}},a.containDrag=function(e,t,n){if(!this.options.containment)return t;var r="x"==e?"width":"height",i=l(-this.relativeStartPosition[e],n,"ceil"),o=this.containSize[r];return o=l(o,n,"floor"),Math.max(i,Math.min(o,t))},a.onPointerUp=function(e,t){this.element.classList.remove("is-pointer-down"),this.dispatchJQueryEvent("pointerUp",e,[t])},a.dragEnd=function(e,t){this.isEnabled&&(this.element.style.transform="",this.setLeftTop(),this.element.classList.remove("is-dragging"),this.dispatchEvent("dragEnd",e,[t]))},a.animate=function(){if(this.isDragging){this.positionDrag();var e=this;requestAnimationFrame((function(){e.animate()}))}},a.setLeftTop=function(){this.element.style.left=this.position.x+"px",this.element.style.top=this.position.y+"px"},a.positionDrag=function(){this.element.style.transform="translate3d( "+this.dragPoint.x+"px, "+this.dragPoint.y+"px, 0)"},a.staticClick=function(e,t){this.dispatchEvent("staticClick",e,[t])},a.setPosition=function(e,t){this.position.x=e,this.position.y=t,this.setLeftTop()},a.enable=function(){this.isEnabled=!0},a.disable=function(){this.isEnabled=!1,this.isDragging&&this.dragEnd()},a.destroy=function(){this.disable(),this.element.style.transform="",this.element.style.left="",this.element.style.top="",this.element.style.position="",this.unbindHandles(),this.$element&&this.$element.removeData("draggabilly")},a._init=function(){},i&&i.bridget&&i.bridget("draggabilly",o),o}(o,e,t)}.apply(t,r))||(e.exports=i)}(window)},function(e,t,n){"use strict";var r,i,o="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};window,void 0===(i="function"==typeof(r=function(){function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=n.length;function i(e){var n=getComputedStyle(e);return n||t("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var a,s=!1;function l(t){if(function(){if(!s){s=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var r=i(t);a=200==Math.round(e(r.width)),l.isBoxSizeOuter=a,n.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==(void 0===t?"undefined":o(t))&&t.nodeType){var u=i(t);if("none"==u.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<r;t++)e[n[t]]=0;return e}();var c={};c.width=t.offsetWidth,c.height=t.offsetHeight;for(var d=c.isBorderBox="border-box"==u.boxSizing,f=0;f<r;f++){var h=n[f],p=u[h],g=parseFloat(p);c[h]=isNaN(g)?0:g}var v=c.paddingLeft+c.paddingRight,y=c.paddingTop+c.paddingBottom,m=c.marginLeft+c.marginRight,b=c.marginTop+c.marginBottom,x=c.borderLeftWidth+c.borderRightWidth,_=c.borderTopWidth+c.borderBottomWidth,w=d&&a,S=e(u.width);!1!==S&&(c.width=S+(w?0:v+x));var k=e(u.height);return!1!==k&&(c.height=k+(w?0:y+_)),c.innerWidth=c.width-(v+x),c.innerHeight=c.height-(y+_),c.outerWidth=c.width+m,c.outerHeight=c.height+b,c}}return l})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){"use strict";var r,i;"function"==typeof Symbol&&Symbol.iterator,function(o,a){r=[n(33)],void 0===(i=function(e){return function(e,t){function n(){}var r=n.prototype=Object.create(t.prototype);r.bindHandles=function(){this._bindHandles(!0)},r.unbindHandles=function(){this._bindHandles(!1)},r._bindHandles=function(t){for(var n=(t=void 0===t||t)?"addEventListener":"removeEventListener",r=t?this._touchActionValue:"",i=0;i<this.handles.length;i++){var o=this.handles[i];this._bindStartEvent(o,t),o[n]("click",this),e.PointerEvent&&(o.style.touchAction=r)}},r._touchActionValue="none",r.pointerDown=function(e,t){this.okayPointerDown(e)&&(this.pointerDownPointer={pageX:t.pageX,pageY:t.pageY},e.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(e),this.emitEvent("pointerDown",[e,t]))};var i={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},o={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return r.okayPointerDown=function(e){var t=i[e.target.nodeName],n=o[e.target.type],r=!t||n;return r||this._pointerReset(),r},r.pointerDownBlur=function(){var e=document.activeElement;e&&e.blur&&e!=document.body&&e.blur()},r.pointerMove=function(e,t){var n=this._dragPointerMove(e,t);this.emitEvent("pointerMove",[e,t,n]),this._dragMove(e,t,n)},r._dragPointerMove=function(e,t){var n={x:t.pageX-this.pointerDownPointer.pageX,y:t.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(n)&&this._dragStart(e,t),n},r.hasDragStarted=function(e){return Math.abs(e.x)>3||Math.abs(e.y)>3},r.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t]),this._dragPointerUp(e,t)},r._dragPointerUp=function(e,t){this.isDragging?this._dragEnd(e,t):this._staticClick(e,t)},r._dragStart=function(e,t){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(e,t)},r.dragStart=function(e,t){this.emitEvent("dragStart",[e,t])},r._dragMove=function(e,t,n){this.isDragging&&this.dragMove(e,t,n)},r.dragMove=function(e,t,n){e.preventDefault(),this.emitEvent("dragMove",[e,t,n])},r._dragEnd=function(e,t){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(e,t)},r.dragEnd=function(e,t){this.emitEvent("dragEnd",[e,t])},r.onclick=function(e){this.isPreventingClicks&&e.preventDefault()},r._staticClick=function(e,t){this.isIgnoringMouseUp&&"mouseup"==e.type||(this.staticClick(e,t),"mouseup"!=e.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},r.staticClick=function(e,t){this.emitEvent("staticClick",[e,t])},n.getPointerPoint=t.getPointerPoint,n}(o,e)}.apply(t,r))||(e.exports=i)}(window)},function(e,t,n){"use strict";var r,i;"function"==typeof Symbol&&Symbol.iterator,function(o,a){r=[n(34)],void 0===(i=function(e){return function(e,t){function n(){}var r=n.prototype=Object.create(t.prototype);r.bindStartEvent=function(e){this._bindStartEvent(e,!0)},r.unbindStartEvent=function(e){this._bindStartEvent(e,!1)},r._bindStartEvent=function(t,n){var r=(n=void 0===n||n)?"addEventListener":"removeEventListener",i="mousedown";e.PointerEvent?i="pointerdown":"ontouchstart"in e&&(i="touchstart"),t[r](i,this)},r.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.getTouch=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.identifier==this.pointerIdentifier)return n}},r.onmousedown=function(e){var t=e.button;t&&0!==t&&1!==t||this._pointerDown(e,e)},r.ontouchstart=function(e){this._pointerDown(e,e.changedTouches[0])},r.onpointerdown=function(e){this._pointerDown(e,e)},r._pointerDown=function(e,t){e.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==t.pointerId?t.pointerId:t.identifier,this.pointerDown(e,t))},r.pointerDown=function(e,t){this._bindPostStartEvents(e),this.emitEvent("pointerDown",[e,t])};var i={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return r._bindPostStartEvents=function(t){if(t){var n=i[t.type];n.forEach((function(t){e.addEventListener(t,this)}),this),this._boundPointerEvents=n}},r._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach((function(t){e.removeEventListener(t,this)}),this),delete this._boundPointerEvents)},r.onmousemove=function(e){this._pointerMove(e,e)},r.onpointermove=function(e){e.pointerId==this.pointerIdentifier&&this._pointerMove(e,e)},r.ontouchmove=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerMove(e,t)},r._pointerMove=function(e,t){this.pointerMove(e,t)},r.pointerMove=function(e,t){this.emitEvent("pointerMove",[e,t])},r.onmouseup=function(e){this._pointerUp(e,e)},r.onpointerup=function(e){e.pointerId==this.pointerIdentifier&&this._pointerUp(e,e)},r.ontouchend=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerUp(e,t)},r._pointerUp=function(e,t){this._pointerDone(),this.pointerUp(e,t)},r.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t])},r._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},r._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},r.pointerDone=function(){},r.onpointercancel=function(e){e.pointerId==this.pointerIdentifier&&this._pointerCancel(e,e)},r.ontouchcancel=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerCancel(e,t)},r._pointerCancel=function(e,t){this._pointerDone(),this.pointerCancel(e,t)},r.pointerCancel=function(e,t){this.emitEvent("pointerCancel",[e,t])},n.getPointerPoint=function(e){return{x:e.pageX,y:e.pageY}},n}(o,e)}.apply(t,r))||(e.exports=i)}(window)},function(e,t,n){"use strict";var r,i;"function"==typeof Symbol&&Symbol.iterator,"undefined"!=typeof window&&window,void 0===(i="function"==typeof(r=function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},r=n[e]=n[e]||[];return-1==r.indexOf(t)&&r.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var r=n.indexOf(t);return-1!=r&&n.splice(r,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var r=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++){var o=n[i];r&&r[o]&&(this.off(e,o),delete r[o]),o.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAbsoluteURL=function(e){if(!e.match(/^https?:\/\//)){var t=document.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e}},function(e,t,n){"use strict";var r,i,o;"function"==typeof Symbol&&Symbol.iterator,i=[],void 0===(o="function"==typeof(r=function(){return function e(t,n,r){var i,o,a=window,s="application/octet-stream",l=r||s,u=t,c=!n&&!r&&u,d=document.createElement("a"),f=function(e){return String(e)},h=a.Blob||a.MozBlob||a.WebKitBlob||f,p=n||"download";if(h=h.call?h.bind(a):Blob,"true"===String(this)&&(l=(u=[u,l])[0],u=u[1]),c&&c.length<2048&&(p=c.split("/").pop().split("?")[0],d.href=c,-1!==d.href.indexOf(c))){var g=new XMLHttpRequest;return g.open("GET",c,!0),g.responseType="blob",g.onload=function(t){e(t.target.response,p,s)},setTimeout((function(){g.send()}),0),g}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u)){if(!(u.length>2096103.424&&h!==f))return navigator.msSaveBlob?navigator.msSaveBlob(b(u),p):x(u);l=(u=b(u)).type||s}else if(/([\x80-\xff])/.test(u)){for(var v=0,y=new Uint8Array(u.length),m=y.length;v<m;++v)y[v]=u.charCodeAt(v);u=new h([y],{type:l})}function b(e){for(var t=e.split(/[:;,]/),n=t[1],r=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),i=r.length,o=0,a=new Uint8Array(i);o<i;++o)a[o]=r.charCodeAt(o);return new h([a],{type:n})}function x(e,t){if("download"in d)return d.href=e,d.setAttribute("download",p),d.className="download-js-link",d.innerHTML="downloading...",d.style.display="none",document.body.appendChild(d),setTimeout((function(){d.click(),document.body.removeChild(d),!0===t&&setTimeout((function(){a.URL.revokeObjectURL(d.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),n.src=e,setTimeout((function(){document.body.removeChild(n)}),333)}if(i=u instanceof h?u:new h([u],{type:l}),navigator.msSaveBlob)return navigator.msSaveBlob(i,p);if(a.URL)x(a.URL.createObjectURL(i),!0);else{if("string"==typeof i||i.constructor===f)try{return x("data:"+l+";base64,"+a.btoa(i))}catch(e){return x("data:"+l+","+encodeURIComponent(i))}(o=new FileReader).onload=function(e){x(this.result)},o.readAsDataURL(i)}return!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";var r=n(38),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t,n=arguments[1];if(r(e),void 0===n)i.call(e,"__ee__")&&delete e.__ee__;else{if(!(t=i.call(e,"__ee__")&&e.__ee__))return;t[n]&&delete t[n]}}},function(e,t,n){"use strict";var r=n(39);e.exports=function(e){if(!r(e))throw new TypeError(e+" is not an Object");return e}},function(e,t,n){"use strict";var r="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},i=n(1),o={function:!0,object:!0};e.exports=function(e){return i(e)&&o[void 0===e?"undefined":r(e)]||!1}},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("volume",(function(){var e=this,t=e.root,n=o.default.util,r=void 0,i=void 0,a=void 0,s=void 0;function l(){e.controls&&(e.volume=e.config.volume,(r=e.controls.querySelector(".xgplayer-volume"))&&(i=r.querySelector(".xgplayer-slider"),a=r.querySelector(".xgplayer-bar"),s=r.querySelector(".xgplayer-drag"),"mobile"===o.default.sniffer.device&&p()))}function u(t){if(i){e.video.muted=!1,i.focus(),n.event(t);var r=a.getBoundingClientRect(),o=(t.clientX,t.clientY),l=s.getBoundingClientRect().height,u=!1,c=function(t){t.preventDefault(),t.stopPropagation(),n.event(t),u=!0;var i=l-t.clientY+o,a=i/r.height;s.style.height=i+"px",e.volume=Math.max(Math.min(a,1),0)},d=function t(o){if(o.preventDefault(),o.stopPropagation(),n.event(o),window.removeEventListener("mousemove",c),window.removeEventListener("touchmove",c),window.removeEventListener("mouseup",t),window.removeEventListener("touchend",t),!u){var a=r.height-(o.clientY-r.top),l=a/r.height;s.style.height=a+"px",l<=0&&(e.volume>0?s.volume=e.video.volume:l=s.volume),e.volume=Math.max(Math.min(l,1),0)}i.volume=e.volume,u=!1};return window.addEventListener("mousemove",c),window.addEventListener("touchmove",c),window.addEventListener("mouseup",d),window.addEventListener("touchend",d),!1}}function c(){if("mobile"===o.default.sniffer.device)e.video.muted?(e.video.muted=!1,e.emit("unmute"),e.volume=1):(e.video.muted=!0,e.emit("mute"),e.volume=0);else{if(!i)return;e.video.muted=!1,e.volume<.1?(i.volume<.1?e.volume=.6:e.volume=i.volume,e.emit("unmute")):(e.volume=0,e.emit("mute"))}}function d(){n.addClass(t,"xgplayer-volume-active"),r&&r.focus()}function f(){n.removeClass(t,"xgplayer-volume-active")}e.once("canplay",l),e.on("volumeBarClick",u),e.on("volumeIconClick",c),e.on("volumeIconEnter",d),e.on("volumeIconLeave",f);var h=null;function p(){h&&clearTimeout(h),h=setTimeout((function(){if("mobile"===o.default.sniffer.device)n.removeClass(t,"xgplayer-volume-muted"),n.removeClass(t,"xgplayer-volume-large"),e.video.muted||e.video.defaultMuted?(e.video.muted||(e.video.muted=!0),e.video.defaultMuted=!1,n.addClass(t,"xgplayer-volume-muted")):n.addClass(t,"xgplayer-volume-large");else{if(n.removeClass(t,"xgplayer-volume-muted"),n.removeClass(t,"xgplayer-volume-small"),n.removeClass(t,"xgplayer-volume-large"),0===e.volume?n.addClass(t,"xgplayer-volume-muted"):e.volume<.5?n.addClass(t,"xgplayer-volume-small"):n.addClass(t,"xgplayer-volume-large"),!a)return;var r=a.getBoundingClientRect().height||76;s.style.height=e.volume*r+"px"}}),50)}e.on("volumechange",p),e.once("destroy",(function t(){e.off("canplay",l),e.off("volumeBarClick",u),e.off("volumeIconClick",c),e.off("volumeIconEnter",d),e.off("volumeIconLeave",f),e.off("volumechange",p),e.off("destroy",t),h&&(clearTimeout(h),h=null)}))}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("start",(function(){var e=this,t=e.root,n=o.default.util;function r(){if(n.hasClass(t,"xgplayer-nostart")){n.removeClass(t,"xgplayer-nostart"),n.addClass(t,"xgplayer-is-enter"),t.querySelector("video")||e.start();var r=e.play();void 0!==r&&r&&r.catch((function(e){}))}else e.paused&&(n.removeClass(t,"xgplayer-nostart xgplayer-isloading"),setTimeout((function(){var t=e.play();void 0!==t&&t&&t.catch((function(e){}))}),10))}e.on("startBtnClick",r),e.once("destroy",(function t(){e.off("startBtnClick",r),e.off("destroy",t)}))}))},function(e,t,n){"use strict";var r,i=n(0);((r=i)&&r.__esModule?r:{default:r}).default.install("screenShot",(function(){var e=this,t=(e.root,e.config.screenShot);if(t){var n=.92;(t.quality||0===t.quality)&&(n=t.quality);var r=void 0===t.type?"image/png":t.type,i=void 0===t.format?".png":t.format,o=document.createElement("canvas"),a=o.getContext("2d"),s=new Image;o.width=this.config.width||600,o.height=this.config.height||337.5;var l=function(e,t){var n=document.createElement("a");n.href=e,n.download=t;var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)};e.on("screenShotBtnClick",u),e.once("destroy",(function t(){e.off("screenShotBtnClick",u),e.off("destroy",t)}))}function u(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];o.width=e.video.videoWidth||600,o.height=e.video.videoHeight||337.5,s.onload=function(){a.drawImage(e.video,0,0,o.width,o.height),s.setAttribute("crossOrigin","anonymous"),s.src=o.toDataURL(r,n).replace(r,"image/octet-stream");var u=s.src.replace(/^data:image\/[^;]+/,"data:application/octet-stream");e.emit("screenShot",u),t&&l(u,"截图"+i)}()}}))},function(e,t,n){"use strict";var r,i=n(0);((r=i)&&r.__esModule?r:{default:r}).default.install("rotate",(function(){var e=this,t=e.config.rotate;function n(){e.rotate(t.clockwise,t.innerRotate)}t&&(e.on("rotateBtnClick",n),e.once("destroy",(function t(){e.off("rotateBtnClick",n),e.off("destroy",t)})))}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("replay",(function(){var e=this,t=o.default.util,n=e.root;function r(){t.removeClass(n,"xgplayer-is-replay"),e.replay()}e.on("replayBtnClick",r),e.on("ended",(function(){e.config.loop||t.addClass(n,"xgplayer-is-replay")})),e.once("destroy",(function t(){e.off("replayBtnClick",r),e.off("destroy",t)}))}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("reload",(function(){var e=this;function t(){o.default.util.removeClass(e.root,"xgplayer-is-error"),e.src=e.config.url}e.config.reload&&(e.on("reloadBtnClick",t),e.once("destroy",(function n(){e.off("reloadBtnClick",t),e.off("destroy",n)})))}))},function(e,t,n){"use strict";var r,i=n(0);((r=i)&&r.__esModule?r:{default:r}).default.install("playNext",(function(){var e=this,t=e.config.playNext;function n(){e.currentVideoIndex+1<t.urlList.length&&(e.currentVideoIndex++,e.video.autoplay=!0,e.src=t.urlList[e.currentVideoIndex],e.emit("playerNext",e.currentVideoIndex+1),e.currentVideoIndex+1===t.urlList.length&&e.emit("urlListEnd"))}e.currentVideoIndex=-1,e.on("playNextBtnClick",n),e.once("destroy",(function t(){e.off("playNextBtnClick",n),e.off("destroy",t)}))}))},function(e,t,n){"use strict";var r,i=n(0);((r=i)&&r.__esModule?r:{default:r}).default.install("play",(function(){var e=this;function t(){if(e.config.allowPlayAfterEnded||!e.ended)if(e.paused){var t=e.play();void 0!==t&&t&&t.catch((function(e){}))}else e.pause()}e.on("playBtnClick",t),e.once("destroy",(function n(){e.off("playBtnClick",t),e.off("destroy",n)}))}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("pip",(function(){var e=this,t=o.default.util,n=e.root;function r(){t.hasClass(n,"xgplayer-pip-active")?e.exitPIP():e.getPIP()}e.on("pipBtnClick",r),e.once("destroy",(function t(){e.off("pipBtnClick",r),e.off("destroy",t)}))}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("pc",(function(){var e=this;if(e.controls&&e.video){var t=o.default.util,n=e.controls,r=e.root,i=0,a=void 0;e.onElementClick=function(e,n){this.config.closeVideoPreventDefault||e.preventDefault(),this.config.closeVideoStopPropagation||e.stopPropagation();var r=this;r.config.closeVideoClick||(i++,a&&clearTimeout(a),1===i?a=setTimeout((function(){if(t.hasClass(r.root,"xgplayer-nostart"))return!1;if(!r.ended)if(r.paused){var e=r.play();void 0!==e&&e&&e.catch((function(e){}))}else r.pause();i=0}),200):i=0)},e.video.addEventListener("click",(function(t){e.onElementClick(t,e.video)}),!1),e.onElementDblclick=function(e,t){if(e.preventDefault(),e.stopPropagation(),!this.config.closeVideoDblclick){var r=n.querySelector(".xgplayer-fullscreen");if(r){var i=void 0;document.createEvent?(i=document.createEvent("Event")).initEvent("click",!0,!0):i=new Event("click"),r.dispatchEvent(i)}}},e.video.addEventListener("dblclick",(function(t){e.onElementDblclick(t,e.video)}),!1),r.addEventListener("mouseenter",s),r.addEventListener("mouseleave",l),n.addEventListener("mouseenter",(function(t){e.userTimer&&clearTimeout(e.userTimer)}),!1),n.addEventListener("mouseleave",(function(t){e.config.closeControlsBlur||e.emit("focus",e)}),!1),e.once("ready",u),e.once("destroy",(function t(){r.removeEventListener("mouseenter",s),r.removeEventListener("mouseleave",l),e.off("ready",u),e.off("destroy",t)}))}function s(){clearTimeout(e.leavePlayerTimer),e.emit("focus",e)}function l(){e.config.closePlayerBlur||(e.leavePlayerTimer=setTimeout((function(){e.emit("blur",e)}),e.config.leavePlayerTime||0))}function u(t){e.config.autoplay&&e.start()}}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("mobile",(function(){var e=this,t=o.default.util,n=(e.controls,e.root);function r(t){e.video.addEventListener("touchend",(function(t){e.onElementTouchend(t,e.video)})),e.video.addEventListener("touchstart",(function(){e.isTouchMove=!1})),e.video.addEventListener("touchmove",(function(){e.isTouchMove=!0})),e.config.autoplay&&e.start()}e.onElementTouchend=function(e,r){if(this.config.closeVideoPreventDefault||e.preventDefault(),this.config.closeVideoStopPropagation||e.stopPropagation(),t.hasClass(n,"xgplayer-inactive")?this.emit("focus"):this.emit("blur"),!this.config.closeVideoTouch&&!this.isTouchMove){if(t.hasClass(this.root,"xgplayer-nostart"))return!1;if(!this.ended)if(this.paused){var i=this.play();void 0!==i&&i&&i.catch((function(e){}))}else this.pause()}},e.once("ready",r),e.once("destroy",(function t(){e.off("ready",r),e.off("destroy",t)}))}))},function(e,t,n){"use strict";var r,i=n(0);((r=i)&&r.__esModule?r:{default:r}).default.install("memoryPlay",(function(){var e=this;e.on("memoryPlayStart",(function(t){e.currentTime=t}))}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("localPreview",(function(){var e=this,t=e.root;function n(n){e.uploadFile=n.files[0];var r=URL.createObjectURL(e.uploadFile);if(o.default.util.hasClass(t,"xgplayer-nostart"))e.config.url=r,e.start();else{e.src=r;var i=e.play();void 0!==i&&i&&i.catch((function(e){}))}}e.on("upload",n),e.once("destroy",(function t(){e.off("upload",n),e.off("destroy",t)}))}))},function(e,t,n){"use strict";var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r},s=a.default.util,l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,this.state={playbackRate:0,isRepeat:!1,keyCode:0,repeat:0,isBody:!1},this.timer=null,this.initEvents()}return i(e,[{key:"initEvents",value:function(){var e=this,t=this.player,n=t.root,r=t.config;this.player.onBodyKeydown=this.onBodyKeydown.bind(this),this.player.onKeydown=this.onKeydown.bind(this),this.player.onKeyup=this.onKeyup.bind(this),r.keyShortcut&&"on"!==r.keyShortcut||(document.addEventListener("keydown",this.player.onBodyKeydown),n.addEventListener("keydown",this.player.onKeydown),s.on(this.player,"destroy",(function(){document.removeEventListener("keydown",e.player.onBodyKeydown),n.removeEventListener("keydown",e.player.onKeydown),clearTimeout(e.timer),e.timer=null})))}},{key:"checkTarget",value:function(e){var t=this.player;return e.target===t.root||e.target===t.video||e.target===t.controls}},{key:"onBodyKeydown",value:function(e){var t=e||window.event,n=t.keyCode;if(t.target===document.body&&(37===n||39===n||32===n))return t.preventDefault(),t.cancelBubble=!0,t.returnValue=!1,t.repeat||document.addEventListener("keyup",this.player.onKeyup),this.handler(t),!1}},{key:"onKeydown",value:function(e){var t=e||window.event,n=t.keyCode;if(this.checkTarget(t)&&(37===n||38===n||39===n||40===n||32===n))return t.preventDefault(),t.cancelBubble=!0,t.returnValue=!1,this.player.emit("focus"),t.repeat||this.player.root.addEventListener("keyup",this.player.onKeyup),this.handler(t),!1}},{key:"onKeyup",value:function(){var e=this.state,t=this.player;document.removeEventListener("keyup",this.player.onKeyup),t.root.removeEventListener("keyup",this.player.onKeyup),e.keyCode&&(0!==e.playbackRate&&(t.playbackRate=e.playbackRate),e.isRepeat||this.handlerKeyCode(e.keyCode,!1),e.playbackRate=0,e.isRepeat=!1,e.keyCode=0,e.repeat=0,this.changeVolumeSlide())}},{key:"handler",value:function(e){var t=this.state,n=this.player;t.keyCode=e.keyCode,t.isRepeat=e.repeat,e.repeat&&(t.repeat%2!=0||n.config.disableLongPress||this.handlerKeyCode(t.keyCode,!0),t.repeat++)}},{key:"handlerKeyCode",value:function(e,t){var n=this.player,r=this.state;switch(e){case 39:t?0===r.repeat&&this.changeRate():this.seek(!1,t);break;case 37:this.seek(!0,t);break;case 38:this.changeVolume(!0);break;case 40:this.changeVolume(!1);break;case 32:t||(n.paused?n.play():n.pause())}}},{key:"seek",value:function(e,t){var n=this.player;n.isLoading||n.isSeeking||t&&this.state.repeat%8>0||(e?n.currentTime-10>=0?n.currentTime-=10:n.currentTime=0:n.maxPlayedTime&&n.config.allowSeekPlayed&&n.currentTime+10>n.maxPlayedTime?n.currentTime=n.maxPlayedTime:n.currentTime+10<=n.duration?n.currentTime+=10:n.currentTime=n.duration-1)}},{key:"changeRate",value:function(){this.state.playbackRate=this.player.playbackRate,this.player.playbackRate=this.player.config.keyboardRate||5}},{key:"changeVolumeSlide",value:function(e){var t=this.player;t.controls&&(e?(t.emit("focus"),s.hasClass(t.root,"xgplayer-volume-active")||s.addClass(t.root,"xgplayer-volume-active")):(clearTimeout(this.timer),this.timer=setTimeout((function(){s.removeClass(t.root,"xgplayer-volume-active")}),1e3)))}},{key:"changeVolume",value:function(e){var t=this.player;this.changeVolumeSlide(!0);var n=t.volume;e&&n+.1<=1?t.volume=n+.1:!e&&n-.1>=0&&(t.volume=n-.1)}}]),e}();a.default.install("keyboard",(function(){this.keyboard=new l(this)}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("fullscreen",(function(){var e=this,t=e.root,n=o.default.util;function r(){e.config.rotateFullscreen?n.hasClass(t,"xgplayer-rotate-fullscreen")?e.exitRotateFullscreen():e.getRotateFullscreen():n.hasClass(t,"xgplayer-is-fullscreen")?e.exitFullscreen(t):e.getFullscreen(t)}function i(){var r=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;r&&r===t?(n.addClass(t,"xgplayer-is-fullscreen"),e.emit("requestFullscreen")):n.hasClass(t,"xgplayer-is-fullscreen")&&(n.removeClass(t,"xgplayer-is-fullscreen"),e.emit("exitFullscreen")),e.danmu&&"function"==typeof e.danmu.resize&&e.danmu.resize()}e.on("fullscreenBtnClick",r),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].forEach((function(e){document.addEventListener(e,i)})),e.video.addEventListener("webkitbeginfullscreen",(function(){n.addClass(t,"xgplayer-is-fullscreen"),e.emit("requestFullscreen")})),e.video.addEventListener("webkitendfullscreen",(function(){n.removeClass(t,"xgplayer-is-fullscreen"),e.emit("exitFullscreen")})),e.once("destroy",(function t(){e.off("fullscreenBtnClick",r),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].forEach((function(e){document.removeEventListener(e,i)})),e.off("destroy",t)}))}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a={maxCount:3,backupUrl:"",isFetch:!0,fetchTimeout:100};o.default.install("errorretry",(function(){var e=this,t=this;if(t.config.errorConfig&&!(t.src.indexOf("blob:")>-1)){var n={},r=t.config.errorConfig;for(var i in a)void 0===r[i]?n[i]=a[i]:n[i]=r[i];t.retryData={count:0,errfTimer:null,isFetchReturn:!1,currentTime:0};var s=t._onError;t._onError=function(r){var i=e.retryData.count;if(i>n.maxCount)n.isFetch?function(e,t,n){var r=function(t,n){e.retryData.isFetchReturn||(e.retryData.isFetchReturn=!0,t(n))};return new Promise((function(i,o){try{var a=new window.XMLHttpRequest;a.open("get",t),a.onload=function(){r(i,{status:a.status,statusText:a.statusText,xhr:a})},a.onerror=function(){r(i,{status:a.status,statusText:a.statusText||"The network environment is disconnected or the address is invalid",xhr:a})},a.onabort=function(){},e.retryData.errfTimer=window.setTimeout((function(){var t=e.retryData.errfTimer;window.clearTimeout(t),e.retryData.errfTimer=null,r(i,{status:-1,statusText:"request timeout"})}),n),a.send()}catch(t){e.retryData.isFetchReturn=!0,r(i,{status:-2,statusText:"request error"})}}))}(e,e.currentSrc,n.fetchTimeout).then((function(t){e.emit("error",new o.default.Errors({type:"network",currentTime:e.currentTime,duration:e.duration||0,networkState:e.networkState,readyState:e.readyState,currentSrc:e.currentSrc,src:e.src,ended:e.ended,httpCode:t.status,httpMsg:t.statusText,errd:{line:101,msg:e.error,handle:"plugin errorRetry"},errorCode:e.video&&e.video.error.code,mediaError:e.video&&e.video.error})),s.call(e,t)})):s.call(e,r);else{0===i&&(e.retryData.currentTime=e.currentTime,e.once("canplay",l.bind(e)));var a="";a=n.count<2?n.backupUrl?n.backupUrl:t.currentSrc:n.backupUrl&&i>1?n.backupUrl:t.currentSrc,e.retryData.count++,e.src=a}}}function l(){this.currentTime=this.retryData.currentTime,this.play(),this.retryData.retryCode=0,this.retryData.isFetchReturn=!1,this.retryData.currentTime=0}}))},function(e,t,n){"use strict";var r,i=n(0);((r=i)&&r.__esModule?r:{default:r}).default.install("download",(function(){var e=this;function t(){e.download()}e.on("downloadBtnClick",t),e.once("destroy",(function n(){e.off("downloadBtnClick",t),e.off("destroy",n)}))}))},function(e,t,n){"use strict";var r,i=n(0);((r=i)&&r.__esModule?r:{default:r}).default.install("definition",(function(){var e=this;e.root,e.once("destroy",(function t(){e.off("destroy",t)}))}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("danmu",(function(){var e=this,t=(e.root,o.default.util);e.on("initDefaultDanmu",(function(n){var r=e.root.querySelector("xg-danmu");if(t.addClass(r,"xgplayer-has-danmu"),!e.config.danmu.closeDefaultBtn){var i=function(){n.start()},o=function(){t.hasClass(e.danmuBtn,"danmu-switch-active")&&n.pause()},a=function(){t.hasClass(e.danmuBtn,"danmu-switch-active")&&n.play()},s=function(){t.hasClass(e.danmuBtn,"danmu-switch-active")&&(n.stop(),n.start())};e.danmuBtn=t.copyDom(n.bulletBtn.createSwitch(!0)),e.controls.appendChild(e.danmuBtn),["click","touchend"].forEach((function(o){e.danmuBtn.addEventListener(o,(function(o){o.preventDefault(),o.stopPropagation(),t.toggleClass(e.danmuBtn,"danmu-switch-active"),t.hasClass(e.danmuBtn,"danmu-switch-active")?(e.emit("danmuBtnOn"),t.addClass(r,"xgplayer-has-danmu"),e.once("timeupdate",i)):(e.emit("danmuBtnOff"),t.removeClass(r,"xgplayer-has-danmu"),n.stop())}))})),e.onElementClick&&r.addEventListener("click",(function(t){e.onElementClick(t,r)}),!1),e.onElementDblclick&&r.addEventListener("dblclick",(function(t){e.onElementDblclick(t,r)}),!1),e.on("pause",o),e.on("play",a),e.on("seeked",s),e.once("destroy",(function t(){e.off("timeupdate",i),e.off("pause",o),e.off("play",a),e.off("seeked",s),e.off("destroy",t)}))}}))}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("cssFullscreen",(function(){var e=this,t=e.root,n=o.default.util;function r(){n.hasClass(t,"xgplayer-is-cssfullscreen")?e.exitCssFullscreen():e.getCssFullscreen()}e.on("cssFullscreenBtnClick",r),e.on("exitFullscreen",(function(){n.removeClass(t,"xgplayer-is-cssfullscreen")})),e.once("destroy",(function t(){e.off("cssFullscreenBtnClick",r),e.off("destroy",t)}))}))},function(e,t,n){"use strict";var r,i=n(0);((r=i)&&r.__esModule?r:{default:r}).default.install("airplay",(function(){var e=this;function t(){e.video.webkitShowPlaybackTargetPicker()}e.config.airplay&&window.WebKitPlaybackTargetAvailabilityEvent&&(e.on("airplayBtnClick",t),e.once("destroy",(function n(){e.off("airplayBtnClick",t),e.off("destroy",n)})))}))},function(e,t,n){"use strict";n(62),n(67),n(68),n(69),n(72),n(75),n(76),n(77),n(80),n(83),n(87),n(88),n(90),n(91),n(92),n(94),n(95),n(96),n(98),n(102),n(103),n(105),n(107),n(109),n(110),n(111),n(112),n(113)},function(e,t,n){var r=n(63);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(65)(r,i),r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(64)(!1)).push([e.i,'.xgplayer-skin-default{background:#000;width:100%;height:100%;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;-ms-user-select:none}.xgplayer-skin-default *{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.xgplayer-skin-default.xgplayer-rotate-fullscreen{position:absolute;top:0;left:100%;bottom:0;right:0;height:100vw!important;width:100vh!important;-webkit-transform-origin:top left;-ms-transform-origin:top left;transform-origin:top left;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.xgplayer-skin-default.xgplayer-is-fullscreen{width:100%!important;height:100%!important;padding-top:0!important;z-index:9999}.xgplayer-skin-default.xgplayer-is-fullscreen.xgplayer-inactive{cursor:none}.xgplayer-skin-default video{width:100%;height:100%;outline:none}.xgplayer-skin-default .xgplayer-none{display:none}@-webkit-keyframes loadingRotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loadingRotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes loadingDashOffset{0%{stroke-dashoffset:236}to{stroke-dashoffset:0}}@keyframes loadingDashOffset{0%{stroke-dashoffset:236}to{stroke-dashoffset:0}}.xgplayer-skin-default .xgplayer-play,.xgplayer-skin-default .xgplayer-play-img{width:40px;position:relative;-webkit-order:0;-moz-box-ordinal-group:1;order:0;display:block;cursor:pointer;margin-left:3px}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon,.xgplayer-skin-default .xgplayer-play .xgplayer-icon{margin-top:3px;width:32px}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon div,.xgplayer-skin-default .xgplayer-play .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default .xgplayer-play .xgplayer-icon .xgplayer-icon-play{display:block}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon .xgplayer-icon-pause,.xgplayer-skin-default .xgplayer-play .xgplayer-icon .xgplayer-icon-pause{display:none}.xgplayer-skin-default .xgplayer-play-img .xgplayer-tips .xgplayer-tip-play,.xgplayer-skin-default .xgplayer-play .xgplayer-tips .xgplayer-tip-play{display:block}.xgplayer-skin-default .xgplayer-play-img .xgplayer-tips .xgplayer-tip-pause,.xgplayer-skin-default .xgplayer-play .xgplayer-tips .xgplayer-tip-pause{display:none}.xgplayer-skin-default .xgplayer-play-img:hover,.xgplayer-skin-default .xgplayer-play:hover{opacity:.85}.xgplayer-skin-default .xgplayer-play-img:hover .xgplayer-tips,.xgplayer-skin-default .xgplayer-play:hover .xgplayer-tips{display:block}.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-icon .xgplayer-icon-play{display:none}.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-icon .xgplayer-icon-pause,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-icon .xgplayer-icon-pause{display:block}.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-tips .xgplayer-tip-play,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-tips .xgplayer-tip-play{display:none}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-tips .xgplayer-tip-pause,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-tips .xgplayer-tip-pause{display:block}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-icon .xgplayer-icon-pause,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-icon .xgplayer-icon-pause{display:none}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-tips .xgplayer-tip-play,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-tips .xgplayer-tip-play{display:block}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-tips .xgplayer-tip-pause,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-tips .xgplayer-tip-pause{display:none}.xgplayer-skin-default .xgplayer-start{border-radius:50%;display:inline-block;width:70px;height:70px;background:rgba(0,0,0,.38);overflow:hidden;text-align:center;line-height:70px;vertical-align:middle;position:absolute;left:50%;top:50%;z-index:115;margin:-35px auto auto -35px;cursor:pointer}.xgplayer-skin-default .xgplayer-start div{position:absolute}.xgplayer-skin-default .xgplayer-start div svg{fill:hsla(0,0%,100%,.7)}.xgplayer-skin-default .xgplayer-start .xgplayer-icon-play{display:block}.xgplayer-skin-default .xgplayer-start .xgplayer-icon-pause{display:none}.xgplayer-skin-default .xgplayer-start:hover{opacity:.85}.xgplayer-skin-default.xgplayer-playing .xgplayer-start,.xgplayer-skin-default.xgplayer-playing .xgplayer-start .xgplayer-icon-play{display:none}.xgplayer-skin-default.xgplayer-playing .xgplayer-start .xgplayer-icon-pause{display:block}.xgplayer-skin-default.xgplayer-pause .xgplayer-start{display:inline-block}.xgplayer-skin-default.xgplayer-pause .xgplayer-start .xgplayer-icon-play{display:block}.xgplayer-skin-default.xgplayer-is-replay .xgplayer-start,.xgplayer-skin-default.xgplayer-pause .xgplayer-start .xgplayer-icon-pause{display:none}.xgplayer-skin-default.xgplayer-is-replay .xgplayer-start .xgplayer-icon-play{display:block}.xgplayer-skin-default.xgplayer-is-replay .xgplayer-start .xgplayer-icon-pause{display:none}.xgplayer-skin-default .xgplayer-enter{display:none;position:absolute;left:0;top:0;width:100%;height:100%;background:#000;z-index:120}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner{display:block;position:absolute;left:50%;top:50%;height:100px;width:100px;position:relative;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div{width:12%;height:26%;background-color:hsla(0,0%,100%,.7);position:absolute;left:44%;top:37%;opacity:0;border-radius:30px;-webkit-animation:fade 1s linear infinite;animation:fade 1s linear infinite}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar1{-webkit-transform:rotate(0deg) translateY(-142%);-ms-transform:rotate(0deg) translateY(-142%);transform:rotate(0deg) translateY(-142%);-webkit-animation-delay:0s;animation-delay:0s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar2{-webkit-transform:rotate(30deg) translateY(-142%);-ms-transform:rotate(30deg) translateY(-142%);transform:rotate(30deg) translateY(-142%);-webkit-animation-delay:-.9163s;animation-delay:-.9163s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar3{-webkit-transform:rotate(60deg) translateY(-142%);-ms-transform:rotate(60deg) translateY(-142%);transform:rotate(60deg) translateY(-142%);-webkit-animation-delay:-.833s;animation-delay:-.833s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar4{-webkit-transform:rotate(90deg) translateY(-142%);-ms-transform:rotate(90deg) translateY(-142%);transform:rotate(90deg) translateY(-142%);-webkit-animation-delay:-.7497s;animation-delay:-.7497s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar5{-webkit-transform:rotate(120deg) translateY(-142%);-ms-transform:rotate(120deg) translateY(-142%);transform:rotate(120deg) translateY(-142%);-webkit-animation-delay:-.6664s;animation-delay:-.6664s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar6{-webkit-transform:rotate(150deg) translateY(-142%);-ms-transform:rotate(150deg) translateY(-142%);transform:rotate(150deg) translateY(-142%);-webkit-animation-delay:-.5831s;animation-delay:-.5831s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar7{-webkit-transform:rotate(180deg) translateY(-142%);-ms-transform:rotate(180deg) translateY(-142%);transform:rotate(180deg) translateY(-142%);-webkit-animation-delay:-.4998s;animation-delay:-.4998s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar8{-webkit-transform:rotate(210deg) translateY(-142%);-ms-transform:rotate(210deg) translateY(-142%);transform:rotate(210deg) translateY(-142%);-webkit-animation-delay:-.4165s;animation-delay:-.4165s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar9{-webkit-transform:rotate(240deg) translateY(-142%);-ms-transform:rotate(240deg) translateY(-142%);transform:rotate(240deg) translateY(-142%);-webkit-animation-delay:-.3332s;animation-delay:-.3332s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar10{-webkit-transform:rotate(270deg) translateY(-142%);-ms-transform:rotate(270deg) translateY(-142%);transform:rotate(270deg) translateY(-142%);-webkit-animation-delay:-.2499s;animation-delay:-.2499s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar11{-webkit-transform:rotate(300deg) translateY(-142%);-ms-transform:rotate(300deg) translateY(-142%);transform:rotate(300deg) translateY(-142%);-webkit-animation-delay:-.1666s;animation-delay:-.1666s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar12{-webkit-transform:rotate(330deg) translateY(-142%);-ms-transform:rotate(330deg) translateY(-142%);transform:rotate(330deg) translateY(-142%);-webkit-animation-delay:-.0833s;animation-delay:-.0833s}@-webkit-keyframes fade{0%{opacity:1}to{opacity:.25}}@keyframes fade{0%{opacity:1}to{opacity:.25}}.xgplayer-skin-default.xgplayer-is-enter .xgplayer-enter{display:block}.xgplayer-skin-default .xgplayer-poster{display:none;position:absolute;left:0;top:0;width:100%;height:100%;z-index:100;background-size:cover;background-position:50%}.xgplayer-skin-default.xgplayer-nostart .xgplayer-poster{display:block}.xgplayer-skin-default .xgplayer-placeholder{-webkit-flex:1;-moz-box-flex:1;flex:1;-webkit-order:3;-moz-box-ordinal-group:4;order:3;display:block}.xgplayer-skin-default .xgplayer-fullscreen,.xgplayer-skin-default .xgplayer-fullscreen-img{position:relative;-webkit-order:13;-moz-box-ordinal-group:14;order:13;display:block;cursor:pointer;margin-left:5px;margin-right:3px}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon{margin-top:3px}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon div,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-requestfull{display:block}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-exitfull{display:none}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-tips,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-tips{position:absolute;right:0;left:auto}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-requestfull{display:block}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-exitfull{display:none}.xgplayer-skin-default .xgplayer-fullscreen-img:hover,.xgplayer-skin-default .xgplayer-fullscreen:hover{opacity:.85}.xgplayer-skin-default .xgplayer-fullscreen-img:hover .xgplayer-tips,.xgplayer-skin-default .xgplayer-fullscreen:hover .xgplayer-tips{display:block}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-requestfull{display:none}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-exitfull{display:block}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-requestfull{display:none}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-exitfull{display:block}.xgplayer-skin-default .xgplayer-cssfullscreen,.xgplayer-skin-default .xgplayer-cssfullscreen-img{position:relative;-webkit-order:12;-moz-box-ordinal-group:13;order:12;display:block;cursor:pointer}.xgplayer-skin-default .xgplayer-cssfullscreen-img .xgplayer-icon,.xgplayer-skin-default .xgplayer-cssfullscreen .xgplayer-icon{width:32px;margin-top:5px}.xgplayer-skin-default .xgplayer-cssfullscreen-img .xgplayer-icon div,.xgplayer-skin-default .xgplayer-cssfullscreen .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-cssfullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default .xgplayer-cssfullscreen .xgplayer-icon .xgplayer-icon-requestfull{display:block}.xgplayer-skin-default .xgplayer-cssfullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default .xgplayer-cssfullscreen .xgplayer-icon .xgplayer-icon-exitfull{display:none}.xgplayer-skin-default .xgplayer-cssfullscreen-img .xgplayer-tips,.xgplayer-skin-default .xgplayer-cssfullscreen .xgplayer-tips{margin-left:-40px}.xgplayer-skin-default .xgplayer-cssfullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default .xgplayer-cssfullscreen .xgplayer-tips .xgplayer-tip-requestfull{display:block}.xgplayer-skin-default .xgplayer-cssfullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default .xgplayer-cssfullscreen .xgplayer-tips .xgplayer-tip-exitfull{display:none}.xgplayer-skin-default .xgplayer-cssfullscreen-img:hover,.xgplayer-skin-default .xgplayer-cssfullscreen:hover{opacity:.85}.xgplayer-skin-default .xgplayer-cssfullscreen-img:hover .xgplayer-tips,.xgplayer-skin-default .xgplayer-cssfullscreen:hover .xgplayer-tips{display:block}.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen .xgplayer-icon .xgplayer-icon-requestfull{display:none}.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen .xgplayer-icon .xgplayer-icon-exitfull{display:block}.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen-img .xgplayer-tips,.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen .xgplayer-tips{margin-left:-47px}.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen .xgplayer-tips .xgplayer-tip-requestfull{display:none}.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen .xgplayer-tips .xgplayer-tip-exitfull{display:block}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-cssfullscreen,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-cssfullscreen-img{display:none}.xgplayer-skin-default.xgplayer-is-cssfullscreen{position:fixed!important;left:0!important;top:0!important;width:100%!important;height:100%!important;z-index:99999!important}.lang-is-en .xgplayer-cssfullscreen-img .xgplayer-tips,.lang-is-en .xgplayer-cssfullscreen .xgplayer-tips,.lang-is-en.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen-img .xgplayer-tips,.lang-is-en.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen .xgplayer-tips{margin-left:-46px}.lang-is-jp .xgplayer-cssfullscreen-img .xgplayer-tips,.lang-is-jp .xgplayer-cssfullscreen .xgplayer-tips{margin-left:-120px}.lang-is-jp.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen-img .xgplayer-tips,.lang-is-jp.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen .xgplayer-tips{margin-left:-60px}.xgplayer-skin-default .xgplayer-volume{outline:none;-webkit-order:4;-moz-box-ordinal-group:5;order:4;width:40px;height:40px;display:block;position:relative;z-index:18}.xgplayer-skin-default .xgplayer-volume .xgplayer-icon{margin-top:8px;cursor:pointer;position:absolute;bottom:-9px}.xgplayer-skin-default .xgplayer-volume .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-volume .xgplayer-icon .xgplayer-icon-large{display:block}.xgplayer-skin-default .xgplayer-volume .xgplayer-icon .xgplayer-icon-muted,.xgplayer-skin-default .xgplayer-volume .xgplayer-icon .xgplayer-icon-small{display:none}.xgplayer-skin-default .xgplayer-slider{display:none;position:absolute;width:28px;height:92px;background:rgba(0,0,0,.54);border-radius:1px;bottom:42px;outline:none}.xgplayer-skin-default .xgplayer-slider:after{content:" ";display:block;height:15px;width:28px;position:absolute;bottom:-15px;left:0;z-index:20}.xgplayer-skin-default .xgplayer-bar,.xgplayer-skin-default .xgplayer-drag{display:block;position:absolute;bottom:6px;left:12px;background:hsla(0,0%,100%,.3);border-radius:100px;width:4px;height:76px;outline:none;cursor:pointer}.xgplayer-skin-default .xgplayer-drag{bottom:0;left:0;background:#fa1f41;max-height:76px}.xgplayer-skin-default .xgplayer-drag:after{content:" ";display:inline-block;width:8px;height:8px;background:#fff;box-shadow:0 0 5px 0 rgba(0,0,0,.26);position:absolute;border-radius:50%;left:-2px;top:-6px}.xgplayer-skin-default.xgplayer-volume-active .xgplayer-slider,.xgplayer-skin-default.xgplayer-volume-large .xgplayer-volume .xgplayer-icon .xgplayer-icon-large{display:block}.xgplayer-skin-default.xgplayer-volume-large .xgplayer-volume .xgplayer-icon .xgplayer-icon-muted,.xgplayer-skin-default.xgplayer-volume-large .xgplayer-volume .xgplayer-icon .xgplayer-icon-small,.xgplayer-skin-default.xgplayer-volume-small .xgplayer-volume .xgplayer-icon .xgplayer-icon-large{display:none}.xgplayer-skin-default.xgplayer-volume-small .xgplayer-volume .xgplayer-icon .xgplayer-icon-small{display:block}.xgplayer-skin-default.xgplayer-volume-muted .xgplayer-volume .xgplayer-icon .xgplayer-icon-large,.xgplayer-skin-default.xgplayer-volume-muted .xgplayer-volume .xgplayer-icon .xgplayer-icon-small,.xgplayer-skin-default.xgplayer-volume-small .xgplayer-volume .xgplayer-icon .xgplayer-icon-muted{display:none}.xgplayer-skin-default.xgplayer-volume-muted .xgplayer-volume .xgplayer-icon .xgplayer-icon-muted{display:block}.xgplayer-skin-default.xgplayer-mobile .xgplayer-volume .xgplayer-slider{display:none}.xgplayer-skin-default .xgplayer-definition{-webkit-order:5;-moz-box-ordinal-group:6;order:5;width:60px;height:42px;z-index:18;position:relative;outline:none;display:none;cursor:default;margin-left:10px;margin-top:-7px}.xgplayer-skin-default .xgplayer-definition ul{display:none;list-style:none;width:78px;background:rgba(0,0,0,.54);border-radius:1px;position:absolute;bottom:42px;left:0;text-align:center;white-space:nowrap;margin-left:-10px;z-index:26;cursor:pointer}.xgplayer-skin-default .xgplayer-definition ul li{opacity:.7;font-family:PingFangSC-Regular;font-size:11px;color:hsla(0,0%,100%,.8);padding:6px 13px}.xgplayer-skin-default .xgplayer-definition ul li.selected,.xgplayer-skin-default .xgplayer-definition ul li:hover{color:#fff;opacity:1}.xgplayer-skin-default .xgplayer-definition .name{text-align:center;font-family:PingFangSC-Regular;font-size:13px;cursor:pointer;color:hsla(0,0%,100%,.8);position:absolute;bottom:5px;width:60px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.xgplayer-skin-default.xgplayer-definition-active .xgplayer-definition ul,.xgplayer-skin-default.xgplayer-is-definition .xgplayer-definition{display:block}.xgplayer-skin-default .xgplayer-time{-webkit-order:2;-moz-box-ordinal-group:3;order:2;font-family:ArialMT;font-size:13px;color:#fff;line-height:40px;height:40px;text-align:center;display:inline-block;margin:auto 8px}.xgplayer-skin-default .xgplayer-time span{color:hsla(0,0%,100%,.5)}.xgplayer-skin-default .xgplayer-time .xgplayer-time-current{color:#fff}.xgplayer-skin-default .xgplayer-time .xgplayer-time-current:after{content:"/";display:inline-block;padding:0 3px}.xgplayer-skin-default .xgplayer-controls{display:-webkit-flex;display:-moz-box;display:flex;position:absolute;bottom:0;left:0;right:0;height:40px;background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.37),rgba(0,0,0,.75),rgba(0,0,0,.75));z-index:10}.xgplayer-skin-default.no-controls .xgplayer-controls,.xgplayer-skin-default.xgplayer-inactive .xgplayer-controls,.xgplayer-skin-default.xgplayer-is-live .xgplayer-controls .xgplayer-progress,.xgplayer-skin-default.xgplayer-is-live .xgplayer-controls .xgplayer-time,.xgplayer-skin-default.xgplayer-nostart .xgplayer-controls{display:none}.xgplayer-skin-default.xgplayer-is-live .xgplayer-controls .xgplayer-live{display:block}.xgplayer-skin-default .xgplayer-live{display:block;font-size:12px;color:#fff;line-height:40px;-webkit-order:1;-moz-box-ordinal-group:2;order:1}.xgplayer-skin-default .xgplayer-loading{display:none;width:100px;height:100px;overflow:hidden;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7);position:absolute;left:50%;top:50%;margin:-50px auto auto -50px}.xgplayer-skin-default .xgplayer-loading svg{border-radius:50%;-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-animation:loadingRotate 1s linear infinite;animation:loadingRotate 1s linear infinite}.xgplayer-skin-default .xgplayer-loading svg path{stroke:#ddd;stroke-dasharray:236;-webkit-animation:loadingDashOffset 2s linear infinite;animation:loadingDashOffset 2s linear infinite;animation-direction:alternate-reverse;fill:none;stroke-width:12px}.xgplayer-skin-default.xgplayer-nostart .xgplayer-loading{display:none}.xgplayer-skin-default.xgplayer-pause .xgplayer-loading{display:none!important}.xgplayer-skin-default.xgplayer-isloading .xgplayer-loading{display:block}.xgplayer-skin-default .xgplayer-progress{display:block;position:absolute;height:20px;line-height:20px;left:12px;right:12px;outline:none;top:-15px;z-index:35}.xgplayer-skin-default .xgplayer-progress-outer{background:hsla(0,0%,100%,.3);display:block;height:3px;line-height:3px;margin-top:8.5px;width:100%;position:relative;cursor:pointer}.xgplayer-skin-default .xgplayer-progress-cache,.xgplayer-skin-default .xgplayer-progress-played{display:block;height:100%;line-height:1;position:absolute;left:0;top:0}.xgplayer-skin-default .xgplayer-progress-cache{width:0;background:hsla(0,0%,100%,.5)}.xgplayer-skin-default .xgplayer-progress-played{display:block;width:0;background-image:linear-gradient(-90deg,#fa1f41,#e31106);border-radius:0 1.5px 1.5px 0}.xgplayer-skin-default .xgplayer-progress-btn{display:none;position:absolute;left:0;top:-5px;width:13px;height:13px;border-radius:30px;background:#fff;box-shadow:0 0 2px 0 rgba(0,0,0,.26);left:100%;-webkit-transform:translate(-50%);-ms-transform:translate(-50%);transform:translate(-50%)}.xgplayer-skin-default .xgplayer-progress-point{position:absolute}.xgplayer-skin-default .xgplayer-progress-point.xgplayer-tips{margin-left:0;top:-25px;display:none;z-index:100}.xgplayer-skin-default .xgplayer-progress-dot{display:inline-block;position:absolute;height:3px;width:5px;top:0;background:#fff;border-radius:6px;z-index:16}.xgplayer-skin-default .xgplayer-progress-dot .xgplayer-progress-tip{position:absolute;left:0;top:-40px;height:auto;line-height:30px;width:auto;-webkit-transform:scale(.8);-ms-transform:scale(.8);transform:scale(.8);background:rgba(0,0,0,.3);border-radius:6px;border:1px solid rgba(0,0,0,.8);cursor:default;white-space:nowrap;display:none}.xgplayer-skin-default .xgplayer-progress-dot-show .xgplayer-progress-tip{display:block}.xgplayer-skin-default .xgplayer-progress-thumbnail{position:absolute;-moz-box-sizing:border-box;box-sizing:border-box}.xgplayer-skin-default .xgplayer-progress-thumbnail.xgplayer-tips{margin-left:0;display:none;z-index:99}.xgplayer-skin-default .xgplayer-progress:focus .xgplayer-progress-outer,.xgplayer-skin-default .xgplayer-progress:hover .xgplayer-progress-outer{height:6px;margin-top:7px}.xgplayer-skin-default .xgplayer-progress:focus .xgplayer-progress-dot,.xgplayer-skin-default .xgplayer-progress:hover .xgplayer-progress-dot{height:6px}.xgplayer-skin-default .xgplayer-progress:focus .xgplayer-progress-btn,.xgplayer-skin-default .xgplayer-progress:hover .xgplayer-progress-btn{display:block;top:-3px}.xgplayer-skin-default.xgplayer-definition-active .xgplayer-progress,.xgplayer-skin-default.xgplayer-playbackrate-active .xgplayer-progress,.xgplayer-skin-default.xgplayer-texttrack-active .xgplayer-progress,.xgplayer-skin-default.xgplayer-volume-active .xgplayer-progress{z-index:15}.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress-btn{display:block!important}.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:focus .xgplayer-progress-outer,.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:hover .xgplayer-progress-outer{height:3px!important;margin-top:8.5px!important}.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:focus .xgplayer-progress-btn,.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:hover .xgplayer-progress-btn{display:block!important;top:-5px!important}.xgplayer-skin-default .xgplayer-replay{position:absolute;left:0;top:0;width:100%;height:100%;z-index:105;display:none;-webkit-justify-content:center;-moz-box-pack:center;justify-content:center;-webkit-align-items:center;-moz-box-align:center;align-items:center;background:rgba(0,0,0,.54);-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;flex-direction:column}.xgplayer-skin-default .xgplayer-replay svg{background:rgba(0,0,0,.58);border-radius:100%;cursor:pointer}.xgplayer-skin-default .xgplayer-replay svg path{-webkit-transform:translate(20px,21px);-ms-transform:translate(20px,21px);transform:translate(20px,21px);fill:#ddd}.xgplayer-skin-default .xgplayer-replay svg:hover{background:rgba(0,0,0,.38)}.xgplayer-skin-default .xgplayer-replay svg:hover path{fill:#fff}.xgplayer-skin-default .xgplayer-replay .xgplayer-replay-txt{display:inline-block;font-family:PingFangSC-Regular;font-size:14px;color:#fff;line-height:34px}.xgplayer-skin-default.xgplayer.xgplayer-ended .xgplayer-controls{display:none}.xgplayer-skin-default.xgplayer.xgplayer-ended .xgplayer-replay{display:-webkit-flex;display:-moz-box;display:flex}.xgplayer-skin-default .xgplayer-playbackrate{-webkit-order:8;-moz-box-ordinal-group:9;order:8;width:60px;height:20px;z-index:18;position:relative;display:inline-block;cursor:default}.xgplayer-skin-default .xgplayer-playbackrate ul{display:none;list-style:none;width:78px;background:rgba(0,0,0,.54);border-radius:1px;position:absolute;bottom:20px;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);text-align:left;white-space:nowrap;z-index:26;cursor:pointer}.xgplayer-skin-default .xgplayer-playbackrate ul li{opacity:.7;font-family:PingFangSC-Regular;font-size:11px;color:hsla(0,0%,100%,.8);position:relative;padding:4px 0;text-align:center}.xgplayer-skin-default .xgplayer-playbackrate ul li.selected,.xgplayer-skin-default .xgplayer-playbackrate ul li:hover{color:#fff;opacity:1}.xgplayer-skin-default .xgplayer-playbackrate ul li:first-child{position:relative;margin-top:12px}.xgplayer-skin-default .xgplayer-playbackrate ul li:last-child{position:relative;margin-bottom:12px}.xgplayer-skin-default .xgplayer-playbackrate .name{height:20px;position:relative;top:11px;text-align:center;background:rgba(0,0,0,.38);color:hsla(0,0%,100%,.8);border-radius:10px;line-height:20px}.xgplayer-skin-default .xgplayer-playbackrate span{position:relative;top:19px;font-weight:700;text-shadow:0 0 4px rgba(0,0,0,.6)}.xgplayer-skin-default .xgplayer-playbackrate:hover{opacity:1}.xgplayer-skin-default.xgplayer-playbackrate-active .xgplayer-playbackrate ul{display:block}.xgplayer-skin-default .xgplayer-download{position:relative;-webkit-order:9;-moz-box-ordinal-group:10;order:9;display:block;cursor:pointer}.xgplayer-skin-default .xgplayer-download .xgplayer-icon{margin-top:3px}.xgplayer-skin-default .xgplayer-download .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-download .xgplayer-icon svg{position:relative;top:5px;left:5px}.xgplayer-skin-default .xgplayer-download .xgplayer-tips{margin-left:-20px}.xgplayer-skin-default .xgplayer-download .xgplayer-tips .xgplayer-tip-download{display:block}.xgplayer-skin-default .xgplayer-download:hover{opacity:.85}.xgplayer-skin-default .xgplayer-download:hover .xgplayer-tips{display:block}.lang-is-en .xgplayer-download .xgplayer-tips{margin-left:-32px}.lang-is-jp .xgplayer-download .xgplayer-tips{margin-left:-40px}.xgplayer-skin-default .danmu-switch{-webkit-order:6;-moz-box-ordinal-group:7;order:6;z-index:26}.xgplayer-skin-default .xgplayer-danmu{display:none;position:absolute;top:0;left:0;right:0;height:100%;overflow:hidden;z-index:9;outline:none}.xgplayer-skin-default .xgplayer-danmu>*{position:absolute;white-space:nowrap;z-index:9}.xgplayer-skin-default .xgplayer-danmu.xgplayer-has-danmu{display:block}.xgplayer-skin-default .xgplayer-panel{outline:none;-webkit-order:7;-moz-box-ordinal-group:8;order:7;width:40px;height:40px;display:inline-block;position:relative;font-family:PingFangSC-Regular;font-size:13px;color:hsla(0,0%,100%,.8);z-index:36}.xgplayer-skin-default .xgplayer-panel .xgplayer-panel-icon{cursor:pointer;position:absolute;margin-left:5px;top:10px}.xgplayer-skin-default .xgplayer-panel-active{display:block!important;bottom:30px}.xgplayer-skin-default .xgplayer-panel-slider{z-index:36;display:none;position:absolute;width:230px;height:230px;background:rgba(0,0,0,.54);border-radius:1px;padding:10px 20px;outline:none;left:-115px;bottom:40px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-hidemode{padding-bottom:10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-hidemode-radio li{display:inline;list-style:none;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-hidemode ul{display:-webkit-flex;display:-moz-box;display:flex;-webkit-justify-content:space-around;justify-content:space-around}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-hidemode li{margin:0 12px;font-size:11px;color:#aaa}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-hidemode-font{margin-bottom:10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency{display:block;margin-top:10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-line{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;outline:none;width:150px;height:4px;background:#aaa;border-radius:4px;border-style:none;margin-left:10px;margin-top:-2px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-line::-moz-focus-outer{border:0!important}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-color::-webkit-slider-runnable-track{outline:none;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-color::-moz-range-track{outline:none;background-color:#aaa;border-color:transparent;cursor:pointer;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-color::-ms-track{outline:none;background-color:#aaa;color:transparent;border-color:transparent;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-bar::-webkit-slider-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;margin-top:-4px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-bar::-moz-range-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:0;width:0;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-bar::-ms-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-bar::-moz-range-progress{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:4px;border-radius:4px;background:linear-gradient(90deg,#f85959,#f85959 100%,#aaa)}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea{display:block;margin-top:8px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-name{display:inline-block;position:relative;top:-10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-control{display:inline-block}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-control-up{width:150px;margin-left:10px;display:-moz-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-between;-moz-box-pack:justify;justify-content:space-between;color:#aaa}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-control-down{position:relative;top:-10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-control-down-dots{display:-webkit-flex;display:-moz-box;display:flex;width:150px;margin-left:10px;-webkit-justify-content:space-between;-moz-box-pack:justify;justify-content:space-between}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-threequarters,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-twoquarters{margin-left:-6px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-full{margin-right:3px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-line{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;outline:none;width:150px;height:4px;background:#aaa;border-radius:4px;border-style:none;margin-left:10px;margin-top:-2px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-line::-moz-focus-outer{border:0!important}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-color::-webkit-slider-runnable-track{outline:none;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-color::-moz-range-track{outline:none;background-color:#aaa;border-color:transparent;cursor:pointer;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-color::-ms-track{outline:none;background-color:#aaa;color:transparent;border-color:transparent;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-bar::-webkit-slider-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;margin-top:-4px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-bar::-moz-range-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:0;width:0;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-bar::-ms-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-full-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-onequarters-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-threequarters-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-twoquarters-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-zero-dot{width:3px;height:3px;border:3px solid #aaa;border-radius:50%;background-color:#aaa;position:relative;top:16px;z-index:-1}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed{display:block}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed-name{display:inline-block;position:relative;top:-10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed-control{display:inline-block}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed-control-up{width:150px;margin-left:10px;display:-moz-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-between;-moz-box-pack:justify;justify-content:space-between;color:#aaa}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed-control-down{position:relative;top:-10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed-control-down-dots{display:-webkit-flex;display:-moz-box;display:flex;width:150px;margin-left:10px;-webkit-justify-content:space-between;-moz-box-pack:justify;justify-content:space-between}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-line{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;outline:none;width:150px;height:4px;background:#aaa;border-radius:4px;border-style:none;margin-left:10px;margin-top:-2px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-line::-moz-focus-outer{border:0!important}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-color::-webkit-slider-runnable-track{outline:none;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-color::-moz-range-track{outline:none;background-color:#aaa;border-color:transparent;cursor:pointer;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-color::-ms-track{outline:none;background-color:#aaa;color:transparent;border-color:transparent;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-bar::-webkit-slider-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;margin-top:-4px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-bar::-moz-range-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:0;width:0;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-bar::-ms-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-large-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-middle-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-small-dot{width:3px;height:3px;border:3px solid #aaa;border-radius:50%;background-color:#aaa;position:relative;top:16px;z-index:-1}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont{display:block}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont-name{display:inline-block;position:relative;top:-10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont-control{display:inline-block}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont-control-up{width:150px;margin-left:10px;display:-moz-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-between;-moz-box-pack:justify;justify-content:space-between;color:#aaa}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont-control-down{position:relative;top:-10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont-control-down-dots{display:-webkit-flex;display:-moz-box;display:flex;width:150px;margin-left:10px;-webkit-justify-content:space-between;-moz-box-pack:justify;justify-content:space-between}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-line{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;outline:none;width:150px;height:4px;background:#aaa;border-radius:4px;border-style:none;margin-left:10px;margin-top:-2px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-line::-moz-focus-outer{border:0!important}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-color::-webkit-slider-runnable-track{outline:none;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-color::-moz-range-track{outline:none;background-color:#aaa;border-color:transparent;cursor:pointer;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-color::-ms-track{outline:none;background-color:#aaa;color:transparent;border-color:transparent;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-bar::-webkit-slider-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;margin-top:-4px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-bar::-moz-range-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:0;width:0;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-bar::-ms-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-large-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-middle-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-small-dot{width:3px;height:3px;border:3px solid #aaa;border-radius:50%;background-color:#aaa;position:relative;top:16px;z-index:-1}.xgplayer-skin-default .xgplayer-playnext{position:relative;-webkit-order:1;-moz-box-ordinal-group:2;order:1;display:block;cursor:pointer;top:-2px}.xgplayer-skin-default .xgplayer-playnext .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-playnext .xgplayer-tips .xgplayer-tip-playnext{display:block}.xgplayer-skin-default .xgplayer-playnext:hover{opacity:.85}.xgplayer-skin-default .xgplayer-playnext:hover .xgplayer-tips{display:block}.lang-is-en .xgplayer-playnext .xgplayer-tips{margin-left:-25px}.lang-is-jp .xgplayer-playnext .xgplayer-tips{margin-left:-38px}.xgplayer-skin-default.xgplayer-playnext-inactive .xgplayer-playnext{display:none}.xgplayer-skin-default .xgplayer-pip{-webkit-order:9;-moz-box-ordinal-group:10;order:9;position:relative;outline:none;display:block;cursor:pointer;height:20px;top:8px}.xgplayer-skin-default .xgplayer-pip .name{text-align:center;font-family:PingFangSC-Regular;font-size:13px;line-height:20px;height:20px;color:hsla(0,0%,100%,.8)}.xgplayer-skin-default .xgplayer-pip .name span{width:60px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.xgplayer-skin-default .xgplayer-pip-lay{position:absolute;top:26px;left:0;width:100%;height:100%;z-index:130;cursor:pointer;background-color:transparent;display:none}.xgplayer-skin-default .xgplayer-pip-lay div{width:100%;height:100%}.xgplayer-skin-default .xgplayer-pip-drag{cursor:move;position:absolute;top:0;left:0;width:100%;height:26px;line-height:26px;background-image:linear-gradient(rgba(0,0,0,.3),transparent);z-index:130;display:none}.xgplayer-skin-default.xgplayer-pip-active{position:fixed;right:0;bottom:200px;width:320px!important;height:180px!important;z-index:110!important}.xgplayer-skin-default.xgplayer-pip-active .xgplayer-controls,.xgplayer-skin-default.xgplayer-pip-active .xgplayer-danmu{display:none}.xgplayer-skin-default.xgplayer-pip-active .xgplayer-pip-lay{display:block}.xgplayer-skin-default.xgplayer-pip-active .xgplayer-pip-drag{display:-webkit-flex;display:-moz-box;display:flex}.xgplayer-skin-default.xgplayer-inactive .xgplayer-pip-drag{display:none}.lang-is-jp .xgplayer-pip .name span{width:70px;height:20px}.xgplayer-skin-default .xgplayer-rotate{position:relative;-webkit-order:10;-moz-box-ordinal-group:11;order:10;display:block;cursor:pointer}.xgplayer-skin-default .xgplayer-rotate .xgplayer-icon{margin-top:7px;width:26px}.xgplayer-skin-default .xgplayer-rotate .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-rotate .xgplayer-tips{margin-left:-22px}.xgplayer-skin-default .xgplayer-rotate .xgplayer-tips .xgplayer-tip-rotate{display:block}.xgplayer-skin-default .xgplayer-rotate:hover{opacity:.85}.xgplayer-skin-default .xgplayer-rotate:hover .xgplayer-tips{display:block}.lang-is-en .xgplayer-rotate .xgplayer-tips{margin-left:-26px}.lang-is-jp .xgplayer-rotate .xgplayer-tips{margin-left:-38px}.xgplayer-skin-default .xgplayer-reload{position:relative;-webkit-order:1;-moz-box-ordinal-group:2;order:1;display:block;width:40px;height:40px;cursor:pointer}.xgplayer-skin-default .xgplayer-reload .xgplayer-icon{margin-top:7px;width:26px}.xgplayer-skin-default .xgplayer-reload .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-reload .xgplayer-tips{margin-left:-22px}.xgplayer-skin-default .xgplayer-reload .xgplayer-tips .xgplayer-tip-reload{display:block}.xgplayer-skin-default .xgplayer-reload:hover{opacity:.85}.xgplayer-skin-default .xgplayer-reload:hover .xgplayer-tips{display:block}.lang-is-en .xgplayer-reload .xgplayer-tips{margin-left:-26px}.lang-is-jp .xgplayer-reload .xgplayer-tips{margin-left:-38px}.xgplayer-skin-default .xgplayer-screenshot{-webkit-order:11;-moz-box-ordinal-group:12;order:11;position:relative;outline:none;display:block;cursor:pointer;height:20px;top:8px}.xgplayer-skin-default .xgplayer-screenshot .name{text-align:center;font-family:PingFangSC-Regular;font-size:13px;line-height:20px;height:20px;color:hsla(0,0%,100%,.8)}.xgplayer-skin-default .xgplayer-screenshot .name span{width:60px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.lang-is-en .xgplayer-screenshot .name span,.lang-is-jp .xgplayer-screenshot .name span{width:75px;height:20px}.xgplayer-skin-default .xgplayer-texttrack{-webkit-order:7;-moz-box-ordinal-group:8;order:7;width:60px;height:150px;z-index:18;position:relative;outline:none;display:none;cursor:default;margin-top:-119px}.xgplayer-skin-default .xgplayer-texttrack ul{display:none;list-style:none;min-width:78px;background:rgba(0,0,0,.54);border-radius:1px;position:absolute;bottom:30px;text-align:center;white-space:nowrap;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;z-index:26;cursor:pointer}.xgplayer-skin-default .xgplayer-texttrack ul li{opacity:.7;font-family:PingFangSC-Regular;font-size:11px;color:hsla(0,0%,100%,.8);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:auto;padding:6px 13px}.xgplayer-skin-default .xgplayer-texttrack ul li.selected,.xgplayer-skin-default .xgplayer-texttrack ul li:hover{color:#fff;opacity:1}.xgplayer-skin-default .xgplayer-texttrack .name{text-align:center;font-family:PingFangSC-Regular;font-size:13px;cursor:pointer;color:hsla(0,0%,100%,.8);position:absolute;bottom:0;width:60px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.xgplayer-skin-default.xgplayer-is-texttrack .xgplayer-texttrack,.xgplayer-skin-default.xgplayer-texttrack-active .xgplayer-texttrack ul{display:block}.xgplayer-skin-default .xgplayer-icon{display:block;width:40px;height:40px;overflow:hidden;fill:#fff}.xgplayer-skin-default .xgplayer-icon svg{position:absolute}.xgplayer-skin-default .xgplayer-tips{background:rgba(0,0,0,.54);border-radius:1px;display:none;position:absolute;font-family:PingFangSC-Regular;font-size:11px;color:#fff;padding:2px 4px;text-align:center;top:-30px;left:50%;margin-left:-16px;width:auto;white-space:nowrap}.xgplayer-skin-default.xgplayer-mobile .xgplayer-tips{display:none!important}.xgplayer-skin-default .xgplayer-error{background:#000;display:none;position:absolute;left:0;top:0;width:100%;height:100%;z-index:125;font-family:PingFangSC-Regular;font-size:14px;color:#fff;text-align:center;line-height:100%;-webkit-justify-content:center;-moz-box-pack:center;justify-content:center;-webkit-align-items:center;-moz-box-align:center;align-items:center}.xgplayer-skin-default .xgplayer-error .xgplayer-error-refresh{color:#fa1f41;padding:0 3px;cursor:pointer}.xgplayer-skin-default .xgplayer-error .xgplayer-error-text{line-height:18px;margin:auto 6px}.xgplayer-skin-default.xgplayer-is-error .xgplayer-error{display:-webkit-flex;display:-moz-box;display:flex}.xgplayer-skin-default .xgplayer-memoryplay-spot{position:absolute;height:32px;left:10px;bottom:46px;background:rgba(0,0,0,.5);border-radius:32px;line-height:32px;color:#ddd;z-index:15;padding:0 32px 0 16px}.xgplayer-skin-default .xgplayer-memoryplay-spot .xgplayer-lasttime{color:red;font-weight:700}.xgplayer-skin-default .xgplayer-memoryplay-spot .btn-close{position:absolute;width:16px;height:16px;right:10px;top:2px;cursor:pointer;color:#fff;font-size:16px}.xgplayer-skin-default .xgplayer-airplay{position:relative;-webkit-order:11;-moz-box-ordinal-group:12;order:11;display:block;cursor:pointer;margin-left:5px;margin-right:3px}.xgplayer-skin-default .xgplayer-airplay .xgplayer-icon{margin-top:6px;margin-left:6px}.xgplayer-skin-default .xgplayer-airplay .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-airplay .xgplayer-icon .xgplayer-icon-airplay{display:block}.xgplayer-skin-default .xgplayer-airplay .xgplayer-tips{position:absolute;right:0;left:auto}.xgplayer-skin-default .xgplayer-airplay .xgplayer-tips .xgplayer-tip-airplay{display:block}.xgplayer-skin-default .xgplayer-airplay:hover{opacity:.85}.xgplayer-skin-default .xgplayer-airplay:hover .xgplayer-tips{display:block}',""])},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r=e[1]||"",i=e[3];if(!i)return r;if(t&&"function"==typeof btoa){var o=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),a=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}));return[r].concat(a).concat([o]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r,i,o={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),s=function(e){return document.querySelector(e)},l=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=s.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),u=null,c=0,d=[],f=n(66);function h(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=o[r.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](r.parts[a]);for(;a<r.parts.length;a++)i.parts.push(b(r.parts[a],t))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(b(r.parts[a],t));o[r.id]={id:r.id,refs:1,parts:s}}}}function p(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function g(e,t){var n=l(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=d[d.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),d.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=l(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,i)}}function v(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=d.indexOf(e);t>=0&&d.splice(t,1)}function y(e){var t=document.createElement("style");return e.attrs.type="text/css",m(t,e.attrs),g(e,t),t}function m(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function b(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var a=c++;n=u||(u=y(t)),r=w.bind(null,n,a,!1),i=w.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",m(t,e.attrs),g(e,t),t}(t),r=k.bind(null,n,t),i=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(t),r=S.bind(null,n),i=function(){v(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return h(n,t),function(e){for(var r=[],i=0;i<n.length;i++){var a=n[i];(s=o[a.id]).refs--,r.push(s)}for(e&&h(p(e,t),t),i=0;i<r.length;i++){var s;if(0===(s=r[i]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete o[s.id]}}}};var x,_=(x=[],function(e,t){return x[e]=t,x.filter(Boolean).join("\n")});function w(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function S(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function k(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=f(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}},function(e,t,n){"use strict";e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},function(e,t,n){"use strict";var r,i=n(0);((r=i)&&r.__esModule?r:{default:r}).default.install("s_i18n",(function(){var e=this,t={},n=e.constructor.util;t.en={HAVE_NOTHING:"There is no information on whether audio/video is ready",HAVE_METADATA:"Audio/video metadata is ready ",HAVE_CURRENT_DATA:"Data about the current play location is available, but there is not enough data to play the next frame/millisecond",HAVE_FUTURE_DATA:"Current and at least one frame of data is available",HAVE_ENOUGH_DATA:"The available data is sufficient to start playing",NETWORK_EMPTY:"Audio/video has not been initialized",NETWORK_IDLE:"Audio/video is active and has been selected for resources, but no network is used",NETWORK_LOADING:"The browser is downloading the data",NETWORK_NO_SOURCE:"No audio/video source was found",MEDIA_ERR_ABORTED:"The fetch process is aborted by the user",MEDIA_ERR_NETWORK:"An error occurred while downloading",MEDIA_ERR_DECODE:"An error occurred while decoding",MEDIA_ERR_SRC_NOT_SUPPORTED:"Audio/video is not supported",REPLAY:"Replay",ERROR:"Network is offline",PLAY_TIPS:"Play",PAUSE_TIPS:"Pause",PLAYNEXT_TIPS:"Play next",DOWNLOAD_TIPS:"Download",ROTATE_TIPS:"Rotate",RELOAD_TIPS:"Reload",FULLSCREEN_TIPS:"Fullscreen",EXITFULLSCREEN_TIPS:"Exit fullscreen",CSSFULLSCREEN_TIPS:"Cssfullscreen",EXITCSSFULLSCREEN_TIPS:"Exit cssfullscreen",TEXTTRACK:"Caption",PIP:"Pip",SCREENSHOT:"Screenshot",LIVE:"LIVE",OFF:"Off",PIP_DRAG:"Click and hold to drag",AIRPLAY_TIPS:"Airplay"},t["zh-cn"]={HAVE_NOTHING:"没有关于音频/视频是否就绪的信息",HAVE_METADATA:"音频/视频的元数据已就绪",HAVE_CURRENT_DATA:"关于当前播放位置的数据是可用的,但没有足够的数据来播放下一帧/毫秒",HAVE_FUTURE_DATA:"当前及至少下一帧的数据是可用的",HAVE_ENOUGH_DATA:"可用数据足以开始播放",NETWORK_EMPTY:"音频/视频尚未初始化",NETWORK_IDLE:"音频/视频是活动的且已选取资源,但并未使用网络",NETWORK_LOADING:"浏览器正在下载数据",NETWORK_NO_SOURCE:"未找到音频/视频来源",MEDIA_ERR_ABORTED:"取回过程被用户中止",MEDIA_ERR_NETWORK:"当下载时发生错误",MEDIA_ERR_DECODE:"当解码时发生错误",MEDIA_ERR_SRC_NOT_SUPPORTED:"不支持的音频/视频格式",REPLAY:"重播",ERROR:"网络连接似乎出现了问题",PLAY_TIPS:"播放",PAUSE_TIPS:"暂停",PLAYNEXT_TIPS:"下一集",DOWNLOAD_TIPS:"下载",ROTATE_TIPS:"旋转",RELOAD_TIPS:"重新载入",FULLSCREEN_TIPS:"进入全屏",EXITFULLSCREEN_TIPS:"退出全屏",CSSFULLSCREEN_TIPS:"进入样式全屏",EXITCSSFULLSCREEN_TIPS:"退出样式全屏",TEXTTRACK:"字幕",PIP:"画中画",SCREENSHOT:"截图",LIVE:"正在直播",OFF:"关闭",PIP_DRAG:"点击按住可拖动视频",AIRPLAY_TIPS:"隔空播放"},t["zh-hk"]={HAVE_NOTHING:"沒有關於音頻/視頻是否就緒的信息",HAVE_METADATA:"音頻/視頻的元數據已就緒",HAVE_CURRENT_DATA:"關於當前播放位置的數據是可用的,但沒有足夠的數據來播放下壹幀/毫秒",HAVE_FUTURE_DATA:"當前及至少下壹幀的數據是可用的",HAVE_ENOUGH_DATA:"可用數據足以開始播放",NETWORK_EMPTY:"音頻/視頻尚未初始化",NETWORK_IDLE:"音頻/視頻是活動的且已選取資源,但並未使用網絡",NETWORK_LOADING:"瀏覽器正在下載數據",NETWORK_NO_SOURCE:"未找到音頻/視頻來源",MEDIA_ERR_ABORTED:"取回過程被用戶中止",MEDIA_ERR_NETWORK:"當下載時發生錯誤",MEDIA_ERR_DECODE:"當解碼時發生錯誤",MEDIA_ERR_SRC_NOT_SUPPORTED:"不支持的音頻/視頻格式",REPLAY:"重播",ERROR:"網絡連接似乎出現了問題",PLAY_TIPS:"播放",PAUSE_TIPS:"暫停",PLAYNEXT_TIPS:"下壹集",DOWNLOAD_TIPS:"下載",ROTATE_TIPS:"旋轉",RELOAD_TIPS:"重新載入",FULLSCREEN_TIPS:"進入全屏",EXITFULLSCREEN_TIPS:"退出全屏",CSSFULLSCREEN_TIPS:"進入樣式全屏",EXITCSSFULLSCREEN_TIPS:"退出樣式全屏",TEXTTRACK:"字幕",PIP:"畫中畫",SCREENSHOT:"截圖",LIVE:"正在直播",OFF:"關閉",PIP_DRAG:"點擊按住可拖動視頻",AIRPLAY_TIPS:"隔空播放"},t.jp={HAVE_NOTHING:"オーディオ/ビデオが準備できているか情報がありません",HAVE_METADATA:"オーディオ/ビデオのメタデータは準備できています",HAVE_CURRENT_DATA:"現在の再生位置に関するデータは利用可能ですが、次のフレーム/ミリ秒を再生するのに十分なデータがありません",HAVE_FUTURE_DATA:"現在、少なくとも次のフレームのデータが利用可能です",HAVE_ENOUGH_DATA:"利用可能なデータは再生を開始するのに十分です",NETWORK_EMPTY:"オーディオ/ビデオが初期化されていません",NETWORK_IDLE:"オーディオ/ビデオはアクティブでリソースが選択されていますが、ネットワークが使用されていません",NETWORK_LOADING:"ブラウザーはデータをダウンロードしています",NETWORK_NO_SOURCE:"オーディオ/ビデオ のソースが見つかりません",MEDIA_ERR_ABORTED:"ユーザーによってフェッチプロセスが中止されました",MEDIA_ERR_NETWORK:"ダウンロード中にエラーが発生しました",MEDIA_ERR_DECODE:"デコード中にエラーが発生しました",MEDIA_ERR_SRC_NOT_SUPPORTED:"オーディオ/ビデオ の形式がサポートされていません",REPLAY:"リプレイ",ERROR:"ネットワークの接続に問題が発生しました",PLAY_TIPS:"プレイ",PAUSE_TIPS:"一時停止",PLAYNEXT_TIPS:"次をプレイ",DOWNLOAD_TIPS:"ダウンロード",ROTATE_TIPS:"回転",RELOAD_TIPS:"再読み込み",FULLSCREEN_TIPS:"フルスクリーン",EXITFULLSCREEN_TIPS:"フルスクリーンを終了",CSSFULLSCREEN_TIPS:"シアターモード",EXITCSSFULLSCREEN_TIPS:"シアターモードを終了",TEXTTRACK:"字幕",PIP:"ミニプレーヤー",SCREENSHOT:"スクリーンショット",LIVE:"生放送",OFF:"オフ",PIP_DRAG:"ボタンを押して働画をドラッグする",AIRPLAY_TIPS:"隔空放送"},Object.defineProperty(e,"lang",{get:function(){return e.config&&t[e.config.lang]||t.en},set:function(e){"Object"===n.typeOf(e)&&Object.keys(e).forEach((function(n){t[n]=e[n]}))}})}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("s_enter",(function(){for(var e=this.root,t=o.default.util,n="",r=1;r<=12;r++)n+='<div class="xgplayer-enter-bar'+r+'"></div>';var i=t.createDom("xg-enter",'<div class="xgplayer-enter-spinner">\n '+n+"\n </div>",{},"xgplayer-enter");e.appendChild(i)}))},function(e,t,n){"use strict";var r=a(n(0)),i=a(n(70)),o=a(n(71));function a(e){return e&&e.__esModule?e:{default:e}}r.default.install("s_play",(function(){var e=this,t=r.default.util,n=e.config.playBtn?e.config.playBtn:{},a=void 0;a="img"===n.type?t.createImgBtn("play",n.url.play,n.width,n.height):t.createDom("xg-play",'<xg-icon class="xgplayer-icon">\n <div class="xgplayer-icon-play">'+i.default+'</div>\n <div class="xgplayer-icon-pause">'+o.default+"</div>\n </xg-icon>",{},"xgplayer-play");var s={};s.play=e.lang.PLAY_TIPS,s.pause=e.lang.PAUSE_TIPS;var l=t.createDom("xg-tips",'<span class="xgplayer-tip-play">'+s.play+'</span>\n <span class="xgplayer-tip-pause">'+s.pause+"</span>",{},"xgplayer-tips");a.appendChild(l),e.once("ready",(function(){e.controls&&e.controls.appendChild(a)})),["click","touchend"].forEach((function(t){a.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),e.emit("playBtnClick")}))}))}))},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">\n <path transform="translate(2,2) scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>\n</svg>\n'},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">\n <path transform="translate(2,2) scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>\n</svg>\n'},function(e,t,n){"use strict";var r=a(n(0)),i=a(n(73)),o=a(n(74));function a(e){return e&&e.__esModule?e:{default:e}}r.default.install("s_start",(function(){var e=this,t=e.root,n=r.default.util,a=n.createDom("xg-start",'<div class="xgplayer-icon-play">'+i.default+'</div>\n <div class="xgplayer-icon-pause">'+o.default+"</div>",{},"xgplayer-start");function s(e){n.addClass(e.root,"xgplayer-skin-default"),e.config&&(e.config.autoplay&&!n.isWeiXin()&&!n.isUc()&&n.addClass(e.root,"xgplayer-is-enter"),e.config.lang&&"en"===e.config.lang?n.addClass(e.root,"lang-is-en"):"jp"===e.config.lang&&n.addClass(e.root,"lang-is-jp"),e.config.enableContextmenu||e.video.addEventListener("contextmenu",(function(e){e.preventDefault(),e.stopPropagation()})))}e.isReady?(t.appendChild(a),s(e)):e.once("ready",(function(){t.appendChild(a),s(e)})),e.once("autoplay was prevented",(function(){n.removeClass(e.root,"xgplayer-is-enter"),n.addClass(e.root,"xgplayer-nostart")})),e.once("canplay",(function(){n.removeClass(e.root,"xgplayer-is-enter")})),a.onclick=function(t){t.preventDefault(),t.stopPropagation(),e.emit("startBtnClick")}}))},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70">\n <path transform="translate(15,15) scale(0.04,0.04)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>\n</svg>\n'},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70">\n <path transform="translate(15,15) scale(0.04 0.04)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>\n</svg>\n'},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("s_poster",(function(){var e=this.root,t=o.default.util;if(this.config.poster){var n=t.createDom("xg-poster","",{},"xgplayer-poster");n.style.backgroundImage="url("+this.config.poster+")",e.appendChild(n)}}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("s_flex",(function(){this.root;var e=o.default.util.createDom("xg-placeholder","",{},"xgplayer-placeholder");this.controls.appendChild(e)}))},function(e,t,n){"use strict";var r=a(n(0)),i=a(n(78)),o=a(n(79));function a(e){return e&&e.__esModule?e:{default:e}}r.default.install("s_fullscreen",(function(){var e=this,t=r.default.util,n=e.config.fullscreenBtn?e.config.fullscreenBtn:{},a=void 0;a="img"===n.type?t.createImgBtn("fullscreen",n.url.request,n.width,n.height):t.createDom("xg-fullscreen",'<xg-icon class="xgplayer-icon">\n <div class="xgplayer-icon-requestfull">'+i.default+'</div>\n <div class="xgplayer-icon-exitfull">'+o.default+"</div>\n </xg-icon>",{},"xgplayer-fullscreen");var s={};s.requestfull=e.lang.FULLSCREEN_TIPS,s.exitfull=e.lang.EXITFULLSCREEN_TIPS;var l=t.createDom("xg-tips",'<span class="xgplayer-tip-requestfull">'+s.requestfull+'</span>\n <span class="xgplayer-tip-exitfull">'+s.exitfull+"</span>",{},"xgplayer-tips");a.appendChild(l),e.once("ready",(function(){e.controls&&e.controls.appendChild(a)})),["click","touchend"].forEach((function(t){a.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),e.emit("fullscreenBtnClick")}))}))}))},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">\n <path transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>\n</svg>\n'},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">\n <path transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>\n</svg>\n'},function(e,t,n){"use strict";var r=a(n(0)),i=a(n(81)),o=a(n(82));function a(e){return e&&e.__esModule?e:{default:e}}r.default.install("s_cssFullscreen",(function(){var e=this,t=r.default.util;if(e.config.cssFullscreen){var n=t.createDom("xg-cssfullscreen",'<xg-icon class="xgplayer-icon">\n <div class="xgplayer-icon-requestfull">'+i.default+'</div>\n <div class="xgplayer-icon-exitfull">'+o.default+"</div>\n </xg-icon>",{},"xgplayer-cssfullscreen"),a={};a.requestfull=e.lang.CSSFULLSCREEN_TIPS,a.exitfull=e.lang.EXITCSSFULLSCREEN_TIPS;var s=t.createDom("xg-tips",'<span class="xgplayer-tip-requestfull">'+a.requestfull+'</span>\n <span class="xgplayer-tip-exitfull">'+a.exitfull+"</span>",{},"xgplayer-tips");n.appendChild(s),e.once("ready",(function(){e.controls.appendChild(n)})),["click","touchend"].forEach((function(t){n.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),e.emit("cssFullscreenBtnClick")}))}))}}))},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">\n <path transform="scale(0.028 0.028)" d="M843.617212 67.898413 175.411567 67.898413c-61.502749 0-111.367437 49.856501-111.367437 111.367437l0 668.205645c0 61.510936 49.864688 111.367437 111.367437 111.367437L843.617212 958.838931c61.510936 0 111.367437-49.856501 111.367437-111.367437L954.984648 179.26585C954.984648 117.754914 905.12917 67.898413 843.617212 67.898413zM398.146441 736.104057c15.380292 0 27.842115 12.461823 27.842115 27.842115 0 15.379269-12.461823 27.841092-27.842115 27.841092L259.725858 791.787264c-7.785314 0-14.781658-3.217275-19.838837-8.365528-5.383614-4.577249-8.791224-11.228739-8.791224-19.475564L231.095797 624.736621c0-15.371082 12.471033-27.842115 27.842115-27.842115 15.380292 0 27.842115 12.471033 27.842115 27.842115l-0.61603 71.426773 133.036969-133.037992 39.378869 39.378869L324.962651 736.113267 398.146441 736.104057zM419.199942 463.611943 286.162974 330.565764l0.61603 71.435982c0 15.380292-12.461823 27.842115-27.842115 27.842115-15.371082 0-27.842115-12.461823-27.842115-27.842115L231.094774 262.791172c0-8.256034 3.40761-14.908548 8.791224-19.476587 5.057179-5.148253 12.053524-8.374738 19.838837-8.374738l138.420583 0.00921c15.380292 0 27.842115 12.461823 27.842115 27.842115s-12.461823 27.842115-27.842115 27.842115l-73.175603-0.00921 133.607974 133.607974L419.199942 463.611943zM787.932981 763.946172c0 8.247848-3.40761 14.899338-8.791224 19.475564-5.057179 5.148253-12.053524 8.365528-19.839861 8.365528L620.881314 791.787264c-15.379269 0-27.841092-12.461823-27.841092-27.841092 0-15.380292 12.461823-27.842115 27.841092-27.842115l73.185836 0.00921L560.449967 602.50427l39.378869-39.378869L732.875015 696.163393l-0.62524-71.426773c0-15.371082 12.462846-27.842115 27.842115-27.842115 15.380292 0 27.842115 12.471033 27.842115 27.842115L787.934005 763.946172zM787.932981 402.000724c0 15.380292-12.461823 27.842115-27.842115 27.842115-15.379269 0-27.842115-12.461823-27.842115-27.842115l0.62524-71.435982L599.828836 463.611943l-39.378869-39.378869 133.617184-133.607974-73.185836 0.00921c-15.379269 0-27.841092-12.461823-27.841092-27.842115s12.461823-27.842115 27.841092-27.842115l138.421606-0.00921c7.785314 0 14.781658 3.226484 19.839861 8.374738 5.383614 4.568039 8.791224 11.219529 8.791224 19.476587L787.934005 402.000724z"></path>\n</svg>\n'},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">\n <path transform="scale(0.028 0.028)" d="M834.56 81.92H189.44c-59.392 0-107.52 48.128-107.52 107.52v645.12c0 59.392 48.128 107.52 107.52 107.52h645.12c59.392 0 107.52-48.128 107.52-107.52V189.44c0-59.392-48.128-107.52-107.52-107.52zM458.24 727.04c0 14.848-12.288 26.624-26.624 26.624S404.48 741.888 404.48 727.04v-69.632L289.28 773.12c-10.752 10.24-27.648 10.24-37.888 0-10.24-10.752-10.24-27.648 0-37.888L366.592 619.52H296.96c-14.848 0-26.624-12.288-26.624-26.624s12.288-26.624 26.624-26.624h134.144c14.848 0 26.624 12.288 26.624 26.624V727.04z m0-295.936c0 14.848-12.288 26.624-26.624 26.624H296.96c-14.848 0-26.624-12.288-26.624-26.624S282.112 404.48 296.96 404.48h69.632L251.392 289.28c-10.24-10.752-10.24-27.648 0-37.888 5.12-5.12 12.288-7.68 18.944-7.68 6.656 0 13.824 2.56 18.944 7.68L404.48 366.592V296.96c0-14.848 12.288-26.624 26.624-26.624s26.624 12.288 26.624 26.624v134.144zM773.12 773.12c-10.752 10.24-27.648 10.24-37.888 0L619.52 657.408V727.04c0 14.848-12.288 26.624-26.624 26.624s-26.624-11.776-26.624-26.624v-134.144c0-14.848 12.288-26.624 26.624-26.624H727.04c14.848 0 26.624 12.288 26.624 26.624s-12.288 26.624-26.624 26.624h-69.632l115.2 115.2c10.752 10.752 10.752 27.648 0.512 38.4z m0-483.84L657.408 404.48H727.04c14.848 0 26.624 12.288 26.624 26.624 0 14.848-12.288 26.624-26.624 26.624h-134.144c-14.848 0-26.624-12.288-26.624-26.624V296.96c0-14.848 12.288-26.624 26.624-26.624s26.624 12.288 26.624 26.624v69.632L734.72 250.88c5.12-5.12 12.288-7.68 18.944-7.68s13.824 2.56 18.944 7.68c10.752 10.752 10.752 27.648 0.512 38.4z"></path>\n</svg>\n'},function(e,t,n){"use strict";var r=s(n(0)),i=s(n(84)),o=s(n(85)),a=s(n(86));function s(e){return e&&e.__esModule?e:{default:e}}r.default.install("s_volume",(function(){var e=this,t=r.default.util.createDom("xg-volume",'<xg-icon class="xgplayer-icon">\n <div class="xgplayer-icon-large">'+a.default+'</div>\n <div class="xgplayer-icon-small">'+o.default+'</div>\n <div class="xgplayer-icon-muted">'+i.default+'</div>\n </xg-icon>\n <xg-slider class="xgplayer-slider" tabindex="2">\n <xg-bar class="xgplayer-bar">\n <xg-drag class="xgplayer-drag"></xg-drag>\n </xg-bar>\n </xg-slider>',{},"xgplayer-volume");e.once("ready",(function(){e.controls&&e.controls.appendChild(t)}));var n=t.querySelector(".xgplayer-slider"),s=t.querySelector(".xgplayer-bar"),l=t.querySelector(".xgplayer-drag"),u=t.querySelector(".xgplayer-icon");l.style.height=100*e.config.volume+"%",n.volume=e.config.volume,s.addEventListener("mousedown",(function(t){t.preventDefault(),t.stopPropagation(),e.emit("volumeBarClick",t)})),["click","touchend"].forEach((function(t){u.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),e.emit("volumeIconClick")}))})),u.addEventListener("mouseenter",(function(t){t.preventDefault(),t.stopPropagation(),e.emit("volumeIconEnter")})),["blur","mouseleave"].forEach((function(n){t.addEventListener(n,(function(t){t.preventDefault(),t.stopPropagation(),e.emit("volumeIconLeave")}))}))}))},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28">\n <path transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>\n <path transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>\n</svg>\n'},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28">\n <path transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>\n <path transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>\n</svg>\n'},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28">\n <path transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>\n <path transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>\n</svg>\n'},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("s_definition",(function(){var e=this,t=e.root,n=o.default.util,r=o.default.sniffer,i=void 0,a=n.createDom("xg-definition","",{tabindex:3},"xgplayer-definition");function s(){var r=e.definitionList,i=["<ul>"],o=e.config.url,s=document.createElement("a");e.switchURL?["mp4","hls","__flv__","dash"].every((function(t){return!e[t]||(e[t].url&&(s.href=e[t].url),"__flv__"===t&&(e[t]._options?s.href=e[t]._options.url:s.href=e[t]._mediaDataSource.url),"hls"===t&&(s.href=e[t].originUrl||e[t].url,o=s.href),o=s.href,!1)})):o=e.currentSrc||e.src,r.forEach((function(t){s.href=t.url,e.dash?i.push("<li url='"+t.url+"' cname='"+t.name+"' class='"+(t.selected?"selected":"")+"'>"+t.name+"</li>"):i.push("<li url='"+t.url+"' cname='"+t.name+"' class='"+(s.href===o?"selected":"")+"'>"+t.name+"</li>")}));var l=r.filter((function(t){return s.href=t.url,e.dash?!0===t.selected:s.href===o}));i.push("</ul><p class='name'>"+(l[0]||{name:""}).name+"</p>");var u=t.querySelector(".xgplayer-definition");if(u){u.innerHTML=i.join("");var c=u.querySelector(".name");e.config.definitionActive&&"hover"!==e.config.definitionActive||c.addEventListener("mouseenter",(function(t){t.preventDefault(),t.stopPropagation(),n.addClass(e.root,"xgplayer-definition-active"),u.focus()}))}else{a.innerHTML=i.join("");var d=a.querySelector(".name");e.config.definitionActive&&"hover"!==e.config.definitionActive||d.addEventListener("mouseenter",(function(t){t.preventDefault(),t.stopPropagation(),n.addClass(e.root,"xgplayer-definition-active"),a.focus()})),e.controls.appendChild(a)}}function l(r){e.definitionList=r,r&&r instanceof Array&&r.length>1&&(n.addClass(t,"xgplayer-is-definition"),e.once("canplay",s))}function u(){if(e.currentTime=e.curTime,!i){var t=e.play();void 0!==t&&t&&t.catch((function(e){}))}}function c(){n.removeClass(t,"xgplayer-definition-active")}"mobile"===r.device&&(e.config.definitionActive="click"),e.on("resourceReady",l),["touchend","click"].forEach((function(t){a.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation();var o=e.definitionList,s=t.target||t.srcElement,l=document.createElement("a");if(s&&"li"===s.tagName.toLocaleLowerCase()){var c,d=void 0;if(Array.prototype.forEach.call(s.parentNode.childNodes,(function(t){n.hasClass(t,"selected")&&(d=t.getAttribute("cname"),n.removeClass(t,"selected"),e.emit("beforeDefinitionChange",t.getAttribute("url")))})),e.dash&&o.forEach((function(e){e.selected=!1,e.name===s.innerHTML&&(e.selected=!0)})),n.addClass(s,"selected"),c=s.getAttribute("cname"),s.parentNode.nextSibling.innerHTML=""+s.getAttribute("cname"),l.href=s.getAttribute("url"),e.switchURL){var f=document.createElement("a");["mp4","hls","__flv__","dash"].every((function(t){return!e[t]||(e[t].url&&(f.href=e[t].url),"__flv__"===t&&(e[t]._options?f.href=e[t]._options.url:f.href=e[t]._mediaDataSource.url),"hls"===t&&(f.href=e[t].originUrl||e[t].url),!1)})),f.href===l.href||e.ended||e.switchURL(l.href)}else e.hls&&(document.createElement("a"),e.hls.url),l.href!==e.currentSrc&&(e.curTime=e.currentTime,i=e.paused,e.ended||(e.src=l.href,e.once("canplay",u)));e.emit("definitionChange",{from:d,to:c}),"mobile"===r.device&&n.removeClass(e.root,"xgplayer-definition-active")}else"click"!==e.config.definitionActive||!s||"p"!==s.tagName.toLocaleLowerCase()&&"em"!==s.tagName.toLocaleLowerCase()||("mobile"===r.device?n.toggleClass(e.root,"xgplayer-definition-active"):n.addClass(e.root,"xgplayer-definition-active"),a.focus());e.emit("focus")}),!1)})),a.addEventListener("mouseleave",(function(e){e.preventDefault(),e.stopPropagation(),n.removeClass(t,"xgplayer-definition-active")})),e.on("blur",c),e.once("destroy",(function t(){e.off("resourceReady",l),e.off("canplay",s),e.off("canplay",u),e.off("blur",c),e.off("destroy",t)}))}))},function(e,t,n){"use strict";var r=o(n(0)),i=o(n(89));function o(e){return e&&e.__esModule?e:{default:e}}r.default.install("s_loading",(function(){var e=this.root,t=r.default.util.createDom("xg-loading",""+i.default,{},"xgplayer-loading");this.once("ready",(function(){e.appendChild(t)}))}))},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewbox="0 0 100 100">\n <path d="M100,50A50,50,0,1,1,50,0"></path>\n</svg>\n'},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=function(e){return o.default.util.hasClass(e.root,"xgplayer-rotate-fullscreen")};o.default.install("s_progress",(function(){var e=this,t=o.default.util,n=t.createDom("xg-progress",'<xg-outer class="xgplayer-progress-outer">\n <xg-cache class="xgplayer-progress-cache"></xg-cache>\n <xg-played class="xgplayer-progress-played">\n <xg-progress-btn class="xgplayer-progress-btn"></xg-progress-btn>\n <xg-point class="xgplayer-progress-point xgplayer-tips"></xg-point>\n <xg-thumbnail class="xgplayer-progress-thumbnail xgplayer-tips"></xg-thumbnail>\n </xg-played>\n </xg-outer>',{tabindex:1},"xgplayer-progress"),r=void 0;e.controls.appendChild(n);var i=n.querySelector(".xgplayer-progress-played"),s=(n.querySelector(".xgplayer-progress-btn"),n.querySelector(".xgplayer-progress-outer")),l=n.querySelector(".xgplayer-progress-cache"),u=n.querySelector(".xgplayer-progress-point"),c=n.querySelector(".xgplayer-progress-thumbnail");function d(r,i){r.addEventListener("mouseenter",(function(e){i&&(t.addClass(r,"xgplayer-progress-dot-show"),t.addClass(n,"xgplayer-progress-dot-active"))})),r.addEventListener("mouseleave",(function(e){i&&(t.removeClass(r,"xgplayer-progress-dot-show"),t.removeClass(n,"xgplayer-progress-dot-active"))})),r.addEventListener("touchend",(function(o){o.stopPropagation(),i&&(t.hasClass(r,"xgplayer-progress-dot-show")||Object.keys(e.dotArr).forEach((function(n){e.dotArr[n]&&t.removeClass(e.dotArr[n],"xgplayer-progress-dot-show")})),t.toggleClass(r,"xgplayer-progress-dot-show"),t.toggleClass(n,"xgplayer-progress-dot-active"))}))}function f(){e.config.progressDot&&"Array"===t.typeOf(e.config.progressDot)&&e.config.progressDot.forEach((function(n){if(n.time>=0&&n.time<=e.duration){var r=t.createDom("xg-progress-dot",n.text?'<span class="xgplayer-progress-tip">'+n.text+"</span>":"",{},"xgplayer-progress-dot");r.style.left=n.time/e.duration*100+"%",n.duration>=0&&(r.style.width=Math.min(n.duration,e.duration-n.time)/e.duration*100+"%"),s.appendChild(r),e.dotArr[n.time]=r,d(r,n.text)}}))}e.dotArr={},e.once("canplay",f),e.addProgressDot=function(n,r,i){if(!e.dotArr[n]&&n>=0&&n<=e.duration){var o=t.createDom("xg-progress-dot","",{},"xgplayer-progress-dot");o.style.left=n/e.duration*100+"%",i>=0&&(o.style.width=Math.min(i,e.duration-n)/e.duration*100+"%"),s.appendChild(o),e.dotArr[n]=o,d(o,r)}},e.removeProgressDot=function(t){if(t>=0&&t<=e.duration&&e.dotArr[t]){var n=e.dotArr[t];n.parentNode.removeChild(n),n=null,e.dotArr[t]=null}},e.removeAllProgressDot=function(){Object.keys(e.dotArr).forEach((function(t){if(e.dotArr[t]){var n=e.dotArr[t];n.parentNode.removeChild(n),n=null,e.dotArr[t]=null}}))};var h=0,p=0,g=0,v=0,y=0,m=0,b=[];e.config.thumbnail&&(h=e.config.thumbnail.pic_num,p=e.config.thumbnail.width,g=e.config.thumbnail.height,v=e.config.thumbnail.col,y=e.config.thumbnail.row,b=e.config.thumbnail.urls,c.style.width=p+"px",c.style.height=g+"px"),"function"==typeof e.config.disableSwipeHandler&&"function"==typeof e.config.enableSwipeHandler&&(e.root.addEventListener("touchmove",(function(t){t.preventDefault(),e.disableSwipe||(e.disableSwipe=!0,e.config.disableSwipeHandler.call(e))})),e.root.addEventListener("touchstart",(function(t){e.disableSwipe=!0,e.config.disableSwipeHandler.call(e)})),e.root.addEventListener("touchend",(function(t){e.disableSwipe=!1,e.config.enableSwipeHandler.call(e)}))),["touchstart","mousedown"].forEach((function(o){n.addEventListener(o,(function(o){if(!e.config.disableProgress){if(o.stopPropagation(),t.event(o),o._target===u||!e.config.allowSeekAfterEnded&&e.ended)return!0;n.focus();var s=i.getBoundingClientRect().left,l=a(e);l?(s=i.getBoundingClientRect().top,r=n.getBoundingClientRect().height):(r=n.getBoundingClientRect().width,s=i.getBoundingClientRect().left);var c=function(n){n.stopPropagation(),t.event(n),e.isProgressMoving=!0;var o=(l?n.clientY:n.clientX)-s;o>r&&(o=r);var a=o/r*e.duration;if(e.config.allowSeekPlayed&&Number(a).toFixed(1)>e.maxPlayedTime);else if(i.style.width=100*o/r+"%","video"!==e.videoConfig.mediaType||e.dash||e.config.closeMoveSeek){var u=t.findDom(e.controls,".xgplayer-time");u&&(u.innerHTML='<span class="xgplayer-time-current">'+t.format(a||0)+"</span><span>"+t.format(e.duration)+"</span>")}else e.currentTime=Number(a).toFixed(1);e.emit("focus")},d=function o(a){if(a.stopPropagation(),t.event(a),window.removeEventListener("mousemove",c),window.removeEventListener("touchmove",c,{passive:!1}),window.removeEventListener("mouseup",o),window.removeEventListener("touchend",o),n.blur(),!e.isProgressMoving||e.videoConfig&&"audio"===e.videoConfig.mediaType||e.dash||e.config.closeMoveSeek){var u=(l?a.clientY:a.clientX)-s;u>r&&(u=r);var d=u/r*e.duration;e.config.allowSeekPlayed&&Number(d).toFixed(1)>e.maxPlayedTime||(i.style.width=100*u/r+"%",e.currentTime=Number(d).toFixed(1))}e.emit("focus"),e.isProgressMoving=!1};return window.addEventListener("mousemove",c),window.addEventListener("touchmove",c,{passive:!1}),window.addEventListener("mouseup",d),window.addEventListener("touchend",d),!0}}))})),n.addEventListener("mouseenter",(function(r){if(!e.config.allowSeekAfterEnded&&e.ended)return!0;var i=a(e),o=i?n.getBoundingClientRect().top:n.getBoundingClientRect().left,s=i?n.getBoundingClientRect().height:n.getBoundingClientRect().width,l=function(r){var a=((i?r.clientY:r.clientX)-o)/s*e.duration;a=a<0?0:a,u.textContent=t.format(a);var l=u.getBoundingClientRect().width;if(e.config.thumbnail){m=e.duration/h;var d=Math.floor(a/m);c.style.backgroundImage="url("+b[Math.ceil((d+1)/(v*y))-1]+")";var f=d+1-v*y*(Math.ceil((d+1)/(v*y))-1),x=Math.ceil(f/y)-1,_=f-x*y-1;c.style["background-position"]="-"+_*p+"px -"+x*g+"px";var w=(i?r.clientY:r.clientX)-o-p/2;w=(w=w>0?w:0)<s-p?w:s-p,c.style.left=w+"px",c.style.top=-10-g+"px",c.style.display="block",u.style.left=w+p/2-l/2+"px"}else{var S=r.clientX-o-l/2;S=(S=S>0?S:0)>s-l?s-l:S,u.style.left=S+"px"}t.hasClass(n,"xgplayer-progress-dot-active")?u.style.display="none":u.style.display="block"},d=function(e){l(e)};n.addEventListener("mousemove",d,!1),n.addEventListener("mouseleave",(function e(t){n.removeEventListener("mousemove",d,!1),n.removeEventListener("mouseleave",e,!1),l(t),u.style.display="none",c.style.display="none"}),!1),l(r)}),!1);var x=function(){if(void 0===e.maxPlayedTime&&(e.maxPlayedTime=0),e.maxPlayedTime<e.currentTime&&(e.maxPlayedTime=e.currentTime),!r&&n&&(r=n.getBoundingClientRect().width),"audio"!==e.videoConfig.mediaType||!e.isProgressMoving||!e.dash){var t=e.currentTime/e.duration,o=Number(i.style.width.replace("%","")||"0")/Number(n.style.width||"100");Math.abs(t-o)<=1&&(i.style.width=100*e.currentTime/e.duration+"%")}};e.on("timeupdate",x);var _=function(){i.style.width=100*e.currentTime/e.duration+"%"};e.on("currentTimeChange",_);var w=function(){i.style.width="0%"};e.on("srcChange",w);var S=function(){var t=e.buffered;if(t&&t.length>0){for(var n=t.end(t.length-1),r=0,i=t.length;r<i;r++)if(e.currentTime>=t.start(r)&&e.currentTime<=t.end(r)){n=t.end(r);for(var o=r+1;o<t.length;o++)if(t.start(o)-t.end(o-1)>=2){n=t.end(o-1);break}break}l.style.width=n/e.duration*100+"%"}},k=["bufferedChange","cacheupdate","ended","timeupdate"];k.forEach((function(t){e.on(t,S)})),e.once("destroy",(function t(){e.removeAllProgressDot(),e.off("canplay",f),e.off("timeupdate",x),e.off("currentTimeChange",_),e.off("srcChange",w),k.forEach((function(t){e.off(t,S)})),e.off("destroy",t)}))}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("s_time",(function(){var e=this,t=(e.root,o.default.util),n=t.createDom("xg-time",'<span class="xgplayer-time-current">'+(e.currentTime||t.format(0))+"</span>\n <span>"+(e.duration||t.format(0))+"</span>",{},"xgplayer-time");e.once("ready",(function(){e.controls&&e.controls.appendChild(n)}));var r=function(){"audio"===e.videoConfig.mediaType&&e.isProgressMoving&&e.dash||(n.innerHTML='<span class="xgplayer-time-current">'+t.format(e.currentTime||0)+"</span><span>"+t.format(e.duration)+"</span>")};e.on("durationchange",r),e.on("timeupdate",r),e.once("destroy",(function t(){e.off("durationchange",r),e.off("timeupdate",r),e.off("destroy",t)}))}))},function(e,t,n){"use strict";var r=o(n(0)),i=o(n(93));function o(e){return e&&e.__esModule?e:{default:e}}r.default.install("s_replay",(function(){var e=this,t=r.default.util,n=e.root,o=e.lang.REPLAY,a=t.createDom("xg-replay",i.default+'\n <xg-replay-txt class="xgplayer-replay-txt">'+o+"</xg-replay-txt>\n ",{},"xgplayer-replay");function s(){var e=a.querySelector("path");if(e){var t=window.getComputedStyle(e).getPropertyValue("transform");if("string"==typeof t&&t.indexOf("none")>-1)return;e.setAttribute("transform",t)}}e.once("ready",(function(){n.appendChild(a)})),e.on("ended",s);var l=a.querySelector("svg");["click","touchend"].forEach((function(t){l.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),e.emit("replayBtnClick")}))})),e.once("destroy",(function t(){e.off("ended",s),e.off("destroy",t)}))}))},function(e,t,n){"use strict";n.r(t),t.default='<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" width="78" height="78" viewbox="0 0 78 78">\n <path d="M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"></path>\n</svg>\n'},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("s_playbackRate",(function(){var e=this,t=o.default.sniffer,n=o.default.util;if(!e.config.playbackRate)return!1;e.config.playbackRate.sort((function(e,t){return t-e}));var r=n.createDom("xg-playbackrate"," ",{},"xgplayer-playbackrate");"mobile"===t.device&&(e.config.playbackRateActive="click");var i=[];e.config.playbackRate.forEach((function(e){i.push({name:""+e,rate:e+"x",selected:!1})}));var a=1,s=["<ul>"];i.forEach((function(t){e.config.defaultPlaybackRate&&e.config.defaultPlaybackRate.toString()===t.name?(t.selected=!0,a=e.config.defaultPlaybackRate,e.once("playing",(function(){e.video.playbackRate=e.config.defaultPlaybackRate}))):"1.0"!==t.name&&"1"!==t.name||e.config.defaultPlaybackRate&&1!==e.config.defaultPlaybackRate||(t.selected=!0),s.push("<li cname='"+t.name+"' class='"+(t.selected?"selected":"")+"'>"+t.rate+"</li>")})),s.push("</ul><p class='name'>"+a+"x</p>");var l=e.root.querySelector(".xgplayer-playbackrate");if(l){l.innerHTML=s.join("");var u=l.querySelector(".name");e.config.playbackRateActive&&"hover"!==e.config.playbackRateActive||u.addEventListener("mouseenter",(function(t){t.preventDefault(),t.stopPropagation(),n.addClass(e.root,"xgplayer-playbackrate-active"),l.focus()}))}else{r.innerHTML=s.join("");var c=r.querySelector(".name");e.config.playbackRateActive&&"hover"!==e.config.playbackRateActive||c.addEventListener("mouseenter",(function(t){t.preventDefault(),t.stopPropagation(),n.addClass(e.root,"xgplayer-playbackrate-active"),r.focus()})),e.once("ready",(function(){e.controls.appendChild(r)}))}["touchend","click"].forEach((function(o){r.addEventListener(o,(function(o){o.stopPropagation(),o.preventDefault();var s=o.target;if(s&&"li"===s.tagName.toLocaleLowerCase()){var l,u=void 0;i.forEach((function(t){t.selected=!1,s.textContent.replace(/\s+/g,"")===t.rate&&(Array.prototype.forEach.call(s.parentNode.childNodes,(function(e){n.hasClass(e,"selected")&&(u=Number(e.getAttribute("cname")),n.removeClass(e,"selected"))})),t.selected=!0,e.video.playbackRate=1*t.name,a=1*t.name)})),n.addClass(s,"selected"),l=Number(s.getAttribute("cname")),s.parentNode.nextSibling.innerHTML=s.getAttribute("cname")+"x",e.emit("playbackrateChange",{from:u,to:l}),"mobile"===t.device&&n.removeClass(e.root,"xgplayer-playbackrate-active")}else"click"!==e.config.playbackRateActive||!s||"p"!==s.tagName.toLocaleLowerCase()&&"span"!==s.tagName.toLocaleLowerCase()||("mobile"===t.device?n.toggleClass(e.root,"xgplayer-playbackrate-active"):n.addClass(e.root,"xgplayer-playbackrate-active"),r.focus());e.emit("focus")}),!1)})),r.addEventListener("mouseleave",(function(t){t.preventDefault(),t.stopPropagation(),n.removeClass(e.root,"xgplayer-playbackrate-active")})),e.on("blur",(function(){n.removeClass(e.root,"xgplayer-playbackrate-active")})),e.on("play",(function(){e.video.playbackRate.toFixed(1)!==a.toFixed(1)&&(e.video.playbackRate=a)}))}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("s_localPreview",(function(){var e=this,t=(e.root,o.default.util);if(e.config.preview&&e.config.preview.uploadEl){var n=t.createDom("xg-preview",'<input type="file">',{},"xgplayer-preview"),r=n.querySelector("input");e.config.preview.uploadEl.appendChild(n),r.onchange=function(){e.emit("upload",r)}}}))},function(e,t,n){"use strict";var r=o(n(0)),i=o(n(97));function o(e){return e&&e.__esModule?e:{default:e}}r.default.install("s_download",(function(){var e=this,t=r.default.util;if(e.config.download){var n=t.createDom("xg-download",'<xg-icon class="xgplayer-icon">'+i.default+"</xg-icon>",{},"xgplayer-download"),o=e.lang.DOWNLOAD_TIPS,a=t.createDom("xg-tips",'<span class="xgplayer-tip-download">'+o+"</span>",{},"xgplayer-tips");n.appendChild(a),e.once("ready",(function(){e.controls.appendChild(n)})),["click","touchend"].forEach((function(t){n.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),e.emit("downloadBtnClick")}))}))}}))},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">\n <g id="Group-2">\n <g id="volme_big-copy" transform="translate(488.000000, 340.000000)">\n <rect id="Rectangle-18" x="11" y="4" width="2" height="12" rx="1"></rect>\n <rect id="Rectangle-2" x="3" y="18" width="18" height="2" rx="1"></rect>\n <rect id="Rectangle-2" transform="translate(4.000000, 17.500000) rotate(90.000000) translate(-4.000000, -17.500000) " x="1.5" y="16.5" width="5" height="2" rx="1"></rect><rect id="Rectangle-2-Copy-3" transform="translate(20.000000, 17.500000) rotate(90.000000) translate(-20.000000, -17.500000) " x="17.5" y="16.5" width="5" height="2" rx="1"></rect>\n <path d="M9.48791171,8.26502656 L9.48791171,14.2650266 C9.48791171,14.8173113 9.04019646,15.2650266 8.48791171,15.2650266 C7.93562696,15.2650266 7.48791171,14.8173113 7.48791171,14.2650266 L7.48791171,7.26502656 C7.48791171,6.71274181 7.93562696,6.26502656 8.48791171,6.26502656 L15.4879117,6.26502656 C16.0401965,6.26502656 16.4879117,6.71274181 16.4879117,7.26502656 C16.4879117,7.81731131 16.0401965,8.26502656 15.4879117,8.26502656 L9.48791171,8.26502656 Z" id="Combined-Shape" transform="translate(11.987912, 10.765027) scale(1, -1) rotate(45.000000) translate(-11.987912, -10.765027) "></path>\n </g>\n </g>\n </g>\n </g>\n</svg>\n'},function(e,t,n){"use strict";var r=a(n(0)),i=a(n(99)),o=a(n(101));function a(e){return e&&e.__esModule?e:{default:e}}r.default.install("s_danmu",(function(){var e=this,t=e.root,n=r.default.util;if(e.config.danmu){var a=n.createDom("xg-danmu","",{},"xgplayer-danmu");e.once("ready",(function(){t.appendChild(a)}));var s=n.deepCopy({container:a,player:e.video,comments:[],area:{start:0,end:1}},e.config.danmu),l=void 0;e.config.danmu.panel&&(l=r.default.util.createDom("xg-panel",'<xg-panel-icon class="xgplayer-panel-icon">\n '+o.default+'\n </xg-panel-icon>\n <xg-panel-slider class="xgplayer-panel-slider">\n <xg-hidemode class="xgplayer-hidemode">\n <p class="xgplayer-hidemode-font">屏蔽类型</p>\n <ul class="xgplayer-hidemode-radio">\n <li class="xgplayer-hidemode-scroll" id="false">滚动</li><li class="xgplayer-hidemode-top" id="false">顶部</li><li class="xgplayer-hidemode-bottom" id="false">底部</li><li class="xgplayer-hidemode-color" id="false">色彩</li>\n </ul>\n </xg-hidemode>\n <xg-transparency class="xgplayer-transparency">\n <span>不透明度</span>\n <input class="xgplayer-transparency-line xgplayer-transparency-color xgplayer-transparency-bar xgplayer-transparency-gradient" type="range" min="0" max="100" step="0.1" value="50"></input>\n </xg-transparency>\n <xg-showarea class="xgplayer-showarea">\n <div class="xgplayer-showarea-name">显示区域</div>\n <div class="xgplayer-showarea-control">\n <div class="xgplayer-showarea-control-up">\n <span class="xgplayer-showarea-control-up-item xgplayer-showarea-onequarters">1/4</span>\n <span class="xgplayer-showarea-control-up-item xgplayer-showarea-twoquarters selected-color">1/2</span>\n <span class="xgplayer-showarea-control-up-item xgplayer-showarea-threequarters">3/4</span>\n <span class="xgplayer-showarea-control-up-item xgplayer-showarea-full">1</span>\n </div>\n <div class="xgplayer-showarea-control-down">\n <div class="xgplayer-showarea-control-down-dots">\n <span class="xgplayer-showarea-onequarters-dot"></span>\n <span class="xgplayer-showarea-twoquarters-dot"></span>\n <span class="xgplayer-showarea-threequarters-dot"></span>\n <span class="xgplayer-showarea-full-dot"></span>\n </div>\n <input class="xgplayer-showarea-line xgplayer-showarea-color xgplayer-showarea-bar xgplayer-gradient" type="range" min="1" max="4" step="1" value="1">\n </div>\n </div>\n </xg-showarea>\n <xg-danmuspeed class="xgplayer-danmuspeed">\n <div class="xgplayer-danmuspeed-name">弹幕速度</div>\n <div class="xgplayer-danmuspeed-control">\n <div class="xgplayer-danmuspeed-control-up">\n <span class="xgplayer-danmuspeed-control-up-item xgplayer-danmuspeed-small">慢</span>\n <span class="xgplayer-danmuspeed-control-up-item xgplayer-danmuspeed-middle selected-color">中</span>\n <span class="xgplayer-danmuspeed-control-up-item xgplayer-danmuspeed-large">快</span>\n </div>\n <div class="xgplayer-danmuspeed-control-down">\n <div class="xgplayer-danmuspeed-control-down-dots">\n <span class="xgplayer-danmuspeed-small-dot"></span>\n <span class="xgplayer-danmuspeed-middle-dot"></span>\n <span class="xgplayer-danmuspeed-large-dot"></span>\n </div>\n <input class="xgplayer-danmuspeed-line xgplayer-danmuspeed-color xgplayer-danmuspeed-bar xgplayer-gradient" type="range" min="50" max="150" step="50" value="100">\n </div>\n </div>\n </xg-danmuspeed>\n <xg-danmufont class="xgplayer-danmufont">\n <div class="xgplayer-danmufont-name">字体大小</div>\n <div class="xgplayer-danmufont-control">\n <div class="xgplayer-danmufont-control-up">\n <span class="xgplayer-danmufont-control-up-item xgplayer-danmufont-small">小</span>\n <span class="xgplayer-danmufont-control-up-item xgplayer-danmufont-middle">中</span>\n <span class="xgplayer-danmufont-control-up-item xgplayer-danmufont-large selected-color">大</span>\n </div>\n <div class="xgplayer-danmufont-control-down">\n <div class="xgplayer-danmufont-control-down-dots">\n <span class="xgplayer-danmufont-small-dot"></span>\n <span class="xgplayer-danmufont-middle-dot"></span>\n <span class="xgplayer-danmufont-large-dot"></span>\n </div>\n <input class="xgplayer-danmufont-line xgplayer-danmufont-color xgplayer-danmufont-bar xgplayer-gradient" type="range" min="20" max="30" step="5" value="25">\n </div>\n </div>\n </xg-danmufont>\n </xg-panel-slider>',{tabindex:7},"xgplayer-panel"),e.once("ready",(function(){e.controls.appendChild(l)}))),e.once("complete",(function(){var t=new i.default(s);if(e.emit("initDefaultDanmu",t),e.danmu=t,e.config.danmu.panel){var n=l.querySelector(".xgplayer-panel-slider"),o=void 0;["mouseenter","touchend","click"].forEach((function(e){l.addEventListener(e,(function(e){e.preventDefault(),e.stopPropagation(),r.default.util.addClass(n,"xgplayer-panel-active"),l.focus(),o=!0}))})),l.addEventListener("mouseleave",(function(e){e.preventDefault(),e.stopPropagation(),r.default.util.removeClass(n,"xgplayer-panel-active"),o=!1})),n.addEventListener("mouseleave",(function(e){e.preventDefault(),e.stopPropagation(),!1===o&&r.default.util.removeClass(n,"xgplayer-panel-active")}));var a=e.config.danmu,u={scroll:l.querySelector(".xgplayer-hidemode-scroll"),top:l.querySelector(".xgplayer-hidemode-top"),bottom:l.querySelector(".xgplayer-hidemode-bottom"),color:l.querySelector(".xgplayer-hidemode-color")},c=function(t){var n=t;["touchend","click"].forEach((function(t){u[n].addEventListener(t,(function(t){"true"!==u[n].getAttribute("id")?(u[n].style.color="#f85959",u[n].setAttribute("id","true"),e.danmu.hide(n)):(u[n].style.color="#aaa",u[n].setAttribute("id","false"),e.danmu.show(n))}))}))};for(var d in u)c(d);var f=l.querySelector(".xgplayer-transparency-line"),h=l.querySelector(".xgplayer-transparency-gradient"),p=50;if(h.style.background="linear-gradient(to right, #f85959 0%, #f85959 "+p+"%, #aaa "+p+"%, #aaa)",f.addEventListener("input",(function(e){e.preventDefault(),e.stopPropagation(),p=e.target.value,h.style.background="linear-gradient(to right, #f85959 0%, #f85959 "+p+"%, #aaa "+p+"%, #aaa)",a.comments.forEach((function(e){e.style.opacity=p/100}))})),l.querySelector(".xgplayer-showarea-line").addEventListener("input",(function(t){t.preventDefault(),t.stopPropagation();var n=t.target.value;e.danmu.config.area.end=n/100,e.config.danmu.area.end=n/100,e.danmu.bulletBtn.main.channel.resize()})),l.querySelector(".xgplayer-danmuspeed-line").addEventListener("input",(function(e){e.preventDefault(),e.stopPropagation();var t=e.target.value;a.comments.forEach((function(e){e.duration=100*(200-t)}))})),l.querySelector(".xgplayer-danmufont-line").addEventListener("input",(function(e){e.preventDefault(),e.stopPropagation();var t=e.target.value;a.comments.forEach((function(e){e.style.fontSize=t+"px"}))})),navigator.userAgent.indexOf("Firefox")>-1)for(var g=0;g<n.querySelectorAll("input").length;g++)n.querySelectorAll("input")[g].style.marginTop="10px"}}))}}))},function(e,t,n){"use strict";(function(e){var n,r,i,o,a="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};window,o=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==(void 0===e?"undefined":a(e))&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=(r=n(26))&&r.__esModule?r:{default:r},a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return i(e,[{key:"setLogger",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.logger=new o.default(e+".js")}}]),e}();t.default=a,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r={createDom:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=document.createElement(e);return i.className=r,i.innerHTML=t,Object.keys(n).forEach((function(t){var r=t,o=n[t];"video"===e||"audio"===e?o&&i.setAttribute(r,o):i.setAttribute(r,o)})),i},hasClass:function(e,t){return e.classList?Array.prototype.some.call(e.classList,(function(e){return e===t})):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))},addClass:function(e,t){e.classList?t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach((function(t){t&&e.classList.add(t)})):r.hasClass(e,t)||(e.className+=" "+t)},removeClass:function(e,t){e.classList?t.split(/\s+/g).forEach((function(t){e.classList.remove(t)})):r.hasClass(e,t)&&t.split(/\s+/g).forEach((function(t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}))},toggleClass:function(e,t){t.split(/\s+/g).forEach((function(t){r.hasClass(e,t)?r.removeClass(e,t):r.addClass(e,t)}))},findDom:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=arguments[1],n=void 0;try{n=e.querySelector(t)}catch(r){t.startsWith("#")&&(n=e.getElementById(t.slice(1)))}return n},deepCopy:function(e,t){if("Object"===r.typeOf(t)&&"Object"===r.typeOf(e))return Object.keys(t).forEach((function(n){"Object"!==r.typeOf(t[n])||t[n]instanceof Node?"Array"===r.typeOf(t[n])?e[n]="Array"===r.typeOf(e[n])?e[n].concat(t[n]):t[n]:e[n]=t[n]:e[n]?r.deepCopy(e[n],t[n]):e[n]=t[n]})),e},typeOf:function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},copyDom:function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return Array.prototype.forEach.call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},formatTime:function(e){var t=Math.floor(e);return 1e3*t+(e-t)},offInDestroy:function(e,t,n,r){e.once(r,(function i(){e.off(t,n),e.off(r,i)}))},on:function(e,t,n,i){i?(e.on(t,n),r.offInDestroy(e,t,n,i)):e.on(t,(function r(i){n(i),e.off(t,r)}))}};t.default=r,e.exports=t.default},function(e,t,n){var r=n(19)();e.exports=function(e){return e!==r&&null!==e}},function(e,t,n){e.exports=function(e){return null!=e}},function(e,t,n){e.exports=n(5)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(6))&&r.__esModule?r:{default:r};n(33),t.default=i.default,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=d(n(7)),o=d(n(0)),s=d(n(27)),l=d(n(31)),u=d(n(1)),c=n(32);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":a(t))&&"function"!=typeof t?e:t}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));n.setLogger("danmu"),n.logger.info("danmu.js version: "+c.version);var r=n;if(r.config=u.default.deepCopy({overlap:!1,area:{start:0,end:1},live:!1,comments:[],direction:"r2l"},e),r.hideArr=[],r.domObj=new l.default,(0,i.default)(r),r.config.comments.forEach((function(e){e.duration=e.duration?e.duration:5e3,e.mode||(e.mode="scroll")})),!r.config.container||1!==r.config.container.nodeType)return r.emit("error","container id can't be empty"),f(n,!1);if(r.container=r.config.container,r.config.containerStyle){var o=r.config.containerStyle;Object.keys(o).forEach((function(e){r.container.style[e]=o[e]}))}return r.live=r.config.live,r.player=r.config.player,r.direction=r.config.direction,u.default.addClass(r.container,"danmu"),r.bulletBtn=new s.default(r),r.emit("ready"),n.logger.info("ready"),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":a(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"start",value:function(){this.logger.info("start"),this.bulletBtn.main.start()}},{key:"pause",value:function(){this.logger.info("pause"),this.bulletBtn.main.pause()}},{key:"play",value:function(){this.logger.info("play"),this.bulletBtn.main.play()}},{key:"stop",value:function(){this.logger.info("stop"),this.bulletBtn.main.stop()}},{key:"destroy",value:function(){for(var e in this.logger.info("destroy"),this.stop(),this.bulletBtn.destroy(),this.domObj.destroy(),this)delete this[e];this.emit("destroy")}},{key:"sendComment",value:function(e){this.logger.info("sendComment: "+(e.txt||"[DOM Element]")),e.duration||(e.duration=15e3),e&&e.id&&e.duration&&(e.el||e.txt)&&(e.duration=e.duration?e.duration:5e3,e.style&&(this.opacity&&this.opacity!==e.style.opacity&&(e.style.opacity=this.opacity),this.fontSize&&this.fontSize!==e.style.fontSize&&(e.style.fontSize=this.fontSize),this.like&&(e.like=e.like?e.like:this.like)),e.prior||e.realTime?(this.bulletBtn.main.data.unshift(e),e.realTime&&(this.bulletBtn.main.readData(),this.bulletBtn.main.dataHandle())):this.bulletBtn.main.data.push(e))}},{key:"setCommentID",value:function(e,t){var n=this;this.logger.info("setCommentID: oldID "+e+" newID "+t);var r=this.container.getBoundingClientRect();e&&t&&(this.bulletBtn.main.data.some((function(n){return n.id===e&&(n.id=t,!0)})),this.bulletBtn.main.queue.some((function(i){return i.id===e&&(i.id=t,i.pauseMove(r),"paused"!==n.bulletBtn.main.status&&i.startMove(r),!0)})))}},{key:"setCommentDuration",value:function(e,t){var n=this;this.logger.info("setCommentDuration: id "+e+" duration "+t);var r=this.container.getBoundingClientRect();e&&t&&(t=t||5e3,this.bulletBtn.main.data.some((function(n){return n.id===e&&(n.duration=t,!0)})),this.bulletBtn.main.queue.some((function(i){return i.id===e&&(i.duration=t,i.pauseMove(r),"paused"!==n.bulletBtn.main.status&&i.startMove(r),!0)})))}},{key:"setCommentLike",value:function(e,t){this.logger.info("setCommentLike: id "+e+" like "+t);var n=this.container.getBoundingClientRect();this.like=t,e&&t&&(this.bulletBtn.main.data.some((function(n){return n.id===e&&(n.like=t,!0)})),this.bulletBtn.main.queue.some((function(r){return r.id===e&&(r.pauseMove(n),r.setLikeDom(t.el,t.style),"paused"!==r.danmu.bulletBtn.main.status&&r.startMove(n),!0)})))}},{key:"restartComment",value:function(e){this.logger.info("restartComment: id "+e),this.mouseControl=!1;var t=this.container.getBoundingClientRect();e&&this.bulletBtn.main.queue.some((function(n){return n.id===e&&("paused"!==n.danmu.bulletBtn.main.status?n.startMove(t,!0):n.status="paused",!0)}))}},{key:"freezeComment",value:function(e){this.logger.info("freezeComment: id "+e),this.mouseControl=!0;var t=this.container.getBoundingClientRect();e&&this.bulletBtn.main.queue.some((function(n){return n.id===e&&(n.status="forcedPause",n.pauseMove(t),n.el&&n.el.style&&(n.el.style.zIndex=10),!0)}))}},{key:"removeComment",value:function(e){this.logger.info("removeComment: id "+e),e&&(this.bulletBtn.main.queue.some((function(t){return t.id===e&&(t.remove(),!0)})),this.bulletBtn.main.data=this.bulletBtn.main.data.filter((function(t){return t.id!==e})))}},{key:"setAllDuration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll",t=arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.logger.info("setAllDuration: mode "+e+" duration "+t+" force "+n);var r=this.container.getBoundingClientRect();t&&(t=t||5e3,n&&(this.bulletBtn.main.forceDuration=t),this.bulletBtn.main.data.forEach((function(n){e===n.mode&&(n.duration=t)})),this.bulletBtn.main.queue.forEach((function(n){e===n.mode&&(n.duration=t,n.pauseMove(r),"paused"!==n.danmu.bulletBtn.main.status&&n.startMove(r))})))}},{key:"setOpacity",value:function(e){this.logger.info("setOpacity: opacity "+e),this.container.style.opacity=e}},{key:"setFontSize",value:function(e,t){var n=this;this.logger.info("setFontSize: size "+e+" channelSize "+t),this.fontSize=e+"px",e&&(this.bulletBtn.main.data.forEach((function(e){e.style&&(e.style.fontSize=n.fontSize)})),this.bulletBtn.main.queue.forEach((function(e){e.options.style||(e.options.style={}),e.options.style.fontSize=n.fontSize,e.setFontSize(n.fontSize),t&&(e.top=e.channel_id[0]*t,e.topInit())}))),t&&(this.config.channelSize=t,this.bulletBtn.main.channel.resize(!0))}},{key:"setArea",value:function(e){this.logger.info("setArea: area "+e),this.config.area=e,this.bulletBtn.main.channel.resize(!0)}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";this.logger.info("hide: mode "+e),this.hideArr.indexOf(e)<0&&this.hideArr.push(e);var t=this.bulletBtn.main.queue.filter((function(t){return e===t.mode||"color"===e&&t.color}));t.forEach((function(e){return e.remove()}))}},{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";this.logger.info("show: mode "+e);var t=this.hideArr.indexOf(e);t>-1&&this.hideArr.splice(t,1)}},{key:"setDirection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"r2l";this.logger.info("setDirection: direction "+e),this.emit("changeDirection",e)}},{key:"resize",value:function(){this.logger.info("resize"),this.emit("channel_resize")}}]),t}(o.default);t.default=h,e.exports=t.default},function(e,t,n){var r,i,o,s,l,u,c,d=n(8),f=n(25),h=Function.prototype.apply,p=Function.prototype.call,g=Object.create,v=Object.defineProperty,y=Object.defineProperties,m=Object.prototype.hasOwnProperty,b={configurable:!0,enumerable:!1,writable:!0};i=function(e,t){var n,i;return f(t),i=this,r.call(this,e,n=function(){o.call(i,e,n),h.call(t,this,arguments)}),n.__eeOnceListener__=t,this},l={on:r=function(e,t){var n;return f(t),m.call(this,"__ee__")?n=this.__ee__:(n=b.value=g(null),v(this,"__ee__",b),b.value=null),n[e]?"object"==a(n[e])?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:i,off:o=function(e,t){var n,r,i,o;if(f(t),!m.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==a(r=n[e]))for(o=0;i=r[o];++o)i!==t&&i.__eeOnceListener__!==t||(2===r.length?n[e]=r[o?0:1]:r.splice(o,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},emit:s=function(e){var t,n,r,i,o;if(m.call(this,"__ee__")&&(i=this.__ee__[e]))if("object"==(void 0===i?"undefined":a(i))){for(n=arguments.length,o=new Array(n-1),t=1;t<n;++t)o[t-1]=arguments[t];for(i=i.slice(),t=0;r=i[t];++t)h.call(r,this,o)}else switch(arguments.length){case 1:p.call(i,this);break;case 2:p.call(i,this,arguments[1]);break;case 3:p.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),t=1;t<n;++t)o[t-1]=arguments[t];h.call(i,this,o)}}},u={on:d(r),once:d(i),off:d(o),emit:d(s)},c=y({},u),e.exports=t=function(e){return null==e?g(c):y(Object(e),u)},t.methods=l},function(e,t,n){var r=n(3),i=n(9),o=n(13),a=n(21),s=n(22);(e.exports=function(e,t){var n,i,l,u,c;return arguments.length<2||"string"!=typeof e?(u=t,t=e,e=null):u=arguments[2],r(e)?(n=s.call(e,"c"),i=s.call(e,"e"),l=s.call(e,"w")):(n=l=!0,i=!1),c={value:t,configurable:n,enumerable:i,writable:l},u?o(a(u),c):c}).gs=function(e,t,n){var l,u,c,d;return"string"!=typeof e?(c=n,n=t,t=e,e=null):c=arguments[3],r(t)?i(t)?r(n)?i(n)||(c=n,n=void 0):n=void 0:(c=t,t=n=void 0):t=void 0,r(e)?(l=s.call(e,"c"),u=s.call(e,"e")):(l=!0,u=!1),d={get:t,set:n,configurable:l,enumerable:u},c?o(a(c),d):d}},function(e,t,n){var r=n(10),i=/^\s*class[\s{/}]/,o=Function.prototype.toString;e.exports=function(e){return!!r(e)&&!i.test(o.call(e))}},function(e,t,n){var r=n(11);e.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!r(e)}},function(e,t,n){var r=n(12);e.exports=function(e){if(!r(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}},function(e,t,n){var r=n(3),i={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!r(e)&&hasOwnProperty.call(i,void 0===e?"undefined":a(e))}},function(e,t,n){e.exports=n(14)()?Object.assign:n(15)},function(e,t,n){e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},function(e,t,n){var r=n(16),i=n(20),o=Math.max;e.exports=function(e,t){var n,a,s,l=o(arguments.length,2);for(e=Object(i(e)),s=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},a=1;a<l;++a)r(t=arguments[a]).forEach(s);if(void 0!==n)throw n;return e}},function(e,t,n){e.exports=n(17)()?Object.keys:n(18)},function(e,t,n){e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},function(e,t,n){var r=n(2),i=Object.keys;e.exports=function(e){return i(r(e)?Object(e):e)}},function(e,t,n){e.exports=function(){}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw new TypeError("Cannot use null or undefined");return e}},function(e,t,n){var r=n(2),i=Array.prototype.forEach,o=Object.create,a=function(e,t){var n;for(n in e)t[n]=e[n]};e.exports=function(e){var t=o(null);return i.call(arguments,(function(e){r(e)&&a(Object(e),t)})),t}},function(e,t,n){e.exports=n(23)()?String.prototype.contains:n(24)},function(e,t,n){var r="razdwatrzy";e.exports=function(){return"function"==typeof r.contains&&!0===r.contains("dwa")&&!1===r.contains("foo")}},function(e,t,n){var r=String.prototype.indexOf;e.exports=function(e){return r.call(this,e,arguments[1])>-1}},function(e,t,n){e.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=window.location.href.indexOf("danmu-debug")>-1,o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.constructorName=t||""}return r(e,[{key:"info",value:function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];i&&(t=console).log.apply(t,["[Danmu Log]["+this.constructorName+"]",e].concat(r))}}]),e}();t.default=o,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(0)),o=l(n(1)),s=l(n(28));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":a(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.setLogger("control"),n.danmu=e,n.main=new s.default(e),e.config.defaultOff||n.main.start(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":a(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"createSwitch",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.logger.info("createSwitch"),this.switchBtn=o.default.createDom("dk-switch",'<span class="txt">弹</span>',{},"danmu-switch "+(e?"danmu-switch-active":"")),this.switchBtn}},{key:"destroy",value:function(){for(var e in this.logger.info("destroy"),this.main.destroy(),this)delete this[e]}}]),t}(i.default);t.default=u,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(0)),o=u(n(29)),s=u(n(30)),l=u(n(1));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":a(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));n.setLogger("main"),n.danmu=e,n.container=e.container,n.channel=new o.default(e),n.data=[].concat(e.config.comments),n.playedData=[],n.queue=[],n.timer=null,n.retryTimer=null,n.retryStatus="normal",n.interval=e.config.interval||2e3,n.status="idle",l.default.on(e,"bullet_remove",n.updateQueue.bind(n),"destroy");var r=n;return l.default.on(n.danmu,"changeDirection",(function(e){r.danmu.direction=e}),"destroy"),n.nums=0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":a(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"destroy",value:function(){for(var e in this.logger.info("destroy"),clearTimeout(this.dataHandleTimer),this.channel.destroy(),this.data=[],this)delete this[e]}},{key:"updateQueue",value:function(e){this.logger.info("updateQueue");var t=this;t.queue.some((function(n,r){return n.id===e.bullet.id&&(t.queue.splice(r,1),!0)}))}},{key:"init",value:function(e,t){t.logger.info("init"),t||(t=this),t.retryStatus="normal",t.data.sort((function(e,t){return e.start-t.start})),t.retryTimer||function e(){"closed"===t.status&&"stop"===t.retryStatus||("playing"===t.status&&(t.readData(),t.dataHandle()),"stop"===t.retryStatus&&"paused"!==this.status||(t.dataHandleTimer=setTimeout((function(){e()}),t.interval-1e3)))}()}},{key:"start",value:function(){this.logger.info("start"),this.status="playing",this.queue=[],this.container.innerHTML="",this.channel.resetWithCb(this.init,this)}},{key:"stop",value:function(){this.logger.info("stop"),this.status="closed",this.retryTimer=null,this.retryStatus="stop",this.channel.reset(),this.queue=[],this.container.innerHTML=""}},{key:"play",value:function(){var e=this;this.logger.info("play"),this.status="playing";var t=this.channel.channels,n=this.danmu.container.getBoundingClientRect();t&&t.length>0&&["scroll","top","bottom"].forEach((function(r){e.queue.forEach((function(e){e.startMove(n),e.resized=!0}));for(var i=0;i<t.length;i++)t[i].queue[r].forEach((function(e){e.resized=!1}))}))}},{key:"pause",value:function(){this.logger.info("pause"),this.status="paused";var e=this.channel.channels,t=this.danmu.container.getBoundingClientRect();e&&e.length>0&&this.queue.forEach((function(e){e.pauseMove(t)}))}},{key:"dataHandle",value:function(){var e=this;"paused"!==this.status&&"closed"!==this.status&&e.queue.length&&e.queue.forEach((function(t){"waiting"===t.status&&t.startMove(e.channel.containerPos)}))}},{key:"readData",value:function(){var e=this,t=this.danmu,n=0;t.player&&t.player.currentTime&&(n=l.default.formatTime(t.player.currentTime));var r=void 0,i=e.interval,o=e.channel,a=void 0;t.player?(a=e.data.filter((function(t){return!t.start&&e.danmu.hideArr.indexOf(t.mode)<0&&(!t.color||e.danmu.hideArr.indexOf("color")<0)&&(t.start=n),e.danmu.hideArr.indexOf(t.mode)<0&&(!t.color||e.danmu.hideArr.indexOf("color")<0)&&t.start-i<=n&&n<=t.start+i})),t.live&&(e.data=e.data.filter((function(e){return e.start||(e.start=n),e.start>n-3*i})))):0===(a=e.data.splice(0,1)).length&&(a=e.playedData.splice(0,1)),a.length>0&&a.forEach((function(n){e.forceDuration&&e.forceDuration!=n.duration&&(n.duration=e.forceDuration),r=new s.default(t,n),n.hasAttached||(r.attach(),n.hasAttached=!0,o.addBullet(r).result?(e.queue.push(r),e.nums++,r.topInit()):(r.detach(),n.hasAttached=!1,n.noDiscard&&(n.prior?e.data.unshift(n):e.data.push(n))))}))}}]),t}(i.default);t.default=c,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(0)),o=s(n(1));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":a(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));n.setLogger("channel"),n.danmu=e,n.reset();var r=n;return o.default.on(n.danmu,"bullet_remove",(function(e){r.removeBullet(e.bullet)}),"destroy"),n.direction=e.direction,o.default.on(n.danmu,"changeDirection",(function(e){r.direction=e}),"destroy"),n.containerPos=n.danmu.container.getBoundingClientRect(),n.containerWidth=n.containerPos.width,n.containerHeight=n.containerPos.height,n.containerLeft=n.containerPos.left,n.containerRight=n.containerPos.right,o.default.on(n.danmu,"channel_resize",(function(){r.containerPos=r.danmu.container.getBoundingClientRect(),r.resizing||(r.containerWidth=r.containerPos.width,r.containerHeight=r.containerPos.height,r.containerLeft=r.containerPos.left,r.containerRight=r.containerPos.right,r.resize(!0))}),"destroy"),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":a(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"destroy",value:function(){for(var e in this.logger.info("destroy"),clearTimeout(this.resizeTimer),clearTimeout(this.resetTimer),this.channels=[],this)delete this[e]}},{key:"resize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.logger.info("resize");var t=this.danmu.container,n=this;n.resizing||(n.resizing=!0,this.resizeTimer=setTimeout((function(){n.danmu.bulletBtn.main.status,n.danmu.bulletBtn.main.data&&n.danmu.bulletBtn.main.data.forEach((function(e){e.bookChannelId&&(delete e.bookChannelId,n.logger.info("resize导致"+e.id+"号优先弹幕预定取消"))})),n.logger.info("resize导致所有轨道恢复正常使用");var r=t.getBoundingClientRect();n.width=r.width,n.height=r.height,n.danmu.config.area&&n.danmu.config.area.start>=0&&n.danmu.config.area.end>=n.danmu.config.area.start&&("b2t"===n.direction?n.width=n.width*(n.danmu.config.area.end-n.danmu.config.area.start):n.height=n.height*(n.danmu.config.area.end-n.danmu.config.area.start)),n.container=t;var i,o=n.danmu.config.channelSize||(/mobile/gi.test(navigator.userAgent)?10:12);i="b2t"===n.direction?Math.floor(n.width/o):Math.floor(n.height/o);for(var a=[],s=0;s<i;s++)a[s]={id:s,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}};if(n.channels&&n.channels.length<=a.length){for(var l=function(t){a[t]={id:t,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}},["scroll","top"].forEach((function(r){n.channels[t].queue[r].forEach((function(i){i.el&&(a[t].queue[r].push(i),i.resized||(i.pauseMove(n.containerPos,e),"paused"!==i.danmu.bulletBtn.main.status&&i.startMove(n.containerPos),i.resized=!0))}))})),n.channels[t].queue.bottom.forEach((function(r){if(r.el){if(a[t+a.length-n.channels.length].queue.bottom.push(r),r.channel_id[0]+r.channel_id[1]-1===t){var i=[].concat(r.channel_id);r.channel_id=[i[0]-n.channels.length+a.length,i[1]],r.top=r.channel_id[0]*o,n.danmu.config.area&&n.danmu.config.area.start&&(r.top+=n.containerHeight*n.danmu.config.area.start),r.topInit()}r.resized||(r.pauseMove(n.containerPos,e),"paused"!==r.danmu.bulletBtn.main.status&&r.startMove(n.containerPos),r.resized=!0)}}))},u=0;u<n.channels.length;u++)l(u);for(var c=function(e){["scroll","top","bottom"].forEach((function(t){a[e].queue[t].forEach((function(e){e.resized=!1}))}))},d=0;d<a.length;d++)c(d);n.channels=a,"b2t"===n.direction?n.channelWidth=o:n.channelHeight=o}else if(n.channels&&n.channels.length>a.length){for(var f=function(t){a[t]={id:t,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}},["scroll","top","bottom"].forEach((function(r){if("top"===r&&t>Math.floor(a.length/2));else if("bottom"===r&&t<=Math.floor(a.length/2));else{var i="bottom"===r?t-a.length+n.channels.length:t;n.channels[i].queue[r].forEach((function(s,l){if(s.el){if(a[t].queue[r].push(s),"bottom"===r&&s.channel_id[0]+s.channel_id[1]-1===i){var u=[].concat(s.channel_id);s.channel_id=[u[0]-n.channels.length+a.length,u[1]],s.top=s.channel_id[0]*o,n.danmu.config.area&&n.danmu.config.area.start&&(s.top+=n.containerHeight*n.danmu.config.area.start),s.topInit()}s.pauseMove(n.containerPos,e),"paused"!==s.danmu.bulletBtn.main.status&&s.startMove(n.containerPos),s.resized||(s.resized=!0)}n.channels[i].queue[r].splice(l,1)}))}}))},h=0;h<a.length;h++)f(h);for(var p=function(e){["scroll","top","bottom"].forEach((function(t){a[e].queue[t].forEach((function(e){e.resized=!1}))}))},g=0;g<a.length;g++)p(g);n.channels=a,"b2t"===n.direction?n.channelWidth=o:n.channelHeight=o}n.resizing=!1}),10))}},{key:"addBullet",value:function(e){var t=this,n=this.danmu,r=this.channels,i=void 0,o=void 0,a=void 0;if("b2t"===t.direction?(o=this.channelWidth,a=Math.ceil(e.width/o)):(i=this.channelHeight,a=Math.ceil(e.height/i)),a>r.length)return{result:!1,message:"exceed channels.length, occupy="+a+",channelsSize="+r.length};for(var s=!0,l=void 0,u=-1,c=0,d=r.length;c<d;c++)if(r[c].queue[e.mode].some((function(t){return t.id===e.id})))return{result:!1,message:"exsited, channelOrder="+c+",danmu_id="+e.id};if("scroll"===e.mode)for(var f=0,h=r.length-a;f<=h;f++){s=!0;for(var p=f;p<f+a;p++){if((l=r[p]).operating.scroll){s=!1;break}if((l.bookId.scroll||e.prior)&&l.bookId.scroll!==e.id){s=!1;break}l.operating.scroll=!0;var g=l.queue.scroll[0];if(g){var v=g.el.getBoundingClientRect();if("b2t"===t.direction){if(v.bottom>t.containerPos.bottom){s=!1,l.operating.scroll=!1;break}}else if(v.right>t.containerPos.right){s=!1,l.operating.scroll=!1;break}var y,m=void 0,b=void 0,x=void 0,_=void 0;if("b2t"===t.direction?(b=(v.top-t.containerPos.top+v.height)/(m=(t.containerPos.height+v.height)/g.duration),x=t.containerPos.height,_=(t.containerPos.height+e.height)/e.duration):(b=(v.left-t.containerPos.left+v.width)/(m=(t.containerPos.width+v.width)/g.duration),x=t.containerPos.width,_=(t.containerPos.width+e.width)/e.duration),y=x/_,n.config.bOffset||(n.config.bOffset=0),m<_&&b+n.config.bOffset>y){s=!1,l.operating.scroll=!1;break}}l.operating.scroll=!1}if(s){u=f;break}}else if("top"===e.mode)for(var w=0,S=r.length-a;w<=S;w++){s=!0;for(var k=w;k<w+a;k++){if(k>Math.floor(r.length/2)){s=!1;break}if((l=r[k]).operating[e.mode]){s=!1;break}if((l.bookId[e.mode]||e.prior)&&l.bookId[e.mode]!==e.id){s=!1;break}if(l.operating[e.mode]=!0,l.queue[e.mode].length>0){s=!1,l.operating[e.mode]=!1;break}l.operating[e.mode]=!1}if(s){u=w;break}}else if("bottom"===e.mode)for(var O=r.length-a;O>=0;O--){s=!0;for(var T=O;T<O+a;T++){if(T<=Math.floor(r.length/2)){s=!1;break}if((l=r[T]).operating[e.mode]){s=!1;break}if((l.bookId[e.mode]||e.prior)&&l.bookId[e.mode]!==e.id){s=!1;break}if(l.operating[e.mode]=!0,l.queue[e.mode].length>0){s=!1,l.operating[e.mode]=!1;break}l.operating[e.mode]=!1}if(s){u=O;break}}if(-1!==u){for(var E=u,C=u+a;E<C;E++)(l=r[E]).operating[e.mode]=!0,l.queue[e.mode].unshift(e),e.prior&&(delete l.bookId[e.mode],t.logger.info(E+"号轨道恢复正常使用")),l.operating[e.mode]=!1;return e.prior&&(t.logger.info(e.id+"号优先弹幕运行完毕"),delete e.bookChannelId,n.player&&n.bulletBtn.main.data.some((function(t){return t.id===e.id&&(delete t.bookChannelId,!0)}))),e.channel_id=[u,a],"b2t"===t.direction?(e.top=u*o,t.danmu.config.area&&t.danmu.config.area.start&&(e.top+=t.containerWidth*t.danmu.config.area.start)):(e.top=u*i,t.danmu.config.area&&t.danmu.config.area.start&&(e.top+=t.containerHeight*t.danmu.config.area.start)),{result:e,message:"success"}}if(e.options.realTime){var A=0,M=null;if(t.danmu.bulletBtn.main.queue.forEach((function(e,n){e.el&&e.el.getBoundingClientRect().right>t.containerPos.right&&e.start>=A&&(A=e.start,M=e)})),M){e.channel_id=M.channel_id;for(var L=M.channel_id[0],I=M.channel_id[0]+M.channel_id[1];L<I;L++)(l=r[L]).operating[e.mode]=!0,l.queue[e.mode].unshift(e),e.prior&&delete l.bookId[e.mode],l.operating[e.mode]=!1;return e.top=M.top,t.danmu.config.area&&t.danmu.config.area.start&&(e.top+=t.containerHeight*t.danmu.config.area.start),{result:e,message:"success"}}}if(e.prior)if(e.bookChannelId)n.player&&n.bulletBtn.main.data.some((function(n){return n.id===e.id&&(t.logger.info(e.id+"号优先弹幕将于2秒后再次请求注册"),n.start+=2e3,!0)}));else{u=-1;for(var D=0,j=r.length-a;D<=j;D++){s=!0;for(var P=D;P<D+a;P++)if(r[P].bookId[e.mode]){s=!1;break}if(s){u=D;break}}if(-1!==u){for(var R=u;R<u+a;R++)r[R].bookId[e.mode]=e.id,t.logger.info(R+"号轨道被"+e.id+"号优先弹幕预定");n.player&&n.bulletBtn.main.data.some((function(n){return n.id===e.id&&(t.logger.info(e.id+"号优先弹幕将于2秒后再次请求注册"),n.start+=2e3,n.bookChannelId=[u,a],t.logger.info(e.id+"号优先弹幕预定了"+u+"~"+(u+a-1)+"号轨道"),!0)}))}}return{result:!1,message:"no surplus will right"}}},{key:"removeBullet",value:function(e){this.logger.info("removeBullet "+(e.options.txt||"[DOM Element]"));for(var t=this.channels,n=e.channel_id,r=void 0,i=n[0],o=n[0]+n[1];i<o;i++)if(r=t[i]){r.operating[e.mode]=!0;var a=-1;r.queue[e.mode].some((function(t,n){return t.id===e.id&&(a=n,!0)})),a>-1&&r.queue[e.mode].splice(a,1),r.operating[e.mode]=!1}e.options.loop&&this.danmu.bulletBtn.main.playedData.push(e.options)}},{key:"resetArea",value:function(){this.logger.info("resetArea");var e=this.danmu.container,t=this,n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,t.danmu.config.area&&t.danmu.config.area.start>=0&&t.danmu.config.area.end>=t.danmu.config.area.start&&("b2t"===t.direction?t.width=t.width*(t.danmu.config.area.end-t.danmu.config.area.start):t.height=t.height*(t.danmu.config.area.end-t.danmu.config.area.start)),t.container=e;var r,i=t.danmu.config.channelSize||(/mobile/gi.test(navigator.userAgent)?10:12);r="b2t"===t.direction?Math.floor(t.width/i):Math.floor(t.height/i);for(var o=[],a=0;a<r;a++)o[a]={id:a,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}};if(t.channels&&t.channels.length<=o.length){for(var s=function(e){o[e]={id:e,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}},["scroll","top"].forEach((function(n){t.channels[e].queue[n].forEach((function(r){r.el&&(o[e].queue[n].push(r),r.resized||(r.pauseMove(t.containerPos,!1),r.startMove(t.containerPos),r.resized=!0))}))})),t.channels[e].queue.bottom.forEach((function(n){if(n.el){if(o[e+o.length-t.channels.length].queue.bottom.push(n),n.channel_id[0]+n.channel_id[1]-1===e){var r=[].concat(n.channel_id);n.channel_id=[r[0]-t.channels.length+o.length,r[1]],n.top=n.channel_id[0]*i,t.danmu.config.area&&t.danmu.config.area.start&&(n.top+=t.containerHeight*t.danmu.config.area.start),n.topInit()}n.resized||(n.pauseMove(t.containerPos,!1),n.startMove(t.containerPos),n.resized=!0)}}))},l=0;l<t.channels.length;l++)s(l);for(var u=function(e){["scroll","top","bottom"].forEach((function(t){o[e].queue[t].forEach((function(e){e.resized=!1}))}))},c=0;c<o.length;c++)u(c);t.channels=o,"b2t"===t.direction?t.channelWidth=i:t.channelHeight=i}else if(t.channels&&t.channels.length>o.length){for(var d=function(e){o[e]={id:e,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}},["scroll","top","bottom"].forEach((function(n){if("top"===n&&e>Math.floor(o.length/2));else if("bottom"===n&&e<=Math.floor(o.length/2));else{var r="bottom"===n?e-o.length+t.channels.length:e;t.channels[r].queue[n].forEach((function(a,s){if(a.el){if(o[e].queue[n].push(a),"bottom"===n&&a.channel_id[0]+a.channel_id[1]-1===r){var l=[].concat(a.channel_id);a.channel_id=[l[0]-t.channels.length+o.length,l[1]],a.top=a.channel_id[0]*i,t.danmu.config.area&&t.danmu.config.area.start&&(a.top+=t.containerHeight*t.danmu.config.area.start),a.topInit()}a.resized||(a.pauseMove(t.containerPos,!1),a.startMove(t.containerPos),a.resized=!0)}t.channels[r].queue[n].splice(s,1)}))}}))},f=0;f<o.length;f++)d(f);for(var h=function(e){["scroll","top","bottom"].forEach((function(t){o[e].queue[t].forEach((function(e){e.resized=!1}))}))},p=0;p<o.length;p++)h(p);t.channels=o,"b2t"===t.direction?t.channelWidth=i:t.channelHeight=i}}},{key:"reset",value:function(){this.logger.info("reset");var e=this.danmu.container,t=this;t.danmu.bulletBtn&&t.danmu.bulletBtn.main&&t.danmu.bulletBtn.main.queue.forEach((function(e){e.pauseMove(t.containerPos),e.remove()})),t.channels&&t.channels.length>0&&["scroll","top","bottom"].forEach((function(e){for(var n=0;n<t.channels.length;n++)t.channels[n].queue[e].forEach((function(e){e.pauseMove(t.containerPos),e.remove()}))})),this.resetTimer=setTimeout((function(){var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,t.danmu.config.area&&t.danmu.config.area.start>=0&&t.danmu.config.area.end>=t.danmu.config.area.start&&("b2t"===t.direction?t.width=t.width*(t.danmu.config.area.end-t.danmu.config.area.start):t.height=t.height*(t.danmu.config.area.end-t.danmu.config.area.start)),t.container=e;var r,i=t.danmu.config.channelSize||(/mobile/gi.test(navigator.userAgent)?10:12);r="b2t"===t.direction?Math.floor(t.width/i):Math.floor(t.height/i);for(var o=[],a=0;a<r;a++)o[a]={id:a,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}};t.channels=o,"b2t"===t.direction?t.channelWidth=i:t.channelHeight=i}),200)}},{key:"resetWithCb",value:function(e,t){this.logger.info("resetWithCb");var n=this.danmu.container,r=this;r.channels&&r.channels.length>0&&["scroll","top","bottom"].forEach((function(e){for(var t=0;t<r.channels.length;t++)r.channels[t].queue[e].forEach((function(e){e.pauseMove(r.containerPos),e.remove()}))}));var i=n.getBoundingClientRect();r.width=i.width,r.height=i.height,r.danmu.config.area&&r.danmu.config.area.start>=0&&r.danmu.config.area.end>=r.danmu.config.area.start&&("b2t"===r.direction?r.width=r.width*(r.danmu.config.area.end-r.danmu.config.area.start):r.height=r.height*(r.danmu.config.area.end-r.danmu.config.area.start)),r.container=n;var o,a=r.danmu.config.channelSize||(/mobile/gi.test(navigator.userAgent)?10:12);o="b2t"===r.direction?Math.floor(r.width/a):Math.floor(r.height/a);for(var s=[],l=0;l<o;l++)s[l]={id:l,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}};r.channels=s,r.channelHeight=a,e&&e(!0,t)}}]),t}(i.default);t.default=l,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(0)),o=s(n(1));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":a(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));r.setLogger("bullet"),r.danmu=e,r.options=n,r.duration=n.duration,r.moveV=n.moveV,r.id=n.id,r.container=e.container,r.start=n.start,r.prior=n.prior,r.color=n.color,r.bookChannelId=n.bookChannelId,r.direction=e.direction;var i=r;r.onChangeDirection=function(e){i.direction=e},r.danmu.on("changeDirection",r.onChangeDirection);var s=void 0;if(r.domObj=e.domObj,n.el&&1===n.el.nodeType)(s=r.domObj.use()).appendChild(o.default.copyDom(n.el));else if((s=r.domObj.use()).textContent=n.txt,n.style){var l=n.style;Object.keys(l).forEach((function(e){s.style[e]=l[e]}))}"top"===n.mode||"bottom"===n.mode?r.mode=n.mode:r.mode="scroll",r.el=s,n.like&&n.like.el&&r.setLikeDom(n.like.el,n.like.style),r.status="waiting";var u=r.container.getBoundingClientRect(),c=Math.floor(Math.random()*(u.width/10>100?200:u.width/10));return n.realTime&&(c=0),r.el.style.left=u.width+c+"px",r.containerPos=u,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":a(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"attach",value:function(){if(this.container.appendChild(this.el),this.elPos=this.el.getBoundingClientRect(),"b2t"===this.direction?(this.width=this.elPos.height,this.height=this.elPos.width):(this.width=this.elPos.width,this.height=this.elPos.height),this.moveV){var e=this.containerPos;this.duration=(e.width+this.width)/this.moveV*1e3}this.danmu.config.mouseControl&&this.el.addEventListener("mouseover",this.mouseoverFun.bind(this))}},{key:"mouseoverFun",value:function(e){this.danmu.mouseControl&&this.danmu.config.mouseControlPause||"waiting"===this.status||"end"===this.status||this.danmu.emit("bullet_hover",{bullet:this,event:e})}},{key:"detach",value:function(){this.container&&this.el&&this.domObj.unuse(this.el),this.danmu.off("changeDirection",this.onChangeDirection)}},{key:"topInit",value:function(){if(this.logger.info("topInit #"+(this.options.txt||"[DOM Element]")+"#"),"b2t"===this.direction){var e=this.containerPos;this.el.style.transformOrigin="left top",this.el.style.transform="translateX(-"+this.top+"px) translateY("+e.height+"px) translateZ(0px) rotate(90deg)",this.el.style.transition="transform 0s linear 0s"}else this.el.style.top=this.top+"px"}},{key:"pauseMove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.logger.info("pauseMove #"+(this.options.txt||"[DOM Element]")+"#");var n=this;if("paused"!==this.status&&("forcedPause"!==n.status&&(this.status="paused"),clearTimeout(n.removeTimer),this.el))if(this.el.style.willChange="auto","scroll"===this.mode){if(t){var r=((new Date).getTime()-n.moveTime)/1e3,i=r*this.moveV,o=0;o=n.moveMoreS-i>=0?"b2t"===this.direction?(n.moveMoreS-i)/n.moveContainerHeight*e.height:(n.moveMoreS-i)/n.moveContainerWidth*e.width:n.moveMoreS-i,"b2t"===this.direction?this.el.style.transform="translateX(-"+this.top+"px) translateY("+o+"px) translateZ(0px) rotate(90deg)":this.el.style.left=o+"px"}else"b2t"===this.direction?this.el.style.transform="translateX(-"+this.top+"px) translateY("+(this.el.getBoundingClientRect().top-e.top)+"px) translateZ(0px) rotate(90deg)":this.el.style.left=this.el.getBoundingClientRect().left-e.left+"px";"b2t"===this.direction||(this.el.style.transform="translateX(0px) translateY(0px) translateZ(0px)"),this.el.style.transition="transform 0s linear 0s"}else this.pastDuration&&this.startTime?this.pastDuration=this.pastDuration+(new Date).getTime()-this.startTime:this.pastDuration=1}},{key:"startMove",value:function(e,t){this.logger.info("startMove #"+(this.options.txt||"[DOM Element]")+"#");var n=this;if(n.hasMove||(n.danmu.emit("bullet_start",n),n.hasMove=!0),("forcedPause"!==n.status||t)&&this.el&&"start"!==this.status)if(this.status="start",this.el.style.willChange="transform","scroll"===this.mode)if("b2t"===this.direction){this.moveV=(e.height+this.height)/this.duration*1e3;var r=(n.el.getBoundingClientRect().bottom-e.top)/this.moveV;this.el.style.transition="transform "+r+"s linear 0s",this.startMoveTimer=setTimeout((function(){n.el&&(n.el.style.transform="translateX(-"+n.top+"px) translateY(-"+n.height+"px) translateZ(0px) rotate(90deg)",n.moveTime=(new Date).getTime(),n.moveMoreS=n.el.getBoundingClientRect().top-e.top,n.moveContainerHeight=e.height,n.removeTimer=setTimeout(a,1e3*r))}),20)}else{this.moveV=(e.width+this.width)/this.duration*1e3;var i=(n.el.getBoundingClientRect().right-e.left)/this.moveV;this.el.style.transition="transform "+i+"s linear 0s",this.startMoveTimer=setTimeout((function(){n.el&&(n.el.style.transform="translateX(-"+(n.el.getBoundingClientRect().right-e.left)+"px) translateY(0px) translateZ(0px)",n.moveTime=(new Date).getTime(),n.moveMoreS=n.el.getBoundingClientRect().left-e.left,n.moveContainerWidth=e.width,n.removeTimer=setTimeout(a,1e3*i))}),20)}else{this.el.style.left="50%",this.el.style.margin="0 0 0 -"+this.width/2+"px",this.pastDuration||(this.pastDuration=1);var o=this.duration>=this.pastDuration?this.duration-this.pastDuration:0;this.removeTimer=setTimeout(a,o),this.startTime=(new Date).getTime()}function a(){if(n.el)if("scroll"===n.mode){var e=n.containerPos,t=n.el.getBoundingClientRect();"b2t"===n.direction?t&&t.bottom<=e.top+100?(n.status="end",n.remove()):(n.pauseMove(e),"paused"!==n.danmu.bulletBtn.main.status&&n.startMove(e)):t&&t.right<=e.left+100?(n.status="end",n.remove()):(n.pauseMove(e),"paused"!==n.danmu.bulletBtn.main.status&&n.startMove(e))}else n.status="end",n.remove()}}},{key:"remove",value:function(){this.logger.info("remove #"+(this.options.txt||"[DOM Element]")+"#"),this.removeTimer&&clearTimeout(this.removeTimer),this.startMoveTimer&&clearTimeout(this.startMoveTimer),this.el&&this.el.parentNode&&(this.el.style.willChange="auto",this.danmu.off("changeDirection",this.onChangeDirection),this.domObj.unuse(this.el),this.el.parentNode.removeChild(this.el),this.el=null,this.danmu.emit("bullet_remove",{bullet:this}))}},{key:"setFontSize",value:function(e){this.el&&(this.el.style.fontSize=e)}},{key:"setLikeDom",value:function(e,t){if(e&&(Object.keys(t).forEach((function(n){e.style[n]=t[n]})),e.className="danmu-like",this.el)){var n=this.el.querySelector(".danmu-like");n&&this.el.removeChild(n),this.el.innerHTML=""+this.el.innerHTML+e.outerHTML}return e}}]),t}(i.default);t.default=l,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t={initDOM:function(){return document.createElement("div")},initSize:10},this.init(t)}return r(e,[{key:"init",value:function(e){this.idleList=[],this.usingList=[],this._id=0,this.options=e,this._expand(e.initSize)}},{key:"use",value:function(){this.idleList.length||this._expand(1);var e=this.idleList.shift();return this.usingList.push(e),e}},{key:"unuse",value:function(e){var t=this.usingList.indexOf(e);t<0||(this.usingList.splice(t,1),e.innerHTML="",e.textcontent="",e.style="",this.idleList.push(e))}},{key:"_expand",value:function(e){for(var t=0;t<e;t++)this.idleList.push(this.options.initDOM(this._id++))}},{key:"destroy",value:function(){for(var e=0;e<this.idleList.length;e++)this.idleList[e].innerHTML="",this.idleList[e].textcontent="",this.idleList[e].style="";for(var t=0;t<this.usingList.length;t++)this.usingList[t].innerHTML="",this.usingList[t].textcontent="",this.usingList[t].style="";for(var n in this)delete this[n]}}]),e}();t.default=i,e.exports=t.default},function(e){e.exports=JSON.parse('{"version":"0.2.23"}')},function(e,t,n){var r=n(34);"string"==typeof r&&(r=[[e.i,r,""]]),n(36)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(35)(!1)).push([e.i,".danmu{overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;-ms-user-select:none}.danmu>*{position:absolute;white-space:nowrap}.danmu-switch{width:32px;height:20px;border-radius:100px;background-color:#ccc;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;cursor:pointer;position:relative;text-align:center;margin:10px auto}.danmu-switch.danmu-switch-active{padding-left:12px;background-color:#f85959}.danmu-switch span.txt{width:20px;height:20px;line-height:20px;text-align:center;display:block;border-radius:100px;background-color:#ffffff;-webkit-box-shadow:-2px 0 0 0 rgba(0, 0, 0, .04);box-shadow:-2px 0 0 0 rgba(0, 0, 0, .04);font-family:PingFangSC;font-size:10px;font-weight:500;color:#f44336}\n",""])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r=e[1]||"",i=e[3];if(!i)return r;if(t&&"function"==typeof btoa){var o=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),a=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}));return[r].concat(a).concat([o]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r,i,o={},s=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),l=function(e){return document.querySelector(e)},u=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=l.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),c=null,d=0,f=[],h=n(37);function p(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=o[r.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](r.parts[a]);for(;a<r.parts.length;a++)i.parts.push(x(r.parts[a],t))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(x(r.parts[a],t));o[r.id]={id:r.id,refs:1,parts:s}}}}function g(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function v(e,t){var n=u(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=f[f.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),f.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=a(e.insertAt)||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=u(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,i)}}function y(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=f.indexOf(e);t>=0&&f.splice(t,1)}function m(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),b(t,e.attrs),v(e,t),t}function b(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function x(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var a=d++;n=c||(c=m(t)),r=S.bind(null,n,a,!1),i=S.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",b(t,e.attrs),v(e,t),t}(t),r=O.bind(null,n,t),i=function(){y(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(t),r=k.bind(null,n),i=function(){y(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=("undefined"==typeof document?"undefined":a(document)))throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==a(t.attrs)?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=s()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=g(e,t);return p(n,t),function(e){for(var r=[],i=0;i<n.length;i++){var a=n[i];(s=o[a.id]).refs--,r.push(s)}for(e&&p(g(e,t),t),i=0;i<r.length;i++){var s;if(0===(s=r[i]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete o[s.id]}}}};var _,w=(_=[],function(e,t){return _[e]=t,_.filter(Boolean).join("\n")});function S(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function k(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function O(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=h(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}}])},"object"==a(t)&&"object"==a(e)?e.exports=o():(r=[],void 0===(i="function"==typeof(n=o)?n.apply(t,r):n)||(e.exports=i))}).call(this,n(100)(e))},function(e,t,n){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40">\n <path fill="#f85959" transform="scale(0.8 0.8)" d="M36.5,18.73a1.19,1.19,0,0,0,1-1.14V16.33a1.2,1.2,0,0,0-1-1.13l-.61-.08a1.75,1.75,0,0,1-1.3-.86l-.21-.36-.2-.36A1.72,1.72,0,0,1,34,12l.23-.58a1.18,1.18,0,0,0-.5-1.42l-1.1-.62a1.18,1.18,0,0,0-1.47.3l-.39.51a1.82,1.82,0,0,1-1.41.72c-.44,0-1.88-.27-2.22-.7l-.39-.49a1.18,1.18,0,0,0-1.48-.28l-1.09.64a1.19,1.19,0,0,0-.47,1.43l.25.59a1.87,1.87,0,0,1-.08,1.58c-.26.37-1.17,1.5-1.71,1.58l-.63.09a1.19,1.19,0,0,0-1,1.14l0,1.27a1.17,1.17,0,0,0,1,1.12l.61.08a1.74,1.74,0,0,1,1.3.87l.21.36.2.35A1.69,1.69,0,0,1,24,22.08l-.23.59a1.19,1.19,0,0,0,.5,1.42l1.1.62a1.19,1.19,0,0,0,1.48-.31l.38-.5a1.83,1.83,0,0,1,1.41-.72c.44,0,1.88.25,2.22.69l.39.49a1.18,1.18,0,0,0,1.48.28L33.86,24a1.19,1.19,0,0,0,.47-1.43L34.09,22a1.84,1.84,0,0,1,.07-1.58c.26-.37,1.17-1.5,1.72-1.58ZM31,18.94a2.76,2.76,0,0,1-4.65-1.2A2.71,2.71,0,0,1,27,15.13a2.76,2.76,0,0,1,4.64,1.2A2.7,2.7,0,0,1,31,18.94Z"/>\n <path fill="#f85959" transform="scale(0.8 0.8)" d="M32,0H3.59A3.59,3.59,0,0,0,0,3.59v17A3.59,3.59,0,0,0,3.59,24.2H19.72a12.59,12.59,0,0,1-.81-1.2A11.73,11.73,0,0,1,35.54,7.28V3.59A3.59,3.59,0,0,0,32,0ZM13,14.18H4.29a1.52,1.52,0,0,1,0-3H13a1.52,1.52,0,0,1,0,3ZM16.45,8H4.29a1.51,1.51,0,0,1,0-3H16.45a1.51,1.51,0,1,1,0,3Z"/>\n</svg>\n'},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("s_pip",(function(){var e=this,t=o.default.util;if(e.config.pip){var n=e.lang.PIP,r=t.createDom("xg-pip",'<p class="name"><span>'+n+"</span></p>",{tabindex:9},"xgplayer-pip");e.once("ready",(function(){e.controls.appendChild(r)})),["click","touchend"].forEach((function(t){r.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),e.emit("pipBtnClick")}))}))}}))},function(e,t,n){"use strict";var r=o(n(0)),i=o(n(104));function o(e){return e&&e.__esModule?e:{default:e}}r.default.install("s_playNext",(function(){var e=this,t=r.default.util,n=e.config.playNext;if(n&&n.urlList){var o=t.createDom("xg-playnext",'<xg-icon class="xgplayer-icon">'+i.default+"</xg-icon>",{},"xgplayer-playnext"),a=e.lang.PLAYNEXT_TIPS,s=t.createDom("xg-tips",'<span class="xgplayer-tip-playnext">'+a+"</span>",{},"xgplayer-tips");o.appendChild(s),e.once("ready",(function(){e.controls.appendChild(o)})),["click","touchend"].forEach((function(t){o.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),r.default.util.addClass(e.root,"xgplayer-is-enter"),e.emit("playNextBtnClick")}))}));var l=function(){r.default.util.addClass(e.root,"xgplayer-playnext-inactive")};e.on("urlListEnd",l),e.once("destroy",(function t(){e.off("urlListEnd",l),e.off("destroy",t)}))}}))},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">\n <path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>\n</svg>\n'},function(e,t,n){"use strict";var r=o(n(0)),i=o(n(106));function o(e){return e&&e.__esModule?e:{default:e}}r.default.install("s_rotate",(function(){var e=this,t=r.default.util;if(e.config.rotate){var n=t.createDom("xg-rotate",'<xg-icon class="xgplayer-icon">'+i.default+"</xg-icon>",{},"xgplayer-rotate"),o=e.lang.ROTATE_TIPS,a=t.createDom("xg-tips",'<span class="xgplayer-tip-rotate">'+o+"</span>",{},"xgplayer-tips");n.appendChild(a),e.once("ready",(function(){e.controls.appendChild(n)})),["click","touchend"].forEach((function(t){n.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),e.emit("rotateBtnClick")}))}))}}))},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 40 40" fill="none">\n <g clip-path="url(#clip0)">\n <path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"/>\n <path transform="scale(1.5 1.5)" fill-rule="evenodd" clip-rule="evenodd" d="M3.88148 4.06298C3.75371 4.21005 3.67667 4.40231 3.67749 4.61242C3.67847 4.87253 3.79852 5.10435 3.98581 5.25646L6.99111 8.05895C7.32771 8.37283 7.85502 8.35443 8.16891 8.01782C8.48279 7.68122 8.46437 7.15391 8.12778 6.84003L6.62061 5.43457L9.8198 5.4224C9.82848 5.42239 9.8372 5.42221 9.84591 5.4219C10.9714 5.38233 12.0885 5.6285 13.0931 6.13744C14.0976 6.64635 14.957 7.40148 15.5908 8.33234C16.2246 9.2632 16.6122 10.3394 16.7177 11.4606C16.823 12.5819 16.6427 13.7115 16.1934 14.7442C16.0098 15.1661 16.203 15.6571 16.6251 15.8408C17.0471 16.0243 17.5381 15.8311 17.7216 15.4091C18.2833 14.1183 18.5087 12.7063 18.3771 11.3047C18.2453 9.90318 17.7607 8.55792 16.9684 7.39433C16.1761 6.23073 15.1021 5.28683 13.8463 4.65065C12.5946 4.01651 11.203 3.70872 9.80072 3.75583L6.43415 3.76862L7.96326 2.12885C8.27715 1.79225 8.25872 1.26494 7.92213 0.951061C7.58553 0.63718 7.05822 0.655585 6.74433 0.99219L3.90268 4.0395C3.89545 4.04724 3.88841 4.05509 3.88154 4.06303L3.88148 4.06298Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0">\n <rect width="40" height="40" fill="white"/>\n </clipPath>\n </defs>\n</svg>\n'},function(e,t,n){"use strict";var r=o(n(0)),i=o(n(108));function o(e){return e&&e.__esModule?e:{default:e}}r.default.install("s_reload",(function(){var e=this,t=r.default.util;if(e.config.reload){var n=t.createDom("xg-reload",'<xg-icon class="xgplayer-icon">'+i.default+"</xg-icon>",{},"xgplayer-reload"),o=e.lang.RELOAD_TIPS,a=t.createDom("xg-tips",'<span class="xgplayer-tip-reload">'+o+"</span>",{},"xgplayer-tips");n.appendChild(a),e.once("ready",(function(){e.controls.appendChild(n)})),["click","touchend"].forEach((function(t){n.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),e.emit("reloadBtnClick")}))}))}}))},function(e,t,n){"use strict";n.r(t),t.default='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28">\n <path fill="#FFF" fill-opacity="1" fill-rule="nonzero" d="M18.17 19.988a7.182 7.182 0 0 1-4.256 1.318 7.806 7.806 0 0 1-.595-.03c-.08-.008-.16-.021-.242-.031a8.004 8.004 0 0 1-.458-.071c-.094-.018-.185-.042-.276-.063a7.743 7.743 0 0 1-.439-.113c-.068-.022-.136-.047-.205-.07a7.03 7.03 0 0 1-.492-.181c-.037-.015-.072-.032-.108-.049a7.295 7.295 0 0 1-.554-.269l-.025-.012a7.347 7.347 0 0 1-2.111-1.753c-.03-.036-.057-.074-.086-.11a7.305 7.305 0 0 1-1.594-4.557h1.686a.123.123 0 0 0 .108-.064.119.119 0 0 0-.006-.125L5.684 9.532a.123.123 0 0 0-.103-.056.123.123 0 0 0-.102.056l-2.834 4.276a.121.121 0 0 0-.005.125c.022.04.064.064.107.064h1.687c0 2.025.627 3.902 1.693 5.454.013.021.022.044.037.066.11.159.233.305.352.455.043.057.085.116.13.171.175.213.36.413.55.61.02.018.036.038.054.055a9.447 9.447 0 0 0 2.91 1.996c.058.026.115.054.175.079.202.084.41.158.619.228.098.034.196.069.296.1.183.054.37.1.558.145.125.029.249.06.376.085.052.01.102.027.155.035.177.032.355.05.533.071.064.007.128.018.19.026.32.03.639.052.956.052a9.46 9.46 0 0 0 5.47-1.746 1.16 1.16 0 0 0 .282-1.608 1.143 1.143 0 0 0-1.6-.283zm5.397-5.991a9.604 9.604 0 0 0-1.685-5.441c-.016-.027-.026-.054-.043-.078-.132-.19-.276-.366-.419-.543-.017-.022-.032-.044-.05-.065a9.467 9.467 0 0 0-3.571-2.7l-.114-.051a11.2 11.2 0 0 0-.673-.248c-.082-.027-.163-.057-.247-.082a9.188 9.188 0 0 0-.6-.156c-.113-.026-.224-.055-.337-.077-.057-.011-.109-.028-.164-.037-.151-.027-.304-.039-.455-.058-.104-.013-.208-.03-.313-.04a10.05 10.05 0 0 0-.759-.039c-.045 0-.09-.007-.136-.007l-.025.003a9.45 9.45 0 0 0-5.46 1.737 1.16 1.16 0 0 0-.284 1.608c.363.523 1.08.65 1.6.284a7.182 7.182 0 0 1 4.222-1.32c.217.002.429.013.639.033.065.007.129.017.193.025.173.021.344.046.513.08.075.014.149.033.221.05.166.037.331.077.494.127l.152.051c.185.061.366.127.545.201l.054.025a7.308 7.308 0 0 1 2.741 2.067l.013.018a7.302 7.302 0 0 1 1.652 4.633h-1.686a.123.123 0 0 0-.108.064.12.12 0 0 0 .006.124l2.834 4.277c.022.033.06.054.103.054.042 0 .08-.021.102-.054l2.833-4.277a.12.12 0 0 0 .005-.124.123.123 0 0 0-.108-.064h-1.685z"/>\n</svg>\n'},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("s_screenShot",(function(){var e=this,t=o.default.util;if(e.config.screenShot){var n=e.lang.SCREENSHOT,r=t.createDom("xg-screenshot",'<p class="name"><span>'+n+"</span></p>",{tabindex:11},"xgplayer-screenshot");e.once("ready",(function(){e.controls.appendChild(r)})),["click","touchend"].forEach((function(t){r.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),e.emit("screenShotBtnClick")}))}))}}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("s_textTrack",(function(){if(this.config.textTrack){var e=this,t=e.root,n=o.default.util,r=(o.default.sniffer,e.controls,n.createDom("xg-texttrack","",{tabindex:7},"xgplayer-texttrack")),i=e.config.textTrack;i&&Array.isArray(i)&&i.length>0&&(n.addClass(e.root,"xgplayer-is-texttrack"),e.once("canplay",(function(){var o=this,a=["<ul>"];a.push("<li class='"+(this.textTrackShowDefault?"":"selected")+"'}'>"+e.lang.OFF+"</li>"),i.forEach((function(e){a.push("<li class='"+(e.default&&o.textTrackShowDefault?"selected":"")+"'>"+e.label+"</li>")}));var s=e.lang.TEXTTRACK;a.push('</ul><p class="name">'+s+"</p>");var l=t.querySelector(".xgplayer-texttrack");if(l){l.innerHTML=a.join("");var u=l.querySelector(".name");e.config.textTrackActive&&"hover"!==e.config.textTrackActive||u.addEventListener("mouseenter",(function(e){e.preventDefault(),e.stopPropagation(),n.addClass(t,"xgplayer-texttrack-active"),l.focus()}))}else{r.innerHTML=a.join("");var c=r.querySelector(".name");e.config.textTrackActive&&"hover"!==e.config.textTrackActive||c.addEventListener("mouseenter",(function(t){t.preventDefault(),t.stopPropagation(),n.addClass(e.root,"xgplayer-texttrack-active"),r.focus()})),e.controls.appendChild(r)}}))),["touchend","click"].forEach((function(t){r.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation();var o=t.target||t.srcElement;if(o&&"li"===o.tagName.toLocaleLowerCase()){Array.prototype.forEach.call(o.parentNode.childNodes,(function(e){n.removeClass(e,"selected")})),n.addClass(o,"selected");var a=e.root.getElementsByTagName("Track");o.innerHTML===e.lang.OFF?(a[0].track.mode="hidden",a[0].src="",n.removeClass(e.root,"xgplayer-texttrack-active")):(a[0].style.display="block",n.addClass(e.root,"xgplayer-texttrack-active"),a[0].track.mode="showing",i.some((function(e){if(e.label===o.innerHTML)return a[0].src=e.src,e.kind&&(a[0].kind=e.kind),a[0].label=e.label,e.srclang&&(a[0].srclang=e.srclang),!0})),e.emit("textTrackChange",o.innerHTML))}else"click"!==e.config.textTrackActive||!o||"p"!==o.tagName.toLocaleLowerCase()&&"em"!==o.tagName.toLocaleLowerCase()||(n.addClass(e.root,"xgplayer-texttrack-active"),r.focus())}),!1)})),e.on("play",(function(){var r=t.querySelector(".xgplayer-texttrack ul"),o=t.getElementsByTagName("Track");e.hls&&r&&o&&(o[0].src="",Array.prototype.forEach.call(r.childNodes,(function(t){n.hasClass(t,"selected")&&(t.innerHTML===e.lang.OFF?(o[0].track.mode="hidden",o[0].src=""):(o[0].track.mode="hidden",i.some((function(e){if(e.label!==t.innerHTML)return o[0].src=e.src,e.kind&&(o[0].kind=e.kind),o[0].label=e.label,e.srclang&&(o[0].srclang=e.srclang),!0})),i.some((function(e){if(e.label===t.innerHTML)return setTimeout((function(){o[0].src=e.src,e.kind&&(o[0].kind=e.kind),o[0].label=e.label,e.srclang&&(o[0].srclang=e.srclang),o[0].track.mode="showing"})),!0}))))})),n.removeClass(e.root,"xgplayer-texttrack-active"))})),r.addEventListener("mouseleave",(function(t){t.preventDefault(),t.stopPropagation(),n.removeClass(e.root,"xgplayer-texttrack-active")}))}}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("s_error",(function(){var e=this,t=e.root,n=o.default.util,r=n.createDom("xg-error",'<span class="xgplayer-error-text">请<span class="xgplayer-error-refresh">刷新</span>试试</span>',{},"xgplayer-error");e.once("ready",(function(){t.appendChild(r)}));var i=r.querySelector(".xgplayer-error-text"),a=null;function s(){e.config.lang&&"zh-cn"===e.config.lang?i.innerHTML=e.config.errorTips||'请<span class="xgplayer-error-refresh">刷新</span>试试':i.innerHTML=e.config.errorTips||'please try to <span class="xgplayer-error-refresh">refresh</span>',n.addClass(e.root,"xgplayer-is-error"),(a=r.querySelector(".xgplayer-error-refresh"))&&["touchend","click"].forEach((function(t){a.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),e.autoplay=!0,e.once("playing",(function(){n.removeClass(e.root,"xgplayer-is-error")})),e.src=e.config.url}))}))}e.on("error",s),e.once("destroy",(function t(){e.off("error",s),e.off("destroy",t)}))}))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};o.default.install("s_memoryPlay",(function(){var e=this,t=o.default.util,n=e.config.lastPlayTime||0,r=e.config.lastPlayTimeHideDelay||3,i=null;if(!(n<=0)){(i=t.createDom("xg-memoryplay",'<div class="xgplayer-memoryplay-spot"><div class="xgplayer-progress-tip">您上次观看到 <span class="xgplayer-lasttime">'+t.format(n)+'</span> ,为您自动续播 <span class="btn-close"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="close" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"></path></svg></span></div></div>',{},"xgplayer-memoryplay")).addEventListener("mouseover",(function(e){e.stopPropagation()}));var a=function(){i&&i.parentNode.removeChild(i),i=null};i.querySelector(".xgplayer-progress-tip .btn-close").addEventListener("click",a),e.once("play",(function(){e.root.appendChild(i),e.emit("memoryPlayStart",n),r>0&&setTimeout((function(){a()}),1e3*r)})),e.once("ended",a)}}))},function(e,t,n){"use strict";var r=o(n(0)),i=o(n(114));function o(e){return e&&e.__esModule?e:{default:e}}r.default.install("s_airplay",(function(){var e=this,t=r.default.util;if(e.config.airplay&&window.WebKitPlaybackTargetAvailabilityEvent){var n=t.createDom("xg-airplay",'<xg-icon class="xgplayer-icon">\n <div class="xgplayer-icon-airplay">'+i.default+"</div>\n </xg-icon>",{},"xgplayer-airplay"),o=t.createDom("xg-tips",'<span class="xgplayer-tip-airplay">'+e.lang.AIRPLAY_TIPS+"</span>",{},"xgplayer-tips");n.appendChild(o),e.once("ready",(function(){e.controls.appendChild(n),e.video.addEventListener("webkitplaybacktargetavailabilitychanged",(function(e){switch(e.availability){case"available":n.hidden=!1,n.disabled=!1;break;case"not-available":n.hidden=!0,n.disabled=!0}}))})),["click","touchend"].forEach((function(t){n.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),e.emit("airplayBtnClick")}))}))}}))},function(e,t,n){"use strict";n.r(t),t.default='<svg t="1600422191774" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3100" width="28" height="28"><path d="M256 938.666667h512L512 597.333333 256 938.666667z m170.666667-85.333334l85.333333-113.781333L597.333333 853.333333H426.666667zM853.333333 85.333333H170.666667C99.946667 85.333333 42.666667 142.613333 42.666667 213.333333v426.666667c0 70.72 57.28 128 128 128h106.666666l64-85.333333H170.666667c-23.573333 0-42.666667-19.093333-42.666667-42.666667V213.333333c0-23.573333 19.093333-42.666667 42.666667-42.666666h682.666666c23.573333 0 42.666667 19.093333 42.666667 42.666666v426.666667c0 23.573333-19.093333 42.666667-42.666667 42.666667H682.666667l64 85.333333h106.666666c70.72 0 128-57.28 128-128V213.333333c0-70.72-57.28-128-128-128z" p-id="3101" fill="#ffffff"></path></svg>'}])}))},"485e":function(e,t,n){var r=n("efd0"),i=n("977b").f,o=n("13d0"),a=n("d496"),s=n("18ff"),l=n("2fcd"),u=n("1b38");e.exports=function(e,t){var n,c,d,f,h,p,g=e.target,v=e.global,y=e.stat;if(c=v?r:y?r[g]||s(g,{}):(r[g]||{}).prototype,c)for(d in t){if(h=t[d],e.noTargetGet?(p=i(c,d),f=p&&p.value):f=c[d],n=u(v?d:g+(y?".":"#")+d,e.forced),!n&&void 0!==f){if(typeof h===typeof f)continue;l(h,f)}(e.sham||f&&f.sham)&&o(h,"sham",!0),a(c,d,h,e)}}},4890:function(e,t,n){var r=n("efd0"),i=n("3b29"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},"4a35":function(e,t,n){var r=n("b804"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"4b56":function(e,t,n){var r=n("f5b6"),i=n("efd0"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},"4bfa":function(e,t,n){var r=n("aad0"),i=n("c7d8"),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},"6b64":function(e,t,n){var r=n("2092"),i=n("f74b"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"72fe":function(e,t,n){(function(t,r){e.exports=r(n("47fc"))})(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function(){function e(){s(this,e)}return r(e,null,[{key:"e",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","error",r),e.ENABLE_ERROR}},{key:"i",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","info",r),e.ENABLE_INFO}},{key:"w",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","warn",r),e.ENABLE_WARN}},{key:"d",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","debug",r),e.ENABLE_DEBUG}},{key:"v",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","verbose",r),e.ENABLE_VERBOSE}}]),e}();l.GLOBAL_TAG="flv.js",l.FORCE_GLOBAL_TAG=!1,l.ENABLE_ERROR=!0,l.ENABLE_INFO=!0,l.ENABLE_WARN=!0,l.ENABLE_DEBUG=!0,l.ENABLE_VERBOSE=!0,l.ENABLE_CALLBACK=!1,l.emitter=new o.default,t.default=l,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=t.RuntimeException=function(){function e(t){a(this,e),this._message=t}return r(e,[{key:"toString",value:function(){return this.name+": "+this.message}},{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}}]),e}();t.IllegalStateException=function(e){function t(e){return a(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),r(t,[{key:"name",get:function(){return"IllegalStateException"}}]),t}(s),t.InvalidArgumentException=function(e){function t(e){return a(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),r(t,[{key:"name",get:function(){return"InvalidArgumentException"}}]),t}(s),t.NotImplementedException=function(e){function t(e){return a(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),r(t,[{key:"name",get:function(){return"NotImplementedException"}}]),t}(s)},function(e,t,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function a(e){console&&console.warn&&console.warn(e)}r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function l(){l.init.call(this)}e.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function d(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,s;if(c(n),o=e._events,void 0===o?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"===typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=d(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,a(l)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function g(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?b(i):y(i,i.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function b(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return d(this)},l.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"===typeof l)o(l,this,t);else{var u=l.length,c=y(l,u);for(n=0;n<u;++n)o(c[n],this,t)}return!0},l.prototype.addListener=function(e,t){return f(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return f(this,e,t,!0)},l.prototype.once=function(e,t){return c(t),this.on(e,p(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,p(this,e,t)),this},l.prototype.removeListener=function(e,t){var n,r,i,o,a;if(c(t),r=this._events,void 0===r)return this;if(n=r[e],void 0===n)return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():m(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)i=o[r],"removeListener"!==i&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],"function"===typeof t)this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return g(this,e,!0)},l.prototype.rawListeners=function(e){return g(this,e,!1)},l.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},l.prototype.listenerCount=v,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseLoader=t.LoaderErrors=t.LoaderStatus=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=t.LoaderStatus={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4};t.LoaderErrors={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},t.BaseLoader=function(){function e(t){o(this,e),this._type=t||"undefined",this._status=a.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return r(e,[{key:"destroy",value:function(){this._status=a.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===a.kConnecting||this._status===a.kBuffering}},{key:"open",value:function(e,t){throw new i.NotImplementedException("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new i.NotImplementedException("Unimplemented abstract function!")}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(e){this._onContentLengthKnown=e}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(e){this._onURLRedirect=e}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e}},{key:"onError",get:function(){return this._onError},set:function(e){this._onError=e}},{key:"onComplete",get:function(){return this._onComplete},set:function(e){this._onComplete=e}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};function i(){var e=self.navigator.userAgent.toLowerCase(),t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(e)||[],n=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(android)/.exec(e)||/(windows)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||[],i={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",majorVersion:t[4]||t[2]||"0",platform:n[0]||""},o={};if(i.browser){o[i.browser]=!0;var a=i.majorVersion.split(".");o.version={major:parseInt(i.majorVersion,10),string:i.version},a.length>1&&(o.version.minor=parseInt(a[1],10)),a.length>2&&(o.version.build=parseInt(a[2],10))}if(i.platform&&(o[i.platform]=!0),(o.chrome||o.opr||o.safari)&&(o.webkit=!0),o.rv||o.iemobile){o.rv&&delete o.rv;var s="msie";i.browser=s,o[s]=!0}if(o.edge){delete o.edge;var l="msedge";i.browser=l,o[l]=!0}if(o.opr){var u="opera";i.browser=u,o[u]=!0}if(o.safari&&o.android){var c="android";i.browser=c,o[c]=!0}for(var d in o.name=i.browser,o.platform=i.platform,r)r.hasOwnProperty(d)&&delete r[d];Object.assign(r,o)}i(),t.default=r,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint",LOADED_SEI:"loaded_sei"};t.default=r,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultConfig=i;var r=t.defaultConfig={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:180,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:180,autoCleanupMinBackwardDuration:120,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1};function i(){return Object.assign({},r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",STATISTICS_INFO:"statistics_info",LOADED_SEI:"loaded_sei"};t.default=r,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),o=l(i),a=n(0),s=l(a);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=function(){function e(){u(this,e)}return r(e,null,[{key:"getConfig",value:function(){return{globalTag:s.default.GLOBAL_TAG,forceGlobalTag:s.default.FORCE_GLOBAL_TAG,enableVerbose:s.default.ENABLE_VERBOSE,enableDebug:s.default.ENABLE_DEBUG,enableInfo:s.default.ENABLE_INFO,enableWarn:s.default.ENABLE_WARN,enableError:s.default.ENABLE_ERROR,enableCallback:s.default.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(e){s.default.GLOBAL_TAG=e.globalTag,s.default.FORCE_GLOBAL_TAG=e.forceGlobalTag,s.default.ENABLE_VERBOSE=e.enableVerbose,s.default.ENABLE_DEBUG=e.enableDebug,s.default.ENABLE_INFO=e.enableInfo,s.default.ENABLE_WARN=e.enableWarn,s.default.ENABLE_ERROR=e.enableError,s.default.ENABLE_CALLBACK=e.enableCallback}},{key:"_notifyChange",value:function(){var t=e.emitter;if(t.listenerCount("change")>0){var n=e.getConfig();t.emit("change",n)}}},{key:"registerListener",value:function(t){e.emitter.addListener("change",t)}},{key:"removeListener",value:function(t){e.emitter.removeListener("change",t)}},{key:"addLogListener",value:function(t){s.default.emitter.addListener("log",t),s.default.emitter.listenerCount("log")>0&&(s.default.ENABLE_CALLBACK=!0,e._notifyChange())}},{key:"removeLogListener",value:function(t){s.default.emitter.removeListener("log",t),0===s.default.emitter.listenerCount("log")&&(s.default.ENABLE_CALLBACK=!1,e._notifyChange())}},{key:"forceGlobalTag",get:function(){return s.default.FORCE_GLOBAL_TAG},set:function(t){s.default.FORCE_GLOBAL_TAG=t,e._notifyChange()}},{key:"globalTag",get:function(){return s.default.GLOBAL_TAG},set:function(t){s.default.GLOBAL_TAG=t,e._notifyChange()}},{key:"enableAll",get:function(){return s.default.ENABLE_VERBOSE&&s.default.ENABLE_DEBUG&&s.default.ENABLE_INFO&&s.default.ENABLE_WARN&&s.default.ENABLE_ERROR},set:function(t){s.default.ENABLE_VERBOSE=t,s.default.ENABLE_DEBUG=t,s.default.ENABLE_INFO=t,s.default.ENABLE_WARN=t,s.default.ENABLE_ERROR=t,e._notifyChange()}},{key:"enableDebug",get:function(){return s.default.ENABLE_DEBUG},set:function(t){s.default.ENABLE_DEBUG=t,e._notifyChange()}},{key:"enableVerbose",get:function(){return s.default.ENABLE_VERBOSE},set:function(t){s.default.ENABLE_VERBOSE=t,e._notifyChange()}},{key:"enableInfo",get:function(){return s.default.ENABLE_INFO},set:function(t){s.default.ENABLE_INFO=t,e._notifyChange()}},{key:"enableWarn",get:function(){return s.default.ENABLE_WARN},set:function(t){s.default.ENABLE_WARN=t,e._notifyChange()}},{key:"enableError",get:function(){return s.default.ENABLE_ERROR},set:function(t){s.default.ENABLE_ERROR=t,e._notifyChange()}}]),e}();c.emitter=new o.default,t.default=c,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){i(this,e),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return r(e,[{key:"isComplete",value:function(){var e=!1===this.hasAudio||!0===this.hasAudio&&null!=this.audioCodec&&null!=this.audioSampleRate&&null!=this.audioChannelCount,t=!1===this.hasVideo||!0===this.hasVideo&&null!=this.videoCodec&&null!=this.width&&null!=this.height&&null!=this.fps&&null!=this.profile&&null!=this.level&&null!=this.refFrames&&null!=this.chromaFormat&&null!=this.sarNum&&null!=this.sarDen;return null!=this.mimeType&&null!=this.duration&&null!=this.metadata&&null!=this.hasKeyframesIndex&&e&&t}},{key:"isSeekable",value:function(){return!0===this.hasKeyframesIndex}},{key:"getNearestKeyframe",value:function(e){if(null==this.keyframesIndex)return null;var t=this.keyframesIndex,n=this._search(t.times,e);return{index:n,milliseconds:t.times[n],fileposition:t.filepositions[n]}}},{key:"_search",value:function(e,t){var n=0,r=e.length-1,i=0,o=0,a=r;t<e[0]&&(n=0,o=a+1);while(o<=a){if(i=o+Math.floor((a-o)/2),i===r||t>=e[i]&&t<e[i+1]){n=i;break}e[i]<t?o=i+1:a=i-1}return n}}]),e}();t.default=o,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};t.default=r,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){i(this,e)}return r(e,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(void 0!==r&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t},"function"!==typeof self.Promise&&n(22).polyfill()}}]),e}();o.install(),t.default=o,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=S(i),a=n(13),s=S(a),l=n(3),u=n(26),c=S(u),d=n(27),f=S(d),h=n(28),p=(S(h),n(29)),g=S(p),v=n(30),y=S(v),m=n(31),b=S(m),x=n(32),_=S(x),w=n(1);function S(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var O=function(){function e(t,n,r){k(this,e),this.TAG="IOController",this._config=n,this._extraData=r,this._stashInitialSize=393216,void 0!=n.stashInitialSize&&n.stashInitialSize>0&&(this._stashInitialSize=n.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,!1===n.enableStashBuffer&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=t,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(t.url),this._refTotalLength=t.filesize?t.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new s.default,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return r(e,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"_selectSeekHandler",value:function(){var e=this._config;if("range"===e.seekType)this._seekHandler=new b.default(this._config.rangeLoadZeroStart);else if("param"===e.seekType){var t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new _.default(t,n)}else{if("custom"!==e.seekType)throw new w.InvalidArgumentException("Invalid seekType in config: "+e.seekType);if("function"!==typeof e.customSeekHandler)throw new w.InvalidArgumentException("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}}},{key:"_selectLoader",value:function(){if(this._isWebSocketURL)this._loaderClass=y.default;else if(c.default.isSupported())this._loaderClass=c.default;else if(f.default.isSupported())this._loaderClass=f.default;else{if(!g.default.isSupported())throw new w.RuntimeException("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=g.default}}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),!1===this._loader.needStashBuffer&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),0!==this._stashUsed?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}}},{key:"seek",value:function(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)}},{key:"_internalSeek",value:function(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;var n={from:e,to:-1};this._currentRange={from:n.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,n),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(e){if(!e||"string"!==typeof e||0===e.length)throw new w.InvalidArgumentException("Url must be a non-empty string!");this._dataSource.url=e}},{key:"_expandBuffer",value:function(e){var t=this._stashSize;while(t+1048576<e)t*=2;if(t+=1048576,t!==this._bufferSize){var n=new ArrayBuffer(t);if(this._stashUsed>0){var r=new Uint8Array(this._stashBuffer,0,this._stashUsed),i=new Uint8Array(n,0,t);i.set(r,0)}this._stashBuffer=n,this._bufferSize=t}}},{key:"_normalizeSpeed",value:function(e){var t=this._speedNormalizeList,n=t.length-1,r=0,i=0,o=n;if(e<t[0])return t[0];while(i<=o){if(r=i+Math.floor((o-i)/2),r===n||e>=t[r]&&e<t[r+1])return t[r];t[r]<e?i=r+1:o=r-1}}},{key:"_adjustStashSize",value:function(e){var t=0;t=this._config.isLive||e<512?e:e>=512&&e<=1024?Math.floor(1.5*e):2*e,t>8192&&(t=8192);var n=1024*t+1048576;this._bufferSize<n&&this._expandBuffer(n),this._stashSize=1024*t}},{key:"_dispatchChunks",value:function(e,t){return this._currentRange.to=t+e.byteLength-1,this._onDataArrival(e,t)}},{key:"_onURLRedirect",value:function(e){this._redirectedURL=e,this._onRedirect&&this._onRedirect(e)}},{key:"_onContentLengthKnown",value:function(e){e&&this._fullRequestFlag&&(this._totalLength=e,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(e,t,n){if(!this._onDataArrival)throw new w.IllegalStateException("IOController: No existing consumer (onDataArrival) callback!");if(!this._paused){this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(e.byteLength);var r=this._speedSampler.lastSecondKBps;if(0!==r){var i=this._normalizeSpeed(r);this._speedNormalized!==i&&(this._speedNormalized=i,this._adjustStashSize(i))}if(this._enableStash)if(0===this._stashUsed&&0===this._stashByteStart&&(this._stashByteStart=t),this._stashUsed+e.byteLength<=this._stashSize){var o=new Uint8Array(this._stashBuffer,0,this._stashSize);o.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{var a=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var s=this._stashBuffer.slice(0,this._stashUsed),l=this._dispatchChunks(s,this._stashByteStart);if(l<s.byteLength){if(l>0){var u=new Uint8Array(s,l);a.set(u,0),this._stashUsed=u.byteLength,this._stashByteStart+=l}}else this._stashUsed=0,this._stashByteStart+=l;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{var c=this._dispatchChunks(e,t);if(c<e.byteLength){var d=e.byteLength-c;d>this._bufferSize&&(this._expandBuffer(d),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e,c),0),this._stashUsed+=d,this._stashByteStart=t+c}}}else if(0===this._stashUsed){var f=this._dispatchChunks(e,t);if(f<e.byteLength){var h=e.byteLength-f;h>this._bufferSize&&this._expandBuffer(h);var p=new Uint8Array(this._stashBuffer,0,this._bufferSize);p.set(new Uint8Array(e,f),0),this._stashUsed+=h,this._stashByteStart=t+f}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);var g=new Uint8Array(this._stashBuffer,0,this._bufferSize);g.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;var v=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(v<this._stashUsed&&v>0){var y=new Uint8Array(this._stashBuffer,v);g.set(y,0)}this._stashUsed-=v,this._stashByteStart+=v}}}},{key:"_flushStashBuffer",value:function(e){if(this._stashUsed>0){var t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),r=t.byteLength-n;if(n<t.byteLength){if(!e){if(n>0){var i=new Uint8Array(this._stashBuffer,0,this._bufferSize),a=new Uint8Array(t,n);i.set(a,0),this._stashUsed=a.byteLength,this._stashByteStart+=n}return 0}o.default.w(this.TAG,r+" bytes unconsumed data remain when flush buffer, dropped")}return this._stashUsed=0,this._stashByteStart=0,r}return 0}},{key:"_onLoaderComplete",value:function(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(e,t){switch(o.default.e(this.TAG,"Loader error, code = "+t.code+", msg = "+t.msg),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=l.LoaderErrors.UNRECOVERABLE_EARLY_EOF),e){case l.LoaderErrors.EARLY_EOF:if(!this._config.isLive&&this._totalLength){var n=this._currentRange.to+1;return void(n<this._totalLength&&(o.default.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1)))}e=l.LoaderErrors.UNRECOVERABLE_EARLY_EOF;break;case l.LoaderErrors.UNRECOVERABLE_EARLY_EOF:case l.LoaderErrors.CONNECTING_TIMEOUT:case l.LoaderErrors.HTTP_STATUS_CODE_INVALID:case l.LoaderErrors.EXCEPTION:break}if(!this._onError)throw new w.RuntimeException("IOException: "+t.msg);this._onError(e,t)}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(e){this._extraData=e}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(e){this._onSeeked=e}},{key:"onError",get:function(){return this._onError},set:function(e){this._onError=e}},{key:"onComplete",get:function(){return this._onComplete},set:function(e){this._onComplete=e}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(e){this._onRedirect=e}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(e){this._onRecoveredEarlyEof=e}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return null!=this._redirectedURL||void 0!=this._dataSource.redirectedURL}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===g.default?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}}]),e}();t.default=O,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){i(this,e),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return r(e,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(e){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var e=(this._now()-this._lastCheckpoint)/1e3;return 0==e&&(e=1),this._intervalBytes/e/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}]),e}();t.default=o,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),o=w(i),a=n(0),s=w(a),l=n(4),u=w(l),c=n(9),d=w(c),f=n(35),h=w(f),p=n(40),g=w(p),v=n(10),y=w(v),m=n(12),b=w(m),x=n(5),_=w(x);function w(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(3);var k=function(){function e(t,n){S(this,e),this.TAG="TransmuxingController",this._emitter=new o.default,this._config=n,t.segments||(t.segments=[{duration:t.duration,filesize:t.filesize,url:t.url}]),"boolean"!==typeof t.cors&&(t.cors=!0),"boolean"!==typeof t.withCredentials&&(t.withCredentials=!1),this._mediaDataSource=t,this._currentSegmentIndex=0;var r=0;this._mediaDataSource.segments.forEach((function(e){e.timestampBase=r,r+=e.duration,e.cors=t.cors,e.withCredentials=t.withCredentials,n.referrerPolicy&&(e.referrerPolicy=n.referrerPolicy)})),isNaN(r)||this._mediaDataSource.duration===r||(this._mediaDataSource.duration=r),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return r(e,[{key:"destroy",value:function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(e,t){this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(e,t){this._currentSegmentIndex=e;var n=this._mediaDataSource.segments[e],r=this._ioctl=new b.default(n,this._config,e);r.onError=this._onIOException.bind(this),r.onSeeked=this._onIOSeeked.bind(this),r.onComplete=this._onIOComplete.bind(this),r.onRedirect=this._onIORedirect.bind(this),r.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):r.onDataArrival=this._onInitChunkArrival.bind(this),r.open(t)}},{key:"stop",value:function(){this._internalAbort(),this._disableStatisticsReporter()}},{key:"_internalAbort",value:function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}},{key:"pause",value:function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}},{key:"resume",value:function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}},{key:"seek",value:function(e){if(null!=this._mediaInfo&&this._mediaInfo.isSeekable()){var t=this._searchSegmentIndexContains(e);if(t===this._currentSegmentIndex){var n=this._mediaInfo.segments[t];if(void 0==n)this._pendingSeekTime=e;else{var r=n.getNearestKeyframe(e);this._remuxer.seek(r.milliseconds),this._ioctl.seek(r.fileposition),this._pendingResolveSeekPoint=r.milliseconds}}else{var i=this._mediaInfo.segments[t];if(void 0==i)this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t);else{var o=i.getNearestKeyframe(e);this._internalAbort(),this._remuxer.seek(e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[t].timestampBase,this._loadSegment(t,o.fileposition),this._pendingResolveSeekPoint=o.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}}},{key:"_searchSegmentIndexContains",value:function(e){for(var t=this._mediaDataSource.segments,n=t.length-1,r=0;r<t.length;r++)if(e<t[r].timestampBase){n=r-1;break}return n}},{key:"_onInitChunkArrival",value:function(e,t){var n=this,r=null,i=0;if(t>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,i=this._demuxer.parseChunks(e,t);else if((r=h.default.probe(e)).match){this._demuxer=new h.default(r,this._config),this._remuxer||(this._remuxer=new g.default(this._config));var o=this._mediaDataSource;void 0==o.duration||isNaN(o.duration)||(this._demuxer.overridedDuration=o.duration),"boolean"===typeof o.hasAudio&&(this._demuxer.overridedHasAudio=o.hasAudio),"boolean"===typeof o.hasVideo&&(this._demuxer.overridedHasVideo=o.hasVideo),this._demuxer.timestampBase=o.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onLoadedSei=this._onLoadedSei.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),i=this._demuxer.parseChunks(e,t)}else r=null,s.default.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then((function(){n._internalAbort()})),this._emitter.emit(_.default.DEMUX_ERROR,y.default.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),i=0;return i}},{key:"_onMediaInfo",value:function(e){var t=this;null==this._mediaInfo&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,d.default.prototype));var n=Object.assign({},e);Object.setPrototypeOf(n,d.default.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=n,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then((function(){var e=t._pendingSeekTime;t._pendingSeekTime=null,t.seek(e)}))}},{key:"_onLoadedSei",value:function(e,t){this._emitter.emit(_.default.LOADED_SEI,e,t)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(e){var t=e,n=t+1;n<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(n)):(this._remuxer.flushStashedSamples(),this._emitter.emit(_.default.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(e){var t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(_.default.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(e,t){s.default.e(this.TAG,"IOException: type = "+e+", code = "+t.code+", msg = "+t.msg),this._emitter.emit(_.default.IO_ERROR,e,t),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(e,t){s.default.e(this.TAG,"DemuxException: type = "+e+", info = "+t),this._emitter.emit(_.default.DEMUX_ERROR,e,t)}},{key:"_onRemuxerInitSegmentArrival",value:function(e,t){this._emitter.emit(_.default.INIT_SEGMENT,e,t)}},{key:"_onRemuxerMediaSegmentArrival",value:function(e,t){if(null==this._pendingSeekTime&&(this._emitter.emit(_.default.MEDIA_SEGMENT,e,t),null!=this._pendingResolveSeekPoint&&"video"===e)){var n=t.info.syncPoints,r=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,u.default.safari&&n.length>0&&n[0].originalDts===r&&(r=n[0].pts),this._emitter.emit(_.default.RECOMMEND_SEEKPOINT,r)}}},{key:"_enableStatisticsReporter",value:function(){null==this._statisticsReporter&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(e){var t=this._mediaInfo.segments[e],n=Object.assign({},t);n.duration=this._mediaInfo.duration,n.segmentCount=this._mediaInfo.segmentCount,delete n.segments,delete n.keyframesIndex,this._emitter.emit(_.default.MEDIA_INFO,n)}},{key:"_reportStatisticsInfo",value:function(){var e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(_.default.STATISTICS_INFO,e)}}]),e}();t.default=k,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.SampleInfo=function e(t,n,r,o,a){i(this,e),this.dts=t,this.pts=n,this.duration=r,this.originalDts=o,this.isSyncPoint=a,this.fileposition=null},t.MediaSegmentInfo=function(){function e(){i(this,e),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return r(e,[{key:"appendSyncPoint",value:function(e){e.isSyncPoint=!0,this.syncPoints.push(e)}}]),e}(),t.IDRSampleList=function(){function e(){i(this,e),this._list=[]}return r(e,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(e){var t=this._list;0!==e.length&&(t.length>0&&e[0].originalDts<t[t.length-1].originalDts&&this.clear(),Array.prototype.push.apply(t,e))}},{key:"getLastSyncPointBeforeDts",value:function(e){if(0==this._list.length)return null;var t=this._list,n=0,r=t.length-1,i=0,o=0,a=r;e<t[0].dts&&(n=0,o=a+1);while(o<=a){if(i=o+Math.floor((a-o)/2),i===r||e>=t[i].dts&&e<t[i+1].dts){n=i;break}t[i].dts<e?o=i+1:a=i-1}return this._list[n]}}]),e}(),t.MediaSegmentInfoList=function(){function e(t){i(this,e),this._type=t,this._list=[],this._lastAppendLocation=-1}return r(e,[{key:"isEmpty",value:function(){return 0===this._list.length}},{key:"clear",value:function(){this._list=[],this._lastAppendLocation=-1}},{key:"_searchNearestSegmentBefore",value:function(e){var t=this._list;if(0===t.length)return-2;var n=t.length-1,r=0,i=0,o=n,a=0;if(e<t[0].originalBeginDts)return a=-1,a;while(i<=o){if(r=i+Math.floor((o-i)/2),r===n||e>t[r].lastSample.originalDts&&e<t[r+1].originalBeginDts){a=r;break}t[r].originalBeginDts<e?i=r+1:o=r-1}return a}},{key:"_searchNearestSegmentAfter",value:function(e){return this._searchNearestSegmentBefore(e)+1}},{key:"append",value:function(e){var t=this._list,n=e,r=this._lastAppendLocation,i=0;-1!==r&&r<t.length&&n.originalBeginDts>=t[r].lastSample.originalDts&&(r===t.length-1||r<t.length-1&&n.originalBeginDts<t[r+1].originalBeginDts)?i=r+1:t.length>0&&(i=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=i,this._list.splice(i,0,n)}},{key:"getLastSegmentBefore",value:function(e){var t=this._searchNearestSegmentBefore(e);return t>=0?this._list[t]:null}},{key:"getLastSampleBefore",value:function(e){var t=this.getLastSegmentBefore(e);return null!=t?t.lastSample:null}},{key:"getLastSyncPointBefore",value:function(e){var t=this._searchNearestSegmentBefore(e),n=this._list[t].syncPoints;while(0===n.length&&t>0)t--,n=this._list[t].syncPoints;return n.length>0?n[n.length-1]:null}},{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._list.length}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};t.default=r,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorDetails=t.ErrorTypes=void 0;var r=n(3),i=n(10),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}t.ErrorTypes={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},t.ErrorDetails={NETWORK_EXCEPTION:r.LoaderErrors.EXCEPTION,NETWORK_STATUS_CODE_INVALID:r.LoaderErrors.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:r.LoaderErrors.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:r.LoaderErrors.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:o.default.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:o.default.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:o.default.CODEC_UNSUPPORTED}},function(e,t,n){e.exports=n(19)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(20),o=l(i),a=n(21),s=l(a);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e){u(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.flvOpts={type:"flv"},n.optionalConfig={},o.default.util.deepCopy(n.flvOpts,e),o.default.util.deepCopy(n.optionalConfig,e.flvOptionalConfig);var r=n;return Object.defineProperty(r,"src",{get:function(){return r.currentSrc},set:function(e){r.flv_load(e),r.volume,r.video.muted=!0,o.default.util.addClass(r.root,"xgplayer-is-enter"),r.once("playing",(function(){o.default.util.removeClass(r.root,"xgplayer-is-enter"),r.video.muted=!1})),r.once("canplay",(function(){r.play()}))},configurable:!0}),r.once("complete",(function(){if(r.__flv__=s.default.createPlayer(n.flvOpts,n.optionalConfig),r.createInstance(r.__flv__),r.config.isLive){o.default.util.addClass(r.root,"xgplayer-is-live");var e=o.default.util.createDom("xg-live","正在直播",{},"xgplayer-live");r.controls.appendChild(e)}})),n}return d(t,e),r(t,[{key:"createInstance",value:function(e){var t=this;t.video.addEventListener("contextmenu",(function(e){e.preventDefault()})),e.attachMediaElement(t.video),e.load(),e.play(),e.on(s.default.Events.ERROR,(function(e){t.emit("error",new o.default.Errors("other",t.config.url))})),e.on(s.default.Events.LOADED_SEI,(function(e,n){t.emit("loaded_sei",e,n)})),e.on(s.default.Events.STATISTICS_INFO,(function(e){t.emit("statistics_info",e)})),e.on(s.default.Events.MEDIA_INFO,(function(e){t.mediainfo=e,t.emit("MEDIA_INFO",e)})),t.once("destroy",(function(){e.destroy(),t.__flv__=null}))}},{key:"flv_load",value:function(e){var t=this.flvOpts;t.segments=[{cors:!0,duration:void 0,filesize:void 0,timestampBase:0,url:e,withCredentials:!1}],t.url=e,this.flv_load_mds(t)}},{key:"flv_load_mds",value:function(e){var t=this;"undefined"!==typeof t.__flv__&&null!=t.__flv__&&(t.__flv__.unload(),t.__flv__.detachMediaElement(),t.__flv__.destroy(),t.__flv__=null),t.__flv__=s.default.createPlayer(e,this.optionalConfig),t.__flv__.attachMediaElement(t.video),t.__flv__.load()}},{key:"switchURL",value:function(e){var t=this,n=0;t.config.isLive||(n=t.currentTime),t.flv_load(e),t.volume,t.video.muted=!0,o.default.util.addClass(t.root,"xgplayer-is-enter"),t.once("playing",(function(){o.default.util.removeClass(t.root,"xgplayer-is-enter"),t.video.muted=!1})),t.once("canplay",(function(){t.config.isLive||(t.currentTime=n),t.play()}))}}]),t}(o.default);f.isSupported=s.default.isSupported,t.default=f,e.exports=t["default"]},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=n(11),o=m(i),a=n(25),s=m(a),l=n(33),u=m(l),c=n(46),d=m(c),f=n(7),h=m(f),p=n(17),g=n(8),v=m(g),y=n(1);function m(e){return e&&e.__esModule?e:{default:e}}function b(e,t){var n=e;if(null==n||"object"!==("undefined"===typeof n?"undefined":r(n)))throw new y.InvalidArgumentException("MediaDataSource must be an javascript object!");if(!n.hasOwnProperty("type"))throw new y.InvalidArgumentException("MediaDataSource must has type field to indicate video file type!");switch(n.type){case"flv":return new u.default(n,t);default:return new d.default(n,t)}}function x(){return s.default.supportMSEH264Playback()}function _(){return s.default.getFeatureList()}o.default.install();var w={};w.createPlayer=b,w.isSupported=x,w.getFeatureList=_,w.Events=h.default,w.ErrorTypes=p.ErrorTypes,w.ErrorDetails=p.ErrorDetails,w.FlvPlayer=u.default,w.NativePlayer=d.default,w.LoggingControl=v.default,Object.defineProperty(w,"version",{enumerable:!0,get:function(){return"__VERSION__"}}),t.default=w,e.exports=t["default"]},function(e,t,n){(function(t,n){
  8. /*!
  9. * @overview es6-promise - a tiny implementation of Promises/A+.
  10. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
  11. * @license Licensed under MIT license
  12. * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
  13. * @version v4.2.8+1e68dce6
  14. */
  15. (function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function r(e){return"function"===typeof e}var i=void 0;i=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var o=i,a=0,s=void 0,l=void 0,u=function(e,t){w[a]=e,w[a+1]=t,a+=2,2===a&&(l?l(S):O())};function c(e){l=e}function d(e){u=e}var f="undefined"!==typeof window?window:void 0,h=f||{},p=h.MutationObserver||h.WebKitMutationObserver,g="undefined"===typeof self&&"undefined"!==typeof t&&"[object process]"==={}.toString.call(t),v="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function y(){return function(){return t.nextTick(S)}}function m(){return"undefined"!==typeof s?function(){s(S)}:_()}function b(){var e=0,t=new p(S),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function x(){var e=new MessageChannel;return e.port1.onmessage=S,function(){return e.port2.postMessage(0)}}function _(){var e=setTimeout;return function(){return e(S,1)}}var w=new Array(1e3);function S(){for(var e=0;e<a;e+=2){var t=w[e],n=w[e+1];t(n),w[e]=void 0,w[e+1]=void 0}a=0}function k(){try{var e=Function("return this")().require("vertx");return s=e.runOnLoop||e.runOnContext,m()}catch(t){return _()}}var O=void 0;function T(e,t){var n=this,r=new this.constructor(A);void 0===r[C]&&X(r);var i=n._state;if(i){var o=arguments[i-1];u((function(){return q(i,r,o,n._result)}))}else V(n,r,e,t);return r}function E(e){var t=this;if(e&&"object"===typeof e&&e.constructor===t)return e;var n=new t(A);return F(n,e),n}O=g?y():p?b():v?x():void 0===f?k():_();var C=Math.random().toString(36).substring(2);function A(){}var M=void 0,L=1,I=2;function D(){return new TypeError("You cannot resolve a promise with itself")}function j(){return new TypeError("A promises callback cannot return that same promise.")}function P(e,t,n,r){try{e.call(t,n,r)}catch(i){return i}}function R(e,t,n){u((function(e){var r=!1,i=P(n,t,(function(n){r||(r=!0,t!==n?F(e,n):U(e,n))}),(function(t){r||(r=!0,H(e,t))}),"Settle: "+(e._label||" unknown promise"));!r&&i&&(r=!0,H(e,i))}),e)}function N(e,t){t._state===L?U(e,t._result):t._state===I?H(e,t._result):V(t,void 0,(function(t){return F(e,t)}),(function(t){return H(e,t)}))}function B(e,t,n){t.constructor===e.constructor&&n===T&&t.constructor.resolve===E?N(e,t):void 0===n?U(e,t):r(n)?R(e,t,n):U(e,t)}function F(t,n){if(t===n)H(t,D());else if(e(n)){var r=void 0;try{r=n.then}catch(i){return void H(t,i)}B(t,n,r)}else U(t,n)}function z(e){e._onerror&&e._onerror(e._result),G(e)}function U(e,t){e._state===M&&(e._result=t,e._state=L,0!==e._subscribers.length&&u(G,e))}function H(e,t){e._state===M&&(e._state=I,e._result=t,u(z,e))}function V(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+L]=n,i[o+I]=r,0===o&&e._state&&u(G,e)}function G(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,o=e._result,a=0;a<t.length;a+=3)r=t[a],i=t[a+n],r?q(n,r,i,o):i(o);e._subscribers.length=0}}function q(e,t,n,i){var o=r(n),a=void 0,s=void 0,l=!0;if(o){try{a=n(i)}catch(u){l=!1,s=u}if(t===a)return void H(t,j())}else a=i;t._state!==M||(o&&l?F(t,a):!1===l?H(t,s):e===L?U(t,a):e===I&&H(t,a))}function W(e,t){try{t((function(t){F(e,t)}),(function(t){H(e,t)}))}catch(n){H(e,n)}}var Y=0;function K(){return Y++}function X(e){e[C]=Y++,e._state=void 0,e._result=void 0,e._subscribers=[]}function Z(){return new Error("Array Methods must be provided an Array")}var $=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(A),this.promise[C]||X(this.promise),o(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?U(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&U(this.promise,this._result))):H(this.promise,Z())}return e.prototype._enumerate=function(e){for(var t=0;this._state===M&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===E){var i=void 0,o=void 0,a=!1;try{i=e.then}catch(l){a=!0,o=l}if(i===T&&e._state!==M)this._settledAt(e._state,t,e._result);else if("function"!==typeof i)this._remaining--,this._result[t]=e;else if(n===re){var s=new n(A);a?H(s,o):B(s,e,i),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===M&&(this._remaining--,e===I?H(r,n):this._result[t]=n),0===this._remaining&&U(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;V(e,void 0,(function(e){return n._settledAt(L,t,e)}),(function(e){return n._settledAt(I,t,e)}))},e}();function J(e){return new $(this,e).promise}function Q(e){var t=this;return o(e)?new t((function(n,r){for(var i=e.length,o=0;o<i;o++)t.resolve(e[o]).then(n,r)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))}function ee(e){var t=this,n=new t(A);return H(n,e),n}function te(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ne(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var re=function(){function e(t){this[C]=K(),this._result=this._state=void 0,this._subscribers=[],A!==t&&("function"!==typeof t&&te(),this instanceof e?W(this,t):ne())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var t=this,n=t.constructor;return r(e)?t.then((function(t){return n.resolve(e()).then((function(){return t}))}),(function(t){return n.resolve(e()).then((function(){throw t}))})):t.then(e,e)},e}();function ie(){var e=void 0;if("undefined"!==typeof n)e=n;else if("undefined"!==typeof self)e=self;else try{e=Function("return this")()}catch(i){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(i){}if("[object Promise]"===r&&!t.cast)return}e.Promise=re}return re.prototype.then=T,re.all=J,re.race=Q,re.resolve=E,re.reject=ee,re._setScheduler=c,re._setAsap=d,re._asap=u,re.polyfill=ie,re.Promise=re,re}))}).call(this,n(23),n(24))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function l(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}})();var u,c=[],d=!1,f=-1;function h(){d&&u&&(d=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!d){var e=s(h);d=!0;var t=c.length;while(t){u=c,c=[];while(++f<t)u&&u[f].run();f=-1,t=c.length}u=null,d=!1,l(e)}}function g(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new g(e,t)),1!==c.length||d||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(12),o=s(i),a=n(6);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(){function e(){l(this,e)}return r(e,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var e=new o.default({},(0,a.createDefaultConfig)()),t=e.loaderType;return e.destroy(),"fetch-stream-loader"==t||"xhr-moz-chunked-loader"==t}},{key:"getNetworkLoaderTypeName",value:function(){var e=new o.default({},(0,a.createDefaultConfig)()),t=e.loaderType;return e.destroy(),t}},{key:"supportNativeMediaPlayback",value:function(t){void 0==e.videoElement&&(e.videoElement=window.document.createElement("video"));var n=e.videoElement.canPlayType(t);return"probably"===n||"maybe"==n}},{key:"getFeatureList",value:function(){var t={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return t.mseFlvPlayback=e.supportMSEH264Playback(),t.networkStreamIO=e.supportNetworkStreamIO(),t.networkLoaderName=e.getNetworkLoaderTypeName(),t.mseLiveFlvPlayback=t.mseFlvPlayback&&t.networkStreamIO,t.nativeMP4H264Playback=e.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),t.nativeWebmVP8Playback=e.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),t.nativeWebmVP9Playback=e.supportNativeMediaPlayback('video/webm; codecs="vp9"'),t}}]),e}();t.default=u,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=(d(a),n(4)),l=d(s),u=n(3),c=n(1);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(e,n){f(this,t);var r=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"fetch-stream-loader"));return r.TAG="FetchStreamLoader",r._seekHandler=e,r._config=n,r._needStash=!0,r._requestAbort=!1,r._contentLength=null,r._receivedLength=0,r}return p(t,e),o(t,null,[{key:"isSupported",value:function(){try{var e=l.default.msedge&&l.default.version.minor>=15048,t=!l.default.msedge||e;return self.fetch&&self.ReadableStream&&t}catch(n){return!1}}}]),o(t,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"open",value:function(e,t){var n=this;this._dataSource=e,this._range=t;var i=e.url;this._config.reuseRedirectedURL&&void 0!=e.redirectedURL&&(i=e.redirectedURL);var o=this._seekHandler.getConfig(i,t),a=new self.Headers;if("object"===r(o.headers)){var s=o.headers;for(var l in s)s.hasOwnProperty(l)&&a.append(l,s[l])}var d={method:"GET",headers:a,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};!1===e.cors&&(d.mode="same-origin"),e.withCredentials&&(d.credentials="include"),e.referrerPolicy&&(d.referrerPolicy=e.referrerPolicy),this._status=u.LoaderStatus.kConnecting,self.fetch(o.url,d).then((function(e){if(n._requestAbort)return n._requestAbort=!1,void(n._status=u.LoaderStatus.kIdle);if(e.ok&&e.status>=200&&e.status<=299){if(e.url!==o.url&&n._onURLRedirect){var t=n._seekHandler.removeURLParameters(e.url);n._onURLRedirect(t)}var r=e.headers.get("Content-Length");return null!=r&&(n._contentLength=parseInt(r),0!==n._contentLength&&n._onContentLengthKnown&&n._onContentLengthKnown(n._contentLength)),n._pump.call(n,e.body.getReader())}if(n._status=u.LoaderStatus.kError,!n._onError)throw new c.RuntimeException("FetchStreamLoader: Http code invalid, "+e.status+" "+e.statusText);n._onError(u.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})})).catch((function(e){if(n._status=u.LoaderStatus.kError,!n._onError)throw e;n._onError(u.LoaderErrors.EXCEPTION,{code:-1,msg:e.message})}))}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(e){var t=this;return e.read().then((function(n){if(n.done)if(null!==t._contentLength&&t._receivedLength<t._contentLength){t._status=u.LoaderStatus.kError;var r=u.LoaderErrors.EARLY_EOF,i={code:-1,msg:"Fetch stream meet Early-EOF"};if(!t._onError)throw new c.RuntimeException(i.msg);t._onError(r,i)}else t._status=u.LoaderStatus.kComplete,t._onComplete&&t._onComplete(t._range.from,t._range.from+t._receivedLength-1);else{if(!0===t._requestAbort)return t._requestAbort=!1,t._status=u.LoaderStatus.kComplete,e.cancel();t._status=u.LoaderStatus.kBuffering;var o=n.value.buffer,a=t._range.from+t._receivedLength;t._receivedLength+=o.byteLength,t._onDataArrival&&t._onDataArrival(o,a,t._receivedLength),t._pump(e)}})).catch((function(e){if(11!==e.code||!l.default.msedge){t._status=u.LoaderStatus.kError;var n=0,r=null;if(19!==e.code&&"network error"!==e.message||!(null===t._contentLength||null!==t._contentLength&&t._receivedLength<t._contentLength)?(n=u.LoaderErrors.EXCEPTION,r={code:e.code,msg:e.message}):(n=u.LoaderErrors.EARLY_EOF,r={code:e.code,msg:"Fetch stream meet Early-EOF"}),!t._onError)throw new c.RuntimeException(r.msg);t._onError(n,r)}}))}}]),t}(u.BaseLoader);t.default=g,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=c(a),l=n(3),u=n(1);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e,n){d(this,t);var r=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"xhr-moz-chunked-loader"));return r.TAG="MozChunkedLoader",r._seekHandler=e,r._config=n,r._needStash=!0,r._xhr=null,r._requestAbort=!1,r._contentLength=null,r._receivedLength=0,r}return h(t,e),o(t,null,[{key:"isSupported",value:function(){try{var e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="moz-chunked-arraybuffer","moz-chunked-arraybuffer"===e.responseType}catch(t){return s.default.w("MozChunkedLoader",t.message),!1}}}]),o(t,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"open",value:function(e,t){this._dataSource=e,this._range=t;var n=e.url;this._config.reuseRedirectedURL&&void 0!=e.redirectedURL&&(n=e.redirectedURL);var i=this._seekHandler.getConfig(n,t);this._requestURL=i.url;var o=this._xhr=new XMLHttpRequest;if(o.open("GET",i.url,!0),o.responseType="moz-chunked-arraybuffer",o.onreadystatechange=this._onReadyStateChange.bind(this),o.onprogress=this._onProgress.bind(this),o.onloadend=this._onLoadEnd.bind(this),o.onerror=this._onXhrError.bind(this),e.withCredentials&&(o.withCredentials=!0),"object"===r(i.headers)){var a=i.headers;for(var s in a)a.hasOwnProperty(s)&&o.setRequestHeader(s,a[s])}this._status=l.LoaderStatus.kConnecting,o.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=l.LoaderStatus.kComplete}},{key:"_onReadyStateChange",value:function(e){var t=e.target;if(2===t.readyState){if(void 0!=t.responseURL&&t.responseURL!==this._requestURL&&this._onURLRedirect){var n=this._seekHandler.removeURLParameters(t.responseURL);this._onURLRedirect(n)}if(0!==t.status&&(t.status<200||t.status>299)){if(this._status=l.LoaderStatus.kError,!this._onError)throw new u.RuntimeException("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(l.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}else this._status=l.LoaderStatus.kBuffering}}},{key:"_onProgress",value:function(e){if(this._status!==l.LoaderStatus.kError){null===this._contentLength&&null!==e.total&&0!==e.total&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var t=e.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}}},{key:"_onLoadEnd",value:function(e){!0!==this._requestAbort?this._status!==l.LoaderStatus.kError&&(this._status=l.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1}},{key:"_onXhrError",value:function(e){this._status=l.LoaderStatus.kError;var t=0,n=null;if(this._contentLength&&e.loaded<this._contentLength?(t=l.LoaderErrors.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=l.LoaderErrors.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),!this._onError)throw new u.RuntimeException(n.msg);this._onError(t,n)}}]),t}(l.BaseLoader);t.default=p,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=c(a),l=n(3),u=n(1);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e,n){d(this,t);var r=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"xhr-msstream-loader"));return r.TAG="MSStreamLoader",r._seekHandler=e,r._config=n,r._needStash=!0,r._xhr=null,r._reader=null,r._totalRange=null,r._currentRange=null,r._currentRequestURL=null,r._currentRedirectedURL=null,r._contentLength=null,r._receivedLength=0,r._bufferLimit=16777216,r._lastTimeBufferSize=0,r._isReconnecting=!1,r}return h(t,e),o(t,null,[{key:"isSupported",value:function(){try{if("undefined"===typeof self.MSStream||"undefined"===typeof self.MSStreamReader)return!1;var e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="ms-stream","ms-stream"===e.responseType}catch(t){return s.default.w("MSStreamLoader",t.message),!1}}}]),o(t,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"open",value:function(e,t){this._internalOpen(e,t,!1)}},{key:"_internalOpen",value:function(e,t,n){this._dataSource=e,n?this._currentRange=t:this._totalRange=t;var i=e.url;this._config.reuseRedirectedURL&&(void 0!=this._currentRedirectedURL?i=this._currentRedirectedURL:void 0!=e.redirectedURL&&(i=e.redirectedURL));var o=this._seekHandler.getConfig(i,t);this._currentRequestURL=o.url;var a=this._reader=new self.MSStreamReader;a.onprogress=this._msrOnProgress.bind(this),a.onload=this._msrOnLoad.bind(this),a.onerror=this._msrOnError.bind(this);var s=this._xhr=new XMLHttpRequest;if(s.open("GET",o.url,!0),s.responseType="ms-stream",s.onreadystatechange=this._xhrOnReadyStateChange.bind(this),s.onerror=this._xhrOnError.bind(this),e.withCredentials&&(s.withCredentials=!0),"object"===r(o.headers)){var u=o.headers;for(var c in u)u.hasOwnProperty(c)&&s.setRequestHeader(c,u[c])}this._isReconnecting?this._isReconnecting=!1:this._status=l.LoaderStatus.kConnecting,s.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=l.LoaderStatus.kComplete}},{key:"_internalAbort",value:function(){this._reader&&(1===this._reader.readyState&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}},{key:"_xhrOnReadyStateChange",value:function(e){var t=e.target;if(2===t.readyState)if(t.status>=200&&t.status<=299){if(this._status=l.LoaderStatus.kBuffering,void 0!=t.responseURL){var n=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&n!==this._currentRedirectedURL&&(this._currentRedirectedURL=n,this._onURLRedirect&&this._onURLRedirect(n))}var r=t.getResponseHeader("Content-Length");if(null!=r&&null==this._contentLength){var i=parseInt(r);i>0&&(this._contentLength=i,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else{if(this._status=l.LoaderStatus.kError,!this._onError)throw new u.RuntimeException("MSStreamLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(l.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}else if(3===t.readyState&&t.status>=200&&t.status<=299){this._status=l.LoaderStatus.kBuffering;var o=t.response;this._reader.readAsArrayBuffer(o)}}},{key:"_xhrOnError",value:function(e){this._status=l.LoaderStatus.kError;var t=l.LoaderErrors.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type};if(!this._onError)throw new u.RuntimeException(n.msg);this._onError(t,n)}},{key:"_msrOnProgress",value:function(e){var t=e.target,n=t.result;if(null!=n){var r=n.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=n.byteLength;var i=this._totalRange.from+this._receivedLength;this._receivedLength+=r.byteLength,this._onDataArrival&&this._onDataArrival(r,i,this._receivedLength),n.byteLength>=this._bufferLimit&&(s.default.v(this.TAG,"MSStream buffer exceeded max size near "+(i+r.byteLength)+", reconnecting..."),this._doReconnectIfNeeded())}else this._doReconnectIfNeeded()}},{key:"_doReconnectIfNeeded",value:function(){if(null==this._contentLength||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();var e={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,e,!0)}}},{key:"_msrOnLoad",value:function(e){this._status=l.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(e){this._status=l.LoaderStatus.kError;var t=0,n=null;if(this._contentLength&&this._receivedLength<this._contentLength?(t=l.LoaderErrors.EARLY_EOF,n={code:-1,msg:"MSStream meet Early-Eof"}):(t=l.LoaderErrors.EARLY_EOF,n={code:-1,msg:e.constructor.name+" "+e.type}),!this._onError)throw new u.RuntimeException(n.msg);this._onError(t,n)}}]),t}(l.BaseLoader);t.default=p,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=f(a),l=n(13),u=f(l),c=n(3),d=n(1);function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function g(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(e,n){h(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"xhr-range-loader"));return r.TAG="RangeLoader",r._seekHandler=e,r._config=n,r._needStash=!1,r._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],r._currentChunkSizeKB=384,r._currentSpeedNormalized=0,r._zeroSpeedChunkCount=0,r._xhr=null,r._speedSampler=new u.default,r._requestAbort=!1,r._waitForTotalLength=!1,r._totalLengthReceived=!1,r._currentRequestURL=null,r._currentRedirectedURL=null,r._currentRequestRange=null,r._totalLength=null,r._contentLength=null,r._receivedLength=0,r._lastTimeLoaded=0,r}return g(t,e),o(t,null,[{key:"isSupported",value:function(){try{var e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer","arraybuffer"===e.responseType}catch(t){return s.default.w("RangeLoader",t.message),!1}}}]),o(t,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"open",value:function(e,t){this._dataSource=e,this._range=t,this._status=c.LoaderStatus.kConnecting;var n=!1;void 0!=this._dataSource.filesize&&0!==this._dataSource.filesize&&(n=!0,this._totalLength=this._dataSource.filesize),this._totalLengthReceived||n?this._openSubRange():(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1}))}},{key:"_openSubRange",value:function(){var e=1024*this._currentChunkSizeKB,t=this._range.from+this._receivedLength,n=t+e;null!=this._contentLength&&n-this._range.from>=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(e,t){this._lastTimeLoaded=0;var n=e.url;this._config.reuseRedirectedURL&&(void 0!=this._currentRedirectedURL?n=this._currentRedirectedURL:void 0!=e.redirectedURL&&(n=e.redirectedURL));var i=this._seekHandler.getConfig(n,t);this._currentRequestURL=i.url;var o=this._xhr=new XMLHttpRequest;if(o.open("GET",i.url,!0),o.responseType="arraybuffer",o.onreadystatechange=this._onReadyStateChange.bind(this),o.onprogress=this._onProgress.bind(this),o.onload=this._onLoad.bind(this),o.onerror=this._onXhrError.bind(this),e.withCredentials&&(o.withCredentials=!0),"object"===r(i.headers)){var a=i.headers;for(var s in a)a.hasOwnProperty(s)&&o.setRequestHeader(s,a[s])}o.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=c.LoaderStatus.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(e){var t=e.target;if(2===t.readyState){if(void 0!=t.responseURL){var n=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&n!==this._currentRedirectedURL&&(this._currentRedirectedURL=n,this._onURLRedirect&&this._onURLRedirect(n))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=c.LoaderStatus.kBuffering}else{if(this._status=c.LoaderStatus.kError,!this._onError)throw new d.RuntimeException("RangeLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(c.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}}}},{key:"_onProgress",value:function(e){if(this._status!==c.LoaderStatus.kError){if(null===this._contentLength){var t=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,t=!0;var n=e.total;this._internalAbort(),null!=n&0!==n&&(this._totalLength=n)}if(-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,t)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var r=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(r)}}},{key:"_normalizeSpeed",value:function(e){var t=this._chunkSizeKBList,n=t.length-1,r=0,i=0,o=n;if(e<t[0])return t[0];while(i<=o){if(r=i+Math.floor((o-i)/2),r===n||e>=t[r]&&e<t[r+1])return t[r];t[r]<e?i=r+1:o=r-1}}},{key:"_onLoad",value:function(e){if(this._status!==c.LoaderStatus.kError)if(this._waitForTotalLength)this._waitForTotalLength=!1;else{this._lastTimeLoaded=0;var t=this._speedSampler.lastSecondKBps;if(0===t&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(t=this._speedSampler.currentKBps)),0!==t){var n=this._normalizeSpeed(t);this._currentSpeedNormalized!==n&&(this._currentSpeedNormalized=n,this._currentChunkSizeKB=n)}var r=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=r.byteLength;var o=!1;null!=this._contentLength&&this._receivedLength<this._contentLength?this._openSubRange():o=!0,this._onDataArrival&&this._onDataArrival(r,i,this._receivedLength),o&&(this._status=c.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}}},{key:"_onXhrError",value:function(e){this._status=c.LoaderStatus.kError;var t=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=c.LoaderErrors.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=c.LoaderErrors.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),!this._onError)throw new d.RuntimeException(n.msg);this._onError(t,n)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}}]),t}(c.BaseLoader);t.default=v,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(l(o),n(3)),s=n(1);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"websocket-loader"));return e.TAG="WebSocketLoader",e._needStash=!0,e._ws=null,e._requestAbort=!1,e._receivedLength=0,e}return d(t,e),i(t,null,[{key:"isSupported",value:function(){try{return"undefined"!==typeof self.WebSocket}catch(e){return!1}}}]),i(t,[{key:"destroy",value:function(){this._ws&&this.abort(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"open",value:function(e){try{var t=this._ws=new self.WebSocket(e.url);t.binaryType="arraybuffer",t.onopen=this._onWebSocketOpen.bind(this),t.onclose=this._onWebSocketClose.bind(this),t.onmessage=this._onWebSocketMessage.bind(this),t.onerror=this._onWebSocketError.bind(this),this._status=a.LoaderStatus.kConnecting}catch(r){this._status=a.LoaderStatus.kError;var n={code:r.code,msg:r.message};if(!this._onError)throw new s.RuntimeException(n.msg);this._onError(a.LoaderErrors.EXCEPTION,n)}}},{key:"abort",value:function(){var e=this._ws;!e||0!==e.readyState&&1!==e.readyState||(this._requestAbort=!0,e.close()),this._ws=null,this._status=a.LoaderStatus.kComplete}},{key:"_onWebSocketOpen",value:function(e){this._status=a.LoaderStatus.kBuffering}},{key:"_onWebSocketClose",value:function(e){!0!==this._requestAbort?(this._status=a.LoaderStatus.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)):this._requestAbort=!1}},{key:"_onWebSocketMessage",value:function(e){var t=this;if(e.data instanceof ArrayBuffer)this._dispatchArrayBuffer(e.data);else if(e.data instanceof Blob){var n=new FileReader;n.onload=function(){t._dispatchArrayBuffer(n.result)},n.readAsArrayBuffer(e.data)}else{this._status=a.LoaderStatus.kError;var r={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(!this._onError)throw new s.RuntimeException(r.msg);this._onError(a.LoaderErrors.EXCEPTION,r)}}},{key:"_dispatchArrayBuffer",value:function(e){var t=e,n=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}},{key:"_onWebSocketError",value:function(e){this._status=a.LoaderStatus.kError;var t={code:e.code,msg:e.message};if(!this._onError)throw new s.RuntimeException(t.msg);this._onError(a.LoaderErrors.EXCEPTION,t)}}]),t}(a.BaseLoader);t.default=f,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t){i(this,e),this._zeroStart=t||!1}return r(e,[{key:"getConfig",value:function(e,t){var n={};if(0!==t.from||-1!==t.to){var r=void 0;r=-1!==t.to?"bytes="+t.from.toString()+"-"+t.to.toString():"bytes="+t.from.toString()+"-",n["Range"]=r}else this._zeroStart&&(n["Range"]="bytes=0-");return{url:e,headers:n}}},{key:"removeURLParameters",value:function(e){return e}}]),e}();t.default=o,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,n){i(this,e),this._startName=t,this._endName=n}return r(e,[{key:"getConfig",value:function(e,t){var n=e;if(0!==t.from||-1!==t.to){var r=!0;-1===n.indexOf("?")&&(n+="?",r=!1),r&&(n+="&"),n+=this._startName+"="+t.from.toString(),-1!==t.to&&(n+="&"+this._endName+"="+t.to.toString())}return{url:n,headers:{}}}},{key:"removeURLParameters",value:function(e){var t=e.split("?")[0],n=void 0,r=e.indexOf("?");-1!==r&&(n=e.substring(r+1));var i="";if(void 0!=n&&n.length>0)for(var o=n.split("&"),a=0;a<o.length;a++){var s=o[a].split("="),l=a>0;s[0]!==this._startName&&s[0]!==this._endName&&(l&&(i+="&"),i+=o[a])}return 0===i.length?t:t+"?"+i}}]),e}();t.default=o,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(2),a=k(o),s=n(0),l=k(s),u=n(4),c=k(u),d=n(7),f=k(d),h=n(34),p=k(h),g=n(5),v=k(g),y=n(45),m=k(y),b=n(16),x=k(b),_=n(17),w=n(6),S=n(1);function k(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var T=function(){function e(t,n){if(O(this,e),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new a.default,this._config=(0,w.createDefaultConfig)(),"object"===("undefined"===typeof n?"undefined":r(n))&&Object.assign(this._config,n),"flv"!==t.type.toLowerCase())throw new S.InvalidArgumentException("FlvPlayer requires an flv MediaDataSource input!");!0===t.isLive&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=t,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var i=c.default.chrome&&(c.default.version.major<50||50===c.default.version.major&&c.default.version.build<2661);this._alwaysSeekKeyframe=!!(i||c.default.msedge||c.default.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return i(e,[{key:"destroy",value:function(){null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(e,t){var n=this;e===f.default.MEDIA_INFO?null!=this._mediaInfo&&Promise.resolve().then((function(){n._emitter.emit(f.default.MEDIA_INFO,n.mediaInfo)})):e===f.default.STATISTICS_INFO&&null!=this._statisticsInfo&&Promise.resolve().then((function(){n._emitter.emit(f.default.STATISTICS_INFO,n.statisticsInfo)})),this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"attachMediaElement",value:function(e){var t=this;if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),this._msectl=new m.default(this._config),this._msectl.on(x.default.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(x.default.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(x.default.SOURCE_OPEN,(function(){t._mseSourceOpened=!0,t._hasPendingLoad&&(t._hasPendingLoad=!1,t.load())})),this._msectl.on(x.default.ERROR,(function(e){t._emitter.emit(f.default.ERROR,_.ErrorTypes.MEDIA_ERROR,_.ErrorDetails.MEDIA_MSE_ERROR,e)})),this._msectl.attachMediaElement(e),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(n){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var e=this;if(!this._mediaElement)throw new S.IllegalStateException("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new S.IllegalStateException("FlvPlayer.load() has been called, please call unload() first!");this._hasPendingLoad||(this._config.deferLoadAfterSourceOpen&&!1===this._mseSourceOpened?this._hasPendingLoad=!0:(this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new p.default(this._mediaDataSource,this._config),this._transmuxer.on(v.default.INIT_SEGMENT,(function(t,n){e._msectl.appendInitSegment(n)})),this._transmuxer.on(v.default.MEDIA_SEGMENT,(function(t,n){if(e._msectl.appendMediaSegment(n),e._config.lazyLoad&&!e._config.isLive){var r=e._mediaElement.currentTime;n.info.endDts>=1e3*(r+e._config.lazyLoadMaxDuration)&&null==e._progressChecker&&(l.default.v(e.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),e._suspendTransmuxer())}})),this._transmuxer.on(v.default.LOADING_COMPLETE,(function(){e._msectl.endOfStream(),e._emitter.emit(f.default.LOADING_COMPLETE)})),this._transmuxer.on(v.default.RECOVERED_EARLY_EOF,(function(){e._emitter.emit(f.default.RECOVERED_EARLY_EOF)})),this._transmuxer.on(v.default.IO_ERROR,(function(t,n){e._emitter.emit(f.default.ERROR,_.ErrorTypes.NETWORK_ERROR,t,n)})),this._transmuxer.on(v.default.DEMUX_ERROR,(function(t,n){e._emitter.emit(f.default.ERROR,_.ErrorTypes.MEDIA_ERROR,t,{code:-1,msg:n})})),this._transmuxer.on(v.default.MEDIA_INFO,(function(t){e._mediaInfo=t,e._emitter.emit(f.default.MEDIA_INFO,Object.assign({},t))})),this._transmuxer.on(v.default.STATISTICS_INFO,(function(t){e._statisticsInfo=e._fillStatisticsInfo(t),e._emitter.emit(f.default.STATISTICS_INFO,Object.assign({},e._statisticsInfo))})),this._transmuxer.on(v.default.RECOMMEND_SEEKPOINT,(function(t){e._mediaElement&&!e._config.accurateSeek&&(e._requestSetTime=!0,e._mediaElement.currentTime=t/1e3)})),this._transmuxer.on(v.default.LOADED_SEI,(function(t,n){e._emitter.emit(f.default.LOADED_SEI,t,n)})),this._transmuxer.open()))}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){var e=this._mediaElement.play();return void 0!==e&&e?e.catch((function(){})):void 0}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"_fillStatisticsInfo",value:function(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,n=0,r=0;if(this._mediaElement.getVideoPlaybackQuality){var i=this._mediaElement.getVideoPlaybackQuality();n=i.totalVideoFrames,r=i.droppedVideoFrames}else void 0!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=r),e}},{key:"_onmseUpdateEnd",value:function(){if(this._config.lazyLoad&&!this._config.isLive){for(var e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,r=0;r<e.length;r++){var i=e.start(r),o=e.end(r);if(i<=t&&t<o){n=o;break}}n>=t+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(l.default.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}},{key:"_onmseBufferFull",value:function(){l.default.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var e=this._mediaElement.currentTime,t=this._mediaElement.buffered,n=!1,r=0;r<t.length;r++){var i=t.start(r),o=t.end(r);if(e>=i&&e<o){e>=o-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(l.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(e){for(var t=this._mediaElement.buffered,n=0;n<t.length;n++){var r=t.start(n),i=t.end(n);if(e>=r&&e<i)return!0}return!1}},{key:"_internalSeek",value:function(e){var t=this._isTimepointBuffered(e),n=!1,r=0;if(e<1&&this._mediaElement.buffered.length>0){var i=this._mediaElement.buffered.start(0);(i<1&&e<i||c.default.safari)&&(n=!0,r=c.default.safari?.1:i)}if(n)this._requestSetTime=!0,this._mediaElement.currentTime=r;else if(t){if(this._alwaysSeekKeyframe){var o=this._msectl.getNearestKeyframe(Math.floor(1e3*e));this._requestSetTime=!0,this._mediaElement.currentTime=null!=o?o.dts/1e3:e}else this._requestSetTime=!0,this._mediaElement.currentTime=e;null!=this._progressChecker&&this._checkProgressAndResume()}else null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(1e3*e)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var e=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(e)||(null!=this._progressChecker&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(1e3*e)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(e){var t=this._mediaElement;if(e||!this._receivedCanPlay||t.readyState<2){var n=t.buffered;n.length>0&&t.currentTime<n.start(0)&&(l.default.w(this.TAG,"Playback seems stuck at "+t.currentTime+", seek to "+n.start(0)),this._requestSetTime=!0,this._mediaElement.currentTime=n.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(e){var t=this._mediaElement.currentTime,n=this._mediaElement.buffered;if(this._requestSetTime)this._requestSetTime=!1;else{if(t<1&&n.length>0){var r=n.start(0);if(r<1&&t<r||c.default.safari)return this._requestSetTime=!0,void(this._mediaElement.currentTime=c.default.safari?.1:r)}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){var i=this._msectl.getNearestKeyframe(Math.floor(1e3*t));null!=i&&(this._requestSetTime=!0,this._mediaElement.currentTime=i.dts/1e3)}null!=this._progressChecker&&this._checkProgressAndResume()}else this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}}},{key:"_onvCanPlay",value:function(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(e){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(e){this._checkAndResumeStuckPlayback()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return null==this._statisticsInfo&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}}]),e}();t.default=T,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),o=m(i),a=n(0),s=m(a),l=n(8),u=m(l),c=n(14),d=m(c),f=n(5),h=m(f),p=n(43),g=m(p),v=n(9),y=m(v);function m(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var x=function(){function e(t,r){if(b(this,e),this.TAG="Transmuxer",this._emitter=new o.default,r.enableWorker&&"undefined"!==typeof Worker)try{var i=n(44);this._worker=i(g.default),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[t,r]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},u.default.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:u.default.getConfig()})}catch(l){s.default.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new d.default(t,r)}else this._controller=new d.default(t,r);if(this._controller){var a=this._controller;a.on(h.default.IO_ERROR,this._onIOError.bind(this)),a.on(h.default.DEMUX_ERROR,this._onDemuxError.bind(this)),a.on(h.default.INIT_SEGMENT,this._onInitSegment.bind(this)),a.on(h.default.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),a.on(h.default.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),a.on(h.default.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),a.on(h.default.MEDIA_INFO,this._onMediaInfo.bind(this)),a.on(h.default.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),a.on(h.default.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this)),a.on(h.default.LOADED_SEI,this._onLoadedSei.bind(this))}}return r(e,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),u.default.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(e,t){this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"hasWorker",value:function(){return null!=this._worker}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(h.default.INIT_SEGMENT,e,t)}))}},{key:"_onMediaSegment",value:function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(h.default.MEDIA_SEGMENT,e,t)}))}},{key:"_onLoadingComplete",value:function(){var e=this;Promise.resolve().then((function(){e._emitter.emit(h.default.LOADING_COMPLETE)}))}},{key:"_onRecoveredEarlyEof",value:function(){var e=this;Promise.resolve().then((function(){e._emitter.emit(h.default.RECOVERED_EARLY_EOF)}))}},{key:"_onMediaInfo",value:function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(h.default.MEDIA_INFO,e)}))}},{key:"_onStatisticsInfo",value:function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(h.default.STATISTICS_INFO,e)}))}},{key:"_onIOError",value:function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(h.default.IO_ERROR,e,t)}))}},{key:"_onDemuxError",value:function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(h.default.DEMUX_ERROR,e,t)}))}},{key:"_onRecommendSeekpoint",value:function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(h.default.RECOMMEND_SEEKPOINT,e)}))}},{key:"_onLoadedSei",value:function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(h.default.LOADED_SEI,e,t)}))}},{key:"_onLoggingConfigChanged",value:function(e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:e})}},{key:"_onWorkerMessage",value:function(e){var t=e.data,n=t.data;if("destroyed"===t.msg||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(t.msg){case h.default.INIT_SEGMENT:case h.default.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case h.default.LOADING_COMPLETE:case h.default.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case h.default.MEDIA_INFO:Object.setPrototypeOf(n,y.default.prototype),this._emitter.emit(t.msg,n);break;case h.default.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case h.default.IO_ERROR:case h.default.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case h.default.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":s.default.emitter.emit("log",n.type,n.logcat);break;default:break}}}]),e}();t.default=x,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=m(o),s=n(36),l=m(s),u=n(38),c=m(u),d=n(10),f=m(d),h=n(9),p=m(h),g=n(1),v=n(2),y=m(v);function m(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}var _=function(){function e(t,n){b(this,e),this.TAG="FLVDemuxer",this._emitter=new y.default,this._config=n,this._onError=null,this._onMediaInfo=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=t.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=t.hasAudioTrack,this._hasVideo=t.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new p.default,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}()}return i(e,[{key:"destroy",value:function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"bindDataSource",value:function(e){return e.onDataArrival=this.parseChunks.bind(this),this}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new p.default}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched}},{key:"parseChunks",value:function(t,n){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new g.IllegalStateException("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var r=0,i=this._littleEndian;if(0===n){if(!(t.byteLength>13))return 0;var o=e.probe(t);r=o.dataOffset}if(this._firstParse){this._firstParse=!1,n+r!==this._dataOffset&&a.default.w(this.TAG,"First time parsing but chunk byteStart invalid!");var s=new DataView(t,r),l=s.getUint32(0,!i);0!==l&&a.default.w(this.TAG,"PrevTagSize0 !== 0 !!!"),r+=4}while(r<t.byteLength){this._dispatch=!0;var u=new DataView(t,r);if(r+11+4>t.byteLength)break;var c=u.getUint8(0),d=16777215&u.getUint32(0,!i);if(r+11+d+4>t.byteLength)break;if(8===c||9===c||18===c){var f=u.getUint8(4),h=u.getUint8(5),p=u.getUint8(6),v=u.getUint8(7),y=p|h<<8|f<<16|v<<24,m=16777215&u.getUint32(7,!i);0!==m&&a.default.w(this.TAG,"Meet tag which has StreamID != 0!");var b=r+11;switch(c){case 8:this._parseAudioData(t,b,d,y);break;case 9:this._parseVideoData(t,b,d,y,n+r);break;case 18:this._parseScriptData(t,b,d);break}var x=u.getUint32(11+d,!i);x!==11+d&&a.default.w(this.TAG,"Invalid PrevTagSize "+x),r+=11+d+4}else a.default.w(this.TAG,"Unsupported tag type "+c+", skipped"),r+=11+d+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),r}},{key:"_parseScriptData",value:function(e,t,n){var i=l.default.parseScriptData(e,t,n);if(i.hasOwnProperty("onMetaData")){if(null==i.onMetaData||"object"!==r(i.onMetaData))return void a.default.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&a.default.w(this.TAG,"Found another onMetaData tag!"),this._metadata=i;var o=this._metadata.onMetaData;if(this._emitter.emit("metadata_arrived",o),"boolean"===typeof o.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=o.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"===typeof o.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=o.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"===typeof o.audiodatarate&&(this._mediaInfo.audioDataRate=o.audiodatarate),"number"===typeof o.videodatarate&&(this._mediaInfo.videoDataRate=o.videodatarate),"number"===typeof o.width&&(this._mediaInfo.width=o.width),"number"===typeof o.height&&(this._mediaInfo.height=o.height),"number"===typeof o.duration){if(!this._durationOverrided){var s=Math.floor(o.duration*this._timescale);this._duration=s,this._mediaInfo.duration=s}}else this._mediaInfo.duration=0;if("number"===typeof o.framerate){var u=Math.floor(1e3*o.framerate);if(u>0){var c=u/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=c,this._referenceFrameRate.fps_num=u,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=c}}if("object"===r(o.keyframes)){this._mediaInfo.hasKeyframesIndex=!0;var d=o.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(d),o.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=o,a.default.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}}},{key:"_parseKeyframesIndex",value:function(e){for(var t=[],n=[],r=1;r<e.times.length;r++){var i=this._timestampBase+Math.floor(1e3*e.times[r]);t.push(i),n.push(e.filepositions[r])}return{times:t,filepositions:n}}},{key:"_parseAudioData",value:function(e,t,n,r){if(n<=1)a.default.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");else if(!0!==this._hasAudioFlagOverrided||!1!==this._hasAudio){this._littleEndian;var i=new DataView(e,t,n),o=i.getUint8(0),s=o>>>4;if(2===s||10===s){var l=0,u=(12&o)>>>2;if(u>=0&&u<=4){l=this._flvSoundRateTable[u];var c=1&o,d=this._audioMetadata,h=this._audioTrack;if(d||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),d=this._audioMetadata={},d.type="audio",d.id=h.id,d.timescale=this._timescale,d.duration=this._duration,d.audioSampleRate=l,d.channelCount=0===c?1:2),10===s){var p=this._parseAACAudioData(e,t+1,n-1);if(void 0==p)return;if(0===p.packetType){d.config&&a.default.w(this.TAG,"Found another AudioSpecificConfig!");var g=p.data;d.audioSampleRate=g.samplingRate,d.channelCount=g.channelCount,d.codec=g.codec,d.originalCodec=g.originalCodec,d.config=g.config,d.refSampleDuration=1024/d.audioSampleRate*d.timescale,a.default.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",d);var v=this._mediaInfo;v.audioCodec=d.originalCodec,v.audioSampleRate=d.audioSampleRate,v.audioChannelCount=d.channelCount,v.hasVideo?null!=v.videoCodec&&(v.mimeType='video/x-flv; codecs="'+v.videoCodec+","+v.audioCodec+'"'):v.mimeType='video/x-flv; codecs="'+v.audioCodec+'"',v.isComplete()&&this._onMediaInfo(v)}else if(1===p.packetType){var y=this._timestampBase+r,m={unit:p.data,length:p.data.byteLength,dts:y,pts:y};h.samples.push(m),h.length+=p.data.length}else a.default.e(this.TAG,"Flv: Unsupported AAC data type "+p.packetType)}else if(2===s){if(!d.codec){var b=this._parseMP3AudioData(e,t+1,n-1,!0);if(void 0==b)return;d.audioSampleRate=b.samplingRate,d.channelCount=b.channelCount,d.codec=b.codec,d.originalCodec=b.originalCodec,d.refSampleDuration=1152/d.audioSampleRate*d.timescale,a.default.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",d);var x=this._mediaInfo;x.audioCodec=d.codec,x.audioSampleRate=d.audioSampleRate,x.audioChannelCount=d.channelCount,x.audioDataRate=b.bitRate,x.hasVideo?null!=x.videoCodec&&(x.mimeType='video/x-flv; codecs="'+x.videoCodec+","+x.audioCodec+'"'):x.mimeType='video/x-flv; codecs="'+x.audioCodec+'"',x.isComplete()&&this._onMediaInfo(x)}var _=this._parseMP3AudioData(e,t+1,n-1,!1);if(void 0==_)return;var w=this._timestampBase+r,S={unit:_,length:_.byteLength,dts:w,pts:w};h.samples.push(S),h.length+=_.length}}else this._onError(f.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+u)}else this._onError(f.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+s)}}},{key:"_parseAACAudioData",value:function(e,t,n){if(!(n<=1)){var r={},i=new Uint8Array(e,t,n);return r.packetType=i[0],0===i[0]?r.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):r.data=i.subarray(1),r}a.default.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")}},{key:"_parseAACAudioSpecificConfig",value:function(e,t,n){var r=new Uint8Array(e,t,n),i=null,o=0,a=0,s=0,l=null;if(o=a=r[0]>>>3,s=(7&r[0])<<1|r[1]>>>7,s<0||s>=this._mpegSamplingRates.length)this._onError(f.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{var u=this._mpegSamplingRates[s],c=(120&r[1])>>>3;if(!(c<0||c>=8)){5===o&&(l=(7&r[1])<<1|r[2]>>>7,r[2]);var d=self.navigator.userAgent.toLowerCase();return-1!==d.indexOf("firefox")?s>=6?(o=5,i=new Array(4),l=s-3):(o=2,i=new Array(2),l=s):-1!==d.indexOf("android")?(o=2,i=new Array(2),l=s):(o=5,l=s,i=new Array(4),s>=6?l=s-3:1===c&&(o=2,i=new Array(2),l=s)),i[0]=o<<3,i[0]|=(15&s)>>>1,i[1]=(15&s)<<7,i[1]|=(15&c)<<3,5===o&&(i[1]|=(15&l)>>>1,i[2]=(1&l)<<7,i[2]|=8,i[3]=0),{config:i,samplingRate:u,channelCount:c,codec:"mp4a.40."+o,originalCodec:"mp4a.40."+a}}this._onError(f.default.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}}},{key:"_parseMP3AudioData",value:function(e,t,n,r){if(!(n<4)){this._littleEndian;var i=new Uint8Array(e,t,n),o=null;if(r){if(255!==i[0])return;var s=i[1]>>>3&3,l=(6&i[1])>>1,u=(240&i[2])>>>4,c=(12&i[2])>>>2,d=i[3]>>>6&3,f=3!==d?2:1,h=0,p=0,g="mp3";switch(s){case 0:h=this._mpegAudioV25SampleRateTable[c];break;case 2:h=this._mpegAudioV20SampleRateTable[c];break;case 3:h=this._mpegAudioV10SampleRateTable[c];break}switch(l){case 1:u<this._mpegAudioL3BitRateTable.length&&(p=this._mpegAudioL3BitRateTable[u]);break;case 2:u<this._mpegAudioL2BitRateTable.length&&(p=this._mpegAudioL2BitRateTable[u]);break;case 3:u<this._mpegAudioL1BitRateTable.length&&(p=this._mpegAudioL1BitRateTable[u]);break}o={bitRate:p,samplingRate:h,channelCount:f,codec:g,originalCodec:g}}else o=i;return o}a.default.w(this.TAG,"Flv: Invalid MP3 packet, header missing!")}},{key:"_parseVideoData",value:function(e,t,n,r,i){if(n<=1)a.default.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");else if(!0!==this._hasVideoFlagOverrided||!1!==this._hasVideo){var o=new Uint8Array(e,t,n)[0],s=(240&o)>>>4,l=15&o;7===l?this._parseAVCVideoPacket(e,t+1,n-1,r,i,s):this._onError(f.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+l)}}},{key:"_parseAVCVideoPacket",value:function(e,t,n,r,i,o){if(n<4)a.default.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");else{var s=this._littleEndian,l=new DataView(e,t,n),u=l.getUint8(0),c=16777215&l.getUint32(0,!s),d=c<<8>>8;if(0===u)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(1===u)this._parseAVCVideoData(e,t+4,n-4,r,i,o,d);else if(2!==u)return void this._onError(f.default.FORMAT_ERROR,"Flv: Invalid video packet type "+u)}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(e,t,n){if(n<7)a.default.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var r=this._videoMetadata,i=this._videoTrack,o=this._littleEndian,s=new DataView(e,t,n);r?"undefined"!==typeof r.avcc&&a.default.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),r=this._videoMetadata={},r.type="video",r.id=i.id,r.timescale=this._timescale,r.duration=this._duration);var l=s.getUint8(0),u=s.getUint8(1);if(s.getUint8(2),s.getUint8(3),1===l&&0!==u)if(this._naluLengthSize=1+(3&s.getUint8(4)),3===this._naluLengthSize||4===this._naluLengthSize){var d=31&s.getUint8(5);if(0!==d){d>1&&a.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+d);for(var h=6,p=0;p<d;p++){var g=s.getUint16(h,!o);if(h+=2,0!==g){var v=new Uint8Array(e,t+h,g);h+=g;var y=c.default.parseSPS(v);if(0===p){r.codecWidth=y.codec_size.width,r.codecHeight=y.codec_size.height,r.presentWidth=y.present_size.width,r.presentHeight=y.present_size.height,r.profile=y.profile_string,r.level=y.level_string,r.bitDepth=y.bit_depth,r.chromaFormat=y.chroma_format,r.sarRatio=y.par_ratio,r.frameRate=y.frame_rate,!1!==y.frame_rate.fixed&&0!==y.frame_rate.fps_num&&0!==y.frame_rate.fps_den||(r.frameRate=this._referenceFrameRate);var m=r.frameRate.fps_den,b=r.frameRate.fps_num;r.refSampleDuration=r.timescale*(m/b);for(var x=v.subarray(1,4),_="avc1.",w=0;w<3;w++){var S=x[w].toString(16);S.length<2&&(S="0"+S),_+=S}r.codec=_;var k=this._mediaInfo;k.width=r.codecWidth,k.height=r.codecHeight,k.fps=r.frameRate.fps,k.profile=r.profile,k.level=r.level,k.refFrames=y.ref_frames,k.chromaFormat=y.chroma_format_string,k.sarNum=r.sarRatio.width,k.sarDen=r.sarRatio.height,k.videoCodec=_,k.hasAudio?null!=k.audioCodec&&(k.mimeType='video/x-flv; codecs="'+k.videoCodec+","+k.audioCodec+'"'):k.mimeType='video/x-flv; codecs="'+k.videoCodec+'"',k.isComplete()&&this._onMediaInfo(k)}}}var O=s.getUint8(h);if(0!==O){O>1&&a.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+O),h++;for(var T=0;T<O;T++){var E=s.getUint16(h,!o);h+=2,0!==E&&(h+=E)}r.avcc=new Uint8Array(n),r.avcc.set(new Uint8Array(e,t,n),0),a.default.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",r)}else this._onError(f.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS")}else this._onError(f.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS")}else this._onError(f.default.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));else this._onError(f.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord")}}},{key:"_parseAVCVideoData",value:function(e,t,n,r,i,o,s){var l=this._littleEndian,u=new DataView(e,t,n),c=[],d=0,f=0,h=this._naluLengthSize,p=this._timestampBase+r,g=1===o;while(f<n){if(f+4>=n){a.default.w(this.TAG,"Malformed Nalu near timestamp "+p+", offset = "+f+", dataSize = "+n);break}var v=u.getUint32(f,!l);if(3===h&&(v>>>=8),v>n-h)return void a.default.w(this.TAG,"Malformed Nalus near timestamp "+p+", NaluSize > DataSize!");var y=31&u.getUint8(f+h);5===y&&(g=!0);var m=new Uint8Array(e,t+f,h+v),b={type:y,data:m};c.push(b),d+=m.byteLength,f+=h+v}if(c.length){var x=this._videoTrack,_={units:c,length:d,isKeyframe:g,dts:p,cts:s,pts:p+s};g&&(_.fileposition=i),x.samples.push(_),x.length+=d}}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(e){this._onTrackMetadata=e}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(e){this._onMediaInfo=e}},{key:"onError",get:function(){return this._onError},set:function(e){this._onError=e}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(e){this._onDataAvailable=e}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(e){this._timestampBase=e}},{key:"overridedDuration",get:function(){return this._duration},set:function(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e}},{key:"overridedHasAudio",set:function(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e}},{key:"overridedHasVideo",set:function(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e}}],[{key:"probe",value:function(e){var t=new Uint8Array(e),n={match:!1};if(70!==t[0]||76!==t[1]||86!==t[2]||1!==t[3])return n;var r=(4&t[4])>>>2!==0,i=0!==(1&t[4]),o=x(t,5);return o<9?n:{match:!0,consumed:o,dataOffset:o,hasAudioTrack:r,hasVideoTrack:i}}}]),e}();t.default=_,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=u(i),a=n(37),s=u(a),l=n(1);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=function(){var e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}(),f=function(){function e(){c(this,e)}return r(e,null,[{key:"parseScriptData",value:function(t,n,r){var i={};try{var a=e.parseValue(t,n,r),s=e.parseValue(t,n+a.size,r-a.size);i[a.data]=s.data}catch(l){o.default.e("AMF",l.toString())}return i}},{key:"parseObject",value:function(t,n,r){if(r<3)throw new l.IllegalStateException("Data not enough when parse ScriptDataObject");var i=e.parseString(t,n,r),o=e.parseValue(t,n+i.size,r-i.size),a=o.objectEnd;return{data:{name:i.data,value:o.data},size:i.size+o.size,objectEnd:a}}},{key:"parseVariable",value:function(t,n,r){return e.parseObject(t,n,r)}},{key:"parseString",value:function(e,t,n){if(n<2)throw new l.IllegalStateException("Data not enough when parse String");var r=new DataView(e,t,n),i=r.getUint16(0,!d),o=void 0;return o=i>0?(0,s.default)(new Uint8Array(e,t+2,i)):"",{data:o,size:2+i}}},{key:"parseLongString",value:function(e,t,n){if(n<4)throw new l.IllegalStateException("Data not enough when parse LongString");var r=new DataView(e,t,n),i=r.getUint32(0,!d),o=void 0;return o=i>0?(0,s.default)(new Uint8Array(e,t+4,i)):"",{data:o,size:4+i}}},{key:"parseDate",value:function(e,t,n){if(n<10)throw new l.IllegalStateException("Data size invalid when parse Date");var r=new DataView(e,t,n),i=r.getFloat64(0,!d),o=r.getInt16(8,!d);return i+=60*o*1e3,{data:new Date(i),size:10}}},{key:"parseValue",value:function(t,n,r){if(r<1)throw new l.IllegalStateException("Data not enough when parse Value");var i=new DataView(t,n,r),a=1,s=i.getUint8(0),u=void 0,c=!1;try{switch(s){case 0:u=i.getFloat64(1,!d),a+=8;break;case 1:var f=i.getUint8(1);u=!!f,a+=1;break;case 2:var h=e.parseString(t,n+1,r-1);u=h.data,a+=h.size;break;case 3:u={};var p=0;9===(16777215&i.getUint32(r-4,!d))&&(p=3);var g=1e4;while(a<r-4&&g-- >0){var v=e.parseObject(t,n+a,r-a-p);if(v.objectEnd)break;u[v.data.name]=v.data.value,a+=v.size}if(a<=r-3){var y=16777215&i.getUint32(a-1,!d);9===y&&(a+=3)}break;case 8:u={},a+=4;var m=0;9===(16777215&i.getUint32(r-4,!d))&&(m=3);var b=1e4;while(a<r-8&&b-- >0){var x=e.parseVariable(t,n+a,r-a-m);if(x.objectEnd)break;u[x.data.name]=x.data.value,a+=x.size}if(a<=r-3){var _=16777215&i.getUint32(a-1,!d);9===_&&(a+=3)}break;case 9:u=void 0,a=1,c=!0;break;case 10:u=[];var w=i.getUint32(1,!d);a+=4;for(var S=0;S<w;S++){var k=e.parseValue(t,n+a,r-a);u.push(k.data),a+=k.size}break;case 11:var O=e.parseDate(t,n+1,r-1);u=O.data,a+=O.size;break;case 12:var T=e.parseString(t,n+1,r-1);u=T.data,a+=T.size;break;default:a=r,o.default.w("AMF","Unsupported AMF value type "+s)}}catch(E){o.default.e("AMF",E.toString())}return{data:u,size:a,objectEnd:c}}}]),e}();t.default=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t,n){var r=e;if(t+n<r.length){while(n--)if(128!==(192&r[++t]))return!1;return!0}return!1}function i(e){var t=[],n=e,i=0,o=e.length;while(i<o)if(n[i]<128)t.push(String.fromCharCode(n[i])),++i;else{if(n[i]<192);else if(n[i]<224){if(r(n,i,1)){var a=(31&n[i])<<6|63&n[i+1];if(a>=128){t.push(String.fromCharCode(65535&a)),i+=2;continue}}}else if(n[i]<240){if(r(n,i,2)){var s=(15&n[i])<<12|(63&n[i+1])<<6|63&n[i+2];if(s>=2048&&55296!==(63488&s)){t.push(String.fromCharCode(65535&s)),i+=3;continue}}}else if(n[i]<248&&r(n,i,3)){var l=(7&n[i])<<18|(63&n[i+1])<<12|(63&n[i+2])<<6|63&n[i+3];if(l>65536&&l<1114112){l-=65536,t.push(String.fromCharCode(l>>>10|55296)),t.push(String.fromCharCode(1023&l|56320)),i+=4;continue}}t.push(String.fromCharCode(65533)),++i}return t.join("")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(39),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function(){function e(){s(this,e)}return r(e,null,[{key:"_ebsp2rbsp",value:function(e){for(var t=e,n=t.byteLength,r=new Uint8Array(n),i=0,o=0;o<n;o++)o>=2&&3===t[o]&&0===t[o-1]&&0===t[o-2]||(r[i]=t[o],i++);return new Uint8Array(r.buffer,0,i)}},{key:"parseSPS",value:function(t){var n=e._ebsp2rbsp(t),r=new o.default(n);r.readByte();var i=r.readByte();r.readByte();var a=r.readByte();r.readUEG();var s=e.getProfileString(i),l=e.getLevelString(a),u=1,c=420,d=[0,420,422,444],f=8;if((100===i||110===i||122===i||244===i||44===i||83===i||86===i||118===i||128===i||138===i||144===i)&&(u=r.readUEG(),3===u&&r.readBits(1),u<=3&&(c=d[u]),f=r.readUEG()+8,r.readUEG(),r.readBits(1),r.readBool()))for(var h=3!==u?8:12,p=0;p<h;p++)r.readBool()&&(p<6?e._skipScalingList(r,16):e._skipScalingList(r,64));r.readUEG();var g=r.readUEG();if(0===g)r.readUEG();else if(1===g){r.readBits(1),r.readSEG(),r.readSEG();for(var v=r.readUEG(),y=0;y<v;y++)r.readSEG()}var m=r.readUEG();r.readBits(1);var b=r.readUEG(),x=r.readUEG(),_=r.readBits(1);0===_&&r.readBits(1),r.readBits(1);var w=0,S=0,k=0,O=0,T=r.readBool();T&&(w=r.readUEG(),S=r.readUEG(),k=r.readUEG(),O=r.readUEG());var E=1,C=1,A=0,M=!0,L=0,I=0,D=r.readBool();if(D){if(r.readBool()){var j=r.readByte(),P=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],R=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];j>0&&j<16?(E=P[j-1],C=R[j-1]):255===j&&(E=r.readByte()<<8|r.readByte(),C=r.readByte()<<8|r.readByte())}if(r.readBool()&&r.readBool(),r.readBool()&&(r.readBits(4),r.readBool()&&r.readBits(24)),r.readBool()&&(r.readUEG(),r.readUEG()),r.readBool()){var N=r.readBits(32),B=r.readBits(32);M=r.readBool(),L=B,I=2*N,A=L/I}}var F=1;1===E&&1===C||(F=E/C);var z=0,U=0;if(0===u)z=1,U=2-_;else{var H=3===u?1:2,V=1===u?2:1;z=H,U=V*(2-_)}var G=16*(b+1),q=16*(x+1)*(2-_);G-=(w+S)*z,q-=(k+O)*U;var W=Math.ceil(G*F);return r.destroy(),r=null,{profile_string:s,level_string:l,bit_depth:f,ref_frames:m,chroma_format:c,chroma_format_string:e.getChromaFormatString(c),frame_rate:{fixed:M,fps:A,fps_den:I,fps_num:L},par_ratio:{width:E,height:C},codec_size:{width:G,height:q},present_size:{width:W,height:q}}}},{key:"_skipScalingList",value:function(e,t){for(var n=8,r=8,i=0,o=0;o<t;o++)0!==r&&(i=e.readSEG(),r=(n+i+256)%256),n=0===r?n:r}},{key:"getProfileString",value:function(e){switch(e){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}},{key:"getLevelString",value:function(e){return(e/10).toFixed(1)}},{key:"getChromaFormatString",value:function(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),e}();t.default=l,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(t){o(this,e),this.TAG="ExpGolomb",this._buffer=t,this._buffer_index=0,this._total_bytes=t.byteLength,this._total_bits=8*t.byteLength,this._current_word=0,this._current_word_bits_left=0}return r(e,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var e=this._total_bytes-this._buffer_index;if(e<=0)throw new i.IllegalStateException("ExpGolomb: _fillCurrentWord() but no bytes available");var t=Math.min(4,e),n=new Uint8Array(4);n.set(this._buffer.subarray(this._buffer_index,this._buffer_index+t)),this._current_word=new DataView(n.buffer).getUint32(0,!1),this._buffer_index+=t,this._current_word_bits_left=8*t}},{key:"readBits",value:function(e){if(e>32)throw new i.InvalidArgumentException("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){var t=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,t}var n=this._current_word_bits_left?this._current_word:0;n>>>=32-this._current_word_bits_left;var r=e-this._current_word_bits_left;this._fillCurrentWord();var o=Math.min(r,this._current_word_bits_left),a=this._current_word>>>32-o;return this._current_word<<=o,this._current_word_bits_left-=o,n=n<<o|a,n}},{key:"readBool",value:function(){return 1===this.readBits(1)}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var e=void 0;for(e=0;e<this._current_word_bits_left;e++)if(0!==(this._current_word&2147483648>>>e))return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}},{key:"readUEG",value:function(){var e=this._skipLeadingZero();return this.readBits(e+1)-1}},{key:"readSEG",value:function(){var e=this.readUEG();return 1&e?e+1>>>1:-1*(e>>>1)}}]),e}();t.default=a,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=p(i),a=n(41),s=p(a),l=n(42),u=p(l),c=n(4),d=p(c),f=n(15),h=n(1);function p(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var v=function(){function e(t){g(this,e),this.TAG="MP4Remuxer",this._config=t,this._isLive=!0===t.isLive,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new f.MediaSegmentInfoList("audio"),this._videoSegmentInfoList=new f.MediaSegmentInfoList("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!d.default.chrome||!(d.default.version.major<50||50===d.default.version.major&&d.default.version.build<2661)),this._fillSilentAfterSeek=d.default.msedge||d.default.msie,this._mp3UseMpegAudio=!d.default.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return r(e,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(e,t){if(!this._onMediaSegment)throw new h.IllegalStateException("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}},{key:"_onTrackMetadataReceived",value:function(e,t){var n=null,r="mp4",i=t.codec;if("audio"===e)this._audioMeta=t,"mp3"===t.codec&&this._mp3UseMpegAudio?(r="mpeg",i="",n=new Uint8Array):n=s.default.generateInitSegment(t);else{if("video"!==e)return;this._videoMeta=t,n=s.default.generateInitSegment(t)}if(!this._onInitSegment)throw new h.IllegalStateException("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:i,container:e+"/"+r,mediaDuration:t.duration})}},{key:"_calculateDtsBase",value:function(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}},{key:"flushStashedSamples",value:function(){var e=this._videoStashedLastSample,t=this._audioStashedLastSample,n={type:"video",id:1,sequenceNumber:0,samples:[],length:0};null!=e&&(n.samples.push(e),n.length=e.length);var r={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};null!=t&&(r.samples.push(t),r.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(r,!0)}},{key:"_remuxAudio",value:function(e,t){if(null!=this._audioMeta){var n=e,r=n.samples,i=void 0,a=-1,l=-1,c=this._audioMeta.refSampleDuration,h="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,p=this._dtsBaseInited&&void 0===this._audioNextDts,g=!1;if(r&&0!==r.length&&(1!==r.length||t)){var v=0,y=null,m=0;h?(v=0,m=n.length):(v=8,m=8+n.length);var b=null;if(r.length>1&&(b=r.pop(),m-=b.length),null!=this._audioStashedLastSample){var x=this._audioStashedLastSample;this._audioStashedLastSample=null,r.unshift(x),m+=x.length}null!=b&&(this._audioStashedLastSample=b);var _=r[0].dts-this._dtsBase;if(this._audioNextDts)i=_-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())i=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(g=!0);else{var w=this._audioSegmentInfoList.getLastSampleBefore(_);if(null!=w){var S=_-(w.originalDts+w.duration);S<=3&&(S=0);var k=w.dts+w.duration+S;i=_-k}else i=0}if(g){var O=_-i,T=this._videoSegmentInfoList.getLastSegmentBefore(_);if(null!=T&&T.beginDts<O){var E=u.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(E){var C=T.beginDts,A=O-T.beginDts;o.default.v(this.TAG,"InsertPrefixSilentAudio: dts: "+C+", duration: "+A),r.unshift({unit:E,dts:C,pts:C}),m+=E.byteLength}}else g=!1}for(var M=[],L=0;L<r.length;L++){var I=r[L],D=I.unit,j=I.dts-this._dtsBase,P=j,R=!1,N=null,B=0;if(!(j<-.001)){if("mp3"!==this._audioMeta.codec){var F=j,z=3;if(this._audioNextDts&&(F=this._audioNextDts),i=j-F,i<=-z*c){o.default.w(this.TAG,"Dropping 1 audio frame (originalDts: "+j+" ms ,curRefDts: "+F+" ms) due to dtsCorrection: "+i+" ms overlap.");continue}if(i>=z*c&&this._fillAudioTimestampGap&&!d.default.safari){R=!0;var U=Math.floor(i/c);o.default.w(this.TAG,"Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\noriginalDts: "+j+" ms, curRefDts: "+F+" ms, dtsCorrection: "+Math.round(i)+" ms, generate: "+U+" frames"),P=Math.floor(F),B=Math.floor(F+c)-P;var H=u.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);null==H&&(o.default.w(this.TAG,"Unable to generate silent frame for "+this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame"),H=D),N=[];for(var V=0;V<U;V++){F+=c;var G=Math.floor(F),q=Math.floor(F+c)-G,W={dts:G,pts:G,cts:0,unit:H,size:H.byteLength,duration:q,originalDts:j,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};N.push(W),m+=D.byteLength}this._audioNextDts=F+c}else P=Math.floor(F),B=Math.floor(F+c)-P,this._audioNextDts=F+c}else{if(P=j-i,L!==r.length-1){var Y=r[L+1].dts-this._dtsBase-i;B=Y-P}else if(null!=b){var K=b.dts-this._dtsBase-i;B=K-P}else B=M.length>=1?M[M.length-1].duration:Math.floor(c);this._audioNextDts=P+B}-1===a&&(a=P),M.push({dts:P,pts:P,cts:0,unit:I.unit,size:I.unit.byteLength,duration:B,originalDts:j,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),R&&M.push.apply(M,N)}}if(0===M.length)return n.samples=[],void(n.length=0);h?y=new Uint8Array(m):(y=new Uint8Array(m),y[0]=m>>>24&255,y[1]=m>>>16&255,y[2]=m>>>8&255,y[3]=255&m,y.set(s.default.types.mdat,4));for(var X=0;X<M.length;X++){var Z=M[X].unit;y.set(Z,v),v+=Z.byteLength}var $=M[M.length-1];l=$.dts+$.duration;var J=new f.MediaSegmentInfo;J.beginDts=a,J.endDts=l,J.beginPts=a,J.endPts=l,J.originalBeginDts=M[0].originalDts,J.originalEndDts=$.originalDts+$.duration,J.firstSample=new f.SampleInfo(M[0].dts,M[0].pts,M[0].duration,M[0].originalDts,!1),J.lastSample=new f.SampleInfo($.dts,$.pts,$.duration,$.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(J),n.samples=M,n.sequenceNumber++;var Q=null;Q=h?new Uint8Array:s.default.moof(n,a),n.samples=[],n.length=0;var ee={type:"audio",data:this._mergeBoxes(Q,y).buffer,sampleCount:M.length,info:J};h&&p&&(ee.timestampOffset=a),this._onMediaSegment("audio",ee)}}}},{key:"_remuxVideo",value:function(e,t){if(null!=this._videoMeta){var n=e,r=n.samples,i=void 0,o=-1,a=-1,l=-1,u=-1;if(r&&0!==r.length&&(1!==r.length||t)){var c=8,d=null,h=8+e.length,p=null;if(r.length>1&&(p=r.pop(),h-=p.length),null!=this._videoStashedLastSample){var g=this._videoStashedLastSample;this._videoStashedLastSample=null,r.unshift(g),h+=g.length}null!=p&&(this._videoStashedLastSample=p);var v=r[0].dts-this._dtsBase;if(this._videoNextDts)i=v-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())i=0;else{var y=this._videoSegmentInfoList.getLastSampleBefore(v);if(null!=y){var m=v-(y.originalDts+y.duration);m<=3&&(m=0);var b=y.dts+y.duration+m;i=v-b}else i=0}for(var x=new f.MediaSegmentInfo,_=[],w=0;w<r.length;w++){var S=r[w],k=S.dts-this._dtsBase,O=S.isKeyframe,T=k-i,E=S.cts,C=T+E;-1===o&&(o=T,l=C);var A=0;if(w!==r.length-1){var M=r[w+1].dts-this._dtsBase-i;A=M-T}else if(null!=p){var L=p.dts-this._dtsBase-i;A=L-T}else A=_.length>=1?_[_.length-1].duration:Math.floor(this._videoMeta.refSampleDuration);if(O){var I=new f.SampleInfo(T,C,A,S.dts,!0);I.fileposition=S.fileposition,x.appendSyncPoint(I)}_.push({dts:T,pts:C,cts:E,units:S.units,size:S.length,isKeyframe:O,duration:A,originalDts:k,flags:{isLeading:0,dependsOn:O?2:1,isDependedOn:O?1:0,hasRedundancy:0,isNonSync:O?0:1}})}d=new Uint8Array(h),d[0]=h>>>24&255,d[1]=h>>>16&255,d[2]=h>>>8&255,d[3]=255&h,d.set(s.default.types.mdat,4);for(var D=0;D<_.length;D++){var j=_[D].units;while(j.length){var P=j.shift(),R=P.data;d.set(R,c),c+=R.byteLength}}var N=_[_.length-1];if(a=N.dts+N.duration,u=N.pts+N.duration,this._videoNextDts=a,x.beginDts=o,x.endDts=a,x.beginPts=l,x.endPts=u,x.originalBeginDts=_[0].originalDts,x.originalEndDts=N.originalDts+N.duration,x.firstSample=new f.SampleInfo(_[0].dts,_[0].pts,_[0].duration,_[0].originalDts,_[0].isKeyframe),x.lastSample=new f.SampleInfo(N.dts,N.pts,N.duration,N.originalDts,N.isKeyframe),this._isLive||this._videoSegmentInfoList.append(x),n.samples=_,n.sequenceNumber++,this._forceFirstIDR){var B=_[0].flags;B.dependsOn=2,B.isNonSync=0}var F=s.default.moof(n,o);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(F,d).buffer,sampleCount:_.length,info:x})}}}},{key:"_mergeBoxes",value:function(e,t){var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(e){this._onInitSegment=e}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(e){this._onMediaSegment=e}}]),e}();t.default=v,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){i(this,e)}return r(e,null,[{key:"init",value:function(){for(var t in e.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]},e.types)e.types.hasOwnProperty(t)&&(e.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);var n=e.constants={};n.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),n.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),n.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),n.STSC=n.STCO=n.STTS,n.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),n.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),n.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),n.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),n.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(e){for(var t=8,n=null,r=Array.prototype.slice.call(arguments,1),i=r.length,o=0;o<i;o++)t+=r[o].byteLength;n=new Uint8Array(t),n[0]=t>>>24&255,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n.set(e,4);for(var a=8,s=0;s<i;s++)n.set(r[s],a),a+=r[s].byteLength;return n}},{key:"generateInitSegment",value:function(t){var n=e.box(e.types.ftyp,e.constants.FTYP),r=e.moov(t),i=new Uint8Array(n.byteLength+r.byteLength);return i.set(n,0),i.set(r,n.byteLength),i}},{key:"moov",value:function(t){var n=e.mvhd(t.timescale,t.duration),r=e.trak(t),i=e.mvex(t);return e.box(e.types.moov,n,r,i)}},{key:"mvhd",value:function(t,n){return e.box(e.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(t){return e.box(e.types.trak,e.tkhd(t),e.mdia(t))}},{key:"tkhd",value:function(t){var n=t.id,r=t.duration,i=t.presentWidth,o=t.presentHeight;return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>>8&255,255&i,0,0,o>>>8&255,255&o,0,0]))}},{key:"mdia",value:function(t){return e.box(e.types.mdia,e.mdhd(t),e.hdlr(t),e.minf(t))}},{key:"mdhd",value:function(t){var n=t.timescale,r=t.duration;return e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r,85,196,0,0]))}},{key:"hdlr",value:function(t){var n=null;return n="audio"===t.type?e.constants.HDLR_AUDIO:e.constants.HDLR_VIDEO,e.box(e.types.hdlr,n)}},{key:"minf",value:function(t){var n=null;return n="audio"===t.type?e.box(e.types.smhd,e.constants.SMHD):e.box(e.types.vmhd,e.constants.VMHD),e.box(e.types.minf,n,e.dinf(),e.stbl(t))}},{key:"dinf",value:function(){var t=e.box(e.types.dinf,e.box(e.types.dref,e.constants.DREF));return t}},{key:"stbl",value:function(t){var n=e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.constants.STTS),e.box(e.types.stsc,e.constants.STSC),e.box(e.types.stsz,e.constants.STSZ),e.box(e.types.stco,e.constants.STCO));return n}},{key:"stsd",value:function(t){return"audio"===t.type?"mp3"===t.codec?e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp3(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp4a(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.avc1(t))}},{key:"mp3",value:function(t){var n=t.channelCount,r=t.audioSampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,r>>>8&255,255&r,0,0]);return e.box(e.types[".mp3"],i)}},{key:"mp4a",value:function(t){var n=t.channelCount,r=t.audioSampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,r>>>8&255,255&r,0,0]);return e.box(e.types.mp4a,i,e.esds(t))}},{key:"esds",value:function(t){var n=t.config||[],r=n.length,i=new Uint8Array([0,0,0,0,3,23+r,0,1,0,4,15+r,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([r]).concat(n).concat([6,1,2]));return e.box(e.types.esds,i)}},{key:"avc1",value:function(t){var n=t.avcc,r=t.codecWidth,i=t.codecHeight,o=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,r>>>8&255,255&r,i>>>8&255,255&i,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return e.box(e.types.avc1,o,e.box(e.types.avcC,n))}},{key:"mvex",value:function(t){return e.box(e.types.mvex,e.trex(t))}},{key:"trex",value:function(t){var n=t.id,r=new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return e.box(e.types.trex,r)}},{key:"moof",value:function(t,n){return e.box(e.types.moof,e.mfhd(t.sequenceNumber),e.traf(t,n))}},{key:"mfhd",value:function(t){var n=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t]);return e.box(e.types.mfhd,n)}},{key:"traf",value:function(t,n){var r=t.id,i=e.box(e.types.tfhd,new Uint8Array([0,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r])),o=e.box(e.types.tfdt,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n])),a=e.sdtp(t),s=e.trun(t,a.byteLength+16+16+8+16+8+8);return e.box(e.types.traf,i,o,s,a)}},{key:"sdtp",value:function(t){for(var n=t.samples||[],r=n.length,i=new Uint8Array(4+r),o=0;o<r;o++){var a=n[o].flags;i[o+4]=a.isLeading<<6|a.dependsOn<<4|a.isDependedOn<<2|a.hasRedundancy}return e.box(e.types.sdtp,i)}},{key:"trun",value:function(t,n){var r=t.samples||[],i=r.length,o=12+16*i,a=new Uint8Array(o);n+=8+o,a.set([0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,255&i,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0);for(var s=0;s<i;s++){var l=r[s].duration,u=r[s].size,c=r[s].flags,d=r[s].cts;a.set([l>>>24&255,l>>>16&255,l>>>8&255,255&l,u>>>24&255,u>>>16&255,u>>>8&255,255&u,c.isLeading<<2|c.dependsOn,c.isDependedOn<<6|c.hasRedundancy<<4|c.isNonSync,0,0,d>>>24&255,d>>>16&255,d>>>8&255,255&d],12+16*s)}return e.box(e.types.trun,a)}},{key:"mdat",value:function(t){return e.box(e.types.mdat,t)}}]),e}();o.init(),t.default=o,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){i(this,e)}return r(e,null,[{key:"getSilentFrame",value:function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),e}();t.default=o,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=(f(r),n(8)),o=f(i),a=n(11),s=f(a),l=n(14),u=f(l),c=n(5),d=f(c);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){var t=null,n=v.bind(this);function r(t,n){var r={msg:d.default.INIT_SEGMENT,data:{type:t,data:n}};e.postMessage(r,[n.data])}function i(t,n){var r={msg:d.default.MEDIA_SEGMENT,data:{type:t,data:n}};e.postMessage(r,[n.data])}function a(){var t={msg:d.default.LOADING_COMPLETE};e.postMessage(t)}function l(){var t={msg:d.default.RECOVERED_EARLY_EOF};e.postMessage(t)}function c(t){var n={msg:d.default.MEDIA_INFO,data:t};e.postMessage(n)}function f(t){var n={msg:d.default.STATISTICS_INFO,data:t};e.postMessage(n)}function h(t,n){e.postMessage({msg:d.default.IO_ERROR,data:{type:t,info:n}})}function p(t,n){e.postMessage({msg:d.default.DEMUX_ERROR,data:{type:t,info:n}})}function g(t){e.postMessage({msg:d.default.RECOMMEND_SEEKPOINT,data:t})}function v(t,n){e.postMessage({msg:"logcat_callback",data:{type:t,logcat:n}})}s.default.install(),e.addEventListener("message",(function(s){switch(s.data.cmd){case"init":t=new u.default(s.data.param[0],s.data.param[1]),t.on(d.default.IO_ERROR,h.bind(this)),t.on(d.default.DEMUX_ERROR,p.bind(this)),t.on(d.default.INIT_SEGMENT,r.bind(this)),t.on(d.default.MEDIA_SEGMENT,i.bind(this)),t.on(d.default.LOADING_COMPLETE,a.bind(this)),t.on(d.default.RECOVERED_EARLY_EOF,l.bind(this)),t.on(d.default.MEDIA_INFO,c.bind(this)),t.on(d.default.STATISTICS_INFO,f.bind(this)),t.on(d.default.RECOMMEND_SEEKPOINT,g.bind(this));break;case"destroy":t&&(t.destroy(),t=null),e.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(s.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":var v=s.data.param;o.default.applyConfig(v),!0===v.enableCallback?o.default.addLogListener(n):o.default.removeLogListener(n);break}}))};t.default=h,e.exports=t["default"]},function(e,t){var n=arguments[3],r=arguments[4],i=arguments[5],o=JSON.stringify;e.exports=function(e,t){for(var a,s=Object.keys(i),l=0,u=s.length;l<u;l++){var c=s[l],d=i[c].exports;if(d===e||d&&d.default===e){a=c;break}}if(!a){a=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var f={};for(l=0,u=s.length;l<u;l++)c=s[l],f[c]=c;r[a]=["function(require,module,exports){"+e+"(self); }",f]}var h=Math.floor(Math.pow(16,8)*Math.random()).toString(16),p={};p[a]=a,r[h]=["function(require,module,exports){var f = require("+o(a)+");(f.default ? f.default : f)(self);}",p];var g={};function v(e){for(var t in g[e]=!0,r[e][1]){var n=r[e][1][t];g[n]||v(n)}}v(h);var y="("+n+")({"+Object.keys(g).map((function(e){return o(e)+":["+r[e][0]+","+o(r[e][1])+"]"})).join(",")+"},{},["+o(h)+"])",m=window.URL||window.webkitURL||window.mozURL||window.msURL,b=new Blob([y],{type:"text/javascript"});if(t&&t.bare)return b;var x=m.createObjectURL(b),_=new Worker(x);return _.objectURL=x,_}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),o=p(i),a=n(0),s=p(a),l=n(4),u=p(l),c=n(16),d=p(c),f=n(15),h=n(1);function p(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var v=function(){function e(t){g(this,e),this.TAG="MSEController",this._config=t,this._emitter=new o.default,this._config.isLive&&void 0==this._config.autoCleanupSourceBuffer&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new f.IDRSampleList}return r(e,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(e,t){this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"attachMediaElement",value:function(e){if(this._mediaSource)throw new h.IllegalStateException("MediaSource has been attached to an HTMLMediaElement!");var t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var e=this._mediaSource;for(var t in this._sourceBuffers){var n=this._pendingSegments[t];n.splice(0,n.length),this._pendingSegments[t]=null,this._pendingRemoveRanges[t]=null,this._lastInitSegments[t]=null;var r=this._sourceBuffers[t];r&&("closed"!==e.readyState&&(e.removeSourceBuffer(r),r.removeEventListener("error",this.e.onSourceBufferError),r.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)),this._mimeTypes[t]=null,this._sourceBuffers[t]=null)}if("open"===e.readyState)try{e.endOfStream()}catch(i){s.default.e(this.TAG,i.message)}e.removeEventListener("sourceopen",this.e.onSourceOpen),e.removeEventListener("sourceended",this.e.onSourceEnded),e.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(e,t){if(!this._mediaSource||"open"!==this._mediaSource.readyState)return this._pendingSourceBufferInit.push(e),void this._pendingSegments[e.type].push(e);var n=e,r=""+n.container;n.codec&&n.codec.length>0&&(r+=";codecs="+n.codec);var i=!1;if(s.default.v(this.TAG,"Received Initialization Segment, mimeType: "+r),this._lastInitSegments[n.type]=n,r!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])s.default.v(this.TAG,"Notice: "+n.type+" mimeType changed, origin: "+this._mimeTypes[n.type]+", target: "+r);else{i=!0;try{var o=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(r);o.addEventListener("error",this.e.onSourceBufferError),o.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(a){return s.default.e(this.TAG,a.message),void this._emitter.emit(d.default.ERROR,{code:a.code,msg:a.message})}}this._mimeTypes[n.type]=r}t||this._pendingSegments[n.type].push(n),i||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),u.default.safari&&"audio/mpeg"===n.container&&n.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=n.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(e){var t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var n=this._sourceBuffers[t.type];!n||n.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()}},{key:"seek",value:function(e){for(var t in this._sourceBuffers)if(this._sourceBuffers[t]){var n=this._sourceBuffers[t];if("open"===this._mediaSource.readyState)try{n.abort()}catch(c){s.default.e(this.TAG,c.message)}this._idrList.clear();var r=this._pendingSegments[t];if(r.splice(0,r.length),"closed"!==this._mediaSource.readyState){for(var i=0;i<n.buffered.length;i++){var o=n.buffered.start(i),a=n.buffered.end(i);this._pendingRemoveRanges[t].push({start:o,end:a})}if(n.updating||this._doRemoveRanges(),u.default.safari){var l=this._lastInitSegments[t];l&&(this._pendingSegments[t].push(l),n.updating||this._doAppendSegments())}}}}},{key:"endOfStream",value:function(){var e=this._mediaSource,t=this._sourceBuffers;e&&"open"===e.readyState?t.video&&t.video.updating||t.audio&&t.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,e.endOfStream()):e&&"closed"===e.readyState&&this._hasPendingSegments()&&(this._hasPendingEos=!0)}},{key:"getNearestKeyframe",value:function(e){return this._idrList.getLastSyncPointBeforeDts(e)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var e=this._mediaElement.currentTime;for(var t in this._sourceBuffers){var n=this._sourceBuffers[t];if(n){var r=n.buffered;if(r.length>=1&&e-r.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var e=this._mediaElement.currentTime;for(var t in this._sourceBuffers){var n=this._sourceBuffers[t];if(n){for(var r=n.buffered,i=!1,o=0;o<r.length;o++){var a=r.start(o),s=r.end(o);if(a<=e&&e<s+3){if(e-a>=this._config.autoCleanupMaxBackwardDuration){i=!0;var l=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:a,end:l})}}else s<e&&(i=!0,this._pendingRemoveRanges[t].push({start:a,end:s}))}i&&!n.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var e=this._sourceBuffers;if(0!==this._mediaElement.readyState&&"open"===this._mediaSource.readyState&&!(e.video&&e.video.updating||e.audio&&e.audio.updating)){var t=this._mediaSource.duration,n=this._pendingMediaDuration;n>0&&(isNaN(t)||n>t)&&(s.default.v(this.TAG,"Update MediaSource duration from "+t+" to "+n),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}}},{key:"_doRemoveRanges",value:function(){for(var e in this._pendingRemoveRanges)if(this._sourceBuffers[e]&&!this._sourceBuffers[e].updating){var t=this._sourceBuffers[e],n=this._pendingRemoveRanges[e];while(n.length&&!t.updating){var r=n.shift();t.remove(r.start,r.end)}}}},{key:"_doAppendSegments",value:function(){var e=this._pendingSegments;for(var t in e)if(this._sourceBuffers[t]&&!this._sourceBuffers[t].updating&&e[t].length>0){var n=e[t].shift();if(n.timestampOffset){var r=this._sourceBuffers[t].timestampOffset,i=n.timestampOffset/1e3,o=Math.abs(r-i);o>.1&&(s.default.v(this.TAG,"Update MPEG audio timestampOffset from "+r+" to "+i),this._sourceBuffers[t].timestampOffset=i),delete n.timestampOffset}if(!n.data||0===n.data.byteLength)continue;try{this._sourceBuffers[t].appendBuffer(n.data),this._isBufferFull=!1,"video"===t&&n.hasOwnProperty("info")&&this._idrList.appendArray(n.info.syncPoints)}catch(a){this._pendingSegments[t].unshift(n),22===a.code?(this._isBufferFull||this._emitter.emit(d.default.BUFFER_FULL),this._isBufferFull=!0):(s.default.e(this.TAG,a.message),this._emitter.emit(d.default.ERROR,{code:a.code,msg:a.message}))}}}},{key:"_onSourceOpen",value:function(){if(s.default.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){var e=this._pendingSourceBufferInit;while(e.length){var t=e.shift();this.appendInitSegment(t,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(d.default.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){s.default.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){s.default.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var e=this._pendingSegments;return e.video.length>0||e.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(d.default.UPDATE_END)}},{key:"_onSourceBufferError",value:function(e){s.default.e(this.TAG,"SourceBuffer Error: "+e)}}]),e}();t.default=v,e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(2),a=d(o),s=n(7),l=d(s),u=n(6),c=n(1);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h=function(){function e(t,n){if(f(this,e),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new a.default,this._config=(0,u.createDefaultConfig)(),"object"===("undefined"===typeof n?"undefined":r(n))&&Object.assign(this._config,n),"flv"===t.type.toLowerCase())throw new c.InvalidArgumentException("NativePlayer does't support flv MediaDataSource input!");if(t.hasOwnProperty("segments"))throw new c.InvalidArgumentException("NativePlayer("+t.type+") doesn't support multipart playback!");this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=t,this._mediaElement=null}return i(e,[{key:"destroy",value:function(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(e,t){var n=this;e===l.default.MEDIA_INFO?null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then((function(){n._emitter.emit(l.default.MEDIA_INFO,n.mediaInfo)})):e===l.default.STATISTICS_INFO&&null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then((function(){n._emitter.emit(l.default.STATISTICS_INFO,n.statisticsInfo)})),this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"attachMediaElement",value:function(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new c.IllegalStateException("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){var e=this._mediaElement.play();return void 0!==e&&e?e.catch((function(){})):void 0}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"_onvLoadedMetadata",value:function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(l.default.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(l.default.STATISTICS_INFO,this.statisticsInfo)}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e}},{key:"mediaInfo",get:function(){var e=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",t={mimeType:e+this._mediaDataSource.type};return this._mediaElement&&(t.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(t.width=this._mediaElement.videoWidth,t.height=this._mediaElement.videoHeight)),t}},{key:"statisticsInfo",get:function(){var e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,n=0,r=0;if(this._mediaElement.getVideoPlaybackQuality){var i=this._mediaElement.getVideoPlaybackQuality();n=i.totalVideoFrames,r=i.droppedVideoFrames}else void 0!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=r),e}}]),e}();t.default=h,e.exports=t["default"]}])}))},"79e4":function(e,t,n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(h.stack)||a.exec(h.stack),l=s&&s[1]||!1,u=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");l===c&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var f=0;f<d.length;f++){if("interactive"===d[f].readyState)return d[f];if(d[f].src===l)return d[f];if(l===c&&d[f].innerHTML&&d[f].innerHTML.trim()===i)return d[f]}return null}}return e}))},"7a85":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},"7fe9":function(e,t){e.exports=!1},9349:function(e,t){t.f=Object.getOwnPropertySymbols},"977b":function(e,t,n){var r=n("35a9"),i=n("bbfb"),o=n("ef69"),a=n("3274"),s=n("bab3"),l=n("0117"),u=n("cb62"),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=a(e),t=s(t,!0),u)try{return c(e,t)}catch(n){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},"996e":function(e,t,n){var r=n("4b56"),i=n("6b64"),o=n("9349"),a=n("b973");e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},"9edd":function(e,t,n){var r=n("485e"),i=n("bcd9");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},aad0:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},af7d:function(e,t,n){var r=n("3274"),i=n("4a35"),o=n("fd0b"),a=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},b804:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},b973:function(e,t,n){var r=n("3b29");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},bab3:function(e,t,n){var r=n("3b29");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},bbfb:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},bcd9:function(e,t,n){"use strict";var r=n("35a9"),i=n("aad0"),o=n("c59c"),a=n("9349"),s=n("bbfb"),l=n("3c6b"),u=n("4bfa"),c=Object.assign,d=Object.defineProperty;e.exports=!c||i((function(){if(r&&1!==c({b:1},c(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||o(c({},t)).join("")!=i}))?function(e,t){var n=l(e),i=arguments.length,c=1,d=a.f,f=s.f;while(i>c){var h,p=u(arguments[c++]),g=d?o(p).concat(d(p)):o(p),v=g.length,y=0;while(v>y)h=g[y++],r&&!f.call(p,h)||(n[h]=p[h])}return n}:c},be34:function(e,t){e.exports={}},c2b3:function(e,t,n){var r=n("260a"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},c59c:function(e,t,n){var r=n("2092"),i=n("f74b");e.exports=Object.keys||function(e){return r(e,i)}},c7d8:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},cb62:function(e,t,n){var r=n("35a9"),i=n("aad0"),o=n("4890");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},d496:function(e,t,n){var r=n("efd0"),i=n("13d0"),o=n("0117"),a=n("18ff"),s=n("c2b3"),l=n("f806"),u=l.get,c=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,u=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),l=c(n),l.source||(l.source=d.join("string"==typeof t?t:""))),e!==r?(u?!h&&e[t]&&(f=!0):delete e[t],f?e[t]=n:i(e,t,n)):f?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},e225:function(e,t,n){"use strict";if(n.r(t),n.d(t,"VabPlayerMp4",(function(){return p})),n.d(t,"VabPlayerHls",(function(){return w})),n.d(t,"VabPlayerFlv",(function(){return M})),"undefined"!==typeof window){var r=window.document.currentScript,i=n("79e4");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:e.rootStyle,attrs:{id:e.config.id}})},s=[],l=(n("9edd"),n("47fc")),u=n.n(l),c={name:"VabPlayerMp4",props:{config:{type:Object,default:function(){return{id:"mse",url:""}}},rootStyle:{type:Object,default:function(){return{}}}},data:function(){return{player:null,finalConfig:{volume:0,autoplayMuted:!0,autoplay:!0,loop:!0,fluid:!0,videoInit:!0,playbackRate:[.5,.75,1,1.5,2],pip:!1,screenShot:!1,lang:"zh-cn",enterLogo:{url:"",width:231,height:42},enterBg:{color:"rgba(0,0,0,0.87)"},enterTips:{background:"linear-gradient(to right, rgba(0,0,0,0.87), #3D96FD, rgba(86,195,248), #3D96FD, rgba(0,0,0,0.87))"}}}},mounted:function(){this.init()},beforeUpdate:function(){this.init()},beforeDestroy:function(){this.player&&"function"===typeof this.player.destroy&&this.player.destroy()},methods:{init:function(){this.finalConfig=Object.assign(this.finalConfig,this.config),this.finalConfig.url&&""!==this.finalConfig.url&&(this.player=new u.a(this.finalConfig),this.$emit("player",this.player))}}},d=c;function f(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}var h=f(d,a,s,!1,null,null,null),p=h.exports,g=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:e.rootStyle,attrs:{id:e.config.id}})},v=[],y=n("2308"),m=n.n(y),b={name:"VabPlayerHls",props:{config:{type:Object,default:function(){return{id:"mse",url:""}}},rootStyle:{type:Object,default:function(){return{}}}},data:function(){return{player:null,finalConfig:{volume:0,autoplayMuted:!0,autoplay:!0,loop:!0,fluid:!0,videoInit:!0,playbackRate:[.5,.75,1,1.5,2],pip:!1,screenShot:!1,lang:"zh-cn",enterLogo:{url:"",width:231,height:42},enterBg:{color:"rgba(0,0,0,0.87)"},enterTips:{background:"linear-gradient(to right, rgba(0,0,0,0.87), #3D96FD, rgba(86,195,248), #3D96FD, rgba(0,0,0,0.87))"}}}},mounted:function(){this.init()},beforeUpdate:function(){this.init()},beforeDestroy:function(){this.player&&"function"===typeof this.player.destroy&&this.player.destroy()},methods:{init:function(){this.finalConfig=Object.assign(this.finalConfig,this.config),this.finalConfig.url&&""!==this.finalConfig.url&&(this.player=new m.a(this.finalConfig),this.$emit("player",this.player))}}},x=b,_=f(x,g,v,!1,null,null,null),w=_.exports,S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:e.rootStyle,attrs:{id:e.config.id}})},k=[],O=n("72fe"),T=n.n(O),E={name:"VabPlayerFlv",props:{config:{type:Object,default:function(){return{id:"mse",url:""}}},rootStyle:{type:Object,default:function(){return{}}}},data:function(){return{player:null,finalConfig:{volume:0,autoplayMuted:!0,autoplay:!0,loop:!0,fluid:!0,videoInit:!0,playbackRate:[.5,.75,1,1.5,2],pip:!1,screenShot:!1,lang:"zh-cn",hasVideo:!0,hasAudio:!0,flvOptionalConfig:{enableWorker:!0},enterLogo:{url:"",width:231,height:42},enterBg:{color:"rgba(0,0,0,0.87)"},enterTips:{background:"linear-gradient(to right, rgba(0,0,0,0.87), #3D96FD, rgba(86,195,248), #3D96FD, rgba(0,0,0,0.87))"}}}},mounted:function(){this.init()},beforeUpdate:function(){this.init()},beforeDestroy:function(){this.player&&"function"===typeof this.player.destroy&&this.player.destroy()},methods:{init:function(){this.finalConfig=Object.assign(this.finalConfig,this.config),this.finalConfig.url&&""!==this.finalConfig.url&&(this.player=new T.a(this.finalConfig),this.$emit("player",this.player))}}},C=E,A=f(C,S,k,!1,null,null,null),M=A.exports;"undefined"!==typeof window&&window.Vue&&(window.Vue.component("zx-player-mp4",p),window.Vue.component("zx-player-hls",w),window.Vue.component("zx-player-flv",M))},ef69:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},efd0:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("0288"))},f5b6:function(e,t,n){var r=n("efd0");e.exports=r},f74b:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},f806:function(e,t,n){var r,i,o,a=n("2a94"),s=n("efd0"),l=n("3b29"),u=n("13d0"),c=n("0117"),d=n("260a"),f=n("1bbe"),h=n("be34"),p=s.WeakMap,g=function(e){return o(e)?i(e):r(e,{})},v=function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a){var y=d.state||(d.state=new p),m=y.get,b=y.has,x=y.set;r=function(e,t){return t.facade=e,x.call(y,e,t),t},i=function(e){return m.call(y,e)||{}},o=function(e){return b.call(y,e)}}else{var _=f("state");h[_]=!0,r=function(e,t){return t.facade=e,u(e,_,t),t},i=function(e){return c(e,_)?e[_]:{}},o=function(e){return c(e,_)}}e.exports={set:r,get:i,has:o,enforce:g,getterFor:v}},fd0b:function(e,t,n){var r=n("b804"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}}})}))},"342d":function(e,t,n){"use strict";n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return C})),n.d(t,"d",(function(){return A})),n.d(t,"a",(function(){return M}));var r=n("9ab4"),i=n("cbe5"),o=n("20c8"),a=n("401b"),s=o["a"].CMD,l=[[],[],[]],u=Math.sqrt,c=Math.atan2;function d(e,t){if(t){var n,r,i,o,d,f,h=e.data,p=e.len(),g=s.M,v=s.C,y=s.L,m=s.R,b=s.A,x=s.Q;for(i=0,o=0;i<p;){switch(n=h[i++],o=i,r=0,n){case g:r=1;break;case y:r=1;break;case v:r=3;break;case x:r=2;break;case b:var _=t[4],w=t[5],S=u(t[0]*t[0]+t[1]*t[1]),k=u(t[2]*t[2]+t[3]*t[3]),O=c(-t[1]/k,t[0]/S);h[i]*=S,h[i++]+=_,h[i]*=k,h[i++]+=w,h[i++]*=S,h[i++]*=k,h[i++]+=O,h[i++]+=O,i+=2,o=i;break;case m:f[0]=h[i++],f[1]=h[i++],Object(a["b"])(f,f,t),h[o++]=f[0],h[o++]=f[1],f[0]+=h[i++],f[1]+=h[i++],Object(a["b"])(f,f,t),h[o++]=f[0],h[o++]=f[1]}for(d=0;d<r;d++){var T=l[d];T[0]=h[i++],T[1]=h[i++],Object(a["b"])(T,T,t),h[o++]=T[0],h[o++]=T[1]}}e.increaseVersion()}}var f=n("6d8b"),h=Math.sqrt,p=Math.sin,g=Math.cos,v=Math.PI;function y(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function m(e,t){return(e[0]*t[0]+e[1]*t[1])/(y(e)*y(t))}function b(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(m(e,t))}function x(e,t,n,r,i,o,a,s,l,u,c){var d=l*(v/180),f=g(d)*(e-n)/2+p(d)*(t-r)/2,y=-1*p(d)*(e-n)/2+g(d)*(t-r)/2,x=f*f/(a*a)+y*y/(s*s);x>1&&(a*=h(x),s*=h(x));var _=(i===o?-1:1)*h((a*a*(s*s)-a*a*(y*y)-s*s*(f*f))/(a*a*(y*y)+s*s*(f*f)))||0,w=_*a*y/s,S=_*-s*f/a,k=(e+n)/2+g(d)*w-p(d)*S,O=(t+r)/2+p(d)*w+g(d)*S,T=b([1,0],[(f-w)/a,(y-S)/s]),E=[(f-w)/a,(y-S)/s],C=[(-1*f-w)/a,(-1*y-S)/s],A=b(E,C);if(m(E,C)<=-1&&(A=v),m(E,C)>=1&&(A=0),A<0){var M=Math.round(A/v*1e6)/1e6;A=2*v+M%2*v}c.addData(u,k,O,a,s,T,A,d,o)}var _=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,w=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function S(e){var t=new o["a"];if(!e)return t;var n,r=0,i=0,a=r,s=i,l=o["a"].CMD,u=e.match(_);if(!u)return t;for(var c=0;c<u.length;c++){for(var d=u[c],f=d.charAt(0),h=void 0,p=d.match(w)||[],g=p.length,v=0;v<g;v++)p[v]=parseFloat(p[v]);var y=0;while(y<g){var m=void 0,b=void 0,S=void 0,k=void 0,O=void 0,T=void 0,E=void 0,C=r,A=i,M=void 0,L=void 0;switch(f){case"l":r+=p[y++],i+=p[y++],h=l.L,t.addData(h,r,i);break;case"L":r=p[y++],i=p[y++],h=l.L,t.addData(h,r,i);break;case"m":r+=p[y++],i+=p[y++],h=l.M,t.addData(h,r,i),a=r,s=i,f="l";break;case"M":r=p[y++],i=p[y++],h=l.M,t.addData(h,r,i),a=r,s=i,f="L";break;case"h":r+=p[y++],h=l.L,t.addData(h,r,i);break;case"H":r=p[y++],h=l.L,t.addData(h,r,i);break;case"v":i+=p[y++],h=l.L,t.addData(h,r,i);break;case"V":i=p[y++],h=l.L,t.addData(h,r,i);break;case"C":h=l.C,t.addData(h,p[y++],p[y++],p[y++],p[y++],p[y++],p[y++]),r=p[y-2],i=p[y-1];break;case"c":h=l.C,t.addData(h,p[y++]+r,p[y++]+i,p[y++]+r,p[y++]+i,p[y++]+r,p[y++]+i),r+=p[y-2],i+=p[y-1];break;case"S":m=r,b=i,M=t.len(),L=t.data,n===l.C&&(m+=r-L[M-4],b+=i-L[M-3]),h=l.C,C=p[y++],A=p[y++],r=p[y++],i=p[y++],t.addData(h,m,b,C,A,r,i);break;case"s":m=r,b=i,M=t.len(),L=t.data,n===l.C&&(m+=r-L[M-4],b+=i-L[M-3]),h=l.C,C=r+p[y++],A=i+p[y++],r+=p[y++],i+=p[y++],t.addData(h,m,b,C,A,r,i);break;case"Q":C=p[y++],A=p[y++],r=p[y++],i=p[y++],h=l.Q,t.addData(h,C,A,r,i);break;case"q":C=p[y++]+r,A=p[y++]+i,r+=p[y++],i+=p[y++],h=l.Q,t.addData(h,C,A,r,i);break;case"T":m=r,b=i,M=t.len(),L=t.data,n===l.Q&&(m+=r-L[M-4],b+=i-L[M-3]),r=p[y++],i=p[y++],h=l.Q,t.addData(h,m,b,r,i);break;case"t":m=r,b=i,M=t.len(),L=t.data,n===l.Q&&(m+=r-L[M-4],b+=i-L[M-3]),r+=p[y++],i+=p[y++],h=l.Q,t.addData(h,m,b,r,i);break;case"A":S=p[y++],k=p[y++],O=p[y++],T=p[y++],E=p[y++],C=r,A=i,r=p[y++],i=p[y++],h=l.A,x(C,A,r,i,T,E,S,k,O,h,t);break;case"a":S=p[y++],k=p[y++],O=p[y++],T=p[y++],E=p[y++],C=r,A=i,r+=p[y++],i+=p[y++],h=l.A,x(C,A,r,i,T,E,S,k,O,h,t);break}}"z"!==f&&"Z"!==f||(h=l.Z,t.addData(h),r=a,i=s),n=h}return t.toStatic(),t}var k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["a"])(t,e),t.prototype.applyTransform=function(e){},t}(i["b"]);function O(e){return null!=e.setData}function T(e,t){var n=S(e),r=Object(f["m"])({},t);return r.buildPath=function(e){if(O(e)){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){d(n,e),this.dirtyShape()},r}function E(e,t){return new k(T(e,t))}function C(e,t){var n=T(e,t),i=function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return Object(r["a"])(t,e),t}(k);return i}function A(e,t){for(var n=[],r=e.length,o=0;o<r;o++){var a=e[o];n.push(a.getUpdatedPathProxy(!0))}var s=new i["b"](t);return s.createPathProxy(),s.buildPath=function(e){if(O(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},s}function M(e,t){t=t||{};var n=new i["b"];return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?d(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}},3437:function(e,t,n){"use strict";function r(e){return isFinite(e)}function i(e,t,n){var i=null==t.x?0:t.x,o=null==t.x2?1:t.x2,a=null==t.y?0:t.y,s=null==t.y2?0:t.y2;t.global||(i=i*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),i=r(i)?i:0,o=r(o)?o:1,a=r(a)?a:0,s=r(s)?s:0;var l=e.createLinearGradient(i,a,o,s);return l}function o(e,t,n){var i=n.width,o=n.height,a=Math.min(i,o),s=null==t.x?.5:t.x,l=null==t.y?.5:t.y,u=null==t.r?.5:t.r;t.global||(s=s*i+n.x,l=l*o+n.y,u*=a),s=r(s)?s:.5,l=r(l)?l:.5,u=u>=0&&r(u)?u:.5;var c=e.createRadialGradient(s,l,0,s,l,u);return c}function a(e,t,n){for(var r="radial"===t.type?o(e,t,n):i(e,t,n),a=t.colorStops,s=0;s<a.length;s++)r.addColorStop(a[s].offset,a[s].color);return r}function s(e,t){if(e===t||!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 l(e){return parseInt(e,10)}function u(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||l(s[r])||l(e.style[r]))-(l(s[o])||0)-(l(s[a])||0)|0}n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return u}))},3729:function(e,t,n){var r=n("9e69"),i=n("00fd"),o=n("29f3"),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;function u(e){return null==e?void 0===e?s:a:l&&l in Object(e)?i(e):o(e)}e.exports=u},3842:function(e,t,n){"use strict";n.d(t,"k",(function(){return s})),n.d(t,"o",(function(){return l})),n.d(t,"u",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"f",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return v})),n.d(t,"t",(function(){return y})),n.d(t,"j",(function(){return m})),n.d(t,"n",(function(){return x})),n.d(t,"q",(function(){return _})),n.d(t,"r",(function(){return w})),n.d(t,"l",(function(){return S})),n.d(t,"p",(function(){return k})),n.d(t,"s",(function(){return O})),n.d(t,"m",(function(){return T})),n.d(t,"i",(function(){return E})),n.d(t,"h",(function(){return C})),n.d(t,"d",(function(){return M}));var r=n("6d8b"),i=1e-4,o=20;function a(e){return e.replace(/^\s+|\s+$/g,"")}function s(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function l(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 r["C"](e)?a(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function u(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),o),e=(+e).toFixed(t),n?e:+e}function c(e){return e.sort((function(e,t){return e-t})),e}function d(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return f(e)}function f(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function h(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function p(e,t,n){if(!e[t])return 0;var i=r["N"](e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===i)return 0;var o=Math.pow(10,n),a=r["H"](e,(function(e){return(isNaN(e)?0:e)/i*o*100})),s=100*o,l=r["H"](a,(function(e){return Math.floor(e)})),u=r["N"](l,(function(e,t){return e+t}),0),c=r["H"](a,(function(e,t){return e-l[t]}));while(u<s){for(var d=Number.NEGATIVE_INFINITY,f=null,h=0,p=c.length;h<p;++h)c[h]>d&&(d=c[h],f=h);++l[f],c[f]=0,++u}return l[t]/o}function g(e,t){var n=Math.max(d(e),d(t)),r=e+t;return n>o?r:u(r,n)}var v=9007199254740991;function y(e){var t=2*Math.PI;return(e%t+t)%t}function m(e){return e>-i&&e<i}var b=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function x(e){if(e instanceof Date)return e;if(r["C"](e)){var t=b.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]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function _(e){return Math.pow(10,w(e))}function w(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 S(e,t){var n,r=w(e),i=Math.pow(10,r),o=e/i;return n=t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,e=n*i,r>=-20?+e.toFixed(r<0?-r:0):e}function k(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i}function O(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,o=e[r].close,a=0;a<2;a++)i[a]<=t&&(i[a]=t,o[a]=a?1:1-n),t=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!==1?e.splice(r,1):r++}return e;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 T(e){var t=parseFloat(e);return t==e&&(0!==t||!r["C"](e)||e.indexOf("x")<=0)?t:NaN}function E(e){return!isNaN(T(e))}function C(){return Math.round(9*Math.random())}function A(e,t){return 0===t?e:A(t,e%t)}function M(e,t){return null==e?t:null==t?e:e*t/A(e,t)}},"38a2":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n("6d8b"),i=n("2b17"),o=n("eda2"),a=/\{@(.+?)\}/g,s=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,f=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:i,data:a,dataType:t,value:r,color:l,borderColor:u,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,s,l,u){t=t||"normal";var c=this.getData(n),d=this.getDataParams(e,n);if(u&&(d.value=u.interpolatedValue),null!=s&&r["t"](d.value)&&(d.value=d.value[s]),!l){var f=c.getItemModel(e);l=f.get("normal"===t?["label","formatter"]:[t,"label","formatter"])}if(r["w"](l))return d.status=t,d.dimensionIndex=s,l(d);if(r["C"](l)){var h=Object(o["d"])(l,d);return h.replace(a,(function(t,n){var o=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(o-1)&&(a=+a.slice(1,o-1));var s=Object(i["e"])(c,e,a);if(u&&r["t"](u.interpolatedValue)){var l=c.getDimensionIndex(a);l>=0&&(s=u.interpolatedValue[l])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return Object(i["e"])(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function l(e){var t,n;return r["A"](e)?e.type&&(n=e):t=e,{text:t,frag:n}}},3901:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n("282b"),i=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o=Object(r["a"])(i),a=function(){function e(){}return e.prototype.getLineStyle=function(e){return o(this,e)},e}()},"3c64":function(e,t,n){},"401b":function(e,t,n){"use strict";function r(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function i(e,t){return e[0]=t[0],e[1]=t[1],e}function o(e){return[e[0],e[1]]}function a(e,t,n){return e[0]=t,e[1]=n,e}function s(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function l(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function c(e){return Math.sqrt(d(e))}n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"p",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"o",(function(){return l})),n.d(t,"q",(function(){return u})),n.d(t,"i",(function(){return c})),n.d(t,"n",(function(){return f})),n.d(t,"m",(function(){return h})),n.d(t,"h",(function(){return p})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return y})),n.d(t,"j",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"l",(function(){return x})),n.d(t,"k",(function(){return _}));function d(e){return e[0]*e[0]+e[1]*e[1]}function f(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function h(e,t){var n=c(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function p(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var g=p;function v(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var y=v;function m(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function b(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function x(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function _(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}},4041:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var r=n("e0d3"),i=Object(r["o"])(),o=Object(r["o"])(),a=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var o=Object(r["r"])(this.get("color",!0)),a=this.get("colorLayer",!0);return u(this,i,o,a,e,t,n)},e.prototype.clearColorPalette=function(){c(this,i)},e}();function s(e,t,n,i){var a=Object(r["r"])(e.get(["aria","decal","decals"]));return u(e,o,a,null,t,n,i)}function l(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function u(e,t,n,r,i,o,a){o=o||e;var s=t(o),u=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var d=null!=a&&r?l(r,a):n;if(d=d||n,d&&d.length){var f=d[u];return i&&(c[i]=f),s.paletteIdx=(u+1)%d.length,f}}function c(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}},"408c":function(e,t,n){var r=n("2b3e"),i=function(){return r.Date.now()};e.exports=i},"41ef":function(e,t,n){"use strict";n.d(t,"g",(function(){return y})),n.d(t,"c",(function(){return x})),n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return w})),n.d(t,"f",(function(){return S})),n.d(t,"e",(function(){return k})),n.d(t,"h",(function(){return O})),n.d(t,"d",(function(){return T}));var r=n("d51b"),i={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(e){return e=Math.round(e),e<0?0:e>255?255:e}function a(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){var t=e;return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function u(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100):s(parseFloat(t))}function c(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 d(e,t,n){return e+(t-e)*n}function f(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var p=new r["a"](20),g=null;function v(e,t){g&&h(g,t),g=p.put(e,g||t.slice())}function y(e,t){if(e){t=t||[];var n=p.get(e);if(n)return h(t,n);e+="";var r=e.replace(/ /g,"").toLowerCase();if(r in i)return h(t,i[r]),v(e,t),t;var o=r.length;if("#"!==r.charAt(0)){var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var c=r.substr(0,a),d=r.substr(a+1,s-(a+1)).split(","),g=1;switch(c){case"rgba":if(4!==d.length)return 3===d.length?f(t,+d[0],+d[1],+d[2],1):f(t,0,0,0,1);g=u(d.pop());case"rgb":return 3!==d.length?void f(t,0,0,0,1):(f(t,l(d[0]),l(d[1]),l(d[2]),g),v(e,t),t);case"hsla":return 4!==d.length?void f(t,0,0,0,1):(d[3]=u(d[3]),m(d,t),v(e,t),t);case"hsl":return 3!==d.length?void f(t,0,0,0,1):(m(d,t),v(e,t),t);default:return}}f(t,0,0,0,1)}else{if(4===o||5===o){var y=parseInt(r.slice(1,4),16);return y>=0&&y<=4095?(f(t,(3840&y)>>4|(3840&y)>>8,240&y|(240&y)>>4,15&y|(15&y)<<4,5===o?parseInt(r.slice(4),16)/15:1),v(e,t),t):void f(t,0,0,0,1)}if(7===o||9===o){y=parseInt(r.slice(1,7),16);return y>=0&&y<=16777215?(f(t,(16711680&y)>>16,(65280&y)>>8,255&y,9===o?parseInt(r.slice(7),16)/255:1),v(e,t),t):void f(t,0,0,0,1)}}}}function m(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=u(e[1]),i=u(e[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return t=t||[],f(t,o(255*c(s,a,n+1/3)),o(255*c(s,a,n)),o(255*c(s,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function b(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,d=((s-i)/6+l/2)/l,f=((s-o)/6+l/2)/l;r===s?t=f-d:i===s?t=1/3+c-f:o===s&&(t=2/3+d-c),t<0&&(t+=1),t>1&&(t-=1)}var h=[360*t,n,u];return null!=e[3]&&h.push(e[3]),h}}function x(e,t){var n=y(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return O(n,4===n.length?"rgba":"rgb")}}function _(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),l=t[i],u=t[a],c=r-i;return n[0]=o(d(l[0],u[0],c)),n[1]=o(d(l[1],u[1],c)),n[2]=o(d(l[2],u[2],c)),n[3]=s(d(l[3],u[3],c)),n}}function w(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),l=y(t[i]),u=y(t[a]),c=r-i,f=O([o(d(l[0],u[0],c)),o(d(l[1],u[1],c)),o(d(l[2],u[2],c)),s(d(l[3],u[3],c))],"rgba");return n?{color:f,leftIndex:i,rightIndex:a,value:r}:f}}function S(e,t,n,r){var i=y(e);if(e)return i=b(i),null!=t&&(i[0]=a(t)),null!=n&&(i[1]=u(n)),null!=r&&(i[2]=u(r)),O(m(i),"rgba")}function k(e,t){var n=y(e);if(n&&null!=t)return n[3]=s(t),O(n,"rgba")}function O(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+")"}}function T(e,t){var n=y(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}},"42e5":function(e,t,n){"use strict";var r=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();t["a"]=r},4319:function(e,t,n){"use strict";var r=n("22d1"),i=n("625e"),o=n("282b"),a=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],s=Object(o["a"])(a),l=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return s(this,e,t)},e}(),u=n("7837"),c=n("76a5"),d=["textStyle","color"],f=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],h=new c["a"],p=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(d):null)},e.prototype.getFont=function(){return Object(u["d"])({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<f.length;n++)t[f[n]]=this.getShallow(f[n]);return h.useStyle(t),h.update(),h.getBoundingRect()},e}(),g=p,v=n("3901"),y=n("551f"),m=n("6d8b"),b=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){Object(m["I"])(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(Object(m["d"])(this.option))},e.prototype.parsePath=function(e){return"string"===typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!r["a"].node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]&&(n=n&&"object"===typeof n?n[e[r]]:null,null==n))break;return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Object(i["b"])(b),Object(i["a"])(b),Object(m["K"])(b,v["b"]),Object(m["K"])(b,y["b"]),Object(m["K"])(b,l),Object(m["K"])(b,g);t["a"]=b},4573:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(i["b"]);a.prototype.type="ring",t["a"]=a},"48a9":function(e,t,n){"use strict";var r=n("9ab4"),i=n("42e5"),o=function(e){function t(t,n,r,i,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return Object(r["a"])(t,e),t}(i["a"]);t["a"]=o},"4a3f":function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"c",(function(){return m})),n.d(t,"g",(function(){return b})),n.d(t,"e",(function(){return x})),n.d(t,"d",(function(){return _})),n.d(t,"h",(function(){return w})),n.d(t,"i",(function(){return S})),n.d(t,"m",(function(){return k})),n.d(t,"j",(function(){return O})),n.d(t,"n",(function(){return T})),n.d(t,"l",(function(){return E})),n.d(t,"k",(function(){return C}));var r=n("401b"),i=Math.pow,o=Math.sqrt,a=1e-8,s=1e-4,l=o(3),u=1/3,c=Object(r["e"])(),d=Object(r["e"])(),f=Object(r["e"])();function h(e){return e>-a&&e<a}function p(e){return e>a||e<-a}function g(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function v(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function y(e,t,n,r,a,s){var c=r+3*(t-n)-e,d=3*(n-2*t+e),f=3*(t-e),p=e-a,g=d*d-3*c*f,v=d*f-9*c*p,y=f*f-3*d*p,m=0;if(h(g)&&h(v))if(h(d))s[0]=0;else{var b=-f/d;b>=0&&b<=1&&(s[m++]=b)}else{var x=v*v-4*g*y;if(h(x)){var _=v/g,w=(b=-d/c+_,-_/2);b>=0&&b<=1&&(s[m++]=b),w>=0&&w<=1&&(s[m++]=w)}else if(x>0){var S=o(x),k=g*d+1.5*c*(-v+S),O=g*d+1.5*c*(-v-S);k=k<0?-i(-k,u):i(k,u),O=O<0?-i(-O,u):i(O,u);b=(-d-(k+O))/(3*c);b>=0&&b<=1&&(s[m++]=b)}else{var T=(2*g*d-3*c*v)/(2*o(g*g*g)),E=Math.acos(T)/3,C=o(g),A=Math.cos(E),M=(b=(-d-2*C*A)/(3*c),w=(-d+C*(A+l*Math.sin(E)))/(3*c),(-d+C*(A-l*Math.sin(E)))/(3*c));b>=0&&b<=1&&(s[m++]=b),w>=0&&w<=1&&(s[m++]=w),M>=0&&M<=1&&(s[m++]=M)}}return m}function m(e,t,n,r,i){var a=6*n-12*t+6*e,s=9*t+3*r-3*e-9*n,l=3*t-3*e,u=0;if(h(s)){if(p(a)){var c=-l/a;c>=0&&c<=1&&(i[u++]=c)}}else{var d=a*a-4*s*l;if(h(d))i[0]=-a/(2*s);else if(d>0){var f=o(d),g=(c=(-a+f)/(2*s),(-a-f)/(2*s));c>=0&&c<=1&&(i[u++]=c),g>=0&&g<=1&&(i[u++]=g)}}return u}function b(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,d=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=d,o[4]=d,o[5]=c,o[6]=l,o[7]=r}function x(e,t,n,i,a,l,u,h,p,v,y){var m,b,x,_,w,S=.005,k=1/0;c[0]=p,c[1]=v;for(var O=0;O<1;O+=.05)d[0]=g(e,n,a,u,O),d[1]=g(t,i,l,h,O),_=Object(r["g"])(c,d),_<k&&(m=O,k=_);k=1/0;for(var T=0;T<32;T++){if(S<s)break;b=m-S,x=m+S,d[0]=g(e,n,a,u,b),d[1]=g(t,i,l,h,b),_=Object(r["g"])(d,c),b>=0&&_<k?(m=b,k=_):(f[0]=g(e,n,a,u,x),f[1]=g(t,i,l,h,x),w=Object(r["g"])(f,c),x<=1&&w<k?(m=x,k=w):S*=.5)}return y&&(y[0]=g(e,n,a,u,m),y[1]=g(t,i,l,h,m)),o(k)}function _(e,t,n,r,i,o,a,s,l){for(var u=e,c=t,d=0,f=1/l,h=1;h<=l;h++){var p=h*f,v=g(e,n,i,a,p),y=g(t,r,o,s,p),m=v-u,b=y-c;d+=Math.sqrt(m*m+b*b),u=v,c=y}return d}function w(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function S(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function k(e,t,n,r,i){var a=e-2*t+n,s=2*(t-e),l=e-r,u=0;if(h(a)){if(p(s)){var c=-l/s;c>=0&&c<=1&&(i[u++]=c)}}else{var d=s*s-4*a*l;if(h(d)){c=-s/(2*a);c>=0&&c<=1&&(i[u++]=c)}else if(d>0){var f=o(d),g=(c=(-s+f)/(2*a),(-s-f)/(2*a));c>=0&&c<=1&&(i[u++]=c),g>=0&&g<=1&&(i[u++]=g)}}return u}function O(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function T(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function E(e,t,n,i,a,l,u,h,p){var g,v=.005,y=1/0;c[0]=u,c[1]=h;for(var m=0;m<1;m+=.05){d[0]=w(e,n,a,m),d[1]=w(t,i,l,m);var b=Object(r["g"])(c,d);b<y&&(g=m,y=b)}y=1/0;for(var x=0;x<32;x++){if(v<s)break;var _=g-v,S=g+v;d[0]=w(e,n,a,_),d[1]=w(t,i,l,_);b=Object(r["g"])(d,c);if(_>=0&&b<y)g=_,y=b;else{f[0]=w(e,n,a,S),f[1]=w(t,i,l,S);var k=Object(r["g"])(f,c);S<=1&&k<y?(g=S,y=k):v*=.5}}return p&&(p[0]=w(e,n,a,g),p[1]=w(t,i,l,g)),o(y)}function C(e,t,n,r,i,o,a){for(var s=e,l=t,u=0,c=1/a,d=1;d<=a;d++){var f=d*c,h=w(e,n,i,f),p=w(t,r,o,f),g=h-s,v=p-l;u+=Math.sqrt(g*g+v*v),s=h,l=p}return u}},"4aa2":function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=n("6d8b"),a=Math.PI,s=2*a,l=Math.sin,u=Math.cos,c=Math.acos,d=Math.atan2,f=Math.abs,h=Math.sqrt,p=Math.max,g=Math.min,v=1e-4;function y(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,d=s-o,f=d*l-c*u;if(!(f*f<v))return f=(c*(t-o)-d*(e-i))/f,[e+f*l,t+f*u]}function m(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/h(s*s+l*l),c=u*l,d=-u*s,f=e+c,g=t+d,v=n+c,y=r+d,m=(f+v)/2,b=(g+y)/2,x=v-f,_=y-g,w=x*x+_*_,S=i-o,k=f*y-v*g,O=(_<0?-1:1)*h(p(0,S*S*w-k*k)),T=(k*_-x*O)/w,E=(-k*x-_*O)/w,C=(k*_+x*O)/w,A=(-k*x+_*O)/w,M=T-m,L=E-b,I=C-m,D=A-b;return M*M+L*L>I*I+D*D&&(T=C,E=A),{cx:T,cy:E,x0:-c,y0:-d,x1:T*(i/S-1),y1:E*(i/S-1)}}function b(e){var t;if(Object(o["t"])(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}function x(e,t){var n,r=p(t.r,0),i=p(t.r0||0,0),o=r>0,x=i>0;if(o||x){if(o||(r=i,i=0),i>r){var _=r;r=i,i=_}var w=t.startAngle,S=t.endAngle;if(!isNaN(w)&&!isNaN(S)){var k=t.cx,O=t.cy,T=!!t.clockwise,E=f(S-w),C=E>s&&E%s;if(C>v&&(E=C),r>v)if(E>s-v)e.moveTo(k+r*u(w),O+r*l(w)),e.arc(k,O,r,w,S,!T),i>v&&(e.moveTo(k+i*u(S),O+i*l(S)),e.arc(k,O,i,S,w,T));else{var A=void 0,M=void 0,L=void 0,I=void 0,D=void 0,j=void 0,P=void 0,R=void 0,N=void 0,B=void 0,F=void 0,z=void 0,U=void 0,H=void 0,V=void 0,G=void 0,q=r*u(w),W=r*l(w),Y=i*u(S),K=i*l(S),X=E>v;if(X){var Z=t.cornerRadius;Z&&(n=b(Z),A=n[0],M=n[1],L=n[2],I=n[3]);var $=f(r-i)/2;if(D=g($,L),j=g($,I),P=g($,A),R=g($,M),F=N=p(D,j),z=B=p(P,R),(N>v||B>v)&&(U=r*u(S),H=r*l(S),V=i*u(w),G=i*l(w),E<a)){var J=y(q,W,V,G,U,H,Y,K);if(J){var Q=q-J[0],ee=W-J[1],te=U-J[0],ne=H-J[1],re=1/l(c((Q*te+ee*ne)/(h(Q*Q+ee*ee)*h(te*te+ne*ne)))/2),ie=h(J[0]*J[0]+J[1]*J[1]);F=g(N,(r-ie)/(re+1)),z=g(B,(i-ie)/(re-1))}}}if(X)if(F>v){var oe=g(L,F),ae=g(I,F),se=m(V,G,q,W,r,oe,T),le=m(U,H,Y,K,r,ae,T);e.moveTo(k+se.cx+se.x0,O+se.cy+se.y0),F<N&&oe===ae?e.arc(k+se.cx,O+se.cy,F,d(se.y0,se.x0),d(le.y0,le.x0),!T):(oe>0&&e.arc(k+se.cx,O+se.cy,oe,d(se.y0,se.x0),d(se.y1,se.x1),!T),e.arc(k,O,r,d(se.cy+se.y1,se.cx+se.x1),d(le.cy+le.y1,le.cx+le.x1),!T),ae>0&&e.arc(k+le.cx,O+le.cy,ae,d(le.y1,le.x1),d(le.y0,le.x0),!T))}else e.moveTo(k+q,O+W),e.arc(k,O,r,w,S,!T);else e.moveTo(k+q,O+W);if(i>v&&X)if(z>v){oe=g(A,z),ae=g(M,z),se=m(Y,K,U,H,i,-ae,T),le=m(q,W,V,G,i,-oe,T);e.lineTo(k+se.cx+se.x0,O+se.cy+se.y0),z<B&&oe===ae?e.arc(k+se.cx,O+se.cy,z,d(se.y0,se.x0),d(le.y0,le.x0),!T):(ae>0&&e.arc(k+se.cx,O+se.cy,ae,d(se.y0,se.x0),d(se.y1,se.x1),!T),e.arc(k,O,i,d(se.cy+se.y1,se.cx+se.x1),d(le.cy+le.y1,le.cx+le.x1),T),oe>0&&e.arc(k+le.cx,O+le.cy,oe,d(le.y1,le.x1),d(le.y0,le.x0),!T))}else e.lineTo(k+Y,O+K),e.arc(k,O,i,S,w,T);else e.lineTo(k+Y,O+K)}else e.moveTo(k,O);e.closePath()}}}var _=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return e}(),w=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new _},t.prototype.buildPath=function(e,t){x(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(i["b"]);w.prototype.type="sector";t["a"]=w},"4bc4":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}));var r=1,i=2,o=4},"4cef":function(e,t){var n=/\s/;function r(e){var t=e.length;while(t--&&n.test(e.charAt(t)));return t}e.exports=r},"4d58":function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="397e")}({"0126":function(e,t,n){(function(t){
  16. /*!
  17. * Quill Editor v1.3.7
  18. * https://quilljs.com/
  19. * Copyright (c) 2014, Jason Chen
  20. * Copyright (c) 2013, salesforce.com
  21. */
  22. (function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),l=n(47),u=n(48),c=n(49),d=n(12),f=n(32),h=n(33),p=n(31),g=n(1),v={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:u.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:c.default,Attributor:{Attribute:d.default,Class:f.default,Style:h.default,Store:p.default}};t.default=v},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,n=e.call(this,t)||this,n.message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var o,a={},s={},l={},u={};function c(e,t){var n=f(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e["nodeType"]===Node.TEXT_NODE?e:r.create(t);return new r(o,t)}function d(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?d(e.parentNode,n):null}function f(e,t){var n;if(void 0===t&&(t=o.ANY),"string"===typeof e)n=u[e]||a[e];else if(e instanceof Text||e["nodeType"]===Node.TEXT_NODE)n=u["text"];else if("number"===typeof e)e&o.LEVEL&o.BLOCK?n=u["block"]:e&o.LEVEL&o.INLINE&&(n=u["inline"]);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=s[r[i]],n)break;n=n||l[e.tagName]}return null==n?null:t&o.LEVEL&n.scope&&t&o.TYPE&n.scope?n:null}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return h(e)}));var n=e[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");if(u[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(e){null!=l[e]&&null!=n.className||(l[e]=n)}))}return n}t.DATA_KEY="__blot",function(e){e[e["TYPE"]=3]="TYPE",e[e["LEVEL"]=12]="LEVEL",e[e["ATTRIBUTE"]=13]="ATTRIBUTE",e[e["BLOT"]=14]="BLOT",e[e["INLINE"]=7]="INLINE",e[e["BLOCK"]=11]="BLOCK",e[e["BLOCK_BLOT"]=10]="BLOCK_BLOT",e[e["INLINE_BLOT"]=6]="INLINE_BLOT",e[e["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",e[e["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",e[e["ANY"]=15]="ANY"}(o=t.Scope||(t.Scope={})),t.create=c,t.find=d,t.query=f,t.register=h},function(e,t,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype["delete"]=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"===typeof n){if("number"===typeof e["delete"]&&"number"===typeof n["delete"])return this.ops[t-1]={delete:n["delete"]+e["delete"]},this;if("number"===typeof n["delete"]&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!==typeof n))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){var i=e(r)?t:n;i.push(r)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);var n=[],r=a.iterator(this.ops),i=0;while(i<t&&r.hasNext()){var o;i<e?o=r.next(e-i):(o=r.next(t-i),n.push(o)),i+=a.length(o)}return new l(n)},l.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),r=[],o=n.peek();if(null!=o&&"number"===typeof o.retain&&null==o.attributes){var s=o.retain;while("insert"===t.peekType()&&t.peekLength()<=s)s-=t.peekLength(),r.push(t.next());o.retain-s>0&&n.next(o.retain-s)}var u=new l(r);while(t.hasNext()||n.hasNext())if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),d=t.next(c),f=n.next(c);if("number"===typeof f.retain){var h={};"number"===typeof d.retain?h.retain=c:h.insert=d.insert;var p=a.attributes.compose(d.attributes,f.attributes,"number"===typeof d.retain);if(p&&(h.attributes=p),u.push(h),!n.hasNext()&&i(u.ops[u.ops.length-1],h)){var g=new l(t.rest());return u.concat(g).chop()}}else"number"===typeof f["delete"]&&"number"===typeof d.retain&&u.push(f)}return u.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var r=t===e?"on":"with";throw new Error("diff() called "+r+" non-document")})).join("")})),o=new l,u=r(n[0],n[1],t),c=a.iterator(this.ops),d=a.iterator(e.ops);return u.forEach((function(e){var t=e[1].length;while(t>0){var n=0;switch(e[0]){case r.INSERT:n=Math.min(d.peekLength(),t),o.push(d.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),o["delete"](n);break;case r.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),t);var s=c.next(n),l=d.next(n);i(s.insert,l.insert)?o.retain(n,a.attributes.diff(s.attributes,l.attributes)):o.push(l)["delete"](n);break}t-=n}})),o.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";var n=a.iterator(this.ops),r=new l,i=0;while(n.hasNext()){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),u="string"===typeof o.insert?o.insert.indexOf(t,s)-s:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&e(r,{},i)},l.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);var n=a.iterator(this.ops),r=a.iterator(e.ops),i=new l;while(n.hasNext()||r.hasNext())if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),u=r.next(o);if(s["delete"])continue;u["delete"]?i.push(u):i.retain(o,a.attributes.transform(s.attributes,u.attributes,t))}else i.retain(a.length(n.next()));return i.chop()},l.prototype.transformPosition=function(e,t){t=!!t;var n=a.iterator(this.ops),r=0;while(n.hasNext()&&r<=e){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<e||!t)&&(e+=i),r+=i):e-=Math.min(i,e-r)}return e},e.exports=l},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,i=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(t in e);return"undefined"===typeof t||n.call(e,t)},l=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var t,n,r,i,o,c,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"===typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});f<h;++f)if(t=arguments[f],null!=t)for(n in t)r=u(d,n),i=u(t,n),d!==i&&(p&&i&&(s(i)||(o=a(i)))?(o?(o=!1,c=r&&a(r)?r:[]):c=r&&s(r)?r:{},l(d,{name:n,newValue:e(p,c,i)})):"undefined"!==typeof i&&l(d,{name:n,newValue:i}));return d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(3),a=y(o),s=n(2),l=y(s),u=n(0),c=y(u),d=n(16),f=y(d),h=n(6),p=y(h),g=n(7),v=y(g);function y(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function x(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _=1,w=function(e){function t(){return m(this,t),b(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return x(t,e),r(t,[{key:"attach",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new c.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=c.default.query(e,c.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"===typeof n&&n.endsWith("\n")){var o=c.default.create(S.blotName);this.parent.insertBefore(o,0===e?this:this.next),o.insertAt(0,n.slice(0,-1))}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(c.default.Embed);w.scope=c.default.Scope.BLOCK_BLOT;var S=function(e){function t(e){m(this,t);var n=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return x(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(c.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),k(t))}),new l.default).insert("\n",k(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,o){n<=0||(c.default.query(r,c.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,o):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,o),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var o=n.split("\n"),a=o.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;o.reduce((function(e,t){return s=s.split(e,!0),s.insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof f.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+_),this.cache.length}},{key:"moveChildren",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-_)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(c.default.Block);function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,a.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:k(e.parent,t))}S.blotName="block",S.tagName="P",S.defaultChild="break",S.allowedChildren=[p.default,c.default.Embed,v.default],t.bubbleFormats=k,t.BlockEmbed=w,t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="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},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var a=n(2),s=k(a),l=n(14),u=k(l),c=n(8),d=k(c),f=n(9),h=k(f),p=n(0),g=k(p),v=n(15),y=k(v),m=n(3),b=k(m),x=n(10),_=k(x),w=n(34),S=k(w);function k(e){return e&&e.__esModule?e:{default:e}}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var E=(0,_.default)("quill"),C=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(T(this,e),this.options=A(t,r),this.container=this.options.container,null==this.container)return E.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new d.default,this.scroll=g.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new y.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(d.default.events.EDITOR_CHANGE,(function(e){e===d.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(d.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;M.call(n,(function(){return n.editor.update(null,t,i)}),e)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),_.default.level(e)}},{key:"find",value:function(e){return e.__quill||g.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&E.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var i=e.attrName||e.blotName;"string"===typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||E.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?g.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;e=document.createElement("div"),e.classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,o=L(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],M.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;return M.call(this,(function(){var r=n.getSelection(!0),i=new s.default;if(null==r)return i;if(g.default.query(e,g.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,O({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,O({},e,t))}return n.setSelection(r,d.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,o){var a=this,s=void 0,l=L(e,t,n,r,o),u=i(l,4);return e=u[0],t=u[1],s=u[2],o=u[3],M.call(this,(function(){return a.editor.formatLine(e,t,s)}),o,e,0)}},{key:"formatText",value:function(e,t,n,r,o){var a=this,s=void 0,l=L(e,t,n,r,o),u=i(l,4);return e=u[0],t=u[1],s=u[2],o=u[3],M.call(this,(function(){return a.editor.formatText(e,t,s)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=L(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=L(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return M.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),o,t)}},{key:"insertText",value:function(e,t,n,r,o){var a=this,s=void 0,l=L(e,0,n,r,o),u=i(l,4);return e=u[0],s=u[2],o=u[3],M.call(this,(function(){return a.editor.insertText(e,t,s)}),o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,o=L(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],M.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.sources.API;return M.call(this,(function(){e=new s.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),o=i.ops[i.ops.length-1];null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1));var a=r.compose(i);return a}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=L(t,n,r),a=i(o,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new v.Range(t,n),r),r!==d.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.sources.API,n=(new s.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.sources.API;return M.call(this,(function(){return e=new s.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function A(e,t){if(t=(0,b.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t),t.theme&&t.theme!==C.DEFAULTS.theme){if(t.theme=C.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=S.default;var n=(0,b.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)),i=r.reduce((function(e,t){var n=C.import("modules/"+t);return null==n?E.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,b.default)(!0,{},C.DEFAULTS,{modules:i},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function M(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===d.default.sources.USER)return new s.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=I(i,a,t):0!==r&&(i=I(i,n,r,t)),this.setSelection(i,d.default.sources.SILENT)),a.length()>0){var l,u,c=[d.default.events.TEXT_CHANGE,a,o,t];(l=this.emitter).emit.apply(l,[d.default.events.EDITOR_CHANGE].concat(c)),t!==d.default.sources.SILENT&&(u=this.emitter).emit.apply(u,c)}return a}function L(e,t,n,i,o){var a={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(o=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(o=i,i=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,o=i):"string"===typeof n&&(null!=i?a[n]=i:o=n),o=o||d.default.sources.API,[e,t,a,o]}function I(e,t,n,r){if(null==e)return null;var o=void 0,a=void 0;if(t instanceof s.default){var l=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==d.default.sources.USER)})),u=i(l,2);o=u[0],a=u[1]}else{var c=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===d.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),f=i(c,2);o=f[0],a=f[1]}return new v.Range(o,a-o)}C.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},C.events=d.default.events,C.sources=d.default.sources,C.version="1.3.7",C.imports={delta:s.default,parchment:g.default,"core/module":h.default,"core/theme":S.default},t.expandConfig=A,t.overload=L,t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(7),a=u(o),s=n(0),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(){return c(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"formatAt",value:function(e,n,r,o){if(t.compare(this.statics.blotName,r)<0&&l.default.query(r,l.default.Scope.BLOT)){var a=this.isolate(e,n);o&&a.wrap(r,o)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o)}},{key:"optimize",value:function(e){if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e<n?-1:1}}]),t}(l.default.Inline);h.allowedChildren=[h,l.default.Embed,a.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default.Text);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(54),a=u(o),s=n(10),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=(0,l.default)("quill:events"),p=["selectionchange","mousedown","mouseup","click"];p.forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var g=function(e){function t(){c(this,t);var e=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",h.error),e}return f(t,e),r(t,[{key:"emit",value:function(){h.log.apply(h,arguments),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,i=t.handler;(e.target===r||r.contains(e.target))&&i.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(a.default);g.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},g.sources={API:"api",SILENT:"silent",USER:"user"},t.default=g},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(e){if(r.indexOf(e)<=r.indexOf(i)){for(var t,n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];(t=console)[e].apply(t,o)}}function a(e){return r.reduce((function(t,n){return t[n]=o.bind(console,n,e),t}),{})}o.level=a.level=function(e){i=e},t.default=a},function(e,t,n){var r=Array.prototype.slice,i=n(52),o=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:u(e,t,n))};function s(e){return null===e||void 0===e}function l(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&"function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0])}function u(e,t,n){var u,c;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var d=i(e),f=i(t)}catch(h){return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),u=d.length-1;u>=0;u--)if(d[u]!=f[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!a(e[c],t[c],n))return!1;return typeof e===typeof t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){var n=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(2),s=v(a),l=n(0),u=v(l),c=n(4),d=v(c),f=n(6),h=v(f),p=n(7),g=v(p);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function b(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var x=function(e){function t(){return y(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return b(t,e),t}(h.default);x.blotName="code",x.tagName="CODE";var _=function(e){function t(){return y(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return b(t,e),i(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new s.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var i=this.descendant(g.default,this.length()-1),a=r(i,1),s=a[0];null!=s&&s.deleteAt(s.length()-1,1),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,i){if(0!==n&&null!=u.default.query(r,u.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||o>=e+n)){var a=this.newlineIndex(e,!0)+1,s=o-a+1,l=this.isolate(a,s),c=l.next;l.format(r,i),c instanceof t&&c.formatAt(0,e-a+n-s,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(g.default,e),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=u.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof u.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(d.default);_.blotName="code-block",_.tagName="PRE",_.TAB=" ",t.Code=x,t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(2),s=T(a),l=n(20),u=T(l),c=n(0),d=T(c),f=n(13),h=T(f),p=n(24),g=T(p),v=n(4),y=T(v),m=n(16),b=T(m),x=n(21),_=T(x),w=n(11),S=T(w),k=n(3),O=T(k);function T(e){return e&&e.__esModule?e:{default:e}}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var A=/^[ -~]*$/,M=function(){function e(t){C(this,e),this.scroll=t,this.delta=this.getDelta()}return o(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),e=I(e),e.reduce((function(e,a){var s=a.retain||a.delete||a.insert.length||1,l=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var c=a.insert;c.endsWith("\n")&&n&&(n=!1,c=c.slice(0,-1)),e>=o&&!c.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,c);var f=t.scroll.line(e),h=i(f,2),p=h[0],g=h[1],m=(0,O.default)({},(0,v.bubbleFormats)(p));if(p instanceof y.default){var b=p.descendant(d.default.Leaf,g),x=i(b,1),_=x[0];m=(0,O.default)(m,(0,v.bubbleFormats)(_))}l=u.default.attributes.diff(m,l)||{}}else if("object"===r(a.insert)){var w=Object.keys(a.insert)[0];if(null==w)return e;t.scroll.insertAt(e,w,a.insert[w])}o+=s}return Object.keys(l).forEach((function(n){t.scroll.formatAt(e,s,n,l[n])})),e+s}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(e,Math.max(t,1)),a=t;o.forEach((function(t){var o=t.length();if(t instanceof h.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+a)-s+1;t.formatAt(s,l,i,r[i])}else t.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,_.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])})),this.update((new s.default).retain(e).retain(t,(0,_.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=i(e,1),o=t[0];o instanceof y.default?n.push(o):o instanceof d.default.Leaf&&r.push(o)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(d.default.Leaf,e,t));var o=[n,r].map((function(e){if(0===e.length)return{};var t=(0,v.bubbleFormats)(e.shift());while(Object.keys(t).length>0){var n=e.shift();if(null==n)return t;t=L((0,v.bubbleFormats)(n),t)}return t}));return O.default.apply(O.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert(E({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new s.default).retain(e).insert(t,(0,_.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===y.default.blotName&&!(e.children.length>1)&&e.children.head instanceof b.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),o=i(r,2),a=o[0],l=o[1],u=0,c=new s.default;null!=a&&(u=a instanceof h.default?a.newlineIndex(l)-l+1:a.length()-l,c=a.delta().slice(l,l+u-1).insert("\n"));var d=this.getContents(e,t+u),f=d.diff((new s.default).insert(n).concat(c)),p=(new s.default).retain(e).concat(f);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(A)&&d.default.find(t[0].target)){var i=d.default.find(t[0].target),o=(0,v.bubbleFormats)(i),a=i.offset(this.scroll),l=t[0].oldValue.replace(g.default.CONTENTS,""),u=(new s.default).insert(l),c=(new s.default).insert(i.value()),f=(new s.default).retain(a).concat(u.diff(c,n));e=f.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new s.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,S.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function L(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}function I(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,_.default)(t.attributes);return delete n["image"],e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||(t=(0,_.default)(t),t.attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new s.default)}t.default=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=g(o),s=n(21),l=g(s),u=n(11),c=g(u),d=n(8),f=g(d),h=n(10),p=g(h);function g(e){return e&&e.__esModule?e:{default:e}}function v(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var m=(0,p.default)("quill:selection"),b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;y(this,e),this.index=t,this.length=n},x=function(){function e(t,n){var r=this;y(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new b(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,f.default.sources.USER),1)})),this.emitter.on(f.default.events.EDITOR_CHANGE,(function(e,t){e===f.default.events.TEXT_CHANGE&&t.length()>0&&r.update(f.default.sources.SILENT)})),this.emitter.on(f.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(f.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(f.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(f.default.sources.SILENT)}return i(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(f.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(e,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=a.default.find(n.start.node,!1);if(null==r)return;if(r instanceof a.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,o=this.scroll.leaf(e),a=r(o,2),s=a[0],l=a[1];if(null==s)return null;var u=s.position(l,!0),c=r(u,2);i=c[0],l=c[1];var d=document.createRange();if(t>0){d.setStart(i,l);var f=this.scroll.leaf(e+t),h=r(f,2);if(s=h[0],l=h[1],null==s)return null;var p=s.position(l,!0),g=r(p,2);return i=g[0],l=g[1],d.setEnd(i,l),d.getBoundingClientRect()}var v="left",y=void 0;return i instanceof Text?(l<i.data.length?(d.setStart(i,l),d.setEnd(i,l+1)):(d.setStart(i,l-1),d.setEnd(i,l),v="right"),y=d.getBoundingClientRect()):(y=s.domNode.getBoundingClientRect(),l>0&&(v="right")),{bottom:y.top+y.height,height:y.height,left:y[v],right:y[v],top:y.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return m.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();if(null==e)return[null,null];var t=this.normalizedToRange(e);return[t,e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var i=n.map((function(e){var n=r(e,2),i=n[0],o=n[1],s=a.default.find(i,!0),l=s.offset(t.scroll);return 0===o?l:s instanceof a.default.Container?l+s.length():l+s.index(i,o)})),o=Math.min(Math.max.apply(Math,v(i)),this.scroll.length()-1),s=Math.min.apply(Math,[o].concat(v(i)));return new b(s,o-s)}},{key:"normalizeNative",value:function(e){if(!_(this.root,e.startContainer)||!e.collapsed&&!_(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){var t=e.node,n=e.offset;while(!(t instanceof Text)&&t.childNodes.length>0)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;t=t.lastChild,n=t instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],i=[],o=this.scroll.length();return n.forEach((function(e,n){e=Math.min(o-1,e);var a=void 0,s=t.scroll.leaf(e),l=r(s,2),u=l[0],c=l[1],d=u.position(c,0!==n),f=r(d,2);a=f[0],c=f[1],i.push(a,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,i)),a=r(o,1),s=a[0],l=s;if(t.length>0){var u=this.scroll.line(Math.min(t.index+t.length,i)),c=r(u,1);l=c[0]}if(null!=s&&null!=l){var d=e.getBoundingClientRect();n.top<d.top?e.scrollTop-=d.top-n.top:n.bottom>d.bottom&&(e.scrollTop+=n.bottom-d.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(m.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;if("string"===typeof t&&(n=t,t=!1),m.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,v(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,t=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],a=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,c.default)(t,this.lastRange)){var s;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var u,d=[f.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(t),e];(s=this.emitter).emit.apply(s,[f.default.events.EDITOR_CHANGE].concat(d)),e!==f.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}}}]),e}();function _(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=b,t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(a.default.Embed);d.blotName="break",d.tagName="BR",t.default=d},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),o=n(30),a=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=l(t);e.insertBefore(n,e.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),i=r[0],o=r[1];return null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e?[i,o]:i instanceof t?i.descendant(e,o):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&i.push(n),n instanceof t&&(i=i.concat(n.descendants(e,r,o))),o-=a})),i},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,i){e.formatAt(t,i,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),i=r[0],o=r[1];if(i)i.insertAt(o,t,n);else{var s=null==n?a.create("text",t):a.create(t,n);this.appendChild(s)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),i=r[0],o=r[1],a=[[this,e]];return i instanceof t?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,i){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],i=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),i.push.apply(i,e.removedNodes))})),i.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var r=l(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(o.default);function l(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),o=n(31),a=n(17),s=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new o.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var i=e.prototype.wrap.call(this,n,r);return i instanceof t&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},t}(a.default);t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return e={},e[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var r=n(11),i=n(3),o={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t["delete"])return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=o},function(e,n){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var n,r,i;try{n=Map}catch(d){n=function(){}}try{r=Set}catch(d){r=function(){}}try{i=Promise}catch(d){i=function(){}}function o(a,s,l,u,d){"object"===typeof s&&(l=s.depth,u=s.prototype,d=s.includeNonEnumerable,s=s.circular);var f=[],h=[],p="undefined"!=typeof t;function g(a,l){if(null===a)return null;if(0===l)return a;var v,y;if("object"!=typeof a)return a;if(e(a,n))v=new n;else if(e(a,r))v=new r;else if(e(a,i))v=new i((function(e,t){a.then((function(t){e(g(t,l-1))}),(function(e){t(g(e,l-1))}))}));else if(o.__isArray(a))v=[];else if(o.__isRegExp(a))v=new RegExp(a.source,c(a)),a.lastIndex&&(v.lastIndex=a.lastIndex);else if(o.__isDate(a))v=new Date(a.getTime());else{if(p&&t.isBuffer(a))return v=t.allocUnsafe?t.allocUnsafe(a.length):new t(a.length),a.copy(v),v;e(a,Error)?v=Object.create(a):"undefined"==typeof u?(y=Object.getPrototypeOf(a),v=Object.create(y)):(v=Object.create(u),y=u)}if(s){var m=f.indexOf(a);if(-1!=m)return h[m];f.push(a),h.push(v)}for(var b in e(a,n)&&a.forEach((function(e,t){var n=g(t,l-1),r=g(e,l-1);v.set(n,r)})),e(a,r)&&a.forEach((function(e){var t=g(e,l-1);v.add(t)})),a){var x;y&&(x=Object.getOwnPropertyDescriptor(y,b)),x&&null==x.set||(v[b]=g(a[b],l-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(a);for(b=0;b<_.length;b++){var w=_[b],S=Object.getOwnPropertyDescriptor(a,w);(!S||S.enumerable||d)&&(v[w]=g(a[w],l-1),S.enumerable||Object.defineProperty(v,w,{enumerable:!1}))}}if(d){var k=Object.getOwnPropertyNames(a);for(b=0;b<k.length;b++){var O=k[b];S=Object.getOwnPropertyDescriptor(a,O),S&&S.enumerable||(v[O]=g(a[O],l-1),Object.defineProperty(v,O,{enumerable:!1}))}}return v}return"undefined"==typeof s&&(s=!0),"undefined"==typeof l&&(l=1/0),g(a,l)}function a(e){return Object.prototype.toString.call(e)}function s(e){return"object"===typeof e&&"[object Date]"===a(e)}function l(e){return"object"===typeof e&&"[object Array]"===a(e)}function u(e){return"object"===typeof e&&"[object RegExp]"===a(e)}function c(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=a,o.__isDate=s,o.__isArray=l,o.__isRegExp=u,o.__getRegExpFlags=c,o}();"object"===typeof e&&e.exports&&(e.exports=r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=m(a),l=n(8),u=m(l),c=n(4),d=m(c),f=n(16),h=m(f),p=n(13),g=m(p),v=n(25),y=m(v);function m(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function _(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function w(e){return e instanceof d.default||e instanceof c.BlockEmbed}var S=function(e){function t(e,n){b(this,t);var r=x(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return _(t,e),i(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var i=this.line(e),a=r(i,2),s=a[0],l=a[1],u=this.line(e+n),d=r(u,1),f=d[0];if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=f&&s!==f&&l>0){if(s instanceof c.BlockEmbed||f instanceof c.BlockEmbed)return void this.optimize();if(s instanceof g.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1),s===f))return void this.optimize()}else if(f instanceof g.default){var v=f.newlineIndex(0);v>-1&&f.split(v+1)}var y=f.children.head instanceof h.default?null:f.children.head;s.moveChildren(f,y),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var i=s.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var a=s.default.create(n,r);this.appendChild(a)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(e),e=r}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(w,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var i=[],o=r;return t.children.forEachAt(n,r,(function(t,n,r){w(t)?i.push(t):t instanceof s.default.Container&&(i=i.concat(e(t,n,o))),o-=r})),i};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=u.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,n,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,n,e)}}}]),t}(s.default.Scroll);S.blotName="scroll",S.className="ql-editor",S.tagName="DIV",S.defaultChild="block",S.allowedChildren=[d.default,c.BlockEmbed,y.default],t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="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},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(21),s=k(a),l=n(11),u=k(l),c=n(3),d=k(c),f=n(2),h=k(f),p=n(20),g=k(p),v=n(0),y=k(v),m=n(5),b=k(m),x=n(10),_=k(x),w=n(9),S=k(w);function k(e){return e&&e.__esModule?e:{default:e}}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function C(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var A=(0,_.default)("quill:keyboard"),M=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",L=function(e){function t(e,n){T(this,t);var r=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist["list"])&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},R),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},D),r.addBinding({key:t.keys.DELETE},{collapsed:!0},j)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},D),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},j)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},P),r.addBinding({key:t.keys.DELETE},{collapsed:!1},P),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},D),r.listen(),r}return C(t,e),o(t,null,[{key:"match",value:function(e,t){return t=F(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),o(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=F(e);if(null==r||null==r.key)return A.warn("Attempted to add invalid keyboard binding",r);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),r=(0,d.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(e.bindings[o]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var l=e.quill.getLine(s.index),c=i(l,2),d=c[0],f=c[1],h=e.quill.getLeaf(s.index),p=i(h,2),g=p[0],v=p[1],m=0===s.length?[g,v]:e.quill.getLeaf(s.index+s.length),b=i(m,2),x=b[0],_=b[1],w=g instanceof y.default.Text?g.value().slice(0,v):"",S=x instanceof y.default.Text?x.value().slice(_):"",k={collapsed:0===s.length,empty:0===s.length&&d.length()<=1,format:e.quill.getFormat(s),offset:f,prefix:w,suffix:S},O=a.some((function(t){if(null!=t.collapsed&&t.collapsed!==k.collapsed)return!1;if(null!=t.empty&&t.empty!==k.empty)return!1;if(null!=t.offset&&t.offset!==k.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==k.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=k.format[e]:!1===t.format[e]?null==k.format[e]:(0,u.default)(t.format[e],k.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(k.prefix))&&!(null!=t.suffix&&!t.suffix.test(k.suffix))&&!0!==t.handler.call(e,s,k)}));O&&n.preventDefault()}}}}))}}]),t}(S.default);function I(e,t){var n,r=e===L.keys.LEFT?"prefix":"suffix";return n={key:e,shiftKey:t,altKey:null},O(n,r,/^$/),O(n,"handler",(function(n){var r=n.index;e===L.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r),a=i(o,1),s=a[0];return!(s instanceof y.default.Embed)||(e===L.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index-1,b.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index+n.length+1,b.default.sources.USER),!1)})),n}function D(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=i(n,1),o=r[0],a={};if(0===t.offset){var s=this.quill.getLine(e.index-1),l=i(s,1),u=l[0];if(null!=u&&u.length()>1){var c=o.formats(),d=this.quill.getFormat(e.index-1,1);a=g.default.attributes.diff(c,d)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-f,f,b.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(e.index-f,f,a,b.default.sources.USER),this.quill.focus()}}function j(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(e.index),s=i(a,1),l=s[0];if(t.offset>=l.length()-1){var u=this.quill.getLine(e.index+1),c=i(u,1),d=c[0];if(d){var f=l.formats(),h=this.quill.getFormat(e.index,1);r=g.default.attributes.diff(f,h)||{},o=d.length()}}this.quill.deleteText(e.index,n,b.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+o-1,n,r,b.default.sources.USER)}}function P(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),i=t[t.length-1].formats();n=g.default.attributes.diff(i,r)||{}}this.quill.deleteText(e,b.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,b.default.sources.USER),this.quill.setSelection(e.index,b.default.sources.SILENT),this.quill.focus()}function R(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return y.default.query(n,y.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,b.default.sources.USER),this.quill.setSelection(e.index+1,b.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],b.default.sources.USER))}))}function N(e){return{key:L.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=y.default.query("code-block"),r=t.index,o=t.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),d=l.newlineIndex(u,!0)+1,f=l.newlineIndex(c+u+o),h=l.domNode.textContent.slice(d,f).split("\n");u=0,h.forEach((function(t,i){e?(l.insertAt(d+u,n.TAB),u+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(d+u,n.TAB.length),u-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),u+=t.length+1})),this.quill.update(b.default.sources.USER),this.quill.setSelection(r,o,b.default.sources.SILENT)}}}}function B(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],b.default.sources.USER)}}}function F(e){if("string"===typeof e||"number"===typeof e)return F({key:e});if("object"===("undefined"===typeof e?"undefined":r(e))&&(e=(0,s.default)(e,!1)),"string"===typeof e.key)if(null!=L.keys[e.key.toUpperCase()])e.key=L.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[M]=e.shortKey,delete e.shortKey),e}L.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},L.DEFAULTS={bindings:{bold:B("bold"),italic:B("italic"),underline:B("underline"),indent:{key:L.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",b.default.sources.USER)}},outdent:{key:L.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",b.default.sources.USER)}},"outdent backspace":{key:L.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",b.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,b.default.sources.USER)}},"indent code-block":N(!0),"outdent code-block":N(!1),"remove tab":{key:L.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,b.default.sources.USER)}},tab:{key:L.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new h.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,b.default.sources.SILENT)}},"list empty enter":{key:L.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,b.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,b.default.sources.USER)}},"checklist enter":{key:L.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(0,d.default)({},r.formats(),{list:"checked"}),s=(new h.default).retain(e.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(e.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:L.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=i(n,2),o=r[0],a=r[1],s=(new h.default).retain(e.index).insert("\n",t.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(e.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",b.default.sources.USER),this.quill.history.cutoff();var u=(new h.default).retain(e.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,b.default.sources.SILENT)}},"code exit":{key:L.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(new h.default).retain(e.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,b.default.sources.USER)}},"embed left":I(L.keys.LEFT,!1),"embed left shift":I(L.keys.LEFT,!0),"embed right":I(L.keys.RIGHT,!1),"embed right shift":I(L.keys.RIGHT,!0)}},t.default=L,t.SHORTKEY=M},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=c(a),l=n(7),u=c(l);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e,n){d(this,t);var r=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return h(t,e),o(t,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);var r=this,o=0;while(null!=r&&r.statics.scope!==s.default.Scope.BLOCK_BLOT)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(o,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),i=void 0,o=void 0,a=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var l=[e,n.start.offset,n.end.offset];i=l[0],o=l[1],a=l[2]}while(null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof u.default?(i=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var d=[o,a].map((function(e){return Math.max(0,Math.min(i.data.length,e-1))})),f=r(d,2);return o=f[0],a=f[1],{startNode:i,startOffset:o,endNode:i,endOffset:a}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(s.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\ufeff",t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=s(r),o=n(4),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),t}(i.default.Container);d.allowedChildren=[a.default,o.BlockEmbed,d],t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(a.default.Attributor.Style),f=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),h=new d("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=d,t.ColorClass=f,t.ColorStyle=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(6),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return f(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(a.default);function f(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}d.blotName="link",d.tagName="A",d.SANITIZED_URL="about:blank",d.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=d,t.sanitize=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(23),a=u(o),s=n(107),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=0;function f(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var h=function(){function e(t){var n=this;c(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case a.default.keys.ENTER:n.togglePicker();break;case a.default.keys.ESCAPE:n.escape(),e.preventDefault();break;default:}})),this.select.addEventListener("change",this.update.bind(this))}return i(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),f(this.label,"aria-expanded"),f(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case a.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case a.default.keys.ESCAPE:t.escape(),e.preventDefault();break;default:}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=l.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+d,d+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=A(r),o=n(5),a=A(o),s=n(4),l=A(s),u=n(16),c=A(u),d=n(25),f=A(d),h=n(24),p=A(h),g=n(35),v=A(g),y=n(6),m=A(y),b=n(22),x=A(b),_=n(7),w=A(_),S=n(55),k=A(S),O=n(42),T=A(O),E=n(23),C=A(E);function A(e){return e&&e.__esModule?e:{default:e}}a.default.register({"blots/block":l.default,"blots/block/embed":s.BlockEmbed,"blots/break":c.default,"blots/container":f.default,"blots/cursor":p.default,"blots/embed":v.default,"blots/inline":m.default,"blots/scroll":x.default,"blots/text":w.default,"modules/clipboard":k.default,"modules/history":T.default,"modules/keyboard":C.default}),i.default.register(l.default,c.default,p.default,m.default,x.default,w.default),t.default=a.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){var n=this.isolate(e,t);n.remove()},e.prototype.formatAt=function(e,t,n,i){var o=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),o=this.split(e);this.parent.insertBefore(i,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"===typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function o(e,t){var n=e.getAttribute("class")||"";return n.split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){var t=o(e,this.keyName);t.forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=o(e,this.keyName)[0]||"",n=t.slice(this.keyName.length+1);return this.canAdd(e,n)?n:""},t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function o(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){var t=e.split(":");return t[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(i.default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,n){i(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=u(o),s=n(7),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h="\ufeff",p=function(e){function t(e){c(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(h),n.rightGuard=document.createTextNode(h),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return f(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(h).join("");if(e===this.leftGuard)if(this.prev instanceof l.default){var i=this.prev.length();this.prev.insertAt(i,r),t={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(a.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(a.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=h,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(a.default.Embed);t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new i.default.Attributor.Attribute("align","align",a),l=new i.default.Attributor.Class("align","ql-align",a),u=new i.default.Attributor.Style("align","text-align",a);t.AlignAttribute=s,t.AlignClass=l,t.AlignStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r=n(0),i=a(r),o=n(26);function a(e){return e&&e.__esModule?e:{default:e}}var s=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),l=new o.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=s,t.BackgroundStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},s=new i.default.Attributor.Attribute("direction","dir",a),l=new i.default.Attributor.Class("direction","ql-direction",a),u=new i.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=s,t.DirectionClass=l,t.DirectionStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},f=new a.default.Attributor.Class("font","ql-font",d),h=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(a.default.Attributor.Style),p=new h("font","font-family",d);t.FontStyle=p,t.FontClass=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=s},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=c(i),a=n(5),s=c(a),l=n(9),u=c(l);function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e,n){d(this,t);var r=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t,n,i){e!==s.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==s.default.sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return h(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],s.default.sources.USER),this.ignoreChange=!1;var r=v(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(u.default);function g(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}function v(e){var t=e.reduce((function(e,t){return e+=t.delete||0,e}),0),n=e.length()-t;return g(e)&&(n-=1),n}p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=p,t.getLastChangeIndex=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(3),a=S(o),s=n(2),l=S(s),u=n(8),c=S(u),d=n(23),f=S(d),h=n(34),p=S(h),g=n(59),v=S(g),y=n(60),m=S(y),b=n(28),x=S(b),_=n(61),w=S(_);function S(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function T(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var E=[!1,"center","right","justify"],C=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],A=[!1,"serif","monospace"],M=["1","2","3",!1],L=["small",!1,"large","huge"],I=function(e){function t(e,n){k(this,t);var r=O(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),i=function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))};return e.emitter.listenDOM("click",document.body,i),r}return T(t,e),r(t,[{key:"addModule",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){var n=e.getAttribute("class")||"";n.split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n]["rtl"];else if("string"===typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&P(e,E),new m.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&P(e,C,"background"===n?"#ffffff":"#000000"),new v.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?P(e,A):e.classList.contains("ql-header")?P(e,M):e.classList.contains("ql-size")&&P(e,L)),new x.default(e)}));var r=function(){n.pickers.forEach((function(e){e.update()}))};this.quill.on(c.default.events.EDITOR_CHANGE,r)}}]),t}(p.default);I.DEFAULTS=(0,a.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&(t=document.createElement("input"),t.setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new l.default).retain(r.index).delete(r.length).insert({image:n.target.result}),c.default.sources.USER),e.quill.setSelection(r.index+1,c.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var D=function(e){function t(e,n){k(this,t);var r=O(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return T(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){f.default.match(t,"enter")?(e.save(),t.preventDefault()):f.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,c.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=j(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,c.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",c.default.sources.USER),this.quill.setSelection(r+2,c.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),t}(w.default);function j(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=D,t.default=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){var t,n=this.iterator();while(t=n())if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){var t=0,n=this.head;while(null!=n){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);var n,r=this.iterator();while(n=r()){var i=n.length();if(e<i||t&&e===i&&(null==n.next||0!==n.next.length()))return[n,e];e-=i}return[null,0]},e.prototype.forEach=function(e){var t,n=this.iterator();while(t=n())e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0)){var r,i=this.find(e),o=i[0],a=i[1],s=e-a,l=this.iterator(o);while((r=l())&&s<e+t){var u=r.length();e>s?n(r,e-s,Math.min(t,s+u-e)):n(r,0,Math.min(u,e+t-s)),s+=u}}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){var n,r=this.iterator();while(n=r())t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)t.push(a.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[o.DATA_KEY].mutations&&(e.domNode[o.DATA_KEY].mutations=[]),t&&l(e.parent))},u=function(e){null!=e.domNode[o.DATA_KEY]&&null!=e.domNode[o.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(u),e.optimize(n))},c=t,d=0;c.length>0;d+=1){if(d>=s)throw new Error("[Parchment] Maximum optimize iterations reached");c.forEach((function(e){var t=o.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(o.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=o.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(u),c=[].slice.call(this.observer.takeRecords()),a=c.slice();while(a.length>0)t.push(a.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),t=t||this.observer.takeRecords(),t.map((function(e){var t=o.find(e.target,!0);return null==t?null:null==t.domNode[o.DATA_KEY].mutations?(t.domNode[o.DATA_KEY].mutations=[e],t):(t.domNode[o.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[o.DATA_KEY]&&e.update(e.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1);function a(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){if(null!=this.formats()[r]||o.query(r,o.Scope.ATTRIBUTE)){var a=this.isolate(t,n);a.format(r,i)}else e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&a(r,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=o.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var r=o.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),a=o.create(n,r);i.parent.insertBefore(a,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(i.default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t["normalize"]&&(t=t["normalize"]()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=o.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(t=n[o],e.call(i,t,o,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,r=1,i=0;function o(e,t,n){if(e==t)return e?[[i,e]]:[];(n<0||e.length<n)&&(n=null);var r=u(e,t),o=e.substring(0,r);e=e.substring(r),t=t.substring(r),r=c(e,t);var s=e.substring(e.length-r);e=e.substring(0,e.length-r),t=t.substring(0,t.length-r);var l=a(e,t);return o&&l.unshift([i,o]),s&&l.push([i,s]),f(l),null!=n&&(l=g(l,n)),l=v(l),l}function a(e,t){var a;if(!e)return[[r,t]];if(!t)return[[n,e]];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,c=l.indexOf(u);if(-1!=c)return a=[[r,l.substring(0,c)],[i,u],[r,l.substring(c+u.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[[n,e],[r,t]];var f=d(e,t);if(f){var h=f[0],p=f[1],g=f[2],v=f[3],y=f[4],m=o(h,g),b=o(p,v);return m.concat([[i,y]],b)}return s(e,t)}function s(e,t){for(var i=e.length,o=t.length,a=Math.ceil((i+o)/2),s=a,u=2*a,c=new Array(u),d=new Array(u),f=0;f<u;f++)c[f]=-1,d[f]=-1;c[s+1]=0,d[s+1]=0;for(var h=i-o,p=h%2!=0,g=0,v=0,y=0,m=0,b=0;b<a;b++){for(var x=-b+g;x<=b-v;x+=2){var _=s+x;E=x==-b||x!=b&&c[_-1]<c[_+1]?c[_+1]:c[_-1]+1;var w=E-x;while(E<i&&w<o&&e.charAt(E)==t.charAt(w))E++,w++;if(c[_]=E,E>i)v+=2;else if(w>o)g+=2;else if(p){var S=s+h-x;if(S>=0&&S<u&&-1!=d[S]){var k=i-d[S];if(E>=k)return l(e,t,E,w)}}}for(var O=-b+y;O<=b-m;O+=2){S=s+O,k=O==-b||O!=b&&d[S-1]<d[S+1]?d[S+1]:d[S-1]+1;var T=k-O;while(k<i&&T<o&&e.charAt(i-k-1)==t.charAt(o-T-1))k++,T++;if(d[S]=k,k>i)m+=2;else if(T>o)y+=2;else if(!p&&(_=s+h-O,_>=0&&_<u&&-1!=c[_])){var E=c[_];if(w=s+E-_,k=i-k,E>=k)return l(e,t,E,w)}}}return[[n,e],[r,t]]}function l(e,t,n,r){var i=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),u=o(i,a),c=o(s,l);return u.concat(c)}function u(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;var n=0,r=Math.min(e.length,t.length),i=r,o=0;while(n<i)e.substring(o,i)==t.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;var n=0,r=Math.min(e.length,t.length),i=r,o=0;while(n<i)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function d(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function i(e,t,n){var r,i,o,a,s=e.substring(n,n+Math.floor(e.length/4)),l=-1,d="";while(-1!=(l=t.indexOf(s,l+1))){var f=u(e.substring(n),t.substring(l)),h=c(e.substring(0,n),t.substring(0,l));d.length<h+f&&(d=t.substring(l-h,l)+t.substring(l,l+f),r=e.substring(0,n-h),i=e.substring(n+f),o=t.substring(0,l-h),a=t.substring(l+f))}return 2*d.length>=e.length?[r,i,o,a,d]:null}var o,a,s,l,d,f=i(n,r,Math.ceil(n.length/4)),h=i(n,r,Math.ceil(n.length/2));if(!f&&!h)return null;o=h?f&&f[4].length>h[4].length?f:h:f,e.length>t.length?(a=o[0],s=o[1],l=o[2],d=o[3]):(l=o[0],d=o[1],a=o[2],s=o[3]);var p=o[4];return[a,s,l,d,p]}function f(e){e.push([i,""]);var t,o=0,a=0,s=0,l="",d="";while(o<e.length)switch(e[o][0]){case r:s++,d+=e[o][1],o++;break;case n:a++,l+=e[o][1],o++;break;case i:a+s>1?(0!==a&&0!==s&&(t=u(d,l),0!==t&&(o-a-s>0&&e[o-a-s-1][0]==i?e[o-a-s-1][1]+=d.substring(0,t):(e.splice(0,0,[i,d.substring(0,t)]),o++),d=d.substring(t),l=l.substring(t)),t=c(d,l),0!==t&&(e[o][1]=d.substring(d.length-t)+e[o][1],d=d.substring(0,d.length-t),l=l.substring(0,l.length-t))),0===a?e.splice(o-s,a+s,[r,d]):0===s?e.splice(o-a,a+s,[n,l]):e.splice(o-a-s,a+s,[n,l],[r,d]),o=o-a-s+(a?1:0)+(s?1:0)+1):0!==o&&e[o-1][0]==i?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,s=0,a=0,l="",d="";break}""===e[e.length-1][1]&&e.pop();var h=!1;o=1;while(o<e.length-1)e[o-1][0]==i&&e[o+1][0]==i&&(e[o][1].substring(e[o][1].length-e[o-1][1].length)==e[o-1][1]?(e[o][1]=e[o-1][1]+e[o][1].substring(0,e[o][1].length-e[o-1][1].length),e[o+1][1]=e[o-1][1]+e[o+1][1],e.splice(o-1,1),h=!0):e[o][1].substring(0,e[o+1][1].length)==e[o+1][1]&&(e[o-1][1]+=e[o+1][1],e[o][1]=e[o][1].substring(e[o+1][1].length)+e[o+1][1],e.splice(o+1,1),h=!0)),o++;h&&f(e)}var h=o;function p(e,t){if(0===t)return[i,e];for(var r=0,o=0;o<e.length;o++){var a=e[o];if(a[0]===n||a[0]===i){var s=r+a[1].length;if(t===s)return[o+1,e];if(t<s){e=e.slice();var l=t-r,u=[a[0],a[1].slice(0,l)],c=[a[0],a[1].slice(l)];return e.splice(o,1,u,c),[o+1,e]}r=s}}throw new Error("cursor_pos is out of bounds!")}function g(e,t){var n=p(e,t),r=n[1],o=n[0],a=r[o],s=r[o+1];if(null==a)return e;if(a[0]!==i)return e;if(null!=s&&a[1]+s[1]===s[1]+a[1])return r.splice(o,2,s,a),y(r,o,2);if(null!=s&&0===s[1].indexOf(a[1])){r.splice(o,2,[s[0],a[1]],[0,a[1]]);var l=s[1].slice(a[1].length);return l.length>0&&r.splice(o+2,0,[s[0],l]),y(r,o,3)}return e}function v(e){for(var t=!1,o=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},s=2;s<e.length;s+=1)e[s-2][0]===i&&a(e[s-2][1])&&e[s-1][0]===n&&o(e[s-1][1])&&e[s][0]===r&&o(e[s][1])&&(t=!0,e[s-1][1]=e[s-2][1].slice(-1)+e[s-1][1],e[s][1]=e[s-2][1].slice(-1)+e[s][1],e[s-2][1]=e[s-2][1].slice(0,-1));if(!t)return e;var l=[];for(s=0;s<e.length;s+=1)e[s][1].length>0&&l.push(e[s]);return l}function y(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var i=e[r],o=e[r+1];i[0]===o[1]&&e.splice(r,2,[i[0],i[1]+o[1]])}return e}h.INSERT=r,h.DELETE=n,h.EQUAL=i,e.exports=h},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"===typeof Object.keys?Object.keys:n,t.shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function i(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}t=e.exports=n?r:i,t.supported=r,t.unsupported=i},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)n.call(e,t)&&i.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e,t){var n=r?r+e:e,i=this._events[n];if(t)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,s=new Array(a);o<a;o++)s[o]=i[o].fn;return s},a.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,o),!0;case 6:return c.fn.call(c.context,t,n,i,o,a),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,i);break;default:if(!l)for(f=1,l=new Array(d-1);f<d;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(e,t,n){var i=new o(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.once=function(e,t,n){var i=new o(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,o){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0===--this._eventsCount?this._events=new i:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||(0===--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||o&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:0===--this._eventsCount?this._events=new i:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new i:delete this._events[t])):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,"undefined"!==typeof e&&(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="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},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(3),s=T(a),l=n(2),u=T(l),c=n(0),d=T(c),f=n(5),h=T(f),p=n(10),g=T(p),v=n(9),y=T(v),m=n(36),b=n(37),x=n(13),_=T(x),w=n(26),S=n(38),k=n(39),O=n(40);function T(e){return e&&e.__esModule?e:{default:e}}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function M(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var L=(0,g.default)("quill:clipboard"),I="__ql-matcher",D=[[Node.TEXT_NODE,$],[Node.TEXT_NODE,K],["br",q],[Node.ELEMENT_NODE,K],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,X],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,Z],["li",Y],["b",H.bind(H,"bold")],["i",H.bind(H,"italic")],["style",W]],j=[m.AlignAttribute,S.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),P=[m.AlignStyle,b.BackgroundStyle,w.ColorStyle,S.DirectionStyle,k.FontStyle,O.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),R=function(e){function t(e,n){C(this,t);var r=A(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],D.concat(r.options.matchers).forEach((function(e){var t=i(e,2),o=t[0],a=t[1];(n.matchVisual||a!==X)&&r.addMatcher(o,a)})),r}return M(t,e),o(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"===typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[_.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new u.default).insert(n,E({},_.default.blotName,t[_.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],s=o[1],l=U(this.container,a,s);return F(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new u.default).retain(l.length()-1).delete(1))),L.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,h.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new u.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),h.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new u.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(h.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,h.default.sources.USER),t.quill.setSelection(r.length()-n.length,h.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[I]=e[I]||[],e[I].push(s)}));break}})),[t,n]}}]),t}(y.default);function N(e,t,n){return"object"===("undefined"===typeof t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return N(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,s.default)({},E({},t,n),r.attributes))}),new u.default)}function B(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function F(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var i=e.ops[r];if("string"!==typeof i.insert)break;n=i.insert+n}return n.slice(-1*t.length)===t}function z(e){if(0===e.childNodes.length)return!1;var t=B(e);return["block","list-item"].indexOf(t.display)>-1}function U(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new u.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,i){var o=U(i,t,n);return i.nodeType===e.ELEMENT_NODE&&(o=t.reduce((function(e,t){return t(i,e)}),o),o=(i[I]||[]).reduce((function(e,t){return t(i,e)}),o)),r.concat(o)}),new u.default):new u.default}function H(e,t,n){return N(n,e,!0)}function V(e,t){var n=d.default.Attributor.Attribute.keys(e),r=d.default.Attributor.Class.keys(e),i=d.default.Attributor.Style.keys(e),o={};return n.concat(r).concat(i).forEach((function(t){var n=d.default.query(t,d.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(e),o[n.attrName])||(n=j[t],null==n||n.attrName!==t&&n.keyName!==t||(o[n.attrName]=n.value(e)||void 0),n=P[t],null==n||n.attrName!==t&&n.keyName!==t||(n=P[t],o[n.attrName]=n.value(e)||void 0))})),Object.keys(o).length>0&&(t=N(t,o)),t}function G(e,t){var n=d.default.query(e);if(null==n)return t;if(n.prototype instanceof d.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new u.default).insert(r,n.formats(e)))}else"function"===typeof n.formats&&(t=N(t,n.blotName,n.formats(e)));return t}function q(e,t){return F(t,"\n")||t.insert("\n"),t}function W(){return new u.default}function Y(e,t){var n=d.default.query(e);if(null==n||"list-item"!==n.blotName||!F(t,"\n"))return t;var r=-1,i=e.parentNode;while(!i.classList.contains("ql-clipboard"))"list"===(d.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?t:t.compose((new u.default).retain(t.length()-1).retain(1,{indent:r}))}function K(e,t){return F(t,"\n")||(z(e)||t.length()>0&&e.nextSibling&&z(e.nextSibling))&&t.insert("\n"),t}function X(e,t){if(z(e)&&null!=e.nextElementSibling&&!F(t,"\n\n")){var n=e.offsetHeight+parseFloat(B(e).marginTop)+parseFloat(B(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function Z(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===B(e).fontStyle&&(n.italic=!0),r.fontWeight&&(B(e).fontWeight.startsWith("bold")||parseInt(B(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=N(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new u.default).insert("\t").concat(t)),t}function $(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!B(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return t=t.replace(/[^\u00a0]/g,""),t.length<1&&e?" ":t};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&z(e.parentNode)||null!=e.previousSibling&&z(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&z(e.parentNode)||null!=e.nextSibling&&z(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}R.DEFAULTS={matchers:[],matchVisual:!0},t.default=R,t.matchAttributor=V,t.matchBlot=G,t.matchNewline=K,t.matchSpacing=X,t.matchText=$},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(6),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(a.default);d.blotName="bold",d.tagName=["STRONG","B"],t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(2),a=g(o),s=n(0),l=g(s),u=n(5),c=g(u),d=n(10),f=g(d),h=n(9),p=g(h);function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function b(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var x=(0,f.default)("quill:toolbar"),_=function(e){function t(e,n){y(this,t);var i,o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(o.options.container)){var a=document.createElement("div");S(a,o.options.container),e.container.parentNode.insertBefore(a,e.container),o.container=a}else"string"===typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(e){o.addHandler(e,o.options.handlers[e])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(e){o.attach(e)})),o.quill.on(c.default.events.EDITOR_CHANGE,(function(e,t){e===c.default.events.SELECTION_CHANGE&&o.update(t)})),o.quill.on(c.default.events.SCROLL_OPTIMIZE,(function(){var e=o.quill.selection.getRange(),t=r(e,1),n=t[0];o.update(n)})),o):(i=x.error("Container required for toolbar",o.options),m(o,i))}return b(t,e),i(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void x.warn("ignoring attaching to disabled format",n,e);if(null==l.default.query(n))return void x.warn("ignoring attaching to nonexistent format",n,e)}var i="SELECT"===e.tagName?"change":"click";e.addEventListener(i,(function(i){var o=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var s=e.options[e.selectedIndex];o=!s.hasAttribute("selected")&&(s.value||!1)}else o=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),i.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=r(u,1),f=d[0];if(null!=t.handlers[n])t.handlers[n].call(t,o);else if(l.default.query(n).prototype instanceof l.default.Embed){if(o=prompt("Enter "+n),!o)return;t.quill.updateContents((new a.default).retain(f.index).delete(f.length).insert(v({},n,o)),c.default.sources.USER)}else t.quill.format(n,o,c.default.sources.USER);t.update(f)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var i=r(n,2),o=i[0],a=i[1];if("SELECT"===a.tagName){var s=void 0;if(null==e)s=null;else if(null==t[o])s=a.querySelector("option[selected]");else if(!Array.isArray(t[o])){var l=t[o];"string"===typeof l&&(l=l.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+l+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=t[o]===a.getAttribute("value")||null!=t[o]&&t[o].toString()===a.getAttribute("value")||null==t[o]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=t[o])}))}}]),t}(p.default);function w(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function S(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"===typeof e)w(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?k(n,t,r):w(n,t,r)}})),e.appendChild(n)}))}function k(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}_.DEFAULTS={},_.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=l.default.query(t,l.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,c.default.sources.USER)},direction:function(e){var t=this.quill.getFormat()["align"];"rtl"===e&&null==t?this.quill.format("align","right",c.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",e,c.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var i="+1"===e?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,c.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,c.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n["list"]||"unchecked"===n["list"]?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",e,c.default.sources.USER)}}},t.default=_,t.addControls=S},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(28),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(e,n){l(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return c(t,e),r(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(a.default);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(28),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(e,n){l(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return c(t,e),r(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(a.default);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,n){var r=this;i(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=t+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=t+o+"px"),i.bottom>r.bottom){var a=i.bottom-i.top,s=e.bottom-e.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(3),s=y(a),l=n(8),u=y(l),c=n(43),d=y(c),f=n(27),h=y(f),p=n(15),g=n(41),v=y(g);function y(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function x(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],w=function(e){function t(e,n){m(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=_);var r=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return x(t,e),o(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),v.default),this.tooltip=new S(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers["link"].call(e,!n.format.link)}))}}]),t}(d.default);w.DEFAULTS=(0,s.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);var r=this.quill.theme.tooltip;r.edit("link",n)}else this.quill.format("link",!1)}}}}});var S=function(e){function t(e,n){m(this,t);var r=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return x(t,e),o(t,[{key:"listen",value:function(){var e=this;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,u.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(u.default.events.SELECTION_CHANGE,(function(t,n,i){if(null!=t){if(0===t.length&&i===u.default.sources.USER){var o=e.quill.scroll.descendant(h.default,t.index),a=r(o,2),s=a[0],l=a[1];if(null!=s){e.linkRange=new p.Range(t.index-l,s.length());var c=h.default.formats(s.domNode);return e.preview.textContent=c,e.preview.setAttribute("href",c),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(c.BaseTooltip);S.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29),i=ne(r),o=n(36),a=n(38),s=n(64),l=n(65),u=ne(l),c=n(66),d=ne(c),f=n(67),h=ne(f),p=n(37),g=n(26),v=n(39),y=n(40),m=n(56),b=ne(m),x=n(68),_=ne(x),w=n(27),S=ne(w),k=n(69),O=ne(k),T=n(70),E=ne(T),C=n(71),A=ne(C),M=n(72),L=ne(M),I=n(73),D=ne(I),j=n(13),P=ne(j),R=n(74),N=ne(R),B=n(75),F=ne(B),z=n(57),U=ne(z),H=n(41),V=ne(H),G=n(28),q=ne(G),W=n(59),Y=ne(W),K=n(60),X=ne(K),Z=n(61),$=ne(Z),J=n(108),Q=ne(J),ee=n(62),te=ne(ee);function ne(e){return e&&e.__esModule?e:{default:e}}i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":v.FontClass,"attributors/class/size":y.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":v.FontStyle,"attributors/style/size":y.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":v.FontClass,"formats/size":y.SizeClass,"formats/blockquote":u.default,"formats/code-block":P.default,"formats/header":d.default,"formats/list":h.default,"formats/bold":b.default,"formats/code":j.Code,"formats/italic":_.default,"formats/link":S.default,"formats/script":O.default,"formats/strike":E.default,"formats/underline":A.default,"formats/image":L.default,"formats/video":D.default,"formats/list/item":f.ListItem,"modules/formula":N.default,"modules/syntax":F.default,"modules/toolbar":U.default,"themes/bubble":Q.default,"themes/snow":te.default,"ui/icons":V.default,"ui/picker":q.default,"ui/icon-picker":X.default,"ui/color-picker":Y.default,"ui/tooltip":$.default},!0),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(a.default.Attributor.Class),f=new d("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="blockquote",u.tagName="blockquote",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),r(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(o.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=d(o),s=n(4),l=d(s),u=n(25),c=d(u);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function g(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return h(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return g(t,e),r(t,[{key:"format",value:function(e,n){e!==y.blotName||n?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:i(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(l.default);v.blotName="list-item",v.tagName="LI";var y=function(e){function t(e){h(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),i=a.default.find(t.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return g(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return f({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof v)i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(c.default);y.blotName="list",y.scope=a.default.Scope.BLOCK_BLOT,y.tagName=["OL","UL"],y.defaultChild="list-item",y.allowedChildren=[v],t.ListItem=v,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="italic",u.tagName=["EM","I"],t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(6),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(a.default);d.blotName="script",d.tagName=["SUB","SUP"],t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="strike",u.tagName="S",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="underline",u.tagName="U",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=l(o),s=n(27);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=["alt","height","width"],h=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"format",value:function(e,n){f.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return f.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.default.Embed);h.blotName="image",h.tagName="IMG",t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(4),a=n(27),s=l(a);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=["height","width"],h=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"format",value:function(e,n){f.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return f.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(o.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(35),a=d(o),s=n(5),l=d(s),u=n(9),c=d(u);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(){return f(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),r(t,null,[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(a.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var v=function(e){function t(){f(this,t);var e=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return p(t,e),r(t,null,[{key:"register",value:function(){l.default.register(g,!0)}}]),t}(c.default);t.FormulaBlot=g,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=h(o),s=n(5),l=h(s),u=n(9),c=h(u),d=n(13),f=h(d);function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function v(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=function(e){function t(){return p(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return v(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(f.default);y.className="ql-syntax";var m=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),b=function(e){function t(e,n){p(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return v(t,e),r(t,null,[{key:"register",value:function(){l.default.register(m,!0),l.default.register(y,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(y).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=t&&this.quill.setSelection(t,l.default.sources.SILENT)}}}]),t}(c.default);b.DEFAULTS={highlight:function(){return null==window.hljs?null:function(e){var t=window.hljs.highlightAuto(e);return t.value}}(),interval:1e3},t.CodeBlock=y,t.CodeToken=m,t.default=b},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(3),a=p(o),s=n(8),l=p(s),u=n(43),c=p(u),d=n(15),f=n(41),h=p(f);function p(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function y(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(e){function t(e,n){g(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return y(t,e),i(t,[{key:"extendToolbar",value:function(e){this.tooltip=new x(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),h.default)}}]),t}(c.default);b.DEFAULTS=(0,a.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var x=function(e){function t(e,n){g(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t,n,i){if(e===l.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&i===l.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(t.index,t.length);if(1===o.length)r.position(r.quill.getBounds(t));else{var a=o[o.length-1],s=r.quill.getIndex(a),u=Math.min(a.length()-1,t.index+t.length-s),c=r.quill.getBounds(new d.Range(s,u));r.position(c)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return y(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),t}(u.BaseTooltip);x.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=x,t.default=b},function(e,t,n){e.exports=n(63)}])["default"]}))}).call(this,n("fd40").Buffer)},"0288":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},"0a60":function(e,t){t.f=Object.getOwnPropertySymbols},"0fc1":function(e,t,n){var r=n("1e2c"),i=n("d910"),o=n("38b9");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},1025:function(e,t,n){var r=n("3a08"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},"121a":function(e,t,n){},"18f6":function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1944:function(e,t,n){var r=n("d890"),i=n("0fc1"),o=n("faa8"),a=n("e4db"),s=n("1025"),l=n("b702"),u=l.get,c=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),c(n).source=d.join("string"==typeof t?t:"")),e!==r?(l?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},"1b99":function(e,t,n){var r=n("d890");e.exports=r},"1bbd":function(e,t,n){"use strict";var r=n("9f67"),i=n("d910"),o=n("38b9");e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},"1c8b":function(e,t,n){var r=n("d890"),i=n("aa6b").f,o=n("0fc1"),a=n("1944"),s=n("e4db"),l=n("c69d"),u=n("e8d6");e.exports=function(e,t){var n,c,d,f,h,p,g=e.target,v=e.global,y=e.stat;if(c=v?r:y?r[g]||s(g,{}):(r[g]||{}).prototype,c)for(d in t){if(h=t[d],e.noTargetGet?(p=i(c,d),f=p&&p.value):f=c[d],n=u(v?d:g+(y?".":"#")+d,e.forced),!n&&void 0!==f){if(typeof h===typeof f)continue;l(h,f)}(e.sham||f&&f.sham)&&o(h,"sham",!0),a(c,d,h,e)}}},"1ca1":function(e,t,n){var r=n("a719"),i=n("74e7"),o=n("90fb"),a=o("species");e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"1e2c":function(e,t,n){var r=n("efe2");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"1ea7":function(e,t,n){var r=n("efe2"),i=n("90fb"),o=n("f594"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},2039:function(e,t,n){var r=n("1e2c"),i=n("efe2"),o=n("ae25");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},2118:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},2732:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"27cd":function(e,t,n){"use strict";t.byteLength=c,t.toByteArray=f,t.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function d(e,t,n){return 3*(t+n)/4-n}function f(e){var t,n,r=u(e),a=r[0],s=r[1],l=new o(d(e,a,s)),c=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(h(r));return i.join("")}function g(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,l=n-i;s<l;s+=a)o.push(p(e,s,s+a>l?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},3553:function(e,t,n){var r=n("2732");e.exports=function(e){return Object(r(e))}},"38b9":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"397e":function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript,i=n("79e4");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vab-quill",class:e.classes},[n("div",{ref:"editor",style:e.styles})])},s=[],l=(n("b4fb"),n("513c"),n("0126")),u=n.n(l),c=(n("121a"),n("7e41"),n("96be"),{name:"VabQuill",props:{value:{type:String,default:""},border:{type:Boolean,default:!1},height:{type:Number,default:null},minHeight:{type:Number,default:null},options:{type:Object,default:function(){return{theme:"snow",bounds:document.body,debug:"warn",modules:{toolbar:[["bold","italic","underline","strike"],[{header:[1,2,3,4,5,6,!1]}],[{size:["small",!1,"large","huge"]}],[{color:[]},{background:[]}],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{align:[]}],[{direction:"rtl"}],["clean"],["link","image"]]},placeholder:"内容...",readOnly:!1}}}},data:function(){return{Quill:null,currentValue:""}},computed:{classes:function(){return[{"vab-quill-no-border":!this.border}]},styles:function(){var e={};return this.minHeight&&(e.minHeight="".concat(this.minHeight,"px")),this.height&&(e.height="".concat(this.height,"px")),e}},watch:{value:{handler:function(e){e!==this.currentValue&&(this.currentValue=e,this.Quill&&this.Quill.pasteHTML(this.value))},immediate:!0}},mounted:function(){this.init()},beforeDestroy:function(){this.Quill=null},methods:{init:function(){var e=this,t=this.$refs.editor;this.Quill=new u.a(t,this.options),this.Quill.pasteHTML(this.currentValue),this.Quill.on("text-change",(function(t,n,r){var i=e.$refs.editor.children[0].innerHTML,o=e.Quill.getText(),a=e.Quill;e.currentValue=i,e.$emit("input",i),e.$emit("on-change",{html:i,text:o,quill:a})})),this.Quill.on("text-change",(function(t,n,r){e.$emit("on-text-change",t,n,r)})),this.Quill.on("selection-change",(function(t,n,r){e.$emit("on-selection-change",t,n,r)})),this.Quill.on("editor-change",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.$emit.apply(e,["on-editor-change",t].concat(r))}))}}}),d=c;function f(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}var h=f(d,a,s,!1,null,null,null),p=h.exports,g=p;"undefined"!==typeof window&&window.Vue&&window.Vue.component("zx-quill",p),t["default"]=g},"3a08":function(e,t,n){var r=n("d890"),i=n("e4db"),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},"3da3":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45af":function(e,t,n){var r=n("da10"),i=n("d88d"),o=n("e1d6"),a=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4fda":function(e,t,n){var r=n("6d7a");e.exports=r("navigator","userAgent")||""},"50fb":function(e,t,n){var r=n("857c"),i=n("d1fd");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},"513c":function(e,t,n){"use strict";var r=n("1e2c"),i=n("d890"),o=n("e8d6"),a=n("1944"),s=n("faa8"),l=n("2118"),u=n("7063"),c=n("9f67"),d=n("efe2"),f=n("6d60"),h=n("b338").f,p=n("aa6b").f,g=n("d910").f,v=n("c10f").trim,y="Number",m=i[y],b=m.prototype,x=l(f(b))==y,_=function(e){var t,n,r,i,o,a,s,l,u=c(e,!1);if("string"==typeof u&&u.length>2)if(u=v(u),t=u.charCodeAt(0),43===t||45===t){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=u.slice(2),a=o.length,s=0;s<a;s++)if(l=o.charCodeAt(s),l<48||l>i)return NaN;return parseInt(o,r)}return+u};if(o(y,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,S=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof S&&(x?d((function(){b.valueOf.call(n)})):l(n)!=y)?u(new m(_(t)),n,S):_(t)},k=r?h(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;k.length>O;O++)s(m,w=k[O])&&!s(S,w)&&g(S,w,p(m,w));S.prototype=b,b.constructor=S,a(i,y,S)}},"571a":function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},"604f":function(e,t,n){var r=n("d890"),i=n("1025"),o=r.WeakMap;e.exports="function"===typeof o&&/native code/.test(i(o))},"692f":function(e,t,n){var r=n("efe2"),i=n("2118"),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},"6d28":function(e,t,n){var r=n("9b9d"),i=n("3a08");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"6d60":function(e,t,n){var r,i=n("857c"),o=n("dbe8"),a=n("18f6"),s=n("d5a8"),l=n("6fdf"),u=n("ae25"),c=n("7db2"),d=">",f="<",h="prototype",p="script",g=c("IE_PROTO"),v=function(){},y=function(e){return f+p+d+e+f+"/"+p+d},m=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(y("document.F=Object")),e.close(),e.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}x=r?m(r):b();var e=a.length;while(e--)delete x[h][a[e]];return x()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[h]=i(e),n=new v,v[h]=null,n[g]=e):n=x(),void 0===t?n:o(n,t)}},"6d7a":function(e,t,n){var r=n("1b99"),i=n("d890"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},"6fdf":function(e,t,n){var r=n("6d7a");e.exports=r("document","documentElement")},7063:function(e,t,n){var r=n("a719"),i=n("50fb");e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},"74cb":function(e,t,n){var r=n("c54b");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"74e7":function(e,t,n){var r=n("2118");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"79e4":function(e,t,n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(h.stack)||a.exec(h.stack),l=s&&s[1]||!1,u=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");l===c&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var f=0;f<d.length;f++){if("interactive"===d[f].readyState)return d[f];if(d[f].src===l)return d[f];if(l===c&&d[f].innerHTML&&d[f].innerHTML.trim()===i)return d[f]}return null}}return e}))},"7db2":function(e,t,n){var r=n("6d28"),i=n("7e8b"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},"7e41":function(e,t,n){},"7e8b":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},"857c":function(e,t,n){var r=n("a719");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"8d44":function(e,t,n){var r=n("6d7a"),i=n("b338"),o=n("0a60"),a=n("857c");e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},"90fb":function(e,t,n){var r=n("d890"),i=n("6d28"),o=n("faa8"),a=n("7e8b"),s=n("c54b"),l=n("74cb"),u=i("wks"),c=r.Symbol,d=l?c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(c,e)?u[e]=c[e]:u[e]=d("Symbol."+e)),u[e]}},"96be":function(e,t,n){},"9b9d":function(e,t){e.exports=!1},"9f67":function(e,t,n){var r=n("a719");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},a719:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},aa6b:function(e,t,n){var r=n("1e2c"),i=n("ef71"),o=n("38b9"),a=n("da10"),s=n("9f67"),l=n("faa8"),u=n("2039"),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=a(e),t=s(t,!0),u)try{return c(e,t)}catch(n){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},ae25:function(e,t,n){var r=n("d890"),i=n("a719"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},b338:function(e,t,n){var r=n("ead4"),i=n("18f6"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},b4fb:function(e,t,n){"use strict";var r=n("1c8b"),i=n("efe2"),o=n("74e7"),a=n("a719"),s=n("3553"),l=n("d88d"),u=n("1bbd"),c=n("1ca1"),d=n("1ea7"),f=n("90fb"),h=n("f594"),p=f("isConcatSpreadable"),g=9007199254740991,v="Maximum allowed index exceeded",y=h>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),m=d("concat"),b=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)},x=!y||!m;r({target:"Array",proto:!0,forced:x},{concat:function(e){var t,n,r,i,o,a=s(this),d=c(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],b(o)){if(i=l(o.length),f+i>g)throw TypeError(v);for(n=0;n<i;n++,f++)n in o&&u(d,f,o[n])}else{if(f>=g)throw TypeError(v);u(d,f++,o)}return d.length=f,d}})},b702:function(e,t,n){var r,i,o,a=n("604f"),s=n("d890"),l=n("a719"),u=n("0fc1"),c=n("faa8"),d=n("7db2"),f=n("d5a8"),h=s.WeakMap,p=function(e){return o(e)?i(e):r(e,{})},g=function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a){var v=new h,y=v.get,m=v.has,b=v.set;r=function(e,t){return b.call(v,e,t),t},i=function(e){return y.call(v,e)||{}},o=function(e){return m.call(v,e)}}else{var x=d("state");f[x]=!0,r=function(e,t){return u(e,x,t),t},i=function(e){return c(e,x)?e[x]:{}},o=function(e){return c(e,x)}}e.exports={set:r,get:i,has:o,enforce:p,getterFor:g}},c10f:function(e,t,n){var r=n("2732"),i=n("fc8c"),o="["+i+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),l=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},c54b:function(e,t,n){var r=n("efe2");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},c69d:function(e,t,n){var r=n("faa8"),i=n("8d44"),o=n("aa6b"),a=n("d910");e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,u=0;u<n.length;u++){var c=n[u];r(e,c)||s(e,c,l(t,c))}}},cbab:function(e,t,n){var r=n("ead4"),i=n("18f6");e.exports=Object.keys||function(e){return r(e,i)}},d1fd:function(e,t,n){var r=n("a719");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},d5a8:function(e,t){e.exports={}},d88d:function(e,t,n){var r=n("3da3"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},d890:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("0288"))},d910:function(e,t,n){var r=n("1e2c"),i=n("2039"),o=n("857c"),a=n("9f67"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},da10:function(e,t,n){var r=n("692f"),i=n("2732");e.exports=function(e){return r(i(e))}},dbe8:function(e,t,n){var r=n("1e2c"),i=n("d910"),o=n("857c"),a=n("cbab");e.exports=r?Object.defineProperties:function(e,t){o(e);var n,r=a(t),s=r.length,l=0;while(s>l)i.f(e,n=r[l++],t[n]);return e}},e1d6:function(e,t,n){var r=n("3da3"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},e4db:function(e,t,n){var r=n("d890"),i=n("0fc1");e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},e8d6:function(e,t,n){var r=n("efe2"),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},ead4:function(e,t,n){var r=n("faa8"),i=n("da10"),o=n("45af").indexOf,a=n("d5a8");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},ef71:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},efe2:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},f594:function(e,t,n){var r,i,o=n("d890"),a=n("4fda"),s=o.process,l=s&&s.versions,u=l&&l.v8;u?(r=u.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},faa8:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},fb22:function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+d>=1?f/l:f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*g}},fc8c:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},fd40:function(e,t,n){"use strict";(function(e){
  23. /*!
  24. * The buffer module from node.js, for the browser.
  25. *
  26. * @author Feross Aboukhadijeh <http://feross.org>
  27. * @license MIT
  28. */
  29. var r=n("27cd"),i=n("fb22"),o=n("571a");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=u.prototype):(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?v(e,t,n,r):"string"===typeof t?p(e,t,n):y(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t,n,r){return d(t),t<=0?l(e,t):void 0!==n?"string"===typeof r?l(e,t).fill(n,r):l(e,t).fill(n):l(e,t)}function h(e,t){if(d(t),e=l(e,t<0?0:0|m(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|x(t,n);e=l(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function g(e,t){var n=t.length<0?0:0|m(t.length);e=l(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function v(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=u.prototype):e=g(e,t),e}function y(e,t){if(u.isBuffer(t)){var n=0|m(t.length);return e=l(e,n),0===e.length||t.copy(e,0,0,n),e}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):g(e,t);if("Buffer"===t.type&&o(t.data))return g(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),u.alloc(+e)}function x(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(r)return Z(e).length;t=(""+t).toLowerCase(),r=!0}}function _(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return L(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function w(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function S(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:k(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return-1}function O(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function T(e,t,n,r){return ee(Z(t,e.length-n),e,n,r)}function E(e,t,n,r){return ee($(t),e,n,r)}function C(e,t,n,r){return E(e,t,n,r)}function A(e,t,n,r){return ee(Q(t),e,n,r)}function M(e,t,n,r){return ee(J(t,e.length-n),e,n,r)}function L(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var o,a,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return j(r)}t.Buffer=u,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return f(null,e,t,n)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=x,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)w(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)w(this,t,t+3),w(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)w(this,t,t+7),w(this,t+1,t+6),w(this,t+2,t+5),w(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?I(this,0,e):_.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),d=0;d<s;++d)if(l[d]!==c[d]){o=l[d],a=c[d];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return O(this,e,t,n);case"utf8":case"utf-8":return T(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function j(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=D));return n}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function R(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=X(e[o]);return i}function B(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function F(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function z(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function U(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function H(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function V(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function G(e,t,n,r,o){return o||V(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function q(e,t,n,r,o){return o||V(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;z(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a<n&&(o*=256))this[t+a]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;z(this,e,t,n,i,0)}var o=n-1,a=1;this[t+o]=255&e;while(--o>=0&&(a*=256))this[t+o]=e/a&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):H(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);z(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o<n&&(a*=256))e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);z(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):H(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):H(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return G(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return G(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=u.isBuffer(e)?e:Z(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function Y(e){if(e=K(e).replace(W,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function K(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function X(e){return e<16?"0"+e.toString(16):e.toString(16)}function Z(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function $(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function J(e,t){for(var n,r,i,o=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function Q(e){return r.toByteArray(Y(e))}function ee(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("0288"))}})}))},"4f85":function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n("9ab4"),i=n("6d8b"),o=n("22d1"),a=n("e0d3"),s=n("6cb7"),l=n("4041"),u=n("38a2"),c=n("f934"),d=n("9fbc"),f=n("625e"),h=n("f72b"),p=n("f6d8"),g=a["o"]();function v(e,t){return e.getName(t)||e.getId(t)}var y="__universalTransitionEnabled",m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return Object(r["a"])(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Object(d["a"])({count:_,reset:w}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var r=g(this).sourceManager=new h["a"](this);r.prepareSource();var i=this.getInitialData(e,n);k(i,this),this.dataTask.context.data=i,g(this).dataBeforeProcessed=i,b(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(c["d"])(this),r=n?Object(c["f"])(e):{},o=this.subType;s["a"].hasClass(o)&&(o+="Series"),i["I"](e,t.getTheme().get(this.subType)),i["I"](e,this.getDefaultOption()),a["f"](e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Object(c["h"])(e,r,n)},t.prototype.mergeOption=function(e,t){e=i["I"](this.option,e,!0),this.fillDataTextStyle(e.data);var n=Object(c["d"])(this);n&&Object(c["h"])(this.option,e,n);var r=g(this).sourceManager;r.dirty(),r.prepareSource();var o=this.getInitialData(e,t);k(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,g(this).dataBeforeProcessed=o,b(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!i["E"](e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&a["f"](e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){var t=this.getRawData();t.appendData(e.data)},t.prototype.getData=function(e){var t=T(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return g(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=T(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}g(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return i["f"](e)},t.prototype.getSourceManager=function(){return g(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return g(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return Object(p["a"])({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(o["a"].node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=l["a"].prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=e[o],s=v(i,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=i["F"](e),n=[],r=0;r<t.length;r++){var o=e[t[r]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[v(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[y])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,o=this.option,a=o.selectedMode,s=t.length;if(a&&s)if("series"===a)o.selectedMap="all";else if("multiple"===a){i["A"](o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,u=0;u<s;u++){var c=t[u],d=v(e,c);l[d]=!0,this._selectedDataIndicesMap[d]=e.getRawIndex(c)}}else if("single"===a||!0===a){var f=t[s-1];d=v(e,f);o.selectedMap=(n={},n[d]=!0,n),this._selectedDataIndicesMap=(r={},r[d]=e.getRawIndex(f),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return s["a"].registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(s["a"]);function b(e){var t=e.name;a["n"](e)||(e.name=x(e)||t)}function x(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return i["k"](n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}function _(e){return e.model.getRawData().count()}function w(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),S}function S(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function k(e,t){i["k"](i["e"](e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,i["h"](O,t))}))}function O(e,t){var n=T(e);return n&&n.setOutputEnd((t||this).count()),t}function T(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}i["K"](m,u["a"]),i["K"](m,l["a"]),Object(f["e"])(m,s["a"]),t["b"]=m},"4fac":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("401b");function i(e,t,n,i){var o,a,s,l,u=[],c=[],d=[],f=[];if(i){s=[1/0,1/0],l=[-1/0,-1/0];for(var h=0,p=e.length;h<p;h++)Object(r["l"])(s,s,e[h]),Object(r["k"])(l,l,e[h]);Object(r["l"])(s,s,i[0]),Object(r["k"])(l,l,i[1])}for(h=0,p=e.length;h<p;h++){var g=e[h];if(n)o=e[h?h-1:p-1],a=e[(h+1)%p];else{if(0===h||h===p-1){u.push(Object(r["c"])(e[h]));continue}o=e[h-1],a=e[h+1]}Object(r["q"])(c,a,o),Object(r["n"])(c,c,t);var v=Object(r["h"])(g,o),y=Object(r["h"])(g,a),m=v+y;0!==m&&(v/=m,y/=m),Object(r["n"])(d,c,-v),Object(r["n"])(f,c,y);var b=Object(r["a"])([],g,d),x=Object(r["a"])([],g,f);i&&(Object(r["k"])(b,b,s),Object(r["l"])(b,b,l),Object(r["k"])(x,x,s),Object(r["l"])(x,x,l)),u.push(b),u.push(x)}return n&&u.push(u.shift()),u}function o(e,t,n){var r=t.smooth,o=t.points;if(o&&o.length>=2){if(r){var a=i(o,r,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var s=o.length,l=0;l<(n?s:s-1);l++){var u=a[2*l],c=a[2*l+1],d=o[(l+1)%s];e.bezierCurveTo(u[0],u[1],c[0],c[1],d[0],d[1])}}else{e.moveTo(o[0][0],o[0][1]);l=1;for(var f=o.length;l<f;l++)e.lineTo(o[l][0],o[l][1])}n&&e.closePath()}}},5210:function(e,t,n){"use strict";n.d(t,"c",(function(){return x})),n.d(t,"b",(function(){return F})),n.d(t,"a",(function(){return z}));var r=n("19eb"),i=n("20c8"),o=n("5e76"),a=n("3437"),s=n("cbe5"),l=n("0da8"),u=n("dd4f"),c=n("6d8b"),d=n("8d1d"),f=n("4bc4"),h=n("726e"),p=new i["a"](!0);function g(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function v(e){return"string"===typeof e&&"none"!==e}function y(e){var t=e.fill;return null!=t&&"none"!==t}function m(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function b(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function x(e,t,n){var r=Object(o["a"])(t.image,t.__image,n);if(Object(o["c"])(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*c["a"]),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function _(e,t,n,r){var i,o=g(n),s=y(n),l=n.strokePercent,u=l<1,c=!t.path;t.silent&&!u||!c||t.createPathProxy();var h=t.path||p,v=t.__dirty;if(!r){var _=n.fill,w=n.stroke,S=s&&!!_.colorStops,k=o&&!!w.colorStops,O=s&&!!_.image,T=o&&!!w.image,E=void 0,C=void 0,A=void 0,M=void 0,L=void 0;(S||k)&&(L=t.getBoundingRect()),S&&(E=v?Object(a["a"])(e,_,L):t.__canvasFillGradient,t.__canvasFillGradient=E),k&&(C=v?Object(a["a"])(e,w,L):t.__canvasStrokeGradient,t.__canvasStrokeGradient=C),O&&(A=v||!t.__canvasFillPattern?x(e,_,t):t.__canvasFillPattern,t.__canvasFillPattern=A),T&&(M=v||!t.__canvasStrokePattern?x(e,w,t):t.__canvasStrokePattern,t.__canvasStrokePattern=A),S?e.fillStyle=E:O&&(A?e.fillStyle=A:s=!1),k?e.strokeStyle=C:T&&(M?e.strokeStyle=M:o=!1)}var I,D,j=t.getGlobalScale();h.setScale(j[0],j[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(i=Object(d["a"])(t),I=i[0],D=i[1]);var P=!0;(c||v&f["b"])&&(h.setDPR(e.dpr),u?h.setContext(null):(h.setContext(e),P=!1),h.reset(),t.buildPath(h,t.shape,r),h.toStatic(),t.pathUpdated()),P&&h.rebuildPath(e,u?l:1),I&&(e.setLineDash(I),e.lineDashOffset=D),r||(n.strokeFirst?(o&&b(e,n),s&&m(e,n)):(s&&m(e,n),o&&b(e,n))),I&&e.setLineDash([])}function w(e,t,n){var r=t.__image=Object(o["a"])(n.image,t.__image,t,t.onload);if(r&&Object(o["c"])(r)){var i=n.x||0,a=n.y||0,s=t.getWidth(),l=t.getHeight(),u=r.width/r.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=r.width,l=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,d=n.sy||0;e.drawImage(r,c,d,n.sWidth,n.sHeight,i,a,s,l)}else if(n.sx&&n.sy){c=n.sx,d=n.sy;var f=s-c,h=l-d;e.drawImage(r,c,d,f,h,i,a,s,l)}else e.drawImage(r,i,a,s,l)}}function S(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||h["a"],e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=Object(d["a"])(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(g(n)&&e.strokeText(i,n.x,n.y),y(n)&&e.fillText(i,n.x,n.y)):(y(n)&&e.fillText(i,n.x,n.y),g(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var k=["shadowBlur","shadowOffsetX","shadowOffsetY"],O=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function T(e,t,n,i,o){var a=!1;if(!i&&(n=n||{},t===n))return!1;if(i||t.opacity!==n.opacity){N(e,o),a=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?r["b"].opacity:s}(i||t.blend!==n.blend)&&(a||(N(e,o),a=!0),e.globalCompositeOperation=t.blend||r["b"].blend);for(var l=0;l<k.length;l++){var u=k[l];(i||t[u]!==n[u])&&(a||(N(e,o),a=!0),e[u]=e.dpr*(t[u]||0))}return(i||t.shadowColor!==n.shadowColor)&&(a||(N(e,o),a=!0),e.shadowColor=t.shadowColor||r["b"].shadowColor),a}function E(e,t,n,r,i){var o=B(t,i.inHover),a=r?null:n&&B(n,i.inHover)||{};if(o===a)return!1;var s=T(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(N(e,i),s=!0),v(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(N(e,i),s=!0),v(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(N(e,i),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(N(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<O.length;c++){var d=O[c],f=d[0];(r||o[f]!==a[f])&&(s||(N(e,i),s=!0),e[f]=o[f]||d[1])}return s}function C(e,t,n,r,i){return T(e,B(t,i.inHover),n&&B(n,i.inHover),r,i)}function A(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function M(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),A(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}function L(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var I=1,D=2,j=3,P=4;function R(e){var t=y(e),n=g(e);return!(e.lineDash||!(+t^+n)||t&&"string"!==typeof e.fill||n&&"string"!==typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function N(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function B(e,t){return t&&e.__hoverStyle||e.style}function F(e,t){z(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function z(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~f["a"],void(t.__isRendered=!1);var o=t.__clipPaths,c=n.prevElClipPaths,d=!1,h=!1;if(c&&!Object(a["c"])(o,c)||(c&&c.length&&(N(e,n),e.restore(),h=d=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(N(e,n),e.save(),M(o,e,n),d=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var p=n.prevEl;p||(h=d=!0);var g=t instanceof s["b"]&&t.autoBatch&&R(t.style);d||L(i,p.transform)?(N(e,n),A(e,t)):g||N(e,n);var v=B(t,n.inHover);t instanceof s["b"]?(n.lastDrawType!==I&&(h=!0,n.lastDrawType=I),E(e,t,p,h,n),g&&(n.batchFill||n.batchStroke)||e.beginPath(),_(e,t,v,g),g&&(n.batchFill=v.fill||"",n.batchStroke=v.stroke||"")):t instanceof u["a"]?(n.lastDrawType!==j&&(h=!0,n.lastDrawType=j),E(e,t,p,h,n),S(e,t,v)):t instanceof l["a"]?(n.lastDrawType!==D&&(h=!0,n.lastDrawType=D),C(e,t,p,h,n),w(e,t,v)):t.getTemporalDisplayables&&(n.lastDrawType!==P&&(h=!0,n.lastDrawType=P),U(e,t,n)),g&&r&&N(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}function U(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=r.length;o<a;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),z(e,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=i.length;u<c;u++){l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),z(e,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}},"551f":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n("282b"),i=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o=Object(r["a"])(i),a=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return o(this,e,t)},e}()},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},"58c9":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r={};function i(e,t){r[e]=t}function o(e){return r[e]}},"5e76":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return u}));var r=n("d51b"),i=n("726e"),o=new r["a"](50);function a(e){if("string"===typeof e){var t=o.get(e);return t&&t.image}return e}function s(e,t,n,r,a){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var s=o.get(e),c={hostEl:n,cb:r,cbPayload:a};return s?(t=s.image,!u(t)&&s.pending.push(c)):(t=i["d"].loadImage(e,l,l),t.__zrImageSrc=e,o.put(e,t.__cachedImgObj={image:t,pending:[c]})),t}return e}return t}function l(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function u(e){return e&&e.width&&e.height}},"5e81":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("9ab4"),i=n("6cb7"),o=n("b12f"),a=n("07fd"),s=n("f72b"),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return Object(r["a"])(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new s["a"](this),Object(s["b"])(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Object(s["b"])(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:a["a"]},t}(i["a"]),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return Object(r["a"])(t,e),t.type="dataset",t}(o["a"]);function c(e){e.registerComponentModel(l),e.registerComponentView(u)}},"607d":function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"d",(function(){return v}));var r=n("22d1"),i=n("65ed"),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=[],s=r["a"].browser.firefox&&+r["a"].browser.version.split(".")[0]<39;function l(e,t,n,r){return n=n||{},r?u(e,t,n):s&&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):u(e,t,n),n}function u(e,t,n){if(r["a"].domSupported&&e.getBoundingClientRect){var o=t.clientX,s=t.clientY;if(Object(i["a"])(e)){var l=e.getBoundingClientRect();return n.zrX=o-l.left,void(n.zrY=s-l.top)}if(Object(i["b"])(a,e,o,s))return n.zrX=a[0],void(n.zrY=a[1])}n.zrX=n.zrY=0}function c(e){return e||window.event}function d(e,t,n){if(t=c(t),null!=t.zrX)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var a="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];a&&l(e,a,t,n)}else{l(e,t,t,n);var s=f(t);t.zrDelta=s?s/120:-(t.detail||0)/3}var u=t.button;return null==t.which&&void 0!==u&&o.test(t.type)&&(t.which=1&u?1:2&u?3:4&u?2:0),t}function f(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function h(e,t,n,r){e.addEventListener(t,n,r)}function p(e,t,n,r){e.removeEventListener(t,n,r)}var g=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function v(e){return 2===e.which||3===e.which}},"625e":function(e,t,n){"use strict";n.d(t,"f",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return m}));var r=n("9ab4"),i=n("6d8b"),o=".",a="___EC__COMPONENT__CONTAINER___",s="___EC__EXTENDED_CLASS___";function l(e){var t={main:"",sub:""};if(e){var n=e.split(o);t.main=n[0]||"",t.sub=n[1]||""}return t}function u(e){i["b"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function c(e){return!(!e||!e[s])}function d(e,t){e.$constructor=e,e.extend=function(e){var t,n=this;return f(n)?t=function(e){function t(){return e.apply(this,arguments)||this}return Object(r["a"])(t,e),t}(n):(t=function(){(e.$constructor||n).apply(this,arguments)},i["s"](t,this)),i["m"](t.prototype,e),t[s]=!0,t.extend=this.extend,t.superCall=v,t.superApply=y,t.superClass=n,t}}function f(e){return i["w"](e)&&/^class\s/.test(Function.prototype.toString.call(e))}function h(e,t){e.extend=t.extend}var p=Math.round(10*Math.random());function g(e){var t=["__\0is_clz",p++].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function v(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function y(e,t,n){return this.superClass.prototype[t].apply(e,n)}function m(e){var t={};function n(e){var n=t[e.main];return n&&n[a]||(n=t[e.main]={},n[a]=!0),n}e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){u(r),e.prototype.type=r;var i=l(r);if(i.sub){if(i.sub!==a){var o=n(i);o[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[a]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=l(e),r=[],o=t[n.main];return o&&o[a]?i["k"](o,(function(e,t){t!==a&&r.push(e)})):r.push(o),r},e.hasClass=function(e){var n=l(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return i["k"](t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=l(e),r=t[n.main];return r&&r[a]}}},"65ed":function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return h}));var r=n("22d1"),i=Math.log(2);function o(e,t,n,r,a,s){var l=r+"-"+a,u=e.length;if(s.hasOwnProperty(l))return s[l];if(1===t){var c=Math.round(Math.log((1<<u)-1&~a)/i);return e[n][c]}var d=r|1<<n,f=n+1;while(r&1<<f)f++;for(var h=0,p=0,g=0;p<u;p++){var v=1<<p;v&a||(h+=(g%2?-1:1)*e[n][p]*o(e,t-1,f,d,a|v,s),g++)}return s[l]=h,h}function a(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={},i=o(n,8,0,0,0,r);if(0!==i){for(var a=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==a[l]&&(a[l]=0),a[l]+=((s+l)%2?-1:1)*o(n,7,0===s?1:0,1<<s,1<<l,r)/i*t[s];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var s="___zrEVENTSAVED",l=[];function u(e,t,n,r,i){return c(l,t,r,i,!0)&&c(e,n,l[0],l[1])}function c(e,t,n,i,o){if(t.getBoundingClientRect&&r["a"].domSupported&&!h(t)){var a=t[s]||(t[s]={}),l=d(t,a),u=f(l,a,o);if(u)return u(e,n,i),!0}return!1}function d(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function f(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,s=[],l=[],u=!0,c=0;c<4;c++){var d=e[c].getBoundingClientRect(),f=2*c,h=d.left,p=d.top;s.push(h,p),u=u&&o&&h===o[f]&&p===o[f+1],l.push(e[c].offsetLeft,e[c].offsetTop)}return u&&i?i:(t.srcCoords=s,t[r]=n?a(l,s):a(s,l))}function h(e){return"CANVAS"===e.nodeName.toUpperCase()}},"68ab":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("4a3f");function i(e,t,n,i,o,a,s,l,u){if(0===s)return!1;var c=s;if(u>t+c&&u>i+c&&u>a+c||u<t-c&&u<i-c&&u<a-c||l>e+c&&l>n+c&&l>o+c||l<e-c&&l<n-c&&l<o-c)return!1;var d=Object(r["l"])(e,t,n,i,o,a,l,u,null);return d<=c/2}},"697e":function(e,t,n){"use strict";n.d(t,"a",(function(){return fe})),n.d(t,"b",(function(){return he}));var r=n("22d1"),i=n("6d8b"),o=n("9ab4"),a=n("401b"),s=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),l=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){var t=e.target;while(t&&!t.draggable)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new s(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,t.drift(i,o,e),this.handler.dispatchToElement(new s(t,e),"drag",e.event);var a=this.handler.findHover(n,r,t).target,l=this._dropTarget;this._dropTarget=a,t!==a&&(l&&a!==l&&this.handler.dispatchToElement(new s(l,e),"dragleave",e.event),a&&a!==l&&this.handler.dispatchToElement(new s(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new s(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),u=l,c=n("6fd3"),d=n("607d"),f=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},o=0,a=r.length;o<a;o++){var s=r[o],l=d["b"](n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in g)if(g.hasOwnProperty(t)){var n=g[t](this._track,e);if(n)return n}},e}();function h(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function p(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var g={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=h(r)/h(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=p(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},v="silent";function y(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:m}}function m(){d["g"](this.event)}var b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return Object(o["a"])(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(c["a"]),x=function(){function e(e,t){this.x=e,this.y=t}return e}(),_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],w=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o._hovered=new x(0,0),o.storage=t,o.painter=n,o.painterRoot=i,r=r||new b,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new u(o),o}return Object(o["a"])(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(i["k"](_,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=k(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new x(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new x(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var r=e.target;if(!r||!r.silent){var i="on"+t,o=y(t,e,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){for(var r=this.storage.getDisplayList(),i=new x(e,t),o=r.length-1;o>=0;o--){var a=void 0;if(r[o]!==n&&!r[o].ignore&&(a=S(r[o],e,t))&&(!i.topTarget&&(i.topTarget=r[o]),a!==v)){i.target=r[o];break}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new f);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var o=new x;o.target=r.target,this.dispatchToElement(o,i,r.event)}},t}(c["a"]);function S(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){var r=e,i=void 0,o=!1;while(r){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||v}return!1}function k(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}i["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){w.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,s=k(this,i,o);if("mouseup"===e&&s||(n=this.findHover(i,o),r=n.target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||a["f"](this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var O=w,T=n("04f6"),E=n("4bc4"),C=!1;function A(){C||(C=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function M(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(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=M}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Object(T["a"])(n,M)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];var i=r,o=e;while(i)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=E["a"]),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(A(),u.z=0),isNaN(u.z2)&&(A(),u.z2=0),isNaN(u.zlevel)&&(A(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var f=e.getTextContent();f&&this._updateAndAddDisplayable(f,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=i["r"](this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),I=L,D=n("98b7"),j=n("06ad");function P(){return(new Date).getTime()}var R=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return Object(o["a"])(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){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=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=P()-this._pausedTime,n=t-this._time,r=this._head;while(r){var i=r.next,o=r.step(t,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(Object(D["a"])(t),!e._paused&&e.update())}this._running=!0,Object(D["a"])(t)},t.prototype.start=function(){this._running||(this._time=P(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=P(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=P()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new j["b"](e,t.loop);return this.addAnimator(n),n},t}(c["a"]),N=R,B=300,F=r["a"].domSupported,z=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=i["H"](e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:r}}(),U={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},H=!1;function V(e){var t=e.pointerType;return"pen"===t||"touch"===t}function G(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 q(e){e&&(e.zrByTouch=!0)}function W(e,t){return Object(d["e"])(e.dom,new K(e,t),!0)}function Y(e,t){var n=t,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return r}var K=function(){function e(e,t){this.stopPropagation=i["L"],this.stopImmediatePropagation=i["L"],this.preventDefault=i["L"],this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),X={mousedown:function(e){e=Object(d["e"])(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Object(d["e"])(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Object(d["e"])(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Object(d["e"])(this.dom,e);var t=e.toElement||e.relatedTarget;Y(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){H=!0,e=Object(d["e"])(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){H||(e=Object(d["e"])(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Object(d["e"])(this.dom,e),q(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),X.mousemove.call(this,e),X.mousedown.call(this,e)},touchmove:function(e){e=Object(d["e"])(this.dom,e),q(e),this.handler.processGesture(e,"change"),X.mousemove.call(this,e)},touchend:function(e){e=Object(d["e"])(this.dom,e),q(e),this.handler.processGesture(e,"end"),X.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<B&&X.click.call(this,e)},pointerdown:function(e){X.mousedown.call(this,e)},pointermove:function(e){V(e)||X.mousemove.call(this,e)},pointerup:function(e){X.mouseup.call(this,e)},pointerout:function(e){V(e)||X.mouseout.call(this,e)}};i["k"](["click","dblclick","contextmenu"],(function(e){X[e]=function(t){t=Object(d["e"])(this.dom,t),this.trigger(e,t)}}));var Z={pointermove:function(e){V(e)||Z.mousemove.call(this,e)},pointerup:function(e){Z.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function $(e,t){var n=t.domHandlers;r["a"].pointerEventsSupported?i["k"](z.pointer,(function(r){Q(t,r,(function(t){n[r].call(e,t)}))})):(r["a"].touchEventsSupported&&i["k"](z.touch,(function(r){Q(t,r,(function(i){n[r].call(e,i),G(t)}))})),i["k"](z.mouse,(function(r){Q(t,r,(function(i){i=Object(d["c"])(i),t.touching||n[r].call(e,i)}))})))}function J(e,t){function n(n){function r(r){r=Object(d["c"])(r),Y(e,r.target)||(r=W(e,r),t.domHandlers[n].call(e,r))}Q(t,n,r,{capture:!0})}r["a"].pointerEventsSupported?i["k"](U.pointer,n):r["a"].touchEventsSupported||i["k"](U.mouse,n)}function Q(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Object(d["a"])(e.domTarget,t,n,r)}function ee(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Object(d["f"])(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var te=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),ne=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new te(t,X),F&&(r._globalHandlerScope=new te(document,Z)),$(r,r._localHandlerScope),r}return Object(o["a"])(t,e),t.prototype.dispose=function(){ee(this._localHandlerScope),F&&ee(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,F&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?J(this,t):ee(t)}},t}(c["a"]),re=ne,ie=n("41ef"),oe=n("2cf4c"),ae=n("2dc5"),se={},le={};function ue(e){delete le[e]}function ce(e){if(!e)return!1;if("string"===typeof e)return Object(ie["d"])(e,1)<oe["b"];if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Object(ie["d"])(t[i].color,1);return n/=r,n<oe["b"]}return!1}var de=function(){function e(e,t,n){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new I,s=n.renderer||"canvas";se[s]||(s=i["F"](se)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new se[s](t,a,n,e),u=n.ssr||l.ssrOnly;this.storage=a,this.painter=l;var c=r["a"].node||r["a"].worker||u?null:new re(l.getViewportRoot(),l.root);this.handler=new O(a,l,c,l.root),this.animation=new N({stage:{update:u?null:function(){return o._flush(!0)}}}),u||this.animation.start()}return e.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},e.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=ce(e)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(e){var t,n=P();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=P();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ae["a"]&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.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,ue(this.id)},e}();function fe(e,t){var n=new de(i["p"](),e,t);return le[n.id]=n,n}function he(e,t){se[e]=t}},"6cb7":function(e,t,n){"use strict";var r=n("9ab4"),i=n("6d8b"),o=n("4319"),a=n("8918"),s=n("625e"),l=n("e0d3"),u=n("f934"),c=Object(l["o"])(),d=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=a["c"]("ec_cpt_model"),i}return Object(r["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=u["d"](this),r=n?u["f"](e):{},o=t.getTheme();i["I"](e,o.get(this.mainType)),i["I"](e,this.getDefaultOption()),n&&u["h"](e,r,n)},t.prototype.mergeOption=function(e,t){i["I"](this.option,e,!0);var n=u["d"](this);n&&u["h"](this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Object(s["d"])(e))return e.defaultOption;var t=c(this);if(!t.defaultOption){var n=[],r=e;while(r){var o=r.prototype.defaultOption;o&&n.push(o),r=r.superClass}for(var a={},l=n.length-1;l>=0;l--)a=i["I"](a,n[l],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return Object(l["v"])(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(o["a"]);function f(e){var t=[];return i["k"](d.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=i["H"](t,(function(e){return Object(s["f"])(e).main})),"dataset"!==e&&i["r"](t,"dataset")<=0&&t.unshift("dataset"),t}Object(s["e"])(d,o["a"]),Object(s["c"])(d),a["a"](d),a["b"](d,f),t["a"]=d},"6d8b":function(e,t,n){"use strict";n.d(t,"p",(function(){return v})),n.d(t,"G",(function(){return y})),n.d(t,"d",(function(){return m})),n.d(t,"I",(function(){return b})),n.d(t,"J",(function(){return x})),n.d(t,"m",(function(){return _})),n.d(t,"i",(function(){return w})),n.d(t,"r",(function(){return S})),n.d(t,"s",(function(){return k})),n.d(t,"K",(function(){return O})),n.d(t,"u",(function(){return T})),n.d(t,"k",(function(){return E})),n.d(t,"H",(function(){return C})),n.d(t,"N",(function(){return A})),n.d(t,"n",(function(){return M})),n.d(t,"o",(function(){return L})),n.d(t,"F",(function(){return I})),n.d(t,"c",(function(){return j})),n.d(t,"h",(function(){return P})),n.d(t,"t",(function(){return R})),n.d(t,"w",(function(){return N})),n.d(t,"C",(function(){return B})),n.d(t,"D",(function(){return F})),n.d(t,"z",(function(){return z})),n.d(t,"A",(function(){return U})),n.d(t,"E",(function(){return V})),n.d(t,"v",(function(){return G})),n.d(t,"x",(function(){return q})),n.d(t,"y",(function(){return W})),n.d(t,"B",(function(){return Y})),n.d(t,"l",(function(){return K})),n.d(t,"O",(function(){return X})),n.d(t,"P",(function(){return Z})),n.d(t,"Q",(function(){return $})),n.d(t,"S",(function(){return J})),n.d(t,"M",(function(){return Q})),n.d(t,"b",(function(){return ee})),n.d(t,"T",(function(){return te})),n.d(t,"R",(function(){return re})),n.d(t,"f",(function(){return ae})),n.d(t,"e",(function(){return se})),n.d(t,"g",(function(){return le})),n.d(t,"j",(function(){return ue})),n.d(t,"q",(function(){return ce})),n.d(t,"L",(function(){return de})),n.d(t,"a",(function(){return fe}));var r=n("726e"),i=A(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),o=A(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,d=s.map,f=function(){}.constructor,h=f?f.prototype:null,p="__proto__",g=2311;function v(){return g++}function y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!==typeof console&&console.error.apply(console,e)}function m(e){if(null==e||"object"!==typeof e)return e;var t=e,n=a.call(e);if("[object Array]"===n){if(!ie(e)){t=[];for(var r=0,s=e.length;r<s;r++)t[r]=m(e[r])}}else if(o[n]){if(!ie(e)){var l=e.constructor;if(l.from)t=l.from(e);else{t=new l(e.length);for(r=0,s=e.length;r<s;r++)t[r]=e[r]}}}else if(!i[n]&&!ie(e)&&!G(e))for(var u in t={},e)e.hasOwnProperty(u)&&u!==p&&(t[u]=m(e[u]));return t}function b(e,t,n){if(!U(t)||!U(e))return n?m(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==p){var i=e[r],o=t[r];!U(o)||!U(i)||R(o)||R(i)||G(o)||G(i)||H(o)||H(i)||ie(o)||ie(i)?!n&&r in e||(e[r]=m(t[r])):b(i,o,n)}return e}function x(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=b(n,e[r],t);return n}function _(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==p&&(e[n]=t[n]);return e}function w(e,t,n){for(var r=I(t),i=0;i<r.length;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}r["d"].createCanvas;function S(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function k(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function O(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else w(e,t,n)}function T(e){return!!e&&("string"!==typeof e&&"number"===typeof e.length)}function E(e,t,n){if(e&&t)if(e.forEach&&e.forEach===l)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function C(e,t,n){if(!e)return[];if(!t)return J(e);if(e.map&&e.map===d)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function A(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function M(e,t,n){if(!e)return[];if(!t)return J(e);if(e.filter&&e.filter===u)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function L(e,t,n){if(e&&t)for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}function I(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function D(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(c.call(arguments)))}}var j=h&&N(h.bind)?h.call.bind(h.bind):D;function P(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(c.call(arguments)))}}function R(e){return Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)}function N(e){return"function"===typeof e}function B(e){return"string"===typeof e}function F(e){return"[object String]"===a.call(e)}function z(e){return"number"===typeof e}function U(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function H(e){return!!i[a.call(e)]}function V(e){return!!o[a.call(e)]}function G(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function q(e){return null!=e.colorStops}function W(e){return null!=e.image}function Y(e){return"[object RegExp]"===a.call(e)}function K(e){return e!==e}function X(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function Z(e,t){return null!=e?e:t}function $(e,t,n){return null!=e?e:null!=t?t:n}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return c.apply(e,t)}function Q(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 ee(e,t){if(!e)throw new Error(t)}function te(e){return null==e?null:"function"===typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ne="__ec_primitive__";function re(e){e[ne]=!0}function ie(e){return e[ne]}var oe=function(){function e(t){this.data={};var n=R(t);this.data={};var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&E(t,i)}return e.prototype.get=function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},e.prototype.set=function(e,t){return this.data[e]=t},e.prototype.each=function(e,t){for(var n in this.data)this.data.hasOwnProperty(n)&&e.call(t,this.data[n],n)},e.prototype.keys=function(){return I(this.data)},e.prototype.removeKey=function(e){delete this.data[e]},e}();function ae(e){return new oe(e)}function se(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}function le(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&_(n,t),n}function ue(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ce(e,t){return e.hasOwnProperty(t)}function de(){}var fe=180/Math.PI},"6fd3":function(e,t,n){"use strict";var r=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof t&&(r=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var a=0;a<i[e].length;a++)if(i[e][a].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,u=i[e][l];return u&&u.callAtLast?i[e].splice(l,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=t[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,t[0]);break;case 2:u.h.call(a,t[0],t[1]);break;default:u.h.apply(a,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}();t["a"]=r},7130:function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="f4a0")}({"05a7":function(e,t,n){},"0a60":function(e,t){t.f=Object.getOwnPropertySymbols},"0c3c":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"0fc1":function(e,t,n){var r=n("1e2c"),i=n("d910"),o=n("38b9");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},1025:function(e,t,n){var r=n("3a08"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},1784:function(e,t,n){"use strict";var r=n("1c8b"),i=n("58d8").left,o=n("d7e1"),a=n("ff9c"),s=o("reduce"),l=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!l},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"18f6":function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1944:function(e,t,n){var r=n("d890"),i=n("0fc1"),o=n("faa8"),a=n("e4db"),s=n("1025"),l=n("b702"),u=l.get,c=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),c(n).source=d.join("string"==typeof t?t:"")),e!==r?(l?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},"1b99":function(e,t,n){var r=n("d890");e.exports=r},"1c8b":function(e,t,n){var r=n("d890"),i=n("aa6b").f,o=n("0fc1"),a=n("1944"),s=n("e4db"),l=n("c69d"),u=n("e8d6");e.exports=function(e,t){var n,c,d,f,h,p,g=e.target,v=e.global,y=e.stat;if(c=v?r:y?r[g]||s(g,{}):(r[g]||{}).prototype,c)for(d in t){if(h=t[d],e.noTargetGet?(p=i(c,d),f=p&&p.value):f=c[d],n=u(v?d:g+(y?".":"#")+d,e.forced),!n&&void 0!==f){if(typeof h===typeof f)continue;l(h,f)}(e.sham||f&&f.sham)&&o(h,"sham",!0),a(c,d,h,e)}}},"1ca1":function(e,t,n){var r=n("a719"),i=n("74e7"),o=n("90fb"),a=o("species");e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"1e2c":function(e,t,n){var r=n("efe2");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"1ea7":function(e,t,n){var r=n("efe2"),i=n("90fb"),o=n("f594"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},2039:function(e,t,n){var r=n("1e2c"),i=n("efe2"),o=n("ae25");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},2118:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},2732:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"2eeb":function(e,t,n){"use strict";var r=n("1c8b"),i=n("5dfd").map,o=n("1ea7"),a=n("ff9c"),s=o("map"),l=a("map");r({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},3553:function(e,t,n){var r=n("2732");e.exports=function(e){return Object(r(e))}},"38b9":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"3a08":function(e,t,n){var r=n("d890"),i=n("e4db"),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},"3da3":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45af":function(e,t,n){var r=n("da10"),i=n("d88d"),o=n("e1d6"),a=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4fda":function(e,t,n){var r=n("6d7a");e.exports=r("navigator","userAgent")||""},"50fb":function(e,t,n){var r=n("857c"),i=n("d1fd");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},"513c":function(e,t,n){"use strict";var r=n("1e2c"),i=n("d890"),o=n("e8d6"),a=n("1944"),s=n("faa8"),l=n("2118"),u=n("7063"),c=n("9f67"),d=n("efe2"),f=n("6d60"),h=n("b338").f,p=n("aa6b").f,g=n("d910").f,v=n("c10f").trim,y="Number",m=i[y],b=m.prototype,x=l(f(b))==y,_=function(e){var t,n,r,i,o,a,s,l,u=c(e,!1);if("string"==typeof u&&u.length>2)if(u=v(u),t=u.charCodeAt(0),43===t||45===t){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=u.slice(2),a=o.length,s=0;s<a;s++)if(l=o.charCodeAt(s),l<48||l>i)return NaN;return parseInt(o,r)}return+u};if(o(y,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,S=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof S&&(x?d((function(){b.valueOf.call(n)})):l(n)!=y)?u(new m(_(t)),n,S):_(t)},k=r?h(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;k.length>O;O++)s(m,w=k[O])&&!s(S,w)&&g(S,w,p(m,w));S.prototype=b,b.constructor=S,a(i,y,S)}},"58d8":function(e,t,n){var r=n("0c3c"),i=n("3553"),o=n("692f"),a=n("d88d"),s=function(e){return function(t,n,s,l){r(n);var u=i(t),c=o(u),d=a(u.length),f=e?d-1:0,h=e?-1:1;if(s<2)while(1){if(f in c){l=c[f],f+=h;break}if(f+=h,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=h)f in c&&(l=n(l,c[f],f,u));return l}};e.exports={left:s(!1),right:s(!0)}},"5dfd":function(e,t,n){var r=n("e349"),i=n("692f"),o=n("3553"),a=n("d88d"),s=n("1ca1"),l=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,c=4==e,d=6==e,f=5==e||d;return function(h,p,g,v){for(var y,m,b=o(h),x=i(b),_=r(p,g,3),w=a(x.length),S=0,k=v||s,O=t?k(h,w):n?k(h,0):void 0;w>S;S++)if((f||S in x)&&(y=x[S],m=_(y,S,b),e))if(t)O[S]=m;else if(m)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:l.call(O,y)}else if(c)return!1;return d?-1:u||c?c:O}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},"604f":function(e,t,n){var r=n("d890"),i=n("1025"),o=r.WeakMap;e.exports="function"===typeof o&&/native code/.test(i(o))},"692f":function(e,t,n){var r=n("efe2"),i=n("2118"),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},"6d28":function(e,t,n){var r=n("9b9d"),i=n("3a08");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"6d60":function(e,t,n){var r,i=n("857c"),o=n("dbe8"),a=n("18f6"),s=n("d5a8"),l=n("6fdf"),u=n("ae25"),c=n("7db2"),d=">",f="<",h="prototype",p="script",g=c("IE_PROTO"),v=function(){},y=function(e){return f+p+d+e+f+"/"+p+d},m=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(y("document.F=Object")),e.close(),e.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}x=r?m(r):b();var e=a.length;while(e--)delete x[h][a[e]];return x()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[h]=i(e),n=new v,v[h]=null,n[g]=e):n=x(),void 0===t?n:o(n,t)}},"6d7a":function(e,t,n){var r=n("1b99"),i=n("d890"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},"6fdf":function(e,t,n){var r=n("6d7a");e.exports=r("document","documentElement")},7063:function(e,t,n){var r=n("a719"),i=n("50fb");e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},"74cb":function(e,t,n){var r=n("c54b");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"74e7":function(e,t,n){var r=n("2118");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"7db2":function(e,t,n){var r=n("6d28"),i=n("7e8b"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},"7e8b":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},"857c":function(e,t,n){var r=n("a719");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"8d44":function(e,t,n){var r=n("6d7a"),i=n("b338"),o=n("0a60"),a=n("857c");e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},"8d4e":function(e,t,n){"use strict";var r=n("05a7"),i=n.n(r);i.a},"90fb":function(e,t,n){var r=n("d890"),i=n("6d28"),o=n("faa8"),a=n("7e8b"),s=n("c54b"),l=n("74cb"),u=i("wks"),c=r.Symbol,d=l?c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(c,e)?u[e]=c[e]:u[e]=d("Symbol."+e)),u[e]}},"9b9d":function(e,t){e.exports=!1},"9edd":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},"9f67":function(e,t,n){var r=n("a719");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},a719:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},aa6b:function(e,t,n){var r=n("1e2c"),i=n("ef71"),o=n("38b9"),a=n("da10"),s=n("9f67"),l=n("faa8"),u=n("2039"),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=a(e),t=s(t,!0),u)try{return c(e,t)}catch(n){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},ae25:function(e,t,n){var r=n("d890"),i=n("a719"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},b338:function(e,t,n){var r=n("ead4"),i=n("18f6"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},b702:function(e,t,n){var r,i,o,a=n("604f"),s=n("d890"),l=n("a719"),u=n("0fc1"),c=n("faa8"),d=n("7db2"),f=n("d5a8"),h=s.WeakMap,p=function(e){return o(e)?i(e):r(e,{})},g=function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a){var v=new h,y=v.get,m=v.has,b=v.set;r=function(e,t){return b.call(v,e,t),t},i=function(e){return y.call(v,e)||{}},o=function(e){return m.call(v,e)}}else{var x=d("state");f[x]=!0,r=function(e,t){return u(e,x,t),t},i=function(e){return c(e,x)?e[x]:{}},o=function(e){return c(e,x)}}e.exports={set:r,get:i,has:o,enforce:p,getterFor:g}},c10f:function(e,t,n){var r=n("2732"),i=n("fc8c"),o="["+i+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),l=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},c54b:function(e,t,n){var r=n("efe2");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},c59c:function(e,t,n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(d){var e,t,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,o=r.exec(d.stack)||i.exec(d.stack),a=o&&o[1]||!1,s=o&&o[2]||!1,l=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");a===l&&(e=document.documentElement.outerHTML,t=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=e.replace(t,"$1").trim());for(var c=0;c<u.length;c++){if("interactive"===u[c].readyState)return u[c];if(u[c].src===a)return u[c];if(a===l&&u[c].innerHTML&&u[c].innerHTML.trim()===n)return u[c]}return null}}return e}))},c69d:function(e,t,n){var r=n("faa8"),i=n("8d44"),o=n("aa6b"),a=n("d910");e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,u=0;u<n.length;u++){var c=n[u];r(e,c)||s(e,c,l(t,c))}}},cbab:function(e,t,n){var r=n("ead4"),i=n("18f6");e.exports=Object.keys||function(e){return r(e,i)}},d1fd:function(e,t,n){var r=n("a719");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},d5a8:function(e,t){e.exports={}},d7e1:function(e,t,n){"use strict";var r=n("efe2");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},d88d:function(e,t,n){var r=n("3da3"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},d890:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("9edd"))},d910:function(e,t,n){var r=n("1e2c"),i=n("2039"),o=n("857c"),a=n("9f67"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},da10:function(e,t,n){var r=n("692f"),i=n("2732");e.exports=function(e){return r(i(e))}},dbe8:function(e,t,n){var r=n("1e2c"),i=n("d910"),o=n("857c"),a=n("cbab");e.exports=r?Object.defineProperties:function(e,t){o(e);var n,r=a(t),s=r.length,l=0;while(s>l)i.f(e,n=r[l++],t[n]);return e}},e1d6:function(e,t,n){var r=n("3da3"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},e349:function(e,t,n){var r=n("0c3c");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},e4db:function(e,t,n){var r=n("d890"),i=n("0fc1");e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},e8d6:function(e,t,n){var r=n("efe2"),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},ead4:function(e,t,n){var r=n("faa8"),i=n("da10"),o=n("45af").indexOf,a=n("d5a8");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},ef71:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},efe2:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},f4a0:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript,i=n("c59c");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"slide-verify",attrs:{id:"slideVerify",onselectstart:"return false;"}},[n("canvas",{ref:"canvas",staticClass:"canvas",attrs:{width:e.w,height:e.h}}),n("div",{staticClass:"slide-verify-refresh-icon",on:{click:e.refresh}}),n("canvas",{ref:"block",staticClass:"slide-verify-block",attrs:{width:e.w,height:e.h}}),n("div",{staticClass:"slide-verify-slider",class:{"container-active":e.containerActive,"container-success":e.containerSuccess,"container-fail":e.containerFail}},[n("div",{staticClass:"slide-verify-slider-mask",style:{width:e.sliderMaskWidth}},[n("div",{staticClass:"slide-verify-slider-mask-item",style:{left:e.sliderLeft},on:{mousedown:e.sliderDown,touchstart:e.touchStartEvent,touchmove:e.touchMoveEvent,touchend:e.touchEndEvent}},[n("i",{staticClass:"el-icon-arrow-right"})])]),n("span",{staticClass:"slide-verify-slider-text"},[e._v(e._s(e.sliderText))])])])},s=[],l=(n("2eeb"),n("1784"),n("513c"),Math.PI);function u(e,t){return e+t}function c(e){return e*e}var d={name:"Verify",props:{l:{type:Number,default:42},r:{type:Number,default:10},w:{type:Number,default:310},h:{type:Number,default:155},sliderText:{type:String,default:"Slide filled right"}},data:function(){return{containerActive:!1,containerSuccess:!1,containerFail:!1,canvasCtx:null,blockCtx:null,block:null,block_x:void 0,block_y:void 0,L:this.l+2*this.r+3,img:void 0,originX:void 0,originY:void 0,isMouseDown:!1,trail:[],sliderLeft:0,sliderMaskWidth:0}},mounted:function(){this.init()},methods:{init:function(){this.initDom(),this.initImg(),this.bindEvents()},initDom:function(){this.block=this.$refs.block,this.canvasCtx=this.$refs.canvas.getContext("2d"),this.blockCtx=this.block.getContext("2d")},initImg:function(){var e=this,t=this.createImg((function(){e.drawBlock(),e.canvasCtx.drawImage(t,0,0,e.w,e.h),e.blockCtx.drawImage(t,0,0,e.w,e.h);var n=e.block_x,r=e.block_y,i=e.r,o=e.L,a=r-2*i-1,s=e.blockCtx.getImageData(n,a,o,o);e.block.width=o,e.blockCtx.putImageData(s,0,a)}));this.img=t},drawBlock:function(){this.block_x=this.getRandomNumberByRange(this.L+10,this.w-(this.L+10)),this.block_y=this.getRandomNumberByRange(10+2*this.r,this.h-(this.L+10)),this.draw(this.canvasCtx,this.block_x,this.block_y,"fill"),this.draw(this.blockCtx,this.block_x,this.block_y,"clip")},draw:function(e,t,n,r){var i=this.l,o=this.r;e.beginPath(),e.moveTo(t,n),e.arc(t+i/2,n-o+2,o,.72*l,2.26*l),e.lineTo(t+i,n),e.arc(t+i+o-2,n+i/2,o,1.21*l,2.78*l),e.lineTo(t+i,n+i),e.lineTo(t,n+i),e.arc(t+o-2,n+i/2,o+.4,2.76*l,1.24*l,!0),e.lineTo(t,n),e.lineWidth=2,e.fillStyle="rgba(255, 255, 255, 0.8)",e.strokeStyle="rgba(255, 255, 255, 0.8)",e.stroke(),e[r](),e.globalCompositeOperation="xor"},createImg:function(e){var t=this,n=document.createElement("img");return n.crossOrigin="Anonymous",n.onload=e,n.onerror=function(){n.src=t.getRandomImg()},n.src=this.getRandomImg(),n},getRandomImg:function(){return"https://picsum.photos/350/170/?image="+this.getRandomNumberByRange(0,50)},getRandomNumberByRange:function(e,t){return Math.round(Math.random()*(t-e)+e)},refresh:function(){this.reset(),this.$emit("refresh")},sliderDown:function(e){this.originX=e.clientX,this.originY=e.clientY,this.isMouseDown=!0},touchStartEvent:function(e){this.originX=e.changedTouches[0].pageX,this.originY=e.changedTouches[0].pageY,this.isMouseDown=!0},bindEvents:function(){var e=this;document.addEventListener("mousemove",(function(t){if(!e.isMouseDown)return!1;var n=t.clientX-e.originX,r=t.clientY-e.originY;if(n<0||n+38>=e.w)return!1;e.sliderLeft=n+"px";var i=(e.w-40-20)/(e.w-40)*n;e.block.style.left=i+"px",e.containerActive=!0,e.sliderMaskWidth=n+"px",e.trail.push(r)})),document.addEventListener("mouseup",(function(t){if(!e.isMouseDown)return!1;if(e.isMouseDown=!1,t.clientX===e.originX)return!1;e.containerActive=!1;var n=e.verify(),r=n.spliced,i=n.TuringTest;r?i?(e.containerSuccess=!0,e.$emit("success")):(e.containerFail=!0,e.sliderText="try again",e.reset()):(e.containerFail=!0,e.$emit("fail"),setTimeout((function(){e.reset()}),1e3))}))},touchMoveEvent:function(e){if(!this.isMouseDown)return!1;var t=e.changedTouches[0].pageX-this.originX,n=e.changedTouches[0].pageY-this.originY;if(t<0||t+38>=this.w)return!1;this.sliderLeft=t+"px";var r=(this.w-40-20)/(this.w-40)*t;this.block.style.left=r+"px",this.containerActive=!0,this.sliderMaskWidth=t+"px",this.trail.push(n)},touchEndEvent:function(e){var t=this;if(!this.isMouseDown)return!1;if(this.isMouseDown=!1,e.changedTouches[0].pageX===this.originX)return!1;this.containerActive=!1;var n=this.verify(),r=n.spliced,i=n.TuringTest;r?i?(this.containerSuccess=!0,this.$emit("success")):(this.containerFail=!0,this.sliderText="try again",this.reset()):(this.containerFail=!0,this.$emit("fail"),setTimeout((function(){t.reset()}),1e3))},verify:function(){var e=this.trail,t=e.reduce(u)/e.length,n=e.map((function(e){return e-t})),r=Math.sqrt(n.map(c).reduce(u)/e.length),i=parseInt(this.block.style.left);return{spliced:Math.abs(i-this.block_x)<10,TuringTest:t!==r}},reset:function(){this.containerActive=!1,this.containerSuccess=!1,this.containerFail=!1,this.sliderLeft=0,this.block.style.left=0,this.sliderMaskWidth=0;var e=this.w,t=this.h;this.canvasCtx.clearRect(0,0,e,t),this.blockCtx.clearRect(0,0,e,t),this.block.width=e,this.img.src=this.getRandomImg()}}},f=d;function h(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n("8d4e");var p=h(f,a,s,!1,null,"53d79ea0",null),g=p.exports,v=g;"undefined"!==typeof window&&window.Vue&&window.Vue.component("zx-verify",g),t["default"]=v},f594:function(e,t,n){var r,i,o=n("d890"),a=n("4fda"),s=o.process,l=s&&s.versions,u=l&&l.v8;u?(r=u.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},faa8:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},fc8c:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},ff9c:function(e,t,n){var r=n("1e2c"),i=n("efe2"),o=n("faa8"),a=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],u=!!o(t,"ACCESSORS")&&t.ACCESSORS,c=o(t,0)?t[0]:l,d=o(t,1)?t[1]:void 0;return s[e]=!!n&&!i((function(){if(u&&!r)return!0;var e={length:-1};u?a(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,c,d)}))}}})}))},"726e":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return f}));var r=12,i="sans-serif",o=r+"px "+i,a=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function u(e){var t={};if("undefined"===typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-a)/s;t[r]=i}return t}var c=u(l),d={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,i){if(!e){var a=d.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==i&&(t=e.font=i||o),e.measureText(n);n=n||"",i=i||o;var s=/^([0-9]*?)px$/.exec(i),l=+(s&&s[1])||r,u=0;if(i.indexOf("mono")>=0)u=l*n.length;else for(var f=0;f<n.length;f++){var h=c[n[f]];u+=null==h?l:h*l}return{width:u}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}};function f(e){for(var t in d)e[t]&&(d[t]=e[t])}},"76a5":function(e,t,n){"use strict";n.d(t,"c",(function(){return x})),n.d(t,"b",(function(){return w}));var r=n("9ab4"),i=n("d409"),o=n("dd4f"),a=n("6d8b"),s=n("e86a"),l=n("0da8"),u=n("c7a2"),c=n("9850"),d=n("19eb"),f=n("726e"),h={fill:"#000"},p=2,g={style:Object(a["i"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},d["a"].style)},v=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=h,n.attr(t),n}return Object(r["a"])(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,S(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new c["a"](0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var o=t[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),r=r||e.clone(),r.union(e)):(r=r||a.clone(),r.union(a))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||h},t.prototype.setTextContent=function(e){0},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return Object(a["m"])(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=Object(a["F"])(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},Object(a["m"])(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return g},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||f["a"],n=e.padding,r=C(e),a=Object(i["a"])(r,e),l=A(e),u=!!e.backgroundColor,d=a.outerHeight,h=a.outerWidth,g=a.contentWidth,v=a.lines,y=a.lineHeight,m=this._defaultStyle,b=e.x||0,x=e.y||0,w=e.align||m.align||"left",S=e.verticalAlign||m.verticalAlign||"top",k=b,M=Object(s["b"])(x,a.contentHeight,S);if(l||n){var L=Object(s["a"])(b,h,w),I=Object(s["b"])(x,d,S);l&&this._renderBackground(e,e,L,I,h,d)}M+=y/2,n&&(k=E(b,w,n),"top"===S?M+=n[0]:"bottom"===S&&(M-=n[2]));for(var D=0,j=!1,P=(T("fill"in e?e.fill:(j=!0,m.fill))),R=(O("stroke"in e?e.stroke:u||m.autoStroke&&!j?null:(D=p,m.stroke))),N=e.textShadowBlur>0,B=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),F=a.calculatedLineHeight,z=0;z<v.length;z++){var U=this._getOrCreateChild(o["a"]),H=U.createStyle();U.useStyle(H),H.text=v[z],H.x=k,H.y=M,w&&(H.textAlign=w),H.textBaseline="middle",H.opacity=e.opacity,H.strokeFirst=!0,N&&(H.shadowBlur=e.textShadowBlur||0,H.shadowColor=e.textShadowColor||"transparent",H.shadowOffsetX=e.textShadowOffsetX||0,H.shadowOffsetY=e.textShadowOffsetY||0),H.stroke=R,H.fill=P,R&&(H.lineWidth=e.lineWidth||D,H.lineDash=e.lineDash,H.lineDashOffset=e.lineDashOffset||0),H.font=t,_(H,e),M+=y,B&&U.setBoundingRect(new c["a"](Object(s["a"])(H.x,e.width,H.textAlign),Object(s["b"])(H.y,F,H.textBaseline),g,F))}},t.prototype._updateRichTexts=function(){var e=this.style,t=C(e),n=Object(i["b"])(t,e),r=n.width,o=n.outerWidth,a=n.outerHeight,l=e.padding,u=e.x||0,c=e.y||0,d=this._defaultStyle,f=e.align||d.align,h=e.verticalAlign||d.verticalAlign,p=Object(s["a"])(u,o,f),g=Object(s["b"])(c,a,h),v=p,y=g;l&&(v+=l[3],y+=l[0]);var m=v+r;A(e)&&this._renderBackground(e,e,p,g,o,a);for(var b=!!e.backgroundColor,x=0;x<n.lines.length;x++){var _=n.lines[x],w=_.tokens,S=w.length,k=_.lineHeight,O=_.width,T=0,E=v,M=m,L=S-1,I=void 0;while(T<S&&(I=w[T],!I.align||"left"===I.align))this._placeToken(I,e,k,y,E,"left",b),O-=I.width,E+=I.width,T++;while(L>=0&&(I=w[L],"right"===I.align))this._placeToken(I,e,k,y,M,"right",b),O-=I.width,M-=I.width,L--;E+=(r-(E-v)-(m-M)-O)/2;while(T<=L)I=w[T],this._placeToken(I,e,k,y,E+I.width/2,"center",b),E+=I.width,T++;y+=k}},t.prototype._placeToken=function(e,t,n,r,i,l,u){var d=t.rich[e.styleName]||{};d.text=e.text;var h=e.verticalAlign,g=r+n/2;"top"===h?g=r+e.height/2:"bottom"===h&&(g=r+n-e.height/2);var v=!e.isLineHolder&&A(d);v&&this._renderBackground(d,t,"right"===l?i-e.width:"center"===l?i-e.width/2:i,g-e.height/2,e.width,e.height);var y=!!d.backgroundColor,m=e.textPadding;m&&(i=E(i,l,m),g-=e.height/2-m[0]-e.innerHeight/2);var b=this._getOrCreateChild(o["a"]),x=b.createStyle();b.useStyle(x);var w=this._defaultStyle,S=!1,k=0,C=T("fill"in d?d.fill:"fill"in t?t.fill:(S=!0,w.fill)),M=O("stroke"in d?d.stroke:"stroke"in t?t.stroke:y||u||w.autoStroke&&!S?null:(k=p,w.stroke)),L=d.textShadowBlur>0||t.textShadowBlur>0;x.text=e.text,x.x=i,x.y=g,L&&(x.shadowBlur=d.textShadowBlur||t.textShadowBlur||0,x.shadowColor=d.textShadowColor||t.textShadowColor||"transparent",x.shadowOffsetX=d.textShadowOffsetX||t.textShadowOffsetX||0,x.shadowOffsetY=d.textShadowOffsetY||t.textShadowOffsetY||0),x.textAlign=l,x.textBaseline="middle",x.font=e.font||f["a"],x.opacity=Object(a["Q"])(d.opacity,t.opacity,1),_(x,d),M&&(x.lineWidth=Object(a["Q"])(d.lineWidth,t.lineWidth,k),x.lineDash=Object(a["P"])(d.lineDash,t.lineDash),x.lineDashOffset=t.lineDashOffset||0,x.stroke=M),C&&(x.fill=C);var I=e.contentWidth,D=e.contentHeight;b.setBoundingRect(new c["a"](Object(s["a"])(x.x,I,x.textAlign),Object(s["b"])(x.y,D,x.textBaseline),I,D))},t.prototype._renderBackground=function(e,t,n,r,i,o){var s,c,d=e.backgroundColor,f=e.borderWidth,h=e.borderColor,p=d&&d.image,g=d&&!p,v=e.borderRadius,y=this;if(g||e.lineHeight||f&&h){s=this._getOrCreateChild(u["a"]),s.useStyle(s.createStyle()),s.style.fill=null;var m=s.shape;m.x=n,m.y=r,m.width=i,m.height=o,m.r=v,s.dirtyShape()}if(g){var b=s.style;b.fill=d||null,b.fillOpacity=Object(a["P"])(e.fillOpacity,1)}else if(p){c=this._getOrCreateChild(l["a"]),c.onload=function(){y.dirtyStyle()};var x=c.style;x.image=d.image,x.x=n,x.y=r,x.width=i,x.height=o}if(f&&h){b=s.style;b.lineWidth=f,b.stroke=h,b.strokeOpacity=Object(a["P"])(e.strokeOpacity,1),b.lineDash=e.borderDash,b.lineDashOffset=e.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var _=(s||c).style;_.shadowBlur=e.shadowBlur||0,_.shadowColor=e.shadowColor||"transparent",_.shadowOffsetX=e.shadowOffsetX||0,_.shadowOffsetY=e.shadowOffsetY||0,_.opacity=Object(a["Q"])(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return w(e)&&(t=[e.fontStyle,e.fontWeight,x(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(a["T"])(t)||e.textFont||e.font},t}(d["c"]),y={left:!0,right:1,center:1},m={top:1,bottom:1,middle:1},b=["fontStyle","fontWeight","fontSize","fontFamily"];function x(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?f["c"]+"px":e+"px":e}function _(e,t){for(var n=0;n<b.length;n++){var r=b[n],i=t[r];null!=i&&(e[r]=i)}}function w(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function S(e){return k(e),Object(a["k"])(e.rich,k),e}function k(e){if(e){e.font=v.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||y[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||m[n]?n:"top";var r=e.padding;r&&(e.padding=Object(a["M"])(e.padding))}}function O(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function T(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function E(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function C(e){var t=e.text;return null!=t&&(t+=""),t}function A(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}t["a"]=v},7837:function(e,t,n){"use strict";n.d(t,"g",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return _})),n.d(t,"f",(function(){return w})),n.d(t,"h",(function(){return S})),n.d(t,"a",(function(){return k}));var r=n("76a5"),i=n("6d8b"),o=n("7d6c"),a=n("e0d3"),s=n("deab"),l={};function u(e,t){for(var n=0;n<o["g"].length;n++){var r=o["g"][n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var s=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(s,!0)}function c(e,t,n){var r,a=e.labelFetcher,s=e.labelDataIndex,l=e.labelDimIndex,u=t.normal;a&&(r=a.getFormattedLabel(s,"normal",null,l,u&&u.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Object(i["w"])(e.defaultText)?e.defaultText(s,e,n):e.defaultText);for(var c={normal:r},d=0;d<o["g"].length;d++){var f=o["g"][d],h=t[f];c[f]=Object(i["P"])(a?a.getFormattedLabel(s,f,null,l,h&&h.get("formatter")):null,r)}return c}function d(e,t,n,a){n=n||l;for(var s=e instanceof r["a"],d=!1,f=0;f<o["a"].length;f++){var g=t[o["a"][f]];if(g&&g.getShallow("show")){d=!0;break}}var v=s?e:e.getTextContent();if(d){s||(v||(v=new r["a"],e.setTextContent(v)),e.stateProxy&&(v.stateProxy=e.stateProxy));var y=c(n,t),m=t.normal,b=!!m.getShallow("show"),x=h(m,a&&a.normal,n,!1,!s);x.text=y.normal,s||e.setTextConfig(p(m,n,!1));for(f=0;f<o["g"].length;f++){var _=o["g"][f];g=t[_];if(g){var S=v.ensureState(_),k=!!Object(i["P"])(g.getShallow("show"),b);if(k!==b&&(S.ignore=!k),S.style=h(g,a&&a[_],n,!0,!s),S.style.text=y[_],!s){var O=e.ensureState(_);O.textConfig=p(g,n,!0)}}}v.silent=!!m.getShallow("silent"),null!=v.style.x&&(x.x=v.style.x),null!=v.style.y&&(x.y=v.style.y),v.ignore=!b,v.useStyle(x),v.dirty(),n.enableTextSetter&&(w(v).setLabelText=function(e){var r=c(n,t,e);u(v,r)})}else v&&(v.ignore=!0);e.dirty()}function f(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<o["g"].length;r++){var i=o["g"][r];n[i]=e.getModel([i,t])}return n}function h(e,t,n,r,o){var a={};return g(a,e,n,r,o),t&&Object(i["m"])(a,t),a}function p(e,t,n){t=t||{};var r,o={},a=e.getShallow("rotate"),s=Object(i["P"])(e.getShallow("distance"),n?null:5),l=e.getShallow("offset");return r=e.getShallow("position")||(n?null:"inside"),"outside"===r&&(r=t.defaultOutsidePosition||"top"),null!=r&&(o.position=r),null!=l&&(o.offset=l),null!=a&&(a*=Math.PI/180,o.rotation=a),null!=s&&(o.distance=s),o.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",o}function g(e,t,n,r,i){n=n||l;var o,a=t.ecModel,s=a&&a.option.textStyle,u=v(t);if(u)for(var c in o={},u)if(u.hasOwnProperty(c)){var d=t.getModel(["rich",c]);x(o[c]={},d,s,n,r,i,!1,!0)}o&&(e.rich=o);var f=t.get("overflow");f&&(e.overflow=f);var h=t.get("minMargin");null!=h&&(e.margin=h),x(e,t,s,n,r,i,!0,!1)}function v(e){var t;while(e&&e!==e.ecModel){var n=(e.option||l).rich;if(n){t=t||{};for(var r=Object(i["F"])(n),o=0;o<r.length;o++){var a=r[o];t[a]=1}}e=e.parentModel}return t}var y=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],m=["align","lineHeight","width","height","tag","verticalAlign"],b=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function x(e,t,n,r,o,a,s,u){n=!o&&n||l;var c=r&&r.inheritColor,d=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=Object(i["P"])(t.getShallow("opacity"),n.opacity);"inherit"!==d&&"auto"!==d||(d=c||null),"inherit"!==f&&"auto"!==f||(f=c||null),a||(d=d||n.color,f=f||n.textBorderColor),null!=d&&(e.fill=d),null!=f&&(e.stroke=f);var p=Object(i["P"])(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(e.lineWidth=p);var g=Object(i["P"])(t.getShallow("textBorderType"),n.textBorderType);null!=g&&(e.lineDash=g);var v=Object(i["P"])(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=v&&(e.lineDashOffset=v),o||null!=h||u||(h=r&&r.defaultOpacity),null!=h&&(e.opacity=h),o||a||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var x=0;x<y.length;x++){var _=y[x],w=Object(i["P"])(t.getShallow(_),n[_]);null!=w&&(e[_]=w)}for(x=0;x<m.length;x++){_=m[x],w=t.getShallow(_);null!=w&&(e[_]=w)}if(null==e.verticalAlign){var S=t.getShallow("baseline");null!=S&&(e.verticalAlign=S)}if(!s||!r.disableBox){for(x=0;x<b.length;x++){_=b[x],w=t.getShallow(_);null!=w&&(e[_]=w)}var k=t.getShallow("borderType");null!=k&&(e.borderDash=k),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!c||(e.backgroundColor=c),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!c||(e.borderColor=c)}}function _(e,t){var n=t&&t.getModel("textStyle");return Object(i["T"])([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(" "))}var w=Object(a["o"])();function S(e,t,n,r){if(e){var i=w(e);i.prevValue=i.value,i.value=n;var o=t.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}function k(e,t,n,r,o){var l=w(e);if(l.valueAnimation&&l.prevValue!==l.value){var d=l.defaultInterpolatedText,f=Object(i["P"])(l.interpolatedValue,l.prevValue),h=l.value;e.percent=0,(null==l.prevValue?s["c"]:s["h"])(e,{percent:1},r,t,null,p)}function p(r){var i=Object(a["k"])(n,l.precision,f,h,r);l.interpolatedValue=1===r?null:i;var s=c({labelDataIndex:t,labelFetcher:o,defaultText:d?d(i):i+""},l.statesModels,i);u(e,s)}}},"7a29":function(e,t,n){"use strict";(function(e){n.d(t,"p",(function(){return s})),n.d(t,"j",(function(){return u})),n.d(t,"q",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"i",(function(){return g})),n.d(t,"h",(function(){return v})),n.d(t,"l",(function(){return y})),n.d(t,"n",(function(){return b})),n.d(t,"m",(function(){return x})),n.d(t,"o",(function(){return _})),n.d(t,"k",(function(){return w})),n.d(t,"d",(function(){return S})),n.d(t,"f",(function(){return k})),n.d(t,"g",(function(){return O})),n.d(t,"c",(function(){return T}));var r=n("6d8b"),i=n("41ef"),o=n("22d1"),a=Math.round;function s(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var n=Object(i["g"])(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var l=1e-4;function u(e){return e<l&&e>-l}function c(e){return a(1e3*e)/1e3}function d(e){return a(1e4*e)/1e4}function f(e){return"matrix("+c(e[0])+","+c(e[1])+","+c(e[2])+","+c(e[3])+","+d(e[4])+","+d(e[5])+")"}var h={left:"start",right:"end",center:"middle",middle:"middle"};function p(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function g(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function v(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function y(e){return e&&!!e.image}function m(e){return e&&!!e.svgElement}function b(e){return y(e)||m(e)}function x(e){return"linear"===e.type}function _(e){return"radial"===e.type}function w(e){return e&&("linear"===e.type||"radial"===e.type)}function S(e){return"url(#"+e+")"}function k(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function O(e){var t=e.x||0,n=e.y||0,i=(e.rotation||0)*r["a"],o=Object(r["P"])(e.scaleX,1),s=Object(r["P"])(e.scaleY,1),l=e.skewX||0,u=e.skewY||0,c=[];return(t||n)&&c.push("translate("+t+"px,"+n+"px)"),i&&c.push("rotate("+i+")"),1===o&&1===s||c.push("scale("+o+","+s+")"),(l||u)&&c.push("skew("+a(l*r["a"])+"deg, "+a(u*r["a"])+"deg)"),c.join(" ")}var T=function(){return o["a"].hasGlobalWindow&&Object(r["w"])(window.btoa)?function(e){return window.btoa(unescape(e))}:"undefined"!==typeof e?function(t){return e.from(t).toString("base64")}:function(e){return null}}()}).call(this,n("b639").Buffer)},"7d6c":function(e,t,n){"use strict";n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"g",(function(){return v})),n.d(t,"a",(function(){return y})),n.d(t,"j",(function(){return m})),n.d(t,"c",(function(){return x})),n.d(t,"b",(function(){return _})),n.d(t,"f",(function(){return w})),n.d(t,"i",(function(){return S})),n.d(t,"h",(function(){return k})),n.d(t,"H",(function(){return N})),n.d(t,"G",(function(){return V})),n.d(t,"r",(function(){return W})),n.d(t,"C",(function(){return Y})),n.d(t,"q",(function(){return K})),n.d(t,"B",(function(){return X})),n.d(t,"s",(function(){return Z})),n.d(t,"D",(function(){return $})),n.d(t,"k",(function(){return Q})),n.d(t,"l",(function(){return te})),n.d(t,"m",(function(){return ne})),n.d(t,"t",(function(){return re})),n.d(t,"x",(function(){return ie})),n.d(t,"w",(function(){return oe})),n.d(t,"K",(function(){return ae})),n.d(t,"L",(function(){return se})),n.d(t,"u",(function(){return le})),n.d(t,"o",(function(){return ue})),n.d(t,"J",(function(){return de})),n.d(t,"p",(function(){return fe})),n.d(t,"I",(function(){return ge})),n.d(t,"F",(function(){return ve})),n.d(t,"y",(function(){return ye})),n.d(t,"n",(function(){return me})),n.d(t,"v",(function(){return be})),n.d(t,"A",(function(){return xe})),n.d(t,"z",(function(){return _e})),n.d(t,"E",(function(){return we}));var r=n("d51b"),i=n("6d8b"),o=n("861c"),a=n("41ef"),s=n("e0d3"),l=n("cbe5"),u=1,c={},d=Object(s["o"])(),f=Object(s["o"])(),h=0,p=1,g=2,v=["emphasis","blur","select"],y=["normal","emphasis","blur","select"],m=10,b=9,x="highlight",_="downplay",w="select",S="unselect",k="toggleSelect";function O(e){return null!=e&&"none"!==e}var T=new r["a"](100);function E(e){if(Object(i["C"])(e)){var t=T.get(e);return t||(t=a["c"](e,-.1),T.put(e,t)),t}if(Object(i["x"])(e)){var n=Object(i["m"])({},e);return n.colorStops=Object(i["H"])(e.colorStops,(function(e){return{offset:e.offset,color:a["c"](e.color,-.1)}})),n}return e}function C(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function A(e){C(e,"emphasis",g)}function M(e){e.hoverState===g&&C(e,"normal",h)}function L(e){C(e,"blur",p)}function I(e){e.hoverState===p&&C(e,"normal",h)}function D(e){e.selected=!0}function j(e){e.selected=!1}function P(e,t,n){t(e,n)}function R(e,t,n){P(e,t,n),e.isGroup&&e.traverse((function(e){P(e,t,n)}))}function N(e,t){switch(t){case"emphasis":e.hoverState=g;break;case"normal":e.hoverState=h;break;case"blur":e.hoverState=p;break;case"select":e.selected=!0}}function B(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,t)}return o}function F(e,t,n,r){var o=n&&Object(i["r"])(n,"select")>=0,a=!1;if(e instanceof l["b"]){var s=d(e),u=o&&s.selectFill||s.normalFill,c=o&&s.selectStroke||s.normalStroke;if(O(u)||O(c)){r=r||{};var f=r.style||{};"inherit"===f.fill?(a=!0,r=Object(i["m"])({},r),f=Object(i["m"])({},f),f.fill=u):!O(f.fill)&&O(u)?(a=!0,r=Object(i["m"])({},r),f=Object(i["m"])({},f),f.fill=E(u)):!O(f.stroke)&&O(c)&&(a||(r=Object(i["m"])({},r),f=Object(i["m"])({},f)),f.stroke=E(c)),r.style=f}}if(r&&null==r.z2){a||(r=Object(i["m"])({},r));var h=e.z2EmphasisLift;r.z2=e.z2+(null!=h?h:m)}return r}function z(e,t,n){if(n&&null==n.z2){n=Object(i["m"])({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:b)}return n}function U(e,t,n){var r=Object(i["r"])(e.currentStates,t)>=0,o=e.style.opacity,a=r?null:B(e,["opacity"],t,{opacity:1});n=n||{};var s=n.style||{};return null==s.opacity&&(n=Object(i["m"])({},n),s=Object(i["m"])({opacity:r?o:.1*a.opacity},s),n.style=s),n}function H(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return F(this,e,t,n);if("blur"===e)return U(this,e,n);if("select"===e)return z(this,e,n)}return n}function V(e){e.stateProxy=H;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=H),n&&(n.stateProxy=H)}function G(e,t){!J(e,t)&&!e.__highByOuter&&R(e,A)}function q(e,t){!J(e,t)&&!e.__highByOuter&&R(e,M)}function W(e,t){e.__highByOuter|=1<<(t||0),R(e,A)}function Y(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&R(e,M)}function K(e){R(e,L)}function X(e){R(e,I)}function Z(e){R(e,D)}function $(e){R(e,j)}function J(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Q(e){var t=e.getModel(),n=[],r=[];t.eachComponent((function(t,i){var o=f(i),a="series"===t,s=a?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(e){I(e)})),a&&n.push(i)),o.isBlured=!1})),Object(i["k"])(r,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function ee(e,t,n,r){var o=r.getModel();function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&X(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var s=o.getSeriesByIndex(e),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];o.eachSeries((function(e){var o=s===e,c=e.coordinateSystem;c&&c.master&&(c=c.master);var d=c&&l?c===l:o;if(!("series"===n&&!o||"coordinateSystem"===n&&!d||"series"===t&&o)){var h=r.getViewOfSeriesModel(e);if(h.group.traverse((function(e){L(e)})),Object(i["u"])(t))a(e.getData(),t);else if(Object(i["A"])(t))for(var p=Object(i["F"])(t),g=0;g<p.length;g++)a(e.getData(p[g]),t[p[g]]);u.push(e),f(e).isBlured=!0}})),o.eachComponent((function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,o)}}))}}function te(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){f(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(e){L(e)}))}}}function ne(e,t,n){var r=e.seriesIndex,a=e.getData(t.dataType);if(a){var l=Object(s["u"])(a,t);l=(Object(i["t"])(l)?l[0]:l)||0;var u=a.getItemGraphicEl(l);if(!u){var c=a.count(),d=0;while(!u&&d<c)u=a.getItemGraphicEl(d++)}if(u){var f=Object(o["a"])(u);ee(r,f.focus,f.blurScope,n)}else{var h=e.get(["emphasis","focus"]),p=e.get(["emphasis","blurScope"]);null!=h&&ee(r,h,p,n)}}}function re(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var s=r.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return i;for(var l,u=s.findHighDownDispatchers(n),c=0;c<u.length;c++)if("self"===Object(o["a"])(u[c]).focus){l=!0;break}return{focusSelf:l,dispatchers:u}}function ie(e,t,n){var r=Object(o["a"])(e),a=re(r.componentMainType,r.componentIndex,r.componentHighDownName,n),s=a.dispatchers,l=a.focusSelf;s?(l&&te(r.componentMainType,r.componentIndex,n),Object(i["k"])(s,(function(e){return G(e,t)}))):(ee(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&te(r.componentMainType,r.componentIndex,n),G(e,t))}function oe(e,t,n){Q(n);var r=Object(o["a"])(e),a=re(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?Object(i["k"])(a,(function(e){return q(e,t)})):q(e,t)}function ae(e,t,n){if(xe(t)){var r=t.dataType,o=e.getData(r),a=Object(s["u"])(o,t);Object(i["t"])(a)||(a=[a]),e[t.type===k?"toggleSelect":t.type===w?"select":"unselect"](a,r)}}function se(e){var t=e.getAllData();Object(i["k"])(t,(function(t){var n=t.data,r=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,r)?Z(t):$(t)}))}))}function le(e){var t=[];return e.eachSeries((function(e){var n=e.getAllData();Object(i["k"])(n,(function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(o.dataType=r),t.push(o)}}))})),t}function ue(e,t,n){ve(e,!0),R(e,V),fe(e,t,n)}function ce(e){ve(e,!1)}function de(e,t,n,r){r?ce(e):ue(e,t,n)}function fe(e,t,n){var r=Object(o["a"])(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var he=["emphasis","blur","select"],pe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ge(e,t,n,r){n=n||"itemStyle";for(var i=0;i<he.length;i++){var o=he[i],a=t.getModel([o,n]),s=e.ensureState(o);s.style=r?r(a):a[pe[n]]()}}function ve(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function ye(e){return!(!e||!e.__highDownDispatcher)}function me(e,t,n){var r=Object(o["a"])(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function be(e){var t=c[e];return null==t&&u<=32&&(t=c[e]=u++),t}function xe(e){var t=e.type;return t===w||t===S||t===k}function _e(e){var t=e.type;return t===x||t===_}function we(e){var t=d(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}},"857d":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=2*Math.PI;function i(e){return e%=r,e<0&&(e+=r),e}},8582:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var r=n("1687"),i=n("401b"),o=r["d"],a=5e-5;function s(e){return e>a||e<-a}var l=[],u=[],c=r["c"](),d=Math.abs,f=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||r["c"](),t?this.getLocalTransform(n):o(n),e&&(t?r["f"](n,e,n):r["b"](n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&o(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(l);var n=l[0]<0?-1:1,i=l[1]<0?-1:1,o=((l[0]-n)*t+n)/l[0]||0,a=((l[1]-i)*t+i)/l[1]||0;e[0]*=o,e[1]*=o,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||r["c"](),r["e"](this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(r["f"](u,e.invTransform,t),t=u);var n=this.originX,i=this.originY;(n||i)&&(c[4]=n,c[5]=i,r["f"](u,t,c),u[4]-=n,u[5]-=i,t=u),this.setLocalTransform(t)}},e.prototype.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)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&i["b"](n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&i["b"](n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&d(e[0]-1)>1e-10&&d(e[3]-1)>1e-10?Math.sqrt(d(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){p(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,o=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var p=n+s,g=i+l;t[4]=-p*o-f*g*a,t[5]=-g*a-h*p*o}else t[4]=t[5]=0;return t[0]=o,t[3]=a,t[1]=h*o,t[2]=f*a,u&&r["g"](t,t,u),t[4]+=n+c,t[5]+=i+d,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),h=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function p(e,t){for(var n=0;n<h.length;n++){var r=h[n];e[r]=t[r]}}t["c"]=f},"861c":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n("e0d3"),i=Object(r["o"])(),o=function(e,t,n,r){if(r){var o=i(r);o.dataIndex=n,o.dataType=t,o.seriesIndex=e,"group"===r.type&&r.traverse((function(r){var o=i(r);o.seriesIndex=e,o.dataIndex=n,o.dataType=t}))}}},8728:function(e,t,n){"use strict";function r(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r)return 0;if(r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;1!==a&&0!==a||(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}n.d(t,"a",(function(){return r}))},"87b1":function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=n("4fac"),a=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),s=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){o["a"](e,t,!0)},t}(i["b"]);s.prototype.type="polygon",t["a"]=s},"88b3":function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var r="\0__throttleOriginMethod",i="\0__throttleRate",o="\0__throttleType";function a(e,t,n){var r,i,o,a,s,l=0,u=0,c=null;function d(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var f=function(){for(var e=[],f=0;f<arguments.length;f++)e[f]=arguments[f];r=(new Date).getTime(),o=this,a=e;var h=s||t,p=s||n;s=null,i=r-(p?l:u)-h,clearTimeout(c),p?c=setTimeout(d,h):i>=0?d():c=setTimeout(d,-i),l=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(e){s=e},f}function s(e,t,n,s){var l=e[t];if(l){var u=l[r]||l,c=l[o],d=l[i];if(d!==n||c!==s){if(null==n||!s)return e[t]=u;l=e[t]=a(u,n,"debounce"===s),l[r]=u,l[o]=s,l[i]=n}return l}}function l(e,t){var n=e[t];n&&n[r]&&(n.clear&&n.clear(),e[t]=n[r])}},8918:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return u}));var r=n("6d8b"),i=n("625e"),o=Math.round(10*Math.random());function a(e){return[e||"",o++].join("_")}function s(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Object(i["f"])(e);t[r.main]=n},e.determineSubType=function(n,r){var o=r.type;if(!o){var a=Object(i["f"])(n).main;e.hasSubTypes(n)&&t[a]&&(o=t[a](r))}return o}}function l(e,t){function n(e){var n={},a=[];return r["k"](e,(function(s){var l=i(n,s),u=l.originalDeps=t(s),c=o(u,e);l.entryCount=c.length,0===l.entryCount&&a.push(s),r["k"](c,(function(e){r["r"](l.predecessor,e)<0&&l.predecessor.push(e);var t=i(n,e);r["r"](t.successor,e)<0&&t.successor.push(s)}))})),{graph:n,noEntryList:a}}function i(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function o(e,t){var n=[];return r["k"](e,(function(e){r["r"](t,e)>=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,i,o){if(e.length){var a=n(t),s=a.graph,l=a.noEntryList,u={};r["k"](e,(function(e){u[e]=!0}));while(l.length){var c=l.pop(),d=s[c],f=!!u[c];f&&(i.call(o,c,d.originalDeps.slice()),delete u[c]),r["k"](d.successor,f?p:h)}r["k"](u,(function(){var e="";throw new Error(e)}))}function h(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function p(e){u[e]=!0,h(e)}}}function u(e,t){return r["I"](r["I"]({},e,!0),t,!0)}},"89b6":function(e,t,n){"use strict";n.d(t,"e",(function(){return C})),n.d(t,"c",(function(){return L})),n.d(t,"b",(function(){return I})),n.d(t,"d",(function(){return P})),n.d(t,"a",(function(){return R}));var r=n("dce8"),i=n("cbe5"),o=n("d498"),a=n("20c8"),s=n("857d"),l=n("4a3f"),u=n("6d8b"),c=n("1687"),d=n("401b"),f=n("7d6c"),h=2*Math.PI,p=a["a"].CMD,g=["top","right","bottom","left"];function v(e,t,n,r,i){var o=n.width,a=n.height;switch(e){case"top":r.set(n.x+o/2,n.y-t),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+t),i.set(0,1);break;case"left":r.set(n.x-t,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+t,n.y+a/2),i.set(1,0);break}}function y(e,t,n,r,i,o,a,l,u){a-=e,l-=t;var c=Math.sqrt(a*a+l*l);a/=c,l/=c;var d=a*n+e,f=l*n+t;if(Math.abs(r-i)%h<1e-4)return u[0]=d,u[1]=f,c-n;if(o){var p=r;r=Object(s["a"])(i),i=Object(s["a"])(p)}else r=Object(s["a"])(r),i=Object(s["a"])(i);r>i&&(i+=h);var g=Math.atan2(l,a);if(g<0&&(g+=h),g>=r&&g<=i||g+h>=r&&g+h<=i)return u[0]=d,u[1]=f,c-n;var v=n*Math.cos(r)+e,y=n*Math.sin(r)+t,m=n*Math.cos(i)+e,b=n*Math.sin(i)+t,x=(v-a)*(v-a)+(y-l)*(y-l),_=(m-a)*(m-a)+(b-l)*(b-l);return x<_?(u[0]=v,u[1]=y,Math.sqrt(x)):(u[0]=m,u[1]=b,Math.sqrt(_))}function m(e,t,n,r,i,o,a,s){var l=i-e,u=o-t,c=n-e,d=r-t,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=a[0]=e+p*c,v=a[1]=t+p*d;return Math.sqrt((g-i)*(g-i)+(v-o)*(v-o))}function b(e,t,n,r,i,o,a){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,l=t+r,u=a[0]=Math.min(Math.max(i,e),s),c=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var x=[];function _(e,t,n){var r=b(t.x,t.y,t.width,t.height,e.x,e.y,x);return n.set(x[0],x[1]),r}function w(e,t,n){for(var r,i,o=0,a=0,s=0,u=0,c=1/0,d=t.data,f=e.x,h=e.y,g=0;g<d.length;){var v=d[g++];1===g&&(o=d[g],a=d[g+1],s=o,u=a);var _=c;switch(v){case p.M:s=d[g++],u=d[g++],o=s,a=u;break;case p.L:_=m(o,a,d[g],d[g+1],f,h,x,!0),o=d[g++],a=d[g++];break;case p.C:_=Object(l["e"])(o,a,d[g++],d[g++],d[g++],d[g++],d[g],d[g+1],f,h,x),o=d[g++],a=d[g++];break;case p.Q:_=Object(l["l"])(o,a,d[g++],d[g++],d[g],d[g+1],f,h,x),o=d[g++],a=d[g++];break;case p.A:var w=d[g++],S=d[g++],k=d[g++],O=d[g++],T=d[g++],E=d[g++];g+=1;var C=!!(1-d[g++]);r=Math.cos(T)*k+w,i=Math.sin(T)*O+S,g<=1&&(s=r,u=i);var A=(f-w)*O/k+w;_=y(w,S,O,T,T+E,C,A,h,x),o=Math.cos(T+E)*k+w,a=Math.sin(T+E)*O+S;break;case p.R:s=o=d[g++],u=a=d[g++];var M=d[g++],L=d[g++];_=b(s,u,M,L,f,h,x);break;case p.Z:_=m(o,a,s,u,f,h,x,!0),o=s,a=u;break}_<c&&(c=_,n.set(x[0],x[1]))}return c}var S=new r["a"],k=new r["a"],O=new r["a"],T=new r["a"],E=new r["a"];function C(e,t){if(e){var n=e.getTextGuideLine(),o=e.getTextContent();if(o&&n){var a=e.textGuideLineConfig||{},s=[[0,0],[0,0],[0,0]],l=a.candidates||g,u=o.getBoundingRect().clone();u.applyTransform(o.getComputedTransform());var d=1/0,f=a.anchor,h=e.getComputedTransform(),p=h&&Object(c["e"])([],h),y=t.get("length2")||0;f&&O.copy(f);for(var m=0;m<l.length;m++){var b=l[m];v(b,0,u,S,T),r["a"].scaleAndAdd(k,S,T,y),k.transform(p);var x=e.getBoundingRect(),E=f?f.distance(k):e instanceof i["b"]?w(k,e.path,O):_(k,x,O);E<d&&(d=E,k.transform(h),O.transform(h),O.toArray(s[0]),k.toArray(s[1]),S.toArray(s[2]))}L(s,t.get("minTurnAngle")),n.setShape({points:s})}}}var A=[],M=new r["a"];function L(e,t){if(t<=180&&t>0){t=t/180*Math.PI,S.fromArray(e[0]),k.fromArray(e[1]),O.fromArray(e[2]),r["a"].sub(T,S,k),r["a"].sub(E,O,k);var n=T.len(),i=E.len();if(!(n<.001||i<.001)){T.scale(1/n),E.scale(1/i);var o=T.dot(E),a=Math.cos(t);if(a<o){var s=m(k.x,k.y,O.x,O.y,S.x,S.y,A,!1);M.fromArray(A),M.scaleAndAdd(E,s/Math.tan(Math.PI-t));var l=O.x!==k.x?(M.x-k.x)/(O.x-k.x):(M.y-k.y)/(O.y-k.y);if(isNaN(l))return;l<0?r["a"].copy(M,k):l>1&&r["a"].copy(M,O),M.toArray(e[1])}}}}function I(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,S.fromArray(e[0]),k.fromArray(e[1]),O.fromArray(e[2]),r["a"].sub(T,k,S),r["a"].sub(E,O,k);var i=T.len(),o=E.len();if(!(i<.001||o<.001)){T.scale(1/i),E.scale(1/o);var a=T.dot(t),s=Math.cos(n);if(a<s){var l=m(k.x,k.y,O.x,O.y,S.x,S.y,A,!1);M.fromArray(A);var u=Math.PI/2,c=Math.acos(E.dot(t)),d=u+c-n;if(d>=u)r["a"].copy(M,O);else{M.scaleAndAdd(E,l/Math.tan(Math.PI/2-d));var f=O.x!==k.x?(M.x-k.x)/(O.x-k.x):(M.y-k.y)/(O.y-k.y);if(isNaN(f))return;f<0?r["a"].copy(M,k):f>1&&r["a"].copy(M,O)}M.toArray(e[1])}}}}function D(e,t,n,r){var i="normal"===n,o=i?e:e.ensureState(n);o.ignore=t;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):o.style=s}function j(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=d["f"](r[0],r[1]),o=d["f"](r[1],r[2]);if(!i||!o)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=d["j"]([],r[1],r[0],a/i),l=d["j"]([],r[1],r[2],a/o),u=d["j"]([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)e.lineTo(r[c][0],r[c][1])}function P(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(i){for(var a=t.normal,s=a.get("show"),l=i.ignore,c=0;c<f["a"].length;c++){var d=f["a"][c],h=t[d],p="normal"===d;if(h){var g=h.get("show"),v=p?l:Object(u["P"])(i.states[d]&&i.states[d].ignore,l);if(v||!Object(u["P"])(g,s)){var y=p?r:r&&r.states[d];y&&(y.ignore=!0);continue}r||(r=new o["a"],e.setTextGuideLine(r),p||!l&&s||D(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),D(r,!1,d,h)}}if(r){Object(u["i"])(r.style,n),r.style.fill=null;var m=a.get("showAbove"),b=e.textGuideLineConfig=e.textGuideLineConfig||{};b.showAbove=m||!1,r.buildPath=j}}else r&&e.removeTextGuideLine()}function R(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<f["g"].length;r++){var i=f["g"][r];n[i]=e.getModel([i,t])}return n}},"8d1d":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("6d8b");function i(e,t){return e&&"solid"!==e&&t>0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:Object(r["z"])(e)?[e]:Object(r["t"])(e)?e:null:null}function o(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&i(t.lineDash,t.lineWidth),o=t.lineDashOffset;if(n){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(n=Object(r["H"])(n,(function(e){return e/a})),o/=a)}return[n,o]}},"8d32":function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),u=Math.sin(o);e.moveTo(l*i+n,u*i+r),e.arc(n,r,i,o,a,!s)},t}(i["b"]);a.prototype.type="arc",t["a"]=a},"8d74":function(e,t,n){var r=n("4cef"),i=/^\s+/;function o(e){return e?e.slice(0,r(e)+1).replace(i,""):e}e.exports=o},9680:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=e;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e===n)return Math.abs(o-e)<=s/2;l=(t-r)/(e-n),u=(e*r-n*t)/(e-n);var c=l*o-a+u,d=c*c/(l*l+1);return d<=s/2*s/2}n.d(t,"a",(function(){return r}))},9850:function(e,t,n){"use strict";var r=n("1687"),i=n("dce8"),o=Math.min,a=Math.max,s=new i["a"],l=new i["a"],u=new i["a"],c=new i["a"],d=new i["a"],f=new i["a"],h=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=o(e.x,this.x),n=o(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,o=r["c"]();return r["i"](o,o,[-t.x,-t.y]),r["h"](o,o,[n,i]),r["i"](o,o,[e.x,e.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,o=r.x,a=r.x+r.width,s=r.y,l=r.y+r.height,u=t.x,c=t.x+t.width,h=t.y,p=t.y+t.height,g=!(a<u||c<o||l<h||p<s);if(n){var v=1/0,y=0,m=Math.abs(a-u),b=Math.abs(c-o),x=Math.abs(l-h),_=Math.abs(p-s),w=Math.min(m,b),S=Math.min(x,_);a<u||c<o?w>y&&(y=w,m<b?i["a"].set(f,-m,0):i["a"].set(f,b,0)):w<v&&(v=w,m<b?i["a"].set(d,m,0):i["a"].set(d,-b,0)),l<h||p<s?S>y&&(y=S,x<_?i["a"].set(f,0,-x):i["a"].set(f,0,_)):w<v&&(v=w,x<_?i["a"].set(d,0,x):i["a"].set(d,0,-_))}return n&&i["a"].copy(n,g?d:f),g},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],d=r[3],f=r[4],h=r[5];return t.x=n.x*i+f,t.y=n.y*d+h,t.width=n.width*i,t.height=n.height*d,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}s.x=u.x=n.x,s.y=c.y=n.y,l.x=c.x=n.x+n.width,l.y=u.y=n.y+n.height,s.transform(r),c.transform(r),l.transform(r),u.transform(r),t.x=o(s.x,l.x,u.x,c.x),t.y=o(s.y,l.y,u.y,c.y);var p=a(s.x,l.x,u.x,c.x),g=a(s.y,l.y,u.y,c.y);t.width=p-t.x,t.height=g-t.y}else t!==n&&e.copy(t,n)},e}();t["a"]=h},"98b7":function(e,t,n){"use strict";var r,i=n("22d1");r=i["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},t["a"]=r},"9ab4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));
  30. /*! *****************************************************************************
  31. Copyright (c) Microsoft Corporation.
  32. Permission to use, copy, modify, and/or distribute this software for any
  33. purpose with or without fee is hereby granted.
  34. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  35. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  36. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  37. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  38. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  39. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  40. PERFORMANCE OF THIS SOFTWARE.
  41. ***************************************************************************** */
  42. var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create},"9ca8":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"echarts"})},i=[],o=(n("d3b7"),n("159b"),n("b64b"),n("fb6a"),n("d81d"),n("22b4")),a=n("1be7"),s=n("f95e"),l=n("5e81"),u=n("ee29");Object(o["a"])([s["a"],l["a"]]);var c={init:function(){return a["b"].apply(null,arguments)}};Object(o["a"])(u["a"]);var d=n("b047"),f=n.n(d);let h=null;function p(e){return h||(h=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),h(e)}let g=null;function v(e){g||(g=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),g(e)}function y(e){var t=document.createElement("style");return t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function m(e,t={}){let n=document.createElement(e);return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function b(e,t,n){let r=window.getComputedStyle(e,n||null)||{display:"none"};return r[t]}function x(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};let t=e;while(t!==document){if("none"===b(t,"display"))return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var _='.resize-triggers{visibility:hidden;opacity:0}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}';let w=0,S=null;function k(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=E.bind(e));let n=e.__resize_listeners__;if(!n)if(e.__resize_listeners__=[],window.ResizeObserver){let{offsetWidth:t,offsetHeight:n}=e,r=new ResizeObserver(()=>{(e.__resize_observer_triggered__||(e.__resize_observer_triggered__=!0,e.offsetWidth!==t||e.offsetHeight!==n))&&A(e)}),{detached:i,rendered:o}=x(e);e.__resize_observer_triggered__=!1===i&&!1===o,e.__resize_observer__=r,r.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){A(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(w||(S=y(_)),M(e),e.__resize_rendered__=x(e).rendered,window.MutationObserver){let t=new MutationObserver(e.__resize_mutation_handler__);t.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=t}e.__resize_listeners__.push(t),w++}function O(e,t){if(e.detachEvent&&e.removeEventListener)return e.detachEvent("onresize",e.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);let n=e.__resize_listeners__;n&&(n.splice(n.indexOf(t),1),n.length||(e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",C),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null),!--w&&S&&S.parentNode.removeChild(S))}function T(e){let{width:t,height:n}=e.__resize_last__,{offsetWidth:r,offsetHeight:i}=e;return r!==t||i!==n?{width:r,height:i}:null}function E(){let{rendered:e,detached:t}=x(this);e!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&(L(this),this.addEventListener("scroll",C,!0)),this.__resize_rendered__=e,A(this))}function C(){L(this),this.__resize_raf__&&v(this.__resize_raf__),this.__resize_raf__=p(()=>{let e=T(this);e&&(this.__resize_last__=e,A(this))})}function A(e){e&&e.__resize_listeners__&&e.__resize_listeners__.forEach(t=>{t.call(e)})}function M(e){let t=b(e,"position");t&&"static"!==t||(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};let n=m("div",{className:"resize-triggers"}),r=m("div",{className:"resize-expand-trigger"}),i=m("div"),o=m("div",{className:"resize-contract-trigger"});r.appendChild(i),n.appendChild(r),n.appendChild(o),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:r,expandChild:i,contract:o},L(e),e.addEventListener("scroll",C,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function L(e){let{expand:t,expandChild:n,contract:r}=e.__resize_triggers__,{scrollWidth:i,scrollHeight:o}=r,{offsetWidth:a,offsetHeight:s,scrollWidth:l,scrollHeight:u}=t;r.scrollLeft=i,r.scrollTop=o,n.style.width=a+1+"px",n.style.height=s+1+"px",t.scrollLeft=l,t.scrollTop=u}var I=["theme","initOptions","autoresize"],D=["manualUpdate","watchShallow"],j={props:{options:Object,theme:[String,Object],initOptions:Object,group:String,autoresize:Boolean,watchShallow:Boolean,manualUpdate:Boolean},data:function(){return{lastArea:0}},watch:{group:function(e){this.chart.group=e}},methods:{mergeOptions:function(e,t,n){this.manualUpdate&&(this.manualOptions=e),this.chart?this.delegateMethod("setOption",e,t,n):this.init(e)},appendData:function(e){this.delegateMethod("appendData",e)},resize:function(e){this.delegateMethod("resize",e)},dispatchAction:function(e){this.delegateMethod("dispatchAction",e)},convertToPixel:function(e,t){return this.delegateMethod("convertToPixel",e,t)},convertFromPixel:function(e,t){return this.delegateMethod("convertFromPixel",e,t)},containPixel:function(e,t){return this.delegateMethod("containPixel",e,t)},showLoading:function(e,t){this.delegateMethod("showLoading",e,t)},hideLoading:function(){this.delegateMethod("hideLoading")},getDataURL:function(e){return this.delegateMethod("getDataURL",e)},getConnectedDataURL:function(e){return this.delegateMethod("getConnectedDataURL",e)},clear:function(){this.delegateMethod("clear")},dispose:function(){this.delegateMethod("dispose")},delegateMethod:function(e){var t;this.chart||this.init();for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this.chart)[e].apply(t,r)},delegateGet:function(e){return this.chart||this.init(),this.chart[e]()},getArea:function(){return this.$el.offsetWidth*this.$el.offsetHeight},init:function(e){var t=this;if(!this.chart){var n=c.init(this.$el,this.theme,this.initOptions);this.group&&(n.group=this.group),n.setOption(e||this.manualOptions||this.options||{},!0),Object.keys(this.$listeners).forEach((function(e){var r=t.$listeners[e];0===e.indexOf("zr:")?n.getZr().on(e.slice(3),r):n.on(e,r)})),this.autoresize&&(this.lastArea=this.getArea(),this.__resizeHandler=f()((function(){0===t.lastArea?(t.mergeOptions({},!0),t.resize(),t.mergeOptions(t.options||t.manualOptions||{},!0)):t.resize(),t.lastArea=t.getArea()}),100,{leading:!0}),k(this.$el,this.__resizeHandler)),Object.defineProperties(this,{width:{configurable:!0,get:function(){return t.delegateGet("getWidth")}},height:{configurable:!0,get:function(){return t.delegateGet("getHeight")}},isDisposed:{configurable:!0,get:function(){return!!t.delegateGet("isDisposed")}},computedOptions:{configurable:!0,get:function(){return t.delegateGet("getOption")}}}),this.chart=n}},initOptionsWatcher:function(){var e=this;this.__unwatchOptions&&(this.__unwatchOptions(),this.__unwatchOptions=null),this.manualUpdate||(this.__unwatchOptions=this.$watch("options",(function(t,n){!e.chart&&t?e.init():e.chart.setOption(t,t!==n)}),{deep:!this.watchShallow}))},destroy:function(){this.autoresize&&O(this.$el,this.__resizeHandler),this.dispose(),this.chart=null},refresh:function(){this.chart&&(this.destroy(),this.init())}},created:function(){var e=this;this.initOptionsWatcher(),I.forEach((function(t){e.$watch(t,(function(){e.refresh()}),{deep:!0})})),D.forEach((function(t){e.$watch(t,(function(){e.initOptionsWatcher(),e.refresh()}))}))},mounted:function(){this.options&&this.init()},activated:function(){this.autoresize&&this.chart&&this.chart.resize()},destroyed:function(){this.chart&&this.destroy()},connect:function(e){"string"!==typeof e&&(e=e.map((function(e){return e.chart}))),c.connect(e)},disconnect:function(e){c.disConnect(e)},registerMap:function(e,t,n){c.registerMap(e,t,n)},registerTheme:function(e,t){c.registerTheme(e,t)},graphic:c.graphic},P=j,R=(n("1e3c"),n("2877")),N=Object(R["a"])(P,r,i,!1,null,null,null);t["a"]=N.exports},"9cf9":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var r=Math.round;function i(e,t,n){if(t){var i=t.x1,o=t.x2,s=t.y1,l=t.y2;e.x1=i,e.x2=o,e.y1=s,e.y2=l;var u=n&&n.lineWidth;return u?(r(2*i)===r(2*o)&&(e.x1=e.x2=a(i,u,!0)),r(2*s)===r(2*l)&&(e.y1=e.y2=a(s,u,!0)),e):e}}function o(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,s=t.height;e.x=r,e.y=i,e.width=o,e.height=s;var l=n&&n.lineWidth;return l?(e.x=a(r,l,!0),e.y=a(i,l,!0),e.width=Math.max(a(r+o,l,!1)-e.x,0===o?0:1),e.height=Math.max(a(i+s,l,!1)-e.y,0===s?0:1),e):e}}function a(e,t,n){if(!t)return e;var i=r(2*e);return(i+r(t))%2===0?i/2:(i+(n?1:-1))/2}},"9e69":function(e,t,n){var r=n("2b3e"),i=r.Symbol;e.exports=i},"9fbc":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("6d8b");function i(e){return new o(e)}var o=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var a,s=d(this._modBy),l=this._modDataCount||0,u=d(e&&e.modBy),c=e&&e.modDataCount||0;function d(e){return!(e>=1)&&(e=1),e}s===u&&l===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,a=this._doReset(i)),this._modBy=u,this._modDataCount=c;var f=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!i&&(a||h<p)){var g=this._progress;if(Object(r["t"])(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],h,p,u,c);else this._doProgress(g,h,p,u,c)}this._dueIndex=p;var y=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){a.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:a.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),Object(r["t"])(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),a=function(){var e,t,n,r,i,o={reset:function(l,u,c,d){t=l,e=u,n=c,r=d,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%i*n+Math.ceil(t/i),a=t>=e?null:o<r?o:t;return t++,a}}()},a15a:function(e,t,n){"use strict";n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return _})),n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return S}));var r=n("6d8b"),i=n("cbe5"),o=n("cb11"),a=n("c7a2"),s=n("d9fc"),l=n("2306"),u=n("9850"),c=n("e86a"),d=n("3842"),f=i["b"].extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),h=i["b"].extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),p=i["b"].extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,d=Math.sin(u),f=Math.cos(u),h=.6*a,p=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*h,l+s+f*h,n,r-p,n,r),e.bezierCurveTo(n,r-p,n-c+d*h,l+s+f*h,n-c,l+s),e.closePath()}}),g=i["b"].extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),v={line:o["a"],rect:a["a"],roundRect:a["a"],square:a["a"],circle:s["a"],diamond:h,pin:p,arrow:g,triangle:f},y={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},m={};Object(r["k"])(v,(function(e,t){m[t]=new e}));var b=i["b"].extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Object(c["c"])(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=m[r];i||(r="rect",i=m[r]),y[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function x(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function _(e,t,n,r,i,o,a){var s,c=0===e.indexOf("empty");return c&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),s=0===e.indexOf("image://")?l["makeImage"](e.slice(8),new u["a"](t,n,r,i),a?"center":"cover"):0===e.indexOf("path://")?l["makePath"](e.slice(7),{},new u["a"](t,n,r,i),a?"center":"cover"):new b({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),s.__isEmptyBrush=c,s.setColor=x,o&&s.setColor(o),s}function w(e){return Object(r["t"])(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function S(e,t){if(null!=e)return Object(r["t"])(e)||(e=[e,e]),[Object(d["o"])(e[0],t[0])||0,Object(d["o"])(Object(r["P"])(e[1],e[0]),t[1])||0]}},a2a9:function(e,t,n){},ac0f:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=n("401b"),a=n("4a3f"),s=[],l=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function u(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?a["b"]:a["a"])(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?a["b"]:a["a"])(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?a["i"]:a["h"])(e.x1,e.cpx1,e.x2,t),(n?a["i"]:a["h"])(e.y1,e.cpy1,e.y2,t)]}var c=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new l},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,l=t.cpx1,u=t.cpy1,c=t.cpx2,d=t.cpy2,f=t.percent;0!==f&&(e.moveTo(n,r),null==c||null==d?(f<1&&(Object(a["n"])(n,l,i,f,s),l=s[1],i=s[2],Object(a["n"])(r,u,o,f,s),u=s[1],o=s[2]),e.quadraticCurveTo(l,u,i,o)):(f<1&&(Object(a["g"])(n,l,c,i,f,s),l=s[1],c=s[2],i=s[3],Object(a["g"])(r,u,d,o,f,s),u=s[1],d=s[2],o=s[3]),e.bezierCurveTo(l,u,c,d,i,o)))},t.prototype.pointAt=function(e){return u(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=u(this.shape,e,!0);return o["m"](t,t)},t}(i["b"]);c.prototype.type="bezier-curve",t["a"]=c},ae69:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=o*n,l=a*n;e.moveTo(r-o,i),e.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),e.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),e.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),e.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),e.closePath()},t}(i["b"]);a.prototype.type="ellipse",t["a"]=a},b047:function(e,t,n){var r=n("1a8c"),i=n("408c"),o=n("b4b0"),a="Expected a function",s=Math.max,l=Math.min;function u(e,t,n){var u,c,d,f,h,p,g=0,v=!1,y=!1,m=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=u,r=c;return u=c=void 0,g=t,f=e.apply(r,n),f}function x(e){return g=e,h=setTimeout(S,t),v?b(e):f}function _(e){var n=e-p,r=e-g,i=t-n;return y?l(i,d-r):i}function w(e){var n=e-p,r=e-g;return void 0===p||n>=t||n<0||y&&r>=d}function S(){var e=i();if(w(e))return k(e);h=setTimeout(S,_(e))}function k(e){return h=void 0,m&&u?b(e):(u=c=void 0,f)}function O(){void 0!==h&&clearTimeout(h),g=0,u=p=c=h=void 0}function T(){return void 0===h?f:k(i())}function E(){var e=i(),n=w(e);if(u=arguments,c=this,p=e,n){if(void 0===h)return x(p);if(y)return clearTimeout(h),h=setTimeout(S,t),b(p)}return void 0===h&&(h=setTimeout(S,t)),f}return t=o(t)||0,r(n)&&(v=!!n.leading,y="maxWait"in n,d=y?s(o(n.maxWait)||0,t):d,m="trailing"in n?!!n.trailing:m),E.cancel=O,E.flush=T,E}e.exports=u},b12f:function(e,t,n){"use strict";var r=n("2dc5"),i=n("8918"),o=n("625e"),a=function(){function e(){this.group=new r["a"],this.uid=i["c"]("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();o["b"](a),o["c"](a),t["a"]=a},b311:function(e,t,n){
  43. /*!
  44. * clipboard.js v2.0.11
  45. * https://clipboardjs.com/
  46. *
  47. * Licensed MIT © Zeno Rocha
  48. */
  49. (function(t,n){e.exports=n()})(0,(function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return I}});var r=n(279),i=n.n(r),o=n(370),a=n.n(o),s=n(817),l=n.n(s);function u(e){try{return document.execCommand(e)}catch(t){return!1}}var c=function(e){var t=l()(e);return u("cut"),t},d=c;function f(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}var h=function(e,t){var n=f(e);t.container.appendChild(n);var r=l()(n);return u("copy"),n.remove(),r},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof e?n=h(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===e||void 0===e?void 0:e.type)?n=h(e.value,t):(n=l()(e),u("copy")),n},g=p;function v(e){return v="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},v(e)}var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,o=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==v(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?g(o,{container:r}):i?"cut"===n?d(i):g(i,{container:r}):void 0},m=y;function b(e){return b="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},b(e)}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t&&_(e.prototype,t),n&&_(e,n),e}function S(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function O(e){var t=C();return function(){var n,r=A(e);if(t){var i=A(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==b(t)&&"function"!==typeof t?E(e):t}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function M(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var L=function(e){S(n,e);var t=O(n);function n(e,r){var i;return x(this,n),i=t.call(this),i.resolveOptions(r),i.listenClick(e),i}return w(n,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof e.action?e.action:this.defaultAction,this.target="function"===typeof e.target?e.target:this.defaultTarget,this.text="function"===typeof e.text?e.text:this.defaultText,this.container="object"===b(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=a()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=m({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return M("action",e)}},{key:"defaultTarget",value:function(e){var t=M("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return M("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return g(e,t)}},{key:"cut",value:function(e){return d(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"===typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),n}(i()),I=L},828:function(e){var t=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(e,n){while(e&&e.nodeType!==t){if("function"===typeof e.matches&&e.matches(n))return e;e=e.parentNode}}e.exports=r},438:function(e,t,n){var r=n(828);function i(e,t,n,r,i){var o=a.apply(this,arguments);return e.addEventListener(n,o,i),{destroy:function(){e.removeEventListener(n,o,i)}}}function o(e,t,n,r,o){return"function"===typeof e.addEventListener?i.apply(null,arguments):"function"===typeof n?i.bind(null,document).apply(null,arguments):("string"===typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,o)})))}function a(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=o},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"===typeof e||e instanceof String},t.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},370:function(e,t,n){var r=n(879),i=n(438);function o(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return a(e,t,n);if(r.nodeList(e))return s(e,t,n);if(r.string(e))return l(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function s(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}function l(e,t,n){return i(document.body,e,t,n)}e.exports=o},817:function(e){function t(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}e.exports=t},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;for(r;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),n(686)}().default}))},b362:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("4a3f"),i=n("6d8b"),o=/cubic-bezier\(([0-9,\.e ]+)\)/;function a(e){var t=e&&o.exec(e);if(t){var n=t[1].split(","),a=+Object(i["T"])(n[0]),s=+Object(i["T"])(n[1]),l=+Object(i["T"])(n[2]),u=+Object(i["T"])(n[3]);if(isNaN(a+s+l+u))return;var c=[];return function(e){return e<=0?0:e>=1?1:Object(r["f"])(0,a,l,1,e,c)&&Object(r["a"])(0,s,u,1,c[0])}}}},b3c1:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=Math.round(9*Math.random()),i="function"===typeof Object.defineProperty,o=function(){function e(){this._id="__ec_inner_"+r++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return i?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype["delete"]=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),a=o,s=n("d51b"),l=n("6d8b"),u=n("3842"),c=n("a15a"),d=n("5210"),f=n("726e"),h=new a,p=new s["a"](100),g=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function v(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&h["delete"](e);var o=h.get(e);if(o)return o;var a=Object(l["i"])(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return v(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,h.set(e,s),e.dirty=!1,s;function v(e){for(var t,o=[n],s=!0,h=0;h<g.length;++h){var v=a[g[h]];if(null!=v&&!Object(l["t"])(v)&&!Object(l["C"])(v)&&!Object(l["z"])(v)&&"boolean"!==typeof v){s=!1;break}o.push(v)}if(s){t=o.join(",")+(i?"-svg":"");var w=p.get(t);w&&(i?e.svgElement=w:e.image=w)}var S,k=m(a.dashArrayX),O=b(a.dashArrayY),T=y(a.symbol),E=x(k),C=_(O),A=!i&&f["d"].createCanvas(),M=i&&{tag:"g",attrs:{},key:"dcl",children:[]},L=I();function I(){for(var e=1,t=0,n=E.length;t<n;++t)e=Object(u["d"])(e,E[t]);var r=1;for(t=0,n=T.length;t<n;++t)r=Object(u["d"])(r,T[t].length);e*=r;var i=C*E.length*T.length;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}function D(){S&&(S.clearRect(0,0,A.width,A.height),a.backgroundColor&&(S.fillStyle=a.backgroundColor,S.fillRect(0,0,A.width,A.height)));for(var e=0,t=0;t<O.length;++t)e+=O[t];if(!(e<=0)){var o=-C,s=0,l=0,u=0;while(o<L.height){if(s%2===0){var f=l/2%T.length,h=0,p=0,g=0;while(h<2*L.width){var v=0;for(t=0;t<k[u].length;++t)v+=k[u][t];if(v<=0)break;if(p%2===0){var y=.5*(1-a.symbolSize),m=h+k[u][p]*y,b=o+O[s]*y,x=k[u][p]*a.symbolSize,_=O[s]*a.symbolSize,w=g/2%T[f].length;E(m,b,x,_,T[f][w])}h+=k[u][p],++g,++p,p===k[u].length&&(p=0)}++u,u===k.length&&(u=0)}o+=O[s],++l,++s,s===O.length&&(s=0)}}function E(e,t,o,s,l){var u=i?1:n,f=Object(c["a"])(l,e*u,t*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var h=r.painter.renderOneToVNode(f);h&&M.children.push(h)}else Object(d["b"])(S,f)}}A&&(A.width=L.width*n,A.height=L.height*n,S=A.getContext("2d")),D(),s&&p.put(t,A||M),e.image=A,e.svgElement=M,e.svgWidth=L.width,e.svgHeight=L.height}}function y(e){if(!e||0===e.length)return[["rect"]];if(Object(l["C"])(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!Object(l["C"])(e[n])){t=!1;break}if(t)return y([e]);var r=[];for(n=0;n<e.length;++n)Object(l["C"])(e[n])?r.push([e[n]]):r.push(e[n]);return r}function m(e){if(!e||0===e.length)return[[0,0]];if(Object(l["z"])(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!Object(l["z"])(e[r])){n=!1;break}if(n)return m([e]);var i=[];for(r=0;r<e.length;++r)if(Object(l["z"])(e[r])){t=Math.ceil(e[r]);i.push([t,t])}else{t=Object(l["H"])(e[r],(function(e){return Math.ceil(e)}));t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function b(e){if(!e||"object"===typeof e&&0===e.length)return[0,0];if(Object(l["z"])(e)){var t=Math.ceil(e);return[t,t]}var n=Object(l["H"])(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}function x(e){return Object(l["H"])(e,(function(e){return _(e)}))}function _(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?2*t:t}},b4b0:function(e,t,n){var r=n("8d74"),i=n("1a8c"),o=n("ffd6"),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;function d(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}e.exports=d},b7d9:function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));var r=n("3842"),i=n("6d8b"),o=n("edae");function a(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||Object(i["z"])(e)||null==e||"-"===e||(e=+Object(r["n"])(e)),null==e||""===e?NaN:+e)}var s=Object(i["f"])({number:function(e){return parseFloat(e)},time:function(e){return+Object(r["n"])(e)},trim:function(e){return Object(i["C"])(e)?Object(i["T"])(e):e}});function l(e){return s.get(e)}var u={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},c=function(){function e(e,t){if(!Object(i["z"])(t)){var n="";0,Object(o["c"])(n)}this._opFn=u[e],this._rvalFloat=Object(r["m"])(t)}return e.prototype.evaluate=function(e){return Object(i["z"])(e)?this._opFn(e,this._rvalFloat):this._opFn(Object(r["m"])(e),this._rvalFloat)},e}(),d=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Object(i["z"])(e)?e:Object(r["m"])(e),o=Object(i["z"])(t)?t:Object(r["m"])(t),a=isNaN(n),s=isNaN(o);if(a&&(n=this._incomparable),s&&(o=this._incomparable),a&&s){var l=Object(i["C"])(e),u=Object(i["C"])(t);l&&(n=u?e:0),u&&(o=l?t:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},e}(),f=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Object(r["m"])(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=Object(r["m"])(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function h(e,t){return"eq"===e||"ne"===e?new f("eq"===e,t):Object(i["q"])(u,e)?new c(e,t):null}},b906:function(e,t,n){"use strict";n("a2a9")},bad2:function(e,t,n){},c7a2:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5");function o(e,t){var n,r,i,o,a,s=t.x,l=t.y,u=t.width,c=t.height,d=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof d?n=r=i=o=d:d instanceof Array?1===d.length?n=r=i=o=d[0]:2===d.length?(n=i=d[0],r=o=d[1]):3===d.length?(n=d[0],r=o=d[1],i=d[2]):(n=d[0],r=d[1],i=d[2],o=d[3]):n=r=i=o=0,n+r>u&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),r+i>c&&(a=r+i,r*=c/a,i*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var a=n("9cf9"),s=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),l={},u=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){var n,r,i,s;if(this.subPixelOptimize){var u=Object(a["c"])(l,t,this.style);n=u.x,r=u.y,i=u.width,s=u.height,u.r=t.r,t=u}else n=t.x,r=t.y,i=t.width,s=t.height;t.r?o(e,t):e.rect(n,r,i,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(i["b"]);u.prototype.type="rect";t["a"]=u},ca80:function(e,t,n){"use strict";var r=n("dce8"),i=[0,0],o=[0,0],a=new r["a"],s=new r["a"],l=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new r["a"];for(n=0;n<2;n++)this._axes[n]=new r["a"];e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,o=e.x,a=e.y,s=o+e.width,l=a+e.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),t)for(var u=0;u<4;u++)n[u].transform(t);r["a"].sub(i[0],n[1],n[0]),r["a"].sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,i=!t;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,e,a,s,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,a,s,i,-1)&&(n=!1,i)||i||r["a"].copy(t,n?a:s),n},e.prototype._intersectCheckOneSide=function(e,t,n,a,s,l){for(var u=!0,c=0;c<2;c++){var d=this._axes[c];if(this._getProjMinMaxOnAxis(c,e._corners,i),this._getProjMinMaxOnAxis(c,t._corners,o),i[1]<o[0]||i[0]>o[1]){if(u=!1,s)return u;var f=Math.abs(o[0]-i[1]),h=Math.abs(i[0]-o[1]);Math.min(f,h)>a.len()&&(f<h?r["a"].scale(a,d,-f*l):r["a"].scale(a,d,h*l))}else if(n){f=Math.abs(o[0]-i[1]),h=Math.abs(i[0]-o[1]);Math.min(f,h)<n.len()&&(f<h?r["a"].scale(n,d,f*l):r["a"].scale(n,d,-h*l))}}return u},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,o=t[0].dot(r)+i[e],a=o,s=o,l=1;l<t.length;l++){var u=t[l].dot(r)+i[e];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},e}();t["a"]=l},cb11:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=n("9cf9"),a={},s=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),l=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){var n,r,i,s;if(this.subPixelOptimize){var l=Object(o["b"])(a,t,this.style);n=l.x1,r=l.y1,i=l.x2,s=l.y2}else n=t.x1,r=t.y1,i=t.x2,s=t.y2;var u=t.percent;0!==u&&(e.moveTo(n,r),u<1&&(i=n*(1-u)+i*u,s=r*(1-u)+s*u),e.lineTo(i,s))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(i["b"]);l.prototype.type="line",t["a"]=l},cbe5:function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var r=n("9ab4"),i=n("19eb"),o=n("20c8"),a=n("9680"),s=n("4a3f");function l(e,t,n,r,i,o,a,l,u,c,d){if(0===u)return!1;var f=u;if(d>t+f&&d>r+f&&d>o+f&&d>l+f||d<t-f&&d<r-f&&d<o-f&&d<l-f||c>e+f&&c>n+f&&c>i+f&&c>a+f||c<e-f&&c<n-f&&c<i-f&&c<a-f)return!1;var h=s["e"](e,t,n,r,i,o,a,l,c,d,null);return h<=f/2}var u=n("68ab"),c=n("857d"),d=2*Math.PI;function f(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>n||f+u<n)return!1;if(Math.abs(r-i)%d<1e-4)return!0;if(o){var h=r;r=Object(c["a"])(i),i=Object(c["a"])(h)}else r=Object(c["a"])(r),i=Object(c["a"])(i);r>i&&(i+=d);var p=Math.atan2(l,s);return p<0&&(p+=d),p>=r&&p<=i||p+d>=r&&p+d<=i}var h=n("8728"),p=o["a"].CMD,g=2*Math.PI,v=1e-4;function y(e,t){return Math.abs(e-t)<v}var m=[-1,-1,-1],b=[-1,-1];function x(){var e=b[0];b[0]=b[1],b[1]=e}function _(e,t,n,r,i,o,a,l,u,c){if(c>t&&c>r&&c>o&&c>l||c<t&&c<r&&c<o&&c<l)return 0;var d=s["f"](t,r,o,l,c,m);if(0===d)return 0;for(var f=0,h=-1,p=void 0,g=void 0,v=0;v<d;v++){var y=m[v],_=0===y||1===y?.5:1,w=s["a"](e,n,i,a,y);w<u||(h<0&&(h=s["c"](t,r,o,l,b),b[1]<b[0]&&h>1&&x(),p=s["a"](t,r,o,l,b[0]),h>1&&(g=s["a"](t,r,o,l,b[1]))),2===h?y<b[0]?f+=p<t?_:-_:y<b[1]?f+=g<p?_:-_:f+=l<g?_:-_:y<b[0]?f+=p<t?_:-_:f+=l<p?_:-_)}return f}function w(e,t,n,r,i,o,a,l){if(l>t&&l>r&&l>o||l<t&&l<r&&l<o)return 0;var u=s["m"](t,r,o,l,m);if(0===u)return 0;var c=s["j"](t,r,o);if(c>=0&&c<=1){for(var d=0,f=s["h"](t,r,o,c),h=0;h<u;h++){var p=0===m[h]||1===m[h]?.5:1,g=s["h"](e,n,i,m[h]);g<a||(m[h]<c?d+=f<t?p:-p:d+=o<f?p:-p)}return d}p=0===m[0]||1===m[0]?.5:1,g=s["h"](e,n,i,m[0]);return g<a?0:o<t?p:-p}function S(e,t,n,r,i,o,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);m[0]=-l,m[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=g-1e-4){r=0,i=g;var c=o?1:-1;return a>=m[0]+e&&a<=m[1]+e?c:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=g,i+=g);for(var f=0,h=0;h<2;h++){var p=m[h];if(p+e>a){var v=Math.atan2(s,p);c=o?1:-1;v<0&&(v=g+v),(v>=r&&v<=i||v+g>=r&&v+g<=i)&&(v>Math.PI/2&&v<1.5*Math.PI&&(c=-c),f+=c)}}return f}function k(e,t,n,r,i){for(var o,s,c=e.data,d=e.len(),g=0,v=0,m=0,b=0,x=0,k=0;k<d;){var O=c[k++],T=1===k;switch(O===p.M&&k>1&&(n||(g+=Object(h["a"])(v,m,b,x,r,i))),T&&(v=c[k],m=c[k+1],b=v,x=m),O){case p.M:b=c[k++],x=c[k++],v=b,m=x;break;case p.L:if(n){if(a["a"](v,m,c[k],c[k+1],t,r,i))return!0}else g+=Object(h["a"])(v,m,c[k],c[k+1],r,i)||0;v=c[k++],m=c[k++];break;case p.C:if(n){if(l(v,m,c[k++],c[k++],c[k++],c[k++],c[k],c[k+1],t,r,i))return!0}else g+=_(v,m,c[k++],c[k++],c[k++],c[k++],c[k],c[k+1],r,i)||0;v=c[k++],m=c[k++];break;case p.Q:if(n){if(u["a"](v,m,c[k++],c[k++],c[k],c[k+1],t,r,i))return!0}else g+=w(v,m,c[k++],c[k++],c[k],c[k+1],r,i)||0;v=c[k++],m=c[k++];break;case p.A:var E=c[k++],C=c[k++],A=c[k++],M=c[k++],L=c[k++],I=c[k++];k+=1;var D=!!(1-c[k++]);o=Math.cos(L)*A+E,s=Math.sin(L)*M+C,T?(b=o,x=s):g+=Object(h["a"])(v,m,o,s,r,i);var j=(r-E)*M/A+E;if(n){if(f(E,C,M,L,L+I,D,t,j,i))return!0}else g+=S(E,C,M,L,L+I,D,j,i);v=Math.cos(L+I)*A+E,m=Math.sin(L+I)*M+C;break;case p.R:b=v=c[k++],x=m=c[k++];var P=c[k++],R=c[k++];if(o=b+P,s=x+R,n){if(a["a"](b,x,o,x,t,r,i)||a["a"](o,x,o,s,t,r,i)||a["a"](o,s,b,s,t,r,i)||a["a"](b,s,b,x,t,r,i))return!0}else g+=Object(h["a"])(o,x,o,s,r,i),g+=Object(h["a"])(b,s,b,x,r,i);break;case p.Z:if(n){if(a["a"](v,m,b,x,t,r,i))return!0}else g+=Object(h["a"])(v,m,b,x,r,i);v=b,m=x;break}}return n||y(m,x)||(g+=Object(h["a"])(v,m,b,x,r,i)||0),0!==g}function O(e,t,n){return k(e,0,!1,t,n)}function T(e,t,n,r){return k(e,t,!0,n,r)}var E=n("6d8b"),C=n("41ef"),A=n("2cf4c"),M=n("4bc4"),L=n("8582"),I=Object(E["i"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},i["b"]),D={style:Object(E["i"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},i["a"].style)},j=L["a"].concat(["invisible","culling","z","z2","zlevel","parent"]),P=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<j.length;++s)i[j[s]]=this[j[s]];i.__dirty|=M["a"]}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Object(E["F"])(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=t[o];"style"===o?this.style?Object(E["m"])(this.style,a):this.useStyle(a):"shape"===o?Object(E["m"])(this.shape,a):e.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(Object(E["C"])(e)){var t=Object(C["d"])(e,0);return t>.5?A["a"]:t>.2?A["c"]:A["d"]}if(e)return A["d"]}return A["a"]},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(E["C"])(t)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(C["d"])(e,0)<A["b"];if(r===i)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~M["b"]},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new o["a"](!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&M["b"])&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),T(o,a/s,e,t)))return!0}if(this.hasFill())return O(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=M["b"],this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:Object(E["m"])(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&M["b"])},t.prototype.createStyle=function(e){return Object(E["g"])(I,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(E["m"])({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(E["m"])({},r.shape),Object(E["m"])(s,n.shape)):(s=Object(E["m"])({},i?this.shape:r.shape),Object(E["m"])(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Object(E["m"])({},this.shape);for(var u={},c=Object(E["F"])(s),d=0;d<c.length;d++){var f=c[d];"object"===typeof s[f]?this.shape[f]=s[f]:u[f]=s[f]}this._transitionState(t,{shape:u},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return D},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return Object(r["a"])(n,t),n.prototype.getDefaultStyle=function(){return Object(E["d"])(e.style)},n.prototype.getDefaultShape=function(){return Object(E["d"])(e.shape)},n}(t);for(var i in e)"function"===typeof e[i]&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=M["a"]|M["c"]|M["b"]}(),t}(i["c"]);t["b"]=P},cccd:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("e0d3");function i(){var e=Object(r["o"])();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}},cd64:function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="f4a0")}({0:function(e,t){},"05cd":function(e,t){e.exports=class{constructor(){this.seen={}}slug(e){let t=e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){const e=t;do{this.seen[e]++,t=e+"-"+this.seen[e]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t}}},"064b":function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"0654":function(e,t,n){(function(t){var r;(function(){"use strict";r=function(e,n,r,i){i=i||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=i.flags||{},this.memoized={},this.loaded=!1;var o,a,s,l,u,c=this;function d(e,t){var n=c._readFile(e,null,i.asyncLoad);i.asyncLoad?n.then((function(e){t(e)})):t(n)}function f(e){n=e,r&&p()}function h(e){r=e,n&&p()}function p(){for(c.rules=c._parseAFF(n),c.compoundRuleCodes={},a=0,l=c.compoundRules.length;a<l;a++){var e=c.compoundRules[a];for(s=0,u=e.length;s<u;s++)c.compoundRuleCodes[e[s]]=[]}for(a in"ONLYINCOMPOUND"in c.flags&&(c.compoundRuleCodes[c.flags.ONLYINCOMPOUND]=[]),c.dictionaryTable=c._parseDIC(r),c.compoundRuleCodes)0===c.compoundRuleCodes[a].length&&delete c.compoundRuleCodes[a];for(a=0,l=c.compoundRules.length;a<l;a++){var t=c.compoundRules[a],o="";for(s=0,u=t.length;s<u;s++){var d=t[s];d in c.compoundRuleCodes?o+="("+c.compoundRuleCodes[d].join("|")+")":o+=d}c.compoundRules[a]=new RegExp(o,"i")}c.loaded=!0,i.asyncLoad&&i.loadedCallback&&i.loadedCallback(c)}return e&&(c.dictionary=e,n&&r?p():"undefined"!==typeof window&&"chrome"in window&&"extension"in window.chrome&&"getURL"in window.chrome.extension?(o=i.dictionaryPath?i.dictionaryPath:"typo/dictionaries",n||d(chrome.extension.getURL(o+"/"+e+"/"+e+".aff"),f),r||d(chrome.extension.getURL(o+"/"+e+"/"+e+".dic"),h)):(o=i.dictionaryPath?i.dictionaryPath:t+"/dictionaries",n||d(o+"/"+e+"/"+e+".aff",f),r||d(o+"/"+e+"/"+e+".dic",h))),this},r.prototype={load:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);return this},_readFile:function(e,t,r){if(t=t||"utf8","undefined"!==typeof XMLHttpRequest){var i,o=new XMLHttpRequest;return o.open("GET",e,r),r&&(i=new Promise((function(e,t){o.onload=function(){200===o.status?e(o.responseText):t(o.statusText)},o.onerror=function(){t(o.statusText)}}))),o.overrideMimeType&&o.overrideMimeType("text/plain; charset="+t),o.send(null),r?i:o.responseText}var a=n(0);try{if(a.existsSync(e))return a.readFileSync(e,t);console.log("Path "+e+" does not exist.")}catch(s){return console.log(s),""}},_parseAFF:function(e){var t,n,r,i,o,a,s,l,u={};e=this._removeAffixComments(e);var c=e.split(/\r?\n/);for(o=0,s=c.length;o<s;o++){t=c[o];var d=t.split(/\s+/),f=d[0];if("PFX"==f||"SFX"==f){var h=d[1],p=d[2];r=parseInt(d[3],10);var g=[];for(a=o+1,l=o+1+r;a<l;a++){n=c[a],i=n.split(/\s+/);var v=i[2],y=i[3].split("/"),m=y[0];"0"===m&&(m="");var b=this.parseRuleCodes(y[1]),x=i[4],_={};_.add=m,b.length>0&&(_.continuationClasses=b),"."!==x&&(_.match="SFX"===f?new RegExp(x+"$"):new RegExp("^"+x)),"0"!=v&&(_.remove="SFX"===f?new RegExp(v+"$"):v),g.push(_)}u[h]={type:f,combineable:"Y"==p,entries:g},o+=r}else if("COMPOUNDRULE"===f){for(r=parseInt(d[1],10),a=o+1,l=o+1+r;a<l;a++)t=c[a],i=t.split(/\s+/),this.compoundRules.push(i[1]);o+=r}else"REP"===f?(i=t.split(/\s+/),3===i.length&&this.replacementTable.push([i[1],i[2]])):this.flags[f]=d[1]}return u},_removeAffixComments:function(e){return e=e.replace(/^\s*#.*$/gm,""),e=e.replace(/^\s\s*/m,"").replace(/\s\s*$/m,""),e=e.replace(/\n{2,}/g,"\n"),e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),e},_parseDIC:function(e){e=this._removeDicComments(e);var t=e.split(/\r?\n/),n={};function r(e,t){n.hasOwnProperty(e)||(n[e]=null),t.length>0&&(null===n[e]&&(n[e]=[]),n[e].push(t))}for(var i=1,o=t.length;i<o;i++){var a=t[i];if(a){var s=a.split("/",2),l=s[0];if(s.length>1){var u=this.parseRuleCodes(s[1]);"NEEDAFFIX"in this.flags&&-1!=u.indexOf(this.flags.NEEDAFFIX)||r(l,u);for(var c=0,d=u.length;c<d;c++){var f=u[c],h=this.rules[f];if(h)for(var p=this._applyRule(l,h),g=0,v=p.length;g<v;g++){var y=p[g];if(r(y,[]),h.combineable)for(var m=c+1;m<d;m++){var b=u[m],x=this.rules[b];if(x&&x.combineable&&h.type!=x.type)for(var _=this._applyRule(y,x),w=0,S=_.length;w<S;w++){var k=_[w];r(k,[])}}}f in this.compoundRuleCodes&&this.compoundRuleCodes[f].push(l)}}else r(l.trim(),[])}}return n},_removeDicComments:function(e){return e=e.replace(/^\t.*$/gm,""),e},parseRuleCodes:function(e){if(!e)return[];if(!("FLAG"in this.flags))return e.split("");if("long"===this.flags.FLAG){for(var t=[],n=0,r=e.length;n<r;n+=2)t.push(e.substr(n,2));return t}return"num"===this.flags.FLAG?e.split(","):void 0},_applyRule:function(e,t){for(var n=t.entries,r=[],i=0,o=n.length;i<o;i++){var a=n[i];if(!a.match||e.match(a.match)){var s=e;if(a.remove&&(s=s.replace(a.remove,"")),"SFX"===t.type?s+=a.add:s=a.add+s,r.push(s),"continuationClasses"in a)for(var l=0,u=a.continuationClasses.length;l<u;l++){var c=this.rules[a.continuationClasses[l]];c&&(r=r.concat(this._applyRule(s,c)))}}}return r},check:function(e){if(!this.loaded)throw"Dictionary not loaded.";var t=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(this.checkExact(t))return!0;if(t.toUpperCase()===t){var n=t[0]+t.substring(1).toLowerCase();if(this.hasFlag(n,"KEEPCASE"))return!1;if(this.checkExact(n))return!0}var r=t.toLowerCase();if(r!==t){if(this.hasFlag(r,"KEEPCASE"))return!1;if(this.checkExact(r))return!0}return!1},checkExact:function(e){if(!this.loaded)throw"Dictionary not loaded.";var t,n,r=this.dictionaryTable[e];if("undefined"===typeof r){if("COMPOUNDMIN"in this.flags&&e.length>=this.flags.COMPOUNDMIN)for(t=0,n=this.compoundRules.length;t<n;t++)if(e.match(this.compoundRules[t]))return!0}else{if(null===r)return!0;if("object"===typeof r)for(t=0,n=r.length;t<n;t++)if(!this.hasFlag(e,"ONLYINCOMPOUND",r[t]))return!0}return!1},hasFlag:function(e,t,n){if(!this.loaded)throw"Dictionary not loaded.";return!(!(t in this.flags)||("undefined"===typeof n&&(n=Array.prototype.concat.apply([],this.dictionaryTable[e])),!n||-1===n.indexOf(this.flags[t])))},alphabet:"",suggest:function(e,t){if(!this.loaded)throw"Dictionary not loaded.";if(t=t||5,this.memoized.hasOwnProperty(e)){var n=this.memoized[e]["limit"];if(t<=n||this.memoized[e]["suggestions"].length<n)return this.memoized[e]["suggestions"].slice(0,t)}if(this.check(e))return[];for(var r=0,i=this.replacementTable.length;r<i;r++){var o=this.replacementTable[r];if(-1!==e.indexOf(o[0])){var a=e.replace(o[0],o[1]);if(this.check(a))return[a]}}var s=this;function l(e,t){var n,r,i,o,a,l={};if("string"==typeof e){var u=e;e={},e[u]=!0}for(var u in e)for(n=0,i=u.length+1;n<i;n++){var c=[u.substring(0,n),u.substring(n)];if(c[1]&&(a=c[0]+c[1].substring(1),t&&!s.check(a)||(a in l?l[a]+=1:l[a]=1)),c[1].length>1&&c[1][1]!==c[1][0]&&(a=c[0]+c[1][1]+c[1][0]+c[1].substring(2),t&&!s.check(a)||(a in l?l[a]+=1:l[a]=1)),c[1])for(r=0,o=s.alphabet.length;r<o;r++)s.alphabet[r]!=c[1].substring(0,1)&&(a=c[0]+s.alphabet[r]+c[1].substring(1),t&&!s.check(a)||(a in l?l[a]+=1:l[a]=1));if(c[1])for(r=0,o=s.alphabet.length;r<o;r++)a=c[0]+s.alphabet[r]+c[1],t&&!s.check(a)||(a in l?l[a]+=1:l[a]=1)}return l}function u(e){var n,r=l(e),i=l(r,!0),o=i;for(var a in r)s.check(a)&&(a in o?o[a]+=r[a]:o[a]=r[a]);var u=[];for(n in o)o.hasOwnProperty(n)&&u.push([n,o[n]]);function c(e,t){var n=e[1],r=t[1];return n<r?-1:n>r?1:t[0].localeCompare(e[0])}u.sort(c).reverse();var d=[],f="lowercase";e.toUpperCase()===e?f="uppercase":e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()===e&&(f="capitalized");var h=t;for(n=0;n<Math.min(h,u.length);n++)"uppercase"===f?u[n][0]=u[n][0].toUpperCase():"capitalized"===f&&(u[n][0]=u[n][0].substr(0,1).toUpperCase()+u[n][0].substr(1)),s.hasFlag(u[n][0],"NOSUGGEST")||-1!=d.indexOf(u[n][0])?h++:d.push(u[n][0]);return d}return s.alphabet="abcdefghijklmnopqrstuvwxyz",this.memoized[e]={suggestions:u(e),limit:t},this.memoized[e]["suggestions"]}}})(),e.exports=r}).call(this,"/")},"08ba":function(e,t,n){var r=n("d890"),i=n("064b"),o=n("3c10"),a=n("0fc1");for(var s in i){var l=r[s],u=l&&l.prototype;if(u&&u.forEach!==o)try{a(u,"forEach",o)}catch(c){u.forEach=o}}},"094f":function(e,t,n){const r=n("6c31"),i=n("7727"),o=n("5a9c"),a=n("155c"),s=n("f5ef"),l=n("05cd"),{merge:u,checkSanitizeDeprecation:c,escape:d}=n("322c"),{getDefaults:f,changeDefaults:h,defaults:p}=n("a8a2");function g(e,t,n){if("undefined"===typeof e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"===typeof t){n||(n=t,t=null),t=u({},g.defaults,t||{}),c(t);const a=t.highlight;let s,l,d=0;try{s=r.lex(e,t)}catch(o){return n(o)}l=s.length;const f=function(e){if(e)return t.highlight=a,n(e);let r;try{r=i.parse(s,t)}catch(o){e=o}return t.highlight=a,e?n(e):n(null,r)};if(!a||a.length<3)return f();if(delete t.highlight,!l)return f();for(;d<s.length;d++)(function(e){"code"!==e.type?--l||f():a(e.text,e.lang,(function(t,n){return t?f(t):null==n||n===e.text?--l||f():(e.text=n,e.escaped=!0,void(--l||f()))}))})(s[d])}else try{return t=u({},g.defaults,t||{}),c(t),i.parse(r.lex(e,t),t)}catch(o){if(o.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||g.defaults).silent)return"<p>An error occurred:</p><pre>"+d(o.message+"",!0)+"</pre>";throw o}}g.options=g.setOptions=function(e){return u(g.defaults,e),h(g.defaults),g},g.getDefaults=f,g.defaults=p,g.use=function(e){const t=u({},e);if(e.renderer){const n=g.defaults.renderer||new a;for(const t in e.renderer){const r=n[t];n[t]=(...i)=>{let o=e.renderer[t].apply(n,i);return!1===o&&(o=r.apply(n,i)),o}}t.renderer=n}if(e.tokenizer){const n=g.defaults.tokenizer||new o;for(const t in e.tokenizer){const r=n[t];n[t]=(...i)=>{let o=e.tokenizer[t].apply(n,i);return!1===o&&(o=r.apply(n,i)),o}}t.tokenizer=n}g.setOptions(t)},g.Parser=i,g.parser=i.parse,g.Renderer=a,g.TextRenderer=s,g.Lexer=r,g.lexer=r.lex,g.Tokenizer=o,g.Slugger=l,g.parse=g,e.exports=g},"0a60":function(e,t){t.f=Object.getOwnPropertySymbols},"0c3c":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"0e50":function(e,t,n){},"0fc1":function(e,t,n){var r=n("1e2c"),i=n("d910"),o=n("38b9");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},1025:function(e,t,n){var r=n("3a08"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},"155c":function(e,t,n){const{defaults:r}=n("a8a2"),{cleanUrl:i,escape:o}=n("322c");e.exports=class{constructor(e){this.options=e||r}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return r?'<pre><code class="'+this.options.langPrefix+o(r,!0)+'">'+(n?e:o(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:o(e,!0))+"</code></pre>"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul",i=t&&1!==n?' start="'+n+'"':"";return"<"+r+i+">\n"+e+"</"+r+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const n=t.header?"th":"td",r=t.align?"<"+n+' align="'+t.align+'">':"<"+n+">";return r+e+"</"+n+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(e=i(this.options.sanitize,this.options.baseUrl,e),null===e)return n;let r='<a href="'+o(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(e=i(this.options.sanitize,this.options.baseUrl,e),null===e)return n;let r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r}text(e){return e}}},"18f6":function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1944:function(e,t,n){var r=n("d890"),i=n("0fc1"),o=n("faa8"),a=n("e4db"),s=n("1025"),l=n("b702"),u=l.get,c=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),c(n).source=d.join("string"==typeof t?t:"")),e!==r?(l?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},"1b99":function(e,t,n){var r=n("d890");e.exports=r},"1bbd":function(e,t,n){"use strict";var r=n("9f67"),i=n("d910"),o=n("38b9");e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},"1c8b":function(e,t,n){var r=n("d890"),i=n("aa6b").f,o=n("0fc1"),a=n("1944"),s=n("e4db"),l=n("c69d"),u=n("e8d6");e.exports=function(e,t){var n,c,d,f,h,p,g=e.target,v=e.global,y=e.stat;if(c=v?r:y?r[g]||s(g,{}):(r[g]||{}).prototype,c)for(d in t){if(h=t[d],e.noTargetGet?(p=i(c,d),f=p&&p.value):f=c[d],n=u(v?d:g+(y?".":"#")+d,e.forced),!n&&void 0!==f){if(typeof h===typeof f)continue;l(h,f)}(e.sham||f&&f.sham)&&o(h,"sham",!0),a(c,d,h,e)}}},"1ca1":function(e,t,n){var r=n("a719"),i=n("74e7"),o=n("90fb"),a=o("species");e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"1e2c":function(e,t,n){var r=n("efe2");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"1ea7":function(e,t,n){var r=n("efe2"),i=n("90fb"),o=n("f594"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},2039:function(e,t,n){var r=n("1e2c"),i=n("efe2"),o=n("ae25");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},2118:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"21ed":function(e,t,n){(function(e){e(n("a564"))})((function(e){"use strict";function t(e){e.state.markedSelection&&e.operation((function(){u(e)}))}function n(e){e.state.markedSelection&&e.state.markedSelection.length&&e.operation((function(){s(e)}))}e.defineOption("styleSelectedText",!1,(function(r,i,o){var a=o&&o!=e.Init;i&&!a?(r.state.markedSelection=[],r.state.markedSelectionStyle="string"==typeof i?i:"CodeMirror-selectedtext",l(r),r.on("cursorActivity",t),r.on("change",n)):!i&&a&&(r.off("cursorActivity",t),r.off("change",n),s(r),r.state.markedSelection=r.state.markedSelectionStyle=null)}));var r=8,i=e.Pos,o=e.cmpPos;function a(e,t,n,a){if(0!=o(t,n))for(var s=e.state.markedSelection,l=e.state.markedSelectionStyle,u=t.line;;){var c=u==t.line?t:i(u,0),d=u+r,f=d>=n.line,h=f?n:i(d,0),p=e.markText(c,h,{className:l});if(null==a?s.push(p):s.splice(a++,0,p),f)break;u=d}}function s(e){for(var t=e.state.markedSelection,n=0;n<t.length;++n)t[n].clear();t.length=0}function l(e){s(e);for(var t=e.listSelections(),n=0;n<t.length;n++)a(e,t[n].from(),t[n].to())}function u(e){if(!e.somethingSelected())return s(e);if(e.listSelections().length>1)return l(e);var t=e.getCursor("start"),n=e.getCursor("end"),i=e.state.markedSelection;if(!i.length)return a(e,t,n);var u=i[0].find(),c=i[i.length-1].find();if(!u||!c||n.line-t.line<=r||o(t,c.to)>=0||o(n,u.from)<=0)return l(e);while(o(t,u.from)>0)i.shift().clear(),u=i[0].find();o(t,u.from)<0&&(u.to.line-t.line<r?(i.shift().clear(),a(e,t,u.to,0)):a(e,t,u.from,0));while(o(n,c.to)<0)i.pop().clear(),c=i[i.length-1].find();o(n,c.to)>0&&(n.line-c.from.line<r?(i.pop().clear(),a(e,c.from,n)):a(e,c.to,n))}}))},2732:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"27b3":function(e,t,n){var r=n("a564");r.commands.tabAndIndentMarkdownList=function(e){var t=e.listSelections(),n=t[0].head,r=e.getStateAfter(n.line),i=!1!==r.list;if(i)e.execCommand("indentMore");else if(e.options.indentWithTabs)e.execCommand("insertTab");else{var o=Array(e.options.tabSize+1).join(" ");e.replaceSelection(o)}},r.commands.shiftTabAndUnindentMarkdownList=function(e){var t=e.listSelections(),n=t[0].head,r=e.getStateAfter(n.line),i=!1!==r.list;if(i)e.execCommand("indentLess");else if(e.options.indentWithTabs)e.execCommand("insertTab");else{var o=Array(e.options.tabSize+1).join(" ");e.replaceSelection(o)}}},"27b5":function(e,t,n){var r=n("d910").f,i=n("faa8"),o=n("90fb"),a=o("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},"31e2":function(e,t,n){(function(e){e(n("a564"))})((function(e){"use strict";function t(e){var t=e.getWrapperElement();e.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:t.style.width,height:t.style.height},t.style.width="",t.style.height="auto",t.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",e.refresh()}function n(e){var t=e.getWrapperElement();t.className=t.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var n=e.state.fullScreenRestore;t.style.width=n.width,t.style.height=n.height,window.scrollTo(n.scrollLeft,n.scrollTop),e.refresh()}e.defineOption("fullScreen",!1,(function(r,i,o){o==e.Init&&(o=!1),!o!=!i&&(i?t(r):n(r))}))}))},"322c":function(e,t){const n=/[&<>"']/,r=/[&<>"']/g,i=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},s=e=>a[e];function l(e,t){if(t){if(n.test(e))return e.replace(r,s)}else if(i.test(e))return e.replace(o,s);return e}const u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function c(e){return e.replace(u,(e,t)=>(t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const d=/(^|[^\[])\^/g;function f(e,t){e=e.source||e,t=t||"";const n={replace:(t,r)=>(r=r.source||r,r=r.replace(d,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const h=/[^\w:]/g,p=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function g(e,t,n){if(e){let e;try{e=decodeURIComponent(c(n)).replace(h,"").toLowerCase()}catch(r){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!p.test(n)&&(n=x(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n}const v={},y=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function x(e,t){v[" "+e]||(y.test(e)?v[" "+e]=e+"/":v[" "+e]=k(e,"/",!0)),e=v[" "+e];const n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(m,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(b,"$1")+t:e+t}const _={exec:function(){}};function w(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function S(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;while(--i>=0&&"\\"===n[i])r=!r;return r?"|":" |"}),r=n.split(/ \|/);let i=0;if(r.length>t)r.splice(t);else while(r.length<t)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function k(e,t,n){const r=e.length;if(0===r)return"";let i=0;while(i<r){const o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.substr(0,r-i)}function O(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,i=0;for(;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return-1}function T(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}e.exports={escape:l,unescape:c,edit:f,cleanUrl:g,resolveUrl:x,noopTest:_,merge:w,splitCells:S,rtrim:k,findClosingBracket:O,checkSanitizeDeprecation:T}},3553:function(e,t,n){var r=n("2732");e.exports=function(e){return Object(r(e))}},3787:function(e,t,n){(function(e){e(n("a564"),n("fe5a"),n("d776"))})((function(e){"use strict";var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",(function(n,r){var i=0;function o(e){return e.code=!1,null}var a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var o=e.pos;e.eatWhile("`");var a=1+e.pos-o;return n.code?a===i&&(n.code=!1):(i=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==r.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(t)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:o},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var l in r)s[l]=r[l];return s.name="markdown",e.overlayMode(e.getMode(n,s),a)}),"markdown"),e.defineMIME("text/x-gfm","gfm")}))},"38b9":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"3a08":function(e,t,n){var r=n("d890"),i=n("e4db"),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},"3c10":function(e,t,n){"use strict";var r=n("5dfd").forEach,i=n("d7e1"),o=n("ff9c"),a=i("forEach"),s=o("forEach");e.exports=a&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"3da3":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4350:function(e,t,n){var r=n("90fb");t.f=r},"45af":function(e,t,n){var r=n("da10"),i=n("d88d"),o=n("e1d6"),a=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4cd0":function(e,t,n){"use strict";var r=n("0654");function i(e){e=e||{},"function"===typeof e.codeMirrorInstance&&"function"===typeof e.codeMirrorInstance.defineMode?(String.prototype.includes||(String.prototype.includes=function(){return-1!==String.prototype.indexOf.apply(this,arguments)}),e.codeMirrorInstance.defineMode("spell-checker",(function(t){if(!i.aff_loading){i.aff_loading=!0;var n=new XMLHttpRequest;n.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),n.onload=function(){4===n.readyState&&200===n.status&&(i.aff_data=n.responseText,i.num_loaded++,2==i.num_loaded&&(i.typo=new r("en_US",i.aff_data,i.dic_data,{platform:"any"})))},n.send(null)}if(!i.dic_loading){i.dic_loading=!0;var o=new XMLHttpRequest;o.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),o.onload=function(){4===o.readyState&&200===o.status&&(i.dic_data=o.responseText,i.num_loaded++,2==i.num_loaded&&(i.typo=new r("en_US",i.aff_data,i.dic_data,{platform:"any"})))},o.send(null)}var a='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',s={token:function(e){var t=e.peek(),n="";if(a.includes(t))return e.next(),null;while(null!=(t=e.peek())&&!a.includes(t))n+=t,e.next();return i.typo&&!i.typo.check(n)?"spell-error":null}},l=e.codeMirrorInstance.getMode(t,t.backdrop||"text/plain");return e.codeMirrorInstance.overlayMode(l,s,!0)}))):console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`")}i.num_loaded=0,i.aff_loading=!1,i.dic_loading=!1,i.aff_data="",i.dic_data="",i.typo,e.exports=i},"4d02":function(e,t,n){"use strict";var r=n("a564");n("7899"),n("27b3"),n("31e2"),n("fe5a"),n("d776"),n("f590"),n("21ed"),n("3787"),n("b2e0");var i=n("4cd0"),o=n("094f"),a=/Mac/.test(navigator.platform),s={toggleBold:m,toggleItalic:b,drawLink:L,toggleHeadingSmaller:S,toggleHeadingBigger:k,drawImage:I,toggleBlockquote:w,toggleOrderedList:A,toggleUnorderedList:C,toggleCodeBlock:_,togglePreview:B,toggleStrikethrough:x,toggleHeading1:O,toggleHeading2:T,toggleHeading3:E,cleanBlock:M,drawTable:D,drawHorizontalRule:j,undo:P,redo:R,toggleSideBySide:N,toggleFullScreen:y},l={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},u=function(e){for(var t in s)if(s[t]===e)return t;return null},c=function(){var e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e};function d(e){return e=a?e.replace("Ctrl","Cmd"):e.replace("Cmd","Ctrl"),e}function f(e,t,n){e=e||{};var r=document.createElement("a");return t=void 0==t||t,e.title&&t&&(r.title=p(e.title,e.action,n),a&&(r.title=r.title.replace("Ctrl","⌘"),r.title=r.title.replace("Alt","⌥"))),r.tabIndex=-1,r.className=e.className,r}function h(){var e=document.createElement("i");return e.className="separator",e.innerHTML="|",e}function p(e,t,n){var r,i=e;return t&&(r=u(t),n[r]&&(i+=" ("+d(n[r])+")")),i}function g(e,t){t=t||e.getCursor("start");var n=e.getTokenAt(t);if(!n.type)return{};for(var r,i,o=n.type.split(" "),a={},s=0;s<o.length;s++)r=o[s],"strong"===r?a.bold=!0:"variable-2"===r?(i=e.getLine(t.line),/^\s*\d+\.\s/.test(i)?a["ordered-list"]=!0:a["unordered-list"]=!0):"atom"===r?a.quote=!0:"em"===r?a.italic=!0:"quote"===r?a.quote=!0:"strikethrough"===r?a.strikethrough=!0:"comment"===r?a.code=!0:"link"===r?a.link=!0:"tag"===r?a.image=!0:r.match(/^header(\-[1-6])?$/)&&(a[r.replace("header","heading")]=!0);return a}var v="";function y(e){var t=e.codemirror;t.setOption("fullScreen",!t.getOption("fullScreen")),t.getOption("fullScreen")?(v=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=v;var n=t.getWrapperElement();/fullscreen/.test(n.previousSibling.className)?n.previousSibling.className=n.previousSibling.className.replace(/\s*fullscreen\b/,""):n.previousSibling.className+=" fullscreen";var r=e.toolbarElements.fullscreen;/active/.test(r.className)?r.className=r.className.replace(/\s*active\s*/g,""):r.className+=" active";var i=t.getWrapperElement().nextSibling;/editor-preview-active-side/.test(i.className)&&N(e)}function m(e){H(e,"bold",e.options.blockStyles.bold)}function b(e){H(e,"italic",e.options.blockStyles.italic)}function x(e){H(e,"strikethrough","~~")}function _(e){var t=e.options.blockStyles.code;function n(e){if("object"!==typeof e)throw"fencing_line() takes a 'line' object (not a line number, or line text). Got: "+typeof e+": "+e;return e.styles&&e.styles[2]&&-1!==e.styles[2].indexOf("formatting-code-block")}function r(e){return e.state.base.base||e.state.base}function i(e,t,i,o,a){i=i||e.getLineHandle(t),o=o||e.getTokenAt({line:t,ch:1}),a=a||!!i.text&&e.getTokenAt({line:t,ch:i.text.length-1});var s=o.type?o.type.split(" "):[];return a&&r(a).indentedCode?"indented":-1!==s.indexOf("comment")&&(r(o).fencedChars||r(a).fencedChars||n(i)?"fenced":"single")}function o(e,t,n,r){var i=t.line+1,o=n.line+1,a=t.line!==n.line,s=r+"\n",l="\n"+r;a&&o++,a&&0===n.ch&&(l=r+"\n",o--),F(e,!1,[s,l]),e.setSelection({line:i,ch:0},{line:o,ch:0})}var a,s,l,u=e.codemirror,c=u.getCursor("start"),d=u.getCursor("end"),f=u.getTokenAt({line:c.line,ch:c.ch||1}),h=u.getLineHandle(c.line),p=i(u,c.line,h,f);if("single"===p){var g=h.text.slice(0,c.ch).replace("`",""),v=h.text.slice(c.ch).replace("`","");u.replaceRange(g+v,{line:c.line,ch:0},{line:c.line,ch:99999999999999}),c.ch--,c!==d&&d.ch--,u.setSelection(c,d),u.focus()}else if("fenced"===p)if(c.line!==d.line||c.ch!==d.ch){for(a=c.line;a>=0;a--)if(h=u.getLineHandle(a),n(h))break;var y,m,b,x,_=u.getTokenAt({line:a,ch:1}),w=r(_).fencedChars;n(u.getLineHandle(c.line))?(y="",m=c.line):n(u.getLineHandle(c.line-1))?(y="",m=c.line-1):(y=w+"\n",m=c.line),n(u.getLineHandle(d.line))?(b="",x=d.line,0===d.ch&&(x+=1)):0!==d.ch&&n(u.getLineHandle(d.line+1))?(b="",x=d.line+1):(b=w+"\n",x=d.line+1),0===d.ch&&(x-=1),u.operation((function(){u.replaceRange(b,{line:x,ch:0},{line:x+(b?0:1),ch:0}),u.replaceRange(y,{line:m,ch:0},{line:m+(y?0:1),ch:0})})),u.setSelection({line:m+(y?1:0),ch:0},{line:x+(y?1:-1),ch:0}),u.focus()}else{var S=c.line;if(n(u.getLineHandle(c.line))&&("fenced"===i(u,c.line+1)?(a=c.line,S=c.line+1):(s=c.line,S=c.line-1)),void 0===a)for(a=S;a>=0;a--)if(h=u.getLineHandle(a),n(h))break;if(void 0===s)for(l=u.lineCount(),s=S;s<l;s++)if(h=u.getLineHandle(s),n(h))break;u.operation((function(){u.replaceRange("",{line:a,ch:0},{line:a+1,ch:0}),u.replaceRange("",{line:s-1,ch:0},{line:s,ch:0})})),u.focus()}else if("indented"===p){if(c.line!==d.line||c.ch!==d.ch)a=c.line,s=d.line,0===d.ch&&s--;else{for(a=c.line;a>=0;a--)if(h=u.getLineHandle(a),!h.text.match(/^\s*$/)&&"indented"!==i(u,a,h)){a+=1;break}for(l=u.lineCount(),s=c.line;s<l;s++)if(h=u.getLineHandle(s),!h.text.match(/^\s*$/)&&"indented"!==i(u,s,h)){s-=1;break}}var k=u.getLineHandle(s+1),O=k&&u.getTokenAt({line:s+1,ch:k.text.length-1}),T=O&&r(O).indentedCode;T&&u.replaceRange("\n",{line:s+1,ch:0});for(var E=a;E<=s;E++)u.indentLine(E,"subtract");u.focus()}else{var C=c.line===d.line&&c.ch===d.ch&&0===c.ch,A=c.line!==d.line;C||A?o(u,c,d,t):F(u,!1,["`","`"])}}function w(e){var t=e.codemirror;U(t,"quote")}function S(e){var t=e.codemirror;z(t,"smaller")}function k(e){var t=e.codemirror;z(t,"bigger")}function O(e){var t=e.codemirror;z(t,void 0,1)}function T(e){var t=e.codemirror;z(t,void 0,2)}function E(e){var t=e.codemirror;z(t,void 0,3)}function C(e){var t=e.codemirror;U(t,"unordered-list")}function A(e){var t=e.codemirror;U(t,"ordered-list")}function M(e){var t=e.codemirror;V(t)}function L(e){var t=e.codemirror,n=g(t),r=e.options,i="http://";if(r.promptURLs&&(i=prompt(r.promptTexts.link),!i))return!1;F(t,n.link,r.insertTexts.link,i)}function I(e){var t=e.codemirror,n=g(t),r=e.options,i="http://";if(r.promptURLs&&(i=prompt(r.promptTexts.image),!i))return!1;F(t,n.image,r.insertTexts.image,i)}function D(e){var t=e.codemirror,n=g(t),r=e.options;F(t,n.table,r.insertTexts.table)}function j(e){var t=e.codemirror,n=g(t),r=e.options;F(t,n.image,r.insertTexts.horizontalRule)}function P(e){var t=e.codemirror;t.undo(),t.focus()}function R(e){var t=e.codemirror;t.redo(),t.focus()}function N(e){var t=e.codemirror,n=t.getWrapperElement(),r=n.nextSibling,i=e.toolbarElements["side-by-side"],o=!1;/editor-preview-active-side/.test(r.className)?(r.className=r.className.replace(/\s*editor-preview-active-side\s*/g,""),i.className=i.className.replace(/\s*active\s*/g,""),n.className=n.className.replace(/\s*CodeMirror-sided\s*/g," ")):(setTimeout((function(){t.getOption("fullScreen")||y(e),r.className+=" editor-preview-active-side"}),1),i.className+=" active",n.className+=" CodeMirror-sided",o=!0);var a=n.lastChild;if(/editor-preview-active/.test(a.className)){a.className=a.className.replace(/\s*editor-preview-active\s*/g,"");var s=e.toolbarElements.preview,l=n.previousSibling;s.className=s.className.replace(/\s*active\s*/g,""),l.className=l.className.replace(/\s*disabled-for-preview*/g,"")}var u=function(){r.innerHTML=e.options.previewRender(e.value(),r)};t.sideBySideRenderingFunction||(t.sideBySideRenderingFunction=u),o?(r.innerHTML=e.options.previewRender(e.value(),r),t.on("update",t.sideBySideRenderingFunction)):t.off("update",t.sideBySideRenderingFunction),t.refresh()}function B(e){var t=e.codemirror,n=t.getWrapperElement(),r=n.previousSibling,i=!!e.options.toolbar&&e.toolbarElements.preview,o=n.lastChild;o&&/editor-preview/.test(o.className)||(o=document.createElement("div"),o.className="editor-preview",n.appendChild(o)),/editor-preview-active/.test(o.className)?(o.className=o.className.replace(/\s*editor-preview-active\s*/g,""),i&&(i.className=i.className.replace(/\s*active\s*/g,""),r.className=r.className.replace(/\s*disabled-for-preview*/g,""))):(setTimeout((function(){o.className+=" editor-preview-active"}),1),i&&(i.className+=" active",r.className+=" disabled-for-preview")),o.innerHTML=e.options.previewRender(e.value(),o);var a=t.getWrapperElement().nextSibling;/editor-preview-active-side/.test(a.className)&&N(e)}function F(e,t,n,r){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className)){var i,o=n[0],a=n[1],s=e.getCursor("start"),l=e.getCursor("end");r&&(a=a.replace("#url#",r)),t?(i=e.getLine(s.line),o=i.slice(0,s.ch),a=i.slice(s.ch),e.replaceRange(o+a,{line:s.line,ch:0})):(i=e.getSelection(),e.replaceSelection(o+i+a),s.ch+=o.length,s!==l&&(l.ch+=o.length)),e.setSelection(s,l),e.focus()}}function z(e,t,n){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className)){for(var r=e.getCursor("start"),i=e.getCursor("end"),o=r.line;o<=i.line;o++)(function(r){var i=e.getLine(r),o=i.search(/[^#]/);i=void 0!==t?o<=0?"bigger"==t?"###### "+i:"# "+i:6==o&&"smaller"==t?i.substr(7):1==o&&"bigger"==t?i.substr(2):"bigger"==t?i.substr(1):"#"+i:1==n?o<=0?"# "+i:o==n?i.substr(o+1):"# "+i.substr(o+1):2==n?o<=0?"## "+i:o==n?i.substr(o+1):"## "+i.substr(o+1):o<=0?"### "+i:o==n?i.substr(o+1):"### "+i.substr(o+1),e.replaceRange(i,{line:r,ch:0},{line:r,ch:99999999999999})})(o);e.focus()}}function U(e,t){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className)){for(var n=g(e),r=e.getCursor("start"),i=e.getCursor("end"),o={quote:/^(\s*)\>\s+/,"unordered-list":/^(\s*)(\*|\-|\+)\s+/,"ordered-list":/^(\s*)\d+\.\s+/},a={quote:"> ","unordered-list":"* ","ordered-list":"1. "},s=r.line;s<=i.line;s++)(function(r){var i=e.getLine(r);i=n[t]?i.replace(o[t],"$1"):a[t]+i,e.replaceRange(i,{line:r,ch:0},{line:r,ch:99999999999999})})(s);e.focus()}}function H(e,t,n,r){if(!/editor-preview-active/.test(e.codemirror.getWrapperElement().lastChild.className)){r="undefined"===typeof r?n:r;var i,o=e.codemirror,a=g(o),s=n,l=r,u=o.getCursor("start"),c=o.getCursor("end");a[t]?(i=o.getLine(u.line),s=i.slice(0,u.ch),l=i.slice(u.ch),"bold"==t?(s=s.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),l=l.replace(/(\*\*|__)/,"")):"italic"==t?(s=s.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),l=l.replace(/(\*|_)/,"")):"strikethrough"==t&&(s=s.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),l=l.replace(/(\*\*|~~)/,"")),o.replaceRange(s+l,{line:u.line,ch:0},{line:u.line,ch:99999999999999}),"bold"==t||"strikethrough"==t?(u.ch-=2,u!==c&&(c.ch-=2)):"italic"==t&&(u.ch-=1,u!==c&&(c.ch-=1))):(i=o.getSelection(),"bold"==t?(i=i.split("**").join(""),i=i.split("__").join("")):"italic"==t?(i=i.split("*").join(""),i=i.split("_").join("")):"strikethrough"==t&&(i=i.split("~~").join("")),o.replaceSelection(s+i+l),u.ch+=n.length,c.ch=u.ch+i.length),o.setSelection(u,c),o.focus()}}function V(e){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className))for(var t,n=e.getCursor("start"),r=e.getCursor("end"),i=n.line;i<=r.line;i++)t=e.getLine(i),t=t.replace(/^[ ]*([# ]+|\*|\-|[> ]+|[0-9]+(.|\)))[ ]*/,""),e.replaceRange(t,{line:i,ch:0},{line:i,ch:99999999999999})}function G(e,t){for(var n in t)t.hasOwnProperty(n)&&(t[n]instanceof Array?e[n]=t[n].concat(e[n]instanceof Array?e[n]:[]):null!==t[n]&&"object"===typeof t[n]&&t[n].constructor===Object?e[n]=G(e[n]||{},t[n]):e[n]=t[n]);return e}function q(e){for(var t=1;t<arguments.length;t++)e=G(e,arguments[t]);return e}function W(e){var t=/[a-zA-Z0-9_\u0392-\u03c9\u0410-\u04F9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,n=e.match(t),r=0;if(null===n)return r;for(var i=0;i<n.length;i++)n[i].charCodeAt(0)>=19968?r+=n[i].length:r+=1;return r}var Y={bold:{name:"bold",action:m,className:"fa fa-bold",title:"Bold",default:!0},italic:{name:"italic",action:b,className:"fa fa-italic",title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:x,className:"fa fa-strikethrough",title:"Strikethrough"},heading:{name:"heading",action:S,className:"fa fa-header",title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:S,className:"fa fa-header fa-header-x fa-header-smaller",title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:k,className:"fa fa-header fa-header-x fa-header-bigger",title:"Bigger Heading"},"heading-1":{name:"heading-1",action:O,className:"fa fa-header fa-header-x fa-header-1",title:"Big Heading"},"heading-2":{name:"heading-2",action:T,className:"fa fa-header fa-header-x fa-header-2",title:"Medium Heading"},"heading-3":{name:"heading-3",action:E,className:"fa fa-header fa-header-x fa-header-3",title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:_,className:"fa fa-code",title:"Code"},quote:{name:"quote",action:w,className:"fa fa-quote-left",title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:C,className:"fa fa-list-ul",title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:A,className:"fa fa-list-ol",title:"Numbered List",default:!0},"clean-block":{name:"clean-block",action:M,className:"fa fa-eraser fa-clean-block",title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:L,className:"fa fa-link",title:"Create Link",default:!0},image:{name:"image",action:I,className:"fa fa-picture-o",title:"Insert Image",default:!0},table:{name:"table",action:D,className:"fa fa-table",title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:j,className:"fa fa-minus",title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:B,className:"fa fa-eye no-disable",title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:N,className:"fa fa-columns no-disable no-mobile",title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:y,className:"fa fa-arrows-alt no-disable no-mobile",title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://simplemde.com/markdown-guide",className:"fa fa-question-circle",title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:P,className:"fa fa-undo no-disable",title:"Undo"},redo:{name:"redo",action:R,className:"fa fa-repeat no-disable",title:"Redo"}},K={link:["[","](#url#)"],image:["![](","#url#)"],table:["","\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"],horizontalRule:["","\n\n-----\n\n"]},X={link:"URL for the link:",image:"URL of the image:"},Z={bold:"**",code:"```",italic:"*"};function $(e){e=e||{},e.parent=this;var t=!0;if(!1===e.autoDownloadFontAwesome&&(t=!1),!0!==e.autoDownloadFontAwesome)for(var n=document.styleSheets,r=0;r<n.length;r++)n[r].href&&n[r].href.indexOf("//maxcdn.bootstrapcdn.com/font-awesome/")>-1&&(t=!1);if(t){var i=document.createElement("link");i.rel="stylesheet",i.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(i)}if(e.element)this.element=e.element;else if(null===e.element)return void console.log("SimpleMDE: Error. No element was found.");if(void 0===e.toolbar)for(var o in e.toolbar=[],Y)Y.hasOwnProperty(o)&&(-1!=o.indexOf("separator-")&&e.toolbar.push("|"),(!0===Y[o].default||e.showIcons&&e.showIcons.constructor===Array&&-1!=e.showIcons.indexOf(o))&&e.toolbar.push(o));e.hasOwnProperty("status")||(e.status=["autosave","lines","words","cursor"]),e.previewRender||(e.previewRender=function(e){return this.parent.markdown(e)}),e.parsingConfig=q({highlightFormatting:!0},e.parsingConfig||{}),e.insertTexts=q({},K,e.insertTexts||{}),e.promptTexts=X,e.blockStyles=q({},Z,e.blockStyles||{}),e.shortcuts=q({},l,e.shortcuts||{}),void 0!=e.autosave&&void 0!=e.autosave.unique_id&&""!=e.autosave.unique_id&&(e.autosave.uniqueId=e.autosave.unique_id),this.options=e,this.render(),!e.initialValue||this.options.autosave&&!0===this.options.autosave.foundSavedValue||this.value(e.initialValue)}function J(){if("object"!==typeof localStorage)return!1;try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch(e){return!1}return!0}$.prototype.markdown=function(e){if(o){var t={};return this.options&&this.options.renderingConfig&&!1===this.options.renderingConfig.singleLineBreaks?t.breaks=!1:t.breaks=!0,this.options&&this.options.renderingConfig&&!0===this.options.renderingConfig.codeSyntaxHighlighting&&window.hljs&&(t.highlight=function(e){return window.hljs.highlightAuto(e).value}),o.setOptions(t),o(e)}},$.prototype.render=function(e){if(e||(e=this.element||document.getElementsByTagName("textarea")[0]),!this._rendered||this._rendered!==e){this.element=e;var t,n,o=this.options,a=this,l={};for(var u in o.shortcuts)null!==o.shortcuts[u]&&null!==s[u]&&function(e){l[d(o.shortcuts[e])]=function(){s[e](a)}}(u);if(l["Enter"]="newlineAndIndentContinueMarkdownList",l["Tab"]="tabAndIndentMarkdownList",l["Shift-Tab"]="shiftTabAndUnindentMarkdownList",l["Esc"]=function(e){e.getOption("fullScreen")&&y(a)},document.addEventListener("keydown",(function(e){e=e||window.event,27==e.keyCode&&a.codemirror.getOption("fullScreen")&&y(a)}),!1),!1!==o.spellChecker?(t="spell-checker",n=o.parsingConfig,n.name="gfm",n.gitHubSpice=!1,i({codeMirrorInstance:r})):(t=o.parsingConfig,t.name="gfm",t.gitHubSpice=!1),this.codemirror=r.fromTextArea(e,{mode:t,backdrop:n,theme:"paper",tabSize:void 0!=o.tabSize?o.tabSize:2,indentUnit:void 0!=o.tabSize?o.tabSize:2,indentWithTabs:!1!==o.indentWithTabs,lineNumbers:!1,autofocus:!0===o.autofocus,extraKeys:l,lineWrapping:!1!==o.lineWrapping,allowDropFileTypes:["text/plain"],placeholder:o.placeholder||e.getAttribute("placeholder")||"",styleSelectedText:void 0==o.styleSelectedText||o.styleSelectedText}),!0===o.forceSync){var c=this.codemirror;c.on("change",(function(){c.save()}))}this.gui={},!1!==o.toolbar&&(this.gui.toolbar=this.createToolbar()),!1!==o.status&&(this.gui.statusbar=this.createStatusbar()),void 0!=o.autosave&&!0===o.autosave.enabled&&this.autosave(),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element;var f=this.codemirror;setTimeout(function(){f.refresh()}.bind(f),0)}},$.prototype.autosave=function(){if(J()){var e=this;if(void 0==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("SimpleMDE: You must set a uniqueId to use the autosave feature");null!=e.element.form&&void 0!=e.element.form&&e.element.form.addEventListener("submit",(function(){localStorage.removeItem("smde_"+e.options.autosave.uniqueId)})),!0!==this.options.autosave.loaded&&("string"==typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&""!=localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0),localStorage.setItem("smde_"+this.options.autosave.uniqueId,e.value());var t=document.getElementById("autosaved");if(null!=t&&void 0!=t&&""!=t){var n=new Date,r=n.getHours(),i=n.getMinutes(),o="am",a=r;a>=12&&(a=r-12,o="pm"),0==a&&(a=12),i=i<10?"0"+i:i,t.innerHTML="Autosaved: "+a+":"+i+" "+o}this.autosaveTimeoutId=setTimeout((function(){e.autosave()}),this.options.autosave.delay||1e4)}else console.log("SimpleMDE: localStorage not available, cannot autosave")},$.prototype.clearAutosavedValue=function(){if(J()){if(void 0==this.options.autosave||void 0==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("SimpleMDE: You must set a uniqueId to clear the autosave value");localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("SimpleMDE: localStorage not available, cannot autosave")},$.prototype.createSideBySide=function(){var e=this.codemirror,t=e.getWrapperElement(),n=t.nextSibling;n&&/editor-preview-side/.test(n.className)||(n=document.createElement("div"),n.className="editor-preview-side",t.parentNode.insertBefore(n,t.nextSibling));var r=!1,i=!1;return e.on("scroll",(function(e){if(r)r=!1;else{i=!0;var t=e.getScrollInfo().height-e.getScrollInfo().clientHeight,o=parseFloat(e.getScrollInfo().top)/t,a=(n.scrollHeight-n.clientHeight)*o;n.scrollTop=a}})),n.onscroll=function(){if(i)i=!1;else{r=!0;var t=n.scrollHeight-n.clientHeight,o=parseFloat(n.scrollTop)/t,a=(e.getScrollInfo().height-e.getScrollInfo().clientHeight)*o;e.scrollTo(0,a)}},n},$.prototype.createToolbar=function(e){if(e=e||this.options.toolbar,e&&0!==e.length){var t;for(t=0;t<e.length;t++)void 0!=Y[e[t]]&&(e[t]=Y[e[t]]);var n=document.createElement("div");n.className="editor-toolbar";var r=this,i={};for(r.toolbar=e,t=0;t<e.length;t++)if(("guide"!=e[t].name||!1!==r.options.toolbarGuideIcon)&&(!r.options.hideIcons||-1==r.options.hideIcons.indexOf(e[t].name))&&("fullscreen"!=e[t].name&&"side-by-side"!=e[t].name||!c())){if("|"===e[t]){for(var o=!1,a=t+1;a<e.length;a++)"|"===e[a]||r.options.hideIcons&&-1!=r.options.hideIcons.indexOf(e[a].name)||(o=!0);if(!o)continue}(function(e){var t;t="|"===e?h():f(e,r.options.toolbarTips,r.options.shortcuts),e.action&&("function"===typeof e.action?t.onclick=function(t){t.preventDefault(),e.action(r)}:"string"===typeof e.action&&(t.href=e.action,t.target="_blank")),i[e.name||e]=t,n.appendChild(t)})(e[t])}r.toolbarElements=i;var s=this.codemirror;s.on("cursorActivity",(function(){var e=g(s);for(var t in i)(function(t){var n=i[t];e[t]?n.className+=" active":"fullscreen"!=t&&"side-by-side"!=t&&(n.className=n.className.replace(/\s*active\s*/g,""))})(t)}));var l=s.getWrapperElement();return l.parentNode.insertBefore(n,l),n}},$.prototype.createStatusbar=function(e){e=e||this.options.status;var t=this.options,n=this.codemirror;if(e&&0!==e.length){var r,i,o,a=[];for(r=0;r<e.length;r++)if(i=void 0,o=void 0,"object"===typeof e[r])a.push({className:e[r].className,defaultValue:e[r].defaultValue,onUpdate:e[r].onUpdate});else{var s=e[r];"words"===s?(o=function(e){e.innerHTML=W(n.getValue())},i=function(e){e.innerHTML=W(n.getValue())}):"lines"===s?(o=function(e){e.innerHTML=n.lineCount()},i=function(e){e.innerHTML=n.lineCount()}):"cursor"===s?(o=function(e){e.innerHTML="0:0"},i=function(e){var t=n.getCursor();e.innerHTML=t.line+":"+t.ch}):"autosave"===s&&(o=function(e){void 0!=t.autosave&&!0===t.autosave.enabled&&e.setAttribute("id","autosaved")}),a.push({className:s,defaultValue:o,onUpdate:i})}var l=document.createElement("div");for(l.className="editor-statusbar",r=0;r<a.length;r++){var u=a[r],c=document.createElement("span");c.className=u.className,"function"===typeof u.defaultValue&&u.defaultValue(c),"function"===typeof u.onUpdate&&this.codemirror.on("update",function(e,t){return function(){t.onUpdate(e)}}(c,u)),l.appendChild(c)}var d=this.codemirror.getWrapperElement();return d.parentNode.insertBefore(l,d.nextSibling),l}},$.prototype.value=function(e){return void 0===e?this.codemirror.getValue():(this.codemirror.getDoc().setValue(e),this)},$.toggleBold=m,$.toggleItalic=b,$.toggleStrikethrough=x,$.toggleBlockquote=w,$.toggleHeadingSmaller=S,$.toggleHeadingBigger=k,$.toggleHeading1=O,$.toggleHeading2=T,$.toggleHeading3=E,$.toggleCodeBlock=_,$.toggleUnorderedList=C,$.toggleOrderedList=A,$.cleanBlock=M,$.drawLink=L,$.drawImage=I,$.drawTable=D,$.drawHorizontalRule=j,$.undo=P,$.redo=R,$.togglePreview=B,$.toggleSideBySide=N,$.toggleFullScreen=y,$.prototype.toggleBold=function(){m(this)},$.prototype.toggleItalic=function(){b(this)},$.prototype.toggleStrikethrough=function(){x(this)},$.prototype.toggleBlockquote=function(){w(this)},$.prototype.toggleHeadingSmaller=function(){S(this)},$.prototype.toggleHeadingBigger=function(){k(this)},$.prototype.toggleHeading1=function(){O(this)},$.prototype.toggleHeading2=function(){T(this)},$.prototype.toggleHeading3=function(){E(this)},$.prototype.toggleCodeBlock=function(){_(this)},$.prototype.toggleUnorderedList=function(){C(this)},$.prototype.toggleOrderedList=function(){A(this)},$.prototype.cleanBlock=function(){M(this)},$.prototype.drawLink=function(){L(this)},$.prototype.drawImage=function(){I(this)},$.prototype.drawTable=function(){D(this)},$.prototype.drawHorizontalRule=function(){j(this)},$.prototype.undo=function(){P(this)},$.prototype.redo=function(){R(this)},$.prototype.togglePreview=function(){B(this)},$.prototype.toggleSideBySide=function(){N(this)},$.prototype.toggleFullScreen=function(){y(this)},$.prototype.isPreviewActive=function(){var e=this.codemirror,t=e.getWrapperElement(),n=t.lastChild;return/editor-preview-active/.test(n.className)},$.prototype.isSideBySideActive=function(){var e=this.codemirror,t=e.getWrapperElement(),n=t.nextSibling;return/editor-preview-active-side/.test(n.className)},$.prototype.isFullscreenActive=function(){var e=this.codemirror;return e.getOption("fullScreen")},$.prototype.getState=function(){var e=this.codemirror;return g(e)},$.prototype.toTextArea=function(){var e=this.codemirror,t=e.getWrapperElement();t.parentNode&&(this.gui.toolbar&&t.parentNode.removeChild(this.gui.toolbar),this.gui.statusbar&&t.parentNode.removeChild(this.gui.statusbar),this.gui.sideBySide&&t.parentNode.removeChild(this.gui.sideBySide)),e.toTextArea(),this.autosaveTimeoutId&&(clearTimeout(this.autosaveTimeoutId),this.autosaveTimeoutId=void 0,this.clearAutosavedValue())},e.exports=$},"4fda":function(e,t,n){var r=n("6d7a");e.exports=r("navigator","userAgent")||""},"508f":function(e,t,n){},"5a9c":function(e,t,n){const{defaults:r}=n("a8a2"),{rtrim:i,splitCells:o,escape:a,findClosingBracket:s}=n("322c");function l(e,t,n){const r=t.href,i=t.title?a(t.title):null;return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:r,title:i,text:e[1]}:{type:"image",raw:n,text:a(e[1]),href:r,title:i}}e.exports=class{constructor(e){this.options=e||r}space(e){const t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}}code(e,t){const n=this.rules.block.code.exec(e);if(n){const e=t[t.length-1];if(e&&"paragraph"===e.type)return t.pop(),e.text+="\n"+n[0].trimRight(),e.raw+="\n"+n[0],e;{const e=n[0].replace(/^ {4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?e:i(e,"\n")}}}}fences(e){const t=this.rules.block.fences.exec(e);if(t)return{type:"code",raw:t[0],lang:t[2]?t[2].trim():t[2],text:t[3]||""}}heading(e){const t=this.rules.block.heading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}}nptable(e){const t=this.rules.block.nptable.exec(e);if(t){const e={type:"table",header:o(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(e.header.length===e.align.length){let t,n=e.align.length;for(t=0;t<n;t++)/^ *-+: *$/.test(e.align[t])?e.align[t]="right":/^ *:-+: *$/.test(e.align[t])?e.align[t]="center":/^ *:-+ *$/.test(e.align[t])?e.align[t]="left":e.align[t]=null;for(n=e.cells.length,t=0;t<n;t++)e.cells[t]=o(e.cells[t],e.header.length);return e}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],text:e}}}list(e){const t=this.rules.block.list.exec(e);if(t){let e=t[0];const n=t[2],r=n.length>1,i={type:"list",raw:e,ordered:r,start:r?+n:"",loose:!1,items:[]},o=t[0].match(this.rules.block.item);let a,s,l,u,c,d,f,h=!1;const p=o.length;for(let t=0;t<p;t++)a=o[t],e=a,s=a.length,a=a.replace(/^ *([*+-]|\d+\.) */,""),~a.indexOf("\n ")&&(s-=a.length,a=this.options.pedantic?a.replace(/^ {1,4}/gm,""):a.replace(new RegExp("^ {1,"+s+"}","gm"),"")),t!==p-1&&(l=this.rules.block.bullet.exec(o[t+1])[0],(n.length>1?1===l.length:l.length>1||this.options.smartLists&&l!==n)&&(u=o.slice(t+1).join("\n"),i.raw=i.raw.substring(0,i.raw.length-u.length),t=p-1)),c=h||/\n\n(?!\s*$)/.test(a),t!==p-1&&(h="\n"===a.charAt(a.length-1),c||(c=h)),c&&(i.loose=!0),d=/^\[[ xX]\] /.test(a),f=void 0,d&&(f=" "!==a[1],a=a.replace(/^\[[ xX]\] +/,"")),i.items.push({raw:e,task:d,checked:f,loose:c,text:a});return i}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):a(t[0]):t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));const e=t[1].toLowerCase().replace(/\s+/g," ");return{tag:e,raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:o(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r=e.align.length;for(n=0;n<r;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(r=e.cells.length,n=0;n<r;n++)e.cells[n]=o(e.cells[n].replace(/^ *\| *| *\| *$/g,""),e.header.length);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1]}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t)return{type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1]}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0]}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:a(t[1])}}tag(e,t,n){const r=this.rules.inline.tag.exec(e);if(r)return!t&&/^<a /i.test(r[0])?t=!0:t&&/^<\/a>/i.test(r[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):a(r[0]):r[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=s(t[2],"()");if(e>-1){const n=0===t[0].indexOf("!")?5:4,r=n+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e?(n=e[1],r=e[3]):r=""}else r=t[3]?t[3].slice(1,-1):"";n=n.trim().replace(/^<([\s\S]*)>$/,"$1");const i=l(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0]);return i}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}const r=l(n,e,n[0]);return r}}strong(e){const t=this.rules.inline.strong.exec(e);if(t)return{type:"strong",raw:t[0],text:t[4]||t[3]||t[2]||t[1]}}em(e){const t=this.rules.inline.em.exec(e);if(t)return{type:"em",raw:t[0],text:t[6]||t[5]||t[4]||t[3]||t[2]||t[1]}}codespan(e){const t=this.rules.inline.code.exec(e);if(t)return{type:"codespan",raw:t[0],text:a(t[2].trim(),!0)}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[1]}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=a(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=a(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=a(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=a(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t,n){const r=this.rules.inline.text.exec(e);if(r){let e;return e=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):a(r[0]):r[0]:a(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:e}}}}},"5dfd":function(e,t,n){var r=n("e349"),i=n("692f"),o=n("3553"),a=n("d88d"),s=n("1ca1"),l=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,c=4==e,d=6==e,f=5==e||d;return function(h,p,g,v){for(var y,m,b=o(h),x=i(b),_=r(p,g,3),w=a(x.length),S=0,k=v||s,O=t?k(h,w):n?k(h,0):void 0;w>S;S++)if((f||S in x)&&(y=x[S],m=_(y,S,b),e))if(t)O[S]=m;else if(m)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:l.call(O,y)}else if(c)return!1;return d?-1:u||c?c:O}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},"604f":function(e,t,n){var r=n("d890"),i=n("1025"),o=r.WeakMap;e.exports="function"===typeof o&&/native code/.test(i(o))},"692f":function(e,t,n){var r=n("efe2"),i=n("2118"),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},"6c31":function(e,t,n){const r=n("5a9c"),{defaults:i}=n("a8a2"),{block:o,inline:a}=n("ac30");function s(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function l(e){let t,n,r="";const i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}e.exports=class e{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.options.tokenizer=this.options.tokenizer||new r,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;const t={block:o.normal,inline:a.normal};this.options.pedantic?(t.block=o.pedantic,t.inline=a.pedantic):this.options.gfm&&(t.block=o.gfm,this.options.breaks?t.inline=a.breaks:t.inline=a.gfm),this.tokenizer.rules=t}static get rules(){return{block:o,inline:a}}static lex(t,n){const r=new e(n);return r.lex(t)}lex(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens}blockTokens(e,t=[],n=!0){let r,i,o;e=e.replace(/^ +$/gm,"");while(e)if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),r.type&&t.push(r);else if(r=this.tokenizer.code(e,t))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.nptable(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),r.tokens=this.blockTokens(r.text,[],n),t.push(r);else if(r=this.tokenizer.list(e)){for(e=e.substring(r.raw.length),o=r.items.length,i=0;i<o;i++)r.items[i].tokens=this.blockTokens(r.items[i].text,[],!1);t.push(r)}else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(n&&(r=this.tokenizer.def(e)))e=e.substring(r.raw.length),this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else if(n&&(r=this.tokenizer.paragraph(e)))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}return t}inline(e){let t,n,r,i,o,a;const s=e.length;for(t=0;t<s;t++)switch(a=e[t],a.type){case"paragraph":case"text":case"heading":a.tokens=[],this.inlineTokens(a.text,a.tokens);break;case"table":for(a.tokens={header:[],cells:[]},i=a.header.length,n=0;n<i;n++)a.tokens.header[n]=[],this.inlineTokens(a.header[n],a.tokens.header[n]);for(i=a.cells.length,n=0;n<i;n++)for(o=a.cells[n],a.tokens.cells[n]=[],r=0;r<o.length;r++)a.tokens.cells[n][r]=[],this.inlineTokens(o[r],a.tokens.cells[n][r]);break;case"blockquote":this.inline(a.tokens);break;case"list":for(i=a.items.length,n=0;n<i;n++)this.inline(a.items[n].tokens);break;default:}return e}inlineTokens(e,t=[],n=!1,r=!1){let i;while(e)if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e,n,r))e=e.substring(i.raw.length),n=i.inLink,r=i.inRawBlock,t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),"link"===i.type&&(i.tokens=this.inlineTokens(i.text,[],!0,r)),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),"link"===i.type&&(i.tokens=this.inlineTokens(i.text,[],!0,r)),t.push(i);else if(i=this.tokenizer.strong(e))e=e.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),t.push(i);else if(i=this.tokenizer.em(e))e=e.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),t.push(i);else if(i=this.tokenizer.autolink(e,l))e=e.substring(i.raw.length),t.push(i);else if(n||!(i=this.tokenizer.url(e,l))){if(i=this.tokenizer.inlineText(e,r,s))e=e.substring(i.raw.length),t.push(i);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(i.raw.length),t.push(i);return t}}},"6d28":function(e,t,n){var r=n("9b9d"),i=n("3a08");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"6d51":function(e,t,n){var r=n("1b99"),i=n("faa8"),o=n("4350"),a=n("d910").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},"6d60":function(e,t,n){var r,i=n("857c"),o=n("dbe8"),a=n("18f6"),s=n("d5a8"),l=n("6fdf"),u=n("ae25"),c=n("7db2"),d=">",f="<",h="prototype",p="script",g=c("IE_PROTO"),v=function(){},y=function(e){return f+p+d+e+f+"/"+p+d},m=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(y("document.F=Object")),e.close(),e.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}x=r?m(r):b();var e=a.length;while(e--)delete x[h][a[e]];return x()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[h]=i(e),n=new v,v[h]=null,n[g]=e):n=x(),void 0===t?n:o(n,t)}},"6d7a":function(e,t,n){var r=n("1b99"),i=n("d890"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},"6d86":function(e,t,n){(function(e){e(n("a564"))})((function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf("."),o=i>-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}}))},"6fdf":function(e,t,n){var r=n("6d7a");e.exports=r("document","documentElement")},"74cb":function(e,t,n){var r=n("c54b");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"74e7":function(e,t,n){var r=n("2118");e.exports=Array.isArray||function(e){return"Array"==r(e)}},7727:function(e,t,n){const r=n("155c"),i=n("f5ef"),o=n("05cd"),{defaults:a}=n("a8a2"),{unescape:s}=n("322c");e.exports=class e{constructor(e){this.options=e||a,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new i,this.slugger=new o}static parse(t,n){const r=new e(n);return r.parse(t)}parse(e,t=!0){let n,r,i,o,a,l,u,c,d,f,h,p,g,v,y,m,b,x,_="";const w=e.length;for(n=0;n<w;n++)switch(f=e[n],f.type){case"space":continue;case"hr":_+=this.renderer.hr();continue;case"heading":_+=this.renderer.heading(this.parseInline(f.tokens),f.depth,s(this.parseInline(f.tokens,this.textRenderer)),this.slugger);continue;case"code":_+=this.renderer.code(f.text,f.lang,f.escaped);continue;case"table":for(c="",u="",o=f.header.length,r=0;r<o;r++)u+=this.renderer.tablecell(this.parseInline(f.tokens.header[r]),{header:!0,align:f.align[r]});for(c+=this.renderer.tablerow(u),d="",o=f.cells.length,r=0;r<o;r++){for(l=f.tokens.cells[r],u="",a=l.length,i=0;i<a;i++)u+=this.renderer.tablecell(this.parseInline(l[i]),{header:!1,align:f.align[i]});d+=this.renderer.tablerow(u)}_+=this.renderer.table(c,d);continue;case"blockquote":d=this.parse(f.tokens),_+=this.renderer.blockquote(d);continue;case"list":for(h=f.ordered,p=f.start,g=f.loose,o=f.items.length,d="",r=0;r<o;r++)y=f.items[r],m=y.checked,b=y.task,v="",y.task&&(x=this.renderer.checkbox(m),g?"text"===y.tokens[0].type?(y.tokens[0].text=x+" "+y.tokens[0].text,y.tokens[0].tokens&&y.tokens[0].tokens.length>0&&"text"===y.tokens[0].tokens[0].type&&(y.tokens[0].tokens[0].text=x+" "+y.tokens[0].tokens[0].text)):y.tokens.unshift({type:"text",text:x}):v+=x),v+=this.parse(y.tokens,g),d+=this.renderer.listitem(v,b,m);_+=this.renderer.list(d,h,p);continue;case"html":_+=this.renderer.html(f.text);continue;case"paragraph":_+=this.renderer.paragraph(this.parseInline(f.tokens));continue;case"text":d=f.tokens?this.parseInline(f.tokens):f.text;while(n+1<w&&"text"===e[n+1].type)f=e[++n],d+="\n"+(f.tokens?this.parseInline(f.tokens):f.text);_+=t?this.renderer.paragraph(d):d;continue;default:{const e='Token with "'+f.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return _}parseInline(e,t){t=t||this.renderer;let n,r,i="";const o=e.length;for(n=0;n<o;n++)switch(r=e[n],r.type){case"escape":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;case"text":i+=t.text(r.text);break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}},7899:function(e,t,n){(function(e){e(n("a564"))})((function(e){"use strict";var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;function i(e,n){var r=n.line,i=0,o=0,a=t.exec(e.getLine(r)),s=a[1];do{i+=1;var l=r+i,u=e.getLine(l),c=t.exec(u);if(c){var d=c[1],f=parseInt(a[3],10)+i-o,h=parseInt(c[3],10),p=h;if(s!==d||isNaN(h)){if(s.length>d.length)return;if(s.length<d.length&&1===i)return;o+=1}else f===h&&(p=h+1),f>h&&(p=f+1),e.replaceRange(u.replace(t,d+p+c[4]+c[5]),{line:l,ch:0},{line:l,ch:u.length})}}while(c)}e.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return e.Pass;for(var a=o.listSelections(),s=[],l=0;l<a.length;l++){var u=a[l].head,c=o.getStateAfter(u.line),d=e.innerMode(o.getMode(),c);if("markdown"!==d.mode.name)return void o.execCommand("newlineAndIndent");c=d.state;var f=!1!==c.list,h=0!==c.quote,p=o.getLine(u.line),g=t.exec(p),v=/^\s*$/.test(p.slice(0,u.ch));if(!a[l].empty()||!f&&!h||!g||v)return void o.execCommand("newlineAndIndent");if(n.test(p)){var y=h&&/>\s*$/.test(p),m=!/>\s*$/.test(p);(y||m)&&o.replaceRange("",{line:u.line,ch:0},{line:u.line,ch:u.ch+1}),s[l]="\n"}else{var b=g[1],x=g[5],_=!(r.test(g[2])||g[2].indexOf(">")>=0),w=_?parseInt(g[3],10)+1+g[4]:g[2].replace("x"," ");s[l]="\n"+b+w+x,_&&i(o,u)}}o.replaceSelections(s)}}))},"7db2":function(e,t,n){var r=n("6d28"),i=n("7e8b"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},"7e8b":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},"857c":function(e,t,n){var r=n("a719");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"8d44":function(e,t,n){var r=n("6d7a"),i=n("b338"),o=n("0a60"),a=n("857c");e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},"90fb":function(e,t,n){var r=n("d890"),i=n("6d28"),o=n("faa8"),a=n("7e8b"),s=n("c54b"),l=n("74cb"),u=i("wks"),c=r.Symbol,d=l?c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(c,e)?u[e]=c[e]:u[e]=d("Symbol."+e)),u[e]}},"9b9d":function(e,t){e.exports=!1},"9edd":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},"9f67":function(e,t,n){var r=n("a719");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},a564:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),d=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),g=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),m=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),_=d&&e.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(d=!1,l=!0);var w=m&&(u||d&&(null==_||_<12.11)),S=n||a&&s>=9;function k(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var O,T=function(e,t){var n=e.className,r=k(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function E(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function C(e,t){return E(e).appendChild(t)}function A(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function M(e,t,n,r){var i=A(e,t,n,r);return i.setAttribute("role","presentation"),i}function L(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function I(){var e;try{e=document.activeElement}catch(t){e=document.body||null}while(e&&e.shadowRoot&&e.shadowRoot.activeElement)e=e.shadowRoot.activeElement;return e}function D(e,t){var n=e.className;k(t).test(n)||(e.className+=(n?" ":"")+t)}function j(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!k(n[r]).test(t)&&(t+=" "+n[r]);return t}O=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(i){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var P=function(e){e.select()};function R(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function N(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function B(e,t,n,r,i){null==t&&(t=e.search(/[^\s\u00a0]/),-1==t&&(t=e.length));for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?P=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(P=function(e){try{e.select()}catch(t){}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function z(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}F.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},F.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var U=30,H={toString:function(){return"CodeMirror.Pass"}},V={scroll:!1},G={origin:"*mouse"},q={origin:"+move"};function W(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var Y=[""];function K(e){while(Y.length<=e)Y.push(X(Y)+" ");return Y[e]}function X(e){return e[e.length-1]}function Z(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function $(e,t,n){var r=0,i=n(t);while(r<e.length&&n(e[r])<=i)r++;e.splice(r,0,t)}function J(){}function Q(e,t){var n;return Object.create?n=Object.create(e):(J.prototype=e,n=new J),t&&N(t,n),n}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){while((n<0?t>0:t<e.length)&&oe(e.charAt(t)))t+=n;return t}function se(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function le(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var ue=null;function ce(e,t,n){var r;ue=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ue=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ue=i)}return null!=r?r:ue}var de=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,d=[],f=0;f<c;++f)d.push(n(e.charCodeAt(f)));for(var h=0,p=u;h<c;++h){var g=d[h];"m"==g?d[h]=p:p=g}for(var v=0,y=u;v<c;++v){var m=d[v];"1"==m&&"r"==y?d[v]="n":o.test(m)&&(y=m,"r"==m&&(d[v]="R"))}for(var b=1,x=d[0];b<c-1;++b){var _=d[b];"+"==_&&"1"==x&&"1"==d[b+1]?d[b]="1":","!=_||x!=d[b+1]||"1"!=x&&"n"!=x||(d[b]=x),x=_}for(var w=0;w<c;++w){var S=d[w];if(","==S)d[w]="N";else if("%"==S){var k=void 0;for(k=w+1;k<c&&"%"==d[k];++k);for(var O=w&&"!"==d[w-1]||k<c&&"1"==d[k]?"1":"N",T=w;T<k;++T)d[T]=O;w=k-1}}for(var E=0,C=u;E<c;++E){var A=d[E];"L"==C&&"1"==A?d[E]="L":o.test(A)&&(C=A)}for(var M=0;M<c;++M)if(i.test(d[M])){var L=void 0;for(L=M+1;L<c&&i.test(d[L]);++L);for(var I="L"==(M?d[M-1]:u),D="L"==(L<c?d[L]:u),j=I==D?I?"L":"R":u,P=M;P<L;++P)d[P]=j;M=L-1}for(var R,N=[],B=0;B<c;)if(a.test(d[B])){var F=B;for(++B;B<c&&a.test(d[B]);++B);N.push(new l(0,F,B))}else{var z=B,U=N.length,H="rtl"==t?1:0;for(++B;B<c&&"L"!=d[B];++B);for(var V=z;V<B;)if(s.test(d[V])){z<V&&(N.splice(U,0,new l(1,z,V)),U+=H);var G=V;for(++V;V<B&&s.test(d[V]);++V);N.splice(U,0,new l(2,G,V)),U+=H,z=V}else++V;z<B&&N.splice(U,0,new l(1,z,B))}return"ltr"==t&&(1==N[0].level&&(R=e.match(/^\s+/))&&(N[0].from=R[0].length,N.unshift(new l(0,0,R[0].length))),1==X(N).level&&(R=e.match(/\s+$/))&&(X(N).to-=R[0].length,N.push(new l(0,c-R[0].length,c)))),"rtl"==t?N.reverse():N}}();function fe(e,t){var n=e.order;return null==n&&(n=e.order=de(e.text,t)),n}var he=[],pe=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||he).concat(n)}};function ge(e,t){return e._handlers&&e._handlers[t]||he}function ve(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=z(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ye(e,t){var n=ge(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function me(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ye(e,n||t.type,e,t),ke(t)||t.codemirrorIgnore}function be(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==z(n,t[r])&&n.push(t[r])}function xe(e,t){return ge(e,t).length>0}function _e(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){ve(this,e,t)}}function we(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ke(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Oe(e){we(e),Se(e)}function Te(e){return e.target||e.srcElement}function Ee(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),m&&e.ctrlKey&&1==t&&(t=3),t}var Ce,Ae,Me=function(){if(a&&s<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function Le(e){if(null==Ce){var t=A("span","​");C(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ce=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ce?A("span","​"):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ie(e){if(null!=Ae)return Ae;var t=C(e,document.createTextNode("AخA")),n=O(t,0,1).getBoundingClientRect(),r=O(t,1,2).getBoundingClientRect();return E(e),!(!n||n.left==n.right)&&(Ae=r.right-n.right<3)}var De=3!="\n\nb".split(/\n/).length?function(e){var t=0,n=[],r=e.length;while(t<=r){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Pe=function(){var e=A("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Re=null;function Ne(e){if(null!=Re)return Re;var t=C(e,A("span","x")),n=t.getBoundingClientRect(),r=O(t,0,1).getBoundingClientRect();return Re=Math.abs(n.left-r.left)>1}var Be={},Fe={};function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Be[e]=t}function Ue(e,t){Fe[e]=t}function He(e){if("string"==typeof e&&Fe.hasOwnProperty(e))e=Fe[e];else if(e&&"string"==typeof e.name&&Fe.hasOwnProperty(e.name)){var t=Fe[e.name];"string"==typeof t&&(t={name:t}),e=Q(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return He("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return He("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ve(e,t){t=He(t);var n=Be[t.name];if(!n)return Ve(e,"text/plain");var r=n(e,t);if(Ge.hasOwnProperty(t.name)){var i=Ge[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ge={};function qe(e,t){var n=Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={};N(t,n)}function We(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ye(e,t){var n;while(e.innerMode){if(n=e.innerMode(t),!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}var Xe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ze(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");var n=e;while(!n.lines)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function $e(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Je(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Qe(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function et(e){if(null==e.parent)return null;for(var t=e.parent,n=z(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;;++i){if(r.children[i]==t)break;n+=r.children[i].chunkSize()}return n+t.first}function tt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a],l=s.height;if(t<l)break;t-=l}return n+a}function nt(e,t){return t>=e.first&&t<e.first+e.size}function rt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function it(e,t,n){if(void 0===n&&(n=null),!(this instanceof it))return new it(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ot(e,t){return e.line-t.line||e.ch-t.ch}function at(e,t){return e.sticky==t.sticky&&0==ot(e,t)}function st(e){return it(e.line,e.ch)}function lt(e,t){return ot(e,t)<0?t:e}function ut(e,t){return ot(e,t)<0?e:t}function ct(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function dt(e,t){if(t.line<e.first)return it(e.first,0);var n=e.first+e.size-1;return t.line>n?it(n,Ze(e,n).text.length):ft(t,Ze(e,t.line).text.length)}function ft(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}function ht(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=dt(e,t[r]);return n}Xe.prototype.eol=function(){return this.pos>=this.string.length},Xe.prototype.sol=function(){return this.pos==this.lineStart},Xe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Xe.prototype.eat=function(e){var t,n=this.string.charAt(this.pos);if(t="string"==typeof e?n==e:n&&(e.test?e.test(n):e(n)),t)return++this.pos,n},Xe.prototype.eatWhile=function(e){var t=this.pos;while(this.eat(e));return this.pos>t},Xe.prototype.eatSpace=function(){var e=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>e},Xe.prototype.skipToEnd=function(){this.pos=this.string.length},Xe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Xe.prototype.backUp=function(e){this.pos-=e},Xe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=B(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?B(this.string,this.lineStart,this.tabSize):0)},Xe.prototype.indentation=function(){return B(this.string,null,this.tabSize)-(this.lineStart?B(this.string,this.lineStart,this.tabSize):0)},Xe.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(i(o)==i(e))return!1!==t&&(this.pos+=e.length),!0},Xe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Xe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Xe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},gt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function vt(e,t,n,r){var i=[e.state.modeGen],o={};Ot(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Ot(e,t.text,s.mode,n,(function(e,t){var n=l;while(u<e){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function yt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=mt(e,et(t)),i=t.text.length>e.options.maxHighlightLength&&We(e.doc.mode,r.state),o=vt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function mt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new gt(r,!0,t);var o=Tt(e,t,n),a=o>r.first&&Ze(r,o-1).stateAfter,s=a?gt.fromSaved(r,a,o):new gt(r,Ke(r.mode),o);return r.iter(o,t,(function(n){bt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function bt(e,t,n,r){var i=e.doc.mode,o=new Xe(t,e.options.tabSize,n);o.start=o.pos=r||0,""==t&&xt(i,n.state);while(!o.eol())_t(i,o,n.state),o.start=o.pos}function xt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ye(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function _t(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ye(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}gt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},gt.prototype.baseToken=function(e){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=e)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gt.fromSaved=function(e,t,n){return t instanceof pt?new gt(e,We(e.mode,t.state),n,t.lookAhead):new gt(e,We(e.mode,t),n)},gt.prototype.save=function(e){var t=!1!==e?We(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var wt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function St(e,t,n,r){var i,o=e.doc,a=o.mode;t=dt(o,t);var s,l=Ze(o,t.line),u=mt(e,t.line,n),c=new Xe(l.text,e.options.tabSize,u);r&&(s=[]);while((r||c.pos<t.ch)&&!c.eol())c.start=c.pos,i=_t(a,c,u.state),r&&s.push(new wt(c,i,We(o.mode,u.state)));return r?s:new wt(c,i,u.state)}function kt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Ot(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,d=new Xe(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];""==t&&kt(xt(n,r.state),o);while(!d.eol()){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&bt(e,t,r,d.pos),d.pos=t.length,l=null):l=kt(_t(n,d,r.state,f),o),f){var h=f[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||c!=l){while(u<d.start)u=Math.min(d.start,u+5e3),i(u,c);c=l}d.start=d.pos}while(u<d.pos){var p=Math.min(d.pos,u+5e3);i(p,c),u=p}}function Tt(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Ze(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof pt?u.lookAhead:0)<=o.modeFrontier))return s;var c=B(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}function Et(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Ze(e,r).stateAfter;if(i&&(!(i instanceof pt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Ct=!1,At=!1;function Mt(){Ct=!0}function Lt(){At=!0}function It(e,t,n){this.marker=e,this.from=t,this.to=n}function Dt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function jt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Pt(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Rt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);if(s||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var l=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new It(a,o.from,l?null:o.to))}}return r}function Nt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);if(s||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new It(a,l?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Bt(e,t){if(t.full)return null;var n=nt(e,t.from.line)&&Ze(e,t.from.line).markedSpans,r=nt(e,t.to.line)&&Ze(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==ot(t.from,t.to),s=Rt(n,i,a),l=Nt(r,o,a),u=1==t.text.length,c=X(t.text).length+(u?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var h=Dt(l,f.marker);h?u&&(f.to=null==h.to?null:h.to+c):f.to=i}}if(l)for(var p=0;p<l.length;++p){var g=l[p];if(null!=g.to&&(g.to+=c),null==g.from){var v=Dt(s,g.marker);v||(g.from=c,u&&(s||(s=[])).push(g))}else g.from+=c,u&&(s||(s=[])).push(g)}s&&(s=Ft(s)),l&&l!=s&&(l=Ft(l));var y=[s];if(!u){var m,b=t.text.length-2;if(b>0&&s)for(var x=0;x<s.length;++x)null==s[x].to&&(m||(m=[])).push(new It(s[x].marker,null,null));for(var _=0;_<b;++_)y.push(m);y.push(l)}return y}function Ft(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function zt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=z(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(ot(u.to,s.from)<0||ot(u.from,s.to)>0)){var c=[l,1],d=ot(u.from,s.from),f=ot(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}function Ut(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ht(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Vt(e){return e.inclusiveLeft?-1:0}function Gt(e){return e.inclusiveRight?1:0}function qt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=ot(r.from,i.from)||Vt(e)-Vt(t);if(o)return-o;var a=ot(r.to,i.to)||Gt(e)-Gt(t);return a||t.id-e.id}function Wt(e,t){var n,r=At&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)i=r[o],i.marker.collapsed&&null==(t?i.from:i.to)&&(!n||qt(n,i.marker)<0)&&(n=i.marker);return n}function Yt(e){return Wt(e,!0)}function Kt(e){return Wt(e,!1)}function Xt(e,t){var n,r=At&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||qt(n,o.marker)<0)&&(n=o.marker)}return n}function Zt(e,t,n,r,i){var o=Ze(e,t),a=At&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=ot(u.from,n)||Vt(l.marker)-Vt(i),d=ot(u.to,r)||Gt(l.marker)-Gt(i);if(!(c>=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.to,n)>=0:ot(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.from,r)<=0:ot(u.from,r)<0)))return!0}}}function $t(e){var t;while(t=Yt(e))e=t.find(-1,!0).line;return e}function Jt(e){var t;while(t=Kt(e))e=t.find(1,!0).line;return e}function Qt(e){var t,n;while(t=Kt(e))e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function en(e,t){var n=Ze(e,t),r=$t(n);return n==r?t:et(r)}function tn(e,t){if(t>e.lastLine())return t;var n,r=Ze(e,t);if(!nn(e,r))return t;while(n=Kt(r))r=n.find(1,!0).line;return et(r)+1}function nn(e,t){var n=At&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&rn(e,t,r))return!0}}function rn(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return rn(e,r.line,Dt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&rn(e,t,i))return!0}function on(e){e=$t(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;n=o,o=n.parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function an(e){if(0==e.height)return 0;var t,n=e.text.length,r=e;while(t=Yt(r)){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}r=e;while(t=Kt(r)){var o=t.find(0,!0);n-=r.text.length-o.from.ch,r=o.to.line,n+=r.text.length-o.to.ch}return n}function sn(e){var t=e.display,n=e.doc;t.maxLine=Ze(n,n.first),t.maxLineLength=an(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=an(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var ln=function(e,t,n){this.text=e,Ht(this,t),this.height=n?n(this):1};function un(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ut(e),Ht(e,n);var i=r?r(e):1;i!=e.height&&Qe(e,i)}function cn(e){e.parent=null,Ut(e)}ln.prototype.lineNo=function(){return et(this)},_e(ln);var dn={},fn={};function hn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?fn:dn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function pn(e,t){var n=M("span",null,null,l?"padding-right: .1px":null),r={pre:M("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=vn,Ie(e.display.measure)&&(a=fe(o,e.doc.direction))&&(r.addToken=mn(r.addToken,a)),r.map=[];var s=t!=e.display.externalMeasured&&et(o);xn(o,r,yt(e,o,s)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=j(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=j(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Le(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var u=r.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ye(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=j(r.pre.className,r.textClass||"")),r}function gn(e){var t=A("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function vn(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?yn(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){u=document.createDocumentFragment();var h=0;while(1){d.lastIndex=h;var p=d.exec(t),g=p?p.index-h:t.length-h;if(g){var v=document.createTextNode(c.slice(h,h+g));a&&s<9?u.appendChild(A("span",[v])):u.appendChild(v),e.map.push(e.pos,e.pos+g,v),e.col+=g,e.pos+=g}if(!p)break;h+=g+1;var y=void 0;if("\t"==p[0]){var m=e.cm.options.tabSize,b=m-e.col%m;y=u.appendChild(A("span",K(b),"cm-tab")),y.setAttribute("role","presentation"),y.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?(y=u.appendChild(A("span","\r"==p[0]?"␍":"␤","cm-invalidchar")),y.setAttribute("cm-text",p[0]),e.col+=1):(y=e.cm.options.specialCharPlaceholder(p[0]),y.setAttribute("cm-text",p[0]),a&&s<9?u.appendChild(A("span",[y])):u.appendChild(y),e.col+=1);e.map.push(e.pos,e.pos+1,y),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||f||o){var x=n||"";r&&(x+=r),i&&(x+=i);var _=A("span",[u],x,o);if(l)for(var w in l)l.hasOwnProperty(w)&&"style"!=w&&"class"!=w&&_.setAttribute(w,l[w]);return e.content.appendChild(_)}e.content.appendChild(u)}}function yn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function mn(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var d=void 0,f=0;f<t.length;f++)if(d=t[f],d.to>u&&d.from<=u)break;if(d.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-u),i,o,null,s,l),o=null,r=r.slice(d.to-u),u=d.to}}}function bn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function xn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,d,f,h=i.length,p=0,g=1,v="",y=0;;){if(y==p){l=u=c=s="",f=null,d=null,y=1/0;for(var m=[],b=void 0,x=0;x<r.length;++x){var _=r[x],w=_.marker;if("bookmark"==w.type&&_.from==p&&w.widgetNode)m.push(w);else if(_.from<=p&&(null==_.to||_.to>p||w.collapsed&&_.to==p&&_.from==p)){if(null!=_.to&&_.to!=p&&y>_.to&&(y=_.to,u=""),w.className&&(l+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&_.from==p&&(c+=" "+w.startStyle),w.endStyle&&_.to==y&&(b||(b=[])).push(w.endStyle,_.to),w.title&&((f||(f={})).title=w.title),w.attributes)for(var S in w.attributes)(f||(f={}))[S]=w.attributes[S];w.collapsed&&(!d||qt(d.marker,w)<0)&&(d=_)}else _.from>p&&y>_.from&&(y=_.from)}if(b)for(var k=0;k<b.length;k+=2)b[k+1]==y&&(u+=" "+b[k]);if(!d||d.from==p)for(var O=0;O<m.length;++O)bn(t,0,m[O]);if(d&&(d.from||0)==p){if(bn(t,(null==d.to?h+1:d.to)-p,d.marker,null==d.from),null==d.to)return;d.to==p&&(d=!1)}}if(p>=h)break;var T=Math.min(h,y);while(1){if(v){var E=p+v.length;if(!d){var C=E>T?v.slice(0,T-p):v;t.addToken(t,C,a?a+l:l,c,p+C.length==y?u:"",s,f)}if(E>=T){v=v.slice(T-p),p=T;break}p=E,c=""}v=i.slice(o,o=n[g++]),a=hn(n[g++],t.cm.options)}}else for(var A=1;A<n.length;A+=2)t.addToken(t,i.slice(o,o=n[A]),hn(n[A+1],t.cm.options))}function _n(e,t,n){this.line=t,this.rest=Qt(t),this.size=this.rest?et(X(this.rest))-n+1:1,this.node=this.text=null,this.hidden=nn(e,t)}function wn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new _n(e.doc,Ze(e.doc,o),o);r=o+a.size,i.push(a)}return i}var Sn=null;function kn(e){Sn?Sn.ops.push(e):e.ownsGroup=Sn={ops:[e],delayedCallbacks:[]}}function On(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)while(i.cursorActivityCalled<i.cursorActivityHandlers.length)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function Tn(e,t){var n=e.ownsGroup;if(n)try{On(n)}finally{Sn=null,t(n)}}var En=null;function Cn(e,t){var n=ge(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);Sn?r=Sn.delayedCallbacks:En?r=En:(r=En=[],setTimeout(An,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function An(){var e=En;En=null;for(var t=0;t<e.length;++t)e[t]()}function Mn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?jn(e,t):"gutter"==o?Rn(e,t,n,r):"class"==o?Pn(e,t):"widget"==o&&Nn(e,t,r)}t.changes=null}function Ln(e){return e.node==e.text&&(e.node=A("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function In(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Ln(t);t.background=r.insertBefore(A("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Dn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):pn(e,t)}function jn(e,t){var n=t.text.className,r=Dn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Pn(e,t)):n&&(t.text.className=n)}function Pn(e,t){In(e,t),t.line.wrapClass?Ln(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Rn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Ln(t);t.gutterBackground=A("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=Ln(t),s=t.gutter=A("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(A("div",rt(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(A("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function Nn(e,t,n){t.alignable&&(t.alignable=null);for(var r=k("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Fn(e,t,n)}function Bn(e,t,n,r){var i=Dn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Pn(e,t),Rn(e,t,n,r),Fn(e,t,r),t.node}function Fn(e,t,n){if(zn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)zn(e,t.rest[r],t,n,!1)}function zn(e,t,n,r,i){if(t.widgets)for(var o=Ln(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],u=A("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Un(l,u,n,r),e.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),Cn(l,"redraw")}}function Un(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Hn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!L(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),C(t.display.measure,A("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Vn(e,t){for(var n=Te(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Gn(e){return e.lineSpace.offsetTop}function qn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Wn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=C(e.measure,A("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Yn(e){return U-e.display.nativeBarWidth}function Kn(e){return e.display.scroller.clientWidth-Yn(e)-e.display.barWidth}function Xn(e){return e.display.scroller.clientHeight-Yn(e)-e.display.barHeight}function Zn(e,t,n){var r=e.options.lineWrapping,i=r&&Kn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function $n(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(et(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Jn(e,t){t=$t(t);var n=et(t),r=e.display.externalMeasured=new _n(e.doc,t,n);r.lineN=n;var i=r.built=pn(e,r);return r.text=i.pre,C(e.display.lineMeasure,i.pre),r}function Qn(e,t,n,r){return nr(e,tr(e,t),n,r)}function er(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Pr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function tr(e,t){var n=et(t),r=er(e,n);r&&!r.text?r=null:r&&r.changes&&(Mn(e,r,n,Mr(e)),e.curOp.forceUpdate=!0),r||(r=Jn(e,t));var i=$n(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function nr(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Zn(e,t.view,t.rect),t.hasHeights=!0),o=sr(e,t,n,r),o.bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var rr,ir={left:0,right:0,top:0,bottom:0};function or(e,t,n){for(var r,i,o,a,s,l,u=0;u<e.length;u+=3)if(s=e[u],l=e[u+1],t<s?(i=0,o=1,a="left"):t<l?(i=t-s,o=i+1):(u==e.length-3||t==l&&e[u+3]>t)&&(o=l-s,i=o-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)while(u&&e[u-2]==e[u-3]&&e[u-1].insertLeft)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)while(u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft)r=e[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function ar(e,t){var n=ir;if("left"==t){for(var r=0;r<e.length;r++)if((n=e[r]).left!=n.right)break}else for(var i=e.length-1;i>=0;i--)if((n=e[i]).left!=n.right)break;return n}function sr(e,t,n,r){var i,o=or(t.map,n,r),l=o.node,u=o.start,c=o.end,d=o.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){while(u&&oe(t.line.text.charAt(o.coverStart+u)))--u;while(o.coverStart+c<o.coverEnd&&oe(t.line.text.charAt(o.coverStart+c)))++c;if(i=a&&s<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():ar(O(l,u,c).getClientRects(),r),i.left||i.right||0==u)break;c=u,u-=1,d="right"}a&&s<11&&(i=lr(e.display.measure,i))}else{var h;u>0&&(d=r="right"),i=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==r?h.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Ar(e.display),top:p.top,bottom:p.bottom}:ir}for(var g=i.top-t.rect.top,v=i.bottom-t.rect.top,y=(g+v)/2,m=t.view.measure.heights,b=0;b<m.length-1;b++)if(y<m[b])break;var x=b?m[b-1]:0,_=m[b],w={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:x,bottom:_};return i.left||i.right||(w.bogus=!0),e.options.singleCursorHeightPerLine||(w.rtop=g,w.rbottom=v),w}function lr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Ne(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function ur(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function cr(e){e.display.externalMeasure=null,E(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)ur(e.display.view[t])}function dr(e){cr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function fr(){return c&&v?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hr(){return c&&v?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function pr(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=Hn(e.widgets[n]));return t}function gr(e,t,n,r,i){if(!i){var o=pr(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=on(t);if("local"==r?a+=Gn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:hr());var l=s.left+("window"==r?0:fr());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function vr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=fr(),i-=hr();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function yr(e,t,n,r,i){return r||(r=Ze(e.doc,t.line)),gr(e,r,Qn(e,r,t.ch,i),n)}function mr(e,t,n,r,i,o){function a(t,a){var s=nr(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,gr(e,r,s,n)}r=r||Ze(e.doc,t.line),i||(i=tr(e,r));var s=fe(r,e.doc.direction),l=t.ch,u=t.sticky;if(l>=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){var r=s[t],i=1==r.level;return a(n?e-1:e,i!=n)}var d=ce(s,l,u),f=ue,h=c(l,d,"before"==u);return null!=f&&(h.other=c(l,f,"before"!=u)),h}function br(e,t){var n=0;t=dt(e.doc,t),e.options.lineWrapping||(n=Ar(e.display)*t.ch);var r=Ze(e.doc,t.line),i=on(r)+Gn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function xr(e,t,n,r,i){var o=it(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function _r(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return xr(r.first,0,null,-1,-1);var i=tt(r,n),o=r.first+r.size-1;if(i>o)return xr(r.first+r.size-1,Ze(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ze(r,i);;){var s=Or(e,a,i,t,n),l=Xt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Ze(r,i=u.line)}}function wr(e,t,n,r){r-=pr(t);var i=t.text.length,o=se((function(t){return nr(e,n,t-1).bottom<=r}),i,0);return i=se((function(t){return nr(e,n,t).top>r}),o,i),{begin:o,end:i}}function Sr(e,t,n,r){n||(n=tr(e,t));var i=gr(e,t,nr(e,n,r),"line").top;return wr(e,t,n,i)}function kr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Or(e,t,n,r,i){i-=on(t);var o=tr(e,t),a=pr(t),s=0,l=t.text.length,u=!0,c=fe(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?Er:Tr)(e,t,n,o,c,r,i);u=1!=d.level,s=u?d.from:d.to-1,l=u?d.to:d.from-1}var f,h,p=null,g=null,v=se((function(t){var n=nr(e,o,t);return n.top+=a,n.bottom+=a,!!kr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,g=n),!0)}),s,l),y=!1;if(g){var m=r-g.left<g.right-r,b=m==u;v=p+(b?0:1),h=b?"after":"before",f=m?g.left:g.right}else{u||v!=l&&v!=s||v++,h=0==v?"after":v==t.text.length?"before":nr(e,o,v-(u?1:0)).bottom+a<=i==u?"after":"before";var x=mr(e,it(n,v,h),"line",t,o);f=x.left,y=i<x.top?-1:i>=x.bottom?1:0}return v=ae(t.text,v,1),xr(n,v,h,y,r-f)}function Tr(e,t,n,r,i,o,a){var s=se((function(s){var l=i[s],u=1!=l.level;return kr(mr(e,it(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=mr(e,it(n,u?l.from:l.to,u?"after":"before"),"line",t,r);kr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function Er(e,t,n,r,i,o,a){var s=wr(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,f=0;f<i.length;f++){var h=i[f];if(!(h.from>=u||h.to<=l)){var p=1!=h.level,g=nr(e,r,p?Math.min(u,h.to)-1:Math.max(l,h.from)).right,v=g<o?o-g+1e9:g-o;(!c||d>v)&&(c=h,d=v)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function Cr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==rr){rr=A("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)rr.appendChild(document.createTextNode("x")),rr.appendChild(A("br"));rr.appendChild(document.createTextNode("x"))}C(e.measure,rr);var n=rr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),E(e.measure),n||1}function Ar(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),n=A("pre",[t],"CodeMirror-line-like");C(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Mr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Lr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Lr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ir(e){var t=Cr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Ar(e.display)-3);return function(i){if(nn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Dr(e){var t=e.doc,n=Ir(e);t.iter((function(e){var t=n(e);t!=e.height&&Qe(e,t)}))}function jr(e,t,n,r){var i=e.display;if(!n&&"true"==Te(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var l,u=_r(e,o,a);if(r&&u.xRel>0&&(l=Ze(e.doc,u.line).text).length==u.ch){var c=B(l,l.length,e.options.tabSize)-l.length;u=it(u.line,Math.max(0,Math.round((o-Wn(e.display).left)/Ar(e.display))-c))}return u}function Pr(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if(t-=n[r].size,t<0)return r}function Rr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)At&&en(e.doc,t)<i.viewTo&&Br(e);else if(n<=i.viewFrom)At&&tn(e.doc,n+r)>i.viewFrom?Br(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Br(e);else if(t<=i.viewFrom){var o=Fr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Br(e)}else if(n>=i.viewTo){var a=Fr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Br(e)}else{var s=Fr(e,t,t,-1),l=Fr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(wn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Br(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function Nr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Pr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==z(a,n)&&a.push(n)}}}function Br(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Fr(e,t,n,r){var i,o=Pr(e,t),a=e.display.view;if(!At||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}while(en(e.doc,n)!=n){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function zr(e,t,n){var r=e.display,i=r.view;0==i.length||t>=r.viewTo||n<=r.viewFrom?(r.view=wn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=wn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Pr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(wn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Pr(e,n)))),r.viewTo=n}function Ur(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Hr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Vr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var l=s.empty();(l||e.options.showCursorWhenSelecting)&&Gr(e,s.head,i),l||Wr(e,s,o)}}return r}function Gr(e,t,n){var r=mr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(A("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(A("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function qr(e,t){return e.top-t.top||e.left-t.left}function Wr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Wn(e.display),s=a.left,l=Math.max(r.sizerWidth,Kn(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=Ze(i,t),f=d.text.length;function h(n,r){return yr(e,it(t,n),"div",d,r)}function p(t,n,r){var i=Sr(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right",a="after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1);return h(a,o)[o]}var g=fe(d,i.direction);return le(g,n||0,null==r?f:r,(function(e,t,i,d){var v="ltr"==i,y=h(e,v?"left":"right"),m=h(t-1,v?"right":"left"),b=null==n&&0==e,x=null==r&&t==f,_=0==d,w=!g||d==g.length-1;if(m.top-y.top<=3){var S=(u?b:x)&&_,k=(u?x:b)&&w,O=S?s:(v?y:m).left,T=k?l:(v?m:y).right;c(O,y.top,T-O,y.bottom)}else{var E,C,A,M;v?(E=u&&b&&_?s:y.left,C=u?l:p(e,i,"before"),A=u?s:p(t,i,"after"),M=u&&x&&w?l:m.right):(E=u?p(e,i,"before"):s,C=!u&&b&&_?l:y.right,A=!u&&x&&w?s:m.left,M=u?p(t,i,"after"):l),c(E,y.top,C-E,y.bottom),y.bottom<m.top&&c(s,y.bottom,null,m.top),c(A,m.top,M-A,m.bottom)}(!o||qr(y,o)<0)&&(o=y),qr(m,o)<0&&(o=m),(!a||qr(y,a)<0)&&(a=y),qr(m,a)<0&&(a=m)})),{start:o,end:a}}var f=t.from(),h=t.to();if(f.line==h.line)d(f.line,f.ch,h.ch);else{var p=Ze(i,f.line),g=Ze(i,h.line),v=$t(p)==$t(g),y=d(f.line,f.ch,v?p.text.length+1:null).end,m=d(h.line,v?0:null,h.ch).start;v&&(y.top<m.top-2?(c(y.right,y.top,null,y.bottom),c(s,m.top,m.left,m.bottom)):c(y.right,y.top,m.left-y.right,y.bottom)),y.bottom<m.top&&c(s,y.bottom,null,m.top)}n.appendChild(o)}function Yr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Kr(e){e.state.focused||(e.display.input.focus(),Zr(e))}function Xr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,$r(e))}),100)}function Zr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ye(e,"focus",e,t),e.state.focused=!0,D(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Yr(e))}function $r(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ye(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Jr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,l=void 0,u=0;if(!i.hidden){if(a&&s<8){var c=i.node.offsetTop+i.node.offsetHeight;l=c-n,n=c}else{var d=i.node.getBoundingClientRect();l=d.bottom-d.top,!o&&i.text.firstChild&&(u=i.text.firstChild.getBoundingClientRect().right-d.left-1)}var f=i.line.height-l;if((f>.005||f<-.005)&&(Qe(i.line,l),Qr(i.line),i.rest))for(var h=0;h<i.rest.length;h++)Qr(i.rest[h]);if(u>e.display.sizerWidth){var p=Math.ceil(u/Ar(e.display));p>e.display.maxLineLength&&(e.display.maxLineLength=p,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Qr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ei(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Gn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=tt(t,r),a=tt(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=tt(t,on(Ze(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=tt(t,on(Ze(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ti(e,t){if(!me(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=A("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Gn(e.display))+"px;\n height: "+(t.bottom-t.top+Yn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ni(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(t=t.ch?it(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?it(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=mr(e,t),l=n&&n!=t?mr(e,n):s;i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r};var u=ii(e,i),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(di(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(hi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function ri(e,t){var n=ii(e,t);null!=n.scrollTop&&di(e,n.scrollTop),null!=n.scrollLeft&&hi(e,n.scrollLeft)}function ii(e,t){var n=e.display,r=Cr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Xn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+qn(n),l=t.top<r,u=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,f=Kn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),h=t.right-t.left>f;return h&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<d?a.scrollLeft=Math.max(0,t.left-(h?0:10)):t.right>f+d-3&&(a.scrollLeft=t.right+(h?0:10)-f),a}function oi(e,t){null!=t&&(ui(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ai(e){ui(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function si(e,t,n){null==t&&null==n||ui(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function li(e,t){ui(e),e.curOp.scrollToPos=t}function ui(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=br(e,t.from),r=br(e,t.to);ci(e,n,r,t.margin)}}function ci(e,t,n,r){var i=ii(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});si(e,i.scrollLeft,i.scrollTop)}function di(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Hi(e,{top:t}),fi(e,t,!0),n&&Hi(e),ji(e,100))}function fi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function hi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Wi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function pi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+qn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Yn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var gi=function(e,t,n){this.cm=n;var r=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),pe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),pe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};gi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},gi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},gi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},gi.prototype.zeroWidthHack=function(){var e=m&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},gi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},gi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vi=function(){};function yi(e,t){t||(t=pi(e));var n=e.display.barWidth,r=e.display.barHeight;mi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Jr(e),mi(e,pi(e)),n=e.display.barWidth,r=e.display.barHeight}function mi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}vi.prototype.update=function(){return{bottom:0,right:0}},vi.prototype.setScrollLeft=function(){},vi.prototype.setScrollTop=function(){},vi.prototype.clear=function(){};var bi={native:gi,null:vi};function xi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new bi[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?hi(e,t):di(e,t)}),e),e.display.scrollbars.addClass&&D(e.display.wrapper,e.display.scrollbars.addClass)}var _i=0;function wi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++_i},kn(e.curOp)}function Si(e){var t=e.curOp;t&&Tn(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;ki(e)}))}function ki(e){for(var t=e.ops,n=0;n<t.length;n++)Oi(t[n]);for(var r=0;r<t.length;r++)Ti(t[r]);for(var i=0;i<t.length;i++)Ei(t[i]);for(var o=0;o<t.length;o++)Ci(t[o]);for(var a=0;a<t.length;a++)Ai(t[a])}function Oi(e){var t=e.cm,n=t.display;Ni(t),e.updateMaxLine&&sn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ri(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ti(e){e.updatedDisplay=e.mustUpdate&&zi(e.cm,e.update)}function Ei(e){var t=e.cm,n=t.display;e.updatedDisplay&&Jr(t),e.barMeasure=pi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Qn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Yn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Kn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ci(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&hi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==I();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&yi(t,e.barMeasure),e.updatedDisplay&&qi(t,e.barMeasure),e.selectionChanged&&Yr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Kr(e.cm)}function Ai(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&Ui(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&fi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&hi(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=ni(t,dt(r,e.scrollToPos.from),dt(r,e.scrollToPos.to),e.scrollToPos.margin);ti(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var s=0;s<o.length;++s)o[s].lines.length||ye(o[s],"hide");if(a)for(var l=0;l<a.length;++l)a[l].lines.length&&ye(a[l],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ye(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Mi(e,t){if(e.curOp)return t();wi(e);try{return t()}finally{Si(e)}}function Li(e,t){return function(){if(e.curOp)return t.apply(e,arguments);wi(e);try{return t.apply(e,arguments)}finally{Si(e)}}}function Ii(e){return function(){if(this.curOp)return e.apply(this,arguments);wi(this);try{return e.apply(this,arguments)}finally{Si(this)}}}function Di(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);wi(t);try{return e.apply(this,arguments)}finally{Si(t)}}}function ji(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,R(Pi,e))}function Pi(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=mt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?We(t.mode,r.state):null,l=vt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=o.styles[f];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&bt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ji(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Mi(e,(function(){for(var t=0;t<i.length;t++)Nr(e,i[t],"text")}))}}var Ri=function(e,t,n){var r=e.display;this.viewport=t,this.visible=ei(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Kn(e),this.force=n,this.dims=Mr(e),this.events=[]};function Ni(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Yn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Yn(e)+"px",t.scrollbarsClipped=!0)}function Bi(e){if(e.hasFocus())return null;var t=I();if(!t||!L(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&L(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Fi(e){if(e&&e.activeElt&&e.activeElt!=I()&&(e.activeElt.focus(),e.anchorNode&&L(document.body,e.anchorNode)&&L(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function zi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Br(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Ur(e))return!1;Yi(e)&&(Br(e),t.dims=Mr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),At&&(o=en(e.doc,o),a=tn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;zr(e,o,a),n.viewOffset=on(Ze(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Ur(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=Bi(e);return l>4&&(n.lineDiv.style.display="none"),Vi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Fi(u),E(n.cursorDiv),E(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ji(e,400)),n.updateLineNumbers=null,!0}function Ui(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Kn(e))r&&(t.visible=ei(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+qn(e.display)-Xn(e),n.top)}),t.visible=ei(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!zi(e,t))break;Jr(e);var i=pi(e);Hr(e),yi(e,i),qi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Hi(e,t){var n=new Ri(e,t);if(zi(e,n)){Jr(e),Ui(e,n);var r=pi(e);Hr(e),yi(e,r),qi(e,r),n.finish()}}function Vi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&m&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,d=0;d<u.length;d++){var f=u[d];if(f.hidden);else if(f.node&&f.node.parentNode==o){while(a!=f.node)a=s(a);var h=i&&null!=t&&t<=c&&f.lineNumber;f.changes&&(z(f.changes,"gutter")>-1&&(h=!1),Mn(e,f,c,n)),h&&(E(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(rt(e.options,c)))),a=f.node.nextSibling}else{var p=Bn(e,f,c,n);o.insertBefore(p,a)}c+=f.size}while(a)a=s(a)}function Gi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function qi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Yn(e)+"px"}function Wi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Lr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Yi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=rt(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(A("div",[A("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Gi(e.display),!0}return!1}function Ki(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Xi(e){var t=e.gutters,n=e.gutterSpecs;E(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(A("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Gi(e)}function Zi(e){Xi(e.display),Rr(e),Wi(e)}function $i(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=A("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=A("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=M("div",null,"CodeMirror-code"),o.selectionDiv=A("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=A("div",null,"CodeMirror-cursors"),o.measure=A("div",null,"CodeMirror-measure"),o.lineMeasure=A("div",null,"CodeMirror-measure"),o.lineSpace=M("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=M("div",[o.lineSpace],"CodeMirror-lines");o.mover=A("div",[u],null,"position: relative"),o.sizer=A("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=A("div",null,null,"position: absolute; height: "+U+"px; width: 1px;"),o.gutters=A("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=A("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=A("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Ki(i.gutters,i.lineNumbers),Xi(o),r.init(o)}Ri.prototype.signal=function(e,t){xe(e,t)&&this.events.push(arguments)},Ri.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ye.apply(null,this.events[e])};var Ji=0,Qi=null;function eo(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function to(e){var t=eo(e);return t.x*=Qi,t.y*=Qi,t}function no(e,t){var r=eo(t),i=r.x,o=r.y,a=e.display,s=a.scroller,u=s.scrollWidth>s.clientWidth,c=s.scrollHeight>s.clientHeight;if(i&&u||o&&c){if(o&&m&&l)e:for(var f=t.target,h=a.view;f!=s;f=f.parentNode)for(var p=0;p<h.length;p++)if(h[p].node==f){e.display.currentWheelTarget=f;break e}if(i&&!n&&!d&&null!=Qi)return o&&c&&di(e,Math.max(0,s.scrollTop+o*Qi)),hi(e,Math.max(0,s.scrollLeft+i*Qi)),(!o||o&&c)&&we(t),void(a.wheelStartX=null);if(o&&null!=Qi){var g=o*Qi,v=e.doc.scrollTop,y=v+a.wrapper.clientHeight;g<0?v=Math.max(0,v+g-50):y=Math.min(e.doc.height,y+g+50),Hi(e,{top:v,bottom:y})}Ji<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(Qi=(Qi*Ji+n)/(Ji+1),++Ji)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?Qi=-.53:n?Qi=15:c?Qi=-.7:f&&(Qi=-1/3);var ro=function(e,t){this.ranges=e,this.primIndex=t};ro.prototype.primary=function(){return this.ranges[this.primIndex]},ro.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!at(n.anchor,r.anchor)||!at(n.head,r.head))return!1}return!0},ro.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new io(st(this.ranges[t].anchor),st(this.ranges[t].head));return new ro(e,this.primIndex)},ro.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},ro.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ot(t,r.from())>=0&&ot(e,r.to())<=0)return n}return-1};var io=function(e,t){this.anchor=e,this.head=t};function oo(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ot(e.from(),t.from())})),n=z(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=ot(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var u=ut(s.from(),a.from()),c=lt(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new io(d?c:u,d?u:c))}}return new ro(t,n)}function ao(e,t){return new ro([new io(e,t||e)],0)}function so(e){return e.text?it(e.from.line+e.text.length-1,X(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function lo(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return so(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=so(t).ch-t.to.ch),it(n,r)}function uo(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new io(lo(i.anchor,t),lo(i.head,t)))}return oo(e.cm,n,e.sel.primIndex)}function co(e,t,n){return e.line==t.line?it(n.line,e.ch-t.ch+n.ch):it(n.line+(e.line-t.line),e.ch)}function fo(e,t,n){for(var r=[],i=it(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=co(s.from,i,o),u=co(so(s),i,o);if(i=s.to,o=u,"around"==n){var c=e.sel.ranges[a],d=ot(c.head,c.anchor)<0;r[a]=new io(d?u:l,d?l:u)}else r[a]=new io(l,l)}return new ro(r,e.sel.primIndex)}function ho(e){e.doc.mode=Ve(e.options,e.doc.modeOption),po(e)}function po(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ji(e,100),e.state.modeGen++,e.curOp&&Rr(e)}function go(e,t){return 0==t.from.ch&&0==t.to.ch&&""==X(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function vo(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){un(e,n,i,r),Cn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new ln(u[o],i(o),r));return n}var s=t.from,l=t.to,u=t.text,c=Ze(e,s.line),d=Ze(e,l.line),f=X(u),h=i(u.length-1),p=l.line-s.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(go(e,t)){var g=a(0,u.length-1);o(d,d.text,h),p&&e.remove(s.line,p),g.length&&e.insert(s.line,g)}else if(c==d)if(1==u.length)o(c,c.text.slice(0,s.ch)+f+c.text.slice(l.ch),h);else{var v=a(1,u.length-1);v.push(new ln(f+c.text.slice(l.ch),h,r)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,v)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,p);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(d,f+d.text.slice(l.ch),h);var y=a(1,u.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,y)}Cn(e,"change",e,t)}function yo(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),r(s.doc,e,l))}}}r(e,null,!0)}function mo(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Dr(e),ho(e),bo(e),e.options.lineWrapping||sn(e),e.options.mode=t.modeOption,Rr(e)}function bo(e){("rtl"==e.doc.direction?D:T)(e.display.lineDiv,"CodeMirror-rtl")}function xo(e){Mi(e,(function(){bo(e),Rr(e)}))}function _o(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function wo(e,t){var n={from:st(t.from),to:so(t),text:$e(e,t.from,t.to)};return Ao(e,n,t.from.line,t.to.line+1),yo(e,(function(e){return Ao(e,n,t.from.line,t.to.line+1)}),!0),n}function So(e){while(e.length){var t=X(e);if(!t.ranges)break;e.pop()}}function ko(e,t){return t?(So(e.done),X(e.done)):e.done.length&&!X(e.done).ranges?X(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),X(e.done)):void 0}function Oo(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=ko(i,i.lastOp==r)))a=X(o.changes),0==ot(t.from,t.to)&&0==ot(t.from,a.to)?a.to=so(t):o.changes.push(wo(e,t));else{var l=X(i.done);l&&l.ranges||Co(e.sel,i.done),o={changes:[wo(e,t)],generation:i.generation},i.done.push(o);while(i.done.length>i.undoDepth)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ye(e,"historyAdded")}function To(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Eo(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||To(e,o,X(i.done),t))?i.done[i.done.length-1]=t:Co(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&So(i.undone)}function Co(e,t){var n=X(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ao(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Mo(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Lo(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Mo(n[i]));return r}function Io(e,t){var n=Lo(e,t),r=Bt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Do(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?ro.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var d in u)(c=d.match(/^spans_(\d+)$/))&&z(t,Number(c[1]))>-1&&(X(s)[d]=u[d],delete u[d])}}}return r}function jo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ot(t,i)<0;o!=ot(n,i)<0?(i=t,t=n):o!=ot(t,n)<0&&(t=n)}return new io(i,t)}return new io(n||t,t)}function Po(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Uo(e,new ro([jo(e.sel.primary(),t,n,i)],0),r)}function Ro(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=jo(e.sel.ranges[o],t[o],null,i);var a=oo(e.cm,r,e.sel.primIndex);Uo(e,a,n)}function No(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Uo(e,oo(e.cm,i,e.sel.primIndex),r)}function Bo(e,t,n,r){Uo(e,ao(t,n),r)}function Fo(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new io(dt(e,t[n].anchor),dt(e,t[n].head))},origin:n&&n.origin};return ye(e,"beforeSelectionChange",e,r),e.cm&&ye(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?oo(e.cm,r.ranges,r.ranges.length-1):t}function zo(e,t,n){var r=e.history.done,i=X(r);i&&i.ranges?(r[r.length-1]=t,Ho(e,t,n)):Uo(e,t,n)}function Uo(e,t,n){Ho(e,t,n),Eo(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Ho(e,t,n){(xe(e,"beforeSelectionChange")||e.cm&&xe(e.cm,"beforeSelectionChange"))&&(t=Fo(e,t,n));var r=n&&n.bias||(ot(t.primary().head,e.sel.primary().head)<0?-1:1);Vo(e,qo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||ai(e.cm)}function Vo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,be(e.cm)),Cn(e,"cursorActivity",e))}function Go(e){Vo(e,qo(e,e.sel,null,!1))}function qo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Yo(e,a.anchor,s&&s.anchor,n,r),u=Yo(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new io(l,u))}return i?oo(e.cm,i,t.primIndex):t}function Wo(e,t,n,r,i){var o=Ze(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(ye(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?c:u)&&(d=Ko(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=ot(d,n))&&(r<0?f<0:f>0))return Wo(e,d,t,r,i)}var h=l.find(r<0?-1:1);return(r<0?u:c)&&(h=Ko(e,h,r,h.line==t.line?o:null)),h?Wo(e,h,t,r,i):null}}return t}function Yo(e,t,n,r,i){var o=r||1,a=Wo(e,t,n,o,i)||!i&&Wo(e,t,n,o,!0)||Wo(e,t,n,-o,i)||!i&&Wo(e,t,n,-o,!0);return a||(e.cantEdit=!0,it(e.first,0))}function Ko(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?dt(e,it(t.line-1)):null:n>0&&t.ch==(r||Ze(e,t.line)).text.length?t.line<e.first+e.size-1?it(t.line+1,0):null:new it(t.line,t.ch+n)}function Xo(e){e.setSelection(it(e.firstLine(),0),it(e.lastLine()),V)}function Zo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=dt(e,t)),n&&(r.to=dt(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ye(e,"beforeChange",e,r),e.cm&&ye(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function $o(e,t,n){if(e.cm){if(!e.cm.curOp)return Li(e.cm,$o)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(xe(e,"beforeChange")||e.cm&&xe(e.cm,"beforeChange"))||(t=Zo(e,t,!0),t)){var r=Ct&&!n&&zt(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Jo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Jo(e,t)}}function Jo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=uo(e,t);Oo(e,t,n,e.cm?e.cm.curOp.id:NaN),ta(e,t,n,Bt(e,t));var r=[];yo(e,(function(e,n){n||-1!=z(r,e.history)||(aa(e.history,t),r.push(e.history)),ta(e,t,null,Bt(e,t))}))}}function Qo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u<s.length;u++)if(i=s[u],n?i.ranges&&!i.equals(e.sel):!i.ranges)break;if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(i=s.pop(),!i.ranges){if(r)return void s.push(i);break}if(Co(i,l),n&&!i.equals(e.sel))return void Uo(e,i,{clearRedo:!1});a=i}var c=[];Co(a,l),l.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=xe(e,"beforeChange")||e.cm&&xe(e.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=t,d&&!Zo(e,r,!1))return s.length=0,{};c.push(wo(e,r));var o=n?uo(e,r):X(s);ta(e,r,o,Io(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:so(r)});var a=[];yo(e,(function(e,t){t||-1!=z(a,e.history)||(aa(e.history,r),a.push(e.history)),ta(e,r,null,Io(e,r))}))},h=i.changes.length-1;h>=0;--h){var p=f(h);if(p)return p.v}}}}function ea(e,t){if(0!=t&&(e.first+=t,e.sel=new ro(Z(e.sel.ranges,(function(e){return new io(it(e.anchor.line+t,e.anchor.ch),it(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Rr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Nr(e.cm,r,"gutter")}}function ta(e,t,n,r){if(e.cm&&!e.cm.curOp)return Li(e.cm,ta)(e,t,n,r);if(t.to.line<e.first)ea(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ea(e,i),t={from:it(e.first,0),to:it(t.to.line+i,t.to.ch),text:[X(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:it(o,Ze(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=$e(e,t.from,t.to),n||(n=uo(e,t)),e.cm?na(e.cm,t,r):vo(e,t,r),Ho(e,n,V),e.cantEdit&&Yo(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function na(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=et($t(Ze(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&be(e),vo(r,t,n,Ir(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=an(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),Et(r,o.line),ji(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Rr(e):o.line!=a.line||1!=t.text.length||go(e.doc,t)?Rr(e,o.line,a.line+1,u):Nr(e,o.line,"text");var c=xe(e,"changes"),d=xe(e,"change");if(d||c){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&Cn(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function ra(e,t,n,r,i){var o;r||(r=n),ot(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),$o(e,{from:n,to:r,text:t,origin:i})}function ia(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function oa(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var s=0;s<o.ranges.length;s++)ia(o.ranges[s].anchor,t,n,r),ia(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=it(u.from.line+r,u.from.ch),u.to=it(u.to.line+r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function aa(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;oa(e.done,n,r,i),oa(e.undone,n,r,i)}function sa(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Ze(e,ct(e,t)):i=et(t),null==i?null:(r(o,i)&&e.cm&&Nr(e.cm,i,n),o)}function la(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function ua(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}io.prototype.from=function(){return ut(this.anchor,this.head)},io.prototype.to=function(){return lt(this.anchor,this.head)},io.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},la.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,cn(i),Cn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},ua.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof la))){var s=[];this.collapse(s),this.children=[new la(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new la(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new ua(t);if(e.parent){e.size-=n.size,e.height-=n.height;var r=z(e.parent.children,e);e.parent.children.splice(r+1,0,n)}else{var i=new ua(e.children);i.parent=e,e.children=[i,n],e=i}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var ca=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function da(e,t,n){on(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&oi(e,n)}function fa(e,t,n,r){var i=new ca(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),sa(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!nn(e,t)){var r=on(t)<e.scrollTop;Qe(t,t.height+Hn(i)),r&&oi(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&Cn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:et(t)),i}ca.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=et(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Hn(this);Qe(n,Math.max(0,n.height-o)),e&&(Mi(e,(function(){da(e,n,-o),Nr(e,r,"widget")})),Cn(e,"lineWidgetCleared",e,this,r))}},ca.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Hn(this)-t;i&&(nn(this.doc,r)||Qe(r,r.height+i),n&&Mi(n,(function(){n.curOp.forceUpdate=!0,da(n,r,i),Cn(n,"lineWidgetChanged",n,e,et(r))})))},_e(ca);var ha=0,pa=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++ha};function ga(e,t,n,r,i){if(r&&r.shared)return ya(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Li(e.cm,ga)(e,t,n,r,i);var o=new pa(e,i),a=ot(t,n);if(r&&N(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=M("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Zt(e,t.line,t,n,o)||t.line!=n.line&&Zt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Lt()}o.addToHistory&&Oo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(e){u&&o.collapsed&&!u.options.lineWrapping&&$t(e)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Qe(e,0),Pt(e,new It(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){nn(e,t)&&Qe(t,0)})),o.clearOnEnter&&pe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Mt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ha,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)Rr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)Nr(u,c,"text");o.atomic&&Go(u.doc),Cn(u,"markerAdded",u,o)}return o}pa.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&wi(e),xe(this,"clear")){var n=this.find();n&&Cn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Dt(a.markedSpans,this);e&&!this.collapsed?Nr(e,et(a),"text"):e&&(null!=s.to&&(i=et(a)),null!=s.from&&(r=et(a))),a.markedSpans=jt(a.markedSpans,s),null==s.from&&this.collapsed&&!nn(this.doc,a)&&e&&Qe(a,Cr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=$t(this.lines[l]),c=an(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Rr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Go(e.doc)),e&&Cn(e,"markerCleared",e,this,r,i),t&&Si(e),this.parent&&this.parent.clear()}},pa.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Dt(o.markedSpans,this);if(null!=a.from&&(n=it(t?o:et(o),a.from),-1==e))return n;if(null!=a.to&&(r=it(t?o:et(o),a.to),1==e))return r}return n&&{from:n,to:r}},pa.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Mi(r,(function(){var i=t.line,o=et(t.line),a=er(r,o);if(a&&(ur(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!nn(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Hn(n)-s;l&&Qe(i,i.height+l)}Cn(r,"markerChanged",r,e)}))},pa.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=z(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},pa.prototype.detachLine=function(e){if(this.lines.splice(z(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},_e(pa);var va=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function ya(e,t,n,r,i){r=N(r),r.shared=!1;var o=[ga(e,t,n,r,i)],a=o[0],s=r.widgetNode;return yo(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(ga(e,dt(e,t),dt(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=X(o)})),new va(o,a)}function ma(e){return e.findMarks(it(e.first,0),e.clipPos(it(e.lastLine())),(function(e){return e.parent}))}function ba(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ot(o,a)){var s=ga(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function xa(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];yo(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==z(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}va.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Cn(this,"clear")}},va.prototype.find=function(e,t){return this.primary.find(e,t)},_e(va);var _a=0,wa=function(e,t,n,r,i){if(!(this instanceof wa))return new wa(e,t,n,r,i);null==n&&(n=0),ua.call(this,[new la([new ln("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=it(n,0);this.sel=ao(o),this.history=new _o(null),this.id=++_a,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),vo(this,{from:o,to:o,text:e}),Uo(this,ao(o),V)};wa.prototype=Q(ua.prototype,{constructor:wa,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Je(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Di((function(e){var t=it(this.first,0),n=this.first+this.size-1;$o(this,{from:t,to:it(n,Ze(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&si(this.cm,0,0),Uo(this,ao(t),V)})),replaceRange:function(e,t,n,r){t=dt(this,t),n=n?dt(this,n):t,ra(this,e,t,n,r)},getRange:function(e,t,n){var r=$e(this,dt(this,e),dt(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(nt(this,e))return Ze(this,e)},getLineNumber:function(e){return et(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ze(this,e)),$t(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return dt(this,e)},getCursor:function(e){var t,n=this.sel.primary();return t=null==e||"head"==e?n.head:"anchor"==e?n.anchor:"end"==e||"to"==e||!1===e?n.to():n.from(),t},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Di((function(e,t,n){Bo(this,dt(this,"number"==typeof e?it(e,t||0):e),null,n)})),setSelection:Di((function(e,t,n){Bo(this,dt(this,e),dt(this,t||e),n)})),extendSelection:Di((function(e,t,n){Po(this,dt(this,e),t&&dt(this,t),n)})),extendSelections:Di((function(e,t){Ro(this,ht(this,e),t)})),extendSelectionsBy:Di((function(e,t){var n=Z(this.sel.ranges,e);Ro(this,ht(this,n),t)})),setSelections:Di((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new io(dt(this,e[i].anchor),dt(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Uo(this,oo(this.cm,r,t),n)}})),addSelection:Di((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new io(dt(this,e),dt(this,t||e))),Uo(this,oo(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=$e(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=$e(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Di((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&fo(this,r,t),l=r.length-1;l>=0;l--)$o(this,r[l]);s?zo(this,s):this.cm&&ai(this.cm)})),undo:Di((function(){Qo(this,"undo")})),redo:Di((function(){Qo(this,"redo")})),undoSelection:Di((function(){Qo(this,"undo",!0)})),redoSelection:Di((function(){Qo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new _o(this.history.maxGeneration),yo(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Do(this.history.done),undone:Do(this.history.undone)}},setHistory:function(e){var t=this.history=new _o(this.history.maxGeneration);t.done=Do(e.done.slice(0),null,!0),t.undone=Do(e.undone.slice(0),null,!0)},setGutterMarker:Di((function(e,t,n){return sa(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&re(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Di((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&sa(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,re(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!nt(this,e))return null;if(t=e,e=Ze(this,e),!e)return null}else if(t=et(e),null==t)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Di((function(e,t,n){return sa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(k(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:Di((function(e,t,n){return sa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(k(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:Di((function(e,t,n){return fa(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ga(this,dt(this,e),dt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=dt(this,e),ga(this,e,e,n,"bookmark")},findMarksAt:function(e){e=dt(this,e);var t=[],n=Ze(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=dt(this,e),t=dt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),dt(this,it(n,t))},indexFromPos:function(e){e=dt(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new wa(Je(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new wa(Je(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],ba(r,ma(this)),r},unlinkDoc:function(e){if(e instanceof Rs&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var n=this.linked[t];if(n.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),xa(ma(this));break}}if(e.history==this.history){var r=[e.id];yo(e,(function(e){return r.push(e.id)}),!0),e.history=new _o(null),e.history.done=Do(this.history.done,r),e.history.undone=Do(this.history.undone,r)}},iterLinkedDocs:function(e){yo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):De(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Di((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&xo(this.cm))}))}),wa.prototype.eachLine=wa.prototype.iter;var Sa=0;function ka(e){var t=this;if(Ea(t),!me(t,e)&&!Vn(t.display,e)){we(e),a&&(Sa=+new Date);var n=jr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&Li(t,(function(){n=dt(t.doc,n);var e={from:n,to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};$o(t.doc,e),zo(t.doc,ao(dt(t.doc,n),dt(t.doc,so(e))))}))()},u=function(e,n){if(t.options.allowDropFileTypes&&-1==z(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},c=0;c<r.length;c++)u(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),Ho(t.doc,ao(n,n)),f)for(var h=0;h<f.length;++h)ra(t.doc,"",f[h].anchor,f[h].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Oa(e,t){if(a&&(!e.state.draggingText||+new Date-Sa<100))Oe(t);else if(!me(e,t)&&!Vn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=A("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}function Ta(e,t){var n=jr(e,t);if(n){var r=document.createDocumentFragment();Gr(e,n,r),e.display.dragCursor||(e.display.dragCursor=A("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),C(e.display.dragCursor,r)}}function Ea(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ca(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Aa=!1;function Ma(){Aa||(La(),Aa=!0)}function La(){var e;pe(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Ca(Ia)}),100))})),pe(window,"blur",(function(){return Ca($r)}))}function Ia(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Da={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ja=0;ja<10;ja++)Da[ja+48]=Da[ja+96]=String(ja);for(var Pa=65;Pa<=90;Pa++)Da[Pa]=String.fromCharCode(Pa);for(var Ra=1;Ra<=12;Ra++)Da[Ra+111]=Da[Ra+63235]="F"+Ra;var Na={};function Ba(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Fa(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Z(n.split(" "),Ba),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function za(e,t,n,r){t=Ga(t);var i=t.call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return za(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=za(e,t.fallthrough[o],n,r);if(a)return a}}}function Ua(e){var t="string"==typeof e?e:Da[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Ha(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(w?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(w?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Va(e,t){if(d&&34==e.keyCode&&e["char"])return!1;var n=Da[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Ha(n,e,t))}function Ga(e){return"string"==typeof e?Na[e]:e}function qa(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){var o=t(n[i]);while(r.length&&ot(o.from,X(r).to)<=0){var a=r.pop();if(ot(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Mi(e,(function(){for(var t=r.length-1;t>=0;t--)ra(e.doc,"",r[t].from,r[t].to,"+delete");ai(e)}))}function Wa(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ya(e,t,n){var r=Wa(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function Ka(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=fe(n,t.doc.direction);if(o){var a,s=i<0?X(o):o[0],l=i<0==(1==s.level),u=l?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=tr(t,n);a=i<0?n.text.length-1:0;var d=nr(t,c,a).top;a=se((function(e){return nr(t,c,e).top==d}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==u&&(a=Wa(n,a,1))}else a=i<0?s.to:s.from;return new it(r,a,u)}}return new it(r,i<0?n.text.length:0,i<0?"before":"after")}function Xa(e,t,n,r){var i=fe(t,e.doc.direction);if(!i)return Ya(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ce(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Ya(t,n,r);var s,l=function(e,n){return Wa(t,e instanceof it?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(s=s||tr(e,t),Sr(e,t,s,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,f=l(n,d?1:-1);if(null!=f&&(d?f<=a.to&&f<=c.end:f>=a.from&&f>=c.begin)){var h=d?"before":"after";return new it(n.line,f,h)}}var p=function(e,t,r){for(var o=function(e,t){return t?new it(n.line,l(e,1),"before"):new it(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u<a.to)return o(u,s);if(u=s?a.from:l(a.to,-1),r.begin<=u&&u<r.end)return o(u,s)}},g=p(o+r,r,c);if(g)return g;var v=r>0?c.end:l(c.begin,-1);return null==v||r>0&&v==t.text.length||(g=p(r>0?0:i.length-1,r,u(v)),!g)?null:g}Na.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Na.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Na.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Na.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Na["default"]=m?Na.macDefault:Na.pcDefault;var Za={selectAll:Xo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),V)},killLine:function(e){return qa(e,(function(t){if(t.empty()){var n=Ze(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:it(t.head.line+1,0)}:{from:t.head,to:it(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return qa(e,(function(t){return{from:it(t.from().line,0),to:dt(e.doc,it(t.to().line+1,0))}}))},delLineLeft:function(e){return qa(e,(function(e){return{from:it(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return qa(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return{from:r,to:t.from()}}))},delWrappedLineRight:function(e){return qa(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(it(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(it(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return $a(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return Qa(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return Ja(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),q)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),q)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?Qa(e,t.head):r}),q)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=B(e.getLine(o.line),o.ch,r);t.push(K(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Mi(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Ze(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new it(i.line,i.ch-1)),i.ch>0)i=new it(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),it(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ze(e.doc,i.line-1).text;a&&(i=new it(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),it(i.line-1,a.length-1),i,"+transpose"))}n.push(new io(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Mi(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);ai(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function $a(e,t){var n=Ze(e.doc,t),r=$t(n);return r!=n&&(t=et(r)),Ka(!0,e,r,t,1)}function Ja(e,t){var n=Ze(e.doc,t),r=Jt(n);return r!=n&&(t=et(r)),Ka(!0,e,n,t,-1)}function Qa(e,t){var n=$a(e,t.line),r=Ze(e.doc,n.line),i=fe(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return it(n.line,a?0:o,n.sticky)}return n}function es(e,t,n){if("string"==typeof t&&(t=Za[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=H}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function ts(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=za(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&za(t,e.options.extraKeys,n,e)||za(t,e.options.keyMap,n,e)}var ns=new F;function rs(e,t,n,r){var i=e.state.keySeq;if(i){if(Ua(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ns.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),is(e,i+" "+t,n,r))return!0}return is(e,t,n,r)}function is(e,t,n,r){var i=ts(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&Cn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(we(n),Yr(e)),!!i}function os(e,t){var n=Va(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?rs(e,"Shift-"+n,t,(function(t){return es(e,t,!0)}))||rs(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return es(e,t)})):rs(e,n,t,(function(t){return es(e,t)})))}function as(e,t,n){return rs(e,"'"+n+"'",t,(function(t){return es(e,t,!0)}))}var ss=null;function ls(e){var t=this;if(t.curOp.focus=I(),!me(t,e)){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=os(t,e);d&&(ss=i?r:null,i||88!=r||Pe||!(m?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!m&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||us(t)}}function us(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(T(t,"CodeMirror-crosshair"),ve(document,"keyup",n),ve(document,"mouseover",n))}D(t,"CodeMirror-crosshair"),pe(document,"keyup",n),pe(document,"mouseover",n)}function cs(e){16==e.keyCode&&(this.doc.sel.shift=!1),me(this,e)}function ds(e){var t=this;if(!(Vn(t.display,e)||me(t,e)||e.ctrlKey&&!e.altKey||m&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==ss)return ss=null,void we(e);if(!d||e.which&&!(e.which<10)||!os(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(as(t,e,i)||t.display.input.onKeyPress(e))}}}var fs,hs,ps=400,gs=function(e,t,n){this.time=e,this.pos=t,this.button=n};function vs(e,t){var n=+new Date;return hs&&hs.compare(n,e,t)?(fs=hs=null,"triple"):fs&&fs.compare(n,e,t)?(hs=new gs(n,e,t),fs=null,"double"):(fs=new gs(n,e,t),hs=null,"single")}function ys(e){var t=this,n=t.display;if(!(me(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Vn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ts(t,e)){var r=jr(t,e),i=Ee(e),o=r?vs(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&ms(t,i,r,o,e)||(1==i?r?xs(t,r,o,e):Te(e)==n.scroller&&we(e):2==i?(r&&Po(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(S?t.display.input.onContextMenu(e):Xr(t)))}}function ms(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),o=(1==t?"Left":2==t?"Middle":"Right")+o,rs(e,Ha(o,i),i,(function(t){if("string"==typeof t&&(t=Za[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=H}finally{e.state.suppressEdits=!1}return r}))}function bs(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=b?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=m?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(m?n.altKey:n.ctrlKey)),i}function xs(e,t,n,r){a?setTimeout(R(Kr,e),0):e.curOp.focus=I();var i,o=bs(e,n,r),s=e.doc.sel;e.options.dragDrop&&Me&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(ot((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ot(i.to(),t)>0||t.xRel<0)?_s(e,r,t,o):Ss(e,r,t,o)}function _s(e,t,n,r){var i=e.display,o=!1,u=Li(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,ve(i.wrapper.ownerDocument,"mouseup",u),ve(i.wrapper.ownerDocument,"mousemove",c),ve(i.scroller,"dragstart",d),ve(i.scroller,"drop",u),o||(we(t),r.addNew||Po(e.doc,n,null,null,r.extend),l||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),pe(i.wrapper.ownerDocument,"mouseup",u),pe(i.wrapper.ownerDocument,"mousemove",c),pe(i.scroller,"dragstart",d),pe(i.scroller,"drop",u),Xr(e),setTimeout((function(){return i.input.focus()}),20)}function ws(e,t,n){if("char"==n)return new io(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new io(it(t.line,0),dt(e.doc,it(t.line+1,0)));var r=n(e,t);return new io(r.from,r.to)}function Ss(e,t,n,r){var i=e.display,o=e.doc;we(t);var a,s,l=o.sel,u=l.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?u[s]:new io(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new io(n,n)),n=jr(e,t,!0,!0),s=-1;else{var c=ws(e,n,r.unit);a=r.extend?jo(a,c.anchor,c.head,r.extend):c}r.addNew?-1==s?(s=u.length,Uo(o,oo(e,u.concat([a]),s),{scroll:!1,origin:"*mouse"})):u.length>1&&u[s].empty()&&"char"==r.unit&&!r.extend?(Uo(o,oo(e,u.slice(0,s).concat(u.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):No(o,s,a,G):(s=0,Uo(o,new ro([a],0),G),l=o.sel);var d=n;function f(t){if(0!=ot(d,t))if(d=t,"rectangle"==r.unit){for(var i=[],u=e.options.tabSize,c=B(Ze(o,n.line).text,n.ch,u),f=B(Ze(o,t.line).text,t.ch,u),h=Math.min(c,f),p=Math.max(c,f),g=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=v;g++){var y=Ze(o,g).text,m=W(y,h,u);h==p?i.push(new io(it(g,m),it(g,m))):y.length>m&&i.push(new io(it(g,m),it(g,W(y,p,u))))}i.length||i.push(new io(n,n)),Uo(o,oo(e,l.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,x=a,_=ws(e,t,r.unit),w=x.anchor;ot(_.anchor,w)>0?(b=_.head,w=ut(x.from(),_.anchor)):(b=_.anchor,w=lt(x.to(),_.head));var S=l.ranges.slice(0);S[s]=ks(e,new io(dt(o,w),b)),Uo(o,oo(e,S,s),G)}}var h=i.wrapper.getBoundingClientRect(),p=0;function g(t){var n=++p,a=jr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ot(a,d)){e.curOp.focus=I(),f(a);var s=ei(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(Li(e,(function(){p==n&&g(t)})),150)}else{var l=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;l&&setTimeout(Li(e,(function(){p==n&&(i.scroller.scrollTop+=l,g(t))})),50)}}function v(t){e.state.selectingText=!1,p=1/0,t&&(we(t),i.input.focus()),ve(i.wrapper.ownerDocument,"mousemove",y),ve(i.wrapper.ownerDocument,"mouseup",m),o.history.lastSelOrigin=null}var y=Li(e,(function(e){0!==e.buttons&&Ee(e)?g(e):v(e)})),m=Li(e,v);e.state.selectingText=m,pe(i.wrapper.ownerDocument,"mousemove",y),pe(i.wrapper.ownerDocument,"mouseup",m)}function ks(e,t){var n=t.anchor,r=t.head,i=Ze(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var o=fe(i);if(!o)return t;var a=ce(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(o,r.ch,r.sticky),d=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?d<0:d>0}var f=o[u+(l?-1:0)],h=l==(1==f.level),p=h?f.from:f.to,g=h?"after":"before";return n.ch==p&&n.sticky==g?t:new io(new it(n.line,p,g),r)}function Os(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&we(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!xe(e,n))return ke(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i){var c=tt(e.doc,o),d=e.display.gutterSpecs[l];return ye(e,n,e,c,d.className,t),ke(t)}}}function Ts(e,t){return Os(e,t,"gutterClick",!0)}function Es(e,t){Vn(e.display,t)||Cs(e,t)||me(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function Cs(e,t){return!!xe(e,"gutterContextMenu")&&Os(e,t,"gutterContextMenu",!1)}function As(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),dr(e)}gs.prototype.compare=function(e,t,n){return this.time+ps>e&&0==ot(t,this.pos)&&n==this.button};var Ms={toString:function(){return"CodeMirror.Init"}},Ls={},Is={};function Ds(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ms&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ms,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,ho(e)}),!0),n("indentUnit",2,ho,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){po(e),dr(e),Rr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(it(r,o))}r++}));for(var i=n.length-1;i>=0;i--)ra(e.doc,t,n[i],it(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ms&&e.refresh()})),n("specialCharPlaceholder",gn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){As(e),Zi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ga(t),i=n!=Ms&&Ga(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ps,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Ki(t,e.options.lineNumbers),Zi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Lr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return yi(e)}),!0),n("scrollbarStyle","native",(function(e){xi(e),yi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Ki(e.options.gutters,t),Zi(e)}),!0),n("firstLineNumber",1,Zi,!0),n("lineNumberFormatter",(function(e){return e}),Zi,!0),n("showCursorWhenSelecting",!1,Hr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&($r(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,js),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Hr,!0),n("singleCursorHeightPerLine",!0,Hr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,po,!0),n("addModeClass",!1,po,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,po,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function js(e,t,n){var r=n&&n!=Ms;if(!t!=!r){var i=e.display.dragFunctions,o=t?pe:ve;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function Ps(e){e.options.lineWrapping?(D(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),sn(e)),Dr(e),Rr(e),dr(e),setTimeout((function(){return yi(e)}),100)}function Rs(e,t){var n=this;if(!(this instanceof Rs))return new Rs(e,t);this.options=t=t?N(t):{},N(Ls,t,!1);var r=t.value;"string"==typeof r?r=new wa(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Rs.inputStyles[t.inputStyle](this),o=this.display=new $i(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,As(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new F,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Ns(this),Ma(),wi(this),this.curOp.forceUpdate=!0,mo(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout(R(Zr,this),20):$r(this),Is)Is.hasOwnProperty(u)&&Is[u](this,t[u],Ms);Yi(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Bs.length;++c)Bs[c](this);Si(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Ns(e){var t=e.display;pe(t.scroller,"mousedown",Li(e,ys)),pe(t.scroller,"dblclick",a&&s<11?Li(e,(function(t){if(!me(e,t)){var n=jr(e,t);if(n&&!Ts(e,t)&&!Vn(e.display,t)){we(t);var r=e.findWordAt(n);Po(e.doc,r.anchor,r.head)}}})):function(t){return me(e,t)||we(t)}),pe(t.scroller,"contextmenu",(function(t){return Es(e,t)})),pe(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Es(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),r=t.activeTouch,r.end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}pe(t.scroller,"touchstart",(function(i){if(!me(e,i)&&!o(i)&&!Ts(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),pe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),pe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Vn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new io(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new io(it(a.line,0),dt(e.doc,it(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),we(n)}i()})),pe(t.scroller,"touchcancel",i),pe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(di(e,t.scroller.scrollTop),hi(e,t.scroller.scrollLeft,!0),ye(e,"scroll",e))})),pe(t.scroller,"mousewheel",(function(t){return no(e,t)})),pe(t.scroller,"DOMMouseScroll",(function(t){return no(e,t)})),pe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){me(e,t)||Oe(t)},over:function(t){me(e,t)||(Ta(e,t),Oe(t))},start:function(t){return Oa(e,t)},drop:Li(e,ka),leave:function(t){me(e,t)||Ea(e)}};var u=t.input.getField();pe(u,"keyup",(function(t){return cs.call(e,t)})),pe(u,"keydown",Li(e,ls)),pe(u,"keypress",Li(e,ds)),pe(u,"focus",(function(t){return Zr(e,t)})),pe(u,"blur",(function(t){return $r(e,t)}))}Rs.defaults=Ls,Rs.optionHandlers=Is;var Bs=[];function Fs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=mt(e,t).state:n="prev");var a=e.options.tabSize,s=Ze(o,t),l=B(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(u=o.mode.indent(i,s.text.slice(c.length),s.text),u==H||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?B(Ze(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",f=0;if(e.options.indentWithTabs)for(var h=Math.floor(u/a);h;--h)f+=a,d+="\t";if(f<u&&(d+=K(u-f)),d!=c)return ra(o,d,it(t,0),it(t,c.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var g=o.sel.ranges[p];if(g.head.line==t&&g.head.ch<c.length){var v=it(t,c.length);No(o,p,new io(v,v));break}}}Rs.defineInitHook=function(e){return Bs.push(e)};var zs=null;function Us(e){zs=e}function Hs(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=De(t),u=null;if(s&&r.ranges.length>1)if(zs&&zs.text.join("\n")==t){if(r.ranges.length%zs.text.length==0){u=[];for(var c=0;c<zs.text.length;c++)u.push(o.splitLines(zs.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=Z(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var h=r.ranges[f],p=h.from(),g=h.to();h.empty()&&(n&&n>0?p=it(p.line,p.ch-n):e.state.overwrite&&!s?g=it(g.line,Math.min(Ze(o,g.line).text.length,g.ch+X(l).length)):s&&zs&&zs.lineWise&&zs.text.join("\n")==t&&(p=g=it(p.line,0)));var v={from:p,to:g,text:u?u[f%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};$o(e.doc,v),Cn(e,"inputRead",e,v)}t&&!s&&Gs(e,t),ai(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Vs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Mi(t,(function(){return Hs(t,n,0,null,"paste")})),!0}function Gs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Fs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ze(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Fs(e,i.head.line,"smart"));a&&Cn(e,"electricInput",e,i.head.line)}}}function qs(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:it(i,0),head:it(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Ws(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Ys(){var e=A("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=A("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),Ws(e),t}function Ks(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Li(this,t[e])(this,n,i),ye(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ga(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Ii((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");$(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Rr(this)})),removeOverlay:Ii((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Rr(this)}})),indentLine:Ii((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),nt(this.doc,e)&&Fs(this,e,t,n)})),indentSelection:Ii((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Fs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&ai(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Fs(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&No(this.doc,r,new io(o,u[r].to()),V)}}})),getTokenAt:function(e,t){return St(this,e,t)},getLineTokens:function(e,t){return St(this,it(e),t,!0)},getTokenTypeAt:function(e){e=dt(this.doc,e);var t,n=yt(this,Ze(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==z(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return e=ct(n,null==e?n.first+n.size-1:e),mt(this,e+1,t).state},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=null==e?r.head:"object"==typeof e?dt(this.doc,e):e?r.from():r.to(),mr(this,n,t||"page")},charCoords:function(e,t){return yr(this,dt(this.doc,e),t||"page")},coordsChar:function(e,t){return e=vr(this,e,t||"page"),_r(this,e.left,e.top)},lineAtHeight:function(e,t){return e=vr(this,{top:e,left:0},t||"page").top,tt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Ze(this.doc,e)}else r=e;return gr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Cr(this.display)},defaultCharWidth:function(){return Ar(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=mr(this,dt(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ri(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Ii(ls),triggerOnKeyPress:Ii(ds),triggerOnKeyUp:cs,triggerOnMouseDown:Ii(ys),execCommand:function(e){if(Za.hasOwnProperty(e))return Za[e].call(null,this)},triggerElectric:Ii((function(e){Gs(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=dt(this.doc,e),a=0;a<t;++a)if(o=Xs(this.doc,o,i,n,r),o.hitSide)break;return o},moveH:Ii((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Xs(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),q)})),deleteH:Ii((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):qa(this,(function(n){var i=Xs(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=dt(this.doc,e),s=0;s<t;++s){var l=mr(this,a,"div");if(null==o?o=l.left:l.left=o,a=Zs(this,l,i,n),a.hitSide)break}return a},moveV:Ii((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=mr(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Zs(n,s,e,t);return"page"==t&&a==r.sel.primary()&&oi(n,yr(n,l,"div").top-s.top),l}),q),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=this.doc,n=Ze(t,e.line).text,r=e.ch,i=e.ch;if(n){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=n.length||!r?++i:--r;var a=n.charAt(r),s=ne(a,o)?function(e){return ne(e,o)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ne(e)};while(r>0&&s(n.charAt(r-1)))--r;while(i<n.length&&s(n.charAt(i)))++i}return new io(it(e.line,r),it(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?D(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),ye(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==I()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Ii((function(e,t){si(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Yn(this)-this.display.barHeight,width:e.scrollWidth-Yn(this)-this.display.barWidth,clientHeight:Xn(this),clientWidth:Kn(this)}},scrollIntoView:Ii((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:it(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?li(this,e):ci(this,e.from,e.to,e.margin)})),setSize:Ii((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&cr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Nr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,ye(this,"refresh",this)})),operation:function(e){return Mi(this,e)},startOperation:function(){return wi(this)},endOperation:function(){return Si(this)},refresh:Ii((function(){var e=this.display.cachedTextHeight;Rr(this),this.curOp.forceUpdate=!0,dr(this),si(this,this.doc.scrollLeft,this.doc.scrollTop),Gi(this.display),(null==e||Math.abs(e-Cr(this.display))>.5||this.options.lineWrapping)&&Dr(this),ye(this,"refresh",this)})),swapDoc:Ii((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),mo(this,e),dr(this),this.display.input.reset(),si(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Cn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},_e(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function Xs(e,t,n,r,i){var o=t,a=n,s=Ze(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new it(n,t.ch,t.sticky),s=Ze(e,n))}function c(r){var o;if(o=i?Xa(e.cm,s,t,n):Ya(s,t,n),null==o){if(r||!u())return!1;t=Ka(i,e.cm,s,t.line,l)}else t=o;return!0}if("char"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var d=null,f="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;;p=!1){if(n<0&&!c(!p))break;var g=s.text.charAt(t.ch)||"\n",v=ne(g,h)?"w":f&&"\n"==g?"n":!f||/\s/.test(g)?null:"p";if(!f||p||v||(v="s"),d&&d!=v){n<0&&(n=1,c(),t.sticky="after");break}if(v&&(d=v),n>0&&!c(!p))break}var y=Yo(e,t,o,a,!0);return at(o,y)&&(y.hitSide=!0),y}function Zs(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*Cr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;;){if(o=_r(e,s,i),!o.outside)break;if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var $s=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Js(e,t){var n=er(e,t.line);if(!n||n.hidden)return null;var r=Ze(e.doc,t.line),i=$n(n,r,t.line),o=fe(r,e.doc.direction),a="left";if(o){var s=ce(o,t.ch);a=s%2?"right":"left"}var l=or(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function Qs(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function el(e,t){return t&&(e.bad=!0),e}function tl(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(e){return function(t){return t.id==e}}function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function d(e){e&&(c(),o+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var o,h=t.getAttribute("cm-marker");if(h){var p=e.findMarks(it(r,0),it(i+1,0),u(+h));return void(p.length&&(o=p[0].find(0))&&d($e(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&c();for(var v=0;v<t.childNodes.length;v++)f(t.childNodes[v]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),g&&(a=!0)}else 3==t.nodeType&&d(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;;){if(f(t),t==n)break;t=t.nextSibling,l=!1}return o}function nl(e,t,n){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[n],!r)return el(e.clipPos(it(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return rl(o,t,n)}}function rl(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!L(r,t))return el(it(et(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?X(e.rest):e.line;return el(it(et(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));while(s.parentNode!=r)s=s.parentNode;var l=e.measure,u=l.maps;function c(t,n,r){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?l.map:u[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var c=et(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),it(c,d)}}}var d=c(a,s,n);if(d)return el(d,i);for(var f=s.nextSibling,h=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(d=c(f,f.firstChild,0),d)return el(it(d.line,d.ch-h),i);h+=f.textContent.length}for(var p=s.previousSibling,g=n;p;p=p.previousSibling){if(d=c(p,p.firstChild,-1),d)return el(it(d.line,d.ch+g),i);g+=p.textContent.length}}$s.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){if(!me(r,e)){if(r.somethingSelected())Us({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=qs(r);Us({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,V),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var o=zs.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var a=Ys(),s=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),s.value=zs.text.join("\n");var l=document.activeElement;P(s),setTimeout((function(){r.display.lineSpace.removeChild(a),l.focus(),l==i&&n.showPrimarySelection()}),50)}}Ws(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),pe(i,"paste",(function(e){me(r,e)||Vs(e,r)||s<=11&&setTimeout(Li(r,(function(){return t.updateFromDOM()})),20)})),pe(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),pe(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),pe(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),pe(i,"touchstart",(function(){return n.forceCompositionEnd()})),pe(i,"input",(function(){t.composing||t.readFromDOMSoon()})),pe(i,"copy",o),pe(i,"cut",o)},$s.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},$s.prototype.prepareSelection=function(){var e=Vr(this.cm,!1);return e.focus=document.activeElement==this.div,e},$s.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},$s.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},$s.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=nl(t,e.anchorNode,e.anchorOffset),s=nl(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ot(ut(a,s),i)||0!=ot(lt(a,s),o)){var l=t.display.view,u=i.line>=t.display.viewFrom&&Js(t,i)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Js(t,o);if(!c){var d=l[l.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;c={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(u&&c){var h,p=e.rangeCount&&e.getRangeAt(0);try{h=O(u.node,u.offset,c.offset,c.node)}catch(g){}h&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),p&&null==e.anchorNode?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},$s.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},$s.prototype.showMultipleSelections=function(e){C(this.cm.display.cursorDiv,e.cursors),C(this.cm.display.selectionDiv,e.selection)},$s.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},$s.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return L(this.div,t)},$s.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},$s.prototype.blur=function(){this.div.blur()},$s.prototype.getField=function(){return this.div},$s.prototype.supportsTouch=function(){return!0},$s.prototype.receivedFocus=function(){var e=this;function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.selectionInEditor()?this.pollSelection():Mi(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,t)},$s.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},$s.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&c&&this.cm.display.gutterSpecs.length&&Qs(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=nl(t,e.anchorNode,e.anchorOffset),r=nl(t,e.focusNode,e.focusOffset);n&&r&&Mi(t,(function(){Uo(t.doc,ao(n,r),V),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},$s.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=it(a.line-1,Ze(r.doc,a.line-1).length)),s.ch==Ze(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=it(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Pr(r,a.line))?(t=et(i.view[0].line),n=i.view[0].node):(t=et(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=Pr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=et(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;var d=r.doc.splitLines(tl(r,n,u,t,l)),f=$e(r.doc,it(t,0),it(l,Ze(r.doc,l).text.length));while(d.length>1&&f.length>1)if(X(d)==X(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}var h=0,p=0,g=d[0],v=f[0],y=Math.min(g.length,v.length);while(h<y&&g.charCodeAt(h)==v.charCodeAt(h))++h;var m=X(d),b=X(f),x=Math.min(m.length-(1==d.length?h:0),b.length-(1==f.length?h:0));while(p<x&&m.charCodeAt(m.length-p-1)==b.charCodeAt(b.length-p-1))++p;if(1==d.length&&1==f.length&&t==a.line)while(h&&h>a.ch&&m.charCodeAt(m.length-p-1)==b.charCodeAt(b.length-p-1))h--,p++;d[d.length-1]=m.slice(0,m.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(h).replace(/\u200b+$/,"");var _=it(t,h),w=it(l,f.length?X(f).length-p:0);return d.length>1||d[0]||ot(_,w)?(ra(r.doc,d,_,w,"+input"),!0):void 0},$s.prototype.ensurePolled=function(){this.forceCompositionEnd()},$s.prototype.reset=function(){this.forceCompositionEnd()},$s.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},$s.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},$s.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Mi(this.cm,(function(){return Rr(e.cm)}))},$s.prototype.setUneditable=function(e){e.contentEditable="false"},$s.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Li(this.cm,Hs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},$s.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},$s.prototype.onContextMenu=function(){},$s.prototype.resetPosition=function(){},$s.prototype.needsContentAttribute=!0;var il=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null};function ol(e,t){if(t=t?N(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=I();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(pe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(l){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ve(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Rs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function al(e){e.off=ve,e.on=pe,e.wheelEventPixels=to,e.Doc=wa,e.splitLines=De,e.countColumn=B,e.findColumn=W,e.isWordChar=te,e.Pass=H,e.signal=ye,e.Line=ln,e.changeEnd=so,e.scrollbarModel=bi,e.Pos=it,e.cmpPos=ot,e.modes=Be,e.mimeModes=Fe,e.resolveMode=He,e.getMode=Ve,e.modeExtensions=Ge,e.extendMode=qe,e.copyState=We,e.startState=Ke,e.innerMode=Ye,e.commands=Za,e.keyMap=Na,e.keyName=Va,e.isModifierKey=Ua,e.lookupKey=za,e.normalizeKeyMap=Fa,e.StringStream=Xe,e.SharedTextMarker=va,e.TextMarker=pa,e.LineWidget=ca,e.e_preventDefault=we,e.e_stopPropagation=Se,e.e_stop=Oe,e.addClass=D,e.contains=L,e.rmClass=T,e.keyNames=Da}il.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!me(r,e)){if(r.somethingSelected())Us({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=qs(r);Us({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,V):(n.prevInput="",i.value=t.text.join("\n"),P(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),pe(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),pe(i,"paste",(function(e){me(r,e)||Vs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pe(i,"cut",o),pe(i,"copy",o),pe(e.scroller,"paste",(function(t){if(!Vn(e,t)&&!me(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),pe(e.lineSpace,"selectstart",(function(t){Vn(e,t)||we(t)})),pe(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},il.prototype.createField=function(e){this.wrapper=Ys(),this.textarea=this.wrapper.firstChild},il.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},il.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Vr(e);if(e.options.moveInputWithCursor){var i=mr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},il.prototype.showSelection=function(e){var t=this.cm,n=t.display;C(n.cursorDiv,e.cursors),C(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},il.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&P(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},il.prototype.getField=function(){return this.textarea},il.prototype.supportsTouch=function(){return!1},il.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||I()!=this.textarea))try{this.textarea.focus()}catch(e){}},il.prototype.blur=function(){this.textarea.blur()},il.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},il.prototype.receivedFocus=function(){this.slowPoll()},il.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},il.prototype.fastPoll=function(){var e=!1,t=this;function n(){var r=t.poll();r||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},il.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||je(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||m&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}var l=0,u=Math.min(r.length,i.length);while(l<u&&r.charCodeAt(l)==i.charCodeAt(l))++l;return Mi(t,(function(){Hs(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},il.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},il.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},il.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=jr(n,e),u=r.scroller.scrollTop;if(o&&!d){var c=n.options.resetSelectionOnContextMenu;c&&-1==n.doc.sel.contains(o)&&Li(n,Uo)(n.doc,ao(o),V);var f,h=i.style.cssText,p=t.wrapper.style.cssText,g=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-g.top-5)+"px; left: "+(e.clientX-g.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(f=window.scrollY),r.input.focus(),l&&window.scrollTo(null,f),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&y(),S){Oe(e);var v=function(){ve(window,"mouseup",v),setTimeout(m,20)};pe(window,"mouseup",v)}else setTimeout(m,50)}function y(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=h,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&y();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Li(n,Xo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},il.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},il.prototype.setUneditable=function(){},il.prototype.needsContentAttribute=!1,Ds(Rs),Ks(Rs);var sl="iter insert remove copy getEditor constructor".split(" ");for(var ll in wa.prototype)wa.prototype.hasOwnProperty(ll)&&z(sl,ll)<0&&(Rs.prototype[ll]=function(e){return function(){return e.apply(this.doc,arguments)}}(wa.prototype[ll]));return _e(wa),Rs.inputStyles={textarea:il,contenteditable:$s},Rs.defineMode=function(e){Rs.defaults.mode||"null"==e||(Rs.defaults.mode=e),ze.apply(this,arguments)},Rs.defineMIME=Ue,Rs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Rs.defineMIME("text/plain","null"),Rs.defineExtension=function(e,t){Rs.prototype[e]=t},Rs.defineDocExtension=function(e,t){wa.prototype[e]=t},Rs.fromTextArea=ol,al(Rs),Rs.version="5.53.2",Rs}))},a719:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},a8a2:function(e,t){function n(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,xhtml:!1}}function r(t){e.exports.defaults=t}e.exports={defaults:n(),getDefaults:n,changeDefaults:r}},aa6b:function(e,t,n){var r=n("1e2c"),i=n("ef71"),o=n("38b9"),a=n("da10"),s=n("9f67"),l=n("faa8"),u=n("2039"),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=a(e),t=s(t,!0),u)try{return c(e,t)}catch(n){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},ac30:function(e,t,n){const{noopTest:r,edit:i,merge:o}=n("322c"),a={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:r,table:r,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};a.def=i(a.def).replace("label",a._label).replace("title",a._title).getRegex(),a.bullet=/(?:[*+-]|\d{1,9}\.)/,a.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,a.item=i(a.item,"gm").replace(/bull/g,a.bullet).getRegex(),a.list=i(a.list).replace(/bull/g,a.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+a.def.source+")").getRegex(),a._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",a._comment=/<!--(?!-?>)[\s\S]*?-->/,a.html=i(a.html,"i").replace("comment",a._comment).replace("tag",a._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),a.paragraph=i(a._paragraph).replace("hr",a.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",a._tag).getRegex(),a.blockquote=i(a.blockquote).replace("paragraph",a.paragraph).getRegex(),a.normal=o({},a),a.gfm=o({},a.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),a.gfm.nptable=i(a.gfm.nptable).replace("hr",a.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",a._tag).getRegex(),a.gfm.table=i(a.gfm.table).replace("hr",a.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",a._tag).getRegex(),a.pedantic=o({},a.normal,{html:i("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",a._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:r,paragraph:i(a.normal._paragraph).replace("hr",a.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",a.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const s={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:r,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^_([^\s_<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s*<\[])\*(?!\*)|^\*([^\s<"][\s\S]*?[^\s\[\*])\*(?![\]`punctuation])|^\*([^\s*"<\[][\s\S]*[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:r,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,_punctuation:"!\"#$%&'()*+\\-./:;<=>?@\\[^_{|}~"};s.em=i(s.em).replace(/punctuation/g,s._punctuation).getRegex(),s._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,s._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,s._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,s.autolink=i(s.autolink).replace("scheme",s._scheme).replace("email",s._email).getRegex(),s._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,s.tag=i(s.tag).replace("comment",a._comment).replace("attribute",s._attribute).getRegex(),s._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,s._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,s._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,s.link=i(s.link).replace("label",s._label).replace("href",s._href).replace("title",s._title).getRegex(),s.reflink=i(s.reflink).replace("label",s._label).getRegex(),s.normal=o({},s),s.pedantic=o({},s.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:i(/^!?\[(label)\]\((.*?)\)/).replace("label",s._label).getRegex(),reflink:i(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",s._label).getRegex()}),s.gfm=o({},s.normal,{escape:i(s.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),s.gfm.url=i(s.gfm.url,"i").replace("email",s.gfm._extended_email).getRegex(),s.breaks=o({},s.gfm,{br:i(s.br).replace("{2,}","*").getRegex(),text:i(s.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),e.exports={block:a,inline:s}},ae25:function(e,t,n){var r=n("d890"),i=n("a719"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},b2e0:function(e,t,n){(function(e){e(n("a564"))})((function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,l={},u=i.htmlMode?t:n;for(var c in u)l[c]=u[c];for(var c in i)l[c]=i[c];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r,i=e.next();return"<"==i?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(g(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):"&"==i?(r=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),r?"atom":"error"):(e.eatWhile(/[^&<]/),null)}function f(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=d,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=d,t.state=b,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=h(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(e){var t=function(t,n){while(!t.eol())if(t.next()==e){n.tokenize=f;break}return"string"};return t.isInAttribute=!0,t}function p(e,t){return function(n,r){while(!n.eol()){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function g(e){return function(t,n){var r;while(null!=(r=t.next())){if("<"==r)return n.tokenize=g(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=d;break}return n.tokenize=g(e-1),n.tokenize(t,n)}}return"meta"}}function v(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function m(e,t){var n;while(1){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(t))return;y(e)}}function b(e,t,n){return"openTag"==e?(n.tagStart=t.column(),x):"closeTag"==e?_:b}function x(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",k):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",k(e,t,n)):(a="error",x)}function _(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&y(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",w):(a="tag error",S)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",w(e,t,n)):(a="error",S)}function w(e,t,n){return"endTag"!=e?(a="error",w):(y(n),b)}function S(e,t,n){return a="error",w(e,t,n)}function k(e,t,n){if("word"==e)return a="attribute",O;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(r)?m(n,r):(m(n,r),n.context=new v(n,r,i==n.indented)),b}return a="error",k}function O(e,t,n){return"equals"==e?T:(l.allowMissing||(a="error"),k(e,t,n))}function T(e,t,n){return"string"==e?E:"word"==e&&l.allowUnquoted?(a="string",k):(a="error",k(e,t,n))}function E(e,t,n){return"string"==e?E:k(e,t,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:b,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=f&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])while(i){if(i.tagName==o[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(o)while(i){var a=l.contextGrabbers[i.tagName];if(!a||!a.hasOwnProperty(o[2]))break;i=i.prev}while(i&&i.prev&&!i.startOfLine)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==T&&(e.state=k)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)n.tagName&&t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}))},b338:function(e,t,n){var r=n("ead4"),i=n("18f6"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},b702:function(e,t,n){var r,i,o,a=n("604f"),s=n("d890"),l=n("a719"),u=n("0fc1"),c=n("faa8"),d=n("7db2"),f=n("d5a8"),h=s.WeakMap,p=function(e){return o(e)?i(e):r(e,{})},g=function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a){var v=new h,y=v.get,m=v.has,b=v.set;r=function(e,t){return b.call(v,e,t),t},i=function(e){return y.call(v,e)||{}},o=function(e){return m.call(v,e)}}else{var x=d("state");f[x]=!0,r=function(e,t){return u(e,x,t),t},i=function(e){return c(e,x)?e[x]:{}},o=function(e){return c(e,x)}}e.exports={set:r,get:i,has:o,enforce:p,getterFor:g}},b73f:function(e,t,n){var r=n("1c8b"),i=n("efe2"),o=n("da10"),a=n("aa6b").f,s=n("1e2c"),l=i((function(){a(1)})),u=!s||l;r({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},bf84:function(e,t,n){var r=n("1c8b"),i=n("1e2c"),o=n("8d44"),a=n("da10"),s=n("aa6b"),l=n("1bbd");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){var t,n,r=a(e),i=s.f,u=o(r),c={},d=0;while(u.length>d)n=i(r,t=u[d++]),void 0!==n&&l(c,t,n);return c}})},c051:function(e,t,n){var r=n("da10"),i=n("b338").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},c54b:function(e,t,n){var r=n("efe2");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},c59c:function(e,t,n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(d){var e,t,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,o=r.exec(d.stack)||i.exec(d.stack),a=o&&o[1]||!1,s=o&&o[2]||!1,l=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");a===l&&(e=document.documentElement.outerHTML,t=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=e.replace(t,"$1").trim());for(var c=0;c<u.length;c++){if("interactive"===u[c].readyState)return u[c];if(u[c].src===a)return u[c];if(a===l&&u[c].innerHTML&&u[c].innerHTML.trim()===n)return u[c]}return null}}return e}))},c69d:function(e,t,n){var r=n("faa8"),i=n("8d44"),o=n("aa6b"),a=n("d910");e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,u=0;u<n.length;u++){var c=n[u];r(e,c)||s(e,c,l(t,c))}}},cbab:function(e,t,n){var r=n("ead4"),i=n("18f6");e.exports=Object.keys||function(e){return r(e,i)}},ccf5:function(e,t,n){},d5a8:function(e,t){e.exports={}},d776:function(e,t,n){(function(e){e(n("a564"))})((function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n,r){return t.indent(e.base,n,r)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){var i,o;return t.blankLine&&(i=t.blankLine(e.base)),n.blankLine&&(o=n.blankLine(e.overlay)),null==o?i:r&&null!=i?i+" "+o:o}}}}))},d7e1:function(e,t,n){"use strict";var r=n("efe2");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},d88d:function(e,t,n){var r=n("3da3"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},d890:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("9edd"))},d910:function(e,t,n){var r=n("1e2c"),i=n("2039"),o=n("857c"),a=n("9f67"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},da10:function(e,t,n){var r=n("692f"),i=n("2732");e.exports=function(e){return r(i(e))}},dbb3:function(e,t,n){"use strict";var r=n("1c8b"),i=n("5dfd").filter,o=n("1ea7"),a=n("ff9c"),s=o("filter"),l=a("filter");r({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},dbe8:function(e,t,n){var r=n("1e2c"),i=n("d910"),o=n("857c"),a=n("cbab");e.exports=r?Object.defineProperties:function(e,t){o(e);var n,r=a(t),s=r.length,l=0;while(s>l)i.f(e,n=r[l++],t[n]);return e}},e1d6:function(e,t,n){var r=n("3da3"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},e349:function(e,t,n){var r=n("0c3c");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},e4db:function(e,t,n){var r=n("d890"),i=n("0fc1");e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},e8d6:function(e,t,n){var r=n("efe2"),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},ead4:function(e,t,n){var r=n("faa8"),i=n("da10"),o=n("45af").indexOf,a=n("d5a8");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},ef71:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},efe2:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},f3dd:function(e,t,n){"use strict";var r=n("1c8b"),i=n("d890"),o=n("6d7a"),a=n("9b9d"),s=n("1e2c"),l=n("c54b"),u=n("74cb"),c=n("efe2"),d=n("faa8"),f=n("74e7"),h=n("a719"),p=n("857c"),g=n("3553"),v=n("da10"),y=n("9f67"),m=n("38b9"),b=n("6d60"),x=n("cbab"),_=n("b338"),w=n("c051"),S=n("0a60"),k=n("aa6b"),O=n("d910"),T=n("ef71"),E=n("0fc1"),C=n("1944"),A=n("6d28"),M=n("7db2"),L=n("d5a8"),I=n("7e8b"),D=n("90fb"),j=n("4350"),P=n("6d51"),R=n("27b5"),N=n("b702"),B=n("5dfd").forEach,F=M("hidden"),z="Symbol",U="prototype",H=D("toPrimitive"),V=N.set,G=N.getterFor(z),q=Object[U],W=i.Symbol,Y=o("JSON","stringify"),K=k.f,X=O.f,Z=w.f,$=T.f,J=A("symbols"),Q=A("op-symbols"),ee=A("string-to-symbol-registry"),te=A("symbol-to-string-registry"),ne=A("wks"),re=i.QObject,ie=!re||!re[U]||!re[U].findChild,oe=s&&c((function(){return 7!=b(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(q,t);r&&delete q[t],X(e,t,n),r&&e!==q&&X(q,t,r)}:X,ae=function(e,t){var n=J[e]=b(W[U]);return V(n,{type:z,tag:e,description:t}),s||(n.description=t),n},se=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},le=function(e,t,n){e===q&&le(Q,t,n),p(e);var r=y(t,!0);return p(n),d(J,r)?(n.enumerable?(d(e,F)&&e[F][r]&&(e[F][r]=!1),n=b(n,{enumerable:m(0,!1)})):(d(e,F)||X(e,F,m(1,{})),e[F][r]=!0),oe(e,r,n)):X(e,r,n)},ue=function(e,t){p(e);var n=v(t),r=x(n).concat(pe(n));return B(r,(function(t){s&&!de.call(n,t)||le(e,t,n[t])})),e},ce=function(e,t){return void 0===t?b(e):ue(b(e),t)},de=function(e){var t=y(e,!0),n=$.call(this,t);return!(this===q&&d(J,t)&&!d(Q,t))&&(!(n||!d(this,t)||!d(J,t)||d(this,F)&&this[F][t])||n)},fe=function(e,t){var n=v(e),r=y(t,!0);if(n!==q||!d(J,r)||d(Q,r)){var i=K(n,r);return!i||!d(J,r)||d(n,F)&&n[F][r]||(i.enumerable=!0),i}},he=function(e){var t=Z(v(e)),n=[];return B(t,(function(e){d(J,e)||d(L,e)||n.push(e)})),n},pe=function(e){var t=e===q,n=Z(t?Q:v(e)),r=[];return B(n,(function(e){!d(J,e)||t&&!d(q,e)||r.push(J[e])})),r};if(l||(W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=I(e),n=function(e){this===q&&n.call(Q,e),d(this,F)&&d(this[F],t)&&(this[F][t]=!1),oe(this,t,m(1,e))};return s&&ie&&oe(q,t,{configurable:!0,set:n}),ae(t,e)},C(W[U],"toString",(function(){return G(this).tag})),C(W,"withoutSetter",(function(e){return ae(I(e),e)})),T.f=de,O.f=le,k.f=fe,_.f=w.f=he,S.f=pe,j.f=function(e){return ae(D(e),e)},s&&(X(W[U],"description",{configurable:!0,get:function(){return G(this).description}}),a||C(q,"propertyIsEnumerable",de,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),B(x(ne),(function(e){P(e)})),r({target:z,stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var n=W(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:ce,defineProperty:le,defineProperties:ue,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:he,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:c((function(){S.f(1)}))},{getOwnPropertySymbols:function(e){return S.f(g(e))}}),Y){var ge=!l||c((function(){var e=W();return"[null]"!=Y([e])||"{}"!=Y({a:e})||"{}"!=Y(Object(e))}));r({target:"JSON",stat:!0,forced:ge},{stringify:function(e,t,n){var r,i=[e],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=t,(h(t)||void 0!==e)&&!se(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!se(t))return t}),i[1]=t,Y.apply(null,i)}})}W[U][H]||E(W[U],H,W[U].valueOf),R(W,z),L[F]=!0},f4a0:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript,i=n("c59c");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"simple-mde",class:e.classes},[n("textarea",{ref:"mde"})])},s=[];function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n("f3dd"),n("dbb3"),n("fe59"),n("b73f"),n("bf84"),n("fe8a"),n("08ba"),n("508f");var d=n("4d02"),f=n.n(d),h=(n("ccf5"),n("094f")),p=n.n(h),g=(n("0e50"),{name:"MarkdownEditor",props:{value:{type:String,default:""},border:{type:Boolean,default:!1},config:{type:Object,default:function(){return{}}}},data:function(){return{mde:null,defaultConfig:{}}},computed:{classes:function(){return[{"i-mde-no-border":!this.border}]}},mounted:function(){this.init()},beforeDestroy:function(){this.mde=null},methods:{init:function(){var e=this,t=Object.assign({},this.defaultConfig,this.config);this.mde=new f.a(c(c({},t),{},{initialValue:this.value,element:this.$refs.mde,autoDownloadFontAwesome:!1})),this.mde.codemirror.on("change",(function(){e.$emit("input",e.mde.value()),e.$emit("on-change",e.mde.value());var t=p()(e.mde.value()||"",{renderer:new p.a.Renderer,gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,smartypants:!1});e.$emit("show-html",'<div class="markdown-body" >'+t+"</div>")}))},add:function(e){this.mde&&this.mde.value(this.value+e)},replace:function(e){this.mde&&this.mde.value(e)}}}),v=g;function y(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}var m=y(v,a,s,!1,null,null,null),b=m.exports,x=b;"undefined"!==typeof window&&window.Vue&&window.Vue.component("zx-markdown-editor",b),t["default"]=x},f590:function(e,t,n){(function(e){e(n("a564"))})((function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=e.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var r=e.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function r(e){o(e)&&n(e)}function i(e){var r=e.getWrapperElement(),i=o(e);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(e):t(e)}function o(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(n,o,a){var s=a&&a!=e.Init;if(o&&!s)n.on("blur",r),n.on("change",i),n.on("swapDoc",i),i(n);else if(!o&&s){n.off("blur",r),n.off("change",i),n.off("swapDoc",i),t(n);var l=n.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}o&&!n.hasFocus()&&r(n)}))}))},f594:function(e,t,n){var r,i,o=n("d890"),a=n("4fda"),s=o.process,l=s&&s.versions,u=l&&l.v8;u?(r=u.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},f5ef:function(e,t){e.exports=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}},faa8:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},fe59:function(e,t,n){"use strict";var r=n("1c8b"),i=n("3c10");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},fe5a:function(e,t,n){(function(e){e(n("a564"),n("b2e0"),n("6d86"))})((function(e){"use strict";e.defineMode("markdown",(function(t,n){var r=e.getMode(t,"text/html"),i="null"==r.name;function o(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in a)a.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(a[s]=n.tokenTypeOverrides[s]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,u=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,c=/^\[(x| )\](?=\s)/i,d=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,f=/^ {0,3}(?:\={1,}|-{2,})\s*$/,h=/^[^#!\[\]*_\\<>` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,v=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,y=" ";function m(e,t,n){return t.f=t.inline=n,n(e,t)}function b(e,t,n){return t.f=t.block=n,n(e,t)}function x(e){return!e||!/\S/.test(e.string)}function _(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==S){var n=i;if(!n){var o=e.innerMode(r,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=E,t.block=w,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function w(t,r){var i=t.column()===r.indentation,s=x(r.prevLine.stream),h=r.indentedCode,v=r.prevLine.hr,y=!1!==r.list,b=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var _=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,y)){r.list=null;while(_<r.listStack[r.listStack.length-1])r.listStack.pop(),r.listStack.length?r.indentation=r.listStack[r.listStack.length-1]:r.list=!1;!1!==r.list&&(r.indentationDiff=_-r.listStack[r.listStack.length-1])}var w=!s&&!v&&!r.prevLine.header&&(!y||!h)&&!r.prevLine.fencedCodeEnd,S=(!1===r.list||v||s)&&r.indentation<=b&&t.match(l),T=null;if(r.indentationDiff>=4&&(h||r.prevLine.fencedCodeEnd||r.prevLine.header||s))return t.skipToEnd(),r.indentedCode=!0,a.code;if(t.eatSpace())return null;if(i&&r.indentation<=b&&(T=t.match(d))&&T[1].length<=6)return r.quote=0,r.header=T[1].length,r.thisLine.header=!0,n.highlightFormatting&&(r.formatting="header"),r.f=r.inline,O(r);if(r.indentation<=b&&t.eat(">"))return r.quote=i?1:r.quote+1,n.highlightFormatting&&(r.formatting="quote"),t.eatSpace(),O(r);if(!S&&!r.setext&&i&&r.indentation<=b&&(T=t.match(u))){var E=T[1]?"ol":"ul";return r.indentation=_+t.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,n.taskLists&&t.match(c,!1)&&(r.taskList=!0),r.f=r.inline,n.highlightFormatting&&(r.formatting=["list","list-"+E]),O(r)}return i&&r.indentation<=b&&(T=t.match(p,!0))?(r.quote=0,r.fencedEndRE=new RegExp(T[1]+"+ *$"),r.localMode=n.fencedCodeBlockHighlighting&&o(T[2]),r.localMode&&(r.localState=e.startState(r.localMode)),r.f=r.block=k,n.highlightFormatting&&(r.formatting="code-block"),r.code=-1,O(r)):r.setext||!(w&&y||r.quote||!1!==r.list||r.code||S||g.test(t.string))&&(T=t.lookAhead(1))&&(T=T.match(f))?(r.setext?(r.header=r.setext,r.setext=0,t.skipToEnd(),n.highlightFormatting&&(r.formatting="header")):(r.header="="==T[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,O(r)):S?(t.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,a.hr):"["===t.peek()?m(t,r,I):m(t,r,r.inline)}function S(t,n){var o=r.token(t,n.htmlState);if(!i){var a=e.innerMode(r,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=E,n.block=w,n.htmlState=null)}return o}function k(e,t){var r,i=t.listStack[t.listStack.length-1]||0,o=t.indentation<i,s=i+3;return t.fencedEndRE&&t.indentation<=s&&(o||e.match(t.fencedEndRE))?(n.highlightFormatting&&(t.formatting="code-block"),o||(r=O(t)),t.localMode=t.localState=null,t.block=w,t.f=E,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,o?b(e,t,t.block):r):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),a.code)}function O(e){var t=[];if(e.formatting){t.push(a.formatting),"string"===typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(a.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&t.push(a.formatting+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(a.linkHref,"url"):(e.strong&&t.push(a.strong),e.em&&t.push(a.em),e.strikethrough&&t.push(a.strikethrough),e.emoji&&t.push(a.emoji),e.linkText&&t.push(a.linkText),e.code&&t.push(a.code),e.image&&t.push(a.image),e.imageAltText&&t.push(a.imageAltText,"link"),e.imageMarker&&t.push(a.imageMarker)),e.header&&t.push(a.header,a.header+"-"+e.header),e.quote&&(t.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.quote+"-"+e.quote):t.push(a.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(a.list2):t.push(a.list3):t.push(a.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function T(e,t){if(e.match(h,!0))return O(t)}function E(t,i){var o=i.text(t,i);if("undefined"!==typeof o)return o;if(i.list)return i.list=null,O(i);if(i.taskList){var s=" "===t.match(c,!0)[1];return s?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,O(i)}if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),O(i);var l=t.next();if(i.linkTitle){i.linkTitle=!1;var u=l;"("===l&&(u=")"),u=(u+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var d="^\\s*(?:[^"+u+"\\\\]+|\\\\\\\\|\\\\.)"+u;if(t.match(new RegExp(d),!0))return a.linkHref}if("`"===l){var f=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var h=t.current().length;if(0!=i.code||i.quote&&1!=h){if(h==i.code){var p=O(i);return i.code=0,p}return i.formatting=f,O(i)}return i.code=h,O(i)}if(i.code)return O(i);if("\\"===l&&(t.next(),n.highlightFormatting)){var g=O(i),y=a.formatting+"-escape";return g?g+" "+y:y}if("!"===l&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),O(i);if("["===l&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),O(i);if("]"===l&&i.imageAltText)return n.highlightFormatting&&(i.formatting="image"),g=O(i),i.imageAltText=!1,i.image=!1,i.inline=i.f=A,g;if("["===l&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),O(i);if("]"===l&&i.linkText)return n.highlightFormatting&&(i.formatting="link"),g=O(i),i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?A:E,g;if("<"===l&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=C,n.highlightFormatting&&(i.formatting="link"),g=O(i),g?g+=" ":g="",g+a.linkInline;if("<"===l&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=C,n.highlightFormatting&&(i.formatting="link"),g=O(i),g?g+=" ":g="",g+a.linkEmail;if(n.xml&&"<"===l&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var m=t.string.indexOf(">",t.pos);if(-1!=m){var x=t.string.substring(t.start,m);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(x)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),b(t,i,S)}if(n.xml&&"<"===l&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===l||"_"===l){var _=1,w=1==t.pos?" ":t.string.charAt(t.pos-2);while(_<3&&t.eat(l))_++;var k=t.peek()||" ",T=!/\s/.test(k)&&(!v.test(k)||/\s/.test(w)||v.test(w)),M=!/\s/.test(w)&&(!v.test(w)||/\s/.test(k)||v.test(k)),L=null,I=null;if(_%2&&(i.em||!T||"*"!==l&&M&&!v.test(w)?i.em!=l||!M||"*"!==l&&T&&!v.test(k)||(L=!1):L=!0),_>1&&(i.strong||!T||"*"!==l&&M&&!v.test(w)?i.strong!=l||!M||"*"!==l&&T&&!v.test(k)||(I=!1):I=!0),null!=I||null!=L)return n.highlightFormatting&&(i.formatting=null==L?"strong":null==I?"em":"strong em"),!0===L&&(i.em=l),!0===I&&(i.strong=l),p=O(i),!1===L&&(i.em=!1),!1===I&&(i.strong=!1),p}else if(" "===l&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return O(i);t.backUp(1)}if(n.strikethrough)if("~"===l&&t.eatWhile(l)){if(i.strikethrough)return n.highlightFormatting&&(i.formatting="strikethrough"),p=O(i),i.strikethrough=!1,p;if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),O(i)}else if(" "===l&&t.match(/^~~/,!0)){if(" "===t.peek())return O(i);t.backUp(2)}if(n.emoji&&":"===l&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var D=O(i);return i.emoji=!1,D}return" "===l&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),O(i)}function C(e,t){var r=e.next();if(">"===r){t.f=t.inline=E,n.highlightFormatting&&(t.formatting="link");var i=O(t);return i?i+=" ":i="",i+a.linkInline}return e.match(/^[^>]+/,!0),a.linkInline}function A(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=L("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,O(t)):"error"}var M={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function L(e){return function(t,r){var i=t.next();if(i===e){r.f=r.inline=E,n.highlightFormatting&&(r.formatting="link-string");var o=O(r);return r.linkHref=!1,o}return t.match(M[e]),r.linkHref=!0,O(r)}}function I(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=D,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,O(t)):m(e,t,E)}function D(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=j,n.highlightFormatting&&(t.formatting="link");var r=O(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function j(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=E,a.linkHref+" url")}var P={startState:function(){return{f:w,prevLine:{stream:null},thisLine:{stream:null},block:w,htmlState:null,indentation:0,inline:E,text:T,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return _(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=S)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,y).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==S?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:P}},indent:function(t,n,i){return t.block==S&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:_,getType:O,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return P}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}))},fe8a:function(e,t,n){var r=n("1c8b"),i=n("3553"),o=n("cbab"),a=n("efe2"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return o(i(e))}})},ff9c:function(e,t,n){var r=n("1e2c"),i=n("efe2"),o=n("faa8"),a=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],u=!!o(t,"ACCESSORS")&&t.ACCESSORS,c=o(t,0)?t[0]:l,d=o(t,1)?t[1]:void 0;return s[e]=!!n&&!i((function(){if(u&&!r)return!0;var e={length:-1};u?a(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,c,d)}))}}})}))},d0ce:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r,i=n("6d8b"),o=n("b7d9"),a=n("ec6f"),s="undefined",l=typeof Uint32Array===s?Array:Uint32Array,u=typeof Uint16Array===s?Array:Uint16Array,c=typeof Int32Array===s?Array:Int32Array,d=typeof Float64Array===s?Array:Float64Array,f={float:d,int:c,ordinal:Array,number:Array,time:d};function h(e){return e>65535?l:u}function p(){return[1/0,-1/0]}function g(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function v(e,t,n,r,i){var o=f[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(r)}var y=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(i["f"])()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=e.getSource(),s=this.defaultDimValueGetter=r[o.sourceFormat];this._dimValueGetter=n||s,this._rawExtent=[];Object(a["f"])(o);this._dimensions=Object(i["H"])(t,(function(e){return{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new f[t||"float"](this._rawCount),this._rawExtent[i]=p(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[e]=p());for(var s=i[e],l=o;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=t,r.ordinalOffset=a,r.type="ordinal"},e.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<o;u++){var c=i[u];v(n,u,c.type,l,!0)}for(var d=[],f=s;f<l;f++)for(var h=f-s,p=0;p<o;p++){c=i[p];var g=r.arrayRows.call(this,e[h]||d,c.property,h,p);n[p][f]=g;var y=a[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=Object(i["H"])(a,(function(e){return e.property})),c=0;c<s;c++){var d=a[c];l[c]||(l[c]=p()),v(o,c,d.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,o,l);else for(var f=[],h=e;h<t;h++){f=r.getItem(h,f);for(var g=0;g<s;g++){var y=o[g],m=this._dimValueGetter(f,u[g],h,g);y[h]=m;var b=l[g];m<b[0]&&(b[0]=m),m>b[1]&&(b[1]=m)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var o=this.get(e,r);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.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 r=0,i=this._count-1;while(r<=i){var o=(r+i)/2|0;if(t[o]<e)r=o+1;else{if(!(t[o]>e))return o;i=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks,i=r[e],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var d=this.getRawIndex(u),f=t-i[d],h=Math.abs(f);h<=n&&((h<a||h===a&&f>=0&&s<0)&&(a=h,s=f,l=0),f===s&&(o[l++]=u))}return o.length=l,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{n=h(this._rawCount);e=new n(this.count());for(i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=h(n._rawCount),o=new i(r),a=[],s=e.length,l=0,u=e[0],c=n._chunks,d=0;d<r;d++){var f=void 0,p=n.getRawIndex(d);if(0===s)f=t(d);else if(1===s){var g=c[u][p];f=t(g,d)}else{for(var v=0;v<s;v++)a[v]=c[e[v]][p];a[v]=d,f=t.apply(null,a)}f&&(o[l++]=p)}return l<r&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=Object(i["F"])(e),o=r.length;if(!o)return this;var a=t.count(),s=h(t._rawCount),l=new s(a),u=0,c=r[0],d=e[c][0],f=e[c][1],p=t._chunks,g=!1;if(!t._indices){var v=0;if(1===o){for(var y=p[r[0]],m=0;m<n;m++){var b=y[m];(b>=d&&b<=f||isNaN(b))&&(l[u++]=v),v++}g=!0}else if(2===o){y=p[r[0]];var x=p[r[1]],_=e[r[1]][0],w=e[r[1]][1];for(m=0;m<n;m++){b=y[m];var S=x[m];(b>=d&&b<=f||isNaN(b))&&(S>=_&&S<=w||isNaN(S))&&(l[u++]=v),v++}g=!0}}if(!g)if(1===o)for(m=0;m<a;m++){var k=t.getRawIndex(m);b=p[r[0]][k];(b>=d&&b<=f||isNaN(b))&&(l[u++]=k)}else for(m=0;m<a;m++){for(var O=!0,T=(k=t.getRawIndex(m),0);T<o;T++){var E=r[T];b=p[E][k];(b<e[E][0]||b>e[E][1])&&(O=!1)}O&&(l[u++]=t.getRawIndex(m))}return u<a&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=p();for(var c=0;c<a;c++){for(var d=e.getRawIndex(c),f=0;f<o;f++)s[f]=r[t[f]][d];s[o]=c;var h=n&&n.apply(null,s);if(null!=h){"object"!==typeof h&&(i[0]=h,h=i);for(u=0;u<h.length;u++){var g=t[u],v=h[u],y=l[g],m=r[g];m&&(m[d]=v),v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,o=this.clone([e],!0),a=o._chunks,s=a[e],l=this.count(),u=0,c=Math.floor(1/t),d=this.getRawIndex(0),f=new(h(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));f[u++]=d;for(var p=1;p<l-1;p+=c){for(var g=Math.min(p+c,l-1),v=Math.min(p+2*c,l),y=(v+g)/2,m=0,b=g;b<v;b++){var x=this.getRawIndex(b),_=s[x];isNaN(_)||(m+=_)}m/=v-g;var w=p,S=Math.min(p+c,l),k=p-1,O=s[d];n=-1,i=w;var T=-1,E=0;for(b=w;b<S;b++){x=this.getRawIndex(b),_=s[x];isNaN(_)?(E++,T<0&&(T=x)):(r=Math.abs((k-y)*(_-O)-(k-b)*(m-O)),r>n&&(n=r,i=x))}E>0&&E<S-w&&(f[u++]=Math.min(T,i),i=Math.max(T,i)),f[u++]=i,d=i}return f[u++]=this.getRawIndex(l-1),o._count=u,o._indices=f,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),o=i._chunks,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=i._rawExtent[e]=p(),d=new(h(this._rawCount))(Math.ceil(u/s)),f=0,g=0;g<u;g+=s){s>u-g&&(s=u-g,a.length=s);for(var v=0;v<s;v++){var y=this.getRawIndex(g+v);a[v]=l[y]}var m=n(a),b=this.getRawIndex(Math.min(g+r(a,m)||0,u-1));l[b]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),d[f++]=b}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][a],i);break;case 2:t(r[e[0]][a],r[e[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[e[s]][a];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=p();if(!t)return n;var r,i=this.count(),o=!this._indices;if(o)return this._rawExtent[e].slice();if(r=this._extent[e],r)return r.slice();r=n;for(var a=r[0],s=r[1],l=0;l<i;l++){var u=this.getRawIndex(l),c=t[u];c<a&&(a=c),c>s&&(s=c)}return r=[a,s],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,o=this._chunks,a=t&&Object(i["N"])(t,(function(e,t){return e[t]=!0,e}),{});if(a)for(var s=0;s<o.length;s++)r._chunks[s]=a[s]?g(o[s]):o[s];else r._chunks=o;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Object(i["d"])(this._extent),e._rawExtent=Object(i["d"])(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return Object(o["d"])(e[r],this._dimensions[r])}r={arrayRows:e,objectRows:function(e,t,n,r){return Object(o["d"])(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return Object(o["d"])(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}();t["b"]=y},d284:function(e,t,n){},d409:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return g}));var r=n("5e76"),i=n("6d8b"),o=n("e86a"),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=l(t,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=u(o[a],i);return o.join("\n")}function l(e,t,n,r){r=r||{};var a=Object(i["m"])({},r);a.font=t,n=Object(i["P"])(n,"..."),a.maxIterations=Object(i["P"])(r.maxIterations,2);var s=a.minChar=Object(i["P"])(r.minChar,0);a.cnCharWidth=Object(o["f"])("国",t);var l=a.ascCharWidth=Object(o["f"])("a",t);a.placeholder=Object(i["P"])(r.placeholder,"");for(var u=e=Math.max(0,e-1),c=0;c<s&&u>=l;c++)u-=l;var d=Object(o["f"])(n,t);return d>u&&(n="",d=0),u=e-d,a.ellipsis=n,a.ellipsisWidth=d,a.contentWidth=u,a.containerWidth=e,a}function u(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var a=Object(o["f"])(e,r);if(a<=n)return e;for(var s=0;;s++){if(a<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=0===s?c(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,l),a=Object(o["f"])(e,r)}return""===e&&(e=t.placeholder),e}function c(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function d(e,t){null!=e&&(e+="");var n,r=t.overflow,a=t.padding,s=t.font,c="truncate"===r,d=Object(o["e"])(s),f=Object(i["P"])(t.lineHeight,d),h=!!t.backgroundColor,p="truncate"===t.lineOverflow,g=t.width;n=null==g||"break"!==r&&"breakAll"!==r?e?e.split("\n"):[]:e?x(e,t.font,g,"breakAll"===r,0).lines:[];var v=n.length*f,y=Object(i["P"])(t.height,v);if(v>y&&p){var m=Math.floor(y/f);n=n.slice(0,m)}if(e&&c&&null!=g)for(var b=l(g,s,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),_=0;_<n.length;_++)n[_]=u(n[_],b);var w=y,S=0;for(_=0;_<n.length;_++)S=Math.max(Object(o["f"])(n[_],s),S);null==g&&(g=S);var k=S;return a&&(w+=a[0]+a[2],k+=a[1]+a[3],g+=a[1]+a[3]),h&&(k=g),{lines:n,height:y,outerWidth:k,outerHeight:w,lineHeight:f,calculatedLineHeight:d,contentWidth:S,contentHeight:v,width:g}}var f=function(){function e(){}return e}(),h=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),p=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function g(e,t){var n=new p;if(null!=e&&(e+=""),!e)return n;var l,u=t.width,c=t.height,d=t.overflow,f="break"!==d&&"breakAll"!==d||null==u?null:{width:u,accumWidth:0,breakAll:"breakAll"===d},h=a.lastIndex=0;while(null!=(l=a.exec(e))){var g=l.index;g>h&&v(n,e.substring(h,g),t,f),v(n,l[2],t,f,l[1]),h=a.lastIndex}h<e.length&&v(n,e.substring(h,e.length),t,f);var y=[],m=0,b=0,x=t.padding,_="truncate"===d,w="truncate"===t.lineOverflow;function S(e,t,n){e.width=t,e.lineHeight=n,m+=n,b=Math.max(b,t)}e:for(var k=0;k<n.lines.length;k++){for(var O=n.lines[k],T=0,E=0,C=0;C<O.tokens.length;C++){var A=O.tokens[C],M=A.styleName&&t.rich[A.styleName]||{},L=A.textPadding=M.padding,I=L?L[1]+L[3]:0,D=A.font=M.font||t.font;A.contentHeight=Object(o["e"])(D);var j=Object(i["P"])(M.height,A.contentHeight);if(A.innerHeight=j,L&&(j+=L[0]+L[2]),A.height=j,A.lineHeight=Object(i["Q"])(M.lineHeight,t.lineHeight,j),A.align=M&&M.align||t.align,A.verticalAlign=M&&M.verticalAlign||"middle",w&&null!=c&&m+A.lineHeight>c){C>0?(O.tokens=O.tokens.slice(0,C),S(O,E,T),n.lines=n.lines.slice(0,k+1)):n.lines=n.lines.slice(0,k);break e}var P=M.width,R=null==P||"auto"===P;if("string"===typeof P&&"%"===P.charAt(P.length-1))A.percentWidth=P,y.push(A),A.contentWidth=Object(o["f"])(A.text,D);else{if(R){var N=M.backgroundColor,B=N&&N.image;B&&(B=r["b"](B),r["c"](B)&&(A.width=Math.max(A.width,B.width*j/B.height)))}var F=_&&null!=u?u-E:null;null!=F&&F<A.width?!R||F<I?(A.text="",A.width=A.contentWidth=0):(A.text=s(A.text,F-I,D,t.ellipsis,{minChar:t.truncateMinChar}),A.width=A.contentWidth=Object(o["f"])(A.text,D)):A.contentWidth=Object(o["f"])(A.text,D)}A.width+=I,E+=A.width,M&&(T=Math.max(T,A.lineHeight))}S(O,E,T)}n.outerWidth=n.width=Object(i["P"])(u,b),n.outerHeight=n.height=Object(i["P"])(c,m),n.contentHeight=m,n.contentWidth=b,x&&(n.outerWidth+=x[1]+x[3],n.outerHeight+=x[0]+x[2]);for(k=0;k<y.length;k++){A=y[k];var z=A.percentWidth;A.width=parseInt(z,10)/100*n.width}return n}function v(e,t,n,r,i){var a,s,l=""===t,u=i&&n.rich[i]||{},c=e.lines,d=u.font||n.font,p=!1;if(r){var g=u.padding,v=g?g[1]+g[3]:0;if(null!=u.width&&"auto"!==u.width){var y=Object(o["g"])(u.width,r.width)+v;c.length>0&&y+r.accumWidth>r.width&&(a=t.split("\n"),p=!0),r.accumWidth=y}else{var m=x(t,d,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+v,s=m.linesWidths,a=m.lines}}else a=t.split("\n");for(var b=0;b<a.length;b++){var _=a[b],w=new f;if(w.styleName=i,w.text=_,w.isLineHolder=!_&&!l,"number"===typeof u.width?w.width=u.width:w.width=s?s[b]:Object(o["f"])(_,d),b||p)c.push(new h([w]));else{var S=(c[c.length-1]||(c[0]=new h)).tokens,k=S.length;1===k&&S[0].isLineHolder?S[0]=w:(_||!k||l)&&S.push(w)}}}function y(e){var t=e.charCodeAt(0);return t>=33&&t<=383}var m=Object(i["N"])(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function b(e){return!y(e)||!!m[e]}function x(e,t,n,r,i){for(var a=[],s=[],l="",u="",c=0,d=0,f=0;f<e.length;f++){var h=e.charAt(f);if("\n"!==h){var p=Object(o["f"])(h,t),g=!r&&!b(h);(a.length?d+p>n:i+d+p>n)?d?(l||u)&&(g?(l||(l=u,u="",c=0,d=c),a.push(l),s.push(d-c),u+=h,c+=p,l="",d=c):(u&&(l+=u,u="",c=0),a.push(l),s.push(d),l=h,d=p)):g?(a.push(u),s.push(c),u=h,c=p):(a.push(h),s.push(p)):(d+=p,g?(u+=h,c+=p):(u&&(l+=u,u="",c=0),l+=h))}else u&&(l+=u,d+=c),a.push(l),s.push(d),l="",u="",c=0,d=0}return a.length||l||(l=e,u="",c=0),u&&(l+=u),l&&(a.push(l),s.push(d)),1===a.length&&(d+=i),{accumWidth:d,lines:a,linesWidths:s}}},d498:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=n("4fac"),a=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),s=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){o["a"](e,t,!1)},t}(i["b"]);s.prototype.type="polyline",t["a"]=s},d4c6:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return Object(r["a"])(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.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)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),i["b"].prototype.getBoundingRect.call(this)},t}(i["b"]);t["a"]=o},d51b:function(e,t,n){"use strict";var r=function(){function e(e){this.value=e}return e}(),i=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new r(e);return this.insertEntry(t),t},e.prototype.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++},e.prototype.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--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),o=function(){function e(e){this._list=new i,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,o=null;if(null==i[e]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new r(t),s.key=e,n.insertEntry(s),i[e]=s}return o},e.prototype.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},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();t["a"]=o},d5b7:function(e,t,n){"use strict";var r=n("8582"),i=n("06ad"),o=n("9850"),a=n("6fd3"),s=n("e86a"),l=n("6d8b"),u=n("2cf4c"),c=n("41ef"),d=n("4bc4"),f="__zr_normal__",h=r["a"].concat(["ignore"]),p=Object(l["N"])(r["a"],(function(e,t){return e[t]=!0,e}),{ignore:!1}),g={},v=new o["a"](0,0,0,0),y=function(){function e(e){this.id=Object(l["p"])(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,o=void 0,a=void 0,l=!1;i.parent=r?this:null;var u=!1;if(i.copyTransform(t),null!=n.position){var c=v;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,c):Object(s["c"])(g,n,c),i.x=g.x,i.y=g.y,o=g.align,a=g.verticalAlign;var f=n.origin;if(f&&null!=n.rotation){var h=void 0,p=void 0;"center"===f?(h=.5*c.width,p=.5*c.height):(h=Object(s["g"])(f[0],c.width),p=Object(s["g"])(f[1],c.height)),u=!0,i.originX=-i.x+h+(r?0:c.x),i.originY=-i.y+p+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var y=n.offset;y&&(i.x+=y[0],i.y+=y[1],u||(i.originX=-y[0],i.originY=-y[1]));var m=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,_=void 0,w=void 0;m&&this.canBeInsideText()?(x=n.insideFill,_=n.insideStroke,null!=x&&"auto"!==x||(x=this.getInsideTextFill()),null!=_&&"auto"!==_||(_=this.getInsideTextStroke(x),w=!0)):(x=n.outsideFill,_=n.outsideStroke,null!=x&&"auto"!==x||(x=this.getOutsideFill()),null!=_&&"auto"!==_||(_=this.getOutsideStroke(x),w=!0)),x=x||"#000",x===b.fill&&_===b.stroke&&w===b.autoStroke&&o===b.align&&a===b.verticalAlign||(l=!0,b.fill=x,b.stroke=_,b.autoStroke=w,b.align=o,b.verticalAlign=a,t.setDefaultTextStyle(b)),t.__dirty|=d["a"],l&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?u["d"]:u["a"]},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Object(c["g"])(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(c["h"])(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(l["m"])(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(Object(l["A"])(e))for(var n=e,r=Object(l["F"])(n),i=0;i<r.length;i++){var o=r[i];this.attrKV(o,e[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==f)){var o=r.targetName,a=o?t[o]:t;r.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,h)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(f,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===f,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(l["r"])(a,e)>=0)||!t&&1!==a.length){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),u||i){i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var h=this._textContent,p=this._textGuide;return h&&h.useState(e,t,n,c),p&&p.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~d["a"]),u}Object(l["G"])("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(e[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],f=!!(c&&c.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var g=this._textContent,v=this._textGuide;g&&g.useStates(e,t,f),v&&v.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~d["a"])}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=Object(l["r"])(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=Object(l["r"])(r,e),o=Object(l["r"])(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];Object(l["m"])(n,i),i.textConfig&&(t=t||{},Object(l["m"])(t,i.textConfig))}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,o){var a=!(t&&r);t&&t.textConfig?(this.textConfig=Object(l["m"])({},r?this.textConfig:n.textConfig),Object(l["m"])(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},u=!1,c=0;c<h.length;c++){var d=h[c],f=i&&p[d];t&&null!=t[d]?f?(u=!0,s[d]=t[d]):this[d]=t[d]:a&&null!=n[d]&&(f?(u=!0,s[d]=n[d]):this[d]=n[d])}if(!i)for(c=0;c<this.animators.length;c++){var g=this.animators[c],v=g.targetName;g.getLoop()||g.__changeFinalValue(v?(t||n)[v]:t||n)}u&&this._transitionState(e,s,o)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new r["c"],this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Object(l["m"])(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=d["a"];var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==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),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){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),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this;var o=new i["b"](r,t,n);return e&&(o.targetName=e),this.addAnimator(o,e),o},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during((function(){r.updateDuringAnimation(t)})).done((function(){var t=r.animators,n=Object(l["r"])(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];e&&e!==a.scope?i.push(a):a.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){m(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){m(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=m(this,t,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=d["a"];function n(e,n,r,i){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];o(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,o(this,e)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function m(e,t,n,r,i){n=n||{};var o=[];k(e,"",e,t,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},d=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var f=0;f<o.length;f++){var h=o[f];c&&h.done(c),d&&h.aborted(d),n.force&&h.duration(n.duration),h.start(n.easing)}return o}function b(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function x(e){return Object(l["u"])(e[0])}function _(e,t,n){if(Object(l["u"])(t[n]))if(Object(l["u"])(e[n])||(e[n]=[]),Object(l["E"])(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),b(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(x(i))for(var s=i[0].length,u=0;u<a;u++)o[u]?b(o[u],i[u],s):o[u]=Array.prototype.slice.call(i[u]);else b(o,i,a);o.length=i.length}else e[n]=t[n]}function w(e,t){return e===t||Object(l["u"])(e)&&Object(l["u"])(t)&&S(e,t)}function S(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function k(e,t,n,r,o,a,s,u){for(var c=Object(l["F"])(r),d=o.duration,f=o.delay,h=o.additive,p=o.setToFinal,g=!Object(l["A"])(a),v=e.animators,y=[],m=0;m<c.length;m++){var b=c[m],x=r[b];if(null!=x&&null!=n[b]&&(g||a[b]))if(!Object(l["A"])(x)||Object(l["u"])(x)||Object(l["x"])(x))y.push(b);else{if(t){u||(n[b]=x,e.updateDuringAnimation(t));continue}k(e,b,n[b],x,o,a&&a[b],s,u)}else u||(n[b]=x,e.updateDuringAnimation(t),y.push(b))}var S=y.length;if(!h&&S)for(var O=0;O<v.length;O++){var T=v[O];if(T.targetName===t){var E=T.stopTracks(y);if(E){var C=Object(l["r"])(v,T);v.splice(C,1)}}}if(o.force||(y=Object(l["n"])(y,(function(e){return!w(r[e],n[e])})),S=y.length),S>0||o.force&&!s.length){var A=void 0,M=void 0,L=void 0;if(u){M={},p&&(A={});for(O=0;O<S;O++){b=y[O];M[b]=n[b],p?A[b]=r[b]:n[b]=r[b]}}else if(p){L={};for(O=0;O<S;O++){b=y[O];L[b]=Object(i["a"])(n[b]),_(n,r,b)}}T=new i["b"](n,!1,!1,h?Object(l["n"])(v,(function(e){return e.targetName===t})):null);T.targetName=t,o.scope&&(T.scope=o.scope),p&&A&&T.whenWithKeys(0,A,y),L&&T.whenWithKeys(0,L,y),T.whenWithKeys(null==d?500:d,u?M:r,y).delay(f||0),e.addAnimator(T,t),s.push(T)}}Object(l["K"])(y,a["a"]),Object(l["K"])(y,r["c"]),t["a"]=y},d9fc:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(i["b"]);a.prototype.type="circle",t["a"]=a},dce8:function(e,t,n){"use strict";var r=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}();t["a"]=r},dd4f:function(e,t,n){"use strict";var r=n("9ab4"),i=n("19eb"),o=n("e86a"),a=n("cbe5"),s=n("6d8b"),l=n("726e"),u=Object(s["i"])({strokeFirst:!0,font:l["a"],x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a["a"]),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["a"])(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Object(s["g"])(u,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Object(o["d"])(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(i["c"]);c.prototype.type="tspan",t["a"]=c},dded:function(e,t,n){"use strict";var r=n("9ab4"),i=n("42e5"),o=function(e){function t(t,n,r,i,o){var a=e.call(this,i)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return Object(r["a"])(t,e),t}(i["a"]);t["a"]=o},deab:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"h",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return p})),n.d(t,"b",(function(){return g}));var r=n("6d8b"),i=n("e0d3"),o=Object(i["o"])();function a(e,t,n,i,o){var a;if(t&&t.ecModel){var s=t.ecModel.getUpdatePayload();a=s&&s.animation}var l=t&&t.isAnimationEnabled(),u="update"===e;if(l){var c=void 0,d=void 0,f=void 0;i?(c=Object(r["P"])(i.duration,200),d=Object(r["P"])(i.easing,"cubicOut"),f=0):(c=t.getShallow(u?"animationDurationUpdate":"animationDuration"),d=t.getShallow(u?"animationEasingUpdate":"animationEasing"),f=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(c=a.duration),null!=a.easing&&(d=a.easing),null!=a.delay&&(f=a.delay)),Object(r["w"])(f)&&(f=f(n,o)),Object(r["w"])(c)&&(c=c(n));var h={duration:c||0,delay:f,easing:d};return h}return null}function s(e,t,n,i,o,s,l){var u,c=!1;Object(r["w"])(o)?(l=s,s=o,o=null):Object(r["A"])(o)&&(s=o.cb,l=o.during,c=o.isFrom,u=o.removeOpt,o=o.dataIndex);var d="leave"===e;d||t.stopAnimation("leave");var f=a(e,i,o,d?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,o):null);if(f&&f.duration>0){var h=f.duration,p=f.delay,g=f.easing,v={duration:h,delay:p||0,easing:g,done:s,force:!!s||!!l,setToFinal:!d,scope:e,during:l};c?t.animateFrom(n,v):t.animateTo(n,v)}else t.stopAnimation(),!c&&t.attr(n),l&&l(1),s&&s()}function l(e,t,n,r,i,o){s("update",e,t,n,r,i,o)}function u(e,t,n,r,i,o){s("enter",e,t,n,r,i,o)}function c(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if("leave"===n.scope)return!0}return!1}function d(e,t,n,r,i,o){c(e)||s("leave",e,t,n,r,i,o)}function f(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),d(e,{style:{opacity:0}},t,n,r)}function h(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||f(e,t,n,r)})):f(e,t,n,r)}function p(e){o(e).oldStyle=e.style}function g(e){return o(e).oldStyle}},e0d3:function(e,t,n){"use strict";n.d(t,"r",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"h",(function(){return f})),n.d(t,"m",(function(){return h})),n.d(t,"q",(function(){return p})),n.d(t,"e",(function(){return S})),n.d(t,"n",(function(){return k})),n.d(t,"l",(function(){return O})),n.d(t,"p",(function(){return T})),n.d(t,"x",(function(){return E})),n.d(t,"d",(function(){return A})),n.d(t,"u",(function(){return M})),n.d(t,"o",(function(){return L})),n.d(t,"s",(function(){return D})),n.d(t,"t",(function(){return j})),n.d(t,"b",(function(){return P})),n.d(t,"a",(function(){return R})),n.d(t,"v",(function(){return N})),n.d(t,"w",(function(){return B})),n.d(t,"g",(function(){return F})),n.d(t,"i",(function(){return z})),n.d(t,"j",(function(){return U})),n.d(t,"k",(function(){return H}));var r=n("6d8b"),i=n("22d1"),o=n("3842");function a(e,t,n){return(t-e)*n+e}var s="series\0",l="\0_ec_\0";function u(e){return e instanceof Array?e:null==e?[]:[e]}function c(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var d=["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 f(e){return!Object(r["A"])(e)||Object(r["t"])(e)||e instanceof Date?e:e.value}function h(e){return Object(r["A"])(e)&&!(e instanceof Array)}function p(e,t,n){var i="normalMerge"===n,o="replaceMerge"===n,a="replaceAll"===n;e=e||[],t=(t||[]).slice();var s=Object(r["f"])();Object(r["k"])(t,(function(e,n){Object(r["A"])(e)||(t[n]=null)}));var l=g(e,s,n);return(i||o)&&v(l,e,s,t),i&&y(l,t),i||o?m(l,t,o):a&&b(l,t),x(l),l}function g(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var o=e[i];o&&null!=o.id&&t.set(o.id,i),r.push({existing:"replaceMerge"===n||O(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function v(e,t,n,i){Object(r["k"])(i,(function(o,a){if(o&&null!=o.id){var s=w(o.id),l=n.get(s);if(null!=l){var u=e[l];Object(r["b"])(!u.newOption,'Duplicated option on id "'+s+'".'),u.newOption=o,u.existing=t[l],i[a]=null}}}))}function y(e,t){Object(r["k"])(t,(function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(null==o.id||null==n.id)&&!O(n)&&!O(o)&&_("name",o,n))return e[i].newOption=n,void(t[r]=null)}}))}function m(e,t,n){Object(r["k"])(t,(function(t){if(t){var r,i=0;while((r=e[i])&&(r.newOption||O(r.existing)||r.existing&&null!=t.id&&!_("id",t,r.existing)))i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}}))}function b(e,t){Object(r["k"])(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}function x(e){var t=Object(r["f"])();Object(r["k"])(e,(function(e){var n=e.existing;n&&t.set(n.id,e)})),Object(r["k"])(e,(function(e){var n=e.newOption;Object(r["b"])(!n||null==n.id||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})})),Object(r["k"])(e,(function(e,n){var i=e.existing,o=e.newOption,a=e.keyInfo;if(Object(r["A"])(o)){if(a.name=null!=o.name?w(o.name):i?i.name:s+n,i)a.id=w(i.id);else if(null!=o.id)a.id=w(o.id);else{var l=0;do{a.id="\0"+a.name+"\0"+l++}while(t.get(a.id))}t.set(a.id,e)}}))}function _(e,t,n){var r=S(t[e],null),i=S(n[e],null);return null!=r&&null!=i&&r===i}function w(e){return S(e,"")}function S(e,t){return null==e?t:Object(r["C"])(e)?e:Object(r["z"])(e)||Object(r["D"])(e)?e+"":t}function k(e){var t=e.name;return!(!t||!t.indexOf(s))}function O(e){return e&&null!=e.id&&0===w(e.id).indexOf(l)}function T(e){return l+e}function E(e,t,n){Object(r["k"])(e,(function(e){var i=e.newOption;Object(r["A"])(i)&&(e.keyInfo.mainType=t,e.keyInfo.subType=C(t,i,e.existing,n))}))}function C(e,t,n,r){var i=t.type?t.type:n?n.subType:r.determineSubType(e,t);return i}function A(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[o(n),o(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=S(e[r].seriesId,null);if(null==o)return;for(var a=u(e[r].dataIndex),s=n&&n[o],l=0,c=a.length;l<c;l++){var d=a[l];s&&s[d]?s[d]=null:(t[o]||(t[o]={}))[d]=1}}}function o(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r])if(t)n.push(+r);else{var i=o(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function M(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?Object(r["t"])(t.dataIndex)?Object(r["H"])(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?Object(r["t"])(t.name)?Object(r["H"])(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function L(){var e="__ec_inner_"+I++;return function(t){return t[e]||(t[e]={})}}var I=Object(o["h"])();function D(e,t,n){var r=j(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each((function(t,r){var i=N(e,r,t,{useDefault:l===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[r+"Models"]=i.models,s[r+"Model"]=i.models[0]})),s}function j(e,t){var n;if(Object(r["C"])(e)){var i={};i[e+"Index"]=0,n=i}else n=e;var o=Object(r["f"])(),a={},s=!1;return Object(r["k"])(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=i[1],u=(i[2]||"").toLowerCase();if(l&&u&&!(t&&t.includeMainTypes&&Object(r["r"])(t.includeMainTypes,l)<0)){s=s||!!l;var c=o.get(l)||o.set(l,{});c[u]=e}}else a[n]=e})),{mainTypeSpecified:s,queryOptionMap:o,others:a}}var P={useDefault:!0,enableAll:!1,enableNone:!1},R={useDefault:!1,enableAll:!0,enableNone:!0};function N(e,t,n,i){i=i||P;var o=n.index,a=n.id,s=n.name,l={models:null,specified:null!=o||null!=a||null!=s};if(!l.specified){var u=void 0;return l.models=i.useDefault&&(u=e.getComponent(t))?[u]:[],l}return"none"===o||!1===o?(Object(r["b"])(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===o&&(Object(r["b"])(i.enableAll,'`"all"` is not a valid value on index option.'),o=a=s=null),l.models=e.queryComponents({mainType:t,index:o,id:a,name:s}),l)}function B(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function F(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function z(e){return"auto"===e?i["a"].domSupported?"html":"richText":e||"html"}function U(e,t){var n=Object(r["f"])(),i=[];return Object(r["k"])(e,(function(e){var r=t(e);(n.get(r)||(i.push(r),n.set(r,[]))).push(e)})),{keys:i,buckets:n}}function H(e,t,n,i,s){var l=null==t||"auto"===t;if(null==i)return i;if(Object(r["z"])(i)){var u=a(n||0,i,s);return Object(o["u"])(u,l?Math.max(Object(o["g"])(n||0),Object(o["g"])(i)):t)}if(Object(r["C"])(i))return s<1?n:i;for(var c=[],d=n,f=i,h=Math.max(d?d.length:0,f.length),p=0;p<h;++p){var g=e.getDimensionInfo(p);if(g&&"ordinal"===g.type)c[p]=(s<1&&d?d:f)[p];else{var v=d&&d[p]?d[p]:0,y=f[p];u=a(v,y,s);c[p]=Object(o["u"])(u,l?Math.max(Object(o["g"])(v),Object(o["g"])(y)):t)}}return c}},e263:function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return y})),n.d(t,"e",(function(){return m})),n.d(t,"a",(function(){return b}));var r=n("401b"),i=n("4a3f"),o=Math.min,a=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,c=r["e"](),d=r["e"](),f=r["e"]();function h(e,t,n){if(0!==e.length){for(var r=e[0],i=r[0],s=r[0],l=r[1],u=r[1],c=1;c<e.length;c++)r=e[c],i=o(i,r[0]),s=a(s,r[0]),l=o(l,r[1]),u=a(u,r[1]);t[0]=i,t[1]=l,n[0]=s,n[1]=u}}function p(e,t,n,r,i,s){i[0]=o(e,n),i[1]=o(t,r),s[0]=a(e,n),s[1]=a(t,r)}var g=[],v=[];function y(e,t,n,r,s,l,u,c,d,f){var h=i["c"],p=i["a"],y=h(e,n,s,u,g);d[0]=1/0,d[1]=1/0,f[0]=-1/0,f[1]=-1/0;for(var m=0;m<y;m++){var b=p(e,n,s,u,g[m]);d[0]=o(b,d[0]),f[0]=a(b,f[0])}y=h(t,r,l,c,v);for(m=0;m<y;m++){var x=p(t,r,l,c,v[m]);d[1]=o(x,d[1]),f[1]=a(x,f[1])}d[0]=o(e,d[0]),f[0]=a(e,f[0]),d[0]=o(u,d[0]),f[0]=a(u,f[0]),d[1]=o(t,d[1]),f[1]=a(t,f[1]),d[1]=o(c,d[1]),f[1]=a(c,f[1])}function m(e,t,n,r,s,l,u,c){var d=i["j"],f=i["h"],h=a(o(d(e,n,s),1),0),p=a(o(d(t,r,l),1),0),g=f(e,n,s,h),v=f(t,r,l,p);u[0]=o(e,s,g),u[1]=o(t,l,v),c[0]=a(e,s,g),c[1]=a(t,l,v)}function b(e,t,n,i,o,a,h,p,g){var v=r["l"],y=r["k"],m=Math.abs(o-a);if(m%u<1e-4&&m>1e-4)return p[0]=e-n,p[1]=t-i,g[0]=e+n,void(g[1]=t+i);if(c[0]=l(o)*n+e,c[1]=s(o)*i+t,d[0]=l(a)*n+e,d[1]=s(a)*i+t,v(p,c,d),y(g,c,d),o%=u,o<0&&(o+=u),a%=u,a<0&&(a+=u),o>a&&!h?a+=u:o<a&&h&&(o+=u),h){var b=a;a=o,o=b}for(var x=0;x<a;x+=Math.PI/2)x>o&&(f[0]=l(x)*n+e,f[1]=s(x)*i+t,v(p,f,p),y(g,f,g))}},e6df:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pic-img"},[n("div",{staticClass:"img-container",on:{mousemove:function(t){!e.moveEvent&&e.mouseMove(t)},mouseleave:function(t){!e.leaveEvent&&e.mouseLeave(t)}}},[n("img",{ref:"img",staticStyle:{width:"100%"},attrs:{src:e.lazyload?e.imgLoadedFlag&&e.url:e.url},on:{load:function(t){!e.lazyload&&e.imgLoaded(t)}}}),e.hideZoom||!e.imgLoadedFlag||e.hideSelector?e._e():n("div",{class:["img-selector",{circle:"circle"===e.type}],style:[e.imgSelectorStyle,e.imgSelectorSize,e.imgSelectorPosition,!e.outShow&&e.imgBg,!e.outShow&&e.imgBgSize,!e.outShow&&e.imgBgPosition]},[e._t("default")],2),e.outShow?n("div",{directives:[{name:"show",rawName:"v-show",value:!e.hideOutShow,expression:"!hideOutShow"}],class:["img-out-show",{"base-line":e.baseline}],style:[e.imgOutShowSize,e.imgOutShowPosition,e.imgBg,e.imgBgSize,e.imgBgPosition]},[e.pointer?n("div",{staticClass:"img-selector-point"}):e._e()]):e._e()])])},i=[],o=(n("a9e3"),n("99af"),n("d3b7"),n("e9c4"),{props:{url:{type:String,default:""},highUrl:{type:String,default:""},width:{type:Number,default:168},type:{type:String,default:"circle",validator:function(e){return-1!==["circle","square"].indexOf(e)}},selectorStyle:{type:Object,default:function(){return{}}},outShowStyle:{},scale:{type:Number,default:3},lazyload:{type:Boolean,default:!1},moveEvent:{type:[Object,MouseEvent],default:null},leaveEvent:{type:[Object,MouseEvent],default:null},hideZoom:{type:Boolean,default:!1},outShow:{type:Boolean,default:!1},pointer:{type:Boolean,default:!1},baseline:{type:Boolean,default:!1}},data:function(){return{selector:{width:this.width,top:0,left:0,bgTop:0,bgLeft:0,rightBound:0,bottomBound:0,absoluteLeft:0,absoluteTop:0},imgInfo:{},$img:null,screenWidth:document.body.clientWidth,outShowInitTop:0,outShowTop:0,hideOutShow:!0,imgLoadedFlag:!1,highImgLoadedFlag:!1,hideSelector:!0,timer:null}},computed:{addWidth:function(){return this.outShow?0:this.width/2*(1-this.scale)},imgSelectorPosition:function(){var e=this.selector,t=e.top,n=e.left;return{top:"".concat(t,"px"),left:"".concat(n,"px")}},imgSelectorSize:function(){var e=this.selector.width;return{width:"".concat(e,"px"),height:"".concat(e,"px")}},imgSelectorStyle:function(){return this.selectorStyle},imgOutShowSize:function(){var e=this.scale,t=this.selector.width;return{width:"".concat(t*e,"px"),height:"".concat(t*e,"px")}},imgOutShowPosition:function(){return{top:"".concat(this.outShowTop,"px"),right:"".concat(-8,"px")}},imgBg:function(){return{backgroundImage:"url(".concat(this.highUrl||this.url,")")}},imgBgSize:function(){var e=this.scale,t=this.imgInfo,n=t.height,r=t.width;return{backgroundSize:"".concat(r*e,"px ").concat(n*e,"px")}},imgBgPosition:function(){var e=this.selector,t=e.bgLeft,n=e.bgTop;return{backgroundPosition:"".concat(t,"px ").concat(n,"px")}}},watch:{moveEvent:function(e){this.mouseMove(e)},leaveEvent:function(e){this.mouseLeave(e)},url:function(){this.handlerUrlChange()},width:function(e){this.initSelectorProperty(e)},screenWidth:function(e){var t=this;this.timer||(this.screenWidth=e,this.timer=setTimeout((function(){t.imgLoaded(),clearTimeout(t.timer),t.timer=null}),400))}},created:function(){this.url&&this.lazyload&&this.handlerUrlChange()},mounted:function(){this.$img=this.$refs["img"]},methods:{handlerUrlChange:function(){this.imgLoadedFlag=!1,this.lazyload&&this.loadImg(this.url).then(this.imgLoaded,(function(e){return console.error(e)}))},loadImg:function(e){return new Promise((function(t,n){var r=document.createElement("img");r.addEventListener("load",t),r.addEventListener("error",n),r.src=e}))},imgLoaded:function(){var e=this.$img.getBoundingClientRect();JSON.stringify(this.imgInfo)!=JSON.stringify(e)&&(this.imgInfo=e,this.initSelectorProperty(this.width),this.resetOutShowInitPosition()),this.imgLoadedFlag||(this.imgLoadedFlag=!0,this.$emit("created",e))},mouseMove:function(e){if(!this.hideZoom&&this.imgLoadedFlag){this.imgLoaded();var t=e.pageX,n=e.pageY,r=e.clientY,i=this.scale,o=this.selector,a=this.outShow,s=this.addWidth,l=(this.outShowAutoScroll,this.outShowInitTop),u=n-r,c=o.absoluteLeft,d=o.absoluteTop,f=o.rightBound,h=o.bottomBound,p=t-c,g=n-d;a&&(l||(l=this.outShowInitTop=u+this.imgInfo.top),this.hideOutShow&&(this.hideOutShow=!1),this.outShowTop=u>l?u-l:0),this.hideSelector&&(this.hideSelector=!1),o.top=g>0?g<h?g:h:0,o.left=p>0?p<f?p:f:0,o.bgLeft=s-p*i,o.bgTop=s-g*i}},initSelectorProperty:function(e){var t=e/2,n=this.selector,r=this.imgInfo,i=r.width,o=r.height,a=r.left,s=r.top,l=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,u=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft;n.width=e,n.rightBound=i-e,n.bottomBound=o-e,n.absoluteLeft=a+t+u,n.absoluteTop=s+t+l},mouseLeave:function(){this.hideSelector=!0,this.outShow&&(this.hideOutShow=!0)},reset:function(){Object.assign(this.selector,{top:0,left:0,bgLeft:0,bgTop:0}),this.resetOutShowInitPosition()},resetOutShowInitPosition:function(){this.outShowInitTop=0}}}),a=o,s=(n("b906"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"66bbd7d4",null),u=l.exports;t["a"]=u;"undefined"!==typeof window&&window.Vue&&window.Vue.component("zx-magnifie",u)},e86a:function(e,t,n){"use strict";n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"g",(function(){return h})),n.d(t,"c",(function(){return p}));var r=n("9850"),i=n("d51b"),o=n("726e"),a={};function s(e,t){t=t||o["a"];var n=a[t];n||(n=a[t]=new i["a"](500));var r=n.get(e);return null==r&&(r=o["d"].measureText(e,t).width,n.put(e,r)),r}function l(e,t,n,i){var o=s(e,t),a=f(t),l=c(0,o,n),u=d(0,a,i),h=new r["a"](l,u,o,a);return h}function u(e,t,n,i){var o=((e||"")+"").split("\n"),a=o.length;if(1===a)return l(o[0],t,n,i);for(var s=new r["a"](0,0,0,0),u=0;u<o.length;u++){var c=l(o[u],t,n,i);0===u?s.copy(c):s.union(c)}return s}function c(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function d(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function f(e){return s("国",e)}function h(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function p(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",d="top";if(r instanceof Array)l+=h(r[0],n.width),u+=h(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+a,u+=s,d="middle";break;case"top":l+=a/2,u-=i,c="center",d="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=a-i,u+=s,c="right",d="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,d="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",d="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=d,e}},e887:function(e,t,n){"use strict";var r=n("6d8b"),i=n("2dc5"),o=n("8918"),a=n("625e"),s=n("e0d3"),l=n("7d6c"),u=n("9fbc"),c=n("cccd"),d=n("2306"),f=s["o"](),h=Object(c["a"])(),p=function(){function e(){this.group=new i["a"],this.uid=o["c"]("viewChart"),this.renderTask=Object(u["a"])({plan:y,reset:m}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){0},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&v(i,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&v(i,r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Object(d["traverseElements"])(this.group,e)},e.markUpdateMethod=function(e,t){f(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function g(e,t,n){e&&Object(l["y"])(e)&&("emphasis"===t?l["r"]:l["C"])(e,n)}function v(e,t,n){var i=s["u"](e,t),o=t&&null!=t.highlightKey?Object(l["v"])(t.highlightKey):null;null!=i?Object(r["k"])(s["r"](i),(function(t){g(e.getItemGraphicEl(t),n,o)})):e.eachItemGraphicEl((function(e){g(e,n,o)}))}function y(e){return h(e.model)}function m(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&f(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,r,i),b[l]}a["b"](p,["dispose"]),a["c"](p);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)}}};t["a"]=p},ec6f:function(e,t,n){"use strict";n.d(t,"e",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return y}));var r=n("6d8b"),i=n("07fd"),o=n("e0d3"),a=n("0f99"),s=function(){function e(e){this.data=e.data||(e.sourceFormat===i["d"]?{}:[]),this.sourceFormat=e.sourceFormat||i["h"],this.seriesLayoutBy=e.seriesLayoutBy||i["a"],this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];null==r.type&&Object(a["b"])(this,n)===a["a"].Must&&(r.type="ordinal")}}return e}();function l(e){return e instanceof s}function u(e,t,n){n=n||f(e);var i=t.seriesLayoutBy,o=h(e,n,i,t.sourceHeader,t.dimensions),a=new s({data:e,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:Object(r["d"])(t)});return a}function c(e){return new s({data:e,sourceFormat:Object(r["E"])(e)?i["g"]:i["f"]})}function d(e){return new s({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Object(r["d"])(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function f(e){var t=i["h"];if(Object(r["E"])(e))t=i["g"];else if(Object(r["t"])(e)){0===e.length&&(t=i["c"]);for(var n=0,o=e.length;n<o;n++){var a=e[n];if(null!=a){if(Object(r["t"])(a)){t=i["c"];break}if(Object(r["A"])(a)){t=i["e"];break}}}}else if(Object(r["A"])(e))for(var s in e)if(Object(r["q"])(e,s)&&Object(r["u"])(e[s])){t=i["d"];break}return t}function h(e,t,n,a,s){var l,u;if(!e)return{dimensionsDefine:g(s),startIndex:u,dimensionsDetectedCount:l};if(t===i["c"]){var c=e;"auto"===a||null==a?v((function(e){null!=e&&"-"!==e&&(Object(r["C"])(e)?null==u&&(u=1):u=0)}),n,c,10):u=Object(r["z"])(a)?a:a?1:0,s||1!==u||(s=[],v((function(e,t){s[t]=null!=e?e+"":""}),n,c,1/0)),l=s?s.length:n===i["b"]?c.length:c[0]?c[0].length:null}else if(t===i["e"])s||(s=p(e));else if(t===i["d"])s||(s=[],Object(r["k"])(e,(function(e,t){s.push(t)})));else if(t===i["f"]){var d=Object(o["h"])(e[0]);l=Object(r["t"])(d)&&d.length||1}else i["g"];return{startIndex:u,dimensionsDefine:g(s),dimensionsDetectedCount:l}}function p(e){var t,n=0;while(n<e.length&&!(t=e[n++]));if(t){var i=[];return Object(r["k"])(t,(function(e,t){i.push(t)})),i}}function g(e){if(e){var t=Object(r["f"])();return Object(r["H"])(e,(function(e,n){e=Object(r["A"])(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var o=t.get(i.name);return o?i.name+="-"+o.count++:t.set(i.name,{count:1}),i}))}}function v(e,t,n,r){if(t===i["b"])for(var o=0;o<n.length&&o<r;o++)e(n[o]?n[o][0]:null,o);else{var a=n[0]||[];for(o=0;o<a.length&&o<r;o++)e(a[o],o)}}function y(e){var t=e.sourceFormat;return t===i["e"]||t===i["d"]}},eda2:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"g",(function(){return f})),n.d(t,"d",(function(){return g})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"b",(function(){return m})),n.d(t,"j",(function(){return b}));var r=n("6d8b"),i=n("3842"),o=n("f876");function a(e){if(!Object(i["i"])(e))return r["C"](e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[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=r["M"],u=/([&<>"'])/g,c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function d(e){return null==e?"":(e+"").replace(u,(function(e,t){return c[t]}))}function f(e,t,n){var s="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function l(e){return e&&r["T"](e)?e:"-"}function u(e){return!(null==e||isNaN(e)||!isFinite(e))}var c="time"===t,d=e instanceof Date;if(c||d){var f=c?Object(i["n"])(e):e;if(!isNaN(+f))return Object(o["h"])(f,s,n);if(d)return"-"}if("ordinal"===t)return r["D"](e)?l(e):r["z"](e)&&u(e)?e+"":"-";var h=Object(i["m"])(e);return u(h)?a(h):r["D"](e)?l(e):"boolean"===typeof e?e+"":"-"}var h=["a","b","c","d","e","f","g"],p=function(e,t){return"{"+e+(null==t?"":t)+"}"};function g(e,t,n){r["t"](t)||(t=[t]);var i=t.length;if(!i)return"";for(var o=t[0].$vars||[],a=0;a<o.length;a++){var s=h[a];e=e.replace(p(s),p(s,0))}for(var l=0;l<i;l++)for(var u=0;u<o.length;u++){var c=t[l][o[u]];e=e.replace(p(h[u],l),n?d(c):c)}return e}function v(e,t,n){return r["k"](t,(function(t,r){e=e.replace("{"+r+"}",n?d(t):t)})),e}function y(e,t){var n=r["C"](e)?{color:e,extraCssText:t}:e||{},i=n.color,o=n.type;t=n.extraCssText;var a=n.renderMode||"html";if(!i)return"";if("html"===a)return"subItem"===o?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+d(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+d(i)+";"+(t||"")+'"></span>';var s=n.markerId||"markerX";return{renderMode:a,content:"{"+s+"|} ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function m(e,t){return t=t||"transparent",r["C"](e)?e:r["A"](e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function b(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}},edae:function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return c}));var r="[ECharts] ",i={},o="undefined"!==typeof console&&console.warn&&console.log;function a(e,t,n){if(o){if(n){if(i[t])return;i[t]=!0}console[e](r+t)}}function s(e,t){a("warn",e,t)}function l(e,t){a("error",e,t)}function u(e){0}function c(e){throw new Error(e)}},ee29:function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var r=n("e0d3"),i=n("9850"),o=n("deab"),a=n("861c"),s=n("3842"),l=n("8582"),u=n("89b6"),c=n("6d8b"),d=n("2355"),f=n("7837");function h(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function p(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:h(r&&r.shape.points)}}var g=["align","verticalAlign","width","height","fontSize"],v=new l["c"],y=Object(r["o"])(),m=Object(r["o"])();function b(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var x=["x","y","rotation"],_=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,o){var a=r.style,s=r.__hostTarget,l=s.textConfig||{},u=r.getComputedTransform(),c=r.getBoundingRect().plain();i["a"].applyTransform(c,c,u),u?v.setLocalTransform(u):(v.x=v.y=v.rotation=v.originX=v.originY=0,v.scaleX=v.scaleY=1);var d,f=r.__hostTarget;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();i["a"].applyTransform(d,d,h)}var p=d&&f.getTextGuideLine();this._labelList.push({label:r,labelLine:p,seriesModel:n,dataIndex:e,dataType:t,layoutOption:o,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:p&&p.ignore,x:v.x,y:v.y,scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(Object(c["w"])(r)||Object(c["F"])(r).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var i=e.getTextContent(),o=Object(a["a"])(e);i&&!i.disableLabelLayout&&t._addLabel(o.dataIndex,o.dataType,n,i,r)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){Object(u["e"])(e,t)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,l=a.__hostTarget,d=o.defaultAttr,f=void 0;f=Object(c["w"])(o.layoutOption)?o.layoutOption(p(o,l)):o.layoutOption,f=f||{},o.computedLayoutOption=f;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=f.x||null!=f.y?null:d.attachedPos,rotation:null!=f.rotate?f.rotate*h:d.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(null!=f.x?(a.x=Object(s["o"])(f.x,t),a.setStyle("x",0),v=!0):(a.x=d.x,a.setStyle("x",d.style.x)),null!=f.y?(a.y=Object(s["o"])(f.y,n),a.setStyle("y",0),v=!0):(a.y=d.y,a.setStyle("y",d.style.y)),f.labelLinePoints){var m=l.getTextGuideLine();m&&(m.setShape({points:f.labelLinePoints}),v=!1)}var b=y(a);b.needsUpdateLabelLine=v,a.rotation=null!=f.rotate?f.rotate*h:d.rotation,a.scaleX=d.scaleX,a.scaleY=d.scaleY;for(var x=0;x<g.length;x++){var _=g[x];a.setStyle(_,null!=f[_]?f[_]:d.style[_])}if(f.draggable){if(a.draggable=!0,a.cursor="move",l){var w=o.seriesModel;if(null!=o.dataIndex){var S=o.seriesModel.getData(o.dataType);w=S.getItemModel(o.dataIndex)}a.on("drag",r(l,w.getModel("labelLine")))}}else a.off("drag"),a.cursor=d.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=Object(d["b"])(this._labelList),i=Object(c["n"])(r,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),o=Object(c["n"])(r,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));Object(d["c"])(i,0,t),Object(d["d"])(o,0,n);var a=Object(c["n"])(r,(function(e){return e.layoutOption.hideOverlap}));Object(d["a"])(a)},e.prototype.processLabelsOverall=function(){var e=this;Object(c["k"])(this._chartViewList,(function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var o=!r,a=t.getTextContent();!o&&a&&(o=y(a).needsUpdateLabelLine),o&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Object(a["a"])(e),i=r.dataIndex;if(n&&null!=i){var o=t.getData(r.dataType),s=o.getItemModel(i),l={},c=o.getItemVisual(i,"style"),d=o.getVisual("drawType");l.stroke=c[d];var f=s.getModel("labelLine");Object(u["d"])(e,Object(u["a"])(s),l),Object(u["e"])(e,f)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Object(o["d"])(e))){var i=y(n),s=i.oldLayout,l=Object(a["a"])(e),u=l.dataIndex,d={x:n.x,y:n.y,rotation:n.rotation},h=t.getData(l.dataType);if(s){n.attr(s);var p=e.prevStates;p&&(Object(c["r"])(p,"select")>=0&&n.attr(i.oldLayoutSelect),Object(c["r"])(p,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Object(o["h"])(n,d,t,u)}else if(n.attr(d),!Object(f["f"])(n).valueAnimation){var g=Object(c["P"])(n.style.opacity,1);n.style.opacity=0,Object(o["c"])(n,{style:{opacity:g}},t,u)}if(i.oldLayout=d,n.states.select){var v=i.oldLayoutSelect={};b(v,d,x),b(v,n.states.select,x)}if(n.states.emphasis){var _=i.oldLayoutEmphasis={};b(_,d,x),b(_,n.states.emphasis,x)}Object(f["a"])(n,u,h,t,t)}if(r&&!r.ignore&&!r.invisible){i=m(r),s=i.oldLayout;var w={points:r.shape.points};s?(r.attr({shape:s}),Object(o["h"])(r,{shape:w},t)):(r.setShape(w),r.style.strokePercent=0,Object(o["c"])(r,{style:{strokePercent:1}},t)),i.oldLayout=w}},e}(),w=_,S=Object(r["o"])();function k(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var r=S(t).labelManager;r||(r=S(t).labelManager=new w),r.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var r=S(t).labelManager;n.updatedSeries.forEach((function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()}))}},ef59:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return v})),n.d(t,"c",(function(){return y}));var r=n("4319"),i=n("22d1"),o={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},a={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},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:""}}}},s=n("6d8b"),l="ZH",u="EN",c=u,d={},f={},h=i["a"].domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(l)>-1?l:c}():c;function p(e,t){e=e.toUpperCase(),f[e]=new r["a"](t),d[e]=t}function g(e){if(Object(s["C"])(e)){var t=d[e.toUpperCase()]||{};return e===l||e===u?Object(s["d"])(t):Object(s["I"])(Object(s["d"])(t),Object(s["d"])(d[c]),!1)}return Object(s["I"])(Object(s["d"])(e),Object(s["d"])(d[c]),!1)}function v(e){return f[e]}function y(){return f[c]}p(u,o),p(l,a)},f3bb:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var r=n("6d8b"),i=n("e0d3");function o(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){r.push(e.seriesIndex)})),r}Object(r["k"])([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,i,o){t=Object(r["m"])({},t),o.dispatchAction(Object(r["m"])(t,{type:e[1],seriesIndex:n(i,t)}))}))}))}function a(e,t,n,o,a){var s=e+t;n.isSilent(s)||o.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,o=e.option.selectedMap,l=a.selected,u=0;u<l.length;u++)if(l[u].seriesIndex===t){var c=e.getData(),d=Object(i["u"])(c,a.fromActionPayload);n.trigger(s,{type:s,seriesId:e.id,name:Object(r["t"])(d)?c.getName(d[0]):c.getName(d),selected:Object(r["C"])(o)?o:Object(r["m"])({},o)})}}))}function s(e,t,n){e.on("selectchanged",(function(e){var r=n.getModel();e.isFromClick?(a("map","selectchanged",t,r,e),a("pie","selectchanged",t,r,e)):"select"===e.fromAction?(a("map","selected",t,r,e),a("pie","selected",t,r,e)):"unselect"===e.fromAction&&(a("map","unselected",t,r,e),a("pie","unselected",t,r,e))}))}},f6d8:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("6d8b"),i=n("217c"),o=n("2b17"),a=n("e0d3");function s(e){var t,n,s,u,c=e.series,d=e.dataIndex,f=e.multipleSeries,h=c.getData(),p=h.mapDimensionsAll("defaultedTooltip"),g=p.length,v=c.getRawValue(d),y=Object(r["t"])(v),m=Object(i["e"])(c,d);if(g>1||y&&!g){var b=l(v,c,d,p,m);t=b.inlineValues,n=b.inlineValueTypes,s=b.blocks,u=b.inlineValues[0]}else if(g){var x=h.getDimensionInfo(p[0]);u=t=Object(o["e"])(h,d,p[0]),n=x.type}else u=t=y?v[0]:v;var _=Object(a["n"])(c),w=_&&c.name||"",S=h.getName(d),k=f?w:S;return Object(i["c"])("section",{header:w,noHeader:f||!_,sortParam:u,blocks:[Object(i["c"])("nameValue",{markerType:"item",markerColor:m,name:k,noName:!Object(r["T"])(k),value:t,valueType:n})].concat(s||[])})}function l(e,t,n,a,s){var l=t.getData(),u=Object(r["N"])(e,(function(e,t,n){var r=l.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),c=[],d=[],f=[];function h(e,t){var n=l.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(u?f.push(Object(i["c"])("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:e,valueType:n.type})):(c.push(e),d.push(n.type)))}return a.length?Object(r["k"])(a,(function(e){h(Object(o["e"])(l,n,e),e)})):Object(r["k"])(e,h),{inlineValues:c,inlineValueTypes:d,blocks:f}}},f72b:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var r=n("6d8b"),i=n("ec6f"),o=n("07fd"),a=n("0f99"),s=n("04f7"),l=n("d0ce"),u=n("2b17"),c=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,a=this._getUpstreamSourceManagers(),s=!!a.length;if(f(n)){var l=n,u=void 0,c=void 0,d=void 0;if(s){var h=a[0];h.prepareSource(),d=h.getSource(),u=d.data,c=d.sourceFormat,t=[h._getVersionSign()]}else u=l.get("data",!0),c=Object(r["E"])(u)?o["g"]:o["f"],t=[];var p=this._getSourceMetaRawOption()||{},g=d&&d.metaRawOption||{},v=Object(r["P"])(p.seriesLayoutBy,g.seriesLayoutBy)||null,y=Object(r["P"])(p.sourceHeader,g.sourceHeader),m=Object(r["P"])(p.dimensions,g.dimensions),b=v!==g.seriesLayoutBy||!!y!==!!g.sourceHeader||m;e=b?[Object(i["b"])(u,{seriesLayoutBy:v,sourceHeader:y,dimensions:m},c)]:[]}else{var x=n;if(s){var _=this._applyTransform(a);e=_.sourceList,t=_.upstreamSignList}else{var w=x.get("source",!0);e=[Object(i["b"])(w,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,o=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(null!=a){var l="";1!==e.length&&h(l)}var u=[],c=[];return Object(r["k"])(e,(function(e){e.prepareSource();var t=e.getSource(a||0),n="";null==a||t||h(n),u.push(t),c.push(e._getVersionSign())})),o?t=Object(s["a"])(o,u,{datasetIndex:n.componentIndex}):null!=a&&(t=[Object(i["a"])(u[0])]),{sourceList:t,upstreamSignList:c}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,o=i[r];o||(o=i[r]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];f(this._sourceHost)&&s?a=s._innerGetDataStore(e,t,n):(a=new l["b"],a.initData(new u["a"](t,e.length),e)),o[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(f(e)){var t=Object(a["f"])(e);return t?[t.getSourceManager()]:[]}return Object(r["H"])(Object(a["e"])(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(f(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function d(e){var t=e.option.transform;t&&Object(r["R"])(e.option.transform)}function f(e){return"series"===e.mainType}function h(e){throw new Error(e)}},f876:function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"B",(function(){return v})),n.d(t,"y",(function(){return y})),n.d(t,"m",(function(){return m})),n.d(t,"q",(function(){return b})),n.d(t,"l",(function(){return x})),n.d(t,"h",(function(){return _})),n.d(t,"r",(function(){return w})),n.d(t,"n",(function(){return k})),n.d(t,"j",(function(){return O})),n.d(t,"w",(function(){return T})),n.d(t,"f",(function(){return E})),n.d(t,"o",(function(){return C})),n.d(t,"u",(function(){return A})),n.d(t,"z",(function(){return M})),n.d(t,"s",(function(){return L})),n.d(t,"k",(function(){return I})),n.d(t,"x",(function(){return D})),n.d(t,"g",(function(){return j})),n.d(t,"p",(function(){return P})),n.d(t,"v",(function(){return R})),n.d(t,"A",(function(){return N})),n.d(t,"t",(function(){return B}));var r=n("6d8b"),i=n("3842"),o=n("ef59"),a=n("4319"),s=1e3,l=60*s,u=60*l,c=24*u,d=365*c,f={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},h="{yyyy}-{MM}-{dd}",p={year:"{yyyy}",month:"{yyyy}-{MM}",day:h,hour:h+" "+f.hour,minute:h+" "+f.minute,second:h+" "+f.second,millisecond:f.none},g=["year","month","day","hour","minute","second","millisecond"],v=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function y(e,t){return e+="","0000".substr(0,t-e.length)+e}function m(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function b(e){return e===m(e)}function x(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function _(e,t,n,r){var s=i["n"](e),l=s[O(n)](),u=s[T(n)]()+1,c=Math.floor((u-1)/3)+1,d=s[E(n)](),f=s["get"+(n?"UTC":"")+"Day"](),h=s[C(n)](),p=(h-1)%12+1,g=s[A(n)](),v=s[M(n)](),m=s[L(n)](),b=r instanceof a["a"]?r:Object(o["d"])(r||o["a"])||Object(o["c"])(),x=b.getModel("time"),_=x.get("month"),w=x.get("monthAbbr"),S=x.get("dayOfWeek"),k=x.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,l%100+"").replace(/{Q}/g,c+"").replace(/{MMMM}/g,_[u-1]).replace(/{MMM}/g,w[u-1]).replace(/{MM}/g,y(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,y(d,2)).replace(/{d}/g,d+"").replace(/{eeee}/g,S[f]).replace(/{ee}/g,k[f]).replace(/{e}/g,f+"").replace(/{HH}/g,y(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,y(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,y(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,y(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,y(m,3)).replace(/{S}/g,m+"")}function w(e,t,n,i,o){var a=null;if(r["C"](n))a=n;else if(r["w"](n))a=n(e.value,t,{level:e.level});else{var s=r["m"]({},f);if(e.level>0)for(var l=0;l<g.length;++l)s[g[l]]="{primary|"+s[g[l]]+"}";var u=n?!1===n.inherit?n:r["i"](n,s):s,c=S(e.value,o);if(u[c])a=u[c];else if(u.inherit){var d=v.indexOf(c);for(l=d-1;l>=0;--l)if(u[c]){a=u[c];break}a=a||s.none}if(r["t"](a)){var h=null==e.level?0:e.level>=0?e.level:a.length+e.level;h=Math.min(h,a.length-1),a=a[h]}}return _(new Date(e.value),a,o,i)}function S(e,t){var n=i["n"](e),r=n[T(t)]()+1,o=n[E(t)](),a=n[C(t)](),s=n[A(t)](),l=n[M(t)](),u=n[L(t)](),c=0===u,d=c&&0===l,f=d&&0===s,h=f&&0===a,p=h&&1===o,g=p&&1===r;return g?"year":p?"month":h?"day":f?"hour":d?"minute":c?"second":"millisecond"}function k(e,t,n){var o=r["z"](e)?i["n"](e):e;switch(t=t||S(e,n),t){case"year":return o[O(n)]();case"half-year":return o[T(n)]()>=6?1:0;case"quarter":return Math.floor((o[T(n)]()+1)/4);case"month":return o[T(n)]();case"day":return o[E(n)]();case"half-day":return o[C(n)]()/24;case"hour":return o[C(n)]();case"minute":return o[A(n)]();case"second":return o[M(n)]();case"millisecond":return o[L(n)]()}}function O(e){return e?"getUTCFullYear":"getFullYear"}function T(e){return e?"getUTCMonth":"getMonth"}function E(e){return e?"getUTCDate":"getDate"}function C(e){return e?"getUTCHours":"getHours"}function A(e){return e?"getUTCMinutes":"getMinutes"}function M(e){return e?"getUTCSeconds":"getSeconds"}function L(e){return e?"getUTCMilliseconds":"getMilliseconds"}function I(e){return e?"setUTCFullYear":"setFullYear"}function D(e){return e?"setUTCMonth":"setMonth"}function j(e){return e?"setUTCDate":"setDate"}function P(e){return e?"setUTCHours":"setHours"}function R(e){return e?"setUTCMinutes":"setMinutes"}function N(e){return e?"setUTCSeconds":"setSeconds"}function B(e){return e?"setUTCMilliseconds":"setMilliseconds"}},f934:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"g",(function(){return h})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return g})),n.d(t,"d",(function(){return v})),n.d(t,"h",(function(){return y})),n.d(t,"f",(function(){return m})),n.d(t,"c",(function(){return b}));var r=n("6d8b"),i=n("9850"),o=n("3842"),a=n("eda2"),s=r["k"],l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function c(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(l,u){var c,d,f=l.getBoundingRect(),h=t.childAt(u+1),p=h&&h.getBoundingRect();if("horizontal"===e){var g=f.width+(p?-p.x+f.x:0);c=o+g,c>r||l.newline?(o=0,c=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(p?-p.y+f.y:0);d=a+v,d>i||l.newline?(o+=s+n,a=0,d=v,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=d+n)}))}var d=c;r["h"](c,"vertical"),r["h"](c,"horizontal");function f(e,t,n){var r=t.width,i=t.height,s=Object(o["o"])(e.left,r),l=Object(o["o"])(e.top,i),u=Object(o["o"])(e.right,r),c=Object(o["o"])(e.bottom,i);return(isNaN(s)||isNaN(parseFloat(e.left)))&&(s=0),(isNaN(u)||isNaN(parseFloat(e.right)))&&(u=r),(isNaN(l)||isNaN(parseFloat(e.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(e.bottom)))&&(c=i),n=a["h"](n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function h(e,t,n){n=a["h"](n||0);var r=t.width,s=t.height,l=Object(o["o"])(e.left,r),u=Object(o["o"])(e.top,s),c=Object(o["o"])(e.right,r),d=Object(o["o"])(e.bottom,s),f=Object(o["o"])(e.width,r),h=Object(o["o"])(e.height,s),p=n[2]+n[0],g=n[1]+n[3],v=e.aspect;switch(isNaN(f)&&(f=r-c-g-l),isNaN(h)&&(h=s-d-p-u),null!=v&&(isNaN(f)&&isNaN(h)&&(v>r/s?f=.8*r:h=.8*s),isNaN(f)&&(f=v*h),isNaN(h)&&(h=f/v)),isNaN(l)&&(l=r-c-f-g),isNaN(u)&&(u=s-d-h-p),e.left||e.right){case"center":l=r/2-f/2-n[3];break;case"right":l=r-f-g;break}switch(e.top||e.bottom){case"middle":case"center":u=s/2-h/2-n[0];break;case"bottom":u=s-h-p;break}l=l||0,u=u||0,isNaN(f)&&(f=r-g-l-(c||0)),isNaN(h)&&(h=s-p-u-(d||0));var y=new i["a"](l+n[3],u+n[0],f,h);return y.margin=n,y}function p(e,t,n,o,a,s){var l,u=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],d=a&&a.boundingMode||"all";if(s=s||e,s.x=e.x,s.y=e.y,!u&&!c)return!1;if("raw"===d)l="group"===e.type?new i["a"](0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var f=e.getLocalTransform();l=l.clone(),l.applyTransform(f)}var p=h(r["i"]({width:l.width,height:l.height},t),n,o),g=u?p.x-l.x:0,v=c?p.y-l.y:0;return"raw"===d?(s.x=g,s.y=v):(s.x+=g,s.y+=v),s===e&&e.markRedraw(),!0}function g(e,t){return null!=e[u[t][0]]||null!=e[u[t][1]]&&null!=e[u[t][2]]}function v(e){var t=e.layoutMode||e.constructor.layoutMode;return r["A"](t)?t:t?{type:t}:null}function y(e,t,n){var i=n&&n.ignoreSize;!r["t"](i)&&(i=[i,i]);var o=l(u[0],0),a=l(u[1],1);function l(n,r){var o={},a=0,l={},u=0,f=2;if(s(n,(function(t){l[t]=e[t]})),s(n,(function(e){c(t,e)&&(o[e]=l[e]=t[e]),d(o,e)&&a++,d(l,e)&&u++})),i[r])return d(t,n[1])?l[n[2]]=null:d(t,n[2])&&(l[n[1]]=null),l;if(u!==f&&a){if(a>=f)return o;for(var h=0;h<n.length;h++){var p=n[h];if(!c(o,p)&&c(e,p)){o[p]=e[p];break}}return o}return l}function c(e,t){return e.hasOwnProperty(t)}function d(e,t){return null!=e[t]&&"auto"!==e[t]}function f(e,t,n){s(e,(function(e){t[e]=n[e]}))}f(u[0],e,o),f(u[1],e,a)}function m(e){return b({},e)}function b(e,t){return t&&e&&s(l,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}},f95e:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n("2cf4c"),i=n("6d8b"),o=n("9ab4"),a=n("6fd3"),s=n("3437"),l=n("5210"),u=n("9850"),c=n("4bc4"),d=n("726e");function f(e,t,n){var r=d["d"].createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var h=function(e){function t(t,n,o){var a,s=e.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,o=o||r["e"],"string"===typeof t?a=f(t,n,o):i["A"](t)&&(a=t,t=a.id),s.id=t,s.dom=a;var l=a.style;return l&&(i["j"](a),a.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),s.painter=n,s.dpr=o,s}return Object(o["a"])(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=f("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new u["a"](0,0,0,0);function d(e){if(e.isFinite()&&!e.isZero())if(0===o.length){var t=new u["a"](0,0,0,0);t.copy(e),o.push(t)}else{for(var n=!1,r=1/0,i=0,c=0;c<o.length;++c){var d=o[c];if(d.intersect(e)){var f=new u["a"](0,0,0,0);f.copy(d),f.union(e),o[c]=f,n=!0;break}if(s){l.copy(e),l.union(d);var h=e.width*e.height,p=d.width*d.height,g=l.width*l.height,v=g-h-p;v<r&&(r=v,i=c)}}if(s&&(o[i].union(e),n=!0),!n){t=new u["a"](0,0,0,0);t.copy(e),o.push(t)}s||(s=o.length>=a)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var h=e[f];if(h){var p=h.shouldBePainted(n,r,!0,!0),g=h.__isRendered&&(h.__dirty&c["a"]||!p)?h.getPrevPaintRect():null;g&&d(g);var v=p&&(h.__dirty&c["a"]||!h.__isRendered)?h.getPaintRect():null;v&&d(v)}}for(f=this.__prevStartIndex;f<this.__prevEndIndex;++f){h=t[f],p=h.shouldBePainted(n,r,!0,!0);if(h&&(!p||!h.__zr)&&h.__isRendered){g=h.getPrevPaintRect();g&&d(g)}}do{i=!1;for(f=0;f<o.length;)if(o[f].isZero())o.splice(f,1);else{for(var y=f+1;y<o.length;)o[f].intersect(o[y])?(i=!0,o[f].union(o[y]),o.splice(y,1)):y++;f++}}while(i);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,o=this.ctx,a=r.width,u=r.height;t=t||this.clearColor;var c=this.motionBlur&&!e,d=this.lastFrameAlpha,f=this.dpr,h=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/f,u/f));var p=this.domBack;function g(e,n,r,a){if(o.clearRect(e,n,r,a),t&&"transparent"!==t){var u=void 0;i["x"](t)?(u=t.__canvasGradient||Object(s["a"])(o,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=u):i["y"](t)&&(u=Object(l["c"])(o,t,{dirty:function(){h.setUnpainted(),h.__painter.refresh()}})),o.save(),o.fillStyle=u||t,o.fillRect(e,n,r,a),o.restore()}c&&(o.save(),o.globalAlpha=d,o.drawImage(p,e,n,r,a),o.restore())}!n||c?g(0,0,a,u):n.length&&i["k"](n,(function(e){g(e.x*f,e.y*f,e.width*f,e.height*f)}))},t}(a["a"]),p=h,g=n("98b7"),v=n("22d1"),y=1e5,m=314159,b=.01,x=.001;function _(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}function w(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 S=function(){function e(e,t,n,o){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=i["m"]({},n||{}),this.dpr=n.devicePixelRatio||r["e"],this._singleCanvas=a,this.root=e;var l=e.style;l&&(i["j"](e),e.innerHTML=""),this.storage=t;var u=this._zlevelList;this._prevDisplayList=[];var c=this._layers;if(a){var d=e,f=d.width,h=d.height;null!=n.width&&(f=n.width),null!=n.height&&(h=n.height),this.dpr=n.devicePixelRatio||1,d.width=f*this.dpr,d.height=h*this.dpr,this._width=f,this._height=h;var g=new p(d,this,this.dpr);g.__builtin__=!0,g.initContext(),c[m]=g,g.zlevel=m,u.push(m),this._domRoot=e}else{this._width=Object(s["b"])(e,0,n),this._height=Object(s["b"])(e,1,n);var v=this._domRoot=w(this._width,this._height);e.appendChild(v)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(y)),r||(r=n.ctx,r.save()),Object(l["a"])(r,a,i,o===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(y)},e.prototype.paintOne=function(e,t){Object(l["b"])(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;Object(g["a"])((function(){s._paintList(e,t,n,r)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(m).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var r=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&o.push(u)}for(var c=!0,d=!1,f=function(i){var s,l=o[i],u=l.ctx,f=a&&l.createRepaintRects(e,t,h._width,h._height),p=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),y=l.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,f);else if(p===l.__startIndex){var m=e[p];m.incremental&&m.notClear&&!n||l.clear(!1,y,f)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var b=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=p;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(d=!0),r._doPaintEl(i,l,a,t,n,s===l.__endIndex-1),g){var o=Date.now()-v;if(o>15)break}}n.prevElClipPaths&&u.restore()};if(f)if(0===f.length)s=l.__endIndex;else for(var x=h.dpr,_=0;_<f.length;++_){var w=f[_];u.save(),u.beginPath(),u.rect(w.x*x,w.y*x,w.width*x,w.height*x),u.clip(),b(w),u.restore()}else u.save(),b(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(c=!1)},h=this,p=0;p<o.length;p++)f(p);return v["a"].wxa&&i["k"](this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:c,needsRefreshHover:d}},e.prototype._doPaintEl=function(e,t,n,r,i,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(Object(l["a"])(a,e,i,o),e.setPrevPaintRect(s))}else Object(l["a"])(a,e,i,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=m);var n=this._layers[e];return n||(n=new p("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?i["I"](n,this._layerConfig[e],!0):this._layerConfig[e-b]&&i["I"](n,this._layerConfig[e-b],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[e]&&_(t)){if(i>0&&e>r[0]){for(s=0;s<i-1;s++)if(r[s]<e&&r[s+1]>e)break;a=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){s&&(s.__endIndex!==e&&(s.__dirty=!0),s.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){var r=e[n];if(r.zlevel!==e[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var o,a,s=null,l=0;for(a=0;a<e.length;a++){r=e[a];var u=r.zlevel,d=void 0;o!==u&&(o=u,l=0),r.incremental?(d=this.getLayer(u+x,this._needsManuallyCompositing),d.incremental=!0,l=1):d=this.getLayer(u+(l>0?b:0),this._needsManuallyCompositing),d.__builtin__||i["G"]("ZLevel "+u+" has been used by unkown layer "+d.id),d!==s&&(d.__used=!0,d.__startIndex!==a&&(d.__dirty=!0),d.__startIndex=a,d.incremental?d.__drawIndex=-1:d.__drawIndex=a,t(a),s=d),r.__dirty&c["a"]&&!r.__inHover&&(d.__dirty=!0,d.incremental&&d.__drawIndex<0&&(d.__drawIndex=a))}t(a),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)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,i["k"](this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?i["I"](n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];if(o===e||o===e+b){var a=this._layers[o];i["I"](a,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(i["r"](n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=Object(s["b"])(i,0,r),t=Object(s["b"])(i,1,r),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(m).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[m].dom;var t=new p("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,u=a.length;s<u;s++){var c=a[s];Object(l["a"])(n,c,o,s===u-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),k=S;function O(e){e.registerPainter("canvas",k)}},fadd:function(e,t,n){"use strict";function r(e,t,n){var r;while(e){if(t(e)&&(r=e,n))break;e=e.__hostTarget||e.parent}return r}n.d(t,"a",(function(){return r}))},ffd6:function(e,t,n){var r=n("3729"),i=n("1310"),o="[object Symbol]";function a(e){return"symbol"==typeof e||i(e)&&r(e)==o}e.exports=a}}]);