HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/www/inventorypacket.com/public/js/bundle/warehouse_report.8c074ad4fafc5fde.js
/*! For license information please see warehouse_report.8c074ad4fafc5fde.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([[9261],{62646:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(76314),r=n.n(i)()((function(t){return t[1]}));r.push([t.id,".echarts{height:400px;width:600px}",""]);const a=r},50294:(t,e,n)=>{var i=n(95289),r={};function a(){this._coordinateSystems=[]}a.prototype={constructor:a,create:function(t,e){var n=[];i.each(r,(function(i,r){var a=i.create(t,e);n=n.concat(a||[])})),this._coordinateSystems=n},update:function(t,e){i.each(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},a.register=function(t,e){r[t]=e},a.get=function(t){return r[t]};var o=a;t.exports=o},69498:(t,e,n)=>{var i=n(95289),r=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];var a=function(t){i.each(r,(function(e){this[e]=i.bind(t[e],t)}),this)};t.exports=a},40428:(t,e,n)=>{var i=n(89231),r=n(95289);t.exports=function(t,e){r.each(e,(function(e){e.update="updateView",i.registerAction(e,(function(n,i){var r={};return i.eachComponent({mainType:"series",subType:t,query:n},(function(t){t[e.method]&&t[e.method](n.name,n.dataIndex);var i=t.getData();i.each((function(e){var n=i.getName(e);r[n]=t.isSelected(n)||!1}))})),{name:n.name,selected:r,seriesId:n.seriesId}}))}))}},53571:(t,e,n)=>{var i=n(89231),r=n(95289),a=n(11041),o=a.layout,s=a.largeLayout;n(31020),n(88004),n(35572),n(48807),i.registerLayout(i.PRIORITY.VISUAL.LAYOUT,r.curry(o,"bar")),i.registerLayout(i.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,s),i.registerVisual({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}})},88004:(t,e,n)=>{var i=n(29299).extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},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}}});t.exports=i},35572:(t,e,n)=>{n(65523).__DEV__;var i=n(89231),r=n(95289),a=n(76442),o=n(26746).setLabel,s=n(40590),l=n(3425),u=n(66343),h=n(75738),c=n(88336).throttle,f=n(99988).createClipPath,d=n(83759),p=["itemStyle","barBorderWidth"],g=[0,0];r.extend(s.prototype,l);var m=i.extendChartView({type:"bar",render:function(t,e,n){this._updateDrawMode(t);var i=t.get("coordinateSystem");return"cartesian2d"!==i&&"polar"!==i||(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n)),this.group},incrementalPrepareRender:function(t,e,n){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,n,i){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,n){var i,r=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,f=t.get("clip",!0),d=function(t,e){var n=t.getArea&&t.getArea();if("cartesian2d"===t.type){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,o);r.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),v=m.get("barBorderRadius")||0,y=[],A=this._backgroundEls||[],C=function(t){var e=S[l.type](o,t),n=function(t,e,n){var i="polar"===t.type?a.Sector:a.Rect;return new i({shape:k(e,n,t),silent:!0,z2:0})}(l,i,e);return n.useStyle(m.getBarItemStyle()),"cartesian2d"===l.type&&n.setShape("r",v),y[t]=n,n};o.diff(s).add((function(e){var n=o.getItemModel(e),a=S[l.type](o,e,n);if(g&&C(e),o.hasValue(e)){if(f)if(_[l.type](d,a))return void r.remove(s);var s=b[l.type](e,a,i,c,!1,p);o.setItemGraphicEl(e,s),r.add(s),L(s,o,e,n,a,t,i,"polar"===l.type)}})).update((function(e,n){var u=o.getItemModel(e),h=S[l.type](o,e,u);if(g){var x;0===A.length?x=C(n):((x=A[n]).useStyle(m.getBarItemStyle()),"cartesian2d"===l.type&&x.setShape("r",v),y[e]=x);var w=S[l.type](o,e),P=k(i,w,l);a.updateProps(x,{shape:P},c,e)}var N=s.getItemGraphicEl(n);if(o.hasValue(e)){if(f)if(_[l.type](d,h))return void r.remove(N);N?a.updateProps(N,{shape:h},c,e):N=b[l.type](e,h,i,c,!0,p),o.setItemGraphicEl(e,N),r.add(N),L(N,o,e,u,h,t,i,"polar"===l.type)}else r.remove(N)})).remove((function(t){var e=s.getItemGraphicEl(t);"cartesian2d"===l.type?e&&x(t,c,e):e&&w(t,c,e)})).execute();var P=this._backgroundGroup||(this._backgroundGroup=new h);P.removeAll();for(var N=0;N<y.length;++N)P.add(y[N]);r.add(P),this._backgroundEls=y,this._data=o},_renderLarge:function(t,e,n){this._clear(),P(t,this.group);var i=t.get("clip",!0)?f(t.coordinateSystem,!1,t):null;i?this.group.setClipPath(i):this.group.removeClipPath()},_incrementalRenderLarge:function(t,e){this._removeBackground(),P(e,this.group,!0)},dispose:r.noop,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,n=this._data;t&&t.get("animation")&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){"sector"===e.type?w(e.dataIndex,t,e):x(e.dataIndex,t,e)}))):e.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),v=Math.max,y=Math.min,_={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=v(e.x,t.x),a=y(e.x+e.width,t.x+t.width),o=v(e.y,t.y),s=y(e.y+e.height,t.y+t.height);e.x=r,e.y=o,e.width=a-r,e.height=s-o;var l=e.width<0||e.height<0;return n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),l},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}i=y(e.r,t.r);var r=v(e.r0,t.r0);e.r=i,e.r0=r;var a=i-r<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},b={cartesian2d:function(t,e,n,i,o){var s=new a.Rect({shape:r.extend({},e),z2:1});if(s.name="item",i){var l=n?"height":"width",u={};s.shape[l]=0,u[l]=e[l],a[o?"updateProps":"initProps"](s,{shape:u},i,t)}return s},polar:function(t,e,n,i,o,s){var l=e.startAngle<e.endAngle,u=new(!n&&s?d:a.Sector)({shape:r.defaults({clockwise:l},e),z2:1});if(u.name="item",i){var h=n?"r":"endAngle",c={};u.shape[h]=n?0:e.startAngle,c[h]=e[h],a[o?"updateProps":"initProps"](u,{shape:c},i,t)}return u}};function x(t,e,n){n.style.text=null,a.updateProps(n,{shape:{width:0}},e,t,(function(){n.parent&&n.parent.remove(n)}))}function w(t,e,n){n.style.text=null,a.updateProps(n,{shape:{r:n.shape.r0}},e,t,(function(){n.parent&&n.parent.remove(n)}))}var S={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?function(t,e){var n=t.get(p)||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,r)}(n,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*r/2,y:i.y+o*r/2,width:i.width-a*r,height:i.height-o*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function A(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function L(t,e,n,i,s,l,u,h){var c=e.getItemVisual(n,"color"),f=e.getItemVisual(n,"opacity"),d=e.getVisual("borderColor"),p=i.getModel("itemStyle"),g=i.getModel("emphasis.itemStyle").getBarItemStyle();h||t.setShape("r",p.get("barBorderRadius")||0),t.useStyle(r.defaults({stroke:A(s)?"none":d,fill:A(s)?"none":c,opacity:f},p.getBarItemStyle()));var m=i.getShallow("cursor");m&&t.attr("cursor",m);var v=u?s.height>0?"bottom":"top":s.width>0?"left":"right";h||o(t.style,g,i,c,l,n,v),A(s)&&(g.fill=g.stroke="none"),a.setHoverStyle(t,g)}var C=u.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,a=0;a<n.length;a+=2)i[r]=n[a+r],t.moveTo(i[0],i[1]),t.lineTo(n[a],n[a+1])}});function P(t,e,n){var i=t.getData(),r=[],a=i.getLayout("valueAxisHorizontal")?1:0;r[1-a]=i.getLayout("valueAxisStart");var o=i.getLayout("largeDataIndices"),s=i.getLayout("barWidth"),l=t.getModel("backgroundStyle");if(t.get("showBackground",!0)){var u=i.getLayout("largeBackgroundPoints"),h=[];h[1-a]=i.getLayout("backgroundStart");var c=new C({shape:{points:u},incremental:!!n,__startPoint:h,__baseDimIdx:a,__largeDataIndices:o,__barWidth:s,silent:!0,z2:0});!function(t,e,n){var i=e.get("borderColor")||e.get("color"),r=e.getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}(c,l,i),e.add(c)}var f=new C({shape:{points:i.getLayout("largePoints")},incremental:!!n,__startPoint:r,__baseDimIdx:a,__largeDataIndices:o,__barWidth:s});e.add(f),function(t,e,n){var i=n.getVisual("borderColor")||n.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=i,t.style.lineWidth=n.getLayout("barWidth")}(f,t,i),f.seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",N),f.on("mousemove",N))}var N=c((function(t){var e=function(t,e,n){var i=t.__baseDimIdx,r=1-i,a=t.shape.points,o=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[r];g[0]=e,g[1]=n;for(var u=g[i],h=g[1-i],c=u-s,f=u+s,d=0,p=a.length/2;d<p;d++){var m=2*d,v=a[m+i],y=a[m+r];if(v>=c&&v<=f&&(l<=y?h>=l&&h<=y:h>=y&&h<=l))return o[d]}return-1}(this,t.offsetX,t.offsetY);this.dataIndex=e>=0?e:null}),30,!1);function k(t,e,n){var i,r="polar"===n.type;return i=r?n.getArea():n.grid.getRect(),r?{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}t.exports=m},29299:(t,e,n)=>{var i=n(33358),r=n(19554),a=i.extend({type:"series.__base_bar__",getInitialData:function(t,e){return r(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),a=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+a/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});t.exports=a},3425:(t,e,n)=>{var i=n(81935)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),r={getBarItemStyle:function(t){var e=i(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(e.lineDash=n)}return e}};t.exports=r},26746:(t,e,n)=>{var i=n(76442),r=n(10589).getDefaultLabel;function a(t,e){"outside"===t.textPosition&&(t.textPosition=e)}e.setLabel=function(t,e,n,o,s,l,u){var h=n.getModel("label"),c=n.getModel("emphasis.label");i.setLabelStyle(t,e,h,c,{labelFetcher:s,labelDataIndex:l,defaultText:r(s.getData(),l),isRectText:!0,autoColor:o}),a(t),a(e)}},88747:(t,e,n)=>{var i=n(95289),r=n(22864).createSymbol,a=n(76442),o=n(44261).parsePercent,s=n(10589).getDefaultLabel;function l(t,e,n){a.Group.call(this),this.updateData(t,e,n)}var u=l.prototype,h=l.getSymbolSize=function(t,e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array?n.slice():[+n,+n]};function c(t){return[t[0]/2,t[1]/2]}function f(t,e){this.parent.drift(t,e)}u._createSymbol=function(t,e,n,i,a){this.removeAll();var o=e.getItemVisual(n,"color"),s=r(t,-1,-1,2,2,o,a);s.attr({z2:100,culling:!0,scale:c(i)}),s.drift=f,this._symbolType=t,this.add(s)},u.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},u.getSymbolPath=function(){return this.childAt(0)},u.getScale=function(){return this.childAt(0).scale},u.highlight=function(){this.childAt(0).trigger("emphasis")},u.downplay=function(){this.childAt(0).trigger("normal")},u.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},u.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},u.updateData=function(t,e,n){this.silent=!1;var i=t.getItemVisual(e,"symbol")||"circle",r=t.hostModel,o=h(t,e),s=i!==this._symbolType;if(s){var l=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(i,t,e,o,l)}else{(u=this.childAt(0)).silent=!1,a.updateProps(u,{scale:c(o)},r,e)}if(this._updateCommon(t,e,o,n),s){var u=this.childAt(0),f=n&&n.fadeIn,d={scale:u.scale.slice()};f&&(d.style={opacity:u.style.opacity}),u.scale=[0,0],f&&(u.style.opacity=0),a.initProps(u,d,r,e)}this._seriesModel=r};var d=["itemStyle"],p=["emphasis","itemStyle"],g=["label"],m=["emphasis","label"];function v(t,e){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===e){var n=this.__symbolOriginalScale,i=n[1]/n[0],r={scale:[Math.max(1.1*n[0],n[0]+3),Math.max(1.1*n[1],n[1]+3*i)]};this.animateTo(r,400,"elasticOut")}else"normal"===e&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}u._updateCommon=function(t,e,n,r){var l=this.childAt(0),u=t.hostModel,h=t.getItemVisual(e,"color");"image"!==l.type?l.useStyle({strokeNoScale:!0}):l.setStyle({opacity:1,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var f=r&&r.itemStyle,y=r&&r.hoverItemStyle,_=r&&r.symbolOffset,b=r&&r.labelModel,x=r&&r.hoverLabelModel,w=r&&r.hoverAnimation,S=r&&r.cursorStyle;if(!r||t.hasItemOption){var A=r&&r.itemModel?r.itemModel:t.getItemModel(e);f=A.getModel(d).getItemStyle(["color"]),y=A.getModel(p).getItemStyle(),_=A.getShallow("symbolOffset"),b=A.getModel(g),x=A.getModel(m),w=A.getShallow("hoverAnimation"),S=A.getShallow("cursor")}else y=i.extend({},y);var L=l.style,C=t.getItemVisual(e,"symbolRotate");l.attr("rotation",(C||0)*Math.PI/180||0),_&&l.attr("position",[o(_[0],n[0]),o(_[1],n[1])]),S&&l.attr("cursor",S),l.setColor(h,r&&r.symbolInnerColor),l.setStyle(f);var P=t.getItemVisual(e,"opacity");null!=P&&(L.opacity=P);var N=t.getItemVisual(e,"liftZ"),k=l.__z2Origin;null!=N?null==k&&(l.__z2Origin=l.z2,l.z2+=N):null!=k&&(l.z2=k,l.__z2Origin=null);var I=r&&r.useNameLabel;a.setLabelStyle(L,y,b,x,{labelFetcher:u,labelDataIndex:e,defaultText:function(e,n){return I?t.getName(e):s(t,e)},isRectText:!0,autoColor:h}),l.__symbolOriginalScale=c(n),l.hoverStyle=y,l.highDownOnUpdate=w&&u.isAnimationEnabled()?v:null,a.setHoverStyle(l)},u.fadeOut=function(t,e){var n=this.childAt(0);this.silent=n.silent=!0,(!e||!e.keepLabel)&&(n.style.text=null),a.updateProps(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},i.inherits(l,a.Group);var y=l;t.exports=y},52033:(t,e,n)=>{var i=n(76442),r=n(88747),a=n(95289).isObject;function o(t){this.group=new i.Group,this._symbolCtor=t||r}var s=o.prototype;function l(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function u(t){return null==t||a(t)||(t={isIgnore:t}),t||{}}function h(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}s.updateData=function(t,e){e=u(e);var n=this.group,r=t.hostModel,a=this._data,o=this._symbolCtor,s=h(t);a||n.removeAll(),t.diff(a).add((function(i){var r=t.getItemLayout(i);if(l(t,r,i,e)){var a=new o(t,i,s);a.attr("position",r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(u,h){var c=a.getItemGraphicEl(h),f=t.getItemLayout(u);l(t,f,u,e)?(c?(c.updateData(t,u,s),i.updateProps(c,{position:f},r)):(c=new o(t,u)).attr("position",f),n.add(c),t.setItemGraphicEl(u,c)):n.remove(c)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}))})).execute(),this._data=t},s.isPersistent=function(){return!0},s.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl((function(e,n){var i=t.getItemLayout(n);e.attr("position",i)}))},s.incrementalPrepareUpdate=function(t){this._seriesScope=h(t),this._data=null,this.group.removeAll()},s.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}n=u(n);for(var r=t.start;r<t.end;r++){var a=e.getItemLayout(r);if(l(e,a,r,n)){var o=new this._symbolCtor(e,r,this._seriesScope);o.traverse(i),o.attr("position",a),this.group.add(o),e.setItemGraphicEl(r,o)}}},s.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}))})):e.removeAll()};var c=o;t.exports=c},99988:(t,e,n)=>{var i=n(76442),r=n(44261).round;function a(t,e,n){var r=t.getArea(),a=t.getBaseAxis().isHorizontal(),o=r.x,s=r.y,l=r.width,u=r.height,h=n.get("lineStyle.width")||2;o-=h/2,s-=h/2,l+=h,u+=h,o=Math.floor(o),l=Math.round(l);var c=new i.Rect({shape:{x:o,y:s,width:l,height:u}});return e&&(c.shape[a?"width":"height"]=0,i.initProps(c,{shape:{width:l,height:u}},n)),c}function o(t,e,n){var a=t.getArea(),o=new i.Sector({shape:{cx:r(t.cx,1),cy:r(t.cy,1),r0:r(a.r0,1),r:r(a.r,1),startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});return e&&(o.shape.endAngle=a.startAngle,i.initProps(o,{shape:{endAngle:a.endAngle}},n)),o}e.createGridClipPath=a,e.createPolarClipPath=o,e.createClipPath=function(t,e,n){return t?"polar"===t.type?o(t,e,n):"cartesian2d"===t.type?a(t,e,n):null:null}},19554:(t,e,n)=>{var i=n(95289),r=n(5628),a=n(29966),o=n(90642).SOURCE_FORMAT_ORIGINAL,s=n(99535).getDimensionTypeByAxis,l=n(63199).getDataItemValue,u=n(50294),h=n(87749).getCoordSysInfoBySeries,c=n(3325),f=n(74051).enableDataStack,d=n(49442).makeSeriesEncodeForAxisCoordSys;var p=function(t,e,n){n=n||{},c.isInstance(t)||(t=c.seriesDataToSource(t));var p,g=e.get("coordinateSystem"),m=u.get(g),v=h(e);v&&(p=i.map(v.coordSysDims,(function(t){var e={name:t},n=v.axisMap.get(t);if(n){var i=n.get("type");e.type=s(i)}return e}))),p||(p=m&&(m.getDimensionsInfo?m.getDimensionsInfo():m.dimensions.slice())||["x","y"]);var y,_,b=a(t,{coordDimensions:p,generateCoord:n.generateCoord,encodeDefaulter:n.useEncodeDefaulter?i.curry(d,p,e):null});v&&i.each(b,(function(t,e){var n=t.coordDim,i=v.categoryAxisMap.get(n);i&&(null==y&&(y=e),t.ordinalMeta=i.getOrdinalMeta()),null!=t.otherDims.itemName&&(_=!0)})),_||null==y||(b[y].otherDims.itemName=0);var x=f(e,b),w=new r(b,e);w.setCalculationInfo(x);var S=null!=y&&function(t){if(t.sourceFormat===o){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return null!=e&&!i.isArray(l(e))}}(t)?function(t,e,n,i){return i===y?n:this.defaultDimValueGetter(t,e,n,i)}:null;return w.hasItemOption=!1,w.initData(t,null,S),w};t.exports=p},80565:(t,e,n)=>{var i=n(29966),r=n(5628),a=n(95289),o=a.extend,s=a.isArray;t.exports=function(t,e,n){e=s(e)&&{coordDimensions:e}||o({},e);var a=t.getSource(),l=i(a,e),u=new r(l,t);return u.initData(a,n),u}},59039:(t,e,n)=>{var i=n(63199).makeInner;t.exports=function(){var t=i();return function(e){var n=t(e),i=e.pipelineContext,r=n.large,a=n.progressiveRender,o=n.large=i&&i.large,s=n.progressiveRender=i&&i.progressiveRender;return!!(r^o||a^s)&&"reset"}}},10589:(t,e,n)=>{var i=n(41834).retrieveRawValue;e.getDefaultLabel=function(t,e){var n=t.mapDimension("defaultedLabel",!0),r=n.length;if(1===r)return i(t,e,n[0]);if(r){for(var a=[],o=0;o<n.length;o++){var s=i(t,e,n[o]);a.push(s)}return a.join(" ")}}},1906:(t,e,n)=>{var i=n(89231);n(36969),n(44026);var r=n(39784),a=n(32493),o=n(99610);n(48807),i.registerVisual(r("line","circle","line")),i.registerLayout(a("line")),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,o("line"))},36969:(t,e,n)=>{n(65523).__DEV__;var i=n(19554),r=n(33358).extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return i(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});t.exports=r},44026:(t,e,n)=>{n(65523).__DEV__;var i=n(95289),r=n(66346).fromPoints,a=n(52033),o=n(88747),s=n(64158),l=n(76442),u=n(63199),h=n(6667),c=h.Polyline,f=h.Polygon,d=n(67955),p=n(81961),g=p.prepareDataCoordInfo,m=p.getStackedOnPoint,v=n(99988),y=v.createGridClipPath,_=v.createPolarClipPath;function b(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++){var i=t[n],r=e[n];if(i[0]!==r[0]||i[1]!==r[1])return}return!0}}function x(t,e){var n=[],i=[],a=[],o=[];return r(t,n,i),r(e,a,o),Math.max(Math.abs(n[0]-a[0]),Math.abs(n[1]-a[1]),Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]))}function w(t){return"number"==typeof t?t:t?.5:0}function S(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,a=[],o=0;o<t.length-1;o++){var s=t[o+1],l=t[o];a.push(l);var u=[];switch(n){case"end":u[r]=s[r],u[1-r]=l[1-r],a.push(u);break;case"middle":var h=(l[r]+s[r])/2,c=[];u[r]=c[r]=h,u[1-r]=l[1-r],c[1-r]=s[1-r],a.push(u),a.push(c);break;default:u[r]=l[r],u[1-r]=s[1-r],a.push(u)}}return t[o]&&a.push(t[o]),a}function A(t,e,n){var r=t.get("showAllSymbol"),a="auto"===r;if(!r||a){var s=n.getAxesByScale("ordinal")[0];if(s&&(!a||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),a=Math.max(1,Math.round(r/5)),s=0;s<r;s+=a)if(1.5*o.getSymbolSize(e,s)[t.isHorizontal()?1:0]>i)return!1;return!0}(s,e))){var l=e.mapDimension(s.dim),u={};return i.each(s.getViewLabels(),(function(t){u[t.tickValue]=1})),function(t){return!u.hasOwnProperty(e.get(l,t))}}}}function L(t,e,n){if("cartesian2d"===t.type){var i=t.getBaseAxis().isHorizontal(),r=y(t,e,n);if(!n.get("clip",!0)){var a=r.shape,o=Math.max(a.width,a.height);i?(a.y-=o,a.height+=2*o):(a.x-=o,a.width+=2*o)}return r}return _(t,e,n)}var C=d.extend({type:"line",init:function(){var t=new l.Group,e=new a;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var r=t.coordinateSystem,a=this.group,o=t.getData(),s=t.getModel("lineStyle"),u=t.getModel("areaStyle"),h=o.mapArray(o.getItemLayout),c="polar"===r.type,f=this._coordSys,d=this._symbolDraw,p=this._polyline,v=this._polygon,y=this._lineGroup,_=t.get("animation"),x=!u.isEmpty(),C=u.get("origin"),P=function(t,e,n){if(!n.valueDim)return[];for(var i=[],r=0,a=e.count();r<a;r++)i.push(m(n,t,e,r));return i}(r,o,g(r,o,C)),N=t.get("showSymbol"),k=N&&!c&&A(t,o,r),I=this._data;I&&I.eachItemGraphicEl((function(t,e){t.__temp&&(a.remove(t),I.setItemGraphicEl(e,null))})),N||d.remove(),a.add(y);var M,T=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(M=r.getArea()).width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r1+=.5)),this._clipShapeForSymbol=M,p&&f.type===r.type&&T===this._step?(x&&!v?v=this._newPolygon(h,P,r,_):v&&!x&&(y.remove(v),v=this._polygon=null),y.setClipPath(L(r,!1,t)),N&&d.updateData(o,{isIgnore:k,clipShape:M}),o.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),b(this._stackedOnPoints,P)&&b(this._points,h)||(_?this._updateAnimation(o,P,r,n,T,C):(T&&(h=S(h,r,T),P=S(P,r,T)),p.setShape({points:h}),v&&v.setShape({points:h,stackedOnPoints:P})))):(N&&d.updateData(o,{isIgnore:k,clipShape:M}),T&&(h=S(h,r,T),P=S(P,r,T)),p=this._newPolyline(h,r,_),x&&(v=this._newPolygon(h,P,r,_)),y.setClipPath(L(r,!0,t)));var D=function(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var r,a,o=n.length-1;o>=0;o--){var s=n[o].dimension,u=t.dimensions[s],h=t.getDimensionInfo(u);if("x"===(r=h&&h.coordDim)||"y"===r){a=n[o];break}}if(a){var c=e.getAxis(r),f=i.map(a.stops,(function(t){return{coord:c.toGlobalCoord(c.dataToCoord(t.value)),color:t.color}})),d=f.length,p=a.outerColors.slice();d&&f[0].coord>f[d-1].coord&&(f.reverse(),p.reverse());var g=f[0].coord-10,m=f[d-1].coord+10,v=m-g;if(v<.001)return"transparent";i.each(f,(function(t){t.offset=(t.coord-g)/v})),f.push({offset:d?f[d-1].offset:.5,color:p[1]||"transparent"}),f.unshift({offset:d?f[0].offset:.5,color:p[0]||"transparent"});var y=new l.LinearGradient(0,0,0,0,f,!0);return y[r]=g,y[r+"2"]=m,y}}}(o,r)||o.getVisual("color");p.useStyle(i.defaults(s.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"}));var O=t.get("smooth");if(O=w(t.get("smooth")),p.setShape({smooth:O,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),v){var F=o.getCalculationInfo("stackedOnSeries"),R=0;v.useStyle(i.defaults(u.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel"})),F&&(R=w(F.get("smooth"))),v.setShape({smooth:O,stackedOnSmooth:R,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=r,this._stackedOnPoints=P,this._points=h,this._step=T,this._valueOrigin=C},dispose:function(){},highlight:function(t,e,n,i){var r=t.getData(),a=u.queryDataIndex(r,i);if(!(a instanceof Array)&&null!=a&&a>=0){var s=r.getItemGraphicEl(a);if(!s){var l=r.getItemLayout(a);if(!l)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l[0],l[1]))return;(s=new o(r,a)).position=l,s.setZ(t.get("zlevel"),t.get("z")),s.ignore=isNaN(l[0])||isNaN(l[1]),s.__temp=!0,r.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else d.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),a=u.queryDataIndex(r,i);if(null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else d.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new c({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new f({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(t,e,n,i,r,a){var o=this._polyline,u=this._polygon,h=t.hostModel,c=s(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,a),f=c.current,d=c.stackedOnCurrent,p=c.next,g=c.stackedOnNext;if(r&&(f=S(c.current,n,r),d=S(c.stackedOnCurrent,n,r),p=S(c.next,n,r),g=S(c.stackedOnNext,n,r)),x(f,p)>3e3||u&&x(d,g)>3e3)return o.setShape({points:p}),void(u&&u.setShape({points:p,stackedOnPoints:g}));o.shape.__points=c.current,o.shape.points=f,l.updateProps(o,{shape:{points:p}},h),u&&(u.setShape({points:f,stackedOnPoints:d}),l.updateProps(u,{shape:{points:p,stackedOnPoints:g}},h));for(var m=[],v=c.status,y=0;y<v.length;y++){if("="===v[y].cmd){var _=t.getItemGraphicEl(v[y].idx1);_&&m.push({el:_,ptIdx:y})}}o.animators&&o.animators.length&&o.animators[0].during((function(){for(var t=0;t<m.length;t++){m[t].el.attr("position",o.shape.__points[m[t].ptIdx])}}))},remove:function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});t.exports=C},81961:(t,e,n)=>{var i=n(74051).isDimensionStacked,r=n(95289).map;e.prepareDataCoordInfo=function(t,e,n){var a,o=t.getBaseAxis(),s=t.getOtherAxis(o),l=function(t,e){var n=0,i=t.scale.getExtent();"start"===e?n=i[0]:"end"===e?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(s,n),u=o.dim,h=s.dim,c=e.mapDimension(h),f=e.mapDimension(u),d="x"===h||"radius"===h?1:0,p=r(t.dimensions,(function(t){return e.mapDimension(t)})),g=e.getCalculationInfo("stackResultDimension");return(a|=i(e,p[0]))&&(p[0]=g),(a|=i(e,p[1]))&&(p[1]=g),{dataDimsForPoint:p,valueStart:l,valueAxisDim:h,baseAxisDim:u,stacked:!!a,valueDim:c,baseDim:f,baseDataOffset:d,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}},e.getStackedOnPoint=function(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=n.get(t.baseDim,i),o[1-a]=r,e.dataToPoint(o)}},64158:(t,e,n)=>{var i=n(81961),r=i.prepareDataCoordInfo,a=i.getStackedOnPoint;t.exports=function(t,e,n,i,o,s,l,u){for(var h=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),c=[],f=[],d=[],p=[],g=[],m=[],v=[],y=r(o,e,l),_=r(s,t,u),b=0;b<h.length;b++){var x=h[b],w=!0;switch(x.cmd){case"=":var S=t.getItemLayout(x.idx),A=e.getItemLayout(x.idx1);(isNaN(S[0])||isNaN(S[1]))&&(S=A.slice()),c.push(S),f.push(A),d.push(n[x.idx]),p.push(i[x.idx1]),v.push(e.getRawIndex(x.idx1));break;case"+":var L=x.idx;c.push(o.dataToPoint([e.get(y.dataDimsForPoint[0],L),e.get(y.dataDimsForPoint[1],L)])),f.push(e.getItemLayout(L).slice()),d.push(a(y,o,e,L)),p.push(i[L]),v.push(e.getRawIndex(L));break;case"-":L=x.idx;var C=t.getRawIndex(L);C!==L?(c.push(t.getItemLayout(L)),f.push(s.dataToPoint([t.get(_.dataDimsForPoint[0],L),t.get(_.dataDimsForPoint[1],L)])),d.push(n[L]),p.push(a(_,s,t,L)),v.push(C)):w=!1}w&&(g.push(x),m.push(m.length))}m.sort((function(t,e){return v[t]-v[e]}));var P=[],N=[],k=[],I=[],M=[];for(b=0;b<m.length;b++){L=m[b];P[b]=c[L],N[b]=f[L],k[b]=d[L],I[b]=p[L],M[b]=g[L]}return{current:P,next:N,stackedOnCurrent:k,stackedOnNext:I,status:M}}},6667:(t,e,n)=>{var i=n(66343),r=n(31138),a=n(58458),o=r.min,s=r.max,l=r.scaleAndAdd,u=r.copy,h=[],c=[],f=[];function d(t){return isNaN(t[0])||isNaN(t[1])}function p(t,e,n,i,r,a,o,s,l,u,h){return"none"!==u&&u?g.apply(this,arguments):m.apply(this,arguments)}function g(t,e,n,i,r,a,o,s,l,h,p){for(var g=0,m=n,v=0;v<i;v++){var y=e[m];if(m>=r||m<0)break;if(d(y)){if(p){m+=a;continue}break}if(m===n)t[a>0?"moveTo":"lineTo"](y[0],y[1]);else if(l>0){var _=e[g],b="y"===h?1:0,x=(y[b]-_[b])*l;u(c,_),c[b]=_[b]+x,u(f,y),f[b]=y[b]-x,t.bezierCurveTo(c[0],c[1],f[0],f[1],y[0],y[1])}else t.lineTo(y[0],y[1]);g=m,m+=a}return v}function m(t,e,n,i,a,p,g,m,v,y,_){for(var b=0,x=n,w=0;w<i;w++){var S=e[x];if(x>=a||x<0)break;if(d(S)){if(_){x+=p;continue}break}if(x===n)t[p>0?"moveTo":"lineTo"](S[0],S[1]),u(c,S);else if(v>0){var A=x+p,L=e[A];if(_)for(;L&&d(e[A]);)L=e[A+=p];var C=.5,P=e[b];if(!(L=e[A])||d(L))u(f,S);else{var N,k;if(d(L)&&!_&&(L=S),r.sub(h,L,P),"x"===y||"y"===y){var I="x"===y?0:1;N=Math.abs(S[I]-P[I]),k=Math.abs(S[I]-L[I])}else N=r.dist(S,P),k=r.dist(S,L);l(f,S,h,-v*(1-(C=k/(k+N))))}o(c,c,m),s(c,c,g),o(f,f,m),s(f,f,g),t.bezierCurveTo(c[0],c[1],f[0],f[1],S[0],S[1]),l(c,S,h,v*C)}else t.lineTo(S[0],S[1]);b=x,x+=p}return w}function v(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;r<t.length;r++){var a=t[r];a[0]<n[0]&&(n[0]=a[0]),a[1]<n[1]&&(n[1]=a[1]),a[0]>i[0]&&(i[0]=a[0]),a[1]>i[1]&&(i[1]=a[1])}return{min:e?n:i,max:e?i:n}}var y=i.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:a(i.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,a=v(n,e.smoothConstraint);if(e.connectNulls){for(;r>0&&d(n[r-1]);r--);for(;i<r&&d(n[i]);i++);}for(;i<r;)i+=p(t,n,i,r,r,1,a.min,a.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),_=i.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:a(i.prototype.brush),buildPath:function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,a=n.length,o=e.smoothMonotone,s=v(n,e.smoothConstraint),l=v(i,e.smoothConstraint);if(e.connectNulls){for(;a>0&&d(n[a-1]);a--);for(;r<a&&d(n[r]);r++);}for(;r<a;){var u=p(t,n,r,a,a,1,s.min,s.max,e.smooth,o,e.connectNulls);p(t,i,r+u-1,u,a,-1,l.min,l.max,e.stackedOnSmooth,o,e.connectNulls),r+=u+1,t.closePath()}}});e.Polyline=y,e.Polygon=_},26804:(t,e,n)=>{var i=n(89231),r=n(95289);n(4160),n(65720);var a=n(40428),o=n(5045),s=n(23219),l=n(18014);a("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),i.registerVisual(o("pie")),i.registerLayout(r.curry(s,"pie")),i.registerProcessor(l("pie"))},4160:(t,e,n)=>{var i=n(89231),r=n(80565),a=n(95289),o=n(63199),s=n(44261).getPercentWithPrecision,l=n(18171),u=n(41834).retrieveRawAttr,h=n(49442).makeSeriesEncodeForNameBased,c=n(65840),f=i.extendSeriesModel({type:"series.pie",init:function(t){f.superApply(this,"init",arguments),this.legendVisualProvider=new c(a.bind(this.getData,this),a.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){f.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,e){return r(this,{coordDimensions:["value"],encodeDefaulter:a.curry(h,this)})},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),n=[],i=0,r=t.count();i<r;i++)n.push({name:t.getName(i),value:t.get(e,i),selected:u(t,i,"selected")});return n},getDataParams:function(t){var e=this.getData(),n=f.superCall(this,"getDataParams",t),i=[];return e.each(e.mapDimension("value"),(function(t){i.push(t)})),n.percent=s(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(t){o.defaultEmphasis(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});a.mixin(f,l);var d=f;t.exports=d},65720:(t,e,n)=>{var i=n(95289),r=n(76442),a=n(67955);function o(t,e,n,i){var r=e.getData(),a=this.dataIndex,o=r.getName(a),l=e.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:t,name:o,seriesId:e.id}),r.each((function(t){s(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),l,n)}))}function s(t,e,n,i,r){var a=(e.startAngle+e.endAngle)/2,o=n?i:0,s=[Math.cos(a)*o,Math.sin(a)*o];r?t.animate().when(200,{position:s}).start("bounceOut"):t.attr("position",s)}function l(t,e){r.Group.call(this);var n=new r.Sector({z2:2}),i=new r.Polyline,a=new r.Text;this.add(n),this.add(i),this.add(a),this.updateData(t,e,!0)}var u=l.prototype;u.updateData=function(t,e,n){var a=this.childAt(0),o=this.childAt(1),l=this.childAt(2),u=t.hostModel,h=t.getItemModel(e),c=t.getItemLayout(e),f=i.extend({},c);f.label=null;var d=u.getShallow("animationTypeUpdate");n?(a.setShape(f),"scale"===u.getShallow("animationType")?(a.shape.r=c.r0,r.initProps(a,{shape:{r:c.r}},u,e)):(a.shape.endAngle=c.startAngle,r.updateProps(a,{shape:{endAngle:c.endAngle}},u,e))):"expansion"===d?a.setShape(f):r.updateProps(a,{shape:f},u,e);var p=t.getItemVisual(e,"color");a.useStyle(i.defaults({lineJoin:"bevel",fill:p},h.getModel("itemStyle").getItemStyle())),a.hoverStyle=h.getModel("emphasis.itemStyle").getItemStyle();var g=h.getShallow("cursor");g&&a.attr("cursor",g),s(this,t.getItemLayout(e),u.isSelected(t.getName(e)),u.get("selectedOffset"),u.get("animation"));var m=!n&&"transition"===d;this._updateLabel(t,e,m),this.highDownOnUpdate=u.get("silent")?null:function(t,e){var n=u.isAnimationEnabled()&&h.get("hoverAnimation");"emphasis"===e?(o.ignore=o.hoverIgnore,l.ignore=l.hoverIgnore,n&&(a.stopAnimation(!0),a.animateTo({shape:{r:c.r+u.get("hoverOffset")}},300,"elasticOut"))):(o.ignore=o.normalIgnore,l.ignore=l.normalIgnore,n&&(a.stopAnimation(!0),a.animateTo({shape:{r:c.r}},300,"elasticOut")))},r.setHoverStyle(this)},u._updateLabel=function(t,e,n){var i=this.childAt(1),a=this.childAt(2),o=t.hostModel,s=t.getItemModel(e),l=t.getItemLayout(e).label,u=t.getItemVisual(e,"color");if(!l||isNaN(l.x)||isNaN(l.y))a.ignore=a.normalIgnore=a.hoverIgnore=i.ignore=i.normalIgnore=i.hoverIgnore=!0;else{var h={points:l.linePoints||[[l.x,l.y],[l.x,l.y],[l.x,l.y]]},c={x:l.x,y:l.y};n?(r.updateProps(i,{shape:h},o,e),r.updateProps(a,{style:c},o,e)):(i.attr({shape:h}),a.attr({style:c})),a.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var f=s.getModel("label"),d=s.getModel("emphasis.label"),p=s.getModel("labelLine"),g=s.getModel("emphasis.labelLine");u=t.getItemVisual(e,"color");r.setLabelStyle(a.style,a.hoverStyle={},f,d,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:l.text,autoColor:u,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),a.ignore=a.normalIgnore=!f.get("show"),a.hoverIgnore=!d.get("show"),i.ignore=i.normalIgnore=!p.get("show"),i.hoverIgnore=!g.get("show"),i.setStyle({stroke:u,opacity:t.getItemVisual(e,"opacity")}),i.setStyle(p.getModel("lineStyle").getLineStyle()),i.hoverStyle=g.getModel("lineStyle").getLineStyle();var m=p.get("smooth");m&&!0===m&&(m=.4),i.setShape({smooth:m})}},i.inherits(l,r.Group);var h=a.extend({type:"pie",init:function(){var t=new r.Group;this._sectorGroup=t},render:function(t,e,n,r){if(!r||r.from!==this.uid){var a=t.getData(),s=this._data,u=this.group,h=e.get("animation"),c=!s,f=t.get("animationType"),d=t.get("animationTypeUpdate"),p=i.curry(o,this.uid,t,h,n),g=t.get("selectedMode");if(a.diff(s).add((function(t){var e=new l(a,t);c&&"scale"!==f&&e.eachChild((function(t){t.stopAnimation(!0)})),g&&e.on("click",p),a.setItemGraphicEl(t,e),u.add(e)})).update((function(t,e){var n=s.getItemGraphicEl(e);c||"transition"===d||n.eachChild((function(t){t.stopAnimation(!0)})),n.updateData(a,t),n.off("click"),g&&n.on("click",p),u.add(n),a.setItemGraphicEl(t,n)})).remove((function(t){var e=s.getItemGraphicEl(t);u.remove(e)})).execute(),h&&a.count()>0&&(c?"scale"!==f:"transition"!==d)){for(var m=a.getItemLayout(0),v=1;isNaN(m.startAngle)&&v<a.count();++v)m=a.getItemLayout(v);var y=Math.max(n.getWidth(),n.getHeight())/2,_=i.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(m.cx,m.cy,y,m.startAngle,m.clockwise,_,t,c))}else u.removeClipPath();this._data=a}},dispose:function(){},_createClipPath:function(t,e,n,i,a,o,s,l){var u=new r.Sector({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:a}});return(l?r.initProps:r.updateProps)(u,{shape:{endAngle:i+(a?1:-1)*Math.PI*2}},s,o),u},containPoint:function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,a=Math.sqrt(i*i+r*r);return a<=n.r&&a>=n.r0}}});t.exports=h},69503:(t,e,n)=>{var i=n(43407),r=n(44261).parsePercent,a=Math.PI/180;function o(t,e,n,i,r,a,o,s,l,u){function h(e,n,i,r){for(var a=e;a<n&&!(t[a].y+i>l+o);a++)if(t[a].y+=i,a>e&&a+1<n&&t[a+1].y>t[a].y+t[a].height)return void c(a,i/2);c(n-1,i/2)}function c(e,n){for(var i=e;i>=0&&!(t[i].y-n<l)&&(t[i].y-=n,!(i>0&&t[i].y>t[i-1].y+t[i-1].height));i--);}function f(t,e,n,i,r,a){for(var o=e?Number.MAX_VALUE:0,s=0,l=t.length;s<l;s++)if("none"===t[s].labelAlignTo){var u=Math.abs(t[s].y-i),h=t[s].len,c=t[s].len2,f=u<r+h?Math.sqrt((r+h+c)*(r+h+c)-u*u):Math.abs(t[s].x-n);e&&f>=o&&(f=o-10),!e&&f<=o&&(f=o+10),t[s].x=n+f*a,o=f}}t.sort((function(t,e){return t.y-e.y}));for(var d,p=0,g=t.length,m=[],v=[],y=0;y<g;y++){if("outer"===t[y].position&&"labelLine"===t[y].labelAlignTo){var _=t[y].x-u;t[y].linePoints[1][0]+=_,t[y].x=u}(d=t[y].y-p)<0&&h(y,g,-d),p=t[y].y+t[y].height}o-p<0&&c(g-1,p-o);for(y=0;y<g;y++)t[y].y>=n?v.push(t[y]):m.push(t[y]);f(m,!1,e,n,i,r),f(v,!0,e,n,i,r)}function s(t){return"center"===t.position}t.exports=function(t,e,n,l,u,h){var c,f,d=t.getData(),p=[],g=!1,m=(t.get("minShowLabelAngle")||0)*a;d.each((function(a){var o=d.getItemLayout(a),s=d.getItemModel(a),l=s.getModel("label"),h=l.get("position")||s.get("emphasis.label.position"),v=l.get("distanceToLabelLine"),y=l.get("alignTo"),_=r(l.get("margin"),n),b=l.get("bleedMargin"),x=l.getFont(),w=s.getModel("labelLine"),S=w.get("length");S=r(S,n);var A=w.get("length2");if(A=r(A,n),!(o.angle<m)){var L,C,P,N,k=(o.startAngle+o.endAngle)/2,I=Math.cos(k),M=Math.sin(k);c=o.cx,f=o.cy;var T,D=t.getFormattedLabel(a,"normal")||d.getName(a),O=i.getBoundingRect(D,x,N,"top"),F="inside"===h||"inner"===h;if("center"===h)L=o.cx,C=o.cy,N="center";else{var R=(F?(o.r+o.r0)/2*I:o.r*I)+c,E=(F?(o.r+o.r0)/2*M:o.r*M)+f;if(L=R+3*I,C=E+3*M,!F){var B=R+I*(S+e-o.r),z=E+M*(S+e-o.r),j=B+(I<0?-1:1)*A;L="edge"===y?I<0?u+_:u+n-_:j+(I<0?-v:v),C=z,P=[[R,E],[B,z],[j,z]]}N=F?"center":"edge"===y?I>0?"right":"left":I>0?"left":"right"}var q=l.get("rotate");T="number"==typeof q?q*(Math.PI/180):q?I<0?-k+Math.PI:-k:0,g=!!T,o.label={x:L,y:C,position:h,height:O.height,len:S,len2:A,linePoints:P,textAlign:N,verticalAlign:"middle",rotation:T,inside:F,labelDistance:v,labelAlignTo:y,labelMargin:_,bleedMargin:b,textRect:O,text:D,font:x},F||p.push(o.label)}})),!g&&t.get("avoidLabelOverlap")&&function(t,e,n,r,a,l,u,h){for(var c=[],f=[],d=Number.MAX_VALUE,p=-Number.MAX_VALUE,g=0;g<t.length;g++)s(t[g])||(t[g].x<e?(d=Math.min(d,t[g].x),c.push(t[g])):(p=Math.max(p,t[g].x),f.push(t[g])));for(o(f,e,n,r,1,0,l,0,h,p),o(c,e,n,r,-1,0,l,0,h,d),g=0;g<t.length;g++){var m=t[g];if(!s(m)){var v=m.linePoints;if(v){var y,_="edge"===m.labelAlignTo,b=m.textRect.width;(y=_?m.x<e?v[2][0]-m.labelDistance-u-m.labelMargin:u+a-m.labelMargin-v[2][0]-m.labelDistance:m.x<e?m.x-u-m.bleedMargin:u+a-m.x-m.bleedMargin)<m.textRect.width&&(m.text=i.truncateText(m.text,y,m.font),"edge"===m.labelAlignTo&&(b=i.getWidth(m.text,m.font)));var x=v[1][0]-v[2][0];_?m.x<e?v[2][0]=u+m.labelMargin+b+m.labelDistance:v[2][0]=u+a-m.labelMargin-b-m.labelDistance:(m.x<e?v[2][0]=m.x+m.labelDistance:v[2][0]=m.x-m.labelDistance,v[1][0]=v[2][0]+x),v[1][1]=v[2][1]=m.y}}}}(p,c,f,e,n,l,u,h)}},23219:(t,e,n)=>{var i=n(44261),r=i.parsePercent,a=i.linearMap,o=n(61570),s=n(69503),l=n(95289),u=2*Math.PI,h=Math.PI/180;t.exports=function(t,e,n,i){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),c=function(t,e){return o.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,n),f=t.get("center"),d=t.get("radius");l.isArray(d)||(d=[0,d]),l.isArray(f)||(f=[f,f]);var p=r(c.width,n.getWidth()),g=r(c.height,n.getHeight()),m=Math.min(p,g),v=r(f[0],p)+c.x,y=r(f[1],g)+c.y,_=r(d[0],m/2),b=r(d[1],m/2),x=-t.get("startAngle")*h,w=t.get("minAngle")*h,S=0;e.each(i,(function(t){!isNaN(t)&&S++}));var A=e.getSum(i),L=Math.PI/(A||S)*2,C=t.get("clockwise"),P=t.get("roseType"),N=t.get("stillShowZeroSum"),k=e.getDataExtent(i);k[0]=0;var I=u,M=0,T=x,D=C?1:-1;if(e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:C,cx:v,cy:y,r0:_,r:P?NaN:b,viewRect:c});else{(i="area"!==P?0===A&&N?L:t*L:u/S)<w?(i=w,I-=w):M+=t;var r=T+D*i;e.setItemLayout(n,{angle:i,startAngle:T,endAngle:r,clockwise:C,cx:v,cy:y,r0:_,r:P?a(t,k,[_,b]):b,viewRect:c}),T=r}})),I<u&&S)if(I<=.001){var O=u/S;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=O,i.startAngle=x+D*n*O,i.endAngle=x+D*(n+1)*O}}))}else L=I/M,T=x,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===w?w:t*L;i.startAngle=T,i.endAngle=T+D*r,T+=D*r}}));s(t,b,c.width,c.height,c.x,c.y)}))}},49548:(t,e,n)=>{n(67384),n(83657)},76683:(t,e,n)=>{var i=n(89231),r=n(95289),a=n(47181),o=n(38363);n(7401),n(74067),n(25178),i.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!r.isArray(e)&&(t.axisPointer.link=[e])}})),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=a.collect(t,e)})),i.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},o)},7401:(t,e,n)=>{var i=n(89231).extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}});t.exports=i},74067:(t,e,n)=>{var i=n(89231),r=n(22921),a=i.extendComponentView({type:"axisPointer",render:function(t,e,n){var i=e.getComponent("tooltip"),a=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";r.register("axisPointer",n,(function(t,e,n){"none"!==a&&("leave"===t||a.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},remove:function(t,e){r.unregister(e.getZr(),"axisPointer"),a.superApply(this._model,"remove",arguments)},dispose:function(t,e){r.unregister("axisPointer",e),a.superApply(this._model,"dispose",arguments)}}),o=a;t.exports=o},42533:(t,e,n)=>{var i=n(95289),r=n(11724),a=n(76442),o=n(47181),s=n(88665),l=n(88336),u=(0,n(63199).makeInner)(),h=i.clone,c=i.bind;function f(){}function d(t,e,n,i){p(u(n).lastProp,i)||(u(n).lastProp=i,e?a.updateProps(n,i,t):(n.stopAnimation(),n.attr(i)))}function p(t,e){if(i.isObject(t)&&i.isObject(e)){var n=!0;return i.each(e,(function(e,i){n=n&&p(t[i],e)})),!!n}return t===e}function g(t,e){t[e.get("label.show")?"show":"hide"]()}function m(t){return{position:t.position.slice(),rotation:t.rotation||0}}function v(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}f.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,r){var o=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==o||this._lastStatus!==s){this._lastValue=o,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var h={};this.makeElOption(h,o,t,e,n);var c=h.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,e);if(l){var p=i.curry(d,e,f);this.updatePointerEl(l,h,p,e),this.updateLabelEl(l,h,p,e)}else l=this._group=new a.Group,this.createPointerEl(l,h,t,e),this.createLabelEl(l,h,t,e),n.getZr().add(l);v(l,e,!0),this._renderHandle(o)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,a=e.get("snap");if(!a&&!r)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(r&&i.getBandWidth()>s)return!0;if(a){var l=o.getAxisInfo(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return!0===n},makeElOption:function(t,e,n,i,r){},createPointerEl:function(t,e,n,i){var r=e.pointer;if(r){var o=u(t).pointerEl=new a[r.type](h(e.pointer));t.add(o)}},createLabelEl:function(t,e,n,i){if(e.label){var r=u(t).labelEl=new a.Rect(h(e.label));t.add(r),g(r,i)}},updatePointerEl:function(t,e,n){var i=u(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=u(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),g(r,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),o=this._handle,u=n.getModel("handle"),h=n.get("status");if(!u.get("show")||!h||"hide"===h)return o&&r.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=a.createIcon(u.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){s.stop(t.event)},onmousedown:c(this._onHandleDragMove,this,0,0),drift:c(this._onHandleDragMove,this),ondragend:c(this._onHandleDragEnd,this)}),r.add(o)),v(o,n,!1);o.setStyle(u.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var f=u.get("size");i.isArray(f)||(f=[f,f]),o.attr("scale",[f[0]/2,f[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",u.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){d(this._axisPointerModel,!e&&this._moveAnimation,this._handle,m(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(m(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(m(i)),u(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}},f.prototype.constructor=f,r.enableClassExtend(f);var y=f;t.exports=y},25178:(t,e,n)=>{var i=n(42533),r=n(67419),a=n(30625),o=n(27963),s=i.extend({makeElOption:function(t,e,n,i,o){var s=n.axis,h=s.grid,c=i.get("type"),f=l(h,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(e,!0));if(c&&"none"!==c){var p=r.buildElStyle(i),g=u[c](s,d,f);g.style=p,t.graphicKey=g.type,t.pointer=g}var m=a.layout(h.model,n);r.buildCartesianSingleLabelElOption(e,t,m,n,i,o)},getHandleTransform:function(t,e,n){var i=a.layout(e.axis.grid.model,e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:r.getTransformedPosition(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n,i){var r=n.axis,a=r.grid,o=r.getGlobalExtent(!0),s=l(a,r).getOtherAxis(r).getGlobalExtent(),u="x"===r.dim?0:1,h=t.position;h[u]+=e[u],h[u]=Math.min(o[1],h[u]),h[u]=Math.max(o[0],h[u]);var c=(s[1]+s[0])/2,f=[c,c];f[u]=h[u];return{position:h,rotation:t.rotation,cursorPoint:f,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][u]}}});function l(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var u={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:r.makeLineShape([e,n[0]],[e,n[1]],h(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:r.makeRectShape([e-i/2,n[0]],[i,a],h(t))}}};function h(t){return"x"===t.dim?0:1}o.registerAxisPointerClass("CartesianAxisPointer",s);var c=s;t.exports=c},38363:(t,e,n)=>{var i=n(95289),r=n(63199).makeInner,a=n(47181),o=n(13390),s=i.each,l=i.curry,u=r();function h(t,e,n,r,a){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var l=function(t,e){var n=e.axis,i=n.dim,r=t,a=[],o=Number.MAX_VALUE,l=-1;return s(e.seriesModels,(function(e,u){var h,c,f=e.getData().mapDimension(i,!0);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(f,t,n);c=d.dataIndices,h=d.nestestValue}else{if(!(c=e.getData().indicesOfNearest(f[0],t,"category"===n.type?.5:null)).length)return;h=e.getData().get(f[0],c[0])}if(null!=h&&isFinite(h)){var p=t-h,g=Math.abs(p);g<=o&&((g<o||p>=0&&l<0)&&(o=g,l=p,r=h,a.length=0),s(c,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:r}}(e,t),u=l.payloadBatch,h=l.snapToValue;u[0]&&null==a.seriesIndex&&i.extend(a,u[0]),!r&&t.snap&&o.containData(h)&&null!=h&&(e=h),n.showPointer(t,e,u,a),n.showTooltip(t,l,h)}else n.showPointer(t,e)}function c(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function f(t,e,n,i){var r=n.payloadBatch,o=e.axis,s=o.model,l=e.axisPointerModel;if(e.triggerTooltip&&r.length){var u=e.coordSys.model,h=a.makeKey(u),c=t.map[h];c||(c=t.map[h]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:r.slice()})}}function d(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function p(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}t.exports=function(t,e,n){var r=t.currTrigger,a=[t.x,t.y],g=t,m=t.dispatchAction||i.bind(n.dispatchAction,n),v=e.getComponent("axisPointer").coordSysAxesInfo;if(v){p(a)&&(a=o({seriesIndex:g.seriesIndex,dataIndex:g.dataIndex},e).point);var y=p(a),_=g.axesInfo,b=v.axesInfo,x="leave"===r||p(a),w={},S={},A={list:[],map:{}},L={showPointer:l(c,S),showTooltip:l(f,A)};s(v.coordSysMap,(function(t,e){var n=y||t.containPoint(a);s(v.coordSysAxesInfo[e],(function(t,e){var i=t.axis,r=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(_,t);if(!x&&n&&(!_||r)){var o=r&&r.value;null!=o||y||(o=i.pointToData(a)),null!=o&&h(t,o,L,!1,w)}}))}));var C={};return s(b,(function(t,e){var n=t.linkGroup;n&&!S[e]&&s(n.axesInfo,(function(e,i){var r=S[i];if(e!==t&&r){var a=r.value;n.mapper&&(a=t.axis.scale.parse(n.mapper(a,d(e),d(t)))),C[t.key]=a}}))})),s(C,(function(t,e){h(b[e],t,L,!0,w)})),function(t,e,n){var i=n.axesInfo=[];s(e,(function(e,n){var r=e.axisPointerModel.option,a=t[n];a?(!e.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(S,b,w),function(t,e,n,i){if(p(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(A,a,t,m),function(t,e,n){var r=n.getZr(),a="axisPointerLastHighlights",o=u(r)[a]||{},l=u(r)[a]={};s(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&s(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;l[e]=t}))}));var h=[],c=[];i.each(o,(function(t,e){!l[e]&&c.push(t)})),i.each(l,(function(t,e){!o[e]&&h.push(t)})),c.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:c}),h.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:h})}(b,0,n),w}}},13390:(t,e,n)=>{var i=n(95289),r=n(63199);t.exports=function(t,e){var n,a=[],o=t.seriesIndex;if(null==o||!(n=e.getSeriesByIndex(o)))return{point:[]};var s=n.getData(),l=r.queryDataIndex(s,t);if(null==l||l<0||i.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),h=n.coordinateSystem;if(n.getTooltipPosition)a=n.getTooltipPosition(l)||[];else if(h&&h.dataToPoint)a=h.dataToPoint(s.getValues(i.map(h.dimensions,(function(t){return s.mapDimension(t)})),l,!0))||[];else if(u){var c=u.getBoundingRect().clone();c.applyTransform(u.transform),a=[c.x+c.width/2,c.y+c.height/2]}return{point:a,el:u}}},22921:(t,e,n)=>{var i=n(95289),r=n(87190),a=(0,n(63199).makeInner)(),o=i.each;function s(t,e,n){t.handler("leave",null,n)}function l(t,e,n,i){e.handler(t,n,i)}e.register=function(t,e,n){if(!r.node){var u=e.getZr();a(u).records||(a(u).records={}),function(t,e){if(a(t).initialized)return;function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);o(a(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}a(t).initialized=!0,n("click",i.curry(l,"click")),n("mousemove",i.curry(l,"mousemove")),n("globalout",s)}(u,e),(a(u).records[t]||(a(u).records[t]={})).handler=n}},e.unregister=function(t,e){if(!r.node){var n=e.getZr();(a(n).records||{})[t]&&(a(n).records[t]=null)}}},47181:(t,e,n)=>{var i=n(95289),r=n(40590),a=i.each,o=i.curry;function s(t,e){return"all"===t||i.isArray(t)&&i.indexOf(t,e)>=0||t===e}function l(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[h(t)]}function u(t){return!!t.get("handle.show")}function h(t){return t.type+"||"+t.id}e.collect=function(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var l=e.getComponent("tooltip"),c=e.getComponent("axisPointer"),f=c.get("link",!0)||[],d=[];a(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var p=h(n.model),g=t.coordSysAxesInfo[p]={};t.coordSysMap[p]=n;var m=n.model.getModel("tooltip",l);if(a(n.getAxes(),o(b,!1,null)),n.getTooltipAxes&&l&&m.get("show")){var v="axis"===m.get("trigger"),y="cross"===m.get("axisPointer.type"),_=n.getTooltipAxes(m.get("axisPointer.axis"));(v||y)&&a(_.baseAxes,o(b,!y||"cross",v)),y&&a(_.otherAxes,o(b,"cross",!1))}}function b(o,l,p){var v=p.model.getModel("axisPointer",c),y=v.get("show");if(y&&("auto"!==y||o||u(v))){null==l&&(l=v.get("triggerTooltip")),v=o?function(t,e,n,o,s,l){var u=e.getModel("axisPointer"),h={};a(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){h[t]=i.clone(u.get(t))})),h.snap="category"!==t.type&&!!l,"cross"===u.get("type")&&(h.type="line");var c=h.label||(h.label={});if(null==c.show&&(c.show=!1),"cross"===s){var f=u.get("label.show");if(c.show=null==f||f,!l){var d=h.lineStyle=u.get("crossStyle");d&&i.defaults(c,d.textStyle)}}return t.model.getModel("axisPointer",new r(h,n,o))}(p,m,c,e,o,l):v;var _=v.get("snap"),b=h(p.model),x=l||_||"category"===p.type,w=t.axesInfo[b]={key:b,axis:p,coordSys:n,axisPointerModel:v,triggerTooltip:l,involveSeries:x,snap:_,useHandle:u(v),seriesModels:[]};g[b]=w,t.seriesInvolved|=x;var S=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var a=t[r]||{};if(s(a[i+"AxisId"],n.id)||s(a[i+"AxisIndex"],n.componentIndex)||s(a[i+"AxisName"],n.name))return r}}(f,p);if(null!=S){var A=d[S]||(d[S]={axesInfo:{}});A.axesInfo[b]=w,A.mapper=f[S].mapper,w.linkGroup=A}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get("tooltip.trigger",!0),r=e.get("tooltip.show",!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get("axisPointer.show",!0)&&a(t.coordSysAxesInfo[h(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}),this)}(n,t),n},e.fixValue=function(t){var e=l(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=i.parse(o));var s=u(n);null==a&&(r.status=s?"show":"hide");var h=i.getExtent().slice();h[0]>h[1]&&h.reverse(),(null==o||o>h[1])&&(o=h[1]),o<h[0]&&(o=h[0]),r.value=o,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}},e.getAxisInfo=l,e.getAxisPointerModel=function(t){var e=l(t);return e&&e.axisPointerModel},e.makeKey=h},67419:(t,e,n)=>{var i=n(95289),r=n(76442),a=n(43407),o=n(8595),s=n(13388),l=n(8426),u=n(11011);function h(t,e,n,i,r){var s=c(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),l=n.getModel("label"),u=o.normalizeCssArray(l.get("padding")||0),h=l.getFont(),f=a.getBoundingRect(s,h),d=r.position,p=f.width+u[1]+u[3],g=f.height+u[0]+u[2],m=r.align;"right"===m&&(d[0]-=p),"center"===m&&(d[0]-=p/2);var v=r.verticalAlign;"bottom"===v&&(d[1]-=g),"middle"===v&&(d[1]-=g/2),function(t,e,n,i){var r=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,a)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(d,p,g,i);var y=l.get("backgroundColor");y&&"auto"!==y||(y=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:p,height:g,r:l.get("borderRadius")},position:d.slice(),style:{text:s,textFont:h,textFill:l.getTextColor(),textPosition:"inside",textPadding:u,fill:y,stroke:l.get("borderColor")||"transparent",lineWidth:l.get("borderWidth")||0,shadowBlur:l.get("shadowBlur"),shadowColor:l.get("shadowColor"),shadowOffsetX:l.get("shadowOffsetX"),shadowOffsetY:l.get("shadowOffsetY")},z2:10}}function c(t,e,n,r,a){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:a.precision}),s=a.formatter;if(s){var u={value:l.getAxisRawValue(e,t),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};i.each(r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&u.seriesData.push(r)})),i.isString(s)?o=s.replace("{value}",o):i.isFunction(s)&&(o=s(u))}return o}function f(t,e,n){var i=s.create();return s.rotate(i,i,n.rotation),s.translate(i,i,n.position),r.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}e.buildElStyle=function(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e},e.buildLabelElOption=h,e.getValueLabel=c,e.getTransformedPosition=f,e.buildCartesianSingleLabelElOption=function(t,e,n,i,r,a){var o=u.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),h(e,i,r,a,{position:f(i.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})},e.makeLineShape=function(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}},e.makeRectShape=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},e.makeSectorShape=function(t,e,n,i,r,a){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:a,clockwise:!0}}},11011:(t,e,n)=>{var i=n(95289),r=i.retrieve,a=i.defaults,o=i.extend,s=i.each,l=n(8595),u=n(76442),h=n(40590),c=n(44261),f=c.isRadianAroundZero,d=c.remRadian,p=n(22864).createSymbol,g=n(13388),m=n(31138).applyTransform,v=n(8426).shouldShowAllLabels,y=Math.PI,_=function(t,e){this.opt=e,this.axisModel=t,a(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new u.Group;var n=new u.Group({position:e.position.slice(),rotation:e.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};_.prototype={constructor:_,hasBuilder:function(t){return!!b[t]},add:function(t){b[t].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),i=this._transform,r=[n[0],0],a=[n[1],0];i&&(m(r,r,i),m(a,a,i));var l=o({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new u.Line({anid:"line",subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1}));var h=e.get("axisLine.symbol"),c=e.get("axisLine.symbolSize"),f=e.get("axisLine.symbolOffset")||0;if("number"==typeof f&&(f=[f,f]),null!=h){"string"==typeof h&&(h=[h,h]),"string"!=typeof c&&"number"!=typeof c||(c=[c,c]);var d=c[0],g=c[1];s([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((r[0]-a[0])*(r[0]-a[0])+(r[1]-a[1])*(r[1]-a[1]))}],(function(e,n){if("none"!==h[n]&&null!=h[n]){var i=p(h[n],-d/2,-g/2,d,g,l.stroke,!0),a=e.r+e.offset,o=[r[0]+a*Math.cos(t.rotation),r[1]-a*Math.sin(t.rotation)];i.attr({rotation:e.rotate,position:o,silent:!0,z2:11}),this.group.add(i)}}),this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,n=function(t,e,n){var i=e.axis,r=e.getModel("axisTick");if(!r.get("show")||i.scale.isBlank())return;for(var o=r.getModel("lineStyle"),s=n.tickDirection*r.get("length"),l=P(i.getTicksCoords(),t._transform,s,a(o.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),"ticks"),u=0;u<l.length;u++)t.group.add(l[u]);return l}(this,t,e),i=function(t,e,n){var i=e.axis,a=r(n.axisLabelShow,e.get("axisLabel.show"));if(!a||i.scale.isBlank())return;var o=e.getModel("axisLabel"),l=o.get("margin"),c=i.getViewLabels(),f=(r(n.labelRotate,o.get("rotate"))||0)*y/180,d=w(n.rotation,f,n.labelDirection),p=e.getCategories&&e.getCategories(!0),g=[],m=S(e),v=e.get("triggerEvent");return s(c,(function(r,a){var s=r.tickValue,c=r.formattedLabel,f=r.rawLabel,y=o;p&&p[s]&&p[s].textStyle&&(y=new h(p[s].textStyle,o,e.ecModel));var _=y.getTextColor()||e.get("axisLine.lineStyle.color"),b=[i.dataToCoord(s),n.labelOffset+n.labelDirection*l],w=new u.Text({anid:"label_"+s,position:b,rotation:d.rotation,silent:m,z2:10});u.setTextStyle(w.style,y,{text:c,textAlign:y.getShallow("align",!0)||d.textAlign,textVerticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||d.textVerticalAlign,textFill:"function"==typeof _?_("category"===i.type?f:"value"===i.type?s+"":s,a):_}),v&&(w.eventData=x(e),w.eventData.targetType="axisLabel",w.eventData.value=f),t._dumbGroup.add(w),w.updateTransform(),g.push(w),t.group.add(w),w.decomposeTransform()})),g}(this,t,e);!function(t,e,n){if(v(t.axis))return;var i=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");e=e||[],n=n||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],h=n[1],c=n[n.length-1],f=n[n.length-2];!1===i?(A(a),A(u)):L(a,o)&&(i?(A(o),A(h)):(A(a),A(u)));!1===r?(A(s),A(c)):L(l,s)&&(r?(A(l),A(f)):(A(s),A(c)))}(t,i,n),function(t,e,n){var i=e.axis,r=e.getModel("minorTick");if(!r.get("show")||i.scale.isBlank())return;var o=i.getMinorTicksCoords();if(!o.length)return;for(var s=r.getModel("lineStyle"),l=n.tickDirection*r.get("length"),u=a(s.getLineStyle(),a(e.getModel("axisTick").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})),h=0;h<o.length;h++)for(var c=P(o[h],t._transform,l,u,"minorticks_"+h),f=0;f<c.length;f++)t.group.add(c[f])}(this,t,e)},axisName:function(){var t=this.opt,e=this.axisModel,n=r(t.axisName,e.get("name"));if(n){var i,a,s=e.get("nameLocation"),h=t.nameDirection,c=e.getModel("nameTextStyle"),p=e.get("nameGap")||0,g=this.axisModel.axis.getExtent(),m=g[0]>g[1]?-1:1,v=["start"===s?g[0]-m*p:"end"===s?g[1]+m*p:(g[0]+g[1])/2,C(s)?t.labelOffset+h*p:0],_=e.get("nameRotate");null!=_&&(_=_*y/180),C(s)?i=w(t.rotation,null!=_?_:t.rotation,h):(i=function(t,e,n,i){var r,a,o=d(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;f(o-y/2)?(a=l?"bottom":"top",r="center"):f(o-1.5*y)?(a=l?"top":"bottom",r="center"):(a="middle",r=o<1.5*y&&o>y/2?l?"left":"right":l?"right":"left");return{rotation:o,textAlign:r,textVerticalAlign:a}}(t,s,_||0,g),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(i.rotation)),!isFinite(a)&&(a=null)));var b=c.getFont(),A=e.get("nameTruncate",!0)||{},L=A.ellipsis,P=r(t.nameTruncateMaxWidth,A.maxWidth,a),N=null!=L&&null!=P?l.truncateText(n,P,b,L,{minChar:2,placeholder:A.placeholder}):n,k=e.get("tooltip",!0),I=e.mainType,M={componentType:I,name:n,$vars:["name"]};M[I+"Index"]=e.componentIndex;var T=new u.Text({anid:"name",__fullText:n,__truncatedText:N,position:v,rotation:i.rotation,silent:S(e),z2:1,tooltip:k&&k.show?o({content:n,formatter:function(){return n},formatterParams:M},k):null});u.setTextStyle(T.style,c,{text:N,textFont:b,textFill:c.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:c.get("align")||i.textAlign,textVerticalAlign:c.get("verticalAlign")||i.textVerticalAlign}),e.get("triggerEvent")&&(T.eventData=x(e),T.eventData.targetType="axisName",T.eventData.name=n),this._dumbGroup.add(T),T.updateTransform(),this.group.add(T),T.decomposeTransform()}}},x=_.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},w=_.innerTextLayout=function(t,e,n){var i,r,a=d(e-t);return f(a)?(r=n>0?"top":"bottom",i="center"):f(a-y)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=a>0&&a<y?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:r}};var S=_.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function A(t){t&&(t.ignore=!0)}function L(t,e,n){var i=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(i&&r){var a=g.identity([]);return g.rotate(a,a,-t.rotation),i.applyTransform(g.mul([],a,t.getLocalTransform())),r.applyTransform(g.mul([],a,e.getLocalTransform())),i.intersect(r)}}function C(t){return"middle"===t||"center"===t}function P(t,e,n,i,r){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var h=t[l].coord;o[0]=h,o[1]=0,s[0]=h,s[1]=n,e&&(m(o,o,e),m(s,s,e));var c=new u.Line({anid:r+"_"+t[l].tickValue,subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,silent:!0});a.push(c)}return a}var N=_;t.exports=N},27963:(t,e,n)=>{n(65523).__DEV__;var i=n(89231),r=n(47181),a=i.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,n,i){this.axisPointerClass&&r.fixValue(t),a.superApply(this,"render",arguments),o(this,t,e,n,i,!0)},updateAxisPointer:function(t,e,n,i,r){o(this,t,e,n,i,!1)},remove:function(t,e){var n=this._axisPointer;n&&n.remove(e),a.superApply(this,"remove",arguments)},dispose:function(t,e){s(this,e),a.superApply(this,"dispose",arguments)}});function o(t,e,n,i,o,l){var u=a.getAxisPointerClass(t.axisPointerClass);if(u){var h=r.getAxisPointerModel(e);h?(t._axisPointer||(t._axisPointer=new u)).render(e,h,i,l):s(t,i)}}function s(t,e,n){var i=t._axisPointer;i&&i.dispose(e,n),t._axisPointer=null}var l=[];a.registerAxisPointerClass=function(t,e){l[t]=e},a.getAxisPointerClass=function(t){return t&&l[t]};var u=a;t.exports=u},83657:(t,e,n)=>{var i=n(95289),r=n(76442),a=n(11011),o=n(27963),s=n(30625),l=n(20168),u=l.rectCoordAxisBuildSplitArea,h=l.rectCoordAxisHandleRemove,c=["axisLine","axisTickLabel","axisName"],f=["splitArea","splitLine","minorSplitLine"],d=o.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,n,o){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new r.Group,this.group.add(this._axisGroup),t.get("show")){var u=t.getCoordSysModel(),h=s.layout(u,t),p=new a(t,h);i.each(c,p.add,p),this._axisGroup.add(p.getGroup()),i.each(f,(function(e){t.get(e+".show")&&this["_"+e](t,u)}),this),r.groupTransition(l,this._axisGroup,t),d.superCall(this,"render",t,e,n,o)}},remove:function(){h(this)},_splitLine:function(t,e){var n=t.axis;if(!n.scale.isBlank()){var a=t.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=i.isArray(s)?s:[s];for(var l=e.coordinateSystem.getRect(),u=n.isHorizontal(),h=0,c=n.getTicksCoords({tickModel:a}),f=[],d=[],p=o.getLineStyle(),g=0;g<c.length;g++){var m=n.toGlobalCoord(c[g].coord);u?(f[0]=m,f[1]=l.y,d[0]=m,d[1]=l.y+l.height):(f[0]=l.x,f[1]=m,d[0]=l.x+l.width,d[1]=m);var v=h++%s.length,y=c[g].tickValue;this._axisGroup.add(new r.Line({anid:null!=y?"line_"+c[g].tickValue:null,subPixelOptimize:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:i.defaults({stroke:s[v]},p),silent:!0}))}}},_minorSplitLine:function(t,e){var n=t.axis,i=t.getModel("minorSplitLine").getModel("lineStyle"),a=e.coordinateSystem.getRect(),o=n.isHorizontal(),s=n.getMinorTicksCoords();if(s.length)for(var l=[],u=[],h=i.getLineStyle(),c=0;c<s.length;c++)for(var f=0;f<s[c].length;f++){var d=n.toGlobalCoord(s[c][f].coord);o?(l[0]=d,l[1]=a.y,u[0]=d,u[1]=a.y+a.height):(l[0]=a.x,l[1]=d,u[0]=a.x+a.width,u[1]=d),this._axisGroup.add(new r.Line({anid:"minor_line_"+s[c][f].tickValue,subPixelOptimize:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,silent:!0}))}},_splitArea:function(t,e){u(this,this._axisGroup,t,e)}});d.extend({type:"xAxis"}),d.extend({type:"yAxis"})},20168:(t,e,n)=>{var i=n(95289),r=n(76442);e.rectCoordAxisBuildSplitArea=function(t,e,n,a){var o=n.axis;if(!o.scale.isBlank()){var s=n.getModel("splitArea"),l=s.getModel("areaStyle"),u=l.get("color"),h=a.coordinateSystem.getRect(),c=o.getTicksCoords({tickModel:s,clamp:!0});if(c.length){var f=u.length,d=t.__splitAreaColors,p=i.createHashMap(),g=0;if(d)for(var m=0;m<c.length;m++){var v=d.get(c[m].tickValue);if(null!=v){g=(v+(f-1)*m)%f;break}}var y=o.toGlobalCoord(c[0].coord),_=l.getAreaStyle();u=i.isArray(u)?u:[u];for(m=1;m<c.length;m++){var b,x,w,S,A=o.toGlobalCoord(c[m].coord);o.isHorizontal()?(b=y,x=h.y,w=A-b,S=h.height,y=b+w):(b=h.x,x=y,w=h.width,y=x+(S=A-x));var L=c[m-1].tickValue;null!=L&&p.set(L,g),e.add(new r.Rect({anid:null!=L?"area_"+L:null,shape:{x:b,y:x,width:w,height:S},style:i.defaults({fill:u[g]},_),silent:!0})),g=(g+1)%f}t.__splitAreaColors=p}}},e.rectCoordAxisHandleRemove=function(t){t.__splitAreaColors=null}},613:(t,e,n)=>{var i=n(85532),r=n(18328),a=n(49442).detectSourceFormat,o=n(90642).SERIES_LAYOUT_BY_COLUMN;i.extend({type:"dataset",defaultOption:{seriesLayoutBy:o,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){a(this)}}),r.extend({type:"dataset"})},48807:(t,e,n)=>{var i=n(89231),r=n(95289),a=n(76442);n(31020),n(49548),i.extendComponentView({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new a.Rect({shape:t.coordinateSystem.getRect(),style:r.defaults({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),i.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))},13785:(t,e,n)=>{var i=n(61570),r=i.getLayoutRect,a=i.box,o=i.positionElement,s=n(8595),l=n(76442);e.layout=function(t,e,n){var i=e.getBoxLayoutParams(),s=e.get("padding"),l={width:n.getWidth(),height:n.getHeight()},u=r(i,l,s);a(e.get("orient"),t,e.get("itemGap"),u.width,u.height),o(t,i,l,s)},e.makeBackground=function(t,e){var n=s.normalizeCssArray(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new l.Rect({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}},18171:(t,e,n)=>{var i=n(95289),r={updateSelectedMap:function(t){this._targetList=i.isArray(t)?t.slice():[],this._selectTargetMap=i.reduce(t||[],(function(t,e){return t.set(e.name,e),t}),i.createHashMap())},select:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);"single"===this.get("selectedMode")&&this._selectTargetMap.each((function(t){t.selected=!1})),n&&(n.selected=!0)},unSelect:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);n&&(n.selected=!1)},toggleSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=n)return this[n.selected?"unSelect":"select"](t,e),n.selected},isSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return n&&n.selected}};t.exports=r},59608:(t,e,n)=>{var i=n(89231);n(29629),n(82180),n(76575);var r=n(99268),a=n(85532);i.registerProcessor(i.PRIORITY.PROCESSOR.SERIES_FILTER,r),a.registerSubTypeDefaulter("legend",(function(){return"plain"}))},29629:(t,e,n)=>{var i=n(89231),r=n(95289),a=n(40590),o=n(63199).isNameSpecified,s=n(49777).legend.selector,l={all:{type:"all",title:r.clone(s.all)},inverse:{type:"inverse",title:r.clone(s.inverse)}},u=i.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){u.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var e=t.selector;!0===e&&(e=t.selector=["all","inverse"]),r.isArray(e)&&r.each(e,(function(t,n){r.isString(t)&&(t={type:t}),e[n]=r.merge(t,l[t.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,a=i.name;if(n.push(a),i.legendVisualProvider){var s=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(s)),s.length?e=e.concat(s):r=!0}else r=!0;r&&o(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,s=r.map(i,(function(t){return"string"!=typeof t&&"number"!=typeof t||(t={name:t}),new a(t,this,this.ecModel)}),this);this._data=s},getData:function(){return this._data},select:function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;r.each(n,(function(t){e[t.get("name")]=!1}))}e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,e=this.option.selected;r.each(t,(function(t){e[t.get("name",!0)]=!0}))},inverseSelect:function(){var t=this._data,e=this.option.selected;r.each(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&r.indexOf(this._availableNames,t)>=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),h=u;t.exports=h},76575:(t,e,n)=>{n(65523).__DEV__;var i=n(89231),r=n(95289),a=n(22864).createSymbol,o=n(76442),s=n(13785).makeBackground,l=n(61570),u=r.curry,h=r.each,c=o.Group,f=i.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new c),this._backgroundEl,this.group.add(this._selectorGroup=new c),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var a=t.get("align"),o=t.get("orient");a&&"auto"!==a||(a="right"===t.get("left")&&"vertical"===o?"right":"left");var u=t.get("selector",!0),h=t.get("selectorPosition",!0);!u||h&&"auto"!==h||(h="horizontal"===o?"end":"start"),this.renderInner(a,t,e,n,u,o,h);var c=t.getBoxLayoutParams(),f={width:n.getWidth(),height:n.getHeight()},d=t.get("padding"),p=l.getLayoutRect(c,f,d),g=this.layoutInner(t,a,p,i,u,h),m=l.getLayoutRect(r.defaults({width:g.width,height:g.height},c),f,d);this.group.attr("position",[m.x-g.x,m.y-g.y]),this.group.add(this._backgroundEl=s(g,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(t,e,n,i,a,o,s){var l=this.getContentGroup(),f=r.createHashMap(),d=e.get("selectedMode"),v=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&v.push(t.id)})),h(e.getData(),(function(r,a){var o=r.get("name");if(this.newlineDisabled||""!==o&&"\n"!==o){var s=n.getSeriesByName(o)[0];if(!f.get(o))if(s){var h=s.getData(),y=h.getVisual("color"),_=h.getVisual("borderColor");"function"==typeof y&&(y=y(s.getDataParams(0))),"function"==typeof _&&(_=_(s.getDataParams(0)));var b=h.getVisual("legendSymbol")||"roundRect",x=h.getVisual("symbol");this._createItem(o,a,r,e,b,x,t,y,_,d).on("click",u(p,o,null,i,v)).on("mouseover",u(g,s.name,null,i,v)).on("mouseout",u(m,s.name,null,i,v)),f.set(o,!0)}else n.eachRawSeries((function(n){if(!f.get(o)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(o))return;var l=s.indexOfName(o),h=s.getItemVisual(l,"color"),c=s.getItemVisual(l,"borderColor");this._createItem(o,a,r,e,"roundRect",null,t,h,c,d).on("click",u(p,null,o,i,v)).on("mouseover",u(g,null,o,i,v)).on("mouseout",u(m,null,o,i,v)),f.set(o,!0)}}),this)}else l.add(new c({newline:!0}))}),this),a&&this._createSelector(a,e,i,o,s)},_createSelector:function(t,e,n,i,r){var a=this.getSelectorGroup();h(t,(function(t){!function(t){var i=t.type,r=new o.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});a.add(r);var s=e.getModel("selectorLabel"),l=e.getModel("emphasis.selectorLabel");o.setLabelStyle(r.style,r.hoverStyle={},s,l,{defaultText:t.title,isRectText:!1}),o.setHoverStyle(r)}(t)}))},_createItem:function(t,e,n,i,s,l,u,h,f,p){var g=i.get("itemWidth"),m=i.get("itemHeight"),v=i.get("inactiveColor"),y=i.get("inactiveBorderColor"),_=i.get("symbolKeepAspect"),b=i.getModel("itemStyle"),x=i.isSelected(t),w=new c,S=n.getModel("textStyle"),A=n.get("icon"),L=n.getModel("tooltip"),C=L.parentModel,P=a(s=A||s,0,0,g,m,x?h:v,null==_||_);if(w.add(d(P,s,b,f,y,x)),!A&&l&&(l!==s||"none"===l)){var N=.8*m;"none"===l&&(l="circle");var k=a(l,(g-N)/2,(m-N)/2,N,N,x?h:v,null==_||_);w.add(d(k,l,b,f,y,x))}var I="left"===u?g+5:-5,M=u,T=i.get("formatter"),D=t;"string"==typeof T&&T?D=T.replace("{name}",null!=t?t:""):"function"==typeof T&&(D=T(t)),w.add(new o.Text({style:o.setTextStyle({},S,{text:D,x:I,y:m/2,textFill:x?S.getTextColor():v,textAlign:M,textVerticalAlign:"middle"})}));var O=new o.Rect({shape:w.getBoundingRect(),invisible:!0,tooltip:L.get("show")?r.extend({content:t,formatter:C.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]}},L.option):null});return w.add(O),w.eachChild((function(t){t.silent=!0})),O.silent=!p,this.getContentGroup().add(w),o.setHoverStyle(w),w.__legendDataIndex=e,w},layoutInner:function(t,e,n,i,r,a){var o=this.getContentGroup(),s=this.getSelectorGroup();l.box(t.get("orient"),o,t.get("itemGap"),n.width,n.height);var u=o.getBoundingRect(),h=[-u.x,-u.y];if(r){l.box("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),f=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=0===p?"width":"height",m=0===p?"height":"width",v=0===p?"y":"x";"end"===a?f[p]+=u[g]+d:h[p]+=c[g]+d,f[1-p]+=u[m]/2-c[m]/2,s.attr("position",f),o.attr("position",h);var y={x:0,y:0};return y[g]=u[g]+d+c[g],y[m]=Math.max(u[m],c[m]),y[v]=Math.min(0,c[v]+f[1-p]),y}return o.attr("position",h),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function d(t,e,n,i,r,a){var o;return"line"!==e&&e.indexOf("empty")<0?(o=n.getItemStyle(),t.style.stroke=i,a||(o.stroke=r)):o=n.getItemStyle(["borderWidth","borderColor"]),t.setStyle(o)}function p(t,e,n,i){m(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),g(t,e,n,i)}function g(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function m(t,e,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}t.exports=f},82180:(t,e,n)=>{var i=n(89231),r=n(95289);function a(t,e,n){var i,a={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var s=n.getData();r.each(s,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);a.hasOwnProperty(e)?a[e]=a[e]&&i:a[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:a}:{name:e.name,selected:a}}i.registerAction("legendToggleSelect","legendselectchanged",r.curry(a,"toggleSelected")),i.registerAction("legendAllSelect","legendselectall",r.curry(a,"allSelect")),i.registerAction("legendInverseSelect","legendinverseselect",r.curry(a,"inverseSelect")),i.registerAction("legendSelect","legendselected",r.curry(a,"select")),i.registerAction("legendUnSelect","legendunselected",r.curry(a,"unSelect"))},99268:t=>{t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}},67770:(t,e,n)=>{var i=n(89231);n(76683),n(13281),n(97371),i.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),i.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},47561:(t,e,n)=>{var i=n(95289),r=n(56607),a=n(88665),o=n(105),s=n(87190),l=n(8595),u=i.each,h=l.toCamelCase,c=["","-webkit-","-moz-","-o-"];function f(t){var e,n,a,o=[],f=t.get("transitionDuration"),d=t.get("backgroundColor"),p=t.getModel("textStyle"),g=t.get("padding");return f&&o.push((a="left "+(e=f)+"s "+(n="cubic-bezier(0.23, 1, 0.32, 1)")+",top "+e+"s "+n,i.map(c,(function(t){return t+"transition:"+a})).join(";"))),d&&(s.canvasSupported?o.push("background-Color:"+d):(o.push("background-Color:#"+r.toHex(d)),o.push("filter:alpha(opacity=70)"))),u(["width","color","radius"],(function(e){var n="border-"+e,i=h(n),r=t.get(i);null!=r&&o.push(n+":"+r+("color"===e?"":"px"))})),o.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=t.get("lineHeight");null==r&&(r=Math.round(3*n/2)),n&&e.push("line-height:"+r+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),u(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}(p)),null!=g&&o.push("padding:"+l.normalizeCssArray(g).join("px ")+"px"),o.join(";")+";"}function d(t,e,n,i,r){var a=e&&e.painter;if(n){var s=a&&a.getViewportRoot();s&&o.transformLocalCoord(t,s,document.body,i,r)}else{t[0]=i,t[1]=r;var l=a&&a.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function p(t,e,n){if(s.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;this._styleCoord=[0,0,0,0],d(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var l=this;i.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!l._enterable){var e=r.handler,n=r.painter.getViewportRoot();a.normalizeEvent(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}p.prototype={constructor:p,_enterable:!0,update:function(t){var e=this._container,n=e.currentStyle||document.defaultView.getComputedStyle(e),i=e.style;"absolute"!==i.position&&"absolute"!==n.position&&(i.position="relative"),t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,n=this._styleCoord;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+f(t)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n=this._styleCoord;d(n,this._zr,this._appendToBody,t,e);var i=this.el.style;i.left=n[0]+"px",i.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(i.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(t+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),e+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:t,height:e}}};var g=p;t.exports=g},13281:(t,e,n)=>{var i=n(89231).extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});t.exports=i},52739:(t,e,n)=>{var i=n(95289),r=n(21927),a=n(76442);function o(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function s(t){var e=this._zr=t.getZr();this._styleCoord=[0,0,0,0],o(this._styleCoord,e,t.getWidth()/2,t.getHeight()/2),this._show=!1,this._hideTimeout}s.prototype={constructor:s,_enterable:!0,update:function(t){t.get("alwaysShowContent")&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],n=t*this._zr.getWidth(),i=e*this._zr.getHeight();this.moveTo(n,i)},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,n){this.el&&this._zr.remove(this.el);for(var i={},o=t,s="{marker",l=o.indexOf(s);l>=0;){var u=o.indexOf("|}"),h=o.substr(l+7,u-l-7);h.indexOf("sub")>-1?i["marker"+h]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[h],textOffset:[3,0]}:i["marker"+h]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[h]},l=(o=o.substr(u+1)).indexOf("{marker")}var c=n.getModel("textStyle"),f=c.get("fontSize"),d=n.get("textLineHeight");null==d&&(d=Math.round(3*f/2)),this.el=new r({style:a.setTextStyle({},c,{rich:i,text:t,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding"),textLineHeight:d}),z:n.get("z")}),this._zr.add(this.el);var p=this;this.el.on("mouseover",(function(){p._enterable&&(clearTimeout(p._hideTimeout),p._show=!0),p._inContent=!0})),this.el.on("mouseout",(function(){p._enterable&&p._show&&p.hideLater(p._hideDelay),p._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){if(this.el){var n=this._styleCoord;o(n,this._zr,t,e),this.el.attr("position",[n[0],n[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(i.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var l=s;t.exports=l},97371:(t,e,n)=>{var i=n(89231),r=n(95289),a=n(87190),o=n(47561),s=n(52739),l=n(8595),u=n(44261),h=n(76442),c=n(13390),f=n(61570),d=n(40590),p=n(22921),g=n(8426),m=n(67419),v=n(63199).getTooltipRenderMode,y=r.bind,_=r.each,b=u.parsePercent,x=new h.Rect({shape:{x:-1,y:-1,width:2,height:2}}),w=i.extendComponentView({type:"tooltip",init:function(t,e){if(!a.node){var n,i=t.getComponent("tooltip"),r=i.get("renderMode");this._renderMode=v(r),"html"===this._renderMode?(n=new o(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)}),this._newLine="<br/>"):(n=new s(e),this._newLine="\n"),this._tooltipContent=n}},render:function(t,e,n){if(!a.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");p.register("itemTooltip",this._api,y((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!a.node){var r=A(i,n);this._ticket="";var o=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var s=x;s.position=[i.x,i.y],s.update(),s.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:s},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var l=c(i,e),u=l.point[0],h=l.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,position:i.position,target:l.el},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(A(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,a=i.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=o){var s=e.getSeriesByIndex(r);if(s)if("axis"===(t=S([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:i.position}),!0}},_tryShow:function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get("showDelay");e=r.bind(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},_showAxisTooltip:function(t,e){var n=this._ecModel,i=this._tooltipModel,a=[e.offsetX,e.offsetY],o=[],s=[],u=S([e.tooltipOption,i]),h=this._renderMode,c=this._newLine,f={};_(t,(function(t){_(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value,a=[];if(e&&null!=i){var u=m.getValueLabel(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt);r.each(t.seriesDataIndices,(function(o){var l=n.getSeriesByIndex(o.seriesIndex),c=o.dataIndexInside,d=l&&l.getDataParams(c);if(d.axisDim=t.axisDim,d.axisIndex=t.axisIndex,d.axisType=t.axisType,d.axisId=t.axisId,d.axisValue=g.getAxisRawValue(e.axis,i),d.axisValueLabel=u,d){s.push(d);var p,m=l.formatTooltip(c,!0,null,h);if(r.isObject(m)){p=m.html;var v=m.markers;r.merge(f,v)}else p=m;a.push(p)}}));var d=u;"html"!==h?o.push(a.join(c)):o.push((d?l.encodeHTML(d)+c:"")+a.join(c))}}))}),this),o.reverse(),o=o.join(this._newLine+this._newLine);var d=e.position;this._showOrMove(u,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(u,d,a[0],a[1],this._tooltipContent,s):this._showTooltipContent(u,o,s,Math.random(),a[0],a[1],d,void 0,f)}))},_showSeriesItemTooltip:function(t,e,n){var i=this._ecModel,a=e.seriesIndex,o=i.getSeriesByIndex(a),s=e.dataModel||o,l=e.dataIndex,u=e.dataType,h=s.getData(u),c=S([h.getItemModel(l),s,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),f=c.get("trigger");if(null==f||"item"===f){var d,p,g=s.getDataParams(l,u),m=s.formatTooltip(l,!1,u,this._renderMode);r.isObject(m)?(d=m.html,p=m.markers):(d=m,p=null);var v="item_"+s.name+"_"+l;this._showOrMove(c,(function(){this._showTooltipContent(c,d,g,v,t.offsetX,t.offsetY,t.position,t.target,p)})),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:a,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;if("string"==typeof i){i={content:i,formatter:i}}var r=new d(i,this._tooltipModel,this._ecModel),a=r.get("content"),o=Math.random();this._showOrMove(r,(function(){this._showTooltipContent(r,a,r.get("formatterParams")||{},o,t.offsetX,t.offsetY,t.position,e)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,a,o,s,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent,c=t.get("formatter");o=o||t.get("position");var f=e;if(c&&"string"==typeof c)f=l.formatTpl(c,n,!0);else if("function"==typeof c){var d=y((function(e,i){e===this._ticket&&(h.setContent(i,u,t),this._updatePosition(t,o,r,a,h,n,s))}),this);this._ticket=i,f=c(n,i,d)}h.setContent(f,u,t),h.show(t),this._updatePosition(t,o,r,a,h,n,s)}},_updatePosition:function(t,e,n,i,a,o,s){var l=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var h=a.getSize(),c=t.get("align"),d=t.get("verticalAlign"),p=s&&s.getBoundingRect().clone();if(s&&p.applyTransform(s.transform),"function"==typeof e&&(e=e([n,i],o,a.el,p,{viewSize:[l,u],contentSize:h.slice()})),r.isArray(e))n=b(e[0],l),i=b(e[1],u);else if(r.isObject(e)){e.width=h[0],e.height=h[1];var g=f.getLayoutRect(e,{width:l,height:u});n=g.x,i=g.y,c=null,d=null}else if("string"==typeof e&&s){var m=function(t,e,n){var i=n[0],r=n[1],a=5,o=0,s=0,l=e.width,u=e.height;switch(t){case"inside":o=e.x+l/2-i/2,s=e.y+u/2-r/2;break;case"top":o=e.x+l/2-i/2,s=e.y-r-a;break;case"bottom":o=e.x+l/2-i/2,s=e.y+u+a;break;case"left":o=e.x-i-a,s=e.y+u/2-r/2;break;case"right":o=e.x+l+a,s=e.y+u/2-r/2}return[o,s]}(e,p,h);n=m[0],i=m[1]}else{m=function(t,e,n,i,r,a,o){var s=n.getOuterSize(),l=s.width,u=s.height;null!=a&&(t+l+a>i?t-=l+a:t+=a);null!=o&&(e+u+o>r?e-=u+o:e+=o);return[t,e]}(n,i,a,l,u,c?null:20,d?null:20);n=m[0],i=m[1]}if(c&&(n-=L(c)?h[0]/2:"right"===c?h[0]:0),d&&(i-=L(d)?h[1]/2:"bottom"===d?h[1]:0),t.get("confine")){m=function(t,e,n,i,r){var a=n.getOuterSize(),o=a.width,s=a.height;return t=Math.min(t+o,i)-o,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,a,l,u);n=m[0],i=m[1]}a.moveTo(n,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&_(e,(function(e,i){var r=e.dataByAxis||{},a=(t[i]||{}).dataByAxis||[];(n&=r.length===a.length)&&_(r,(function(t,e){var i=a[e]||{},r=t.seriesDataIndices||[],o=i.seriesDataIndices||[];(n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===o.length)&&_(r,(function(t,e){var i=o[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){a.node||(this._tooltipContent.dispose(),p.unregister("itemTooltip",e))}});function S(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(d.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),e=new d(n,e,e.ecModel))}return e}function A(t,e){return t.dispatchAction||r.bind(e.dispatchAction,e)}function L(t){return"center"===t||"middle"===t}t.exports=w},65523:(t,e,n)=>{var i;"undefined"!=typeof window?i=window.__DEV__:void 0!==n.g&&(i=n.g.__DEV__),void 0===i&&(i=!0);var r=i;e.__DEV__=r},31490:(t,e,n)=>{var i=n(95289),r=i.each,a=i.map,o=n(44261),s=o.linearMap,l=o.getPixelPrecision,u=o.round,h=n(38858),c=h.createAxisTicks,f=h.createAxisLabels,d=h.calculateCategoryInterval,p=[0,1],g=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function m(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}g.prototype={constructor:g,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},containData:function(t){return this.scale.contain(t)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return l(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&m(n=n.slice(),i.count()),s(t,p,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&m(n=n.slice(),i.count());var r=s(t,n,p,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=c(this,e).ticks,i=a(n,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this);return function(t,e,n,i){var a=e.length;if(!t.onBand||n||!a)return;var o,s,l=t.getExtent();if(1===a)e[0].coord=l[0],o=e[1]={coord:l[0]};else{var h=e[a-1].tickValue-e[0].tickValue,c=(e[a-1].coord-e[0].coord)/h;r(e,(function(t){t.coord-=c/2})),s=1+t.scale.getExtent()[1]-e[a-1].tickValue,o={coord:e[a-1].coord+c*s},e.push(o)}var f=l[0]>l[1];d(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift());i&&d(l[0],e[0].coord)&&e.unshift({coord:l[0]});d(l[1],o.coord)&&(i?o.coord=l[1]:e.pop());i&&d(o.coord,l[1])&&e.push({coord:l[1]});function d(t,e){return t=u(t),e=u(e),f?t>e:t<e}}(this,i,e.get("alignWithLabel"),t.clamp),i},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return a(e,(function(t){return a(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},getViewLabels:function(){return f(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return d(this)}};var v=g;t.exports=v},15429:(t,e,n)=>{var i=n(95289),r={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},a={};a.categoryAxis=i.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r),a.valueAxis=i.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},r),a.timeAxis=i.defaults({scale:!0,min:"dataMin",max:"dataMax"},a.valueAxis),a.logAxis=i.defaults({scale:!0,logBase:10},a.valueAxis);var o=a;t.exports=o},8426:(t,e,n)=>{n(65523).__DEV__;var i=n(95289),r=n(37221),a=n(21607),o=n(96506),s=n(44261),l=n(11041),u=l.prepareLayoutBarSeries,h=l.makeColumnLayout,c=l.retrieveColumnLayout,f=n(39587);function d(t,e){var n,r,a,o=t.type,l=e.getMin(),f=e.getMax(),d=t.getExtent();"ordinal"===o?n=e.getCategories().length:(r=e.get("boundaryGap"),i.isArray(r)||(r=[r||0,r||0]),"boolean"==typeof r[0]&&(r=[0,0]),r[0]=s.parsePercent(r[0],1),r[1]=s.parsePercent(r[1],1),a=d[1]-d[0]||Math.abs(d[0])),"dataMin"===l?l=d[0]:"function"==typeof l&&(l=l({min:d[0],max:d[1]})),"dataMax"===f?f=d[1]:"function"==typeof f&&(f=f({min:d[0],max:d[1]}));var p=null!=l,g=null!=f;null==l&&(l="ordinal"===o?n?0:NaN:d[0]-r[0]*a),null==f&&(f="ordinal"===o?n?n-1:NaN:d[1]+r[1]*a),(null==l||!isFinite(l))&&(l=NaN),(null==f||!isFinite(f))&&(f=NaN),t.setBlank(i.eqNaN(l)||i.eqNaN(f)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(l>0&&f>0&&!p&&(l=0),l<0&&f<0&&!g&&(f=0));var m=e.ecModel;if(m&&"time"===o){var v,y=u("bar",m);if(i.each(y,(function(t){v|=t.getBaseAxis()===e.axis})),v){var _=h(y),b=function(t,e,n,r){var a=n.axis.getExtent(),o=a[1]-a[0],s=c(r,n.axis);if(void 0===s)return{min:t,max:e};var l=1/0;i.each(s,(function(t){l=Math.min(t.offset,l)}));var u=-1/0;i.each(s,(function(t){u=Math.max(t.offset+t.width,u)})),l=Math.abs(l),u=Math.abs(u);var h=l+u,f=e-t,d=f/(1-(l+u)/o)-f;return e+=d*(u/h),t-=d*(l/h),{min:t,max:e}}(l,f,e,_);l=b.min,f=b.max}}return{extent:[l,f],fixMin:p,fixMax:g}}function p(t){var e,n=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof n?(e=n,n=function(n){return n=t.scale.getLabel(n),e.replace("{value}",null!=n?n:"")}):"function"==typeof n?function(e,r){return null!=i&&(r=e-i),n(g(t,e),r)}:function(e){return t.scale.getLabel(e)}}function g(t,e){return"category"===t.type?t.scale.getLabel(e):e}function m(t){var e=t.get("interval");return null==e?"auto":e}n(12683),n(94034),e.getScaleExtent=d,e.niceScaleExtent=function(t,e){var n=d(t,e),i=n.extent,r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var a=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===a||"time"===a?e.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?e.get("maxInterval"):null});var o=e.get("interval");null!=o&&t.setInterval&&t.setInterval(o)},e.createScaleByModel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new r(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new a;default:return(o.getClass(e)||a).create(t)}},e.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)},e.makeLabelFormatter=p,e.getAxisRawValue=g,e.estimateLabelUnionRect=function(t){var e=t.model,n=t.scale;if(e.get("axisLabel.show")&&!n.isBlank()){var i,r,a="category"===t.type,o=n.getExtent();r=a?n.count():(i=n.getTicks()).length;var s,l,u,h,c,d,g,m,v,y=t.getLabelModel(),_=p(t),b=1;r>40&&(b=Math.ceil(r/40));for(var x=0;x<r;x+=b){var w=_(i?i[x]:o[0]+x),S=y.getTextRect(w),A=(l=S,u=y.get("rotate")||0,h=void 0,c=void 0,d=void 0,g=void 0,m=void 0,v=void 0,h=u*Math.PI/180,c=l.plain(),d=c.width,g=c.height,m=d*Math.abs(Math.cos(h))+Math.abs(g*Math.sin(h)),v=d*Math.abs(Math.sin(h))+Math.abs(g*Math.cos(h)),new f(c.x,c.y,m,v));s?s.union(A):s=A}return s}},e.getOptionCategoryInterval=m,e.shouldShowAllLabels=function(t){return"category"===t.type&&0===m(t.getLabelModel())}},48267:(t,e,n)=>{var i=n(95289),r={getMin:function(t){var e=this.option,n=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&"function"!=typeof n&&!i.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(t){var e=this.option,n=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&"function"!=typeof n&&!i.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:i.noop,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};t.exports=r},98541:(t,e,n)=>{var i=n(95289),r=n(15429),a=n(85532),o=n(61570),s=o.getLayoutParams,l=o.mergeLayoutParam,u=n(54874),h=["value","category","time","log"];t.exports=function(t,e,n,o){i.each(h,(function(a){e.extend({type:t+"Axis."+a,mergeDefaultAndTheme:function(e,r){var o=this.layoutMode,u=o?s(e):{},h=r.getTheme();i.merge(e,h.get(a+"Axis")),i.merge(e,this.getDefaultOption()),e.type=n(t,e),o&&l(e,u,o)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=u.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:i.mergeAll([{},r[a+"Axis"],o],!0)})})),a.registerSubTypeDefaulter(t+"Axis",i.curry(n,t))}},38858:(t,e,n)=>{var i=n(95289),r=n(43407),a=n(63199).makeInner,o=n(8426),s=o.makeLabelFormatter,l=o.getOptionCategoryInterval,u=o.shouldShowAllLabels,h=a();function c(t,e){var n,r,a=f(t,"labels"),o=l(e),s=d(a,o);return s||(i.isFunction(o)?n=m(t,o):(r="auto"===o?function(t){var e=h(t).autoInterval;return null!=e?e:h(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=g(t,r)),p(a,o,{labels:n,labelCategoryInterval:r}))}function f(t,e){return h(t)[e]||(h(t)[e]=[])}function d(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function p(t,e,n){return t.push({key:e,value:n}),n}function g(t,e,n){var i=s(t),r=t.scale,a=r.getExtent(),o=t.getLabelModel(),l=[],h=Math.max((e||0)+1,1),c=a[0],f=r.count();0!==c&&h>1&&f/h>2&&(c=Math.round(Math.ceil(c/h)*h));var d=u(t),p=o.get("showMinLabel")||d,g=o.get("showMaxLabel")||d;p&&c!==a[0]&&v(a[0]);for(var m=c;m<=a[1];m+=h)v(m);function v(t){l.push(n?t:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:t})}return g&&m-h!==a[1]&&v(a[1]),l}function m(t,e,n){var r=t.scale,a=s(t),o=[];return i.each(r.getTicks(),(function(t){var i=r.getLabel(t);e(t,i)&&o.push(n?t:{formattedLabel:a(t),rawLabel:i,tickValue:t})})),o}e.createAxisLabels=function(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=c(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=s(t);return{labels:i.map(e,(function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e}}))}}(t)},e.createAxisTicks=function(t,e){return"category"===t.type?function(t,e){var n,r,a=f(t,"ticks"),o=l(e),s=d(a,o);if(s)return s;e.get("show")&&!t.scale.isBlank()||(n=[]);if(i.isFunction(o))n=m(t,o,!0);else if("auto"===o){var u=c(t,t.getLabelModel());r=u.labelCategoryInterval,n=i.map(u.labels,(function(t){return t.tickValue}))}else n=g(t,r=o,!0);return p(a,o,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:t.scale.getTicks()}},e.calculateCategoryInterval=function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=s(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,o=a.getExtent(),l=a.count();if(o[1]-o[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var c=o[0],f=t.dataToCoord(c+1)-t.dataToCoord(c),d=Math.abs(f*Math.cos(i)),p=Math.abs(f*Math.sin(i)),g=0,m=0;c<=o[1];c+=u){var v,y,_=r.getBoundingRect(n(c),e.font,"center","top");v=1.3*_.width,y=1.3*_.height,g=Math.max(g,v,7),m=Math.max(m,y,7)}var b=g/d,x=m/p;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var w=Math.max(0,Math.floor(Math.min(b,x))),S=h(t.model),A=t.getExtent(),L=S.lastAutoInterval,C=S.lastTickCount;return null!=L&&null!=C&&Math.abs(L-w)<=1&&Math.abs(C-l)<=1&&L>w&&S.axisExtend0===A[0]&&S.axisExtend1===A[1]?w=L:(S.lastTickCount=l,S.lastAutoInterval=w,S.axisExtend0=A[0],S.axisExtend1=A[1]),w}},81663:(t,e,n)=>{var i=n(95289),r=n(31490),a=function(t,e,n,i,a){r.call(this,t,e,n),this.type=i||"value",this.position=a||"bottom"};a.prototype={constructor:a,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},i.inherits(a,r);var o=a;t.exports=o},67384:(t,e,n)=>{var i=n(95289),r=n(85532),a=n(98541),o=n(48267),s=r.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function l(t,e){return e.type||(e.data?"category":"value")}i.merge(s.prototype,o);var u={offset:0};a("x",s,l,u),a("y",s,l,u);var h=s;t.exports=h},37548:(t,e,n)=>{var i=n(95289);function r(t){return this._axes[t]}var a=function(t){this._axes={},this._dimList=[],this.name=t||""};a.prototype={constructor:a,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return i.map(this._dimList,r,this)},getAxesByScale:function(t){return t=t.toLowerCase(),i.filter(this.getAxes(),(function(e){return e.scale.type===t}))},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},r=0;r<n.length;r++){var a=n[r],o=this._axes[a];i[a]=o[e](t[a])}return i}};var o=a;t.exports=o},32474:(t,e,n)=>{var i=n(95289),r=n(39587),a=n(37548);function o(t){a.call(this,t)}o.prototype={constructor:o,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,n){var i=this.getAxis("x"),r=this.getAxis("y");return(n=n||[])[0]=i.toGlobalCoord(i.dataToCoord(t[0])),n[1]=r.toGlobalCoord(r.dataToCoord(t[1])),n},clampData:function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),a=i.getExtent(),o=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),o),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),e},pointToData:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return(e=e||[])[0]=n.coordToData(n.toLocalCoord(t[0])),e[1]=i.coordToData(i.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")},getArea:function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),a=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new r(n,i,a,o)}},i.inherits(o,a);var s=o;t.exports=s},31020:(t,e,n)=>{n(65523).__DEV__;var i=n(95289),r=i.isObject,a=i.each,o=i.map,s=i.indexOf,l=(i.retrieve,n(61570).getLayoutRect),u=n(8426),h=u.createScaleByModel,c=u.ifAxisCrossZero,f=u.niceScaleExtent,d=u.estimateLabelUnionRect,p=n(32474),g=n(81663),m=n(50294),v=n(74051).getStackedDimension;function y(t,e,n){return t.getCoordSysModel()===e}function _(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this.model=t}n(34499);var b=_.prototype;function x(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,a=t[e],o=n.model,s=o.get("axisLine.onZero"),l=o.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)w(a[l])&&(r=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&w(a[u])&&!i[h(a[u])]){r=a[u];break}r&&(i[h(r)]=!0)}function h(t){return t.dim+"_"+t.index}}function w(t){return t&&"category"!==t.type&&"time"!==t.type&&c(t)}b.type="grid",b.axisPointerEnabled=!0,b.getRect=function(){return this._rect},b.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),a(n.x,(function(t){f(t.scale,t.model)})),a(n.y,(function(t){f(t.scale,t.model)}));var i={};a(n.x,(function(t){x(n,"y",t,i)})),a(n.y,(function(t){x(n,"x",t,i)})),this.resize(this.model,e)},b.resize=function(t,e,n){var i=l(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=i;var r=this._axesList;function o(){a(r,(function(t){var e=t.isHorizontal(),n=e?[0,i.width]:[0,i.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?i.x:i.y)}))}o(),!n&&t.get("containLabel")&&(a(r,(function(t){if(!t.model.get("axisLabel.inside")){var e=d(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get("axisLabel.margin");i[n]-=e[n]+r,"top"===t.position?i.y+=e.height+r:"left"===t.position&&(i.x+=e.width+r)}}})),o())},b.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[e]}},b.getAxes=function(){return this._axesList.slice()},b.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}r(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===e)return a[i]},b.getCartesians=function(){return this._coordsList.slice()},b.convertToPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},b.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},b._findConvertTarget=function(t,e){var n,i,r=e.seriesModel,a=e.xAxisModel||r&&r.getReferringComponents("xAxis")[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis")[0],l=e.gridModel,u=this._coordsList;if(r)n=r.coordinateSystem,s(u,n)<0&&(n=null);else if(a&&o)n=this.getCartesian(a.componentIndex,o.componentIndex);else if(a)i=this.getAxis("x",a.componentIndex);else if(o)i=this.getAxis("y",o.componentIndex);else if(l){l.coordinateSystem===this&&(n=this._coordsList[0])}return{cartesian:n,axis:i}},b.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},b._initCartesian=function(t,e,n){var i={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},o={x:0,y:0};if(e.eachComponent("xAxis",s("x"),this),e.eachComponent("yAxis",s("y"),this),!o.x||!o.y)return this._axesMap={},void(this._axesList=[]);function s(e){return function(n,a){if(y(n,t)){var s=n.get("position");"x"===e?"top"!==s&&"bottom"!==s&&(s=i.bottom?"top":"bottom"):"left"!==s&&"right"!==s&&(s=i.left?"right":"left"),i[s]=!0;var l=new g(e,h(n),[0,0],n.get("type"),s),u="category"===l.type;l.onBand=u&&n.get("boundaryGap"),l.inverse=n.get("inverse"),n.axis=l,l.model=n,l.grid=this,l.index=a,this._axesList.push(l),r[e][a]=l,o[e]++}}}this._axesMap=r,a(r.x,(function(e,n){a(r.y,(function(i,r){var a="x"+n+"y"+r,o=new p(a);o.grid=this,o.model=t,this._coordsMap[a]=o,this._coordsList.push(o),o.addAxis(e),o.addAxis(i)}),this)}),this)},b._updateScale=function(t,e){function n(t,e,n){a(t.mapDimension(e.dim,!0),(function(n){e.scale.unionExtentFromData(t,v(t,n))}))}a(this._axesList,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeries((function(i){if(L(i)){var r=A(i,t),a=r[0],o=r[1];if(!y(a,e)||!y(o,e))return;var s=this.getCartesian(a.componentIndex,o.componentIndex),l=i.getData(),u=s.getAxis("x"),h=s.getAxis("y");"list"===l.type&&(n(l,u,i),n(l,h,i))}}),this)},b.getTooltipAxes=function(t){var e=[],n=[];return a(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(r);s(e,r)<0&&e.push(r),s(n,a)<0&&n.push(a)})),{baseAxes:e,otherAxes:n}};var S=["xAxis","yAxis"];function A(t,e){return o(S,(function(e){return t.getReferringComponents(e)[0]}))}function L(t){return"cartesian2d"===t.get("coordinateSystem")}_.create=function(t,e){var n=[];return t.eachComponent("grid",(function(i,r){var a=new _(i,t,e);a.name="grid_"+r,a.resize(i,e,!0),i.coordinateSystem=a,n.push(a)})),t.eachSeries((function(t){if(L(t)){var e=A(t),n=e[0],i=e[1],r=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}})),n},_.dimensions=_.prototype.dimensions=p.prototype.dimensions,m.register("cartesian2d",_);var C=_;t.exports=C},34499:(t,e,n)=>{n(67384);var i=n(85532).extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});t.exports=i},30625:(t,e,n)=>{var i=n(95289);e.layout=function(t,e,n){n=n||{};var r=t.coordinateSystem,a=e.axis,o={},s=a.getAxesOnZeroOf()[0],l=a.position,u=s?"onZero":l,h=a.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,g="x"===h?[f[2]-p,f[3]+p]:[f[0]-p,f[1]+p];if(s){var m=s.toGlobalCoord(s.dataToCoord(0));g[d.onZero]=Math.max(Math.min(m,g[1]),g[0])}o.position=["y"===h?g[d[u]]:f[0],"x"===h?g[d[u]]:f[3]],o.rotation=Math.PI/2*("x"===h?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[l],o.labelOffset=s?g[d[l]]-g[d.onZero]:0,e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),i.retrieve(n.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var v=e.get("axisLabel.rotate");return o.labelRotate="top"===u?-v:v,o.z2=1,o}},55021:(t,e,n)=>{var i=n(39587),r=n(66346),a=n(31138),o=n(91068);function s(t,e,n){if(this.name=t,this.geometries=e,n)n=[n[0],n[1]];else{var i=this.getBoundingRect();n=[i.x+i.width/2,i.y+i.height/2]}this.center=n}s.prototype={constructor:s,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],o=[-e,-e],s=[],l=[],u=this.geometries,h=0;h<u.length;h++)if("polygon"===u[h].type){var c=u[h].exterior;r.fromPoints(c,s,l),a.min(n,n,s),a.max(o,o,l)}return 0===h&&(n[0]=n[1]=o[0]=o[1]=0),this._rect=new i(n[0],n[1],o[0]-n[0],o[1]-n[1])},contain:function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;i<r;i++)if("polygon"===n[i].type){var a=n[i].exterior,s=n[i].interiors;if(o.contain(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(o.contain(s[l]))continue t;return!0}}return!1},transformTo:function(t,e,n,r){var o=this.getBoundingRect(),s=o.width/o.height;n?r||(r=n/s):n=s*r;for(var l=new i(t,e,n,r),u=o.calculateTransform(l),h=this.geometries,c=0;c<h.length;c++)if("polygon"===h[c].type){for(var f=h[c].exterior,d=h[c].interiors,p=0;p<f.length;p++)a.applyTransform(f[p],f[p],u);for(var g=0;g<(d?d.length:0);g++)for(p=0;p<d[g].length;p++)a.applyTransform(d[g][p],d[g][p],u)}(o=this._rect).copy(l),this.center=[o.x+o.width/2,o.y+o.height/2]},cloneShallow:function(t){null==t&&(t=this.name);var e=new s(t,this.geometries,this.center);return e._rect=this._rect,e.transformTo=null,e}};var l=s;t.exports=l},45986:(t,e,n)=>{n(65523).__DEV__;var i=n(95289),r=i.createHashMap,a=i.isString,o=i.isArray,s=i.each,l=(i.assert,n(9717).parseXML),u=r(),h={registerMap:function(t,e,n){var i;return o(e)?i=e:e.svg?i=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),i=[{type:"geoJSON",source:e,specialAreas:n}]),s(i,(function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON"),(0,c[e])(t)})),u.set(t,i)},retrieveMap:function(t){return u.get(t)}},c={geoJSON:function(t){var e=t.source;t.geoJSON=a(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=l(t.source)}};t.exports=h},46135:(t,e,n)=>{var i=n(95289),r=n(55021);function a(t,e,n){for(var i=[],r=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,a=l+=a,i.push([s/n,l/n])}return i}t.exports=function(t,e){return function(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var n=t.features,i=0;i<n.length;i++)for(var r=n[i].geometry,o=r.coordinates,s=r.encodeOffsets,l=0;l<o.length;l++){var u=o[l];if("Polygon"===r.type)o[l]=a(u,s[l],e);else if("MultiPolygon"===r.type)for(var h=0;h<u.length;h++){var c=u[h];u[h]=a(c,s[l][h],e)}}t.UTF8Encoding=!1}(t),i.map(i.filter(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,a=t.geometry,o=a.coordinates,s=[];"Polygon"===a.type&&s.push({type:"polygon",exterior:o[0],interiors:o.slice(1)}),"MultiPolygon"===a.type&&i.each(o,(function(t){t[0]&&s.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var l=new r(n[e||"name"],s,n.cp);return l.properties=n,l}))}},1032:t=>{function e(t){return t}function n(t,n,i,r,a){this._old=t,this._new=n,this._oldKeyGetter=i||e,this._newKeyGetter=r||e,this.context=a}function i(t,e,n,i,r){for(var a=0;a<t.length;a++){var o="_ec_"+r[i](t[a],a),s=e[o];null==s?(n.push(o),e[o]=a):(s.length||(e[o]=s=[s]),s.push(a))}}n.prototype={constructor:n,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,n={},r=[],a=[];for(i(t,{},r,"_oldKeyGetter",this),i(e,n,a,"_newKeyGetter",this),o=0;o<t.length;o++){if(null!=(l=n[s=r[o]]))(h=l.length)?(1===h&&(n[s]=null),l=l.shift()):n[s]=null,this._update&&this._update(l,o);else this._remove&&this._remove(o)}for(var o=0;o<a.length;o++){var s=a[o];if(n.hasOwnProperty(s)){var l;if(null==(l=n[s]))continue;if(l.length)for(var u=0,h=l.length;u<h;u++)this._add&&this._add(l[u]);else this._add&&this._add(l)}}}};var r=n;t.exports=r},70362:(t,e,n)=>{var i=n(95289);var r=function(t){null!=t&&i.extend(this,t),this.otherDims={}};t.exports=r},5628:(t,e,n)=>{n(65523).__DEV__;var i=n(95289),r=n(40590),a=n(1032),o=n(3325),s=n(41834),l=s.defaultDimValueGetters,u=s.DefaultDataProvider,h=n(99535).summarizeDimensions,c=n(70362),f=i.isObject,d="undefined",p={float:typeof Float64Array===d?Array:Float64Array,int:typeof Int32Array===d?Array:Int32Array,ordinal:Array,number:Array,time:Array},g=typeof Uint32Array===d?Array:Uint32Array,m=typeof Int32Array===d?Array:Int32Array,v=typeof Uint16Array===d?Array:Uint16Array;function y(t){return t._rawCount>65535?g:v}var _=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],b=["_extent","_approximateExtent","_rawExtent"];function x(t,e){i.each(_.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,i.each(b,(function(n){t[n]=i.clone(e[n])})),t._calculationInfo=i.extend(e._calculationInfo)}var w=function(t,e){t=t||["x","y"];for(var n={},r=[],a={},o=0;o<t.length;o++){var s=t[o];i.isString(s)?s=new c({name:s}):s instanceof c||(s=new c(s));var l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0),s.otherDims=s.otherDims||{},r.push(l),n[l]=s,s.index=o,s.createInvertedIndices&&(a[l]=[])}this.dimensions=r,this._dimensionInfos=n,this.hostModel=e,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=h(this),this._invertedIndicesMap=a,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},S=w.prototype;function A(t,e,n,i,r){var a=p[e.type],o=i-1,s=e.name,l=t[s][o];if(l&&l.length<n){for(var u=new a(Math.min(r-o*n,n)),h=0;h<l.length;h++)u[h]=l[h];t[s][o]=u}for(var c=i*n;c<r;c+=n)t[s].push(new a(Math.min(r-c,n)))}function L(t){var e=t._invertedIndicesMap;i.each(e,(function(n,i){var r=t._dimensionInfos[i].ordinalMeta;if(r){n=e[i]=new m(r.categories.length);for(var a=0;a<n.length;a++)n[a]=-1;for(a=0;a<t._count;a++)n[t.get(i,a)]=a}}))}function C(t,e,n){var i;if(null!=e){var r=t._chunkSize,a=Math.floor(n/r),o=n%r,s=t.dimensions[e],l=t._storage[s][a];if(l){i=l[o];var u=t._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(i=u.categories[i])}}return i}function P(t){return t}function N(t){return t<this._count&&t>=0?this._indices[t]:-1}function k(t,e){var n=t._idList[e];return null==n&&(n=C(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n}function I(t){return i.isArray(t)||(t=[t]),t}function M(t,e){var n=t.dimensions,r=new w(i.map(n,t.getDimensionInfo,t),t.hostModel);x(r,t);for(var a=r._storage={},o=t._storage,s=0;s<n.length;s++){var l=n[s];o[l]&&(i.indexOf(e,l)>=0?(a[l]=T(o[l]),r._rawExtent[l]=D(),r._extent[l]=null):a[l]=o[l])}return r}function T(t){for(var e,n,i=new Array(t.length),r=0;r<t.length;r++)i[r]=(e=t[r],n=void 0,(n=e.constructor)===Array?e.slice():new n(e));return i}function D(){return[1/0,-1/0]}S.type="list",S.hasItemOption=!0,S.getDimension=function(t){return"number"!=typeof t&&(isNaN(t)||this._dimensionInfos.hasOwnProperty(t))||(t=this.dimensions[t]),t},S.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},S.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},S.mapDimension=function(t,e){var n=this._dimensionsSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return!0===e?(i||[]).slice():i&&i[e]},S.initData=function(t,e,n){(o.isInstance(t)||i.isArrayLike(t))&&(t=new u(t,this.dimensions.length)),this._rawData=t,this._storage={},this._indices=null,this._nameList=e||[],this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=l[this._rawData.getSource().sourceFormat],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=l.arrayRows,this._rawExtent={},this._initDataFromProvider(0,t.count()),t.pure&&(this.hasItemOption=!1)},S.getProvider=function(){return this._rawData},S.appendData=function(t){var e=this._rawData,n=this.count();e.appendData(t);var i=e.count();e.persistent||(i+=n),this._initDataFromProvider(n,i)},S.appendValues=function(t,e){for(var n=this._chunkSize,i=this._storage,r=this.dimensions,a=r.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e?e.length:0),u=this._chunkCount,h=0;h<a;h++){o[v=r[h]]||(o[v]=D()),i[v]||(i[v]=[]),A(i,this._dimensionInfos[v],n,u,l),this._chunkCount=i[v].length}for(var c=new Array(a),f=s;f<l;f++){for(var d=f-s,p=Math.floor(f/n),g=f%n,m=0;m<a;m++){var v=r[m],y=this._dimValueGetterArrayRows(t[d]||c,v,d,m);i[v][p][g]=y;var _=o[v];y<_[0]&&(_[0]=y),y>_[1]&&(_[1]=y)}e&&(this._nameList[f]=e[d])}this._rawCount=this._count=l,this._extent={},L(this)},S._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,i=this._chunkSize,r=this._rawData,a=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,c=this._rawExtent,f=this._nameRepeatCount={},d=this._chunkCount,p=0;p<s;p++){c[x=o[p]]||(c[x]=D());var g=l[x];0===g.otherDims.itemName&&(n=this._nameDimIdx=p),0===g.otherDims.itemId&&(this._idDimIdx=p),a[x]||(a[x]=[]),A(a,g,i,d,e),this._chunkCount=a[x].length}for(var m=new Array(s),v=t;v<e;v++){m=r.getItem(v,m);for(var y=Math.floor(v/i),_=v%i,b=0;b<s;b++){var x,w=a[x=o[b]][y],S=this._dimValueGetter(m,x,v,b);w[_]=S;var C=c[x];S<C[0]&&(C[0]=S),S>C[1]&&(C[1]=S)}if(!r.pure){var P=u[v];if(m&&null==P)if(null!=m.name)u[v]=P=m.name;else if(null!=n){var N=o[n],k=a[N][y];if(k){P=k[_];var I=l[N].ordinalMeta;I&&I.categories.length&&(P=I.categories[P])}}var M=null==m?null:m.id;null==M&&null!=P&&(f[P]=f[P]||0,M=P,f[P]>0&&(M+="__ec__"+f[P]),f[P]++),null!=M&&(h[v]=M)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},L(this)}},S.count=function(){return this._count},S.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array){r=new e(n);for(var i=0;i<n;i++)r[i]=t[i]}else r=new e(t.buffer,0,n)}else{var r=new(e=y(this))(this.count());for(i=0;i<r.length;i++)r[i]=i}return r},S.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._storage;if(!n[t])return NaN;e=this.getRawIndex(e);var i=Math.floor(e/this._chunkSize),r=e%this._chunkSize;return n[t][i][r]},S.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._storage[t];if(!n)return NaN;var i=Math.floor(e/this._chunkSize),r=e%this._chunkSize;return n[i][r]},S._getFast=function(t,e){var n=Math.floor(e/this._chunkSize),i=e%this._chunkSize;return this._storage[t][n][i]},S.getValues=function(t,e){var n=[];i.isArray(t)||(e=t,t=this.dimensions);for(var r=0,a=t.length;r<a;r++)n.push(this.get(t[r],e));return n},S.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this.get(e[n],t)))return!1;return!0},S.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],n=D();if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var a=(i=n)[0],o=i[1],s=0;s<r;s++){var l=this._getFast(t,this.getRawIndex(s));l<a&&(a=l),l>o&&(o=l)}return i=[a,o],this._extent[t]=i,i},S.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},S.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},S.getCalculationInfo=function(t){return this._calculationInfo[t]},S.setCalculationInfo=function(t,e){f(t)?i.extend(this._calculationInfo,t):this._calculationInfo[t]=e},S.getSum=function(t){var e=0;if(this._storage[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},S.getMedian=function(t){var e=[];this.each(t,(function(t,n){isNaN(t)||e.push(t)}));var n=[].concat(e).sort((function(t,e){return t-e})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},S.rawIndexOf=function(t,e){var n=(t&&this._invertedIndicesMap[t])[e];return null==n||isNaN(n)?-1:n},S.indexOfName=function(t){for(var e=0,n=this.count();e<n;e++)if(this.getName(e)===t)return e;return-1},S.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var a=(i+r)/2|0;if(e[a]<t)i=a+1;else{if(!(e[a]>t))return a;r=a-1}}return-1},S.indicesOfNearest=function(t,e,n){var i=[];if(!this._storage[t])return i;null==n&&(n=1/0);for(var r=1/0,a=-1,o=0,s=0,l=this.count();s<l;s++){var u=e-this.get(t,s),h=Math.abs(u);h<=n&&((h<r||h===r&&u>=0&&a<0)&&(r=h,a=u,o=0),u===a&&(i[o++]=s))}return i.length=o,i},S.getRawIndex=P,S.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];e.push(this.get(i,t))}return e},S.getName=function(t){var e=this.getRawIndex(t);return this._nameList[e]||C(this,this._nameDimIdx,e)||""},S.getId=function(t){return k(this,this.getRawIndex(t))},S.each=function(t,e,n,r){"use strict";if(this._count){"function"==typeof t&&(r=n,n=e,e=t,t=[]),n=n||r||this;for(var a=(t=i.map(I(t),this.getDimension,this)).length,o=0;o<this.count();o++)switch(a){case 0:e.call(n,o);break;case 1:e.call(n,this.get(t[0],o),o);break;case 2:e.call(n,this.get(t[0],o),this.get(t[1],o),o);break;default:for(var s=0,l=[];s<a;s++)l[s]=this.get(t[s],o);l[s]=o,e.apply(n,l)}}},S.filterSelf=function(t,e,n,r){"use strict";if(this._count){"function"==typeof t&&(r=n,n=e,e=t,t=[]),n=n||r||this,t=i.map(I(t),this.getDimension,this);for(var a=this.count(),o=new(y(this))(a),s=[],l=t.length,u=0,h=t[0],c=0;c<a;c++){var f,d=this.getRawIndex(c);if(0===l)f=e.call(n,c);else if(1===l){var p=this._getFast(h,d);f=e.call(n,p,c)}else{for(var g=0;g<l;g++)s[g]=this._getFast(h,d);s[g]=c,f=e.apply(n,s)}f&&(o[u++]=d)}return u<a&&(this._indices=o),this._count=u,this._extent={},this.getRawIndex=this._indices?N:P,this}},S.selectRange=function(t){"use strict";if(this._count){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);var i=e.length;if(i){var r=this.count(),a=new(y(this))(r),o=0,s=e[0],l=t[s][0],u=t[s][1],h=!1;if(!this._indices){var c=0;if(1===i){for(var f=this._storage[e[0]],d=0;d<this._chunkCount;d++)for(var p=f[d],g=Math.min(this._count-d*this._chunkSize,this._chunkSize),m=0;m<g;m++){((w=p[m])>=l&&w<=u||isNaN(w))&&(a[o++]=c),c++}h=!0}else if(2===i){f=this._storage[s];var v=this._storage[e[1]],_=t[e[1]][0],b=t[e[1]][1];for(d=0;d<this._chunkCount;d++){p=f[d];var x=v[d];for(g=Math.min(this._count-d*this._chunkSize,this._chunkSize),m=0;m<g;m++){var w=p[m],S=x[m];(w>=l&&w<=u||isNaN(w))&&(S>=_&&S<=b||isNaN(S))&&(a[o++]=c),c++}}h=!0}}if(!h)if(1===i)for(m=0;m<r;m++){var A=this.getRawIndex(m);((w=this._getFast(s,A))>=l&&w<=u||isNaN(w))&&(a[o++]=A)}else for(m=0;m<r;m++){var L=!0;for(A=this.getRawIndex(m),d=0;d<i;d++){var C=e[d];((w=this._getFast(n,A))<t[C][0]||w>t[C][1])&&(L=!1)}L&&(a[o++]=this.getRawIndex(m))}return o<r&&(this._indices=a),this._count=o,this._extent={},this.getRawIndex=this._indices?N:P,this}}},S.mapArray=function(t,e,n,i){"use strict";"function"==typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},S.map=function(t,e,n,r){"use strict";n=n||r||this;var a=M(this,t=i.map(I(t),this.getDimension,this));a._indices=this._indices,a.getRawIndex=a._indices?N:P;for(var o=a._storage,s=[],l=this._chunkSize,u=t.length,h=this.count(),c=[],f=a._rawExtent,d=0;d<h;d++){for(var p=0;p<u;p++)c[p]=this.get(t[p],d);c[u]=d;var g=e&&e.apply(n,c);if(null!=g){"object"!=typeof g&&(s[0]=g,g=s);for(var m=this.getRawIndex(d),v=Math.floor(m/l),y=m%l,_=0;_<g.length;_++){var b=t[_],x=g[_],w=f[b],S=o[b];S&&(S[v][y]=x),x<w[0]&&(w[0]=x),x>w[1]&&(w[1]=x)}}}return a},S.downSample=function(t,e,n,i){for(var r=M(this,[t]),a=r._storage,o=[],s=Math.floor(1/e),l=a[t],u=this.count(),h=this._chunkSize,c=r._rawExtent[t],f=new(y(this))(u),d=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,o.length=s);for(var g=0;g<s;g++){var m=this.getRawIndex(p+g),v=Math.floor(m/h),_=m%h;o[g]=l[v][_]}var b=n(o),x=this.getRawIndex(Math.min(p+i(o,b)||0,u-1)),w=x%h;l[Math.floor(x/h)][w]=b,b<c[0]&&(c[0]=b),b>c[1]&&(c[1]=b),f[d++]=x}return r._count=d,r._indices=f,r.getRawIndex=N,r},S.getItemModel=function(t){var e=this.hostModel;return new r(this.getRawDataItem(t),e,e&&e.ecModel)},S.diff=function(t){var e=this;return new a(t?t.getIndices():[],this.getIndices(),(function(e){return k(t,e)}),(function(t){return k(e,t)}))},S.getVisual=function(t){var e=this._visual;return e&&e[t]},S.setVisual=function(t,e){if(f(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},S.setLayout=function(t,e){if(f(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},S.getLayout=function(t){return this._layout[t]},S.getItemLayout=function(t){return this._itemLayouts[t]},S.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?i.extend(this._itemLayouts[t]||{},e):e},S.clearItemLayouts=function(){this._itemLayouts.length=0},S.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},S.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=i,f(e))for(var a in e)e.hasOwnProperty(a)&&(i[a]=e[a],r[a]=!0);else i[e]=n,r[e]=!0},S.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var O=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};S.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(O,e)),this._graphicEls[t]=e},S.getItemGraphicEl=function(t){return this._graphicEls[t]},S.eachItemGraphicEl=function(t,e){i.each(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},S.cloneShallow=function(t){if(!t){var e=i.map(this.dimensions,this.getDimensionInfo,this);t=new w(e,this.hostModel)}if(t._storage=this._storage,x(t,this),this._indices){var n=this._indices.constructor;t._indices=new n(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?N:P,t},S.wrapMethod=function(t,e){var n=this[t];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(i.slice(arguments)))})},S.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],S.CHANGABLE_METHODS=["filterSelf","selectRange"];var F=w;t.exports=F},54874:(t,e,n)=>{var i=n(95289),r=i.createHashMap,a=i.isObject,o=i.map;function s(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}s.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&o(n,h);return new s({categories:i,needCollect:!i,deduplication:!1!==e.dedplication})};var l=s.prototype;function u(t){return t._map||(t._map=r(t.categories))}function h(t){return a(t)&&null!=t.value?t.value:t+""}l.getOrdinal=function(t){return u(this).get(t)},l.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=u(this);return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e};var c=s;t.exports=c},3325:(t,e,n)=>{var i=n(95289),r=i.createHashMap,a=i.isTypedArray,o=n(11724).enableClassCheck,s=n(90642),l=s.SOURCE_FORMAT_ORIGINAL,u=s.SERIES_LAYOUT_BY_COLUMN,h=s.SOURCE_FORMAT_UNKNOWN,c=s.SOURCE_FORMAT_TYPED_ARRAY,f=s.SOURCE_FORMAT_KEYED_COLUMNS;function d(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===f?{}:[]),this.sourceFormat=t.sourceFormat||h,this.seriesLayoutBy=t.seriesLayoutBy||u,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&r(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}d.seriesDataToSource=function(t){return new d({data:t,sourceFormat:a(t)?c:l,fromDataset:!1})},o(d);var p=d;t.exports=p},21685:(t,e,n)=>{var i=n(95289),r=i.createHashMap,a=i.each,o=i.isString,s=i.defaults,l=i.extend,u=i.isObject,h=i.clone,c=n(63199).normalizeToArray,f=n(49442),d=f.guessOrdinal,p=f.BE_ORDINAL,g=n(3325),m=n(99535).OTHER_DIMENSIONS,v=n(70362);function y(t,e,n){if(n||null!=e.get(t)){for(var i=0;null!=e.get(t+i);)i++;t+=i}return e.set(t,!0),t}var _=function(t,e,n){g.isInstance(e)||(e=g.seriesDataToSource(e)),n=n||{},t=(t||[]).slice();for(var i=(n.dimsDef||[]).slice(),f=r(),_=r(),b=[],x=function(t,e,n,i){var r=Math.max(t.dimensionsDetectCount||1,e.length,n.length,i||0);return a(e,(function(t){var e=t.dimsDef;e&&(r=Math.max(r,e.length))})),r}(e,t,i,n.dimCount),w=0;w<x;w++){var S=i[w]=l({},u(i[w])?i[w]:{name:i[w]}),A=S.name,L=b[w]=new v;null!=A&&null==f.get(A)&&(L.name=L.displayName=A,f.set(A,w)),null!=S.type&&(L.type=S.type),null!=S.displayName&&(L.displayName=S.displayName)}var C=n.encodeDef;!C&&n.encodeDefaulter&&(C=n.encodeDefaulter(e,x)),(C=r(C)).each((function(t,e){if(1===(t=c(t).slice()).length&&!o(t[0])&&t[0]<0)C.set(e,!1);else{var n=C.set(e,[]);a(t,(function(t,i){o(t)&&(t=f.get(t)),null!=t&&t<x&&(n[i]=t,N(b[t],e,i))}))}}));var P=0;function N(t,e,n){null!=m.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,_.set(e,!0))}a(t,(function(t,e){var n,i,r;if(o(t))n=t,t={};else{n=t.name;var l=t.ordinalMeta;t.ordinalMeta=null,(t=h(t)).ordinalMeta=l,i=t.dimsDef,r=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}if(!1!==(f=C.get(n))){var f;if(!(f=c(f)).length)for(var d=0;d<(i&&i.length||1);d++){for(;P<b.length&&null!=b[P].coordDim;)P++;P<b.length&&f.push(P++)}a(f,(function(e,a){var o=b[e];if(N(s(o,t),n,a),null==o.name&&i){var l=i[a];!u(l)&&(l={name:l}),o.name=o.displayName=l.name,o.defaultTooltip=l.defaultTooltip}r&&s(o.otherDims,r)}))}}));var k=n.generateCoord,I=n.generateCoordCount,M=null!=I;I=k?I||1:0;for(var T=k||"value",D=0;D<x;D++){null==(L=b[D]=b[D]||new v).coordDim&&(L.coordDim=y(T,_,M),L.coordDimIndex=0,(!k||I<=0)&&(L.isExtraCoord=!0),I--),null==L.name&&(L.name=y(L.coordDim,f)),null!=L.type||d(e,D,L.name)!==p.Must&&(!L.isExtraCoord||null==L.otherDims.itemName&&null==L.otherDims.seriesName)||(L.type="ordinal")}return b};t.exports=_},29966:(t,e,n)=>{var i=n(21685);t.exports=function(t,e){return i((e=e||{}).coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}},41834:(t,e,n)=>{n(65523).__DEV__;var i=n(95289),r=(i.isTypedArray,i.extend),a=(i.assert,i.each),o=i.isObject,s=n(63199),l=s.getDataItemValue,u=s.isDataItemOption,h=n(44261).parseDate,c=n(3325),f=n(90642),d=f.SOURCE_FORMAT_TYPED_ARRAY,p=f.SOURCE_FORMAT_ARRAY_ROWS,g=f.SOURCE_FORMAT_ORIGINAL,m=f.SOURCE_FORMAT_OBJECT_ROWS;function v(t,e){c.isInstance(t)||(t=c.seriesDataToSource(t)),this._source=t;var n=this._data=t.data,i=t.sourceFormat;i===d&&(this._offset=0,this._dimSize=e,this._data=n);var a=_[i===p?i+"_"+t.seriesLayoutBy:i];r(this,a)}var y=v.prototype;y.pure=!1,y.persistent=!0,y.getSource=function(){return this._source};var _={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:w},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],n=this._data,i=0;i<n.length;i++){var r=n[i];e.push(r?r[t]:null)}return e},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:b,getItem:x,appendData:w},keyedColumns:{pure:!0,count:function(){var t=this._source.dimensionsDefine[0].name,e=this._data[t];return e?e.length:0},getItem:function(t){for(var e=[],n=this._source.dimensionsDefine,i=0;i<n.length;i++){var r=this._data[n[i].name];e.push(r?r[t]:null)}return e},appendData:function(t){var e=this._data;a(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},original:{count:b,getItem:x,appendData:w},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(t,e){t-=this._offset,e=e||[];for(var n=this._dimSize*t,i=0;i<this._dimSize;i++)e[i]=this._data[n+i];return e},appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}}};function b(){return this._data.length}function x(t){return this._data[t]}function w(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var S={arrayRows:A,objectRows:function(t,e,n,i){return null!=n?t[i]:t},keyedColumns:A,original:function(t,e,n,i){var r=l(t);return null!=n&&r instanceof Array?r[n]:r},typedArray:A};function A(t,e,n,i){return null!=n?t[n]:t}var L={arrayRows:C,objectRows:function(t,e,n,i){return P(t[e],this._dimensionInfos[e])},keyedColumns:C,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return!this._rawData.pure&&u(t)&&(this.hasItemOption=!0),P(r instanceof Array?r[i]:r,this._dimensionInfos[e])},typedArray:function(t,e,n,i){return t[i]}};function C(t,e,n,i){return P(t[i],this._dimensionInfos[e])}function P(t,e){var n=e&&e.type;if("ordinal"===n){var i=e&&e.ordinalMeta;return i?i.parseAndCollect(t):t}return"time"===n&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+h(t)),null==t||""===t?NaN:+t}e.DefaultDataProvider=v,e.defaultDimValueGetters=L,e.retrieveRawValue=function(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r,a,o=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(n);return s&&(r=s.name,a=s.index),S[o](i,e,a,r)}}},e.retrieveRawAttr=function(t,e,n){if(t){var i=t.getProvider().getSource().sourceFormat;if(i===g||i===m){var r=t.getRawDataItem(e);return i!==g||o(r)||(r=null),r?r[n]:void 0}}}},74051:(t,e,n)=>{var i=n(95289),r=i.each,a=i.isString;function o(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}e.enableDataStack=function(t,e,n){var i,o,s,l,u=(n=n||{}).byIndex,h=n.stackedCoordDimension,c=!(!t||!t.get("stack"));if(r(e,(function(t,n){a(t)&&(e[n]=t={name:t}),c&&!t.isExtraCoord&&(u||i||!t.ordinalMeta||(i=t),o||"ordinal"===t.type||"time"===t.type||h&&h!==t.coordDim||(o=t))})),!o||u||i||(u=!0),o){s="__\0ecstackresult",l="__\0ecstackedover",i&&(i.createInvertedIndices=!0);var f=o.coordDim,d=o.type,p=0;r(e,(function(t){t.coordDim===f&&p++})),e.push({name:s,coordDim:f,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0}),p++,e.push({name:l,coordDim:l,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:o&&o.name,stackedByDimension:i&&i.name,isStackedByIndex:u,stackedOverDimension:l,stackResultDimension:s}},e.isDimensionStacked=o,e.getStackedDimension=function(t,e){return o(t,e)?t.getCalculationInfo("stackResultDimension"):e}},99535:(t,e,n)=>{var i=n(95289),r=i.each,a=i.createHashMap,o=(i.assert,n(65523).__DEV__,a(["tooltip","label","itemName","itemId","seriesName"]));function s(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}e.OTHER_DIMENSIONS=o,e.summarizeDimensions=function(t){var e={},n=e.encode={},i=a(),l=[],u=[],h=e.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};r(t.dimensions,(function(e){var r,a=t.getDimensionInfo(e),c=a.coordDim;if(c){var f=a.coordDimIndex;s(n,c)[f]=e,a.isExtraCoord||(i.set(c,1),"ordinal"!==(r=a.type)&&"time"!==r&&(l[0]=e),s(h.encode,c)[f]=a.index),a.defaultTooltip&&u.push(e)}o.each((function(t,e){var i=s(n,e),r=a.otherDims[e];null!=r&&!1!==r&&(i[r]=a.name)}))}));var c=[],f={};i.each((function(t,e){var i=n[e];f[e]=i[0],c=c.concat(i)})),e.dataDimsOnCoord=c,e.encodeFirstDimNotExtra=f;var d=n.label;d&&d.length&&(l=d.slice());var p=n.tooltip;return p&&p.length?u=p.slice():u.length||(u=l.slice()),n.defaultedLabel=l,n.defaultedTooltip=u,e},e.getDimensionTypeByAxis=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}},49442:(t,e,n)=>{n(65523).__DEV__;var i=n(63199),r=i.makeInner,a=i.getDataItemValue,o=n(95289),s=o.createHashMap,l=o.each,u=o.map,h=o.isArray,c=o.isString,f=o.isObject,d=o.isTypedArray,p=o.isArrayLike,g=o.extend,m=(o.assert,n(3325)),v=n(90642),y=v.SOURCE_FORMAT_ORIGINAL,_=v.SOURCE_FORMAT_ARRAY_ROWS,b=v.SOURCE_FORMAT_OBJECT_ROWS,x=v.SOURCE_FORMAT_KEYED_COLUMNS,w=v.SOURCE_FORMAT_UNKNOWN,S=v.SOURCE_FORMAT_TYPED_ARRAY,A=v.SERIES_LAYOUT_BY_ROW,L={Must:1,Might:2,Not:3},C=r();function P(t){if(t){var e=s();return u(t,(function(t,n){if(null==(t=g({},f(t)?t:{name:t})).name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var i=e.get(t.name);return i?t.name+="-"+i.count++:e.set(t.name,{count:1}),t}))}}function N(t,e,n,i){if(null==i&&(i=1/0),e===A)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var a=n[0]||[];for(r=0;r<a.length&&r<i;r++)t(a[r],r)}}function k(t){var e=t.option;if(!e.data)return t.ecModel.getComponent("dataset",e.datasetIndex||0)}function I(t,e,n,i,r,o){var s,l,u;if(d(t))return L.Not;if(i){var p=i[o];f(p)?(l=p.name,u=p.type):c(p)&&(l=p)}if(null!=u)return"ordinal"===u?L.Must:L.Not;if(e===_)if(n===A){for(var g=t[o],m=0;m<(g||[]).length&&m<5;m++)if(null!=(s=C(g[r+m])))return s}else for(m=0;m<t.length&&m<5;m++){var v=t[r+m];if(v&&null!=(s=C(v[o])))return s}else if(e===b){if(!l)return L.Not;for(m=0;m<t.length&&m<5;m++){if((w=t[m])&&null!=(s=C(w[l])))return s}}else if(e===x){if(!l)return L.Not;if(!(g=t[l])||d(g))return L.Not;for(m=0;m<g.length&&m<5;m++)if(null!=(s=C(g[m])))return s}else if(e===y)for(m=0;m<t.length&&m<5;m++){var w=t[m],S=a(w);if(!h(S))return L.Not;if(null!=(s=C(S[o])))return s}function C(t){var e=c(t);return null!=t&&isFinite(t)&&""!==t?e?L.Might:L.Not:e&&"-"!==t?L.Must:void 0}return L.Not}e.BE_ORDINAL=L,e.detectSourceFormat=function(t){var e=t.option.source,n=w;if(d(e))n=S;else if(h(e)){0===e.length&&(n=_);for(var i=0,r=e.length;i<r;i++){var a=e[i];if(null!=a){if(h(a)){n=_;break}if(f(a)){n=b;break}}}}else if(f(e)){for(var o in e)if(e.hasOwnProperty(o)&&p(e[o])){n=x;break}}else if(null!=e)throw new Error("Invalid data");C(t).sourceFormat=n},e.getSource=function(t){return C(t).source},e.resetSourceDefaulter=function(t){C(t).datasetMap=s()},e.prepareSource=function(t){var e=t.option,n=e.data,i=d(n)?S:y,r=!1,o=e.seriesLayoutBy,s=e.sourceHeader,u=e.dimensions,f=k(t);if(f){var p=f.option;n=p.source,i=C(f).sourceFormat,r=!0,o=o||p.seriesLayoutBy,null==s&&(s=p.sourceHeader),u=u||p.dimensions}var g=function(t,e,n,i,r){if(!t)return{dimensionsDefine:P(r)};var o,s;if(e===_)"auto"===i||null==i?N((function(t){null!=t&&"-"!==t&&(c(t)?null==s&&(s=1):s=0)}),n,t,10):s=i?1:0,r||1!==s||(r=[],N((function(t,e){r[e]=null!=t?t:""}),n,t)),o=r?r.length:n===A?t.length:t[0]?t[0].length:null;else if(e===b)r||(r=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e){var i=[];return l(e,(function(t,e){i.push(e)})),i}}(t));else if(e===x)r||(r=[],l(t,(function(t,e){r.push(e)})));else if(e===y){var u=a(t[0]);o=h(u)&&u.length||1}return{startIndex:s,dimensionsDefine:P(r),dimensionsDetectCount:o}}(n,i,o,s,u);C(t).source=new m({data:n,fromDataset:r,seriesLayoutBy:o,sourceFormat:i,dimensionsDefine:g.dimensionsDefine,startIndex:g.startIndex,dimensionsDetectCount:g.dimensionsDetectCount,encodeDefine:e.encode})},e.makeSeriesEncodeForAxisCoordSys=function(t,e,n){var i={},r=k(e);if(!r||!t)return i;var a,o,s=[],u=[],h=e.ecModel,c=C(h).datasetMap,d=r.uid+"_"+n.seriesLayoutBy;t=t.slice(),l(t,(function(e,n){!f(e)&&(t[n]={name:e}),"ordinal"===e.type&&null==a&&(a=n,o=m(t[n])),i[e.name]=[]}));var p=c.get(d)||c.set(d,{categoryWayDim:o,valueWayDim:0});function g(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function m(t){var e=t.dimsDef;return e?e.length:1}return l(t,(function(t,e){var n=t.name,r=m(t);if(null==a){var o=p.valueWayDim;g(i[n],o,r),g(u,o,r),p.valueWayDim+=r}else if(a===e)g(i[n],0,r),g(s,0,r);else{o=p.categoryWayDim;g(i[n],o,r),g(u,o,r),p.categoryWayDim+=r}})),s.length&&(i.itemName=s),u.length&&(i.seriesName=u),i},e.makeSeriesEncodeForNameBased=function(t,e,n){var i={};if(!k(t))return i;var r,a=e.sourceFormat,o=e.dimensionsDefine;a!==b&&a!==x||l(o,(function(t,e){"name"===(f(t)?t.name:t)&&(r=e)}));var s=function(){for(var t={},i={},s=[],l=0,u=Math.min(5,n);l<u;l++){var h=I(e.data,a,e.seriesLayoutBy,o,e.startIndex,l);s.push(h);var c=h===L.Not;if(c&&null==t.v&&l!==r&&(t.v=l),(null==t.n||t.n===t.v||!c&&s[t.n]===L.Not)&&(t.n=l),f(t)&&s[t.n]!==L.Not)return t;c||(h===L.Might&&null==i.v&&l!==r&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function f(t){return null!=t.v&&null!=t.n}return f(t)?t:f(i)?i:null}();if(s){i.value=s.v;var u=null!=r?r:s.n;i.itemName=[u],i.seriesName=[u]}return i},e.guessOrdinal=function(t,e){return I(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}},90642:(t,e)=>{e.SOURCE_FORMAT_ORIGINAL="original",e.SOURCE_FORMAT_ARRAY_ROWS="arrayRows",e.SOURCE_FORMAT_OBJECT_ROWS="objectRows",e.SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",e.SOURCE_FORMAT_UNKNOWN="unknown",e.SOURCE_FORMAT_TYPED_ARRAY="typedArray",e.SERIES_LAYOUT_BY_COLUMN="column",e.SERIES_LAYOUT_BY_ROW="row"},89231:(t,e,n)=>{n(65523).__DEV__;var i=n(97683),r=n(95289),a=n(56607),o=n(87190),s=n(33863),l=n(36112),u=n(87380),h=n(69498),c=n(50294),f=n(27711),d=n(5518),p=n(54326),g=n(85532),m=n(33358),v=n(18328),y=n(67955),_=n(76442),b=n(63199),x=n(88336).throttle,w=n(89414),S=n(40949),A=n(75003),L=n(3379),C=n(27663),P=n(95239);n(613);var N=n(45986),k=r.assert,I=r.each,M=r.isFunction,T=r.isObject,D=g.parseClassType,O={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:3500,COMPONENT:4e3,BRUSH:5e3}},F="__flagInMainProcess",R="__optionUpdated",E=/^[a-zA-Z0-9_]+$/;function B(t,e){return function(n,i,r){e||!this._disposed?(n=n&&n.toLowerCase(),l.prototype[t].call(this,n,i,r)):this.id}}function z(){l.call(this)}function j(t,e,n){n=n||{},"string"==typeof e&&(e=ht[e]),this.id,this.group,this._dom=t;var a=this._zr=i.init(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=x(r.bind(a.flush,a),17),(e=r.clone(e))&&d(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new c;var o,u,f=this._api=(u=(o=this)._coordSysMgr,r.extend(new h(o),{getCoordinateSystems:r.bind(u.getCoordinateSystems,u),getComponentByElement:function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return o._model.getComponent(e.mainType,e.index);t=t.parent}}}));function p(t,e){return t.__prio-e.__prio}s(ut,p),s(ot,p),this._scheduler=new L(this,f,ot,ut),l.call(this,this._ecEventProcessor=new it),this._messageCenter=new z,this._initEvents(),this.resize=r.bind(this.resize,this),this._pendingActions=[],a.animation.on("frame",this._onframe,this),function(t,e){t.on("rendered",(function(){e.trigger("rendered"),!t.animation.isFinished()||e[R]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))}(a,this),r.setAsPrimitive(this)}z.prototype.on=B("on",!0),z.prototype.off=B("off",!0),z.prototype.one=B("one",!0),r.mixin(z,l);var q=j.prototype;function H(t,e,n){if(this._disposed)this.id;else{var i,r=this._model,a=this._coordSysMgr.getCoordinateSystems();e=b.parseFinder(r,e);for(var o=0;o<a.length;o++){var s=a[o];if(s[t]&&null!=(i=s[t](r,e,n)))return i}}}q._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[R]){var e=this[R].silent;this[F]=!0,U(this),W.update.call(this),this[F]=!1,this[R]=!1,X.call(this,e),$.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var a=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),G(this,i),t.performVisualTasks(i),Q(this,this._model,r,"remain"),n-=+new Date-a}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},q.getDom=function(){return this._dom},q.getZr=function(){return this._zr},q.setOption=function(t,e,n){if(this._disposed)this.id;else{var i;if(T(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[F]=!0,!this._model||e){var r=new f(this._api),a=this._theme,o=this._model=new u;o.scheduler=this._scheduler,o.init(null,null,a,r)}this._model.setOption(t,st),n?(this[R]={silent:i},this[F]=!1):(U(this),W.update.call(this),this._zr.flush(),this[R]=!1,this[F]=!1,X.call(this,i),$.call(this,i))}},q.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},q.getModel=function(){return this._model},q.getOption=function(){return this._model&&this._model.getOption()},q.getWidth=function(){return this._zr.getWidth()},q.getHeight=function(){return this._zr.getHeight()},q.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},q.getRenderedCanvas=function(t){if(o.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},q.getSvgDataURL=function(){if(o.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return r.each(e,(function(t){t.stopAnimation(!0)})),t.painter.toDataURL()}},q.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;I(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return I(i,(function(t){t.group.ignore=!1})),a}this.id},q.getConnectedDataURL=function(t){if(this._disposed)this.id;else if(o.canvasSupported){var e="svg"===t.type,n=this.group,a=Math.min,s=Math.max,l=1/0;if(dt[n]){var u=l,h=l,c=-1/0,f=-1/0,d=[],p=t&&t.pixelRatio||1;r.each(ft,(function(i,o){if(i.group===n){var l=e?i.getZr().painter.getSvgDom().innerHTML:i.getRenderedCanvas(r.clone(t)),p=i.getDom().getBoundingClientRect();u=a(p.left,u),h=a(p.top,h),c=s(p.right,c),f=s(p.bottom,f),d.push({dom:l,left:p.left,top:p.top})}}));var g=(c*=p)-(u*=p),m=(f*=p)-(h*=p),v=r.createCanvas(),y=i.init(v,{renderer:e?"svg":"canvas"});if(y.resize({width:g,height:m}),e){var b="";return I(d,(function(t){var e=t.left-u,n=t.top-h;b+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),y.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new _.Rect({shape:{x:0,y:0,width:g,height:m},style:{fill:t.connectedBackgroundColor}})),I(d,(function(t){var e=new _.Image({style:{x:t.left*p-u,y:t.top*p-h,image:t.dom}});y.add(e)})),y.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},q.convertToPixel=r.curry(H,"convertToPixel"),q.convertFromPixel=r.curry(H,"convertFromPixel"),q.containPixel=function(t,e){if(!this._disposed){var n,i=this._model;return t=b.parseFinder(i,t),r.each(t,(function(t,i){i.indexOf("Models")>=0&&r.each(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if("seriesModels"===i){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(n|=a.containPoint(e,t))}}),this)}),this),!!n}this.id},q.getVisual=function(t,e){var n=this._model,i=(t=b.parseFinder(n,t,{defaultMainType:"series"})).seriesModel.getData(),r=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?i.indexOfRawIndex(t.dataIndex):null;return null!=r?i.getItemVisual(r,e):i.getVisual(e)},q.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},q.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var W={prepareAndUpdate:function(t){U(this),W.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,s=this._scheduler;if(e){s.restoreData(e,t),s.performSeriesTasks(e),r.create(e,n),s.performDataProcessorTasks(e,t),G(this,e),r.update(e,n),J(e),s.performVisualTasks(e,t),Z(this,e,n,t);var l=e.get("backgroundColor")||"transparent";if(o.canvasSupported)i.setBackgroundColor(l);else{var u=a.parse(l);l=a.stringify(u,"rgb"),0===u[3]&&(l="transparent")}tt(e,n)}},updateTransform:function(t){var e=this._model,n=this,i=this._api;if(e){var a=[];e.eachComponent((function(r,o){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,e,i,t);l&&l.update&&a.push(s)}else a.push(s)}));var o=r.createHashMap();e.eachSeries((function(r){var a=n._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,e,i,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)})),J(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),Q(n,e,i,t,o),tt(e,this._api)}},updateView:function(t){var e=this._model;e&&(y.markUpdateMethod(t,"updateView"),J(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),Z(this,this._model,this._api,t),tt(e,this._api))},updateVisual:function(t){W.update.call(this,t)},updateLayout:function(t){W.update.call(this,t)}};function U(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(),K(t,"component",e,n),K(t,"chart",e,n),n.plan()}function V(t,e,n,i,a){var o=t._model;if(i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};a&&(l.subType=a);var u=n.excludeSeriesId;null!=u&&(u=r.createHashMap(b.normalizeToArray(u))),o&&o.eachComponent(l,(function(e){u&&null!=u.get(e.id)||h(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else I(t._componentsViews.concat(t._chartsViews),h);function h(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}}function G(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))}function Y(t,e){var n=t.type,i=t.escapeConnect,a=rt[n],o=a.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&D(s[0]),this[F]=!0;var u=[t],h=!1;t.batch&&(h=!0,u=r.map(t.batch,(function(e){return(e=r.defaults(r.extend({},e),t)).batch=null,e})));var c,f=[],d="highlight"===n||"downplay"===n;I(u,(function(t){(c=(c=a.action(t,this._model,this._api))||r.extend({},t)).type=o.event||c.type,f.push(c),d?V(this,l,t,"series"):s&&V(this,l,t,s.main,s.sub)}),this),"none"===l||d||s||(this[R]?(U(this),W.update.call(this,t),this[R]=!1):W[l].call(this,t)),c=h?{type:o.event||n,escapeConnect:i,batch:f}:f[0],this[F]=!1,!e&&this._messageCenter.trigger(c.type,c)}function X(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Y.call(this,n,t)}}function $(t){!t&&this.trigger("updated")}function K(t,e,n,i){for(var r="component"===e,a=r?t._componentsViews:t._chartsViews,o=r?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<a.length;u++)a[u].__alive=!1;function h(t){var e="_ec_"+t.id+"_"+t.type,u=o[e];if(!u){var h=D(t.type);(u=new(r?v.getClass(h.main,h.sub):y.getClass(h.sub))).init(n,l),o[e]=u,a.push(u),s.add(u.group)}t.__viewId=u.__id=e,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!r&&i.prepareView(u,t,n,l)}r?n.eachComponent((function(t,e){"series"!==t&&h(e)})):n.eachSeries(h);for(u=0;u<a.length;){var c=a[u];c.__alive?u++:(!r&&c.renderTask.dispose(),s.remove(c.group),c.dispose(n,l),a.splice(u,1),delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}}function J(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function Z(t,e,n,i){!function(t,e,n,i,r){I(r||t._componentsViews,(function(t){var r=t.__model;t.render(r,e,n,i),nt(r,t)}))}(t,e,n,i),I(t._chartsViews,(function(t){t.__alive=!1})),Q(t,e,n,i),I(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))}function Q(t,e,n,i,r){var a,s=t._scheduler;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var o=n.renderTask;s.updatePayload(o,i),r&&r.get(e.uid)&&o.dirty(),a|=o.perform(s.getPerformArgs(o)),n.group.silent=!!e.get("silent"),nt(e,n),function(t,e){var n=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||t.style.blend!==n&&t.setStyle("blend",n),t.eachPendingDisplayable&&t.eachPendingDisplayable((function(t){t.setStyle("blend",n)}))}))}(e,n)})),s.unfinished|=a,function(t,e){var n=t._zr,i=n.storage,r=0;i.traverse((function(t){r++})),r>e.get("hoverLayerThreshold")&&!o.node&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse((function(t){t.useHoverLayer=!0}))}}))}(t,e),S(t._zr.dom,e)}function tt(t,e){I(lt,(function(n){n(t,e)}))}q.resize=function(t){if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[F]=!0,n&&U(this),W.update.call(this),this[F]=!1,X.call(this,i),$.call(this,i)}}},q.showLoading=function(t,e){if(this._disposed)this.id;else if(T(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),ct[t]){var n=ct[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},q.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},q.makeActionFromEvent=function(t){var e=r.extend({},t);return e.type=at[t.type],e},q.dispatchAction=function(t,e){this._disposed?this.id:(T(e)||(e={silent:!!e}),rt[t.type]&&this._model&&(this[F]?this._pendingActions.push(t):(Y.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&o.browser.weChat&&this._throttledZrFlush(),X.call(this,e.silent),$.call(this,e.silent))))},q.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0}},q.on=B("on",!1),q.off=B("off",!1),q.one=B("one",!1);var et=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function nt(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))}))}function it(){this.eventInfo}q._initEvents=function(){I(et,(function(t){var e=function(e){var n,i=this.getModel(),a=e.target;if("globalout"===t)n={};else if(a&&null!=a.dataIndex){var o=a.dataModel||i.getSeriesByIndex(a.seriesIndex);n=o&&o.getDataParams(a.dataIndex,a.dataType,a)||{}}else a&&a.eventData&&(n=r.extend({},a.eventData));if(n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),h=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];n.event=e,n.type=t,this._ecEventProcessor.eventInfo={targetEl:a,packedEvent:n,model:u,view:h},this.trigger(t,n)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)}),this),I(at,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},q.isDisposed=function(){return this._disposed},q.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},q.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,b.setAttribute(this.getDom(),mt,"");var t=this._api,e=this._model;I(this._componentsViews,(function(n){n.dispose(e,t)})),I(this._chartsViews,(function(n){n.dispose(e,t)})),this._zr.dispose(),delete ft[this.id]}},r.mixin(j,l),it.prototype={constructor:it,normalizeQuery:function(t){var e={},n={},i={};if(r.isString(t)){var a=D(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};r.each(t,(function(t,r){for(var a=!1,l=0;l<o.length;l++){var u=o[l],h=r.lastIndexOf(u);if(h>0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,a=!0)}}s.hasOwnProperty(r)&&(n[r]=t,a=!0),a||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},filter:function(t,e,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return h(l,o,"mainType")&&h(l,o,"subType")&&h(l,o,"index","componentIndex")&&h(l,o,"name")&&h(l,o,"id")&&h(u,a,"name")&&h(u,a,"dataIndex")&&h(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,a));function h(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},afterTrigger:function(){this.eventInfo=null}};var rt={},at={},ot=[],st=[],lt=[],ut=[],ht={},ct={},ft={},dt={},pt=new Date-0,gt=new Date-0,mt="_echarts_instance_";function vt(t){dt[t]=!1}var yt=vt;function _t(t){return ft[b.getAttribute(t,mt)]}function bt(t,e){ht[t]=e}function xt(t){st.push(t)}function wt(t,e){Lt(ot,t,e,1e3)}function St(t,e,n){"function"==typeof e&&(n=e,e="");var i=T(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,k(E.test(i)&&E.test(e)),rt[i]||(rt[i]={action:n,actionInfo:t}),at[e]=i}function At(t,e){Lt(ut,t,e,3e3,"visual")}function Lt(t,e,n,i,r){(M(e)||T(e))&&(n=e,e=i);var a=L.wrapStageHandler(n,r);return a.__prio=e,a.__raw=n,t.push(a),a}function Ct(t,e){ct[t]=e}At(2e3,w),xt(d),wt(900,p),Ct("default",A),St({type:"highlight",event:"highlight",update:"highlight"},r.noop),St({type:"downplay",event:"downplay",update:"downplay"},r.noop),bt("light",C),bt("dark",P);e.version="4.9.0",e.dependencies={zrender:"4.3.2"},e.PRIORITY=O,e.init=function(t,e,n){var i=_t(t);if(i)return i;var r=new j(t,e,n);return r.id="ec_"+pt++,ft[r.id]=r,b.setAttribute(t,mt,r.id),function(t){var e="__connectUpdateStatus";function n(t,n){for(var i=0;i<t.length;i++)t[i][e]=n}I(at,(function(i,r){t._messageCenter.on(r,(function(i){if(dt[t.group]&&0!==t[e]){if(i&&i.escapeConnect)return;var r=t.makeActionFromEvent(i),a=[];I(ft,(function(e){e!==t&&e.group===t.group&&a.push(e)})),n(a,0),I(a,(function(t){1!==t[e]&&t.dispatchAction(r)})),n(a,2)}}))}))}(r),r},e.connect=function(t){if(r.isArray(t)){var e=t;t=null,I(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+gt++,I(e,(function(e){e.group=t}))}return dt[t]=!0,t},e.disConnect=vt,e.disconnect=yt,e.dispose=function(t){"string"==typeof t?t=ft[t]:t instanceof j||(t=_t(t)),t instanceof j&&!t.isDisposed()&&t.dispose()},e.getInstanceByDom=_t,e.getInstanceById=function(t){return ft[t]},e.registerTheme=bt,e.registerPreprocessor=xt,e.registerProcessor=wt,e.registerPostUpdate=function(t){lt.push(t)},e.registerAction=St,e.registerCoordinateSystem=function(t,e){c.register(t,e)},e.getCoordinateSystemDimensions=function(t){var e=c.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},e.registerLayout=function(t,e){Lt(ut,t,e,1e3,"layout")},e.registerVisual=At,e.registerLoading=Ct,e.extendComponentModel=function(t){return g.extend(t)},e.extendComponentView=function(t){return v.extend(t)},e.extendSeriesModel=function(t){return m.extend(t)},e.extendChartView=function(t){return y.extend(t)},e.setCanvasCreator=function(t){r.$override("createCanvas",t)},e.registerMap=function(t,e,n){N.registerMap(t,e,n)},e.getMap=function(t){var e=N.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}},e.dataTool={};var Pt=n(93607);!function(){for(var t in Pt)Pt.hasOwnProperty(t)&&(e[t]=Pt[t])}()},93607:(t,e,n)=>{var i=n(97683);e.zrender=i;var r=n(13388);e.matrix=r;var a=n(31138);e.vector=a;var o=n(95289),s=n(56607);e.color=s;var l=n(76442),u=n(44261);e.number=u;var h=n(8595);e.format=h;var c=n(88336);c.throttle;e.throttle=c.throttle;var f=n(91897);e.helper=f;var d=n(46135);e.parseGeoJSON=d;var p=n(5628);e.List=p;var g=n(40590);e.Model=g;var m=n(31490);e.Axis=m;var v=n(87190);e.env=v;var y=d,_={};o.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(t){_[t]=o[t]}));var b={};o.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(t){b[t]=l[t]})),e.parseGeoJson=y,e.util=_,e.graphic=b},91897:(t,e,n)=>{var i=n(95289),r=n(19554),a=n(8426),o=n(48267),s=n(40590),l=n(61570);l.getLayoutRect;e.getLayoutRect=l.getLayoutRect;var u=n(74051),h=u.enableDataStack,c=u.isDimensionStacked,f=u.getStackedDimension,d=n(21685);e.completeDimensions=d;var p=n(29966);e.createDimensions=p;var g=n(22864);e.createSymbol=g.createSymbol;var m={isDimensionStacked:c,enableDataStack:h,getStackedDimension:f};e.createList=function(t){return r(t.getSource(),t)},e.dataStack=m,e.createScale=function(t,e){var n=e;s.isInstance(e)||(n=new s(e),i.mixin(n,o));var r=a.createScaleByModel(n);return r.setExtent(t[0],t[1]),a.niceScaleExtent(r,n),r},e.mixinAxisModelCommonMethods=function(t){i.mixin(t,o)}},49777:t=>{t.exports={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:""}}}}},11041:(t,e,n)=>{var i=n(95289),r=n(44261).parsePercent,a=n(74051).isDimensionStacked,o=n(59039),s="__ec_stack_",l="undefined"!=typeof Float32Array?Float32Array:Array;function u(t){return t.get("stack")||s+t.seriesIndex}function h(t){return t.dim+t.index}function c(t,e){var n=[];return e.eachSeriesByType(t,(function(t){m(t)&&!v(t)&&n.push(t)})),n}function f(t){var e=function(t){var e={};i.each(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,a=i.mapDimension(n.dim),o=0,s=i.count();o<s;++o){var l=i.get(a,o);e[r]?e[r].push(l):e[r]=[l]}}));var n=[];for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(a){a.sort((function(t,e){return t-e}));for(var o=null,s=1;s<a.length;++s){var l=a[s]-a[s-1];l>0&&(o=null===o?l:Math.min(o,l))}n[r]=o}}return n}(t),n=[];return i.each(t,(function(t){var i,a=t.coordinateSystem.getBaseAxis(),o=a.getExtent();if("category"===a.type)i=a.getBandWidth();else if("value"===a.type||"time"===a.type){var s=a.dim+"_"+a.index,l=e[s],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);i=l?c/d*l:c}else{var p=t.getData();i=Math.abs(o[1]-o[0])/p.count()}var g=r(t.get("barWidth"),i),m=r(t.get("barMaxWidth"),i),v=r(t.get("barMinWidth")||1,i),y=t.get("barGap"),_=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:g,barMaxWidth:m,barMinWidth:v,barGap:y,barCategoryGap:_,axisKey:h(a),stackId:u(t)})})),d(n)}function d(t){var e={};i.each(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,a=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=a.stacks;e[i]=a;var s=t.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var u=t.barMaxWidth;u&&(o[s].maxWidth=u);var h=t.barMinWidth;h&&(o[s].minWidth=h);var c=t.barGap;null!=c&&(a.gap=c);var f=t.barCategoryGap;null!=f&&(a.categoryGap=f)}));var n={};return i.each(e,(function(t,e){n[e]={};var a=t.stacks,o=t.bandWidth,s=r(t.categoryGap,o),l=r(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),i.each(a,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--}else{var i=c;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}})),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var f,d=0;i.each(a,(function(t,e){t.width||(t.width=c),f=t,d+=t.width*(1+l)})),f&&(d-=f.width*l);var p=-d/2;i.each(a,(function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:p,width:t.width},p+=t.width*(1+l)}))})),n}function p(t,e,n){if(t&&e){var i=t[h(e)];return null!=i&&null!=n&&(i=i[u(n)]),i}}var g={seriesType:"bar",plan:o(),reset:function(t){if(m(t)&&v(t)){var e=t.getData(),n=t.coordinateSystem,i=n.grid.getRect(),r=n.getBaseAxis(),a=n.getOtherAxis(r),o=e.mapDimension(a.dim),s=e.mapDimension(r.dim),u=a.isHorizontal(),h=u?0:1,c=p(f([t]),r,t).width;return c>.5||(c=.5),{progress:function(t,e){var f,d=t.count,p=new l(2*d),g=new l(2*d),m=new l(d),v=[],_=[],b=0,x=0;for(;null!=(f=t.next());)_[h]=e.get(o,f),_[1-h]=e.get(s,f),v=n.dataToPoint(_,null,v),g[b]=u?i.x+i.width:v[0],p[b++]=v[0],g[b]=u?v[1]:i.y+i.height,p[b++]=v[1],m[x++]=f;e.setLayout({largePoints:p,largeDataIndices:m,largeBackgroundPoints:g,barWidth:c,valueAxisStart:y(r,a,!1),backgroundStart:u?i.x:i.y,valueAxisHorizontal:u})}}}}};function m(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function v(t){return t.pipelineContext&&t.pipelineContext.large}function y(t,e,n){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}e.getLayoutOnAxis=function(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var a=n.getBandWidth(),o=0;o<t.count;o++)e.push(i.defaults({bandWidth:a,axisKey:r,stackId:s+o},t));var l=d(e),u=[];for(o=0;o<t.count;o++){var h=l[r][s+o];h.offsetCenter=h.offset+h.width/2,u.push(h)}return u}},e.prepareLayoutBarSeries=c,e.makeColumnLayout=f,e.retrieveColumnLayout=p,e.layout=function(t,e){var n=c(t,e),r=f(n),o={},s={};i.each(n,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),l=u(t),c=r[h(i)][l],f=c.offset,d=c.width,p=n.getOtherAxis(i),g=t.get("barMinHeight")||0;o[l]=o[l]||[],s[l]=s[l]||[],e.setLayout({bandWidth:c.bandWidth,offset:f,size:d});for(var m=e.mapDimension(p.dim),v=e.mapDimension(i.dim),_=a(e,m),b=p.isHorizontal(),x=y(i,p,_),w=0,S=e.count();w<S;w++){var A,L,C,P,N,k=e.get(m,w),I=e.get(v,w),M=k>=0?"p":"n",T=x;if(_&&(o[l][I]||(o[l][I]={p:x,n:x}),T=o[l][I][M]),b)A=T,L=(N=n.dataToPoint([k,I]))[1]+f,C=N[0]-x,P=d,Math.abs(C)<g&&(C=(C<0?-1:1)*g),isNaN(C)||_&&(o[l][I][M]+=C);else A=(N=n.dataToPoint([I,k]))[0]+f,L=T,C=d,P=N[1]-x,Math.abs(P)<g&&(P=(P<=0?-1:1)*g),isNaN(P)||_&&(o[l][I][M]+=P);e.setItemLayout(w,{x:A,y:L,width:C,height:P})}}),this)},e.largeLayout=g},32493:(t,e,n)=>{var i=n(95289).map,r=n(59039),a=n(74051).isDimensionStacked;t.exports=function(t){return{seriesType:t,plan:r(),reset:function(t){var e=t.getData(),n=t.coordinateSystem,r=t.pipelineContext.large;if(n){var o=i(n.dimensions,(function(t){return e.mapDimension(t)})).slice(0,2),s=o.length,l=e.getCalculationInfo("stackResultDimension");return a(e,o[0])&&(o[0]=l),a(e,o[1])&&(o[1]=l),s&&{progress:function(t,e){for(var i=t.end-t.start,a=r&&new Float32Array(i*s),l=t.start,u=0,h=[],c=[];l<t.end;l++){var f;if(1===s){var d=e.get(o[0],l);f=!isNaN(d)&&n.dataToPoint(d,null,c)}else{d=h[0]=e.get(o[0],l);var p=h[1]=e.get(o[1],l);f=!isNaN(d)&&!isNaN(p)&&n.dataToPoint(h,null,c)}r?(a[u++]=f?f[0]:NaN,a[u++]=f?f[1]:NaN):e.setItemLayout(l,f&&f.slice()||[NaN,NaN])}r&&e.setLayout("symbolPoints",a)}}}}}}},75003:(t,e,n)=>{var i=n(95289),r=n(76442),a=n(43407),o=Math.PI;t.exports=function(t,e){e=e||{},i.defaults(e,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new r.Group,s=new r.Rect({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(s);var l=e.fontSize+" sans-serif",u=new r.Rect({style:{fill:"none",text:e.text,font:l,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});if(n.add(u),e.showSpinner){var h=new r.Arc({shape:{startAngle:-o/2,endAngle:-o/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001});h.animateShape(!0).when(1e3,{endAngle:3*o/2}).start("circularInOut"),h.animateShape(!0).when(1e3,{startAngle:3*o/2}).delay(300).start("circularInOut"),n.add(h)}return n.resize=function(){var n=a.getWidth(e.text,l),i=e.showSpinner?e.spinnerRadius:0,r=(t.getWidth()-2*i-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner?0:n/2),o=t.getHeight()/2;e.showSpinner&&h.setShape({cx:r,cy:o}),u.setShape({x:r-i,y:o-i,width:2*i,height:2*i}),s.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}},85532:(t,e,n)=>{var i=n(95289),r=n(40590),a=n(79865),o=n(11724),s=o.enableClassManagement,l=o.parseClassType,u=n(63199).makeInner,h=n(61570),c=n(54350),f=u(),d=r.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,i){r.call(this,t,e,n,i),this.uid=a.getUID("ec_cpt_model")},init:function(t,e,n,i){this.mergeDefaultAndTheme(t,n)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,r=n?h.getLayoutParams(t):{},a=e.getTheme();i.merge(t,a.get(this.mainType)),i.merge(t,this.getDefaultOption()),n&&h.mergeLayoutParam(t,r,n)},mergeOption:function(t,e){i.merge(this.option,t,!0);var n=this.layoutMode;n&&h.mergeLayoutParam(this.option,t,n)},optionUpdated:function(t,e){},getDefaultOption:function(){var t=f(this);if(!t.defaultOption){for(var e=[],n=this.constructor;n;){var r=n.prototype.defaultOption;r&&e.push(r),n=n.superClass}for(var a={},o=e.length-1;o>=0;o--)a=i.merge(a,e[o],!0);t.defaultOption=a}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});s(d,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(d),a.enableTopologicalTravel(d,(function(t){var e=[];i.each(d.getClassesByMainType(t),(function(t){e=e.concat(t.prototype.dependencies||[])})),e=i.map(e,(function(t){return l(t).main})),"dataset"!==t&&i.indexOf(e,"dataset")<=0&&e.unshift("dataset");return e})),i.mixin(d,c);var p=d;t.exports=p},87380:(t,e,n)=>{n(65523).__DEV__;var i=n(95289),r=i.each,a=i.filter,o=i.map,s=i.isArray,l=i.indexOf,u=i.isObject,h=i.isString,c=i.createHashMap,f=i.assert,d=i.clone,p=i.merge,g=i.extend,m=i.mixin,v=n(63199),y=n(40590),_=n(85532),b=n(20183),x=n(18167),w=n(49442).resetSourceDefaulter,S="\0_ec_inner",A=y.extend({init:function(t,e,n,i){n=n||{},this.option=null,this._theme=new y(n),this._optionManager=i},setOption:function(t,e){f(!(S in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var i=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(i)):L.call(this,i),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=n.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=n.getMediaOption(this,this._api);o.length&&r(o,(function(t){this.mergeOption(t,e=!0)}),this)}return e},mergeOption:function(t){var e=this.option,n=this._componentsMap,i=[];w(this),r(t,(function(t,n){null!=t&&(_.hasClass(n)?n&&i.push(n):e[n]=null==e[n]?d(t):p(e[n],t,!0))})),_.topologicalTravel(i,_.getAllClassMainTypes(),(function(i,a){var o=v.normalizeToArray(t[i]),l=v.mappingToExists(n.get(i),o);v.makeIdAndName(l),r(l,(function(t,e){var n=t.option;u(n)&&(t.keyInfo.mainType=i,t.keyInfo.subType=function(t,e,n){var i=e.type?e.type:n?n.subType:_.determineSubType(t,e);return i}(i,n,t.exist))}));var h=function(t,e){s(e)||(e=e?[e]:[]);var n={};return r(e,(function(e){n[e]=(t.get(e)||[]).slice()})),n}(n,a);e[i]=[],n.set(i,[]),r(l,(function(t,r){var a=t.exist,o=t.option;if(f(u(o)||a,"Empty component definition"),o){var s=_.getClass(i,t.keyInfo.subType,!0);if(a&&a.constructor===s)a.name=t.keyInfo.name,a.mergeOption(o,this),a.optionUpdated(o,!1);else{var l=g({dependentModels:h,componentIndex:r},t.keyInfo);a=new s(o,this,this,l),g(a,l),a.init(o,this,this,l),a.optionUpdated(null,!0)}}else a.mergeOption({},this),a.optionUpdated({},!1);n.get(i)[r]=a,e[i][r]=a.option}),this),"series"===i&&C(this,n.get("series"))}),this),this._seriesIndicesMap=c(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=d(this.option);return r(t,(function(e,n){if(_.hasClass(n)){for(var i=(e=v.normalizeToArray(e)).length-1;i>=0;i--)v.isIdInner(e[i])&&e.splice(i,1);t[n]=e}})),delete t[S],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,u=t.name,h=this._componentsMap.get(e);if(!h||!h.length)return[];if(null!=i)s(i)||(i=[i]),n=a(o(i,(function(t){return h[t]})),(function(t){return!!t}));else if(null!=r){var c=s(r);n=a(h,(function(t){return c&&l(r,t.id)>=0||!c&&t.id===r}))}else if(null!=u){var f=s(u);n=a(h,(function(t){return f&&l(u,t.name)>=0||!f&&t.name===u}))}else n=h.slice();return P(n,t)},findComponents:function(t){var e,n,i,r,o,s=t.query,l=t.mainType,u=(n=l+"Index",i=l+"Id",r=l+"Name",!(e=s)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:l,index:e[n],id:e[i],name:e[r]}),h=u?this.queryComponents(u):this._componentsMap.get(l);return o=P(h,t),t.filter?a(o,t.filter):o},eachComponent:function(t,e,n){var i=this._componentsMap;if("function"==typeof t)n=e,e=t,i.each((function(t,i){r(t,(function(t,r){e.call(n,i,t,r)}))}));else if(h(t))r(i.get(t),e,n);else if(u(t)){var a=this.findComponents(t);r(a,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return a(e,(function(e){return e.name===t}))},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return a(e,(function(e){return e.subType===t}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){r(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},eachRawSeries:function(t,e){r(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){r(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},eachRawSeriesByType:function(t,e,n){return r(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){C(this,a(this._componentsMap.get("series"),t,e))},restoreData:function(t){var e=this._componentsMap;C(this,e.get("series"));var n=[];e.each((function(t,e){n.push(e)})),_.topologicalTravel(n,_.getAllClassMainTypes(),(function(n,i){r(e.get(n),(function(e){("series"!==n||!function(t,e){if(e){var n=e.seiresIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t))&&e.restoreData()}))}))}});function L(t){var e,n,i;this.option={},this.option[S]=1,this._componentsMap=c({series:[]}),this._seriesIndices,this._seriesIndicesMap,e=t,n=this._theme.option,i=e.color&&!e.colorLayer,r(n,(function(t,n){"colorLayer"===n&&i||_.hasClass(n)||("object"==typeof t?e[n]=e[n]?p(e[n],t,!1):d(t):null==e[n]&&(e[n]=t))})),p(t,b,!1),this.mergeOption(t)}function C(t,e){t._seriesIndicesMap=c(t._seriesIndices=o(e,(function(t){return t.componentIndex}))||[])}function P(t,e){return e.hasOwnProperty("subType")?a(t,(function(t){return t.subType===e.subType})):t}m(A,x);var N=A;t.exports=N},40590:(t,e,n)=>{var i=n(95289),r=n(87190),a=n(63199).makeInner,o=n(11724),s=o.enableClassExtend,l=o.enableClassCheck,u=n(52342),h=n(27671),c=n(28301),f=n(62429),d=i.mixin,p=a();function g(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function m(t,e,n){for(var i=0;i<e.length&&(!e[i]||null!=(t=t&&"object"==typeof t?t[e[i]]:null));i++);return null==t&&n&&(t=n.get(e)),t}function v(t,e){var n=p(t).getParent;return n?n.call(t,e):t.parentModel}g.prototype={constructor:g,init:null,mergeOption:function(t){i.merge(this.option,t,!0)},get:function(t,e){return null==t?this.option:m(this.option,this.parsePath(t),!e&&v(this,t))},getShallow:function(t,e){var n=this.option,i=null==n?n:n[t],r=!e&&v(this,t);return null==i&&r&&(i=r.getShallow(t)),i},getModel:function(t,e){var n;return new g(null==t?this.option:m(this.option,t=this.parsePath(t)),e=e||(n=v(this,t))&&n.getModel(t),this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(i.clone(this.option))},setReadOnly:function(t){},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){p(this).getParent=t},isAnimationEnabled:function(){if(!r.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},s(g),l(g),d(g,u),d(g,h),d(g,c),d(g,f);var y=g;t.exports=y},27711:(t,e,n)=>{var i=n(95289),r=n(63199),a=n(85532),o=i.each,s=i.clone,l=i.map,u=i.merge,h=/^(min|max)?(.+)$/;function c(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function f(t,e,n){var r,a,s=[],l=[],u=t.timeline;if(t.baseOption&&(a=t.baseOption),(u||t.options)&&(a=a||{},s=(t.options||[]).slice()),t.media){a=a||{};var h=t.media;o(h,(function(t){t&&t.option&&(t.query?l.push(t):r||(r=t))}))}return a||(a=t),a.timeline||(a.timeline=u),o([a].concat(s).concat(i.map(l,(function(t){return t.option}))),(function(t){o(e,(function(e){e(t,n)}))})),{baseOption:a,timelineOptions:s,mediaDefault:r,mediaList:l}}function d(t,e,n){var r={width:e,height:n,aspectratio:e/n},a=!0;return i.each(t,(function(t,e){var n=e.match(h);if(n&&n[1]&&n[2]){var i=n[1],o=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(r[o],t,i)||(a=!1)}})),a}c.prototype={constructor:c,setOption:function(t,e){t&&i.each(r.normalizeToArray(t.series),(function(t){t&&t.data&&i.isTypedArray(t.data)&&i.setAsPrimitive(t.data)})),t=s(t);var n,h,c=this._optionBackup,d=f.call(this,t,e,!c);this._newBaseOption=d.baseOption,c?(n=c.baseOption,h=d.baseOption,o(h=h||{},(function(t,e){if(null!=t){var i=n[e];if(a.hasClass(e)){t=r.normalizeToArray(t),i=r.normalizeToArray(i);var o=r.mappingToExists(i,t);n[e]=l(o,(function(t){return t.option&&t.exist?u(t.exist,t.option,!0):t.exist||t.option}))}else n[e]=u(i,t,!0)}})),d.timelineOptions.length&&(c.timelineOptions=d.timelineOptions),d.mediaList.length&&(c.mediaList=d.mediaList),d.mediaDefault&&(c.mediaDefault=d.mediaDefault)):this._optionBackup=d},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=l(e.timelineOptions,s),this._mediaList=l(e.mediaList,s),this._mediaDefault=s(e.mediaDefault),this._currentMediaIndices=[],s(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=s(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,u=[],h=[];if(!a.length&&!o)return h;for(var c=0,f=a.length;c<f;c++)d(a[c].query,i,r)&&u.push(c);return!u.length&&o&&(u=[-1]),u.length&&(e=u,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(h=l(u,(function(t){return s(-1===t?o.option:a[t].option)}))),this._currentMediaIndices=u,h}};var p=c;t.exports=p},33358:(t,e,n)=>{n(65523).__DEV__;var i=n(95289),r=n(87190),a=n(8595),o=a.formatTime,s=a.encodeHTML,l=a.addCommas,u=a.getTooltipMarker,h=n(63199),c=n(85532),f=n(18167),d=n(38738),p=n(61570),g=p.getLayoutParams,m=p.mergeLayoutParam,v=n(88545).createTask,y=n(49442),_=y.prepareSource,b=y.getSource,x=n(41834).retrieveRawValue,w=h.makeInner(),S=c.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(t,e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=v({count:L,reset:C}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),_(this);var r=this.getInitialData(t,n);N(r,this),this.dataTask.context.data=r,w(this).dataBeforeProcessed=r,A(this)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,r=n?g(t):{},a=this.subType;c.hasClass(a)&&(a+="Series"),i.merge(t,e.getTheme().get(this.subType)),i.merge(t,this.getDefaultOption()),h.defaultEmphasis(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&m(t,r,n)},mergeOption:function(t,e){t=i.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.layoutMode;n&&m(this.option,t,n),_(this);var r=this.getInitialData(t,e);N(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,w(this).dataBeforeProcessed=r,A(this)},fillDataTextStyle:function(t){if(t&&!i.isTypedArray(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&h.defaultEmphasis(t[n],"label",e)},getInitialData:function(){},appendData:function(t){this.getRawData().appendData(t.data)},getData:function(t){var e=I(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return w(this).data},setData:function(t){var e=I(this);if(e){var n=e.context;n.data!==t&&e.modifyOutputEnd&&e.setOutputEnd(t.count()),n.outputData=t,e!==this.dataTask&&(n.data=t)}w(this).data=t},getSource:function(){return b(this)},getRawData:function(){return w(this).dataBeforeProcessed},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e,n,r){var a=this,c="html"===(r=r||"html")?"<br/>":"\n",f="richText"===r,d={},p=0;function g(t){return{renderMode:r,content:s(l(t)),style:d}}var m=this.getData(),v=m.mapDimension("defaultedTooltip",!0),y=v.length,_=this.getRawValue(t),b=i.isArray(_),w=m.getItemVisual(t,"color");i.isObject(w)&&w.colorStops&&(w=(w.colorStops[0]||{}).color),w=w||"transparent";var S=y>1||b&&!y?function(n){var h=i.reduce(n,(function(t,e,n){var i=m.getDimensionInfo(n);return t|(i&&!1!==i.tooltip&&null!=i.displayName)}),0),c=[];function g(t,n){var i=m.getDimensionInfo(n);if(i&&!1!==i.otherDims.tooltip){var g=i.type,v="sub"+a.seriesIndex+"at"+p,y=u({color:w,type:"subItem",renderMode:r,markerId:v}),_="string"==typeof y?y:y.content,b=(h?_+s(i.displayName||"-")+": ":"")+s("ordinal"===g?t+"":"time"===g?e?"":o("yyyy/MM/dd hh:mm:ss",t):l(t));b&&c.push(b),f&&(d[v]=w,++p)}}v.length?i.each(v,(function(e){g(x(m,t,e),e)})):i.each(n,g);var y=h?f?"\n":"<br/>":"",_=y+c.join(y||", ");return{renderMode:r,content:_,style:d}}(_):g(y?x(m,t,v[0]):b?_[0]:_),A=S.content,L=a.seriesIndex+"at"+p,C=u({color:w,type:"item",renderMode:r,markerId:L});d[L]=w,++p;var P=m.getName(t),N=this.name;h.isNameSpecified(this)||(N=""),N=N?s(N)+(e?": ":c):"";var k="string"==typeof C?C:C.content;return{html:e?k+N+A:N+k+(P?s(P)+": "+A:A),markers:d}},isAnimationEnabled:function(){if(r.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel,r=f.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function A(t){var e=t.name;h.isNameSpecified(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimension("seriesName",!0),r=[];return i.each(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}(t)||e)}function L(t){return t.model.getRawData().count()}function C(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),P}function P(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function N(t,e){i.each(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,i.curry(k,e))}))}function k(t){var e=I(t);e&&e.setOutputEnd(this.count())}function I(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}i.mixin(S,d),i.mixin(S,f);var M=S;t.exports=M},20183:t=>{var e="";"undefined"!=typeof navigator&&(e=navigator.platform||"");var n={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:e.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};t.exports=n},27671:(t,e,n)=>{var i=n(81935)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),r={getAreaStyle:function(t,e){return i(this,t,e)}};t.exports=r},54350:t=>{t.exports={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}},18167:(t,e,n)=>{var i=n(63199),r=i.makeInner,a=i.normalizeToArray,o=r();var s={clearColorPalette:function(){o(this).colorIdx=0,o(this).colorNameMap={}},getColorFromPalette:function(t,e,n){var i=o(e=e||this),r=i.colorIdx||0,s=i.colorNameMap=i.colorNameMap||{};if(s.hasOwnProperty(t))return s[t];var l=a(this.get("color",!0)),u=this.get("colorLayer",!0),h=null!=n&&u?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(u,n):l;if((h=h||l)&&h.length){var c=h[r];return t&&(s[t]=c),i.colorIdx=(r+1)%h.length,c}}};t.exports=s},38738:(t,e,n)=>{var i=n(41834).retrieveRawValue,r=n(8595),a=r.getTooltipMarker,o=r.formatTpl,s=n(63199).getTooltipRenderMode,l=/\{@(.+?)\}/g,u={getDataParams:function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),l=n.getRawDataItem(t),u=n.getItemVisual(t,"color"),h=n.getItemVisual(t,"borderColor"),c=this.ecModel.getComponent("tooltip"),f=c&&c.get("renderMode"),d=s(f),p=this.mainType,g="series"===p,m=n.userOutput;return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:g?this.subType:null,seriesIndex:this.seriesIndex,seriesId:g?this.id:null,seriesName:g?this.name:null,name:o,dataIndex:r,data:l,dataType:e,value:i,color:u,borderColor:h,dimensionNames:m?m.dimensionNames:null,encode:m?m.encode:null,marker:a({color:u,renderMode:d}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,r,a){e=e||"normal";var s=this.getData(n),u=s.getItemModel(t),h=this.getDataParams(t,n);null!=r&&h.value instanceof Array&&(h.value=h.value[r]);var c=u.get("normal"===e?[a||"label","formatter"]:[e,a||"label","formatter"]);return"function"==typeof c?(h.status=e,h.dimensionIndex=r,c(h)):"string"==typeof c?o(c,h).replace(l,(function(e,n){var r=n.length;return"["===n.charAt(0)&&"]"===n.charAt(r-1)&&(n=+n.slice(1,r-1)),i(s,t,n)})):void 0},getRawValue:function(t,e){return i(this.getData(e),t)},formatTooltip:function(){}};t.exports=u},62429:(t,e,n)=>{var i=n(81935)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),r={getItemStyle:function(t,e){var n=i(this,t,e),r=this.getBorderLineDash();return r&&(n.lineDash=r),n},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}};t.exports=r},52342:(t,e,n)=>{var i=n(81935)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),r={getLineStyle:function(t){var e=i(this,t);return e.lineDash=this.getLineDash(e.lineWidth),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"!==e&&null!=e&&("dashed"===e?[i,i]:[n,n])}};t.exports=r},81935:(t,e,n)=>{var i=n(95289);t.exports=function(t){for(var e=0;e<t.length;e++)t[e][1]||(t[e][1]=t[e][0]);return function(e,n,r){for(var a={},o=0;o<t.length;o++){var s=t[o][1];if(!(n&&i.indexOf(n,s)>=0||r&&i.indexOf(r,s)<0)){var l=e.getShallow(s);null!=l&&(a[t[o][0]]=l)}}return a}}},28301:(t,e,n)=>{var i=n(43407),r=n(76442),a=["textStyle","color"],o={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(a):null)},getFont:function(){return r.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return i.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};t.exports=o},87749:(t,e,n)=>{n(65523).__DEV__;var i=n(95289),r=i.createHashMap,a=(i.retrieve,i.each);function o(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=r(),this.categoryAxisMap=r(),this.firstCategoryDimIndex=null}var s={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis")[0],a=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",a),l(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),l(a)&&(i.set("y",a),e.firstCategoryDimIndex,e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],n.set("single",r),l(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar")[0],a=r.findAxisModel("radiusAxis"),o=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),l(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),l(o)&&(i.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=o.dimensions.slice();a(o.parallelAxisIndex,(function(t,a){var o=r.getComponent("parallelAxis",t),u=s[a];n.set(u,o),l(o)&&null==e.firstCategoryDimIndex&&(i.set(u,o),e.firstCategoryDimIndex=a)}))}};function l(t){return"category"===t.get("type")}e.getCoordSysInfoBySeries=function(t){var e=t.get("coordinateSystem"),n=new o(e),i=s[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}},5518:(t,e,n)=>{var i=n(95289),r=i.each,a=i.isArray,o=i.isObject,s=n(22341),l=n(63199).normalizeToArray;function u(t){r(h,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var h=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],c=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];t.exports=function(t,e){s(t,e),t.series=l(t.series),r(t.series,(function(t){if(o(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e)null!=t.clockWise&&(t.clockwise=t.clockWise);else if("gauge"===e){var n=function(t,e){e=e.split(",");for(var n=t,i=0;i<e.length&&null!=(n=n&&n[e[i]]);i++);return n}(t,"pointer.color");null!=n&&function(t,e,n,i){e=e.split(",");for(var r,a=t,o=0;o<e.length-1;o++)null==a[r=e[o]]&&(a[r]={}),a=a[r];(i||null==a[e[o]])&&(a[e[o]]=n)}(t,"itemStyle.color",n)}u(t)}})),t.dataRange&&(t.visualMap=t.dataRange),r(c,(function(e){var n=t[e];n&&(a(n)||(n=[n]),r(n,(function(t){u(t)})))}))}},22341:(t,e,n)=>{var i=n(95289),r=n(63199),a=i.each,o=i.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=s.length;n<r;n++){var a=s[n],o=e.normal,l=e.emphasis;o&&o[a]&&(t[a]=t[a]||{},t[a].normal?i.merge(t[a].normal,o[a]):t[a].normal=o[a],o[a]=null),l&&l[a]&&(t[a]=t[a]||{},t[a].emphasis?i.merge(t[a].emphasis,l[a]):t[a].emphasis=l[a],l[a]=null)}}function u(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,a=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,i.defaults(t[e],r)):t[e]=r),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a)}}function h(t){u(t,"itemStyle"),u(t,"lineStyle"),u(t,"areaStyle"),u(t,"label"),u(t,"labelLine"),u(t,"upperLabel"),u(t,"edgeLabel")}function c(t,e){var n=o(t)&&t[e],i=o(n)&&n.textStyle;if(i)for(var a=0,s=r.TEXT_STYLE_OPTIONS.length;a<s;a++){e=r.TEXT_STYLE_OPTIONS[a];i.hasOwnProperty(e)&&(n[e]=i[e])}}function f(t){t&&(h(t),c(t,"label"),t.emphasis&&c(t.emphasis,"label"))}function d(t){return i.isArray(t)?t:t?[t]:[]}function p(t){return(i.isArray(t)?t[0]:t)||{}}t.exports=function(t,e){a(d(t.series),(function(t){o(t)&&function(t){if(o(t)){l(t),h(t),c(t,"label"),c(t,"upperLabel"),c(t,"edgeLabel"),t.emphasis&&(c(t.emphasis,"label"),c(t.emphasis,"upperLabel"),c(t.emphasis,"edgeLabel")),(n=t.markPoint)&&(l(n),f(n)),(r=t.markLine)&&(l(r),f(r));var e=t.markArea;e&&f(e);var n,r,a=t.data;if("graph"===t.type){a=a||t.nodes;var s=t.links||t.edges;if(s&&!i.isTypedArray(s))for(var d=0;d<s.length;d++)f(s[d]);i.each(t.categories,(function(t){h(t)}))}if(a&&!i.isTypedArray(a))for(d=0;d<a.length;d++)f(a[d]);if((n=t.markPoint)&&n.data){var p=n.data;for(d=0;d<p.length;d++)f(p[d])}if((r=t.markLine)&&r.data){var g=r.data;for(d=0;d<g.length;d++)i.isArray(g[d])?(f(g[d][0]),f(g[d][1])):f(g[d])}"gauge"===t.type?(c(t,"axisLabel"),c(t,"title"),c(t,"detail")):"treemap"===t.type?(u(t.breadcrumb,"itemStyle"),i.each(t.levels,(function(t){h(t)}))):"tree"===t.type&&h(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),a(n,(function(e){a(d(t[e]),(function(t){t&&(c(t,"axisLabel"),c(t.axisPointer,"label"))}))})),a(d(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;c(e,"axisLabel"),c(e&&e.axisPointer,"label")})),a(d(t.calendar),(function(t){u(t,"itemStyle"),c(t,"dayLabel"),c(t,"monthLabel"),c(t,"yearLabel")})),a(d(t.radar),(function(t){c(t,"name")})),a(d(t.geo),(function(t){o(t)&&(f(t),a(d(t.regions),(function(t){f(t)})))})),a(d(t.timeline),(function(t){f(t),u(t,"label"),u(t,"itemStyle"),u(t,"controlStyle",!0);var e=t.data;i.isArray(e)&&i.each(e,(function(t){i.isObject(t)&&(u(t,"label"),u(t,"itemStyle"))}))})),a(d(t.toolbox),(function(t){u(t,"iconStyle"),a(t.feature,(function(t){u(t,"iconStyle")}))})),c(p(t.axisPointer),"label"),c(p(t.tooltip).axisPointer,"label")}},18014:t=>{t.exports=function(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}},99610:t=>{var e={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},n=function(t,e){return Math.round(t.length/2)};t.exports=function(t){return{seriesType:t,modifyOutputEnd:!0,reset:function(t,i,r){var a=t.getData(),o=t.get("sampling"),s=t.coordinateSystem;if("cartesian2d"===s.type&&o){var l,u=s.getBaseAxis(),h=s.getOtherAxis(u),c=u.getExtent(),f=Math.abs(c[1]-c[0]),d=Math.round(a.count()/f);if(d>1)"string"==typeof o?l=e[o]:"function"==typeof o&&(l=o),l&&t.setData(a.downSample(a.mapDimension(h.dim),1/d,l,n))}}}}},54326:(t,e,n)=>{var i=n(95289),r=i.createHashMap,a=i.each;function o(t){a(t,(function(e,n){var i=[],r=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=o.map(a,(function(a,l,u){var h,c,f=o.get(e.stackedDimension,u);if(isNaN(f))return r;s?c=o.getRawIndex(u):h=o.get(e.stackedByDimension,u);for(var d=NaN,p=n-1;p>=0;p--){var g=t[p];if(s||(c=g.data.rawIndexOf(g.stackedByDimension,h)),c>=0){var m=g.data.getByRawIndex(g.stackResultDimension,c);if(f>=0&&m>0||f<=0&&m<0){f+=m,d=m;break}}}return i[0]=f,i[1]=d,i}));o.hostModel.setData(l),e.data=l}))}t.exports=function(t){var e=r();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}})),e.each(o)}},21607:(t,e,n)=>{var i=n(44261),r=n(8595),a=n(96506),o=n(23534),s=i.round,l=a.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),l.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=o.getIntervalPrecision(t)},getTicks:function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,a=[];if(!e)return a;n[0]<i[0]&&(t?a.push(s(i[0]-e,r)):a.push(n[0]));for(var o=i[0];o<=i[1]&&(a.push(o),(o=s(o+e,r))!==a[a.length-1]);)if(a.length>1e4)return[];var l=a.length?a[a.length-1]:i[1];return n[1]>l&&(t?a.push(s(l+e,r)):a.push(n[1])),a},getMinorTicks:function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),a=1;a<e.length;a++){for(var o=e[a],s=e[a-1],l=0,u=[],h=(o-s)/t;l<t-1;){var c=i.round(s+(l+1)*h);c>r[0]&&c<r[1]&&u.push(c),l++}n.push(u)}return n},getLabel:function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=i.getPrecisionSafe(t)||0:"auto"===n&&(n=this._intervalPrecision),t=s(t,n,!0),r.addCommas(t)},niceTicks:function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var a=o.intervalScaleNiceTicks(i,t,e,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=s(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=s(Math.ceil(e[1]/r)*r))}});l.create=function(){return new l};var u=l;t.exports=u},94034:(t,e,n)=>{var i=n(95289),r=n(96506),a=n(44261),o=n(21607),s=r.prototype,l=o.prototype,u=a.getPrecisionSafe,h=a.round,c=Math.floor,f=Math.ceil,d=Math.pow,p=Math.log,g=r.extend({type:"log",base:10,$constructor:function(){r.apply(this,arguments),this._originalScale=new o},getTicks:function(t){var e=this._originalScale,n=this._extent,r=e.getExtent();return i.map(l.getTicks.call(this,t),(function(t){var i=a.round(d(this.base,t));return i=t===n[0]&&e.__fixMin?m(i,r[0]):i,i=t===n[1]&&e.__fixMax?m(i,r[1]):i}),this)},getMinorTicks:l.getMinorTicks,getLabel:l.getLabel,scale:function(t){return t=s.scale.call(this,t),d(this.base,t)},setExtent:function(t,e){var n=this.base;t=p(t)/p(n),e=p(e)/p(n),l.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=s.getExtent.call(this);e[0]=d(t,e[0]),e[1]=d(t,e[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(e[0]=m(e[0],i[0])),n.__fixMax&&(e[1]=m(e[1],i[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=p(t[0])/p(e),t[1]=p(t[1])/p(e),s.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=a.quantity(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[a.round(f(e[0]/i)*i),a.round(c(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},niceExtent:function(t){l.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function m(t,e){return h(t,u(e))}i.each(["contain","normalize"],(function(t){g.prototype[t]=function(e){return e=p(e)/p(this.base),s[t].call(this,e)}})),g.create=function(){return new g};var v=g;t.exports=v},37221:(t,e,n)=>{var i=n(95289),r=n(96506),a=n(54874),o=r.prototype,s=r.extend({type:"ordinal",init:function(t,e){t&&!i.isArray(t)||(t=new a({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),o.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return o.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(o.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:i.noop,niceExtent:i.noop});s.create=function(){return new s};var l=s;t.exports=l},96506:(t,e,n)=>{var i=n(11724);function r(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}r.prototype.parse=function(t){return t},r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},r.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},r.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r.prototype.getLabel=null,i.enableClassExtend(r),i.enableClassManagement(r,{registerWhenExtend:!0});var a=r;t.exports=a},12683:(t,e,n)=>{var i=n(95289),r=n(44261),a=n(8595),o=n(23534),s=n(21607),l=s.prototype,u=Math.ceil,h=Math.floor,c=1e3,f=6e4,d=36e5,p=864e5,g=s.extend({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return a.formatTime(e[0],n,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=p,e[1]+=p),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-p}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=r.round(h(e[0]/i)*i)),t.fixMax||(e[1]=r.round(u(e[1]/i)*i))},niceTicks:function(t,e,n){t=t||10;var i=this._extent,a=i[1]-i[0],s=a/t;null!=e&&s<e&&(s=e),null!=n&&s>n&&(s=n);var l=m.length,c=function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}(m,s,0,l),f=m[Math.min(c,l-1)],d=f[1];if("year"===f[0]){var p=a/d;d*=r.nice(p/t,!0)}var g=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,v=[Math.round(u((i[0]-g)/d)*d+g),Math.round(h((i[1]-g)/d)*d+g)];o.fixExtent(v,i),this._stepLvl=f,this._interval=d,this._niceExtent=v},parse:function(t){return+r.parseDate(t)}});i.each(["contain","normalize"],(function(t){g.prototype[t]=function(e){return l[t].call(this,this.parse(e))}}));var m=[["hh:mm:ss",c],["hh:mm:ss",5e3],["hh:mm:ss",1e4],["hh:mm:ss",15e3],["hh:mm:ss",3e4],["hh:mm\nMM-dd",f],["hh:mm\nMM-dd",3e5],["hh:mm\nMM-dd",6e5],["hh:mm\nMM-dd",9e5],["hh:mm\nMM-dd",18e5],["hh:mm\nMM-dd",d],["hh:mm\nMM-dd",72e5],["hh:mm\nMM-dd",216e5],["hh:mm\nMM-dd",432e5],["MM-dd\nyyyy",p],["MM-dd\nyyyy",1728e5],["MM-dd\nyyyy",2592e5],["MM-dd\nyyyy",3456e5],["MM-dd\nyyyy",432e6],["MM-dd\nyyyy",5184e5],["week",6048e5],["MM-dd\nyyyy",864e6],["week",12096e5],["week",18144e5],["month",26784e5],["week",36288e5],["month",53568e5],["week",6048e6],["quarter",8208e6],["month",107136e5],["month",13392e6],["half-year",16416e6],["month",214272e5],["month",26784e6],["year",32832e6]];g.create=function(t){return new g({useUTC:t.ecModel.get("useUTC")})};var v=g;t.exports=v},23534:(t,e,n)=>{var i=n(44261),r=i.round;function a(t){return i.getPrecisionSafe(t)+2}function o(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function s(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),o(t,0,e),o(t,1,e),t[0]>t[1]&&(t[0]=t[1])}e.intervalScaleNiceTicks=function(t,e,n,o){var l={},u=t[1]-t[0],h=l.interval=i.nice(u/e,!0);null!=n&&h<n&&(h=l.interval=n),null!=o&&h>o&&(h=l.interval=o);var c=l.intervalPrecision=a(h);return s(l.niceTickExtent=[r(Math.ceil(t[0]/h)*h,c),r(Math.floor(t[1]/h)*h,c)],t),l},e.getIntervalPrecision=a,e.fixExtent=s},3379:(t,e,n)=>{var i=n(95289),r=i.each,a=i.map,o=i.isFunction,s=i.createHashMap,l=i.noop,u=n(88545).createTask,h=n(79865).getUID,c=n(87380),f=n(69498),d=n(63199).normalizeToArray;function p(t,e,n,i){this.ecInstance=t,this.api=e,this.unfinished;n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice();this._allHandlers=n.concat(i),this._stageTaskMap=s()}var g=p.prototype;function m(t,e,n,i,a){var o;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}a=a||{},r(e,(function(e,r){if(!a.visualType||a.visualType===e.visualType){var l=t._stageTaskMap.get(e.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,f=h.agentStubMap;f.each((function(t){s(a,t)&&(t.dirty(),c=!0)})),c&&h.dirty(),v(h,i);var d=t.getPerformArgs(h,a.block);f.each((function(t){t.perform(d)})),o|=h.perform(d)}else u&&u.each((function(r,l){s(a,r)&&r.dirty();var u=t.getPerformArgs(r,a.block);u.skip=!e.performRawSeries&&n.isSeriesFiltered(r.context.model),v(r,i),o|=r.perform(u)}))}})),t.unfinished|=o}g.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},g.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,a=i&&i.modDataCount;return{step:r,modBy:null!=a?Math.ceil(a/r):null,modDataCount:a}}},g.getPipeline=function(t){return this._pipelineMap.get(t)},g.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),o="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:o,large:a}},g.restorePipelines=function(t){var e=this,n=e._pipelineMap=s();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),P(e,t,t.dataTask)}))},g.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),n=this.api;r(this._allHandlers,(function(i){var a=t.get(i.uid)||t.set(i.uid,[]);i.reset&&function(t,e,n,i,r){var a=n.seriesTaskMap||(n.seriesTaskMap=s()),o=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(h):o?i.eachRawSeriesByType(o,h):l&&l(i,r).each(h);function h(n){var o=n.uid,s=a.get(o)||a.set(o,u({plan:w,reset:S,count:C}));s.context={model:n,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},P(t,n,s)}var c=t._pipelineMap;a.each((function(t,e){c.get(e)||(t.dispose(),a.removeKey(e))}))}(this,i,a,e,n),i.overallReset&&function(t,e,n,i,a){var o=n.overallTask=n.overallTask||u({reset:y});o.context={ecModel:i,api:a,overallReset:e.overallReset,scheduler:t};var l=o.agentStubMap=o.agentStubMap||s(),h=e.seriesType,c=e.getTargetSeries,f=!0,d=e.modifyOutputEnd;h?i.eachRawSeriesByType(h,p):c?c(i,a).each(p):(f=!1,r(i.getSeries(),p));function p(e){var n=e.uid,i=l.get(n);i||(i=l.set(n,u({reset:_,onDirty:x})),o.dirty()),i.context={model:e,overallProgress:f,modifyOutputEnd:d},i.agent=o,i.__block=f,P(t,e,i)}var g=t._pipelineMap;l.each((function(t,e){g.get(e)||(t.dispose(),o.dirty(),l.removeKey(e))}))}(this,i,a,e,n)}),this)},g.prepareView=function(t,e,n,i){var r=t.renderTask,a=r.context;a.model=e,a.ecModel=n,a.api=i,r.__block=!t.incrementalPrepareRender,P(this,e,r)},g.performDataProcessorTasks=function(t,e){m(this,this._dataProcessorHandlers,t,e,{block:!0})},g.performVisualTasks=function(t,e,n){m(this,this._visualHandlers,t,e,n)},g.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e|=t.dataTask.perform()})),this.unfinished|=e},g.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))};var v=g.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};function y(t){t.overallReset(t.ecModel,t.api,t.payload)}function _(t,e){return t.overallProgress&&b}function b(){this.agent.dirty(),this.getDownstream().dirty()}function x(){this.agent&&this.agent.dirty()}function w(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function S(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=d(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?a(e,(function(t,e){return L(e)})):A}var A=L(0);function L(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var a=e.start;a<e.end;a++)r.dataEach(i,a);else r&&r.progress&&r.progress(e,i)}}function C(t){return t.data.count()}function P(t,e,n){var i=e.uid,r=t._pipelineMap.get(i);!r.head&&(r.head=n),r.tail&&r.tail.pipe(n),r.tail=n,n.__idxInPipeline=r.count++,n.__pipeline=r}function N(t){k=null;try{t(I,M)}catch(t){}return k}p.wrapStageHandler=function(t,e){return o(t)&&(t={overallReset:t,seriesType:N(t)}),t.uid=h("stageHandler"),e&&(t.visualType=e),t};var k,I={},M={};function T(t,e){for(var n in e.prototype)t[n]=l}T(I,c),T(M,f),I.eachSeriesByType=I.eachRawSeriesByType=function(t){k=t},I.eachComponent=function(t){"series"===t.mainType&&t.subType&&(k=t.subType)};var D=p;t.exports=D},88545:(t,e,n)=>{var i=n(95289),r=(i.assert,i.isArray);n(65523).__DEV__;function a(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}var o=a.prototype;o.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,s=f(this._modBy),u=this._modDataCount||0,h=f(t&&t.modBy),c=t&&t.modDataCount||0;function f(t){return!(t>=1)&&(t=1),t}s===h&&u===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=function(t,e){var n,i;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!e&&t._reset&&((n=t._reset(t.context))&&n.progress&&(i=n.forceFirstProgress,n=n.progress),r(n)&&!n.length&&(n=null));t._progress=n,t._modBy=t._modDataCount=null;var a=t._downstream;return a&&a.dirty(),i}(this,i)),this._modBy=h,this._modDataCount=c;var d=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,g=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(o||p<g)){var m=this._progress;if(r(m))for(var v=0;v<m.length;v++)l(this,m[v],p,g,h,c);else l(this,m,p,g,h,c)}this._dueIndex=g;var y=null!=this._settedOutputEnd?this._settedOutputEnd:g;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var s=function(){var t,e,n,i,r,a={reset:function(l,u,h,c){e=l,t=u,n=h,i=c,r=Math.ceil(i/n),a.next=n>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var a=e%r*n+Math.ceil(e/r),o=e>=t?null:a<i?a:e;return e++,o}}();function l(t,e,n,i,r,a){s.reset(n,i,r,a),t._callingProgress=e,t._callingProgress({start:n,end:i,count:i-n,next:s.next},t.context)}o.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},o.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},o.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},o.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},o.getUpstream=function(){return this._upstream},o.getDownstream=function(){return this._downstream},o.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e.createTask=function(t){return new a(t)}},95239:t=>{var e="#eee",n=function(){return{axisLine:{lineStyle:{color:e}},axisTick:{lineStyle:{color:e}},axisLabel:{textStyle:{color:e}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:e}}}},i=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],r={color:i,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:e},crossStyle:{color:e},label:{color:"#000"}}},legend:{textStyle:{color:e}},textStyle:{color:e},title:{textStyle:{color:e}},toolbox:{iconStyle:{normal:{borderColor:e}}},dataZoom:{textStyle:{color:e}},visualMap:{textStyle:{color:e}},timeline:{lineStyle:{color:e},itemStyle:{normal:{color:i[1]}},label:{normal:{textStyle:{color:e}}},controlStyle:{normal:{color:e,borderColor:e}}},timeAxis:n(),logAxis:n(),valueAxis:n(),categoryAxis:n(),line:{symbol:"circle"},graph:{color:i},gauge:{title:{textStyle:{color:e}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};r.categoryAxis.splitLine.show=!1;var a=r;t.exports=a},27663:t=>{var e=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],n={color:e,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],e]};t.exports=n},11724:(t,e,n)=>{n(65523).__DEV__;var i=n(95289),r=".",a="___EC__COMPONENT__CONTAINER___";function o(t){var e={main:"",sub:""};return t&&(t=t.split(r),e.main=t[0]||"",e.sub=t[1]||""),e}var s=0;function l(t,e){var n=i.slice(arguments,2);return this.superClass.prototype[e].apply(t,n)}function u(t,e,n){return this.superClass.prototype[e].apply(t,n)}e.parseClassType=o,e.enableClassExtend=function(t,e){t.$constructor=t,t.extend=function(t){var e=this,n=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return i.extend(n.prototype,t),n.extend=this.extend,n.superCall=l,n.superApply=u,i.inherits(n,this),n.superClass=e,n}},e.enableClassCheck=function(t){var e=["__\0is_clz",s++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}},e.enableClassManagement=function(t,e){e=e||{};var n={};if(t.registerClass=function(t,e){if(e)if(function(t){i.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}(e),(e=o(e)).sub){if(e.sub!==a){var r=function(t){var e=n[t.main];e&&e[a]||((e=n[t.main]={})[a]=!0);return e}(e);r[e.sub]=t}}else n[e.main]=t;return t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[a]&&(r=e?r[e]:null),i&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){t=o(t);var e=[],r=n[t.main];return r&&r[a]?i.each(r,(function(t,n){n!==a&&e.push(t)})):e.push(r),e},t.hasClass=function(t){return t=o(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return i.each(n,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){t=o(t);var e=n[t.main];return e&&e[a]},t.parseClassType=o,e.registerWhenExtend){var r=t.extend;r&&(t.extend=function(e){var n=r.call(this,e);return t.registerClass(n,e.type)})}return t},e.setReadOnly=function(t,e){}},79865:(t,e,n)=>{var i=n(95289),r=n(11724).parseClassType,a=0;e.getUID=function(t){return[t||"",a++,Math.random().toFixed(5)].join("_")},e.enableSubTypeDefaulter=function(t){var e={};return t.registerSubTypeDefaulter=function(t,n){t=r(t),e[t.main]=n},t.determineSubType=function(n,i){var a=i.type;if(!a){var o=r(n).main;t.hasSubTypes(n)&&e[o]&&(a=e[o](i))}return a},t},e.enableTopologicalTravel=function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,r,a,o){if(t.length){var s=function(t){var r={},a=[];return i.each(t,(function(o){var s=n(r,o),l=function(t,e){var n=[];return i.each(t,(function(t){i.indexOf(e,t)>=0&&n.push(t)})),n}(s.originalDeps=e(o),t);s.entryCount=l.length,0===s.entryCount&&a.push(o),i.each(l,(function(t){i.indexOf(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(r,t);i.indexOf(e.successor,t)<0&&e.successor.push(o)}))})),{graph:r,noEntryList:a}}(r),l=s.graph,u=s.noEntryList,h={};for(i.each(t,(function(t){h[t]=!0}));u.length;){var c=u.pop(),f=l[c],d=!!h[c];d&&(a.call(o,c,f.originalDeps.slice()),delete h[c]),i.each(f.successor,d?g:p)}i.each(h,(function(){throw new Error("Circle dependency may exists")}))}function p(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){h[t]=!0,p(t)}}}},8595:(t,e,n)=>{var i=n(95289),r=n(43407),a=n(44261);var o=i.normalizeCssArray,s=/([&<>"'])/g,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function u(t){return null==t?"":(t+"").replace(s,(function(t,e){return l[e]}))}var h=["a","b","c","d","e","f","g"],c=function(t,e){return"{"+t+(null==e?"":e)+"}"};function f(t,e){return"0000".substr(0,e-(t+="").length)+t}var d=r.truncateText;e.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},e.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},e.normalizeCssArray=o,e.encodeHTML=u,e.formatTpl=function(t,e,n){i.isArray(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],o=0;o<a.length;o++){var s=h[o];t=t.replace(c(s),c(s,0))}for(var l=0;l<r;l++)for(var f=0;f<a.length;f++){var d=e[l][a[f]];t=t.replace(c(h[f],l),n?u(d):d)}return t},e.formatTplSimple=function(t,e,n){return i.each(e,(function(e,i){t=t.replace("{"+i+"}",n?u(e):e)})),t},e.getTooltipMarker=function(t,e){var n=(t=i.isString(t)?{color:t,extraCssText:e}:t||{}).color,r=t.type,a=(e=t.extraCssText,t.renderMode||"html"),o=t.markerId||"X";return n?"html"===a?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+u(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+u(n)+";"+(e||"")+'"></span>':{renderMode:a,content:"{marker"+o+"|}  ",style:{color:n}}:""},e.formatTime=function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=a.parseDate(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),s=i["get"+r+"Month"]()+1,l=i["get"+r+"Date"](),u=i["get"+r+"Hours"](),h=i["get"+r+"Minutes"](),c=i["get"+r+"Seconds"](),d=i["get"+r+"Milliseconds"]();return t=t.replace("MM",f(s,2)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",f(l,2)).replace("d",l).replace("hh",f(u,2)).replace("h",u).replace("mm",f(h,2)).replace("m",h).replace("ss",f(c,2)).replace("s",c).replace("SSS",f(d,3))},e.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},e.truncateText=d,e.getTextBoundingRect=function(t){return r.getBoundingRect(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)},e.getTextRect=function(t,e,n,i,a,o,s,l){return r.getBoundingRect(t,e,n,i,a,l,o,s)},e.windowOpen=function(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location=t}else window.open(t,e)}},76442:(t,e,n)=>{var i=n(95289),r=n(15009),a=n(56607),o=n(13388),s=n(31138),l=n(66343),u=n(38051),h=n(1635);e.Image=h;var c=n(75738);e.Group=c;var f=n(21927);e.Text=f;var d=n(30074);e.Circle=d;var p=n(91036);e.Sector=p;var g=n(39496);e.Ring=g;var m=n(24570);e.Polygon=m;var v=n(65542);e.Polyline=v;var y=n(15404);e.Rect=y;var _=n(91636);e.Line=_;var b=n(77402);e.BezierCurve=b;var x=n(64336);e.Arc=x;var w=n(24582);e.CompoundPath=w;var S=n(25113);e.LinearGradient=S;var A=n(78051);e.RadialGradient=A;var L=n(39587);e.BoundingRect=L;var C=n(48458);e.IncrementalDisplayable=C;var P=n(32250),N=Math.max,k=Math.min,I={},M=1,T="emphasis",D="normal",O=1,F={},R={};function E(t,e){R[t]=e}function B(t,e,n,i){var a=r.createFromString(t,e);return n&&("center"===i&&(n=z(n,a.getBoundingRect())),q(a,n)),a}function z(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var j=r.mergePath;function q(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}var H=P.subPixelOptimize;function W(t){return null!=t&&"none"!==t}var U=i.createHashMap(),V=0;function G(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var n=t.__zr,i=t.useHoverLayer&&n&&"canvas"===n.painter.type;if(t.__highlighted=i?"layer":"plain",!(t.isGroup||!n&&t.useHoverLayer)){var r=t,a=t.style;i&&(a=(r=n.addHover(t)).style),lt(a),i||function(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var n=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var i=t.style;for(var r in e)null!=e[r]&&(n[r]=i[r]);n.fill=i.fill,n.stroke=i.stroke}else t.__cachedNormalStl=t.__cachedNormalZ2=null}}(r),a.extendFrom(e),Y(a,e,"fill"),Y(a,e,"stroke"),st(a),i||(t.dirty(!1),t.z2+=M)}}}function Y(t,e,n){!W(e[n])&&W(t[n])&&(t[n]=function(t){if("string"!=typeof t)return t;var e=U.get(t);return e||(e=a.lift(t,-.1),V<1e4&&(U.set(t,e),V++)),e}(t[n]))}function X(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var n=t.style,i=t.__cachedNormalStl;i&&(lt(n),t.setStyle(i),st(n));var r=t.__cachedNormalZ2;null!=r&&t.z2-r===M&&(t.z2=r)}}function $(t,e,n){var i,r=D,a=D;t.__highlighted&&(r=T,i=!0),e(t,n),t.__highlighted&&(a=T,i=!0),t.isGroup&&t.traverse((function(t){!t.isGroup&&e(t,n)})),i&&t.__highDownOnUpdate&&t.__highDownOnUpdate(r,a)}function K(t,e){e=t.__hoverStl=!1!==e&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,X(t),G(t))}function J(t){!et(this,t)&&!this.__highByOuter&&$(this,G)}function Z(t){!et(this,t)&&!this.__highByOuter&&$(this,X)}function Q(t){this.__highByOuter|=1<<(t||0),$(this,G)}function tt(t){!(this.__highByOuter&=~(1<<(t||0)))&&$(this,X)}function et(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function nt(t,e){var n=!1===e;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!n||t.__highDownDispatcher){var i=n?"off":"on";t[i]("mouseover",J)[i]("mouseout",Z),t[i]("emphasis",Q)[i]("normal",tt),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!n}}function it(t,e,n,r,a){return rt(t,e,r,a),n&&i.extend(t,n),t}function rt(t,e,n,r){if((n=n||I).isRectText){var a;n.getTextPosition?a=n.getTextPosition(e,r):"outside"===(a=e.getShallow("position")||(r?null:"inside"))&&(a="top"),t.textPosition=a,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=i.retrieve2(e.getShallow("distance"),r?null:5)}var s,l=e.ecModel,u=l&&l.option.textStyle,h=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||I).rich;if(n)for(var i in e=e||{},n)n.hasOwnProperty(i)&&(e[i]=1);t=t.parentModel}return e}(e);if(h)for(var c in s={},h)if(h.hasOwnProperty(c)){var f=e.getModel(["rich",c]);at(s[c]={},f,u,n,r)}return t.rich=s,at(t,e,u,n,r,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),t}function at(t,e,n,r,a,o){n=!a&&n||I,t.textFill=ot(e.getShallow("color"),r)||n.color,t.textStroke=ot(e.getShallow("textBorderColor"),r)||n.textBorderColor,t.textStrokeWidth=i.retrieve2(e.getShallow("textBorderWidth"),n.textBorderWidth),a||(o&&(t.insideRollbackOpt=r,st(t)),null==t.textFill&&(t.textFill=r.autoColor)),t.fontStyle=e.getShallow("fontStyle")||n.fontStyle,t.fontWeight=e.getShallow("fontWeight")||n.fontWeight,t.fontSize=e.getShallow("fontSize")||n.fontSize,t.fontFamily=e.getShallow("fontFamily")||n.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),o&&r.disableBox||(t.textBackgroundColor=ot(e.getShallow("backgroundColor"),r),t.textPadding=e.getShallow("padding"),t.textBorderColor=ot(e.getShallow("borderColor"),r),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||n.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||n.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||n.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function ot(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function st(t){var e,n=t.textPosition,i=t.insideRollbackOpt;if(i&&null==t.textFill){var r=i.autoColor,a=i.isRectText,o=i.useInsideStyle,s=!1!==o&&(!0===o||a&&n&&"string"==typeof n&&n.indexOf("inside")>=0),l=!s&&null!=r;(s||l)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),s&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=r,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),l&&(t.textFill=r)}t.insideRollback=e}function lt(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function ut(t,e,n,i,r,a){if("function"==typeof r&&(a=r,r=null),i&&i.isAnimationEnabled()){var o=t?"Update":"",s=i.getShallow("animationDuration"+o),l=i.getShallow("animationEasing"+o),u=i.getShallow("animationDelay"+o);"function"==typeof u&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"==typeof s&&(s=s(r)),s>0?e.animateTo(n,s,u||0,l,a,!!a):(e.stopAnimation(),e.attr(n),a&&a())}else e.stopAnimation(),e.attr(n),a&&a()}function ht(t,e,n,i,r){ut(!0,t,e,n,i,r)}function ct(t,e,n){return e&&!i.isArrayLike(e)&&(e=u.getLocalTransform(e)),n&&(e=o.invert([],e)),s.applyTransform([],t,e)}function ft(t,e,n,i,r,a,o,s){var l,u=n-t,h=i-e,c=o-r,f=s-a,d=dt(c,f,u,h);if((l=d)<=1e-6&&l>=-1e-6)return!1;var p=t-r,g=e-a,m=dt(p,g,u,h)/d;if(m<0||m>1)return!1;var v=dt(p,g,c,f)/d;return!(v<0||v>1)}function dt(t,e,n,i){return t*i-n*e}E("circle",d),E("sector",p),E("ring",g),E("polygon",m),E("polyline",v),E("rect",y),E("line",_),E("bezierCurve",b),E("arc",x),e.Z2_EMPHASIS_LIFT=M,e.CACHED_LABEL_STYLE_PROPERTIES={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},e.extendShape=function(t){return l.extend(t)},e.extendPath=function(t,e){return r.extendFromString(t,e)},e.registerShape=E,e.getShapeClass=function(t){if(R.hasOwnProperty(t))return R[t]},e.makePath=B,e.makeImage=function(t,e,n){var i=new h({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(z(e,r))}}});return i},e.mergePath=j,e.resizePath=q,e.subPixelOptimizeLine=function(t){return P.subPixelOptimizeLine(t.shape,t.shape,t.style),t},e.subPixelOptimizeRect=function(t){return P.subPixelOptimizeRect(t.shape,t.shape,t.style),t},e.subPixelOptimize=H,e.setElementHoverStyle=K,e.setHoverStyle=function(t,e){nt(t,!0),$(t,K,e)},e.setAsHighDownDispatcher=nt,e.isHighDownDispatcher=function(t){return!(!t||!t.__highDownDispatcher)},e.getHighlightDigit=function(t){var e=F[t];return null==e&&O<=32&&(e=F[t]=O++),e},e.setLabelStyle=function(t,e,n,r,a,o,s){var l,u=(a=a||I).labelFetcher,h=a.labelDataIndex,c=a.labelDimIndex,f=a.labelProp,d=n.getShallow("show"),p=r.getShallow("show");(d||p)&&(u&&(l=u.getFormattedLabel(h,"normal",null,c,f)),null==l&&(l=i.isFunction(a.defaultText)?a.defaultText(h,a):a.defaultText));var g=d?l:null,m=p?i.retrieve2(u?u.getFormattedLabel(h,"emphasis",null,c,f):null,l):null;null==g&&null==m||(it(t,n,o,a),it(e,r,s,a,!0)),t.text=g,e.text=m},e.modifyLabelStyle=function(t,e,n){var r=t.style;e&&(lt(r),t.setStyle(e),st(r)),r=t.__hoverStl,n&&r&&(lt(r),i.extend(r,n),st(r))},e.setTextStyle=it,e.setText=function(t,e,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,rt(t,e,r,i)},e.getFont=function(t,e){var n=e&&e.getModel("textStyle");return i.trim([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))},e.updateProps=ht,e.initProps=function(t,e,n,i,r){ut(!1,t,e,n,i,r)},e.getTransform=function(t,e){for(var n=o.identity([]);t&&t!==e;)o.mul(n,t.getLocalTransform(),n),t=t.parent;return n},e.applyTransform=ct,e.transformDirection=function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return a=ct(a,e,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"},e.groupTransition=function(t,e,n,r){if(t&&e){var a,o=(a={},t.traverse((function(t){!t.isGroup&&t.anid&&(a[t.anid]=t)})),a);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var i=l(t);t.attr(l(e)),ht(t,i,n,t.dataIndex)}}}))}function l(t){var e={position:s.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=i.extend({},t.shape)),e}},e.clipPointsByRect=function(t,e){return i.map(t,(function(t){var n=t[0];n=N(n,e.x),n=k(n,e.x+e.width);var i=t[1];return i=N(i,e.y),[n,i=k(i,e.y+e.height)]}))},e.clipRectByRect=function(t,e){var n=N(t.x,e.x),i=k(t.x+t.width,e.x+e.width),r=N(t.y,e.y),a=k(t.y+t.height,e.y+e.height);if(i>=n&&a>=r)return{x:n,y:r,width:i-n,height:a-r}},e.createIcon=function(t,e,n){var r=(e=i.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),i.defaults(r,n),new h(e)):B(t.replace("path://",""),e,n,"center")},e.linePolygonIntersect=function(t,e,n,i,r){for(var a=0,o=r[r.length-1];a<r.length;a++){var s=r[a];if(ft(t,e,n,i,s[0],s[1],o[0],o[1]))return!0;o=s}},e.lineLineIntersect=ft},61570:(t,e,n)=>{var i=n(95289),r=n(39587),a=n(44261).parsePercent,o=n(8595),s=i.each,l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function h(t,e,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var h,c,f=l.position,d=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var m=d.width+(g?-g.x+d.x:0);(h=a+m)>i||l.newline?(a=0,h=m,o+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(g?-g.y+d.y:0);(c=o+v)>r||l.newline?(a+=s+n,o=0,c=v,s=d.width):s=Math.max(s,d.width)}l.newline||(f[0]=a,f[1]=o,"horizontal"===t?a=h+n:o=c+n)}))}var c=h,f=i.curry(h,"vertical"),d=i.curry(h,"horizontal");function p(t,e,n){n=o.normalizeCssArray(n||0);var i=e.width,s=e.height,l=a(t.left,i),u=a(t.top,s),h=a(t.right,i),c=a(t.bottom,s),f=a(t.width,i),d=a(t.height,s),p=n[2]+n[0],g=n[1]+n[3],m=t.aspect;switch(isNaN(f)&&(f=i-h-g-l),isNaN(d)&&(d=s-c-p-u),null!=m&&(isNaN(f)&&isNaN(d)&&(m>i/s?f=.8*i:d=.8*s),isNaN(f)&&(f=m*d),isNaN(d)&&(d=f/m)),isNaN(l)&&(l=i-h-f-g),isNaN(u)&&(u=s-c-d-p),t.left||t.right){case"center":l=i/2-f/2-n[3];break;case"right":l=i-f-g}switch(t.top||t.bottom){case"middle":case"center":u=s/2-d/2-n[0];break;case"bottom":u=s-d-p}l=l||0,u=u||0,isNaN(f)&&(f=i-g-l-(h||0)),isNaN(d)&&(d=s-p-u-(c||0));var v=new r(l+n[3],u+n[0],f,d);return v.margin=n,v}function g(t,e){return e&&t&&s(l,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}e.LOCATION_PARAMS=l,e.HV_NAMES=u,e.box=c,e.vbox=f,e.hbox=d,e.getAvailableSize=function(t,e,n){var i=e.width,r=e.height,s=a(t.x,i),l=a(t.y,r),u=a(t.x2,i),h=a(t.y2,r);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=i),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(h)||isNaN(parseFloat(t.y2)))&&(h=r),n=o.normalizeCssArray(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(h-l-n[0]-n[2],0)}},e.getLayoutRect=p,e.positionElement=function(t,e,n,a,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||"all";if(s||l){var h;if("raw"===u)h="group"===t.type?new r(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(h=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(h=h.clone()).applyTransform(c)}e=p(i.defaults({width:h.width,height:h.height},e),n,a);var f=t.position,d=s?e.x-h.x:0,g=l?e.y-h.y:0;t.attr("position","raw"===u?[d,g]:[f[0]+d,f[1]+g])}},e.sizeCalculable=function(t,e){return null!=t[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[e][2]]},e.mergeLayoutParam=function(t,e,n){!i.isObject(n)&&(n={});var r=n.ignoreSize;!i.isArray(r)&&(r=[r,r]);var a=l(u[0],0),o=l(u[1],1);function l(n,i){var a={},o=0,l={},u=0;if(s(n,(function(e){l[e]=t[e]})),s(n,(function(t){h(e,t)&&(a[t]=l[t]=e[t]),c(a,t)&&o++,c(l,t)&&u++})),r[i])return c(e,n[1])?l[n[2]]=null:c(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&o){if(o>=2)return a;for(var f=0;f<n.length;f++){var d=n[f];if(!h(a,d)&&h(t,d)){a[d]=t[d];break}}return a}return l}function h(t,e){return t.hasOwnProperty(e)}function c(t,e){return null!=t[e]&&"auto"!==t[e]}function f(t,e,n){s(t,(function(t){e[t]=n[t]}))}f(u[0],t,a),f(u[1],t,o)},e.getLayoutParams=function(t){return g({},t)},e.copyLayoutParams=g},63199:(t,e,n)=>{var i=n(95289),r=n(87190),a=i.each,o=i.isObject,s=i.isArray,l="series\0";function u(t){return t instanceof Array?t:null==t?[]:[t]}function h(t){return o(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}var c=0;function f(t,e){return t&&t.hasOwnProperty(e)}e.normalizeToArray=u,e.defaultEmphasis=function(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var a=n[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}},e.TEXT_STYLE_OPTIONS=["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"],e.getDataItemValue=function(t){return!o(t)||s(t)||t instanceof Date?t:t.value},e.isDataItemOption=function(t){return o(t)&&!(t instanceof Array)},e.mappingToExists=function(t,e){e=(e||[]).slice();var n=i.map(t||[],(function(t,e){return{exist:t}}));return a(e,(function(t,i){if(o(t)){for(var r=0;r<n.length;r++)if(!n[r].option&&null!=t.id&&n[r].exist.id===t.id+"")return n[r].option=t,void(e[i]=null);for(r=0;r<n.length;r++){var a=n[r].exist;if(!(n[r].option||null!=a.id&&null!=t.id||null==t.name||h(t)||h(a)||a.name!==t.name+""))return n[r].option=t,void(e[i]=null)}}})),a(e,(function(t,e){if(o(t)){for(var i=0;i<n.length;i++){var r=n[i].exist;if(!n[i].option&&!h(r)&&null==t.id){n[i].option=t;break}}i>=n.length&&n.push({option:t})}})),n},e.makeIdAndName=function(t){var e=i.createHashMap();a(t,(function(t,n){var i=t.exist;i&&e.set(i.id,t)})),a(t,(function(t,n){var r=t.option;i.assert(!r||null==r.id||!e.get(r.id)||e.get(r.id)===t,"id duplicates: "+(r&&r.id)),r&&null!=r.id&&e.set(r.id,t),!t.keyInfo&&(t.keyInfo={})})),a(t,(function(t,n){var i=t.exist,r=t.option,a=t.keyInfo;if(o(r)){if(a.name=null!=r.name?r.name+"":i?i.name:l+n,i)a.id=i.id;else if(null!=r.id)a.id=r.id+"";else{var s=0;do{a.id="\0"+a.name+"\0"+s++}while(e.get(a.id))}e.set(a.id,t)}}))},e.isNameSpecified=function(t){var e=t.name;return!(!e||!e.indexOf(l))},e.isIdInner=h,e.compressBatches=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[a(n),a(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++)for(var a=t[i].seriesId,o=u(t[i].dataIndex),s=n&&n[a],l=0,h=o.length;l<h;l++){var c=o[l];s&&s[c]?s[c]=null:(e[a]||(e[a]={}))[c]=1}}function a(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=a(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}},e.queryDataIndex=function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?i.isArray(e.dataIndex)?i.map(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?i.isArray(e.name)?i.map(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0},e.makeInner=function(){var t="__\0ec_inner_"+c+++"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}},e.parseFinder=function(t,e,n){if(i.isString(e)){var r={};r[e+"Index"]=0,e=r}var o=n&&n.defaultMainType;!o||f(e,o+"Index")||f(e,o+"Id")||f(e,o+"Name")||(e[o+"Index"]=0);var s={};return a(e,(function(r,a){r=e[a];if("dataIndex"!==a&&"dataIndexInside"!==a){var o=a.match(/^(\w+)(Index|Id|Name)$/)||[],l=o[1],u=(o[2]||"").toLowerCase();if(!(!l||!u||null==r||"index"===u&&"none"===r||n&&n.includeMainTypes&&i.indexOf(n.includeMainTypes,l)<0)){var h={mainType:l};"index"===u&&"all"===r||(h[u]=r);var c=t.queryComponents(h);s[l+"Models"]=c,s[l+"Model"]=c[0]}}else s[a]=r})),s},e.setAttribute=function(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n},e.getAttribute=function(t,e){return t.getAttribute?t.getAttribute(e):t[e]},e.getTooltipRenderMode=function(t){return"auto"===t?r.domSupported?"html":"richText":t||"html"},e.groupData=function(t,e){var n=i.createHashMap(),r=[];return i.each(t,(function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)})),{keys:r,buckets:n}}},44261:(t,e,n)=>{var i=n(95289),r=1e-4;var a=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function o(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}e.linearMap=function(t,e,n,i){var r=e[1]-e[0],a=n[1]-n[0];if(0===r)return 0===a?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*a+n[0]},e.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n},e.round=function(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t},e.asc=function(t){return t.sort((function(t,e){return t-e})),t},e.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},e.getPrecisionSafe=function(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return i<0?-i:0}var r=e.indexOf(".");return r<0?0:e.length-1-r},e.getPixelPrecision=function(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),a=Math.round(n(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20},e.getPercentWithPrecision=function(t,e,n){if(!t[e])return 0;var r=i.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;for(var a=Math.pow(10,n),o=i.map(t,(function(t){return(isNaN(t)?0:t)/r*a*100})),s=100*a,l=i.map(o,(function(t){return Math.floor(t)})),u=i.reduce(l,(function(t,e){return t+e}),0),h=i.map(o,(function(t,e){return t-l[e]}));u<s;){for(var c=Number.NEGATIVE_INFINITY,f=null,d=0,p=h.length;d<p;++d)h[d]>c&&(c=h[d],f=d);++l[f],h[f]=0,++u}return l[e]/a},e.MAX_SAFE_INTEGER=9007199254740991,e.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},e.isRadianAroundZero=function(t){return t>-1e-4&&t<r},e.parseDate=function(t){if(t instanceof Date)return t;if("string"==typeof t){var e=a.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))},e.quantity=function(t){return Math.pow(10,o(t))},e.quantityExponent=o,e.nice=function(t,e){var n=o(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t},e.quantile=function(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],a=n-i;return a?r+a*(t[i]-r):r},e.reformIntervals=function(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,a=t[i].close,o=0;o<2;o++)r[o]<=e&&(r[o]=e,a[o]=o?1:1-n),e=r[o],n=a[o];r[0]===r[1]&&a[0]*a[1]!=1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]==(n?-1:1)||!n&&s(t,e,1))}},e.isNumeric=function(t){return t-parseFloat(t)>=0}},83759:(t,e,n)=>{var i=(0,n(76442).extendShape)({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=.5*(a-r),s=r+o,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=Math.cos(l),f=Math.sin(l),d=Math.cos(u),p=Math.sin(u);(h?u-l<2*Math.PI:l-u<2*Math.PI)&&(t.moveTo(c*r+n,f*r+i),t.arc(c*s+n,f*s+i,o,-Math.PI+l,l,!h)),t.arc(n,i,a,l,u,!h),t.moveTo(d*a+n,p*a+i),t.arc(d*s+n,p*s+i,o,u-2*Math.PI,u-Math.PI,!h),0!==r&&(t.arc(n,i,r,u,l,h),t.moveTo(c*r+n,p*r+i)),t.closePath()}});t.exports=i},22864:(t,e,n)=>{var i=n(95289),r=n(76442),a=n(39587),o=n(43407).calculateTextPosition,s=r.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i+a),t.lineTo(n-r,i+a),t.closePath()}}),l=r.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i),t.lineTo(n,i+a),t.lineTo(n-r,i),t.closePath()}}),u=r.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,a=Math.max(r,e.height),o=r/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),h=Math.cos(u)*o,c=Math.sin(u),f=Math.cos(u),d=.6*o,p=.7*o;t.moveTo(n-h,l+s),t.arc(n,l,o,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*d,l+s+f*d,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-h+c*d,l+s+f*d,n-h,l+s),t.closePath()}}),h=r.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,a=e.y,o=i/3*2;t.moveTo(r,a),t.lineTo(r+o,a+n),t.lineTo(r,a+n/4*3),t.lineTo(r-o,a+n),t.lineTo(r,a),t.closePath()}}),c={line:r.Line,rect:r.Rect,roundRect:r.Rect,square:r.Rect,circle:r.Circle,diamond:l,pin:u,arrow:h,triangle:s},f={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var a=Math.min(n,i);r.x=t,r.y=e,r.width=a,r.height=a},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},d={};i.each(c,(function(t,e){d[e]=new t}));var p=r.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=o(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.textPosition&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=d[i];r||(r=d[i="rect"]),f[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function g(t,e){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}e.createSymbol=function(t,e,n,i,o,s,l){var u,h=0===t.indexOf("empty");return h&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(u=0===t.indexOf("image://")?r.makeImage(t.slice(8),new a(e,n,i,o),l?"center":"cover"):0===t.indexOf("path://")?r.makePath(t.slice(7),{},new a(e,n,i,o),l?"center":"cover"):new p({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=h,u.setColor=g,u.setColor(s),u}},88336:(t,e)=>{var n="\0__throttleOriginMethod",i="\0__throttleRate",r="\0__throttleType";function a(t,e,n){var i,r,a,o,s,l=0,u=0,h=null;function c(){u=(new Date).getTime(),h=null,t.apply(a,o||[])}e=e||0;var f=function(){i=(new Date).getTime(),a=this,o=arguments;var t=s||e,f=s||n;s=null,r=i-(f?l:u)-t,clearTimeout(h),f?h=setTimeout(c,t):r>=0?c():h=setTimeout(c,-r),l=i};return f.clear=function(){h&&(clearTimeout(h),h=null)},f.debounceNextCall=function(t){s=t},f}e.throttle=a,e.createOrUpdate=function(t,e,o,s){var l=t[e];if(l){var u=l[n]||l,h=l[r];if(l[i]!==o||h!==s){if(null==o||!s)return t[e]=u;(l=t[e]=a(u,o,"debounce"===s))[n]=u,l[r]=s,l[i]=o}return l}},e.clear=function(t,e){var i=t[e];i&&i[n]&&(t[e]=i[n])}},67955:(t,e,n)=>{var i=n(95289).each,r=n(75738),a=n(79865),o=n(11724),s=n(63199),l=n(76442),u=n(88545).createTask,h=n(59039),c=s.makeInner(),f=h();function d(){this.group=new r,this.uid=a.getUID("viewChart"),this.renderTask=u({plan:v,reset:y}),this.renderTask.context={view:this}}d.prototype={type:"chart",init:function(t,e){},render:function(t,e,n,i){},highlight:function(t,e,n,i){m(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){m(t.getData(),i,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var p=d.prototype;function g(t,e,n){if(t&&(t.trigger(e,n),t.isGroup&&!l.isHighDownDispatcher(t)))for(var i=0,r=t.childCount();i<r;i++)g(t.childAt(i),e,n)}function m(t,e,n){var r=s.queryDataIndex(t,e),a=e&&null!=e.highlightKey?l.getHighlightDigit(e.highlightKey):null;null!=r?i(s.normalizeToArray(r),(function(e){g(t.getItemGraphicEl(e),n,a)})):t.eachItemGraphicEl((function(t){g(t,n,a)}))}function v(t){return f(t.model)}function y(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=r&&c(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](e,n,i,r),_[l]}p.updateView=p.updateLayout=p.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},o.enableClassExtend(d,["dispose"]),o.enableClassManagement(d,{registerWhenExtend:!0}),d.markUpdateMethod=function(t,e){c(t).updateMethod=e};var _={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},b=d;t.exports=b},18328:(t,e,n)=>{var i=n(75738),r=n(79865),a=n(11724),o=function(){this.group=new i,this.uid=r.getUID("viewComponent")},s=o.prototype={constructor:o,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){},filterForExposedEvent:null};s.updateView=s.updateLayout=s.updateVisual=function(t,e,n,i){},a.enableClassExtend(o),a.enableClassManagement(o,{registerWhenExtend:!0});var l=o;t.exports=l},65840:t=>{var e=function(t,e){this.getAllNames=function(){var t=e();return t.mapArray(t.getName)},this.containName=function(t){return e().indexOfName(t)>=0},this.indexOfName=function(e){return t().indexOfName(e)},this.getItemVisual=function(e,n){return t().getItemVisual(e,n)}};t.exports=e},40949:(t,e,n)=>{var i=n(95289),r=n(49777),a=n(41834).retrieveRawValue;t.exports=function(t,e){var n=e.getModel("aria");if(n.get("show"))if(n.get("description"))t.setAttribute("aria-label",n.get("description"));else{var o=0;e.eachSeries((function(t,e){++o}),this);var s,l=n.get("data.maxCount")||10,u=n.get("series.maxCount")||10,h=Math.min(o,u);if(!(o<1)){var c=function(){var t=e.getModel("title").option;t&&t.length&&(t=t[0]);return t&&t.text}();s=c?d(p("general.withTitle"),{title:c}):p("general.withoutTitle");var f=[];s+=d(p(o>1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:o}),e.eachSeries((function(t,e){if(e<h){var n,i=t.get("name"),s="series."+(o>1?"multiple":"single")+".";n=d(n=p(i?s+"withName":s+"withoutName"),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(y=t.subType,r.series.typeNames[y]||"自定义图")});var u=t.getData();window.data=u,u.count()>l?n+=d(p("data.partialData"),{displayCnt:l}):n+=p("data.allData");for(var c=[],g=0;g<u.count();g++)if(g<l){var m=u.getName(g),v=a(u,g);c.push(d(p(m?"data.withName":"data.withoutName"),{name:m,value:v}))}n+=c.join(p("data.separator.middle"))+p("data.separator.end"),f.push(n)}var y})),s+=f.join(p("series.multiple.separator.middle"))+p("series.multiple.separator.end"),t.setAttribute("aria-label",s)}}function d(t,e){if("string"!=typeof t)return t;var n=t;return i.each(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}function p(t){var e=n.get(t);if(null==e){for(var i=t.split("."),a=r.aria,o=0;o<i.length;++o)a=a[i[o]];return a}return e}}},5045:(t,e,n)=>{var i=n(95289).createHashMap;t.exports=function(t){return{getTargetSeries:function(e){var n={},r=i();return e.eachSeriesByType(t,(function(t){t.__paletteScope=n,r.set(t.uid,t)})),r},reset:function(t,e){var n=t.getRawData(),i={},r=t.getData();r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(e){var a,o=i[e],s=null!=o&&r.getItemVisual(o,"color",!0),l=null!=o&&r.getItemVisual(o,"borderColor",!0);if(s&&l||(a=n.getItemModel(e)),!s){var u=a.get("itemStyle.color")||t.getColorFromPalette(n.getName(e)||e+"",t.__paletteScope,n.count());null!=o&&r.setItemVisual(o,"color",u)}if(!l){var h=a.get("itemStyle.borderColor");null!=o&&r.setItemVisual(o,"borderColor",h)}}))}}}},89414:(t,e,n)=>{var i=n(44696),r=n(95289).isFunction,a={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),a=(t.visualColorAccessPath||"itemStyle.color").split("."),o=t.get(a),s=!r(o)||o instanceof i?null:o;o&&!s||(o=t.getColorFromPalette(t.name,null,e.getSeriesCount())),n.setVisual("color",o);var l=(t.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),u=t.get(l);if(n.setVisual("borderColor",u),!e.isSeriesFiltered(t)){s&&n.each((function(e){n.setItemVisual(e,"color",s(t.getDataParams(e)))}));return{dataEach:n.hasItemOption?function(t,e){var n=t.getItemModel(e),i=n.get(a,!0),r=n.get(l,!0);null!=i&&t.setItemVisual(e,"color",i),null!=r&&t.setItemVisual(e,"borderColor",r)}:null}}}};t.exports=a},39784:(t,e,n)=>{var i=n(95289).isFunction;t.exports=function(t,e,n){return{seriesType:t,performRawSeries:!0,reset:function(t,r,a){var o=t.getData(),s=t.get("symbol"),l=t.get("symbolSize"),u=t.get("symbolKeepAspect"),h=t.get("symbolRotate"),c=i(s),f=i(l),d=i(h),p=c||f||d,g=!c&&s?s:e,m=f?null:l;if(o.setVisual({legendSymbol:n||g,symbol:g,symbolSize:m,symbolKeepAspect:u,symbolRotate:h}),!r.isSeriesFiltered(t))return{dataEach:o.hasItemOption||p?function(e,n){if(p){var i=t.getRawValue(n),r=t.getDataParams(n);c&&e.setItemVisual(n,"symbol",s(i,r)),f&&e.setItemVisual(n,"symbolSize",l(i,r)),d&&e.setItemVisual(n,"symbolRotate",h(i,r))}if(e.hasItemOption){var a=e.getItemModel(n),o=a.getShallow("symbol",!0),u=a.getShallow("symbolSize",!0),g=a.getShallow("symbolRotate",!0),m=a.getShallow("symbolKeepAspect",!0);null!=o&&e.setItemVisual(n,"symbol",o),null!=u&&e.setItemVisual(n,"symbolSize",u),null!=g&&e.setItemVisual(n,"symbolRotate",g),null!=m&&e.setItemVisual(n,"symbolKeepAspect",m)}}:null}}}}},13246:function(t,e,n){var i;"undefined"!=typeof globalThis?globalThis:void 0!==this||("undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g),i=function(t){return function(){"use strict";var e={172:function(t,e){var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.CellHookData=e.HookData=void 0;var r=function(t,e,n){this.table=e,this.pageNumber=e.pageNumber,this.pageCount=this.pageNumber,this.settings=e.settings,this.cursor=n,this.doc=t.getDocument()};e.HookData=r;var a=function(t){function e(e,n,i,r,a,o){var s=t.call(this,e,n,o)||this;return s.cell=i,s.row=r,s.column=a,s.section=r.section,s}return i(e,t),e}(r);e.CellHookData=a},340:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=n(136),a=n(744),o=n(776),s=n(664),l=n(972);e.default=function(t){t.API.autoTable=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];1===e.length?t=e[0]:(console.error("Use of deprecated autoTable initiation"),(t=e[2]||{}).columns=e[0],t.body=e[1]);var i=(0,o.parseInput)(this,t),r=(0,l.createTable)(this,i);return(0,s.drawTable)(this,r),this},t.API.lastAutoTable=!1,t.API.previousAutoTable=!1,t.API.autoTable.previous=!1,t.API.autoTableText=function(t,e,n,i){(0,r.default)(t,e,n,i,this)},t.API.autoTableSetDefaults=function(t){return a.DocHandler.setDefaults(t,this),this},t.autoTableSetDefaults=function(t,e){a.DocHandler.setDefaults(t,e)},t.API.autoTableHtmlToJson=function(t,e){var n;if(void 0===e&&(e=!1),"undefined"==typeof window)return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var r=new a.DocHandler(this),o=(0,i.parseHtml)(r,t,window,e,!1),s=o.head,l=o.body;return{columns:(null===(n=s[0])||void 0===n?void 0:n.map((function(t){return t.content})))||[],rows:l,data:l}},t.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.");var t=this.lastAutoTable;return t&&t.finalY?t.finalY:0},t.API.autoTableAddPageContent=function(e){return console.error("Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead."),t.API.autoTable.globalDefaults||(t.API.autoTable.globalDefaults={}),t.API.autoTable.globalDefaults.addPageContent=e,this},t.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}}},136:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i,r){i=i||{};var a=r.internal.scaleFactor,o=r.internal.getFontSize()/a,s=o*(r.getLineHeightFactor?r.getLineHeightFactor():1.15),l="",u=1;if("middle"!==i.valign&&"bottom"!==i.valign&&"center"!==i.halign&&"right"!==i.halign||(u=(l="string"==typeof t?t.split(/\r\n|\r|\n/g):t).length||1),n+=o*(2-1.15),"middle"===i.valign?n-=u/2*s:"bottom"===i.valign&&(n-=u*s),"center"===i.halign||"right"===i.halign){var h=o;if("center"===i.halign&&(h*=.5),l&&u>=1){for(var c=0;c<l.length;c++)r.text(l[c],e-r.getStringUnitWidth(l[c])*h,n),n+=s;return r}e-=r.getStringUnitWidth(t)*h}return"justify"===i.halign?r.text(t,e,n,{maxWidth:i.maxWidth||100,align:"justify"}):r.text(t,e,n),r}},420:function(t,e){function n(t,e){var n=t>0,i=e||0===e;return n&&i?"DF":n?"S":i?"F":null}function i(t,e){var n,i,r,a;if(t=t||e,Array.isArray(t)){if(t.length>=4)return{top:t[0],right:t[1],bottom:t[2],left:t[3]};if(3===t.length)return{top:t[0],right:t[1],bottom:t[2],left:t[1]};if(2===t.length)return{top:t[0],right:t[1],bottom:t[0],left:t[1]};t=1===t.length?t[0]:e}return"object"==typeof t?("number"==typeof t.vertical&&(t.top=t.vertical,t.bottom=t.vertical),"number"==typeof t.horizontal&&(t.right=t.horizontal,t.left=t.horizontal),{left:null!==(n=t.left)&&void 0!==n?n:e,top:null!==(i=t.top)&&void 0!==i?i:e,right:null!==(r=t.right)&&void 0!==r?r:e,bottom:null!==(a=t.bottom)&&void 0!==a?a:e}):("number"!=typeof t&&(t=e),{top:t,right:t,bottom:t,left:t})}Object.defineProperty(e,"__esModule",{value:!0}),e.getPageAvailableWidth=e.parseSpacing=e.getFillStyle=e.addTableBorder=e.getStringWidth=void 0,e.getStringWidth=function(t,e,n){return n.applyStyles(e,!0),(Array.isArray(t)?t:[t]).map((function(t){return n.getTextWidth(t)})).reduce((function(t,e){return Math.max(t,e)}),0)},e.addTableBorder=function(t,e,i,r){var a=e.settings.tableLineWidth,o=e.settings.tableLineColor;t.applyStyles({lineWidth:a,lineColor:o});var s=n(a,!1);s&&t.rect(i.x,i.y,e.getWidth(t.pageSize().width),r.y-i.y,s)},e.getFillStyle=n,e.parseSpacing=i,e.getPageAvailableWidth=function(t,e){var n=i(e.settings.margin,0);return t.pageSize().width-(n.left+n.right)}},796:function(t,e){var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.getTheme=e.defaultStyles=e.HtmlRowInput=void 0;var r=function(t){function e(e){var n=t.call(this)||this;return n._element=e,n}return i(e,t),e}(Array);e.HtmlRowInput=r,e.defaultStyles=function(t){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/t,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}},e.getTheme=function(t){return{striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}}[t]}},903:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.parseCss=void 0;var i=n(420);function r(t,e){var n=a(t,e);if(!n)return null;var i=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!i||!Array.isArray(i))return null;var r=[parseInt(i[1]),parseInt(i[2]),parseInt(i[3])];return 0===parseInt(i[4])||isNaN(r[0])||isNaN(r[1])||isNaN(r[2])?null:r}function a(t,e){var n=e(t);return"rgba(0, 0, 0, 0)"===n||"transparent"===n||"initial"===n||"inherit"===n?null==t.parentElement?null:a(t.parentElement,e):n}e.parseCss=function(t,e,n,a,o){var s={},l=96/72,u=r(e,(function(t){return o.getComputedStyle(t).backgroundColor}));null!=u&&(s.fillColor=u);var h=r(e,(function(t){return o.getComputedStyle(t).color}));null!=h&&(s.textColor=h);var c=function(t,e){var n=[t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft],r=96/(72/e),a=(parseInt(t.lineHeight)-parseInt(t.fontSize))/e/2,o=n.map((function(t){return parseInt(t||"0")/r})),s=(0,i.parseSpacing)(o,0);return a>s.top&&(s.top=a),a>s.bottom&&(s.bottom=a),s}(a,n);c&&(s.cellPadding=c);var f="borderTopColor",d=l*n,p=a.borderTopWidth;if(a.borderBottomWidth===p&&a.borderRightWidth===p&&a.borderLeftWidth===p){var g=(parseFloat(p)||0)/d;g&&(s.lineWidth=g)}else s.lineWidth={top:(parseFloat(a.borderTopWidth)||0)/d,right:(parseFloat(a.borderRightWidth)||0)/d,bottom:(parseFloat(a.borderBottomWidth)||0)/d,left:(parseFloat(a.borderLeftWidth)||0)/d},s.lineWidth.top||(s.lineWidth.right?f="borderRightColor":s.lineWidth.bottom?f="borderBottomColor":s.lineWidth.left&&(f="borderLeftColor"));console.log(s.lineWidth);var m=r(e,(function(t){return o.getComputedStyle(t)[f]}));null!=m&&(s.lineColor=m);var v=["left","right","center","justify"];-1!==v.indexOf(a.textAlign)&&(s.halign=a.textAlign),-1!==(v=["middle","bottom","top"]).indexOf(a.verticalAlign)&&(s.valign=a.verticalAlign);var y=parseInt(a.fontSize||"");isNaN(y)||(s.fontSize=y/l);var _=function(t){var e="";return("bold"===t.fontWeight||"bolder"===t.fontWeight||parseInt(t.fontWeight)>=700)&&(e="bold"),"italic"!==t.fontStyle&&"oblique"!==t.fontStyle||(e+="italic"),e}(a);_&&(s.fontStyle=_);var b=(a.fontFamily||"").toLowerCase();return-1!==t.indexOf(b)&&(s.font=b),s}},744:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.DocHandler=void 0;var n={},i=function(){function t(t){this.jsPDFDocument=t,this.userStyles={textColor:t.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:t.internal.getFontSize(),fontStyle:t.internal.getFont().fontStyle,font:t.internal.getFont().fontName,lineWidth:t.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:t.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return t.setDefaults=function(t,e){void 0===e&&(e=null),e?e.__autoTableDocumentDefaults=t:n=t},t.unifyColor=function(t){return Array.isArray(t)?t:"number"==typeof t?[t,t,t]:"string"==typeof t?[t]:null},t.prototype.applyStyles=function(e,n){var i,r,a;void 0===n&&(n=!1),e.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(e.fontStyle);var o=this.jsPDFDocument.internal.getFont(),s=o.fontStyle,l=o.fontName;if(e.font&&(l=e.font),e.fontStyle){s=e.fontStyle;var u=this.getFontList()[l];u&&-1===u.indexOf(s)&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(u[0]),s=u[0])}if(this.jsPDFDocument.setFont(l,s),e.fontSize&&this.jsPDFDocument.setFontSize(e.fontSize),!n){var h=t.unifyColor(e.fillColor);h&&(i=this.jsPDFDocument).setFillColor.apply(i,h),(h=t.unifyColor(e.textColor))&&(r=this.jsPDFDocument).setTextColor.apply(r,h),(h=t.unifyColor(e.lineColor))&&(a=this.jsPDFDocument).setDrawColor.apply(a,h),"number"==typeof e.lineWidth&&this.jsPDFDocument.setLineWidth(e.lineWidth)}},t.prototype.splitTextToSize=function(t,e,n){return this.jsPDFDocument.splitTextToSize(t,e,n)},t.prototype.rect=function(t,e,n,i,r){return this.jsPDFDocument.rect(t,e,n,i,r)},t.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},t.prototype.getTextWidth=function(t){return this.jsPDFDocument.getTextWidth(t)},t.prototype.getDocument=function(){return this.jsPDFDocument},t.prototype.setPage=function(t){this.jsPDFDocument.setPage(t)},t.prototype.addPage=function(){return this.jsPDFDocument.addPage()},t.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},t.prototype.getGlobalOptions=function(){return n||{}},t.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},t.prototype.pageSize=function(){var t=this.jsPDFDocument.internal.pageSize;return null==t.width&&(t={width:t.getWidth(),height:t.getHeight()}),t},t.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},t.prototype.getLineHeightFactor=function(){var t=this.jsPDFDocument;return t.getLineHeightFactor?t.getLineHeightFactor():1.15},t.prototype.getLineHeight=function(t){return t/this.scaleFactor()*this.getLineHeightFactor()},t.prototype.pageNumber=function(){var t=this.jsPDFDocument.internal.getCurrentPageInfo();return t?t.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},t}();e.DocHandler=i},4:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.parseHtml=void 0;var i=n(903),r=n(796);function a(t,e,n,a,s,l){for(var u=new r.HtmlRowInput(a),h=0;h<a.cells.length;h++){var c=a.cells[h],f=n.getComputedStyle(c);if(s||"none"!==f.display){var d=void 0;l&&(d=(0,i.parseCss)(t,c,e,f,n)),u.push({rowSpan:c.rowSpan,colSpan:c.colSpan,styles:d,_element:c,content:o(c)})}}var p=n.getComputedStyle(a);if(u.length>0&&(s||"none"!==p.display))return u}function o(t){var e=t.cloneNode(!0);return e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/ +/g," "),e.innerHTML=e.innerHTML.split(/<br.*?>/).map((function(t){return t.trim()})).join("\n"),e.innerText||e.textContent||""}e.parseHtml=function(t,e,n,i,r){var o,s,l;void 0===i&&(i=!1),void 0===r&&(r=!1),l="string"==typeof e?n.document.querySelector(e):e;var u=Object.keys(t.getFontList()),h=t.scaleFactor(),c=[],f=[],d=[];if(!l)return console.error("Html table could not be found with input: ",e),{head:c,body:f,foot:d};for(var p=0;p<l.rows.length;p++){var g=l.rows[p],m=null===(s=null===(o=null==g?void 0:g.parentElement)||void 0===o?void 0:o.tagName)||void 0===s?void 0:s.toLowerCase(),v=a(u,h,n,g,i,r);v&&("thead"===m?c.push(v):"tfoot"===m?d.push(v):f.push(v))}return{head:c,body:f,foot:d}}},776:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.parseInput=void 0;var i=n(4),r=n(356),a=n(420),o=n(744),s=n(792);e.parseInput=function(t,e){var n=new o.DocHandler(t),l=n.getDocumentOptions(),u=n.getGlobalOptions();(0,s.default)(n,u,l,e);var h,c=(0,r.assign)({},u,l,e);"undefined"!=typeof window&&(h=window);var f=function(t,e,n){for(var i={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},a=function(a){if("columnStyles"===a){var o=t[a],s=e[a],l=n[a];i.columnStyles=(0,r.assign)({},o,s,l)}else{var u=[t,e,n].map((function(t){return t[a]||{}}));i[a]=(0,r.assign)({},u[0],u[1],u[2])}},o=0,s=Object.keys(i);o<s.length;o++)a(s[o]);return i}(u,l,e),d=function(t,e,n){for(var i={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},r=0,a=[t,e,n];r<a.length;r++){var o=a[r];o.didParseCell&&i.didParseCell.push(o.didParseCell),o.willDrawCell&&i.willDrawCell.push(o.willDrawCell),o.didDrawCell&&i.didDrawCell.push(o.didDrawCell),o.willDrawPage&&i.willDrawPage.push(o.willDrawPage),o.didDrawPage&&i.didDrawPage.push(o.didDrawPage)}return i}(u,l,e),p=function(t,e){var n,i,r,o,s,l,u,h,c,f,d,p,g,m,v=(0,a.parseSpacing)(e.margin,40/t.scaleFactor()),y=null!==(n=function(t,e){var n=t.getLastAutoTable(),i=t.scaleFactor(),r=t.pageNumber(),a=!1;return n&&n.startPageNumber&&(a=n.startPageNumber+n.pageNumber-1===r),"number"==typeof e?e:null!=e&&!1!==e||!a||null==(null==n?void 0:n.finalY)?null:n.finalY+20/i}(t,e.startY))&&void 0!==n?n:v.top;g=!0===e.showFoot?"everyPage":!1===e.showFoot?"never":null!==(i=e.showFoot)&&void 0!==i?i:"everyPage",m=!0===e.showHead?"everyPage":!1===e.showHead?"never":null!==(r=e.showHead)&&void 0!==r?r:"everyPage";var _=null!==(o=e.useCss)&&void 0!==o&&o,b=e.theme||(_?"plain":"striped"),x=!!e.horizontalPageBreak,w=null!==(s=e.horizontalPageBreakRepeat)&&void 0!==s?s:null;return{includeHiddenHtml:null!==(l=e.includeHiddenHtml)&&void 0!==l&&l,useCss:_,theme:b,startY:y,margin:v,pageBreak:null!==(u=e.pageBreak)&&void 0!==u?u:"auto",rowPageBreak:null!==(h=e.rowPageBreak)&&void 0!==h?h:"auto",tableWidth:null!==(c=e.tableWidth)&&void 0!==c?c:"auto",showHead:m,showFoot:g,tableLineWidth:null!==(f=e.tableLineWidth)&&void 0!==f?f:0,tableLineColor:null!==(d=e.tableLineColor)&&void 0!==d?d:200,horizontalPageBreak:x,horizontalPageBreakRepeat:w,horizontalPageBreakBehaviour:null!==(p=e.horizontalPageBreakBehaviour)&&void 0!==p?p:"afterAllRows"}}(n,c),g=function(t,e,n){var r=e.head||[],a=e.body||[],o=e.foot||[];if(e.html){var s=e.includeHiddenHtml;if(n){var l=(0,i.parseHtml)(t,e.html,n,s,e.useCss)||{};r=l.head||r,a=l.body||r,o=l.foot||r}else console.error("Cannot parse html in non browser environment")}var u=e.columns||function(t,e,n){var i=t[0]||e[0]||n[0]||[],r=[];return Object.keys(i).filter((function(t){return"_element"!==t})).forEach((function(t){var e,n=1;"object"!=typeof(e=Array.isArray(i)?i[parseInt(t)]:i[t])||Array.isArray(e)||(n=(null==e?void 0:e.colSpan)||1);for(var a=0;a<n;a++){var o={dataKey:Array.isArray(i)?r.length:t+(a>0?"_".concat(a):"")};r.push(o)}})),r}(r,a,o);return{columns:u,head:r,body:a,foot:o}}(n,c,h);return{id:e.tableId,content:g,hooks:d,styles:f,settings:p}}},792:function(t,e){function n(t){t.rowHeight?(console.error("Use of deprecated style rowHeight. It is renamed to minCellHeight."),t.minCellHeight||(t.minCellHeight=t.rowHeight)):t.columnWidth&&(console.error("Use of deprecated style columnWidth. It is renamed to cellWidth."),t.cellWidth||(t.cellWidth=t.columnWidth))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,i,r){for(var a=function(e){e&&"object"!=typeof e&&console.error("The options parameter should be of type object, is: "+typeof e),void 0!==e.extendWidth&&(e.tableWidth=e.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),void 0!==e.margins&&(void 0===e.margin&&(e.margin=e.margins),console.error("Use of deprecated option: margins, use margin instead.")),e.startY&&"number"!=typeof e.startY&&(console.error("Invalid value for startY option",e.startY),delete e.startY),!e.didDrawPage&&(e.afterPageContent||e.beforePageContent||e.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),e.didDrawPage=function(n){t.applyStyles(t.userStyles),e.beforePageContent&&e.beforePageContent(n),t.applyStyles(t.userStyles),e.afterPageContent&&e.afterPageContent(n),t.applyStyles(t.userStyles),e.afterPageAdd&&n.pageNumber>1&&n.afterPageAdd(n),t.applyStyles(t.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach((function(t){e[t]&&console.error('The "'.concat(t,'" hook has changed in version 3.0, check the changelog for how to migrate.'))})),[["showFoot","showFooter"],["showHead","showHeader"],["didDrawPage","addPageContent"],["didParseCell","createdCell"],["headStyles","headerStyles"]].forEach((function(t){var n=t[0],i=t[1];e[i]&&(console.error("Use of deprecated option ".concat(i,". Use ").concat(n," instead")),e[n]=e[i])})),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach((function(t){var n="string"==typeof t?t:t[0],i="string"==typeof t?t:t[1];void 0!==e[n]&&(void 0===e.styles[i]&&(e.styles[i]=e[n]),console.error("Use of deprecated option: "+n+", use the style "+i+" instead."))}));for(var i=0,r=["styles","bodyStyles","headStyles","footStyles"];i<r.length;i++)n(e[r[i]]||{});for(var a=e.columnStyles||{},o=0,s=Object.keys(a);o<s.length;o++)n(a[s[o]]||{})},o=0,s=[e,i,r];o<s.length;o++)a(s[o])}},260:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Column=e.Cell=e.Row=e.Table=void 0;var i=n(796),r=n(172),a=n(420),o=function(){function t(t,e){this.pageNumber=1,this.pageCount=1,this.id=t.id,this.settings=t.settings,this.styles=t.styles,this.hooks=t.hooks,this.columns=e.columns,this.head=e.head,this.body=e.body,this.foot=e.foot}return t.prototype.getHeadHeight=function(t){return this.head.reduce((function(e,n){return e+n.getMaxCellHeight(t)}),0)},t.prototype.getFootHeight=function(t){return this.foot.reduce((function(e,n){return e+n.getMaxCellHeight(t)}),0)},t.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},t.prototype.callCellHooks=function(t,e,n,i,a,o){for(var s=0,l=e;s<l.length;s++){var u=!1===(0,l[s])(new r.CellHookData(t,this,n,i,a,o));if(n.text=Array.isArray(n.text)?n.text:[n.text],u)return!1}return!0},t.prototype.callEndPageHooks=function(t,e){t.applyStyles(t.userStyles);for(var n=0,i=this.hooks.didDrawPage;n<i.length;n++)(0,i[n])(new r.HookData(t,this,e))},t.prototype.callWillDrawPageHooks=function(t,e){for(var n=0,i=this.hooks.willDrawPage;n<i.length;n++)(0,i[n])(new r.HookData(t,this,e))},t.prototype.getWidth=function(t){if("number"==typeof this.settings.tableWidth)return this.settings.tableWidth;if("wrap"===this.settings.tableWidth)return this.columns.reduce((function(t,e){return t+e.wrappedWidth}),0);var e=this.settings.margin;return t-e.left-e.right},t}();e.Table=o;var s=function(){function t(t,e,n,r,a){void 0===a&&(a=!1),this.height=0,this.raw=t,t instanceof i.HtmlRowInput&&(this.raw=t._element,this.element=t._element),this.index=e,this.section=n,this.cells=r,this.spansMultiplePages=a}return t.prototype.getMaxCellHeight=function(t){var e=this;return t.reduce((function(t,n){var i;return Math.max(t,(null===(i=e.cells[n.index])||void 0===i?void 0:i.height)||0)}),0)},t.prototype.hasRowSpan=function(t){var e=this;return t.filter((function(t){var n=e.cells[t.index];return!!n&&n.rowSpan>1})).length>0},t.prototype.canEntireRowFit=function(t,e){return this.getMaxCellHeight(e)<=t},t.prototype.getMinimumRowHeight=function(t,e){var n=this;return t.reduce((function(t,i){var r=n.cells[i.index];if(!r)return 0;var a=e.getLineHeight(r.styles.fontSize),o=r.padding("vertical")+a;return o>t?o:t}),0)},t}();e.Row=s;var l=function(){function t(t,e,n){var i,r;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=e,this.section=n,this.raw=t;var a=t;null==t||"object"!=typeof t||Array.isArray(t)?(this.rowSpan=1,this.colSpan=1):(this.rowSpan=t.rowSpan||1,this.colSpan=t.colSpan||1,a=null!==(r=null!==(i=t.content)&&void 0!==i?i:t.title)&&void 0!==r?r:t,t._element&&(this.raw=t._element));var o=null!=a?""+a:"";this.text=o.split(/\r\n|\r|\n/g)}return t.prototype.getTextPos=function(){var t,e;if("top"===this.styles.valign)t=this.y+this.padding("top");else if("bottom"===this.styles.valign)t=this.y+this.height-this.padding("bottom");else{var n=this.height-this.padding("vertical");t=this.y+n/2+this.padding("top")}if("right"===this.styles.halign)e=this.x+this.width-this.padding("right");else if("center"===this.styles.halign){var i=this.width-this.padding("horizontal");e=this.x+i/2+this.padding("left")}else e=this.x+this.padding("left");return{x:e,y:t}},t.prototype.getContentHeight=function(t,e){void 0===e&&(e=1.15);var n=(Array.isArray(this.text)?this.text.length:1)*(this.styles.fontSize/t*e)+this.padding("vertical");return Math.max(n,this.styles.minCellHeight)},t.prototype.padding=function(t){var e=(0,a.parseSpacing)(this.styles.cellPadding,0);return"vertical"===t?e.top+e.bottom:"horizontal"===t?e.left+e.right:e[t]},t}();e.Cell=l;var u=function(){function t(t,e,n){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=t,this.raw=e,this.index=n}return t.prototype.getMaxCustomCellWidth=function(t){for(var e=0,n=0,i=t.allRows();n<i.length;n++){var r=i[n].cells[this.index];r&&"number"==typeof r.styles.cellWidth&&(e=Math.max(e,r.styles.cellWidth))}return e},t}();e.Column=u},356:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.assign=void 0,e.assign=function(t,e,n,i,r){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var a=Object(t),o=1;o<arguments.length;o++){var s=arguments[o];if(null!=s)for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(a[l]=s[l])}return a}},972:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.createTable=void 0;var i=n(744),r=n(260),a=n(324),o=n(796),s=n(356);function l(t,e,n,i,a,o){var s={};return e.map((function(e,l){for(var u=0,c={},f=0,d=0,p=0,g=n;p<g.length;p++){var m=g[p];if(null==s[m.index]||0===s[m.index].left)if(0===d){var v=void 0,y={};"object"!=typeof(v=Array.isArray(e)?e[m.index-f-u]:e[m.dataKey])||Array.isArray(v)||(y=(null==v?void 0:v.styles)||{});var _=h(t,m,l,a,i,o,y),b=new r.Cell(v,_,t);c[m.dataKey]=b,c[m.index]=b,d=b.colSpan-1,s[m.index]={left:b.rowSpan-1,times:d}}else d--,f++;else s[m.index].left--,d=s[m.index].times,u++}return new r.Row(e,l,t,c)}))}function u(t,e){var n={};return t.forEach((function(t){if(null!=t.raw){var i=function(t,e){if("head"===t){if("object"==typeof e)return e.header||e.title||null;if("string"==typeof e||"number"==typeof e)return e}else if("foot"===t&&"object"==typeof e)return e.footer;return null}(e,t.raw);null!=i&&(n[t.dataKey]=i)}})),Object.keys(n).length>0?n:null}function h(t,e,n,i,r,a,l){var u,h=(0,o.getTheme)(i);"head"===t?u=r.headStyles:"body"===t?u=r.bodyStyles:"foot"===t&&(u=r.footStyles);var c=(0,s.assign)({},h.table,h[t],r.styles,u),f=r.columnStyles[e.dataKey]||r.columnStyles[e.index]||{},d="body"===t?f:{},p="body"===t&&n%2==0?(0,s.assign)({},h.alternateRow,r.alternateRowStyles):{},g=(0,o.defaultStyles)(a),m=(0,s.assign)({},g,c,p,d);return(0,s.assign)(m,l)}e.createTable=function(t,e){var n=new i.DocHandler(t),o=function(t,e){var n,i=t.content,a=function(t){return t.map((function(t,e){var n,i,a;return a="object"==typeof t&&null!==(i=null!==(n=t.dataKey)&&void 0!==n?n:t.key)&&void 0!==i?i:e,new r.Column(a,t,e)}))}(i.columns);(0===i.head.length&&(n=u(a,"head"))&&i.head.push(n),0===i.foot.length)&&((n=u(a,"foot"))&&i.foot.push(n));var o=t.settings.theme,s=t.styles;return{columns:a,head:l("head",i.head,a,s,o,e),body:l("body",i.body,a,s,o,e),foot:l("foot",i.foot,a,s,o,e)}}(e,n.scaleFactor()),s=new r.Table(e,o);return(0,a.calculateWidths)(n,s),n.applyStyles(n.userStyles),s}},664:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.addPage=e.drawTable=void 0;var i=n(420),r=n(260),a=n(744),o=n(356),s=n(136),l=n(224);function u(t,e,n,i){var r=e.settings;t.applyStyles(t.userStyles),"firstPage"!==r.showHead&&"everyPage"!==r.showHead||e.head.forEach((function(r){return p(t,e,r,n,i)}))}function h(t,e,n,i,r,a){t.applyStyles(t.userStyles),a=null!=a?a:e.body.length;var o=Math.min(n+a,e.body.length),s=-1;return e.body.slice(n,o).forEach((function(a,o){var l=n+o===e.body.length-1,u=m(t,e,l,i);a.canEntireRowFit(u,r)&&(p(t,e,a,i,r),s=n+o)})),s}function c(t,e,n,i){var r=e.settings;t.applyStyles(t.userStyles),"lastPage"!==r.showFoot&&"everyPage"!==r.showFoot||e.foot.forEach((function(r){return p(t,e,r,n,i)}))}function f(t,e,n){var i=n.getLineHeight(t.styles.fontSize),r=t.padding("vertical"),a=Math.floor((e-r)/i);return Math.max(0,a)}function d(t,e,n,i,a,s,l){var u=m(t,e,i,s);if(n.canEntireRowFit(u,l))p(t,e,n,s,l);else if(function(t,e,n,i){var r=t.pageSize().height,a=i.settings.margin,o=r-(a.top+a.bottom);"body"===e.section&&(o-=i.getHeadHeight(i.columns)+i.getFootHeight(i.columns));var s=e.getMinimumRowHeight(i.columns,t),l=s<n;if(s>o)return console.error("Will not be able to print row ".concat(e.index," correctly since it's minimum height is larger than page height")),!0;if(!l)return!1;var u=e.hasRowSpan(i.columns);return e.getMaxCellHeight(i.columns)>o?(u&&console.error("The content of row ".concat(e.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!u&&"avoid"!==i.settings.rowPageBreak}(t,n,u,e)){var h=function(t,e,n,i){var a={};t.spansMultiplePages=!0,t.height=0;for(var s=0,l=0,u=n.columns;l<u.length;l++){var h=u[l];if(_=t.cells[h.index]){Array.isArray(_.text)||(_.text=[_.text]);var c=new r.Cell(_.raw,_.styles,_.section);(c=(0,o.assign)(c,_)).text=[];var d=f(_,e,i);_.text.length>d&&(c.text=_.text.splice(d,_.text.length));var p=i.scaleFactor(),g=i.getLineHeightFactor();_.contentHeight=_.getContentHeight(p,g),_.contentHeight>=e&&(_.contentHeight=e,c.styles.minCellHeight-=e),_.contentHeight>t.height&&(t.height=_.contentHeight),c.contentHeight=c.getContentHeight(p,g),c.contentHeight>s&&(s=c.contentHeight),a[h.index]=c}}var m=new r.Row(t.raw,-1,t.section,a,!0);m.height=s;for(var v=0,y=n.columns;v<y.length;v++){var _;h=y[v],(c=m.cells[h.index])&&(c.height=m.height),(_=t.cells[h.index])&&(_.height=t.height)}return m}(n,u,e,t);p(t,e,n,s,l),v(t,e,a,s,l),d(t,e,h,i,a,s,l)}else v(t,e,a,s,l),d(t,e,n,i,a,s,l)}function p(t,e,n,i,r){i.x=e.settings.margin.left;for(var a=0,o=r;a<o.length;a++){var l=o[a],u=n.cells[l.index];if(u)if(t.applyStyles(u.styles),u.x=i.x,u.y=i.y,!1!==e.callCellHooks(t,e.hooks.willDrawCell,u,n,l,i)){g(t,u,i);var h=u.getTextPos();(0,s.default)(u.text,h.x,h.y,{halign:u.styles.halign,valign:u.styles.valign,maxWidth:Math.ceil(u.width-u.padding("left")-u.padding("right"))},t.getDocument()),e.callCellHooks(t,e.hooks.didDrawCell,u,n,l,i),i.x+=l.width}else i.x+=l.width;else i.x+=l.width}i.y+=n.height}function g(t,e,n){var r=e.styles;if(t.getDocument().setFillColor(t.getDocument().getFillColor()),"number"==typeof r.lineWidth){var a=(0,i.getFillStyle)(r.lineWidth,r.fillColor);a&&t.rect(e.x,n.y,e.width,e.height,a)}else"object"==typeof r.lineWidth&&(r.fillColor&&t.rect(e.x,n.y,e.width,e.height,"F"),function(t,e,n,i){var r,a,o,s;function l(e,n,i,r,a){t.getDocument().setLineWidth(e),t.getDocument().line(n,i,r,a,"S")}i.top&&(r=n.x,a=n.y,o=n.x+e.width,s=n.y,i.right&&(o+=.5*i.right),i.left&&(r-=.5*i.left),l(i.top,r,a,o,s)),i.bottom&&(r=n.x,a=n.y+e.height,o=n.x+e.width,s=n.y+e.height,i.right&&(o+=.5*i.right),i.left&&(r-=.5*i.left),l(i.bottom,r,a,o,s)),i.left&&(r=n.x,a=n.y,o=n.x,s=n.y+e.height,i.top&&(a-=.5*i.top),i.bottom&&(s+=.5*i.bottom),l(i.left,r,a,o,s)),i.right&&(r=n.x+e.width,a=n.y,o=n.x+e.width,s=n.y+e.height,i.top&&(a-=.5*i.top),i.bottom&&(s+=.5*i.bottom),l(i.right,r,a,o,s))}(t,e,n,r.lineWidth))}function m(t,e,n,i){var r=e.settings.margin.bottom,a=e.settings.showFoot;return("everyPage"===a||"lastPage"===a&&n)&&(r+=e.getFootHeight(e.columns)),t.pageSize().height-i.y-r}function v(t,e,n,r,a,o){void 0===a&&(a=[]),void 0===o&&(o=!1),t.applyStyles(t.userStyles),"everyPage"!==e.settings.showFoot||o||e.foot.forEach((function(n){return p(t,e,n,r,a)})),e.callEndPageHooks(t,r);var s=e.settings.margin;(0,i.addTableBorder)(t,e,n,r),y(t),e.pageNumber++,e.pageCount++,r.x=s.left,r.y=s.top,n.y=s.top,e.callWillDrawPageHooks(t,r),"everyPage"===e.settings.showHead&&(e.head.forEach((function(n){return p(t,e,n,r,a)})),t.applyStyles(t.userStyles))}function y(t){var e=t.pageNumber();return t.setPage(e+1),t.pageNumber()===e&&(t.addPage(),!0)}e.drawTable=function(t,e){var n=e.settings,r=n.startY,s=n.margin,f={x:s.left,y:r},g=e.getHeadHeight(e.columns)+e.getFootHeight(e.columns),m=r+s.bottom+g;"avoid"===n.pageBreak&&(m+=e.body.reduce((function(t,e){return t+e.height}),0));var _=new a.DocHandler(t);("always"===n.pageBreak||null!=n.startY&&m>_.pageSize().height)&&(y(_),f.y=s.top),e.callWillDrawPageHooks(_,f);var b=(0,o.assign)({},f);e.startPageNumber=_.pageNumber(),n.horizontalPageBreak?function(t,e,n,i){var r=(0,l.calculateAllColumnsCanFitInPage)(t,e),a=e.settings;if("afterAllRows"===a.horizontalPageBreakBehaviour)r.forEach((function(r,a){t.applyStyles(t.userStyles),a>0?v(t,e,n,i,r.columns,!0):u(t,e,i,r.columns),function(t,e,n,i,r){t.applyStyles(t.userStyles),e.body.forEach((function(a,o){var s=o===e.body.length-1;d(t,e,a,s,n,i,r)}))}(t,e,n,i,r.columns),c(t,e,i,r.columns)}));else for(var o=-1,s=r[0],f=function(){var a=o;if(s){t.applyStyles(t.userStyles);var l=s.columns;o>=0?v(t,e,n,i,l,!0):u(t,e,i,l),a=h(t,e,o+1,i,l),c(t,e,i,l)}var f=a-o;r.slice(1).forEach((function(r){t.applyStyles(t.userStyles),v(t,e,n,i,r.columns,!0),h(t,e,o+1,i,r.columns,f),c(t,e,i,r.columns)})),o=a};o<e.body.length-1;)f()}(_,e,b,f):(_.applyStyles(_.userStyles),"firstPage"!==n.showHead&&"everyPage"!==n.showHead||e.head.forEach((function(t){return p(_,e,t,f,e.columns)})),_.applyStyles(_.userStyles),e.body.forEach((function(t,n){var i=n===e.body.length-1;d(_,e,t,i,b,f,e.columns)})),_.applyStyles(_.userStyles),"lastPage"!==n.showFoot&&"everyPage"!==n.showFoot||e.foot.forEach((function(t){return p(_,e,t,f,e.columns)}))),(0,i.addTableBorder)(_,e,b,f),e.callEndPageHooks(_,f),e.finalY=f.y,t.lastAutoTable=e,t.previousAutoTable=e,t.autoTable&&(t.autoTable.previous=e),_.applyStyles(_.userStyles)},e.addPage=v},224:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateAllColumnsCanFitInPage=void 0;var i=n(420);function r(t,e,n){var r;void 0===n&&(n={});var a=(0,i.getPageAvailableWidth)(t,e),o=new Map,s=[],l=[],u=[];e.settings.horizontalPageBreakRepeat,Array.isArray(e.settings.horizontalPageBreakRepeat)?u=e.settings.horizontalPageBreakRepeat:"string"!=typeof e.settings.horizontalPageBreakRepeat&&"number"!=typeof e.settings.horizontalPageBreakRepeat||(u=[e.settings.horizontalPageBreakRepeat]),u.forEach((function(t){var n=e.columns.find((function(e){return e.dataKey===t||e.index===t}));n&&!o.has(n.index)&&(o.set(n.index,!0),s.push(n.index),l.push(e.columns[n.index]),a-=n.wrappedWidth)}));for(var h=!0,c=null!==(r=null==n?void 0:n.start)&&void 0!==r?r:0;c<e.columns.length;)if(o.has(c))c++;else{var f=e.columns[c].wrappedWidth;if(!(h||a>=f))break;h=!1,s.push(c),l.push(e.columns[c]),a-=f,c++}return{colIndexes:s,columns:l,lastIndex:c-1}}e.calculateAllColumnsCanFitInPage=function(t,e){for(var n=[],i=0;i<e.columns.length;i++){var a=r(t,e,{start:i});a.columns.length&&(n.push(a),i=a.lastIndex)}return n}},324:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsize=e.resizeColumns=e.calculateWidths=void 0;var i=n(420);function r(t,e,n){for(var i=e,a=t.reduce((function(t,e){return t+e.wrappedWidth}),0),o=0;o<t.length;o++){var s=t[o],l=i*(s.wrappedWidth/a),u=s.width+l,h=n(s),c=u<h?h:u;e-=c-s.width,s.width=c}if(e=Math.round(1e10*e)/1e10){var f=t.filter((function(t){return!(e<0)||t.width>n(t)}));f.length&&(e=r(f,e,n))}return e}function a(t,e,n,r,a){return t.map((function(t){return function(t,e,n,r,a){var o=1e4*r.scaleFactor();if((e=Math.ceil(e*o)/o)>=(0,i.getStringWidth)(t,n,r))return t;for(;e<(0,i.getStringWidth)(t+a,n,r)&&!(t.length<=1);)t=t.substring(0,t.length-1);return t.trim()+a}(t,e,n,r,a)}))}e.calculateWidths=function(t,e){!function(t,e){var n=t.scaleFactor(),r=e.settings.horizontalPageBreak,a=(0,i.getPageAvailableWidth)(t,e);e.allRows().forEach((function(o){for(var s=0,l=e.columns;s<l.length;s++){var u=l[s],h=o.cells[u.index];if(h){var c=e.hooks.didParseCell;e.callCellHooks(t,c,h,o,u,null);var f=h.padding("horizontal");h.contentWidth=(0,i.getStringWidth)(h.text,h.styles,t)+f;var d=(0,i.getStringWidth)(h.text.join(" ").split(/\s+/),h.styles,t);if(h.minReadableWidth=d+h.padding("horizontal"),"number"==typeof h.styles.cellWidth)h.minWidth=h.styles.cellWidth,h.wrappedWidth=h.styles.cellWidth;else if("wrap"===h.styles.cellWidth||!0===r)h.contentWidth>a?(h.minWidth=a,h.wrappedWidth=a):(h.minWidth=h.contentWidth,h.wrappedWidth=h.contentWidth);else{var p=10/n;h.minWidth=h.styles.minCellWidth||p,h.wrappedWidth=h.contentWidth,h.minWidth>h.wrappedWidth&&(h.wrappedWidth=h.minWidth)}}}})),e.allRows().forEach((function(t){for(var n=0,i=e.columns;n<i.length;n++){var r=i[n],a=t.cells[r.index];if(a&&1===a.colSpan)r.wrappedWidth=Math.max(r.wrappedWidth,a.wrappedWidth),r.minWidth=Math.max(r.minWidth,a.minWidth),r.minReadableWidth=Math.max(r.minReadableWidth,a.minReadableWidth);else{var o=e.styles.columnStyles[r.dataKey]||e.styles.columnStyles[r.index]||{},s=o.cellWidth||o.minCellWidth;s&&"number"==typeof s&&(r.minWidth=s,r.wrappedWidth=s)}a&&(a.colSpan>1&&!r.minWidth&&(r.minWidth=a.minWidth),a.colSpan>1&&!r.wrappedWidth&&(r.wrappedWidth=a.minWidth))}}))}(t,e);var n=[],o=0;e.columns.forEach((function(t){var i=t.getMaxCustomCellWidth(e);i?t.width=i:(t.width=t.wrappedWidth,n.push(t)),o+=t.width}));var s=e.getWidth(t.pageSize().width)-o;s&&(s=r(n,s,(function(t){return Math.max(t.minReadableWidth,t.minWidth)}))),s&&(s=r(n,s,(function(t){return t.minWidth}))),s=Math.abs(s),!e.settings.horizontalPageBreak&&s>.1/t.scaleFactor()&&(s=s<1?s:Math.round(s),console.warn("Of the table content, ".concat(s," units width could not fit page"))),function(t){for(var e=t.allRows(),n=0;n<e.length;n++)for(var i=e[n],r=null,a=0,o=0,s=0;s<t.columns.length;s++){var l=t.columns[s];if((o-=1)>1&&t.columns[s+1])a+=l.width,delete i.cells[l.index];else if(r){var u=r;delete i.cells[l.index],r=null,u.width=l.width+a}else{if(!(u=i.cells[l.index]))continue;if(o=u.colSpan,a=0,u.colSpan>1){r=u,a+=l.width;continue}u.width=l.width+a}}}(e),function(t,e){for(var n={count:0,height:0},i=0,r=t.allRows();i<r.length;i++){for(var o=r[i],s=0,l=t.columns;s<l.length;s++){var u=l[s],h=o.cells[u.index];if(h){e.applyStyles(h.styles,!0);var c=h.width-h.padding("horizontal");if("linebreak"===h.styles.overflow)h.text=e.splitTextToSize(h.text,c+1/e.scaleFactor(),{fontSize:h.styles.fontSize});else if("ellipsize"===h.styles.overflow)h.text=a(h.text,c,h.styles,e,"...");else if("hidden"===h.styles.overflow)h.text=a(h.text,c,h.styles,e,"");else if("function"==typeof h.styles.overflow){var f=h.styles.overflow(h.text,c);h.text="string"==typeof f?[f]:f}h.contentHeight=h.getContentHeight(e.scaleFactor(),e.getLineHeightFactor());var d=h.contentHeight/h.rowSpan;h.rowSpan>1&&n.count*n.height<d*h.rowSpan?n={height:d,count:h.rowSpan}:n&&n.count>0&&n.height>d&&(d=n.height),d>o.height&&(o.height=d)}}n.count--}}(e,t),function(t){for(var e={},n=1,i=t.allRows(),r=0;r<i.length;r++)for(var a=i[r],o=0,s=t.columns;o<s.length;o++){var l=s[o],u=e[l.index];if(n>1)n--,delete a.cells[l.index];else if(u)u.cell.height+=a.height,n=u.cell.colSpan,delete a.cells[l.index],u.left--,u.left<=1&&delete e[l.index];else{var h=a.cells[l.index];if(!h)continue;if(h.height=a.height,h.rowSpan>1){var c=i.length-r,f=h.rowSpan>c?c:h.rowSpan;e[l.index]={cell:h,left:f,row:a}}}}}(e)},e.resizeColumns=r,e.ellipsize=a},964:function(e){if(void 0===t){var n=new Error("Cannot find module 'undefined'");throw n.code="MODULE_NOT_FOUND",n}e.exports=t}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var a=n[t]={exports:{}};return e[t].call(a.exports,a,a.exports,i),a.exports}var r={};return function(){var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.Cell=t.Column=t.Row=t.Table=t.CellHookData=t.__drawTable=t.__createTable=t.applyPlugin=void 0;var e=i(340),n=i(776),a=i(664),o=i(972),s=i(260);Object.defineProperty(t,"Table",{enumerable:!0,get:function(){return s.Table}});var l=i(172);Object.defineProperty(t,"CellHookData",{enumerable:!0,get:function(){return l.CellHookData}});var u=i(260);function h(t){(0,e.default)(t)}Object.defineProperty(t,"Cell",{enumerable:!0,get:function(){return u.Cell}}),Object.defineProperty(t,"Column",{enumerable:!0,get:function(){return u.Column}}),Object.defineProperty(t,"Row",{enumerable:!0,get:function(){return u.Row}}),t.applyPlugin=h,t.__createTable=function(t,e){var i=(0,n.parseInput)(t,e);return(0,o.createTable)(t,i)},t.__drawTable=function(t,e){(0,a.drawTable)(t,e)};try{var c=i(964);c.jsPDF&&(c=c.jsPDF),h(c)}catch(t){}t.default=function(t,e){var i=(0,n.parseInput)(t,e),r=(0,o.createTable)(t,i);(0,a.drawTable)(t,r)}}(),r}()},t.exports=i(function(){try{return n(44323)}catch(t){}}())},44323:(t,e,n)=>{"use strict";n.r(e),n.d(e,{AcroForm:()=>be,AcroFormAppearance:()=>me,AcroFormButton:()=>ue,AcroFormCheckBox:()=>de,AcroFormChoiceField:()=>ae,AcroFormComboBox:()=>se,AcroFormEditBox:()=>le,AcroFormListBox:()=>oe,AcroFormPasswordField:()=>ge,AcroFormPushButton:()=>he,AcroFormRadioButton:()=>ce,AcroFormTextField:()=>pe,GState:()=>Ct,ShadingPattern:()=>Nt,TilingPattern:()=>kt,default:()=>yn,jsPDF:()=>It});var i=n(82284),r=Uint8Array,a=Uint16Array,o=Uint32Array,s=new r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),l=new r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=function(t,e){for(var n=new a(31),i=0;i<31;++i)n[i]=e+=1<<t[i-1];var r=new o(n[30]);for(i=1;i<30;++i)for(var s=n[i];s<n[i+1];++s)r[s]=s-n[i]<<5|i;return[n,r]},c=h(s,2),f=c[0],d=c[1];f[28]=258,d[258]=28;for(var p=h(l,0),g=p[0],m=p[1],v=new a(32768),y=0;y<32768;++y){var _=(43690&y)>>>1|(21845&y)<<1;_=(61680&(_=(52428&_)>>>2|(13107&_)<<2))>>>4|(3855&_)<<4,v[y]=((65280&_)>>>8|(255&_)<<8)>>>1}var b=function(t,e,n){for(var i=t.length,r=0,o=new a(e);r<i;++r)++o[t[r]-1];var s,l=new a(e);for(r=0;r<e;++r)l[r]=l[r-1]+o[r-1]<<1;if(n){s=new a(1<<e);var u=15-e;for(r=0;r<i;++r)if(t[r])for(var h=r<<4|t[r],c=e-t[r],f=l[t[r]-1]++<<c,d=f|(1<<c)-1;f<=d;++f)s[v[f]>>>u]=h}else for(s=new a(i),r=0;r<i;++r)s[r]=v[l[t[r]-1]++]>>>15-t[r];return s},x=new r(288);for(y=0;y<144;++y)x[y]=8;for(y=144;y<256;++y)x[y]=9;for(y=256;y<280;++y)x[y]=7;for(y=280;y<288;++y)x[y]=8;var w=new r(32);for(y=0;y<32;++y)w[y]=5;var S=b(x,9,0),A=b(x,9,1),L=b(w,5,0),C=b(w,5,1),P=function(t){for(var e=t[0],n=1;n<t.length;++n)t[n]>e&&(e=t[n]);return e},N=function(t,e,n){var i=e/8|0;return(t[i]|t[i+1]<<8)>>>(7&e)&n},k=function(t,e){var n=e/8|0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>>(7&e)},I=function(t){return(t/8|0)+(7&t&&1)},M=function(t,e,n){(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length);var i=new(t instanceof a?a:t instanceof o?o:r)(n-e);return i.set(t.subarray(e,n)),i},T=function(t,e,n){var i=t.length,a=!e||n,o=!n||n.i;n||(n={}),e||(e=new r(3*i));var h=function(t){var n=e.length;if(t>n){var i=new r(Math.max(2*n,t));i.set(e),e=i}},c=n.f||0,d=n.p||0,p=n.b||0,m=n.l,v=n.d,y=n.m,_=n.n,x=8*i;do{if(!m){n.f=c=N(t,d,1);var w=N(t,d+1,3);if(d+=3,!w){var S=t[(q=I(d)+4)-4]|t[q-3]<<8,L=q+S;if(L>i){if(o)throw"unexpected EOF";break}a&&h(p+S),e.set(t.subarray(q,L),p),n.b=p+=S,n.p=d=8*L;continue}if(1==w)m=A,v=C,y=9,_=5;else{if(2!=w)throw"invalid block type";var T=N(t,d,31)+257,D=N(t,d+10,15)+4,O=T+N(t,d+5,31)+1;d+=14;for(var F=new r(O),R=new r(19),E=0;E<D;++E)R[u[E]]=N(t,d+3*E,7);d+=3*D;var B=P(R),z=(1<<B)-1;if(!o&&d+O*(B+7)>x)break;var j=b(R,B,1);for(E=0;E<O;){var q,H=j[N(t,d,z)];if(d+=15&H,(q=H>>>4)<16)F[E++]=q;else{var W=0,U=0;for(16==q?(U=3+N(t,d,3),d+=2,W=F[E-1]):17==q?(U=3+N(t,d,7),d+=3):18==q&&(U=11+N(t,d,127),d+=7);U--;)F[E++]=W}}var V=F.subarray(0,T),G=F.subarray(T);y=P(V),_=P(G),m=b(V,y,1),v=b(G,_,1)}if(d>x)throw"unexpected EOF"}a&&h(p+131072);for(var Y=(1<<y)-1,X=(1<<_)-1,$=y+_+18;o||d+$<x;){var K=(W=m[k(t,d)&Y])>>>4;if((d+=15&W)>x)throw"unexpected EOF";if(!W)throw"invalid length/literal";if(K<256)e[p++]=K;else{if(256==K){m=null;break}var J=K-254;if(K>264){var Z=s[E=K-257];J=N(t,d,(1<<Z)-1)+f[E],d+=Z}var Q=v[k(t,d)&X],tt=Q>>>4;if(!Q)throw"invalid distance";d+=15&Q;G=g[tt];if(tt>3){Z=l[tt];G+=k(t,d)&(1<<Z)-1,d+=Z}if(d>x)throw"unexpected EOF";a&&h(p+131072);for(var et=p+J;p<et;p+=4)e[p]=e[p-G],e[p+1]=e[p+1-G],e[p+2]=e[p+2-G],e[p+3]=e[p+3-G];p=et}}n.l=m,n.p=d,n.b=p,m&&(c=1,n.m=y,n.d=v,n.n=_)}while(!c);return p==e.length?e:M(e,0,p)},D=function(t,e,n){n<<=7&e;var i=e/8|0;t[i]|=n,t[i+1]|=n>>>8},O=function(t,e,n){n<<=7&e;var i=e/8|0;t[i]|=n,t[i+1]|=n>>>8,t[i+2]|=n>>>16},F=function(t,e){for(var n=[],i=0;i<t.length;++i)t[i]&&n.push({s:i,f:t[i]});var o=n.length,s=n.slice();if(!o)return[new r(0),0];if(1==o){var l=new r(n[0].s+1);return l[n[0].s]=1,[l,1]}n.sort((function(t,e){return t.f-e.f})),n.push({s:-1,f:25001});var u=n[0],h=n[1],c=0,f=1,d=2;for(n[0]={s:-1,f:u.f+h.f,l:u,r:h};f!=o-1;)u=n[n[c].f<n[d].f?c++:d++],h=n[c!=f&&n[c].f<n[d].f?c++:d++],n[f++]={s:-1,f:u.f+h.f,l:u,r:h};var p=s[0].s;for(i=1;i<o;++i)s[i].s>p&&(p=s[i].s);var g=new a(p+1),m=R(n[f-1],g,0);if(m>e){i=0;var v=0,y=m-e,_=1<<y;for(s.sort((function(t,e){return g[e.s]-g[t.s]||t.f-e.f}));i<o;++i){var b=s[i].s;if(!(g[b]>e))break;v+=_-(1<<m-g[b]),g[b]=e}for(v>>>=y;v>0;){var x=s[i].s;g[x]<e?v-=1<<e-g[x]++-1:++i}for(;i>=0&&v;--i){var w=s[i].s;g[w]==e&&(--g[w],++v)}m=e}return[new r(g),m]},R=function(t,e,n){return-1==t.s?Math.max(R(t.l,e,n+1),R(t.r,e,n+1)):e[t.s]=n},E=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new a(++e),i=0,r=t[0],o=1,s=function(t){n[i++]=t},l=1;l<=e;++l)if(t[l]==r&&l!=e)++o;else{if(!r&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(r),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(r);o=1,r=t[l]}return[n.subarray(0,i),e]},B=function(t,e){for(var n=0,i=0;i<e.length;++i)n+=t[i]*e[i];return n},z=function(t,e,n){var i=n.length,r=I(e+2);t[r]=255&i,t[r+1]=i>>>8,t[r+2]=255^t[r],t[r+3]=255^t[r+1];for(var a=0;a<i;++a)t[r+a+4]=n[a];return 8*(r+4+i)},j=function(t,e,n,i,r,o,h,c,f,d,p){D(e,p++,n),++r[256];for(var g=F(r,15),m=g[0],v=g[1],y=F(o,15),_=y[0],A=y[1],C=E(m),P=C[0],N=C[1],k=E(_),I=k[0],M=k[1],T=new a(19),R=0;R<P.length;++R)T[31&P[R]]++;for(R=0;R<I.length;++R)T[31&I[R]]++;for(var j=F(T,7),q=j[0],H=j[1],W=19;W>4&&!q[u[W-1]];--W);var U,V,G,Y,X=d+5<<3,$=B(r,x)+B(o,w)+h,K=B(r,m)+B(o,_)+h+14+3*W+B(T,q)+(2*T[16]+3*T[17]+7*T[18]);if(X<=$&&X<=K)return z(e,p,t.subarray(f,f+d));if(D(e,p,1+(K<$)),p+=2,K<$){U=b(m,v,0),V=m,G=b(_,A,0),Y=_;var J=b(q,H,0);D(e,p,N-257),D(e,p+5,M-1),D(e,p+10,W-4),p+=14;for(R=0;R<W;++R)D(e,p+3*R,q[u[R]]);p+=3*W;for(var Z=[P,I],Q=0;Q<2;++Q){var tt=Z[Q];for(R=0;R<tt.length;++R){var et=31&tt[R];D(e,p,J[et]),p+=q[et],et>15&&(D(e,p,tt[R]>>>5&127),p+=tt[R]>>>12)}}}else U=S,V=x,G=L,Y=w;for(R=0;R<c;++R)if(i[R]>255){et=i[R]>>>18&31;O(e,p,U[et+257]),p+=V[et+257],et>7&&(D(e,p,i[R]>>>23&31),p+=s[et]);var nt=31&i[R];O(e,p,G[nt]),p+=Y[nt],nt>3&&(O(e,p,i[R]>>>5&8191),p+=l[nt])}else O(e,p,U[i[R]]),p+=V[i[R]];return O(e,p,U[256]),p+V[256]},q=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),H=new r(0),W=function(t,e,n,i,u,h){var c=t.length,f=new r(i+c+5*(1+Math.floor(c/7e3))+u),p=f.subarray(i,f.length-u),g=0;if(!e||c<8)for(var v=0;v<=c;v+=65535){var y=v+65535;y<c?g=z(p,g,t.subarray(v,y)):(p[v]=h,g=z(p,g,t.subarray(v,c)))}else{for(var _=q[e-1],b=_>>>13,x=8191&_,w=(1<<n)-1,S=new a(32768),A=new a(w+1),L=Math.ceil(n/3),C=2*L,P=function(e){return(t[e]^t[e+1]<<L^t[e+2]<<C)&w},N=new o(25e3),k=new a(288),T=new a(32),D=0,O=0,F=(v=0,0),R=0,E=0;v<c;++v){var B=P(v),W=32767&v,U=A[B];if(S[W]=U,A[B]=W,R<=v){var V=c-v;if((D>7e3||F>24576)&&V>423){g=j(t,p,0,N,k,T,O,F,E,v-E,g),F=D=O=0,E=v;for(var G=0;G<286;++G)k[G]=0;for(G=0;G<30;++G)T[G]=0}var Y=2,X=0,$=x,K=W-U&32767;if(V>2&&B==P(v-K))for(var J=Math.min(b,V)-1,Z=Math.min(32767,v),Q=Math.min(258,V);K<=Z&&--$&&W!=U;){if(t[v+Y]==t[v+Y-K]){for(var tt=0;tt<Q&&t[v+tt]==t[v+tt-K];++tt);if(tt>Y){if(Y=tt,X=K,tt>J)break;var et=Math.min(K,tt-2),nt=0;for(G=0;G<et;++G){var it=v-K+G+32768&32767,rt=it-S[it]+32768&32767;rt>nt&&(nt=rt,U=it)}}}K+=(W=U)-(U=S[W])+32768&32767}if(X){N[F++]=268435456|d[Y]<<18|m[X];var at=31&d[Y],ot=31&m[X];O+=s[at]+l[ot],++k[257+at],++T[ot],R=v+Y,++D}else N[F++]=t[v],++k[t[v]]}}g=j(t,p,h,N,k,T,O,F,E,v-E,g),h||(g=z(p,g,H))}return M(f,0,i+I(g)+u)},U=function(){var t=1,e=0;return{p:function(n){for(var i=t,r=e,a=n.length,o=0;o!=a;){for(var s=Math.min(o+5552,a);o<s;++o)r+=i+=n[o];i%=65521,r%=65521}t=i,e=r},d:function(){return(t>>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}},V=function(t,e,n,i,r){return W(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,i,!r)},G=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},Y=function(t,e){var n=e.level,i=0==n?0:n<6?1:9==n?3:2;t[0]=120,t[1]=i<<6|(i?32-2*i:1)},X=function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"};function $(t,e){void 0===e&&(e={});var n=U();n.p(t);var i=V(t,e,2,4);return Y(i,e),G(i,i.length-4,n.d()),i}function K(t,e){return T((X(t),t.subarray(2,-4)),e)}var J=function(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this}();function Z(){J.console&&"function"==typeof J.console.log&&J.console.log.apply(J.console,arguments)}var Q={log:Z,warn:function(t){J.console&&("function"==typeof J.console.warn?J.console.warn.apply(J.console,arguments):Z.call(null,arguments))},error:function(t){J.console&&("function"==typeof J.console.error?J.console.error.apply(J.console,arguments):Z(t))}};function tt(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){at(i.response,e,n)},i.onerror=function(){Q.error("could not download file")},i.send()}function et(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function nt(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var it,rt,at=J.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,i.A)(window))||window!==J?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var i=J.URL||J.webkitURL,r=document.createElement("a");e=e||t.name||"download",r.download=e,r.rel="noopener","string"==typeof t?(r.href=t,r.origin!==location.origin?et(r.href)?tt(t,e,n):nt(r,r.target="_blank"):nt(r)):(r.href=i.createObjectURL(t),setTimeout((function(){i.revokeObjectURL(r.href)}),4e4),setTimeout((function(){nt(r)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(et(t))tt(t,e,n);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout((function(){nt(r)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==(0,i.A)(e)&&(Q.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return tt(t,e,n);var a="application/octet-stream"===t.type,o=/constructor/i.test(J.HTMLElement)||J.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||a&&o)&&"object"===("undefined"==typeof FileReader?"undefined":(0,i.A)(FileReader))){var l=new FileReader;l.onloadend=function(){var t=l.result;t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},l.readAsDataURL(t)}else{var u=J.URL||J.webkitURL,h=u.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout((function(){u.revokeObjectURL(h)}),4e4)}});function ot(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i=0;i<n.length;i++){var r=n[i].re,a=n[i].process,o=r.exec(t);o&&(e=a(o),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}}function st(t,e){var n=t[0],i=t[1],r=t[2],a=t[3];n=ut(n,i,r,a,e[0],7,-680876936),a=ut(a,n,i,r,e[1],12,-389564586),r=ut(r,a,n,i,e[2],17,606105819),i=ut(i,r,a,n,e[3],22,-1044525330),n=ut(n,i,r,a,e[4],7,-176418897),a=ut(a,n,i,r,e[5],12,1200080426),r=ut(r,a,n,i,e[6],17,-1473231341),i=ut(i,r,a,n,e[7],22,-45705983),n=ut(n,i,r,a,e[8],7,1770035416),a=ut(a,n,i,r,e[9],12,-1958414417),r=ut(r,a,n,i,e[10],17,-42063),i=ut(i,r,a,n,e[11],22,-1990404162),n=ut(n,i,r,a,e[12],7,1804603682),a=ut(a,n,i,r,e[13],12,-40341101),r=ut(r,a,n,i,e[14],17,-1502002290),n=ht(n,i=ut(i,r,a,n,e[15],22,1236535329),r,a,e[1],5,-165796510),a=ht(a,n,i,r,e[6],9,-1069501632),r=ht(r,a,n,i,e[11],14,643717713),i=ht(i,r,a,n,e[0],20,-373897302),n=ht(n,i,r,a,e[5],5,-701558691),a=ht(a,n,i,r,e[10],9,38016083),r=ht(r,a,n,i,e[15],14,-660478335),i=ht(i,r,a,n,e[4],20,-405537848),n=ht(n,i,r,a,e[9],5,568446438),a=ht(a,n,i,r,e[14],9,-1019803690),r=ht(r,a,n,i,e[3],14,-187363961),i=ht(i,r,a,n,e[8],20,1163531501),n=ht(n,i,r,a,e[13],5,-1444681467),a=ht(a,n,i,r,e[2],9,-51403784),r=ht(r,a,n,i,e[7],14,1735328473),n=ct(n,i=ht(i,r,a,n,e[12],20,-1926607734),r,a,e[5],4,-378558),a=ct(a,n,i,r,e[8],11,-2022574463),r=ct(r,a,n,i,e[11],16,1839030562),i=ct(i,r,a,n,e[14],23,-35309556),n=ct(n,i,r,a,e[1],4,-1530992060),a=ct(a,n,i,r,e[4],11,1272893353),r=ct(r,a,n,i,e[7],16,-155497632),i=ct(i,r,a,n,e[10],23,-1094730640),n=ct(n,i,r,a,e[13],4,681279174),a=ct(a,n,i,r,e[0],11,-358537222),r=ct(r,a,n,i,e[3],16,-722521979),i=ct(i,r,a,n,e[6],23,76029189),n=ct(n,i,r,a,e[9],4,-640364487),a=ct(a,n,i,r,e[12],11,-421815835),r=ct(r,a,n,i,e[15],16,530742520),n=ft(n,i=ct(i,r,a,n,e[2],23,-995338651),r,a,e[0],6,-198630844),a=ft(a,n,i,r,e[7],10,1126891415),r=ft(r,a,n,i,e[14],15,-1416354905),i=ft(i,r,a,n,e[5],21,-57434055),n=ft(n,i,r,a,e[12],6,1700485571),a=ft(a,n,i,r,e[3],10,-1894986606),r=ft(r,a,n,i,e[10],15,-1051523),i=ft(i,r,a,n,e[1],21,-2054922799),n=ft(n,i,r,a,e[8],6,1873313359),a=ft(a,n,i,r,e[15],10,-30611744),r=ft(r,a,n,i,e[6],15,-1560198380),i=ft(i,r,a,n,e[13],21,1309151649),n=ft(n,i,r,a,e[4],6,-145523070),a=ft(a,n,i,r,e[11],10,-1120210379),r=ft(r,a,n,i,e[2],15,718787259),i=ft(i,r,a,n,e[9],21,-343485551),t[0]=bt(n,t[0]),t[1]=bt(i,t[1]),t[2]=bt(r,t[2]),t[3]=bt(a,t[3])}function lt(t,e,n,i,r,a){return e=bt(bt(e,t),bt(i,a)),bt(e<<r|e>>>32-r,n)}function ut(t,e,n,i,r,a,o){return lt(e&n|~e&i,t,e,r,a,o)}function ht(t,e,n,i,r,a,o){return lt(e&i|n&~i,t,e,r,a,o)}function ct(t,e,n,i,r,a,o){return lt(e^n^i,t,e,r,a,o)}function ft(t,e,n,i,r,a,o){return lt(n^(e|~i),t,e,r,a,o)}function dt(t){var e,n=t.length,i=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)st(i,pt(t.substring(e-64,e)));t=t.substring(e-64);var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)r[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(st(i,r),e=0;e<16;e++)r[e]=0;return r[14]=8*n,st(i,r),i}function pt(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}it=J.atob.bind(J),rt=J.btoa.bind(J);var gt="0123456789abcdef".split("");function mt(t){for(var e="",n=0;n<4;n++)e+=gt[t>>8*n+4&15]+gt[t>>8*n&15];return e}function vt(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function yt(t){return dt(t).map(vt).join("")}var _t="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=mt(t[e]);return t.join("")}(dt("hello"));function bt(t,e){if(_t){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}function xt(t,e){var n,i,r,a;if(t!==n){for(var o=(r=t,a=1+(256/t.length|0),new Array(a+1).join(r)),s=[],l=0;l<256;l++)s[l]=l;var u=0;for(l=0;l<256;l++){var h=s[l];u=(u+h+o.charCodeAt(l))%256,s[l]=s[u],s[u]=h}n=t,i=s}else s=i;var c=e.length,f=0,d=0,p="";for(l=0;l<c;l++)d=(d+(h=s[f=(f+1)%256]))%256,s[f]=s[d],s[d]=h,o=s[(s[f]+s[d])%256],p+=String.fromCharCode(e.charCodeAt(l)^o);return p}var wt={print:4,modify:8,copy:16,"annot-forms":32};function St(t,e,n,i){this.v=1,this.r=2;var r=192;t.forEach((function(t){if(void 0!==wt.perm)throw new Error("Invalid permission: "+t);r+=wt[t]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(e+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^r)),this.encryptionKey=yt(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=xt(this.encryptionKey,this.padding)}function At(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,i=0;i<n;i++){var r=t.charCodeAt(i);e+=r<33||35===r||37===r||40===r||41===r||47===r||60===r||62===r||91===r||93===r||123===r||125===r||r>126?"#"+("0"+r.toString(16)).slice(-2):t[i]}return e}function Lt(t){if("object"!==(0,i.A)(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,i){if(i=i||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof i)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var r=Math.random().toString(35);return e[t][r]=[n,!!i],r},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var i=Array.prototype.slice.call(arguments,1),r=[];for(var a in e[n]){var o=e[n][a];try{o[0].apply(t,i)}catch(n){J.console&&Q.error("jsPDF PubSub Error",n.message,n)}o[1]&&r.push(a)}r.length&&r.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Ct(t){if(!(this instanceof Ct))return new Ct(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function Pt(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function Nt(t,e,n,i,r){if(!(this instanceof Nt))return new Nt(t,e,n,i,r);this.type="axial"===t?2:3,this.coords=e,this.colors=n,Pt.call(this,i,r)}function kt(t,e,n,i,r){if(!(this instanceof kt))return new kt(t,e,n,i,r);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,Pt.call(this,i,r)}function It(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],a=arguments[2],o=arguments[3],s=[],l=1,u=16,h="S",c=null;"object"===(0,i.A)(t=t||{})&&(n=t.orientation,r=t.unit||r,a=t.format||a,o=t.compress||t.compressPdf||o,null!==(c=t.encryption||null)&&(c.userPassword=c.userPassword||"",c.ownerPassword=c.ownerPassword||"",c.userPermissions=c.userPermissions||[]),l="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(u=t.floatPrecision),h=t.defaultPathOperation||"S"),s=t.filters||(!0===o?["FlateEncode"]:s),r=r||"mm",n=(""+(n||"P")).toLowerCase();var f=t.putOnlyUsedFonts||!1,d={},p={internal:{},__private__:{}};p.__private__.PubSub=Lt;var g="1.3",m=p.__private__.getPdfVersion=function(){return g};p.__private__.setPdfVersion=function(t){g=t};var v={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return v};var y=p.__private__.getPageFormat=function(t){return v[t]};a=a||"a4";var _="compat",b="advanced",x=_;function w(){this.saveGraphicsState(),tt(new Ut(yt,0,0,-yt,0,Sn()*yt).toString()+" cm"),this.setFontSize(this.getFontSize()/yt),h="n",x=b}function S(){this.restoreGraphicsState(),h="S",x=_}var A=p.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};p.advancedAPI=function(t){var e=x===_;return e&&w.call(this),"function"!=typeof t||(t(this),e&&S.call(this)),this},p.compatAPI=function(t){var e=x===b;return e&&S.call(this),"function"!=typeof t||(t(this),e&&w.call(this)),this},p.isAdvancedAPI=function(){return x===b};var L,C=function(t){if(x!==b)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},P=p.roundToPrecision=p.__private__.roundToPrecision=function(t,n){var i=e||n;if(isNaN(t)||isNaN(i))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(i).replace(/0+$/,"")};L=p.hpf=p.__private__.hpf="number"==typeof u?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return P(t,u)}:"smart"===u?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return P(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return P(t,16)};var N=p.f2=p.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return P(t,2)},k=p.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return P(t,3)},I=p.scale=p.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return x===_?t*yt:x===b?t:void 0},M=function(t){return I(function(t){return x===_?Sn()-t:x===b?t:void 0}(t))};p.__private__.setPrecision=p.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var T,D="00000000000000000000000000000000",O=p.__private__.getFileId=function(){return D},F=p.__private__.setFileId=function(t){return D=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():D.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==c&&(Te=new St(c.userPermissions,c.userPassword,c.ownerPassword,D)),D};p.setFileId=function(t){return F(t),this},p.getFileId=function(){return O()};var R=p.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",i=Math.floor(Math.abs(e/60)),r=Math.abs(e%60),a=[n,q(i),"'",q(r),"'"].join("");return["D:",t.getFullYear(),q(t.getMonth()+1),q(t.getDate()),q(t.getHours()),q(t.getMinutes()),q(t.getSeconds()),a].join("")},E=p.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,i=parseInt(t.substr(8,2),10),r=parseInt(t.substr(10,2),10),a=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,n,i,r,a,o,0)},B=p.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=R(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return T=e},z=p.__private__.getCreationDate=function(t){var e=T;return"jsDate"===t&&(e=E(T)),e};p.setCreationDate=function(t){return B(t),this},p.getCreationDate=function(t){return z(t)};var j,q=p.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},H=p.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},W=0,U=[],V=[],G=0,Y=[],X=[],$=!1,K=V;p.__private__.setCustomOutputDestination=function(t){$=!0,K=t};var Z=function(t){$||(K=t)};p.__private__.resetCustomOutputDestination=function(){$=!1,K=V};var tt=p.__private__.out=function(t){return t=t.toString(),G+=t.length+1,K.push(t),K},et=p.__private__.write=function(t){return tt(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},nt=p.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),i=new Uint8Array(n);e--;)i[e]=t.charCodeAt(e);return n},it=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return it};var st=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(t){return st=x===b?t/yt:t,this};var lt,ut=p.__private__.getFontSize=p.getFontSize=function(){return x===_?st:st*yt},ht=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(t){return ht=t,this},p.__private__.getR2L=p.getR2L=function(){return ht};var ct,ft=p.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))lt=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');lt=t}else lt=parseInt(t,10)};p.__private__.getZoomMode=function(){return lt};var dt,pt=p.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');ct=t};p.__private__.getPageMode=function(){return ct};var gt=p.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');dt=t};p.__private__.getLayoutMode=function(){return dt},p.__private__.setDisplayMode=p.setDisplayMode=function(t,e,n){return ft(t),gt(e),pt(n),this};var mt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(t){if(-1===Object.keys(mt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return mt[t]},p.__private__.getDocumentProperties=function(){return mt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(t){for(var e in mt)mt.hasOwnProperty(e)&&t[e]&&(mt[e]=t[e]);return this},p.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(mt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return mt[t]=e};var vt,yt,_t,bt,xt,wt={},Pt={},Mt=[],Tt={},Dt={},Ot={},Ft={},Rt=null,Et=0,Bt=[],zt=new Lt(p),jt=t.hotfixes||[],qt={},Ht={},Wt=[],Ut=function t(e,n,i,r,a,o){if(!(this instanceof t))return new t(e,n,i,r,a,o);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(i)&&(i=0),isNaN(r)&&(r=1),isNaN(a)&&(a=0),isNaN(o)&&(o=0),this._matrix=[e,n,i,r,a,o]};Object.defineProperty(Ut.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Ut.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Ut.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Ut.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Ut.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Ut.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Ut.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Ut.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Ut.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Ut.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Ut.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Ut.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Ut.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ut.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ut.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ut.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ut.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(L).join(t)},Ut.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,i=t.shx*this.sx+t.sy*this.shx,r=t.shx*this.shy+t.sy*this.sy,a=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new Ut(e,n,i,r,a,o)},Ut.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,i=this.sy,r=this.tx,a=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*n+(e/=o)*i;n-=t*s,i-=e*s;var l=Math.sqrt(n*n+i*i);return s/=l,t*(i/=l)<e*(n/=l)&&(t=-t,e=-e,s=-s,o=-o),{scale:new Ut(o,0,0,l,0,0),translate:new Ut(1,0,0,1,r,a),rotate:new Ut(t,e,-e,t,0,0),skew:new Ut(1,0,s,1,0,0)}},Ut.prototype.toString=function(t){return this.join(" ")},Ut.prototype.inversed=function(){var t=this.sx,e=this.shy,n=this.shx,i=this.sy,r=this.tx,a=this.ty,o=1/(t*i-e*n),s=i*o,l=-e*o,u=-n*o,h=t*o;return new Ut(s,l,u,h,-s*r-u*a,-l*r-h*a)},Ut.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,n=t.x*this.shy+t.y*this.sy+this.ty;return new mn(e,n)},Ut.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new mn(t.x+t.w,t.y+t.h));return new vn(e.x,e.y,n.x-e.x,n.y-e.y)},Ut.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,i=this.sy,r=this.tx,a=this.ty;return new Ut(t,e,n,i,r,a)},p.Matrix=Ut;var Vt=p.matrixMult=function(t,e){return e.multiply(t)},Gt=new Ut(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Gt;var Yt=function(t,e){if(!Dt[t]){var n=(e instanceof Nt?"Sh":"P")+(Object.keys(Tt).length+1).toString(10);e.id=n,Dt[t]=n,Tt[n]=e,zt.publish("addPattern",e)}};p.ShadingPattern=Nt,p.TilingPattern=kt,p.addShadingPattern=function(t,e){return C("addShadingPattern()"),Yt(t,e),this},p.beginTilingPattern=function(t){C("beginTilingPattern()"),_n(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},p.endTilingPattern=function(t,e){C("endTilingPattern()"),e.stream=X[j].join("\n"),Yt(t,e),zt.publish("endTilingPattern",e),Wt.pop().restore()};var Xt,$t=p.__private__.newObject=function(){var t=Kt();return Jt(t,!0),t},Kt=p.__private__.newObjectDeferred=function(){return W++,U[W]=function(){return G},W},Jt=function(t,e){return e="boolean"==typeof e&&e,U[t]=G,e&&tt(t+" 0 obj"),t},Zt=p.__private__.newAdditionalObject=function(){var t={objId:Kt(),content:""};return Y.push(t),t},Qt=Kt(),te=Kt(),ee=p.__private__.decodeColorString=function(t){var e=t.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1])5!==e.length||"k"!==e[4]&&"K"!==e[4]||(e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]);else{var n=parseFloat(e[0]);e=[n,n,n,"r"]}for(var i="#",r=0;r<3;r++)i+=("0"+Math.floor(255*parseFloat(e[r])).toString(16)).slice(-2);return i},ne=p.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var n=t.ch1,r=t.ch2,a=t.ch3,o=t.ch4,s="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var l=new ot(n);if(l.ok)n=l.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var u=parseInt(n.substr(1),16);n=u>>16&255,r=u>>8&255,a=255&u}if(void 0===r||void 0===o&&n===r&&r===a)if("string"==typeof n)e=n+" "+s[0];else if(2===t.precision)e=N(n/255)+" "+s[0];else e=k(n/255)+" "+s[0];else if(void 0===o||"object"===(0,i.A)(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",s[1]].join(" ");if("string"==typeof n)e=[n,r,a,s[1]].join(" ");else if(2===t.precision)e=[N(n/255),N(r/255),N(a/255),s[1]].join(" ");else e=[k(n/255),k(r/255),k(a/255),s[1]].join(" ")}else if("string"==typeof n)e=[n,r,a,o,s[2]].join(" ");else if(2===t.precision)e=[N(n),N(r),N(a),N(o),s[2]].join(" ");else e=[k(n),k(r),k(a),k(o),s[2]].join(" ");return e},ie=p.__private__.getFilters=function(){return s},re=p.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||ie(),i=t.alreadyAppliedFilters||[],r=t.addLength1||!1,a=e.length,o=t.objectId,s=function(t){return t};if(null!==c&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==c&&(s=Te.encryptor(o,0));var l={};!0===n&&(n=["FlateEncode"]);var u=t.additionalKeyValues||[],h=(l=void 0!==It.API.processDataByFilters?It.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(i)?i.join(" "):i.toString());if(0!==l.data.length&&(u.push({key:"Length",value:l.data.length}),!0===r&&u.push({key:"Length1",value:a})),0!=h.length)if(h.split("/").length-1==1)u.push({key:"Filter",value:h});else{u.push({key:"Filter",value:"["+h+"]"});for(var f=0;f<u.length;f+=1)if("DecodeParms"===u[f].key){for(var d=[],p=0;p<l.reverseChain.split("/").length-1;p+=1)d.push("null");d.push(u[f].value),u[f].value="["+d.join(" ")+"]"}}tt("<<");for(var g=0;g<u.length;g++)tt("/"+u[g].key+" "+u[g].value);tt(">>"),0!==l.data.length&&(tt("stream"),tt(s(l.data)),tt("endstream"))},ae=p.__private__.putPage=function(t){var e=t.number,n=t.data,i=t.objId,r=t.contentsObjId;Jt(i,!0),tt("<</Type /Page"),tt("/Parent "+t.rootDictionaryObjId+" 0 R"),tt("/Resources "+t.resourceDictionaryObjId+" 0 R"),tt("/MediaBox ["+parseFloat(L(t.mediaBox.bottomLeftX))+" "+parseFloat(L(t.mediaBox.bottomLeftY))+" "+L(t.mediaBox.topRightX)+" "+L(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&tt("/CropBox ["+L(t.cropBox.bottomLeftX)+" "+L(t.cropBox.bottomLeftY)+" "+L(t.cropBox.topRightX)+" "+L(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&tt("/BleedBox ["+L(t.bleedBox.bottomLeftX)+" "+L(t.bleedBox.bottomLeftY)+" "+L(t.bleedBox.topRightX)+" "+L(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&tt("/TrimBox ["+L(t.trimBox.bottomLeftX)+" "+L(t.trimBox.bottomLeftY)+" "+L(t.trimBox.topRightX)+" "+L(t.trimBox.topRightY)+"]"),null!==t.artBox&&tt("/ArtBox ["+L(t.artBox.bottomLeftX)+" "+L(t.artBox.bottomLeftY)+" "+L(t.artBox.topRightX)+" "+L(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&tt("/UserUnit "+t.userUnit),zt.publish("putPage",{objId:i,pageContext:Bt[e],pageNumber:e,page:n}),tt("/Contents "+r+" 0 R"),tt(">>"),tt("endobj");var a=n.join("\n");return x===b&&(a+="\nQ"),Jt(r,!0),re({data:a,filters:ie(),objectId:r}),tt("endobj"),i},oe=p.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=Et;t++)Bt[t].objId=Kt(),Bt[t].contentsObjId=Kt();for(t=1;t<=Et;t++)n.push(ae({number:t,data:X[t],objId:Bt[t].objId,contentsObjId:Bt[t].contentsObjId,mediaBox:Bt[t].mediaBox,cropBox:Bt[t].cropBox,bleedBox:Bt[t].bleedBox,trimBox:Bt[t].trimBox,artBox:Bt[t].artBox,userUnit:Bt[t].userUnit,rootDictionaryObjId:Qt,resourceDictionaryObjId:te}));Jt(Qt,!0),tt("<</Type /Pages");var i="/Kids [";for(e=0;e<Et;e++)i+=n[e]+" 0 R ";tt(i+"]"),tt("/Count "+Et),tt(">>"),tt("endobj"),zt.publish("postPutPages")},se=function(t){zt.publish("putFont",{font:t,out:tt,newObject:$t,putStream:re}),!0!==t.isAlreadyPutted&&(t.objectNumber=$t(),tt("<<"),tt("/Type /Font"),tt("/BaseFont /"+At(t.postScriptName)),tt("/Subtype /Type1"),"string"==typeof t.encoding&&tt("/Encoding /"+t.encoding),tt("/FirstChar 32"),tt("/LastChar 255"),tt(">>"),tt("endobj"))},le=function(t){t.objectNumber=$t();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[L(t.x),L(t.y),L(t.x+t.width),L(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");re({data:n,additionalKeyValues:e,objectId:t.objectNumber}),tt("endobj")},ue=function(t,e){e||(e=21);var n=$t(),i=function(t,e){var n,i=[],r=1/(e-1);for(n=0;n<1;n+=r)i.push(n);if(i.push(1),0!=t[0].offset){var a={offset:0,color:t[0].color};t.unshift(a)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var s="",l=0,u=0;u<i.length;u++){for(n=i[u];n>t[l+1].offset;)l++;var h=t[l].offset,c=(n-h)/(t[l+1].offset-h),f=t[l].color,d=t[l+1].color;s+=H(Math.round((1-c)*f[0]+c*d[0]).toString(16))+H(Math.round((1-c)*f[1]+c*d[1]).toString(16))+H(Math.round((1-c)*f[2]+c*d[2]).toString(16))}return s.trim()}(t.colors,e),r=[];r.push({key:"FunctionType",value:"0"}),r.push({key:"Domain",value:"[0.0 1.0]"}),r.push({key:"Size",value:"["+e+"]"}),r.push({key:"BitsPerSample",value:"8"}),r.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),r.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),re({data:i,additionalKeyValues:r,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),tt("endobj"),t.objectNumber=$t(),tt("<< /ShadingType "+t.type),tt("/ColorSpace /DeviceRGB");var a="/Coords ["+L(parseFloat(t.coords[0]))+" "+L(parseFloat(t.coords[1]))+" ";2===t.type?a+=L(parseFloat(t.coords[2]))+" "+L(parseFloat(t.coords[3])):a+=L(parseFloat(t.coords[2]))+" "+L(parseFloat(t.coords[3]))+" "+L(parseFloat(t.coords[4]))+" "+L(parseFloat(t.coords[5])),tt(a+="]"),t.matrix&&tt("/Matrix ["+t.matrix.toString()+"]"),tt("/Function "+n+" 0 R"),tt("/Extend [true true]"),tt(">>"),tt("endobj")},he=function(t,e){var n=Kt(),i=$t();e.push({resourcesOid:n,objectOid:i}),t.objectNumber=i;var r=[];r.push({key:"Type",value:"/Pattern"}),r.push({key:"PatternType",value:"1"}),r.push({key:"PaintType",value:"1"}),r.push({key:"TilingType",value:"1"}),r.push({key:"BBox",value:"["+t.boundingBox.map(L).join(" ")+"]"}),r.push({key:"XStep",value:L(t.xStep)}),r.push({key:"YStep",value:L(t.yStep)}),r.push({key:"Resources",value:n+" 0 R"}),t.matrix&&r.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),re({data:t.stream,additionalKeyValues:r,objectId:t.objectNumber}),tt("endobj")},ce=function(t){for(var e in t.objectNumber=$t(),tt("<<"),t)switch(e){case"opacity":tt("/ca "+N(t[e]));break;case"stroke-opacity":tt("/CA "+N(t[e]))}tt(">>"),tt("endobj")},fe=function(t){Jt(t.resourcesOid,!0),tt("<<"),tt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var t in tt("/Font <<"),wt)wt.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&tt("/"+t+" "+wt[t].objectNumber+" 0 R");tt(">>")}(),function(){if(Object.keys(Tt).length>0){for(var t in tt("/Shading <<"),Tt)Tt.hasOwnProperty(t)&&Tt[t]instanceof Nt&&Tt[t].objectNumber>=0&&tt("/"+t+" "+Tt[t].objectNumber+" 0 R");zt.publish("putShadingPatternDict"),tt(">>")}}(),function(t){if(Object.keys(Tt).length>0){for(var e in tt("/Pattern <<"),Tt)Tt.hasOwnProperty(e)&&Tt[e]instanceof p.TilingPattern&&Tt[e].objectNumber>=0&&Tt[e].objectNumber<t&&tt("/"+e+" "+Tt[e].objectNumber+" 0 R");zt.publish("putTilingPatternDict"),tt(">>")}}(t.objectOid),function(){if(Object.keys(Ot).length>0){var t;for(t in tt("/ExtGState <<"),Ot)Ot.hasOwnProperty(t)&&Ot[t].objectNumber>=0&&tt("/"+t+" "+Ot[t].objectNumber+" 0 R");zt.publish("putGStateDict"),tt(">>")}}(),function(){for(var t in tt("/XObject <<"),qt)qt.hasOwnProperty(t)&&qt[t].objectNumber>=0&&tt("/"+t+" "+qt[t].objectNumber+" 0 R");zt.publish("putXobjectDict"),tt(">>")}(),tt(">>"),tt("endobj")},de=function(){var t=[];(function(){for(var t in wt)wt.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&se(wt[t])})(),function(){var t;for(t in Ot)Ot.hasOwnProperty(t)&&ce(Ot[t])}(),function(){for(var t in qt)qt.hasOwnProperty(t)&&le(qt[t])}(),function(t){var e;for(e in Tt)Tt.hasOwnProperty(e)&&(Tt[e]instanceof Nt?ue(Tt[e]):Tt[e]instanceof kt&&he(Tt[e],t))}(t),zt.publish("putResources"),t.forEach(fe),fe({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),zt.publish("postPutResources")},pe=function(t){Pt[t.fontName]=Pt[t.fontName]||{},Pt[t.fontName][t.fontStyle]=t.id},ge=function(t,e,n,i,r){var a={id:"F"+(Object.keys(wt).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:n,encoding:i,isStandardFont:r||!1,metadata:{}};return zt.publish("addFont",{font:a,instance:this}),wt[a.id]=a,pe(a),a.id},me=p.__private__.pdfEscape=p.pdfEscape=function(t,e){return function(t,e){var n,i,r,a,o,s,l,u,h;if(r=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&wt[vt].metadata&&wt[vt].metadata[r]&&wt[vt].metadata[r].encoding&&(a=wt[vt].metadata[r].encoding,!o&&wt[vt].encoding&&(o=wt[vt].encoding),!o&&a.codePages&&(o=a.codePages[0]),"string"==typeof o&&(o=a[o]),o)){for(l=!1,s=[],n=0,i=t.length;n<i;n++)(u=o[t.charCodeAt(n)])?s.push(String.fromCharCode(u)):s.push(t[n]),s[n].charCodeAt(0)>>8&&(l=!0);t=s.join("")}for(n=t.length;void 0===l&&0!==n;)t.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return t;for(s=e.noBOM?[]:[254,255],n=0,i=t.length;n<i;n++){if((h=(u=t.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(h),s.push(u-(h<<8))}return String.fromCharCode.apply(void 0,s)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ve=p.__private__.beginPage=function(t){X[++Et]=[],Bt[Et]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},be(Et),Z(X[j])},ye=function(t,e){var i,r,o;switch(n=e||n,"string"==typeof t&&(i=y(t.toLowerCase()),Array.isArray(i)&&(r=i[0],o=i[1])),Array.isArray(t)&&(r=t[0]*yt,o=t[1]*yt),isNaN(r)&&(r=a[0],o=a[1]),(r>14400||o>14400)&&(Q.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),r=Math.min(14400,r),o=Math.min(14400,o)),a=[r,o],n.substr(0,1)){case"l":o>r&&(a=[o,r]);break;case"p":r>o&&(a=[o,r])}ve(a),Ze(Ke),tt(sn),0!==dn&&tt(dn+" J"),0!==pn&&tt(pn+" j"),zt.publish("addPage",{pageNumber:Et})},_e=function(t){t>0&&t<=Et&&(X.splice(t,1),Bt.splice(t,1),Et--,j>Et&&(j=Et),this.setPage(j))},be=function(t){t>0&&t<=Et&&(j=t)},xe=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return X.length-1},we=function(t,e,n){var i,r=void 0;return n=n||{},t=void 0!==t?t:wt[vt].fontName,e=void 0!==e?e:wt[vt].fontStyle,i=t.toLowerCase(),void 0!==Pt[i]&&void 0!==Pt[i][e]?r=Pt[i][e]:void 0!==Pt[t]&&void 0!==Pt[t][e]?r=Pt[t][e]:!1===n.disableWarning&&Q.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),r||n.noFallback||null==(r=Pt.times[e])&&(r=Pt.times.normal),r},Se=p.__private__.putInfo=function(){var t=$t(),e=function(t){return t};for(var n in null!==c&&(e=Te.encryptor(t,0)),tt("<<"),tt("/Producer ("+me(e("jsPDF "+It.version))+")"),mt)mt.hasOwnProperty(n)&&mt[n]&&tt("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+me(e(mt[n]))+")");tt("/CreationDate ("+me(e(T))+")"),tt(">>"),tt("endobj")},Ae=p.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Qt;switch($t(),tt("<<"),tt("/Type /Catalog"),tt("/Pages "+e+" 0 R"),lt||(lt="fullwidth"),lt){case"fullwidth":tt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":tt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":tt("/OpenAction [3 0 R /Fit]");break;case"original":tt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+lt;"%"===n.substr(n.length-1)&&(lt=parseInt(lt)/100),"number"==typeof lt&&tt("/OpenAction [3 0 R /XYZ null null "+N(lt)+"]")}switch(dt||(dt="continuous"),dt){case"continuous":tt("/PageLayout /OneColumn");break;case"single":tt("/PageLayout /SinglePage");break;case"two":case"twoleft":tt("/PageLayout /TwoColumnLeft");break;case"tworight":tt("/PageLayout /TwoColumnRight")}ct&&tt("/PageMode /"+ct),zt.publish("putCatalog"),tt(">>"),tt("endobj")},Le=p.__private__.putTrailer=function(){tt("trailer"),tt("<<"),tt("/Size "+(W+1)),tt("/Root "+W+" 0 R"),tt("/Info "+(W-1)+" 0 R"),null!==c&&tt("/Encrypt "+Te.oid+" 0 R"),tt("/ID [ <"+D+"> <"+D+"> ]"),tt(">>")},Ce=p.__private__.putHeader=function(){tt("%PDF-"+g),tt("%ºß¬à")},Pe=p.__private__.putXRef=function(){var t="0000000000";tt("xref"),tt("0 "+(W+1)),tt("0000000000 65535 f ");for(var e=1;e<=W;e++)"function"==typeof U[e]?tt((t+U[e]()).slice(-10)+" 00000 n "):void 0!==U[e]?tt((t+U[e]).slice(-10)+" 00000 n "):tt("0000000000 00000 n ")},Ne=p.__private__.buildDocument=function(){W=0,G=0,V=[],U=[],Y=[],Qt=Kt(),te=Kt(),Z(V),zt.publish("buildDocument"),Ce(),oe(),function(){zt.publish("putAdditionalObjects");for(var t=0;t<Y.length;t++){var e=Y[t];Jt(e.objId,!0),tt(e.content),tt("endobj")}zt.publish("postPutAdditionalObjects")}(),de(),null!==c&&(Te.oid=$t(),tt("<<"),tt("/Filter /Standard"),tt("/V "+Te.v),tt("/R "+Te.r),tt("/U <"+Te.toHexString(Te.U)+">"),tt("/O <"+Te.toHexString(Te.O)+">"),tt("/P "+Te.P),tt(">>"),tt("endobj")),Se(),Ae();var t=G;return Pe(),Le(),tt("startxref"),tt(""+t),tt("%%EOF"),Z(X[j]),V.join("\n")},ke=p.__private__.getBlob=function(t){return new Blob([nt(t)],{type:"application/pdf"})},Ie=p.output=p.__private__.output=(Xt=function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return Ne();case"save":p.save(e.filename);break;case"arraybuffer":return nt(Ne());case"blob":return ke(Ne());case"bloburi":case"bloburl":if(void 0!==J.URL&&"function"==typeof J.URL.createObjectURL)return J.URL&&J.URL.createObjectURL(ke(Ne()))||void 0;Q.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",i=Ne();try{n=rt(i)}catch(t){n=rt(unescape(encodeURIComponent(i)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(J)){var r="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",a=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(r=e.pdfObjectUrl,a="");var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+r+'"'+a+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",s=J.open();return null!==s&&s.document.write(o),s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(J)){var l='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',u=J.open();if(null!==u){u.document.write(l);var h=this;u.document.documentElement.querySelector("#pdfViewer").onload=function(){u.document.title=e.filename,u.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(h.output("bloburl"))}}return u}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(J))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var c='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',f=J.open();if(null!==f&&(f.document.write(c),f.document.title=e.filename),f||"undefined"==typeof safari)return f;break;case"datauri":case"dataurl":return J.document.location.href=this.output("datauristring",e);default:return null}},Xt.foo=function(){try{return Xt.apply(this,arguments)}catch(n){var t=n.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var e="Error in function "+t.split("\n")[0].split("<")[0]+": "+n.message;if(!J.console)throw new Error(e);J.console.error(e,n),J.alert&&alert(e)}},Xt.foo.bar=Xt,Xt.foo),Me=function(t){return!0===Array.isArray(jt)&&jt.indexOf(t)>-1};switch(r){case"pt":yt=1;break;case"mm":yt=72/25.4;break;case"cm":yt=72/2.54;break;case"in":yt=72;break;case"px":yt=1==Me("px_scaling")?.75:96/72;break;case"pc":case"em":yt=12;break;case"ex":yt=6;break;default:if("number"!=typeof r)throw new Error("Invalid unit: "+r);yt=r}var Te=null;B(),F();var De=p.__private__.getPageInfo=p.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Bt[t].objId,pageNumber:t,pageContext:Bt[t]}},Oe=p.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in Bt)if(Bt[e].objId===t)break;return De(e)},Fe=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Bt[j].objId,pageNumber:j,pageContext:Bt[j]}};p.addPage=function(){return ye.apply(this,arguments),this},p.setPage=function(){return be.apply(this,arguments),Z.call(this,X[j]),this},p.insertPage=function(t){return this.addPage(),this.movePage(j,t),this},p.movePage=function(t,e){var n,i;if(t>e){n=X[t],i=Bt[t];for(var r=t;r>e;r--)X[r]=X[r-1],Bt[r]=Bt[r-1];X[e]=n,Bt[e]=i,this.setPage(e)}else if(t<e){n=X[t],i=Bt[t];for(var a=t;a<e;a++)X[a]=X[a+1],Bt[a]=Bt[a+1];X[e]=n,Bt[e]=i,this.setPage(e)}return this},p.deletePage=function(){return _e.apply(this,arguments),this},p.__private__.text=p.text=function(t,e,n,r,a){var o,s,l,u,h,c,f,p,g,m=(r=r||{}).scope||this;if("number"==typeof t&&"number"==typeof e&&("string"==typeof n||Array.isArray(n))){var v=n;n=e,e=t,t=v}if(arguments[3]instanceof Ut==0?(l=arguments[4],u=arguments[5],"object"===(0,i.A)(f=arguments[3])&&null!==f||("string"==typeof l&&(u=l,l=null),"string"==typeof f&&(u=f,f=null),"number"==typeof f&&(l=f,f=null),r={flags:f,angle:l,align:u})):(C("The transform parameter of text() with a Matrix value"),g=a),isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return m;var y,_="",w="number"==typeof r.lineHeightFactor?r.lineHeightFactor:$e,S=m.internal.scaleFactor;function A(t){return t=t.split("\t").join(Array(r.TabLen||9).join(" ")),me(t,f)}function P(t){for(var e,n=t.concat(),i=[],r=n.length;r--;)"string"==typeof(e=n.shift())?i.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?i.push(e[0]):i.push([e[0],e[1],e[2]]);return i}function N(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var i,r,a=t.concat(),o=[],s=a.length;s--;)"string"==typeof(i=a.shift())?o.push(e(i)[0]):Array.isArray(i)&&"string"==typeof i[0]&&(r=e(i[0],i[1],i[2]),o.push([r[0],r[1],r[2]]));n=o}return n}var k=!1,M=!0;if("string"==typeof t)k=!0;else if(Array.isArray(t)){var T=t.concat();s=[];for(var D,O=T.length;O--;)("string"!=typeof(D=T.shift())||Array.isArray(D)&&"string"!=typeof D[0])&&(M=!1);k=M}if(!1===k)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var F=st/m.internal.scaleFactor,R=F*(w-1);switch(r.baseline){case"bottom":n-=R;break;case"top":n+=F-R;break;case"hanging":n+=F-2*R;break;case"middle":n+=F/2-R}if((c=r.maxWidth||0)>0&&("string"==typeof t?t=m.splitTextToSize(t,c):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(m.splitTextToSize(e,c))}),[]))),o={text:t,x:e,y:n,options:r,mutex:{pdfEscape:me,activeFontKey:vt,fonts:wt,activeFontSize:st}},zt.publish("preProcessText",o),t=o.text,l=(r=o.options).angle,g instanceof Ut==0&&l&&"number"==typeof l){l*=Math.PI/180,0===r.rotationDirection&&(l=-l),x===b&&(l=-l);var E=Math.cos(l),B=Math.sin(l);g=new Ut(E,B,-B,E,0,0)}else l&&l instanceof Ut&&(g=l);x!==b||g||(g=Gt),void 0!==(h=r.charSpace||cn)&&(_+=L(I(h))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(p=r.horizontalScale)&&(_+=L(100*p)+" Tz\n"),r.lang;var z=-1,j=void 0!==r.renderingMode?r.renderingMode:r.stroke,q=m.internal.getCurrentPageInfo().pageContext;switch(j){case 0:case!1:case"fill":z=0;break;case 1:case!0:case"stroke":z=1;break;case 2:case"fillThenStroke":z=2;break;case 3:case"invisible":z=3;break;case 4:case"fillAndAddForClipping":z=4;break;case 5:case"strokeAndAddPathForClipping":z=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":z=6;break;case 7:case"addToPathForClipping":z=7}var H=void 0!==q.usedRenderingMode?q.usedRenderingMode:-1;-1!==z?_+=z+" Tr\n":-1!==H&&(_+="0 Tr\n"),-1!==z&&(q.usedRenderingMode=z),u=r.align||"left";var W,U=st*w,V=m.internal.pageSize.getWidth(),G=wt[vt];h=r.charSpace||cn,c=r.maxWidth||0,f=Object.assign({autoencode:!0,noBOM:!0},r.flags);var Y=[];if("[object Array]"===Object.prototype.toString.call(t)){var X;s=P(t),"left"!==u&&(W=s.map((function(t){return m.getStringUnitWidth(t,{font:G,charSpace:h,fontSize:st,doKerning:!1})*st/S})));var $,K=0;if("right"===u){e-=W[0],t=[],O=s.length;for(var J=0;J<O;J++)0===J?($=nn(e),X=rn(n)):($=I(K-W[J]),X=-U),t.push([s[J],$,X]),K=W[J]}else if("center"===u){e-=W[0]/2,t=[],O=s.length;for(var Z=0;Z<O;Z++)0===Z?($=nn(e),X=rn(n)):($=I((K-W[Z])/2),X=-U),t.push([s[Z],$,X]),K=W[Z]}else if("left"===u){t=[],O=s.length;for(var Q=0;Q<O;Q++)t.push(s[Q])}else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],O=s.length,c=0!==c?c:V;for(var et=0;et<O;et++)X=0===et?rn(n):-U,$=0===et?nn(e):0,et<O-1?Y.push(L(I((c-W[et])/(s[et].split(" ").length-1)))):Y.push(0),t.push([s[et],$,X])}}!0===("boolean"==typeof r.R2L?r.R2L:ht)&&(t=N(t,(function(t,e,n){return[t.split("").reverse().join(""),e,n]}))),o={text:t,x:e,y:n,options:r,mutex:{pdfEscape:me,activeFontKey:vt,fonts:wt,activeFontSize:st}},zt.publish("postProcessText",o),t=o.text,y=o.mutex.isHex||!1;var nt=wt[vt].encoding;"WinAnsiEncoding"!==nt&&"StandardEncoding"!==nt||(t=N(t,(function(t,e,n){return[A(t),e,n]}))),s=P(t),t=[];for(var it,rt,at,ot=Array.isArray(s[0])?1:0,lt="",ut=function(t,e,n){var i="";return n instanceof Ut?(n="number"==typeof r.angle?Vt(n,new Ut(1,0,0,1,t,e)):Vt(new Ut(1,0,0,1,t,e),n),x===b&&(n=Vt(new Ut(1,0,0,-1,0,0),n)),i=n.join(" ")+" Tm\n"):i=L(t)+" "+L(e)+" Td\n",i},ct=0;ct<s.length;ct++){switch(lt="",ot){case 1:at=(y?"<":"(")+s[ct][0]+(y?">":")"),it=parseFloat(s[ct][1]),rt=parseFloat(s[ct][2]);break;case 0:at=(y?"<":"(")+s[ct]+(y?">":")"),it=nn(e),rt=rn(n)}void 0!==Y&&void 0!==Y[ct]&&(lt=Y[ct]+" Tw\n"),0===ct?t.push(lt+ut(it,rt,g)+at):0===ot?t.push(lt+at):1===ot&&t.push(lt+ut(it,rt,g)+at)}t=0===ot?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var ft="BT\n/";return ft+=vt+" "+st+" Tf\n",ft+=L(st*w)+" TL\n",ft+=un+"\n",ft+=_,ft+=t,tt(ft+="ET"),d[vt]=!0,m};var Re=p.__private__.clip=p.clip=function(t){return tt("evenodd"===t?"W*":"W"),this};p.clipEvenOdd=function(){return Re("evenodd")},p.__private__.discardPath=p.discardPath=function(){return tt("n"),this};var Ee=p.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(t){return Ee(t)&&(h=t),this};var Be=p.__private__.getStyle=p.getStyle=function(t){var e=h;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},ze=p.close=function(){return tt("h"),this};p.stroke=function(){return tt("S"),this},p.fill=function(t){return je("f",t),this},p.fillEvenOdd=function(t){return je("f*",t),this},p.fillStroke=function(t){return je("B",t),this},p.fillStrokeEvenOdd=function(t){return je("B*",t),this};var je=function(t,e){"object"===(0,i.A)(e)?We(e,t):tt(t)},qe=function(t){null===t||x===b&&void 0===t||(t=Be(t),tt(t))};function He(t,e,n,i,r){var a=new kt(e||this.boundingBox,n||this.xStep,i||this.yStep,this.gState,r||this.matrix);a.stream=this.stream;var o=t+"$$"+this.cloneIndex+++"$$";return Yt(o,a),a}var We=function(t,e){var n=Dt[t.key],i=Tt[n];if(i instanceof Nt)tt("q"),tt(Ue(e)),i.gState&&p.setGState(i.gState),tt(t.matrix.toString()+" cm"),tt("/"+n+" sh"),tt("Q");else if(i instanceof kt){var r=new Ut(1,0,0,-1,0,Sn());t.matrix&&(r=r.multiply(t.matrix||Gt),n=He.call(i,t.key,t.boundingBox,t.xStep,t.yStep,r).id),tt("q"),tt("/Pattern cs"),tt("/"+n+" scn"),i.gState&&p.setGState(i.gState),tt(e),tt("Q")}},Ue=function(t){switch(t){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Ve=p.moveTo=function(t,e){return tt(L(I(t))+" "+L(M(e))+" m"),this},Ge=p.lineTo=function(t,e){return tt(L(I(t))+" "+L(M(e))+" l"),this},Ye=p.curveTo=function(t,e,n,i,r,a){return tt([L(I(t)),L(M(e)),L(I(n)),L(M(i)),L(I(r)),L(M(a)),"c"].join(" ")),this};p.__private__.line=p.line=function(t,e,n,i,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i)||!Ee(r))throw new Error("Invalid arguments passed to jsPDF.line");return x===_?this.lines([[n-t,i-e]],t,e,[1,1],r||"S"):this.lines([[n-t,i-e]],t,e,[1,1]).stroke()},p.__private__.lines=p.lines=function(t,e,n,i,r,a){var o,s,l,u,h,c,f,d,p,g,m,v;if("number"==typeof t&&(v=n,n=e,e=t,t=v),i=i||[1,1],a=a||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(i)||!Ee(r)||"boolean"!=typeof a)throw new Error("Invalid arguments passed to jsPDF.lines");for(Ve(e,n),o=i[0],s=i[1],u=t.length,g=e,m=n,l=0;l<u;l++)2===(h=t[l]).length?(g=h[0]*o+g,m=h[1]*s+m,Ge(g,m)):(c=h[0]*o+g,f=h[1]*s+m,d=h[2]*o+g,p=h[3]*s+m,g=h[4]*o+g,m=h[5]*s+m,Ye(c,f,d,p,g,m));return a&&ze(),qe(r),this},p.path=function(t){for(var e=0;e<t.length;e++){var n=t[e],i=n.c;switch(n.op){case"m":Ve(i[0],i[1]);break;case"l":Ge(i[0],i[1]);break;case"c":Ye.apply(this,i);break;case"h":ze()}}return this},p.__private__.rect=p.rect=function(t,e,n,i,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i)||!Ee(r))throw new Error("Invalid arguments passed to jsPDF.rect");return x===_&&(i=-i),tt([L(I(t)),L(M(e)),L(I(n)),L(I(i)),"re"].join(" ")),qe(r),this},p.__private__.triangle=p.triangle=function(t,e,n,i,r,a,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(a)||!Ee(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,i-e],[r-n,a-i],[t-r,e-a]],t,e,[1,1],o,!0),this},p.__private__.roundedRect=p.roundedRect=function(t,e,n,i,r,a,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(a)||!Ee(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return r=Math.min(r,.5*n),a=Math.min(a,.5*i),this.lines([[n-2*r,0],[r*s,0,r,a-a*s,r,a],[0,i-2*a],[0,a*s,-r*s,a,-r,a],[2*r-n,0],[-r*s,0,-r,-a*s,-r,-a],[0,2*a-i],[0,-a*s,r*s,-a,r,-a]],t+r,e,[1,1],o,!0),this},p.__private__.ellipse=p.ellipse=function(t,e,n,i,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i)||!Ee(r))throw new Error("Invalid arguments passed to jsPDF.ellipse");var a=4/3*(Math.SQRT2-1)*n,o=4/3*(Math.SQRT2-1)*i;return Ve(t+n,e),Ye(t+n,e-o,t+a,e-i,t,e-i),Ye(t-a,e-i,t-n,e-o,t-n,e),Ye(t-n,e+o,t-a,e+i,t,e+i),Ye(t+a,e+i,t+n,e+o,t+n,e),qe(r),this},p.__private__.circle=p.circle=function(t,e,n,i){if(isNaN(t)||isNaN(e)||isNaN(n)||!Ee(i))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,i)},p.setFont=function(t,e,n){return n&&(e=A(e,n)),vt=we(t,e,{disableWarning:!1}),this};var Xe=p.__private__.getFont=p.getFont=function(){return wt[we.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var t,e,n={};for(t in Pt)if(Pt.hasOwnProperty(t))for(e in n[t]=[],Pt[t])Pt[t].hasOwnProperty(e)&&n[t].push(e);return n},p.addFont=function(t,e,n,i,r){var a=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==a.indexOf(arguments[3])?r=arguments[3]:arguments[3]&&-1==a.indexOf(arguments[3])&&(n=A(n,i)),ge.call(this,t,e,n,r=r||"Identity-H")};var $e,Ke=t.lineWidth||.200025,Je=p.__private__.getLineWidth=p.getLineWidth=function(){return Ke},Ze=p.__private__.setLineWidth=p.setLineWidth=function(t){return Ke=t,tt(L(I(t))+" w"),this};p.__private__.setLineDash=It.API.setLineDash=It.API.setLineDashPattern=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map((function(t){return L(I(t))})).join(" "),e=L(I(e)),tt("["+t+"] "+e+" d"),this};var Qe=p.__private__.getLineHeight=p.getLineHeight=function(){return st*$e};p.__private__.getLineHeight=p.getLineHeight=function(){return st*$e};var tn=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&($e=t),this},en=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return $e};tn(t.lineHeight);var nn=p.__private__.getHorizontalCoordinate=function(t){return I(t)},rn=p.__private__.getVerticalCoordinate=function(t){return x===b?t:Bt[j].mediaBox.topRightY-Bt[j].mediaBox.bottomLeftY-I(t)},an=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(t){return L(nn(t))},on=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(t){return L(rn(t))},sn=t.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return ee(sn)},p.__private__.setStrokeColor=p.setDrawColor=function(t,e,n,i){return sn=ne({ch1:t,ch2:e,ch3:n,ch4:i,pdfColorType:"draw",precision:2}),tt(sn),this};var ln=t.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return ee(ln)},p.__private__.setFillColor=p.setFillColor=function(t,e,n,i){return ln=ne({ch1:t,ch2:e,ch3:n,ch4:i,pdfColorType:"fill",precision:2}),tt(ln),this};var un=t.textColor||"0 g",hn=p.__private__.getTextColor=p.getTextColor=function(){return ee(un)};p.__private__.setTextColor=p.setTextColor=function(t,e,n,i){return un=ne({ch1:t,ch2:e,ch3:n,ch4:i,pdfColorType:"text",precision:3}),this};var cn=t.charSpace,fn=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(cn||0)};p.__private__.setCharSpace=p.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return cn=t,this};var dn=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(t){var e=p.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return dn=e,tt(e+" J"),this};var pn=0;p.__private__.setLineJoin=p.setLineJoin=function(t){var e=p.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return pn=e,tt(e+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return tt(L(I(t))+" M"),this},p.GState=Ct,p.setGState=function(t){(t="string"==typeof t?Ot[Ft[t]]:gn(null,t)).equals(Rt)||(tt("/"+t.id+" gs"),Rt=t)};var gn=function(t,e){if(!t||!Ft[t]){var n=!1;for(var i in Ot)if(Ot.hasOwnProperty(i)&&Ot[i].equals(e)){n=!0;break}if(n)e=Ot[i];else{var r="GS"+(Object.keys(Ot).length+1).toString(10);Ot[r]=e,e.id=r}return t&&(Ft[t]=e.id),zt.publish("addGState",e),e}};p.addGState=function(t,e){return gn(t,e),this},p.saveGraphicsState=function(){return tt("q"),Mt.push({key:vt,size:st,color:un}),this},p.restoreGraphicsState=function(){tt("Q");var t=Mt.pop();return vt=t.key,st=t.size,un=t.color,Rt=null,this},p.setCurrentTransformationMatrix=function(t){return tt(t.toString()+" cm"),this},p.comment=function(t){return tt("#"+t),this};var mn=function(t,e){var n=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var i=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var r="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return r},set:function(t){r=t.toString()}}),this},vn=function(t,e,n,i){mn.call(this,t,e),this.type="rect";var r=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var a=i||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return a},set:function(t){isNaN(t)||(a=parseFloat(t))}}),this},yn=function(){this.page=Et,this.currentPage=j,this.pages=X.slice(0),this.pagesContext=Bt.slice(0),this.x=_t,this.y=bt,this.matrix=xt,this.width=xn(j),this.height=Sn(j),this.outputDestination=K,this.id="",this.objectNumber=-1};yn.prototype.restore=function(){Et=this.page,j=this.currentPage,Bt=this.pagesContext,X=this.pages,_t=this.x,bt=this.y,xt=this.matrix,wn(j,this.width),An(j,this.height),K=this.outputDestination};var _n=function(t,e,n,i,r){Wt.push(new yn),Et=j=0,X=[],_t=t,bt=e,xt=r,ve([n,i])};for(var bn in p.beginFormObject=function(t,e,n,i,r){return _n(t,e,n,i,r),this},p.endFormObject=function(t){return function(t){if(Ht[t])Wt.pop().restore();else{var e=new yn,n="Xo"+(Object.keys(qt).length+1).toString(10);e.id=n,Ht[t]=n,qt[n]=e,zt.publish("addFormObject",e),Wt.pop().restore()}}(t),this},p.doFormObject=function(t,e){var n=qt[Ht[t]];return tt("q"),tt(e.toString()+" cm"),tt("/"+n.id+" Do"),tt("Q"),this},p.getFormObject=function(t){var e=qt[Ht[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},p.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(at(ke(Ne()),t),"function"==typeof at.unload&&J.setTimeout&&setTimeout(at.unload,911),this):new Promise((function(e,n){try{var i=at(ke(Ne()),t);"function"==typeof at.unload&&J.setTimeout&&setTimeout(at.unload,911),e(i)}catch(t){n(t.message)}}))},It.API)It.API.hasOwnProperty(bn)&&("events"===bn&&It.API.events.length?function(t,e){var n,i,r;for(r=e.length-1;-1!==r;r--)n=e[r][0],i=e[r][1],t.subscribe.apply(t,[n].concat("function"==typeof i?[i]:i))}(zt,It.API.events):p[bn]=It.API[bn]);var xn=p.getPageWidth=function(t){return(Bt[t=t||j].mediaBox.topRightX-Bt[t].mediaBox.bottomLeftX)/yt},wn=p.setPageWidth=function(t,e){Bt[t].mediaBox.topRightX=e*yt+Bt[t].mediaBox.bottomLeftX},Sn=p.getPageHeight=function(t){return(Bt[t=t||j].mediaBox.topRightY-Bt[t].mediaBox.bottomLeftY)/yt},An=p.setPageHeight=function(t,e){Bt[t].mediaBox.topRightY=e*yt+Bt[t].mediaBox.bottomLeftY};return p.internal={pdfEscape:me,getStyle:Be,getFont:Xe,getFontSize:ut,getCharSpace:fn,getTextColor:hn,getLineHeight:Qe,getLineHeightFactor:en,getLineWidth:Je,write:et,getHorizontalCoordinate:nn,getVerticalCoordinate:rn,getCoordinateString:an,getVerticalCoordinateString:on,collections:{},newObject:$t,newAdditionalObject:Zt,newObjectDeferred:Kt,newObjectDeferredBegin:Jt,getFilters:ie,putStream:re,events:zt,scaleFactor:yt,pageSize:{getWidth:function(){return xn(j)},setWidth:function(t){wn(j,t)},getHeight:function(){return Sn(j)},setHeight:function(t){An(j,t)}},encryptionOptions:c,encryption:Te,getEncryptor:function(t){return null!==c?Te.encryptor(t,0):function(t){return t}},output:Ie,getNumberOfPages:xe,pages:X,out:tt,f2:N,f3:k,getPageInfo:De,getPageInfoByObjId:Oe,getCurrentPageInfo:Fe,getPDFVersion:m,Point:mn,Rectangle:vn,Matrix:Ut,hasHotfix:Me},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return xn(j)},set:function(t){wn(j,t)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return Sn(j)},set:function(t){An(j,t)},enumerable:!0,configurable:!0}),function(t){for(var e=0,n=it.length;e<n;e++){var i=ge.call(this,t[e][0],t[e][1],t[e][2],it[e][3],!0);!1===f&&(d[i]=!0);var r=t[e][0].split("-");pe({id:i,fontName:r[0],fontStyle:r[1]||""})}zt.publish("addFonts",{fonts:wt,dictionary:Pt})}.call(p,it),vt="F1",ye(a,n),zt.publish("initialized"),p}St.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},St.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},St.prototype.hexToBytes=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(String.fromCharCode(parseInt(t.substr(n,2),16)));return e.join("")},St.prototype.processOwnerPassword=function(t,e){return xt(yt(e).substr(0,5),t)},St.prototype.encryptor=function(t,e){var n=yt(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return xt(n,t)}},Ct.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||(0,i.A)(t)!==(0,i.A)(this))return!1;var r=0;for(e in this)if(!(n.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e))return!1;if(this[e]!==t[e])return!1;r++}for(e in t)t.hasOwnProperty(e)&&n.indexOf(e)<0&&r--;return 0===r},It.API={events:[]},It.version="2.5.1";var Mt=It.API,Tt=1,Dt=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ot=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ft=function(t){return t.toFixed(2)},Rt=function(t){return t.toFixed(5)};Mt.__acroform__={};var Et=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},Bt=function(t){return t*Tt},zt=function(t){var e=new ne,n=me.internal.getHeight(t)||0,i=me.internal.getWidth(t)||0;return e.BBox=[0,0,Number(Ft(i)),Number(Ft(n))],e},jt=Mt.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},qt=Mt.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},Ht=Mt.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<e?1:0},Wt=Mt.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Ht(t,e-1)},Ut=Mt.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return jt(t,e-1)},Vt=Mt.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return qt(t,e-1)},Gt=Mt.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,i=e.internal.getVerticalCoordinate,r=t[0],a=t[1],o=t[2],s=t[3],l={};return l.lowerLeft_X=n(r)||0,l.lowerLeft_Y=i(a+s)||0,l.upperRight_X=n(r+o)||0,l.upperRight_Y=i(a)||0,[Number(Ft(l.lowerLeft_X)),Number(Ft(l.lowerLeft_Y)),Number(Ft(l.upperRight_X)),Number(Ft(l.upperRight_Y))]},Yt=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,i=Xt(t,n),r=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+r+" "+Ft(i.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC");var a=zt(t);return a.scope=t.scope,a.stream=e.join("\n"),a}},Xt=function(t,e){var n=0===t.fontSize?t.maxFontSize:t.fontSize,i={text:"",fontSize:""},r=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" ");r=t.multiline?r.map((function(t){return t.split("\n")})):r.map((function(t){return[t]}));var a=n,o=me.internal.getHeight(t)||0;o=o<0?-o:o;var s=me.internal.getWidth(t)||0;s=s<0?-s:s;var l=function(e,n,i){if(e+1<r.length){var a=n+" "+r[e+1][0];return $t(a,t,i).width<=s-4}return!1};a++;t:for(;a>0;){e="",a--;var u,h,c=$t("3",t,a).height,f=t.multiline?o-a:(o-c)/2,d=f+=2,p=0,g=0,m=0;if(a<=0){e="(...) Tj\n",e+="% Width of Text: "+$t(e,t,a=12).width+", FieldWidth:"+s+"\n";break}for(var v="",y=0,_=0;_<r.length;_++)if(r.hasOwnProperty(_)){var b=!1;if(1!==r[_].length&&m!==r[_].length-1){if((c+2)*(y+2)+2>o)continue t;v+=r[_][m],b=!0,g=_,_--}else{v=" "==(v+=r[_][m]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var x=parseInt(_),w=l(x,v,a),S=_>=r.length-1;if(w&&!S){v+=" ",m=0;continue}if(w||S){if(S)g=x;else if(t.multiline&&(c+2)*(y+2)+2>o)continue t}else{if(!t.multiline)continue t;if((c+2)*(y+2)+2>o)continue t;g=x}}for(var A="",L=p;L<=g;L++){var C=r[L];if(t.multiline){if(L===g){A+=C[m]+" ",m=(m+1)%C.length;continue}if(L===p){A+=C[C.length-1]+" ";continue}}A+=C[0]+" "}switch(A=" "==A.substr(A.length-1)?A.substr(0,A.length-1):A,h=$t(A,t,a).width,t.textAlign){case"right":u=s-h-2;break;case"center":u=(s-h)/2;break;default:u=2}e+=Ft(u)+" "+Ft(d)+" Td\n",e+="("+Dt(A)+") Tj\n",e+=-Ft(u)+" 0 Td\n",d=-(a+2),h=0,p=b?g:g+1,y++,v=""}break}return i.text=e,i.fontSize=a,i},$t=function(t,e,n){var i=e.scope.internal.getFont(e.fontName,e.fontStyle),r=e.scope.getStringUnitWidth(t,{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:r}},Kt={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Jt=function(t,e){var n={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===n.type&&t.object===n.object}))&&e.internal.getPageInfo(t.page).pageContext.annotations.push(n)},Zt=function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(re.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(Kt)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Tt=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new ie,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",(function(){var e;(e=t).internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})),t.internal.events.subscribe("buildDocument",(function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];i.objId=void 0,i.hasAnnotation&&Jt(i,t)}}(t)})),t.internal.events.subscribe("putCatalog",(function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)})),t.internal.events.subscribe("postPutPages",(function(e){!function(t,e){var n=!t;for(var r in t||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(r)){var a=t[r],o=[],s=a.Rect;if(a.Rect&&(a.Rect=Gt(a.Rect,e)),e.internal.newObjectDeferredBegin(a.objId,!0),a.DA=me.createDefaultAppearanceStream(a),"object"===(0,i.A)(a)&&"function"==typeof a.getKeyValueListForStream&&(o=a.getKeyValueListForStream()),a.Rect=s,a.hasAppearanceStream&&!a.appearanceStreamContent){var l=Yt(a);o.push({key:"AP",value:"<</N "+l+">>"}),e.internal.acroformPlugin.xForms.push(l)}if(a.appearanceStreamContent){var u="";for(var h in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(h)){var c=a.appearanceStreamContent[h];if(u+="/"+h+" ",u+="<<",Object.keys(c).length>=1||Array.isArray(c)){for(var r in c)if(c.hasOwnProperty(r)){var f=c[r];"function"==typeof f&&(f=f.call(e,a)),u+="/"+r+" "+f+" ",e.internal.acroformPlugin.xForms.indexOf(f)>=0||e.internal.acroformPlugin.xForms.push(f)}}else"function"==typeof(f=c)&&(f=f.call(e,a)),u+="/"+r+" "+f,e.internal.acroformPlugin.xForms.indexOf(f)>=0||e.internal.acroformPlugin.xForms.push(f);u+=">>"}o.push({key:"AP",value:"<<\n"+u+">>"})}e.internal.putStream({additionalKeyValues:o,objectId:a.objId}),e.internal.out("endobj")}n&&function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var r=n,a=t[n];e.internal.newObjectDeferredBegin(a.objId,!0),"object"===(0,i.A)(a)&&"function"==typeof a.putStream&&a.putStream(),delete t[r]}}(e.internal.acroformPlugin.xForms,e)}(e,t)})),t.internal.acroformPlugin.isInitialized=!0}},Qt=Mt.__acroform__.arrayToPdfArray=function(t,e,n){var r=function(t){return t};if(Array.isArray(t)){for(var a="[",o=0;o<t.length;o++)switch(0!==o&&(a+=" "),(0,i.A)(t[o])){case"boolean":case"number":case"object":a+=t[o].toString();break;case"string":"/"!==t[o].substr(0,1)?(void 0!==e&&n&&(r=n.internal.getEncryptor(e)),a+="("+Dt(r(t[o].toString()))+")"):a+=t[o].toString()}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},te=function(t,e,n){var i=function(t){return t};return void 0!==e&&n&&(i=n.internal.getEncryptor(e)),(t=t||"").toString(),"("+Dt(i(t))+")"},ee=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ee.prototype.toString=function(){return this.objId+" 0 R"},ee.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},ee.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter((function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)}));for(var n in e)if(!1===Object.getOwnPropertyDescriptor(this,e[n]).configurable){var i=e[n],r=this[i];r&&(Array.isArray(r)?t.push({key:i,value:Qt(r,this.objId,this.scope)}):r instanceof ee?(r.scope=this.scope,t.push({key:i,value:r.objId+" 0 R"})):"function"!=typeof r&&t.push({key:i,value:r}))}return t};var ne=function(){ee.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};Et(ne,ee);var ie=function(){ee.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Dt(e(t))+")"}},set:function(e){t=e}})};Et(ie,ee);var re=function t(){ee.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(e,3))},set:function(t){!0===Boolean(t)?this.F=Ut(e,3):this.F=Vt(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var i=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==i.length)return i},set:function(t){i=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[0])?0:i[0]},set:function(t){i[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[1])?0:i[1]},set:function(t){i[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[2])?0:i[2]},set:function(t){i[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[3])?0:i[3]},set:function(t){i[3]=t}});var r="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":r=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof fe)return;a="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Dt(e(a))+")"},set:function(t){a=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(t){a=t}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(t){l=t}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===u?50/Tt:u},set:function(t){u=t}});var h="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return h},set:function(t){h=t}});var c="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!c||this instanceof fe||this instanceof pe))return te(c,this.objId,this.scope)},set:function(t){t=t.toString(),c=t}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof ue==0?te(f,this.objId,this.scope):f},set:function(t){t=t.toString(),f=this instanceof ue==0?"("===t.substr(0,1)?Ot(t.substr(1,t.length-2)):Ot(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ue==1?Ot(f.substr(1,f.length-1)):f},set:function(t){t=t.toString(),f=this instanceof ue==1?"/"+t:t}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof ue==0?te(d,this.objId,this.scope):d},set:function(t){t=t.toString(),d=this instanceof ue==0?"("===t.substr(0,1)?Ot(t.substr(1,t.length-2)):Ot(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ue==1?Ot(d.substr(1,d.length-1)):d},set:function(t){t=t.toString(),d=this instanceof ue==1?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(t){t=Boolean(t),g=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(t){p=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,1):this.Ff=Vt(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,2):this.Ff=Vt(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,3):this.Ff=Vt(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');m=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(m){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:m=2;break;case"center":case 1:m=1;break;default:m=0}}})};Et(re,ee);var ae=function(){re.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Qt(e,this.objId,this.scope)},set:function(t){var n,i;i=[],"string"==typeof(n=t)&&(i=function(t,e,n){n||(n=1);for(var i,r=[];i=e.exec(t);)r.push(i[n]);return r}(n,/\((.*?)\)/g)),e=i}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,18):this.Ff=Vt(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=Ut(this.Ff,19):this.Ff=Vt(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=Ut(this.Ff,20),e.sort()):this.Ff=Vt(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,22):this.Ff=Vt(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,23):this.Ff=Vt(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,27):this.Ff=Vt(this.Ff,27)}}),this.hasAppearanceStream=!1};Et(ae,re);var oe=function(){ae.call(this),this.fontName="helvetica",this.combo=!1};Et(oe,ae);var se=function(){oe.call(this),this.combo=!0};Et(se,oe);var le=function(){se.call(this),this.edit=!0};Et(le,se);var ue=function(){re.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,15):this.Ff=Vt(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,16):this.Ff=Vt(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,17):this.Ff=Vt(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,26):this.Ff=Vt(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(e).length){var n,i=[];for(n in i.push("<<"),e)i.push("/"+n+" ("+Dt(t(e[n]))+")");return i.push(">>"),i.join("\n")}},set:function(t){"object"===(0,i.A)(t)&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};Et(ue,re);var he=function(){ue.call(this),this.pushButton=!0};Et(he,ue);var ce=function(){ue.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};Et(ce,ue);var fe=function(){var t,e;re.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,n=[];for(e in n.push("<<"),r)n.push("/"+e+" ("+Dt(t(r[e]))+")");return n.push(">>"),n.join("\n")},set:function(t){"object"===(0,i.A)(t)&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=me.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Et(fe,re),ce.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},ce.prototype.createOption=function(t){var e=new fe;return e.Parent=this,e.optionName=t,this.Kids.push(e),ve.call(this.scope,e),e};var de=function(){ue.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=me.CheckBox.createAppearanceStream()};Et(de,ue);var pe=function(){re.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,13):this.Ff=Vt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,21):this.Ff=Vt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,23):this.Ff=Vt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,24):this.Ff=Vt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,25):this.Ff=Vt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,26):this.Ff=Vt(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Et(pe,re);var ge=function(){pe.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Wt(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=Ut(this.Ff,14):this.Ff=Vt(this.Ff,14)}}),this.password=!0};Et(ge,pe);var me={CheckBox:{createAppearanceStream:function(){return{N:{On:me.CheckBox.YesNormal},D:{On:me.CheckBox.YesPushDown,Off:me.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=zt(t);e.scope=t.scope;var n=[],i=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),a=Xt(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+Ft(me.internal.getWidth(t))+" "+Ft(me.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+i+" "+Ft(a.fontSize)+" Tf "+r),n.push("BT"),n.push(a.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=zt(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),r=[],a=me.internal.getHeight(t),o=me.internal.getWidth(t),s=Xt(t,t.caption);return r.push("1 g"),r.push("0 0 "+Ft(o)+" "+Ft(a)+" re"),r.push("f"),r.push("q"),r.push("0 0 1 rg"),r.push("0 0 "+Ft(o-1)+" "+Ft(a-1)+" re"),r.push("W"),r.push("n"),r.push("0 g"),r.push("BT"),r.push("/"+n+" "+Ft(s.fontSize)+" Tf "+i),r.push(s.text),r.push("ET"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=zt(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Ft(me.internal.getWidth(t))+" "+Ft(me.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:me.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=me.RadioButton.Circle.YesNormal,e.D[t]=me.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=zt(t);e.scope=t.scope;var n=[],i=me.internal.getWidth(t)<=me.internal.getHeight(t)?me.internal.getWidth(t)/4:me.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var r=me.internal.Bezier_C,a=Number((i*r).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Rt(me.internal.getWidth(t)/2)+" "+Rt(me.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),n.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),n.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),n.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=zt(t);e.scope=t.scope;var n=[],i=me.internal.getWidth(t)<=me.internal.getHeight(t)?me.internal.getWidth(t)/4:me.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var r=Number((2*i).toFixed(5)),a=Number((r*me.internal.Bezier_C).toFixed(5)),o=Number((i*me.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Rt(me.internal.getWidth(t)/2)+" "+Rt(me.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Rt(me.internal.getWidth(t)/2)+" "+Rt(me.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=zt(t);e.scope=t.scope;var n=[],i=me.internal.getWidth(t)<=me.internal.getHeight(t)?me.internal.getWidth(t)/4:me.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var r=Number((2*i).toFixed(5)),a=Number((r*me.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Rt(me.internal.getWidth(t)/2)+" "+Rt(me.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:me.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=me.RadioButton.Cross.YesNormal,e.D[t]=me.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=zt(t);e.scope=t.scope;var n=[],i=me.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+Ft(me.internal.getWidth(t)-2)+" "+Ft(me.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(Ft(i.x1.x)+" "+Ft(i.x1.y)+" m"),n.push(Ft(i.x2.x)+" "+Ft(i.x2.y)+" l"),n.push(Ft(i.x4.x)+" "+Ft(i.x4.y)+" m"),n.push(Ft(i.x3.x)+" "+Ft(i.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=zt(t);e.scope=t.scope;var n=me.internal.calculateCross(t),i=[];return i.push("0.749023 g"),i.push("0 0 "+Ft(me.internal.getWidth(t))+" "+Ft(me.internal.getHeight(t))+" re"),i.push("f"),i.push("q"),i.push("1 1 "+Ft(me.internal.getWidth(t)-2)+" "+Ft(me.internal.getHeight(t)-2)+" re"),i.push("W"),i.push("n"),i.push(Ft(n.x1.x)+" "+Ft(n.x1.y)+" m"),i.push(Ft(n.x2.x)+" "+Ft(n.x2.y)+" l"),i.push(Ft(n.x4.x)+" "+Ft(n.x4.y)+" m"),i.push(Ft(n.x3.x)+" "+Ft(n.x3.y)+" l"),i.push("s"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=zt(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Ft(me.internal.getWidth(t))+" "+Ft(me.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};me.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=me.internal.getWidth(t),n=me.internal.getHeight(t),i=Math.min(e,n);return{x1:{x:(e-i)/2,y:(n-i)/2+i},x2:{x:(e-i)/2+i,y:(n-i)/2},x3:{x:(e-i)/2,y:(n-i)/2},x4:{x:(e-i)/2+i,y:(n-i)/2+i}}}},me.internal.getWidth=function(t){var e=0;return"object"===(0,i.A)(t)&&(e=Bt(t.Rect[2])),e},me.internal.getHeight=function(t){var e=0;return"object"===(0,i.A)(t)&&(e=Bt(t.Rect[3])),e};var ve=Mt.addField=function(t){if(Zt(this,t),!(t instanceof re))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};Mt.AcroFormChoiceField=ae,Mt.AcroFormListBox=oe,Mt.AcroFormComboBox=se,Mt.AcroFormEditBox=le,Mt.AcroFormButton=ue,Mt.AcroFormPushButton=he,Mt.AcroFormRadioButton=ce,Mt.AcroFormCheckBox=de,Mt.AcroFormTextField=pe,Mt.AcroFormPasswordField=ge,Mt.AcroFormAppearance=me,Mt.AcroForm={ChoiceField:ae,ListBox:oe,ComboBox:se,EditBox:le,Button:ue,PushButton:he,RadioButton:ce,CheckBox:de,TextField:pe,PasswordField:ge,Appearance:me},It.AcroForm={ChoiceField:ae,ListBox:oe,ComboBox:se,EditBox:le,Button:ue,PushButton:he,RadioButton:ce,CheckBox:de,TextField:pe,PasswordField:ge,Appearance:me};var ye,_e,be=It.AcroForm;function xe(t){return t.reduce((function(t,e,n){return t[e]=n,t}),{})}!function(t){t.__addimage__={};var e="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=t.__addimage__.getImageFileTypeByImageData=function(t,i){var r,a,o,s,l,u=e;if("RGBA"===(i=i||e)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(S(t))for(l in n)for(o=n[l],r=0;r<o.length;r+=1){for(s=!0,a=0;a<o[r].length;a+=1)if(void 0!==o[r][a]&&o[r][a]!==t[a]){s=!1;break}if(!0===s){u=l;break}}else for(l in n)for(o=n[l],r=0;r<o.length;r+=1){for(s=!0,a=0;a<o[r].length;a+=1)if(void 0!==o[r][a]&&o[r][a]!==t.charCodeAt(a)){s=!1;break}if(!0===s){u=l;break}}return u===e&&i!==e&&(u=i),u},a=function t(e){for(var n=this.internal.write,i=this.internal.putStream,r=(0,this.internal.getFilters)();-1!==r.indexOf("FlateEncode");)r.splice(r.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var a=[];if(a.push({key:"Type",value:"/XObject"}),a.push({key:"Subtype",value:"/Image"}),a.push({key:"Width",value:e.width}),a.push({key:"Height",value:e.height}),e.colorSpace===v.INDEXED?a.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.palette.length/3-1)+" "+("sMask"in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+" 0 R]"}):(a.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===v.DEVICE_CMYK&&a.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),a.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&a.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)){for(var o="",s=0,l=e.transparency.length;s<l;s++)o+=e.transparency[s]+" "+e.transparency[s]+" ";a.push({key:"Mask",value:"["+o+"]"})}void 0!==e.sMask&&a.push({key:"SMask",value:e.objectId+1+" 0 R"});var u=void 0!==e.filter?["/"+e.filter]:void 0;if(i({data:e.data,additionalKeyValues:a,alreadyAppliedFilters:u,objectId:e.objectId}),n("endobj"),"sMask"in e&&void 0!==e.sMask){var h="/Predictor "+e.predictor+" /Colors 1 /BitsPerComponent "+e.bitsPerComponent+" /Columns "+e.width,c={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:e.bitsPerComponent,decodeParameters:h,data:e.sMask};"filter"in e&&(c.filter=e.filter),t.call(this,c)}if(e.colorSpace===v.INDEXED){var f=this.internal.newObject();i({data:L(new Uint8Array(e.palette)),objectId:f}),n("endobj")}},o=function(){var t=this.internal.collections.addImage_images;for(var e in t)a.call(this,t[e])},s=function(){var t,e=this.internal.collections.addImage_images,n=this.internal.write;for(var i in e)n("/I"+(t=e[i]).index,t.objectId,"0","R")},l=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},u=function(){var t=this.internal.collections.addImage_images;return l.call(this),t},h=function(){return Object.keys(this.internal.collections.addImage_images).length},c=function(e){return"function"==typeof t["process"+e.toUpperCase()]},f=function(t){return"object"===(0,i.A)(t)&&1===t.nodeType},d=function(e,n){if("IMG"===e.nodeName&&e.hasAttribute("src")){var i=""+e.getAttribute("src");if(0===i.indexOf("data:image/"))return it(unescape(i).split("base64,").pop());var r=t.loadFile(i,!0);if(void 0!==r)return r}if("CANVAS"===e.nodeName){if(0===e.width||0===e.height)throw new Error("Given canvas must have data. Canvas width: "+e.width+", height: "+e.height);var a;switch(n){case"PNG":a="image/png";break;case"WEBP":a="image/webp";break;default:a="image/jpeg"}return it(e.toDataURL(a,1).split("base64,").pop())}},p=function(t){var e=this.internal.collections.addImage_images;if(e)for(var n in e)if(t===e[n].alias)return e[n]},g=function(t,e,n){return t||e||(t=-96,e=-96),t<0&&(t=-1*n.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.height*72/e/this.internal.scaleFactor),0===t&&(t=e*n.width/n.height),0===e&&(e=t*n.height/n.width),[t,e]},m=function(t,e,n,i,r,a){var o=g.call(this,n,i,r),s=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,h=u.call(this);if(n=o[0],i=o[1],h[r.index]=r,a){a*=Math.PI/180;var c=Math.cos(a),f=Math.sin(a),d=function(t){return t.toFixed(4)},p=[d(c),d(f),d(-1*f),d(c),0,0,"cm"]}this.internal.write("q"),a?(this.internal.write([1,"0","0",1,s(t),l(e+i),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(n),"0","0",s(i),"0","0","cm"].join(" "))):this.internal.write([s(n),"0","0",s(i),s(t),l(e+i),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+r.index+" Do"),this.internal.write("Q")},v=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},_=t.__addimage__.sHashCode=function(t){var e,n,i=0;if("string"==typeof t)for(n=t.length,e=0;e<n;e++)i=(i<<5)-i+t.charCodeAt(e),i|=0;else if(S(t))for(n=t.byteLength/2,e=0;e<n;e++)i=(i<<5)-i+t[e],i|=0;return i},b=t.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(e=!1),e},x=t.__addimage__.extractImageFromDataUrl=function(t){var e=(t=t||"").split("base64,"),n=null;if(2===e.length){var i=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(e[0]);Array.isArray(i)&&(n={mimeType:i[1],charset:i[2],data:e[1]})}return n},w=t.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return w()&&t instanceof ArrayBuffer};var S=t.__addimage__.isArrayBufferView=function(t){return w()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},A=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),i=0;i<e;i++)n[i]=t.charCodeAt(i);return n},L=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",n=S(t)?t:new Uint8Array(t),i=0;i<n.length;i+=8192)e+=String.fromCharCode.apply(null,n.subarray(i,i+8192));return e};t.addImage=function(){var t,n,r,a,o,s,u,h,c;if("number"==typeof arguments[1]?(n=e,r=arguments[1],a=arguments[2],o=arguments[3],s=arguments[4],u=arguments[5],h=arguments[6],c=arguments[7]):(n=arguments[1],r=arguments[2],a=arguments[3],o=arguments[4],s=arguments[5],u=arguments[6],h=arguments[7],c=arguments[8]),"object"===(0,i.A)(t=arguments[0])&&!f(t)&&"imageData"in t){var d=t;t=d.imageData,n=d.format||n||e,r=d.x||r||0,a=d.y||a||0,o=d.w||d.width||o,s=d.h||d.height||s,u=d.alias||u,h=d.compression||h,c=d.rotation||d.angle||c}var p=this.internal.getFilters();if(void 0===h&&-1!==p.indexOf("FlateEncode")&&(h="SLOW"),isNaN(r)||isNaN(a))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var g=C.call(this,t,n,u,h);return m.call(this,r,a,o,s,g,c),this};var C=function(n,i,a,o){var s,l,u;if("string"==typeof n&&r(n)===e){n=unescape(n);var g=P(n,!1);(""!==g||void 0!==(g=t.loadFile(n,!0)))&&(n=g)}if(f(n)&&(n=d(n,i)),i=r(n,i),!c(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if((null==(u=a)||0===u.length)&&(a=function(t){return"string"==typeof t||S(t)?_(t):S(t.data)?_(t.data):null}(n)),(s=p.call(this,a))||(w()&&(n instanceof Uint8Array||"RGBA"===i||(l=n,n=A(n))),s=this["process"+i.toUpperCase()](n,h.call(this),a,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:y.NONE}(o),l)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},P=t.__addimage__.convertBase64ToBinaryString=function(t,e){var n;e="boolean"!=typeof e||e;var i,r="";if("string"==typeof t){i=null!==(n=x(t))?n.data:t;try{r=it(i)}catch(t){if(e)throw b(i)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return r};t.getImageProperties=function(n){var i,a,o="";if(f(n)&&(n=d(n)),"string"==typeof n&&r(n)===e&&(""===(o=P(n,!1))&&(o=t.loadFile(n)||""),n=o),a=r(n),!c(a))throw new Error("addImage does not support files of type '"+a+"', please ensure that a plugin for '"+a+"' support is added.");if(!w()||n instanceof Uint8Array||(n=A(n)),!(i=this["process"+a.toUpperCase()](n)))throw new Error("An unknown error occurred whilst processing the image");return i.fileType=a,i}}(It.API),ye=It.API,_e=function(t){if(void 0!==t&&""!=t)return!0},It.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),ye.events.push(["putPage",function(t){for(var e,n,i,r=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(t.objId),s=t.pageContext.annotations,l=!1,u=0;u<s.length&&!l;u++)switch((e=s[u]).type){case"link":(_e(e.options.url)||_e(e.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){this.internal.write("/Annots [");for(var h=0;h<s.length;h++){e=s[h];var c=this.internal.pdfEscape,f=this.internal.getEncryptor(t.objId);switch(e.type){case"reference":this.internal.write(" "+e.object.objId+" 0 R ");break;case"text":var d=this.internal.newAdditionalObject(),p=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(d.objId),m=e.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+r(e.bounds.x)+" "+a(e.bounds.y+e.bounds.h)+" "+r(e.bounds.x+e.bounds.w)+" "+a(e.bounds.y)+"] ")+"/Contents ("+c(g(e.contents))+")",i+=" /Popup "+p.objId+" 0 R",i+=" /P "+o.objId+" 0 R",i+=" /T ("+c(g(m))+") >>",d.content=i;var v=d.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+r(e.bounds.x+30)+" "+a(e.bounds.y+e.bounds.h)+" "+r(e.bounds.x+e.bounds.w+30)+" "+a(e.bounds.y)+"] ")+" /Parent "+v,e.open&&(i+=" /Open true"),i+=" >>",p.content=i,this.internal.write(d.objId,"0 R",p.objId,"0 R");break;case"freetext":n="/Rect ["+r(e.bounds.x)+" "+a(e.bounds.y)+" "+r(e.bounds.x+e.bounds.w)+" "+a(e.bounds.y+e.bounds.h)+"] ";var y=e.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+c(f(e.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+y+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(e.options.name){var _=this.annotations._nameMap[e.options.name];e.options.pageNumber=_.page,e.options.top=_.y}else e.options.top||(e.options.top=0);if(n="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",i="",e.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+c(f(e.options.url))+") >>";else if(e.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(e.options.pageNumber).objId+" 0 R",e.options.magFactor=e.options.magFactor||"XYZ",e.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+e.options.top+"]";break;case"FitV":e.options.left=e.options.left||0,i+=" /FitV "+e.options.left+"]";break;default:var b=a(e.options.top);e.options.left=e.options.left||0,void 0===e.options.zoom&&(e.options.zoom=0),i+=" /XYZ "+e.options.left+" "+b+" "+e.options.zoom+"]"}""!=i&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),ye.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},ye.link=function(t,e,n,i,r){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(t),y:s(e),w:o(t+n),h:s(e+i)},options:r,type:"link"})},ye.textWithLink=function(t,e,n,i){var r,a,o=this.getTextWidth(t),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==i.maxWidth){a=i.maxWidth;var l=this.splitTextToSize(t,a).length;r=Math.ceil(s*l)}else a=o,r=s;return this.text(t,e,n,i),n+=.2*s,"center"===i.align&&(e-=o/2),"right"===i.align&&(e-=o),this.link(e,n-s,a,r,i),o},ye.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},r=[1570,1571,1573,1575];t.__arabicParser__={};var a=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},o=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length<=2},l=t.__arabicParser__.isArabicAlfLetter=function(t){return o(t)&&r.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=3};var h=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return o(t)&&a(t)&&4==e[t.charCodeAt(0)].length},c=t.__arabicParser__.resolveLigatures=function(t){var e=0,i=n,r="",a=0;for(e=0;e<t.length;e+=1)void 0!==i[t.charCodeAt(e)]?(a++,"number"==typeof(i=i[t.charCodeAt(e)])&&(r+=String.fromCharCode(i),i=n,a=0),e===t.length-1&&(i=n,r+=t.charAt(e-(a-1)),e-=a-1,a=0)):(i=n,r+=t.charAt(e-a),e-=a,a=0);return r};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==i[t.charCodeAt(0)]};var f=t.__arabicParser__.getCorrectForm=function(t,e,n){return o(t)?!1===a(t)?-1:!u(t)||!o(e)&&!o(n)||!o(n)&&s(e)||s(t)&&!o(e)||s(t)&&l(e)||s(t)&&s(e)?0:h(t)&&o(e)&&!s(e)&&o(n)&&u(n)?3:s(t)||!o(n)?1:2:-1},d=function(t){var n=0,i=0,r=0,a="",s="",l="",u=(t=t||"").split("\\s+"),h=[];for(n=0;n<u.length;n+=1){for(h.push(""),i=0;i<u[n].length;i+=1)a=u[n][i],s=u[n][i-1],l=u[n][i+1],o(a)?(r=f(a,s,l),h[n]+=-1!==r?String.fromCharCode(e[a.charCodeAt(0)][r]):a):h[n]+=a;h[n]=c(h[n])}return h.join(" ")},p=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(e)){var i=0;for(n=[],i=0;i<e.length;i+=1)Array.isArray(e[i])?n.push([d(e[i][0]),e[i][1],e[i][2]]):n.push([d(e[i])]);t=n}else t=d(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",p])}(It.API),It.API.autoPrint=function(t){var e;if("javascript"===((t=t||{}).variant=t.variant||"non-conform",t.variant))this.addJS("print({});");else this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+e+" 0 R")}));return this},function(t){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(t){i=t}});var r={};Object.defineProperty(this,"style",{get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(It.API),function(t){var e={left:0,top:0,bottom:0,right:0},n=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var i=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var r=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return a},set:function(t){a=t}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){r.call(this);var n=(e=e||{}).fontSize||this.getFontSize(),i=e.font||this.getFont(),a=e.scaleFactor||this.internal.scaleFactor,o=0,s=0,l=0,u=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var h=e.maxWidth;h>0?"string"==typeof t?t=this.splitTextToSize(t,h):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(u.splitTextToSize(e,h))}),[])):t=Array.isArray(t)?t:[t];for(var c=0;c<t.length;c++)o<(l=this.getStringUnitWidth(t[c],{font:i})*n)&&(o=l);return 0!==o&&(s=t.length),{w:o/=a,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/a,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var t=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new o(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var t;t=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var i=this.internal.__cell__.lastCell,a=this.internal.__cell__.padding,s=this.internal.__cell__.margins||e,l=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return void 0!==i.lineNumber&&(i.lineNumber===t.lineNumber?(t.x=(i.x||0)+(i.width||0),t.y=i.y||0):i.y+i.height+t.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=s.top,u&&l&&(this.printHeaderRow(t.lineNumber,!0),t.y+=l[0].height)):t.y=i.y+i.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===n?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-a,t.y+a,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+a,{align:"center",baseline:"top",maxWidth:t.width-a-a}):this.text(t.text,t.x+a,t.y+a,{align:"left",baseline:"top",maxWidth:t.width-a-a})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,u,h,c){if(r.call(this),!u)throw new Error("No data for PDF table.");var f,d,p,g,m=[],v=[],y=[],_={},b={},x=[],w=[],S=(c=c||{}).autoSize||!1,A=!1!==c.printHeaders,L=c.css&&void 0!==c.css["font-size"]?16*c.css["font-size"]:c.fontSize||12,C=c.margins||Object.assign({width:this.getPageWidth()},e),P="number"==typeof c.padding?c.padding:3,N=c.headerBackgroundColor||"#c8c8c8",k=c.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=A,this.internal.__cell__.margins=C,this.internal.__cell__.table_font_size=L,this.internal.__cell__.padding=P,this.internal.__cell__.headerBackgroundColor=N,this.internal.__cell__.headerTextColor=k,this.setFontSize(L),null==h)v=m=Object.keys(u[0]),y=m.map((function(){return"left"}));else if(Array.isArray(h)&&"object"===(0,i.A)(h[0]))for(m=h.map((function(t){return t.name})),v=h.map((function(t){return t.prompt||t.name||""})),y=h.map((function(t){return t.align||"left"})),f=0;f<h.length;f+=1)b[h[f].name]=h[f].width*(19.049976/25.4);else Array.isArray(h)&&"string"==typeof h[0]&&(v=m=h,y=m.map((function(){return"left"})));if(S||Array.isArray(h)&&"string"==typeof h[0])for(f=0;f<m.length;f+=1){for(_[g=m[f]]=u.map((function(t){return t[g]})),this.setFont(void 0,"bold"),x.push(this.getTextDimensions(v[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),d=_[g],this.setFont(void 0,"normal"),p=0;p<d.length;p+=1)x.push(this.getTextDimensions(d[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);b[g]=Math.max.apply(null,x)+P+P,x=[]}if(A){var I={};for(f=0;f<m.length;f+=1)I[m[f]]={},I[m[f]].text=v[f],I[m[f]].align=y[f];var M=l.call(this,I,b);w=m.map((function(e){return new o(t,n,b[e],M,I[e].text,void 0,I[e].align)})),this.setTableHeaderRow(w),this.printHeaderRow(1,!1)}var T=h.reduce((function(t,e){return t[e.name]=e.align,t}),{});for(f=0;f<u.length;f+=1){"rowStart"in c&&c.rowStart instanceof Function&&c.rowStart({row:f,data:u[f]},this);var D=l.call(this,u[f],b);for(p=0;p<m.length;p+=1){var O=u[f][m[p]];"cellStart"in c&&c.cellStart instanceof Function&&c.cellStart({row:f,col:p,data:O},this),s.call(this,new o(t,n,b[m[p]],D,O,f+2,T[m[p]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=n,this};var l=function(t,e){var n=this.internal.__cell__.padding,i=this.internal.__cell__.table_font_size,r=this.internal.scaleFactor;return Object.keys(t).map((function(i){var r=t[i];return this.splitTextToSize(r.hasOwnProperty("text")?r.text:r,e[i]-n-n)}),this).map((function(t){return this.getLineHeightFactor()*t.length*i/r+n+n}),this).reduce((function(t,e){return Math.max(t,e)}),0)};t.setTableHeaderRow=function(t){r.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var i;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var a=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(a[0],a[1],a[2],a[3],void 0,-1)}this.setFont(void 0,"bold");for(var l=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){i=this.internal.__cell__.tableHeaderRow[u].clone(),e&&(i.y=this.internal.__cell__.margins.top||0,l.push(i)),i.lineNumber=t;var h=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,i),this.setTextColor(h)}l.length>0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),n=!1}}(It.API);var we={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Se=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ae=xe(Se),Le=[100,200,300,400,500,600,700,800,900],Ce=xe(Le);function Pe(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),n=function(t){return we[t=t||"normal"]?t:"normal"}(t.style),i=function(t){return t?"number"==typeof t?t>=100&&t<=900&&t%100==0?t:400:/^\d00$/.test(t)?parseInt(t):"bold"===t?700:400:400}(t.weight),r=function(t){return"number"==typeof Ae[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:n,weight:i,stretch:r,src:t.src||[],ref:t.ref||{name:e,style:[r,n,i].join(" ")}}}function Ne(t,e,n,i){var r;for(r=n;r>=0&&r<e.length;r+=i)if(t[e[r]])return t[e[r]];for(r=n;r>=0&&r<e.length;r-=i)if(t[e[r]])return t[e[r]]}var ke={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ie={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Me(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Te(t){return t.trimLeft()}function De(t,e){for(var n=0;n<t.length;){if(t.charAt(n)===e)return[t.substring(0,n),t.substring(n+1)];n+=1}return null}function Oe(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],t.substring(e[0].length)]}var Fe,Re,Ee,Be=["times"];!function(t){var e,n,r,a,o,s,l,u,h,c=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new u,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new s,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new s,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new f(this),e=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,s=this.internal.Point,l=this.internal.Rectangle,u=this.internal.Matrix,h=new c}]);var f=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var e=t;Object.defineProperty(this,"pdf",{get:function(){return e}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var i=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return i},set:function(t){i=Boolean(t)}});var r=0;Object.defineProperty(this,"posX",{get:function(){return r},set:function(t){isNaN(t)||(r=t)}});var a=0;Object.defineProperty(this,"posY",{get:function(){return a},set:function(t){isNaN(t)||(a=t)}}),Object.defineProperty(this,"margin",{get:function(){return h.margin},set:function(t){var e;"number"==typeof t?e=[t,t,t,t]:((e=new Array(4))[0]=t[0],e[1]=t.length>=2?t[1]:e[0],e[2]=t.length>=3?t[2]:e[0],e[3]=t.length>=4?t[3]:e[1]),h.margin=e}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=t}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(t){s=t}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(t){l=t}}),Object.defineProperty(this,"ctx",{get:function(){return h},set:function(t){t instanceof c&&(h=t)}}),Object.defineProperty(this,"path",{get:function(){return h.path},set:function(t){h.path=t}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(t){u=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=d(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=d(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var f=null;function p(t,e){if(null===f){var n=function(t){var e=[];return Object.keys(t).forEach((function(n){t[n].forEach((function(t){var i=null;switch(t){case"bold":i={family:n,weight:"bold"};break;case"italic":i={family:n,style:"italic"};break;case"bolditalic":i={family:n,weight:"bold",style:"italic"};break;case"":case"normal":i={family:n}}null!==i&&(i.ref={name:n,style:t},e.push(i))}))})),e}(t.getFontList());f=function(t){for(var e={},n=0;n<t.length;++n){var i=Pe(t[n]),r=i.family,a=i.stretch,o=i.style,s=i.weight;e[r]=e[r]||{},e[r][a]=e[r][a]||{},e[r][a][o]=e[r][a][o]||{},e[r][a][o][s]=i}return e}(n.concat(e))}return f}var g=null;Object.defineProperty(this,"fontFaces",{get:function(){return g},set:function(t){f=null,g=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var n=e[1],i=(e[2],e[3]),r=e[4],a=(e[5],e[6]),o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(r)[2];r="px"===o?Math.floor(parseFloat(r)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(r)*this.pdf.getFontSize()):Math.floor(parseFloat(r)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(r);var s=function(t){var e,n,i=[],r=t.trim();if(""===r)return Be;if(r in Ie)return[Ie[r]];for(;""!==r;){switch(n=null,e=(r=Te(r)).charAt(0)){case'"':case"'":n=De(r.substring(1),e);break;default:n=Oe(r)}if(null===n)return Be;if(i.push(n[0]),""!==(r=Te(n[1]))&&","!==r.charAt(0))return Be;r=r.replace(/^,/,"")}return i}(a);if(this.fontFaces){var l=function(t,e,n){for(var i=(n=n||{}).defaultFontFamily||"times",r=Object.assign({},ke,n.genericFontFamilies||{}),a=null,o=null,s=0;s<e.length;++s)if(r[(a=Pe(e[s])).family]&&(a.family=r[a.family]),t.hasOwnProperty(a.family)){o=t[a.family];break}if(!(o=o||t[i]))throw new Error("Could not find a font-family for the rule '"+Me(a)+"' and default family '"+i+"'.");if(o=function(t,e){if(e[t])return e[t];var n=Ae[t],i=n<=Ae.normal?-1:1,r=Ne(e,Se,n,i);if(!r)throw new Error("Could not find a matching font-stretch value for "+t);return r}(a.stretch,o),o=function(t,e){if(e[t])return e[t];for(var n=we[t],i=0;i<n.length;++i)if(e[n[i]])return e[n[i]];throw new Error("Could not find a matching font-style for "+t)}(a.style,o),!(o=function(t,e){if(e[t])return e[t];if(400===t&&e[500])return e[500];if(500===t&&e[400])return e[400];var n=Ce[t],i=Ne(e,Le,n,t<400?-1:1);if(!i)throw new Error("Could not find a matching font-weight for value "+t);return i}(a.weight,o)))throw new Error("Failed to resolve a font for the rule '"+Me(a)+"'.");return o}(p(this.pdf,this.fontFaces),s.map((function(t){return{family:t,stretch:"normal",weight:i,style:n}})));this.pdf.setFont(l.ref.name,l.ref.style)}else{var u="";("bold"===i||parseInt(i,10)>=700||"bold"===n)&&(u="bold"),"italic"===n&&(u+="italic"),0===u.length&&(u="normal");for(var h="",c={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},f=0;f<s.length;f++){if(void 0!==this.pdf.internal.getFont(s[f],u,{noFallback:!0,disableWarning:!0})){h=s[f];break}if("bolditalic"===u&&void 0!==this.pdf.internal.getFont(s[f],"bold",{noFallback:!0,disableWarning:!0}))h=s[f],u="bold";else if(void 0!==this.pdf.internal.getFont(s[f],"normal",{noFallback:!0,disableWarning:!0})){h=s[f],u="normal";break}}if(""===h)for(var d=0;d<s.length;d++)if(c[s[d]]){h=c[s[d]];break}h=""===h?"Times":h,this.pdf.setFont(h,u)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(t){this.ctx.lineDashOffset=t,B.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,B.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};f.prototype.setLineDash=function(t){this.lineDash=t},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){x.call(this,"fill",!1)},f.prototype.stroke=function(){x.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw Q.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(t,e)},f.prototype.closePath=function(){var t=new s(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"===(0,i.A)(this.path[e+1])&&"number"==typeof this.path[e+1].x){t=new s(this.path[e+1].x,this.path[e+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(t.x,t.y)},f.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw Q.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),x.call(this,null,!0)},f.prototype.quadraticCurveTo=function(t,e,n,i){if(isNaN(n)||isNaN(i)||isNaN(t)||isNaN(e))throw Q.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var r=this.ctx.transform.applyToPoint(new s(n,i)),a=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"qct",x1:a.x,y1:a.y,x:r.x,y:r.y}),this.ctx.lastPoint=new s(r.x,r.y)},f.prototype.bezierCurveTo=function(t,e,n,i,r,a){if(isNaN(r)||isNaN(a)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i))throw Q.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var o=this.ctx.transform.applyToPoint(new s(r,a)),l=this.ctx.transform.applyToPoint(new s(t,e)),u=this.ctx.transform.applyToPoint(new s(n,i));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:u.x,y2:u.y,x:o.x,y:o.y}),this.ctx.lastPoint=new s(o.x,o.y)},f.prototype.arc=function(t,e,n,i,r,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i)||isNaN(r))throw Q.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(a=Boolean(a),!this.ctx.transform.isIdentity){var o=this.ctx.transform.applyToPoint(new s(t,e));t=o.x,e=o.y;var l=this.ctx.transform.applyToPoint(new s(0,n)),u=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt(Math.pow(l.x-u.x,2)+Math.pow(l.y-u.y,2))}Math.abs(r-i)>=2*Math.PI&&(i=0,r=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:i,endAngle:r,counterclockwise:a})},f.prototype.arcTo=function(t,e,n,i,r){throw new Error("arcTo not implemented.")},f.prototype.rect=function(t,e,n,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i))throw Q.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},f.prototype.fillRect=function(t,e,n,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i))throw Q.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var r={};"butt"!==this.lineCap&&(r.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(r.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,i),this.fill(),r.hasOwnProperty("lineCap")&&(this.lineCap=r.lineCap),r.hasOwnProperty("lineJoin")&&(this.lineJoin=r.lineJoin)}},f.prototype.strokeRect=function(t,e,n,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i))throw Q.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(t,e,n,i),this.stroke())},f.prototype.clearRect=function(t,e,n,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i))throw Q.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,i))},f.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var i=new c(this.ctx);this.ctxStack.push(this.ctx),this.ctx=i}},f.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},f.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(t){var e,n,i,r;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,n=0,i=0,r=0;else{var a=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==a)e=parseInt(a[1]),n=parseInt(a[2]),i=parseInt(a[3]),r=1;else if(null!==(a=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(a[1]),n=parseInt(a[2]),i=parseInt(a[3]),r=parseFloat(a[4]);else{if(r=1,"string"==typeof t&&"#"!==t.charAt(0)){var o=new ot(t);t=o.ok?o.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,i=t.substring(3,4),i+=i):(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),i=parseInt(i,16)}}return{r:e,g:n,b:i,a:r,style:t}},p=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},g=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};f.prototype.fillText=function(t,e,n,i){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw Q.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(i=isNaN(i)?void 0:i,!p.call(this)){var r=F(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;k.call(this,{text:t,x:e,y:n,scale:a,angle:r,align:this.textAlign,maxWidth:i})}},f.prototype.strokeText=function(t,e,n,i){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw Q.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!g.call(this)){i=isNaN(i)?void 0:i;var r=F(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;k.call(this,{text:t,x:e,y:n,scale:a,renderingMode:"stroke",angle:r,align:this.textAlign,maxWidth:i})}},f.prototype.measureText=function(t){if("string"!=typeof t)throw Q.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,n=this.pdf.internal.scaleFactor,i=e.internal.getFontSize(),r=e.getStringUnitWidth(t)*i/e.internal.scaleFactor;return new function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this}({width:r*=Math.round(96*n/72*1e4)/1e4})},f.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw Q.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new u(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.rotate=function(t){if(isNaN(t))throw Q.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new u(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},f.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw Q.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new u(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.transform=function(t,e,n,i,r,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(a))throw Q.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new u(t,e,n,i,r,a);this.ctx.transform=this.ctx.transform.multiply(o)},f.prototype.setTransform=function(t,e,n,i,r,a){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,i=isNaN(i)?1:i,r=isNaN(r)?0:r,a=isNaN(a)?0:a,this.ctx.transform=new u(t,e,n,i,r,a)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(t,e,n,i,r,a,o,s,h){var c=this.pdf.getImageProperties(t),f=1,d=1,p=1,g=1;void 0!==i&&void 0!==s&&(p=s/i,g=h/r,f=c.width/i*s/i,d=c.height/r*h/r),void 0===a&&(a=e,o=n,e=0,n=0),void 0!==i&&void 0===s&&(s=i,h=r),void 0===i&&void 0===s&&(s=c.width,h=c.height);for(var y,x=this.ctx.transform.decompose(),S=F(x.rotate.shx),A=new u,L=(A=(A=(A=A.multiply(x.translate)).multiply(x.skew)).multiply(x.scale)).applyToRectangle(new l(a-e*p,o-n*g,i*f,r*d)),C=v.call(this,L),P=[],N=0;N<C.length;N+=1)-1===P.indexOf(C[N])&&P.push(C[N]);if(b(P),this.autoPaging)for(var k=P[0],I=P[P.length-1],M=k;M<I+1;M++){this.pdf.setPage(M);var T=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],D=1===M?this.posY+this.margin[0]:this.margin[0],O=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],R=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],E=1===M?0:O+(M-2)*R;if(0!==this.ctx.clip_path.length){var B=this.path;y=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(y,this.posX+this.margin[3],-E+D+this.ctx.prevPageLastElemOffset),w.call(this,"fill",!0),this.path=B}var z=JSON.parse(JSON.stringify(L));z=_([z],this.posX+this.margin[3],-E+D+this.ctx.prevPageLastElemOffset)[0];var j=(M>k||M<I)&&m.call(this);j&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],T,R,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",z.x,z.y,z.w,z.h,null,null,S),j&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(t,"JPEG",L.x,L.y,L.w,L.h,null,null,S)};var v=function(t,e,n){var i=[];e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var r=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":i.push(Math.floor((t.y+r)/n)+1);break;case"arc":i.push(Math.floor((t.y+r-t.radius)/n)+1),i.push(Math.floor((t.y+r+t.radius)/n)+1);break;case"qct":var a=R(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);i.push(Math.floor((a.y+r)/n)+1),i.push(Math.floor((a.y+a.h+r)/n)+1);break;case"bct":var o=E(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);i.push(Math.floor((o.y+r)/n)+1),i.push(Math.floor((o.y+o.h+r)/n)+1);break;case"rect":i.push(Math.floor((t.y+r)/n)+1),i.push(Math.floor((t.y+t.h+r)/n)+1)}for(var s=0;s<i.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<i[s];)y.call(this);return i},y=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,i=this.lineCap,r=this.lineWidth,a=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=i,this.lineWidth=r,this.lineJoin=a},_=function(t,e,n){for(var i=0;i<t.length;i++)switch(t[i].type){case"bct":t[i].x2+=e,t[i].y2+=n;case"qct":t[i].x1+=e,t[i].y1+=n;default:t[i].x+=e,t[i].y+=n}return t},b=function(t){return t.sort((function(t,e){return t-e}))},x=function(t,e){for(var n,i,r=this.fillStyle,a=this.strokeStyle,o=this.lineCap,s=this.lineWidth,l=Math.abs(s*this.ctx.transform.scaleX),u=this.lineJoin,h=JSON.parse(JSON.stringify(this.path)),c=JSON.parse(JSON.stringify(this.path)),f=[],d=0;d<c.length;d++)if(void 0!==c[d].x)for(var p=v.call(this,c[d]),g=0;g<p.length;g+=1)-1===f.indexOf(p[g])&&f.push(p[g]);for(var x=0;x<f.length;x++)for(;this.pdf.internal.getNumberOfPages()<f[x];)y.call(this);if(b(f),this.autoPaging)for(var S=f[0],A=f[f.length-1],L=S;L<A+1;L++){this.pdf.setPage(L),this.fillStyle=r,this.strokeStyle=a,this.lineCap=o,this.lineWidth=l,this.lineJoin=u;var C=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],P=1===L?this.posY+this.margin[0]:this.margin[0],N=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],k=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],I=1===L?0:N+(L-2)*k;if(0!==this.ctx.clip_path.length){var M=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(n,this.posX+this.margin[3],-I+P+this.ctx.prevPageLastElemOffset),w.call(this,t,!0),this.path=M}if(i=JSON.parse(JSON.stringify(h)),this.path=_(i,this.posX+this.margin[3],-I+P+this.ctx.prevPageLastElemOffset),!1===e||0===L){var T=(L>S||L<A)&&m.call(this);T&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],C,k,null).clip().discardPath()),w.call(this,t,e),T&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=l,w.call(this,t,e),this.lineWidth=s;this.path=h},w=function(t,e){if(("stroke"!==t||e||!g.call(this))&&("stroke"===t||e||!p.call(this))){for(var n,i,r=[],a=this.path,o=0;o<a.length;o++){var s=a[o];switch(s.type){case"begin":r.push({begin:!0});break;case"close":r.push({close:!0});break;case"mt":r.push({start:s,deltas:[],abs:[]});break;case"lt":var l=r.length;if(a[o-1]&&!isNaN(a[o-1].x)&&(n=[s.x-a[o-1].x,s.y-a[o-1].y],l>0))for(;l>=0;l--)if(!0!==r[l-1].close&&!0!==r[l-1].begin){r[l-1].deltas.push(n),r[l-1].abs.push(s);break}break;case"bct":n=[s.x1-a[o-1].x,s.y1-a[o-1].y,s.x2-a[o-1].x,s.y2-a[o-1].y,s.x-a[o-1].x,s.y-a[o-1].y],r[r.length-1].deltas.push(n);break;case"qct":var u=a[o-1].x+2/3*(s.x1-a[o-1].x),h=a[o-1].y+2/3*(s.y1-a[o-1].y),c=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),d=s.x,m=s.y;n=[u-a[o-1].x,h-a[o-1].y,c-a[o-1].x,f-a[o-1].y,d-a[o-1].x,m-a[o-1].y],r[r.length-1].deltas.push(n);break;case"arc":r.push({deltas:[],abs:[],arc:!0}),Array.isArray(r[r.length-1].abs)&&r[r.length-1].abs.push(s)}}i=e?null:"stroke"===t?"stroke":"fill";for(var v=!1,y=0;y<r.length;y++)if(r[y].arc)for(var _=r[y].abs,b=0;b<_.length;b++){var x=_[b];"arc"===x.type?L.call(this,x.x,x.y,x.radius,x.startAngle,x.endAngle,x.counterclockwise,void 0,e,!v):I.call(this,x.x,x.y),v=!0}else if(!0===r[y].close)this.pdf.internal.out("h"),v=!1;else if(!0!==r[y].begin){var w=r[y].start.x,S=r[y].start.y;M.call(this,r[y].deltas,w,S),v=!0}i&&C.call(this,i),e&&P.call(this)}},S=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-n;case"top":return t+e-n;case"hanging":return t+e-2*n;case"middle":return t+e/2-n;default:return t}},A=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var L=function(t,e,n,i,r,a,o,s,l){for(var u=D.call(this,n,i,r,a),h=0;h<u.length;h++){var c=u[h];0===h&&(l?N.call(this,c.x1+t,c.y1+e):I.call(this,c.x1+t,c.y1+e)),T.call(this,t,e,c.x2,c.y2,c.x3,c.y3,c.x4,c.y4)}s?P.call(this):C.call(this,o)},C=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},P=function(){this.pdf.clip(),this.pdf.discardPath()},N=function(t,e){this.pdf.internal.out(n(t)+" "+r(e)+" m")},k=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;default:e="left"}var n=this.pdf.getTextDimensions(t.text),i=S.call(this,t.y),r=A.call(this,i)-n.h,a=this.ctx.transform.applyToPoint(new s(t.x,i)),o=this.ctx.transform.decompose(),h=new u;h=(h=(h=h.multiply(o.translate)).multiply(o.skew)).multiply(o.scale);for(var c,f,d,p=this.ctx.transform.applyToRectangle(new l(t.x,i,n.w,n.h)),g=h.applyToRectangle(new l(t.x,r,n.w,n.h)),y=v.call(this,g),x=[],L=0;L<y.length;L+=1)-1===x.indexOf(y[L])&&x.push(y[L]);if(b(x),this.autoPaging)for(var C=x[0],P=x[x.length-1],N=C;N<P+1;N++){this.pdf.setPage(N);var k=1===N?this.posY+this.margin[0]:this.margin[0],I=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],M=this.pdf.internal.pageSize.height-this.margin[2],T=M-this.margin[0],D=this.pdf.internal.pageSize.width-this.margin[1],O=D-this.margin[3],F=1===N?0:I+(N-2)*T;if(0!==this.ctx.clip_path.length){var R=this.path;c=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(c,this.posX+this.margin[3],-1*F+k),w.call(this,"fill",!0),this.path=R}var E=_([JSON.parse(JSON.stringify(g))],this.posX+this.margin[3],-F+k+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale);var B="text"!==this.autoPaging;if(B||E.y+E.h<=M){if(B||E.y>=k&&E.x<=D){var z=B?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||D-E.x)[0],j=_([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-F+k+this.ctx.prevPageLastElemOffset)[0],q=B&&(N>C||N<P)&&m.call(this);q&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],O,T,null).clip().discardPath()),this.pdf.text(z,j.x,j.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),q&&this.pdf.restoreGraphicsState()}}else E.y<M&&(this.ctx.prevPageLastElemOffset+=M-E.y);t.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)}else t.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale),this.pdf.text(t.text,a.x+this.posX,a.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)},I=function(t,e,i,a){i=i||0,a=a||0,this.pdf.internal.out(n(t+i)+" "+r(e+a)+" l")},M=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},T=function(t,n,i,r,s,l,u,h){this.pdf.internal.out([e(a(i+t)),e(o(r+n)),e(a(s+t)),e(o(l+n)),e(a(u+t)),e(o(h+n)),"c"].join(" "))},D=function(t,e,n,i){for(var r=2*Math.PI,a=Math.PI/2;e>n;)e-=r;var o=Math.abs(n-e);o<r&&i&&(o=r-o);for(var s=[],l=i?-1:1,u=e;o>1e-5;){var h=u+l*Math.min(o,a);s.push(O.call(this,t,u,h)),o-=Math.abs(h-u),u=h}return s},O=function(t,e,n){var i=(n-e)/2,r=t*Math.cos(i),a=t*Math.sin(i),o=r,s=-a,l=o*o+s*s,u=l+o*r+s*a,h=4/3*(Math.sqrt(2*l*u)-u)/(o*a-s*r),c=o-h*s,f=s+h*o,d=c,p=-f,g=i+e,m=Math.cos(g),v=Math.sin(g);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:c*m-f*v,y2:c*v+f*m,x3:d*m-p*v,y3:d*v+p*m,x4:t*Math.cos(n),y4:t*Math.sin(n)}},F=function(t){return 180*t/Math.PI},R=function(t,e,n,i,r,a){var o=t+.5*(n-t),s=e+.5*(i-e),u=r+.5*(n-r),h=a+.5*(i-a),c=Math.min(t,r,o,u),f=Math.max(t,r,o,u),d=Math.min(e,a,s,h),p=Math.max(e,a,s,h);return new l(c,d,f-c,p-d)},E=function(t,e,n,i,r,a,o,s){var u,h,c,f,d,p,g,m,v,y,_,b,x,w,S=n-t,A=i-e,L=r-n,C=a-i,P=o-r,N=s-a;for(h=0;h<41;h++)v=(g=(c=t+(u=h/40)*S)+u*((d=n+u*L)-c))+u*(d+u*(r+u*P-d)-g),y=(m=(f=e+u*A)+u*((p=i+u*C)-f))+u*(p+u*(a+u*N-p)-m),0==h?(_=v,b=y,x=v,w=y):(_=Math.min(_,v),b=Math.min(b,y),x=Math.max(x,v),w=Math.max(w,y));return new l(Math.round(_),Math.round(b),Math.round(x-_),Math.round(w-b))},B=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t,e,n=(t=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:t,lineDashOffset:e}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(It.API),function(t){var e=function(t){var e,n,i,r,a,o,s,l,u,h;for(/[^\x00-\xFF]/.test(t),n=[],i=0,r=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;r>i;i+=4)0!==(a=(t.charCodeAt(i)<<24)+(t.charCodeAt(i+1)<<16)+(t.charCodeAt(i+2)<<8)+t.charCodeAt(i+3))?(o=(a=((a=((a=((a=(a-(h=a%85))/85)-(u=a%85))/85)-(l=a%85))/85)-(s=a%85))/85)%85,n.push(o+33,s+33,l+33,u+33,h+33)):n.push(122);return function(t,e){for(var n=e;n>0;n--)t.pop()}(n,e.length),String.fromCharCode.apply(String,n)+"~>"},n=function(t){var e,n,i,r,a,o=String,s="length",l=255,u="charCodeAt",h="slice",c="replace";for(t[h](-2),t=t[h](0,-2)[c](/\s/g,"")[c]("z","!!!!!"),i=[],r=0,a=(t+=e="uuuuu"[h](t[s]%5||5))[s];a>r;r+=5)n=52200625*(t[u](r)-33)+614125*(t[u](r+1)-33)+7225*(t[u](r+2)-33)+85*(t[u](r+3)-33)+(t[u](r+4)-33),i.push(l&n>>24,l&n>>16,l&n>>8,l&n);return function(t,e){for(var n=e;n>0;n--)t.pop()}(i,e[s]),o.fromCharCode.apply(o,i)},i=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var n="",i=0;i<t.length;i+=2)n+=String.fromCharCode("0x"+(t[i]+t[i+1]));return n},r=function(t){for(var e=new Uint8Array(t.length),n=t.length;n--;)e[n]=t.charCodeAt(n);return(e=$(e)).reduce((function(t,e){return t+String.fromCharCode(e)}),"")};t.processDataByFilters=function(t,a){var o=0,s=t||"",l=[];for("string"==typeof(a=a||[])&&(a=[a]),o=0;o<a.length;o+=1)switch(a[o]){case"ASCII85Decode":case"/ASCII85Decode":s=n(s),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=e(s),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=i(s),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map((function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)})).join("")+">",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=r(s),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[o]+'" is not implemented')}return{data:s,reverseChain:l.reverse().join(" ")}}}(It.API),function(t){t.loadFile=function(t,e,n){return function(t,e,n){e=!1!==e,n="function"==typeof n?n:function(){};var i=void 0;try{i=function(t,e,n){var i=new XMLHttpRequest,r=0,a=function(t){var e=t.length,n=[],i=String.fromCharCode;for(r=0;r<e;r+=1)n.push(i(255&t.charCodeAt(r)));return n.join("")};if(i.open("GET",t,!e),i.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(i.onload=function(){200===i.status?n(a(this.responseText)):n(void 0)}),i.send(null),e&&200===i.status)return a(i.responseText)}(t,e,n)}catch(t){}return i}(t,e,n)},t.loadImageFile=t.loadFile}(It.API),function(t){function e(){return(J.html2canvas?Promise.resolve(J.html2canvas):n.e(354).then(n.t.bind(n,20354,23))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function r(){return(J.DOMPurify?Promise.resolve(J.DOMPurify):n.e(2838).then(n.t.bind(n,42838,23))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var a=function(t){var e=(0,i.A)(t);return"undefined"===e?"undefined":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===e?"object":"unknown"},o=function(t,e){var n=document.createElement(t);for(var i in e.className&&(n.className=e.className),e.innerHTML&&e.dompurify&&(n.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)n.style[i]=e.style[i];return n},s=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),i=t.convert(Promise.resolve(),n);return(i=i.setProgress(1,t,1,[t])).set(e)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(t,e){return t.__proto__=e||s.prototype,t},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(t,e){return this.then((function(){switch(e=e||function(t){switch(a(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(r).then((function(e){return this.set({src:o("div",{innerHTML:t,dompurify:e})})}));case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}}))},s.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var t={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},e=function t(e,n){for(var i=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),r=e.firstChild;r;r=r.nextSibling)!0!==n&&1===r.nodeType&&"SCRIPT"===r.nodeName||i.appendChild(t(r,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(i.width=e.width,i.height=e.height,i.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(i.value=e.value),i.addEventListener("load",(function(){i.scrollTop=e.scrollTop,i.scrollLeft=e.scrollLeft}),!0)),i}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},s.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,t(this.prop.container,e)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},s.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=this.opt.jsPDF,n=this.opt.fontFaces,i="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,r=Object.assign({async:!0,allowTaint:!0,scale:i,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete r.onrendered,e.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.margin=this.opt.margin,e.context2d.fontFaces=n,n)for(var a=0;a<n.length;++a){var o=n[a],s=o.src.find((function(t){return"truetype"===t.format}));s&&e.addFont(s.url,o.ref.name,o.ref.style)}return r.windowHeight=r.windowHeight||0,r.windowHeight=0==r.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):r.windowHeight,e.context2d.save(!0),t(this.prop.container,r)})).then((function(t){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t}))},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},s.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},s.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},s.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}}))},s.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},s.prototype.set=function(t){if("object"!==a(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in s.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}}),this);return this.then((function(){return this.thenList(e)}))},s.prototype.get=function(t,e){return this.then((function(){var n=t in s.template.prop?this.prop[t]:this.opt[t];return e?e(n):n}))},s.prototype.setMargin=function(t){return this.then((function(){switch(a(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t})).then(this.setPageSize)},s.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||It.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},s.prototype.setProgress=function(t,e,n,i){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=i&&(this.progress.stack=i),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(t,e,n,i){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,i?this.progress.stack.concat(i):null)},s.prototype.then=function(t,e){var n=this;return this.thenCore(t,e,(function(t,e){return n.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(e){return n.updateProgress(null,t),e})).then(t,e).then((function(t){return n.updateProgress(1),t}))}))},s.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then,t&&(t=t.bind(this)),e&&(e=e.bind(this));var i=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:s.convert(Object.assign({},this),Promise.prototype),r=n.call(i,t,e);return s.convert(r,this.__proto__)},s.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},s.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},s.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return s.convert(e,this)},s.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},s.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,It.getPageSize=function(t,e,n){if("object"===(0,i.A)(t)){var r=t;t=r.orientation,e=r.unit||e,n=r.format||n}e=e||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var a,o=(""+n).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(e){case"pt":a=1;break;case"mm":a=72/25.4;break;case"cm":a=72/2.54;break;case"in":a=72;break;case"px":a=.75;break;case"pc":case"em":a=12;break;case"ex":a=6;break;default:throw"Invalid unit: "+e}var l,u=0,h=0;if(s.hasOwnProperty(o))u=s[o][1]/a,h=s[o][0]/a;else try{u=n[1],h=n[0]}catch(t){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t)t="p",h>u&&(l=h,h=u,u=l);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",u>h&&(l=h,h=u,u=l)}return{width:h,height:u,unit:e,k:a,orientation:t}},t.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(Pe):null;var n=new s(e);return e.worker?n:n.from(t).doCallback()}}(It.API),It.API.addJS=function(t){return Ee=t,this.internal.events.subscribe("postPutResources",(function(){Fe=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Fe+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Re=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ee+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==Fe&&void 0!==Re&&this.internal.out("/Names <</JavaScript "+Fe+" 0 R>>")})),this},function(t){var e;t.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=t.outline.render().split(/\r\n/),r=0;r<i.length;r++){var a=i[r],o=n.exec(a);if(null!=o){var s=o[1];t.internal.newObjectDeferredBegin(s,!1)}t.internal.write(a)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,u=[];for(r=0;r<l;r++){var h=t.internal.newObject();u.push(h);var c=t.internal.getPageInfo(r+1);t.internal.write("<< /D["+c.objId+" 0 R /XYZ null null null]>> endobj")}var f=t.internal.newObject();for(t.internal.write("<< /Names [ "),r=0;r<u.length;r++)t.internal.write("(page_"+(r+1)+")"+u[r]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,n){var i={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(i),i},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var n=0;n<e.children.length;n++)this.genIds_r(e.children[n])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<e.children.length;i++){var r=e.children[i];this.objStart(r),this.line("/Title "+this.makeString(r.title)),this.line("/Parent "+this.makeRef(e)),i>0&&this.line("/Prev "+this.makeRef(e.children[i-1])),i<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[i+1])),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1])));var a=this.count=this.count_r({count:0},r);if(a>0&&this.line("/Count "+a),r.options&&r.options.pageNumber){var o=t.internal.getPageInfo(r.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var s=0;s<e.children.length;s++)this.renderItems(e.children[s])},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}])}(It.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,n,i,r,a,o){var s,l=this.decode.DCT_DECODE,u=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=a||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(s=function(t){for(var n,i=256*t.charCodeAt(4)+t.charCodeAt(5),r=t.length,a={width:0,height:0,numcomponents:1},o=4;o<r;o+=2){if(o+=i,-1!==e.indexOf(t.charCodeAt(o+1))){n=256*t.charCodeAt(o+5)+t.charCodeAt(o+6),a={width:256*t.charCodeAt(o+7)+t.charCodeAt(o+8),height:n,numcomponents:t.charCodeAt(o+9)};break}i=256*t.charCodeAt(o+2)+t.charCodeAt(o+3)}return a}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}u={data:t,width:s.width,height:s.height,colorSpace:o,bitsPerComponent:8,filter:l,index:n,alias:i}}return u}}(It.API);var ze,je,qe,He,We,Ue=function(){var t,e,n;function i(t){var e,n,i,r,a,o,s,l,u,h,c,f,d,p;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},o=null;;){switch(e=this.readUInt32(),u=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":o&&this.animation.frames.push(o),this.pos+=4,o={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},a=this.readUInt16(),r=this.readUInt16()||100,o.delay=1e3*a/r,o.disposeOp=this.data[this.pos++],o.blendOp=this.data[this.pos++],o.data=[];break;case"IDAT":case"fdAT":for("fdAT"===u&&(this.pos+=4,e-=4),t=(null!=o?o.data:void 0)||this.imgData,f=0;0<=e?f<e:f>e;0<=e?++f:--f)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(i=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>i)throw new Error("More transparent colors than palette size");if((h=i-this.transparency.indexed.length)>0)for(d=0;0<=h?d<h:d>h;0<=h?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(c=this.read(e)).indexOf(0),l=String.fromCharCode.apply(String,c.slice(0,s)),this.text[l]=String.fromCharCode.apply(String,c.slice(s+1));break;case"IEND":return o&&this.animation.frames.push(o),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*e),i=0,r=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function a(a,o,s,l){var u,h,c,f,d,p,g,m,v,y,_,b,x,w,S,A,L,C,P,N,k,I=Math.ceil((r.width-a)/s),M=Math.ceil((r.height-o)/l),T=r.width==I&&r.height==M;for(w=e*I,b=T?n:new Uint8Array(w*M),p=t.length,x=0,h=0;x<M&&i<p;){switch(t[i++]){case 0:for(f=L=0;L<w;f=L+=1)b[h++]=t[i++];break;case 1:for(f=C=0;C<w;f=C+=1)u=t[i++],d=f<e?0:b[h-e],b[h++]=(u+d)%256;break;case 2:for(f=P=0;P<w;f=P+=1)u=t[i++],c=(f-f%e)/e,S=x&&b[(x-1)*w+c*e+f%e],b[h++]=(S+u)%256;break;case 3:for(f=N=0;N<w;f=N+=1)u=t[i++],c=(f-f%e)/e,d=f<e?0:b[h-e],S=x&&b[(x-1)*w+c*e+f%e],b[h++]=(u+Math.floor((d+S)/2))%256;break;case 4:for(f=k=0;k<w;f=k+=1)u=t[i++],c=(f-f%e)/e,d=f<e?0:b[h-e],0===x?S=A=0:(S=b[(x-1)*w+c*e+f%e],A=c&&b[(x-1)*w+(c-1)*e+f%e]),g=d+S-A,m=Math.abs(g-d),y=Math.abs(g-S),_=Math.abs(g-A),v=m<=y&&m<=_?d:y<=_?S:A,b[h++]=(u+v)%256;break;default:throw new Error("Invalid filter algorithm: "+t[i-1])}if(!T){var D=((o+x*l)*r.width+a)*e,O=x*w;for(f=0;f<I;f+=1){for(var F=0;F<e;F+=1)n[D++]=b[O++];D+=(s-1)*e}}x++}}return t=K(t),1==r.interlaceMethod?(a(0,0,8,8),a(4,0,8,8),a(0,4,4,8),a(2,0,4,4),a(0,2,2,4),a(1,0,2,2),a(0,1,1,2)):a(0,0,1,1),n},i.prototype.decodePalette=function(){var t,e,n,i,r,a,o,s,l;for(n=this.palette,a=this.transparency.indexed||[],r=new Uint8Array((a.length||0)+n.length),i=0,t=0,e=o=0,s=n.length;o<s;e=o+=3)r[i++]=n[e],r[i++]=n[e+1],r[i++]=n[e+2],r[i++]=null!=(l=a[t++])?l:255;return r},i.prototype.copyToImageData=function(t,e){var n,i,r,a,o,s,l,u,h,c,f;if(i=this.colors,h=null,n=this.hasAlphaChannel,this.palette.length&&(h=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),i=4,n=!0),u=(r=t.data||t).length,o=h||e,a=s=0,1===i)for(;a<u;)l=h?4*e[a/4]:s,c=o[l++],r[a++]=c,r[a++]=c,r[a++]=c,r[a++]=n?o[l++]:255,s=l;else for(;a<u;)l=h?4*e[a/4]:s,r[a++]=o[l++],r[a++]=o[l++],r[a++]=o[l++],r[a++]=n?o[l++]:255,s=l},i.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};var r=function(){if("[object Window]"===Object.prototype.toString.call(J)){try{e=J.document.createElement("canvas"),n=e.getContext("2d")}catch(t){return!1}return!0}return!1};return r(),t=function(t){var i;if(!0===r())return n.width=t.width,n.height=t.height,n.clearRect(0,0,t.width,t.height),n.putImageData(t,0,0),(i=new Image).src=e.toDataURL(),i;throw new Error("This method requires a Browser with Canvas-capability.")},i.prototype.decodeFrames=function(e){var n,i,r,a,o,s,l,u;if(this.animation){for(u=[],i=o=0,s=(l=this.animation.frames).length;o<s;i=++o)n=l[i],r=e.createImageData(n.width,n.height),a=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(r,a),n.imageData=r,u.push(n.image=t(r));return u}},i.prototype.renderFrame=function(t,e){var n,i,r;return n=(i=this.animation.frames)[e],r=i[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=r?r.disposeOp:void 0)?t.clearRect(r.xOffset,r.yOffset,r.width,r.height):2===(null!=r?r.disposeOp:void 0)&&t.putImageData(r.imageData,r.xOffset,r.yOffset),0===n.blendOp&&t.clearRect(n.xOffset,n.yOffset,n.width,n.height),t.drawImage(n.image,n.xOffset,n.yOffset)},i.prototype.animate=function(t){var e,n,i,r,a,o,s=this;return n=0,o=this.animation,r=o.numFrames,i=o.frames,a=o.numPlays,(e=function(){var o,l;if(o=n++%r,l=i[o],s.renderFrame(t,o),r>1&&n/r<a)return s.animation._timeout=setTimeout(e,l.delay)})()},i.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},i.prototype.render=function(t){var e,n;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(n=e.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),e.putImageData(n,0,0))},i}();function Ve(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error("Invalid GIF 87a/89a header.");var n=t[e++]|t[e++]<<8,i=t[e++]|t[e++]<<8,r=t[e++],a=r>>7,o=1<<1+(7&r);t[e++],t[e++];var s=null,l=null;a&&(s=e,l=o,e+=3*o);var u=!0,h=[],c=0,f=null,d=0,p=null;for(this.width=n,this.height=i;u&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,p=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var g=t[e++];c=t[e++]|t[e++]<<8,f=t[e++],!(1&g)&&(f=null),d=g>>2&7,e++;break;case 254:for(;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var m=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,_=t[e++]|t[e++]<<8,b=t[e++],x=b>>6&1,w=1<<1+(7&b),S=s,A=l,L=!1;b>>7&&(L=!0,S=e,A=w,e+=3*w);var C=e;for(e++;;){var P;if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}h.push({x:m,y:v,width:y,height:_,has_local_palette:L,palette_offset:S,palette_size:A,data_offset:C,data_length:e-C,transparent_index:f,interlaced:!!x,delay:c,disposal:d});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return p},this.frameInfo=function(t){if(t<0||t>=h.length)throw new Error("Frame index out of range.");return h[t]},this.decodeAndBlitFrameBGRA=function(e,i){var r=this.frameInfo(e),a=r.width*r.height,o=new Uint8Array(a);Ge(t,r.data_offset,o,a);var s=r.palette_offset,l=r.transparent_index;null===l&&(l=256);var u=r.width,h=n-u,c=u,f=4*(r.y*n+r.x),d=4*((r.y+r.height)*n+r.x),p=f,g=4*h;!0===r.interlaced&&(g+=4*n*7);for(var m=8,v=0,y=o.length;v<y;++v){var _=o[v];if(0===c&&(c=u,(p+=g)>=d&&(g=4*h+4*n*(m-1),p=f+(u+h)*(m<<1),m>>=1)),_===l)p+=4;else{var b=t[s+3*_],x=t[s+3*_+1],w=t[s+3*_+2];i[p++]=w,i[p++]=x,i[p++]=b,i[p++]=255}--c}},this.decodeAndBlitFrameRGBA=function(e,i){var r=this.frameInfo(e),a=r.width*r.height,o=new Uint8Array(a);Ge(t,r.data_offset,o,a);var s=r.palette_offset,l=r.transparent_index;null===l&&(l=256);var u=r.width,h=n-u,c=u,f=4*(r.y*n+r.x),d=4*((r.y+r.height)*n+r.x),p=f,g=4*h;!0===r.interlaced&&(g+=4*n*7);for(var m=8,v=0,y=o.length;v<y;++v){var _=o[v];if(0===c&&(c=u,(p+=g)>=d&&(g=4*h+4*n*(m-1),p=f+(u+h)*(m<<1),m>>=1)),_===l)p+=4;else{var b=t[s+3*_],x=t[s+3*_+1],w=t[s+3*_+2];i[p++]=b,i[p++]=x,i[p++]=w,i[p++]=255}--c}}}function Ge(t,e,n,i){for(var r=t[e++],a=1<<r,o=a+1,s=o+1,l=r+1,u=(1<<l)-1,h=0,c=0,f=0,d=t[e++],p=new Int32Array(4096),g=null;;){for(;h<16&&0!==d;)c|=t[e++]<<h,h+=8,1===d?d=t[e++]:--d;if(h<l)break;var m=c&u;if(c>>=l,h-=l,m!==a){if(m===o)break;for(var v=m<s?m:g,y=0,_=v;_>a;)_=p[_]>>8,++y;var b=_;if(f+y+(v!==m?1:0)>i)return void Q.log("Warning, gif stream longer than expected.");n[f++]=b;var x=f+=y;for(v!==m&&(n[f++]=b),_=v;y--;)_=p[_],n[--x]=255&_,_>>=8;null!==g&&s<4096&&(p[s++]=g<<8|b,s>=u+1&&l<12&&(++l,u=u<<1|1)),g=m}else s=o+1,u=(1<<(l=r+1))-1,g=null}return f!==i&&Q.log("Warning, gif stream shorter than expected."),n}function Ye(t){var e,n,i,r,a,o=Math.floor,s=new Array(64),l=new Array(64),u=new Array(64),h=new Array(64),c=new Array(65535),f=new Array(65535),d=new Array(64),p=new Array(64),g=[],m=0,v=7,y=new Array(64),_=new Array(64),b=new Array(64),x=new Array(256),w=new Array(2048),S=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],A=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],C=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],N=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],I=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],M=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function T(t,e){for(var n=0,i=0,r=new Array,a=1;a<=16;a++){for(var o=1;o<=t[a];o++)r[e[i]]=[],r[e[i]][0]=n,r[e[i]][1]=a,i++,n++;n*=2}return r}function D(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<<n&&(m|=1<<v),n--,--v<0&&(255==m?(O(255),O(0)):O(m),v=7,m=0)}function O(t){g.push(t)}function F(t){O(t>>8&255),O(255&t)}function R(t,e,n,i,r){for(var a,o=r[0],s=r[240],l=function(t,e){var n,i,r,a,o,s,l,u,h,c,f=0;for(h=0;h<8;++h){n=t[f],i=t[f+1],r=t[f+2],a=t[f+3],o=t[f+4],s=t[f+5],l=t[f+6];var p=n+(u=t[f+7]),g=n-u,m=i+l,v=i-l,y=r+s,_=r-s,b=a+o,x=a-o,w=p+b,S=p-b,A=m+y,L=m-y;t[f]=w+A,t[f+4]=w-A;var C=.707106781*(L+S);t[f+2]=S+C,t[f+6]=S-C;var P=.382683433*((w=x+_)-(L=v+g)),N=.5411961*w+P,k=1.306562965*L+P,I=.707106781*(A=_+v),M=g+I,T=g-I;t[f+5]=T+N,t[f+3]=T-N,t[f+1]=M+k,t[f+7]=M-k,f+=8}for(f=0,h=0;h<8;++h){n=t[f],i=t[f+8],r=t[f+16],a=t[f+24],o=t[f+32],s=t[f+40],l=t[f+48];var D=n+(u=t[f+56]),O=n-u,F=i+l,R=i-l,E=r+s,B=r-s,z=a+o,j=a-o,q=D+z,H=D-z,W=F+E,U=F-E;t[f]=q+W,t[f+32]=q-W;var V=.707106781*(U+H);t[f+16]=H+V,t[f+48]=H-V;var G=.382683433*((q=j+B)-(U=R+O)),Y=.5411961*q+G,X=1.306562965*U+G,$=.707106781*(W=B+R),K=O+$,J=O-$;t[f+40]=J+Y,t[f+24]=J-Y,t[f+8]=K+X,t[f+56]=K-X,f++}for(h=0;h<64;++h)c=t[h]*e[h],d[h]=c>0?c+.5|0:c-.5|0;return d}(t,e),u=0;u<64;++u)p[S[u]]=l[u];var h=p[0]-n;n=p[0],0==h?D(i[0]):(D(i[f[a=32767+h]]),D(c[a]));for(var g=63;g>0&&0==p[g];)g--;if(0==g)return D(o),n;for(var m,v=1;v<=g;){for(var y=v;0==p[v]&&v<=g;)++v;var _=v-y;if(_>=16){m=_>>4;for(var b=1;b<=m;++b)D(s);_&=15}a=32767+p[v],D(r[(_<<4)+f[a]]),D(c[a]),v++}return 63!=g&&D(o),n}function E(t){t=Math.min(Math.max(t,1),100),a!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var i=o((e[n]*t+50)/100);i=Math.min(Math.max(i,1),255),s[S[n]]=i}for(var r=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],a=0;a<64;a++){var c=o((r[a]*t+50)/100);c=Math.min(Math.max(c,1),255),l[S[a]]=c}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,p=0;p<8;p++)for(var g=0;g<8;g++)u[d]=1/(s[S[d]]*f[p]*f[g]*8),h[d]=1/(l[S[d]]*f[p]*f[g]*8),d++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),a=t)}this.encode=function(t,a){a&&E(a),g=new Array,m=0,v=7,F(65496),F(65504),F(16),O(74),O(70),O(73),O(70),O(0),O(1),O(1),O(0),F(1),F(1),O(0),O(0),function(){F(65499),F(132),O(0);for(var t=0;t<64;t++)O(s[t]);O(1);for(var e=0;e<64;e++)O(l[e])}(),function(t,e){F(65472),F(17),O(8),F(e),F(t),O(3),O(1),O(17),O(0),O(2),O(17),O(1),O(3),O(17),O(1)}(t.width,t.height),function(){F(65476),F(418),O(0);for(var t=0;t<16;t++)O(A[t+1]);for(var e=0;e<=11;e++)O(L[e]);O(16);for(var n=0;n<16;n++)O(C[n+1]);for(var i=0;i<=161;i++)O(P[i]);O(1);for(var r=0;r<16;r++)O(N[r+1]);for(var a=0;a<=11;a++)O(k[a]);O(17);for(var o=0;o<16;o++)O(I[o+1]);for(var s=0;s<=161;s++)O(M[s])}(),F(65498),F(12),O(3),O(1),O(0),O(2),O(17),O(3),O(17),O(0),O(63),O(0);var o=0,c=0,f=0;m=0,v=7,this.encode.displayName="_encode_";for(var d,p,x,S,T,B,z,j,q,H=t.data,W=t.width,U=t.height,V=4*W,G=0;G<U;){for(d=0;d<V;){for(T=V*G+d,z=-1,j=0,q=0;q<64;q++)B=T+(j=q>>3)*V+(z=4*(7&q)),G+j>=U&&(B-=V*(G+1+j-U)),d+z>=V&&(B-=d+z-V+4),p=H[B++],x=H[B++],S=H[B++],y[q]=(w[p]+w[x+256|0]+w[S+512|0]>>16)-128,_[q]=(w[p+768|0]+w[x+1024|0]+w[S+1280|0]>>16)-128,b[q]=(w[p+1280|0]+w[x+1536|0]+w[S+1792|0]>>16)-128;o=R(y,u,o,e,i),c=R(_,h,c,n,r),f=R(b,h,f,n,r),d+=32}G+=8}if(v>=0){var Y=[];Y[1]=v+1,Y[0]=(1<<v+1)-1,D(Y)}return F(65497),new Uint8Array(g)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),e=T(A,L),n=T(N,k),i=T(C,P),r=T(I,M),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var i=t;i<e;i++)f[32767+i]=n,c[32767+i]=[],c[32767+i][1]=n,c[32767+i][0]=i;for(var r=-(e-1);r<=-t;r++)f[32767+r]=n,c[32767+r]=[],c[32767+r][1]=n,c[32767+r][0]=e-1+r;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)w[t]=19595*t,w[t+256|0]=38470*t,w[t+512|0]=7471*t+32768,w[t+768|0]=-11059*t,w[t+1024|0]=-21709*t,w[t+1280|0]=32768*t+8421375,w[t+1536|0]=-27439*t,w[t+1792|0]=-5329*t}(),E(t)}function Xe(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function $e(t){function e(t){if(!t)throw Error("assert :P")}function n(t,e,n){for(var i=0;4>i;i++)if(t[e+i]!=n.charCodeAt(i))return!0;return!1}function i(t,e,n,i,r){for(var a=0;a<r;a++)t[e+a]=n[i+a]}function r(t,e,n,i){for(var r=0;r<i;r++)t[e+r]=n}function a(t){return new Int32Array(t)}function o(t,e){for(var n=[],i=0;i<t;i++)n.push(new e);return n}function s(t,e){var n=[];return function t(n,i,r){for(var a=r[i],o=0;o<a&&(n.push(r.length>i+1?[]:new e),!(r.length<i+1));o++)t(n[o],i+1,r)}(n,0,t),n}var l=function(){var t=this;function l(t,e){for(var n=1<<e-1>>>0;t&n;)n>>>=1;return n?(t&n-1)+n:t}function u(t,n,i,r,a){e(!(r%i));do{t[n+(r-=i)]=a}while(0<r)}function h(t,n,i,r,o){if(e(2328>=o),512>=o)var s=a(512);else if(null==(s=a(o)))return 0;return function(t,n,i,r,o,s){var h,f,d=n,p=1<<i,g=a(16),m=a(16);for(e(0!=o),e(null!=r),e(null!=t),e(0<i),f=0;f<o;++f){if(15<r[f])return 0;++g[r[f]]}if(g[0]==o)return 0;for(m[1]=0,h=1;15>h;++h){if(g[h]>1<<h)return 0;m[h+1]=m[h]+g[h]}for(f=0;f<o;++f)h=r[f],0<r[f]&&(s[m[h]++]=f);if(1==m[15])return(r=new c).g=0,r.value=s[0],u(t,d,1,p,r),p;var v,y=-1,_=p-1,b=0,x=1,w=1,S=1<<i;for(f=0,h=1,o=2;h<=i;++h,o<<=1){if(x+=w<<=1,0>(w-=g[h]))return 0;for(;0<g[h];--g[h])(r=new c).g=h,r.value=s[f++],u(t,d+b,o,S,r),b=l(b,h)}for(h=i+1,o=2;15>=h;++h,o<<=1){if(x+=w<<=1,0>(w-=g[h]))return 0;for(;0<g[h];--g[h]){if(r=new c,(b&_)!=y){for(d+=S,v=1<<(y=h)-i;15>y&&!(0>=(v-=g[y]));)++y,v<<=1;p+=S=1<<(v=y-i),t[n+(y=b&_)].g=v+i,t[n+y].value=d-n-y}r.g=h-i,r.value=s[f++],u(t,d+(b>>i),o,S,r),b=l(b,h)}}return x!=2*m[15]-1?0:p}(t,n,i,r,o,s)}function c(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=o(5,c),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(zn,f)}function p(t,n,i,r){e(null!=t),e(null!=n),e(2147483648>r),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=n,t.pa=i,t.Jd=n,t.Yc=i+r,t.Zc=4<=r?i+r-4+1:i,C(t)}function g(t,e){for(var n=0;0<e--;)n|=N(t,128)<<e;return n}function m(t,e){var n=g(t,e);return P(t)?-n:n}function v(t,n,i,r){var a,o=0;for(e(null!=t),e(null!=n),e(4294967288>r),t.Sb=r,t.Ra=0,t.u=0,t.h=0,4<r&&(r=4),a=0;a<r;++a)o+=n[i+a]<<8*a;t.Ra=o,t.bb=r,t.oa=n,t.pa=i}function y(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<Hn-8>>>0,++t.bb,t.u-=8;S(t)&&(t.h=1,t.u=0)}function _(t,n){if(e(0<=n),!t.h&&n<=qn){var i=w(t)&jn[n];return t.u+=n,y(t),i}return t.h=1,t.u=0}function b(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function w(t){return t.Ra>>>(t.u&Hn-1)>>>0}function S(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>Hn}function A(t,e){t.u=e,t.h=S(t)}function L(t){t.u>=Wn&&(e(t.u>=Wn),y(t))}function C(t){e(null!=t&&null!=t.oa),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function P(t){return g(t,1)}function N(t,e){var n=t.Ca;0>t.b&&C(t);var i=t.b,r=n*e>>>8,a=(t.I>>>i>r)+0;for(a?(n-=r,t.I-=r+1<<i>>>0):n=r+1,i=n,r=0;256<=i;)r+=8,i>>=8;return i=7^r+Un[i],t.b-=i,t.Ca=(n<<i)-1,a}function k(t,e,n){t[e+0]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n}function I(t,e){return t[e+0]|t[e+1]<<8}function M(t,e){return I(t,e)|t[e+2]<<16}function T(t,e){return I(t,e)|I(t,e+2)<<16}function D(t,n){var i=1<<n;return e(null!=t),e(0<n),t.X=a(i),null==t.X?0:(t.Mb=32-n,t.Xa=n,1)}function O(t,n){e(null!=t),e(null!=n),e(t.Xa==n.Xa),i(n.X,0,t.X,0,1<<n.Xa)}function F(){this.X=[],this.Xa=this.Mb=0}function R(t,n,i,r){e(null!=i),e(null!=r);var a=i[0],o=r[0];return 0==a&&(a=(t*o+n/2)/n),0==o&&(o=(n*a+t/2)/t),0>=a||0>=o?0:(i[0]=a,r[0]=o,1)}function E(t,e){return t+(1<<e)-1>>>e}function B(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function z(e,n){t[n]=function(n,i,r,a,o,s,l){var u;for(u=0;u<o;++u){var h=t[e](s[l+u-1],r,a+u);s[l+u]=B(n[i+u],h)}}}function j(){this.ud=this.hd=this.jd=0}function q(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function H(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function W(t,e){return H(t+(t-e+.5>>1))}function U(t,e,n){return Math.abs(e-n)-Math.abs(t-n)}function V(t,e,n,i,r,a,o){for(i=a[o-1],n=0;n<r;++n)a[o+n]=i=B(t[e+n],i)}function G(t,e,n,i,r){var a;for(a=0;a<n;++a){var o=t[e+a],s=o>>8&255,l=16711935&(l=(l=16711935&o)+((s<<16)+s));i[r+a]=(4278255360&o)+l>>>0}}function Y(t,e){e.jd=255&t,e.hd=t>>8&255,e.ud=t>>16&255}function X(t,e,n,i,r,a){var o;for(o=0;o<i;++o){var s=e[n+o],l=s>>>8,u=s,h=255&(h=(h=s>>>16)+((t.jd<<24>>24)*(l<<24>>24)>>>5));u=255&(u=(u+=(t.hd<<24>>24)*(l<<24>>24)>>>5)+((t.ud<<24>>24)*(h<<24>>24)>>>5)),r[a+o]=(4278255360&s)+(h<<16)+u}}function $(e,n,i,r,a){t[n]=function(t,e,n,i,o,s,l,u,h){for(i=l;i<u;++i)for(l=0;l<h;++l)o[s++]=a(n[r(t[e++])])},t[e]=function(e,n,o,s,l,u,h){var c=8>>e.b,f=e.Ea,d=e.K[0],p=e.w;if(8>c)for(e=(1<<e.b)-1,p=(1<<c)-1;n<o;++n){var g,m=0;for(g=0;g<f;++g)g&e||(m=r(s[l++])),u[h++]=a(d[m&p]),m>>=c}else t["VP8LMapColor"+i](s,l,d,p,u,h,n,o,f)}}function K(t,e,n,i,r){for(n=e+n;e<n;){var a=t[e++];i[r++]=a>>16&255,i[r++]=a>>8&255,i[r++]=255&a}}function J(t,e,n,i,r){for(n=e+n;e<n;){var a=t[e++];i[r++]=a>>16&255,i[r++]=a>>8&255,i[r++]=255&a,i[r++]=a>>24&255}}function Z(t,e,n,i,r){for(n=e+n;e<n;){var a=(o=t[e++])>>16&240|o>>12&15,o=240&o|o>>28&15;i[r++]=a,i[r++]=o}}function Q(t,e,n,i,r){for(n=e+n;e<n;){var a=(o=t[e++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;i[r++]=a,i[r++]=o}}function tt(t,e,n,i,r){for(n=e+n;e<n;){var a=t[e++];i[r++]=255&a,i[r++]=a>>8&255,i[r++]=a>>16&255}}function et(t,e,n,r,a,o){if(0==o)for(n=e+n;e<n;)k(r,((o=t[e++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),a+=32;else i(r,a,t,e,n)}function nt(e,n){t[n][0]=t[e+"0"],t[n][1]=t[e+"1"],t[n][2]=t[e+"2"],t[n][3]=t[e+"3"],t[n][4]=t[e+"4"],t[n][5]=t[e+"5"],t[n][6]=t[e+"6"],t[n][7]=t[e+"7"],t[n][8]=t[e+"8"],t[n][9]=t[e+"9"],t[n][10]=t[e+"10"],t[n][11]=t[e+"11"],t[n][12]=t[e+"12"],t[n][13]=t[e+"13"],t[n][14]=t[e+"0"],t[n][15]=t[e+"0"]}function it(t){return t==Wi||t==Ui||t==Vi||t==Gi}function rt(){this.eb=[],this.size=this.A=this.fb=0}function at(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ot(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new rt,this.f.kb=new at,this.sd=null}function st(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function lt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ut(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ht(t,e){var n=t.T,r=e.ba.f.RGBA,a=r.eb,o=r.fb+t.ka*r.A,s=vr[e.ba.S],l=t.y,u=t.O,h=t.f,c=t.N,f=t.ea,d=t.W,p=e.cc,g=e.dc,m=e.Mc,v=e.Nc,y=t.ka,_=t.ka+t.T,b=t.U,x=b+1>>1;for(0==y?s(l,u,null,null,h,c,f,d,h,c,f,d,a,o,null,null,b):(s(e.ec,e.fc,l,u,p,g,m,v,h,c,f,d,a,o-r.A,a,o,b),++n);y+2<_;y+=2)p=h,g=c,m=f,v=d,c+=t.Rc,d+=t.Rc,o+=2*r.A,s(l,(u+=2*t.fa)-t.fa,l,u,p,g,m,v,h,c,f,d,a,o-r.A,a,o,b);return u+=t.fa,t.j+_<t.o?(i(e.ec,e.fc,l,u,b),i(e.cc,e.dc,h,c,x),i(e.Mc,e.Nc,f,d,x),n--):1&_||s(l,u,null,null,h,c,f,d,h,c,f,d,a,o+r.A,null,null,b),n}function ct(t,n,i){var r=t.F,a=[t.J];if(null!=r){var o=t.U,s=n.ba.S,l=s==ji||s==Vi;n=n.ba.f.RGBA;var u=[0],h=t.ka;u[0]=t.T,t.Kb&&(0==h?--u[0]:(--h,a[0]-=t.width),t.j+t.ka+t.T==t.o&&(u[0]=t.o-t.j-h));var c=n.eb;h=n.fb+h*n.A,t=Li(r,a[0],t.width,o,u,c,h+(l?0:3),n.A),e(i==u),t&&it(s)&&Si(c,h,l,o,u,n.A)}return 0}function ft(t){var e=t.ma,n=e.ba.S,i=11>n,r=n==Ei||n==zi||n==ji||n==qi||12==n||it(n);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!Rn(e.Oa,t,r?11:12))return 0;if(r&&it(n)&&_n(),t.da)alert("todo:use_scaling");else{if(i){if(e.Ib=ut,t.Kb){if(n=t.U+1>>1,e.memory=a(t.U+2*n),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+n,e.Ib=ht,_n()}}else alert("todo:EmitYUV");r&&(e.Jb=ct,i&&vn())}if(i&&!Mr){for(t=0;256>t;++t)Tr[t]=89858*(t-128)+Cr>>Lr,Fr[t]=-22014*(t-128)+Cr,Or[t]=-45773*(t-128),Dr[t]=113618*(t-128)+Cr>>Lr;for(t=Pr;t<Nr;++t)e=76283*(t-16)+Cr>>Lr,Rr[t-Pr]=Vt(e,255),Er[t-Pr]=Vt(e+8>>4,15);Mr=1}return 1}function dt(t){var n=t.ma,i=t.U,r=t.T;return e(!(1&t.ka)),0>=i||0>=r?0:(i=n.Ib(t,n),null!=n.Jb&&n.Jb(t,n,i),n.Dc+=i,1)}function pt(t){t.ma.memory=null}function gt(t,e,n,i){return 47!=_(t,8)?0:(e[0]=_(t,14)+1,n[0]=_(t,14)+1,i[0]=_(t,1),0!=_(t,3)?0:!t.h)}function mt(t,e){if(4>t)return t+1;var n=t-2>>1;return(2+(1&t)<<n)+_(e,n)+1}function vt(t,e){return 120<e?e-120:1<=(n=((n=Zi[e-1])>>4)*t+(8-(15&n)))?n:1;var n}function yt(t,e,n){var i=w(n),r=t[e+=255&i].g-8;return 0<r&&(A(n,n.u+8),i=w(n),e+=t[e].value,e+=i&(1<<r)-1),A(n,n.u+t[e].g),t[e].value}function _t(t,n,i){return i.g+=t.g,i.value+=t.value<<n>>>0,e(8>=i.g),t.g}function bt(t,n,i){var r=t.xc;return e((n=0==r?0:t.vc[t.md*(i>>r)+(n>>r)])<t.Wb),t.Ya[n]}function xt(t,n,r,a){var o=t.ab,s=t.c*n,l=t.C;n=l+n;var u=r,h=a;for(a=t.Ta,r=t.Ua;0<o--;){var c=t.gc[o],f=l,d=n,p=u,g=h,m=(h=a,u=r,c.Ea);switch(e(f<d),e(d<=c.nc),c.hc){case 2:Yn(p,g,(d-f)*m,h,u);break;case 0:var v=f,y=d,_=h,b=u,x=(C=c).Ea;0==v&&(Vn(p,g,null,null,1,_,b),V(p,g+1,0,0,x-1,_,b+1),g+=x,b+=x,++v);for(var w=1<<C.b,S=w-1,A=E(x,C.b),L=C.K,C=C.w+(v>>C.b)*A;v<y;){var P=L,N=C,k=1;for(Gn(p,g,_,b-x,1,_,b);k<x;){var I=(k&~S)+w;I>x&&(I=x),(0,Zn[P[N++]>>8&15])(p,g+ +k,_,b+k-x,I-k,_,b+k),k=I}g+=x,b+=x,++v&S||(C+=A)}d!=c.nc&&i(h,u-m,h,u+(d-f-1)*m,m);break;case 1:for(m=p,y=g,x=(p=c.Ea)-(b=p&~(_=(g=1<<c.b)-1)),v=E(p,c.b),w=c.K,c=c.w+(f>>c.b)*v;f<d;){for(S=w,A=c,L=new j,C=y+b,P=y+p;y<C;)Y(S[A++],L),Qn(L,m,y,g,h,u),y+=g,u+=g;y<P&&(Y(S[A++],L),Qn(L,m,y,x,h,u),y+=x,u+=x),++f&_||(c+=v)}break;case 3:if(p==h&&g==u&&0<c.b){for(y=h,p=m=u+(d-f)*m-(b=(d-f)*E(c.Ea,c.b)),g=h,_=u,v=[],b=(x=b)-1;0<=b;--b)v[b]=g[_+b];for(b=x-1;0<=b;--b)y[p+b]=v[b];Xn(c,f,d,h,m,h,u)}else Xn(c,f,d,p,g,h,u)}u=a,h=r}h!=r&&i(a,r,u,h,s)}function wt(t,n){var i=t.V,r=t.Ba+t.c*t.C,a=n-t.C;if(e(n<=t.l.o),e(16>=a),0<a){var o=t.l,s=t.Ta,l=t.Ua,u=o.width;if(xt(t,a,i,r),a=l=[l],e((i=t.C)<(r=n)),e(o.v<o.va),r>o.o&&(r=o.o),i<o.j){var h=o.j-i;i=o.j,a[0]+=h*u}if(i>=r?i=0:(a[0]+=4*o.v,o.ka=i-o.j,o.U=o.va-o.v,o.T=r-i,i=1),i){if(l=l[0],11>(i=t.ca).S){var c=i.f.RGBA,f=(r=i.S,a=o.U,o=o.T,h=c.eb,c.A),d=o;for(c=c.fb+t.Ma*c.A;0<d--;){var p=s,g=l,m=a,v=h,y=c;switch(r){case Ri:ti(p,g,m,v,y);break;case Ei:ei(p,g,m,v,y);break;case Wi:ei(p,g,m,v,y),Si(v,y,0,m,1,0);break;case Bi:ri(p,g,m,v,y);break;case zi:et(p,g,m,v,y,1);break;case Ui:et(p,g,m,v,y,1),Si(v,y,0,m,1,0);break;case ji:et(p,g,m,v,y,0);break;case Vi:et(p,g,m,v,y,0),Si(v,y,1,m,1,0);break;case qi:ni(p,g,m,v,y);break;case Gi:ni(p,g,m,v,y),Ai(v,y,m,1,0);break;case Hi:ii(p,g,m,v,y);break;default:e(0)}l+=u,c+=f}t.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=i.height)}}t.C=n,e(t.C<=t.i)}function St(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var n=t.Ya[e].G,i=t.Ya[e].H;if(0<n[1][i[1]+0].g||0<n[2][i[2]+0].g||0<n[3][i[3]+0].g)return 0}return 1}function At(t,n,i,r,a,o){if(0!=t.Z){var s=t.qd,l=t.rd;for(e(null!=mr[t.Z]);n<i;++n)mr[t.Z](s,l,r,a,r,a,o),s=r,l=a,a+=o;t.qd=s,t.rd=l}}function Lt(t,n){var i=t.l.ma,r=0==i.Z||1==i.Z?t.l.j:t.C;if(r=t.C<r?r:t.C,e(n<=t.l.o),n>r){var a=t.l.width,o=i.ca,s=i.tb+a*r,l=t.V,u=t.Ba+t.c*r,h=t.gc;e(1==t.ab),e(3==h[0].hc),Kn(h[0],r,n,l,u,o,s),At(i,r,n,o,s,a)}t.C=t.Ma=n}function Ct(t,n,i,r,a,o,s){var l=t.$/r,u=t.$%r,h=t.m,c=t.s,f=i+t.$,d=f;a=i+r*a;var p=i+r*o,g=280+c.ua,m=t.Pb?l:16777216,v=0<c.ua?c.Wa:null,y=c.wc,_=f<p?bt(c,u,l):null;e(t.C<o),e(p<=a);var b=!1;t:for(;;){for(;b||f<p;){var x=0;if(l>=m){var C=f-i;e((m=t).Pb),m.wd=m.m,m.xd=C,0<m.s.ua&&O(m.s.Wa,m.s.vb),m=l+tr}if(u&y||(_=bt(c,u,l)),e(null!=_),_.Qb&&(n[f]=_.qb,b=!0),!b)if(L(h),_.jc){x=h,C=n;var P=f,N=_.pd[w(x)&zn-1];e(_.jc),256>N.g?(A(x,x.u+N.g),C[P]=N.value,x=0):(A(x,x.u+N.g-256),e(256<=N.value),x=N.value),0==x&&(b=!0)}else x=yt(_.G[0],_.H[0],h);if(h.h)break;if(b||256>x){if(!b)if(_.nd)n[f]=(_.qb|x<<8)>>>0;else{if(L(h),b=yt(_.G[1],_.H[1],h),L(h),C=yt(_.G[2],_.H[2],h),P=yt(_.G[3],_.H[3],h),h.h)break;n[f]=(P<<24|b<<16|x<<8|C)>>>0}if(b=!1,++f,++u>=r&&(u=0,++l,null!=s&&l<=o&&!(l%16)&&s(t,l),null!=v))for(;d<f;)x=n[d++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else if(280>x){if(x=mt(x-256,h),C=yt(_.G[4],_.H[4],h),L(h),C=vt(r,C=mt(C,h)),h.h)break;if(f-i<C||a-f<x)break t;for(P=0;P<x;++P)n[f+P]=n[f+P-C];for(f+=x,u+=x;u>=r;)u-=r,++l,null!=s&&l<=o&&!(l%16)&&s(t,l);if(e(f<=a),u&y&&(_=bt(c,u,l)),null!=v)for(;d<f;)x=n[d++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else{if(!(x<g))break t;for(b=x-280,e(null!=v);d<f;)x=n[d++],v.X[(506832829*x&4294967295)>>>v.Mb]=x;x=f,e(!(b>>>(C=v).Xa)),n[x]=C.X[b],b=!0}b||e(h.h==S(h))}if(t.Pb&&h.h&&f<a)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&O(t.s.vb,t.s.Wa);else{if(h.h)break t;null!=s&&s(t,l>o?o:l),t.a=0,t.$=f-i}return 1}return t.a=3,0}function Pt(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var n=t.Wa;null!=n&&(n.X=null),t.vb=null,e(null!=t)}function Nt(){var e=new sn;return null==e?null:(e.a=0,e.xb=gr,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),Yn=G,Qn=X,ti=K,ei=J,ni=Z,ii=Q,ri=tt,t.VP8LMapColor32b=$n,t.VP8LMapColor8b=Jn,e)}function kt(t,n,i,s,l){var u=1,f=[t],p=[n],g=s.m,m=s.s,v=null,y=0;t:for(;;){if(i)for(;u&&_(g,1);){var b=f,x=p,S=s,C=1,P=S.m,N=S.gc[S.ab],k=_(P,2);if(S.Oc&1<<k)u=0;else{switch(S.Oc|=1<<k,N.hc=k,N.Ea=b[0],N.nc=x[0],N.K=[null],++S.ab,e(4>=S.ab),k){case 0:case 1:N.b=_(P,3)+2,C=kt(E(N.Ea,N.b),E(N.nc,N.b),0,S,N.K),N.K=N.K[0];break;case 3:var I,M=_(P,8)+1,T=16<M?0:4<M?1:2<M?2:3;if(b[0]=E(N.Ea,T),N.b=T,I=C=kt(M,1,0,S,N.K)){var O,F=M,R=N,z=1<<(8>>R.b),j=a(z);if(null==j)I=0;else{var q=R.K[0],H=R.w;for(j[0]=R.K[0][0],O=1;O<1*F;++O)j[O]=B(q[H+O],j[O-1]);for(;O<4*z;++O)j[O]=0;R.K[0]=null,R.K[0]=j,I=1}}C=I;break;case 2:break;default:e(0)}u=C}}if(f=f[0],p=p[0],u&&_(g,1)&&!(u=1<=(y=_(g,4))&&11>=y)){s.a=3;break t}var W;if(W=u)e:{var U,V,G,Y=s,X=f,$=p,K=y,J=i,Z=Y.m,Q=Y.s,tt=[null],et=1,nt=0,it=Qi[K];n:for(;;){if(J&&_(Z,1)){var rt=_(Z,3)+2,at=E(X,rt),ot=E($,rt),st=at*ot;if(!kt(at,ot,0,Y,tt))break n;for(tt=tt[0],Q.xc=rt,U=0;U<st;++U){var lt=tt[U]>>8&65535;tt[U]=lt,lt>=et&&(et=lt+1)}}if(Z.h)break n;for(V=0;5>V;++V){var ut=$i[V];!V&&0<K&&(ut+=1<<K),nt<ut&&(nt=ut)}var ht=o(et*it,c),ct=et,ft=o(ct,d);if(null==ft)var dt=null;else e(65536>=ct),dt=ft;var pt=a(nt);if(null==dt||null==pt||null==ht){Y.a=1;break n}var gt=ht;for(U=G=0;U<et;++U){var mt=dt[U],vt=mt.G,yt=mt.H,bt=0,xt=1,wt=0;for(V=0;5>V;++V){ut=$i[V],vt[V]=gt,yt[V]=G,!V&&0<K&&(ut+=1<<K);i:{var St,At=ut,Lt=Y,Nt=pt,It=gt,Mt=G,Tt=0,Dt=Lt.m,Ot=_(Dt,1);if(r(Nt,0,0,At),Ot){var Ft=_(Dt,1)+1,Rt=_(Dt,1),Et=_(Dt,0==Rt?1:8);Nt[Et]=1,2==Ft&&(Nt[Et=_(Dt,8)]=1);var Bt=1}else{var zt=a(19),jt=_(Dt,4)+4;if(19<jt){Lt.a=3;var qt=0;break i}for(St=0;St<jt;++St)zt[Ji[St]]=_(Dt,3);var Ht=void 0,Wt=void 0,Ut=Lt,Vt=zt,Gt=At,Yt=Nt,Xt=0,$t=Ut.m,Kt=8,Jt=o(128,c);r:for(;h(Jt,0,7,Vt,19);){if(_($t,1)){var Zt=2+2*_($t,3);if((Ht=2+_($t,Zt))>Gt)break r}else Ht=Gt;for(Wt=0;Wt<Gt&&Ht--;){L($t);var Qt=Jt[0+(127&w($t))];A($t,$t.u+Qt.g);var te=Qt.value;if(16>te)Yt[Wt++]=te,0!=te&&(Kt=te);else{var ee=16==te,ne=te-16,ie=Xi[ne],re=_($t,Yi[ne])+ie;if(Wt+re>Gt)break r;for(var ae=ee?Kt:0;0<re--;)Yt[Wt++]=ae}}Xt=1;break r}Xt||(Ut.a=3),Bt=Xt}(Bt=Bt&&!Dt.h)&&(Tt=h(It,Mt,8,Nt,At)),Bt&&0!=Tt?qt=Tt:(Lt.a=3,qt=0)}if(0==qt)break n;if(xt&&1==Ki[V]&&(xt=0==gt[G].g),bt+=gt[G].g,G+=qt,3>=V){var oe,se=pt[0];for(oe=1;oe<ut;++oe)pt[oe]>se&&(se=pt[oe]);wt+=se}}if(mt.nd=xt,mt.Qb=0,xt&&(mt.qb=(vt[3][yt[3]+0].value<<24|vt[1][yt[1]+0].value<<16|vt[2][yt[2]+0].value)>>>0,0==bt&&256>vt[0][yt[0]+0].value&&(mt.Qb=1,mt.qb+=vt[0][yt[0]+0].value<<8)),mt.jc=!mt.Qb&&6>wt,mt.jc){var le,ue=mt;for(le=0;le<zn;++le){var he=le,ce=ue.pd[he],fe=ue.G[0][ue.H[0]+he];256<=fe.value?(ce.g=fe.g+256,ce.value=fe.value):(ce.g=0,ce.value=0,he>>=_t(fe,8,ce),he>>=_t(ue.G[1][ue.H[1]+he],16,ce),he>>=_t(ue.G[2][ue.H[2]+he],0,ce),_t(ue.G[3][ue.H[3]+he],24,ce))}}}Q.vc=tt,Q.Wb=et,Q.Ya=dt,Q.yc=ht,W=1;break e}W=0}if(!(u=W)){s.a=3;break t}if(0<y){if(m.ua=1<<y,!D(m.Wa,y)){s.a=1,u=0;break t}}else m.ua=0;var de=s,pe=f,ge=p,me=de.s,ve=me.xc;if(de.c=pe,de.i=ge,me.md=E(pe,ve),me.wc=0==ve?-1:(1<<ve)-1,i){s.xb=pr;break t}if(null==(v=a(f*p))){s.a=1,u=0;break t}u=(u=Ct(s,v,0,f,p,p,null))&&!g.h;break t}return u?(null!=l?l[0]=v:(e(null==v),e(i)),s.$=0,i||Pt(m)):Pt(m),u}function It(t,n){var i=t.c*t.i,r=i+n+16*n;return e(t.c<=n),t.V=a(r),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+i+n,1)}function Mt(t,n){var i=t.C,r=n-i,a=t.V,o=t.Ba+t.c*i;for(e(n<=t.l.o);0<r;){var s=16<r?16:r,l=t.l.ma,u=t.l.width,h=u*s,c=l.ca,f=l.tb+u*i,d=t.Ta,p=t.Ua;xt(t,s,a,o),Ci(d,p,c,f,h),At(l,i,i+s,c,f,u),r-=s,a+=s*t.c,i+=s}e(i==n),t.C=t.Ma=n}function Tt(){this.ub=this.yd=this.td=this.Rb=0}function Dt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ot(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Ft(){this.Yb=function(){var t=[];return function t(e,n,i){for(var r=i[n],a=0;a<r&&(e.push(i.length>n+1?[]:0),!(i.length<n+1));a++)t(e[a],n+1,i)}(t,0,[3,11]),t}()}function Rt(){this.jb=a(3),this.Wc=s([4,8],Ft),this.Xc=s([4,17],Ft)}function Et(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Bt(){this.ld=this.La=this.dd=this.tc=0}function zt(){this.Na=this.la=0}function jt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function qt(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ht(){this.uc=this.M=this.Nb=0,this.wa=Array(new Bt),this.Y=0,this.ya=Array(new qt),this.aa=0,this.l=new Gt}function Wt(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Ut(){this.cb=this.a=0,this.sc="",this.m=new b,this.Od=new Tt,this.Kc=new Dt,this.ed=new Et,this.Qa=new Ot,this.Ic=this.$c=this.Aa=0,this.D=new Ht,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,b),this.ia=0,this.pb=o(4,jt),this.Pa=new Rt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Wt),this.Hd=0,this.rb=Array(new zt),this.sb=0,this.wa=Array(new Bt),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new qt),this.L=this.aa=0,this.gd=s([4,2],Bt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Vt(t,e){return 0>t?0:t>e?e:t}function Gt(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Yt(){var t=new Ut;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,ir||(ir=Jt)),t}function Xt(t,e,n){return 0==t.a&&(t.a=e,t.sc=n,t.cb=0),0}function $t(t,e,n){return 3<=n&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Kt(t,n){if(null==t)return 0;if(t.a=0,t.sc="OK",null==n)return Xt(t,2,"null VP8Io passed to VP8GetHeaders()");var i=n.data,a=n.w,o=n.ha;if(4>o)return Xt(t,7,"Truncated header.");var s=i[a+0]|i[a+1]<<8|i[a+2]<<16,l=t.Od;if(l.Rb=!(1&s),l.td=s>>1&7,l.yd=s>>4&1,l.ub=s>>5,3<l.td)return Xt(t,3,"Incorrect keyframe parameters.");if(!l.yd)return Xt(t,4,"Frame not displayable.");a+=3,o-=3;var u=t.Kc;if(l.Rb){if(7>o)return Xt(t,7,"cannot parse picture header");if(!$t(i,a,o))return Xt(t,3,"Bad code word");u.c=16383&(i[a+4]<<8|i[a+3]),u.Td=i[a+4]>>6,u.i=16383&(i[a+6]<<8|i[a+5]),u.Ud=i[a+6]>>6,a+=7,o-=7,t.za=u.c+15>>4,t.Ub=u.i+15>>4,n.width=u.c,n.height=u.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,r((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,r(s.Zb,0,0,s.Zb.length),r(s.Lb,0,0,s.Lb)}if(l.ub>o)return Xt(t,7,"bad partition length");p(s=t.m,i,a,l.ub),a+=l.ub,o-=l.ub,l.Rb&&(u.Ld=P(s),u.Kd=P(s)),u=t.Qa;var h,c=t.Pa;if(e(null!=s),e(null!=u),u.Cb=P(s),u.Cb){if(u.Bb=P(s),P(s)){for(u.Fb=P(s),h=0;4>h;++h)u.Zb[h]=P(s)?m(s,7):0;for(h=0;4>h;++h)u.Lb[h]=P(s)?m(s,6):0}if(u.Bb)for(h=0;3>h;++h)c.jb[h]=P(s)?g(s,8):255}else u.Bb=0;if(s.Ka)return Xt(t,3,"cannot parse segment header");if((u=t.ed).zd=P(s),u.Tb=g(s,6),u.wb=g(s,3),u.Pc=P(s),u.Pc&&P(s)){for(c=0;4>c;++c)P(s)&&(u.vd[c]=m(s,6));for(c=0;4>c;++c)P(s)&&(u.od[c]=m(s,6))}if(t.L=0==u.Tb?0:u.zd?1:2,s.Ka)return Xt(t,3,"cannot parse filter header");var f=o;if(o=h=a,a=h+f,u=f,t.Xb=(1<<g(t.m,2))-1,f<3*(c=t.Xb))i=7;else{for(h+=3*c,u-=3*c,f=0;f<c;++f){var d=i[o+0]|i[o+1]<<8|i[o+2]<<16;d>u&&(d=u),p(t.Jc[+f],i,h,d),h+=d,u-=d,o+=3}p(t.Jc[+c],i,h,u),i=h<a?0:5}if(0!=i)return Xt(t,i,"cannot parse partitions");for(i=g(h=t.m,7),o=P(h)?m(h,4):0,a=P(h)?m(h,4):0,u=P(h)?m(h,4):0,c=P(h)?m(h,4):0,h=P(h)?m(h,4):0,f=t.Qa,d=0;4>d;++d){if(f.Cb){var v=f.Zb[d];f.Fb||(v+=i)}else{if(0<d){t.pb[d]=t.pb[0];continue}v=i}var y=t.pb[d];y.Sc[0]=er[Vt(v+o,127)],y.Sc[1]=nr[Vt(v+0,127)],y.Eb[0]=2*er[Vt(v+a,127)],y.Eb[1]=101581*nr[Vt(v+u,127)]>>16,8>y.Eb[1]&&(y.Eb[1]=8),y.Qc[0]=er[Vt(v+c,117)],y.Qc[1]=nr[Vt(v+h,127)],y.lc=v+h}if(!l.Rb)return Xt(t,4,"Not a key frame.");for(P(s),l=t.Pa,i=0;4>i;++i){for(o=0;8>o;++o)for(a=0;3>a;++a)for(u=0;11>u;++u)c=N(s,ur[i][o][a][u])?g(s,8):sr[i][o][a][u],l.Wc[i][o].Yb[a][u]=c;for(o=0;17>o;++o)l.Xc[i][o]=l.Wc[i][hr[o]]}return t.kc=P(s),t.kc&&(t.Bd=g(s,8)),t.cb=1}function Jt(t,e,n,i,r,a,o){var s=e[r].Yb[n];for(n=0;16>r;++r){if(!N(t,s[n+0]))return r;for(;!N(t,s[n+1]);)if(s=e[++r].Yb[0],n=0,16==r)return 16;var l=e[r+1].Yb;if(N(t,s[n+2])){var u=t,h=0;if(N(u,(f=s)[(c=n)+3]))if(N(u,f[c+6])){for(s=0,c=2*(h=N(u,f[c+8]))+(f=N(u,f[c+9+h])),h=0,f=rr[c];f[s];++s)h+=h+N(u,f[s]);h+=3+(8<<c)}else N(u,f[c+7])?(h=7+2*N(u,165),h+=N(u,145)):h=5+N(u,159);else h=N(u,f[c+4])?3+N(u,f[c+5]):2;s=l[2]}else h=1,s=l[1];l=o+ar[r],0>(u=t).b&&C(u);var c,f=u.b,d=(c=u.Ca>>1)-(u.I>>f)>>31;--u.b,u.Ca+=d,u.Ca|=1,u.I-=(c+1&d)<<f,a[l]=((h^d)-d)*i[(0<r)+0]}return 16}function Zt(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,r(t.zc,0,0,t.zc.length),t.ja=0}function Qt(t,n){if(null==t)return 0;if(null==n)return Xt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Kt(t,n))return 0;if(e(t.cb),null==n.ac||n.ac(n)){n.ob&&(t.L=0);var s=zr[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=n.v-s>>4,t.zb=n.j-s>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=n.o+15+s>>4,t.Hb=n.va+15+s>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var l=t.ed;for(s=0;4>s;++s){var u;if(t.Qa.Cb){var h=t.Qa.Lb[s];t.Qa.Fb||(h+=l.Tb)}else h=l.Tb;for(u=0;1>=u;++u){var c=t.gd[s][u],f=h;if(l.Pc&&(f+=l.vd[0],u&&(f+=l.od[0])),0<(f=0>f?0:63<f?63:f)){var d=f;0<l.wb&&(d=4<l.wb?d>>2:d>>1)>9-l.wb&&(d=9-l.wb),1>d&&(d=1),c.dd=d,c.tc=2*f+d,c.ld=40<=f?2:15<=f?1:0}else c.tc=0;c.La=u}}}s=0}else Xt(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0<t.Aa||(t.Ic=qr);t:{s=t.Ic,l=4*(d=t.za);var p=32*d,g=d+1,m=0<t.L?d*(0<t.Aa?2:1):0,v=(2==t.Aa?2:1)*d;if((c=l+832+(u=3*(16*s+zr[t.L])/2*p)+(h=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=c)s=0;else{if(c>t.Vb){if(t.Vb=0,t.Ec=a(c),t.Fc=0,null==t.Ec){s=Xt(t,1,"no memory during frame initialization.");break t}t.Vb=c}c=t.Ec,f=t.Fc,t.Ac=c,t.Bc=f,f+=l,t.Gd=o(p,Wt),t.Hd=0,t.rb=o(g+1,zt),t.sb=1,t.wa=m?o(m,Bt):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=d),e(!0),t.oc=c,t.pc=f,f+=832,t.ya=o(v,qt),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=d),t.R=16*d,t.B=8*d,d=(p=zr[t.L])*t.R,p=p/2*t.B,t.sa=c,t.ta=f+d,t.qa=t.sa,t.ra=t.ta+16*s*t.R+p,t.Ha=t.qa,t.Ia=t.ra+8*s*t.B+p,t.$c=0,f+=u,t.mb=h?c:null,t.nb=h?f:null,e(f+h<=t.Fc+t.Vb),Zt(t),r(t.Ac,t.Bc,0,l),s=1}}if(s){if(n.ka=0,n.y=t.sa,n.O=t.ta,n.f=t.qa,n.N=t.ra,n.ea=t.Ha,n.Vd=t.Ia,n.fa=t.R,n.Rc=t.B,n.F=null,n.J=0,!Mi){for(s=-255;255>=s;++s)Pi[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)Ni[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)ki[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Ii[255+s]=0>s?0:255<s?255:s;Mi=1}ai=ue,oi=ae,li=oe,ui=se,hi=le,si=re,ci=Xe,fi=$e,di=Ze,pi=Qe,gi=Ke,mi=Je,vi=tn,yi=en,_i=He,bi=We,xi=Ue,wi=Ve,fr[0]=Ae,fr[1]=ce,fr[2]=we,fr[3]=Se,fr[4]=Le,fr[5]=Pe,fr[6]=Ce,fr[7]=Ne,fr[8]=Ie,fr[9]=ke,cr[0]=ve,cr[1]=de,cr[2]=pe,cr[3]=ge,cr[4]=ye,cr[5]=_e,cr[6]=be,dr[0]=Oe,dr[1]=fe,dr[2]=Me,dr[3]=Te,dr[4]=Re,dr[5]=Fe,dr[6]=Ee,s=1}else s=0}s&&(s=function(t,n){for(t.M=0;t.M<t.Va;++t.M){var o,s=t.Jc[t.M&t.Xb],l=t.m,u=t;for(o=0;o<u.za;++o){var h=l,c=u,f=c.Ac,d=c.Bc+4*o,p=c.zc,g=c.ya[c.aa+o];if(c.Qa.Bb?g.$b=N(h,c.Pa.jb[0])?2+N(h,c.Pa.jb[2]):N(h,c.Pa.jb[1]):g.$b=0,c.kc&&(g.Ad=N(h,c.Bd)),g.Za=!N(h,145)+0,g.Za){var m=g.Ob,v=0;for(c=0;4>c;++c){var y,_=p[0+c];for(y=0;4>y;++y){_=lr[f[d+y]][_];for(var b=or[N(h,_[0])];0<b;)b=or[2*b+N(h,_[b])];_=-b,f[d+y]=_}i(m,v,f,d,4),v+=4,p[0+c]=_}}else _=N(h,156)?N(h,128)?1:3:N(h,163)?2:0,g.Ob[0]=_,r(f,d,_,4),r(p,0,_,4);g.Dd=N(h,142)?N(h,114)?N(h,183)?1:3:2:0}if(u.m.Ka)return Xt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(u=s,h=(l=t).rb[l.sb-1],f=l.rb[l.sb+l.ja],o=l.ya[l.aa+l.ja],d=l.kc?o.Ad:0)h.la=f.la=0,o.Za||(h.Na=f.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var x,w;if(h=f,f=u,d=l.Pa.Xc,p=l.ya[l.aa+l.ja],g=l.pb[p.$b],c=p.ad,m=0,v=l.rb[l.sb-1],_=y=0,r(c,m,0,384),p.Za)var S=0,A=d[3];else{b=a(16);var L=h.Na+v.Na;if(L=ir(f,d[1],L,g.Eb,0,b,0),h.Na=v.Na=(0<L)+0,1<L)ai(b,0,c,m);else{var C=b[0]+3>>3;for(b=0;256>b;b+=16)c[m+b]=C}S=1,A=d[0]}var P=15&h.la,k=15&v.la;for(b=0;4>b;++b){var I=1&k;for(C=w=0;4>C;++C)P=P>>1|(I=(L=ir(f,A,L=I+(1&P),g.Sc,S,c,m))>S)<<7,w=w<<2|(3<L?3:1<L?2:0!=c[m+0]),m+=16;P>>=4,k=k>>1|I<<7,y=(y<<8|w)>>>0}for(A=P,S=k>>4,x=0;4>x;x+=2){for(w=0,P=h.la>>4+x,k=v.la>>4+x,b=0;2>b;++b){for(I=1&k,C=0;2>C;++C)L=I+(1&P),P=P>>1|(I=0<(L=ir(f,d[2],L,g.Qc,0,c,m)))<<3,w=w<<2|(3<L?3:1<L?2:0!=c[m+0]),m+=16;P>>=2,k=k>>1|I<<5}_|=w<<4*x,A|=P<<4<<x,S|=(240&k)<<x}h.la=A,v.la=S,p.Hc=y,p.Gc=_,p.ia=43690&_?0:g.ia,d=!(y|_)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[o.$b][o.Za],l.wa[l.Y+l.ja].La|=!d),u.Ka)return Xt(t,7,"Premature end-of-file encountered.")}if(Zt(t),l=n,u=1,o=(s=t).D,h=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)t:{if(o.M=s.M,o.uc=h,On(s,o),u=1,o=(w=s.D).Nb,h=(_=zr[s.L])*s.R,f=_/2*s.B,b=16*o*s.R,C=8*o*s.B,d=s.sa,p=s.ta-h+b,g=s.qa,c=s.ra-f+C,m=s.Ha,v=s.Ia-f+C,k=0==(P=w.M),y=P>=s.Va-1,2==s.Aa&&On(s,w),w.uc)for(I=(L=s).D.M,e(L.D.uc),w=L.yb;w<L.Hb;++w){S=w,A=I;var M=(T=(q=L).D).Nb;x=q.R;var T=T.wa[T.Y+S],D=q.sa,O=q.ta+16*M*x+16*S,F=T.dd,R=T.tc;if(0!=R)if(e(3<=R),1==q.L)0<S&&bi(D,O,x,R+4),T.La&&wi(D,O,x,R),0<A&&_i(D,O,x,R+4),T.La&&xi(D,O,x,R);else{var E=q.B,B=q.qa,z=q.ra+8*M*E+8*S,j=q.Ha,q=q.Ia+8*M*E+8*S;M=T.ld,0<S&&(fi(D,O,x,R+4,F,M),pi(B,z,j,q,E,R+4,F,M)),T.La&&(mi(D,O,x,R,F,M),yi(B,z,j,q,E,R,F,M)),0<A&&(ci(D,O,x,R+4,F,M),di(B,z,j,q,E,R+4,F,M)),T.La&&(gi(D,O,x,R,F,M),vi(B,z,j,q,E,R,F,M))}}if(s.ia&&alert("todo:DitherRow"),null!=l.put){if(w=16*P,P=16*(P+1),k?(l.y=s.sa,l.O=s.ta+b,l.f=s.qa,l.N=s.ra+C,l.ea=s.Ha,l.W=s.Ia+C):(w-=_,l.y=d,l.O=p,l.f=g,l.N=c,l.ea=m,l.W=v),y||(P-=_),P>l.o&&(P=l.o),l.F=null,l.J=null,null!=s.Fa&&0<s.Fa.length&&w<P&&(l.J=fn(s,l,w,P-w),l.F=s.mb,null==l.F&&0==l.F.length)){u=Xt(s,3,"Could not decode alpha data.");break t}w<l.j&&(_=l.j-w,w=l.j,e(!(1&_)),l.O+=s.R*_,l.N+=s.B*(_>>1),l.W+=s.B*(_>>1),null!=l.F&&(l.J+=l.width*_)),w<P&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=w-l.j,l.U=l.va-l.v,l.T=P-w,u=l.put(l))}o+1!=s.Ic||y||(i(s.sa,s.ta-h,d,p+16*s.R,h),i(s.qa,s.ra-f,g,c+8*s.B,f),i(s.Ha,s.Ia-f,m,v+8*s.B,f))}if(!u)return Xt(t,6,"Output aborted.")}return 1}(t,n)),null!=n.bc&&n.bc(n),s&=1}return s?(t.cb=0,s):0}function te(t,e,n,i,r){r=t[e+n+32*i]+(r>>3),t[e+n+32*i]=-256&r?0>r?0:255:r}function ee(t,e,n,i,r,a){te(t,e,0,n,i+r),te(t,e,1,n,i+a),te(t,e,2,n,i-a),te(t,e,3,n,i-r)}function ne(t){return(20091*t>>16)+t}function ie(t,e,n,i){var r,o=0,s=a(16);for(r=0;4>r;++r){var l=t[e+0]+t[e+8],u=t[e+0]-t[e+8],h=(35468*t[e+4]>>16)-ne(t[e+12]),c=ne(t[e+4])+(35468*t[e+12]>>16);s[o+0]=l+c,s[o+1]=u+h,s[o+2]=u-h,s[o+3]=l-c,o+=4,e++}for(r=o=0;4>r;++r)l=(t=s[o+0]+4)+s[o+8],u=t-s[o+8],h=(35468*s[o+4]>>16)-ne(s[o+12]),te(n,i,0,0,l+(c=ne(s[o+4])+(35468*s[o+12]>>16))),te(n,i,1,0,u+h),te(n,i,2,0,u-h),te(n,i,3,0,l-c),o++,i+=32}function re(t,e,n,i){var r=t[e+0]+4,a=35468*t[e+4]>>16,o=ne(t[e+4]),s=35468*t[e+1]>>16;ee(n,i,0,r+o,t=ne(t[e+1]),s),ee(n,i,1,r+a,t,s),ee(n,i,2,r-a,t,s),ee(n,i,3,r-o,t,s)}function ae(t,e,n,i,r){ie(t,e,n,i),r&&ie(t,e+16,n,i+4)}function oe(t,e,n,i){oi(t,e+0,n,i,1),oi(t,e+32,n,i+128,1)}function se(t,e,n,i){var r;for(t=t[e+0]+4,r=0;4>r;++r)for(e=0;4>e;++e)te(n,i,e,r,t)}function le(t,e,n,i){t[e+0]&&ui(t,e+0,n,i),t[e+16]&&ui(t,e+16,n,i+4),t[e+32]&&ui(t,e+32,n,i+128),t[e+48]&&ui(t,e+48,n,i+128+4)}function ue(t,e,n,i){var r,o=a(16);for(r=0;4>r;++r){var s=t[e+0+r]+t[e+12+r],l=t[e+4+r]+t[e+8+r],u=t[e+4+r]-t[e+8+r],h=t[e+0+r]-t[e+12+r];o[0+r]=s+l,o[8+r]=s-l,o[4+r]=h+u,o[12+r]=h-u}for(r=0;4>r;++r)s=(t=o[0+4*r]+3)+o[3+4*r],l=o[1+4*r]+o[2+4*r],u=o[1+4*r]-o[2+4*r],h=t-o[3+4*r],n[i+0]=s+l>>3,n[i+16]=h+u>>3,n[i+32]=s-l>>3,n[i+48]=h-u>>3,i+=64}function he(t,e,n){var i,r=e-32,a=Oi,o=255-t[r-1];for(i=0;i<n;++i){var s,l=a,u=o+t[e-1];for(s=0;s<n;++s)t[e+s]=l[u+t[r+s]];e+=32}}function ce(t,e){he(t,e,4)}function fe(t,e){he(t,e,8)}function de(t,e){he(t,e,16)}function pe(t,e){var n;for(n=0;16>n;++n)i(t,e+32*n,t,e-32,16)}function ge(t,e){var n;for(n=16;0<n;--n)r(t,e,t[e-1],16),e+=32}function me(t,e,n){var i;for(i=0;16>i;++i)r(e,n+32*i,t,16)}function ve(t,e){var n,i=16;for(n=0;16>n;++n)i+=t[e-1+32*n]+t[e+n-32];me(i>>5,t,e)}function ye(t,e){var n,i=8;for(n=0;16>n;++n)i+=t[e-1+32*n];me(i>>4,t,e)}function _e(t,e){var n,i=8;for(n=0;16>n;++n)i+=t[e+n-32];me(i>>4,t,e)}function be(t,e){me(128,t,e)}function xe(t,e,n){return t+2*e+n+2>>2}function we(t,e){var n,r=e-32;for(r=new Uint8Array([xe(t[r-1],t[r+0],t[r+1]),xe(t[r+0],t[r+1],t[r+2]),xe(t[r+1],t[r+2],t[r+3]),xe(t[r+2],t[r+3],t[r+4])]),n=0;4>n;++n)i(t,e+32*n,r,0,r.length)}function Se(t,e){var n=t[e-1],i=t[e-1+32],r=t[e-1+64],a=t[e-1+96];k(t,e+0,16843009*xe(t[e-1-32],n,i)),k(t,e+32,16843009*xe(n,i,r)),k(t,e+64,16843009*xe(i,r,a)),k(t,e+96,16843009*xe(r,a,a))}function Ae(t,e){var n,i=4;for(n=0;4>n;++n)i+=t[e+n-32]+t[e-1+32*n];for(i>>=3,n=0;4>n;++n)r(t,e+32*n,i,4)}function Le(t,e){var n=t[e-1+0],i=t[e-1+32],r=t[e-1+64],a=t[e-1-32],o=t[e+0-32],s=t[e+1-32],l=t[e+2-32],u=t[e+3-32];t[e+0+96]=xe(i,r,t[e-1+96]),t[e+1+96]=t[e+0+64]=xe(n,i,r),t[e+2+96]=t[e+1+64]=t[e+0+32]=xe(a,n,i),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=xe(o,a,n),t[e+3+64]=t[e+2+32]=t[e+1+0]=xe(s,o,a),t[e+3+32]=t[e+2+0]=xe(l,s,o),t[e+3+0]=xe(u,l,s)}function Ce(t,e){var n=t[e+1-32],i=t[e+2-32],r=t[e+3-32],a=t[e+4-32],o=t[e+5-32],s=t[e+6-32],l=t[e+7-32];t[e+0+0]=xe(t[e+0-32],n,i),t[e+1+0]=t[e+0+32]=xe(n,i,r),t[e+2+0]=t[e+1+32]=t[e+0+64]=xe(i,r,a),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=xe(r,a,o),t[e+3+32]=t[e+2+64]=t[e+1+96]=xe(a,o,s),t[e+3+64]=t[e+2+96]=xe(o,s,l),t[e+3+96]=xe(s,l,l)}function Pe(t,e){var n=t[e-1+0],i=t[e-1+32],r=t[e-1+64],a=t[e-1-32],o=t[e+0-32],s=t[e+1-32],l=t[e+2-32],u=t[e+3-32];t[e+0+0]=t[e+1+64]=a+o+1>>1,t[e+1+0]=t[e+2+64]=o+s+1>>1,t[e+2+0]=t[e+3+64]=s+l+1>>1,t[e+3+0]=l+u+1>>1,t[e+0+96]=xe(r,i,n),t[e+0+64]=xe(i,n,a),t[e+0+32]=t[e+1+96]=xe(n,a,o),t[e+1+32]=t[e+2+96]=xe(a,o,s),t[e+2+32]=t[e+3+96]=xe(o,s,l),t[e+3+32]=xe(s,l,u)}function Ne(t,e){var n=t[e+0-32],i=t[e+1-32],r=t[e+2-32],a=t[e+3-32],o=t[e+4-32],s=t[e+5-32],l=t[e+6-32],u=t[e+7-32];t[e+0+0]=n+i+1>>1,t[e+1+0]=t[e+0+64]=i+r+1>>1,t[e+2+0]=t[e+1+64]=r+a+1>>1,t[e+3+0]=t[e+2+64]=a+o+1>>1,t[e+0+32]=xe(n,i,r),t[e+1+32]=t[e+0+96]=xe(i,r,a),t[e+2+32]=t[e+1+96]=xe(r,a,o),t[e+3+32]=t[e+2+96]=xe(a,o,s),t[e+3+64]=xe(o,s,l),t[e+3+96]=xe(s,l,u)}function ke(t,e){var n=t[e-1+0],i=t[e-1+32],r=t[e-1+64],a=t[e-1+96];t[e+0+0]=n+i+1>>1,t[e+2+0]=t[e+0+32]=i+r+1>>1,t[e+2+32]=t[e+0+64]=r+a+1>>1,t[e+1+0]=xe(n,i,r),t[e+3+0]=t[e+1+32]=xe(i,r,a),t[e+3+32]=t[e+1+64]=xe(r,a,a),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=a}function Ie(t,e){var n=t[e-1+0],i=t[e-1+32],r=t[e-1+64],a=t[e-1+96],o=t[e-1-32],s=t[e+0-32],l=t[e+1-32],u=t[e+2-32];t[e+0+0]=t[e+2+32]=n+o+1>>1,t[e+0+32]=t[e+2+64]=i+n+1>>1,t[e+0+64]=t[e+2+96]=r+i+1>>1,t[e+0+96]=a+r+1>>1,t[e+3+0]=xe(s,l,u),t[e+2+0]=xe(o,s,l),t[e+1+0]=t[e+3+32]=xe(n,o,s),t[e+1+32]=t[e+3+64]=xe(i,n,o),t[e+1+64]=t[e+3+96]=xe(r,i,n),t[e+1+96]=xe(a,r,i)}function Me(t,e){var n;for(n=0;8>n;++n)i(t,e+32*n,t,e-32,8)}function Te(t,e){var n;for(n=0;8>n;++n)r(t,e,t[e-1],8),e+=32}function De(t,e,n){var i;for(i=0;8>i;++i)r(e,n+32*i,t,8)}function Oe(t,e){var n,i=8;for(n=0;8>n;++n)i+=t[e+n-32]+t[e-1+32*n];De(i>>4,t,e)}function Fe(t,e){var n,i=4;for(n=0;8>n;++n)i+=t[e+n-32];De(i>>3,t,e)}function Re(t,e){var n,i=4;for(n=0;8>n;++n)i+=t[e-1+32*n];De(i>>3,t,e)}function Ee(t,e){De(128,t,e)}function Be(t,e,n){var i=t[e-n],r=t[e+0],a=3*(r-i)+Ti[1020+t[e-2*n]-t[e+n]],o=Di[112+(a+4>>3)];t[e-n]=Oi[255+i+Di[112+(a+3>>3)]],t[e+0]=Oi[255+r-o]}function ze(t,e,n,i){var r=t[e+0],a=t[e+n];return Fi[255+t[e-2*n]-t[e-n]]>i||Fi[255+a-r]>i}function je(t,e,n,i){return 4*Fi[255+t[e-n]-t[e+0]]+Fi[255+t[e-2*n]-t[e+n]]<=i}function qe(t,e,n,i,r){var a=t[e-3*n],o=t[e-2*n],s=t[e-n],l=t[e+0],u=t[e+n],h=t[e+2*n],c=t[e+3*n];return 4*Fi[255+s-l]+Fi[255+o-u]>i?0:Fi[255+t[e-4*n]-a]<=r&&Fi[255+a-o]<=r&&Fi[255+o-s]<=r&&Fi[255+c-h]<=r&&Fi[255+h-u]<=r&&Fi[255+u-l]<=r}function He(t,e,n,i){var r=2*i+1;for(i=0;16>i;++i)je(t,e+i,n,r)&&Be(t,e+i,n)}function We(t,e,n,i){var r=2*i+1;for(i=0;16>i;++i)je(t,e+i*n,1,r)&&Be(t,e+i*n,1)}function Ue(t,e,n,i){var r;for(r=3;0<r;--r)He(t,e+=4*n,n,i)}function Ve(t,e,n,i){var r;for(r=3;0<r;--r)We(t,e+=4,n,i)}function Ge(t,e,n,i,r,a,o,s){for(a=2*a+1;0<r--;){if(qe(t,e,n,a,o))if(ze(t,e,n,s))Be(t,e,n);else{var l=t,u=e,h=n,c=l[u-2*h],f=l[u-h],d=l[u+0],p=l[u+h],g=l[u+2*h],m=27*(y=Ti[1020+3*(d-f)+Ti[1020+c-p]])+63>>7,v=18*y+63>>7,y=9*y+63>>7;l[u-3*h]=Oi[255+l[u-3*h]+y],l[u-2*h]=Oi[255+c+v],l[u-h]=Oi[255+f+m],l[u+0]=Oi[255+d-m],l[u+h]=Oi[255+p-v],l[u+2*h]=Oi[255+g-y]}e+=i}}function Ye(t,e,n,i,r,a,o,s){for(a=2*a+1;0<r--;){if(qe(t,e,n,a,o))if(ze(t,e,n,s))Be(t,e,n);else{var l=t,u=e,h=n,c=l[u-h],f=l[u+0],d=l[u+h],p=Di[112+(4+(g=3*(f-c))>>3)],g=Di[112+(g+3>>3)],m=p+1>>1;l[u-2*h]=Oi[255+l[u-2*h]+m],l[u-h]=Oi[255+c+g],l[u+0]=Oi[255+f-p],l[u+h]=Oi[255+d-m]}e+=i}}function Xe(t,e,n,i,r,a){Ge(t,e,n,1,16,i,r,a)}function $e(t,e,n,i,r,a){Ge(t,e,1,n,16,i,r,a)}function Ke(t,e,n,i,r,a){var o;for(o=3;0<o;--o)Ye(t,e+=4*n,n,1,16,i,r,a)}function Je(t,e,n,i,r,a){var o;for(o=3;0<o;--o)Ye(t,e+=4,1,n,16,i,r,a)}function Ze(t,e,n,i,r,a,o,s){Ge(t,e,r,1,8,a,o,s),Ge(n,i,r,1,8,a,o,s)}function Qe(t,e,n,i,r,a,o,s){Ge(t,e,1,r,8,a,o,s),Ge(n,i,1,r,8,a,o,s)}function tn(t,e,n,i,r,a,o,s){Ye(t,e+4*r,r,1,8,a,o,s),Ye(n,i+4*r,r,1,8,a,o,s)}function en(t,e,n,i,r,a,o,s){Ye(t,e+4,1,r,8,a,o,s),Ye(n,i+4,1,r,8,a,o,s)}function nn(){this.ba=new ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new lt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function an(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function on(){this.ua=0,this.Wa=new F,this.vb=new F,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new c}function sn(){this.xb=this.a=0,this.l=new Gt,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new x,this.Pb=0,this.wd=new x,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new on,this.ab=0,this.gc=o(4,an),this.Oc=0}function ln(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Gt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function un(t,e,n,i,r,a,o){for(t=null==t?0:t[e+0],e=0;e<o;++e)r[a+e]=t+n[i+e]&255,t=r[a+e]}function hn(t,e,n,i,r,a,o){var s;if(null==t)un(null,null,n,i,r,a,o);else for(s=0;s<o;++s)r[a+s]=t[e+s]+n[i+s]&255}function cn(t,e,n,i,r,a,o){if(null==t)un(null,null,n,i,r,a,o);else{var s,l=t[e+0],u=l,h=l;for(s=0;s<o;++s)u=h+(l=t[e+s])-u,h=n[i+s]+(-256&u?0>u?0:255:u)&255,u=l,r[a+s]=h}}function fn(t,n,r,o){var s=n.width,l=n.o;if(e(null!=t&&null!=n),0>r||0>=o||r+o>l)return null;if(!t.Cc){if(null==t.ga){var u;if(t.ga=new ln,(u=null==t.ga)||(u=n.width*n.o,e(0==t.Gb.length),t.Gb=a(u),t.Uc=0,null==t.Gb?u=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,u=1),u=!u),!u){u=t.ga;var h=t.Fa,c=t.P,f=t.qc,d=t.mb,p=t.nb,g=c+1,m=f-1,y=u.l;if(e(null!=h&&null!=d&&null!=n),mr[0]=null,mr[1]=un,mr[2]=hn,mr[3]=cn,u.ca=d,u.tb=p,u.c=n.width,u.i=n.height,e(0<u.c&&0<u.i),1>=f)n=0;else if(u.$a=3&h[c+0],u.Z=h[c+0]>>2&3,u.Lc=h[c+0]>>4&3,c=h[c+0]>>6&3,0>u.$a||1<u.$a||4<=u.Z||1<u.Lc||c)n=0;else if(y.put=dt,y.ac=ft,y.bc=pt,y.ma=u,y.width=n.width,y.height=n.height,y.Da=n.Da,y.v=n.v,y.va=n.va,y.j=n.j,y.o=n.o,u.$a)t:{e(1==u.$a),n=Nt();e:for(;;){if(null==n){n=0;break t}if(e(null!=u),u.mc=n,n.c=u.c,n.i=u.i,n.l=u.l,n.l.ma=u,n.l.width=u.c,n.l.height=u.i,n.a=0,v(n.m,h,g,m),!kt(u.c,u.i,1,n,null))break e;if(1==n.ab&&3==n.gc[0].hc&&St(n.s)?(u.ic=1,h=n.c*n.i,n.Ta=null,n.Ua=0,n.V=a(h),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(u.ic=0,n=It(n,u.c)),!n)break e;n=1;break t}u.mc=null,n=0}else n=m>=u.c*u.i;u=!n}if(u)return null;1!=t.ga.Lc?t.Ga=0:o=l-r}e(null!=t.ga),e(r+o<=l);t:{if(n=(h=t.ga).c,l=h.l.o,0==h.$a){if(g=t.rc,m=t.Vc,y=t.Fa,c=t.P+1+r*n,f=t.mb,d=t.nb+r*n,e(c<=t.P+t.qc),0!=h.Z)for(e(null!=mr[h.Z]),u=0;u<o;++u)mr[h.Z](g,m,y,c,f,d,n),g=f,m=d,d+=n,c+=n;else for(u=0;u<o;++u)i(f,d,y,c,n),g=f,m=d,d+=n,c+=n;t.rc=g,t.Vc=m}else{if(e(null!=h.mc),n=r+o,e(null!=(u=h.mc)),e(n<=u.i),u.C>=n)n=1;else if(h.ic||vn(),h.ic){h=u.V,g=u.Ba,m=u.c;var _=u.i,b=(y=1,c=u.$/m,f=u.$%m,d=u.m,p=u.s,u.$),x=m*_,w=m*n,A=p.wc,C=b<w?bt(p,f,c):null;e(b<=x),e(n<=_),e(St(p));e:for(;;){for(;!d.h&&b<w;){if(f&A||(C=bt(p,f,c)),e(null!=C),L(d),256>(_=yt(C.G[0],C.H[0],d)))h[g+b]=_,++b,++f>=m&&(f=0,++c<=n&&!(c%16)&&Lt(u,c));else{if(!(280>_)){y=0;break e}_=mt(_-256,d);var P,N=yt(C.G[4],C.H[4],d);if(L(d),!(b>=(N=vt(m,N=mt(N,d)))&&x-b>=_)){y=0;break e}for(P=0;P<_;++P)h[g+b+P]=h[g+b+P-N];for(b+=_,f+=_;f>=m;)f-=m,++c<=n&&!(c%16)&&Lt(u,c);b<w&&f&A&&(C=bt(p,f,c))}e(d.h==S(d))}Lt(u,c>n?n:c);break e}!y||d.h&&b<x?(y=0,u.a=d.h?5:3):u.$=b,n=y}else n=Ct(u,u.V,u.Ba,u.c,u.i,n,Mt);if(!n){o=0;break t}}r+o>=l&&(t.Cc=1),o=1}if(!o)return null;if(t.Cc&&(null!=(o=t.ga)&&(o.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+r*s}function dn(t,e,n,i,r,a){for(;0<r--;){var o,s=t,l=e+(n?1:0),u=t,h=e+(n?0:3);for(o=0;o<i;++o){var c=u[h+4*o];255!=c&&(c*=32897,s[l+4*o+0]=s[l+4*o+0]*c>>23,s[l+4*o+1]=s[l+4*o+1]*c>>23,s[l+4*o+2]=s[l+4*o+2]*c>>23)}e+=a}}function pn(t,e,n,i,r){for(;0<i--;){var a;for(a=0;a<n;++a){var o=t[e+2*a+0],s=15&(u=t[e+2*a+1]),l=4369*s,u=(240&u|u>>4)*l>>16;t[e+2*a+0]=(240&o|o>>4)*l>>16&240|(15&o|o<<4)*l>>16>>4&15,t[e+2*a+1]=240&u|s}e+=r}}function gn(t,e,n,i,r,a,o,s){var l,u,h=255;for(u=0;u<r;++u){for(l=0;l<i;++l){var c=t[e+l];a[o+4*l]=c,h&=c}e+=n,o+=s}return 255!=h}function mn(t,e,n,i,r){var a;for(a=0;a<r;++a)n[i+a]=t[e+a]>>8}function vn(){Si=dn,Ai=pn,Li=gn,Ci=mn}function yn(n,i,r){t[n]=function(t,n,a,o,s,l,u,h,c,f,d,p,g,m,v,y,_){var b,x=_-1>>1,w=s[l+0]|u[h+0]<<16,S=c[f+0]|d[p+0]<<16;e(null!=t);var A=3*w+S+131074>>2;for(i(t[n+0],255&A,A>>16,g,m),null!=a&&(A=3*S+w+131074>>2,i(a[o+0],255&A,A>>16,v,y)),b=1;b<=x;++b){var L=s[l+b]|u[h+b]<<16,C=c[f+b]|d[p+b]<<16,P=w+L+S+C+524296,N=P+2*(L+S)>>3;A=N+w>>1,w=(P=P+2*(w+C)>>3)+L>>1,i(t[n+2*b-1],255&A,A>>16,g,m+(2*b-1)*r),i(t[n+2*b-0],255&w,w>>16,g,m+(2*b-0)*r),null!=a&&(A=P+S>>1,w=N+C>>1,i(a[o+2*b-1],255&A,A>>16,v,y+(2*b-1)*r),i(a[o+2*b+0],255&w,w>>16,v,y+(2*b+0)*r)),w=L,S=C}1&_||(A=3*w+S+131074>>2,i(t[n+_-1],255&A,A>>16,g,m+(_-1)*r),null!=a&&(A=3*S+w+131074>>2,i(a[o+_-1],255&A,A>>16,v,y+(_-1)*r)))}}function _n(){vr[Ri]=yr,vr[Ei]=br,vr[Bi]=_r,vr[zi]=xr,vr[ji]=wr,vr[qi]=Sr,vr[Hi]=Ar,vr[Wi]=br,vr[Ui]=xr,vr[Vi]=wr,vr[Gi]=Sr}function bn(t){return t&~Ir?0>t?0:255:t>>kr}function xn(t,e){return bn((19077*t>>8)+(26149*e>>8)-14234)}function wn(t,e,n){return bn((19077*t>>8)-(6419*e>>8)-(13320*n>>8)+8708)}function Sn(t,e){return bn((19077*t>>8)+(33050*e>>8)-17685)}function An(t,e,n,i,r){i[r+0]=xn(t,n),i[r+1]=wn(t,e,n),i[r+2]=Sn(t,e)}function Ln(t,e,n,i,r){i[r+0]=Sn(t,e),i[r+1]=wn(t,e,n),i[r+2]=xn(t,n)}function Cn(t,e,n,i,r){var a=wn(t,e,n);e=a<<3&224|Sn(t,e)>>3,i[r+0]=248&xn(t,n)|a>>5,i[r+1]=e}function Pn(t,e,n,i,r){var a=240&Sn(t,e)|15;i[r+0]=240&xn(t,n)|wn(t,e,n)>>4,i[r+1]=a}function Nn(t,e,n,i,r){i[r+0]=255,An(t,e,n,i,r+1)}function kn(t,e,n,i,r){Ln(t,e,n,i,r),i[r+3]=255}function In(t,e,n,i,r){An(t,e,n,i,r),i[r+3]=255}function Vt(t,e){return 0>t?0:t>e?e:t}function Mn(e,n,i){t[e]=function(t,e,r,a,o,s,l,u,h){for(var c=u+(-2&h)*i;u!=c;)n(t[e+0],r[a+0],o[s+0],l,u),n(t[e+1],r[a+0],o[s+0],l,u+i),e+=2,++a,++s,u+=2*i;1&h&&n(t[e+0],r[a+0],o[s+0],l,u)}}function Tn(t,e,n){return 0==n?0==t?0==e?6:5:0==e?4:0:n}function Dn(t,e,n,i,r){switch(t>>>30){case 3:oi(e,n,i,r,0);break;case 2:si(e,n,i,r);break;case 1:ui(e,n,i,r)}}function On(t,e){var n,a,o=e.M,s=e.Nb,l=t.oc,u=t.pc+40,h=t.oc,c=t.pc+584,f=t.oc,d=t.pc+600;for(n=0;16>n;++n)l[u+32*n-1]=129;for(n=0;8>n;++n)h[c+32*n-1]=129,f[d+32*n-1]=129;for(0<o?l[u-1-32]=h[c-1-32]=f[d-1-32]=129:(r(l,u-32-1,127,21),r(h,c-32-1,127,9),r(f,d-32-1,127,9)),a=0;a<t.za;++a){var p=e.ya[e.aa+a];if(0<a){for(n=-1;16>n;++n)i(l,u+32*n-4,l,u+32*n+12,4);for(n=-1;8>n;++n)i(h,c+32*n-4,h,c+32*n+4,4),i(f,d+32*n-4,f,d+32*n+4,4)}var g=t.Gd,m=t.Hd+a,v=p.ad,y=p.Hc;if(0<o&&(i(l,u-32,g[m].y,0,16),i(h,c-32,g[m].f,0,8),i(f,d-32,g[m].ea,0,8)),p.Za){var _=l,b=u-32+16;for(0<o&&(a>=t.za-1?r(_,b,g[m].y[15],4):i(_,b,g[m+1].y,0,4)),n=0;4>n;n++)_[b+128+n]=_[b+256+n]=_[b+384+n]=_[b+0+n];for(n=0;16>n;++n,y<<=2)_=l,b=u+Br[n],fr[p.Ob[n]](_,b),Dn(y,v,16*+n,_,b)}else if(_=Tn(a,o,p.Ob[0]),cr[_](l,u),0!=y)for(n=0;16>n;++n,y<<=2)Dn(y,v,16*+n,l,u+Br[n]);for(n=p.Gc,_=Tn(a,o,p.Dd),dr[_](h,c),dr[_](f,d),y=v,_=h,b=c,255&(p=n|0)&&(170&p?li(y,256,_,b):hi(y,256,_,b)),p=f,y=d,255&(n>>=8)&&(170&n?li(v,320,p,y):hi(v,320,p,y)),o<t.Ub-1&&(i(g[m].y,0,l,u+480,16),i(g[m].f,0,h,c+224,8),i(g[m].ea,0,f,d+224,8)),n=8*s*t.B,g=t.sa,m=t.ta+16*a+16*s*t.R,v=t.qa,p=t.ra+8*a+n,y=t.Ha,_=t.Ia+8*a+n,n=0;16>n;++n)i(g,m+n*t.R,l,u+32*n,16);for(n=0;8>n;++n)i(v,p+n*t.B,h,c+32*n,8),i(y,_+n*t.B,f,d+32*n,8)}}function Fn(t,i,r,a,o,s,l,u,h){var c=[0],f=[0],d=0,p=null!=h?h.kd:0,g=null!=h?h:new rn;if(null==t||12>r)return 7;g.data=t,g.w=i,g.ha=r,i=[i],r=[r],g.gb=[g.gb];t:{var m=i,y=r,_=g.gb;if(e(null!=t),e(null!=y),e(null!=_),_[0]=0,12<=y[0]&&!n(t,m[0],"RIFF")){if(n(t,m[0]+8,"WEBP")){_=3;break t}var b=T(t,m[0]+4);if(12>b||4294967286<b){_=3;break t}if(p&&b>y[0]-8){_=7;break t}_[0]=b,m[0]+=12,y[0]-=12}_=0}if(0!=_)return _;for(b=0<g.gb[0],r=r[0];;){t:{var w=t;y=i,_=r;var S=c,A=f,L=m=[0];if((N=d=[d])[0]=0,8>_[0])_=7;else{if(!n(w,y[0],"VP8X")){if(10!=T(w,y[0]+4)){_=3;break t}if(18>_[0]){_=7;break t}var C=T(w,y[0]+8),P=1+M(w,y[0]+12);if(2147483648<=P*(w=1+M(w,y[0]+15))){_=3;break t}null!=L&&(L[0]=C),null!=S&&(S[0]=P),null!=A&&(A[0]=w),y[0]+=18,_[0]-=18,N[0]=1}_=0}}if(d=d[0],m=m[0],0!=_)return _;if(y=!!(2&m),!b&&d)return 3;if(null!=s&&(s[0]=!!(16&m)),null!=l&&(l[0]=y),null!=u&&(u[0]=0),l=c[0],m=f[0],d&&y&&null==h){_=0;break}if(4>r){_=7;break}if(b&&d||!b&&!d&&!n(t,i[0],"ALPH")){r=[r],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];t:{C=t,_=i,b=r;var N=g.gb;S=g.na,A=g.P,L=g.Sa,P=22,e(null!=C),e(null!=b),w=_[0];var k=b[0];for(e(null!=S),e(null!=L),S[0]=null,A[0]=null,L[0]=0;;){if(_[0]=w,b[0]=k,8>k){_=7;break t}var I=T(C,w+4);if(4294967286<I){_=3;break t}var D=8+I+1&-2;if(P+=D,0<N&&P>N){_=3;break t}if(!n(C,w,"VP8 ")||!n(C,w,"VP8L")){_=0;break t}if(k[0]<D){_=7;break t}n(C,w,"ALPH")||(S[0]=C,A[0]=w+8,L[0]=I),w+=D,k-=D}}if(r=r[0],g.na=g.na[0],g.P=g.P[0],g.Sa=g.Sa[0],0!=_)break}r=[r],g.Ja=[g.Ja],g.xa=[g.xa];t:if(N=t,_=i,b=r,S=g.gb[0],A=g.Ja,L=g.xa,C=_[0],w=!n(N,C,"VP8 "),P=!n(N,C,"VP8L"),e(null!=N),e(null!=b),e(null!=A),e(null!=L),8>b[0])_=7;else{if(w||P){if(N=T(N,C+4),12<=S&&N>S-12){_=3;break t}if(p&&N>b[0]-8){_=7;break t}A[0]=N,_[0]+=8,b[0]-=8,L[0]=P}else L[0]=5<=b[0]&&47==N[C+0]&&!(N[C+4]>>5),A[0]=b[0];_=0}if(r=r[0],g.Ja=g.Ja[0],g.xa=g.xa[0],i=i[0],0!=_)break;if(4294967286<g.Ja)return 3;if(null==u||y||(u[0]=g.xa?2:1),l=[l],m=[m],g.xa){if(5>r){_=7;break}u=l,p=m,y=s,null==t||5>r?t=0:5<=r&&47==t[i+0]&&!(t[i+4]>>5)?(b=[0],N=[0],S=[0],v(A=new x,t,i,r),gt(A,b,N,S)?(null!=u&&(u[0]=b[0]),null!=p&&(p[0]=N[0]),null!=y&&(y[0]=S[0]),t=1):t=0):t=0}else{if(10>r){_=7;break}u=m,null==t||10>r||!$t(t,i+3,r-3)?t=0:(p=t[i+0]|t[i+1]<<8|t[i+2]<<16,y=16383&(t[i+7]<<8|t[i+6]),t=16383&(t[i+9]<<8|t[i+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=g.Ja||!y||!t?t=0:(l&&(l[0]=y),u&&(u[0]=t),t=1))}if(!t)return 3;if(l=l[0],m=m[0],d&&(c[0]!=l||f[0]!=m))return 3;null!=h&&(h[0]=g,h.offset=i-h.w,e(4294967286>i-h.w),e(h.offset==h.ha-r));break}return 0==_||7==_&&d&&null==h?(null!=s&&(s[0]|=null!=g.na&&0<g.na.length),null!=a&&(a[0]=l),null!=o&&(o[0]=m),0):_}function Rn(t,e,n){var i=e.width,r=e.height,a=0,o=0,s=i,l=r;if(e.Da=null!=t&&0<t.Da,e.Da&&(s=t.cd,l=t.bd,a=t.v,o=t.j,11>n||(a&=-2,o&=-2),0>a||0>o||0>=s||0>=l||a+s>i||o+l>r))return 0;if(e.v=a,e.j=o,e.va=a+s,e.o=o+l,e.U=s,e.T=l,e.da=null!=t&&0<t.da,e.da){if(!R(s,l,n=[t.ib],a=[t.hb]))return 0;e.ib=n[0],e.hb=a[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*i/4&&e.hb<3*r/4,e.Kb=0),1}function En(t){if(null==t)return 2;if(11>t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function Bn(t,e,n,i){if(null==i||0>=t||0>=e)return 2;if(null!=n){if(n.Da){var r=n.cd,o=n.bd,s=-2&n.v,l=-2&n.j;if(0>s||0>l||0>=r||0>=o||s+r>t||l+o>e)return 2;t=r,e=o}if(n.da){if(!R(t,e,r=[n.ib],o=[n.hb]))return 2;t=r[0],e=o[0]}}i.width=t,i.height=e;t:{var u=i.width,h=i.height;if(t=i.S,0>=u||0>=h||!(t>=Ri&&13>t))t=2;else{if(0>=i.Rd&&null==i.sd){s=o=r=e=0;var c=(l=u*Hr[t])*h;if(11>t||(o=(h+1)/2*(e=(u+1)/2),12==t&&(s=(r=u)*h)),null==(h=a(c+2*o+s))){t=1;break t}i.sd=h,11>t?((u=i.f.RGBA).eb=h,u.fb=0,u.A=l,u.size=c):((u=i.f.kb).y=h,u.O=0,u.fa=l,u.Fd=c,u.f=h,u.N=0+c,u.Ab=e,u.Cd=o,u.ea=h,u.W=0+c+o,u.Db=e,u.Ed=o,12==t&&(u.F=h,u.J=0+c+2*o),u.Tc=s,u.lb=r)}if(e=1,r=i.S,o=i.width,s=i.height,r>=Ri&&13>r)if(11>r)t=i.f.RGBA,e&=(l=Math.abs(t.A))*(s-1)+o<=t.size,e&=l>=o*Hr[r],e&=null!=t.eb;else{t=i.f.kb,l=(o+1)/2,c=(s+1)/2,u=Math.abs(t.fa),h=Math.abs(t.Ab);var f=Math.abs(t.Db),d=Math.abs(t.lb),p=d*(s-1)+o;e&=u*(s-1)+o<=t.Fd,e&=h*(c-1)+l<=t.Cd,e=(e&=f*(c-1)+l<=t.Ed)&u>=o&h>=l&f>=l,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==r&&(e&=d>=o,e&=p<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=n&&n.fd&&(t=En(i)),t}var zn=64,jn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],qn=24,Hn=32,Wn=8,Un=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];z("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,n){return e[n+0]},t.Predictor3=function(t,e,n){return e[n+1]},t.Predictor4=function(t,e,n){return e[n-1]},t.Predictor5=function(t,e,n){return q(q(t,e[n+1]),e[n+0])},t.Predictor6=function(t,e,n){return q(t,e[n-1])},t.Predictor7=function(t,e,n){return q(t,e[n+0])},t.Predictor8=function(t,e,n){return q(e[n-1],e[n+0])},t.Predictor9=function(t,e,n){return q(e[n+0],e[n+1])},t.Predictor10=function(t,e,n){return q(q(t,e[n-1]),q(e[n+0],e[n+1]))},t.Predictor11=function(t,e,n){var i=e[n+0];return 0>=U(i>>24&255,t>>24&255,(e=e[n-1])>>24&255)+U(i>>16&255,t>>16&255,e>>16&255)+U(i>>8&255,t>>8&255,e>>8&255)+U(255&i,255&t,255&e)?i:t},t.Predictor12=function(t,e,n){var i=e[n+0];return(H((t>>24&255)+(i>>24&255)-((e=e[n-1])>>24&255))<<24|H((t>>16&255)+(i>>16&255)-(e>>16&255))<<16|H((t>>8&255)+(i>>8&255)-(e>>8&255))<<8|H((255&t)+(255&i)-(255&e)))>>>0},t.Predictor13=function(t,e,n){var i=e[n-1];return(W((t=q(t,e[n+0]))>>24&255,i>>24&255)<<24|W(t>>16&255,i>>16&255)<<16|W(t>>8&255,i>>8&255)<<8|W(255&t,255&i))>>>0};var Vn=t.PredictorAdd0;t.PredictorAdd1=V,z("Predictor2","PredictorAdd2"),z("Predictor3","PredictorAdd3"),z("Predictor4","PredictorAdd4"),z("Predictor5","PredictorAdd5"),z("Predictor6","PredictorAdd6"),z("Predictor7","PredictorAdd7"),z("Predictor8","PredictorAdd8"),z("Predictor9","PredictorAdd9"),z("Predictor10","PredictorAdd10"),z("Predictor11","PredictorAdd11"),z("Predictor12","PredictorAdd12"),z("Predictor13","PredictorAdd13");var Gn=t.PredictorAdd2;$("ColorIndexInverseTransform","MapARGB","32b",(function(t){return t>>8&255}),(function(t){return t})),$("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(t){return t}),(function(t){return t>>8&255}));var Yn,Xn=t.ColorIndexInverseTransform,$n=t.MapARGB,Kn=t.VP8LColorIndexInverseTransformAlpha,Jn=t.MapAlpha,Zn=t.VP8LPredictorsAdd=[];Zn.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var Qn,ti,ei,ni,ii,ri,ai,oi,si,li,ui,hi,ci,fi,di,pi,gi,mi,vi,yi,_i,bi,xi,wi,Si,Ai,Li,Ci,Pi=a(511),Ni=a(2041),ki=a(225),Ii=a(767),Mi=0,Ti=Ni,Di=ki,Oi=Ii,Fi=Pi,Ri=0,Ei=1,Bi=2,zi=3,ji=4,qi=5,Hi=6,Wi=7,Ui=8,Vi=9,Gi=10,Yi=[2,3,7],Xi=[3,3,11],$i=[280,256,256,256,40],Ki=[0,1,1,1,0],Ji=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Zi=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Qi=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],tr=8,er=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],nr=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ir=null,rr=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],ar=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],or=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],sr=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],lr=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ur=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],hr=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],cr=[],fr=[],dr=[],pr=1,gr=2,mr=[],vr=[];yn("UpsampleRgbLinePair",An,3),yn("UpsampleBgrLinePair",Ln,3),yn("UpsampleRgbaLinePair",In,4),yn("UpsampleBgraLinePair",kn,4),yn("UpsampleArgbLinePair",Nn,4),yn("UpsampleRgba4444LinePair",Pn,2),yn("UpsampleRgb565LinePair",Cn,2);var yr=t.UpsampleRgbLinePair,_r=t.UpsampleBgrLinePair,br=t.UpsampleRgbaLinePair,xr=t.UpsampleBgraLinePair,wr=t.UpsampleArgbLinePair,Sr=t.UpsampleRgba4444LinePair,Ar=t.UpsampleRgb565LinePair,Lr=16,Cr=1<<Lr-1,Pr=-227,Nr=482,kr=6,Ir=(256<<kr)-1,Mr=0,Tr=a(256),Dr=a(256),Or=a(256),Fr=a(256),Rr=a(Nr-Pr),Er=a(Nr-Pr);Mn("YuvToRgbRow",An,3),Mn("YuvToBgrRow",Ln,3),Mn("YuvToRgbaRow",In,4),Mn("YuvToBgraRow",kn,4),Mn("YuvToArgbRow",Nn,4),Mn("YuvToRgba4444Row",Pn,2),Mn("YuvToRgb565Row",Cn,2);var Br=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],zr=[0,2,8],jr=[8,7,6,4,4,2,2,2,1,1,1,1],qr=1;this.WebPDecodeRGBA=function(t,n,i,r,a){var o=Ei,s=new nn,l=new ot;s.ba=l,l.S=o,l.width=[l.width],l.height=[l.height];var u=l.width,h=l.height,c=new st;if(null==c||null==t)var f=2;else e(null!=c),f=Fn(t,n,i,c.width,c.height,c.Pd,c.Qd,c.format,null);if(0!=f?u=0:(null!=u&&(u[0]=c.width[0]),null!=h&&(h[0]=c.height[0]),u=1),u){l.width=l.width[0],l.height=l.height[0],null!=r&&(r[0]=l.width),null!=a&&(a[0]=l.height);t:{if(r=new Gt,(a=new rn).data=t,a.w=n,a.ha=i,a.kd=1,n=[0],e(null!=a),(0==(t=Fn(a.data,a.w,a.ha,null,null,null,n,null,a))||7==t)&&n[0]&&(t=4),0==(n=t)){if(e(null!=s),r.data=a.data,r.w=a.w+a.offset,r.ha=a.ha-a.offset,r.put=dt,r.ac=ft,r.bc=pt,r.ma=s,a.xa){if(null==(t=Nt())){s=1;break t}if(function(t,n){var i=[0],r=[0],a=[0];e:for(;;){if(null==t)return 0;if(null==n)return t.a=2,0;if(t.l=n,t.a=0,v(t.m,n.data,n.w,n.ha),!gt(t.m,i,r,a)){t.a=3;break e}if(t.xb=gr,n.width=i[0],n.height=r[0],!kt(i[0],r[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,r)){if(r=0==(n=Bn(r.width,r.height,s.Oa,s.ba))){e:{r=t;n:for(;;){if(null==r){r=0;break e}if(e(null!=r.s.yc),e(null!=r.s.Ya),e(0<r.s.Wb),e(null!=(i=r.l)),e(null!=(a=i.ma)),0!=r.xb){if(r.ca=a.ba,r.tb=a.tb,e(null!=r.ca),!Rn(a.Oa,i,zi)){r.a=2;break n}if(!It(r,i.width))break n;if(i.da)break n;if((i.da||it(r.ca.S))&&vn(),11>r.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=r.ca.f.kb.F&&vn()),r.Pb&&0<r.s.ua&&null==r.s.vb.X&&!D(r.s.vb,r.s.Wa.Xa)){r.a=1;break n}r.xb=0}if(!Ct(r,r.V,r.Ba,r.c,r.i,i.o,wt))break n;a.Dc=r.Ma,r=1;break e}e(0!=r.a),r=0}r=!r}r&&(n=t.a)}else n=t.a}else{if(null==(t=new Yt)){s=1;break t}if(t.Fa=a.na,t.P=a.P,t.qc=a.Sa,Kt(t,r)){if(0==(n=Bn(r.width,r.height,s.Oa,s.ba))){if(t.Aa=0,i=s.Oa,e(null!=(a=t)),null!=i){if(0<(u=0>(u=i.Md)?0:100<u?255:255*u/100)){for(h=c=0;4>h;++h)12>(f=a.pb[h]).lc&&(f.ia=u*jr[0>f.lc?0:f.lc]>>3),c|=f.ia;c&&(alert("todo:VP8InitRandom"),a.ia=1)}a.Ga=i.Id,100<a.Ga?a.Ga=100:0>a.Ga&&(a.Ga=0)}Qt(t,r)||(n=t.a)}}else n=t.a}0==n&&null!=s.Oa&&s.Oa.fd&&(n=En(s.ba))}s=n}o=0!=s?null:11>o?l.f.RGBA.eb:l.f.kb.y}else o=null;return o};var Hr=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(t,e){for(var n="",i=0;i<4;i++)n+=String.fromCharCode(t[e++]);return n}function h(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16)>>>0}function c(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new l;var f=[0],d=[0],p=[],g=new l,m=t,v=function(t,e){var n={},i=0,r=!1,a=0,o=0;if(n.frames=[],!function(t,e){for(var n=0;n<4;n++)if(t[e+n]!="RIFF".charCodeAt(n))return!0;return!1}(t,e)){var s,l;for(c(t,e+=4),e+=8;e<t.length;){var f=u(t,e),d=c(t,e+=4);e+=4;var p=d+(1&d);switch(f){case"VP8 ":case"VP8L":void 0===n.frames[i]&&(n.frames[i]={}),(v=n.frames[i]).src_off=r?o:e-8,v.src_size=a+d+8,i++,r&&(r=!1,a=0,o=0);break;case"VP8X":(v=n.header={}).feature_flags=t[e];var g=e+4;v.canvas_width=1+h(t,g),g+=3,v.canvas_height=1+h(t,g),g+=3;break;case"ALPH":r=!0,a=p+8,o=e-8;break;case"ANIM":(v=n.header).bgcolor=c(t,e),g=e+4,v.loop_count=(s=t)[(l=g)+0]|s[l+1]<<8,g+=2;break;case"ANMF":var m,v;(v=n.frames[i]={}).offset_x=2*h(t,e),e+=3,v.offset_y=2*h(t,e),e+=3,v.width=1+h(t,e),e+=3,v.height=1+h(t,e),e+=3,v.duration=h(t,e),e+=3,m=t[e++],v.dispose=1&m,v.blend=m>>1&1}"ANMF"!=f&&(e+=p)}return n}}(m,0);v.response=m,v.rgbaoutput=!0,v.dataurl=!1;var y=v.header?v.header:null,_=v.frames?v.frames:null;if(y){y.loop_counter=y.loop_count,f=[y.canvas_height],d=[y.canvas_width];for(var b=0;b<_.length&&0!=_[b].blend;b++);}var x=_[0],w=g.WebPDecodeRGBA(m,x.src_off,x.src_size,d,f);x.rgba=w,x.imgwidth=d[0],x.imgheight=f[0];for(var S=0;S<d[0]*f[0]*4;S++)p[S]=w[S];return this.width=d,this.height=f,this.data=p,this}!function(t){var e=function(e,i,l,u){var h=4,c=a;switch(u){case t.image_compression.FAST:h=1,c=r;break;case t.image_compression.MEDIUM:h=6,c=o;break;case t.image_compression.SLOW:h=9,c=s}var f=$(e=n(e,i,l,c),{level:h});return t.__addimage__.arrayBufferToBinaryString(f)},n=function(t,e,n,i){for(var r,a,o,s=t.length/e,l=new Uint8Array(t.length+s),c=u(),f=0;f<s;f+=1){if(o=f*e,r=t.subarray(o,o+e),i)l.set(i(r,n,a),o+f);else{for(var d,p=c.length,g=[];d<p;d+=1)g[d]=c[d](r,n,a);var m=h(g.concat());l.set(g[m],o+f)}a=r}return l},i=function(t){var e=Array.apply([],t);return e.unshift(0),e},r=function(t,e){var n,i=[],r=t.length;i[0]=1;for(var a=0;a<r;a+=1)n=t[a-e]||0,i[a+1]=t[a]-n+256&255;return i},a=function(t,e,n){var i,r=[],a=t.length;r[0]=2;for(var o=0;o<a;o+=1)i=n&&n[o]||0,r[o+1]=t[o]-i+256&255;return r},o=function(t,e,n){var i,r,a=[],o=t.length;a[0]=3;for(var s=0;s<o;s+=1)i=t[s-e]||0,r=n&&n[s]||0,a[s+1]=t[s]+256-(i+r>>>1)&255;return a},s=function(t,e,n){var i,r,a,o,s=[],u=t.length;s[0]=4;for(var h=0;h<u;h+=1)i=t[h-e]||0,r=n&&n[h]||0,a=n&&n[h-e]||0,o=l(i,r,a),s[h+1]=t[h]-o+256&255;return s},l=function(t,e,n){if(t===e&&e===n)return t;var i=Math.abs(e-n),r=Math.abs(t-n),a=Math.abs(t+e-n-n);return i<=r&&i<=a?t:r<=a?e:n},u=function(){return[i,r,a,o,s]},h=function(t){var e=t.map((function(t){return t.reduce((function(t,e){return t+Math.abs(e)}),0)}));return e.indexOf(Math.min.apply(null,e))};t.processPNG=function(n,i,r,a){var o,s,l,u,h,c,f,d,p,g,m,v,y,_,b,x=this.decode.FLATE_DECODE,w="";if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(l=new Ue(n)).imgData,s=l.bits,o=l.colorSpace,h=l.colors,-1!==[4,6].indexOf(l.colorType)){if(8===l.bits){p=(d=32==l.pixelBitlength?new Uint32Array(l.decodePixels().buffer):16==l.pixelBitlength?new Uint16Array(l.decodePixels().buffer):new Uint8Array(l.decodePixels().buffer)).length,m=new Uint8Array(p*l.colors),g=new Uint8Array(p);var S,A=l.pixelBitlength-l.bits;for(_=0,b=0;_<p;_++){for(y=d[_],S=0;S<A;)m[b++]=y>>>S&255,S+=l.bits;g[_]=y>>>S&255}}if(16===l.bits){p=(d=new Uint32Array(l.decodePixels().buffer)).length,m=new Uint8Array(p*(32/l.pixelBitlength)*l.colors),g=new Uint8Array(p*(32/l.pixelBitlength)),v=l.colors>1,_=0,b=0;for(var L=0;_<p;)y=d[_++],m[b++]=y>>>0&255,v&&(m[b++]=y>>>16&255,y=d[_++],m[b++]=y>>>0&255),g[L++]=y>>>16&255;s=8}a!==t.image_compression.NONE?(n=e(m,l.width*l.colors,l.colors,a),f=e(g,l.width,1,a)):(n=m,f=g,x=void 0)}if(3===l.colorType&&(o=this.color_spaces.INDEXED,c=l.palette,l.transparency.indexed)){var C=l.transparency.indexed,P=0;for(_=0,p=C.length;_<p;++_)P+=C[_];if((P/=255)==p-1&&-1!==C.indexOf(0))u=[C.indexOf(0)];else if(P!==p){for(d=l.decodePixels(),g=new Uint8Array(d.length),_=0,p=d.length;_<p;_++)g[_]=C[d[_]];f=e(g,l.width,1)}}var N=function(e){var n;switch(e){case t.image_compression.FAST:n=11;break;case t.image_compression.MEDIUM:n=13;break;case t.image_compression.SLOW:n=14;break;default:n=12}return n}(a);return x===this.decode.FLATE_DECODE&&(w="/Predictor "+N+" "),w+="/Colors "+h+" /BitsPerComponent "+s+" /Columns "+l.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:r,data:n,index:i,filter:x,decodeParameters:w,transparency:u,palette:c,sMask:f,predictor:N,width:l.width,height:l.height,bitsPerComponent:s,colorSpace:o}}}}(It.API),function(t){t.processGIF89A=function(e,n,i,r){var a=new Ve(e),o=a.width,s=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var u={data:l,width:o,height:s},h=new Ye(100).encode(u,100);return t.processJPEG.call(this,h,n,i,r)},t.processGIF87A=t.processGIF89A}(It.API),Xe.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:r,green:i,blue:n,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Xe.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){Q.log("bit decode error:"+t)}},Xe.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var i=this.bottom_up?t:this.height-1-t,r=0;r<e;r++)for(var a=this.datav.getUint8(this.pos++,!0),o=i*this.width*4+8*r*4,s=0;s<8&&8*r+s<this.width;s++){var l=this.palette[a>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}0!==n&&(this.pos+=4-n)}},Xe.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,r=0;r<t;r++){var a=this.datav.getUint8(this.pos++,!0),o=i*this.width*4+2*r*4,s=a>>4,l=15&a,u=this.palette[s];if(this.data[o]=u.blue,this.data[o+1]=u.green,this.data[o+2]=u.red,this.data[o+3]=255,2*r+1>=this.width)break;u=this.palette[l],this.data[o+4]=u.blue,this.data[o+4+1]=u.green,this.data[o+4+2]=u.red,this.data[o+4+3]=255}0!==e&&(this.pos+=4-e)}},Xe.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,i=0;i<this.width;i++){var r=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+4*i;if(r<this.palette.length){var o=this.palette[r];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}0!==t&&(this.pos+=4-t)}},Xe.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&e)/e*255|0,s=(a>>5&e)/e*255|0,l=(a>>10&e)/e*255|0,u=a>>15?255:0,h=i*this.width*4+4*r;this.data[h]=l,this.data[h+1]=s,this.data[h+2]=o,this.data[h+3]=u}this.pos+=t}},Xe.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var r=this.bottom_up?i:this.height-1-i,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&e)/e*255|0,l=(o>>5&n)/n*255|0,u=(o>>11)/e*255|0,h=r*this.width*4+4*a;this.data[h]=u,this.data[h+1]=l,this.data[h+2]=s,this.data[h+3]=255}this.pos+=t}},Xe.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*n;this.data[o]=a,this.data[o+1]=r,this.data[o+2]=i,this.data[o+3]=255}this.pos+=this.width%4}},Xe.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=a,this.data[s+1]=r,this.data[s+2]=i,this.data[s+3]=o}},Xe.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,n,i,r){var a=new Xe(e,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},u=new Ye(100).encode(l,100);return t.processJPEG.call(this,u,n,i,r)}}(It.API),$e.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,n,i,r){var a=new $e(e,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},u=new Ye(100).encode(l,100);return t.processJPEG.call(this,u,n,i,r)}}(It.API),It.API.processRGBA=function(t,e,n){for(var i=t.data,r=i.length,a=new Uint8Array(r/4*3),o=new Uint8Array(r/4),s=0,l=0,u=0;u<r;u+=4){var h=i[u],c=i[u+1],f=i[u+2],d=i[u+3];a[s++]=h,a[s++]=c,a[s++]=f,o[l++]=d}var p=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:p,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},It.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},ze=It.API,je=ze.getCharWidthsArray=function(t,e){var n,r,a=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),l=e.widths?e.widths:a.metadata.Unicode.widths,u=l.fof?l.fof:1,h=e.kerning?e.kerning:a.metadata.Unicode.kerning,c=h.fof?h.fof:1,f=!1!==e.doKerning,d=0,p=t.length,g=0,m=l[0]||u,v=[];for(n=0;n<p;n++)r=t.charCodeAt(n),"function"==typeof a.metadata.widthOfString?v.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(r))+s*(1e3/o)||0)/1e3):(d=f&&"object"===(0,i.A)(h[r])&&!isNaN(parseInt(h[r][g],10))?h[r][g]/c:0,v.push((l[r]||m)/u+d)),g=r;return v},qe=ze.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),i=e.font||this.internal.getFont(),r=e.charSpace||this.internal.getCharSpace();return ze.processArabic&&(t=ze.processArabic(t)),"function"==typeof i.metadata.widthOfString?i.metadata.widthOfString(t,n,r)/n:je.apply(this,arguments).reduce((function(t,e){return t+e}),0)},He=function(t,e,n,i){for(var r=[],a=0,o=t.length,s=0;a!==o&&s+e[a]<n;)s+=e[a],a++;r.push(t.slice(0,a));var l=a;for(s=0;a!==o;)s+e[a]>i&&(r.push(t.slice(l,a)),s=0,l=a),s+=e[a],a++;return l!==a&&r.push(t.slice(l,a)),r},We=function(t,e,n){n||(n={});var i,r,a,o,s,l,u,h=[],c=[h],f=n.textIndent||0,d=0,p=0,g=t.split(" "),m=je.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?g[0].length+2:n.lineIndent||0){var v=Array(l).join(" "),y=[];g.map((function(t){(t=t.split(/\s*\n/)).length>1?y=y.concat(t.map((function(t,e){return(e&&t.length?"\n":"")+t}))):y.push(t[0])})),g=y,l=qe.apply(this,[v,n])}for(a=0,o=g.length;a<o;a++){var _=0;if(i=g[a],l&&"\n"==i[0]&&(i=i.substr(1),_=1),f+d+(p=(r=je.apply(this,[i,n])).reduce((function(t,e){return t+e}),0))>e||_){if(p>e){for(s=He.apply(this,[i,r,e-(f+d),e]),h.push(s.shift()),h=[s.pop()];s.length;)c.push([s.shift()]);p=r.slice(i.length-(h[0]?h[0].length:0)).reduce((function(t,e){return t+e}),0)}else h=[i];c.push(h),f=p+l,d=m}else h.push(i),f+=d+p,d=m}return u=l?function(t,e){return(e?v:"")+t.join(" ")}:function(t){return t.join(" ")},c.map(u)},ze.splitTextToSize=function(t,e,n){var i,r=(n=n||{}).fontSize||this.internal.getFontSize(),a=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle);return e.metadata.Unicode?{widths:e.metadata.Unicode.widths||{0:1},kerning:e.metadata.Unicode.kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);i=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/r;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/r:0,a.lineIndent=n.lineIndent;var s,l,u=[];for(s=0,l=i.length;s<l;s++)u=u.concat(We.apply(this,[i[s],o,a]));return u},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",n={},r={},a=0;a<16;a++)n[e[a]]="0123456789abcdef"[a],r["0123456789abcdef"[a]]=e[a];var o=function(t){return"0x"+parseInt(t,10).toString(16)},s=t.__fontmetrics__.compress=function(t){var e,n,a,l,u=["{"];for(var h in t){if(e=t[h],isNaN(parseInt(h,10))?n="'"+h+"'":(h=parseInt(h,10),n=(n=o(h).slice(2)).slice(0,-1)+r[n.slice(-1)]),"number"==typeof e)e<0?(a=o(e).slice(3),l="-"):(a=o(e).slice(2),l=""),a=l+a.slice(0,-1)+r[a.slice(-1)];else{if("object"!==(0,i.A)(e))throw new Error("Don't know what to do with value type "+(0,i.A)(e)+".");a=s(e)}u.push(n+a)}return u.push("}"),u.join("")},l=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,i,r,a,o={},s=1,l=o,u=[],h="",c="",f=t.length-1,d=1;d<f;d+=1)"'"==(a=t[d])?e?(r=e.join(""),e=void 0):e=[]:e?e.push(a):"{"==a?(u.push([l,r]),l={},r=void 0):"}"==a?((i=u.pop())[0][i[1]]=l,r=void 0,l=i[0]):"-"==a?s=-1:void 0===r?n.hasOwnProperty(a)?(h+=n[a],r=parseInt(h,16)*s,s=1,h=""):h+=a:n.hasOwnProperty(a)?(c+=n[a],l[r]=parseInt(c,16)*s,s=1,r=void 0,c=""):c+=a;return o},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},h={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},c={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(t){var e=t.font,n=c.Unicode[e.postScriptName];n&&(e.metadata.Unicode={},e.metadata.Unicode.widths=n.widths,e.metadata.Unicode.kerning=n.kerning);var i=h.Unicode[e.postScriptName];i&&(e.metadata.Unicode.encoding=i,e.encoding=i.codePages[0])}])}(It.API),function(t){var e=function(t){for(var e=t.length,n=new Uint8Array(e),i=0;i<e;i++)n[i]=t.charCodeAt(i);return n};t.API.events.push(["addFont",function(n){var i=void 0,r=n.font,a=n.instance;if(!r.isStandardFont){if(void 0===a)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");if("string"!=typeof(i=!1===a.existsFileInVFS(r.postScriptName)?a.loadFile(r.postScriptName):a.getFileFromVFS(r.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");!function(n,i){i=/^\x00\x01\x00\x00/.test(i)?e(i):e(it(i)),n.metadata=t.API.TTFFont.open(i),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(r,i)}}])}(It),function(){function t(){return(J.canvg?Promise.resolve(J.canvg):n.e(7332).then(n.bind(n,7332))).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}It.API.addSvgAsImage=function(e,n,i,r,a,o,s,l){if(isNaN(n)||isNaN(i))throw Q.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(a))throw Q.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=r,u.height=a;var h=u.getContext("2d");h.fillStyle="#fff",h.fillRect(0,0,u.width,u.height);var c={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return t().then((function(t){return t.fromString(h,e,c)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(c)})).then((function(){f.addImage(u.toDataURL("image/jpeg",1),n,i,r,a,s,l)}))}}(),It.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var r=0;r<this.internal.pages[i].length;r++)this.internal.pages[i][r]=this.internal.pages[i][r].replace(e,n);return this},It.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var r,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(s),u=[],h=0,c=0,f=0;function d(t,e){var n,i=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(i=!0);return i}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var p=l.length;for(f=0;f<p;f+=1)n[l[f]].value=n[l[f]].defaultValue,n[l[f]].explicitSet=!1}if("object"===(0,i.A)(t))for(a in t)if(o=t[a],d(l,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(r=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(c=0;c<o[h].length;c+=1)"number"!=typeof o[h][c]&&(r=!1);!0===r&&u.push([o[h][0]-1,o[h][1]-1].join(" "))}n[a].value="["+u.join(" ")+"]"}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(t){var e=function(){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(t)),i=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),r=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),a=unescape(encodeURIComponent("</x:xmpmeta>")),o=n.length+i.length+r.length+e.length+a.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(e+n+i+r+a),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(t,i){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",e)),this}}(It.API),function(t){var e=t.API,n=e.pdfEscape16=function(t,e){for(var n,i=e.metadata.Unicode.widths,r=["","0","00","000","0000"],a=[""],o=0,s=t.length;o<s;++o){if(n=e.metadata.characterToGlyph(t.charCodeAt(o)),e.metadata.glyIdsUsed.push(n),e.metadata.toUnicode[n]=t.charCodeAt(o),-1==i.indexOf(n)&&(i.push(n),i.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return a.join("");n=n.toString(16),a.push(r[4-n.length],n)}return a.join("")},i=function(t){var e,n,i,r,a,o,s;for(a="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",i=[],o=0,s=(n=Object.keys(t).sort((function(t,e){return t-e}))).length;o<s;o++)e=n[o],i.length>=100&&(a+="\n"+i.length+" beginbfchar\n"+i.join("\n")+"\nendbfchar",i=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(r=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),i.push("<"+e+"><"+r+">"));return i.length&&(a+="\n"+i.length+" beginbfchar\n"+i.join("\n")+"\nendbfchar\n"),a+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var n=e.font,r=e.out,a=e.newObject,o=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"Identity-H"===n.encoding){for(var s=n.metadata.Unicode.widths,l=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),u="",h=0;h<l.length;h++)u+=String.fromCharCode(l[h]);var c=a();o({data:u,addLength1:!0,objectId:c}),r("endobj");var f=a();o({data:i(n.metadata.toUnicode),addLength1:!0,objectId:f}),r("endobj");var d=a();r("<<"),r("/Type /FontDescriptor"),r("/FontName /"+At(n.fontName)),r("/FontFile2 "+c+" 0 R"),r("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),r("/Flags "+n.metadata.flags),r("/StemV "+n.metadata.stemV),r("/ItalicAngle "+n.metadata.italicAngle),r("/Ascent "+n.metadata.ascender),r("/Descent "+n.metadata.decender),r("/CapHeight "+n.metadata.capHeight),r(">>"),r("endobj");var p=a();r("<<"),r("/Type /Font"),r("/BaseFont /"+At(n.fontName)),r("/FontDescriptor "+d+" 0 R"),r("/W "+t.API.PDFObject.convert(s)),r("/CIDToGIDMap /Identity"),r("/DW 1000"),r("/Subtype /CIDFontType2"),r("/CIDSystemInfo"),r("<<"),r("/Supplement 0"),r("/Registry (Adobe)"),r("/Ordering ("+n.encoding+")"),r(">>"),r(">>"),r("endobj"),n.objectNumber=a(),r("<<"),r("/Type /Font"),r("/Subtype /Type0"),r("/ToUnicode "+f+" 0 R"),r("/BaseFont /"+At(n.fontName)),r("/Encoding /"+n.encoding),r("/DescendantFonts ["+p+" 0 R]"),r(">>"),r("endobj"),n.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var n=e.font,r=e.out,a=e.newObject,o=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var s=n.metadata.rawData,l="",u=0;u<s.length;u++)l+=String.fromCharCode(s[u]);var h=a();o({data:l,addLength1:!0,objectId:h}),r("endobj");var c=a();o({data:i(n.metadata.toUnicode),addLength1:!0,objectId:c}),r("endobj");var f=a();r("<<"),r("/Descent "+n.metadata.decender),r("/CapHeight "+n.metadata.capHeight),r("/StemV "+n.metadata.stemV),r("/Type /FontDescriptor"),r("/FontFile2 "+h+" 0 R"),r("/Flags 96"),r("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),r("/FontName /"+At(n.fontName)),r("/ItalicAngle "+n.metadata.italicAngle),r("/Ascent "+n.metadata.ascender),r(">>"),r("endobj"),n.objectNumber=a();for(var d=0;d<n.metadata.hmtx.widths.length;d++)n.metadata.hmtx.widths[d]=parseInt(n.metadata.hmtx.widths[d]*(1e3/n.metadata.head.unitsPerEm));r("<</Subtype/TrueType/Type/Font/ToUnicode "+c+" 0 R/BaseFont/"+At(n.fontName)+"/FontDescriptor "+f+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),r("endobj"),n.isAlreadyPutted=!0}}(e)}]);var r=function(t){var e,i=t.text||"",r=t.x,a=t.y,o=t.options||{},s=t.mutex||{},l=s.pdfEscape,u=s.activeFontKey,h=s.fonts,c=u,f="",d=0,p="",g=h[c].encoding;if("Identity-H"!==h[c].encoding)return{text:i,x:r,y:a,options:o,mutex:s};for(p=i,c=u,Array.isArray(i)&&(p=i[0]),d=0;d<p.length;d+=1)h[c].metadata.hasOwnProperty("cmap")&&(e=h[c].metadata.cmap.unicode.codeMap[p[d].charCodeAt(0)]),e||p[d].charCodeAt(0)<256&&h[c].metadata.hasOwnProperty("Unicode")?f+=p[d]:f+="";var m="";return parseInt(c.slice(1))<14||"WinAnsiEncoding"===g?m=l(f,c).split("").map((function(t){return t.charCodeAt(0).toString(16)})).join(""):"Identity-H"===g&&(m=n(f,h[c])),s.isHex=!0,{text:m,x:r,y:a,options:o,mutex:s}};e.events.push(["postProcessText",function(t){var e=t.text||"",n=[],i={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var a=0;for(a=0;a<e.length;a+=1)Array.isArray(e[a])&&3===e[a].length?n.push([r(Object.assign({},i,{text:e[a][0]})).text,e[a][1],e[a][2]]):n.push(r(Object.assign({},i,{text:e[a]})).text);t.text=n}else t.text=r(Object.assign({},i,{text:e})).text}])}(It),function(t){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]},t.addFileToVFS=function(t,n){return e.call(this),this.internal.vFS[t]=n,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(It.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,i,r,a,o,s,l,u=e,h=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],c=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,v=0;this.__bidiEngine__={};var y=function(t){var e=t.charCodeAt(),n=e>>8,i=d[n];return void 0!==i?u[256*i+(255&e)]:252===n||253===n?"AL":g.test(n)?"L":8===n?"R":"N"},_=function(t){for(var e,n=0;n<t.length;n++){if("L"===(e=y(t.charAt(n))))return!1;if("R"===e)return!0}return!1},b=function(t,e,o,s){var l,u,h,c,f=e[s];switch(f){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"N":case"AN":break;case"EN":m&&(f="AN");break;case"AL":m=!0,f="R";break;case"WS":case"BN":f="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(l=o[s-1])&&"AN"!==l||"EN"!==(u=e[s+1])&&"AN"!==u?f="N":m&&(u="AN"),f=u===l?u:"N";break;case"ES":f="EN"===(l=s>0?o[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===o[s-1]){f="EN";break}if(m){f="N";break}for(h=s+1,c=e.length;h<c&&"ET"===e[h];)h++;f=h<c&&"EN"===e[h]?"EN":"N";break;case"NSM":if(r&&!a){for(c=e.length,h=s+1;h<c&&"NSM"===e[h];)h++;if(h<c){var d=t[s],p=d>=1425&&d<=2303||64286===d;if(l=e[h],p&&("R"===l||"AL"===l)){f="R";break}}}f=s<1||"B"===(l=e[s-1])?"N":o[s-1];break;case"B":m=!1,n=!0,f=v;break;case"S":i=!0,f="N"}return f},x=function(t,e,n){var i=t.split("");return n&&w(i,n,{hiLevel:v}),i.reverse(),e&&e.reverse(),i.join("")},w=function(t,e,r){var a,o,s,l,u,d=-1,p=t.length,g=0,_=[],x=v?c:h,w=[];for(m=!1,n=!1,i=!1,o=0;o<p;o++)w[o]=y(t[o]);for(s=0;s<p;s++){if(u=g,_[s]=b(t,w,_,s),a=240&(g=x[u][f[_[s]]]),g&=15,e[s]=l=x[g][5],a>0)if(16===a){for(o=d;o<s;o++)e[o]=1;d=-1}else d=-1;if(x[g][6])-1===d&&(d=s);else if(d>-1){for(o=d;o<s;o++)e[o]=l;d=-1}"B"===w[s]&&(e[s]=0),r.hiLevel|=l}i&&function(t,e,n){for(var i=0;i<n;i++)if("S"===t[i]){e[i]=v;for(var r=i-1;r>=0&&"WS"===t[r];r--)e[r]=v}}(w,e,p)},S=function(t,e,i,r,a){if(!(a.hiLevel<t)){if(1===t&&1===v&&!n)return e.reverse(),void(i&&i.reverse());for(var o,s,l,u,h=e.length,c=0;c<h;){if(r[c]>=t){for(l=c+1;l<h&&r[l]>=t;)l++;for(u=c,s=l-1;u<s;u++,s--)o=e[u],e[u]=e[s],e[s]=o,i&&(o=i[u],i[u]=i[s],i[s]=o);c=l}c++}}},A=function(t,e,n){var i=t.split(""),r={hiLevel:v};return n||(n=[]),w(i,n,r),function(t,e,n){if(0!==n.hiLevel&&l)for(var i,r=0;r<t.length;r++)1===e[r]&&(i=p.indexOf(t[r]))>=0&&(t[r]=p[i+1])}(i,n,r),S(2,i,e,n,r),S(1,i,e,n,r),i.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n<t.length;n++)e[n]=n;void 0===a&&(a=_(t)),void 0===s&&(s=_(t))}(t,e),r||!o||s)if(r&&o&&a^s)v=a?1:0,t=x(t,e,n);else if(!r&&o&&s)v=a?1:0,t=A(t,e,n),t=x(t,e);else if(!r||a||o||s){if(r&&!o&&a^s)t=x(t,e),a?(v=0,t=A(t,e,n)):(v=1,t=A(t,e,n),t=x(t,e));else if(r&&a&&!o&&s)v=1,t=A(t,e,n),t=x(t,e);else if(!r&&!o&&a^s){var i=l;a?(v=1,t=A(t,e,n),v=0,l=!1,t=A(t,e,n),l=i):(v=0,t=A(t,e,n),t=x(t,e),v=1,l=!1,t=A(t,e,n),l=i,t=x(t,e))}}else v=0,t=A(t,e,n);else v=a?1:0,t=A(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(r=t.isInputVisual,o=t.isOutputVisual,a=t.isInputRtl,s=t.isOutputRtl,l=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text,i=(t.x,t.y,t.options||{}),r=(t.mutex,i.lang,[]);if(i.isInputVisual="boolean"!=typeof i.isInputVisual||i.isInputVisual,n.setOptions(i),"[object Array]"===Object.prototype.toString.call(e)){var a=0;for(r=[],a=0;a<e.length;a+=1)"[object Array]"===Object.prototype.toString.call(e[a])?r.push([n.doBidiReorder(e[a][0]),e[a][1],e[a][2]]):r.push([n.doBidiReorder(e[a])]);t.text=r}else t.text=n.doBidiReorder(e);n.setOptions({isInputVisual:!0})}])}(It),It.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new Je(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new vn(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new Ze(this.contents),this.head=new en(this),this.name=new un(this),this.cmap=new rn(this),this.toUnicode={},this.hhea=new an(this),this.maxp=new hn(this),this.hmtx=new cn(this),this.post=new sn(this),this.os2=new on(this),this.loca=new mn(this),this.glyf=new dn(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,n,i,r;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,n,i,r;for(r=[],e=0,n=(i=this.bbox).length;e<n;e++)t=i[e],r.push(Math.round(t*this.scaleFactor));return r}.call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),!!(32768&(e=i>>16))&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(r=this.familyClass)||2===r||3===r||4===r||5===r||7===r,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,n){var i,r,a,o;for(a=0,r=0,o=(t=""+t).length;0<=o?r<o:r>o;r=0<=o?++r:--r)i=t.charCodeAt(r),a+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/e)||0;return a*(e/1e3)},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},t}();var Ke,Je=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,i;for(i=[],e=0,n=t.length;0<=n?e<n:e>n;e=0<=n?++e:--e)i.push(this.writeByte(t.charCodeAt(e)));return i},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,i,r,a,o,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),i=this.readByte(),r=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^r)+65536*(255^a)+256*(255^o)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*i+16777216*r+65536*a+256*o+s},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,i,r;for(r=[],n=0,i=t.length;n<i;n++)e=t[n],r.push(this.writeByte(e));return r},t}(),Ze=function(){var t;function e(t){var e,n,i;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,i=this.tableCount;0<=i?n<i:n>i;n=0<=i?++n:--n)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var n,i,r,a,o,s,l,u,h,c,f,d,p;for(p in f=Object.keys(e).length,s=Math.log(2),h=16*Math.floor(Math.log(f)/s),a=Math.floor(h/s),u=16*f-h,(i=new Je).writeInt(this.scalarType),i.writeShort(f),i.writeShort(h),i.writeShort(a),i.writeShort(u),r=16*f,l=i.pos+r,o=null,d=[],e)for(c=e[p],i.writeString(p),i.writeInt(t(c)),i.writeInt(l),i.writeInt(c.length),d=d.concat(c),"head"===p&&(o=l),l+=c.length;l%4;)d.push(0),l++;return i.write(d),n=2981146554-t(i.data),i.pos=o+8,i.writeUInt32(n),i.data},t=function(t){var e,n,i,r;for(t=fn.call(t);t.length%4;)t.push(0);for(i=new Je(t),n=0,e=0,r=t.length;e<r;e=e+=4)n+=i.readUInt32();return 4294967295&n},e}(),Qe={}.hasOwnProperty,tn=function(t,e){for(var n in e)Qe.call(e,n)&&(t[n]=e[n]);function i(){this.constructor=t}return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t};Ke=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var en=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return tn(t,Ke),t.prototype.tag="head",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},t.prototype.encode=function(t){var e;return(e=new Je).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},t}(),nn=function(){function t(t,e){var n,i,r,a,o,s,l,u,h,c,f,d,p,g,m,v,y;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),h=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=t.readByte();break;case 4:for(f=t.readUInt16(),c=f/2,t.pos+=6,r=function(){var e,n;for(n=[],s=e=0;0<=c?e<c:e>c;s=0<=c?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,p=function(){var e,n;for(n=[],s=e=0;0<=c?e<c:e>c;s=0<=c?++e:--e)n.push(t.readUInt16());return n}(),l=function(){var e,n;for(n=[],s=e=0;0<=c?e<c:e>c;s=0<=c?++e:--e)n.push(t.readUInt16());return n}(),u=function(){var e,n;for(n=[],s=e=0;0<=c?e<c:e>c;s=0<=c?++e:--e)n.push(t.readUInt16());return n}(),i=(this.length-t.pos+this.offset)/2,o=function(){var e,n;for(n=[],s=e=0;0<=i?e<i:e>i;s=0<=i?++e:--e)n.push(t.readUInt16());return n}(),s=m=0,y=r.length;m<y;s=++m)for(g=r[s],n=v=d=p[s];d<=g?v<=g:v>=g;n=d<=g?++v:--v)0===u[s]?a=n+l[s]:0!==(a=o[u[s]/2+(n-d)-(c-s)]||0)&&(a+=l[s]),this.codeMap[n]=65535&a}t.pos=h}return t.encode=function(t,e){var n,i,r,a,o,s,l,u,h,c,f,d,p,g,m,v,y,_,b,x,w,S,A,L,C,P,N,k,I,M,T,D,O,F,R,E,B,z,j,q,H,W,U,V,G,Y;switch(k=new Je,a=Object.keys(t).sort((function(t,e){return t-e})),e){case"macroman":for(p=0,g=function(){var t=[];for(d=0;d<256;++d)t.push(0);return t}(),v={0:0},r={},I=0,O=a.length;I<O;I++)null==v[U=t[i=a[I]]]&&(v[U]=++p),r[i]={old:t[i],new:v[t[i]]},g[i]=v[t[i]];return k.writeUInt16(1),k.writeUInt16(0),k.writeUInt32(12),k.writeUInt16(0),k.writeUInt16(262),k.writeUInt16(0),k.write(g),{charMap:r,subtable:k.data,maxGlyphID:p+1};case"unicode":for(P=[],h=[],y=0,v={},n={},m=l=null,M=0,F=a.length;M<F;M++)null==v[b=t[i=a[M]]]&&(v[b]=++y),n[i]={old:b,new:v[b]},o=v[b]-i,null!=m&&o===l||(m&&h.push(m),P.push(i),l=o),m=i;for(m&&h.push(m),h.push(65535),P.push(65535),L=2*(A=P.length),S=2*Math.pow(Math.log(A)/Math.LN2,2),c=Math.log(S/2)/Math.LN2,w=2*A-S,s=[],x=[],f=[],d=T=0,R=P.length;T<R;d=++T){if(C=P[d],u=h[d],65535===C){s.push(0),x.push(0);break}if(C-(N=n[C].new)>=32768)for(s.push(0),x.push(2*(f.length+A-d)),i=D=C;C<=u?D<=u:D>=u;i=C<=u?++D:--D)f.push(n[i].new);else s.push(N-C),x.push(0)}for(k.writeUInt16(3),k.writeUInt16(1),k.writeUInt32(12),k.writeUInt16(4),k.writeUInt16(16+8*A+2*f.length),k.writeUInt16(0),k.writeUInt16(L),k.writeUInt16(S),k.writeUInt16(c),k.writeUInt16(w),H=0,E=h.length;H<E;H++)i=h[H],k.writeUInt16(i);for(k.writeUInt16(0),W=0,B=P.length;W<B;W++)i=P[W],k.writeUInt16(i);for(V=0,z=s.length;V<z;V++)o=s[V],k.writeUInt16(o);for(G=0,j=x.length;G<j;G++)_=x[G],k.writeUInt16(_);for(Y=0,q=f.length;Y<q;Y++)p=f[Y],k.writeUInt16(p);return{charMap:n,subtable:k.data,maxGlyphID:y+1}}},t}(),rn=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return tn(t,Ke),t.prototype.tag="cmap",t.prototype.parse=function(t){var e,n,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)e=new nn(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},t.encode=function(t,e){var n,i;return null==e&&(e="macroman"),n=nn.encode(t,e),(i=new Je).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},t}(),an=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return tn(t,Ke),t.prototype.tag="hhea",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},t}(),on=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return tn(t,Ke),t.prototype.tag="OS/2",t.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n}(),this.charRange=function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,n;for(n=[],e=0;e<2;e=++e)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},t}(),sn=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return tn(t,Ke),t.prototype.tag="post",t.prototype.parse=function(t){var e,n,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var r;for(n=t.readUInt16(),this.glyphNameIndex=[],r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)e=t.readByte(),i.push(this.names.push(t.readString(e)));return i;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=function(){var e,n,i;for(i=[],r=e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:e>n;r=0<=n?++e:--e)i.push(t.readUInt32());return i}.call(this)}},t}(),ln=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},un=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return tn(t,Ke),t.prototype.tag="name",t.prototype.parse=function(t){var e,n,i,r,a,o,s,l,u,h,c;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),n=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(s={},r=u=0,h=n.length;u<h;r=++u)i=n[r],t.pos=i.offset,l=t.readString(i.length),a=new ln(l,i),null==s[c=i.nameID]&&(s[c]=[]),s[i.nameID].push(a);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},t}(),hn=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return tn(t,Ke),t.prototype.tag="maxp",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},t}(),cn=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return tn(t,Ke),t.prototype.tag="hmtx",t.prototype.parse=function(t){var e,n,i,r,a,o,s;for(t.pos=this.offset,this.metrics=[],e=0,o=this.file.hhea.numberOfMetrics;0<=o?e<o:e>o;e=0<=o?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,r;for(r=[],e=n=0;0<=i?n<i:n>i;e=0<=i?++n:--n)r.push(t.readInt16());return r}(),this.widths=function(){var t,e,n,i;for(i=[],t=0,e=(n=this.metrics).length;t<e;t++)r=n[t],i.push(r.advance);return i}.call(this),n=this.widths[this.widths.length-1],s=[],e=a=0;0<=i?a<i:a>i;e=0<=i?++a:--a)s.push(this.widths.push(n));return s},t.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},t}(),fn=[].slice,dn=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return tn(t,Ke),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(t){var e,n,i,r,a,o,s,l,u,h;return t in this.cache?this.cache[t]:(r=this.file.loca,e=this.file.contents,n=r.indexOf(t),0===(i=r.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,a=(o=new Je(e.read(i))).readShort(),l=o.readShort(),h=o.readShort(),s=o.readShort(),u=o.readShort(),this.cache[t]=-1===a?new gn(o,l,h,s,u):new pn(o,a,l,h,s,u),this.cache[t]))},t.prototype.encode=function(t,e,n){var i,r,a,o,s;for(a=[],r=[],o=0,s=e.length;o<s;o++)i=t[e[o]],r.push(a.length),i&&(a=a.concat(i.encode(n)));return r.push(a.length),{table:a,offsets:r}},t}(),pn=function(){function t(t,e,n,i,r,a){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=i,this.xMax=r,this.yMax=a,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),gn=function(){function t(t,e,n,i,r){var a,o;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=i,this.yMax=r,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;o=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&o;)a.pos+=1&o?4:2,128&o?a.pos+=8:64&o?a.pos+=4:8&o&&(a.pos+=2)}return t.prototype.encode=function(){var t,e,n;for(e=new Je(fn.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),mn=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return tn(t,Ke),t.prototype.tag="loca",t.prototype.parse=function(t){var e,n;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,i;for(i=[],n=0,e=this.length;n<e;n+=2)i.push(2*t.readUInt16());return i}.call(this):function(){var e,i;for(i=[],n=0,e=this.length;n<e;n+=4)i.push(t.readUInt32());return i}.call(this)},t.prototype.indexOf=function(t){return this.offsets[t]},t.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},t.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),i=0,r=0,a=0;a<n.length;++a)if(n[a]=i,r<e.length&&e[r]==a){++r,n[a]=i;var o=this.offsets[a],s=this.offsets[a+1]-o;s>0&&(i+=s)}for(var l=new Array(4*n.length),u=0;u<n.length;++u)l[4*u+3]=255&n[u],l[4*u+2]=(65280&n[u])>>8,l[4*u+1]=(16711680&n[u])>>16,l[4*u]=(4278190080&n[u])>>24;return l},t}(),vn=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,i,r;for(e in i=this.font.cmap.tables[0].codeMap,t={},r=this.subset)n=r[e],t[e]=i[n];return t},t.prototype.glyphsFor=function(t){var e,n,i,r,a,o,s;for(i={},a=0,o=t.length;a<o;a++)i[r=t[a]]=this.font.glyf.glyphFor(r);for(r in e=[],i)(null!=(n=i[r])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(e.length>0)for(r in s=this.glyphsFor(e))n=s[r],i[r]=n;return i},t.prototype.encode=function(t,e){var n,i,r,a,o,s,l,u,h,c,f,d,p,g,m;for(i in n=rn.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(t),f={0:0},m=n.charMap)f[(s=m[i]).old]=s.new;for(d in c=n.maxGlyphID,a)d in f||(f[d]=c++);return u=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(f),h=Object.keys(u).sort((function(t,e){return t-e})),p=function(){var t,e,n;for(n=[],t=0,e=h.length;t<e;t++)o=h[t],n.push(u[o]);return n}(),r=this.font.glyf.encode(a,p,f),l=this.font.loca.encode(r.offsets,p),g={cmap:this.font.cmap.raw(),glyf:r.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},t}();It.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(n){var i,r,a,o;if(Array.isArray(n))return"["+function(){var t,r,a;for(a=[],t=0,r=n.length;t<r;t++)i=n[t],a.push(e.convert(i));return a}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(r in a=["<<"],n)o=n[r],a.push("/"+r+" "+e.convert(o));return a.push(">>"),a.join("\n")}return""+n},e}();const yn=It},51873:(t,e,n)=>{var i=n(9325).Symbol;t.exports=i},72552:(t,e,n)=>{var i=n(51873),r=n(659),a=n(59350),o=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?r(t):a(t)}},54128:(t,e,n)=>{var i=n(31800),r=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(r,""):t}},34840:(t,e,n)=>{var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=i},659:(t,e,n)=>{var i=n(51873),r=Object.prototype,a=r.hasOwnProperty,o=r.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var r=o.call(t);return i&&(e?t[s]=n:delete t[s]),r}},59350:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9325:(t,e,n)=>{var i=n(34840),r="object"==typeof self&&self&&self.Object===Object&&self,a=i||r||Function("return this")();t.exports=a},31800:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},38221:(t,e,n)=>{var i=n(23805),r=n(10124),a=n(99374),o=Math.max,s=Math.min;t.exports=function(t,e,n){var l,u,h,c,f,d,p=0,g=!1,m=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=l,i=u;return l=u=void 0,p=e,c=t.apply(i,n)}function _(t){var n=t-d;return void 0===d||n>=e||n<0||m&&t-p>=h}function b(){var t=r();if(_(t))return x(t);f=setTimeout(b,function(t){var n=e-(t-d);return m?s(n,h-(t-p)):n}(t))}function x(t){return f=void 0,v&&l?y(t):(l=u=void 0,c)}function w(){var t=r(),n=_(t);if(l=arguments,u=this,d=t,n){if(void 0===f)return function(t){return p=t,f=setTimeout(b,e),g?y(t):c}(d);if(m)return clearTimeout(f),f=setTimeout(b,e),y(d)}return void 0===f&&(f=setTimeout(b,e)),c}return e=a(e)||0,i(n)&&(g=!!n.leading,h=(m="maxWait"in n)?o(a(n.maxWait)||0,e):h,v="trailing"in n?!!n.trailing:v),w.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=d=u=f=void 0},w.flush=function(){return void 0===f?c:x(r())},w}},23805:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},40346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},44394:(t,e,n)=>{var i=n(72552),r=n(40346);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==i(t)}},10124:(t,e,n)=>{var i=n(9325);t.exports=function(){return i.Date.now()}},99374:(t,e,n)=>{var i=n(54128),r=n(23805),a=n(44394),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=s.test(t);return n||l.test(t)?u(t.slice(2),n?2:8):o.test(t)?NaN:+t}},84891:(t,e,n)=>{"use strict";n.d(e,{A:()=>P});var i=n(89231),r=n.n(i),a=n(38221),o=n.n(a);let s=null;let l=null;function u(t,e={}){let n=document.createElement(t);return Object.keys(e).forEach((t=>{n[t]=e[t]})),n}function h(t,e,n){return(window.getComputedStyle(t,n||null)||{display:"none"})[e]}function c(t){if(!document.documentElement.contains(t))return{detached:!0,rendered:!1};let e=t;for(;e!==document;){if("none"===h(e,"display"))return{detached:!1,rendered:!1};e=e.parentNode}return{detached:!1,rendered:!0}}let f=0,d=null;function p(t,e){if(t.__resize_mutation_handler__||(t.__resize_mutation_handler__=g.bind(t)),!t.__resize_listeners__)if(t.__resize_listeners__=[],window.ResizeObserver){let{offsetWidth:e,offsetHeight:n}=t,i=new ResizeObserver((()=>{(t.__resize_observer_triggered__||(t.__resize_observer_triggered__=!0,t.offsetWidth!==e||t.offsetHeight!==n))&&v(t)})),{detached:r,rendered:a}=c(t);t.__resize_observer_triggered__=!1===r&&!1===a,t.__resize_observer__=i,i.observe(t)}else if(t.attachEvent&&t.addEventListener)t.__resize_legacy_resize_handler__=function(){v(t)},t.attachEvent("onresize",t.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);else if(f||(d=function(t){var e=document.createElement("style");return e.type="text/css",e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),(document.querySelector("head")||document.body).appendChild(e),e}('.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%}')),function(t){let e=h(t,"position");e&&"static"!==e||(t.style.position="relative");t.__resize_old_position__=e,t.__resize_last__={};let n=u("div",{className:"resize-triggers"}),i=u("div",{className:"resize-expand-trigger"}),r=u("div"),a=u("div",{className:"resize-contract-trigger"});i.appendChild(r),n.appendChild(i),n.appendChild(a),t.appendChild(n),t.__resize_triggers__={triggers:n,expand:i,expandChild:r,contract:a},y(t),t.addEventListener("scroll",m,!0),t.__resize_last__={width:t.offsetWidth,height:t.offsetHeight}}(t),t.__resize_rendered__=c(t).rendered,window.MutationObserver){let e=new MutationObserver(t.__resize_mutation_handler__);e.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),t.__resize_mutation_observer__=e}t.__resize_listeners__.push(e),f++}function g(){let{rendered:t,detached:e}=c(this);t!==this.__resize_rendered__&&(!e&&this.__resize_triggers__&&(y(this),this.addEventListener("scroll",m,!0)),this.__resize_rendered__=t,v(this))}function m(){var t,e;y(this),this.__resize_raf__&&(t=this.__resize_raf__,l||(l=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),l(t)),this.__resize_raf__=(e=()=>{let t=function(t){let{width:e,height:n}=t.__resize_last__,{offsetWidth:i,offsetHeight:r}=t;return i!==e||r!==n?{width:i,height:r}:null}(this);t&&(this.__resize_last__=t,v(this))},s||(s=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),s(e))}function v(t){t&&t.__resize_listeners__&&t.__resize_listeners__.forEach((e=>{e.call(t)}))}function y(t){let{expand:e,expandChild:n,contract:i}=t.__resize_triggers__,{scrollWidth:r,scrollHeight:a}=i,{offsetWidth:o,offsetHeight:s,scrollWidth:l,scrollHeight:u}=e;i.scrollLeft=r,i.scrollTop=a,n.style.width=o+1+"px",n.style.height=s+1+"px",e.scrollLeft=l,e.scrollTop=u}const _=["theme","initOptions","autoresize"],b=["manualUpdate","watchShallow"],x={props:{options:Object,theme:[String,Object],initOptions:Object,group:String,autoresize:Boolean,watchShallow:Boolean,manualUpdate:Boolean},data:()=>({lastArea:0}),watch:{group(t){this.chart.group=t}},methods:{mergeOptions(t,e,n){this.manualUpdate&&(this.manualOptions=t),this.chart?this.delegateMethod("setOption",t,e,n):this.init(t)},appendData(t){this.delegateMethod("appendData",t)},resize(t){this.delegateMethod("resize",t)},dispatchAction(t){this.delegateMethod("dispatchAction",t)},convertToPixel(t,e){return this.delegateMethod("convertToPixel",t,e)},convertFromPixel(t,e){return this.delegateMethod("convertFromPixel",t,e)},containPixel(t,e){return this.delegateMethod("containPixel",t,e)},showLoading(t,e){this.delegateMethod("showLoading",t,e)},hideLoading(){this.delegateMethod("hideLoading")},getDataURL(t){return this.delegateMethod("getDataURL",t)},getConnectedDataURL(t){return this.delegateMethod("getConnectedDataURL",t)},clear(){this.delegateMethod("clear")},dispose(){this.delegateMethod("dispose")},delegateMethod(t,...e){return this.chart||this.init(),this.chart[t](...e)},delegateGet(t){return this.chart||this.init(),this.chart[t]()},getArea(){return this.$el.offsetWidth*this.$el.offsetHeight},init(t){if(this.chart)return;const e=r().init(this.$el,this.theme,this.initOptions);this.group&&(e.group=this.group),e.setOption(t||this.manualOptions||this.options||{},!0),Object.keys(this.$listeners).forEach((t=>{const n=this.$listeners[t];0===t.indexOf("zr:")?e.getZr().on(t.slice(3),n):e.on(t,n)})),this.autoresize&&(this.lastArea=this.getArea(),this.__resizeHandler=o()((()=>{0===this.lastArea?(this.mergeOptions({},!0),this.resize(),this.mergeOptions(this.options||this.manualOptions||{},!0)):this.resize(),this.lastArea=this.getArea()}),100,{leading:!0}),p(this.$el,this.__resizeHandler)),Object.defineProperties(this,{width:{configurable:!0,get:()=>this.delegateGet("getWidth")},height:{configurable:!0,get:()=>this.delegateGet("getHeight")},isDisposed:{configurable:!0,get:()=>!!this.delegateGet("isDisposed")},computedOptions:{configurable:!0,get:()=>this.delegateGet("getOption")}}),this.chart=e},initOptionsWatcher(){this.__unwatchOptions&&(this.__unwatchOptions(),this.__unwatchOptions=null),this.manualUpdate||(this.__unwatchOptions=this.$watch("options",((t,e)=>{!this.chart&&t?this.init():this.chart.setOption(t,t!==e)}),{deep:!this.watchShallow}))},destroy(){this.autoresize&&function(t,e){if(t.detachEvent&&t.removeEventListener)return t.detachEvent("onresize",t.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);let n=t.__resize_listeners__;n&&(n.splice(n.indexOf(e),1),n.length||(t.__resize_observer__?(t.__resize_observer__.unobserve(t),t.__resize_observer__.disconnect(),t.__resize_observer__=null):(t.__resize_mutation_observer__&&(t.__resize_mutation_observer__.disconnect(),t.__resize_mutation_observer__=null),t.removeEventListener("scroll",m),t.removeChild(t.__resize_triggers__.triggers),t.__resize_triggers__=null),t.__resize_listeners__=null),! --f&&d&&d.parentNode.removeChild(d))}(this.$el,this.__resizeHandler),this.dispose(),this.chart=null},refresh(){this.chart&&(this.destroy(),this.init())}},created(){this.initOptionsWatcher(),_.forEach((t=>{this.$watch(t,(()=>{this.refresh()}),{deep:!0})})),b.forEach((t=>{this.$watch(t,(()=>{this.initOptionsWatcher(),this.refresh()}))}))},mounted(){this.options&&this.init()},activated(){this.autoresize&&this.chart&&this.chart.resize()},destroyed(){this.chart&&this.destroy()},connect(t){"string"!=typeof t&&(t=t.map((t=>t.chart))),r().connect(t)},disconnect(t){r().disConnect(t)},registerMap(t,e,n){r().registerMap(t,e,n)},registerTheme(t,e){r().registerTheme(t,e)},graphic:r().graphic},w=x;var S=n(85072),A=n.n(S),L=n(62646),C={insert:"head",singleton:!1};A()(L.A,C);L.A.locals;const P=(0,n(14486).A)(w,(function(){return(0,this._self._c)("div",{staticClass:"echarts"})}),[],!1,null,null,null).exports},29482:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var i=n(95353),r=n(84891),a=n(44323);n(13246),n(26804),n(53571),n(1906),n(67770),n(59608);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const h={components:{"v-chart":r.A},metaInfo:{title:"Warehouse Report"},data:function(){return{Stock_Count:{},Stock_value:{},totalRows_quotations:"",totalRows_sales:"",totalRows_Return_sale:"",totalRows_Return_purchase:"",totalRows_Expense:"",limit_quotations:"10",limit_returns_Sale:"10",limit_returns_Purchase:"10",limit_sales:"10",limit_expenses:"10",search_quotation:"",search_sale:"",search_expense:"",search_return_Sale:"",search_return_Purchase:"",sales_page:1,quotations_page:1,Return_sale_page:1,Return_purchase_page:1,Expense_page:1,isLoading:!0,Filter_warehouse:"",sales:[],quotations:[],warehouses:[],expenses:[],returns_sale:[],returns_purchase:[],total:{sales:"",purchases:"",ReturnPurchase:"",ReturnSale:""}}},computed:l(l({},(0,i.L8)(["currentUser"])),{},{columns_quotations:function(){return[{label:this.$t("date"),field:"date",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Reference"),field:"Ref",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Customer"),field:"client_name",tdClass:"text-left",thClass:"text-left"},{label:this.$t("warehouse"),field:"warehouse_name",tdClass:"text-left",thClass:"text-left"},{label:this.$t("Total"),field:"GrandTotal",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Status"),field:"statut",tdClass:"text-left",thClass:"text-left",html:!0,sortable:!1}]},columns_sales:function(){return[{label:this.$t("Reference"),field:"Ref",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Customer"),field:"client_name",tdClass:"text-left",thClass:"text-left"},{label:this.$t("warehouse"),field:"warehouse_name",tdClass:"text-left",thClass:"text-left"},{label:this.$t("Total"),field:"GrandTotal",type:"decimal",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Paid"),field:"paid_amount",type:"decimal",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Due"),field:"due",type:"decimal",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Status"),field:"statut",html:!0,tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("PaymentStatus"),field:"payment_status",html:!0,tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Shipping_status"),field:"shipping_status",html:!0,tdClass:"text-left",thClass:"text-left"}]},columns_returns_sale:function(){return[{label:this.$t("Reference"),field:"Ref",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Customer"),field:"client_name",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Sale_Ref"),field:"sale_ref",tdClass:"text-left",thClass:"text-left"},{label:this.$t("warehouse"),field:"warehouse_name",tdClass:"text-left",thClass:"text-left"},{label:this.$t("Total"),field:"GrandTotal",type:"decimal",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Paid"),field:"paid_amount",type:"decimal",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Due"),field:"due",type:"decimal",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Status"),field:"statut",html:!0,tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("PaymentStatus"),field:"payment_status",html:!0,tdClass:"text-left",thClass:"text-left",sortable:!1}]},columns_returns_purchase:function(){return[{label:this.$t("Reference"),field:"Ref",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Supplier"),field:"provider_name",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("warehouse"),field:"warehouse_name",tdClass:"text-left",thClass:"text-left"},{label:this.$t("Purchase_Ref"),field:"purchase_ref",tdClass:"text-left",thClass:"text-left"},{label:this.$t("Total"),field:"GrandTotal",type:"decimal",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Paid"),field:"paid_amount",type:"decimal",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Due"),field:"due",type:"decimal",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Status"),field:"statut",html:!0,tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("PaymentStatus"),field:"payment_status",html:!0,tdClass:"text-left",thClass:"text-left",sortable:!1}]},columns_Expense:function(){return[{label:this.$t("date"),field:"date",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Reference"),field:"Ref",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("warehouse"),field:"warehouse_name",tdClass:"text-left",thClass:"text-left"},{label:this.$t("Details"),field:"details",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Amount"),field:"amount",type:"decimal",tdClass:"text-left",thClass:"text-left",sortable:!1},{label:this.$t("Categorie"),field:"category_name",tdClass:"text-left",thClass:"text-left",sortable:!1}]}}),methods:{Expense_PDF:function(){var t=new a.default("p","pt");t.autoTable([{title:"Date",dataKey:"date"},{title:"Reference",dataKey:"Ref"},{title:"Amount",dataKey:"amount"},{title:"Category",dataKey:"category_name"},{title:"Warehouse",dataKey:"warehouse_name"}],this.expenses),t.text("Expense List",40,25),t.save("Expense_List.pdf")},Returns_Purchase_PDF:function(){var t=new a.default("p","pt");t.autoTable([{title:"Ref",dataKey:"Ref"},{title:"Supplier",dataKey:"provider_name"},{title:"Warehouse",dataKey:"warehouse_name"},{title:"Purchase",dataKey:"purchase_ref"},{title:"Total",dataKey:"GrandTotal"},{title:"Paid",dataKey:"paid_amount"},{title:"Due",dataKey:"due"},{title:"Status",dataKey:"statut"},{title:"Status Payment",dataKey:"payment_status"}],this.returns_purchase),t.text("Purchase Returns",40,25),t.save("purchase_returns.pdf")},Sale_Return_PDF:function(){var t=new a.default("p","pt");t.autoTable([{title:"Ref",dataKey:"Ref"},{title:"Client",dataKey:"client_name"},{title:"sale_ref",dataKey:"sale_ref"},{title:"Warehouse",dataKey:"warehouse_name"},{title:"Total",dataKey:"GrandTotal"},{title:"Paid",dataKey:"paid_amount"},{title:"Due",dataKey:"due"},{title:"Status",dataKey:"statut"},{title:"Status Payment",dataKey:"payment_status"}],this.returns_sale),t.text("Sales Return List",40,25),t.save("Sales Return.pdf")},Sales_PDF:function(){var t=new a.default("p","pt");t.autoTable([{title:"Ref",dataKey:"Ref"},{title:"Client",dataKey:"client_name"},{title:"Warehouse",dataKey:"warehouse_name"},{title:"Status",dataKey:"statut"},{title:"Total",dataKey:"GrandTotal"},{title:"Paid",dataKey:"paid_amount"},{title:"Due",dataKey:"due"},{title:"Status Payment",dataKey:"payment_status"},{title:"Shipping Status",dataKey:"shipping_status"}],this.sales),t.text("Sale List",40,25),t.save("Sale_List.pdf")},Quotation_PDF:function(){var t=new a.default("p","pt");t.autoTable([{title:"Date",dataKey:"date"},{title:"Ref",dataKey:"Ref"},{title:"Client",dataKey:"client_name"},{title:"Warehouse",dataKey:"warehouse_name"},{title:"Status",dataKey:"statut"},{title:"Total",dataKey:"GrandTotal"}],this.quotations),t.text("Quotation List",40,25),t.save("Quotation_List.pdf")},formatNumber:function(t,e){var n=("string"==typeof t?t:t.toString()).split(".");if(e<=0)return n[0];var i=n[1]||"";if(i.length>e)return"".concat(n[0],".").concat(i.substr(0,e));for(;i.length<e;)i+="0";return"".concat(n[0],".").concat(i)},Selected_Warehouse:function(t){var e=this;this.isLoading=!0,null===t&&(this.Filter_warehouse=""),this.Get_Reports(),this.Get_Sales(1),this.Get_Quotations(1),this.Get_Returns_Sale(1),this.Get_Returns_Purchase(1),this.Get_Expenses(1),setTimeout((function(){e.isLoading=!1}),1e3)},Get_Reports:function(){var t=this;axios.get("report/warehouse_report?warehouse_id="+this.Filter_warehouse).then((function(e){t.total=e.data.data,t.warehouses=e.data.warehouses})).catch((function(t){}))},PageChangeSales:function(t){var e=t.currentPage;this.sales_page!==e&&this.Get_Sales(e)},onPerPageChangeSales:function(t){var e=t.currentPerPage;this.limit_sales!==e&&(this.limit_sales=e,this.Get_Sales(1))},onSearch_Sales:function(t){this.search_sale=t.searchTerm,this.Get_Sales(1)},Get_Sales:function(t){var e=this;axios.get("report/sales_warehouse?page="+t+"&limit="+this.limit_sales+"&warehouse_id="+this.Filter_warehouse+"&search="+this.search_sale).then((function(t){e.sales=t.data.sales,e.totalRows_sales=t.data.totalRows,setTimeout((function(){e.isLoading=!1}),500)})).catch((function(t){setTimeout((function(){e.isLoading=!1}),500)}))},PageChangeQuotation:function(t){var e=t.currentPage;this.quotations_page!==e&&this.Get_Quotations(e)},onPerPageChangeQuotation:function(t){var e=t.currentPerPage;this.limit_quotations!==e&&(this.limit_quotations=e,this.Get_Quotations(1))},onSearch_Quotations:function(t){this.search_quotation=t.searchTerm,this.Get_Quotations(1)},Get_Quotations:function(t){var e=this;axios.get("report/quotations_warehouse?page="+t+"&limit="+this.limit_quotations+"&warehouse_id="+this.Filter_warehouse+"&search="+this.search_quotation).then((function(t){e.quotations=t.data.quotations,e.totalRows_quotations=t.data.totalRows})).catch((function(t){}))},PageChangeReturn_Customer:function(t){var e=t.currentPage;this.Return_sale_page!==e&&this.Get_Returns_Sale(e)},onPerPageChangeReturn_Sale:function(t){var e=t.currentPerPage;this.limit_returns_Sale!==e&&(this.limit_returns_Sale=e,this.Get_Returns_Sale(1))},onSearch_Return_Sale:function(t){this.search_return_Sale=t.searchTerm,this.Get_Returns_Sale(1)},Get_Returns_Sale:function(t){var e=this;axios.get("report/returns_sale_warehouse?page="+t+"&limit="+this.limit_returns_Sale+"&warehouse_id="+this.Filter_warehouse+"&search="+this.search_return_Sale).then((function(t){e.returns_sale=t.data.returns_sale,e.totalRows_Return_sale=t.data.totalRows})).catch((function(t){}))},PageChangeReturn_Purchase:function(t){var e=t.currentPage;this.Return_purchase_page!==e&&this.Get_Returns_Purchase(e)},onPerPageChangeReturn_Purchase:function(t){var e=t.currentPerPage;this.limit_returns_Purchase!==e&&(this.limit_returns_Purchase=e,this.Get_Returns_Purchase(1))},onSearch_Return_Purchase:function(t){this.search_return_Purchase=t.searchTerm,this.Get_Returns_Purchase(1)},Get_Returns_Purchase:function(t){var e=this;axios.get("report/returns_purchase_warehouse?page="+t+"&limit="+this.limit_returns_Purchase+"&warehouse_id="+this.Filter_warehouse+"&search="+this.search_return_Purchase).then((function(t){e.returns_purchase=t.data.returns_purchase,e.totalRows_Return_purchase=t.data.totalRows})).catch((function(t){}))},PageChange_Expense:function(t){var e=t.currentPage;this.Expense_page!==e&&this.Get_Expenses(e)},onPerPageChange_Expense:function(t){var e=t.currentPerPage;this.limit_expenses!==e&&(this.limit_expenses=e,this.Get_Expenses(1))},onSearch_Expense:function(t){this.search_expense=t.searchTerm,this.Get_Expenses(1)},Get_Expenses:function(t){var e=this;axios.get("report/expenses_warehouse?page="+t+"&limit="+this.limit_expenses+"&warehouse_id="+this.Filter_warehouse+"&search="+this.search_expense).then((function(t){e.expenses=t.data.expenses,e.totalRows_Expense=t.data.totalRows})).catch((function(t){}))},report_with_echart:function(){var t=this;axios.get("report/warhouse_count_stock").then((function(e){var n=e.data;t.Stock_Count={color:["#6D28D9","#A78BFA","#7C3AED","#8B5CF6","#C4B5FD"],tooltip:{show:!0,backgroundColor:"rgba(0, 0, 0, .8)",formatter:function(t){return"(".concat(t.value," Items)<br />\n                        (").concat(t.data.value1," Quantity)")}},legend:{orient:"vertical",left:"left",data:n.warehouses},series:[{name:"Warehouse Stock",type:"pie",radius:"50%",center:"50%",data:n.stock_count,itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},t.Stock_value={color:["#6D28D9","#A78BFA","#7C3AED","#8B5CF6","#C4B5FD"],tooltip:{show:!0,backgroundColor:"rgba(0, 0, 0, .8)",formatter:function(t){return"(Stock Value by Price : ".concat(t.value,")<br />\n                        (Stock Value by Cost : ").concat(t.data.value1,")")}},legend:{orient:"vertical",left:"left",data:n.warehouses},series:[{name:"Warehouse Stock",type:"pie",radius:"50%",center:"50%",data:n.stock_value,itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}})).catch((function(t){}))}},created:function(){this.report_with_echart(),this.Get_Reports(),this.Get_Sales(1),this.Get_Quotations(1),this.Get_Returns_Sale(1),this.Get_Returns_Purchase(1),this.Get_Expenses(1)}};const c=(0,n(14486).A)(h,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-content"},[e("breadcumb",{attrs:{page:t.$t("Warehouse_report"),folder:t.$t("Reports")}}),t._v(" "),t.isLoading?e("div",{staticClass:"loading_page spinner spinner-primary mr-3"}):t._e(),t._v(" "),t.isLoading?t._e():e("b-row",{staticClass:"justify-content-center mb-5"},[e("b-col",{attrs:{lg:"3",md:"6",sm:"12"}},[e("b-form-group",{attrs:{label:t.$t("warehouse")}},[e("v-select",{attrs:{reduce:function(t){return t.value},placeholder:t.$t("All_Warehouses"),options:t.warehouses.map((function(t){return{label:t.name,value:t.id}}))},on:{input:t.Selected_Warehouse},model:{value:t.Filter_warehouse,callback:function(e){t.Filter_warehouse=e},expression:"Filter_warehouse"}})],1)],1)],1),t._v(" "),t.isLoading?t._e():e("b-row",[e("b-col",{attrs:{lg:"3",md:"6",sm:"12"}},[e("b-card",{staticClass:"card-icon-bg card-icon-bg-primary o-hidden mb-30 text-center"},[e("i",{staticClass:"i-Full-Cart"}),t._v(" "),e("div",{staticClass:"content"},[e("p",{staticClass:"text-muted mt-2 mb-0"},[t._v(t._s(t.$t("Sales")))]),t._v(" "),e("p",{staticClass:"text-primary text-24 line-height-1 mb-2"},[t._v(t._s(t.total.sales))])])])],1),t._v(" "),e("b-col",{attrs:{lg:"3",md:"6",sm:"12"}},[e("b-card",{staticClass:"card-icon-bg card-icon-bg-primary o-hidden mb-30 text-center"},[e("i",{staticClass:"i-Checkout-Basket"}),t._v(" "),e("div",{staticClass:"content"},[e("p",{staticClass:"text-muted mt-2 mb-0"},[t._v(t._s(t.$t("Purchases")))]),t._v(" "),e("p",{staticClass:"text-primary text-24 line-height-1 mb-2"},[t._v(t._s(t.total.purchases))])])])],1),t._v(" "),e("b-col",{attrs:{lg:"3",md:"6",sm:"12"}},[e("b-card",{staticClass:"card-icon-bg card-icon-bg-primary o-hidden mb-30 text-center"},[e("i",{staticClass:"i-Turn-Left"}),t._v(" "),e("div",{staticClass:"content"},[e("p",{staticClass:"text-muted mt-2 mb-0"},[t._v(t._s(t.$t("PurchasesReturn")))]),t._v(" "),e("p",{staticClass:"text-primary text-24 line-height-1 mb-2"},[t._v(t._s(t.total.ReturnPurchase))])])])],1),t._v(" "),e("b-col",{attrs:{lg:"3",md:"6",sm:"12"}},[e("b-card",{staticClass:"card-icon-bg card-icon-bg-primary o-hidden mb-30 text-center"},[e("i",{staticClass:"i-Turn-Right"}),t._v(" "),e("div",{staticClass:"content"},[e("p",{staticClass:"text-muted mt-2 mb-0"},[t._v(t._s(t.$t("SalesReturn")))]),t._v(" "),e("p",{staticClass:"text-primary text-24 line-height-1 mb-2"},[t._v(t._s(t.total.ReturnSale))])])])],1)],1),t._v(" "),t.isLoading?t._e():e("b-row",[e("b-col",{attrs:{md:"12"}},[e("b-card",{staticClass:"card mb-30",attrs:{"no-body":"","header-bg-variant":"transparent "}},[e("b-tabs",{attrs:{"active-nav-item-class":"nav nav-tabs","content-class":"mt-3"}},[e("b-tab",{attrs:{title:t.$t("Quotations")}},[e("vue-good-table",{attrs:{mode:"remote",columns:t.columns_quotations,totalRows:t.totalRows_quotations,rows:t.quotations,"search-options":{placeholder:t.$t("Search_this_table"),enabled:!0},"pagination-options":{enabled:!0,mode:"records",nextLabel:"next",prevLabel:"prev"},styleClass:"order-table vgt-table mt-2"},on:{"on-page-change":t.PageChangeQuotation,"on-per-page-change":t.onPerPageChangeQuotation,"on-search":t.onSearch_Quotations},scopedSlots:t._u([{key:"table-row",fn:function(n){return["statut"==n.column.field?e("div",["sent"==n.row.statut?e("span",{staticClass:"badge badge-outline-success"},[t._v(t._s(t.$t("Sent")))]):e("span",{staticClass:"badge badge-outline-info"},[t._v(t._s(t.$t("Pending")))])]):"Ref"==n.column.field?e("div",[e("router-link",{attrs:{to:"/app/quotations/detail/"+n.row.id}},[e("span",{staticClass:"ul-btn__text ml-1"},[t._v(t._s(n.row.Ref))])])],1):t._e()]}}],null,!1,1470976303)},[e("div",{staticClass:"mt-2 mb-3",attrs:{slot:"table-actions"},slot:"table-actions"},[e("b-button",{attrs:{size:"sm",variant:"outline-success ripple m-1"},on:{click:function(e){return t.Quotation_PDF()}}},[e("i",{staticClass:"i-File-Copy"}),t._v(" PDF\n              ")])],1)])],1),t._v(" "),e("b-tab",{attrs:{title:t.$t("Sales")}},[e("vue-good-table",{attrs:{mode:"remote",columns:t.columns_sales,totalRows:t.totalRows_sales,rows:t.sales,"search-options":{placeholder:t.$t("Search_this_table"),enabled:!0},"pagination-options":{enabled:!0,mode:"records",nextLabel:"next",prevLabel:"prev"},styleClass:"order-table vgt-table mt-2"},on:{"on-page-change":t.PageChangeSales,"on-per-page-change":t.onPerPageChangeSales,"on-search":t.onSearch_Sales},scopedSlots:t._u([{key:"table-row",fn:function(n){return["statut"==n.column.field?e("div",["completed"==n.row.statut?e("span",{staticClass:"badge badge-outline-success"},[t._v(t._s(t.$t("complete")))]):"pending"==n.row.statut?e("span",{staticClass:"badge badge-outline-info"},[t._v(t._s(t.$t("Pending")))]):e("span",{staticClass:"badge badge-outline-warning"},[t._v(t._s(t.$t("Ordered")))])]):"payment_status"==n.column.field?e("div",["paid"==n.row.payment_status?e("span",{staticClass:"badge badge-outline-success"},[t._v(t._s(t.$t("Paid")))]):"partial"==n.row.payment_status?e("span",{staticClass:"badge badge-outline-primary"},[t._v(t._s(t.$t("partial")))]):e("span",{staticClass:"badge badge-outline-warning"},[t._v(t._s(t.$t("Unpaid")))])]):"shipping_status"==n.column.field?e("div",["ordered"==n.row.shipping_status?e("span",{staticClass:"badge badge-outline-warning"},[t._v(t._s(t.$t("Ordered")))]):"packed"==n.row.shipping_status?e("span",{staticClass:"badge badge-outline-info"},[t._v(t._s(t.$t("Packed")))]):"shipped"==n.row.shipping_status?e("span",{staticClass:"badge badge-outline-secondary"},[t._v(t._s(t.$t("Shipped")))]):"delivered"==n.row.shipping_status?e("span",{staticClass:"badge badge-outline-success"},[t._v(t._s(t.$t("Delivered")))]):"cancelled"==n.row.shipping_status?e("span",{staticClass:"badge badge-outline-danger"},[t._v(t._s(t.$t("Cancelled")))]):t._e()]):"Ref"==n.column.field?e("div",[e("router-link",{attrs:{to:"/app/sales/detail/"+n.row.id}},[e("span",{staticClass:"ul-btn__text ml-1"},[t._v(t._s(n.row.Ref))])])],1):t._e()]}}],null,!1,4131761180)},[e("div",{staticClass:"mt-2 mb-3",attrs:{slot:"table-actions"},slot:"table-actions"},[e("b-button",{attrs:{size:"sm",variant:"outline-success ripple m-1"},on:{click:function(e){return t.Sales_PDF()}}},[e("i",{staticClass:"i-File-Copy"}),t._v(" PDF\n              ")])],1)])],1),t._v(" "),e("b-tab",{attrs:{title:t.$t("SalesReturn")}},[e("vue-good-table",{attrs:{mode:"remote",columns:t.columns_returns_sale,totalRows:t.totalRows_Return_sale,rows:t.returns_sale,"pagination-options":{enabled:!0,mode:"records",nextLabel:"next",prevLabel:"prev"},"search-options":{placeholder:t.$t("Search_this_table"),enabled:!0},styleClass:"order-table vgt-table mt-2"},on:{"on-page-change":t.PageChangeReturn_Customer,"on-per-page-change":t.onPerPageChangeReturn_Sale,"on-search":t.onSearch_Return_Sale},scopedSlots:t._u([{key:"table-row",fn:function(n){return["statut"==n.column.field?e("div",["received"==n.row.statut?e("span",{staticClass:"badge badge-outline-success"},[t._v(t._s(t.$t("Received")))]):e("span",{staticClass:"badge badge-outline-info"},[t._v(t._s(t.$t("Pending")))])]):"payment_status"==n.column.field?e("div",["paid"==n.row.payment_status?e("span",{staticClass:"badge badge-outline-success"},[t._v(t._s(t.$t("Paid")))]):"partial"==n.row.payment_status?e("span",{staticClass:"badge badge-outline-primary"},[t._v(t._s(t.$t("partial")))]):e("span",{staticClass:"badge badge-outline-warning"},[t._v(t._s(t.$t("Unpaid")))])]):"Ref"==n.column.field?e("div",[e("router-link",{attrs:{to:"/app/sale_return/detail/"+n.row.id}},[e("span",{staticClass:"ul-btn__text ml-1"},[t._v(t._s(n.row.Ref))])])],1):"sale_ref"==n.column.field&&n.row.sale_id?e("div",[e("router-link",{attrs:{to:"/app/sales/detail/"+n.row.sale_id}},[e("span",{staticClass:"ul-btn__text ml-1"},[t._v(t._s(n.row.sale_ref))])])],1):t._e()]}}],null,!1,147045938)},[e("div",{staticClass:"mt-2 mb-3",attrs:{slot:"table-actions"},slot:"table-actions"},[e("b-button",{attrs:{size:"sm",variant:"outline-success ripple m-1"},on:{click:function(e){return t.Sale_Return_PDF()}}},[e("i",{staticClass:"i-File-Copy"}),t._v(" PDF\n              ")])],1)])],1),t._v(" "),e("b-tab",{attrs:{title:t.$t("PurchasesReturn")}},[e("vue-good-table",{attrs:{mode:"remote",columns:t.columns_returns_purchase,totalRows:t.totalRows_Return_purchase,rows:t.returns_purchase,"pagination-options":{enabled:!0,mode:"records",nextLabel:"next",prevLabel:"prev"},"search-options":{placeholder:t.$t("Search_this_table"),enabled:!0},styleClass:"order-table vgt-table mt-2"},on:{"on-page-change":t.PageChangeReturn_Purchase,"on-per-page-change":t.onPerPageChangeReturn_Purchase,"on-search":t.onSearch_Return_Purchase},scopedSlots:t._u([{key:"table-row",fn:function(n){return["statut"==n.column.field?e("div",["completed"==n.row.statut?e("span",{staticClass:"badge badge-outline-success"},[t._v(t._s(t.$t("complete")))]):e("span",{staticClass:"badge badge-outline-info"},[t._v(t._s(t.$t("Pending")))])]):"payment_status"==n.column.field?e("div",["paid"==n.row.payment_status?e("span",{staticClass:"badge badge-outline-success"},[t._v(t._s(t.$t("Paid")))]):"partial"==n.row.payment_status?e("span",{staticClass:"badge badge-outline-primary"},[t._v(t._s(t.$t("partial")))]):e("span",{staticClass:"badge badge-outline-warning"},[t._v(t._s(t.$t("Unpaid")))])]):"Ref"==n.column.field?e("div",[e("router-link",{attrs:{to:"/app/purchase_return/detail/"+n.row.id}},[e("span",{staticClass:"ul-btn__text ml-1"},[t._v(t._s(n.row.Ref))])])],1):"purchase_ref"==n.column.field&&n.row.purchase_id?e("div",[e("router-link",{attrs:{to:"/app/purchases/detail/"+n.row.purchase_id}},[e("span",{staticClass:"ul-btn__text ml-1"},[t._v(t._s(n.row.purchase_ref))])])],1):t._e()]}}],null,!1,65432374)},[e("div",{staticClass:"mt-2 mb-3",attrs:{slot:"table-actions"},slot:"table-actions"},[e("b-button",{attrs:{size:"sm",variant:"outline-success ripple m-1"},on:{click:function(e){return t.Returns_Purchase_PDF()}}},[e("i",{staticClass:"i-File-Copy"}),t._v(" PDF\n              ")])],1)])],1),t._v(" "),e("b-tab",{attrs:{title:t.$t("Expenses")}},[e("vue-good-table",{attrs:{mode:"remote",columns:t.columns_Expense,totalRows:t.totalRows_Expense,rows:t.expenses,"pagination-options":{enabled:!0,mode:"records",nextLabel:"next",prevLabel:"prev"},"search-options":{placeholder:t.$t("Search_this_table"),enabled:!0},styleClass:"order-table vgt-table mt-2"},on:{"on-page-change":t.PageChange_Expense,"on-per-page-change":t.onPerPageChange_Expense,"on-search":t.onSearch_Expense}},[e("div",{staticClass:"mt-2 mb-3",attrs:{slot:"table-actions"},slot:"table-actions"},[e("b-button",{attrs:{size:"sm",variant:"outline-success ripple m-1"},on:{click:function(e){return t.Expense_PDF()}}},[e("i",{staticClass:"i-File-Copy"}),t._v(" PDF\n              ")])],1)])],1)],1)],1)],1)],1),t._v(" "),t.isLoading?t._e():e("b-row",{staticClass:"mt-3"},[e("b-col",{attrs:{lg:"6",md:"12",sm:"12"}},[e("b-card",{staticClass:"mb-30"},[e("h4",{staticClass:"card-title m-0"},[t._v(t._s(t.$t("Total_Items_Quantity")))]),t._v(" "),e("div",{staticClass:"chart-wrapper mt-3"},[e("v-chart",{attrs:{options:t.Stock_Count,autoresize:!0}})],1)])],1),t._v(" "),e("b-col",{attrs:{col:"",lg:"6",md:"12",sm:"12"}},[e("b-card",{staticClass:"mb-30"},[e("h4",{staticClass:"card-title m-0"},[t._v(t._s(t.$t("Value_by_Cost_and_Price")))]),t._v(" "),e("div",{staticClass:"chart-wrapper mt-3"},[e("v-chart",{attrs:{options:t.Stock_value,autoresize:!0}})],1)])],1)],1)],1)}),[],!1,null,null,null).exports},42073:(t,e,n)=>{var i=n(1200),r=n(36112),a=n(38051),o=n(31615),s=n(95289),l=function(t){a.call(this,t),r.call(this,t),o.call(this,t),this.id=t.id||i()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(s.isObject(t))for(var n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},s.mixin(l,o),s.mixin(l,a),s.mixin(l,r);var u=l;t.exports=u},16713:(t,e,n)=>{var i=n(95289),r=n(31138),a=n(89944),o=n(36112),s=n(88665),l=n(15174),u="silent";function h(){s.stop(this.event)}function c(){}c.prototype.dispose=function(){};var f=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],d=function(t,e,n,i){o.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new c,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,a.call(this),this.setHandlerProxy(n)};function p(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i,r=t;r;){if(r.clipPath&&!r.clipPath.contain(e,n))return!1;r.silent&&(i=!0),r=r.parent}return!i||u}return!1}function g(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}d.prototype={constructor:d,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(i.each(f,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,n=t.zrY,i=g(this,e,n),r=this._hovered,a=r.target;a&&!a.__zr&&(a=(r=this.findHover(r.x,r.y)).target);var o=this._hovered=i?{x:e,y:n}:this.findHover(e,n),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(o,"mousemove",t),s&&s!==a&&this.dispatchToElement(o,"mouseover",t)},mouseout:function(t){var e=t.zrEventControl,n=t.zrIsToLocalDOM;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&!n&&this.trigger("globalout",{type:"globalout",event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,a=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:h}}(e,t,n);i&&(i[r]&&(a.cancelBubble=i[r].call(i,a)),i.trigger(e,a),i=i.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,a),t.trigger&&t.trigger(e,a)})))}},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),r={x:t,y:e},a=i.length-1;a>=0;a--){var o;if(i[a]!==n&&!i[a].ignore&&(o=p(i[a],t,e))&&(!r.topTarget&&(r.topTarget=i[a]),o!==u)){r.target=i[a];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new l);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r,this.dispatchToElement({target:i.target},r,i.event)}}},i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){d.prototype[t]=function(e){var n,i,a=e.zrX,o=e.zrY,s=g(this,a,o);if("mouseup"===t&&s||(i=(n=this.findHover(a,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||r.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}})),i.mixin(d,o),i.mixin(d,a);var m=d;t.exports=m},93288:(t,e,n)=>{var i=n(95289),r=n(49999).devicePixelRatio,a=n(96727),o=n(94364);function s(){return!1}function l(t,e,n){var r=i.createCanvas(),a=e.getWidth(),o=e.getHeight(),s=r.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=a+"px",s.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=a*n,r.height=o*n,r}var u=function(t,e,n){var a;n=n||r,"string"==typeof t?a=l(t,e,n):i.isObject(t)&&(t=(a=t).id),this.id=t,this.dom=a;var o=a.style;o&&(a.onselectstart=s,o["-webkit-user-select"]="none",o["user-select"]="none",o["-webkit-touch-callout"]="none",o["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",o.padding=0,o.margin=0,o["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};u.prototype={constructor:u,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=l("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,a&&(a.width=t*n,a.height=e*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(t,e){var n,i=this.dom,r=this.ctx,s=i.width,l=i.height,u=(e=e||this.clearColor,this.motionBlur&&!t),h=this.lastFrameAlpha,c=this.dpr;(u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/c,l/c)),r.clearRect(0,0,s,l),e&&"transparent"!==e)&&(e.colorStops?(n=e.__canvasGradient||a.getGradient(r,e,{x:0,y:0,width:s,height:l}),e.__canvasGradient=n):e.image&&(n=o.prototype.getCanvasPattern.call(e,r)),r.save(),r.fillStyle=n||e,r.fillRect(0,0,s,l),r.restore());if(u){var f=this.domBack;r.save(),r.globalAlpha=h,r.drawImage(f,0,0,s,l),r.restore()}}};var h=u;t.exports=h},97518:(t,e,n)=>{var i=n(49999).devicePixelRatio,r=n(95289),a=n(19559),o=n(39587),s=n(33863),l=n(93288),u=n(39058),h=n(1635),c=n(87190),f=1e5,d=314159,p=.01;function g(t){return parseInt(t,10)}var m=new o(0,0,0,0),v=new o(0,0,0,0);var y=function(t,e,n){this.type="canvas";var a=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=r.extend({},n||{}),this.dpr=n.devicePixelRatio||i,this._singleCanvas=a,this.root=t;var o=t.style;o&&(o["-webkit-tap-highlight-color"]="transparent",o["-webkit-user-select"]=o["user-select"]=o["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var s=this._zlevelList=[],u=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,a){var h=t.width,c=t.height;null!=n.width&&(h=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,t.width=h*this.dpr,t.height=c*this.dpr,this._width=h,this._height=c;var f=new l(t,this,this.dpr);f.__builtin__=!0,f.initContext(),u[314159]=f,f.zlevel=d,s.push(d),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var p=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(p)}this._hoverlayer=null,this._hoverElements=[]};y.prototype={constructor:y,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var i=0;i<n.length;i++){var r=n[i],a=this._layers[r];if(!a.__builtin__&&a.refresh){var o=0===i?this._backgroundColor:null;a.refresh(o)}}return this.refreshHover(),this},addHover:function(t,e){if(!t.__hoverMir){var n=new t.constructor({style:t.style,shape:t.shape,z:t.z,z2:t.z2,silent:t.silent});return n.__from=t,t.__hoverMir=n,e&&n.setStyle(e),this._hoverElements.push(n),n}},removeHover:function(t){var e=t.__hoverMir,n=this._hoverElements,i=r.indexOf(n,e);i>=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n<e.length;n++){var i=e[n].__from;i&&(i.__hoverMir=null)}e.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){s(t,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(f));var i={};n.ctx.save();for(var r=0;r<e;){var a=t[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a.transform=o.transform,a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,n,!0,i))):(t.splice(r,1),o.__hoverMir=null,e--)}n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(f)},_paintList:function(t,e,n){if(this._redrawId===n){e=e||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),!i){var r=this;u((function(){r._paintList(t,e,n)}))}}},_compositeManually:function(){var t=this.getLayer(d).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},_doPaintList:function(t,e){for(var n=[],i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];(l=this._layers[a]).__builtin__&&l!==this._hoverlayer&&(l.__dirty||e)&&n.push(l)}for(var o=!0,s=0;s<n.length;s++){var l,u=(l=n[s]).ctx,h={};u.save();var f=e?l.__startIndex:l.__drawIndex,d=!e&&l.incremental&&Date.now,p=d&&Date.now(),g=l.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,g);else if(f===l.__startIndex){var m=t[f];m.incremental&&m.notClear&&!e||l.clear(!1,g)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);for(var v=f;v<l.__endIndex;v++){var y=t[v];if(this._doPaintEl(y,l,e,h),y.__dirty=y.__dirtyText=!1,d)if(Date.now()-p>15)break}l.__drawIndex=v,l.__drawIndex<l.__endIndex&&(o=!1),h.prevElClipPaths&&u.restore(),u.restore()}return c.wxa&&r.each(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),o},_doPaintEl:function(t,e,n,i){var r=e.ctx,a=t.transform;if((e.__dirty||n)&&!t.invisible&&0!==t.style.opacity&&(!a||a[0]||a[3])&&(!t.culling||!function(t,e,n){return m.copy(t.getBoundingRect()),t.transform&&m.applyTransform(t.transform),v.width=e,v.height=n,!m.intersect(v)}(t,this._width,this._height))){var o=t.__clipPaths,s=i.prevElClipPaths;s&&!function(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(o,s)||(s&&(r.restore(),i.prevElClipPaths=null,i.prevEl=null),o&&(r.save(),function(t,e){for(var n=0;n<t.length;n++){var i=t[n];i.setTransform(e),e.beginPath(),i.buildPath(e,i.shape),e.clip(),i.restoreTransform(e)}}(o,r),i.prevElClipPaths=o)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,i.prevEl||null),i.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=d);var n=this._layers[t];return n||((n=new l("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?r.merge(n,this._layerConfig[t],!0):this._layerConfig[t-p]&&r.merge(n,this._layerConfig[t-p],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},insertLayer:function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=null,s=-1,l=this._domRoot;if(n[t])a("ZLevel "+t+" has been used already");else if(function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>i[0]){for(s=0;s<r-1&&!(i[s]<t&&i[s+1]>t);s++);o=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(o){var u=o.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom)}else a("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i<r.length;i++)n=r[i],t.call(e,this._layers[n],n)},eachBuiltinLayer:function(t,e){var n,i,r,a=this._zlevelList;for(r=0;r<a.length;r++)i=a[r],(n=this._layers[i]).__builtin__&&t.call(e,n,i)},eachOtherLayer:function(t,e){var n,i,r,a=this._zlevelList;for(r=0;r<a.length;r++)i=a[r],(n=this._layers[i]).__builtin__||t.call(e,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var i,r=null,o=0;for(n=0;n<t.length;n++){var s,l,u=(s=t[n]).zlevel;i!==u&&(i=u,o=0),s.incremental?((l=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,o=1):l=this.getLayer(u+(o>0?p:0),this._needsManuallyCompositing),l.__builtin__||a("ZLevel "+u+" has been used by unkown layer "+l.id),l!==r&&(l.__used=!0,l.__startIndex!==n&&(l.__dirty=!0),l.__startIndex=n,l.incremental?l.__drawIndex=-1:l.__drawIndex=n,e(n),r=l),s.__dirty&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=n))}e(n),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?r.merge(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+p){var o=this._layers[a];r.merge(o,n[t],!0)}}}},delLayer:function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(r.indexOf(n,t),1))},resize:function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||e!==this._height){for(var a in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,e);r.each(this._progressiveLayers,(function(n){n.resize(t,e)})),this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(d).resize(t,e)}return this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new l("image",this,t.pixelRatio||this.dpr);if(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,i=e.dom.height,r=e.ctx;this.eachLayer((function(t){t.__builtin__?r.drawImage(t.dom,0,0,n,i):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())}))}else for(var a={},o=this.storage.getDisplayList(!0),s=0;s<o.length;s++){var u=o[s];this._doPaintEl(u,e,!0,a)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[i]||g(s[n])||g(o.style[n]))-(g(s[r])||0)-(g(s[a])||0)|0},pathToImage:function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),r=t.getBoundingRect(),a=t.style,o=a.shadowBlur*e,s=a.shadowOffsetX*e,l=a.shadowOffsetY*e,u=a.hasStroke()?a.lineWidth:0,c=Math.max(u/2,-s+o),f=Math.max(u/2,s+o),d=Math.max(u/2,-l+o),p=Math.max(u/2,l+o),g=r.width+c+f,m=r.height+d+p;n.width=g*e,n.height=m*e,i.scale(e,e),i.clearRect(0,0,g,m),i.dpr=e;var v={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[c-r.x,d-r.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(i);var y=new h({style:{x:0,y:0,image:n}});return null!=v.position&&(y.position=t.position=v.position),null!=v.rotation&&(y.rotation=t.rotation=v.rotation),null!=v.scale&&(y.scale=t.scale=v.scale),y}};var _=y;t.exports=_},65728:(t,e,n)=>{var i=n(95289),r=n(87190),a=n(75738),o=n(33863);function s(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,r.canvasSupported&&o(n,s)},_updateAndAddDisplayable:function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var i=t.clipPath;if(i){e=e?e.slice():[];for(var r=i,a=t;r;)r.parent=a,r.updateTransform(),e.push(r),a=r,r=r.clipPath}if(t.isGroup){for(var o=t._children,s=0;s<o.length;s++){var l=o[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,n)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof a&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots.length;e++){var n=this._roots[e];n instanceof a&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array){e=0;for(var r=t.length;e<r;e++)this.delRoot(t[e])}else{var o=i.indexOf(this._roots,t);o>=0&&(this.delFromStorage(t),this._roots.splice(o,1),t instanceof a&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var u=l;t.exports=u},9874:(t,e,n)=>{var i=n(95289),r=n(88665).Dispatcher,a=n(39058),o=n(56831),s=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,r.call(this)};s.prototype={constructor:s,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),n=0;n<e.length;n++)this.addClip(e[n])},removeClip:function(t){var e=i.indexOf(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n<e.length;n++)this.removeClip(e[n]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,n=this._clips,i=n.length,r=[],a=[],o=0;o<i;o++){var s=n[o],l=s.step(t,e);l&&(r.push(l),a.push(s))}for(o=0;o<i;)n[o]._needsRemove?(n[o]=n[i-1],n.pop(),i--):o++;i=r.length;for(o=0;o<i;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){var t=this;this._running=!0,a((function e(){t._running&&(a(e),!t._paused&&t._update())}))},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(t,e){var n=new o(t,(e=e||{}).loop,e.getter,e.setter);return this.addAnimator(n),n}},i.mixin(s,r);var l=s;t.exports=l},56831:(t,e,n)=>{var i=n(90132),r=n(56607),a=n(95289).isArrayLike,o=Array.prototype.slice;function s(t,e){return t[e]}function l(t,e,n){t[e]=n}function u(t,e,n){return(e-t)*n+t}function h(t,e,n){return n>.5?e:t}function c(t,e,n,i,r){var a=t.length;if(1===r)for(var o=0;o<a;o++)i[o]=u(t[o],e[o],n);else{var s=a&&t[0].length;for(o=0;o<a;o++)for(var l=0;l<s;l++)i[o][l]=u(t[o][l],e[o][l],n)}}function f(t,e,n){var i=t.length,r=e.length;if(i!==r)if(i>r)t.length=r;else for(var a=i;a<r;a++)t.push(1===n?e[a]:o.call(e[a]));var s=t[0]&&t[0].length;for(a=0;a<t.length;a++)if(1===n)isNaN(t[a])&&(t[a]=e[a]);else for(var l=0;l<s;l++)isNaN(t[a][l])&&(t[a][l]=e[a][l])}function d(t,e,n){if(t===e)return!0;var i=t.length;if(i!==e.length)return!1;if(1===n){for(var r=0;r<i;r++)if(t[r]!==e[r])return!1}else{var a=t[0].length;for(r=0;r<i;r++)for(var o=0;o<a;o++)if(t[r][o]!==e[r][o])return!1}return!0}function p(t,e,n,i,r,a,o,s,l){var u=t.length;if(1===l)for(var h=0;h<u;h++)s[h]=g(t[h],e[h],n[h],i[h],r,a,o);else{var c=t[0].length;for(h=0;h<u;h++)for(var f=0;f<c;f++)s[h][f]=g(t[h][f],e[h][f],n[h][f],i[h][f],r,a,o)}}function g(t,e,n,i,r,a,o){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*o+(-3*(e-n)-2*s-l)*a+s*r+e}function m(t){if(a(t)){var e=t.length;if(a(t[0])){for(var n=[],i=0;i<e;i++)n.push(o.call(t[i]));return n}return o.call(t)}return t}function v(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function y(t,e,n,o,s,l){var m=t._getter,y=t._setter,_="spline"===e,b=o.length;if(b){var x,w=o[0].value,S=a(w),A=!1,L=!1,C=S?function(t){var e=t[t.length-1].value;return a(e&&e[0])?2:1}(o):0;o.sort((function(t,e){return t.time-e.time})),x=o[b-1].time;for(var P=[],N=[],k=o[0].value,I=!0,M=0;M<b;M++){P.push(o[M].time/x);var T=o[M].value;if(S&&d(T,k,C)||!S&&T===k||(I=!1),k=T,"string"==typeof T){var D=r.parse(T);D?(T=D,A=!0):L=!0}N.push(T)}if(l||!I){var O=N[b-1];for(M=0;M<b-1;M++)S?f(N[M],O,C):!isNaN(N[M])||isNaN(O)||L||A||(N[M]=O);S&&f(m(t._target,s),O,C);var F,R,E,B,z,j=0,q=0;if(A)var H=[0,0,0,0];var W=new i({target:t._target,life:x,loop:t._loop,delay:t._delay,onframe:function(t,e){var n;if(e<0)n=0;else if(e<q){for(n=Math.min(j+1,b-1);n>=0&&!(P[n]<=e);n--);n=Math.min(n,b-2)}else{for(n=j;n<b&&!(P[n]>e);n++);n=Math.min(n-1,b-2)}j=n,q=e;var i=P[n+1]-P[n];if(0!==i)if(F=(e-P[n])/i,_)if(E=N[n],R=N[0===n?n:n-1],B=N[n>b-2?b-1:n+1],z=N[n>b-3?b-1:n+2],S)p(R,E,B,z,F,F*F,F*F*F,m(t,s),C);else{if(A)r=p(R,E,B,z,F,F*F,F*F*F,H,1),r=v(H);else{if(L)return h(E,B,F);r=g(R,E,B,z,F,F*F,F*F*F)}y(t,s,r)}else if(S)c(N[n],N[n+1],F,m(t,s),C);else{var r;if(A)c(N[n],N[n+1],F,H,1),r=v(H);else{if(L)return h(N[n],N[n+1],F);r=u(N[n],N[n+1],F)}y(t,s,r)}},ondestroy:n});return e&&"spline"!==e&&(W.easing=e),W}}}var _=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||s,this._setter=i||l,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};_.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:m(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,n=0;n<e;n++)t[n].call(this)},start:function(t,e){var n,i=this,r=0,a=function(){--r||i._doneCallback()};for(var o in this._tracks)if(this._tracks.hasOwnProperty(o)){var s=y(this,t,a,this._tracks[o],o,e);s&&(this._clipList.push(s),r++,this.animation&&this.animation.addClip(s),n=s)}if(n){var l=n.onframe;n.onframe=function(t,e){l(t,e);for(var n=0;n<i._onframeList.length;n++)i._onframeList[n](t,e)}}return r||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,n=this.animation,i=0;i<e.length;i++){var r=e[i];t&&r.onframe(this._target,1),n&&n.removeClip(r)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}};var b=_;t.exports=b},90132:(t,e,n)=>{var i=n(23003);function r(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}r.prototype={constructor:r,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var n=(t-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var r=this.easing,a="string"==typeof r?i[r]:r,o="function"==typeof a?a(n):n;return this.fire("frame",o),1===n?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){this[t="on"+t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var a=r;t.exports=a},23003:t=>{var e={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-e.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*e.bounceIn(2*t):.5*e.bounceOut(2*t-1)+.5}},n=e;t.exports=n},39058:t=>{var e="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)};t.exports=e},49999:(t,e)=>{var n=1;"undefined"!=typeof window&&(n=Math.max(window.devicePixelRatio||1,1));var i=n;e.debugMode=0,e.devicePixelRatio=i},83602:(t,e,n)=>{var i=n(57624).normalizeRadian,r=2*Math.PI;e.containStroke=function(t,e,n,a,o,s,l,u,h){if(0===l)return!1;var c=l;u-=t,h-=e;var f=Math.sqrt(u*u+h*h);if(f-c>n||f+c<n)return!1;if(Math.abs(a-o)%r<1e-4)return!0;if(s){var d=a;a=i(o),o=i(d)}else a=i(a),o=i(o);a>o&&(o+=r);var p=Math.atan2(h,u);return p<0&&(p+=r),p>=a&&p<=o||p+r>=a&&p+r<=o}},94084:(t,e,n)=>{var i=n(35574);e.containStroke=function(t,e,n,r,a,o,s,l,u,h,c){if(0===u)return!1;var f=u;return!(c>e+f&&c>r+f&&c>o+f&&c>l+f||c<e-f&&c<r-f&&c<o-f&&c<l-f||h>t+f&&h>n+f&&h>a+f&&h>s+f||h<t-f&&h<n-f&&h<a-f&&h<s-f)&&i.cubicProjectPoint(t,e,n,r,a,o,s,l,h,c,null)<=f/2}},52998:(t,e)=>{e.containStroke=function(t,e,n,i,r,a,o){if(0===r)return!1;var s=r,l=0;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>n+s||a<t-s&&a<n-s)return!1;if(t===n)return Math.abs(a-t)<=s/2;var u=(l=(e-i)/(t-n))*a-o+(t*i-n*e)/(t-n);return u*u/(l*l+1)<=s/2*s/2}},70703:(t,e,n)=>{var i=n(17004),r=n(52998),a=n(94084),o=n(78788),s=n(83602),l=n(57624).normalizeRadian,u=n(35574),h=n(12462),c=i.CMD,f=2*Math.PI,d=1e-4;var p=[-1,-1,-1],g=[-1,-1];function m(t,e,n,i,r,a,o,s,l,h){if(h>e&&h>i&&h>a&&h>s||h<e&&h<i&&h<a&&h<s)return 0;var c,f=u.cubicRootAt(e,i,a,s,h,p);if(0===f)return 0;for(var d,m,v=0,y=-1,_=0;_<f;_++){var b=p[_],x=0===b||1===b?.5:1;u.cubicAt(t,n,r,o,b)<l||(y<0&&(y=u.cubicExtrema(e,i,a,s,g),g[1]<g[0]&&y>1&&(c=void 0,c=g[0],g[0]=g[1],g[1]=c),d=u.cubicAt(e,i,a,s,g[0]),y>1&&(m=u.cubicAt(e,i,a,s,g[1]))),2===y?b<g[0]?v+=d<e?x:-x:b<g[1]?v+=m<d?x:-x:v+=s<m?x:-x:b<g[0]?v+=d<e?x:-x:v+=s<d?x:-x)}return v}function v(t,e,n,i,r,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=u.quadraticRootAt(e,i,a,s,p);if(0===l)return 0;var h=u.quadraticExtremum(e,i,a);if(h>=0&&h<=1){for(var c=0,f=u.quadraticAt(e,i,a,h),d=0;d<l;d++){var g=0===p[d]||1===p[d]?.5:1;u.quadraticAt(t,n,r,p[d])<o||(p[d]<h?c+=f<e?g:-g:c+=a<f?g:-g)}return c}g=0===p[0]||1===p[0]?.5:1;return u.quadraticAt(t,n,r,p[0])<o?0:a<e?g:-g}function y(t,e,n,i,r,a,o,s){if((s-=e)>n||s<-n)return 0;var u=Math.sqrt(n*n-s*s);p[0]=-u,p[1]=u;var h=Math.abs(i-r);if(h<1e-4)return 0;if(h%f<1e-4){i=0,r=f;var c=a?1:-1;return o>=p[0]+t&&o<=p[1]+t?c:0}if(a){u=i;i=l(r),r=l(u)}else i=l(i),r=l(r);i>r&&(r+=f);for(var d=0,g=0;g<2;g++){var m=p[g];if(m+t>o){var v=Math.atan2(s,m);c=a?1:-1;v<0&&(v=f+v),(v>=i&&v<=r||v+f>=i&&v+f<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(c=-c),d+=c)}}return d}function _(t,e,n,i,l){for(var u,f,p=0,g=0,_=0,b=0,x=0,w=0;w<t.length;){var S=t[w++];switch(S===c.M&&w>1&&(n||(p+=h(g,_,b,x,i,l))),1===w&&(b=g=t[w],x=_=t[w+1]),S){case c.M:g=b=t[w++],_=x=t[w++];break;case c.L:if(n){if(r.containStroke(g,_,t[w],t[w+1],e,i,l))return!0}else p+=h(g,_,t[w],t[w+1],i,l)||0;g=t[w++],_=t[w++];break;case c.C:if(n){if(a.containStroke(g,_,t[w++],t[w++],t[w++],t[w++],t[w],t[w+1],e,i,l))return!0}else p+=m(g,_,t[w++],t[w++],t[w++],t[w++],t[w],t[w+1],i,l)||0;g=t[w++],_=t[w++];break;case c.Q:if(n){if(o.containStroke(g,_,t[w++],t[w++],t[w],t[w+1],e,i,l))return!0}else p+=v(g,_,t[w++],t[w++],t[w],t[w+1],i,l)||0;g=t[w++],_=t[w++];break;case c.A:var A=t[w++],L=t[w++],C=t[w++],P=t[w++],N=t[w++],k=t[w++];w+=1;var I=1-t[w++],M=Math.cos(N)*C+A,T=Math.sin(N)*P+L;w>1?p+=h(g,_,M,T,i,l):(b=M,x=T);var D=(i-A)*P/C+A;if(n){if(s.containStroke(A,L,P,N,N+k,I,e,D,l))return!0}else p+=y(A,L,P,N,N+k,I,D,l);g=Math.cos(N+k)*C+A,_=Math.sin(N+k)*P+L;break;case c.R:b=g=t[w++],x=_=t[w++];M=b+t[w++],T=x+t[w++];if(n){if(r.containStroke(b,x,M,x,e,i,l)||r.containStroke(M,x,M,T,e,i,l)||r.containStroke(M,T,b,T,e,i,l)||r.containStroke(b,T,b,x,e,i,l))return!0}else p+=h(M,x,M,T,i,l),p+=h(b,T,b,x,i,l);break;case c.Z:if(n){if(r.containStroke(g,_,b,x,e,i,l))return!0}else p+=h(g,_,b,x,i,l);g=b,_=x}}return n||(u=_,f=x,Math.abs(u-f)<d)||(p+=h(g,_,b,x,i,l)||0),0!==p}e.contain=function(t,e,n){return _(t,0,!1,e,n)},e.containStroke=function(t,e,n,i){return _(t,e,!0,n,i)}},91068:(t,e,n)=>{var i=n(12462),r=1e-8;function a(t,e){return Math.abs(t-e)<r}e.contain=function(t,e,n){var r=0,o=t[0];if(!o)return!1;for(var s=1;s<t.length;s++){var l=t[s];r+=i(o[0],o[1],l[0],l[1],e,n),o=l}var u=t[0];return a(o[0],u[0])&&a(o[1],u[1])||(r+=i(o[0],o[1],u[0],u[1],e,n)),0!==r}},78788:(t,e,n)=>{var i=n(35574).quadraticProjectPoint;e.containStroke=function(t,e,n,r,a,o,s,l,u){if(0===s)return!1;var h=s;return!(u>e+h&&u>r+h&&u>o+h||u<e-h&&u<r-h&&u<o-h||l>t+h&&l>n+h&&l>a+h||l<t-h&&l<n-h&&l<a-h)&&i(t,e,n,r,a,o,l,u,null)<=h/2}},43407:(t,e,n)=>{var i=n(39587),r=n(30098),a=n(95289),o=a.getContext,s=a.extend,l=a.retrieve2,u=a.retrieve3,h=a.trim,c={},f=0,d=5e3,p=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,g="12px sans-serif",m={};function v(t,e){var n=t+":"+(e=e||g);if(c[n])return c[n];for(var i=(t+"").split("\n"),r=0,a=0,o=i.length;a<o;a++)r=Math.max(C(i[a],e).width,r);return f>d&&(f=0,c={}),f++,c[n]=r,r}function y(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function _(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function b(t,e,n){var i=e.textPosition,r=e.textDistance,a=n.x,o=n.y;r=r||0;var s=n.height,l=n.width,u=s/2,h="left",c="top";switch(i){case"left":a-=r,o+=u,h="right",c="middle";break;case"right":a+=r+l,o+=u,c="middle";break;case"top":a+=l/2,o-=r,h="center",c="bottom";break;case"bottom":a+=l/2,o+=s+r,h="center";break;case"inside":a+=l/2,o+=u,h="center",c="middle";break;case"insideLeft":a+=r,o+=u,c="middle";break;case"insideRight":a+=l-r,o+=u,h="right",c="middle";break;case"insideTop":a+=l/2,o+=r,h="center";break;case"insideBottom":a+=l/2,o+=s-r,h="center",c="bottom";break;case"insideTopLeft":a+=r,o+=r;break;case"insideTopRight":a+=l-r,o+=r,h="right";break;case"insideBottomLeft":a+=r,o+=s-r,c="bottom";break;case"insideBottomRight":a+=l-r,o+=s-r,h="right",c="bottom"}return(t=t||{}).x=a,t.y=o,t.textAlign=h,t.textVerticalAlign=c,t}function x(t,e,n,i,r){if(!e)return"";var a=(t+"").split("\n");r=w(e,n,i,r);for(var o=0,s=a.length;o<s;o++)a[o]=S(a[o],r);return a.join("\n")}function w(t,e,n,i){(i=s({},i)).font=e;n=l(n,"...");i.maxIterations=l(i.maxIterations,2);var r=i.minChar=l(i.minChar,0);i.cnCharWidth=v("国",e);var a=i.ascCharWidth=v("a",e);i.placeholder=l(i.placeholder,"");for(var o=t=Math.max(0,t-1),u=0;u<r&&o>=a;u++)o-=a;var h=v(n,e);return h>o&&(n="",h=0),o=t-h,i.ellipsis=n,i.ellipsisWidth=h,i.contentWidth=o,i.containerWidth=t,i}function S(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var a=v(t,i);if(a<=n)return t;for(var o=0;;o++){if(a<=r||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?A(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;a=v(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function A(t,e,n,i){for(var r=0,a=0,o=t.length;a<o&&r<e;a++){var s=t.charCodeAt(a);r+=0<=s&&s<=127?n:i}return a}function L(t){return v("国",t)}function C(t,e){return m.measureText(t,e)}function P(t,e,n,i,r){null!=t&&(t+="");var a=l(i,L(e)),o=t?t.split("\n"):[],s=o.length*a,u=s,h=!0;if(n&&(u+=n[0]+n[2]),t&&r){h=!1;var c=r.outerHeight,f=r.outerWidth;if(null!=c&&u>c)t="",o=[];else if(null!=f)for(var d=w(f-(n?n[1]+n[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),p=0,g=o.length;p<g;p++)o[p]=S(o[p],d)}return{lines:o,height:s,outerHeight:u,lineHeight:a,canCacheByTextString:h}}function N(t,e){var n={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return n;for(var i,a=p.lastIndex=0;null!=(i=p.exec(t));){var o=i.index;o>a&&k(n,t.substring(a,o)),k(n,i[2],i[1]),a=p.lastIndex}a<t.length&&k(n,t.substring(a,t.length));var s=n.lines,h=0,c=0,f=[],d=e.textPadding,g=e.truncate,m=g&&g.outerWidth,y=g&&g.outerHeight;d&&(null!=m&&(m-=d[1]+d[3]),null!=y&&(y-=d[0]+d[2]));for(var _=0;_<s.length;_++){for(var b=s[_],w=0,S=0,A=0;A<b.tokens.length;A++){var C=(E=b.tokens[A]).styleName&&e.rich[E.styleName]||{},P=E.textPadding=C.textPadding,N=E.font=C.font||e.font,I=E.textHeight=l(C.textHeight,L(N));if(P&&(I+=P[0]+P[2]),E.height=I,E.lineHeight=u(C.textLineHeight,e.textLineHeight,I),E.textAlign=C&&C.textAlign||e.textAlign,E.textVerticalAlign=C&&C.textVerticalAlign||"middle",null!=y&&h+E.lineHeight>y)return{lines:[],width:0,height:0};E.textWidth=v(E.text,N);var M=C.textWidth,T=null==M||"auto"===M;if("string"==typeof M&&"%"===M.charAt(M.length-1))E.percentWidth=M,f.push(E),M=0;else{if(T){M=E.textWidth;var D=C.textBackgroundColor,O=D&&D.image;O&&(O=r.findExistImage(O),r.isImageReady(O)&&(M=Math.max(M,O.width*I/O.height)))}var F=P?P[1]+P[3]:0;M+=F;var R=null!=m?m-S:null;null!=R&&R<M&&(!T||R<F?(E.text="",E.textWidth=M=0):(E.text=x(E.text,R-F,N,g.ellipsis,{minChar:g.minChar}),E.textWidth=v(E.text,N),M=E.textWidth+F))}S+=E.width=M,C&&(w=Math.max(w,E.lineHeight))}b.width=S,b.lineHeight=w,h+=w,c=Math.max(c,S)}n.outerWidth=n.width=l(e.textWidth,c),n.outerHeight=n.height=l(e.textHeight,h),d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]);for(_=0;_<f.length;_++){var E,B=(E=f[_]).percentWidth;E.width=parseInt(B,10)/100*c}return n}function k(t,e,n){for(var i=""===e,r=e.split("\n"),a=t.lines,o=0;o<r.length;o++){var s=r[o],l={styleName:n,text:s,isLineHolder:!s&&!i};if(o)a.push({tokens:[l]});else{var u=(a[a.length-1]||(a[0]={tokens:[]})).tokens,h=u.length;1===h&&u[0].isLineHolder?u[0]=l:(s||!h||i)&&u.push(l)}}}m.measureText=function(t,e){var n=o();return n.font=e||g,n.measureText(t)},e.DEFAULT_FONT=g,e.$override=function(t,e){m[t]=e},e.getWidth=v,e.getBoundingRect=function(t,e,n,r,a,o,s,l){return s?function(t,e,n,r,a,o,s,l){var u=N(t,{rich:s,truncate:l,font:e,textAlign:n,textPadding:a,textLineHeight:o}),h=u.outerWidth,c=u.outerHeight,f=y(0,h,n),d=_(0,c,r);return new i(f,d,h,c)}(t,e,n,r,a,o,s,l):function(t,e,n,r,a,o,s){var l=P(t,e,a,o,s),u=v(t,e);a&&(u+=a[1]+a[3]);var h=l.outerHeight,c=y(0,u,n),f=_(0,h,r),d=new i(c,f,u,h);return d.lineHeight=l.lineHeight,d}(t,e,n,r,a,o,l)},e.adjustTextX=y,e.adjustTextY=_,e.calculateTextPosition=b,e.adjustTextPositionOnRect=function(t,e,n){return b({},{textPosition:t,textDistance:n},e)},e.truncateText=x,e.getLineHeight=L,e.measureText=C,e.parsePlainText=P,e.parseRichText=N,e.makeFont=function(t){var e=(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ");return e&&h(e)||t.textFont||t.font}},57624:(t,e)=>{var n=2*Math.PI;e.normalizeRadian=function(t){return(t%=n)<0&&(t+=n),t}},12462:t=>{t.exports=function(t,e,n,i,r,a){if(a>e&&a>i||a<e&&a<i)return 0;if(i===e)return 0;var o=i<e?1:-1,s=(a-e)/(i-e);1!==s&&0!==s||(o=i<e?.5:-.5);var l=s*(n-t)+t;return l===r?1/0:l>r?o:0}},75738:(t,e,n)=>{var i=n(95289),r=n(42073),a=n(39587),o=function(t){for(var e in t=t||{},r.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof o&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,r=this._children,a=i.indexOf(r,t);return a<0||(r.splice(a,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(n)),e&&e.refresh()),this},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e<n.length;e++)t=n[e],i&&(i.delFromStorage(t),t instanceof o&&t.delChildrenFromStorage(i)),t.parent=null;return n.length=0,this},eachChild:function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},traverse:function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n];t.call(e,i),"group"===i.type&&i.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.addToStorage(n),n instanceof o&&n.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.delFromStorage(n),n instanceof o&&n.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,n=new a(0,0,0,0),i=t||this._children,r=[],o=0;o<i.length;o++){var s=i[o];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(r);u?(n.copy(l),n.applyTransform(u),(e=e||n.clone()).union(n)):(e=e||l.clone()).union(l)}}return e||n}},i.inherits(o,r);var s=o;t.exports=s},39587:(t,e,n)=>{var i,r,a,o,s=n(31138),l=n(13388),u=s.applyTransform,h=Math.min,c=Math.max;function f(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}f.prototype={constructor:f,union:function(t){var e=h(t.x,this.x),n=h(t.y,this.y);this.width=c(t.x+t.width,this.x+this.width)-e,this.height=c(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:(i=[],r=[],a=[],o=[],function(t){if(t){i[0]=a[0]=this.x,i[1]=o[1]=this.y,r[0]=o[0]=this.x+this.width,r[1]=a[1]=this.y+this.height,u(i,i,t),u(r,r,t),u(a,a,t),u(o,o,t),this.x=h(i[0],r[0],a[0],o[0]),this.y=h(i[1],r[1],a[1],o[1]);var e=c(i[0],r[0],a[0],o[0]),n=c(i[1],r[1],a[1],o[1]);this.width=e-this.x,this.height=n-this.y}}),calculateTransform:function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=l.create();return l.translate(r,r,[-e.x,-e.y]),l.scale(r,r,[n,i]),l.translate(r,r,[t.x,t.y]),r},intersect:function(t){if(!t)return!1;t instanceof f||(t=f.create(t));var e=this,n=e.x,i=e.x+e.width,r=e.y,a=e.y+e.height,o=t.x,s=t.x+t.width,l=t.y,u=t.y+t.height;return!(i<o||s<n||a<l||u<r)},contain:function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new f(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},f.create=function(t){return new f(t.x,t.y,t.width,t.height)};var d=f;t.exports=d},15174:(t,e,n)=>{var i=n(88665),r=function(){this._track=[]};function a(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}r.prototype={constructor:r,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,n){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r.length;o<s;o++){var l=r[o],u=i.clientToLocal(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},_recognize:function(t){for(var e in o)if(o.hasOwnProperty(e)){var n=o[e](this._track,t);if(n)return n}}};var o={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var s=a(r)/a(o);!isFinite(s)&&(s=1),e.pinchScale=s;var l=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}},s=r;t.exports=s},60348:t=>{var e=function(){this.head=null,this.tail=null,this._len=0},n=e.prototype;n.insert=function(t){var e=new i(t);return this.insertEntry(e),e},n.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},n.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.len=function(){return this._len},n.clear=function(){this.head=this.tail=null,this._len=0};var i=function(t){this.value=t,this.next,this.prev},r=function(t){this._list=new e,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},a=r.prototype;a.put=function(t,e){var n=this._list,r=this._map,a=null;if(null==r[t]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete r[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return a},a.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},a.clear=function(){this._list.clear(),this._map={}};var o=r;t.exports=o},17004:(t,e,n)=>{var i=n(35574),r=n(31138),a=n(66346),o=n(39587),s=n(49999).devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],h=[],c=[],f=[],d=Math.min,p=Math.max,g=Math.cos,m=Math.sin,v=Math.sqrt,y=Math.abs,_="undefined"!=typeof Float32Array,b=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};b.prototype={constructor:b,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e,n){n=n||0,this._ux=y(n/s/t)||0,this._uy=y(n/s/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var n=y(t-this._xi)>this._ux||y(e-this._yi)>this._uy||this._len<5;return this.addData(l.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,a){return this.addData(l.C,t,e,n,i,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,a):this._ctx.bezierCurveTo(t,e,n,i,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,n,i){return this.addData(l.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,a){return this.addData(l.A,t,e,n,n,i,r-i,0,a?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,a),this._xi=g(r)*n+t,this._yi=m(r)*n+e,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(l.R,t,e,n,i),this},closePath:function(){this.addData(l.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length===e||!_||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();_&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<e;r++)for(var a=t[r].data,o=0;o<a.length;o++)this.data[i++]=a[o];this._len=i},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var n=0;n<arguments.length;n++)e[this._len++]=arguments[n];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var n,i,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,h=t-l,c=e-u,f=v(h*h+c*c),g=l,m=u,y=o.length;for(a<0&&(a=r+a),g-=(a%=r)*(h/=f),m-=a*(c/=f);h>0&&g<=t||h<0&&g>=t||0===h&&(c>0&&m<=e||c<0&&m>=e);)g+=h*(n=o[i=this._dashIdx]),m+=c*n,this._dashIdx=(i+1)%y,h>0&&g<l||h<0&&g>l||c>0&&m<u||c<0&&m>u||s[i%2?"moveTo":"lineTo"](h>=0?d(g,t):p(g,t),c>=0?d(m,e):p(m,e));h=g-t,c=m-e,this._dashOffset=-v(h*h+c*c)},_dashedBezierTo:function(t,e,n,r,a,o){var s,l,u,h,c,f=this._dashSum,d=this._dashOffset,p=this._lineDash,g=this._ctx,m=this._xi,y=this._yi,_=i.cubicAt,b=0,x=this._dashIdx,w=p.length,S=0;for(d<0&&(d=f+d),d%=f,s=0;s<1;s+=.1)l=_(m,t,n,a,s+.1)-_(m,t,n,a,s),u=_(y,e,r,o,s+.1)-_(y,e,r,o,s),b+=v(l*l+u*u);for(;x<w&&!((S+=p[x])>d);x++);for(s=(S-d)/b;s<=1;)h=_(m,t,n,a,s),c=_(y,e,r,o,s),x%2?g.moveTo(h,c):g.lineTo(h,c),s+=p[x]/b,x=(x+1)%w;x%2!=0&&g.lineTo(a,o),l=a-h,u=o-c,this._dashOffset=-v(l*l+u*u)},_dashedQuadraticTo:function(t,e,n,i){var r=n,a=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,_&&(this.data=new Float32Array(t)))},getBoundingRect:function(){u[0]=u[1]=c[0]=c[1]=Number.MAX_VALUE,h[0]=h[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,s=0,d=0;d<t.length;){var p=t[d++];switch(1===d&&(i=e=t[d],s=n=t[d+1]),p){case l.M:e=i=t[d++],n=s=t[d++],c[0]=i,c[1]=s,f[0]=i,f[1]=s;break;case l.L:a.fromLine(e,n,t[d],t[d+1],c,f),e=t[d++],n=t[d++];break;case l.C:a.fromCubic(e,n,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],c,f),e=t[d++],n=t[d++];break;case l.Q:a.fromQuadratic(e,n,t[d++],t[d++],t[d],t[d+1],c,f),e=t[d++],n=t[d++];break;case l.A:var v=t[d++],y=t[d++],_=t[d++],b=t[d++],x=t[d++],w=t[d++]+x;d+=1;var S=1-t[d++];1===d&&(i=g(x)*_+v,s=m(x)*b+y),a.fromArc(v,y,_,b,x,w,S,c,f),e=g(w)*_+v,n=m(w)*b+y;break;case l.R:i=e=t[d++],s=n=t[d++];var A=t[d++],L=t[d++];a.fromLine(i,s,i+A,s+L,c,f);break;case l.Z:e=i,n=s}r.min(u,u,c),r.max(h,h,f)}return 0===d&&(u[0]=u[1]=h[0]=h[1]=0),new o(u[0],u[1],h[0]-u[0],h[1]-u[1])},rebuildPath:function(t){for(var e,n,i,r,a,o,s=this.data,u=this._ux,h=this._uy,c=this._len,f=0;f<c;){var d=s[f++];switch(1===f&&(e=i=s[f],n=r=s[f+1]),d){case l.M:e=i=s[f++],n=r=s[f++],t.moveTo(i,r);break;case l.L:a=s[f++],o=s[f++],(y(a-i)>u||y(o-r)>h||f===c-1)&&(t.lineTo(a,o),i=a,r=o);break;case l.C:t.bezierCurveTo(s[f++],s[f++],s[f++],s[f++],s[f++],s[f++]),i=s[f-2],r=s[f-1];break;case l.Q:t.quadraticCurveTo(s[f++],s[f++],s[f++],s[f++]),i=s[f-2],r=s[f-1];break;case l.A:var p=s[f++],v=s[f++],_=s[f++],b=s[f++],x=s[f++],w=s[f++],S=s[f++],A=s[f++],L=_>b?_:b,C=_>b?1:_/b,P=_>b?b/_:1,N=x+w;Math.abs(_-b)>.001?(t.translate(p,v),t.rotate(S),t.scale(C,P),t.arc(0,0,L,x,N,1-A),t.scale(1/C,1/P),t.rotate(-S),t.translate(-p,-v)):t.arc(p,v,L,x,N,1-A),1===f&&(e=g(x)*_+p,n=m(x)*b+v),i=g(N)*_+p,r=m(N)*b+v;break;case l.R:e=i=s[f],n=r=s[f+1],t.rect(s[f++],s[f++],s[f++],s[f++]);break;case l.Z:t.closePath(),i=e,r=n}}}},b.CMD=l;var x=b;t.exports=x},66346:(t,e,n)=>{var i=n(31138),r=n(35574),a=Math.min,o=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,h=i.create(),c=i.create(),f=i.create();var d=[],p=[];e.fromPoints=function(t,e,n){if(0!==t.length){var i,r=t[0],s=r[0],l=r[0],u=r[1],h=r[1];for(i=1;i<t.length;i++)r=t[i],s=a(s,r[0]),l=o(l,r[0]),u=a(u,r[1]),h=o(h,r[1]);e[0]=s,e[1]=u,n[0]=l,n[1]=h}},e.fromLine=function(t,e,n,i,r,s){r[0]=a(t,n),r[1]=a(e,i),s[0]=o(t,n),s[1]=o(e,i)},e.fromCubic=function(t,e,n,i,s,l,u,h,c,f){var g,m=r.cubicExtrema,v=r.cubicAt,y=m(t,n,s,u,d);for(c[0]=1/0,c[1]=1/0,f[0]=-1/0,f[1]=-1/0,g=0;g<y;g++){var _=v(t,n,s,u,d[g]);c[0]=a(_,c[0]),f[0]=o(_,f[0])}for(y=m(e,i,l,h,p),g=0;g<y;g++){var b=v(e,i,l,h,p[g]);c[1]=a(b,c[1]),f[1]=o(b,f[1])}c[0]=a(t,c[0]),f[0]=o(t,f[0]),c[0]=a(u,c[0]),f[0]=o(u,f[0]),c[1]=a(e,c[1]),f[1]=o(e,f[1]),c[1]=a(h,c[1]),f[1]=o(h,f[1])},e.fromQuadratic=function(t,e,n,i,s,l,u,h){var c=r.quadraticExtremum,f=r.quadraticAt,d=o(a(c(t,n,s),1),0),p=o(a(c(e,i,l),1),0),g=f(t,n,s,d),m=f(e,i,l,p);u[0]=a(t,s,g),u[1]=a(e,l,m),h[0]=o(t,s,g),h[1]=o(e,l,m)},e.fromArc=function(t,e,n,r,a,o,d,p,g){var m=i.min,v=i.max,y=Math.abs(a-o);if(y%u<1e-4&&y>1e-4)return p[0]=t-n,p[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(h[0]=l(a)*n+t,h[1]=s(a)*r+e,c[0]=l(o)*n+t,c[1]=s(o)*r+e,m(p,h,c),v(g,h,c),(a%=u)<0&&(a+=u),(o%=u)<0&&(o+=u),a>o&&!d?o+=u:a<o&&d&&(a+=u),d){var _=o;o=a,a=_}for(var b=0;b<o;b+=Math.PI/2)b>a&&(f[0]=l(b)*n+t,f[1]=s(b)*r+e,m(p,f,p),v(g,f,g))}},35574:(t,e,n)=>{var i=n(31138),r=i.create,a=i.distSquare,o=Math.pow,s=Math.sqrt,l=1e-8,u=1e-4,h=s(3),c=1/3,f=r(),d=r(),p=r();function g(t){return t>-l&&t<l}function m(t){return t>l||t<-l}function v(t,e,n,i,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*i+3*a*n)}function y(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}e.cubicAt=v,e.cubicDerivativeAt=function(t,e,n,i,r){var a=1-r;return 3*(((e-t)*a+2*(n-e)*r)*a+(i-n)*r*r)},e.cubicRootAt=function(t,e,n,i,r,a){var l=i+3*(e-n)-t,u=3*(n-2*e+t),f=3*(e-t),d=t-r,p=u*u-3*l*f,m=u*f-9*l*d,v=f*f-3*u*d,y=0;if(g(p)&&g(m)){if(g(u))a[0]=0;else(k=-f/u)>=0&&k<=1&&(a[y++]=k)}else{var _=m*m-4*p*v;if(g(_)){var b=m/p,x=-b/2;(k=-u/l+b)>=0&&k<=1&&(a[y++]=k),x>=0&&x<=1&&(a[y++]=x)}else if(_>0){var w=s(_),S=p*u+1.5*l*(-m+w),A=p*u+1.5*l*(-m-w);(k=(-u-((S=S<0?-o(-S,c):o(S,c))+(A=A<0?-o(-A,c):o(A,c))))/(3*l))>=0&&k<=1&&(a[y++]=k)}else{var L=(2*p*u-3*l*m)/(2*s(p*p*p)),C=Math.acos(L)/3,P=s(p),N=Math.cos(C),k=(-u-2*P*N)/(3*l),I=(x=(-u+P*(N+h*Math.sin(C)))/(3*l),(-u+P*(N-h*Math.sin(C)))/(3*l));k>=0&&k<=1&&(a[y++]=k),x>=0&&x<=1&&(a[y++]=x),I>=0&&I<=1&&(a[y++]=I)}}return y},e.cubicExtrema=function(t,e,n,i,r){var a=6*n-12*e+6*t,o=9*e+3*i-3*t-9*n,l=3*e-3*t,u=0;if(g(o)){if(m(a))(c=-l/a)>=0&&c<=1&&(r[u++]=c)}else{var h=a*a-4*o*l;if(g(h))r[0]=-a/(2*o);else if(h>0){var c,f=s(h),d=(-a-f)/(2*o);(c=(-a+f)/(2*o))>=0&&c<=1&&(r[u++]=c),d>=0&&d<=1&&(r[u++]=d)}}return u},e.cubicSubdivide=function(t,e,n,i,r,a){var o=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-o)*r+o,h=(l-s)*r+s,c=(h-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=h,a[6]=l,a[7]=i},e.cubicProjectPoint=function(t,e,n,i,r,o,l,h,c,g,m){var y,_,b,x,w,S=.005,A=1/0;f[0]=c,f[1]=g;for(var L=0;L<1;L+=.05)d[0]=v(t,n,r,l,L),d[1]=v(e,i,o,h,L),(x=a(f,d))<A&&(y=L,A=x);A=1/0;for(var C=0;C<32&&!(S<u);C++)_=y-S,b=y+S,d[0]=v(t,n,r,l,_),d[1]=v(e,i,o,h,_),x=a(d,f),_>=0&&x<A?(y=_,A=x):(p[0]=v(t,n,r,l,b),p[1]=v(e,i,o,h,b),w=a(p,f),b<=1&&w<A?(y=b,A=w):S*=.5);return m&&(m[0]=v(t,n,r,l,y),m[1]=v(e,i,o,h,y)),s(A)},e.quadraticAt=y,e.quadraticDerivativeAt=function(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))},e.quadraticRootAt=function(t,e,n,i,r){var a=t-2*e+n,o=2*(e-t),l=t-i,u=0;if(g(a)){if(m(o))(c=-l/o)>=0&&c<=1&&(r[u++]=c)}else{var h=o*o-4*a*l;if(g(h))(c=-o/(2*a))>=0&&c<=1&&(r[u++]=c);else if(h>0){var c,f=s(h),d=(-o-f)/(2*a);(c=(-o+f)/(2*a))>=0&&c<=1&&(r[u++]=c),d>=0&&d<=1&&(r[u++]=d)}}return u},e.quadraticExtremum=function(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i},e.quadraticSubdivide=function(t,e,n,i,r){var a=(e-t)*i+t,o=(n-e)*i+e,s=(o-a)*i+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n},e.quadraticProjectPoint=function(t,e,n,i,r,o,l,h,c){var g,m=.005,v=1/0;f[0]=l,f[1]=h;for(var _=0;_<1;_+=.05){d[0]=y(t,n,r,_),d[1]=y(e,i,o,_),(S=a(f,d))<v&&(g=_,v=S)}v=1/0;for(var b=0;b<32&&!(m<u);b++){var x=g-m,w=g+m;d[0]=y(t,n,r,x),d[1]=y(e,i,o,x);var S=a(d,f);if(x>=0&&S<v)g=x,v=S;else{p[0]=y(t,n,r,w),p[1]=y(e,i,o,w);var A=a(p,f);w<=1&&A<v?(g=w,v=A):m*=.5}}return c&&(c[0]=y(t,n,r,g),c[1]=y(e,i,o,g)),s(v)}},105:(t,e,n)=>{var i=n(87190),r=n(58656).buildTransformer,a="___zrEVENTSAVED",o=[];function s(t,e,n,o,s){if(e.getBoundingClientRect&&i.domSupported&&!l(e)){var u=e[a]||(e[a]={}),h=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=a%2,l=(a>>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return n}(e,u),c=function(t,e,n){for(var i=n?"invTrans":"trans",a=e[i],o=e.srcCoords,s=!0,l=[],u=[],h=0;h<4;h++){var c=t[h].getBoundingClientRect(),f=2*h,d=c.left,p=c.top;l.push(d,p),s=s&&o&&d===o[f]&&p===o[f+1],u.push(t[h].offsetLeft,t[h].offsetTop)}return s&&a?a:(e.srcCoords=l,e[i]=n?r(u,l):r(l,u))}(h,u,s);if(c)return c(t,n,o),!0}return!1}function l(t){return"CANVAS"===t.nodeName.toUpperCase()}e.transformLocalCoord=function(t,e,n,i,r){return s(o,e,i,r,!0)&&s(t,n,o[0],o[1])},e.transformCoordWithViewport=s,e.isCanvasEl=l},87190:t=>{var e="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:function(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);a&&(n.edge=!0,n.version=a[1]);o&&(n.weChat=!0);return{browser:n,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:"undefined"!=typeof document}}(navigator.userAgent);t.exports=e},88665:(t,e,n)=>{var i=n(36112);e.Dispatcher=i;var r=n(87190),a=n(105),o=a.isCanvasEl,s=a.transformCoordWithViewport,l="undefined"!=typeof window&&!!window.addEventListener,u=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,h=[];function c(t,e,n,i){return n=n||{},i||!r.canvasSupported?f(t,e,n):r.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):f(t,e,n),n}function f(t,e,n){if(r.domSupported&&t.getBoundingClientRect){var i=e.clientX,a=e.clientY;if(o(t)){var l=t.getBoundingClientRect();return n.zrX=i-l.left,void(n.zrY=a-l.top)}if(s(h,t,i,a))return n.zrX=h[0],void(n.zrY=h[1])}n.zrX=n.zrY=0}function d(t){return t||window.event}var p=l?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};e.clientToLocal=c,e.getNativeEvent=d,e.normalizeEvent=function(t,e,n){if(null!=(e=d(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&c(t,r,e,n)}else c(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var a=e.button;return null==e.which&&void 0!==a&&u.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e},e.addEventListener=function(t,e,n,i){l?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n,i){l?t.removeEventListener(e,n,i):t.detachEvent("on"+e,n)},e.stop=p,e.isMiddleOrRightButtonOnMouseUpDown=function(t){return 2===t.which||3===t.which},e.notLeftMouse=function(t){return t.which>1}},58656:(t,e)=>{var n=Math.log(2);function i(t,e,r,a,o,s){var l=a+"-"+o,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var h=Math.round(Math.log((1<<u)-1&~o)/n);return t[r][h]}for(var c=a|1<<r,f=r+1;a&1<<f;)f++;for(var d=0,p=0,g=0;p<u;p++){var m=1<<p;m&o||(d+=(g%2?-1:1)*t[r][p]*i(t,e-1,f,c,o|m,s),g++)}return s[l]=d,d}e.buildTransformer=function(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},a=i(n,8,0,0,0,r);if(0!==a){for(var o=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==o[l]&&(o[l]=0),o[l]+=((s+l)%2?-1:1)*i(n,7,0===s?1:0,1<<s,1<<l,r)/a*e[s];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}},1200:t=>{var e=2311;t.exports=function(){return e++}},19559:(t,e,n)=>{var i=function(){};1===n(49999).debugMode&&(i=console.error);var r=i;t.exports=r},13388:(t,e)=>{var n="undefined"==typeof Float32Array?Array:Float32Array;function i(){var t=new n(6);return r(t),t}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}e.create=i,e.identity=r,e.copy=a,e.mul=function(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],a=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},e.translate=function(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t},e.rotate=function(t,e,n){var i=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+o*u,t[1]=-i*u+o*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*a+u*l,t[5]=h*l-u*a,t},e.scale=function(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t},e.invert=function(t,e){var n=e[0],i=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=n*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-o*r)*l,t[5]=(a*r-n*s)*l,t):null},e.clone=function(t){var e=i();return a(e,t),e}},33863:t=>{var e=32,n=7;function i(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){n--;for(;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function r(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var a,o=t[i],s=e,l=i;s<l;)r(o,t[a=s+l>>>1])<0?l=a:s=a+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function a(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])>0){for(s=i-r;l<s&&a(t,e[n+r+l])>0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;l<s&&a(t,e[n+r-l])<=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}for(o++;o<l;){var h=o+(l-o>>>1);a(t,e[n+h])>0?o=h+1:l=h}return l}function o(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])<0){for(s=r+1;l<s&&a(t,e[n+r-l])<0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}else{for(s=i-r;l<s&&a(t,e[n+r+l])>=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;o<l;){var h=o+(l-o>>>1);a(t,e[n+h])<0?l=h:o=h+1}return l}function s(t,e){var i,r,s,l=n,u=0;i=t.length;var h=[];function c(i){var c=r[i],f=s[i],d=r[i+1],p=s[i+1];s[i]=f+p,i===u-3&&(r[i+1]=r[i+2],s[i+1]=s[i+2]),u--;var g=o(t[d],t,c,f,0,e);c+=g,0!==(f-=g)&&0!==(p=a(t[c+f-1],t,d,p,p-1,e))&&(f<=p?function(i,r,s,u){var c=0;for(c=0;c<r;c++)h[c]=t[i+c];var f=0,d=s,p=i;if(t[p++]=t[d++],0==--u){for(c=0;c<r;c++)t[p+c]=h[f+c];return}if(1===r){for(c=0;c<u;c++)t[p+c]=t[d+c];return void(t[p+u]=h[f])}var g,m,v,y=l;for(;;){g=0,m=0,v=!1;do{if(e(t[d],h[f])<0){if(t[p++]=t[d++],m++,g=0,0==--u){v=!0;break}}else if(t[p++]=h[f++],g++,m=0,1==--r){v=!0;break}}while((g|m)<y);if(v)break;do{if(0!==(g=o(t[d],h,f,r,0,e))){for(c=0;c<g;c++)t[p+c]=h[f+c];if(p+=g,f+=g,(r-=g)<=1){v=!0;break}}if(t[p++]=t[d++],0==--u){v=!0;break}if(0!==(m=a(h[f],t,d,u,0,e))){for(c=0;c<m;c++)t[p+c]=t[d+c];if(p+=m,d+=m,0===(u-=m)){v=!0;break}}if(t[p++]=h[f++],1==--r){v=!0;break}y--}while(g>=n||m>=n);if(v)break;y<0&&(y=0),y+=2}if((l=y)<1&&(l=1),1===r){for(c=0;c<u;c++)t[p+c]=t[d+c];t[p+u]=h[f]}else{if(0===r)throw new Error;for(c=0;c<r;c++)t[p+c]=h[f+c]}}(c,f,d,p):function(i,r,s,u){var c=0;for(c=0;c<u;c++)h[c]=t[s+c];var f=i+r-1,d=u-1,p=s+u-1,g=0,m=0;if(t[p--]=t[f--],0==--r){for(g=p-(u-1),c=0;c<u;c++)t[g+c]=h[c];return}if(1===u){for(m=(p-=r)+1,g=(f-=r)+1,c=r-1;c>=0;c--)t[m+c]=t[g+c];return void(t[p]=h[d])}var v=l;for(;;){var y=0,_=0,b=!1;do{if(e(h[d],t[f])<0){if(t[p--]=t[f--],y++,_=0,0==--r){b=!0;break}}else if(t[p--]=h[d--],_++,y=0,1==--u){b=!0;break}}while((y|_)<v);if(b)break;do{if(0!==(y=r-o(h[d],t,i,r,r-1,e))){for(r-=y,m=(p-=y)+1,g=(f-=y)+1,c=y-1;c>=0;c--)t[m+c]=t[g+c];if(0===r){b=!0;break}}if(t[p--]=h[d--],1==--u){b=!0;break}if(0!==(_=u-a(t[f],h,0,u,u-1,e))){for(u-=_,m=(p-=_)+1,g=(d-=_)+1,c=0;c<_;c++)t[m+c]=h[g+c];if(u<=1){b=!0;break}}if(t[p--]=t[f--],0==--r){b=!0;break}v--}while(y>=n||_>=n);if(b)break;v<0&&(v=0),v+=2}(l=v)<1&&(l=1);if(1===u){for(m=(p-=r)+1,g=(f-=r)+1,c=r-1;c>=0;c--)t[m+c]=t[g+c];t[p]=h[d]}else{if(0===u)throw new Error;for(g=p-(u-1),c=0;c<u;c++)t[g+c]=h[c]}}(c,f,d,p))}r=[],s=[],this.mergeRuns=function(){for(;u>1;){var t=u-2;if(t>=1&&s[t-1]<=s[t]+s[t+1]||t>=2&&s[t-2]<=s[t]+s[t-1])s[t-1]<s[t+1]&&t--;else if(s[t]>s[t+1])break;c(t)}},this.forceMergeRuns=function(){for(;u>1;){var t=u-2;t>0&&s[t-1]<s[t+1]&&t--,c(t)}},this.pushRun=function(t,e){r[u]=t,s[u]=e,u+=1}}t.exports=function(t,n,a,o){a||(a=0),o||(o=t.length);var l=o-a;if(!(l<2)){var u=0;if(l<e)r(t,a,o,a+(u=i(t,a,o,n)),n);else{var h=new s(t,n),c=function(t){for(var n=0;t>=e;)n|=1&t,t>>=1;return t+n}(l);do{if((u=i(t,a,o,n))<c){var f=l;f>c&&(f=c),r(t,a,a+f,a+u,n),u=f}h.pushRun(a,u),h.mergeRuns(),l-=u,a+=u}while(0!==l);h.forceMergeRuns()}}}},95289:(t,e)=>{var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},i={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},r=Object.prototype.toString,a=Array.prototype,o=a.forEach,s=a.filter,l=a.slice,u=a.map,h=a.reduce,c={};function f(t){if(null==t||"object"!=typeof t)return t;var e=t,a=r.call(t);if("[object Array]"===a){if(!A(t)){e=[];for(var o=0,s=t.length;o<s;o++)e[o]=f(t[o])}}else if(i[a]){if(!A(t)){var l=t.constructor;if(t.constructor.from)e=l.from(t);else{e=new l(t.length);for(o=0,s=t.length;o<s;o++)e[o]=f(t[o])}}}else if(!n[a]&&!A(t)&&!w(t))for(var u in e={},t)t.hasOwnProperty(u)&&(e[u]=f(t[u]));return e}function d(t,e,n){if(!b(e)||!b(t))return n?f(e):t;for(var i in e)if(e.hasOwnProperty(i)){var r=t[i],a=e[i];!b(a)||!b(r)||_(a)||_(r)||w(a)||w(r)||x(a)||x(r)||A(a)||A(r)?!n&&i in t||(t[i]=f(e[i])):d(r,a,n)}return t}function p(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}var g,m=function(){return c.createCanvas()};function v(t,e,n){if(t&&e)if(t.forEach&&t.forEach===o)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function y(t,e){var n=l.call(arguments,2);return function(){return t.apply(e,n.concat(l.call(arguments)))}}function _(t){return"[object Array]"===r.call(t)}function b(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function x(t){return!!n[r.call(t)]}function w(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}c.createCanvas=function(){return document.createElement("canvas")};var S="__ec_primitive__";function A(t){return t[S]}function L(t){var e=_(t);this.data={};var n=this;function i(t,i){e?n.set(t,i):n.set(i,t)}t instanceof L?t.each(i):t&&v(t,i)}L.prototype={constructor:L,get:function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},set:function(t,e){return this.data[t]=e},each:function(t,e){for(var n in void 0!==e&&(t=y(t,e)),this.data)this.data.hasOwnProperty(n)&&t(this.data[n],n)},removeKey:function(t){delete this.data[t]}},e.$override=function(t,e){"createCanvas"===t&&(g=null),c[t]=e},e.clone=f,e.merge=d,e.mergeAll=function(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=d(n,t[i],e);return n},e.extend=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},e.defaults=p,e.createCanvas=m,e.getContext=function(){return g||(g=m().getContext("2d")),g},e.indexOf=function(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1},e.inherits=function(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e},e.mixin=function(t,e,n){p(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,n)},e.isArrayLike=function(t){if(t)return"string"!=typeof t&&"number"==typeof t.length},e.each=v,e.map=function(t,e,n){if(t&&e){if(t.map&&t.map===u)return t.map(e,n);for(var i=[],r=0,a=t.length;r<a;r++)i.push(e.call(n,t[r],r,t));return i}},e.reduce=function(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===h)return t.reduce(e,n,i);for(var r=0,a=t.length;r<a;r++)n=e.call(i,n,t[r],r,t);return n}},e.filter=function(t,e,n){if(t&&e){if(t.filter&&t.filter===s)return t.filter(e,n);for(var i=[],r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}},e.find=function(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]},e.bind=y,e.curry=function(t){var e=l.call(arguments,1);return function(){return t.apply(this,e.concat(l.call(arguments)))}},e.isArray=_,e.isFunction=function(t){return"function"==typeof t},e.isString=function(t){return"[object String]"===r.call(t)},e.isObject=b,e.isBuiltInObject=x,e.isTypedArray=function(t){return!!i[r.call(t)]},e.isDom=w,e.eqNaN=function(t){return t!=t},e.retrieve=function(t){for(var e=0,n=arguments.length;e<n;e++)if(null!=arguments[e])return arguments[e]},e.retrieve2=function(t,e){return null!=t?t:e},e.retrieve3=function(t,e,n){return null!=t?t:null!=e?e:n},e.slice=function(){return Function.call.apply(l,arguments)},e.normalizeCssArray=function(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t},e.assert=function(t,e){if(!t)throw new Error(e)},e.trim=function(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},e.setAsPrimitive=function(t){t[S]=!0},e.isPrimitive=A,e.createHashMap=function(t){return new L(t)},e.concatArray=function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n},e.noop=function(){}},31138:(t,e)=>{var n="undefined"==typeof Float32Array?Array:Float32Array;function i(t){return Math.sqrt(a(t))}var r=i;function a(t){return t[0]*t[0]+t[1]*t[1]}var o=a;function s(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var l=s;function u(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var h=u;e.create=function(t,e){var i=new n(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.clone=function(t){var e=new n(2);return e[0]=t[0],e[1]=t[1],e},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},e.sub=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},e.len=i,e.length=r,e.lenSquare=a,e.lengthSquare=o,e.mul=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},e.div=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.normalize=function(t,e){var n=i(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t},e.distance=s,e.dist=l,e.distanceSquare=u,e.distSquare=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.lerp=function(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t},e.applyTransform=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},77884:(t,e,n)=>{var i,r,a=n(88665),o=a.addEventListener,s=a.removeEventListener,l=a.normalizeEvent,u=a.getNativeEvent,h=n(95289),c=n(36112),f=n(87190),d=f.domSupported,p=(r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:i=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:h.map(i,(function(t){var e=t.replace("mouse","pointer");return r.hasOwnProperty(e)?e:t}))}),g={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function m(t){return"mousewheel"===t&&f.browser.firefox?"DOMMouseScroll":t}function v(t){var e=t.pointerType;return"pen"===e||"touch"===e}function y(t){t&&(t.zrByTouch=!0)}function _(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}function b(t,e){this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}var x=b.prototype;x.stopPropagation=x.stopImmediatePropagation=x.preventDefault=h.noop;var w={mousedown:function(t){t=l(this.dom,t),this._mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=l(this.dom,t);var e=this._mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||N(this,!0),this.trigger("mousemove",t)},mouseup:function(t){t=l(this.dom,t),N(this,!1),this.trigger("mouseup",t)},mouseout:function(t){t=l(this.dom,t),this._pointerCapturing&&(t.zrEventControl="no_globalout");var e=t.toElement||t.relatedTarget;t.zrIsToLocalDOM=_(this,e),this.trigger("mouseout",t)},touchstart:function(t){y(t=l(this.dom,t)),this._lastTouchMoment=new Date,this.handler.processGesture(t,"start"),w.mousemove.call(this,t),w.mousedown.call(this,t)},touchmove:function(t){y(t=l(this.dom,t)),this.handler.processGesture(t,"change"),w.mousemove.call(this,t)},touchend:function(t){y(t=l(this.dom,t)),this.handler.processGesture(t,"end"),w.mouseup.call(this,t),+new Date-this._lastTouchMoment<300&&w.click.call(this,t)},pointerdown:function(t){w.mousedown.call(this,t)},pointermove:function(t){v(t)||w.mousemove.call(this,t)},pointerup:function(t){w.mouseup.call(this,t)},pointerout:function(t){v(t)||w.mouseout.call(this,t)}};h.each(["click","mousewheel","dblclick","contextmenu"],(function(t){w[t]=function(e){e=l(this.dom,e),this.trigger(t,e)}}));var S={pointermove:function(t){v(t)||S.mousemove.call(this,t)},pointerup:function(t){S.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this._pointerCapturing;N(this,!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function A(t,e){var n=e.domHandlers;f.pointerEventsSupported?h.each(p.pointer,(function(i){C(e,i,(function(e){n[i].call(t,e)}))})):(f.touchEventsSupported&&h.each(p.touch,(function(i){C(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),h.each(p.mouse,(function(i){C(e,i,(function(r){r=u(r),e.touching||n[i].call(t,r)}))})))}function L(t,e){function n(n){C(e,n,(function(i){i=u(i),_(t,i.target)||(i=function(t,e){return l(t.dom,new b(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}f.pointerEventsSupported?h.each(g.pointer,n):f.touchEventsSupported||h.each(g.mouse,n)}function C(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,o(t.domTarget,m(e),n,i)}function P(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&s(t.domTarget,m(n),e[n],t.listenerOpts[n]);t.mounted={}}function N(t,e){if(t._mayPointerCapture=null,d&&t._pointerCapturing^e){t._pointerCapturing=e;var n=t._globalHandlerScope;e?L(t,n):P(n)}}function k(t,e){this.domTarget=t,this.domHandlers=e,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function I(t,e){c.call(this),this.dom=t,this.painterRoot=e,this._localHandlerScope=new k(t,w),d&&(this._globalHandlerScope=new k(document,S)),this._pointerCapturing=!1,this._mayPointerCapture=null,A(this,this._localHandlerScope)}var M=I.prototype;M.dispose=function(){P(this._localHandlerScope),d&&P(this._globalHandlerScope)},M.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},h.mixin(I,c);var T=I;t.exports=T},24582:(t,e,n)=>{var i=n(66343),r=i.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;n<e.length;n++)t=t||e[n].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},buildPath:function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),i.prototype.getBoundingRect.call(this)}});t.exports=r},44232:(t,e,n)=>{var i=n(95289),r=n(96727),a=n(42073),o=n(81619);function s(t){for(var e in t=t||{},a.call(this,t),t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new r(t.style,this),this._rect=null,this.__clipPaths=null}s.prototype={constructor:s,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?a.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new r(t,this),this.dirty(!1),this},calculateTextPosition:null},i.inherits(s,a),i.mixin(s,o);var l=s;t.exports=l},44696:t=>{var e=function(t){this.colorStops=t||[]};e.prototype={constructor:e,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var n=e;t.exports=n},1635:(t,e,n)=>{var i=n(44232),r=n(39587),a=n(95289),o=n(30098);function s(t){i.call(this,t)}s.prototype={constructor:s,type:"image",brush:function(t,e){var n=this.style,i=n.image;n.bind(t,this,e);var r=this._image=o.createOrUpdateImage(i,this._image,this,this.onload);if(r&&o.isImageReady(r)){var a=n.x||0,s=n.y||0,l=n.width,u=n.height,h=r.width/r.height;if(null==l&&null!=u?l=u*h:null==u&&null!=l?u=l/h:null==l&&null==u&&(l=r.width,u=r.height),this.setTransform(t),n.sWidth&&n.sHeight){var c=n.sx||0,f=n.sy||0;t.drawImage(r,c,f,n.sWidth,n.sHeight,a,s,l,u)}else if(n.sx&&n.sy){var d=l-(c=n.sx),p=u-(f=n.sy);t.drawImage(r,c,f,d,p,a,s,l,u)}else t.drawImage(r,a,s,l,u);null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new r(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},a.inherits(s,i);var l=s;t.exports=l},48458:(t,e,n)=>{var i=n(95289).inherits,r=n(44232),a=n(39587);function o(t){r.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}o.prototype.incremental=!0,o.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},o.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},o.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},o.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},o.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},o.prototype.brush=function(t,e){for(var n=this._cursor;n<this._displayables.length;n++){(i=this._displayables[n]).beforeBrush&&i.beforeBrush(t),i.brush(t,n===this._cursor?null:this._displayables[n-1]),i.afterBrush&&i.afterBrush(t)}this._cursor=n;for(n=0;n<this._temporaryDisplayables.length;n++){var i;(i=this._temporaryDisplayables[n]).beforeBrush&&i.beforeBrush(t),i.brush(t,0===n?null:this._temporaryDisplayables[n-1]),i.afterBrush&&i.afterBrush(t)}this._temporaryDisplayables=[],this.notClear=!0};var s=[];o.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new a(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(s)),t.union(i)}this._rect=t}return this._rect},o.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(t,e))return!0}return!1},i(o,r);var l=o;t.exports=l},25113:(t,e,n)=>{var i=n(95289),r=n(44696),a=function(t,e,n,i,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=o||!1,r.call(this,a)};a.prototype={constructor:a},i.inherits(a,r);var o=a;t.exports=o},66343:(t,e,n)=>{var i=n(44232),r=n(95289),a=n(17004),o=n(70703),s=n(94364).prototype.getCanvasPattern,l=Math.abs,u=new a(!0);function h(t){i.call(this,t),this.path=null}h.prototype={constructor:h,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,e){var n,i=this.style,r=this.path||u,a=i.hasStroke(),o=i.hasFill(),l=i.fill,h=i.stroke,c=o&&!!l.colorStops,f=a&&!!h.colorStops,d=o&&!!l.image,p=a&&!!h.image;(i.bind(t,this,e),this.setTransform(t),this.__dirty)&&(c&&(n=n||this.getBoundingRect(),this._fillGradient=i.getGradient(t,l,n)),f&&(n=n||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,h,n)));c?t.fillStyle=this._fillGradient:d&&(t.fillStyle=s.call(l,t)),f?t.strokeStyle=this._strokeGradient:p&&(t.strokeStyle=s.call(h,t));var g=i.lineDash,m=i.lineDashOffset,v=!!t.setLineDash,y=this.getGlobalScale();if(r.setScale(y[0],y[1],this.segmentIgnoreThreshold),this.__dirtyPath||g&&!v&&a?(r.beginPath(t),g&&!v&&(r.setLineDash(g),r.setLineDashOffset(m)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),o)if(null!=i.fillOpacity){var _=t.globalAlpha;t.globalAlpha=i.fillOpacity*i.opacity,r.fill(t),t.globalAlpha=_}else r.fill(t);if(g&&v&&(t.setLineDash(g),t.lineDashOffset=m),a)if(null!=i.strokeOpacity){_=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,r.stroke(t),t.globalAlpha=_}else r.stroke(t);g&&v&&t.setLineDash([]),null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,n){},createPathProxy:function(){this.path=new a},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;i||(i=this.path=new a),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),t=i.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){r.copy(t);var o=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(r.width+=o/s,r.height+=o/s,r.x-=o/s/2,r.y-=o/s/2)}return r}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var a=this.path.data;if(r.hasStroke()){var s=r.lineWidth,l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(a,s/l,t,e)))return!0}if(r.hasFill())return o.contain(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):i.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(r.isObject(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&l(t[0]-1)>1e-10&&l(t[3]-1)>1e-10?Math.sqrt(l(t[0]*t[3]-t[2]*t[1])):1}},h.extend=function(t){var e=function(e){h.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};for(var n in r.inherits(e,h),t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},r.inherits(h,i);var c=h;t.exports=c},94364:t=>{var e=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};e.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var n=e;t.exports=n},78051:(t,e,n)=>{var i=n(95289),r=n(44696),a=function(t,e,n,i,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=a||!1,r.call(this,i)};a.prototype={constructor:a},i.inherits(a,r);var o=a;t.exports=o},96727:(t,e,n)=>{var i=n(64180),r=n(90592).ContextCachedBy,a=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],o=function(t){this.extendFrom(t,!1)};function s(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,a=isNaN(a)?0:a,o=isNaN(o)?0:o,t.createLinearGradient(i,a,r,o)}function l(t,e,n){var i=n.width,r=n.height,a=Math.min(i,r),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(o=o*i+n.x,s=s*r+n.y,l*=a),t.createRadialGradient(o,s,0,o,s,l)}o.prototype={constructor:o,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,n){var o=this,s=n&&n.style,l=!s||t.__attrCachedBy!==r.STYLE_BIND;t.__attrCachedBy=r.STYLE_BIND;for(var u=0;u<a.length;u++){var h=a[u],c=h[0];(l||o[c]!==s[c])&&(t[c]=i(t,c,o[c]||h[1]))}if((l||o.fill!==s.fill)&&(t.fillStyle=o.fill),(l||o.stroke!==s.stroke)&&(t.strokeStyle=o.stroke),(l||o.opacity!==s.opacity)&&(t.globalAlpha=null==o.opacity?1:o.opacity),(l||o.blend!==s.blend)&&(t.globalCompositeOperation=o.blend||"source-over"),this.hasStroke()){var f=o.lineWidth;t.lineWidth=f/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||!0!==e&&(!1===e?this.hasOwnProperty(n):null==t[n])||(this[n]=t[n])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var i=("radial"===e.type?l:s)(t,e,n),r=e.colorStops,a=0;a<r.length;a++)i.addColorStop(r[a].offset,r[a].color);return i}};for(var u=o.prototype,h=0;h<a.length;h++){var c=a[h];c[0]in u||(u[c[0]]=c[1])}o.getGradient=u.getGradient;var f=o;t.exports=f},21927:(t,e,n)=>{var i=n(44232),r=n(95289),a=n(43407),o=n(95112),s=n(90592).ContextCachedBy,l=function(t){i.call(this,t)};l.prototype={constructor:l,type:"text",brush:function(t,e){var n=this.style;this.__dirty&&o.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var i=n.text;null!=i&&(i+=""),o.needDrawText(i,n)?(this.setTransform(t),o.renderText(this,t,i,n,null,e),this.restoreTransform(t)):t.__attrCachedBy=s.NONE},getBoundingRect:function(){var t=this.style;if(this.__dirty&&o.normalizeTextStyle(t,!0),!this._rect){var e=t.text;null!=e?e+="":e="";var n=a.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich);if(n.x+=t.x||0,n.y+=t.y||0,o.getStroke(t.textStroke,t.textStrokeWidth)){var i=t.textStrokeWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect}},r.inherits(l,i);var u=l;t.exports=u},90592:(t,e)=>{e.ContextCachedBy={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},e.WILL_BE_RESTORED=9},58458:(t,e,n)=>{var i=n(87190),r=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];t.exports=function(t){return i.browser.ie&&i.browser.version>=11?function(){var e,n=this.__clipPaths,i=this.style;if(n)for(var a=0;a<n.length;a++){var o=n[a],s=o&&o.shape,l=o&&o.type;if(s&&("sector"===l&&s.startAngle===s.endAngle||"rect"===l&&(!s.width||!s.height))){for(var u=0;u<r.length;u++)r[u][2]=i[r[u][0]],i[r[u][0]]=r[u][1];e=!0;break}}if(t.apply(this,arguments),e)for(u=0;u<r.length;u++)i[r[u][0]]=r[u][2]}:t}},64180:t=>{var e={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};t.exports=function(t,n,i){return e.hasOwnProperty(n)?i*t.dpr:i}},30098:(t,e,n)=>{var i=new(n(60348))(50);function r(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function a(t){return t&&t.width&&t.height}e.findExistImage=function(t){if("string"==typeof t){var e=i.get(t);return e&&e.image}return t},e.createOrUpdateImage=function(t,e,n,o,s){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var l=i.get(t),u={hostEl:n,cb:o,cbPayload:s};return l?!a(e=l.image)&&l.pending.push(u):((e=new Image).onload=e.onerror=r,i.put(t,e.__cachedImgObj={image:e,pending:[u]}),e.src=e.__zrImageSrc=t),e}return t}return e},e.isImageReady=a},18205:(t,e,n)=>{var i=n(68504),r=n(73342);e.buildPath=function(t,e,n){var a=e.points,o=e.smooth;if(a&&a.length>=2){if(o&&"spline"!==o){var s=r(a,o,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var l=a.length,u=0;u<(n?l:l-1);u++){var h=s[2*u],c=s[2*u+1],f=a[(u+1)%l];t.bezierCurveTo(h[0],h[1],c[0],c[1],f[0],f[1])}}else{"spline"===o&&(a=i(a,n)),t.moveTo(a[0][0],a[0][1]);u=1;for(var d=a.length;u<d;u++)t.lineTo(a[u][0],a[u][1])}n&&t.closePath()}}},29621:(t,e)=>{e.buildPath=function(t,e){var n,i,r,a,o,s=e.x,l=e.y,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?n=i=r=a=c:c instanceof Array?1===c.length?n=i=r=a=c[0]:2===c.length?(n=r=c[0],i=a=c[1]):3===c.length?(n=c[0],i=a=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],a=c[3]):n=i=r=a=0,n+i>u&&(n*=u/(o=n+i),i*=u/o),r+a>u&&(r*=u/(o=r+a),a*=u/o),i+r>h&&(i*=h/(o=i+r),r*=h/o),n+a>h&&(n*=h/(o=n+a),a*=h/o),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+a,l+h),0!==a&&t.arc(s+a,l+h-a,a,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}},73342:(t,e,n)=>{var i=n(31138),r=i.min,a=i.max,o=i.scale,s=i.distance,l=i.add,u=i.clone,h=i.sub;t.exports=function(t,e,n,i){var c,f,d,p,g=[],m=[],v=[],y=[];if(i){d=[1/0,1/0],p=[-1/0,-1/0];for(var _=0,b=t.length;_<b;_++)r(d,d,t[_]),a(p,p,t[_]);r(d,d,i[0]),a(p,p,i[1])}for(_=0,b=t.length;_<b;_++){var x=t[_];if(n)c=t[_?_-1:b-1],f=t[(_+1)%b];else{if(0===_||_===b-1){g.push(u(t[_]));continue}c=t[_-1],f=t[_+1]}h(m,f,c),o(m,m,e);var w=s(x,c),S=s(x,f),A=w+S;0!==A&&(w/=A,S/=A),o(v,m,-w),o(y,m,S);var L=l([],x,v),C=l([],x,y);i&&(a(L,L,d),r(L,L,p),a(C,C,d),r(C,C,p)),g.push(L),g.push(C)}return n&&g.push(g.shift()),g}},68504:(t,e,n)=>{var i=n(31138).distance;function r(t,e,n,i,r,a,o){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*o+(-3*(e-n)-2*s-l)*a+s*r+e}t.exports=function(t,e){for(var n=t.length,a=[],o=0,s=1;s<n;s++)o+=i(t[s-1],t[s]);var l=o/2;for(l=l<n?n:l,s=0;s<l;s++){var u,h,c,f=s/(l-1)*(e?n:n-1),d=Math.floor(f),p=f-d,g=t[d%n];e?(u=t[(d-1+n)%n],h=t[(d+1)%n],c=t[(d+2)%n]):(u=t[0===d?d:d-1],h=t[d>n-2?n-1:d+1],c=t[d>n-3?n-1:d+2]);var m=p*p,v=p*m;a.push([r(u[0],g[0],h[0],c[0],p,m,v),r(u[1],g[1],h[1],c[1],p,m,v)])}return a}},32250:(t,e)=>{var n=Math.round;function i(t,e,i){if(!e)return t;var r=n(2*t);return(r+n(e))%2==0?r/2:(r+(i?1:-1))/2}e.subPixelOptimizeLine=function(t,e,r){if(e){var a=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=a,t.x2=o,t.y1=s,t.y2=l;var u=r&&r.lineWidth;u&&(n(2*a)===n(2*o)&&(t.x1=t.x2=i(a,u,!0)),n(2*s)===n(2*l)&&(t.y1=t.y2=i(s,u,!0)))}},e.subPixelOptimizeRect=function(t,e,n){if(e){var r=e.x,a=e.y,o=e.width,s=e.height;t.x=r,t.y=a,t.width=o,t.height=s;var l=n&&n.lineWidth;l&&(t.x=i(r,l,!0),t.y=i(a,l,!0),t.width=Math.max(i(r+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(i(a+s,l,!1)-t.y,0===s?0:1))}},e.subPixelOptimize=i},95112:(t,e,n)=>{var i=n(95289),r=i.retrieve2,a=i.retrieve3,o=i.each,s=i.normalizeCssArray,l=i.isString,u=i.isObject,h=n(43407),c=n(29621),f=n(30098),d=n(64180),p=n(90592),g=p.ContextCachedBy,m=p.WILL_BE_RESTORED,v=h.DEFAULT_FONT,y={left:1,right:1,center:1},_={top:1,bottom:1,middle:1},b=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],x={},w={};function S(t){if(t){t.font=h.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||y[e]?e:"left";var n=t.textVerticalAlign||t.textBaseline;"center"===n&&(n="middle"),t.textVerticalAlign=null==n||_[n]?n:"top",t.textPadding&&(t.textPadding=s(t.textPadding))}}function A(t,e,n,i,r){if(n&&e.textRotation){var a=e.textOrigin;"center"===a?(i=n.width/2+n.x,r=n.height/2+n.y):a&&(i=a[0]+n.x,r=a[1]+n.y),t.translate(i,r),t.rotate(-e.textRotation),t.translate(-i,-r)}}function L(t,e,n,i,o,s,l,u){var h=i.rich[n.styleName]||{};h.text=n.text;var c=n.textVerticalAlign,f=s+o/2;"top"===c?f=s+n.height/2:"bottom"===c&&(f=s+o-n.height/2),!n.isLineHolder&&C(h)&&P(t,e,h,"right"===u?l-n.width:"center"===u?l-n.width/2:l,f-n.height/2,n.width,n.height);var d=n.textPadding;d&&(l=O(l,u,d),f-=n.height/2-d[2]-n.textHeight/2),I(e,"shadowBlur",a(h.textShadowBlur,i.textShadowBlur,0)),I(e,"shadowColor",h.textShadowColor||i.textShadowColor||"transparent"),I(e,"shadowOffsetX",a(h.textShadowOffsetX,i.textShadowOffsetX,0)),I(e,"shadowOffsetY",a(h.textShadowOffsetY,i.textShadowOffsetY,0)),I(e,"textAlign",u),I(e,"textBaseline","middle"),I(e,"font",n.font||v);var p=M(h.textStroke||i.textStroke,m),g=T(h.textFill||i.textFill),m=r(h.textStrokeWidth,i.textStrokeWidth);p&&(I(e,"lineWidth",m),I(e,"strokeStyle",p),e.strokeText(n.text,l,f)),g&&(I(e,"fillStyle",g),e.fillText(n.text,l,f))}function C(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function P(t,e,n,i,r,a,o){var s=n.textBackgroundColor,h=n.textBorderWidth,d=n.textBorderColor,p=l(s);if(I(e,"shadowBlur",n.textBoxShadowBlur||0),I(e,"shadowColor",n.textBoxShadowColor||"transparent"),I(e,"shadowOffsetX",n.textBoxShadowOffsetX||0),I(e,"shadowOffsetY",n.textBoxShadowOffsetY||0),p||h&&d){e.beginPath();var g=n.textBorderRadius;g?c.buildPath(e,{x:i,y:r,width:a,height:o,r:g}):e.rect(i,r,a,o),e.closePath()}if(p)if(I(e,"fillStyle",s),null!=n.fillOpacity){var m=e.globalAlpha;e.globalAlpha=n.fillOpacity*n.opacity,e.fill(),e.globalAlpha=m}else e.fill();else if(u(s)){var v=s.image;(v=f.createOrUpdateImage(v,null,t,N,s))&&f.isImageReady(v)&&e.drawImage(v,i,r,a,o)}if(h&&d)if(I(e,"lineWidth",h),I(e,"strokeStyle",d),null!=n.strokeOpacity){m=e.globalAlpha;e.globalAlpha=n.strokeOpacity*n.opacity,e.stroke(),e.globalAlpha=m}else e.stroke()}function N(t,e){e.image=t}function k(t,e,n,i){var r=n.x||0,a=n.y||0,o=n.textAlign,s=n.textVerticalAlign;if(i){var l=n.textPosition;if(l instanceof Array)r=i.x+D(l[0],i.width),a=i.y+D(l[1],i.height);else{var u=e&&e.calculateTextPosition?e.calculateTextPosition(x,n,i):h.calculateTextPosition(x,n,i);r=u.x,a=u.y,o=o||u.textAlign,s=s||u.textVerticalAlign}var c=n.textOffset;c&&(r+=c[0],a+=c[1])}return(t=t||{}).baseX=r,t.baseY=a,t.textAlign=o,t.textVerticalAlign=s,t}function I(t,e,n){return t[e]=d(t,e,n),t[e]}function M(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function T(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function D(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function O(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}e.normalizeTextStyle=function(t){return S(t),o(t.rich,S),t},e.renderText=function(t,e,n,i,r,a){i.rich?function(t,e,n,i,r,a){a!==m&&(e.__attrCachedBy=g.NONE);var o=t.__textCotentBlock;o&&!t.__dirtyText||(o=t.__textCotentBlock=h.parseRichText(n,i));!function(t,e,n,i,r){var a=n.width,o=n.outerWidth,s=n.outerHeight,l=i.textPadding,u=k(w,t,i,r),c=u.baseX,f=u.baseY,d=u.textAlign,p=u.textVerticalAlign;A(e,i,r,c,f);var g=h.adjustTextX(c,o,d),m=h.adjustTextY(f,s,p),v=g,y=m;l&&(v+=l[3],y+=l[0]);var _=v+a;C(i)&&P(t,e,i,g,m,o,s);for(var b=0;b<n.lines.length;b++){for(var x,S=n.lines[b],N=S.tokens,I=N.length,M=S.lineHeight,T=S.width,D=0,O=v,F=_,R=I-1;D<I&&(!(x=N[D]).textAlign||"left"===x.textAlign);)L(t,e,x,i,M,y,O,"left"),T-=x.width,O+=x.width,D++;for(;R>=0&&"right"===(x=N[R]).textAlign;)L(t,e,x,i,M,y,F,"right"),T-=x.width,F-=x.width,R--;for(O+=(a-(O-v)-(_-F)-T)/2;D<=R;)L(t,e,x=N[D],i,M,y,O+x.width/2,"center"),O+=x.width,D++;y+=M}}(t,e,o,i,r)}(t,e,n,i,r,a):function(t,e,n,i,r,a){"use strict";var o,s=C(i),l=!1,u=e.__attrCachedBy===g.PLAIN_TEXT;a!==m?(a&&(o=a.style,l=!s&&u&&o),e.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):u&&(e.__attrCachedBy=g.NONE);var c=i.font||v;l&&c===(o.font||v)||(e.font=c);var f=t.__computedFont;t.__styleFont!==c&&(t.__styleFont=c,f=t.__computedFont=e.font);var p=i.textPadding,y=i.textLineHeight,_=t.__textCotentBlock;_&&!t.__dirtyText||(_=t.__textCotentBlock=h.parsePlainText(n,f,p,y,i.truncate));var x=_.outerHeight,S=_.lines,L=_.lineHeight,N=k(w,t,i,r),I=N.baseX,D=N.baseY,F=N.textAlign||"left",R=N.textVerticalAlign;A(e,i,r,I,D);var E=h.adjustTextY(D,x,R),B=I,z=E;if(s||p){var j=h.getWidth(n,f);p&&(j+=p[1]+p[3]);var q=h.adjustTextX(I,j,F);s&&P(t,e,i,q,E,j,x),p&&(B=O(I,F,p),z+=p[0])}e.textAlign=F,e.textBaseline="middle",e.globalAlpha=i.opacity||1;for(var H=0;H<b.length;H++){var W=b[H],U=W[0],V=W[1],G=i[U];l&&G===o[U]||(e[V]=d(e,V,G||W[2]))}z+=L/2;var Y=i.textStrokeWidth,X=l?o.textStrokeWidth:null,$=!l||Y!==X,K=!l||$||i.textStroke!==o.textStroke,J=M(i.textStroke,Y),Z=T(i.textFill);J&&($&&(e.lineWidth=Y),K&&(e.strokeStyle=J));Z&&(l&&i.textFill===o.textFill||(e.fillStyle=Z));if(1===S.length)J&&e.strokeText(S[0],B,z),Z&&e.fillText(S[0],B,z);else for(H=0;H<S.length;H++)J&&e.strokeText(S[H],B,z),Z&&e.fillText(S[H],B,z),z+=L}(t,e,n,i,r,a)},e.getBoxPosition=k,e.getStroke=M,e.getFill=T,e.parsePercent=D,e.needDrawText=function(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}},81619:(t,e,n)=>{var i=n(95112),r=n(39587),a=n(90592).WILL_BE_RESTORED,o=new r,s=function(){};s.prototype={constructor:s,drawRectText:function(t,e){var n=this.style;e=n.textRect||e,this.__dirty&&i.normalizeTextStyle(n,!0);var r=n.text;if(null!=r&&(r+=""),i.needDrawText(r,n)){t.save();var s=this.transform;n.transformText?this.setTransform(t):s&&(o.copy(e),o.applyTransform(s),e=o),i.renderText(this,t,r,n,e,a),t.restore()}}};var l=s;t.exports=l},64336:(t,e,n)=>{var i=n(66343).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),u=Math.sin(a);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,a,o,!s)}});t.exports=i},77402:(t,e,n)=>{var i=n(66343),r=n(31138),a=n(35574),o=a.quadraticSubdivide,s=a.cubicSubdivide,l=a.quadraticAt,u=a.cubicAt,h=a.quadraticDerivativeAt,c=a.cubicDerivativeAt,f=[];function d(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?c:u)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?c:u)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?h:l)(t.x1,t.cpx1,t.x2,e),(n?h:l)(t.y1,t.cpy1,t.y2,e)]}var p=i.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,i=e.y1,r=e.x2,a=e.y2,l=e.cpx1,u=e.cpy1,h=e.cpx2,c=e.cpy2,d=e.percent;0!==d&&(t.moveTo(n,i),null==h||null==c?(d<1&&(o(n,l,r,d,f),l=f[1],r=f[2],o(i,u,a,d,f),u=f[1],a=f[2]),t.quadraticCurveTo(l,u,r,a)):(d<1&&(s(n,l,h,r,d,f),l=f[1],h=f[2],r=f[3],s(i,u,c,a,d,f),u=f[1],c=f[2],a=f[3]),t.bezierCurveTo(l,u,h,c,r,a)))},pointAt:function(t){return d(this.shape,t,!1)},tangentAt:function(t){var e=d(this.shape,t,!0);return r.normalize(e,e)}});t.exports=p},30074:(t,e,n)=>{var i=n(66343).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}});t.exports=i},34586:(t,e,n)=>{var i=n(66343).extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var n=.5522848,i=e.cx,r=e.cy,a=e.rx,o=e.ry,s=a*n,l=o*n;t.moveTo(i-a,r),t.bezierCurveTo(i-a,r-l,i-s,r-o,i,r-o),t.bezierCurveTo(i+s,r-o,i+a,r-l,i+a,r),t.bezierCurveTo(i+a,r+l,i+s,r+o,i,r+o),t.bezierCurveTo(i-s,r+o,i-a,r+l,i-a,r),t.closePath()}});t.exports=i},91636:(t,e,n)=>{var i=n(66343),r=n(32250).subPixelOptimizeLine,a={},o=i.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n,i,o,s;this.subPixelOptimize?(r(a,e,this.style),n=a.x1,i=a.y1,o=a.x2,s=a.y2):(n=e.x1,i=e.y1,o=e.x2,s=e.y2);var l=e.percent;0!==l&&(t.moveTo(n,i),l<1&&(o=n*(1-l)+o*l,s=i*(1-l)+s*l),t.lineTo(o,s))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}});t.exports=o},24570:(t,e,n)=>{var i=n(66343),r=n(18205),a=i.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){r.buildPath(t,e,!0)}});t.exports=a},65542:(t,e,n)=>{var i=n(66343),r=n(18205),a=i.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){r.buildPath(t,e,!1)}});t.exports=a},15404:(t,e,n)=>{var i=n(66343),r=n(29621),a=n(32250).subPixelOptimizeRect,o={},s=i.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var n,i,s,l;this.subPixelOptimize?(a(o,e,this.style),n=o.x,i=o.y,s=o.width,l=o.height,o.r=e.r,e=o):(n=e.x,i=e.y,s=e.width,l=e.height),e.r?r.buildPath(t,e):t.rect(n,i,s,l),t.closePath()}});t.exports=s},39496:(t,e,n)=>{var i=n(66343).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)}});t.exports=i},91036:(t,e,n)=>{var i=n(66343),r=n(58458),a=i.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:r(i.prototype.brush),buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(o),h=Math.sin(o);t.moveTo(u*r+n,h*r+i),t.lineTo(u*a+n,h*a+i),t.arc(n,i,a,o,s,!l),t.lineTo(Math.cos(s)*r+n,Math.sin(s)*r+i),0!==r&&t.arc(n,i,r,s,o,l),t.closePath()}});t.exports=a},31615:(t,e,n)=>{var i=n(56831),r=n(19559),a=n(95289),o=a.isString,s=a.isFunction,l=a.isObject,u=a.isArrayLike,h=a.indexOf,c=function(){this.animators=[]};function f(t,e,n,i,r,a,l,u){o(i)?(a=r,r=i,i=0):s(r)?(a=r,r="linear",i=0):s(i)?(a=i,i=0):s(n)?(a=n,n=500):n||(n=500),t.stopAnimation(),d(t,"",t,e,n,i,u);var h=t.animators.slice(),c=h.length;function f(){--c||a&&a()}c||a&&a();for(var p=0;p<h.length;p++)h[p].done(f).start(r,l)}function d(t,e,n,i,r,a,o){var s={},h=0;for(var c in i)i.hasOwnProperty(c)&&(null!=n[c]?l(i[c])&&!u(i[c])?d(t,e?e+"."+c:c,n[c],i[c],r,a,o):(o?(s[c]=n[c],p(t,e,c,i[c])):s[c]=i[c],h++):null==i[c]||o||p(t,e,c,i[c]));h>0&&t.animate(e,!1).when(null==r?500:r,s).delay(a||0)}function p(t,e,n,i){if(e){var r={};r[e]={},r[e][n]=i,t.attr(r)}else t.attr(n,i)}c.prototype={constructor:c,animate:function(t,e){var n,a=!1,o=this,s=this.__zr;if(t){var l=t.split("."),u=o;a="shape"===l[0];for(var c=0,f=l.length;c<f;c++)u&&(u=u[l[c]]);u&&(n=u)}else n=o;if(n){var d=o.animators,p=new i(n,e);return p.during((function(t){o.dirty(a)})).done((function(){d.splice(h(d,p),1)})),d.push(p),s&&s.animation.addAnimator(p),p}r('Property "'+t+'" is not existed in element '+o.id)},stopAnimation:function(t){for(var e=this.animators,n=e.length,i=0;i<n;i++)e[i].stop(t);return e.length=0,this},animateTo:function(t,e,n,i,r,a){f(this,t,e,n,i,r,a)},animateFrom:function(t,e,n,i,r,a){f(this,t,e,n,i,r,a,!0)}};var g=c;t.exports=g},89944:t=>{function e(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function n(t,e){return{target:t,topTarget:e&&e.topTarget}}e.prototype={constructor:e,_dragStart:function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(n(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,r=t.offsetY,a=i-this._x,o=r-this._y;this._x=i,this._y=r,e.drift(a,o,t),this.dispatchToElement(n(e,t),"drag",t.event);var s=this.findHover(i,r,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.dispatchToElement(n(l,t),"dragleave",t.event),s&&s!==l&&this.dispatchToElement(n(s,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(n(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(n(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var i=e;t.exports=i},36112:t=>{var e=Array.prototype.slice,n=function(t){this._$handlers={},this._$eventProcessor=t};function i(t,e,n,i,r,a){var o=t._$handlers;if("function"==typeof n&&(r=i,i=n,n=null),!i||!e)return t;n=function(t,e){var n=t._$eventProcessor;return null!=e&&n&&n.normalizeQuery&&(e=n.normalizeQuery(e)),e}(t,n),o[e]||(o[e]=[]);for(var s=0;s<o[e].length;s++)if(o[e][s].h===i)return t;var l={h:i,one:a,query:n,ctx:r||t,callAtLast:i.zrEventfulCallAtLast},u=o[e].length-1,h=o[e][u];return h&&h.callAtLast?o[e].splice(u,0,l):o[e].push(l),t}n.prototype={constructor:n,one:function(t,e,n,r){return i(this,t,e,n,r,!0)},on:function(t,e,n,r){return i(this,t,e,n,r,!1)},isSilent:function(t){var e=this._$handlers;return!e[t]||!e[t].length},off:function(t,e){var n=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,a=n[t].length;r<a;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},trigger:function(t){var n=this._$handlers[t],i=this._$eventProcessor;if(n){var r=arguments,a=r.length;a>3&&(r=e.call(r,1));for(var o=n.length,s=0;s<o;){var l=n[s];if(i&&i.filter&&null!=l.query&&!i.filter(t,l.query))s++;else{switch(a){case 1:l.h.call(l.ctx);break;case 2:l.h.call(l.ctx,r[1]);break;case 3:l.h.call(l.ctx,r[1],r[2]);break;default:l.h.apply(l.ctx,r)}l.one?(n.splice(s,1),o--):s++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this},triggerWithContext:function(t){var n=this._$handlers[t],i=this._$eventProcessor;if(n){var r=arguments,a=r.length;a>4&&(r=e.call(r,1,r.length-1));for(var o=r[r.length-1],s=n.length,l=0;l<s;){var u=n[l];if(i&&i.filter&&null!=u.query&&!i.filter(t,u.query))l++;else{switch(a){case 1:u.h.call(o);break;case 2:u.h.call(o,r[1]);break;case 3:u.h.call(o,r[1],r[2]);break;default:u.h.apply(o,r)}u.one?(n.splice(l,1),s--):l++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this}};var r=n;t.exports=r},38051:(t,e,n)=>{var i=n(13388),r=n(31138),a=i.identity,o=5e-5;function s(t){return t>o||t<-5e-5}var l=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=l.prototype;u.transform=null,u.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var h=[];u.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),r=this.transform;if(n||e){r=r||i.create(),n?this.getLocalTransform(r):a(r),e&&(n?i.mul(r,t.transform,r):i.copy(r,t.transform)),this.transform=r;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(h);var s=h[0]<0?-1:1,l=h[1]<0?-1:1,u=((h[0]-s)*o+s)/h[0]||0,c=((h[1]-l)*o+l)/h[1]||0;r[0]*=u,r[1]*=u,r[2]*=c,r[3]*=c}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,r)}else r&&a(r)},u.getLocalTransform=function(t){return l.getLocalTransform(this,t)},u.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},u.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var c=[],f=i.create();u.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=this.position,r=this.scale;s(e-1)&&(e=Math.sqrt(e)),s(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(e=-e),t[3]<0&&(n=-n),i[0]=t[4],i[1]=t[5],r[0]=e,r[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/e)}},u.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(i.mul(c,t.invTransform,e),e=c);var n=this.origin;n&&(n[0]||n[1])&&(f[4]=n[0],f[5]=n[1],i.mul(c,e,f),c[4]-=n[0],c[5]-=n[1],e=c),this.setLocalTransform(e)}},u.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},u.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},u.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},l.getLocalTransform=function(t,e){a(e=e||[]);var n=t.origin,r=t.scale||[1,1],o=t.rotation||0,s=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),i.scale(e,e,r),o&&i.rotate(e,e,o),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=s[0],e[5]+=s[1],e};var d=l;t.exports=d},56607:(t,e,n)=>{var i=n(60348),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(t){return(t=Math.round(t))<0?0:t>255?255:t}function o(t){return t<0?0:t>1?1:t}function s(t){return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100*255):a(parseInt(t,10))}function l(t){return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100):o(parseFloat(t))}function u(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function c(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var d=new i(20),p=null;function g(t,e){p&&f(p,e),p=d.put(t,p||e.slice())}function m(t,e){if(t){e=e||[];var n=d.get(t);if(n)return f(e,n);var i,a=(t+="").replace(/ /g,"").toLowerCase();if(a in r)return f(e,r[a]),g(t,e),e;if("#"===a.charAt(0))return 4===a.length?(i=parseInt(a.substr(1),16))>=0&&i<=4095?(c(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,1),g(t,e),e):void c(e,0,0,0,1):7===a.length?(i=parseInt(a.substr(1),16))>=0&&i<=16777215?(c(e,(16711680&i)>>16,(65280&i)>>8,255&i,1),g(t,e),e):void c(e,0,0,0,1):void 0;var o=a.indexOf("("),u=a.indexOf(")");if(-1!==o&&u+1===a.length){var h=a.substr(0,o),p=a.substr(o+1,u-(o+1)).split(","),m=1;switch(h){case"rgba":if(4!==p.length)return void c(e,0,0,0,1);m=l(p.pop());case"rgb":return 3!==p.length?void c(e,0,0,0,1):(c(e,s(p[0]),s(p[1]),s(p[2]),m),g(t,e),e);case"hsla":return 4!==p.length?void c(e,0,0,0,1):(p[3]=l(p[3]),v(p,e),g(t,e),e);case"hsl":return 3!==p.length?void c(e,0,0,0,1):(v(p,e),g(t,e),e);default:return}}c(e,0,0,0,1)}}function v(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=l(t[1]),r=l(t[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return c(e=e||[],a(255*u(s,o,n+1/3)),a(255*u(s,o,n)),a(255*u(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=e[r],u=e[s],c=i-r;return n[0]=a(h(l[0],u[0],c)),n[1]=a(h(l[1],u[1],c)),n[2]=a(h(l[2],u[2],c)),n[3]=o(h(l[3],u[3],c)),n}}var _=y;function b(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),s=Math.ceil(i),l=m(e[r]),u=m(e[s]),c=i-r,f=w([a(h(l[0],u[0],c)),a(h(l[1],u[1],c)),a(h(l[2],u[2],c)),o(h(l[3],u[3],c))],"rgba");return n?{color:f,leftIndex:r,rightIndex:s,value:i}:f}}var x=b;function w(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}e.parse=m,e.lift=function(t,e){var n=m(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:t[i]<0&&(n[i]=0);return w(n,4===n.length?"rgba":"rgb")}},e.toHex=function(t){var e=m(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},e.fastLerp=y,e.fastMapToColor=_,e.lerp=b,e.mapToColor=x,e.modifyHSL=function(t,e,n,i){if(t=m(t))return t=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,f=((s-a)/6+l/2)/l;i===s?e=f-c:r===s?e=1/3+h-f:a===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(t),null!=e&&(t[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(t[1]=l(n)),null!=i&&(t[2]=l(i)),w(v(t),"rgba");var r},e.modifyAlpha=function(t,e){if((t=m(t))&&null!=e)return t[3]=o(e),w(t,"rgba")},e.stringify=w},9717:(t,e,n)=>{var i=n(75738),r=n(1635),a=n(21927),o=n(30074),s=n(15404),l=n(34586),u=n(91636),h=n(66343),c=n(24570),f=n(65542),d=n(25113),p=n(96727),g=n(13388),m=n(15009).createFromString,v=n(95289),y=v.isString,_=v.extend,b=v.defaults,x=v.trim,w=v.each,S=/[\s,]+/;function A(t){y(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}function L(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}L.prototype.parse=function(t,e){e=e||{};var n=A(t);if(!n)throw new Error("Illegal svg");var r=new i;this._root=r;var a=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||e.width),l=parseFloat(n.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(l)&&(l=null),M(n,r,null,!0);for(var u,h,c=n.firstChild;c;)this._parseNode(c,r),c=c.nextSibling;if(a){var f=x(a).split(S);f.length>=4&&(u={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(u&&null!=o&&null!=l&&(h=R(u,o,l),!e.ignoreViewBox)){var d=r;(r=new i).add(d),d.scale=h.scale.slice(),d.position=h.position.slice()}return e.ignoreRootClip||null==o||null==l||r.setClipPath(new s({shape:{x:0,y:0,width:o,height:l}})),{root:r,width:o,height:l,viewBoxRect:u,viewBoxTransform:h}},L.prototype._parseNode=function(t,e){var n,i,r=t.nodeName.toLowerCase();if("defs"===r?this._isDefine=!0:"text"===r&&(this._isText=!0),this._isDefine){if(i=P[r]){var a=i.call(this,t),o=t.getAttribute("id");o&&(this._defs[o]=a)}}else(i=C[r])&&(n=i.call(this,t,e),e.add(n));for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===r?this._isDefine=!1:"text"===r&&(this._isText=!1)},L.prototype._parseText=function(t,e){if(1===t.nodeType){var n=t.getAttribute("dx")||0,i=t.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new a({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});N(e,r),M(t,r,this._defs);var o=r.style.fontSize;o&&o<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=o/9,r.scale[1]*=o/9);var s=r.getBoundingRect();return this._textX+=s.width,e.add(r),r};var C={g:function(t,e){var n=new i;return N(e,n),M(t,n,this._defs),n},rect:function(t,e){var n=new s;return N(e,n),M(t,n,this._defs),n.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),n},circle:function(t,e){var n=new o;return N(e,n),M(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),n},line:function(t,e){var n=new u;return N(e,n),M(t,n,this._defs),n.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),n},ellipse:function(t,e){var n=new l;return N(e,n),M(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),n},polygon:function(t,e){var n=t.getAttribute("points");n&&(n=k(n));var i=new c({shape:{points:n||[]}});return N(e,i),M(t,i,this._defs),i},polyline:function(t,e){var n=new h;N(e,n),M(t,n,this._defs);var i=t.getAttribute("points");return i&&(i=k(i)),new f({shape:{points:i||[]}})},image:function(t,e){var n=new r;return N(e,n),M(t,n,this._defs),n.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),n},text:function(t,e){var n=t.getAttribute("x")||0,r=t.getAttribute("y")||0,a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(r)+parseFloat(o);var s=new i;return N(e,s),M(t,s,this._defs),s},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,s=new i;return N(e,s),M(t,s,this._defs),this._textX+=a,this._textY+=o,s},path:function(t,e){var n=t.getAttribute("d")||"",i=m(n);return N(e,i),M(t,i,this._defs),i}},P={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),n=parseInt(t.getAttribute("y1")||0,10),i=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),a=new d(e,n,i,r);return function(t,e){var n=t.firstChild;for(;n;){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";e.addColorStop(i,r)}n=n.nextSibling}}(t,a),a},radialgradient:function(t){}};function N(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),b(e.__inheritedStyle,t.__inheritedStyle))}function k(t){for(var e=x(t).split(S),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),a=parseFloat(e[i+1]);n.push([r,a])}return n}var I={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function M(t,e,n,i){var r=e.__inheritedStyle||{},a="text"===e.type;if(1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=null,r=[];n.replace(O,(function(t,e,n){r.push(e,n)}));for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1];switch(i=i||g.create(),s){case"translate":o=x(o).split(S),g.translate(i,i,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=x(o).split(S),g.scale(i,i,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=x(o).split(S),g.rotate(i,i,parseFloat(o[0]));break;case"skew":o=x(o).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":o=x(o).split(S);i[0]=parseFloat(o[0]),i[1]=parseFloat(o[1]),i[2]=parseFloat(o[2]),i[3]=parseFloat(o[3]),i[4]=parseFloat(o[4]),i[5]=parseFloat(o[5])}}e.setLocalTransform(i)}}(t,e),_(r,function(t){var e=t.getAttribute("style"),n={};if(!e)return n;var i,r={};F.lastIndex=0;for(;null!=(i=F.exec(e));)r[i[1]]=i[2];for(var a in I)I.hasOwnProperty(a)&&null!=r[a]&&(n[I[a]]=r[a]);return n}(t)),!i))for(var o in I)if(I.hasOwnProperty(o)){var s=t.getAttribute(o);null!=s&&(r[I[o]]=s)}var l=a?"textFill":"fill",u=a?"textStroke":"stroke";e.style=e.style||new p;var h=e.style;null!=r.fill&&h.set(l,D(r.fill,n)),null!=r.stroke&&h.set(u,D(r.stroke,n)),w(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){var e="lineWidth"===t&&a?"textStrokeWidth":t;null!=r[t]&&h.set(e,parseFloat(r[t]))})),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),w(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(t){null!=r[t]&&h.set(t,r[t])})),r.lineDash&&(e.style.lineDash=x(r.lineDash).split(S)),h[u]&&"none"!==h[u]&&(e[u]=!0),e.__inheritedStyle=r}var T=/url\(\s*#(.*?)\)/;function D(t,e){var n=e&&t&&t.match(T);return n?e[x(n[1])]:t}var O=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;var F=/([^\s:;]+)\s*:\s*([^:;]+)/g;function R(t,e,n){var i=e/t.width,r=n/t.height,a=Math.min(i,r);return{scale:[a,a],position:[-(t.x+t.width/2)*a+e/2,-(t.y+t.height/2)*a+n/2]}}e.parseXML=A,e.makeViewBoxTransform=R,e.parseSVG=function(t,e){return(new L).parse(t,e)}},15009:(t,e,n)=>{var i=n(66343),r=n(17004),a=n(92291),o=Math.sqrt,s=Math.sin,l=Math.cos,u=Math.PI,h=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},c=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(h(t)*h(e))},f=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(c(t,e))};function d(t,e,n,i,r,a,h,d,p,g,m){var v=p*(u/180),y=l(v)*(t-n)/2+s(v)*(e-i)/2,_=-1*s(v)*(t-n)/2+l(v)*(e-i)/2,b=y*y/(h*h)+_*_/(d*d);b>1&&(h*=o(b),d*=o(b));var x=(r===a?-1:1)*o((h*h*(d*d)-h*h*(_*_)-d*d*(y*y))/(h*h*(_*_)+d*d*(y*y)))||0,w=x*h*_/d,S=x*-d*y/h,A=(t+n)/2+l(v)*w-s(v)*S,L=(e+i)/2+s(v)*w+l(v)*S,C=f([1,0],[(y-w)/h,(_-S)/d]),P=[(y-w)/h,(_-S)/d],N=[(-1*y-w)/h,(-1*_-S)/d],k=f(P,N);c(P,N)<=-1&&(k=u),c(P,N)>=1&&(k=0),0===a&&k>0&&(k-=2*u),1===a&&k<0&&(k+=2*u),m.addData(g,A,L,h,d,C,k,v,a)}var p=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function m(t,e){var n=function(t){if(!t)return new r;for(var e,n=0,i=0,a=n,o=i,s=new r,l=r.CMD,u=t.match(p),h=0;h<u.length;h++){for(var c,f=u[h],m=f.charAt(0),v=f.match(g)||[],y=v.length,_=0;_<y;_++)v[_]=parseFloat(v[_]);for(var b=0;b<y;){var x,w,S,A,L,C,P,N=n,k=i;switch(m){case"l":n+=v[b++],i+=v[b++],c=l.L,s.addData(c,n,i);break;case"L":n=v[b++],i=v[b++],c=l.L,s.addData(c,n,i);break;case"m":n+=v[b++],i+=v[b++],c=l.M,s.addData(c,n,i),a=n,o=i,m="l";break;case"M":n=v[b++],i=v[b++],c=l.M,s.addData(c,n,i),a=n,o=i,m="L";break;case"h":n+=v[b++],c=l.L,s.addData(c,n,i);break;case"H":n=v[b++],c=l.L,s.addData(c,n,i);break;case"v":i+=v[b++],c=l.L,s.addData(c,n,i);break;case"V":i=v[b++],c=l.L,s.addData(c,n,i);break;case"C":c=l.C,s.addData(c,v[b++],v[b++],v[b++],v[b++],v[b++],v[b++]),n=v[b-2],i=v[b-1];break;case"c":c=l.C,s.addData(c,v[b++]+n,v[b++]+i,v[b++]+n,v[b++]+i,v[b++]+n,v[b++]+i),n+=v[b-2],i+=v[b-1];break;case"S":x=n,w=i;var I=s.len(),M=s.data;e===l.C&&(x+=n-M[I-4],w+=i-M[I-3]),c=l.C,N=v[b++],k=v[b++],n=v[b++],i=v[b++],s.addData(c,x,w,N,k,n,i);break;case"s":x=n,w=i,I=s.len(),M=s.data,e===l.C&&(x+=n-M[I-4],w+=i-M[I-3]),c=l.C,N=n+v[b++],k=i+v[b++],n+=v[b++],i+=v[b++],s.addData(c,x,w,N,k,n,i);break;case"Q":N=v[b++],k=v[b++],n=v[b++],i=v[b++],c=l.Q,s.addData(c,N,k,n,i);break;case"q":N=v[b++]+n,k=v[b++]+i,n+=v[b++],i+=v[b++],c=l.Q,s.addData(c,N,k,n,i);break;case"T":x=n,w=i,I=s.len(),M=s.data,e===l.Q&&(x+=n-M[I-4],w+=i-M[I-3]),n=v[b++],i=v[b++],c=l.Q,s.addData(c,x,w,n,i);break;case"t":x=n,w=i,I=s.len(),M=s.data,e===l.Q&&(x+=n-M[I-4],w+=i-M[I-3]),n+=v[b++],i+=v[b++],c=l.Q,s.addData(c,x,w,n,i);break;case"A":S=v[b++],A=v[b++],L=v[b++],C=v[b++],P=v[b++],d(N=n,k=i,n=v[b++],i=v[b++],C,P,S,A,L,c=l.A,s);break;case"a":S=v[b++],A=v[b++],L=v[b++],C=v[b++],P=v[b++],d(N=n,k=i,n+=v[b++],i+=v[b++],C,P,S,A,L,c=l.A,s)}}"z"!==m&&"Z"!==m||(c=l.Z,s.addData(c),n=a,i=o),e=c}return s.toStatic(),s}(t);return(e=e||{}).buildPath=function(t){if(t.setData){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e)}else{var e=t;n.rebuildPath(e)}},e.applyTransform=function(t){a(n,t),this.dirty(!0)},e}e.createFromString=function(t,e){return new i(m(t,e))},e.extendFromString=function(t,e){return i.extend(m(t,e))},e.mergePath=function(t,e){for(var n=[],r=t.length,a=0;a<r;a++){var o=t[a];o.path||o.createPathProxy(),o.__dirtyPath&&o.buildPath(o.path,o.shape,!0),n.push(o.path)}var s=new i(e);return s.createPathProxy(),s.buildPath=function(t){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e)},s}},92291:(t,e,n)=>{var i=n(17004),r=n(31138).applyTransform,a=i.CMD,o=[[],[],[]],s=Math.sqrt,l=Math.atan2;t.exports=function(t,e){var n,i,u,h,c,f=t.data,d=a.M,p=a.C,g=a.L,m=a.R,v=a.A,y=a.Q;for(u=0,h=0;u<f.length;){switch(n=f[u++],h=u,i=0,n){case d:case g:i=1;break;case p:i=3;break;case y:i=2;break;case v:var _=e[4],b=e[5],x=s(e[0]*e[0]+e[1]*e[1]),w=s(e[2]*e[2]+e[3]*e[3]),S=l(-e[1]/w,e[0]/x);f[u]*=x,f[u++]+=_,f[u]*=w,f[u++]+=b,f[u++]*=x,f[u++]*=w,f[u++]+=S,f[u++]+=S,h=u+=2;break;case m:A[0]=f[u++],A[1]=f[u++],r(A,A,e),f[h++]=A[0],f[h++]=A[1],A[0]+=f[u++],A[1]+=f[u++],r(A,A,e),f[h++]=A[0],f[h++]=A[1]}for(c=0;c<i;c++){var A;(A=o[c])[0]=f[u++],A[1]=f[u++],r(A,A,e),f[h++]=A[0],f[h++]=A[1]}}}},97683:(t,e,n)=>{var i=n(1200),r=n(87190),a=n(95289),o=n(16713),s=n(65728),l=n(97518),u=n(9874),h=n(77884),c=!r.canvasSupported,f={canvas:l},d={};var p=function(t,e,n){n=n||{},this.dom=e,this.id=t;var i=this,l=new s,d=n.renderer;if(c){if(!f.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");d="vml"}else d&&f[d]||(d="canvas");var p=new f[d](e,l,n,t);this.storage=l,this.painter=p;var g=r.node||r.worker?null:new h(p.getViewportRoot(),p.root);this.handler=new o(l,p,g,p.root),this.animation=new u({stage:{update:a.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var m=l.delFromStorage,v=l.addToStorage;l.delFromStorage=function(t){m.call(l,t),t&&t.removeSelfFromZr(i)},l.addToStorage=function(t){v.call(l,t),t.addSelfToZr(i)}};p.prototype={constructor:p,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,e){if(this.painter.addHover){var n=this.painter.addHover(t,e);return this.refreshHover(),n}},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete d[t]}},e.version="4.3.2",e.init=function(t,e){var n=new p(i(),t,e);return d[n.id]=n,n},e.dispose=function(t){if(t)t.dispose();else{for(var e in d)d.hasOwnProperty(e)&&d[e].dispose();d={}}return this},e.getInstance=function(t){return d[t]},e.registerPainter=function(t,e){f[t]=e}},82284:(t,e,n)=>{"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n.d(e,{A:()=>i})}}]);